Category Archives for Tips

How to create sticky table headers using jQuery

Welcome those big, sticky, complicated problems. In them are your most powerful opportunities. -Ralph Marston   Here s a nice way to use jQuery and make table headers sticky when a page is scrolled down and the table headers reach … Continue reading

01. December 2011 by Walmik
Categories: How To, jQuery, Tips | Leave a comment

Renaming multiple files in a folder to a numbered format from the terminal

This is just for my reference. I needed to rename a whole lot of png files in a folder from filename.png, some-other-filename.png to 0.png, 1.png etc. It took a little bit of experimenting and it lead me to: count=0; for … Continue reading

17. October 2011 by Walmik
Categories: Tips, Useful | Tags: , | Leave a comment

Toggle TinyMCE rich text editor effectively

Using TinyMCE effectively can take a bit of practice and time. Especially if you have multiple TinyMCE instances on the same page pulling dynamic data. Two common problems are to display the data itself and the other is to toggle … Continue reading

27. September 2011 by Walmik
Categories: Tips | Leave a comment

CSS max-width to the rescue

You can’t do anything about the length of your life, but you can do something about its width and depth -Henry Louis Mencken   Recently I discovered a wonderful CSS2 property: max-width. This property lets you fit your images inside … Continue reading

23. August 2011 by Walmik
Categories: CSS, Tips | Leave a comment

Solution for jQuery Cycle’s scrollHorz property hiding slides

There are two ways to slide easily through life: to believe everything or to doubt everything. Both ways save us from thinking. -Alfred Korzybski This is more of a reminder for me than anything else. If it helps you then … Continue reading

22. August 2011 by Walmik
Categories: jQuery, Tips | Leave a comment

Javascript equivalent for PHP’s array_map()

To map out a course of action and follow it to an end requires courage Ralph Waldo Emerson I was looking for an equivalent of the PHP array_map() function or the Python map() function in Javascript.  Turns out that Javascript … Continue reading

22. August 2011 by Walmik
Categories: Javascript, jQuery, Tips | 1 comment

How to replace multiple instances of a string in Javascript

If you don’t like something change it; if you can’t change it, change the way you think about it. -Mary Engelbreit You can use String.replace(/oldstring/g, “new string”); to replace multiple instances of a string but what if you did not … Continue reading

12. July 2011 by Walmik
Categories: How To, Tips | Tags: | Leave a comment

Making HTML tags more useful by custom attributes

Being good is commendable, but only when it is combined with doing good is it useful. -Anonymous I have been over using a simple technique to pass on more data to an HTML element in order to manipulate it better … Continue reading

29. June 2011 by Walmik
Categories: jQuery, Tips | 2 comments

6 killer social media marketing tips for Facebook, Twitter and Linked In from the MSMM 2.0 live event at Paradise Point, San Diego

“What really decides consumers to buy or not to buy is the content of your advertising(for this post – social media posts), not its form.” -David Ogilvy The MSMM 2.0 live event which took place at Paradise Point(June 3 thru … Continue reading

07. June 2011 by Walmik
Categories: Tips | Tags: , , , , , | 1 comment