Monthly Archives: July 2012

How to create a favicon in Photoshop

· 2 Comments · in More, Photoshop

How to create a favicon in PhotoshopA favicon is the small image you see in the location bar or tab of your browser.

Using a favicon gives your site a more professional look and feel.

The required dimensions of a favicon are 16×16.

You can easily create a favicon in Photoshop using the following procedure:

CSS Tips and Tricks

· Leave a comment · in CSS

This will be an ongoing post of useful CSS tips and tricks.

They will vary from simple to advanced.

Feel free to contribute via a comment and I’ll add them to the list!

JavaScript logging in console and window

· 1 Comment · in JavaScript

I recently had the need to add logging to a real-time application using JavaScript.

Most developers usually throw in console.log or alerts during development. But if the consoles/alerts are not removed before code goes to production or a client, it can cause a big problem.

The following code example using console.warn provides this safely. If window.console or console.warn are not supported, no message is generated. But it does not cause the page to choke, like using a simple console.log.

Handling multiple timers with JavaScript’s setInterval and jQuery

· 7 Comments · in JavaScript, jQuery

For a recent project I needed to create a slideshow with auto play capability. To achieve this I used JavaScript’s setInterval to rotate the slides every 15 seconds.

intervalId = window.setInterval("moveSlide()",15000);

To stop animation the timer needed to be cleared. The conventional way is:


All well and good if you only have one timer on a page.

The Thing (1982)

· 1 Comment · in Movies

I so want this hat! You can actually buy it here.

One of my favorite films is “The Thing” [1982].

I love “The Thing” series of films – “The Thing From Another World” [1951], “The Thing” [1982] and “The Thing” [2011].

When HTML5 doesn’t work

· 1 Comment · in HTML5

test post