Monthly Archives: July 2010

VIM: How To Show Control Characters

How to show all control characters in VIM: :set list And to disable: :set nolist

Posted in Editors | Leave a comment

Unix: How to Install BerkeleyDB From Source

This documentation is buried in the source as HTML, so I’m posting it here for convenience. Building for UNIX/POSIX The Berkeley DB distribution builds up to four separate libraries: the base C API Berkeley DB library and the optional C++, … Continue reading

Posted in Databases, Linux | Leave a comment

CSS: How To Always Show Vertical Scrollbar

To avoid webpage shifting, you can always have the vertical scrollbar visible by doing this: html { overflow-y: scroll; } Note: This only seems to work in Firefox and Internet Explorer.

Leave a comment

Ubuntu: Flushing IpTables Causes Loss of Internet Connection

If you are trying to disable the firewall, but lose Internet connection in the process, use this script: iptables -F iptables -X iptables -t nat -F iptables -t nat -X iptables -t mangle -F iptables -t mangle -X iptables -P … Continue reading

Posted in Firewall, Linux | Leave a comment

Linux: How To Edit resolv.conf Using dhclient.conf

So, you’re trying to get here: /etc/resolv.conf: nameserver 192.168.1.1 domain aaa.com search aaa.com bbb.com You need to edit dhclient.conf like this: /etc/dhcp3/dhclient.conf: supersede domain-name-servers 192.168.1.1; supersede domain-name “aaa.com”; append domain-name ” bbb.com”; There must be a space before the bbb.com … Continue reading

Posted in Linux | Leave a comment

Windows: Kill All Chrome Processes At Once

Run this on the command line: taskkill /F /IM chrome.exe /T /F = force kill /IM = image name /T = kill all child processes as well To create a shortcut, right-click the desktop, then New -> Shortcut. For location, … Continue reading

Posted in Browsers, Windows | Leave a comment

Ubuntu: How To Enable Sound

HP xw6400 Workstation: How to fix your machine if your speakers don’t work. Determine your sound card model: cat /proc/asound/card0/codec#* | grep Codec Look up the model in this list: http://www.kernel.org/doc/Documentation/sound/alsa/HD-Audio-Models.txt Edit your ALSA (Advanced Linux Sound Architecture) conf file: … Continue reading

Leave a comment

Ubuntu: How to Determine Motherboard Type

lshw – list hardware sudo lshw lspci – list all PCI devices sudo lspci

Leave a comment

Ubuntu: APT and DPKG

How to display the files of a package installed? To list all the files provided by the installed package foo execute the command dpkg –listfiles foo Note that the files created by the installation scripts aren’t displayed. http://www.debian.org/doc/FAQ/ch-pkgtools.en.html

Posted in Linux | Leave a comment

Windows Vista: How To Enable Telnet

By default, Vista installs without telnet available. Here is how to enable telnet in Vista: 1. Open ‘Control Panel’ 2. Select ‘Programs and Features’ 3. In the left column, select ‘Turn Windows features on or off’ (get ready for the … Continue reading

Posted in Windows | Leave a comment