Played around with a Pinnacle Nano Stick Ultra (model 73e) where the Mac software (EyeTV Lite) was really nice, and the Windows XP software from Pinnacle was rather so so. As I had Ubuntu 8.10 installed in a virtual machine anyway, and I would like to have a Linux router do the recording I need, it was a good time to play with that.
It turned out to be really simple. Install Kaffeine, plug in the USB-adapter, start Kaffeine (I had to do it from a root shell) and tell it to AUTOSCAN. Go to DVB and Scan channels.
The channels are listed in the right panel, select all, and move them to the left. That's it. Now the channels can be chosen and the TV shown.
"Instant recording" records the transport stream to a m2t-file named after the show and channel in the current directory. This can be viewed directly with mplayer.
The Linux software is more powerful but a very unfinished product in my opinion.
tirsdag den 24. februar 2009
mandag den 26. januar 2009
Eclipse editor font under OS X 10.5
I spend a lot of my time inside Eclipse and have found that one of the most important things to get right is to get a very readable font in the editor window.
Under XP, there are plenty of alternatives - currently I use the Consolas font - but fonts render differently under OS X. So I spent some time getting this right on my MacBook with a 1200 x 800 display. I have found that spacing between lines is very important to me

This is the default Monaco as chosen by Eclipse. It is a bit too small for using on a 13" Mac.

Monaco at size 13. This is actually quite nice with proper spacing and large, readable characters and may be perfectly fine for most. Unfortunately I don't like the asymmetry in the characters (they all look like they were pushed on the upper left corner), but it is ok.
This is size 13 of the Liberation Mono fonts from Red Hat (which were designed to have the same physical size as the fonts Microsoft provides), and which is really nice. I have used it for a while and it is fine.
The Inconsolatas font at size 14. This is my personal favorite - fine spacing and kerning, not too black letters but not too thin either. The author was inspired by the Consolas font and has done a great work.
Under XP, there are plenty of alternatives - currently I use the Consolas font - but fonts render differently under OS X. So I spent some time getting this right on my MacBook with a 1200 x 800 display. I have found that spacing between lines is very important to me

This is the default Monaco as chosen by Eclipse. It is a bit too small for using on a 13" Mac.

