Wednesday, January 11, 2006

human powerhouse

a few months ago, i heard that the japanese are building a device that will attach like an exoskeleton to human body. This would provide mobility to the infirm and mayble let future soldiers have extraordinary strength.

the device that i envision is the exact opposite of the japanese device. Instead of aiding human muscles, it will offer resistance. The energy that the person spends to overcome that resistance is converted to electricity and can be used.

Tuesday, January 10, 2006

i dream of a computer

portable like a pda, but with a few differences.
- it has a projection mode, where it projects a 2560 x 1536 screen
- a regular USB host
- has a battery life of 24 hours
- you can charge the battery with a hand held grip strength device or maybe special clothing that uses your body's energy to charge the fucking device
- plus the regular stuff: 802.11, bluetooth

Sunday, November 13, 2005

how to create a jar file and how to use a jar file

Nowhere on the web could I find this. Therefore I thot should document this.

Suppose you want to create a package' mypackages.mypackage1' that will have one class 'MyClass'.

Step 1. Create a directory structure that matches the package hierarchy.
Suppose you are in c:\myjava
then make a hierarchy like c:\myjava\mypackages\mypackage1

Step 2. Create the java file and write the source for MyClass.
You can save it anywhere.
Be sure to have to the package info in the source file "mypackages.mypackage1.MyClass"

Step 3. Complile it and save the class file in c:\myjava\mypackages\mypackage1

Step 4. create jar
goto c:\myjava and create the jar "jar cvf toyoda.jar mypackages"

Step 5. using the jar
ensure that the jar file is in the classpath
like in windows do this: "set classpath=%classpath%;.\toyoda.jar"

when using this import the files "import mypackages.mypackage1.*;"

Step 6. Enjoy