my life

day to day

Archive for September, 2006

Thunderbird got you down?

Thursday, September 28th, 2006

If you’re like me and have massive folders over IMAP, it’s likely that when Thunderbird polls them that it thinks the imap server has stopped responding. In reality, it’s still just processing your request. The error is usually “A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete”. This sensitivity of this timer can be adjusted by editing dom.max_script_run_time.

The dom.max_script_run_time preference defaults to 5 seconds in Thunderbird 1.5. Try increasing it to 30 seconds using Tools -> Options -> Advanced -> General -> Config editor

add to del.icio.us    add to technorati favs   email this

Yaesu VX-7RB

Saturday, September 23rd, 2006

VX-7RBMy newest toy is the VX-7RB quad bander. Contrary to what many say about these tiny radios, they’re not that difficult to use. Once you learn the interface, they’re very consistent. I did, however, have a problem using it in scan mode. The unit would lock up and the only solution was to take out the battery. Turns out that the microprocessor needed to be rebooted, and after that, I’ve had no problems.

73

KG6INO

 

 

 

 

 

 

 

 

 

 

 

 

 

 

add to del.icio.us    add to technorati favs   email this

PHP Segfault Backtraces

Thursday, September 21st, 2006

Got some excellent advice today on bug hunting PHP segfaults from Brian Shire. You can use GDB to inspect php internal variables to produce a readable backtrace that looks something like

(gdb) zbacktrace [0xbfec1c84] unsetMap() /path/CometSimulatorServer.class.php:144 [0xbfec21b4] unsetMap() /path/CometSimulatorAssistant.class.php:153 [0xbfec23d4] merge() /path/CometSimulatorMerge.class.php:34 [0xbfec2478] process() [0xbfec2704] call_user_func_array() /path/CometPacket.class.php:81 [0xbfec2bf4] process() /path/PacketHandler.class.php:77 [0xbfec3334] process() /path/MessagePump.class.php:84 [0xbfec35e4] recv() /path/MessagePump.class.php:56 [0xbfec3ab4] task() /path/Event.class.php:190 [0xbfec4414] run() /path/LoopScheduler.class.php:113 [0xbfec5354] dispatch() /path/cometd.php:161

Basic process
ulimit -c unlimited  # run your script

gdb /path/to/php/binary -c [corefile] -x [debug-script]

gdb debug functions

http://viewcvs.php.net/viewvc.cgi/php-src/.gdbinit?view=co

add to del.icio.us    add to technorati favs   email this

XOrg FGLRX Conf

Friday, September 15th, 2006

# ########## ATI device section # ##########Section “Device”     Identifier                          “ATI Graphics Adapter”     Driver                              “fglrx” # ### generic DRI settings ### # ########## disable PnP Monitor  ##########     #Option                              “NoDDC” # ########## disable/enable XAA/DRI ##########     Option “no_accel”                   “no”     Option “no_dri”                     “no” # ########## misc DRI settings ##########     Option “mtrr”                       “off” # disable DRI mtrr mapper, driver has its own code for mtrr # ### FireGL DDX driver module specific settings ### # ########## Screen Management ##########     Option “DesktopSetup”               “0×00000000″     Option “MonitorLayout”              “AUTO, AUTO”     Option “IgnoreEDID”                 “off”     Option “HSync2″                     “unspecified”     Option “VRefresh2″                  “unspecified”     Option “ScreenOverlap”              “0″ # ########## TV-out Management ##########     Option “NoTV”                       “yes”     Option “TVStandard”                 “NTSC-M”     Option “TVHSizeAdj”                 “0″     Option “TVVSizeAdj”                 “0″     Option “TVHPosAdj”                  “0″     Option “TVVPosAdj”                  “0″     Option “TVHStartAdj”                “0″     Option “TVColorAdj”                 “0″     Option “GammaCorrectionI”           “0×00000000″     Option “GammaCorrectionII”          “0×00000000″ # ########## OpenGL specific profiles/settings ##########     Option “Capabilities”               “0×00000000″ # ########## Video Overlay for the Xv extension ##########     Option “VideoOverlay”               “on” # ########## OpenGL Overlay ########## # Note: When OpenGL Overlay is enabled, Video Overlay #       will be disabled automatically     Option “OpenGLOverlay”              “off” # ########## Center Mode (Laptops only) ##########     Option “CenterMode”                 “off” # ########## Pseudo Color Visuals (8-bit visuals) ##########     Option “PseudoColorVisuals”         “off” # ########## QBS Management ##########     Option “Stereo”                     “off”     Option “StereoSyncEnable”           “1″ # ########## FSAA Management ##########     Option “FSAAEnable”                 “no”     Option “FSAAScale”                  “1″     Option “FSAADisableGamma”           “no”     Option “FSAACustomizeMSPos”         “no”     Option “FSAAMSPosX0″                “0.000000″     Option “FSAAMSPosY0″                “0.000000″     Option “FSAAMSPosX1″                “0.000000″     Option “FSAAMSPosY1″                “0.000000″     Option “FSAAMSPosX2″                “0.000000″     Option “FSAAMSPosY2″                “0.000000″     Option “FSAAMSPosX3″                “0.000000″     Option “FSAAMSPosY3″                “0.000000″     Option “FSAAMSPosX4″                “0.000000″     Option “FSAAMSPosY4″                “0.000000″     Option “FSAAMSPosX5″                “0.000000″     Option “FSAAMSPosY5″                “0.000000″ # ########## Misc Options ##########     Option “~UseFastTLS”                 “0″     Option “~BlockSignalsOnLock”         “on”     Option “~UseInternalAGPGART”         “no”     Option “~ForceGenericCPU”            “no”     BusID “PCI:2:0:0″    # vendor1002, device4e48     Screen 0 EndSection

