Wednesday, September 15, 2010

svn-all-fast-export

svn-all-fast-export --identity-map ../authors.txt --rules ../config /home/mathieu/tmp/git/svneverever/gdcm


$ git branch -a ~/tmp/git/svneverever/dummy/gdcm
gdcm-2-0
gdcm-2-0-10
gdcm-2-0-11
gdcm-2-0-12
gdcm-2-0-13
gdcm-2-0-14
gdcm-2-0-15
gdcm-2-0-16
* master

* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=596937

svn2git

/var/lib/gems/1.8/bin/svn2git http://gdcm.svn.sourceforge.net/svnroot/gdcm/ --exclude Sandbox --exclude documentation

$ git tag -l ~/tmp/git/migrate
gdcm-2-0-10
gdcm-2-0-11
gdcm-2-0-12
gdcm-2-0-13
gdcm-2-0-14
gdcm-2-0-15
gdcm-2-0-16
gdcm-2-0-4
gdcm-2-0-5
gdcm-2-0-6
gdcm-2-0-7
gdcm-2-0-8
gdcm-2-0-9

$ git branch -a ~/tmp/git/migrate
gdcm-2-0
* master
trunk@1097
remotes/gdcm-2-0
remotes/trunk
remotes/trunk@1097

Thursday, September 9, 2010

Shared Folder in VirtualBox and git

I think this is a bad idea, the file do not seems to be stored the same way...

$ git status
# On branch nightly-master
# Changed but not updated:
# (use "git add ..." to update what will be committed)
# (use "git checkout -- ..." to discard changes in working directory)
#
# modified: CMake/pre-commit
# modified: Code/Numerics/cvsrmvend
# modified: Documentation/cvspasswd.exe
# modified: Examples/SearchScript.sh
# modified: Testing/Code/install_test.sh.in
# modified: Utilities/Dart/AllowContinuous.sh.in
# modified: Utilities/Dart/BuildContinuous.sh.in
# modified: Utilities/Dart/BuildContinuousWithCTest.sh.in
# modified: Utilities/Dart/ChangedSince.csh.in
# modified: Utilities/Dart/NewSince.csh.in
# modified: Utilities/Dart/PreventContinuous.sh.in
# modified: Utilities/Doxygen/cvsVersionFilter.sh
# modified: Utilities/Doxygen/vxl_doxy.pl
# modified: Utilities/KWStyle/doAllStyle.csh.in
# modified: Utilities/gdcm/Source/DataDictionary/ParseDicts.py
# modified: Utilities/gdcm/Source/DataDictionary/txt2xml.py
# modified: Utilities/gdcm/Source/InformationObjectDefinition/ParseAttributes.py
# modified: Utilities/gdcm/Wrapping/Csharp/doxy2swig.py
# modified: Utilities/gdcm/Wrapping/Python/TestWrap.py
# modified: Utilities/gdcm/Wrapping/Python/doxy2swig.py
# modified: Utilities/itktiff/dist/newalpha
# modified: Utilities/itktiff/dist/newversion
# modified: Utilities/kwsys/kwsysDateStamp.py
# modified: Utilities/kwsys/kwsysHeaderDump.pl
# modified: Utilities/nifti/Testing/nifti_regress_test/@show.diffs
# modified: Utilities/nifti/Testing/nifti_regress_test/@test
# modified: Utilities/nifti/Testing/nifti_regress_test/cmake_testscripts/comment_test.sh
# modified: Utilities/nifti/Testing/nifti_regress_test/cmake_testscripts/dci_test.sh
# modified: Utilities/nifti/Testing/nifti_regress_test/cmake_testscripts/dsets_test.sh
# modified: Utilities/nifti/Testing/nifti_regress_test/cmake_testscripts/dts_test.sh
# modified: Utilities/nifti/Testing/nifti_regress_test/cmake_testscripts/fetch_data_test.sh
# modified: Utilities/nifti/Testing/nifti_regress_test/cmake_testscripts/mod_header_test.sh
# modified: Utilities/nifti/Testing/nifti_regress_test/cmake_testscripts/newfiles_test.sh
# modified: Utilities/nifti/Testing/nifti_regress_test/commands/c06.add.ext
# modified: Utilities/nifti/fsliolib/imcp
# modified: Utilities/nifti/fsliolib/imglob
# modified: Utilities/nifti/fsliolib/imln
# modified: Utilities/nifti/fsliolib/immv
# modified: Utilities/nifti/fsliolib/imrm
# modified: Utilities/nifti/fsliolib/imtest
# modified: Utilities/nifti/fsliolib/remove_ext
# modified: Utilities/vxl/config/cmake/DSPTemplates/mex/configure
# modified: Utilities/vxl/config/cmake/DSPTemplates/mex/install-sh
# modified: Utilities/vxl/v3p/netlib/libf2c/comptry.bat
# modified: Utilities/vxl/v3p/netlib/libf2c/scomptry.bat
# modified: Utilities/vxl/vcl/generic/zap.pl
# modified: Utilities/vxl/vcl/iso/generate.sh
# modified: Validation/StatisticalClustering/Code/BrainWeb.experiment.sh
# modified: Validation/StatisticalClustering/Code/IBSR.experiment.sh
# modified: Wrapping/CSwig/BasicFiltersA/MakeConsistentWrappedClasses.sh
# modified: Wrapping/CSwig/Tcl/itkwish
# modified: Wrapping/CSwig/pythonfiles.sh.in
# modified: Wrapping/WrapITK/Python/Tests/extras.py
# modified: Wrapping/WrapITK/Python/Tests/filterCoverage.py
# modified: Wrapping/WrapITK/Python/Tests/findSegfaults.py
# modified: Wrapping/WrapITK/Python/Tests/getNameOfClass.py
# modified: Wrapping/WrapITK/Python/Tests/module2module.py
# modified: Wrapping/WrapITK/Python/Tests/simple_pipeline.py
# modified: Wrapping/WrapITK/Python/Tests/template.py
# modified: Wrapping/WrapITK/Python/Tests/typemaps.py
# modified: Wrapping/WrapITK/Tcl/itkwish.in
#
no changes added to commit (use "git add" and/or "git commit -a")

