Skip to main content

Posts

Showing posts from 2007

Rattlesnake Lake

Enjoying the beauty of Rattlesnake Lake doesn't require strenuous hiking at all, the lake is right beside the parking lot. With extra 4-mile easy hiking, people can also find stunning mountain view from the summit of Rattlesnake Ridge.

Cenqua Acquired by Atlassian

Received a mail from cenqua recently: 1 August, 2007 : Today we’re announcing the acquisition of Cenqua! There is a lot of synergy and similarities between Cenqua and Atlassian, from our business models to the philosophy behind our development, so the merging of the two companies makes a lot of sense. While plugins already exist to connect JIRA and FishEye and Bamboo and Clover , we will be building tighter integrations between all the products. ... Details

23 prisoners problem, brutal solution and analysis

Problem abstract 23 prisoners are going to be sent to isolated 23 cells and in each day, the guard will randomly pick one of them and have him change the status(either on or off) of one of two switches(switch A and B). The guard promises that if one day the prisoner he picks looks at the two switch, confidently tells that all 23 prisoners have been picked in past and it's truth, then all prisoners are set free. If the prisoner is wrong, game is over and they stay in prison for ever. Before the game begins, 23 prisoners have one chance to sit together and figure out a strategy to go free. ( Detailed version ) Quick analysis Since each prison HAS TO change one of the switch, his decision is not "which combination to change to", but "which switch to turn". Therefore his decision is only one out of two: changing switch A vs. changing switch B. The information that two switches can contribute is 2 bit a time. At any given moment, for a prisoner to tell if everyone ha

Upgrade to Ubuntu 7.04, Feisty Fawn

Ubuntu 7.04, "Feisty Fawn" is the latest stable release of Ubutun Linux distro. Although the Ubuntu community doesn't support direct upgrade from 6.06 (Breezy) to 7.04, re-installation isn't that scary if your personal data is stored in separated partition. Only a few fundamental mount points like root, /usr, /var and /boot, need to be formatted during re-installation. Feature list User review

Weekend hiking in Lake Serene

Lake Serene hike, the 7 miles round trip with 2000 feet elevation, probably takes a whole afternoon. The trail is strenuous, dangerous and out of maintenance for years. However, the stunning view from the summit of Mt. Index makes every drop of sweat count. Direction: Take highway 2 from Monroe heading east, exit at milepost 35 for Mt. Index Rd. Map Album (74 photos)

Reference from metrobellevue.com

One of the bellevue downtown photos is used by metrobellevue.com recently.

Maven Book, Maven: The Definitive Guide (1.0 Alpha 1)

It's also downloadable from http://www.sonatype.com/MavenTheDefinitiveGuide.zip Why a Book? You may ask "Why a Maven book? There are plenty of documents online, right?". The problem of diving into any new software project is the problem of where to begin. Yes, there is a growing wealth of information pertaining to the Maven project - but it is scattered and piecemeal. They make great reference materials (we even used some docs for this book) - but many developers, myself included, desire a narrative - a jolly stroll through the growing Maven metropolis - a place to see the grand sites without being overwhelmed - where does the yellow-brick road begin? Here. Read more ...

Customize IdGenerator in JPA, gap between Hibernate and JPA annotations

JPA annotation is like a subset of Hibernate annotation, this means people will find something available in Hibernate missing in JPA. One of the important missing features in JPA is customized ID generator. JPA doesn't provide an approach for developer to plug in their own IdGenerator. For example, if you want the primary key of a table to be BigInteger coming from sequence, JPA will be out of solution. Assume you don't mind the mixture of Hibernate and JPA Annotation and your JPA provider is Hibernate, which is mostly the case, a solution before JPA starts introducing new Annotation is, to replace JPA @SequenceGenerator with Hibernate @GenericGenerator. Now, let the code talk. /** * Ordinary JPA sequence. * If the Long is changed into BigInteger, * there will be runtime error complaining about the type of primary key */ @Id @Column(name = "id", precision = 12) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "XyzIdGenerator") @SequenceGe

Mount Little Si, North Bend

Five miles to the summit, with 1200 feet elevation. The two hour hiking in Mount Little Si became perfect activity for Cloudy Saturday. Most part of the trail hides deeply inside the dark silent forest. This is not the trail where people can walk, chat, enjoy and relax. This is a hard, secret and spooky kind which make people sweat.

Seattle Hamilton Viewpoint park

Find more...

Velocity based static website generation under Maven2

For several times I went into the situation where I need to seriously decorate a Maven2 generated website, and a more powerful and scriptable way of writing page content than APT and XDOC is required. CSS can do some decoration work and a customized master velocity layout for maven-site-plugin gives me full control of the template. But still, APT and XDOC are limited as a script language to write content. Velocity content may be ideal. The idea is rendering Velocity template in a way similar to VelocityLayoutServlet and Apache Turbine , which is merging context with velocity template for content body, then put the body into another layout Velocity template. This work can be done within a maven2 goal easily. In existing arapaho-maven-plugin project, I created flatsite mojo to do this Velocity based static website generation. It's basically a one class deal so I didn't make it a standalone maven2 plugin. It's not a maven2 report, it's a simplified version of maven-site-

"Couselist" demo site backs to business

"courselist" ( http://www.cyclopsgroup.org/projects/courselist ) is an academic small project done by several students in University of Texas at Dallas, back in 2004. It was built on top of waterview and tornado project hosted in cyclopsgroup.org and using commons-jelly as UI rendering tool, hibernate as persistence layer and plexus/avalon as IOC container. The project hasn't be touched in the last two years. I recently found it out and turn it on at http://demo.cyclopsgroup.org/courselist during the domain change. Many thanks to Chris Menken, Javis Cline, John Christin and Josh Allen.

Seattle Sunset: 4th Ave.

Taken on Dec 31, 2006