The Nested Float http://www.thenestedfloat.com/ Wanna see something cool? en matthewtdawson@gmail.com Copyright 2009 2009-08-07T16:10:46+00:00 Quote: Using a Jackhammer http://www.thenestedfloat.com/quotes/using-a-jackhammer/
  • For example - if you came in here asking “how do I use a jackhammer” we might ask “why do you need to use a jackhammer”
  • If the answer to the latter question is “to knock my grandmother’s head off to let out the evil spirits that gave her cancer”, then maybe the problem is actually unrelated to jackhammers

The bash.org quotes database.

(#)]]>
http://www.thenestedfloat.com/quotes/using-a-jackhammer/ 2009-11-24T01:33:02+00:00
Quote: Knowing The Scope http://www.thenestedfloat.com/quotes/knowing-the-scope/

Knowing the scope of the problem is more important than having what looks like a solution to the problem, and sometimes going through the effort of building a possible solution is the only way to truly understand the scope.

Google, from an article on how to tackle those massive programming projects.

(#)]]>
http://www.thenestedfloat.com/quotes/knowing-the-scope/ 2009-08-26T16:36:36+00:00
Article: A Simple PHP CLI Tool For Cleaning Up Filenames http://www.thenestedfloat.com/articles/a-simple-php-cli-tool-for-cleaning-up-filenames/ Clients are always sending us CD’s jam packed with meticulously named jpgs. It’s great that they’ve put all that time into organizing their files – it helps! – but you almost never get a CD that doesn’t have at least a few web-unfriendly characters scattered among those descriptive filenames.

In hopes that it’ll be handy to someone, somewhere, someday, here’s a fun little PHP CLI (!!) tool that takes a directory of images and removes spaces and parentheses, the two most common culprits of brokenness on the web when it comes to unix compatible filenames. The script takes exactly one (optional) argument, specified by the -p flag – the path to the directory you want the script to operate on. (That’s right, this baby works recursively!)

I actually can’t take any of the credit for this one. It’s all Tim’s doing. All I did was add the path flag/CLI stuff. Just download the file at the link below, rename with a PHP extension, and place in a convenient location.

Download now!

]]>
http://www.thenestedfloat.com/articles/a-simple-php-cli-tool-for-cleaning-up-filenames/ 2009-08-07T16:10:46+00:00
Quote: Google Wave: People aren’t looking for a replacement for email. http://www.thenestedfloat.com/quotes/google-wave-people-arent-looking-for-a-replacement-for-email/

And people aren’t looking for a replacement for email, or instant messaging, or blogs, or wikis. Those tools all work great for their intended purposes, and whatever technology augments them will likely offer a different combination of persistence and immediacy than those systems. Right now, Wave evokes all of them without being its own distinctive thing. Which means it’s most useful in providing reference implementations of particular new features.

Anil Dash, on the key reason he believes the open standards for Google Wave will have a tough time being adopted and adapted.

