Index ¦ Archives  ¦ Atom  ¦ RSS

Enyo - Improved Mixins [Updated]

Thu 29 September 2011

I've sent in a patch for slightly enhanced mixin support for Enyo, but since I have another post depending on that support I'll post the patch here until it gets included.

This patch mainly provides the ability to have mixins that handle events and allows them to join with kinds …continue

Continue reading →


Enyo - Enterable Inputs

Sun 25 September 2011

I've noticed that there's no "submit" button feature in WebOS Inputs like there are in normal web forms. If you have a input type="submit" in your form, pressing Enter in any form input will automatically press that button because that makes sense.

However, in WebOS there is no such …continue

Continue reading →


Enyo - Common Panes Toolbar

Sun 25 September 2011

Turns out, most SlidingPanes have a Toolbar with a GrabButton on the bottom so it seems like SlidingPane should have an option to automatically include one such Toolbar. Since it doesn't, I've written a quick kind that creates a toolbar with the little GrabButton for adding to the components of …continue

Continue reading →


Enyo - Service With Consistent Parameters

Sun 25 September 2011

In WebOS, services live as long as you have an outstanding call with them plus 30 seconds. Once that ends, the service is closed and any data it was storing temporarily is gone. Therefore, since I have an app that needs the username/password of my user for all requests …continue

Continue reading →


Enyo - Auto-retry service timeouts

Wed 21 September 2011

Recently I've been working with service methods that either work or timeout, and timeout usually means just retry. This is mainly because the ajax call inside of them goes to a hit-or-miss web service. So to deal with that I started having my failure handler function call the method again …continue

Continue reading →


Django (Simple) Template Maker

Fri 16 September 2011

I was recently building an app that takes an email template and sends it to a membership list, and thought that I should be able to allow the users to make the templates themselves. The templates that I had seen for the past 4 years for the emails have been …continue

Continue reading →


Hidden Talents in Movies and TV

Wed 14 September 2011

Whenever the camera enters a character's house, that character always does something 'to relax' or just in their free time, but they've done it for several years and they're really, really good at it.

You never see a character say "Yeah, I paint" and then see horrible, ugly, two year-old …continue

Continue reading →


Random weighted choice

Tue 30 August 2011

Many times I need to choose randomly from a list of 'neighbors' according to some weight assigned to them, and I'd like to share my technique. My language of choice is Python, but this technique should work in any language that has some sort of list and a random number …continue

Continue reading →


Computational Self-Cannabalism

Mon 29 August 2011

The world has been trying to find out how to run the same code on all machines since the first programmer had to port code. Now, we've accidentally hit the answer to all our dreams, ignoring all the work done in the arena like wxWidgets and Qt.

Today, almost any …continue

Continue reading →


Redmine/ChiliProject Gitolite hosting

Thu 04 August 2011

This is another one of those 3-hour debug sessions that ended with a single line of code, all other changes being useless.

I was trying to setup my ChiliProject installation to use gitolite, but here's a gotcha that I think many people will fall into: most gitolite tutorials have the …continue

Continue reading →

© Fahrzin Hemmati. Built using Pelican. Theme by Giulio Fidente on github.