@ wrote... (12 years, 9 months ago)

If you'd like to be able to easily see which one of your kvm guests is the cpu hog, make links from to qemu-kvm

cd /usr/local/bin
ln -s /usr/bin/qemu-kvm vm_magneto
virsh edit magneto
# change emulator to
<emulator>/usr/local/bin/vm_magneto</emulator>
virsh reload
virsh shutdown magneto
virsh start magneto
Category: tech, Tags: kvm, linux
Comments: 0
@ wrote... (12 years, 9 months ago)

I currently use a modded xbox running XBMC (xbox media center) and although I've loved it for many years it is starting to show its age. Its 10 year old cpu just can't decode an h264 encoded movie, plus I'd really like to be able to surf from the couch and view TED Talks and YouTube videos.

more…

Category: tech, Tags: fedora, linux
Comments: 0
@ wrote... (12 years, 11 months ago)

A static variable in a class method are shared between all instances of that class and not per class instance.

#include <stdio.h>

class Foo {
public:

    int foo() {
        static int i = 0;
        i++;
        return i;
    }
};

int main() {

    Foo a, b;

    printf( "a: %d\n", a.foo() );
    printf( "b: %d\n", b.foo() );
}
a: 1
b: 2
Category: tech, Tags: cpp, programming
Comments: 0
@ wrote... (13 years, 1 month ago)

EventSync from fbevents.net is a great app to sync OSX iCal with Facebook. However, if you ever do something to your calendar and EventSync is no longer updating your calendar then do the following from a terminal.

rm -r "~/Library/Application Support/SyncServices/Local/clientdata/com.llsoftware.fbevents"
Category: tech, Tags: osx
Comments: 0
@ wrote... (13 years, 4 months ago)

I still don't know what eigenvalues are, what they're for, or how to use them, but I needed to calculate them for work and make sure they were positive.

more…

Category: tech, Tags: cpp, programming
Comments: 0
@ wrote... (13 years, 4 months ago)

I took a vacation over Christmas to Costa Rica with Gap Adventures (code CRA) so here is my packing list, including some much needed info about Rara Avis.

more…

Category: life, Tags: packing, vacation
Comments: 1
@ wrote... (13 years, 6 months ago)

Despite my previous post on how to get Time Machine backing up to a network drive, this turned out to be flaky. So far using iSCSI has been bomb proof and without having to do anything arcane, it is likely a lot more reliable.

more…

Category: tech, Tags: linux, osx
Comments: 0
@ wrote... (13 years, 6 months ago)

Since it's been two years since my last raid cost analysis, I figured it was about time to do another one.

Goals:

  • increase my storage. Currently 1000GB using raid5 (3 x 500GB drives)
  • preferably only use 2 drives as it costs money to spin an extra drive
  • not spend too much

more…

Category: tech, Tags: hardware, raid
Comments: 0
@ wrote... (13 years, 6 months ago)

I saw a recent post of the most incredible maze I've ever seen. Well I just had to solve it.

more…

Category: tech, Tags: mazes, python
Comments: 0
@ wrote... (13 years, 7 months ago)

I thought I had posted this ages ago, but in case anybody needs to know how, here's how you setup a virtual kvm firewall. I'm using Smoothwall but any distro would work.

more…

Category: tech, Tags: kvm, linux
Comments: 0