Skip to main content

Posts

Ways Django Can Import Things

How many ways can django import a module? Grep is hard for this. In .py files "import (.*)\..*" "from (.*)\..* import .*" "patterns\(['"](.*)['"]" "url(r?['"].*, ['"](.*)" In INSTALLED_APPS and other settings. Am I missing any? Better question: Why do I have to wonder if I'm missing any?

Bookmarks for March 26, 2010

How I Create those Del.icio.us link posts - TechLifeBlogged I am doing this now, but I stopped at the email so I can review and edit, rather than let it post automatically. Particletree » Visualizing Fitts’s Law Great visual examples of how Fitt's Law works and why. Fitt's Law tells us that the difficulty of hitting a UI target is reliably predictable based on the distance and size of the target. Every designer or developer working with UIs should know this. Checklists Exactly what I was looking for. Upgrades a select widget into a series of checkboxes, where we want toggle selection to be the default, not single selection. jquery-asmselect - Project Hosting on Google Code Will likely use this, instead, because it seems to preserve the actual select, which toChecklist didn't do

Good design is... - 52 Weeks of UX

Good design is innovative. Good design makes a product useful. Good design is aesthetic. Good design makes a product understandable. Good design is unobtrusive. Good design is honest. Good design is long-lasting. Good design is thorough down to the last detail. Good design is environmentally friendly. Good design is as little design as possible. —Dieter Rams via 52weeksofux.com Posted via web from See Calvin Develop

How To Understand Wavelets

I got acquainted with developing against the Google Wave Preview last week, and I'll be doing more of it this week. There are still many gaps in the documentation and in the public understanding of what exactly is going on in a lot of cases. This post is halfway between an introduction to Wave development and a story of my personal hurdles in my first experiments working with it. One of the first things you'll find in the Wave documentation is a diagram I have reproduced here.  This diagram is wrong. You're going to notice something when you look at this diagram and play around with Wave itself, the web client. You're going to realize you have no idea what the difference between a Wave and a Wavelet is. You don't seem to be able to even see the term "Wavelet" appear  anywhere  in the application! What's more, everything the API docs describe a Wavelet as is what the UI seems to call a Wave. This was really confusing to me and I know I'm not the ...

How To Count Your Day

I have been making an attempt to record my day. I'm doing this for a number of reasons. I want to know how my moods change through the day, when I'm happy or not, when I'm feeling motivated, and when I'm being productive. To facilitate this, I have a spreadsheet on Google Docs called "Daily Me" and I've built two sheets. One tracks daily and one tracks hourly. This is what I'm tracking. Daily: When I wake up Weight How many of my morning exercises did I do? How many of the things I want to do every day did I do? This includes morning pages, sketching, picking up my guitar, reading, and writing. When I go to sleep Hourly: Mood What am I doing right now? 1-10 scales on how happy, depressed, energetic, and motivated I feel at the moment "Productive" which I mark yes or no. I consider being "productive" doing whatever it is I feel I should be doing right then. This is the thing I try to keep in the green and use everything el...

DeferArgs on GitHub

A time ago I wrote a library called DeferArgs and I used it when I was still in Twisted code every day. I no longer have that fun, but I was reminded of the code and decided to throw it onto GitHub for anyone who cares for it. http://github.com/ironfroggy/DeferArgs An example usage, where foo could take any deferreds and would be called when they all fire. @deferargs def foo():     assert False @catch(AssertionError) def onAssert(error):      print "OOPS"      @catch()              def onOthers(error):      print "I WOULD BE REACHED FOR ANYTHING NOT CAUGHT ABOVE." @cleanup                                            ...