add to del.icio.us    add to technorati favs   email this

Creating a Bootstrapped Debian Image

Thursday, September 7th, 2006

Create a 1 GB image file and 500 MB swap file, for larger images increase count.

dd if=/dev/zero of=debian-sarge.img bs=1024k count=1000 dd if=/dev/zero of=debian-sarge-swap.img bs=1024k count=500

Format them accordingly..

mkfs.ext3 debian-sarge.img mkswap debian-sarge-swap.img

Mount the guest image and bootstrap it. 

mount -o loop debian-sarge.img /mnt

Installl a Debian

debootstrap --arch i386 sarge /mnt http://ftp.us.debian.org/debian/

Create a fstab 
chroot /mnt mount /proc cd /dev && /sbin/MAKEDEV console && /sbin/MAKEDEV std && /sbin/MAKEDEV generic apt-get install udev locales

You’re set to go….

add to del.icio.us    add to technorati favs   email this

Converting a VMWare image to a RAW (ISO) Image

Thursday, September 7th, 2006

If you configured VMWare to use 2gb filesystem chunks, then you cannot just convert the vm.vmdk file to a raw image, you instead need to convert each chunk, then merge them together.

qemu-img  convert -f vmdk /home/e/vm/vm-s001.vmdk -O raw /tmp/vm-001.raw qemu-img  convert -f vmdk /home/e/vm/vm-s002.vmdk -O raw /tmp/vm-002.raw qemu-img  convert -f vmdk /home/e/vm/vm-s003.vmdk -O raw /tmp/vm-003.raw qemu-img  convert -f vmdk /home/e/vm/vm-s004.vmdk -O raw /tmp/vm-004.raw qemu-img  convert -f vmdk /home/e/vm/vm-s005.vmdk -O raw /tmp/vm-005.raw

 then,

cat vm-002.raw >> vm-001.raw cat vm-003.raw >> vm-001.raw cat vm-004.raw >> vm-001.raw cat vm-005.raw >> vm-001.raw

If you were successful, 

fdisk -l /tmp/vm-001.raw
 should produce a partition table
eon:/tmp# fdisk -l vm-001.raw You must set cylinders. You can do this from the extra functions menu. Disk vm-001.raw: 0 MB, 0 bytes 255 heads, 63 sectors/track, 0 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

     Device Boot      Start         End      Blocks   Id  System vm-001.raw1   *           1         997     8008371   83  Linux vm-001.raw2             998        1044      377527+   5  Extended Partition 2 has different physical/logical endings:      phys=(1023, 254, 63) logical=(1043, 254, 63) vm-001.raw5             998        1044      377496   82  Linux swap / Solaris


  

add to del.icio.us    add to technorati favs   email this

VMWare Workarounds

Thursday, September 7th, 2006

If you happened to have trouble getting VMWare working on Debian with 2.6.16-2-smp, this worked for me

Download vmware-any-any from http://ftp.cvut.cz/vmware/

run the installer,  then when running vmware client, use

VMWARE_USE_SHIPPED_GTK=force vmware

add to del.icio.us    add to technorati favs   email this