Vanity Foul
Dedicated to the wanderings of an egotistical mind.


20050301
Tuesday March 01, 2005

MPAA Death Squad?

Watch out, or they'll get you too!
( Mar 01 2005, 02:41:24 PM ) Politics Permalink
Trackback: http://www.brainopolis.com/roller/trackback/lance/Weblog/riaa_death_squad

forelse

I was just reading about Javascript Templates when I noticed a cool bit of syntax: {for p in products} ... {forelse} ... {/for}

I really like forelse, it's something I've always wanted but didn't know what to ask for. I run into this a lot: if (collection.size() > 0) { for ( /* iterate */ ) { // loop logic } } else { // do something else if array is empty }

I know there is little hope of getting this added to plain Java, but this would be a great thing for Groovy (if it doesn't already have it). What about other languages? Does Ruby/Python/others have it? I don't recall ever seeing this in Perl or Obj-C, but maybe I just overlooked it?

Note: Bloglines stripped the style="white-space:pre" from my code tags, you're RSS reader might (should) do the same. Sanitized For Your Protection.
( Mar 01 2005, 01:59:11 PM ) Technology Permalink
Trackback: http://www.brainopolis.com/roller/trackback/lance/Weblog/forelse

Re: The Contribution Society

I've got some thoughts on this, versus the Ownership Society, but they haven't gelled yet. So far I just have some ramblings, some holier-than-thou ranting, that doesn't really say anything, nor give an honest portrayal of my self or my thoughts. Am I brave enough to publish them?
( Mar 01 2005, 10:05:34 AM ) Politics Permalink Comments [1]
Trackback: http://www.brainopolis.com/roller/trackback/lance/Weblog/re_the_contribution_society



20050228
Monday February 28, 2005

take charge

Inside the top of the Jones Soda I just opened it says ?Take Charge of Your Life and Decisions.? I?m wondering whether doing this is compatible with accepting advice from a soft-drink bottle. [Crooked Timber]

Reminds me of the old Zuba billboards (man, that was a long time ago), which showed a pair of those wickedly striped pants and said "Be Different"; to which I always wanted to add "like everybody else".
( Feb 28 2005, 09:24:14 AM ) Personal Permalink
Trackback: http://www.brainopolis.com/roller/trackback/lance/Weblog/take_charge



20050225
Friday February 25, 2005

What Mood Are You In?
You Are In a Good Mood

Today, you're feeling pretty together and happy. While not everything is going you're way, you're keeping things in perspective. And it seems like things are looking up for you!


( Feb 25 2005, 07:15:23 PM ) Personal Permalink
Trackback: http://www.brainopolis.com/roller/trackback/lance/Weblog/what_mood_are_you_in

are you java powered? I was gonna get cool swag, but then there was a stupid form at the end just to download a graphic. Sorry, not even a free T-shirt can tempt me.
( Feb 25 2005, 03:52:12 PM ) Personal Permalink
Trackback: http://www.brainopolis.com/roller/trackback/lance/Weblog/are_you_java_powered

Do you remember when the exit strategy of choice was "get bought by Yahoo"?
( Feb 25 2005, 02:49:17 PM ) News Permalink
Trackback: http://www.brainopolis.com/roller/trackback/lance/Weblog/do_you_remember_when



20050223
Wednesday February 23, 2005

Amazon Friends

Have you ever heard of Amazon Friends? I hadn't. Tonight I received an invitation to be someone's "friend", someone I'd never heard of before. I suspected phishing, and went to Amazon manually. It is legit, I guess, though when I searched by my invitor's last name I found someone else. So I'm still suspicious.
( Feb 23 2005, 07:06:47 PM ) Technology Permalink
Trackback: http://www.brainopolis.com/roller/trackback/lance/Weblog/amazon_friends




archives
links