Apr 30 2008

Nothing New

Sorry world.  Not a lot of activity this week here.  Finals are coming up and physics is a cruel mistress.  Hopefully more soon!


Apr 27 2008

Save time in the Linux CLI

Have you ever typed in a long command into your linux terminal only for it to come back: error, you must have super user privileges?

Now correcting this is as easy as sudo !! Literaly on the next line type:

sudo !!

This will repeat the previous line as if you had put sudo out front from the beginning.

The way this works is through the magic of “!!”.  Basically all this does is repeat the last line on the CLI.  For example:

$ "hello world"
bash: hello world: command not found
$ echo !!
echo "hello world"
hello world

There is also a cool little built in search function as well.  All you do is instead of the second !, put the first letter of the comand you actually want:

$ apt-get install grep
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
$ echo "another command"
another command
$ sudo !a
sudo apt-get install grep
Reading package lists... Done
Building dependency tree
Reading state information... Done
grep is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Enjoy saving time!!

xkcd - Sandwich


Apr 26 2008

Tofu Morals

Today I have learned a very important life lesson and from the strangest of things: tofu.

It all started at the local Thai club, where we were cooking red coconut curry, my favorite! I had gotten there early, as usual, to help Professor Seraphin prepare the food.

Along the course of events I was asked if I liked tofu, and I responded of course it’s great. And then I was offered a piece.

Mmmmm... curry!

Suddenly I was in a predicament. You see, I explained, tofu is amazing. It has the strange and wonderful ability to take on the flavor of whatever it’s in. In curry it tastes like curry, in pad thai it tastes like pad thai, and in tofu chocolate vegan cake, tofu even tastes like chocolate cake to the unsuspecting snacker.

Professor Seraphin looked me in the eye and scolded me: You expect people to like you for who you are, without being judged on what color you are and how you are dressed. You should like the tofu for what it is not for what you can hide it in!

So now I must integrate into my life a whole new standard for how I perceive the world. That’s tofu morals.


Apr 25 2008

Effectively Pied

It all started when the class hippie raised his hand in quantum. “Instead of class… can we watch Professor Milsom get pied”? Seconds later, and to everyones supries, 20 or so physics majors are racing across campus towards the mall.

Cheers broke loose from the crowd as Milsom approached and the bidding began. It was close, but in the end Rachelle won, out bidding half of the physics 252 class combined. And well, the rest is history.

Dr. Milsom is just one of those teachers you never forget. Whether you hate him or love him, you got to give him respect for taking a pie like that.

You need to a flashplayer enabled browser to view this YouTube video

Apr 22 2008

Know Yourself Update!

I have a confession. As it turns out I’m not an InFP but instead InTP. I have to admit that it does make a lot more sense. I live in a theoretical world of abstract ideas. I prefer to work on a complicated solution to a problem but leave it for someone else to implement. I think that right there says a lot about me.

A True InTP

Also InTPs have a strong tendency to be, you guessed it, scientists, especially physicists. Both Albert Einstein and Sir Isaac Newton were InTPs. So there you have it, the real truth. Lets hope it really is and I don’t have to change this article yet again.