Arrr

This song Change (Jason Nevins Dance/Pop Radio Edit) might be the first song I’ve listened to where the remix is better than the original song. It’s truly an awesome remix for an already fairly awesome song. I love getting new music, even though I really can’t afford it right now :)

Life has been incredibly awesome and happy lately, despite this weekend consisting mostly of me being lazy and not getting work done and now, as a result, being incredibly behind in classwork and likely going to fail the graph theory exam tomorrow. I think Friday night was the most awesome time I’ve ever had in a long time. There was chocolate fondue (courtesy of Mars and Dan, I believe), awesome games, spending time with friends/people I care about, and some awesome conversation until 5:30 AM.
There was also a Tim getting eaten by his bed.

There was also scary ponytail-Dan-thing

There was an ITG sightreading tournament on Saturday that I went to and photographed for a bit. It had a rather impressive turnout.

So yeah, this weekend has been full of laziness and graph theory studying (and I’m still going to fail, ahhh!). Also worked a bit on my paper for photo history. I should have been coding networks. Bleh. At least we ended up doing well on p2. Yay for doing well on projects.

Life makes me so happy… friends make me so happy…
Why are people so awesome?

Accomplished!

I’ve spent the past 5 hours pounding my head against the desk trying to self-teach myself everything about PHP sessions, objects, and MySQL accesses all at the same time by building the login/registration portion of my webapps final project. But hey, it was all worth it, because I understand them now!

The more I do webapps stuff, the more I think this is what I want to do with my life. I can’t identify what it is about writing PHP (or, to a certain extent, JSP or Java Servlet) code that is so addicting… but once I start, I just can’t stop. I can’t tell you how many times I’ve found myself sitting at my computer until $late_hour writing webapp code… and that rarely happens with any other kind of program.

So yeah, I spent a while trying to fix mistakes that came about from misunderstandings about PHP (trying to teach yourself 3 new things at once doesn’t make it easier to learn any one of them)…
-The header() function doesn’t automatically dispatch. You must call exit afterwards if you want to immediately dispatch the headers (ex: redirect to a new page).
-Starting a session (with session_start()) automatically calls in all saved session variables, overriding any existing variables. I couldn’t figure out why the hell $username was being overridden until I realized I hadn’t lost my previous session (which contained a duplicate $username variable), and it was loading the variables.
-You cannot use session_unset() if you set variables through $_SESSION
-If a function returns either an object or false, you cannot do testing with !$variable, you must do $variable!=false (but you can do that with functions that return either true or false).
-Defining things with define() in an if statement doesn’t carry over into the global scope (although this problem might have stemmed from one of the previous misunderstandings).
-The general hash() and hash_hmac() functions are only in PHP5, and my server only has PHP4.
But hey, I got everything working… now I can start on the fun part.

I really should be asleep given that I have class tomorrow at 7:30 followed by an exam. Blah at that.

It’s a Todd! For some reason I like this picture a lot.

Interview’d

So today was my interview with Google. Overall, I feel like I wasn’t nearly up to par. I had a couple of “Oh god, DUH” moments when the interviewer said something about my algorithm(s). I should also learn to start trusting my instincts… my first instinct on one of the problems (floor of sqrt) was right-ish but I tried to over-complicate it, which was actually a worse solution (same runtime, but with much more memory usage).
I also screwed up one of the problems which *should* have been straightforward to do.
Oh well.
I really wish I interviewed better. I know the stuff, really… meh.

Pittsburgh has been kinda crazy lately. According to the papers, there’s a highway that motorists have been stuck on since Wednesday evening due to the snow and road closures and everything. The T light rail system also shut down due to freezing rain on the power cables that make it go.
On the plus side, all the freezing rain around makes for some pretty damn nice pictures.

Also on the plus side, I’ve been photographing again. I spent most of last night in the darkroom and studio making images. Whee.

Housing for next year has more or less been taken care of, so that’s one thing down at least. Now I just wish I could get a job for the summer. Meh.

OMG workdeath has started. I now have 3 major projects that I’m working on concurrently, plus a photo presentation for Monday, plus an exam in graph theory on Monday. Grrr.
*goes off to do work*

Musings

I have a bunch of angst I want to write, but I’ll spare you. If you’re really all that interested, you can ask, but I won’t promise I’ll tell.

I finished my web apps homework today in about 4 hours. We had to write an online dating service program that users could create accounts for and use to search the userbase for people matching their criterion, implementing sessions and authentication and all that good stuff. It was fairly easy, given I’ve done a lot of php before (even though this was written in Java as a servlet). So yar.

My partner (Mike) and I are done (pretty much) with our networks project 1. We had to write an SMTP client that would send email using the SMTP protocol. It was easy enough… the hardest part was implementing DNS lookup for MX records due to horrific documentation on the resolver() set of functions. Meh.

So yeah, between those two classes, my life is full of coding, and it’s making me feel happy (….somewhat).
Code is so straightforward… so precise… unlike pretty much everything else in my life right now. Which is to say that nothing in my life is going right at the moment, except for my CS courses.
Meh.

I bought a ton of legal MP3s last night from MP3 Tunes and eMusic. I paid something like $10 and was able to get 4 complete albums (thanks to the free trial downloads thing from eMusic). The best part is that the artists get the large majority of the purchase price, unlike with other methods with the large record companies. Meh. DRM is stupid as hell… buy your music from these sites instead. Whee, I’m starting to sound like Zeke.
Yay for Adam Pascal, Christopher Jak, and Groove Coverage being on independent labels who aren’t assholes with their heads up their butts trying to scam the artists and, to use Zeke’s words, biting the hands that feed them.

Um… yeah.
I don’t want to post pictures at the moment, because thinking about photography right now is making me feel shitty. It’ll probably be a while before I voluntarily pick up a camera again (not counting class assignments, obviously).

Ben is teh awesomely awesome. I have amazing friends… I’m so lucky…

ZMONGS TRUFFLES!

So I’ve spent the past 12 hours with Ben making fresh, made-from-scratch truffles. We have plain chocolate truffles with almonds and mint truffles with sprinkles. Mmmm.

Yeah, that’s all I have to say. We probably ended up with between 170 and 200 truffles (of which I took about 60). If you want one (or two or three) poke me sometime.

I’m in a good mood today :)

Edit: If you’re one of the few who follows my photography, I’ve uploaded a bunch more photos into art (the studio shoot of Ben and my final assignment from color photo).