2010
08.26

Clean Your Keyboard

Because now you know what’s down there.

What Lies Yonder

2009
08.13

sudo pico /etc/network/interfaces
If your device name is eth0, the configuration block should look like the following-

iface eth0 inet static
address 192.168.1.110
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 208.67.222.222 208.67.220.220 127.0.0.1

If you wish to add another I.P. address, you can add a block similar to this-

iface eth0:1 inet static
address 192.168.1.111
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

All that is needed now is a restart of networking-

sudo /etc/init.d/networking restart

2009
08.04

I was finally able to get my hands on one of these tiny netbooks. Even though I knew the dimensions beforehand, I was still a bit taken back seeing the device in person. Next to my four year old Gateway, this thing is almost a third of the size.

I’ve only had a few hours to test so far, and not too much of it has been constant typing such as I’m doing now for this blog entry. It’s not too terrible if you throttle yourself back a little bit, and don’t get too frustrated after missing a few keys. That said, it’s still not something that I would want to type on for more than a few paragraphs.

One feature that sticks out to me so far is the suspend feature of the laptop. It works, and very quickly. Total wake up time is less than ten seconds. Close it and forget it.

This unit does get a little warm. Not as bad as a typical low-midrange laptop model, but you do feel it. The fan inside is very quiet, and very occasionally do you hear it spin up to full speed

to be continued

2009
07.28

If you ever need to downgrade from MySQL 5.x to MySQL 4.x (hope you don’t), chances are you are going to run into a problem with apt-get. You will most likely receive cryptic, unhelpful dpkg errors.

If this is the case, try the command below.

sudo aptitude purge mysql-common mysql-client mysql-server && sudo aptitude install mysql-server-4.1 mysql-client-4.1

This should purge whatever is left of the MySQL 5.x installation, and then install the MySQL 4.x version. If this fails, proceed to bang head against nearest hard object.

2009
07.28

Those of you with lots of RAM could benefit from this tweak. There is a value controlled by sysctl called “vm.swappiness”. This is a value from 0-100 which tells the system how aggressively to use the swap space on your system.

Setting this value to 0 will tell the system to avoid writing anything to swap if at all possible, and a value of 100 will have your system almost immediately write out your memory to a swap file.

The default on Ubuntu and most other Linux systems is 60. If you don’t have more than 1GB of RAM I would not recommend altering this value. On my workstations with 2GB of RAM or more I usually go 10 or 0.

To set the swappiness value:

sudo sysctl vm.swappiness=10

To make the change stick after reboots, edit /etc/sysctl.conf with your favorite editor, and add the line “vm.swappiness=10″ if it does not already exist.

2009
07.22

Dear Adobe

Please make a version of your flash player for Linux that doesn’t totally blow. Thank you, that is all.

Since we’re on the subject, could we also move a little faster with the HTML5 + Ogg video?

2009
07.20

Quick and Dirty IP Scan

Here’s a quick, dirty, and not 100% reliable command to tell you which IPs in a range are in use:

nmap -sP 192.168.1.1-254

The above example will scan the range of 192.168.1.1 – 192.168.1.254, and will give you a result something like this:

Host (192.168.1.1) appears to be up.
Host (192.168.1.2) appears to be up.
Host (192.168.1.14) appears to be up.

2009
07.14

Corrupt InnoDB Fix

If MySQL won’t start due to corrupt InnoDB tables, you can add
[mysqld]
innodb_force_recovery = 4

to the /etc/my.cnf file, and restart MySQL. This will allow MySQL to start even with the corrupt InnoDB tables. I’m not quite sure if this fixes the tables or merely allows MySQL to run despite the warnings.

More Info

2009
07.14

This trick comes in real handy if you need to reinstall your Ubuntu/Debian system, or install your preferred software automatically with a fresh install.

From the system with your desired software:

    dpkg --get-selections > mysoftwarelist.txt

To the reinstalled or fresh system:

    dpkg --set-selections mysoftwarelist.txt
    sudo dselect
2009
07.14

Laser Plugs?

Apparently Ford is testing a new system where instead of standard spark plugs for ignition in automotive engines, they use frickin’ laser beams. I’m not sure how effective this system would be after time due to gunk building up no the laser lens, but still a pretty cool idea.

Link