Archive for November, 2010

Snaps – VirtualBox can’t operate in VMX root mode

Tried to start a VM under VirtualBox today, and got the above message…Turns out, that when I installed kvm/qemu packages for Android virtual environment, it switch on VT.

Instead of pulling your hair out by recompiling your kernel, you could do this as a workaround:

“Try disabling kvm module…
modprobe -r kvm_intel” with root privileges. This worked for me…”


Categories: TechBlog

Wordpress Speedup – Multiple hostnames for parallel connections

Recently while working on a site for a client, and using Google Page Speed, there is a recommendation for using multiple hostnames to serve content, which helps decrease page load times, as your browser is able to open more than 2 connections to your site. After looking around, I decided the cleanest and cheapest method, would be to just do the following:

1. Create a DNS cname that point to your site, for example: CNAME would point to A Record.

2. Now that I have a new hostname, this domain will be used to serve content from, in the example; Now, make sure that your web server answers for this name, and uses the SAME document root. We want to use the same info, as both URL’s are serving the same content, except that your browser can open connections to both static and www hosts on a single page request.

If your using apache, just add a VhostAlias of “”, from the example, and restart apache to make sure the change takes affect.

3. Now, just verify that your new hostname is working in a browser, and that the content is being served correctly; We can now download and install the OSSDL WordPress plugin. This plugin was designed for either CDN or hostname usage, and since we are not expecting to get Slashdotted anytime soon, I suspect that this mod will work for the long haul – once we exhaust our hostname mod,  we can also switch to Rackspace CloudFiles or another CDN, for the real deal 😉

4. Download and install plugin as instructed below:

Once the plugin in activated, click edit, and use the “” hostname from the example, and click on Save. One advantage I saw, was that this plugin changes the php URL dir, so no rewrites are required, so that also keeps it quite simple.


Your done – Your site will now load faster to most user agents (browsers, I said it!)

Categories: TechBlog

OpenSuse 11.3 & XEN kernel – Boot issue resolved

These “boots” were apparently not exactly made for walking. Just installed OpenSuse 11.3 for fun, and decided to make it a VM host with XEN.

Sounds harmless enough 😀

Until I tried to boot from the XEN kernel….fail

Turns out that the line for booting the kernel in your


is incorrect: here is an excerpt from an article I found:

“And this was the solution, after changing

kernel /xen.gz vgamode=0x317


kernel /xen.gz vga=mode-0x317

booting the xen-kernel worked!”

Mine happened to look like this:

/boot/xen.gz vgamode=0x314

And voila – once I modified the line, I was able to boot into my XEN kernel, as it was designed:



Original Post

Bug Report

Categories: TechBlog

Browsing HTTP headers can get you a job

I have a habit, but it’s not unhealthy, and could possibly even lead to helping you get a job. How you ask? How will viewing the HTTP Headers of random websites you visit, possibly help you get a job?

Here are a couple of examples:

X-hacker: If you’re reading this, you should visit and apply to join the fun, mention this header.


X-Recruiting: If you’re reading this, maybe you should be working at Zappos instead.  Check out

And how does one get this info? You can use “curl” from the command line of a linux machine, and if the machine is a web server, it will more than likely contain this package.

For example: curl -I

Which will result in:

HTTP/1.1 200 OK

Server: nginx

Date: Mon, 08 Nov 2010 17:37:43 GMT

Content-Type: text/html; charset=UTF-8

Connection: close

Last-Modified: Mon, 08 Nov 2010 17:35:53 +0000

Cache-Control: max-age=190, must-revalidate

Vary: Cookie

X-hacker: If you’re reading this, you should visit and apply to join the fun, mention this header.


Link: <;; rel=shortlink

X-nananana: Batcache


So the above header basically informs you, or more correctly, your web browser that the server is Nginx, the date of the reply, content type of html,  keep-alive is not enabled or advertised to the browser as being enabled, cache control that requires validation, and a couple of random X-headers. The funny one is last, which is probably coming from their cache layer, the X-nanananana BatCache – great sense of humor, love it 🙂

Till next time.

Categories: TechBlog