Tuesday, September 7, 2010

getting webex to work on debian lenny 64 bits

answer:

sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

error: Untracked working tree file

$ git pull --rebase
First, rewinding head to replay your work on top of it...
error: Untracked working tree file 'Utilities/gdcm/Utilities/gdcmjpeg/Jfif.txt' would be overwritten by merge.
could not detach HEAD


git reset --hard
git reset --hard ORIG_HEAD
git reset --soft HEAD^
git reset --hard
git checkout -f master
git clean -n -d
git clean -d Utilities/gdcm/Source/InformationObjectDefinition/Part3.xml
git clean -f -d Utilities/gdcm/Source/InformationObjectDefinition/Part3.xml
git clean -f -d Utilities/gdcm/Source/MediaStorageAndFileFormat/TODO.txt
git clean -f -d Utilities/gdcm/TODO
git clean -f -d Utilities/gdcm/Utilities/gdcmjpeg/Jfif.txt
git clean -f -d Utilities/gdcm/Utilities/gdcmjpeg/install.doc
git clean -f -d Utilities/gdcm/Utilities/gdcmjpeg/libjpeg.doc
git clean -f -d Utilities/gdcm/Utilities/gdcmjpeg/usage.doc
git rebase --skip

Monday, September 6, 2010

pwc: isoc_init() submit_urb 1 failed with error -28

I was getting weird messages in dmesg when using my webcam and skype:

[33436.084317] pwc: Philips PCVC730K (ToUCam Fun)/PCVC830 (ToUCam II) USB webcam detected.
[33436.576534] pwc: Registered as /dev/video0.
[33436.578372] input: PWC snapshot button as /devices/pci0000:00/0000:00:1a.1/usb2/2-1/input/input16
[33453.856189] usb 2-2: new full speed USB device using uhci_hcd and address 8
[33454.081814] usb 2-2: New USB device found, idVendor=047f, idProduct=0ca1
[33454.081822] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[33454.081828] usb 2-2: Product: Plantronics Headset
[33454.081833] usb 2-2: Manufacturer: Plantronics
[33454.081838] usb 2-2: SerialNumber: 00500-0429034410003-V060000A
[33454.082045] usb 2-2: configuration #1 chosen from 1 choice
[33454.184941] input: Plantronics Plantronics Headset as /devices/pci0000:00/0000:00:1a.1/usb2/2-2/2-2:1.3/input/input17
[33454.185190] generic-usb 0003:047F:0CA1.0003: input,hidraw0: USB HID v1.00 Device [Plantronics Plantronics Headset] on usb-0000:00:1a.1-2/input3
[35364.690746] pwc: isoc_init() submit_urb 0 failed with error -28
[35364.690754] pwc: isoc_init() submit_urb 1 failed with error -28
[35364.871851] pwc: isoc_init() submit_urb 0 failed with error -28
[35364.871861] pwc: isoc_init() submit_urb 1 failed with error -28
[35365.033814] pwc: isoc_init() submit_urb 0 failed with error -28
[35365.033833] pwc: isoc_init() submit_urb 1 failed with error -28
[35365.213861] pwc: isoc_init() submit_urb 0 failed with error -28
[35365.213873] pwc: isoc_init() submit_urb 1 failed with error -28
[35523.151863] pwc: isoc_init() submit_urb 0 failed with error -28
[35523.151871] pwc: isoc_init() submit_urb 1 failed with error -28
[35528.483086] pwc: isoc_init() submit_urb 0 failed with error -28
[35528.483105] pwc: isoc_init() submit_urb 1 failed with error -28


The solution I found was simply:

setpwc -c 3

$ setpwc -p
setpwc v1.2, (C) 2003-2006 by folkert@vanheusden.com
Current device: Philips 730 webcam
VIDIOCPWCPROBE returns: Philips 730 webcam - 730
Serial number: 0169000099000000
Resolution (x, y): 320, 240
Offset: 0, 0
Framerate: 10
Brightness: 32256
Hue: 65535
Colour: 32441
Contrast: 32768
Whiteness: 32768
Palette: YUV 4:2:0 Planar
Compression preference: 3
Automatic gain control: -23770
Whitebalance mode: auto
Blinking of LED is not supported by the combination
of your webcam and the driver.
Sharpness: -1
Backlight compensation mode: off
Anti-flicker mode: off
Noise reduction mode: 1
Pan/tilt range is not supported by the combination
of your webcam and the driver.
Get pan/tilt position is not supported by the combination
of your webcam and the driver.


I take that back this seems to only fix the symptoms. A better solution will be:

http://www.lavrsen.dk/foswiki/bin/view/PWC/FrequentlyAskedQuestionsPWC#Applications_hang_when_the_camer

Applications hang when the camera is connected through a USB hub or active extension cable
Indications: dmesg shows an error message like this:
pwc isoc_init() submit_urb 0 failed with error -12
pwc isoc_init() submit_urb 1 failed with error -12

This could be due to a problem with the enhanced host controller interface (EHCI) driver, try using the universal driver instead. Check which usb controller driver you are using (this is assuming your drivers are modules):
lsmod | grep usbcore
You should see something like
usbcore 107384 6 uhci_hcd,pwc,snd_usb_audio,snd_usb_lib,usbhid
If your *_hcd driver is ehci_hcd you could try swapping it for the uhci_hcd by doing this (as root):
rmmod ehci_hcd && modprobe uhci_hcd
Try reconnecting the hub or extension cable, cross your fingers and fire up your favorite webcam application.


This also seems confirmed with:

http://lists.openwall.net/linux-kernel/2010/03/13/408

Friday, September 3, 2010

rmmod -f pwc

don't ever do that ! when reconnecting the usb webcam, I got:

Message from syslogd@dhcp-67-183 at Sep  3 17:25:05 ...
 kernel:[32033.949742] general protection fault: 0000 [#1] SMP

Message from syslogd@dhcp-67-183 at Sep  3 17:25:05 ...
 kernel:[32033.949746] last sysfs file: /sys/devices/pci0000:00/0000:00:1a.1/usb2/2-2/2-2:1.0/video4linux/video1/uevent

Message from syslogd@dhcp-67-183 at Sep  3 17:25:05 ...
 kernel:[32033.949850] Stack:

Message from syslogd@dhcp-67-183 at Sep  3 17:25:05 ...
 kernel:[32033.949860] Call Trace:

Message from syslogd@dhcp-67-183 at Sep  3 17:25:05 ...
 kernel:[32033.949888] Code: eb 39 48 8d 6b 08 48 89 ef e8 34 af 29 e0 48 c7 c7 20 62 f8 a0 e8 47 7d 37 e0 48 8b 03 31 db 48 8b 40 40 48 85 c0 74 13 4c 89 e7 <ff> d0 85 c0 89 c3 74 08 48 89 ef e8 6e ae 29 e0 89 d8 5b 5d 41

cdrom hall of horror

Trying to copy a cdrom from a macmini g4:

[  276.200659] cdrom: This disc doesn't have any tracks I recognize!
[  449.319874] hdb: command error: status=0x51 { DriveReady SeekComplete Error }
[  449.319886] hdb: command error: error=0x50 { LastFailedSense=0x05 }
[  449.319892] hdb: possibly failed opcode: 0xa0
[  449.322229] end_request: I/O error, dev hdb, sector 0
[  449.322239] Buffer I/O error on device hdb, logical block 0
[  449.322797] hdb: command error: status=0x51 { DriveReady SeekComplete Error }
[  449.322805] hdb: command error: error=0x50 { LastFailedSense=0x05 }
[  449.322811] hdb: possibly failed opcode: 0xa0
[  449.325165] end_request: I/O error, dev hdb, sector 0
[  449.325171] Buffer I/O error on device hdb, logical block 0
[  467.504752] attempt to access beyond end of device
[  467.504763] hdb: rw=0, want=68, limit=4
[  467.504770] isofs_fill_super: bread failed, dev=hdb, iso_blknum=16, block=16

Thursday, September 2, 2010

0001:10:12.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)

I finally found some time to finish setting up my macmini g4. The wireless is working thanks to b43 module:

[   20.478909] phy0: Selected rate control algorithm 'minstrel'
[   20.479976] Registered led device: b43-phy0::tx
[   20.495164] snd-aoa-fabric-layout: can use this codec
[   20.509480] Registered led device: b43-phy0::rx
[   20.521241] Registered led device: b43-phy0::radio
[   20.544612] Broadcom 43xx driver loaded [ Features: PMLS, Firmware-ID: FW13 ]
[   39.247346] loop: module loaded
[   39.568904] SCSI subsystem initialized
[   40.817292] Adding 1507320k swap on /dev/mapper/macminig4-swap_1.  Priority:-1 extents:1 across:1507320k
[   42.004386] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   42.120237] b43 ssb0:0: firmware: requesting b43/ucode5.fw
[   42.247622] b43 ssb0:0: firmware: requesting b43/pcm5.fw
[   42.275428] b43 ssb0:0: firmware: requesting b43/b0g0initvals5.fw
[   42.303721] b43 ssb0:0: firmware: requesting b43/b0g0bsinitvals5.fw
[   42.444230] b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
[   42.513304] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   45.728382] wlan0: deauthenticating from 22:22:91:55:b4:b4 by local choice (reason=3)
[   45.728550] wlan0: direct probe to AP 22:22:91:55:b4:b4 (try 1)
[   45.731249] wlan0: direct probe responded
[   45.731255] wlan0: authenticate with AP 22:22:91:55:b4:b4 (try 1)
[   45.732898] wlan0: authenticated
[   45.732918] wlan0: associate with AP 22:22:91:55:b4:b4 (try 1)
[   45.735164] wlan0: RX AssocResp from 22:22:91:55:b4:b4 (capab=0x411 status=0 aid=2)
[   45.735169] wlan0: associated
[   45.735895] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   55.159832] lp: driver loaded but no devices found
[   55.844212] wlan0: no IPv6 routers present

Wednesday, September 1, 2010