Thursday, September 25, 2008

McCain gambles

McCain is gambling with his political campaign, and so far it's working. Three notable gambles: 1) Sarah Palin 2) Canceling the RNC for the hurricane 3) Pausing the campaign to return to Washington for the economic crisis.

Time magazine profiles each candidate's gambling habits: Candidates' Vices" Craps and Poker

I'm trying to write shorter blog posts, but let me say a quick thing about each of McCain's gambles. Sarah Palin has turned into a pinup girl. The press is allowed to take pictures but no video or audio, and no questions. The RNC hurricane (a better name Might be Gustav but who will remember that?) ended up being a non issue, and McCain played the right bet here. The campaign pause is a total publicity stunt. He has not stopped TV commercials and has made appearances on 5 (five) television networks since he announced he would stop campaigning. If people called "STUNT!" on any of these things, they would realize they cannot vote for John McCain.

Here by accident, is a nice video wrapup of this blog post

Tuesday, September 23, 2008

Costs

"Americans in general want a clean, prosperous environment, with lots to do, good paying jobs, nice homes, good transportation, healthy food. But what are we willing to do to get there?" asked a friend. She mentioned that one way she is adjusting to the changes that the US is facing is by a 12$/month unlimited bus pass. I'm jealous! Here's the rest of my reply:

First and foremost, I think that as Americans we need to pay more attention to the total costs associated with our actions. Your bus pass is partially paid by taxes, probably on some people who don't use public transportation very much, if at all. But even though their tax money isn't getting them from point A to point B, they receiving lighter traffic because you seek out alternative means of transportation. They are ensuring that somebody drives less and saves the environment. And they are keeping the bus driver employed, off the streets and earning money to be taxed by the local government. All in all, that sounds like a good cost!

The federal government also has programs that need to be paid for by taxes, but Bush recklessly offered tax cuts (favoring the rich) without cutting the programs those taxes paid for. This irresponsibility caused the budget deficit to rise higher than ever before. Just take a look at this graph, where the national debt (as percent of GDP) is clearly rising over the periods of Regan, Bush Sr. and Bush Jr. http://zfacts.com/p/318.html

But both McCain and Obama know that raising taxes on people who are just scraping by will not help the economy. The difference is that Barack recognizes that there are some people who can afford to continue paying for the programs their representatives voted into place. He has not proposed raising taxes on the rich. Taxes for people making $250k will return to what they were when Bush took office, because Barack is just going to let the tax cuts expire as they are scheduled to do. The republicans have done a good job painting this as a tax increase, but in fact this is just the post-Thanksgiving sale at Bloomingdale's expiring on Friday night.

What are the costs of the Iraq war? Ten billion US dollars a month, Four thousand US casualties and Twenty thousand Iraqi people dead. What are the costs of the Paulson bailout plan? Seven hundred billion dollars per year, non-reviewable, and non-recoupable by us, the tax payers.

You are right that we are going to have to make adjustments no matter who gets elected in November. But to me, the adjustments are in how we pay for these mistakes. We can't just put it on our Chinese Express credit card and hope the problem goes away.

So the image I would like to see the United States follow is one of more intelligence. You know I was called "elitist" for saying that? (by my own mother!) Where else in the world can you elect a candidate because he's not too smart, not too rich, and not too handsome? I think we should be selecting the best president we can, and right now that is Barack Obama.

Wednesday, September 17, 2008

Golden Parachute

John McCain admits that the economy is not one of his strong suits, so one of McCain's personal economic advisors is Carly Fiorina. She successfully ran the IPO of Lucent in 1996 and she was named by Fortune magazine as the most powerful woman in business in 1998. But she does not think John McCain or Sarah Palin would be qualified to run a business. http://www.huffingtonpost.com/2008/09/16/fiorina-palin-couldnt-do_n_126827.html

How hard could it be? Well, Fiorina, who successfully ran the IPO of Lucent then went on to smash HP into the ground. On her watch, HP's market value was cut in half and the board of directors asked her to leave.

Now here's what really gets me angry: failures are rewarded. Fiorina was awarded a $21 million dollar cash severance along with the ~$21 stock valuation she held (a valuation that would have been higher had she not wrecked the company). Is this what she thinks happens to people who loose their job? No wonder McCain thinks the economy is doing alright, the unemployment rate is higher than ever so clearly all those people have a nice severance hidden away.

