If..Else Log



DnD Sortable Lists with JavaScript and CSS

Drag-and-drop Sortable Lists with JavaScript and CSS. Pretty cool.

Singing in the rain with Golf

Here’s a long overdue link to the excellent Singing in the Rain/Golf GTI ad

Spam, Matt, and WordPress.org

I’ve held off writing anything on this for various reasons. However, Jonas presents a level-headed post on the WP cash for Google Juice issue. Dougal Campbell also chimes in with a post on his blog.

Walking Octopuses

Science has a report on Octopi that *walk* along the seafloor using two alternating arms and which use the remaining arms for camouflage. Check out the videos!


One of the interesting things of WP 1.5 is the ability to rerun The_loop again in the same template. The main way to do this is to execute a rewind_posts(); after the_loop. This will reset the post counter so that you can make another loop round.

The slightly more interesting way to use multiple loops is to make use of query_posts(). What this basically does is reinitialises the query object. The clever thing about this function is that you can pass it parameters to make it a totally different query. We can, for example, make the second loop fetch back only posts in the ‘shorts’ category.

The following snippet illustrates one of the ways we can do this. The general format of index.php is the following

What we can do after going round the loop once, is execute query_posts. We’ll pass in a parameter to get it to fetch only posts from the site category. This will rebuild the posts collection and *implicitly* resets the post counter.

Hence, the page will be:

If you want more information on the arguments which you can pass to query posts, see part 2: query_post_redux

Brandon Peterson’s gallery

Nice looking flash gallery by Brandon Peterson.

Calmighty privacy

A couple of intimate posts by Calmighty.

Link prefetching

Via Kottke: Link prefetching is a browser mechanism, which utilizes browser idle time to download or prefetch documents that the user might visit in the near future. Here’s Slashdot’s take on things.

The man who saved the world.

Stuck with the judgement call of all time, Stanislav Petrov made a decision which ultimately meant that we are still here today.