December 2007
20 posts
“I feel like I’m “blogging” at a rich friend’s house. It...”
– Chris Onstad
Dec 28th
Dec 24th
“Do you have 20 years of experience, or the same year of experience 20 times?”
– Andy Hargadon (via → via → via)
Dec 23rd
2 tags
Dec 23rd
2 tags
highlight.js language file for Python profiler...
Chances are slim, but if you happen to use highlight.js for your syntax highlighting (highly recommended unless you’re doing it server-side) and also want pretty Python profiler output, just drop profile.js into highlighter’s languages directory. Don’t forget to load the ‘profile’ language and give it some style. Mine looks like this: 5765127 function calls...
Dec 23rd
1 tag
The state of Python profilers in two words
Use cProfile. This is for people who still wonder what they should use every time. cProfile was added in Python 2.5 after much discussion about the downsides of existing profilers. hotshot does not time C calls. If your code does a lot of work with built-in methods, like sorting lists, hotshot won’t report it. It has an option to record line events—how much time is spent on each line of...
Dec 22nd
2 tags
Speeding up dateutil: Python's heapq module turns...
This is an anecdote describing the process of creating a patch I came up with for the python-dateutil module which resulted in significant performance gains. It’s a good demonstration of the heapq module included with Python. For the new version of my RTA bus schedule app, I decided to use the dateutil module for all my time calculations. This is a fantastic module that makes finding...
Dec 21st
Dec 21st
Colors
Gary: Orange is the worst color ever, Brian probably couldn't even use orange!
Steve: What, orange used to be like his favorite color I think!
Gary: Brian is perfect at colors!
Dec 18th
1 note
Tumbling en masse
I signed up for tumblr on December 11th. A healthy dosage of peer pressure seems to have brought along Steve, Spiros, Sara, Mike, and Gary. It’s all fun and games until we’re surrounded by zombie web pages. Now accepting bets for last man standing.
Dec 18th
Frameworks Exist for Conceptual Integrity →
Looks like Pylons has been around long enough for people to start bashing it. This is more than that, of course.
Dec 18th
Idea: vim + web 2.0
Latest web app idea: People post a block of text A and the text after being edited in some way B. Others post the vim keystrokes to get from A to B. Everyone votes on the best way and walks away smarter. (Optional) The server runs a recording or something to confirm that each submission works. Let’s get started.
Dec 18th
1 note
Dec 17th
Word Aligned →
I only just now discovered Word Aligned (thanks to Pirnat sharing it on Google Reader), and now I feel like I’ve been missing out. It reminds me of what Gary’s blog would be like if he actually cared.
Dec 16th
WatchWatch
HIGH-FIVE HOLLYWOOD! — thanks bgolub.
Dec 16th
1 note
1 tag
Testing code highlighter
Tumblr doesn’t seem to be able to let me see a rendered version of private posts. Ignore this. Post.test_inline_code() Python: from django import template from django.utils.text import force_unicode import re register = template.Library() def natural_sort_key(s): return tuple(int(s) if s.isdigit() else s for s in re.findall('\d+|\D+', force_unicode(s))) @register.filter def...
Dec 15th
“Secret science triangle reveals its secrets to science on science blog spot dot...”
– Steve
Dec 15th
RTA Schedule 2.0
Despite having a good deal of work to send off to Unstoppable Rocket clients this week, I managed to get version 2.0 of my RTA Schedule web app online. It may not look much different, but there are some big changes: Times are correct 24 hours a day, 7 days a week (I was lazy before and used a shortcut that lied under certain conditions just after midnight). Gracefully handles newly effective...
Dec 14th
3 tags
Dec 12th
1 tag
This might work
In an effort to jettison a project or two, I’m going to stop trying to be a control freak about writing my own blog software, and put it into tumblr’s hands for now. As I mentioned previously, I was getting so sick of MovableType that it was causing me to avoid posting things. Hopefully this will get me pushing updates more often and shift some attention to some of my more neglected...
Dec 12th