Installing Guest Additions on Debian

Follow these steps to install the Guest Additions on your Debian virtual machine:

  1. Login as root;
  2. Update your APT database with apt-get update;
  3. Install the latest security updates with apt-get upgrade;
  4. Install required packages with apt-get install build-essential module-assistant;
  5. Configure your system for building kernel modules by running m-a prepare;
  6. Click on Install Guest Additions… from the Devices menu, then run mount /media/cdrom.
  7. Run sh /media/cdrom/VBoxLinuxAdditions.run, and follow the instructions on screen.

A Few Javascript Performance Tips

taylorhakes:

Recently, I’ve discovered some simple tricks to get my Javascript code to execute faster.  This is not a full list, just some that I use fairly often. If anyone has others, please post them in the comments. It would be great to compile a large list.

Before I begin, I would like to emphasize a phrase that every developer should know. “Premature optimization is the root all evil.” Optimization can only get you so far. Good programming practices and code structure are more important. With that, let’s get started.

Use for loops instead of Array.forEach, for.. in, jQuery.each etc.

Read More