(#)]]>
http://www.thenestedfloat.com/quotes/google-wave-people-arent-looking-for-a-replacement-for-email/ 2009-08-07T15:45:13+00:00
Link: How Different Groups of People Spend Their Days http://www.nytimes.com/interactive/2009/07/31/business/20080801-metrics-graphic.html http://www.thenestedfloat.com/links/how-different-groups-of-people-spend-their-days/ Dan Benjamin.) (#)]]> 2009-08-07T12:54:57+00:00 Link: So you think you can ride a bike? http://www.salon.com/tech/htww/2009/08/05/so_you_think_you_know_how_to_ride_a_bike/index.html http://www.thenestedfloat.com/links/so-you-think-you-can-ride-a-bike/ Danny MacAskill's skill. And as Andrew Leonard notes, it's his decency (the red light shot is cute, sure, but I especially love the bit of him replacing the traffic gate after biking up its length) that in part sets this clip apart. That and the song. And the several clips of shocked bystanders going all "WTF?" after the fact. Oh - and that thing with the tree. (#)]]> 2009-08-05T14:19:51+00:00 Link: Vim Plugins: snipmate.vim http://www.catonmat.net/blog/vim-plugins-snipmate-vim/ http://www.thenestedfloat.com/links/vim-plugins-snipmatevim/ vi is that it's everywhere and that you have to do precious little to reasonably configure it. But now I'm finding all these indispensable plugins. And I'll be forced to install them on every server I ever touch. What a bother. Really. (#)]]> 2009-08-04T10:40:42+00:00 Link: Twitter, an Evolving Architecture http://www.infoq.com/news/2009/06/Twitter-Architecture http://www.thenestedfloat.com/links/twitter-an-evolving-architecture/ Willison.) (#)]]> 2009-06-30T12:10:57+00:00 Quote: Tehran is that, plus Twitter. http://www.thenestedfloat.com/quotes/tehran-is-that-plus-twitter/

Calling Iranian politics “byzantine” doesn’t quite do the trick, because all Byzantium really had going on was palace intrigue. Tehran is that, plus Twitter.

Gabriel Winant, from a piece detailing the ins-and-outs of Iran's current political scene. I love Twitter and all, but ascribing this kind of importance to the service is just way over the top.

(#)]]>
http://www.thenestedfloat.com/quotes/tehran-is-that-plus-twitter/ 2009-06-19T11:44:22+00:00
Quote: The end of fail. http://www.thenestedfloat.com/quotes/the-end-of-fail/

When someone says “FAIL”, what they’re really saying is, “I’m failing to understand a creative person’s constraints.”

Anil Dash, on the death of FAIL.

(#)]]>
http://www.thenestedfloat.com/quotes/the-end-of-fail/ 2009-06-18T11:52:44+00:00
Link: Take Your Design To The Next Level With CSS3 http://www.smashingmagazine.com/2009/06/15/take-your-design-to-the-next-level-with-css3 http://www.thenestedfloat.com/links/take-your-design-to-the-next-level-with-css3/ CSS3 rules worth using. The most useful part for me: which browsers currently support each tool. (#)]]> 2009-06-16T11:25:39+00:00 Quote: The First Version http://www.thenestedfloat.com/quotes/the-first-version/

If you review your first site version and don’t feel embarrassment, you spent too much time on it.

Reid Hoffman. (via 37signals.)

(#)]]>
http://www.thenestedfloat.com/quotes/the-first-version/ 2009-06-02T23:17:57+00:00
Link: resty http://github.com/micha/resty/tree/master http://www.thenestedfloat.com/links/resty/ lot. (via Simon Willison.) (#)]]> 2009-05-21T00:14:26+00:00 Link: Yahoo! Placemaker http://developer.yahoo.com/geo/placemaker/ http://www.thenestedfloat.com/links/yahoo-placemaker/ Jeff Croft.) (#)]]> 2009-05-20T18:52:36+00:00 Link: Visible Tweets http://visibletweets.com/ http://www.thenestedfloat.com/links/visible-tweets/ #)]]> 2009-05-20T00:06:34+00:00 Quote: Recursion http://www.thenestedfloat.com/quotes/recursion/

In order to understand recursion, one must first understand recursion.

Kai Diefenbach, quoting an unnamed source.

(#)]]>
http://www.thenestedfloat.com/quotes/recursion/ 2009-05-01T12:32:56+00:00
Link: What Twitter Looks Like For Twitter Employees http://www.businessinsider.com/what-twitter-looks-like-for-twitter-employees-screenshots-2009-4 http://www.thenestedfloat.com/links/what-twitter-looks-like-for-twitter-employees/ Category 4 clients see, so I found this look at the Twitter admin site quite interesting. It's way more barebones than I expected. (#)]]> 2009-04-30T13:16:33+00:00 Article: Upgrading a Django Server from Ubuntu Intrepid to Ubuntu Jaunty http://www.thenestedfloat.com/articles/upgrading-a-django-server-from-ubuntu-intrepid-to-ubuntu-jaunty/ I host Dawsoning at Mosso on an Ubuntu cloud server. If you don't mind doing a little server maintenance, it is, in my opinion, the best way to host your Django project. (And if you do mind server maintenance, check out Web Faction.)

I just managed to successfully upgrade an Ubuntu Intrepid server configured for Django to Ubuntu Feisty. Since you're here, you're probably trying to do something similar, so I hope these instructions help. My initial build more or less followed these instructions. You may want to check and see how closely your build matches mine before proceeding.

Your first task is upgrading the server. (All performed as root.)

  1. sed -e 's/\intrepid/ jaunty/g' -i /etc/apt/sources.list
  2. apt-get update
  3. apt-get dist-upgrade

The next part was tougher to figure out. It turns out that Ubuntu Jaunty ships with Python 2.6 as the default Python version. Python 2.6 has changed the site-packages directory (/usr/lib/python2.5/site-packages) to dist-packages (/usr/lib/python2.6/dist-packages). It's a sensible name change, so I'm not complaining.

I had a lot of stuff in site-packages – including my Django core files – so rather than symlink everything therein, I just deleted the bits already in the dist-packages directory and moved the contents of site-packages over. So:

  1. sudo mv /usr/lib/python2.5/site-packages/* /usr/lib/python2.6/dist-packages

You've probably also symlinked the admin media from your Django install into your project, so be sure to delete and recreate that link. For me, that process looked like this:

  1. sudo rm /home/dawsoning/public_html/static.dawsoning.com/admin
  2. sudo ln -s /usr/lib/python2.6/dist-packages/django/contrib/admin/media /home/dawsoning/public_html/static.dawsoning.com/admin

Happy upgrade!

]]>
http://www.thenestedfloat.com/articles/upgrading-a-django-server-from-ubuntu-intrepid-to-ubuntu-jaunty/ 2009-04-27T22:55:07+00:00
Link: Writing Software Is Like…Writing http://www.artima.com/weblogs/viewpost.jsp?thread=255898 http://www.thenestedfloat.com/links/writing-software-is-like-writing/ what this guy is trying to explain almost as much as I like how he does it. He's not really answering the question "What is programming like?" He's answering "Why do no two programmers ever produce the same work?" It's a great analogy. (#)]]> 2009-04-22T15:59:53+00:00 Link: Your Eyes Suck At Blue http://nfg.2y.net/games/ntsc/visual.shtm http://www.thenestedfloat.com/links/your-eyes-suck-at-blue/ #)]]> 2009-04-21T21:06:35+00:00 Link: tweenbots http://tweenbots.com/ http://www.thenestedfloat.com/links/tweenbots/ #)]]> 2009-04-12T21:37:30+00:00 Link: THRU-YOU http://thru-you.com/ http://www.thenestedfloat.com/links/thru-you/ Kutiman takes videos blends amateur music footage from YouTube into a PoMo dance party. Really great stuff. (via Kubicek.) (#)]]> 2009-03-14T09:20:08+00:00 Quote: Rubber Duck Debugging http://www.thenestedfloat.com/quotes/rubber-duck-debugging/

We called it the Rubber Duck method of debugging. It goes like this:

  1. Beg, borrow, steal, buy, fabricate or otherwise obtain a rubber duck (bathtub variety).
  2. Place rubber duck on desk and inform it you are just going to go over some code with it, if that's all right.
  3. Explain to the duck what you code is supposed to do, and then go into detail and explain things line by line.
  4. At some point you will tell the duck what you are doing next and then realise that that is not in fact what you are actually doing. The duck will sit there serenely, happy in the knowledge that it has helped you on your way.

Works every time. Actually, if you don't have a rubber duck you could at a pinch ask a fellow programmer or engineer to sit in.

Andrew Errington, from an awk list-serv discussion on debugging.

(#)]]>
http://www.thenestedfloat.com/quotes/rubber-duck-debugging/ 2009-03-10T09:12:26+00:00
Quote: Font vs. Typeface http://www.thenestedfloat.com/quotes/font-vs-typeface/

When you talk about how much you like a tune, you don’t say: “That’s a great MP3”. You say: “That’s a great song”. The MP3 is the delivery mechanism, not the creative work; just as in type a font is the delivery mechanism and a typeface is the creative work.

Stephen Coles, typography enthusiast and contributor to Font Feed, on the distinction between the terms "font" and "typeface." (via Jeff Croft.)

(#)]]>
http://www.thenestedfloat.com/quotes/font-vs-typeface/ 2009-03-08T10:45:22+00:00
Quote: Causing Rain Storms http://www.thenestedfloat.com/quotes/causing-rain-storms/

We’re just a million little gods causing rain storms, turning every good thing to rust.

I guess we’ll just have to adjust.

Arcade Fire, from the song "Wake Up."

(#)]]>
http://www.thenestedfloat.com/quotes/causing-rain-storms/ 2009-03-05T11:59:00+00:00
Link: Readability http://lab.arc90.com/experiments/readability/ http://www.thenestedfloat.com/links/readability/ here's a bookmarklet I'll actually use. From arc90, this tool takes that article you're reading at the Times and strips out everything but the title and the article content. No ads, no extraneous razmatazz, and no fuss. The only dissapointing part is that it removes story-related photos unless they're actually in the article body. (via kottke.) (#)]]> 2009-03-03T08:38:12+00:00 Article: Moving Servers? An ExpressionEngine Tip. http://www.thenestedfloat.com/articles/moving-servers-an-expressionengine-tip/ At Category 4, we’ve always used separate servers for development work and web hosting. Though the specifics of how that’s implemented are set to change in the near future, our basic model will remain the same. Development sites get a “dev” url while live sites get (naturally) a real, live url. If you’re like me and you’ve been following ExpressionEngine’s Knowledge Base article on porting an EE site from one server to another, let me share a secret.

You’ve been doing it the hard way.

I ran across the “Find and Replace” utility months ago when I was updating a client’s posts with some revised verbage, sitewide. This handy little tool does exactly what it says – that is, lets you search various resources in your EE database and replace specified bits within. You can find the Find and Replace utility by going to the Admin tab, choosing Utilities, and clicking Find and Replace.

What I’d missed initially is that you can actually select “Site Preferences” as a find-and-replace target for one or (if you’re using the multi-site manager) multiple sites. The reason this is important is that many site preferences aren’t easily accessible any other way than, as the Knowledge Base article linked above implies, clicking through tabs and tabs of control panel options. Where before I needed to find every instance of “http://devserver.com” and change it to “http://liveserver.com” through the admin interface, now I just use the included utility.

With Category 4’s WordPress sites, we’ll typically dump the database and do a search and replace on the dump to get at all the possible locations where the address may need to be changed. For some reason (I think because EE tends to serialize data when it really doesn’t need to) that approach never worked perfectly with EE.

But that’s fine. I like this new trick.

]]>
http://www.thenestedfloat.com/articles/moving-servers-an-expressionengine-tip/ 2009-03-02T19:42:25+00:00
Link: django-chronograph http://code.google.com/p/django-chronograph/ http://www.thenestedfloat.com/links/django-chronograph/ TWiD.) (#)]]> 2009-03-02T14:02:57+00:00 Quote: War in the World of Programming http://www.thenestedfloat.com/quotes/war-in-the-world-of-programming/

There is an unacknowledged war that goes on every day in the world of programming. It is a war between the humans and the computer scientists. It is a war between those who want simple, sloppy, flexible, human ways to write code and those who want clean, crisp, clear, correct ways to write code. It is the war between PHP and C++/Java. It used to be the war between C and dBase. Programmers at the level of those who attend Columbia University, programmers at the level of those who have made it through the gauntlet that is Google recruiting, programmers at the level of this audience are all people who love precise tools, abstraction, serried ranks of orderly propositions, and deduction. But most people writing code are more like my son. Code is just a hammer they use to do the job.

Adam Bosworth, from a 2004 speech on the primacy of simple, sloppy systems over rigid, perfect ones.

(#)]]>
http://www.thenestedfloat.com/quotes/war-in-the-world-of-programming/ 2009-02-28T20:09:37+00:00
Article: Elsewhere! http://www.thenestedfloat.com/articles/elsewhere/ It’s hard to believe that it’s been two months since my son, Asher James, was born. In a matter of hours, he’ll be returning from his first road trip with his Mom, leaving his Dad at home for four days to get junk done, fritter time away, and miss him. And his Mom, naturally.

TNF has gotten the short end of the stick since Meg and I became parents. (I’m planning for that to change, for what that’s worth.) The lack of action here is partly due to the fact that I launched another site, Dawsoning, a week or so after Asher was born.

Dawsoning is my version of a (very public) baby book. It’s written in Django and, in addition to providing a tidy little blog, aggregates Meg and my tweets, photos, and videos from sundry other places around the web. It’s fun to maintain because I barely have to touch it. Because the only people watching really care about the subject matter (my friends and family), I’ve gotten the strongest positive reaction of anything I’ve yet built on the web. It’s neat, really. Dawsoning gets a fraction of the traffic of this site, and yet it’s more loved by its followers. That’s a nice reminder for me of the relative value of resources on the web. Sure, a lot of people might be watching. But how many of those people really care?

Anyway, for those that are interested, Dawsoning is where I’ve been spending a lot my time. I’m looking to shake things up around here a bit. But in the meantime, if you’re in the mood to browse through a a quickly growing archive of the life of some other guy’s kid, you’ve now got one extra option.

]]>
http://www.thenestedfloat.com/articles/elsewhere/ 2009-02-28T19:43:54+00:00