July 14th, 2009
I wont be doing a build of Bacula for Mac OS X again any time soon, if at all, for a number of reasons;
- I no longer have access to Mac OS X 10.4 running on an Intel chip
- I am actively transitioning to BackupPC
Below youll find the method I have been using to construct all the .pkg installers youll find on this site. If you have any questions about the process please post them in the comments.
Read the rest of this entry »
4 Comments |
Bacula, Code, HowTo, Mac OS X |
Permalink
Posted by jcl
April 23rd, 2009
I’ve been battling lately with a lot of problems with cman, part of Red Hat Cluster Suite. Specifically, the fencing tool (fenced) is pretty much junk when you try to start using it with Xen dom0’s. After much searching and gnashing of teeth I happened upon this mailing list post. The promise there is that you could take clvm and compile it against openais and get a cluster aware LVM which doesnt require the rest of Red Hat Cluster Suite (and its crappy documentation, crappy fencing, and general all around crappiness). A little more searching turned up this web site from Olivier Le Cam which pretty much did 90% of the work for me.
After some testing I’m happy to say it appears to work smashingly. What follows is a somewhat more complete version of how to achieve the same results on Debian Lenny. Enjoy :)
Read the rest of this entry »
12 Comments |
Code, Debian, HowTo, Networking, Xen |
Permalink
Posted by jcl
April 8th, 2009
Well isnt this a happy day for owners of the Supermicro 8-Port SATA Card AOC-SAT2-MV8. It appears a long standing issue with port timeouts has been fixed.
See the lkml.org mailing list post here
… and the townspeople rejoiced :)
1 Comment |
Code, Linux |
Permalink
Posted by jcl
October 12th, 2008
Looking for a way to bulk remove channels that I’ve delselected in my channel lineup at Schedules Direct, I happened upon this blog post. Seems to work great :)
For the impatient, the important bit is this:
DELETE channel,program FROM channel NATURAL LEFT JOIN program WHERE program.title IS NULL;
No Comments » |
Code, HowTo, MythTV |
Permalink
Posted by jcl
April 29th, 2008
The final installment of our coraid adventure and not really much to say other than this: it works! Hotplug support is working as of kernel 2.6.25-git11 and appears to function as it should.
Thanks go to Mark Lord, Marvell Corporation, EMC Corporation and Red Hat, Inc. for the coding magic.
2 Comments |
Code, Linux |
Permalink
Posted by jcl
November 4th, 2007
Here is a quick script I whipped together to convert flac files to mp3. Its nothing fancy but it does the job. Doesnt require anything but flac and lame.
I was going to include a bunch of fancy id3 tag stuff but to be honest most of the id3 perl libraries out there arent that great to use. I may do something like that in the future though. Since I use quod libet which has a fantastic tagger built in, it isnt really an issue for me.
#!/usr/bin/perl
$lame_opt = "--preset extreme";
foreach (@ARGV) {
if (!($_ =~ /\.flac$/)) {
print "Skipping $_\n";
next;
}
`flac -d "$_"`;
$_ =~ s/\.flac$/.wav/;
$target = $_;
$target =~ s/\.wav$/.mp3/;
`lame $lame_opt "$_" "$target"`;
`rm "$_"`;
}
4 Comments |
Code, Perl |
Permalink
Posted by jcl
October 11th, 2007
I am constantly forgetting this and having to look it up so here are the equations to convert each unit of measure to the other:
C = (5/9)(F-32)
F = (9/5)C+32
No Comments » |
Code, HowTo |
Permalink
Posted by jcl
August 2nd, 2007
In the quest for nicer formatting of code, I installed the semGeSHiCodeFix wordpress plugin. Blocks of code should now look like this:
while true; do { $SOMETHING }
Neat, huh? You can get the plugin here
No Comments » |
Code, Site News |
Permalink
Posted by jcl
June 22nd, 2007
A handy little script to output all possible foreground and background ANSI colors to a terminal, complete with their codes for building nice looking terminal prompts.
Enjoy :-)
Read the rest of this entry »
No Comments » |
Bash, Code |
Permalink
Posted by jcl