Tuesday, November 24, 2009

Best Quote from a Review Ever

In The Village Voice Chuck Wilson reviews 2012 with this wonderful beginning:

Completing his multi-film vendetta against the world's tourist trade, German-born director Roland Emmerich sends the mother of all storms to level the Washington Monument, the Eiffel Tower, ...


http://www.villagevoice.com/2009-11-10/film/the-end-is-near-in-emmerich-s-2012/

Friday, November 13, 2009

Sitting Up

The twins are 7 1/2 months old and Rosie sat up twice this morning. Mum and Dad were watching the girls - so I haven't seen this momentous feat yet. They're almost crawling too! Sleeping in their sleeping bags. Eating three meals a day. Oh - and very cute.

Saturday, September 12, 2009

First Solids

Yesterday, the twins had their first solids. They had a tiny bit of farex (rice cereal) mixed with formula. I put a baby spoon in front of Rosie and she tasted it. Her face was a mixture of horror and fascination :-) Sven tried feeding Callie - rather than giving her a taste. She pushed most back out again. I suppose we'll try again today after lunch and see if there is more interest. They're 5 1/2 months so if they don't get interested in a few days we'll stop again and try again in a few weeks.

Thursday, September 10, 2009

Rosie and Callie

Since I last posted we've had twin girls - Rosie and Callie. They are 5 months old now. Today Rosie put her foot in her mouth for the first time - developmental milestone - tick.
They are both sticking they're feet in the air in a v shape, grabbing their ankles and tipping over to the side. Rosie started first. Both now swivel when put down on the play mat.

Friday, March 13, 2009

Linux and the Treo

I got a new notebook a while ago and put debian on it. While I had my treo running on my old notebook running debian without a problem I couldn't get my new notebook to synch using jpilot or any of the other standards. I just tried again and now I know what I was doing wrong.

I had jpilot and pilot-link etc and I'm running the 2.6.28-1 amd 64 debian standard linux kernel. Each time I would press the hotsync button on my palm, I'd get something like

[245227.264134] usb 6-1: USB disconnect, address 9
[245228.000084] usb 6-1: new full speed USB device using uhci_hcd and address 10
[245228.166546] usb 6-1: configuration #1 chosen from 1 choice
[245228.171749] usb 6-1: New USB device found, idVendor=0830, idProduct=0061
[245228.171755] usb 6-1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[245228.171761] usb 6-1: Product: Palm Handheld
[245228.171764] usb 6-1: Manufacturer: Palm, Inc.
[245228.171768] usb 6-1: SerialNumber: PalmSN12345678


And if I hotsynched again then the address would go up by 1. The instructions I found told me to select a /tty/usb? device with jpilot.

Today I found that I'm supposed to use usb:

Then it works fine :-) I don't know whether this option wasn't there last time I tried it with earlier versions of the kernel or whether I just found really old howto documents. Anyway now it's on this blog next time I forget I can find the answer...

Thursday, January 01, 2009

Twinhan Remote, Lirc and Freevo or How I spent my holidays

Ok Not all my holidays... We went home for a family Christmas and when I came back I decided to put the livepause plugin for our Freevo box. I'm spending a lot of time in a chair at the moment and it gave me something entertaining to play with.

Livepause Plugin

I followed the installation instructions on the freevo plugin page. Downloaded dvbstreamer, followed instructions, changed my freevo start up script (running debian) so that it started dvbstreamer and stopped it when I started and stopped freevo and I could pause live tv. Worked very well - thanks live pause writer :-)

Had to do a few tweaks:
- had to create the path to the buffer directory eg /tmp/freevo before starting freevo. Discovered that it would disappear on a reboot so I moved it to my /data directory.
- Looking in the log each time was very useful because it would show why it was failing eg typo, dvbstreamer not started, dvb card not released from last run etc.
- The instructions from the next section on the old dvbstreamer was useful too because it contained information on starting dvbstreamer etc.



All was not perfect in the livepause garden unfortunately. Key control was obviously coming from whatever player I was using and no keystrokes were getting to freevo which would allow me to rewind and fastforward, record and other funky features implemented by the kind livepause implementer.

After much fiddling around and searching I found a post which explained my problem. We are using our video through x11. This means that when we have mplayer, vlc or xine playing, they have the window focus and all commands are passed directly to them. Freevo is not being passed keystrokes.
There is a -win command for mplayer used by the mozilla plugin that could get around this (must explore).

