Tuesday, November 25, 2008

Why Some Love Computers and Others Hate Them

Last night, I spent two hours trying to get PHP (a programming language) working on my Mac. Eventually, I realized it had been working for about an hour and fifty minutes of the time, but Firefox had cached the error page. Once I cleared my cache, everything was fine. Did I hate my computer for wasting my time? No, I felt a sense of accomplishment from finally solving the problem.

Today, I spent another two hours trying to fix the problems with this blog and get it back online. I went through about 25 poorly-written articles on various aspects of the problem (integration between PHP, nginx, FastCGI, and lighttpd, in case you're interested). I also struggled with prewritten scripts containing awful formatting errors, such as replacing the " (double-quote) symbol with '' (two apostrophes), forcing me to hunt down these errors. Eventually, I figured out the problem, fixed all the scripts, and got it working (as you can see). Did I feel a sense of frustration from the poor documentation? No, I felt a sense of self-satisfaction from solving the problem, figuring it out (virtually) myself, and learning something new in the process

From what I understand, these are the things that make many people swear off programming or any complicated computer work; if it takes too much effort to deduce and fix the problem, it's too frustrating for many people. I have no problem with this, and in fact, I feel it in many other areas. But for some reason, it's the opposite for me. The longer I have to spend on something, the better I feel when I finally fix it (except for the rare exception where it was a stupid mistake on my part, in which case I feel annoyed with myself, not with the concept of computers).

I have a feeling that this is true for many people in my field. It's the difference between the person who goes "I tried to learn programming, but you have to get everything right! If you get one little thing wrong, the whole thing breaks!" and the person (like me) who gleefully recounts a late-night six-hour debugging session like it was the most exhilarating thing to happen in a long time.

I don't think either of these things are "right" or "wrong", but I do think one of them is more indicative of some sort of mental illness, and I don't think it bodes well for me.

Friday, November 14, 2008

Don't Wonder if You Are Stupid

I'm reading a book on Mac programming called Cocoa Programming for Mac OS X. However, unrelated to programming at all was this piece of advice on believing in yourself:

While learning something new, many students will think, "Damn, this is hard for me. I wonder if I am stupid." Because stupidity is such an unthinkably terrible thing in our culture, the students will then spend hours constructing arguments that explain why they are intelligent yet are having difficulties. The moment you start down this path, you have lost your focus.

I used to have a boss named Rock. Rock had earned a degree in astrophysics from Cal Tech and had never had a job in which he used his knowledge of the heavens. Once I asked him whether he regretted getting the degree. "Actually, my degree in astrophysics has proved to be very valuable," he said. "Some things in this world are just hard. When I am struggling with something, I sometimes think 'Damn, this is hard for me. I wonder if I am stupid,' and then I remember that I have a degree in astrophysics from Cal Tech; I must not be stupid."


I think this is great advice. There have been many times where I've been struggling with something outside of computer science (like calculus or my Oceanography class last semester). Just as I start to consider giving up, I remember that I've found a way to succeed at some very difficult things; things that are much more difficult than these. It gives me the confidence to continue banging my head against the wall until I finally get it.

Electron Microscope Art

What do you think this is?



Personally, I think it would make great cover art for a rap album or video game. But no, it's actually "the anterior spiracles (respiratory openings) of a fruit fly larvae magnified 1500x." Check out more of these electron microscope pictures here.

Thursday, November 13, 2008

How Would Hillary Clinton Have Done?

Nate Silver of 538 writes about Hillary hypotheticals, regarding how she may have performed in the general election. The article was spurred by an analysis of exit polls by CBS, which determined that Hillary would've won by an 11-point margin (as opposed to Obama's 7-point margin).

Wednesday, November 12, 2008

Videogame Fanboys

If you want some proof about the idiocy of videogame fanboys, look no further than Metacritic's Left 4 Dead User Score of 2.8.

Tuesday, November 11, 2008

Not that this happens often...

From now on, when I decide to skip class, I'm going to say "I'm honoring our veterans".

Friday, November 7, 2008

Don't Let a Crisis Go To Waste

Streetsblog, a blog about streets and roads (I like weird stuff), made a post about a reason to like Rahm Emanuel. A quote of his that I really liked:

"You don't ever want a crisis to go to waste; it's an opportunity to do important things that you would otherwise avoid."


This is a really interesting way of looking at it that I never though of before. Normally, people are afraid of change, because they're afraid of things going bad. But when things are already bad, people are more open to it. Bush used this in 2003 to start the Iraq war*. Maybe Obama can use it for something more constructive.

*Note: I do not believe that Bush had any ill intentions in starting the war in Iraq, but I do believe he took advantage of the situation to bypass sanity checks and get done what he felt was right. When a person does something like this, they are deserving of any praise they get for being a visionary, but equally deserving of any criticism they get for being a reckless idiot.

Bigotry in Gay Marriage Votes

The American Conservative, a conservative blog that is generally very intelligent (even though I usually have different views than it), disappointed me today. A quote from an article called "Why McCain Lost" by Patrick Buchanan:

Consider. In California, where a liberal judiciary had ordered the state to recognize homosexual marriages, voters, by 52 to 48, slapped the judges across the face and ordered the ban reimposed and placed in the California constitution. Arizona and Florida also voted to outlaw gay marriage, by landslides.

The New York Times deplored the “ugly outcome” of these three referenda and said voters were “enshrining bigotry,” thus calling the majority of Californians, Arizonans, and Floridians bigots and their Bible-rooted Christian beliefs nothing but bigotry.

Good to know what they think of us.


Yes. If your beliefs include the idea that it is okay to deny other law-abiding human beings the same rights that you have, then yes, at least some of your beliefs are bigotry. And if a state votes en-masse in line with those beliefs, then yes, the majority of that state's people (or at least, its voters) are bigots.

Thursday, November 6, 2008

I Guess He Doesn't Understand Statistics

"McCain is in a good position to win every red state ... Plus he is probably going to win Pennsylvania and Iowa." - McCain advisor Charlie Black, Nov. 2, 2008

Don't Criticize What You Don't Understand

Jessica Dolcourt of Webware criticizes the initial Android version of Meebo IM for not having enough features. I think Jessica needs to read up a little on the idea of iterative development.

Array Slicing is Messed Up

The mechanics of array-slicing (and, by extension, string-slicing) have bothered me since my very first Computer Science class. For those of you who aren't programmers but are braving the programmer warning, let me explain a little. Arrays in programming are essentially lists of data. For example, I could keep an array of test grades, and it might look something like this:

array = [99, 72, 85, 85, 100, 61, 88, 32]

Arrays throw beginners off a little bit, because indices are zero-based. This means that if I want to access specific elements in an array, the first element is considered element 0, the second is element 1, etc. An example using the above array:

Wednesday, November 5, 2008

Reactions from The Hillary Clinton Forum

A couple days ago, I showed a choice selection of some of the "condolences" for Obama's grandmother's death from the Hillary Clinton Forum. Compared to the usual responses on that forum, these quotes were very tame. Now, I'm going to give a look at the other end of the spectrum, as the forum-goers react to Obama becoming the 44th President of the United States.

As we type, Bill Ayers is preparing to attend Obama's victory party (I threw up a little in my mouth as I wrote that). He seeks to take away personal freedoms and put us at the mercy of the government. I don't see a bright side in any of this. - sadie


A Very Good Month

Barack Obama has won the election.

I got a great job offer from Cisco.

I have an interview with Google next Friday.

This is a November that I will remember.

Tuesday, November 4, 2008

Barack Obama, the new President

Now that Ohio is projected for Obama, he's our new president.  If you don't believe me, go to fivethirtyeight.com or electoral-vote.com and add up the states that he's GUARANTEED to win.  You'll see what I mean.

Monday, November 3, 2008

A Collection of "Condolences" for Obama's Grandmother

I've been reading the Hillary Clinton Forum for a long time - since back in April in fact. It's the breeding ground for "PUMA"s - Democrats who were so completely devoted to Hillary Clinton, that they're now more anti-Obama than the racists you see on those videos (despite Hillary's pleas).

Today, Barack Obama's grandmother died. A post was made on the Hillary Clinton Forum, titled *** "Obama's Grandmother has died" - Condolences Only!*******. To give you all an idea of what these people are like, and what "condolences" really mean to them, here are a few choice quotes:
"And now we may never know the truths she held. In any case, I offer prayers for the peaceful repose of her soul and prayers for those of her relatives who might have actually loved her." - Julianne Barbato

Andrew Sullivan's "Barack Obama For President"

Andrew Sullivan just published a post titled "Barack Obama For President".  For the first time in a long time (possibly ever), it caused me to send a mass-email to most of my friends and family.  In the interest of not wasting my time, I will just repost the email here:
Hey everyone,
I don't normally send out big emails with political stuff, so please trust that this one is important.

I just read one of the most powerful articles I've ever read.  It's by a guy named Andrew Sullivan.  He's a columnist and blogger for The Atlantic (an awesome political magazine).  I've been reading his blog for a long time.  He's a conservative; he believes in flat taxes over progressive, he wants less power for unions, etc., but he's been for Obama for a long time, due to his disgust with the Bush administration and with the way McCain has run his campaign.  He just posted this article, and I believe it is the pinnacle of what I've read from him:

http://andrewsullivan.theatlantic.com/the_daily_dish/2008/11/barack-obama-fo.html

I found it to be absolutely incredible, because he endorses Barack Obama in completely understandable terms and without falling back on party lines ("McCain is just more of the same") or cliched phrases ("It's time for a change").  Most importantly, he admits that he disagrees with Obama on multiple core issues, but that they are worth putting off for the greater good.

Everyone I've sent this to is a democrat and is already voting for Obama in the election.  While I think you would be doing yourself a big disservice if you didn't read it, I understand that you already agree with him, and may have better things to do than read it.  However, if you know any Republicans or independents, particularly in swing states, I'd urge you to send this to them.  I believe that Andrew Sullivan's conservative stance and logical explanations may actually sway a few people, and that's something I pretty much never think.

Thanks for your time

-Jake