After trying for many years to maintain a personal blog, with many starts and stop, I have given up. I realized I don’t *want* to write personal thoughts on the web. Instead, I’ve been messing around with my own custom tumblelog scripts. I use delicious, Flickr, last.fm, and other services that I want to aggregate [...]
Sometimes, taking a few minutes to do a simple thing will save you a headache down the road. Like changing the oil in your car, or brushing your teeth every night, or automatically backing up your databases. The development server that I mess around on has recently accumulated a lot of data that I really [...]
I decided to spend the weekend getting more comfortable working and developing in Django (and coincidentally this MacBook Pro). I’ve learned a lot already and I think this post might help some coming from other web development architectures to Django. In a previous post I discussed installing Django and getting it to play nice with [...]
06 Feb
by: Matt in Development, JavaScript
tags: JavaScript, prototype, round, rounding
This very simple function does exactly what the title suggests, it allows you to round to any specified accuracy. function roundTo(number, to) { return Math.round(number * to) / to; } alert(roundTo(1532, 100)); // 1500 alert(roundTo(26, 10)); // 30 If you want to get fancy, you could also modify the Number prototype for a more “integrated” [...]
05 Feb
by: Matt in Development, JavaScript, PHP
tags: embed, JavaScript, php, SCRIPT
For an internal project I’ve been working on I have to provide embeddable versions of internal tools for deployment on remote partner sites. I achieved this in my framework through, what I call, output format filters. Let’s say you have an action “cloud” in a controller “markets”. The URL to access this resource in its [...]
03 Feb
by: Eric in Random
tags: ads, businessmodel, revenue
If you’re building a startup and your revenue is all ad based, it’s like eating dessert before eating the full meal. Yes, it might taste good at first, but sooner or later you’ll be on the toilet…and uncomfortable. Over the past few weeks I’ve read a lot of articles like this one, which reiterate how [...]
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.