Archive for December, 2008

Selecting row number in MySQL

Wednesday, December 31st, 2008

Michael Yakobi sent us this clever use of MySQL's user defined variable syntax to return row numbers in a result set:

Occasionally, one wants to execute a query and have the rows in the results set numbered. This could be done using a variable. For example:


SELECT @row := @row + 1 as row, t.*
FROM some_table t, (SELECT @row := 0) r

I haven't used this feature of MySQL before, but it looks like it could be pretty useful. The user defined variables are scoped to a connection but persist between statements, so you can use them to store intermediate state information between queries or even perform iterative calculation within a single query, as was done in the example above.

MySQL User-Defined Variables

Of BOOL and YES

Wednesday, December 31st, 2008
It may not be immediately clear that the Objective C BOOL "type" is not actually a boolean type at all. This is a legacy from the original C language, which does not have an intrinsic boolean type (the iPhone GCC C compiler supports the ISO C99 standard which does define a bool type). To clarify, [...]

Protected: X-MAS Party 2008 Gallery

Wednesday, December 31st, 2008

This post is password protected. To view it please enter your password below:


iPhone 3G software unlock

Tuesday, December 30th, 2008

The friendly iPhone Dev Team hackers have been hard at work over the holidays and have promised to release the iPhone 3G software unlocking utility, called yellowsn0w, sometime tomorrow for New Year's Eve.

A few details from the iPhone Dev Team blog:

We have been working hard on a few other things. The main one being the 3G unlock codenamed "yellowsn0w". This is now completed and is currently being packaged into a user-friendly application with the simplicity that you see in QuickPwn or BootNeuter.
  • The target release date for the unlock is New Year's Eve 2008.
  • This unlock method is available to iPhone 3Gs that have 2.11.07 baseband or earlier, we did warn you.
  • You can tell what version baseband you have by going to Settings->General->About->Modem Firmware
  • The unlock requires a jailbroken 3G iPhone. It'll be installable via Cydia and so it doesn't matter if you have a Mac or PC.
  • Please refrain from updating your baseband, regardless of what version you're at.
  • We'll have complete directions on New Year's Eve.
  • We'll stream a live demo of the unlock before Christmas (see the update at the end of this post)

The software exists, as you can see from the video above, which was released last week, so I'm pretty confident we'll see the release as promised. From what I understand, the software is non-invasive and needs to be run every time the phone is booted, which will be executed during boot and invisible to the end user.

You do need an un-upgraded <2.11.07 version of the baseband, and for the near future you'll have to be careful not to upgrade it if you want to keep your phone unlockable. If you want to upgrade your phone but not kill the possibility of unlocking it, the team has some information on using PwnageTool to upgrade the iPhone firmware while keeping the baseband firmware intact. If you've already updated your baseband, consider yourself stuck with AT&Tuntil a new hack comes along.

Dev Team Blog (watch here for updates)
Original yellowsn0w Announcement
yellowsn0w Preview Demo

SiteLauncher Adds Keyboard Shortcuts to Your Bookmarks [Featured Firefox Extension]

Tuesday, December 30th, 2008

All platforms with Firefox: The SiteLauncher extension adds a keyboard launcher for your favorite bookmarks in Firefox.

Hit the extension's default launcher shortcut—Ctrl+Alt on my Mac, Ctrl+Space on Windows—then hit the key you see next to your bookmark of choice in the dark prompt panel shown below.


Once you've memorized the keys that go along with your most-used bookmarks, you can just hit the "Direct to Site Hotkey" plus the letter and off you go, no prompt involved. Of course all the URLs and keys associated with them are configurable. Quicksilver lovers will recognize this interface, which is a little easier to get used to than straight-up Firefox bookmark keywords. SiteLauncher is a free download that will work wherever Firefox does; thanks to the creators for including Lifehacker as a default entry.

SiteLauncher