Wednesday, August 31, 2005
The Man in Blue > footerStickAlt: A more robust method of positioning a footer
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.
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
Alaskan Wedding - a photoset on Flickr
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
Bow man (flash game)
Friday, August 19, 2005
Google Map Visitor log for Divine Blog
Wednesday, August 17, 2005
Master Lock Street Cuffs Bike Lock
Tuesday, August 16, 2005
Lust For Bust
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.
Tuesday, August 02, 2005
Flickr: Explore interesting photos from the last 24 hours
The Word Nerds--A Weekly Podcast About Language
Archives
December 2000 January 2001 February 2001 March 2001 April 2001 May 2001 June 2001 July 2001 August 2001 September 2001 October 2001 November 2001 December 2001 January 2002 February 2002 March 2002 April 2002 June 2002 July 2002 August 2002 March 2003 April 2003 May 2003 June 2003 July 2003 August 2003 September 2003 October 2003 November 2003 December 2003 January 2004 February 2004 March 2004 April 2004 May 2004 June 2004 July 2004 August 2004 September 2004 October 2004 November 2004 December 2004 January 2005 February 2005 March 2005 April 2005 May 2005 June 2005 July 2005 August 2005 September 2005 October 2005 November 2005 December 2005 January 2006 February 2006 March 2006 April 2006 May 2006 June 2006 July 2006 August 2006 September 2006 October 2006 November 2006 December 2006 January 2007 February 2007 March 2007 April 2007 May 2007 June 2007 July 2007 August 2007 September 2007 October 2007 November 2007 December 2007 January 2008 February 2008 March 2008 April 2008 May 2008 June 2008 July 2008 August 2008 September 2008 October 2008 November 2008 November 2009
Subscribe to Posts [Atom]
Hi! My name is Nils, welcome to my personal website. Here is what you will find within this domain: