Zend Queue with MySql …

Posted: September 29th, 2011 | Author: | Filed under: The IT Life | Tags:

… because life isn’t already hard enough.

If you are a masochist (or your boss is a sadist(*); or your project made you one; or you have the ambition to be so) and need to set up job queues through Zend Framework with a MySQL database. Here’s how it’s done.

Precursor: finding any practical information/tutelage about Zend_Queue is nearly impossible. The documentation is complete shite – sorry; it just is.  After fiddling around with it, I finally have a working model. Thought it worthy of ye good ‘ol fashion blog post.

Read the rest of this entry »


Split personality

Posted: March 11th, 2011 | Author: | Filed under: The IT Life | Tags: ,

My day job — these days — is hacking Java. Well, that’s an understatement. I’ve been writing what is best described as some form of multi-platform, embedded system for a MysteryProjectThatImSwornToSilenceOver with some really cool people WhoImNotAllowedToMention. It’s an audio-visual experience involving joysticks and touch-screens; it keeps my left brain in tune. My night job is, well, multi-lobal funk.

Read the rest of this entry »


Gitolite with friends on server and such

Posted: January 25th, 2011 | Author: | Filed under: The IT Life | Tags:

I’m mainly a lone-wolf developer but sometimes (and more and more so) I need to work with other people outside of my dungeon. I have one el-cheapo box acting as the ssh, web, git, and backup server. I think this is a fairly typical setup. I wanted to take an existing project, add it to git, and share it with other dudes while still being able to code directly (when necessary) on the server itself. The solution turned out not to be so obvious. Well, not to me at least.

Here’s how I set up git on that box; thanks to Ubuntu, Gitolite and specifically Silas Sewell’s quick guide.
Read the rest of this entry »


The smartest thing I’ve done all day

Posted: December 2nd, 2010 | Author: | Filed under: The IT Life | Tags: ,

Started this command this afternoon on a recently restored system:

find / -name .svn -print0 | xargs -0 rm -rf

Still waiting for it to complete before I beerelebrate.

I hate subversion.

Note: is prolly an inappropriate command for a system-wide death. Don’t care.


Magento’s ungood.

Posted: November 30th, 2010 | Author: | Filed under: The IT Life | Tags: ,

Back in the early 00′s, I had the responsibility of cleaning up a project that was way off track. At the time, I was working for EYC out of Brussels; our client was a specialty steel company who’s problem was simple: for each new order, find existing scrap from previous orders that could be used to fulfill the new order. It was a simple problem; the solution (in print) filled about 4 large binders. They (the code monkeys) had built a rocket to Mars.

My last remaining (ever!) PHP project is for the implementation of a Magento shop. The owners are friends of mine so it was with great pleasure that I offered my services. Now, a few weeks into it, I can’t help but draw comparisons with that recycled-steel/rocket-to-mars project.

Magento is overly complex. So much so that typically trivial things such as moving hosts, changing basic configuration, importing and exporting data, theming and extending, etc require heavy doses of sedatives and near-Papal patience.  Here’s just a few specific examples:

  1. Themes. Themes and styles are in completely different locations making customisation a real pain in the ass. There’s no easy way around this; structure is in app/design/frontend/design/default/YOURTHEME with styles hunkered down in skin/frontend/default/YOURTHEME.  Even using Nautilus’ tabs, this is a nightmare.
  2. Extensions. Want to include custom XML layout in your CMS WYSIWYG editor? Magento’s got that mastered.
  3. Configuration. This one rocks! Configuration is completely obscured (app/etc/config.xml and app/etc/local.xml) and is mystically merged together with other configuration settings from dis-joined locations; yes, including configuration from the DB. If you’re not a fan of simple configuration, Magento’s for you!
  4. MagentoConnect. Fans of WordPress’ cool remote installation feature might like this for about 10 seconds. It’s a built in extension-manager that sorta works. I’m not entirely sure who the audience is for this feature but if it’s for the site’s non-technical staff, prepare your diapers and stiff drinks for support calls.
  5. A class called Object. Oh my!

I could go on an on about how ungood Magento is. In their defense, I can tell they had two primary motivations (aka: they’re not stupid folks) for this architecture:

  1. Build a consultancy out of an open-source solution.
  2. Maximize flexibility.

Finally, I’d be completely idiotic to not mention that once everything is in place and you’re bald from the learning curve, things work. For an open source solution, that’s already something ain’t it?


Vote Moj tehnik and maybe I’ll sing you a song

Posted: November 11th, 2010 | Author: | Filed under: The IT Life | Tags: , ,

A few weeks back, Anej and I set out to develop a no-nonsense Android application for submission to the Mobitel Android competition. The basic premise was to create an application that provided the full range of services offered by mobitel: a blog reader, an application installer, support information (mobitel centers, etc) and a subscriber’s quota information including support for ordering new quotas.  Jan Ferme has a great write-up of the application complete with screenshots.

A bit about the competition …

There were 54 applications submitted. Some of them are really quite impressive and were obviously created with as much commitment and enthusiasm as we put into Moj tehnik. I’m in awe at the amount of skill and creativity that has, well, oozed from the woodwork. Not that I should be surprised, Slovenia is a technologist’s dreamland.

So, how can you help?

At the bottom of Moj tehnik’s submission page there is the omnipresent “Like” button. Just click it. The more votes, the happier we will be. They kindly don’t have any geographic restrictions; anybody, anywhere is accepted.

One more thing. There’s an easter egg in Moj tehnik. The first person who reports it will have a video of me singing about them in the shower submitted to Facebook. (No nudity of course.)

Fin


ota10

Posted: October 10th, 2010 | Author: | Filed under: The IT Life | Tags: ,

There is a lengthy discussion about possible improvements to the overtheair event and, well, to hack-a-thons in general over at Cristiano Betta’s blog. The conversation — which is a better read than this will be — sent my head spinning and somehow it landed in Microserf territory. This post is a month late. Awesome!

Read the rest of this entry »


Network abuse

Posted: July 19th, 2010 | Author: | Filed under: The IT Life | Tags: , ,

Spent the last days filling holes in my online profile. It’s ironic, I always say people should eat their own dog food when I’m guilty on all counts myself.

Read the rest of this entry »


Looking for a place to happen.

Posted: July 17th, 2010 | Author: | Filed under: The IT Life | Tags: , , ,

I’ve been a jack of all trades since 1996. The choice at the start of my career was simple: generalize or specialize. I generalized out of curiosity and boredom prevention. Now I wonder, is that approach a mistake? Is the question of generalizing or specializing still relevant? A friend of mine (Rod) said it perfectly: “People with broad interests are rarely successful.

Read the rest of this entry »


Android Inventor is RAD.

Posted: July 14th, 2010 | Author: | Filed under: The IT Life | Tags: ,

The announcement that Google was releasing a “no skills needed” tool set for creating Android applications sent shivers down my spine. Hearing it was MIT material caused a small seizure. It’s scary for us developers to find out that our introverted, caveman empires are made of straw. After all, saying you can program Android applications now means you have the same basic qualifications as Keyboard Cat.

Read the rest of this entry »