A way for us to avoid this was to use a remote control with lirc. Happily we happened to have one handy so we could try it out. So I had to setup a twinhan remote control with lirc. This took several attempts.

Twinhan Remote and Lirc

The Twinhan remote control we have has a usb connector on the ir receiver. This is picked up as a keyboard and mouse event devices.

lsusb output:

Bus 003 Device 002: ID 6253:0100 TwinHan Technology Co., Ltd Ir reciver f. remote control



dmesg output

[ 6.465970] input: Twinhan Tech Remote Control as /class/input/input1
[ 6.487824] input,hidraw0: USB HID v1.10 Keyboard [Twinhan Tech Remote Control] on usb-0000:00:1a.2-2
[ 6.508907] input: Twinhan Tech Remote Control as /class/input/input2
[ 6.520802] input,hidraw1: USB HID v1.10 Mouse [Twinhan Tech Remote Control] on usb-0000:00:1a.2-2


When you plug it in it acts like a keyboard so you could just map the keys - except the ones that are more than one character and will not be passed into X. We needed lirc input to bypass the keyboard layer - this took my a while to put all the steps together. I don't know why what worked perfectly for other people did not work for me but I finally got it going :-)


I followed step 1 of these useful instructions from Adam Pierce. I installed his lircd.conf file and edited by hardward.conf file to include his settings etc.

This did not work - the twinhan remote is a usb device and it was still being intercepted as a keyboard.

I learnt that the lirc test program irw by default looks for a /dev/lircd and /dev/lirc. With usb devices the /dev/lirc is not created as it uses a link to the /dev/input event device created for the keyboard handler. When your run irw with no commands the first time it will kill your lircd and the second time you run it you will get

connection refused


I tried various other techniques which all failed.

Then I found this in the faq:

Start the daemon this way:
/usr/sbin/lircd -H dev/input -d /dev/input/eventn.


I modified it to use my device by id instead of the event which will keep changing.

lircd -H dev/input -d /dev/input/by-id/usb-Twinhan_Tech_Remote_Control_1111111-event-kbd


This gave me an irw that was displaying the keystrokes for everything but the power button.

I run debian and found what I needed to do to get the /etc/init.d/lirc start up file to use the settings from the hardware.conf file was to change the settings for the /etc/lirc/hardware.conf file from

REMOTE_DRIVER="devinput"
REMOTE_DEVCE="/dev/input/by-id/usb-Twinhan_Tech_Remote_Control_1111111-event-kbd"


which is what Adam Pierce had to

DRIVER="dev/input"
DEVCE="/dev/input/by-id/usb-Twinhan_Tech_Remote_Control_1111111-event-kbd"


Then I could start up automatically using
/etc/init.d/lirc start


On Adam Pierce's earlier version of his instructions a helpful poster had recommended adding this to the /etc/lirc/lircd.conf file to add the power button:

POWER 0×1001d


So I added it and it worked fine.

Now on to the freevo setup.

Wednesday, November 19, 2008

Nextwiki has new name

The TWiki fork has now decided on a name. They have decided on Foswiki. This is the most popular AND least hated of the names they'd decided to select from. Getting both of these is pretty impressive :-)

It's not the most scintillating name but it will not be embarrassing to mention to my managers so it meets my major wish list.

Sunday, November 02, 2008

x10 Automation and the cm15a

Haven't played with misterhouse for a while and since the last time we did, we upgraded the kernel on our freevo misterhouse media box.

Tried to turn on a light for a while and released that as we're using the usb cm15a as our pc interface, I needed to rebuild the module. Look at my last blog notes and found that they really weren't detailed enough for me to remember how it all worked. Bad bristley - should take better notes.

Searching google based on the sparse clues I'd left myself I found this useful post on the cm15a with the generic usb driver.

So a synopsis in case it disappears or I'm too lazy to look it up next time.

Doing cat /proc/bus/usb/devices shows me that I have the x10 usb device there but no driver.

T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 4 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0bc7 ProdID=0001 Rev= 1.00
S: Manufacturer=X10 Wireless Technology Inc
S: Product=USB ActiveHome Interface
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none)
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
E: Ad=02(O) Atr=03(Int.) MxPS= 8 Ivl=10ms


