I'm a reader of the wp-hackers mailing list. Besides some fairly useless and unproductive advocacy or opinion threads happening on an annoyingly regular basis, the list is also a very great place to share code tips and snippets. Someone asks a "how do I do this" question, and someone else (sometimes) comes up with a smarter, simpler or shorter solution than you'd thought of. Every time it happens, I say to myself "you really should write this down, it could be useful in the future".

So, I'll start now collecting those pieces of PHP code that I find particularly noteworthy, in this blog naturally, under the tag "WordPress Snippet".

The increasingly popular Prologue theme now has a dedicated website: Prologue Theme, with a convenient download link pointing to a .zip archive instead of an SVN repository. What I like about this theme is the idea they had to include a trimmed down version of the post interface right into the home page. I see a number of themes doing the same in the future.

PuTTy Connection Manager: PuTTy with tabs. This is awesomely awesome. If I had to chose one feature a software was missing since mankind and software exist, I would have pointed this one. Now I can die happy :) (1) «

This is a truly scary story : David Airey got his domain stolen because of a GMail vulnerability.

Short story: it was (seems it's fixed) possible to create filters on Gmail just by visiting a link or, say, loading a hidden frame on a malicious website. Like, create a filter to forward to evilguy@evilhost.com any email containing the word "password" and you're pretty much stealing everything from everyone. Long story: David's experience, or just the technical proof of concept and explanations.

Number one item on your to do list: check your Gmail filters right now and see if there is any suspicious forward you can't remember setting up.

Facebook acquisition, Google decline or Microsoft social network: everybody is making predictions for 2008. Twitter user predictions08 tracks them. Could be fun and interesting for the next few days. (2) «
The World of Hello World: some guy has put together a map of programming languages and rough locations in the world where they were created. Each language comes with its mandatory “Hello World” example. Very cool :) (2) «
Remove All Facebook Ads: the only Greasemonkey script for Facebook you’ll really need. No more adds in pages and sidebar, or “sponsored” items in news feed. (1) «
In: , On: 2007 / 12 / 04 Short URL: http://ozh.in/gn

Gmail implemented a very cool feature (or at least it was recently added to my account) in the form of colored labels. You can assign each label a color from a selection, and I find this really handy when you're scanning through all your unread mails at once. I like it.

Gmail Colored Labels

Too bad I'm still receiving various mails that were sent sometimes more than 5 days ago. I'd rather have instant mail delivery instead of shiny new features…

In: , , On: 2007 / 12 / 03 Short URL: http://ozh.in/gm

One of the lesser advertised and known feature of Facebook is that you can link to a prettier profile URL than the default and rather lame profile.php?id=123456789. For instance, my profile URL is either: Ozh (full profile, sucky URL) or Ozh (short profile public page, slightly less sucky URL).

From an SEO perspective it does not change a lot since complete profile pages on Facebook are unspiderable by search engines because they are behind a login, but from a usability and readability point of view, I think it's better, since you get a hint of the actual destination of the link when hovering it.

To craft your own "prettier profile URL", go to your profile, and scroll all the way down to the very bottom. Click on "Create a Profile Badge" and here it is. Not as cool as Last.FM's plain /user/username/, but better anyway.

Although not explicitly mentioned, it works the same for pages that you can create for a site, product or anything (example: my blog's page), and you can even make it shorter replacing "people" with just "p" (example)

Edit: AH. Those retarded dumbasses replied to my feature suggestion with an account disabling, because it seems that using "Ozh Ozh" as a name is a violation of their TOS. Very great support there :) It's back. What a bunch of donkeys. Who cares if you're using your name, a nickname or your dog's name, really :)

I just found out about Google’s Music Search (example). Don’t expect anything to find illegal MP3s (although Google can be used for this) but this is a neat tool when researching about a band: their discography, album names and release dates, reviews, even lyrics. I didn’t know about this. (1) «