Reflecting on Java, Technology and other stuff.

Just a place to put together some thoughts on Java, Technology and Other Stuff (tm) that interests me.

Sunday, July 24, 2011

$169.95 Ikea Standing Desk including a chair!

I've been reading about how bad sitting all day long is for your long term health. So I was really interested in the nice Ikea Hacker wide desk, but the cost was still a bit high for my current budget. During a recent trip to Ikea with our next in line for college this fall, I began to formulate a plan for a desk that was better than the cheapest options and not quite as spendy as the aformentioned Ikea option. What I ended up with is the following -


Here's my bill of materials:
  • 1 Vika Amon 150 cm x 75 cm table top - $39.99
  • 4 Vika Kaj adjustable legs - $15.00 each
  • 4 Leg bases made from scrap material - no cost
  • 1 Ekby Jarken 119 cm x 28 cm shelf - $14.99
  • 2 Capita shelf brackets sets (only need 3) - $14.99 each
  • 1 Franklin (29") Chair, on clearance - $24.99
Now in order to make this work I had to adjust the legs a bit higher than the suggested max length. So you'll need to consider whether or not you're comfortable with this for yourself. I'm just under 6' tall and have the table top height set just shy of 1 meter (39" actually) which seems just about right for me and the monitors I have. I also used much bigger washers on the bottom of the Capita brackets to make them more substantial. Also, the wide Ikea standing desk was constructed using a 24" table top and the one I used is 29 1/2", so I used the brackets in the reverse orientation shown on the wide desk to keep the shelf closer to my standing position. And I used large (1 1/2" - 2" diameter) washers on the bottom of the Capita brackets to beef up the mounting a bit.

I used the desk a bit this past weekend and I really like it. Can't wait to lug it into the office in the morning and start using it daily.

Monday, March 28, 2011

Thursday, February 3, 2011

Is Android Dalvik Java?

Obviously there are lot of definitions of what Java is or isn't and my opinion on the matter isn't very important to anyone at either Oracle or Google, but I was poking around at some things in an Android application at work looking for something. I ended up getting the system properties from System.getProperties() and present the following comparison:

System Properties from Sun Java 6 JVM on my Ubuntu laptop -

file.encoding.pkg: sun.io
file.encoding: UTF-8
file.separator: /
java.class.path: /usr/share/groovy/lib/groovy-1.7.2.jar
java.class.version: 50.0
java.endorsed.dirs: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/endorsed
java.ext.dirs: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/ext:/usr/java/packages/lib/ext
java.home: /usr/lib/jvm/java-6-sun-1.6.0.22/jre
java.io.tmpdir: /tmp
java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/server:/usr/lib /jvm/java-6-sun-1.6.0.22/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/.. /lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.runtime.name: Java(TM) SE Runtime Environment
java.runtime.version: 1.6.0_22-b04
java.specification.name: Java Platform API Specification
java.specification.vendor: Sun Microsystems Inc.
java.specification.version: 1.6
java.vendor: Sun Microsystems Inc.
java.vendor.url.bug: http://java.sun.com/cgi-bin/bugreport.cgi
java.vendor.url: http://java.sun.com/
java.version: 1.6.0_22
java.vm.info: mixed mode
java.vm.name: Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name: Java Virtual Machine Specification
java.vm.specification.vendor: Sun Microsystems Inc.
java.vm.specification.version: 1.0
java.vm.vendor: Sun Microsystems Inc.
java.vm.version: 17.1-b03
line.separator:
os.arch: amd64
os.name: Linux
os.version: 2.6.35-25-generic
path.separator: :
program.name: groovysh
script.name: /usr/bin/groovysh
sun.arch.data.model: 64
sun.boot.class.path: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.22/jre/classes
sun.boot.library.path: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64
sun.cpu.endian: little
sun.cpu.isalist:
sun.desktop: gnome
sun.io.unicode.encoding: UnicodeLittle
sun.java.launcher: SUN_STANDARD
sun.jnu.encoding: UTF-8
sun.management.compiler: HotSpot 64-Bit Server Compiler
sun.os.patch.level: unknown
tools.jar: /usr/lib/jvm/java-6-sun/lib/tools.jar
user.country: US
user.dir: /media/extra/source/sdg-android/zxing-base
user.home: /home/kslater
user.language: en
user.name: kslater
user.timezone:


System Properties from Android 2.1 Dalvik VM -

android.vm.dexfile: true
file.encoding: UTF-8
file.separator: /
http.agent: Dalvik/1.1.0 (Linux; U; Android 2.1-update2; bb_bip6000 Build/ERE27)
java.boot.class.path: /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar
java.class.path: .
java.class.version: 46.0
java.compiler:
java.ext.dirs:
java.home: /system
java.io.tmpdir: /sdcard
java.library.path: /system/lib
java.net.preferIPv6Addresses: true
java.runtime.name: Android Runtime
java.runtime.version: 0.9
java.specification.name: Dalvik Core Library
java.specification.vendor: The Android Project
java.specification.version: 0.9
java.vendor: The Android Project
java.vendor.url: http://www.android.com/
java.version: 0
java.vm.name: Dalvik
java.vm.specification.name: Dalvik Virtual Machine Specification
java.vm.specification.vendor: The Android Project
java.vm.specification.version: 0.9
java.vm.vendor: The Android Project
java.vm.vendor.url: http://www.android.com/
java.vm.version: 1.1.0
javax.net.ssl.trustStore: /system/etc/security/cacerts.bks
line.separator:
os.arch: armv5tel
os.name: Linux
os.version: 2.6.32.24-sdg
path.separator: :
user.dir: /
user.home:
user.language: en
user.name:
user.region: US


Hmm. Looks like a lot of the same stuff in properties. This really means nothing other than Google wanted to make the system environment as compatible as possible for prospective developers I guess, but it's just curious to me that while it's not Java, it sure looks like Java does from this one perspective..

Wednesday, June 30, 2010

I don't have a Lammy, but I get this


 Here's a cool YouTube video that I totally relate to. And it doesn't hurt that it's a catchy tune!

Thursday, June 17, 2010

Waiting..


I'm waiting for a gas tank to arrive from California. I'm waiting for parts for the leakmaster carb from Georgia. Man I hate waiting.

Tuesday, June 15, 2010

Carb rebuild and leaking like a sieve..

I took the carburetor off and used a gasket set to replace all the old gaskets. I also cleaned it out well and blew out the jets. Everything looked great. While I had the carb out I decided to drain the tank and clean out the sediment trap and tank screen. I fixed the routing of the cables and the fuel line too. Everything seemed to be looking up. I put it all back together and it leaked like a sieve. I think it leaked fuel faster than it used to come out of the tank.

So I learned that if you're going to clean and rebuild a carb, spend the extra $5 and get the kit with the float, pin and needle valve. Now I have to order parts and wait for the them to come in before I can work on the running parts.

I did spent a bit of time adding some electrical bits. I started it up, even with all the leakage, and what do you know, I have working running lights. That means the voltage output and regulator work, which is another positive.

I also took some time and pounded out some dents. I find it's cathartic to do that sort of work. A dolly and pick and big honking ballpeen hammer that was from my wife's aunt's house. It's old and crusty like a lot of the Vespa. But it's a great tool for doing metal work because it moves the metal around so easily.

So I'll order some parts and work on other bits until I can staunch the flow of gasoline. That stuff's much better going down the throat of the carb..

Saturday, June 12, 2010

Adding parts and not starting



Added some parts. Some seen, some unseen. Still having troubles getting it to fire up and run. I'm going to clean and rebuild the carb next..