I already had the iplc driver code from this page sitting in my home directory from last time. I had already modified the code to work with the latest 2.6 kernels as recommended on the instruction page. I installed the kernel headers and kernel source (apt-get - I love Debian).

Then I built the cm15a driver - this is the bit I'd forgotten. I tried make -f Makefile.cm15a but what you're supposed to do is

make cm15a


This built the driver for me in /root/iplc/driver/linux-2.6/cm15a.d/cm15a.ko
From the cm15a.d directory I ran
insmod cm15a.ko


And then my at cat /proc/bus/usb/devices showed

T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 4 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0bc7 ProdID=0001 Rev= 1.00
S: Manufacturer=X10 Wireless Technology Inc
S: Product=USB ActiveHome Interface
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=00(>ifc ) Sub=00 Prot=00 Driver=cm15a
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
E: Ad=02(O) Atr=03(Int.) MxPS= 8 Ivl=10ms


Note that Driver on the I line now says cm15a. And there is now a /dev/cm15a0 device.

Thursday, October 30, 2008

Watching the TWiki fork

I've been watching the TWiki fork for the last day with interest. Living with one of the "forkers" makes it more interesting but I also have to watch what is happening because we've used "The Project Formerly known as TWiki" at work for years. I need to make sure there will be an upgrade path for us.

What I hope is that they choose a name for the fork that doesn't turn up with search results about tv shows and puppies. A good example of why you should check trademarks and search engines before naming your project.

Sunday, August 03, 2008

X10 Automation

Last Sunday I was looking at lighting design on the web again. With our plan to get cover the dreaded vermiculite ceiling, we'll need lights. All the lighting sites say use a mix of lighting and we didn't just want to put in newer versions of the overhead dome lights when we finally got the new ceiling. We have these lamps around the room but it's quite awkward to get to the switches to turn them on and off because of other furniture in the way so we rarely use them.

So last Sunday I ordered 2 appliance modules, a TM13 appliance module/transceiver, a little x10 wireless remote control and a cm15a usb computer interface. The remote control was part of the kit with the appliance modules and was my backup plan if I couldn't get the usb driver working with linux very quickly.

The package arrived on Wednesday. As toys go it almost qualifies as a dismal failure - I plugged a lamp into the TM13, pressed the corresponding button on the remote control and it worked. Straight way. I didn't have to modify anything - that's no fun :-)

Just as a record of what information I found:

Then I plugged the usb module into my computer. We're using debian testing 64 bit for our tv box now. Found the module code on line thanks to Linux home automation. Got the linux headers kernel package for our kernel.
Found this post on modernizing the module a bit for a later 2.6 kernel.

Read the README code and built the module.

I found various versions of mh integration of the CM15a - and finally found what I think is the latest version which worked.
useful post

So it works - except for some reason the power point the tv is plugged into - probably the crappy old wiring in our apartment block.

Using misterhhouse by the way.

Saturday, April 19, 2008

Freevo and the Aver Tv Volar - 3 tv cards

The next task with setting up the new box is getting the new usb tv card to work. It was very cheap and we just thought we'd try it out. Luckily I'd just had to use the get_dvb_firmware script from the kernel source for the other tv card so this one was a doddle.

Plug it in and dmesg says:
usb 1-3: new high speed USB device using ehci_hcd and address 4
usb 1-3: configuration #1 chosen from 1 choice
dvb-usb: found a 'AVerMedia AVerTV DVB-T Volar' in cold state, will try to load a firmware
dvb-usb: did not find the firmware file. (dvb-usb-dib0700-1.10.fw) Please see linux/Documentation/dvb/ for more details on firmware-problems. (-2)

Googled dvb-usb-dib0700-1.10.fw and found various sites where I could down load the fw file.
Put it in /lib/firmware. Unplugged the usb tv card. Plugged it back in again and got:

usb 1-3: new high speed USB device using ehci_hcd and address 5
usb 1-3: configuration #1 chosen from 1 choice
dvb-usb: found a 'AVerMedia AVerTV DVB-T Volar' in cold state, will try to load a firmware
dvb-usb: downloading firmware from file 'dvb-usb-dib0700-1.10.fw'
dib0700: firmware started successfully.
dvb-usb: found a 'AVerMedia AVerTV DVB-T Volar' in warm state.
dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
DVB: registering new adapter (AVerMedia AVerTV DVB-T Volar)
DVB: registering frontend 2 (DiBcom 7000MA/MB/PA/PB/MC)...
MT2060: successfully identified (IF1 = 1220)
input: IR-receiver inside an USB DVB receiver as /class/input/input7
dvb-usb: schedule remote query interval to 150 msecs.
dvb-usb: AVerMedia AVerTV DVB-T Volar successfully initialized and connected.


