S E R V E R   S I D E
View current page
...more recent posts

Today I came across a sentence I would never write:

There have been many times since 2002 that I’ve regretted not building my own publishing system from scratch.
For some reason reading that is very funny to me in a sort of "I can't believe I've been working on my publishing system since 1999" sort of way.
- jim 1-30-2009 10:04 pm [link] [2 comments]

Finally. ClickToFlash is a Safari plug-in that disables auto play of Flash content. You can still view the content but you must click on the static Flash box in order to play. Since so many advertisements are Flash based, and it's not a huge problem for me to click on the rare Flash element I do want to see, this makes browsing *much* nicer.

And, if you control-click on a Flash element you get a pop up menu where you can add the present site to a whitelist. So if you always want your favorite music site to load and play Flash content you just put the site in the whitelist and CTF won't disable it.
- jim 1-30-2009 8:17 pm [link] [add a comment]

Nice one liner to recursively replace all occurrences of 'foo' with 'bar' in all .html files in the current directory and below:

find . -name "*.html" -print | xargs sed -i 's/foo/bar/g'

- jim 1-28-2009 4:18 pm [link] [add a comment]

Work has been busy, so I'm years behind on posting. Maybe later today I can try to catch up a bit. One of the many topics I want to hit is jquery which is a javascript library that helps with creating both javascript effects in the page (animations, fancy slide in/out menus, accordians, tabs, lightboxes, etc...) as well as facilitating AJAX (well, AJAX-y since it's not necessarily XML) requests to the server. I used to talk about EXTjs a lot when I was first learning about these libraries, but I've ended up settling on jquery for my uses. They aren't exactly the same, but they are very similar, and jquery just feels better to me. In any case, these libraries (jquery, EXTjs, MooTools, Prototype/Scriptilicious, etc...) are at the heart of most new sites on the web (so called Web2.0.) and as a developer all I can say is Hallelujah because they take away 90% of the pain in developing for so many different browsers (I'm looking at you IE6!)

But it is a bit of a learning curve since I used to think of javascript as something to be avoided along the lines of Flash. Everything changes though, and so this is now something you just have to know to be current.

This morning I really struggled with an issue involving submitting accented characters in data through a jquery $.post statement. Turns out, unlike when submitting a form the old fashion way, when jquery serializes the post values it always uses url-encoded UTF-8 strings. So on the server side you need to do a UTF8_decode on the data before you stick it in the database. Luckily this post got me the answer without too much trouble since that is one of those little things that you could waste a whole day trying to figure out.
- jim 1-23-2009 3:29 pm [link] [9 comments]

Steve Jobs to take a health related leave of absence until June. He will remain CEO. Tim Cook takes over day to day responsibilities.

Will be interesting to see what happens to the stock. I think the market will over react.
- jim 1-14-2009 10:57 pm [link] [4 comments]

older posts...