Author Archives: force

Let Chrome Windows Opened by a Keyboard Shortcut Steal Focus in Ubuntu

I recall that this configuration has been necessary with Ubuntu+Unity+Compiz for years. I just had to figure it out again, so I want to document the solution. Install CompizConfig Settings Manager, then run it. sudo apt-get install compizconfig-settings-manager compizconfig-settings-manager Then … Continue reading

Posted in Uncategorized | Leave a comment

Play Cookie Clicker on Digital Ocean

Digital Ocean Droplet sudo apt-get install xvfb chromium-browser x11vnc Xvfb -screen 0 1024x768x16 -ac & DISPLAY=:0 chromium-browser & while true; do x11vnc -localhost -display 0; sleep 1; done Local Machine ssh -L 5900:localhost:5900 my-droplet.example.com Then open a VNC viewer to … Continue reading

Posted in Uncategorized | Leave a comment

Installing Windows 7 SP1 on chainloaded Windows

The Problem When I try to install Windows 7 Service Pack 1 (SP1) on my dual-booting computer, installation fails every time with the error 0x800F0A12. My Setup Drive 0 Drive 0 has Windows 7 installed. In the setup wizard, I … Continue reading

Posted in Windows | Tagged , , , , , , , | 1 Comment

Enable Hibernate on the System76 Lemur Ultra (lemu4)

I got a System76 Lemur Ultra (codename lemu4), and I love it! The build quality is a little so-so (the faux-metal plastic is kind of bendy, and, well, plastic), but I wasn’t expecing a MacBook. One of my favorite things … Continue reading

Posted in quickies, tutorials | Tagged , , , , , , , | Leave a comment

The “Easy Way” to Add Custom DNS Servers in Ubuntu

Goal Just add a goddamned nameserver to Ubuntu. I have lxc, and I want to ssh to my containers without knowing their IPs or starting them in the foreground. Is that so hard?! Solution Install dnsmasq. sudo apt-get install -y … Continue reading

Posted in tutorials, Uncategorized | Tagged , , , , , , | 3 Comments

Installing XBMC on Ubuntu 12.04 on an Acer Aspire Revo 1600

Install Nvidia Current Updates You want the Nvidia binary blob drivers to squeeze every bit of performance out of this Ion LE chipset so you can watch videos in 1080p on a $200 turd computer. sudo apt-get install -y nvidia-current-updates … Continue reading

Posted in XBMC | Tagged , , , , , , , , , | Leave a comment

Quickie: Fix Missing “Downloads” Icons in Chrome/Chromium

Have you run across this bug? It’s not a huge deal, but in Ubuntu, you generally get broken icons on the Chrome/Chromium Downloads tab. There are related bug reports here and here, but I don’t see any movement on this. … Continue reading

Posted in quickies, Uncategorized | Tagged , , , , , , , | Leave a comment

Prevent Virtual Machines from Saving Network Interface udev Rules

I use a lot of VirtualBox VMs. A problem that I have frequently is that when cloning an Ubuntu VM and changing its MAC address is that it won’t be able to initialize the network (as seen in a previous … Continue reading

Posted in virtualization | Tagged , , , , | 6 Comments

Compacting a VMDK (Virtual Machine Disk Format image)

Compacting a VMDK file (.vmdk) is a good idea if you want to share or reuse it, such as with Vagrant. If you’ve tinkered with your VM a bit, deleting cached files isn’t enough. The space in the filesystem is … Continue reading

Posted in tutorials | Tagged , , , , , , , | 2 Comments

Render a template from a hash in Ruby

A hash is a great way to manage a list of key/value pairs, and templates are a great way to render content. So here’s a simple way to render a template from a hash. template.erb My favorite color is <%= … Continue reading

Posted in ruby | Tagged , , , , , , , | 1 Comment