@ wrote... (7 years ago)

Continuing from maze solver update, I came across another very large maze at Purpy Pupple wikipedia page. And when I say large, I mean 4000x4000 large. Purpy calls it 2000x2000 but since it is very clearly 4000 pixels by 4000 pixels I'm calling it as 4k.

more…

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

The Sandy Bridge reviews sure paint a nice picture for this new cpu. I'm currently leaning towards the i5-2400 or the i7-2600 if I'm feeling rich. The K series are unacceptable since they don't support VT-d.

However, unless the platform can do the following I won't be buying it.

I want to use a discreet video card and the on-chip video card simultaneously. I want to run my htpc in a virtual machine and “give” either of the cards to it via pci passthrough. By having the htpc own the card it should have great performance and if I break X on either the host or the htpc guest I just have to flip the input on my receiver and continue on my way.

Since I currently use kvm and not xen, kvm will need to be upgraded to support display pci passthrough. The guest will need to be full screen of course, Spice may be required.

So hopefully Fedora 15 will be able to handle all that.

Category: tech, Tags: hardware, linux
Comments: 1
@ wrote... (7 years, 4 months ago)

Here's a follow up to my previous post, maze solver. I've finally gotten around to solving this properly with a breadth-first search. Shortest path is 16031, 11% better than my previous best.

more…

Category: tech, Tags: mazes, python
Comments: 1
@ wrote... (7 years, 6 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... (7 years, 6 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... (7 years, 7 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... (7 years, 10 months 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... (8 years, 1 month 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... (8 years, 3 months ago)

Despite my previous [/tech/time-machine-on-a-network-drive 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... (8 years, 3 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