tpot (at) frungy . org
|
Tue, 12 Dec 2006At San Francisco Airport:
Hmm - an ad-hoc access point advertising free access in the same area as a pay for use one. Somehow I don't think so. Unfortunately it disappeared before I could get an IP address and have a poke around. posted at: 08:43 | path: /computers | permanent link to this entryWed, 25 Oct 2006From the samba-technical mailing list: posted at: 16:01 | path: /software | permanent link to this entryFrom: tridge@samba.org To: samba-technical@samba.org Subject: Re: Coverity errors in libndr/ Date: Wed, 25 Oct 2006 12:35:56 +1000 Luke, > Or put some assertion checks in? time for my bi-yearly rant about assertions on NULL dereference :) Unix and unix-like systems provide a highly efficient, zero code assertion system. It interfaces to debuggers, it correctly propogates to parent processes and it is even implemented in hardware on nearly every system in existance. It's called the segmentation fault. It's wonderful. Use it :-) Cheers, Tridge Fri, 20 Oct 2006For those travelling to Texas this November, may I recommend the Tour de Donut? It's a 28 mile bicycle race near Austin. From the information page:
Sweet! I guess that means it's also possible to finish the race having consumed more calories than used to ride it. posted at: 14:42 | path: /triathlon | permanent link to this entryMon, 16 Oct 2006bfr - nonblocking 8-bit-clean pipe buffer I recently discovered the bfr program while searching for a way to watch a large video file stored on a web server connected by a slow pipe. The premise is that your link is slower than the rate at which the video codec consumes data so say hello to Mr Progress Bar every ten seconds or so. Most video players can buffer up a small amount of data and some even allow you to change the size of the buffer but sometimes this just doesn't work well. Here's my command line: $ wget -q -O http://some.domain/bigassfile.ogg | \ bfr -pk -b 100m | \ xine stdin://The command line above starts a wget of a big-ass file, then uses bfr to start accumulating up to 100M of data and displays a progress bar in KB on stderr. The xine video player is used to display the output appearing on standard input. The exact moment when streaming starts is 10% of the buffer size though the options to change this don't seem to work as advertised in the manual page. The progress bar is very nice though as it displays a graphical display of the size of the buffer, as well as the rate data is entering and leaving. If the buffer empties completely, you can hit pause in xine and go get a cup of coffee while the buffer refills. posted at: 14:33 | path: /software | permanent link to this entryTue, 26 Sep 2006I was thinking the other day that my life would be so much better if I could be editing a C++ file in Emacs and by simply hitting a key, the header for that file would be loaded. Hitting the key again would swap back from the header to the implementation. Before breaking out the Emacs Lisp manual I did a quick search and it turns out that those crazy kids at KDE have such a function in their kde-devel-emacs.el file. Copy this bit of elisp somewhere and bind it to a key:
posted at: 17:35 | path: /software/emacs | permanent link to this entryThu, 21 Sep 2006I dropped Anna and the in-laws off at the airport on Monday (I feel a bit like a tour organiser) for a backpacking holiday. Now I'm on my own for a couple of weeks so I thought I would try and do more km on the bike than in the car. It's turning out OK so far, although I had to head in to Queanbeyan to see the accountant and buy some coffee related paraphernalia in Fyshwick so I've started 38km behind already. Riding to work and to the pool and back over the last two days has put on 55km and with a few training rides with the triathlon club I should be able to put on a couple of hundred kilometres more without too much hassle. It's also dry and getting warmer so riding around Canberra is quite nice at the moment. posted at: 09:25 | path: /triathlon | permanent link to this entryWed, 06 Sep 2006I subscribed to O'Reilly's Safari online library today, or rather convinced work to pay for it (woot). I thought about subscribing when it was first released (in 2001, apparently), but baulked because it "only" contained the O'Reilly titles. Now there are stacks more books available, about 650 as of May 2006. Tim O'Reilly makes some interesting comparison with physical book sales in a blog post on O'Reilly Radar. (Warning: link contains references to wanky long tail stuff). According to the Safari logs, the graph of page views vs book sales is a lot flatter and longer for Safari, and actually tips up at the end of the tail. Australia, and especially Canberra, doesn't have very many good technical bookstores compared to a Borders or Barnes & Noble in a decent sized US city so local book browsing is limited to the current new releases of .NET, VB and Cisco training books. Oh yeah, Safari's also searchable. Neat. posted at: 20:46 | path: /computers | permanent link to this entryTue, 22 Aug 2006Well the mythtv box has been running fine for 8 months or so but I noticed a couple of bad sectors appearing on one of my 300GB disks. Unfortunately they didn't get remapped transparently by spare sectors as modern hard disks are supposed to. The only thing for it was to remove the disk from the LVM set. Since I am too cheap to use RAID (it's only TV after all) I backed up all the interesting stuff then deleted and recreated the volume. Luckily cacti caught all the action:
The discontinuities on Saturday morning was me trying to blow away the bad sectors with dd a la the Bad Blocks Howto without success. On Monday morning I deleted all the shows that I didn't want to backup, then recreated the logical volume. Then copied all the backups on to the new, 300GB smaller volume. I don't think that hard disks should fail after 8 months, and the store is taking the broken one back without any fuss. posted at: 09:32 | path: /pvr | permanent link to this entryMon, 21 Aug 2006Amusing Spamasassin Log Messages Actual log messages from spamasassin: Aug 20 00:30:19 dp spamd[15285]: Hour '24' out of range 0..23 at /usr/share/perl5/Mail/SpamAssassin/Util.pm line 429 Aug 19 16:01:03 dp spamd[21435]: Second '60' out of range 0..59 at /usr/share/perl5/Mail/SpamAssassin/Util.pm line 429posted at: 08:08 | path: /humour | permanent link to this entry Wed, 17 May 2006Would the person who has named their machine samba.org... ...please knock it off. Here are the log files back that you keep mailing to us. We don't want them. posted at: 18:00 | path: /internet | permanent link to this entrylogcheck is cool. A stray SMART error message in /var/log/messages suggested that a disk in the RAID array on samba.org was going to fail. Turns out that the RAID controller was not fully supported under Linux when the machine was installed, so RAID status info was not being logged and one of the disks had completely failed a number of months ago. Thanks to efforts by tridge we had a new disk up and running within a short period of time. This has spurred me to continue tweaking my logcheck filters in case something like this happens again. It's very easy to visually filter (i.e completely ignore) a large number of messages and miss out on the important stuff so I've been researching each unfiltered message that appears and either doing something about it, or creating filter so I don't see it in the future. According to this mailing list posting, the log message: May 17 00:46:12 dp spamd[656]: prefork: select returned error on server filehandle: is perfectly normal and occurs every time a spamd child processes 200 messages. Unfortunately this message implies something has gone wrong when really everything is OK. Why does it appear in the log file then? Grr. posted at: 12:23 | path: /software | permanent link to this entryThu, 30 Mar 2006John-Mark Gurney has picked up my old abandoned media server code and make it work a bit better. Check it out here. posted at: 09:33 | path: /pvr | permanent link to this entryMon, 13 Mar 2006From a recent slashdot story about geeks going on strike: "Nice computer you have there. Shame if nothing were to happen to it".posted at: 14:24 | path: /humour | permanent link to this entry Sat, 11 Feb 2006Because I can never remember the command line for merging between Samba branches, here it is: posted at: 11:20 | path: /software/samba | permanent link to this entrysvn merge \ svn+ssh://samba.org/data/svn/samba/branches/tmp/deryck-samba4-swat \ svn+ssh://samba.org/data/svn/samba/branches/SAMBA_4_0 . Thu, 02 Feb 2006I had a whole lot of spare time on Tuesday so I went about installing postgrey, a greylisting policy server for postfix on samba.org. The install went well, but I ended up using a configuration that was not suitable for servers that run programs that deliver mail using SMTP over localhost, like mailman. It turns out I needed permit_mynetworks in the smtpd_recipient_restrictions configuration to get things working nicely. After thinking about it for a while, I realised that Volker asked me to install postgrey at the last to CIFS conferences, which means that this task has been on my to do list for at least two years. Well at least it's done now! posted at: 11:32 | path: /software | permanent link to this entryThu, 19 Jan 2006Some people have been asking about my Python Media Server code. The story is that I have ceased development on it due to continuing bad experiences (bad wireless support, bad playback of MPEG-2 and MPEG-4 files, media server bugs) with the Zensonic Z400. I have since given up and have set up a MythTV setup instead. The code, such as it is, can be downloaded here in case anyone is interested. It has been licensed under the MIT license. posted at: 13:44 | path: /pvr | permanent link to this entryTue, 17 Jan 2006Well wouldn't you know it, two tuners for a PVR just isn't enough. Who would have guessed. I bought a third tuner yesterday, a DNTV Live! LP as the FusionHDTV Lite cards don't seem to be available anymore. Chris mentioned that the driver for these cards, at least in kernel 2.6.12, doesn't detect the card properly. Jan 17 18:02:24 localhost kernel: cx88[0]/2: found at 0000:05:06.2, rev: 5, irq: 16, latency: 32, mmio: 0xc9000000 Jan 17 18:02:24 localhost kernel: cx88[0]/2: cx2388x based dvb card Jan 17 18:02:24 localhost kernel: mt352_read_register: readreg error (reg=127, ret==-121) Jan 17 18:02:24 localhost kernel: cx88[0]: frontend initialization failed Jan 17 18:02:24 localhost kernel: ACPI: PCI interrupt for device 0000:05:06.2 disabled Jan 17 18:02:24 localhost kernel: cx88-dvb: probe of 0000:05:06.2 failed with error -1 Jan 17 18:02:38 localhost kernel: cx2388x dvb driver version 0.0.4 loaded I think he had to patch the driver and recompile, but google finds a better way. Just add a line to a new file in /etc/modprobe.d and everything is OK. options cx88xx card=19 Myth picked up the new tuner after a 30 second trip to the configuration utility. However due to some possible kernel upgrade wierdness I discovered I had lost sound. I needed to change the sound output device from /dev/dsp to ALSA:default and the mixer device from /dev/mixer to default. I guess some of the old OSS device files are no longer supported and have been replaced by ALSA ones. Next I'll be thinking that 250GB is not enough to hold my recordings... posted at: 18:51 | path: /pvr | permanent link to this entryFri, 13 Jan 2006Planet Mirror Looking for Staff The guys at Planet Mirror are looking for staff. From their ad: Planet Mirror is one of the premier download resources in the world. Daily we exceed over 1 Million downloads to 500,000 people and push out over 2TB of traffic (yes, Terabytes). We have over 15 TB of RAID5 storage covering 1000+ archives and 5 million files. Holy crap! 2TB of traffic per day! That is some serious bandwidth. I wonder what the statistics are for the average download size? The mean download is 50MB per person, but it's probably skewed bimodally by users downloading either many small files or a smaller number of ISO images. posted at: 10:00 | path: /computers | permanent link to this entry | ||||||||||||||||