Saturday, March 20, 2010

Java Posse Roundup 2010 - Day 4

The 4th and final day of the Java Posse Roundup 2010 went off very well. Sessions included several business oriented ones (which I skipped), tips for IDEs, Functional/OO hybrid languages and increasing adoption, happy programmers, version control options (git, mercurial, svn, etc.), code reviews and a lot more.

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

Wow - that was a hoot. So the three sessions this morning were fun, and a small departure for me (even one on business matters for session 2). We covered higher level concerns - definitely back to a bunch of nuts and bolts tomorrow (including a git/svn/mercurial etc. comparison and a session on increasing acceptance of functional languages).

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

Day 2 update from the Java Posse Roundup 2010.

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

Today was the start of the conference proper - the traditional intro/meet and greet, and the first two sessions (I took non-SQL databases and a session on Scala, but all the sessions looked good and it was hard to pick (well, OK - not *that* hard :-) ).

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

The day finally arrived, and we had our (now traditional) day 0 of the Java Posse Roundup. This is the day before the conference officially starts, and is comprised of all day coding dojos and other fun events.

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

Yesterday I blogged about the new bicycle layer and routing feature in Google maps, which is excellent and very welcome. It's not the only option though, so I thought I would share a couple more options for finding bicycle routes.

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:

Wonderfully detailed.

There are a few things Google maps does better though:
  • 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.
On the go, if you have an iPhone, I recommend checking out the OpenMaps application, which has both OpenStreetMap and OpenCycleMap data available. It is well worth the few bucks it costs on the app store. It has some really useful features on it like:
  • 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.

If/when I move to Android, this is one of the must-have apps I am going to need to find an alternative for.

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:

mapbikeexample

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:
  1. Peel off the 4 rubber spacers on the top side of the cooler. Under each you will find a philips screw.
  2. 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.
  3. 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).
  4. 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).
  5. Trace the common wire out from the fan on the left, and cut it about half way along its length to the switch.
  6. Trace the +5v wire from the fan on the right and cut it about half way along its length to the switch.
  7. 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.
  8. 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.
  9. 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.
  10. 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.
  11. Try it out.
I have found that the mod makes about 1-2 Celsius of difference only to the temperature at which it keeps the hard drive, and with a much quieter running noise and less power draw. It is unknown if there will be any long term damage to the cooler fans running at the lower voltage but I seriously doubt it. Overall my laptop is now quieter than without using the cooler, since the airflow stops the internal fan coming on under all but the most extreme load, and the cooler tray is almost silent.

Sunday, January 25, 2009

Saturday, January 17, 2009

Saturday, September 06, 2008

At the Morgan Hill music and movie night.

Band is great, playing lots of R&B covers. The movie tonight is Ferris
Bueller's Day Off. I love this town.

Monday, September 01, 2008

Anderson dam cycle ride

Jackie and I headed up to Anderson dam for a fun but strenuous bicycle
ride.

Tuesday, July 29, 2008

View from the Office


This is the view I had while I ate my lunch today. I really must get out here and work more often...

Saturday, May 10, 2008

Talking at the Google Technology User Group on Monday

I will be talking at the Google Technology User Group meeting on Monday 12th May, about Google App Engine. There is some room left, so if you are interested, please sign up and come and mingle - there is a lot more than just my talk to see at these meetings, and the community is great.

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

I am very pleased to announce that a project I have been working on at Google has now been open sourced under the Apache 2.0 license. This application implements a personal Wiki for the Android platform and demonstrates a number of key concepts about Android software development. You can read the full announcement at http://android-developers.blogspot.com and the project is at http://code.google.com/p/apps-for-android. Enjoy.

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.

Friday, June 22, 2007

New article up at Developer.com

It has been a while, but at last I am back to writing technical articles again. The first one in a while: Guicing Up Your Testing demonstrates how you can speed up and improve your testing for applications that use a lot of slow resources like databases, using Dependency Injection with Guice as a way of replacing the slow resource with a faster alternative. Future articles in this series about Guice will go into better practices generally for testing with Guice. The next one, for example, will cover using Guice with EasyMock. Beyond that, I am hoping to examine how to break up large code building dependencies using Guice and generally use it to improve the architecture of your application.

Wednesday, June 20, 2007

My Sister's New Enterprise

