Archive for the 'Development' Category

Synergy2 mouse centering

Synergy is a great tool for sharing multiple screens (reverse KVM) but for some reason lately I’ve noticed that if I’m physically on the center screen, then the mouse recenters occasionally. It’s pretty annoying.
I turned on debug log and looked in ~/Library/Logs/synergyd.log. I found this:
2007-10-04 22:12:11.894 Synergyd[337] DEBUG: dropped bogus motion -840,-526
I searched […]

SWAT

Swat, a nice PHP toolkit at silverorange.com has caught my attention a few times.
First, they (or someone in their group) designed the firefox and thunderbird vector icons. Next, they’ve released a few webapps (PHP). I ran into a demo they have online that showcases some widgets they’ve built.
It’s a fantastic little page full of good […]

x.succ

[ “H”, “A”, “L” ].collect {|x| puts x.succ }
Prints out:
HAL, plus one letter up, equals IBM. Pretty funny.

Dave Thomas on Rails

A while ago I ordered a Ruby book entitled, “Programming Ruby by Dave Thomas” off amazon (bookpool was close on price). I read the first few chapters, got hung up on syntax and my interest was peaked.
One week later, a coworker says “Hey! Dave Thomas is speaking at NovaJUG!” (northern virginia java […]

Data Structures Book

On a slashdot thread I was discussing whether I should roll my own data structure or try to use one of the many, many Sun data structures.
Someone recommended this book.

Spring Framework

Researching this Spring Framework. Most interesting so far is it’s touting of being modular. As in, you might only use it for a single feature and it wouldn’t be bloated.

swt, eclipse and OS X problems

Following a hello world tutorial, I got stuck on this error:

java.lang.UnsatisfiedLinkError: no swt-carbon-3034

Couldn’t find anything so I thought I’d post the fix for someone like me out there:
Found it from an unusual source. Seems I couldn’t get the VM parameters to work so I have to do SWT’s not recommended suggestion of copying the […]

Validation Action

Finished coding a validation action that parses a word followed by an array of words. For example, “ABC” would validate if “Another Bad Creation” was passed with it. This is going to be used in the ever complicated Acronym project that has been taking me forever to finish.
It’s case insensitive, you can see […]

Mathematical constant e generator in Java

A small class to generate the mathematical constant “e”. Complete with timer and digits per second clock. Unpolished. Here’s a quick benchmark and you can see that it doesn’t scale.

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;
/**
* calculate mathmatical constant e
*/
public class ECalculator {
private static final int numberOfDigits = 1000;
public static void main(String[] args) […]

Made useful build.xml file for use with Ant

The following build.xml file has a few targets that make compiling a project much simplier. Read on for more details.
I have the following directory structure:

(chris@hobbes)-(BackupLink)$ ls -l
total 20
drwxrwxr-x 3 chris chris 4096 Apr 21 00:07 bin
-rw-rw-r– 1 chris […]