scratch that niche!

Second Errata Notice on Professional CodeIgniter

On page 110, there is this code in the function updateCart:


if (count($fullproduct)){
if (isset($cart[$productid])){
$prevct = $cart[$productid]['count'];
$prevname = $cart[$productid]['name'];
$prevname = $cart[$productid]['price'];

The second $prevname should be $prevprice, like this:


if (count($fullproduct)){
if (isset($cart[$productid])){
$prevct = $cart[$productid]['count'];
$prevname = $cart[$productid]['name'];
$prevprice = $cart[$productid]['price'];

Errata Notice for Professional CodeIgniter

On page 87 (chapter 4) we have the following example code:

$home['mainf'] = $this->MProducts->getMainFeature();
$skip = $home['mainf']['id'];
$home['sidef'] = $this->MProducts->getRandomProducts(3,$skip);
$data['main'] = $this->load->view(’home’,$home,true);

The code should instead be the following:

$data['mainf'] = $this->MProducts->getMainFeature();
$skip = $data['mainf']['id'];
$data['sidef'] = $this->MProducts->getRandomProducts(3,$skip);
$data['main'] = ‘home’;
$this->load->vars($data);
$this->load->view(’template’);

Inbox Zero: Achieved (for now)

Many of you who know me know that I’ve been trying to follow the precepts of GTD (getting things done) and in particular, this idea that you can get to Inbox Zero. Inbox Zero is Merlin Mann’s approach to email management that involves a certain action-based zeal–get that sucker down to ZERO items.

Now, this doesn’t mean that you have to wade through every single piece of email, but it does mean that every single email gets the quick and dirty GTD algorithm applied to it. Does it take less than two minutes to do it? Then do it. Can I delegate it instead? Can I delete it? Can I postpone it? Can I stick it away in some kind of reference folder for future use?

Following these little rules, you can pound through a lot of data pretty quickly, because like most of you, 80% of what’s in my inbox tends to be (a) trivial notes back and forth with people, (b) spam, and (c) status updates on projects or other project-related requests.

When I get a project request, I stick it in a Stickies note file that I keep open on my spare monitor, assigning it a priority (HIGH, MEDIUM, LOW). If it’s a request to do something on a specific day, I put it in iCal and tag it with the right category (personal errand, send an email, teleconference, go to a meeting, etc). If its just a piece of information for my amusement, edification, or what have you, I send a quick response (if needed) and file it away somewhere (if needed). You get the idea.

Inbox Zero doesn’t mean that I’m suddenly taskless, sitting here like some dot-com rat awaiting more little email pellets. It just means that I’ve processed everything in my little universe into the right places–my calendar, my task list, or into some reference folder.

Since switching to the Mac a year ago, I’ve found that all things GTD have been easier to implement. Not only is there the Apple zen aesthetic in effect, but the tools are just so much more powerful. For example, the simple little search application on Mail.app makes it really easy to find emails wherever they may be tucked. I’ve started adding little tags to my outbound emails to make my sent emails a little less messy too.

Anyway, tonight at 9:03 pm central, after a year of steady work, I achieved Inbox Zero. In other words, every single email had been processed in one way or another, leaving a blank inbox.It probably won’t last. Here’s a picture that will last, though.

Take that, Demons of Email Inbox Disarray!

Build a Microsite Manager with CodeIgniter

My new WROX BLOX (kind of an e-book) has been published: Creating a Microsite Manager with CodeIgniter. In it, I guide you through the creation of a quick tool that will allow you to publish a very small microsite with HTML pages and downloadable files and other assets.

The Birth of an iPhone App: iHrrl

So there we were at iPhone DevCamp Austin (an official satellite of the iPhone DevCamp going on in San Francisco), trying to come up with a nice little app we could put into the Hackathon Contest for the weekend. The idea is, could we, a bunch of iPhone noobs, code something up in a weekend and submit it by Sunday at 4pm central?

Well, we were all miserably hot (it was like 104 degrees outside, with 20 developers crammed into a room with a Mac Pro and countless MacBooks, and a projector) and feeling a bit spiky about the whole NDA mess (our individual NDAs didn’t allow us to show each other our code or even talk about the iPhone SDK), so Chris Cooley, Steve Stedman and I got together and put together iHrrl.

The game is really simple. There’s a rat in a box. The idea is to agitate the rat so that it gets to a certain level of nausea. Once it gets into the “zone” you start making points. If you stop agitating the rat, the nausea level goes down, as do the points. Agitate the rat too much, and it hurls, game over. Let’s just see who had enough control to score the highest points.

The process broke down like this. Stedman did all the art in Fireworks. Marvelous rat, as you can see from the screenshot. I clarified the initial idea (a rat in the box that you make hurl) into an actual game that required skill, with some outside advice from our friend Joe Licari. I was also put in charge of animating the eyes, limbs, tail, and mouth of the rat. Chris did all the heavy iPhone coding, with me doing a bit of XP-style QA as we neared the deadline.

Now, I can’t talk about how he coded things up, as that would break the NDA. And I’m not sure where the game is posted right now (we emailed it to the committee in San Francisco, who laughed when they played it) so you could see it or play with it (not that you could unless you had an iPhone, as it requires an accelerometer). But take it from me, it’s DAMN funny, especially when the rat hurls.

In any case, now you see what you’re dealing with…a twisted, twisted mind.

« Previous PageNext Page »