Section: Snippets | Atom Feed

21 May

Installing Ubuntu 14.04 LTS (Trusty Tahir) VM on a XenServer 6.2 host

I had a hard time getting Xenserver 6.2 to install a new VM with the latest long-term-support version of Ubuntu (14.04). The process documented below, pieced together from several posts, leads to a fairly straight-forward install.

Fix your pygrub on the Xenserver host

Based on this post, do ...

12 May

Changing tab stops in Vim

I normally use spaces in my files instead of tabs for indentation, with 4 being my default indent width. Sometimes, I need to change this on existing files to 2, so for the most part, the following sequence works. First,

set ts=4 sts=4 noet

This changes every ...

08 May

Setting up Google Oauth2 API

This documents the steps necessary to enable Google Oauth in your web application for authentication.

24 Mar

Getting around Xcode 5.1 clang -mno-fused-madd error

Recently updated to Xcode 5.1 on my Mavericks install, and when I went to update a few Python PyPI packages like reportlab and fabric, I started hitting this error on the compile step:

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

After a little bit of googling, it seems like the ...

11 Mar

Font rendering fix in Chrome

Seems like there was a reason Chrome rendered the text on this web page rather poorly at first go: See this page, but basically you need to set the anti-aliasing for Chrome:

-webkit-font-smoothing: antialiased;

08 Mar

Pound reverse proxy and simpler URLs for webapps (Sickbeard, Plex, CouchPotato, Headphones, SABNZBD)

I run a plethora of local web applications that each listen on different ports, and I wanted to simplify their URLs so I could just type a hostname to access them:

Hostname mapping
Application Default URL Desired URL
Sickbeard http://linux-server:8081 http://sickbeard
SabNZBD http://linux-server:8080 http://sabnzbd ...

23 Oct

Using Calibre to manage my e-books

I decided to start using Calibreas my main ebook management program.  I've been using it for online content from publications like the Economist and The New Yorker for a while now, but it's become increasingly difficult to manage my entire e-book library, having acquired several hundred books ...

© Virantha Ekanayake. Built using Pelican. Modified svbhack theme, based on theme by Carey Metcalfe