These are Dark Times, Lad
  • Stories
  • Google Chrome Themes
  • More Things

django_select2 and tastypie

By Tim On 2013.05.03 · Leave a Comment

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. [...]

Continue Reading →

Minecraft 1.5 Optifine — Startup Freezes

By Tim On 2013.04.02 · 4 Comments

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 [...]

Continue Reading →

TextMate 2 ignoring existing environment variables

By Tim On 2013.02.08 · Leave a Comment

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 [...]

Continue Reading →

Submitting Javascript File API data synchronously

By Tim On 2013.02.04 · Leave a Comment

The Javascript File API is cool stuff, especially when you combine it with the emerging drag-and-drop API events. Some pretty simple building blocks make a lot of sophisticated interface designs possible.

Dropping an image file onto a page and catching the event is pretty straightforward. We used to think the only way to [...]

Continue Reading →

django-tastypie url names

By Tim On 2013.01.31 · Leave a Comment

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 [...]

Continue Reading →
django_logo

Why Django doesn’t need better urls.py

By Tim On 2013.01.31 · Leave a Comment

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

The argument of the author, a teacher of Java, was that the Django urlconf system is too verbose and [...]

Continue Reading →

Capturing tricky script output in TextMate’s HTML output window

By Tim On 2013.01.29 · Leave a Comment

Several of the more complex programs I try to execute from a TextMate command don’t uniformly echo their output the same way. This frequently led to programs behaving nicely in a chain of stream-processing bash commands (like sed), but some of the output was mysteriously missing.

Suddenly, as the script ends, a bunch of extra [...]

Continue Reading →

Textmate HTML output window blank

By Tim On 2013.01.28 · Leave a Comment

While designing an HTML output, I’ve discovered at least one horribly, soul-punishing, tormenting behavior that probably made a part of me die inside.

While echoing output to the HTML window, if it encounters the following, it will be outright blank, with no explanation whatsoever:

<html><head><link type=”text/css” rel=”stylesheet” href=”$PATHNAME” /> …

Infuriatingly, the document goes [...]

Continue Reading →

Chrome’s fullscreen Flash performance is slow, laggy, and heartwrenching

By Tim On 2013.01.28 · Leave a Comment

Chrome packages its own Flash implementation (“Pepper Flash”), which is unfortunately horrible at the moment. I ideally agree with the steps the Chromium team has taken to implement their own Flash that isn’t vulnerable to the host of exploits found in the Adobe version, but it’s completely unbearable right now. It gives me anxiety attacks [...]

Continue Reading →

Where is virtualenvwrapper.sh?

By Tim On 2013.01.21 · Leave a Comment

Using Macports on OS X is beautiful, but sometimes when you install a library, it does something unexpected. No so wholly wrong that you think the creator is stupid, just messed up enough to detour you for 20 minutes while you figure out what happened.

I like to keep my list of install ports short—I’d [...]

Continue Reading →
← Previous Entries
  • About.me

    Tim Valenta

    Tim Valenta

    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.



  • Recently

    • django_select2 and tastypie
    • Minecraft 1.5 Optifine — Startup Freezes
    • TextMate 2 ignoring existing environment variables
    • Submitting Javascript File API data synchronously
    • django-tastypie url names
  • Topics

    • Design (2)
    • Games (3)
    • Hacks (22)
    • Hard Drives (2)
    • Hobbies (41)
      • Writing (28)
    • Huh? (2)
    • Linux (7)
      • Ubuntu (3)
    • Mac (23)
      • iOS (1)
      • OS X (19)
      • Xcode (1)
    • Music (1)
    • Operating Systems (10)
    • Opt-Out Diaries (1)
    • Photo Editing (1)
    • Programming (30)
      • Java (7)
      • Javascript (2)
      • Objective-C (1)
      • Python (15)
      • Textmate (5)
    • RAM (1)
    • Rants (11)
    • Troubleshooting (14)
    • Uncategorized (3)
    • windows (8)
    • Work (1)
  • 4500S bash Chrome dell development dimension Django Firefox flash function Google hard drive Highway 2 Hyper-V icon IDE IE Internet Explorer iTunes java JavaScript Linux mac Macports method Microsoft mountain lion Music MySQL MySQLdb nanowrimo Opera OS X panda3d patch php pip productivity Programming Python python 2.5 theme vista windows Windows 7
"RT @selenamarie: Can we get 150 people to join https://t.co/HHsSV8sz0u ? :) #pyladies" — timvalenta

These are Dark Times, Lad

Pages

  • Stories
  • Google Chrome Themes
  • More Things

The Latest

  • django_select2 and tastypie
    This is a pretty niche scenario, but if video games taught me […]

More

Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the RSS feed.
© 2011 These are Dark Times, Lad
Platform by PageLines