Saturday, March 20, 2010
Java Posse Roundup 2010 - Day 4
Afternoon I mixed and published episode 300 of the podcast (which we recorded on Thursday night). We had a lot of snow during the day and it was still snowing pretty hard in the afternoon, so after getting the podcast out, I went and joined the group watching Hitchcock's Vertigo in front of a warming fire and hacked with Tor on the ZenWriterFX application a bit more (as well as transitioning to Mercurial on Bitbucket in the hopes that it would be a bit more user-friendly than git with Github).
Last night we headed out for a pretty spectacular meal at Django's up at the resort. Lots of small taster dishes, and some amazing food (and wine too). Had fun riding back down on the town shuttle as well, where we had pretty much the entire bus singing 99 bottles of beer on the wall :-).
Thursday, March 18, 2010
Java Posse Roundup 2010 - Day 3
In the afternoon I headed out with Jackie for some more cross country skiing - one of the intermediate trails (I fell down a couple of times, but I also got down some hills pretty well and even figured out how to turn the direction I wanted - I don't think I will be competing in the winter Olympics any time soon. We did find a mostly snow covered disc golf course on our travels though, so if I come out in the summer I will be bringing my discs.
We just got back from the recording of Java Posse episode 300 which was a ton of fun (I was worried it was too long, but people say that the time flew by). That episode will be up in the next day or so, in fact tomorrow afternoon I am planning on demonstrating the full process of mixing, editing and publishing a podcast for anyone interested.
Wednesday, March 17, 2010
Java Posse Roundup 2010 - Day 2
Three sessions this morning, there were some good choices but in the end I settled on my own proposal (about clouds, Amazon EC2, Google App Engine, etc.), then one about standardizing development across different application teams within a company, and finished up with what programming will look like in 25 years. All good, but I am looking for some more technical stuff tomorrow.
This afternoon, a bunch of us skipped the usual snow sports in favor of some extra technical discussions and demos. In the picture you can see the rigged up projection screen (a sheet over the fireplace in the house we are staying at. It worked pretty well. I led a study group on Scala, and I think picked up a few converts (people who had thought it was too complicated before now), and Fred Simon of JFrog led a discussion of build tools that improve on maven - the upshot is take a look at Gradle, and possible the Scala simple build tool (SBT).
More lightning talks tonight - last night's ones were a hoot, culminating in a fire eating demonstration (outside) by Bill Pugh - how many conferences can you say that you see a fire eating demonstration.
Tuesday, March 16, 2010
Day 1 of the Java Posse Roundup 2010
Non-SQL databases was a lively discussion about key/value, document oriented, column oriented and connected graph databases, and where it makes sense to use them. Of course, there are not usually "right answers" at the end of these sessions any more than there are in real life, but the theme was that it makes sense to use not only SQL in some cases, but that relational DBs still bring a ton of value, and if anything the new kids on the block have a lot left to learn from the old guard too - in particular when it comes to reliability, maturity and APIs.
The Scala session was more of a "what's it all about" kind of thing - with some discussion about whether the Scala learning curve is too high (it's definitely manageable), how to get into it (scalatest and soon hopefully scala-koans), whether it's enterprise ready (we think so) and the importance of a language visionary to give a language direction, as well as the trade-off between always maintaining backwards compatibility versus the freedom of being able to make breaking changes to improve a language.
After that we christened the snow with some cross country skiing, man that's fun but hard work. Tonight we have lightning talks, where I will be doing 5 minutes on genetic calculation 101 (based on some of my work at Navigenics).
So far, as always, people seem to be loving the conference - at approximately 60 people it's our largest ever (and certainly feels like it - if we get much large we will need to change venue). People are also engaging with each other really well this year - about half the attendees are alumni, and half are new, which is a great mix for keeping the flow of the conference going but still getting an injection of new ideas - an essential part of a healthy conference and community.
Monday, March 15, 2010
Day 0 of the Java Posse Roundup 2010
This year, Bruce Eckel organized an alternative business day as well - discussions around the issues of developing a business and moving it from a small startup to a larger concern without losing the spark of what makes it unique and fun among other things.
Another group went off to do a functional coding dojo covering multiple languages including Scala, Clojure, Fantom and others - including working on Koans (something close to my own heart and the subject of a future blog post).
The remaining two groups attempted to create the same application in two different environments. The application in question was based on ommwriter - a distraction free writing tool with a very nice user interface. One group got as far as they could with GWT to create an ommwriter-like tool, and hit some problems with interactions between HTML 5, database storage and the hosted mode in GWT - after working through those issues they came up with a pretty good result.
The group I was in did the same thing, but using JavaFX. You can see the results so far in the screenshot below (although there are background sounds and key clicks which don't come out in the screenshots of course :-) ). There is also a fade in panel of controls which doesn't have any icons in yet (soon).
We faced many of our own problems - some with JavaFX (Linux sound support is flaky at best, and crashes the JVM at work) and many more with github in a very active multi-developer environment, but all in all it was a pretty good day and it's always fun to do some buddy programming with Tor Norbye.
Thursday, March 11, 2010
More bike map resources
The first is http://opencyclemap.org which is a fantastic resource for cyclists. Here is an example showing the coyote creek trail (part of the same trail I showed on Google maps yesterday):
Pretty isn't it - yes, and useful too. For those who don't know, opencyclemap.org and the site it is based on (openstreetmap.org) are the source of some amazing map data, more detailed than anything else I have seen in the US, and the data has some advantages over that available from Google maps right now, namely:
- Available in other countries - someone responded to my blog post yesterday that they didn't have data in the EU yet, but openstreetmap (and consequently opencyclemap) data is pretty complete in many countries.
- It has height contour data, very useful for planning your ride to see what kind of workout you are in for.
- It is user-supported. OpenStreetMap and OpenCycleMap data is a bit like geospatial wiki data. If you know of a cycle (or other) path or road that is not on the map, you can add it. I have added a couple of paths I know of already, and it's pretty easy.
- Off road (mountain bike) trails are on there as well, take a look at the following shot of part of Henry Coe park (near Morgan Hill) which has a lot of fire roads and single track:
- It's not always clear from opencyclemaps.org whether what you are looking at is a paved (road bike friendly) trail or a mountain bike track. If you want to do a road ride, the new cycle layer in Google maps is probably better. If you want to go mountain biking, OpenCycleMap has a lot more detail for that.
- The OpenCycleMap servers are slower - naturally the Google maps server has a lot more performance and responsiveness.
- At least on the OpenCycleMap site itself, there is no automatic routing option like there is on Google maps. You will have to figure out your own route from the data.
- Download the street or cycle map data for offline usage (if you are going out into the wilds, this is probably a good idea). You can choose the detail and size of data to download when you ask for the tiles.
- It has routing! You have to set a start and end pin, and maybe some route pins, but it will then find a nice route using bike paths and tracks - very useful in the wilderness.
- You can carry it on your bike - on the handlebars even if you get the right kind of adapter.
Wednesday, March 10, 2010
Bicycle routing now in Google Maps
I am rather excited about this feature, although it seems like it has been a long time coming. Google maps now has bicycle paths and bicycle routing, including estimated times.
Under the More… menu you can see the new bicycle layer. Turn that on and you can see recommended bike routes and bike paths. Better yet, maps will now route along these paths if you choose the bicycle routing option when you get directions, in fact it will favor them. Here is a snippet taken from my bike ride home:
Notice the coyote creek trail is highlighted and selected for the route. This is a longer ride than just following Monterey road, but is vastly preferable in terms of the quality of the ride and I was delighted that maps now knows it can route along those bike paths and does so.
The estimated time is a little higher than I know it to be (I can do the ride in about 55 minutes, Google estimates 1 hour 17), but that’s no worse than the driving estimates tend to be. This is fantastic news for cyclists.
Sunday, May 24, 2009
Cool (Laptop) Hack

I had to share the latest little hardware hack I did in the hope that it will be useful to others.
I have a laptop that, like many, gets a fairly warm hard drive with consistent (i.e. large build execution) utilization. Since I do a lot of that, I splurged on a targus laptop cooler like the one to the left.
http://www.targus.com/us/product_Details.asp?SKU=pa248u
The cooler is powered by USB, just plugs in and runs, and blows cold air over the bottom of the laptop. It works like a charm, bringing the temperature of both the HD and CPU way down to a very comfortable operating temperature even under extreme and consistent load. However, there were a couple of things I didn't like about it.
The primary one was the noise. Targus claims about 23 dB for the cooler - I am not sure if that is accurate, but either way it is still annoyingly loud when using it on your lap. Secondly it pumps out a lot of air, which is the point, but I wondered if it might be too much. Finally it does take its toll on the battery - driving 2 fans at full speed will do that. I appreciate the cooling, but not the fact that it appears to be taking more power than needed and turning it into noise. So I set about trying to hack it and fix the problems.
I thought about stepping down the voltage in a fairly efficient way, with some kind of clever electronic wizardry and even pulled an electronic engineer friend of mine into the problem, before I hit an embarrassingly simple solution.
Note: if you decide to try this for yourself, you are at the very least voiding your warranty on the cooling pad, reducing the cooling potential of the laptop cooler, and risking the whole thing not working at all afterwards. I point this out because I really don't want any messages along the lines of "I broke my laptop cooler and you owe me a new one" or worse "I broke my laptop when it overheated and now you owe me a new one". Assuming we have an accord, please read on.
So, what do you need for this hack?
You will need - a philips head screwdriver, a large flat head screwdriver, wire cutters/strippers, optionally a soldering iron, and some electricians tape. Also recommended is a multi-meter to make sure you have the right wires.
The principle (I warned you it was simple) is to re-wire the fans in series rather than in parallel. In the standard cooler, both fans are wired in parallel. This means both fans get 5v potential difference, running them at full speed, drawing twice the power of running just one fan, and making a fair amount of noise (including the occasional "fan mooing").
By connecting the fans in series, you are effectively changing the potential difference across each one to 2.5v. The eagle eyed among you will quickly note that the impedance of the fans might be different, resulting in one fan getting slightly higher voltage than the other when run in series, and I have no doubt that this is true - however for me at least they seem to spin at the same speed as each other after the hack, and the cooling is almost as effective as with both fans running at full speed. Also, the cooler is whisper quiet after the modification, and uses less power (approx half) as well.
Here are the steps:
- Peel off the 4 rubber spacers on the top side of the cooler. Under each you will find a philips screw.
- Unscrew all 4 of the screws, then use the large flat head screwdriver to gently prise apart the case. The top of the cooler is a little more reluctant to separate, so just work it gently on each side until it clicks apart.
- You will see two fans with black stickers in the center. Carefully remove the black stickers from each (be careful not to damage the delicate coil wires in the fan when you do this).
- When you peel off the stickers, you will see little solder points where the power comes into the fan. Grab the multimeter and work out on each fan which is +5v and which is common. In all likelihood the right contact (with the top of the cooler away from you) will be +5v and the left will be common on each fan, but it's a good idea to verify with a multimeter (if you don't have a multimeter, that's likely a sign that you should not be attempting this hack).
- Trace the common wire out from the fan on the left, and cut it about half way along its length to the switch.
- Trace the +5v wire from the fan on the right and cut it about half way along its length to the switch.
- Tuck the two cut wires from the switch safely out of the way inside the cooler case, You can cap them off with some electrical tape for extra safety, but most of all make sure they will not tangle in the fans.
- With the two cut wires from the fans, strip about half an inch at the end of each, twist them together and optionally solder them, then wrap them in electricians tape.
- Test the cooler - connect the USB power and both fans should spin. Hold your hand above each to make sure they are both blowing air upwards. If they are not both blowing, you have isolated and connected the wrong wires. Either try and find the right wires, or if this has scared you, reconnect them to the old wires running to the switch, put it all back together in the old configuration and pretend none of this ever happened.
- Assuming both fans are blowing upwards, you are done. Congratulations. Re-assemble the cooler taking care to route the wires internally so they won't tangle the fans or get trapped when you re-attach the top. You can choose to stick the black stickers back over the top of the fans, or leave them off like I did (I like the look, but now I have to be careful not to drop a staple or something in there that might cause a short). Stick the rubber separators back over the screws.
- Try it out.
Sunday, January 25, 2009
Saturday, January 17, 2009
Saturday, September 06, 2008
At the Morgan Hill music and movie night.
Bueller's Day Off. I love this town.
Monday, September 01, 2008
Tuesday, July 29, 2008
Saturday, May 10, 2008
Talking at the Google Technology User Group on Monday
You can find the signup page at http://sv-gtug.org/event/2008-05-12.html. I hope to see you there.
Cheers
Dick
Tuesday, March 04, 2008
WikiNotes Open Sourced
Saturday, January 26, 2008
On Air
Putting the finishing touch into my new podcast recording studio seemed to be the ideal excuse to try and start blogging again. The sign you see on the left is an "antique" on-air sign that Jackie bought me for Christmas. I mounted it on the door today and put a little fluorescent light in it, and voila - the finishing touch.Of course, a podcast isn't really "on air" but it is nice to let people know when you are recording so that they can avoid walking in during the recording. The completion of the studio is good for starting something else up again as well - the Podcasting book that I almost finished and then put on hold for a year while we moved out to California, started new jobs and all that other stuff.
I am pleased as punch with my studio - some of the highlights include a video-conferencing and media center powered by a Mac Mini connected to a 32" HDTV, and video conference capable as well. I have the room pre-wired with four microphones so that we can just sit down and start recording a posse episode, and also the mac mini has an output that runs straight into the 14 channel mixer along (with USB output) along with the mics - this means that we can record people in the room plus video or audio conference other people in and record them as well.
On top of all this, there is a monitor output from the sound board to an infra-red headphones transmitter, and four pairs of receiving wireless headphones so that we can all monitor the recording while it is happening, but not have any trailing headphone wires (it is also a wickedly good setup for recording conferences without the people at the other end hearing any echo, or their voice getting picked up by the microphones in the room).
The room is filled with comfy furniture, and I put up heavy curtains around three of the walls which, when drawn, help deaden any echoes. The results are pretty good - you can always judge for yourself at http://javaposse.com.










