Daily Thoughts – April 15th 2009

by javery on April 15, 2009

I noticed Sean Cribbs was starting to post a daily blog post about what he worked on and learned that day, I thought it would be an interesting exercise so I am going to try it for the rest of this week and see how it goes.

Markdown – I have been using RadiantCMS as the engine for the ZerkMedia site as well as the Alt.Net Podcast but I have been just writing HTML for the posts. I have been writing HTML for over a decade but I thought it was finally time to give Markdown a try. It’s fairly straightforward and definitely makes posting much easier, although it will take a little getting used to.

Animated GIFs in Photoshop – I am getting ready to launch a new survey for The Lounge but I needed an ad to do it. I remember doing animated GIFs years ago using little windows utilities, but I finally decided to learn to do it the right way with Photoshop. Turns out it is ridiculously easy using the Animation window (I followed this simple tutorial).

JavaScript Fun – I have been using setInterval for my ad engine for sometime but today I figured out a nice trick that will help me reduce the amount of Javascript I use… you can pass any expression to setInterval, not just a function name. So I can pass parameters to the function called in setInterval (just remember that if you use variables they have to still be in scope and available). setInterval(myfunction(’a',’b',’c'), 100). I also learned that you can’t set a script as the innerHTML of an element and expect it to be run, you need to add it as a child element.

-James

Comments on this entry are closed.

Previous post: An Erlang Sequence Server

Next post: The Lounge Survey