Thursday, July 31, 2008

Griffey to the White Sox?

In 1998, this trade would have been something to behold. However, in 2008 I question the sense of this move.

Of course, it seems like the Griffey to the South Side rumors are an annual thing. However, this is the first time it has gone past rampant unfounded speculation to rampant somewhat founded speculation. It all could be nixed by Griffey, but we'll see.

Tuesday, July 15, 2008

The PHP corner: A substr conundrum

For all you rabid PHP developers out there, I'll occasionally be passing along some stuff I found out while working on various projects I am involved with (both inside and outside of work). Some of these revelations may seem trivial to you, but they are virtually epiphanies to me, and hope that somebody might find use of my ramblings.

Today is a short fact regarding the substr() function. Were you aware that as of version 5.2.3, putting a negative value for the position parameter that is longer than the length of the string will result in an empty string, instead of the whole string? I wasn't, and it certainly perplexed me.

Example:

$bar = 'Quo Vadimus is awesome';

$foo = substr( $bar, -54);

In an older version of PHP, $foo would output:

Quo Vadimus is awesome

In 5.2.3 and on, however, it outputs an empty string.

The More You Know...

Monday, July 7, 2008

Quick and Pointless Notice

I have some cool stuff I'll be posting throughout this week. For now, however, I'll leave you with a quick list of my opinions on three movies I saw the past two weekends.

Wall-E - Much, much more on this later, but my view at this time is that this movie should be seen by everybody. It quite possibly is my favorite Pixar movie.

Wanted - Insanely over the top, incredibly violent, and rather goofy. Still, it was pretty fun to watch.

Hancock - Not quite sure what kind of movie it wanted to be, but still a rather entertaining movie nonetheless.

UPDATE: By this week, I obviously meant the week of July 14. Yeah, that's the ticket. Anyway, some stuff might come, if I feel up to it. Last week just ran away from me.