Jonathon Hill / rss feed
Until CSS3 is widely supported, if you want to wrap text inside a <pre> tag you can do it this way: pre { white-space: pre-wrap; /* css-3 */ white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ word-wrap: break-word; /* [...]
Got a shell script that you want automatically run at bootup on Ubuntu Server Edition? Here’s how: Create a script in the /etc/init.d/ directory Make the script executable $ sudo chmod +x /etc/init.d/myscript.sh Make the script start at bootup $ sudo update-rc.d myscript.sh defaults Note: the option “defaults” puts a link to start your script in runlevels 2, 3, 4 and [...]
Found a nice vi/vim cheatsheet, for all you Linux developers out there.
Ivan over at SimpleBits says: Today IE6’s browser market-share is between 10-20% depending on the statistics you look at and it’s still large enough for companies to require compatibility. This number was dropping by about 1% in the last 6 month. And hopefully with the update to be released in the coming weeks IE6 will drop [...]
hoverIntent is a plug-in that works like (and was derived from) jQuery’s built-in hover. However, instead of immediately calling the onMouseOver function, it waits until the user’s mouse slows down enough before making the call. Why? To delay or prevent the accidental firing of animations or ajax calls. Simple timeouts work for small areas, but [...]