Monday, November 8, 2010
Friday, November 5, 2010
Thursday, November 4, 2010
Tuesday, October 5, 2010
intellij live templates keyboard shortcuts
http://www.jetbrains.com/idea/features/code_assistance.html#Live_Templates
Tuesday, September 7, 2010
CentOS 5.5 64bit as a guest on Virtualbox
CentOS 5.5 64bit failed to install as a guest on VirtualBox. It pauses with "NET: Registered protocol family 2" before the installer even starts. The 32bit version installed fine however.
To get the 64 bit version to install as a guest on VirtualBox (redhat 64bit profile), I had to enable IO APIC under System|Motherboard
To get the 64 bit version to install as a guest on VirtualBox (redhat 64bit profile), I had to enable IO APIC under System|Motherboard
Wednesday, August 4, 2010
sqlserver authentication
sa account disable by default for security reason. to enable it http://technet.microsoft.com/en-us/library/ms188670.aspx
Wednesday, June 30, 2010
nexus one usb debugging on ubuntu 10.04
google's direction at http://developer.android.com/guide/developing/device.html did not work.
with nexus one plugged in, run
% lsusb
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 005: ID 413c:8156 Dell Computer Corp. Wireless 370 Bluetooth Mini-card
Bus 003 Device 004: ID 413c:8158 Dell Computer Corp. Integrated Touchpad / Trackstick
Bus 003 Device 003: ID 413c:8157 Dell Computer Corp. Integrated Keyboard
Bus 003 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0c45:63fa Microdia
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 032: ID 18d1:4e12
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
vendor id is 18d1 for the nexus one
also make sure permissions of 51-android.rules is rx not just r as in the google documentation
% chmod a+rx 51-android.rules
with nexus one plugged in, run
% lsusb
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 005: ID 413c:8156 Dell Computer Corp. Wireless 370 Bluetooth Mini-card
Bus 003 Device 004: ID 413c:8158 Dell Computer Corp. Integrated Touchpad / Trackstick
Bus 003 Device 003: ID 413c:8157 Dell Computer Corp. Integrated Keyboard
Bus 003 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0c45:63fa Microdia
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 032: ID 18d1:4e12
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
vendor id is 18d1 for the nexus one
also make sure permissions of 51-android.rules is rx not just r as in the google documentation
% chmod a+rx 51-android.rules
Tuesday, June 1, 2010
accessing service from grails console
given a service name FooService, to access it within the grails console:
ctx.fooService
ctx.fooService
Tuesday, May 25, 2010
vncserver vncviewer keyboard mapping messed up on ubuntu 9.10
this fixes it
gconftool --set /desktop/gnome/peripherals/keyboard/kbd/layouts --type List --list-type String [aa]
gconftool --set /desktop/gnome/peripherals/keyboard/kbd/layouts --type List --list-type String [aa]
Wednesday, March 31, 2010
Wednesday, February 17, 2010
Thursday, February 4, 2010
import java.awt.image.BufferedImage
import java.awt.Graphics
import javax.imageio.ImageIO
def colorImage = ImageIO.read(new File(args[0]))
BufferedImage greyImage = new BufferedImage(1280, 853, BufferedImage.TYPE_BYTE_GRAY);
Graphics g = greyImage.getGraphics();
g.drawImage(colorImage, 0, 0, null);
g.dispose();
File file = new File("saved.png");
ImageIO.write(greyImage, "png", file);
import java.awt.Graphics
import javax.imageio.ImageIO
def colorImage = ImageIO.read(new File(args[0]))
BufferedImage greyImage = new BufferedImage(1280, 853, BufferedImage.TYPE_BYTE_GRAY);
Graphics g = greyImage.getGraphics();
g.drawImage(colorImage, 0, 0, null);
g.dispose();
File file = new File("saved.png");
ImageIO.write(greyImage, "png", file);
Monday, January 25, 2010
zoom usb modem on ubuntu 9.10
download and run the installer
http://www.linuxant.com/drivers/dgc/downloads-installer.php
http://www.linuxant.com/drivers/dgc/downloads-installer.php
Subscribe to:
Posts (Atom)