Just found out that my little sister, Kirsty, has a new website/business called Flower, the PA (Personal Assistant). You can see the new site (which looks very nice) at http://www.flowerthepa.co.uk/ and if you have any design needs give it a look, she is very good at that sort of thing.

Wednesday, April 25, 2007

A Series of Unfortunate Firsts

Yesterday's trip home was a series of firsts which I wish I had never had to experience.

The first was pretty decent - I was averaging over 16 miles an hour on my bicycle, riding home from the shuttle stop to my apartment - about 12-14 miles depending on the route I take. In fact I was feeling so good I decided to take the longer route.

Then the bad stuff started happening.

Due to some miscalculation - a moment of distraction, whatever it was, my bar ends on my handlebars just clipped one of those (silly my thinking goes right now) metal bars that they put on bicycle lanes to stop cars driving down them (is this *really* a problem?). Anyway, combined with a pretty high speed (above the 16 mph I was averaging - at least that's my guess), I went down fast and hard.

Then another first, I have been winded before, but not like this. I could feel my heart pounding but was totally unable to draw breath, I remember being quite calm wondering what would happen next since I couldn't draw breath.

What happened next was that I passed out. This truly is a first - I have never passed out before - I thought there might have been a couple of times I had, but nope - this was definitely something new.

Waking up (or coming to) was actually quite a nice experience. At first I was just in bed, all comfy, thinking I could sleep for a bit longer, but then it occurred to me that something was wrong. For one thing, my bed doesn't have grass or asphalt in it, then I realized that some things were hurting pretty bad - mainly my shoulder and my side.

I called Jackie to come and meet me, and with a combination of walking and cycling, made it to the road. On the way, I had what I thought was the worst attack of hay fever ever (certainly it felt like hay fever times 10). I think it must have been something else because by the time Jackie reached me, my eyes (and much of my face) had swollen to the point where I could only barely see out of one eye.

Then another first - I voluntarily went to the ER. I don't like hospitals much, and I have never been for an ER visit (at least not as an adult - I think there might have been a couple of times as a kid with my parents). In fact, if Jackie hadn't of suggested it, I would have, because on top of the allergic reaction which was causing me to have trouble seeing, my shoulder and side were really hurting.

Another first - we always make a point to scope out the local hospitals when we go and live in a new place, but for some reason we hadn't done it yet since our move to California. Finding the closest hospital was a bit interesting.

When we got to the ER, they saw us pretty much immediately. I think it was the allergic reaction that did it (it's such an obviously visible thing). This was followed by my first CT scan (My head had some scratches, and when they learned I had passed out, they just did it). I then had 14 X-rays as well - by this time the doc had told me I had almost certainly fractured a rib or two - he had felt it in his examination.

So - I guess after years of paying (or at least part-paying) medical insurance and being pretty healthy - yesterday I cashed in a lot of those chips.

I was counting myself lucky it wasn't much worse. The diagnosis was 2 fractured ribs and a separated shoulder, plus numerous abrasions and a head hematoma (fancy word for bruise). No casts, and the bike is actually in pretty decent shape too. My laptop made it, the laptop bag is another matter though - it's a little the worse for wear.

Anyway - the Doc said no work for a day, and no driving for the rest of the week, longer if my arm gives any pain when I try to drive. I have so much medication in my body right now that I don't even feel like myself - I rarely even take aspirin, right now I am on stuff to prevent swelling and muscle relaxants, high powered pain killers and strong anti-histamines (my eyes are still a little swollen even 24 hours later). No one seemed able to come up with a reason why I got the allergic reaction but speculated that I may have been bitten or stung while passed out.

Upshot is I am a little wiser today - getting the average speed up above 16mph (on a mountain bike mind :-) ) seems a lot less important than 24 hours ago. I can live with being slow and together rather than fast and broken. Ahh well - no real harm done. I will have a reminder for a few weeks about what happens when you are stupid on a bicycle, and then hopefully will be back to normal. That will give me enough time to fix the few things wrong with the bike now, and maybe take it in for an overdue tuneup.

And does anyone know if those damn metal posts really are necessary?

Saturday, April 21, 2007

The top of El Toro


The top el toro
Originally uploaded by QuaintRcky.
We joined in the yearly Morgan Hill expedition to climb up El Toro today. The view from the top was well worth it (camera phone doesn't do it justice though). 1400 feet, so fun but not a real tough challenge.