Category Archives for How To

Nav Highlighter

We were suddenly faced with the necessity of training a lot of young men in the art of navigation. -Clyde Tombaugh Navigation items built out of li elements or a common class name assigned to multiple divs or a set … Continue reading

11. February 2012 by Walmik
Categories: How To, Javascript, jQuery, Useful | Leave a comment

Enable 2 finger scrolling on the trackpad in Ubuntu

Just a reminder for me to enable 2 finger scrolling on the trackpad using Ubuntu. I had enabled this in the Mouse/Trackpad settings but it didnt work for me. Here goes, Create a text file with the following text in … Continue reading

08. February 2012 by Walmik
Categories: How To, Linux, Useful | Leave a comment

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

How to upgrade firefox in Ubuntu

A good fox does not eat his neighbor’s fowl! -French proverb This post is supposed to be just a reminder for me on how to upgrade the default Firefox on Ubuntu. 10.04 uses Firefox 3.6.23 when Firefox has released version … Continue reading

10. November 2011 by Walmik
Categories: How To, Linux | Leave a comment

Solution: How to get a svn log by author name

I am in the habit of maintaining a daily work log. I do this in a Google spreadsheet and maintain each month on an individual sheet. This not only lets me share with the team what I ve been up … Continue reading

02. November 2011 by Walmik
Categories: How To | Leave a comment

How to split an array into smaller arrays

“The soul can split the sky in two and let the face of God shine through.” -Edna St. Vincent Millay Some days ago I need to split an array into multiple smaller arrays. I m not sure if this is … Continue reading

08. August 2011 by Walmik
Categories: How To, Javascript | Tags: | Leave a comment

How to find and replace in multiple files from the terminal

You have to kiss a few frogs before you find a prince. -Anonymous There are times when you d like to search for a word/phrase/regular expression in a number of files together and optionally replace it with something else. If … Continue reading

12. July 2011 by Walmik
Categories: How To | Tags: , | Leave a 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

How to quickly create iPhone style on off buttons

Whenever you’re pissed off, just remember that it’s better than being pissed on. -Christopher Titus The famous iPhone on off style sliding buttons can be quickly created by using jQuery and jQueryUI draggable behavior. Here’s quick demo if you’d like … Continue reading

26. June 2011 by Walmik
Categories: How To, jQuery | Tags: | 3 comments

How to disable dragging on a HTML element with jQuery

They are not free who drag their chains after them. -French proverb All HTML elements have a default nature whereby they can be dragged around for whatever reasons. Sometimes you dont want this, especially on sliders. Of course, if you … Continue reading

20. June 2011 by Walmik
Categories: How To, jQuery | Tags: | Leave a comment

← Older posts