Archive for 2010

Two million milestones

Friday, December 3rd, 2010

It’s been way too long since I’ve written here on Udi’s Spot and perhaps we’re due for an update. I’d like to share 2 recent milestones that I’m quite proud of with all y’all (I just spent Thanksgiving in Alabama). First, my pet project of about 6 years, isitnormal.com, recently cracked 1 million unique visitors […]

Django templates: Simple numeric for loop with only built in components

Monday, April 5th, 2010

Scenario: In your web page, you want to print out a few identical items in a loop.  Perhaps you want 5 rows worth of initial inputs available in a form. Problem: Django’s template language has no way to do a simple numeric loop. Solution: {% for i in 12345|make_list %}     {{ i }} {% endfor […]