Monaco at size 13. This is actually quite nice with proper spacing and large, readable characters and may be perfectly fine for most. Unfortunately I don't like the asymmetry in the characters (they all look like they were pushed on the upper left corner), but it is ok.
This is size 13 of the Liberation Mono fonts from Red Hat (which were designed to have the same physical size as the fonts Microsoft provides), and which is really nice. I have used it for a while and it is fine.
The Inconsolatas font at size 14. This is my personal favorite - fine spacing and kerning, not too black letters but not too thin either. The author was inspired by the Consolas font and has done a great work.
tirsdag den 30. december 2008
iMovie'08 and dvd's.
I have a Sony harddisk recorder and I have until now been using Handbrake to pull recorded shows into my iPod (with a two-pass encoding which makes transitions nicer), but then I had to do the show editing on the harddisk recorder which was rather tedious.
It then turns out that iMovie 08 understands how to pull off movies from a DVD-based camcorder, which happens to be the same as inserting an unprotected DVD in the slot-in drive, which is great! Unfortunately iMovie'08 apparently very frequently crashes when reading such DVD's and it also happened for me when trying.
The stack trace looks like:
0 com.apple.MPEG2PSRADPlugin 0x1ab531a5 0x1ab51000 + 8613
1 com.apple.Foundation 0x969f1a07 -[NSObject(NSKeyValueCoding) valueForKey:] + 135
2 com.apple.proapps.MIO 0x1a14e8ed -[MIORADClipDataSourceContainer clipID] + 61
3 com.apple.proapps.MIO 0x1a140d04 -[MIORADClip valueInMetadataFileForProperty:] + 158
4 com.apple.proapps.MIO 0x1a13d9d4 -[MIORADClip inTC] + 56
5 com.apple.proapps.MIO 0x1a13e1c5 -[MIORADClip durationTC] + 41
6 com.apple.iMovie7 0x00027812 0x1000 + 157714
7 com.apple.iMovie7 0x00027736 0x1000 + 157494
8 com.apple.iMovie7 0x00025ebc 0x1000 + 151228
9 com.apple.iMovie7 0x0001ecf8 0x1000 + 122104
10 com.apple.Foundation 0x969cdf1c _nsnote_callback + 364
11 com.apple.CoreFoundation 0x956448da __CFXNotificationPost + 362
12 com.apple.CoreFoundation 0x95644bb3 _CFXNotificationPostNotification + 179
13 com.apple.Foundation 0x969cb080 -[NSNotificationCenter postNotificationName:object:userInfo:] + 128
14 com.apple.Foundation 0x969d48c8 -[NSNotificationCenter postNotificationName:object:] + 56
15 com.apple.iMovie7 0x0000fffb 0x1000 + 61435
16 com.apple.Foundation 0x96a4de94 _NSSetObjectValueAndNotify + 164
17 com.apple.iMovie7 0x000122cb 0x1000 + 70347
18 com.apple.Foundation 0x96a4eb0e NSKVONotify + 62
19 com.apple.Foundation 0x969cafd2 -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] + 546
20 com.apple.CoreFoundation 0x956ccdd9 -[CFXPreferencesPropertyListSource setValue:forKey:] + 73
21 com.apple.CoreFoundation 0x956ceb06 _CFXPreferencesSetValue + 102
22 com.apple.Foundation 0x96a27a91 -[NSUserDefaults(NSUserDefaults) setObject:forKey:] + 113
23 com.apple.iMovie7 0x0000f502 0x1000 + 58626
24 com.apple.iMovie7 0x001540a9 0x1000 + 1388713
25 com.apple.AppKit 0x94d5753b -[NSApplication sendAction:to:from:] + 112
26 com.apple.AppKit 0x94d57478 -[NSControl sendAction:to:] + 108
27 com.apple.AppKit 0x94d572fe -[NSCell _sendActionFrom:] + 169
28 com.apple.AppKit 0x94d56957 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 1827
29 com.apple.AppKit 0x94d561aa -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 541
30 com.apple.AppKit 0x94d55a64 -[NSControl mouseDown:] + 888
31 com.apple.AppKit 0x94d541a3 -[NSWindow sendEvent:] + 5381
32 com.apple.AppKit 0x94d20d49 -[NSApplication sendEvent:] + 2941
33 com.apple.iMovie7 0x00031cda 0x1000 + 199898
34 com.apple.AppKit 0x94c7e69f -[NSApplication run] + 847
35 com.apple.AppKit 0x94c4b8a4 NSApplicationMain + 574
36 com.apple.iMovie7 0x00005474 0x1000 + 17524
37 com.apple.iMovie7 0x00002e92 0x1000 + 7826
38 com.apple.iMovie7 0x00002db9 0x1000 + 7609
The method names in the stack trace indicates that there was a problematic key-value pair in the data stored about the movie snippets which from visual inspection appears to happen when creating miniatures in the scan process.
I then did some trial-and-error and found that
For now I am leaving this - I got the songs on the iPod I wanted :) - but I think that the next step would be to isolate a small clip with this problem, and then look into the MPEG stream to see if there is anything out of the ordinary.
It then turns out that iMovie 08 understands how to pull off movies from a DVD-based camcorder, which happens to be the same as inserting an unprotected DVD in the slot-in drive, which is great! Unfortunately iMovie'08 apparently very frequently crashes when reading such DVD's and it also happened for me when trying.
The stack trace looks like:
0 com.apple.MPEG2PSRADPlugin 0x1ab531a5 0x1ab51000 + 8613
1 com.apple.Foundation 0x969f1a07 -[NSObject(NSKeyValueCoding) valueForKey:] + 135
2 com.apple.proapps.MIO 0x1a14e8ed -[MIORADClipDataSourceContainer clipID] + 61
3 com.apple.proapps.MIO 0x1a140d04 -[MIORADClip valueInMetadataFileForProperty:] + 158
4 com.apple.proapps.MIO 0x1a13d9d4 -[MIORADClip inTC] + 56
5 com.apple.proapps.MIO 0x1a13e1c5 -[MIORADClip durationTC] + 41
6 com.apple.iMovie7 0x00027812 0x1000 + 157714
7 com.apple.iMovie7 0x00027736 0x1000 + 157494
8 com.apple.iMovie7 0x00025ebc 0x1000 + 151228
9 com.apple.iMovie7 0x0001ecf8 0x1000 + 122104
10 com.apple.Foundation 0x969cdf1c _nsnote_callback + 364
11 com.apple.CoreFoundation 0x956448da __CFXNotificationPost + 362
12 com.apple.CoreFoundation 0x95644bb3 _CFXNotificationPostNotification + 179
13 com.apple.Foundation 0x969cb080 -[NSNotificationCenter postNotificationName:object:userInfo:] + 128
14 com.apple.Foundation 0x969d48c8 -[NSNotificationCenter postNotificationName:object:] + 56
15 com.apple.iMovie7 0x0000fffb 0x1000 + 61435
16 com.apple.Foundation 0x96a4de94 _NSSetObjectValueAndNotify + 164
17 com.apple.iMovie7 0x000122cb 0x1000 + 70347
18 com.apple.Foundation 0x96a4eb0e NSKVONotify + 62
19 com.apple.Foundation 0x969cafd2 -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] + 546
20 com.apple.CoreFoundation 0x956ccdd9 -[CFXPreferencesPropertyListSource setValue:forKey:] + 73
21 com.apple.CoreFoundation 0x956ceb06 _CFXPreferencesSetValue + 102
22 com.apple.Foundation 0x96a27a91 -[NSUserDefaults(NSUserDefaults) setObject:forKey:] + 113
23 com.apple.iMovie7 0x0000f502 0x1000 + 58626
24 com.apple.iMovie7 0x001540a9 0x1000 + 1388713
25 com.apple.AppKit 0x94d5753b -[NSApplication sendAction:to:from:] + 112
26 com.apple.AppKit 0x94d57478 -[NSControl sendAction:to:] + 108
27 com.apple.AppKit 0x94d572fe -[NSCell _sendActionFrom:] + 169
28 com.apple.AppKit 0x94d56957 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 1827
29 com.apple.AppKit 0x94d561aa -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 541
30 com.apple.AppKit 0x94d55a64 -[NSControl mouseDown:] + 888
31 com.apple.AppKit 0x94d541a3 -[NSWindow sendEvent:] + 5381
32 com.apple.AppKit 0x94d20d49 -[NSApplication sendEvent:] + 2941
33 com.apple.iMovie7 0x00031cda 0x1000 + 199898
34 com.apple.AppKit 0x94c7e69f -[NSApplication run] + 847
35 com.apple.AppKit 0x94c4b8a4 NSApplicationMain + 574
36 com.apple.iMovie7 0x00005474 0x1000 + 17524
37 com.apple.iMovie7 0x00002e92 0x1000 + 7826
38 com.apple.iMovie7 0x00002db9 0x1000 + 7609
The method names in the stack trace indicates that there was a problematic key-value pair in the data stored about the movie snippets which from visual inspection appears to happen when creating miniatures in the scan process.
I then did some trial-and-error and found that
- Removing menus did not influence the crashing.
- By splitting up a recording in pieces - thinking that the length of the movie was the troublesome meta data- iMovie didn't crash while scanning and allowed me to pull in the pieces.
- The "create miniatures" post processing then hanged. The progress bar kept moving from about 65% to 70%, and then jumping back to 65%. Right-clicking on iMovie and telling it to "Stop" made the process finish without stopping iMovie.
For now I am leaving this - I got the songs on the iPod I wanted :) - but I think that the next step would be to isolate a small clip with this problem, and then look into the MPEG stream to see if there is anything out of the ordinary.
OpenSolaris 2008.11
Now I had some time to play with OpenSolaris 2008.11.
So next is looking at whether dtrace can be useful from within Java combined with logging.
- Installs well on physical hardware (dual Pentium III) and VirtualBox under OS X (768 Mb RAM).
- Does not install well under vmware as vmware tools goes haywire.
- Eclipse 3.4.0 is available in the package system - whee! - but is not integrated in the menu - boo! - so you must run /usr/eclipse/eclipse manually and software updates are disabled, and no web browser setup. It is a start though :D
- ssh logins are enabled as part of the install.
So next is looking at whether dtrace can be useful from within Java combined with logging.
tirsdag den 9. september 2008
Disabling ads in Windows Live Messenger
By adding this line
127.0.0.1 rad.msn.com
to C:\windows\system32\drivers\etc\hosts, Windows Live Messenger just show a nice image instead of various ads (after being restarted). A one-liner for cmd.exe:
127.0.0.1 rad.msn.com
to C:\windows\system32\drivers\etc\hosts, Windows Live Messenger just show a nice image instead of various ads (after being restarted). A one-liner for cmd.exe:
echo 127.0.0.1 rad.msn.com >> C:\windows\system32\drivers\etc\hosts
søndag den 27. juli 2008
OpenSolaris woes
I have played around with OpenSolaris 2008.05 a bit, and found that the updates are still sub-standard (why must I manually update grub when doing "pkg image-update"?). Additionally the fonts get very very ugly so I went back to the original install, which is where I will stay for a while yet.
I reinstalled to get a clean system, and have found some more fun stuff:
I reinstalled to get a clean system, and have found some more fun stuff:
- If your system gets an address with DHCP, and the system for some reason cannot keep the IP address, it does not automatically come back online when the network connection is reestablished (but zones do as they are statically configured, unfortunately you cannot come to the global zone from "inside" so it doesn't help much).
- Tried getting a usable VirtualBox instance on my laptop - for some reason it just doesn't work well. Perhaps I am stuck with vmware for this, abeit I'd rather use virtual box as Sun is VERY interested in having this work well.
- The Xming X server runs very well with OpenSolaris (http://www.straightrunning.com/XmingNotes/) also with Windows 2000 (an older version).
- Now I cannot get the Bonjour stuff to work, so no names for me, just new exciting IP numbers to remember.
- The SVC stuff is a nightmare to figure out how to get a simple java process (Jetty) to run at boot time. Sigh sigh sigh.
Abonner på:
Opslag (Atom)