The HP fiasco is personal too. My Dad's aunt was an employee for HP for many years and one of the nicest people you will ever meet. She was within months of retirement when Fiorina led the merger with Compaq, and she was made redundant. Months away from a big party, cake, pension and health care, she was laid off.

Ultimately, a "Golden Parachute" is up to the company's board to dole out but it's encouraging to hear Barack put workers first in this situation:
http://my.barackobama.com/page/community/post/stateupdates/gG5qWh

Tuesday, September 02, 2008

Recipe for entertainment

When I want to be entertained, there's a couple things I look for:

- I want to suspend belief. Don't give me every day stories and especially don't give me reality TV. I want to escape my life.
- Create a world for me to believe. While I want to visit a fantastical world, it must have rules that my nerd mind can understand and extrapolate from.
- Give me some mystery. Maybe some of the world's laws aren't fully explained to me at the beginning, or maybe some of the characters have unknown pasts. I need to be engaged in finding out more.
- Romance and sexual tension between the principal characters should be the continuing theme in the show. That means that 99% of the episodes cannot have mushy happy endings, because there needs to be a reason to continue watching.

So here are some of my favorite shows:
- Buffy the Vampire slayer: A world where vampires rule the night, but they can be killed by fire, beheading, and of course, a stake through the heart. Buffy loves Angel, but the real story is Zander and Buffy, two childhood friends who could never be together.
- Alias: A story of agents in the CIA. Physics and Laws are consistent with our own, but the lives of agents are seriously unbelievable. I believe the story was strongest when Will Tippen was around, but there's still a certain "forbidden" aspect of the romance between Sidney and Vaugn.
- Highlander: Immortals live among us and kill eachother with swords. The love interest here is not Duncan, but instead Richie and Tessa. The rules are very strong but we don't know why: Immortals can sense eachother when close, they cannot kill on holy ground and in the end, there can be only one.
- X-Files: This one has less rules and more suspension of belief. Scully and Mulder can never get together, but there will always be the romance.
- Firefly: Captain Mal and Anora are classic examples of the strained romance. If you can believe the post-apocalyptic world they live in, then the cowboy, space theme is not hard to believe.
- Heroes: definitely suspends belief, but the story changes so often it hasn't been able to capture my attention past the first season. Hopefully this will change with the new season.

Friday, August 29, 2008

Great Speakers

I'm a big fan of speeches. I remember in High School when I discovered Patrick Henry and his speech on freedom.

Today, I've watched 3 great speeches. First, I watched Martin Luther King Jr. on a low resolution, black and white youtube video talking about his children playing with white children. Then, I watched Obama's speech from 2004 on a low resolution, color youtube video, when he talked about there not being a Red America and a Blue America but a United States of America. And finally tonight, I listened to Barack accept the nomination for presidency in front of 75,000 people in my mile high home state on a glorious full resolution, color youtube video with great sound. That's progress!

By choice, I haven't watched any analysis of the speech, and that's the great thing about YouTube. But here are the things that stood out to me:

"We need a President who can face the threats of the future, not keep grasping at the ideas of the past."

"Washington's been talking about our oil addiction for the last thirty years, and John McCain has been there for twenty-six of them."

"America, now is not the time for small plans."

"And Democrats, we must also admit that fulfilling America's promise will require more than just money. It will require a renewed sense of responsibility from each of us to recover what John F. Kennedy called our "intellectual and moral strength." Yes, government must lead on energy independence, but each of us must do our part to make our homes and businesses more efficient. Yes, we must provide more ladders to success for young men who fall into lives of crime and despair. But we must also admit that programs alone can't replace parents; that government can't turn off the television and make a child do her homework; that fathers must take more responsibility for providing the love and guidance their children need."

"Individual responsibility and mutual responsibility - that's the essence of America's promise."

"John McCain likes to say that he'll follow bin Laden to the Gates of Hell - but he won't even go to the cave where he lives."

"We are the party of Roosevelt. We are the party of Kennedy. So don't tell me that Democrats won't defend this country. Don't tell me that Democrats won't keep us safe."

"So let us agree that patriotism has no party. I love this country, and so do you, and so does John McCain. "

"I know there are those who dismiss such beliefs as happy talk. They claim that our insistence on something larger, something firmer and more honest in our public life is just a Trojan Horse for higher taxes and the abandonment of traditional values. And that's to be expected. Because if you don't have any fresh ideas, then you use stale tactics to scare the voters. If you don't have a record to run on, then you paint your opponent as someone people should run from. You make a big election about small things."

