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
Monday, December 7, 2009
ubuntu freenx arrow key
using arrow key via qtnx client while connected to an ubuntu freenx server results in a screen capture. to fix this problem follow the link below to change keyboard to "Evdev-managed keyboard"
Tuesday, November 10, 2009
freenx arrow keys don't work
After reading tons, having no clue, flailing around, on both client and server I did System, Preferences, Keyboard, Layouts, "Evdev-managed keyboard" or similar, and then in the nx session, on the server, I did System, Preference, Keyboard shortcuts, Desktop, Take a screenshot. It was "Print", I pressed "Ctrl+PrtSc", it changed to "Ctrl+Print", and now ALL the nav keys work fine.
http://ubuntuforums.org/showthread.php?t=959411
http://ubuntuforums.org/showthread.php?t=959411
Tuesday, October 27, 2009
decrease memory footprint of grails application
create war using grails war --nojar
copy shared jars into tomcat lib dir
copy shared jars into tomcat lib dir
Saturday, October 17, 2009
JavaFX on ubuntu linux
JavaFX gets a lot of bad rap, but this is mainly due to the difficulty of getting Java plugin working properly on firefox. Once the java firefox plugin is installed properly JavaFX works well. The load time is quick as well. It can be a Flash competitor if only the java browser plugin installation was easier.
I prefer downloading the JDK directly from SUN instead of using apt-get. Once the JDK is installed, all thats needed is to create a symlink.
I install my jdk in /usr/local/jdk
ln -s /usr/local/jdk/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox/plugins
Restart firefox and
I prefer downloading the JDK directly from SUN instead of using apt-get. Once the JDK is installed, all thats needed is to create a symlink.
I install my jdk in /usr/local/jdk
ln -s /usr/local/jdk/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox/plugins
Restart firefox and
Subscribe to:
Comments (Atom)