-
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
Monthly Archives: January 2012
extconf.rb:4:in `require’: no such file to load — mkmf (LoadError)
I’ve hit this a dozen times and I always forget the solution. When you get this on Ubuntu, sudo apt-get install ruby-dev
ssh Through Two Hosts in One Command
Say you want a shell on a box but you have to hop through another box to get it. force@harold:~% ssh admin@maude maude:~ force$ ssh root@whee root@whee:~$ echo w00t w00t You can do that in one line using -t (pseudo-tty … Continue reading
JavaScript Performance: Iterating over Arrays with Holes
I was sketching some code that basically took some data from a database and cached it in an array to be repeatedly reused. Conveniently, each row from the database had a unique ID, so I could use that as an … Continue reading
Posted in javascript, Uncategorized
Tagged array, benchmark, hole, iteration, javascript, jsperf, loop, undefined
3 Comments
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