"This country of ours has more wealth than any nation, but that's not what makes us rich. We have the most powerful military on Earth, but that's not what makes us strong. Our universities and our culture are the envy of the world, but that's not what keeps the world coming to our shores. Instead, it is that American spirit - that American promise - that pushes us forward even when the path is uncertain; that binds us together in spite of our differences; that makes us fix our eye not on what is seen, but what is unseen, that better place around the bend."

http://www.youtube.com/watch?v=yZCrIeRkMhA

Tuesday, August 26, 2008

Listen up

Listen up because this is important. How can I support Barack Obama when I believe myself to be conservative? Former representative and Republican, Jim Leach spoke at the Democratic National Convention last night:

...the way today’s Republican Party has broken with its conservative heritage.

The party that once emphasized individual rights has gravitated in recent years toward regulating values. The party of military responsibility has taken us to war with a country that did not attack us. The party that formerly led the world in arms control has moved to undercut treaties crucial to the defense of the earth. The party that prides itself on conservation has abdicated its responsibilities in the face of global warming. And the party historically anchored in fiscal restraint has nearly doubled the national debt, squandering our precious resources in an undisciplined and unprecedented effort to finance a war with tax cuts.


How can anyone call themselves a conservative and support military operations overseas? How can anyone call themselves a conservative if they let the government choose what a woman can do with her body? How can a conservative government have so much power that they may ask telecommunications companies for records which incriminate American citizens, and they would comply? Would a party aligned with conservation spend more than it takes in?

Sure, there are some policies I'm not in favor of because I think they will be costly. But in my voting decision, I'm going for total cost conservatism not just line item.

Friday, August 22, 2008

Joe Biden

I'm really getting into the election this year. it would be easy to be disenfranchised with this circus, but I'm so sick of the current administration, that I look forward to something new. Like I said last time I wrote about politics, nothing political is worth discussing unless you have nothing to talk about, and I neatly tied up my entire summer in my last post.

I like Obama. There, I said it. And today, he announced he is running with Joe Biden. Horray! More characters in this drama! :) Congratulations Joe and Barrack, good luck to you both!

Monday, August 18, 2008

Summer

Well it happened again, I haven't kept up with blogging. I feel stuck because I can't create a new post until the old ones are out of my system and the old ones are old. I currently have drafts for 3 posts in my box, and no desire to complete them. But Jen called me out on it this weekend, so I'll quickly sum up and then be done with it. Maybe I'll even be better about blogging :D

1. WWDC happened. It was a lot of work, and I once again presented to a room of over 300 ravenous Quartz Composer developers. I did much better this year too, which is awesome. I also spent some good quality time with Ryan and Jay getting sloshed at the edge of a Hobson's Choice punch bowl.

2. immediately following the daily commute to San Francisco for WWDC, I flew out to NY for some well earned vacation and a visit to my sister, Tabitha. I wasn't sure if I could handle another week of city life, I was kinda sick of San Francisco and last time I visited NY it was oppressive feeling. But I walked, A LOT, and really felt free this time. It was great not to have to drive or even ride in a car for a whole week.

3. I took another vacation to Colorado this past weekend, the 14th of August. My wonderful friends Lily and Andrew were tying the knot (quite literally) and it was a big reunion of some pretty awesome people who have scattered to the wind.

That's the update. Thank goodness that's over now, so I can try updating more often.

Saturday, April 26, 2008

SubEthaEdit as a Journal

I really like SubEthaEdit, a text editor for Mac. It's mostly geared towards programming, but I find that it's a really good editor for anything text-only. For example, my journal is plaintext to avoid file format changes.

I created a script for use within SubEthaEdit's AppleScript menu. It's silly stupid, and doesn't scratch the surface of what SEE's scripts can do but it fits my needs (laziness). Basically, I wanted the same template for all my entries so if I ever want to process them, I have labeled metadata to work with. I also wanted to automatically save them into my Journal directory with a timestamp for sorting.

I know there are other journals, heck I could even use Blogger. But I don't trust online security and other Journal apps either lock you into a file format or are bloated (or both). 

So here's my script. I hope it's useful to someone.
on seescriptsettings()
return {keyboardShortcut:"^~@n", displayName:"TKJournal", inContextMenu:"no"}
end seescriptsettings

