Category: Linux
-
Project Euler No. 1 in Emacs elisp
My first Project Euler solution, and my first emacs elisp program. Multiples of 3 and 5. If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3…
-
Error: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program /usr/lib/dbus-1.0/dbus-daemon-launch-helper: Success
I recently migrated my linux box from bare metal hardware to a VMware virtual machine. At the same time, I upgraded from Debian squeeze to Debian Wheezy (testing). After the dust had settled, one nagging problem keep recurring. Every time I did an aptitude update or aptitude install, after everything successfully ran, I would get…
-
Linuxconf 2013
I just got back from having an amazing week at LCA2013. That was my first LCA and I was really not quite sure what to expect. It turned out to be an amazing experience. I met so man really smart people, learnt a lot and generally got exposed to all sorts of new ideas and…
-
Expadirk: a hack to split PDFs and email based on instructions within
Sune Vuorela wrote a post asking people to make sure their private hacks become public. That inspired me to publish Expadirk. Expadirk is my solution to my accounting software provider requiring me to purchase yet more proprietary software in order to send statements, purchase orders and invoices by email. The accounting package has a way of outputting print…
-
Import historical data from Apache logs into AWStats
One of my clients had a problem where the last 6 months of data was not in Google Analytics. Upon investigating it turned out that for some reason the WordPress Google Analytics plugin was not active. I could not determine why it was not active when I am sure I set it up in the…
-
Apache Virtual Host configuration for a Networked WordPress Installation
Direct any URL request that Apache receives to the WordPress installation. You need to do it if you are setting up a WordPress Network multi-site installation that has sites with their own unique domain names. e.g. site1.org, site2.com, someothersite.co.uk etc. /etc/apache2/sites-enabled$ ls -al total 8 drwxr-xr-x 2 root root 4096 Jul 25 13:18 . drwxr-xr-x…
-
.bash_profile vs .bashrc in OS X Terminal.app
.bash_profile vs .bashrc or why does OS X ignore my .bashrc in Terminal.app?
-
Collectd causing rrd illegal attempt to update using time errors
I found collectd causing rrd illegal attempt to update using time errors. I was seeing a whole load of lines like this in my syslog: Aug 20 16:27:12 mythbox collectd[32167]: rrdtool plugin: rrd_update_r (/var/lib/collectd/rrd/mythbox/df-root/df_complex-free.rrd) failed: /var/lib/collectd/rrd/mythbox/df-root/df_complex-free.rrd: illegal attempt to update using time 1345444032 when last update time is 1345444032 (minimum one second step) It was…
-
lookup smb windows hostnames from the command prompt in linux
There is this cool way of being able to lookup windows hostnames in linux. Ie so you can ping mywindowshostname and it will just find the ip and ping it. All you have to do is edit the line in /etc/nsswitch.conf: from hosts: files dns to hosts: files dns wins and install the winbind service.…