Tuesday, November 18th, 2008
Django Snippets
At work I had to build a form for time-off requests, since in addition to the development I've been doing I also do the scheduling. Using Django for the time-off application, I came up with a calendar date picker which allows you to click a single date to choose one day, and clicking a second date chooses the range of all dates from that one to the first one.
Anyway, although this is in django snippets, there are only 3 places with django specific template variables, which only assign the default dates to the calendar. The rest is all straightforward css, html, and javascript.
If you need a calendar date picker for your form, go to django snippets and check out this code. If you use PHP, Django, Ruby, Cold Fusion, or anything else, you can still use this. You just need to change the defaults (all the django-specific stuff is in the text fields and the navigation--where it shows the month).
This is really easy to customize however you want. All you need to do is put the stuff in a file and include it where you want the calendar.
Enjoy.
10:17pm by Brandon //comment 14 views Sunday, November 16th, 2008
Speed Limits
I truly believe if I'm going less than the speed limit and am still able to hit the person driving in front of me (not counting if he is signaling and waiting for a turn), that I should be at no fault. People who drive 10-15mph below the speed limit and aren't bus drivers should not be allowed to drive.
Now that I'm driving again, I will probably have a lot of my road-rage-rants on here. Maybe I'll make them their own section at some point.
In other news, I need to find a web host that supports python. I don't really NEED to, I would just really like to. I want to take a stab at creating my own blog. Don't get me wrong, I love b2evolution. Wordpress is pretty cool too. And I even have a blogger account. But I want to move on from simply skinning my blog, and have more control over the background. The problem with all this, is that I'm paid up for the next year and a half with my current host which, although refundable, I am guessing is a giant pain in the ass to cancel.
Plan of action may be to create my own server to host the python stuff, and use my hostmonster account to serve all my media. This may work, but if hostmonster keeps going down the way it does, I'll definitely need to make a switch.
12:18am by Brandon //comment 60 views