OOP blog, week 3

Written on February 5, 2012

I finished project one on time, and hopefully, correctly. I was annoyed with all the test cases we have to write for each method. I guess my reasoning is that the problem with my code sometimes isn’t that I thought of the corner case but didn’t take into account, but I never thought about that particular one. The papers we have been reading went from insightful to redundant really quickly. We didn’t have to read both pair programming. I get it, I get it. I’ve seen pair (group) programming when trying to debug, but I never seen any company actually have 2 ppl sitting at the same computer to do pair programming (maybe because I haven’t seen enough, but it is unheard of to me too). I look forward to the day when pair programming become the norm so two programmer can do one man’s job. Career fair was this week. My print ran out of paper at 7 copies, and I accidentally printed duplex resume (two sides of exact same info) at painter. Oh, also, they all had a glaring typo, which one of the recruiter noticed right away and told me about it. Needless to say, I looked like an idiot. Good news is, I got 2 interviews. One recruiter was particularly impressed with me because I put emacs as one of my favorite tool to use (Go EMACS!) and when I said I’m taking OOP with downing, he said:”Oh, downing! Is this your first downing class? well, you are taking a class with downing, that means you’ll be ready when u get out.”

No matter what happens the rest of the semester. I just wanna say: Thank you Thank you Thank you Thank you Thank you.



OOP blog, week 2

Written on January 29, 2012

I hate writing. I created the blog originally to post interesting pictures and videos on there so I have an online, easily accessible place to look/watch them when i’m bored. Seeing I’m not the best CS students and i certainly need those extra points to offset my future test grades. I’m very happy with the reviews we’ve been getting in class. I never knew import in java was the equivalent to using namespace in c++ rather than #include. Let me say i hate c++ with all my heart. But i think that’s mostly because I don’t know how to use it. All the pointers and references make my head hurt and my eyes blood shot red. I understand c++ is very important and every proper CS students should know. So I’ll do my best to learn it, again.

Overall, I’m enjoying the class very much. I like going over the minute details of the program and learn intricacy of the languages I might’ve missed from previous lectures/classes. I don’t particularly like the google issue tracking part. But that’s just because I’m lazy.



my playlist

Written on October 18, 2011



1911

Written on October 9, 2011

Trailer: 1911

Flixster – Share Movies


Benjamin Zander on music and passion

Written on September 14, 2011



useful links

Written on August 21, 2011

http://theridejournal.com/



show git branch in prompt/terminal

Written on August 15, 2011

found here: http://www.jonmaddox.com/2008/03/13/show-your-git-branch-name-in-your-prompt/

I made small modifications to fit my liking:

function parse_git_branch {
git branch –no-color 2> /dev/null | sed -e ‘/^[^*]/d’ -e ‘s/* \(.*\)/(\1)/’
}

function proml {
local BLUE=”\[\033[0;34m\]”
local RED=”\[\033[0;31m\]”
local LIGHT_RED=”\[\033[1;31m\]”
local GREEN=”\[\033[0;32m\]”
local LIGHT_GREEN=”\[\033[1;32m\]”
local WHITE=”\[\033[1;37m\]”
local LIGHT_GRAY=”\[\033[0;37m\]”
case $TERM in
xterm*)
TITLEBAR=’\[\033]0;\u@\h:\w\007\]’
;;
*)
TITLEBAR=”"
;;
esac

PS1=”${TITLEBAR}\
$RED\u@\h:\w$GREEN\$(parse_git_branch)\
$LIGHT_GRAY\$ ”
PS2=’> ‘
PS4=’+ ‘
}
proml



Awesome people hanging out together

Written on July 17, 2011

http://awesomepeoplehangingouttogether.tumblr.com/



Grub rescue

Written on July 17, 2011

grub rescue
wubi megathread



English man eating cookies story

Written on July 17, 2011

(found from theoldvillage.wordpress.com)

This actually did happen to a real person, and the real person is me. I had gone to catch a train. This was April 1976, in Cambridge, U.K. I was a bit early for the train. I’d gotten the time of the train wrong. I went to get myself a newspaper to do the crossword, and a cup of coffee and a packet of cookies. I went and sat at a table. I want you to picture the scene. It’s very important that you get this very clear in your mind. Here’s the table, newspaper, cup of coffee, packet of cookies. There’s a guy sitting opposite me, perfectly ordinary-looking guy wearing a business suit, carrying a briefcase. It didn’t look like he was going to do anything weird. What he did was this: he suddenly leaned across, picked up the packet of cookies, tore it open, took one out, and ate it.
Now this, I have to say, is the sort of thing the British are very bad at dealing with. There’s nothing in our background, upbringing, or education that teaches you how to deal with someone who in broad daylight has just stolen your cookies. You know what would happen if this had been South Central Los Angeles. There would have very quickly been gunfire, helicopters coming in, CNN, you know… But in the end, I did what any red-blooded Englishman would do: I ignored it. And I stared at the newspaper, took a sip of coffee, tried to do aclue in the newspaper, couldn’t do anything, and thought, What am I going to do?

In the end I thought Nothing for it, I’ll just have to go for it, and I tried very hard not to notice the fact that the packet was already mysteriously opened. I took out a cookie for myself. I thought, That settled him. But it hadn’t because a moment or two later he did it again. He took another cookie. Having not mentioned it the first time, it was somehow even harder to raise the subject the second time around. “Excuse me, I couldn’t help but notice…” I mean, it doesn’t really work.

We went through the whole packet like this. When I say the whole packet, I mean there were only about eight cookies, but it felt like a lifetime. He took one, I took one, he took one, I took one. Finally, when we got to the end, he stood up and walked away. Well, we exchanged meaningful looks, then he walked away, and I breathed a sigh of relief and st back.

A moment or two later the train was coming in, so I tossed back the rest of my coffee, stood up, picked up the newspaper, and underneath the newspaper were my cookies. The thing I like particularly about this story is the sensation that somewhere in England there has been wandering around for the last quarter-century a perfectly ordinary guy who’s had the same exact story, only he doesn’t have the punch line.

-Douglas Adams, The Salmon of Doubt
“Cookies”