• MicroBlog!

    • mattkatz: #UWAC brings the wilds back to the urban. Part of ElectroSmog festival (3/20). I helped with menu code on http://ur1.ca/qfjv

How to show WordPress page hierarchies

Got a request for help from some the Eyebeam list.1 The folks organizing the Urban Wilderness Action Center for the international Electrosmog festival2 wanted some usability help.  Navigating between subpages of their projects was too confusing.

If you like the way the sub pages are listed out on, say, the Berlin Micro-Turf Expedition – here you go.

<?php
// Does this even have a parent?
if($post->post_parent) {
$parent_title = get_the_title($post->post_parent);
?>
<a href="<?php echo get_permalink($post->post_parent) ?>"><?php echo $parent_title;?></a>:
<?php } ?>
<?php
//ok let's find our sibling pages, but we don't need to list the current page
if3
$children = wp_list_pages("title_li=&child_of=".$post->post_parent."&exclude=".$post->ID."&echo=0");
else
$children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
if ($children) { ?>
<ul style="display:inline">
<?php echo $children; ?>
</ul>
<?php } ?>
  1. The Eyebeam folks are doing a cool skillshare on how “Tools and Models for Online Collaboration” []
  2. It starts March 20th!  It’s completely free!  Go! []
  3. $post->post_parent) && (get_post($post->post_parent)->post_parent []
Posted in Dev, PHP, Software, wordpress | Tagged , , , , , , | Leave a comment

The joys of a bilingual office

Everything is a learning opportunity.

From the fridge door.

Posted in Pals | Tagged , | 2 Comments

The Magic Ruby vs the Url of Excel: a short story with long code

Once there was a hacker who needed to rescue a beautiful princess from her prison on a creaking ship moored in the middle of the sky.   He made it onto the noisy old ship, slipped past the guards and tiptoed down the swaying halls to the room where she wept, chained to an excel spreadsheet.
Read More »

Posted in Hacks, Ruby | Tagged , , , , | Leave a comment

Volunteer Your Computer to Keep Privacy Possible

The good folks over at Wild Bee have an excellent article about how you can use your computer to help the world while you sleep. Lotsa people run SETI@home – I think it is because of the screensaver. Instead of a looking for aliens, you could help political dissidents in repressive regimes, protect anonymous whistleblowers, and even protect our intelligence agents overseas. Install TOR and volunteer your computer for global privacy.

Posted in Browsers, Hacks, Politics, Save.the.world, Software, security | Tagged , , , , , | Leave a comment

Is your internet provider cheating you?

The FCC has a tool you can use to find out if your broadband provider is advertising better speeds than they provide.Check it out over at Broadband.gov.

This seems like a nice crowdsourced way to catch cheats. It will work better the more people participate, so go over and take the test.

Also of interest is that they are using open source software to provide the tests – software that can be independently verified.

Posted in Economics, Incentives, Money, security | Tagged , , | Leave a comment

Somebody get that monster a cookie

I love the Bergen stop on the F train. Someone is always improving the terrible advertisements. This one was too good not to share.

Posted in Art, Hacks, Photos | Tagged , , , , , | 1 Comment

The country and the country

Geoff over at BLDGBLOG has a great post about how Australia’s strange bid to avoid refugees makes some islands both Australian and not Australian. These islands become strange limbo zones of tortured legality, much like in “The City and The City”.

It’s strange to see them give up sovereignty over land to avoid their own laws about providing safe harbor to refugees. It seems that the self-image of mercifulness is more valuable than the land, but less valuable than actually welcoming in refugees.

Posted in Incentives, Politics | Tagged , , , | Leave a comment

links for 2010-03-08

Posted in Links | Leave a comment

links for 2010-03-03

Posted in Links | Leave a comment

Installing the Android Developer Tools for Eclipse

If you’re trying to install the Android Developer Tools on Ubuntu and it keeps failing on a strange error:

An error occurred while installing the items
session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install, operand=null –> [R]org.eclipse.ant.ui 3.4.1.v20090901_r351, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
The artifact file for osgi.bundle,org.eclipse.ant.ui,3.4.1.v20090901_r351 was not found.

Here’s your solution:

sudo apt-get install eclipse-pde

Worked for me, found it here.

Posted in Dev | Tagged , , , | Leave a comment
  • Categories

  • Updates

    Enter your email address for updates:

    Subscribe via RSS
  • Old Posts