Index ¦ Archives  ¦ Atom  ¦ RSS

Enyo - VirtualLists and Other Transforms in Toasters

Fri 30 September 2011

Recently, Chrome went to 14 and many people got background updates to it. Turns out that in Chrome 13, rendering of -webkit-transforms changed handling of z-index's. Well, that means a Toaster that isn't webkit-transform'd and has a background suddenly pops up on top of anything that is webkit-transformed, such as …continue

Continue reading →


Enyo - Device-based Assets

Fri 30 September 2011

With multiple screen sizes available for Enyo apps, it's likely that you want a single Enyo app to work on both phones, tablets, and anything else that may come out (HP or otherwise). The code below is a simple way of separating tablets from phones, but can easily be upgraded …continue

Continue reading →


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 →

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