As someone who steadfastly charges hourly for freelance work I try to avoid creating unnecessary code challenges for myself while in the design phase because when it comes time to code I'll either have to compromise the design or decide to put in extra un-billed hours because I want to solve the problem for personal reasons, but that would be bad business if I were doing freelance sites for a living rather than as a hobby to work on my design skills.
Wednesday, August 31, 2005
The Man in Blue > footerStickAlt: A more robust method of positioning a footer
Parasites brainwash grasshoppers into death dive
Monday, August 29, 2005
Cybil's Site #1 for a New Zealand Google Search
Saturday, August 27, 2005
SonSpring Design
Friday, August 26, 2005
Newton Canyon on Bike
- Location
- From the 101, 7.9 miles up Kanan Road (becomes Kanan Dume Road at Mulholland Hwy) park right before the 3rd tunnel. Head west down the trail into the canyon.
- Misadventure
- This trail fucking kicked my ass. I walked the bike halfway back up out of the canyon sweating profusely. There are plenty of excuses, the heat, the washout from this spring's heavy rain, but it all comes back to that I'm horribly out of practice biking and horribly out of shape. Oh well, I'll get there.
I think I'd better go back to Las Virgines and Malibu Creek and get a little better at this biking thing before trying the Backbone Trail again.
Thursday, August 25, 2005
Preventing JavaScript File Caching
"I can't reproduce the bug you entered. Clear your cache, you must have the old version of that javascript file."
I don't know how many times I've had to say this as a front-end developer. But the problem of cached outdated JavaScript files is only going to get worse as we get better at separating Structure from Presentation from Behaviour. And it's also worse when you are doing more frequent updates to a production environment (just a dream when it comes to secure apps, but maybe a possibility for ongoing development of internal-facing apps). The biggest problem is that users can't be expected to know how to clear their caches. Things will just break and magically fix themselves if the user even has the patience to wait around until their cached file gets updated.
I googled around and found a theoretical answer in a forum somewhere. Based on what I found here is the solution that Josh and I put into practice:
<script type="text/javascript" src="/js/webLibrary.js
?buildtime=@BUILD_TIMESTAMP@"></script>
...where @BUILD_TIMESTAMP@ is a variable to be replaced by the back-end language / build script of your choice. Here are the issues that this solves:
- Browser does not pull the JS file from cache when there has been a new deployment.
- Browser cache continues to function as it should in between builds (speeding up page loads)
Tuesday, August 23, 2005
The Long Tail: "Just enough piracy"
Monday, August 22, 2005
Friday, August 19, 2005
Wednesday, August 17, 2005
Tuesday, August 16, 2005
Saturday, August 13, 2005
Trail Central Listing for Los Angeles County - SoCalMtB.com
Tuesday, August 09, 2005
Replacing Line Feeds in IE and Mozilla
Line breaks, carriage returns, new lines, form feeds, whatever you might think of them as, browsers have their own ideas. I'm talking specifically about the character(s) produced when you hit Enter within a textarea and then try to manipulate the value of that textarea with JavaScript using regular expressions.
- IE (internet explorer) on a PC
- \r\n
- Firefox (mozzilla) on a PC
- \n
So, if you wanted to replace all the "line feeds" in a variable whose value was pulled from a textarea with a single space this is the code you would need:
val = val.replace(/\r\n/g," ");
val = val.replace(/\n/g," ");
On a related note, IE also has a funny idea about what character a single space is represented by when written to the page from a database (but not when typed with the space bar). If you want to strip out all of the spaces from a field in IE try this bit of hex:
val = val.replace(/[\xA0]/g,"");
That concludes this geeky interlude. Now back to our regularly scheduled nerdiness.
The Christian Paradox (Harpers.org)
Sunday, August 07, 2005
Knot Book
Had a dream about knot tying last night. Ok, so I'm a rather obsessive about the things I do; on the nerd side of geek. Today I digitized the knot book that I wrote in 1998-99 and uploaded them to flickr. I'll update this post as I add descriptions and category tags (bend, loop, hitch). I also plan to update the knots page on this site with highlights of the most practical knots and their applications.
So take a look at my photos tagged with "knot", but stay tuned for better organization and more information.
Update: I've updated my Knots Page to feature the best knots for a variety of purposes. But sorry, I still haven't done anything about improving the quality of the knot photos themselves. Someday I'll bust out the drawing tablet and the camera and do it all up proper like, but not today.
Friday, August 05, 2005
adaptive path >> an interview with ludicorp's eric costello
Flickr: Photos tagged with wettshirtcontest
Thursday, August 04, 2005
Critique: The Alphabet
I have nothing good to say about this lazy piece of rocking shit. Both of them. Probably designed by whoever did the C.