-
Recent Posts
Tags
array bash benchmark bug chrome cli configuration css diy editorial firefox fixes gotcha grub hack hardware html5 input instance_eval javascript jquery jsperf linux mouse multi touch multitouch nginx opera performance preferences prototype ruby snippet ssh syntax touch pad touchpad trackpad track pad ubuntu udev virtualbox web standards wii windowsRecent Comments
- force on The “Easy Way” to Add Custom DNS Servers in Ubuntu
- Ray on The “Easy Way” to Add Custom DNS Servers in Ubuntu
- Chema Gallego on Clone Ubuntu VMs in VirtualBox
- Ryan Finnie on Compacting a VMDK (Virtual Machine Disk Format image)
- Prevent Virtual Machines from Saving Network Interface udev Rules | splat operator on Clone Ubuntu VMs in VirtualBox
Archives
Categories
Meta
Tag Archives: jquery
Depaginate Phoronix Articles
I sketched this for Phoronix, but you could easily adapt it to any site that uses pagination. I think it’s an interesting problem, so if you want to see another site depaginated, just ask me in a comment and I’ll … Continue reading
Posted in javascript, quickies
Tagged depaginate, depagination, javascript, jquery, paginate, pagination, phoronix, plugin, user script
Leave a comment
Defining Functions Inline Is Just Fine
I put together this jsperf to see if there’s a difference between defining your function and then using it or defining it inline when looping with jQuery.each. You can try it yourself if you like, but here are the results: … Continue reading
Are You Still There?
A scenario: you want to update some content on your page periodically, but you don’t want to waste requests, resources, cycles, etc. on running your script while the user is obviously not interacting with the page. What do you do? … Continue reading
Posted in javascript
Tagged awake, blur, focus, interval, javascript, jquery, periodic, setinterval, sleep, user interface
Leave a comment
Add Stable Merge Sort to Array and jQuery Prototypes
Some browsers’ JavaScript implementations don’t implement a stable sort, but stable sorting can be so handy if you want to, say, sort a table by multiple columns. So here’s a quick and easy way to add an efficient, stable merge … Continue reading
Posted in javascript
Tagged array, extend, javascript, jquery, merge sort, mergesort, prototype, sort, sorting, stable sort, stable sorting
Leave a comment
Keep Page Elements the Same Height with jQuery
Many times I have wanted to keep multiple elements on a page the same height. You can use CSS’s display:table and its friends for this, but it doesn’t work very well in IE. You can add conditional tags for IE, … Continue reading
Framework-Free Automatic Brush Loading for SyntaxHighlighter
Update: Have you heard of SyntaxHighlighter? It’s pretty cool. I like that it adds little controls for popping the code out into a new window in plain text and that it has line numbers. However, I think that these days … Continue reading
Posted in javascript, scripts
Tagged framework free, github, highlight, highlighting, javascript, jquery, no framework, prototype, syntax, syntax highlighter, syntaxhighlighter
Leave a comment