Saturday, March 31, 2007
Wordly Beats
So we went to the World Beat thing at Ava lounge (that's in ELib). Normally I'd be drinking and dancing and having a good time. But while I tried to give dancing a chance, I really just wasn't feeling it tonight. This was partially due to my temperance, partially due to the relatively small crowd and partially due to the a general sadness from the previous night's events.
With the two going-away parties, I've been getting a little worried. I'm starting to think that the whole time I'm here it's just going to be people leaving, one after the next. I had heard this before from some other friends, but I was kinda hoping that it would never happen to me... Is there just going to be a steady stream of good-byes, until I leave, playing the same role for someone else? Thinking about it makes me depressed.
Update:
Well upon re-reading this, it makes me seem a little bitter. I wanted to make it absolutely clear that I am extremely happy for those people graduating and leaving, going on to do the things that make them happy. This is just a larger symptom of my general belief that everyone I've ever known ought to live in the same city that I do. Maybe if things were a little different in Pittsburgh, if there were more work opportunities, leaving wouldn't be the obvious conclusion that it seems to be.
Tuesday, March 27, 2007
Ugh...
Well don't worry, I'll passively resist. I'll be out this weekend, and I'll be getting back to normal things. My body demands it!
Deadlines and Breadlines
Monday, March 26, 2007
Amateur Pro-Wrestling
Sunday, March 25, 2007
John Waters
For those of you who don't know, John Waters is this director of sort of funny but also shocking kinds of movies. I knew that he made "Hairspray," and I had forgottent that he also made "Pecker," but other than that I hadn't seen any of his other movies. It was definitely worth the $0 that I spent on the ticket, although aparently it started half an hour earlier than I thought, and they didn't let Kevin in, because it was so crowded despite the fact that we were all together.
Saturday, March 24, 2007
Last.fm and Livejournal?
Are there any livejournal gurus out there? I'd like to add my last.fm playlist image to a fixed spot on the top of my blog, but I can't really figure it out. Is this even possible? It's just an image... It looks like this:
As of post time, this hasn't synched up with the tracks I have played.
Friday, March 23, 2007
CD Review: Blackalicious, "The Craft"
Blackalicious, "The Craft" - 5/5
Blackalicious is a hip-hop group that I have been aware of for probably like 5 or 6 years, but never actually heard. They even played here on campus last semester, but I didn't go. It wasn't until I tapped into the iTunes share of some nice CMU student that I was able to hear them for the first time, and it blew me away. "The Craft" is smart, fast, fun hip-hop. Smart hip-hop can basically be defined as its own sub-genre and to me is hip-hop where the primary theme is not money or women. Good examples are Dead Prez, the Roots, Nas, Outkast (for the most part), Tribe Called Quest, etc. And it's fast, cause these guys have serious flow. If there's one thing I hate, it's jilted, slow rhymes, and I think this is one thing that popular hip-hop is full of. Anyway, I highly recommend this album if you're into hip-hop at all. The album starts out exceptionally strong, and most of my favorite tracks are at the beginning of the CD:
- World of Vibrations
- Rhythm Sticks
- Powers - Awesome dance-y type of song.
- My Pen and Pad - These guys rap at a ridiculous pace in this song...
- Side to Side - Hilarious. My favorite song on the CD. "She didn't have a clue. Tell you what to do, just shut and ride the groove!"
Thursday, March 22, 2007
Late Night Ponderings...
Tuesday, March 20, 2007
Image; No Context
Monday, March 19, 2007
C++ Will Never Die
void RPCCodeModule<T>::rpcReturn() {
// ...
// msg is not is not global, nor was it declared previously!
assert(false); // why I am using msg here? crazy
RPCMessage<T>* msg = new RPCMessage<T>(msg->getNeighbor());
// ...
}
}
Man-tastic
man pthread_self
and this can be done for any of the pthread library functions. Nice.
Sunday, March 18, 2007
Purp in the Dutch/Purp in the Cup
In LA I stayed with my best friend Rand who's now a masters students in nerdy robots at USC. One thing that got a little depressing while I was living in LA (and probably why I have such ambivalent feelings about LA in general) was that I was living near campus for all four years, and there's not really a whole lot going on around campus except for USC house parties/frat parties. So therefore when I came to Pittsburgh and started doing other kinds of things around town, it felt like a big contrast. Staying with Rand I realized how much of that had to do with being by campus. He lives in Echo Park, which is this cool area near downtown full of hipsters and rock 'n roll type people. It felt so much more vibrant than South Central, as you can probably imagine. There were neat bars, we went to some boutique comic book store, there was a gelato shoppe, a bunch of awesome places for breakfast, and more. It was just like more of what I would have liked to get out of LA when I actually lived there.
We hung out a lot with Rand's friends which was great cause they are tres tight. Some of them I knew from my USC days, but big-ups go out to all those whom I had never met before and yet still turned out to be dope individuals. We went to bars, we hung around the girls' and boys' house playing music and watching tv, we listened to tons of rap and pop music, and we even got to spend one glorious night in a hot tub out in Santa Monica.
Rand and I spent a fair amount of time nerding out, talking about programming languages and the like, which I guess was kind of a change of pace for him. For me it was a kind of a change of pace to be talking about mostly art, music and pop-culture with Rand's friends. In particular, a fair amount of our conversations centered around the concept of "Purp" aka "Drank," which is some kind of drug referenced in a lot of rap songs. I had heard of it before, particular w.r.t. the Houston Hip-Hop scene, but I had never realized how pervasive it was. In particular, that song "Let Your Shoulder Lean," or whatever it's really called is an implicit reference. You can see more fascinating stuff over at Urban Dictionary.
Anyway, I was really kind of bummed to leave. I was surprised how much I enjoyed LA. But don't worry, it still feels great to be back in P town. The flight home was rough, since I decided to take a red-eye flight. The whole city had this really low cloud cover when we left. Once we broke through, it was amazing to see the stars perfectly out of the airplane window right above LA. Looking down, I could see erie patches of light coming through the clouds. It almost felt like traveling under water, and seeing faint, glowing lava on the sea floor...
So much work back at school. Time to hunker down, extreme style.
Thursday, March 15, 2007
LA
Things are good (palm trees, sunshine, etc.)
For some reason all my friends here are in to New Orleans Hip-Hop.
More to come.
Wednesday, March 14, 2007
Export
Tuesday, March 13, 2007
Ladies and Gentlemen, We Have Compilation
You see because my computer was broken (it was the only one on which this simulator would compile), I was 'programming blind' for about two weeks. Well in two weeks you can create a lot of compiler errors, especially if it's C++ you're fooling with. I finally hacked my way through all of them, and I feel like at a minimum I have a better understanding of a.) how C++ works and b.) why I dislike C++.
Of course this is no indication that anything actually works. But it's nice to have actually finished something.
Monday, March 12, 2007
The Horror...
Two-stage name lookup sometimes leads to situations with behavior different from non-template codes. The most common is probably this:
template <typename T> struct Base {
int i;
};
template <typename T> struct Derived : public Base<T> {
int get_i() { return i; }
};
In get_i()
, i
is not used in a dependent context, so the compiler will look for a name declared at the enclosing namespace scope (which is the global scope here). It will not look into the base class, since that is dependent and you may declare specializations of Base
even after declaring Derived
, so the compiler can't really know what i
would refer to. If there is no global variable i
, then you will get an error message.
In order to make it clear that you want the member of the base class, you need to defer lookup until instantiation time, at which the base class is known. For this, you need to access i
in a dependent context, by either using this->i
(remember that this
is of type Derived<T>*
, so is obviously dependent), or using Base<T>::i
. Alternatively, Base<T>::i
might be brought into scope by a using
-declaration.
C++ Code Organization
http://www.gamedev.net/reference/articles/article1798.asp
Sunday, March 11, 2007
I Promised Myself I'd Never Stoop This Low...
// Let the hacks begin! We really need a compiler...
#define ENTER_RPC_METHOD { \
pthread_mutex_lock(&fblockGlobalMTX); \
rpcMethodStacks[pthread_self()] = \
rpcMethodStacks[pthread_self()] + 1; \
pthread_mutex_unlock(&fblockGlobalMTX); \
}
#define RPC_RETURN { \
int stack = 0;
pthread_mutex_lock(&fblockGlobalMTX); \
stack = --(rpcMethodStacks[pthread_self()]) \
pthread_mutex_unlock(&fblockGlobalMTX); \
if( stack == 0) { \
send(); \
pthread_cond_lock(rpcMutex); \
pthread_cond_wait(rpcConVar); \
pthread_cond_unlock(rpcMutex); \
} \
} return
I don't like programing multi-threaded applications, but I really don't want to do so in C++ with PThreads using Macro support. Deadlines loom...
Update
Okay, I at least realized I could put most of this code into methods, so it's not quite as U-G-L-Y any more.
More Pictures
http://picasaweb.google.com
Saturday, March 10, 2007
Rum Partay!
Sorry if:
- While dancing I dipped you and then promptly fell over (ladies, you know who you are).
- I slapped you on the ass really really hard (guys, you know who you are).
- I picked you up over my shoulder and possibly fell down (this one applies to the ladies and the gents).
Strangely this morning my kitchen smelled like puke, and my bathroom smelled fine. A little surprising considering that I think someone may have taken full advantage of my toilet, if you know what I mean. Also, melted marshmallow peeps are really hard to clean up. I think you have to get them as soon as they spill or you're pretty much toast.
I felt like a good number of people came. Not too many that I felt like an unpopular chump, but not so many that people were spilling out into the lobby. I really didn't want that just because I was already worried about disturbing my neighbors. Speaking of which...
This morning I found the following note attached to my mailbox, written on a slip of paper sponsored by Nexium (esomeprazole magnesium):
Next time you party so loud I will call the cops!
I'll be putting in a complaint to bldg. mgt.
Okay, so that kinda sucked. But at least the cops weren't called, and I'm not having any more parties probably until I move somewhere else so I think this is an acceptable level of damage for one night.
Finally, I was really happy that people brought their friends. There were even a few people who came just because they heard about it, which was great. I myself am the consumate party crasher, so it was great to see some folks returning the favor! (Note the total lack of sarcasm in the previous statement. And this one.) Cheers you good people of Pittsburgh and delicious rum! Jeers to hangovers, spilled drinks and broken lightbulbs! ;-)
Partay Pictures
Tuesday, March 6, 2007
This one is definitely friends-only...
I just got back from the liquor store. I spent $250 just on rum. It all looked so good, I couldn't help myself. Therefore, please make it worth my while.
Don't let me turn into a lush.
Come to my party on Friday.
Come thirsty.
Have an awesome time.
Break my stuff.
Put your drink down in inappropriate places.
Lather, rinse, repeat.
The System is Down
From all indications the disk on GSXXX.SP...has failed; disk diagnostics is turning up numerous bad sectors. We may have another 160GB SATA drive available in house...if not I'll order one.
Boo.
Anyway, I don't think there was anything critical on there, mostly because I use CVS to store the most important stuff, and the IT department does nightly backups of that machine. However, that was the only computer I have that can build this simulator that I am working on for my research project, so for the past week I've just been writing code without seeing if it actually works (a generally bad idea).
Eh, I guess it could've been worse, but it's just a little annoying considering how busy things are right now.
Sunday, March 4, 2007
"Goolge Maps is da bomb. True Dat, DOUBLE TRUE!!"
Anyway, I was way off. I had way too much trouble with Flash. Conversely, Google Maps was really freakin' simple to use. You can program it using JavaScript (at least for all the simple stuff we're doing), the API is really well documented, and it only took me like 30 minutes to get things up and running. Here is the prototype. Furthermore, if we get ambitious, we can do neat things like including the entire route of the hike, or something like that. Wicked.
In other news, I finally finished my SIGBOVIK submission yesterday at the "PC Meeting." As it turns out, all of the authors were on the program committee, so it looks like my paper may get in... But more importantly, it was a good environment in which to bounce ideas off of other people, and it looks like the final product is better than I was thinking it would be. I'll post a link in a couple days.
Friday, March 2, 2007
Rum Jungle
I'm an idiot...