ran tzap and instantly got a lock.

My work here is done :-)

Now of course I have to make freevo work with one card watching and two cards taping.

Freevo and TV Card Again - Blogs are Useful

In October 2006 I blogged about setting up a new tv card to work with Freevo. Today I set up a new box and I referred to my own blog post to set it up. Isn't that cool.

We've got two digital tv cards and one was working and one wasn't. I could run scan and tzap and get a lock on adapter 1 but adapter 0 just said:

sylvia:/usr/share/doc/dvb-utils/examples/scan/dvb-t# tzap -a0 -c /tmp/channels.conf "ABC1"
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
tuning to 226500000 Hz
video pid 0x0200, audio pid 0x028a
status 00 | signal ffff | snr 0000 | ber 0001fffe | unc 00000000 |
status 00 | signal ffff | snr 0000 | ber 0001fffe | unc 00000000 |
status 00 | signal ffff | snr 0000 | ber 0001fffe | unc 00000000 |
status 00 | signal ffff | snr 0000 | ber 0001fffe | unc 00000000 |

The new tv box is called sylvia because she's silver :-)

Swapped the cables over - and same result. Looked in dmesg (which I should have done first) and found


tda1004x: found firmware revision 0 -- invalid
tda1004x: waiting for firmware upload (dvb-fe-tda10045.fw)...
tda1004x: no firmware upload (timeout or file not found?)
tda1004x: firmware upload failed

lspci says

04:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
04:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
04:01.0 Multimedia controller: Philips Semiconductors SAA7146 (rev 01)


Found my block post and it helpfully told me to download the kernel source package (we use debian), look in the Documentation/dvb directory and run

get_dvb_firmware tda10045

This downloads the firmware and you then copy it to in our case /lib/firmware.

run tzap again:

tda1004x: found firmware revision 0 -- invalid
tda1004x: waiting for firmware upload (dvb-fe-tda10045.fw)...
tda1004x: no firmware upload (timeout or file not found?)
tda1004x: firmware upload failed
tda1004x: found firmware revision 0 -- invalid
tda1004x: waiting for firmware upload (dvb-fe-tda10045.fw)...
tda1004x: firmware upload complete
tda1004x: found firmware revision 2c -- ok


The other stuff I had to do then with blacklisting modules etc is no longer necessary.
we are running a 2.6.24 kernel.

tzaps happily now.
Now onto the usb tv card :-)

Wednesday, April 09, 2008

Feeling of Successful Altruism

I've received several thank you notes from people who've found answers to problems in my neglected blog. The most common is my post about finding the thinkpad wireless switch. The little one, you can't see from above on the front of the notebook that when you turn hit it by accident disables your wireless. I had to do a google search to find it - finding the manual originally and some people have found the answer from my blog. I have done some good in the world :-)

Monday, December 17, 2007

R.O.U.S.es Found

As CNN and everyone else is reporting, a giant rodent has been found in Indonesia. It is 5 times the size of a normal rat.

Yes they've been found. Really and Truly live ROUSes.

It's the Princess Bride quote brought to life:

"What about the R.O.U.S's?"

"Rodents of Unusual Size - I don't think they exist"

Sunday, December 09, 2007

Staring at the Ceiling

We bought an apartment a year ago. It has a vermiculite ceiling. In the USA they seem to be called popcorn ceilings. I just call them ugly. We've been getting some quotes on how to get rid of it.
Our choices seem to be:

- Live with it. I don't like that option.
- Paint it. Everyone I know who has done that says it takes lots of paint. They sell a sealant that's supposed to mean that it drink in the paint. People say it looks much better but you can still see the shadows.
- Rip up the ceiling - we're on the top floor so we wondered whether if we could just put in a new ceiling all together. We've been told that because we're on the top floor we have to have a fireproof ceiling which would be more expensive and possibly would need an inspection. The advise of the people coming in for quotes was "Oh you wouldn't want to do that".
- Put in a drop or false ceiling. This looks like the only option. It won't be grey and ugly but we'll lose some height. We can do the normal fixings which lose 10 cm and put in downlights (environmentally friendly ones obviously) or we can tack it on the existing ceilig and only lose a few centimeters.