-- You should type and select the title before invoking this script
tell application "SubEthaEdit"
set mySelection to contents of selection of front document as text
set myHeader to "title: " & mySelection & return
set myHeader to myHeader & "Date: " & (current date) & return
set myHeader to myHeader & "Category: " & "Personal" & return
set myHeader to myHeader & "Tags: " & "journal" & return & return

set contents of selection of front document to myHeader

set myFilePath to POSIX path of (path to home folder)
set myFilePath to myFilePath & "Documents/TKJournal/"
set {year:y, month:m, day:d} to (current date)
set myDateString to y * 1 & "-" & m * 1 & "-" & d * 1
set myFilePath to myFilePath & myDateString & "-" & mySelection & ".txt"
try
save front document in POSIX file myFilePath
end try
end tell

Friday, April 04, 2008

Food

I have been in California for 2 years and this is the second time I've had Chinese food in that time. Don't get me wrong, I've had Japanese, Thai, Vietnamese, Korean, Mongolian, Philippino, and other Asian cuisine's which would all be lumped together under one roof and called "Chinese" in Colorado. Chef Chu's in Palo Alto was delicious, but like the other place I went to, they didn't even have what I would call Chinese food staples such as Sesame Chicken, Sweet and Sour Pork, etc. The menu was slanted towards seafood, even the hot & sour soup had shrimp in it. I'm sure there's something to be said for authenticity, but sometimes you crave what you're used to.

On the other hand, I am much more sensitive to regional food now. When someone asks if I want to eat Indian, I usually ask whether the restaurant is North or South Indian (I prefer the vegetarian South Indian food). If someone wants to go to a Brittish Pub, I look forward to curry because it's going to be the best thing on the menu (besides the beer).

Wednesday, March 26, 2008

Laziness

I remember when I first realized I wanted to be an engineer, I was working at Target and I was constantly thinking of ways I could replace myself with a machine. I was fascinated with the "LRT" scanners and thought of so many ways to make the process better. "Efficiency is intelligent laziness" has been my motto ever since.

This is in stark contrast to the first time I actually tried programming, my eventual major and career. It was so hard, and took so long to do anything that I hated it. I think it was one summer during middle school when I went across the street to learn wood working with my neighbor's father and my neighbor came over to learn programming with my Dad. I think it's pretty cool that we carried the tradition of apprenticeship and I hope my own son will have a similar experience. But I digress. This experience of programming was to write "Hello World" to the screen using c++. It required so many files, a header and an implementation, not to mention the CodeWarrior project file and I was a hunt and peck typist at the time so it took over 2 hours to copy the program from a paper print-out. If it was so hard to write two words to the screen, how would I possibly write a game with graphics?!

One way or another, I stuck through it and now I am a software engineer and I have found ways to apply my motto to school and work. I still hate all the setup of programming though, especially for scripting languages. I wrote these programs to a.) learn them and b.) have a mkscript script that I can use to create a template for new programs. I think it's pretty cleaver that the template comes from the program itself!

Okay so I know perl, that will be obvious by how much better the perl program looks (or maybe perl is better??). But I thought it was lame to claim this is a good method for learning and not put it into practice, so I did Python and Ruby too.


#!/usr/bin/perl

use strict;

foreach my $file (@ARGV) {
if(not -e $file) {
open (FILE, ">$file");
open (READ, "$0");
while(my $string = <READ>) {
chomp $string;
print FILE "$string\n";
}
system("chmod u+x $file");
}
}





#!/usr/bin/python
import sys
import os.path

def main(argv):
for i in range (1, len(sys.argv)):
if False == os.path.exists(sys.argv[i]):
writeFile = open(sys.argv[i], 'w')
readFile = open(sys.argv[0], 'r')
try:
for line in readFile:
writeFile.write(line);
finally:
readFile.close()
writeFile.close()
os.system("chmod u+x " + sys.argv[i])

if __name__ == "__main__":
main(sys.argv[1:])





#!/usr/bin/ruby

for file in (ARGV) do
puts file
if not File.exist?(file)
writeFile = File.new(file, "w")
readFile = File.new($0)
while (line = readFile.gets)
writeFile.puts(line)
end
system "chmod u+x #{file}"
end
end


If it means anything, I knew perl so that one was easy. I knew Python in College, hated it then and hated it now as I wrote this script. Ruby, I have never used and I must say, I'm impressed. I learned and wrote that script faster than I wrote the Python script, which I should still remember. I still like Perl best, but I'd give Ruby a shot if I needed to.