Thursday, June 28, 2007

Explicitivitytyty

Something rather peculiar puzzled me today... I went on to purchase the latest Nine Inch Nails album, eager for a fresh batch of their trademark sound. If you haven't heard about Year Zero yet, they had a killer marketing campaign associated with it that anyone interested in the viral trend should check out.

When the download was complete, I promptly went the the Recently Added smart playlist in iTunes, and there were the two last album I purchased from the iTMS: Year Zero, by NiN and The Best Damn Thing, by Avril Lavigne. Before you scold me for the latter, I bought it last month on my wife and kids' request... Everybody should know the artwork is all I wanted. ;)

What I found peculiar about this view was the rating on the tunes. Every single Avril Lavigne track was labeled as explicit, while none of the NiN ones were flanked by the telling red icon.

Had I purchased the radio-edit version?!? Argh... But no. After listening to the whole album, it just does not contain anything deemed offensive by the music rating authorities.

Really, what has the world come to when the music marketed to my kids gets such a rating and an album many puritan bodies would surely like rated 18+ is squeaky clean?!?

Personally, I think it's a giant yet brilliantly subtle [explicit] to the rating bodies. Kudos Trent and co. You did it again.

Charles de Gaulle: Vive le Québec Libre

On July 24th 1967, French president Charles de Gaulle delivered a speech in Montreal in which he declared 4 simple yet revolutionary words, echoing the Quebec separatist slogan: Vive le Québec Libre.

After reading about the said speech for years, I finally found the video on the Web in its entirety today. Regardless of one's (or even my) opinion on the subject, this is a historical moment by all measures.



The CBC Archives also has a newsreel for this day, highlighting the controversy this created in the rest of Canada.

Sunday, June 17, 2007

A "man pages" approach to information

It still amazes me how Unix man pages shaped my approach to digesting information.

I first started using Unix-based systems around 1997. My Unix mentor had, in retrospect, a fantastic approach to helping me out on my autodidactic path. Whenever I needed help with a command, he would always prepend his answer with "man".

I: How do you check your disk space?
Len: man df
I: ???
Len: man man

I am now more than grateful for his wisdom, but I cursed it many times in context.

What amused me the most about the man repository was how it was simply impossible to read one page without reading ten others, by curiosity if nothing else. The same holds true for many subjects, but man pages have this special twist that unlike so many other publications, they never dumb down their content to widen their audience reach, but instead historically assume that the reader is a highly trained operator and knows (or should know) everything about the rest of the system. This shapes an interesting vicious cycle, since it makes for a documentation system with essentially no true beginning or even accessible entry point.

While this might be perceived as a flaw in the man's matrix, it truly catalyzed my habit of always pushing myself to learn and know more than just what I need for the very task that brings me to a piece of information. To this day, I find myself quasi-incapable of reading anything without going into the research equivalent to a shark's feeding frenzy, unless I'm on a on a tight schedule, in which case I only limit and control myself.

In the end, two things are for sure: Thank [insert fav' deity here] for hypertext, and Digg, Facebook , Slashdot, et alii sure do not help one bit. ;)

Tuesday, June 12, 2007

What Hapens to your Body if You Stop Smoking Right Now


Motivation for me and others.

Found on Health Bolt, via Digg.

Monday, June 04, 2007

It's a Love / Hate Thing

It's days like this I both love and loathe my vocation all at once.

Love it: never bored, always have new things to learn, mentally challenging, great interaction with the many development communities, constant stream of new opportunities, etc...

Loathe it: there are only 24 hours in a day and my body and brain stubbornly force me to sleep for a few of these... Almost every day too...

Thirteen years of web app dev, and still see it it as the World's biggest playroom. :)

Saturday, June 02, 2007

parseMe 20070602 Update

Here's another update to parseMe (back story), my little GPL'ed PHP-based RSS/Atom feed reader for mobile phones and other web-capable devices.

You can find the appropriate links below:


Release notes:
  • Moved my CVS repo to Subversion (svn), hence the revision number differences. I considered moving to a distributed revision control system, since they're gaining in popularity, but I got lazy after the major rewrite. ;) Maybe for the next release.

  • This is a quasi-complete code rewrite. In this release, I have moved away from the initial goal of keeping within the 500 lines limit (including comments) and having an "educational" flavour, to focus instead on the code structure, the features, further increased security, etc. The security aspect does account for a lot of the extra lines, when coupled with the new features.

  • The parseMe class has now been substracted from the index.php script and has been moved to lib/php/parseMe.class.php.

  • One of the most significant features, on the user end, is that you can now request any number of feeds to be parsed at once. Keeping in mind that the main target audience for this tool is the mobile market (usually slow, tiny screens, low RAM, etc), the usual total number of feeds offered does not lead to major performance hits, unless of course the sources themselves are slow to answer the tool's request(s). You can of course still set your feed selection in the cookie-based preferences, which now allow for multiple choices.

  • With the multiple feeds feature, the next logical step was to enable some sort of sorting options. You can sort the entries by feeds, or from new to old (descending) or from old to new (ascending). Your favourite sort order can be saved.

  • You can now opt in or out of using the Google Mobile Gateway for destination links, right from the query form, and save your preferred choice.

  • On the server end, self-contained caching is now done through PHP data serialization, since there is no point in reparsing the same XML at every page load, after all.

  • On the security front, and primarily with the concern that we do have an application-writable directory (cache), there are quite a few improvements. Since the data contained in the cache files is not very sensitive by design (and if it is, I'd suggest using ssl and password protecting the app), this is really more of an exercise in good coding practices. And there is of course the concern of php injection attacks.

    • The cache filenames are now generated as a sha1 sum, with the help of an admin-defined shared secret so that they cannot be easily guessed.

    • All cache files now start with a dot (.) so that most web servers will not even serve them, and to be invisible when directory listing is enabled at the server level.

    • On the other hand, there is still a very strong emphasis on user input sanitazation and usage in the logic itself (EG: no client-defined source URL, source validity tests, etc).

  • Fully valid class documentation can be leveraged in IDEs such Eclipse, auto-documentation tool such as phpDocumentor, etc.