At the moment we're still waiting for the quoters to send us they're quotes. They we have to get decide what we want and get it aproved by the body corporate. The next meeting is February. I thought we'd be irritated waiting for so long. Fortunately it appears to take so long to get quotes that we'll probably be lucky if we have the whole job planned out by then.



Whatever happens the ceiling MUST GO.

Monday, December 03, 2007

Dentist

I went to the dentist today. I hate going to the dentist. I had been avoiding it for ages and then I started feeling tender around my gum. I finally rang up to make an appointment this morning. I thought it would be a week or two until I could get an appointment. Instead I got one for 3pm. I was mildly worried all day and was expecting nasty and painful things to happen.

Instead I got a cleaning and nothing else. I didn't even come out with sensitive teeth. Now I don't have to feel guilty about not going to the dentist for another 6 months.

Thursday, August 23, 2007

Solaris Patches

I'm making a solaris patch for a package. This has been a very educational experience.
Either Sun haven't documented this very thoroughly or I'm just managing to miss the current accurate howto document. Looking at other people's posts it looks like others are in the same boat.

Some notes on what I've found:

- All solaris patches have a unique id. They have to be of format XXXXXX-YY where X is a 6 digit unique id identifying what your patching and YY is the version. It also allows you to put capital letters infront which means you can put your company infront and not have to worry about clashing with anyone else.

- read the /usr/lib/patch/patchadd script - it contains the error codes information like the allowed version id format.

- If you doing a patch add and getting something like:

The patch or patch_list 123456-01 cannot be found in
/opt/mydir.


Check your error code you are getting error code 34 which is "Incorrect patch spool directory". It may mean that like me you haven't added a .diPatch file.

Monday, August 20, 2007

Weather Culture Shock

We've been back 2 days now. Since then it has been grey, rainy, chilly and other blahy Sydney winter things. It's kind of like a grey Switzerland Autumn day. We just left summer.

Well we just left summer from a country a long way from an ocean with excellent central heating so 15 degrees there means put on a jumper when you go outside unless your doing exercise. 15 degrees here means where thick socks and a thick polarfleece inside. Weather Culture Shock.

Saturday, August 18, 2007

Bunch


Bunch
Originally uploaded by bristley
We went to Paris to see the last stage of the Tour de France again. We took the new TGV - 4.5 hours Zurich to Paris. For July 29th we were standing in the rain on the loop of the final laps. Lots of fun as usual.

We're Back

We flew back to Sydney yesterday. We arrived in Zurich at the beginning of March for what was supposed to be a 2 1/2 month trip. 5 1/2 month laters we're back. I finished work on the 3rd August and we then went on a small cycle tour from the Bodensee to Salzburg.

On Saturday we left our serviced apartment with our bikes and small backpacks and rode to the Zurich Hauptbahnhof - that's the main train station. Our previous cycle tours have been on mountain bikes with slicks and racks with our gear in panniers. For this trip we had road bikes and so we're carrying clothes on our backs. An interesting experiment for us.

For Dear Reader's birthday I had selected a cycle tour book from the German "Bikeline" series that was around the right length for 10 days and we'd decided to start with that. It was the "Bodensee Koenigsee" ride. That's Lake Constance to a lake in Germany about 20 km from Salzburg.

Our first challenge was to get to the Bodensee. We really wanted to get to Lindau but on inquiring at the train station, because it was Saturday in the holiday season - August all the bike reservations on the direct trains were taken. Instead we caught the train to Romanshorn which has a bike carriage - childrens playground on the top level and half the carriage for bikes on the bottom level. From Romanshorn we caught ferry across the Bodensee to Friedrichshaven. Then we rode about 20km around the lake to Lindau and the start of the ride.

A friend at work in Switzerland had described riding on the Bodensee Rundweg (the path around the Bodensee) once - saying that you needed to book a slot to fit in. There were so many people riding this route it was unbelievable. Some people were out for day trips - others were riding with massive panniers and giant tents and sleeping bags on the back. Groups of friends and solo riders. Old and young. When passing through some villages there were more cyclists than anyone else. Even after being in Switzerland - it was a lot of bikes.

More exciting tails to come :-)