Joakim Nygård Archive Linked About

3 “Opened” Projects

10 Feb 2009 -

Staying focused:

Dad has a simple method for keeping himself busy and entertained with what he’s working on. He simply starts 3 projects at the same time. He can work on whichever he pleases throughout the day, and go back and forth as his mood permits. If he becomes bored with a task or needs to think about how to do something, he switches tasks. By the end of the day he’ll have completed, (or nearly completed), 3 different projects. This is much better than only making halfway through a single project and getting distracted.

Scienta ZF Debug Bar 1.1

10 Feb 2009 -

I am happy to announce the latest version of my debug plugin for the Zend Framework is now online. v1.1 includes improved view variable output and support for multiple database adapters. Have a look

Who Cares What Technology You Use

6 Feb 2009 -

Good advice by Jeff Atwood on developers’ fascination with shiny toys and new things.

Don’t let the pursuit of new, shiny things accidentally become your goal. Avoid becoming a magpie developer. Be selective in your pursuit of the shiny and new, and you may find yourself a better developer for it.

Throw Your Computer a Bone

3 Feb 2009 -

Excellent post by Alex Payne on apps that recreate the filesystem

If you want to store data of differing types within a lightweight organization system, I encourage you to check out the filesystem.

And a suggestion I’ve been living by with great success:

If you don’t want to be forever accumulating applications, store stuff as plain text on the filesystem. It’s dead reliable, you can shuffle it about however you want, and you’ll be able to search through it quickly, even without an index.

Programmers Are Tiny Gods

30 Jan 2009 -

Derek Powazek:

Programmers are the Gods of their tiny worlds. They create something out of nothing. In their command-line universe, they say when it’s sunny and when it rains. And the tiny universe complies.

ClickToFlash

29 Jan 2009 -

Brilliant plugin for Safari and WebKit that prevents Flash content from loading until clicked. Saves a few CPU cycles on flash based banners.

High Voltage Cable Inspection

15 Jan 2009 -

Fascinating video of a rather unusual job.

2009-01-14

14 Jan 2009 -

Post-apocalyptic The Remnants pilot looks really promising. I hope it becomes a series.

2009-01-10

10 Jan 2009 -

Palm Pre looks very cool. Could be worthy iPhone competitor. Multitasking seems cleverly done and webkit as dev platform will be interesting

Introducing the Scienta ZF Debug Bar

8 Jan 2009 -

Update: There’s a new blog post with details on version 1.4.

Since the early betas I’ve been using the Zend Framework in several professional and personal PHP projects with great joy. To aid the development process, I decided to build an easy to use debug panel. This first version requires the Zend MVC paradigm as it is implemented as a Zend_Controller_Plugin.

The Scienta ZF Debug Bar injects into every request a snippet of HTML with commonly used debug information. Time spent, memory usage and number of database queries are presented at a glance. Additionally, included files, a listing of available view variables and the complete SQL command of all queries are shown in separate panels. Combined, I believe it can cut down on the number of debug output statements like var_dump while developing - I know it did for me.

The output is a simple bar in the lower left corner of the browser window:

2009 Scienta Debug Bar

Clicking each of the sections short of the memory display will bring up a panel with more information:

To install, place the folder ‘Scienta’ in your library path, next to the Zend folder. Then add the following lines to your bootstrap file:

$scBar = new Scienta_Controller_Plugin_Debug(array(
            'database_adapter' => $db, // Zend_Db_Adapter_Abstract
            'memory_usage' => true,
            'collect_view_vars' => true));
$frontController = Zend_Controller_Front::getInstance();
$frontController->registerPlugin($scBar);

The constructor options array is optional and allows for disabling specific panels, e.g. if no database adapter is presented, the query section and panel will not be shown. More info and download Scienta ZF Debug Bar here.

This release is the first public version. As such there is surely bugs and clever features missing. Never the less, I hope it will make for a somewhat faster development process - let me know.

Update As several readers have pointed out, the look of Scienta Debug Bar is very similar to the Symfony Framework. The icons are from the excellent Silk Set by Mark James - also used by Symfony.

Archive