Die in a fire, buddy.
That is all.
Oh actually, I forgot: your Http messages blow chunks if you refused to freaking show them in the response body. To debug a resource, I have to put explicit traceback prints into the tastypie code because I’m effing blind to what is going on. TASTYPIE_FULL_DEBUG is useless [...]
Sometimes a form (or series of forms) gets complex, and rather than drop a bunch of raw HTML widgets into the template, you’d like to leverage the built-in Form framework.
How do you handle a field that should be allowed to change without triggering form validation?
This might sound counter-productive, or a hack not worthy [...]
The Accessibility options have been moved in Mavericks to the Security & Privacy section of the system preferences. This might seem less intuitively located than before, but due to the way you enable and disable apps, it starts to make sense to group it into the Security/Privacy pile.
One thing that took [...]
Let me guess. You thought you knew what you were doing, writing that broad injection grammar, and it just inexplicably doesn’t match things you know it should match.
Here are some things I’ve learned about injection grammars, things that make them behave unexpectedly. For easier reference, I’m going to pretend like I’m making a broad [...]
This is a pretty niche scenario, but if video games taught me anything…
My company already set up tastypie and its ModelResource classes. Everything was great, and like true idealists we knew that one day we would want to power our own frontend AJAX (auto-completes, datatables, big SelectMultiple widgets, etc) with our own API. [...]
For the benefit of the internet-wide knowledge base, I discovered that about the time Optifine moved to version 1.5.1 A5, I became unable to use Minecraft. The symptoms were intensely strange. The game would start like normal, run at max frames per second for a second or two, and then slam to a dead stop [...]
For most uses, the .tm_properties file itself serves as an environment setup, and for other uses, configuring certain static variables directly in Preferences will solve your environment variable problems.
But if you have secrets and you’ve used system variables in /etc/environment or ~/.MacOSX/environment.plist, you may have noticed that TextMate 2 was ignoring them [...]
Dropping an image file onto a page and catching the event is pretty straightforward. We used to think the only way to [...]
The url naming scheme in tastypie is kind of unguessable for someone hoping for an easy ride.
To find the names for your current version (I doubt they’d change, given the miniature rant below), you would be best served by checking out the source, at tastypie/resources.py in the method called base_urls (make sure [...]
Response to June 2012 article: http://warp.byu.edu/site/content/1100
The article is coming up on its first birthday, but it’s on the web, and I found it by mistake while searching for an unrelated topic.
The argument of the author, a teacher of Java, was that the Django urlconf system is too verbose and [...]
Amateur at everything, coder, UI designer, musician, and writer. I break things apart and re-program them from scratch to learn exactly which problems people have solved in the past. I write for NaNoWriMo, and I'm nearing the self publication of a short story called Highway.
Python is my passion. Alastair Reynolds writes great science fiction, but has a really ugly website. My Mac is my Linux without all the driver failures. I hate working directly for salesmen. Huge scented candles are surprisingly nice when you work from home all day. I play AP Mid lane for my League of Legends team, but love a good run at Top.
- Design (2)
- Games (3)
- Hacks (23)
- Hard Drives (2)
- Hobbies (41)
- Writing (28)
- Huh? (3)
- Linux (7)
- Ubuntu (3)
- Mac (24)
- Music (1)
- Operating Systems (10)
- Opt-Out Diaries (1)
- Photo Editing (1)
- Programming (33)
- RAM (1)
- Rants (12)
- Troubleshooting (16)
- Uncategorized (3)
- windows (8)
- Work (1)