I really hope to play with Google Wave tomorrow.. WARGHHHHH
Install Flash
1 09 2009# Open a Terminal.
# Become root:
su -
# Install the Adobe repository for yum:
rpm -Uvh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
# Type:
yum install flash-plugin nspluginwrapper.{i386,x86_64} pulseaudio-libs.i386 alsa-plugins-pulseaudio.i386 libcurl.i386
Comments : Leave a Comment »
Categories : Linux
Get Relative Position of Mouse-Click in Canvas
31 08 2009function getRelativePosition(e) {
var canvas = document.getElementById("canvas-diagram");
var scroll = document.body.scrollTop;
if( typeof( canvas.offsetParent ) != 'undefined' ) {
for( var posX = 0, posY = 0; canvas; canvas = canvas.offsetParent ) {
posX += canvas.offsetLeft;
posY += canvas.offsetTop;
}
return {x: e.clientX - posX, y: e.clientY - (posY-scroll)};
} else {
return {x: e.clientX - canvas.offsetLeft, y: e.clientY - (canvas.offsetTop-scroll)};
}
}
Comments : Leave a Comment »
Categories : Canvas, HTML5, Javascript
MorphAdorner + Eclipse OutofMemoryError!
28 07 2009In eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
128M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx720m
Running examples:
Right-Click edu.northwestern.at.morphadorner.examples.PosTagString -> Run As -> Run Configurations -> Java Application->New
In Arguments Tab->Program arguments add the text to tag:
"I spent all day trying to figure out Eclipse java.lang.OutOfMemoryError: Java heap space!"
VM arguments add:
-Xms512m -Xmx1024m
Comments : Leave a Comment »
Categories : Eclipse, Error, NLP
Find Open Ports
26 07 2009List all listening ports
netstat -an |find /i "listening"
List a particular port #
netstat -an |find /i "4848"
Comments : Leave a Comment »
Categories : DOS
Run LingPipe Demo in Eclipse
26 07 2009Follow the eclipse tutorial at LingPipe
Create a New Project->Java->Java Project From Existing Ant Buildfile->Next
In Ant buildfile, Browse to \lingpipe-3.8.1\demos\generic\build.xml
Right-Click->Project Properties->Java Build Path->Libraries->Add External Jars->Add \lingpipe-3.8.1\demos\generic\lingpipe-demos.jar
To Run:
Right-Click com.aliasi.demo.framework.DemoGUI.java -> Run As -> Run Configurations -> Java Application->New
In Arguments Tab->Program arguments add
-demoConstructor=com.aliasi.demo.demos.PosDemo
-demoConstructorArgs=com.aliasi.tokenizer.IndoEuropeanTokenizerFactory,com.aliasi.sentences.IndoEuropeanSentenceModel,/pos-en-general-brown.HiddenMarkovModel,250000,250000,General English - Brown Corpus
Run
Comments : Leave a Comment »
Categories : Eclipse, NLP
Eclipse + SVN in local repository
24 07 2009Eclipse Ganymede 3.4.2
Subclipse 1.6.3
1. Download & install Subclipse – Subversion plug-in for Eclipse
Installing from Eclipse URL: http://subclipse.tigris.org/update_1.6.x/
2. Open SVN Repository Exploring Perspective
3. Click/Right-Click Add Repository Location
4. Enter URL: file:///D:/repository
Comments : Leave a Comment »
Categories : Eclipse, SVN
Install VLC on Limpus
6 07 2009#>su -
#>sudo yum install fedora-release
add both repositories and use yum.
#>wget http://download1.rpmfusion.org/free/fedora/updates/8/i386/rpmfusion-free-release-8-6.noarch.rpm
#>wget http://rpms.kwizart.net/kwizart-release-8.rpm
#>sudo rpm -U *release*rpm
#>yum install vlc
Comments : Leave a Comment »
Categories : Linux
Maximise Window
24 05 2009 ((System.Windows.Forms.Form)System.Windows.Forms.Form.FromHandle(Window.Handle)).WindowState = System.Windows.Forms.FormWindowState.Maximized;
Comments : Leave a Comment »
Categories : XNA
Export Scene
23 05 2009To save a .jpg straight from Blender:
1) Set up scene.
2) Press F10 to jump to the scene tab.
3) Under the Format heading, click on the list box next to the “Crop” button.
4) Select jpg
5) Press F12 to render.
6) After it’s done, press F3 to open up the Save Image dialog.
7) Select where you want to save it and click Save.
from: http://forums.xna.com/forums/t/30640.aspx
Comments : Leave a Comment »
Categories : Blender