Monday, June 12, 2006

JAXB-RI

A couple of years ago, I decided to use JAXB for parsing an XML configuration file. There were a lot of other ways to do it, but I liked the strongly typed object references it gave to my runtime classes. I wasn't concerned about performance, since it was only going to be used onced -- to unmarshall a single configuration file at application startup. I looked at a couple of the implementations of the JAXB spec. Sun's reference implementation was commonly used, but I liked the way that Apache's JaxMe worked better. It had some nice JAXB+ extras I liked as well, even though I didn't plan on using any at first.

Two years later I find myself considering using JAXB once again. My use for JAXB would be a lot different this time around. I thought it was good time re-evaluate some of the JAXB implementations.

JaxMe has not changed much in the two years. In fact, I had upgraded the version of JaxMe that the app I wrote two years was using, so I had already used its latest. It had improved in quality quite a bit, with many "features" (support for advanced XSD constructs) added and bugs fixed.

I took a look at Sun's reference implementation, JAXB-RI. The biggest change with it is that it uses Java 5 Annotations to greatly reduce the amount of code generated from a given schema. This is really nice. Now there's no need to generate a separate SAX handler for every complex type, and of course there's no configuration file mapping complex type -> Java class and complex type -> SAX handler. It also no longer generates separate interface and implementation class for each complex type.

Of course this is exactly why Annotations were introduced, to simplify boiler-plate code. The generated code is simple and clean. It has no dependencies on anythin JAXB-RI specific, just the Annotations that are part of th JAXB spec. It would be asy to take an existing class, add some of these annotations and use JAXB to generate XML.

So kudos to the JAXB-RI team. There are still some areas for improvement, but this is a very nice improvement on a useful technology.

Google Killed The Internet?

One of the really great things about going to a great college is that I made friends with some really smart people. Every once in awhile I read something that makes me realize just how smart some of my friends are. That happened today while reading an article on The Motley Fool called How Google Is Killing the Internet.

The article talks about how AdSense "fake sites" are being setup in droves. These sites show up on searches, have either no content of their own or its copied from somewhere else (like Amazon) but they have AdSense ads all over the site. All it takes is a click on one of those ads and they make money. It's annoying, no doubt about it. But does it mark the end of the internet, or is it just another wrinkle in the ever-evolving complexities of the strain of unstructured search known as web search?

Whatever. These sites do provide the stepping stone to some actual insight by the author. The real threat out there is click fraud, not the bogus AdSense sites. This is the ultimate threat for Google, though I'm not sure if that makes it the ultimate threat to the internet (or if it makes a threat to the internet at all.) The author then claims that click fraud is a big problem, much bigger than Google admits. He claims that they don't care about doing anything about it because they are still making money, and that their virtual monopoly (60% market share) on search gives people little choice but to live with the click fraud. He then goes on to claim that is why Google is busting out with so many other offerings, since they know that the AdWords/AdSense money machine is going to fall apart one day because of click fraud. He then points to insider sell-off of Google stock as further evidence that its management sees the end coming.

This is where I realize how smart some of my friends are. The guy writing this article, Seth Jayson, is probably supposed to know a lot about Google. He's probably very technology/internet savvy, and has a nice education. Making this kind of analysis and writing about it is what he does for a living. The article in question is a nice piece of analysis, and makes a lot of sense. It's totally wrong though, and I know this just because of a conversation I had with my friend Terry a couple of weeks ago.

We were talking about Google as well. I don't remember how it came up. Click fraud is indeed the ultimate threat to Google. Offline advertising hurting. DVRs are killing TV ads. Print ads in newspapers and magazines suffer because people would rather get their information online. Radio ads are hurting because people are listening either to their iPod or satellite radio instead. Online ads are the way to go, yet they are suffering too. Unsolicited ads are being stymied by pop-up blockers and spam filters. But targeted ads, as executed by Google, or thriving. Widespread click fraud would crush that. Monopoly or not, people are not going to pay for ineffective advertising.

That's where all the other Google apps come in. Why offer GMail? It does provide more advertising opportunities, but what it does even better is force you to login to Google. It verifies identity. If your identity is verified, it cannot be used for click fraud. Any clicks you make are legit, no fraud. Imagine if Google made you login with an encrypted password whenever you clicked an ad. That would have the same effect as having you login to GMail. Or Blogger. Or Google Pages. Or the new Google Spreadsheet. Or if you use the Google Browser Sync on Firefox. All of these services force you to verify your identity and thus make your clicks certifiable and golden. Take that click fraud.

This was the insight of my friend Terry. This is a level of insight that Mr. Seth Jayson does not posses, even though he's probably a lot more time and effort into thinking about Google and click fraud than my friend Terry has. Yet Jayson's analysis misses the most crucial part of Google's strategy.

French Fried Disappointment

I set my DVR on Saturday to record Sunday's French Open final. Talk about a "game of the century" kind of setup. You had the (current) greatest player in the world (maybe ever) in Roger Federer going for his first French Open and a "Roger" slam -- winning all four grand slam events consecutively. Against him you had the only guy who has beaten him this year and winner of 59 consecutive clay court matches, Rafael Nadal. I was almost tempted to wake up early to watch it, but settled on recording it.

Talk about a major disappointment! The first two sets were terrible. Federer played poorly even though he won the first set 6-1. Nadal definitely clean up his game after the first set, but these two guys are capable of so much better tennis. You have to acknowledge the environment. It was a very hot day, and that certainly contributed to the poor play. Plus this is clay court tennis, where typically it's he who has the least errors (28-51 in favor of Nadal) who wins, not he who has the most winners (35-25 in favor of Federer.) But still, this did not seem like a match between arguably the greatest player ever (Federer) and the greatest clay court player ever (Nadal.)

So all this begs the question, are these guys actually not that good? Are they simply good players in a age of mediocre players? For so many years, tennis has enjoyed a string of great players. In the late 70s and 80s, we had Borg, McEnroe, Connors, and Lendl. Then we had Becker and Edberg. Then it was the golden age of American tennis with Sampras, Agassi, Courier, and Chang. Nobody would question how great all these players were. Federer and Nadal seemed like a continuation, and possibly an evolution of these greats. Federer's game seems nearly flawless at times. His play was impressive defeating Agassi last year at the US Open, but Agassi is far from his prime. Maybe's Agassi's ability to still make the US Open final is more evidence that tennis is very mediocre right now.

Friday, June 09, 2006

Desktop Linux

One of the fun things about my new job, is that I am running Linux on my workstation, and only Linux. I've been a hobbyist with Linux over the years. Not as much the past couple of  years, as my hobby time has shrunk. Despite my enthusiasm for Linux, I was never convinced that it was mature enough to be somebody's every-day OS. Of course technology evolves all the time, so now I've really gotten to test this theory.

The distribution used at my work is CentOS. I think that's mostly because we use Red Hat on our servers, and of course CentOS is exactly equivalent to Red Hat. By default, it only installs Gnome with Red Hat's bluecurve theme. I always preferred KDE, so I installed that and use a slightly tweaked version of its modern theme.

So how easy or difficult is it to use Linux as my day-to-day OS? Let's take a look at some of the daily tasks I use my computer for.

Web browsing -- This is pretty good on Linux. CentOS came with Firefox 1.0.x. I updated it to Firefox 1.5. This is exactly what I would be using on a Windows or Mac system. It seems a little slower on Linux, and there are more rendering abnormalities. So I also installed Opera. This runs very fast on Linux, at least as fast as it does on Windows. There much fewer browsing quirks. I love all my extensions on Firefox, but it is tempting to switch to only using Opera on Linux. It is a far superior browser on Linux.

Email -- CentOS comes with Evolution. I'm not a fan of this program, so I installed Thunderbird. This works great, just like on Windows. Seems as fast as it is on Windows, unlike Firefox. The only weird thing is that I can't seem to get its email notifications working. I actually think that not having email notifications is kind of a blessing, since it is easy to get distracted and become less productive because of email notifications. So I'm not too upset with this. I also installed an open source GMail notifier. Unlike work email notifications, there is less downside to getting personal email notifications. This worked great, but did take a little configuration. It also seemed a little dangerous that I stored my GMail password in plain text in a configuration file.

IM -- Gaim is great. I've often thought of using it on Windows, but it totally rocks on Linux. I'm actually using my AIM account for the first time in a long time. A couple of years ago, this didn't work for me on Gaim because my AIM account was actually a .Mac account. Now it works great. I log in to it and my more heavily used Yahoo and Google Talk accounts. Only complaint would be that the Google Talk account should be able to generate GMail notifications, but I got the GMail notifier mentioned above to make up for that lack of functionality.

Development -- This was the easiest thing. I do most of my work in Eclipse, which works great on Linux. The only slight issue came from CentOS installing JDK 1.4 and putting this on the path. This could not be upgraded in pace to JDK 5, which I had to have for Eclipse to run (and to actually do my job.) So I installed it separately, and modified my .bashrc and .bash-login files to modify my path with the proper version of Java. No problems with things like Apache, Tomcat, or MySQL. I did have a weird problem installing DBD::mysql from CPAN, though.

Desktop Publishing -- Here's where things got tricky. I used to produce a lot of technical documents with MS Word and Visio. Open Office's Writer program works pretty well. Its UI leaves a lot to be desired, but I'll probably get used to it. It is slow to load, but pretty responsive after that. As for a Visio replacement, Dia claims to be one. This program seems awful though. It's UI makes Writer look nice, and everything about is cludgey. This was inadequate for producing software documentation. I could do some basic UML, but nothing very advanced. So I downloaded the free version of Visual Paradigm for UML. This is a nice program. It's more equivalent to Rational Rose than to Visio, so it has a lot more advanced features. I had a little bit of trouble getting started with it. Maybe if I was more used to Rose, it would have been more intuitive. But in the end, I was able to be productive with it. I may have to get my company to buy the more advanced version of this program. However, I had some serious issues with printing from any of these programs. I had no problems with printing from Firefox or Thunderbird, but for some reason the Open Office apps have issues.

Music, movies, photos -- My workstation is actually a server. Thus it does not have a sound card and only CD-ROM drive. So I haven't really been able to do much with music or movies. As for photos, I installed Picasa for Linux. This uses Wine and seems to work great. I did manage to crash it mysteriously once, but I wasn't doing anything with it at the time and restarted with no problems. It is surprisingly fast. I did need to do a little bit of image editing, and busted out The Gimp for that. I experienced what all Photoshop users experience when they use Gimp -- everything seems like it is in the wrong place. There is some logic to how Gimp organizes things, but it is difficult to get used to. Like the Open Office apps, it is also kind of an ugly UI.

So there you have it, desktop Linux. It is working just fine for me. Of course I am a programmer with prior experience with Linux. Most of the "advanced" things I did are things that most people wouldn't need to bother with. I do a lot of weird things to Windows as well, like modifying environment variables and disabling default services. So I don't think I did that much more on Linux. Maybe it really is ready for the masses...

Election Results

I've already written a lot about this week's election, so I'll keep this short. I wasn't too upset about Angelides defeating Westly. There really wasn't much difference between these guys. I don't know if either would be more likely to defeat Shwarzenneger.  I'm sure that I'll vote for Schwarzenneger again.

I was very surprised to see both state propositions go down, and go down hard. Then again, many theorize that liberal issues/candidates do poorly in elections with low turnouts, and primaries typically have low turnouts. Whatever the case, it is good that these propositions failed.

I was not surprised by the San Jose mayorial results. I voted for Mulcahy. If I had to rank the candidates it would have been Mulcahy, Pandori, and Reed. So I will probably vote for Reed in the runoff.

Of course the other big news of the elction was the special election for Congressional district 50, down near San Diego. Many thought that a Democratic victory could occur in a very conervative district. Many people believed that a Democratic victory there would be a sign of many more Democratic victories in the fall. I think too much was being read into this. Anyways, it didn't happen. Yawn. My friend Terry thinks it was a classic case of Republicans controlling the agenda by using immigration to swing things in their favor. He's probably right. So why can't Democrats controll the agenda? Because when it comes to the issues that Republicans are weak on, such as the war in Iraq and corruption, Democrats are also weak. After all the lies that Bush used to justify war and all the casualties on both sides, it's weak when all you can say is "we need an exit strategy."

Technorati Tags:

Tuesday, June 06, 2006

Elections Party 3: Election Day

Today is election day, err primary day. I voted this morning. There is a poll at the school right behind my house, so it was a short walk there to vote. Actually if I jumped the fence in my backyard, it would put me right next to the poll. Anyways, there were a lot more things to vote on than just the Democratic candidate for governor and the two state propositions. Most of these things were of a local variety.

Mayor of San Jose was one of the big draws, in terms of number of candidates. I've only lived in San Jose for a little more than a year, so I actually felt kind of guilty even voting for this. My short time in San Jose made it even more difficult. I did my best to identify some important issues in this order: road improvement, bike trails/parks, and urban development.

The first two are things that I think are exactly what should be looked for from governments: infrastructure. I probably would not have come up with the second one a year ago, but now that I bike a lot, it has become obvious to me that this need to be worked on. There are many trails in San Jose, but they are not connected and in many places are disrupted. As for urban development, I mainly want the government to stay out of it. Several of the candidates want to halt urban sprawl. Given the housing situation in the valley, I just can't agree with that. I don't want to government to prevent more houses from being built in an area that has way more people than it does houses. There are already government agencies that put up hurdles, that's enough (too much actually.)

As I read more about the candidates, I realized there was another important issue, or at least event. Current San Jose mayor Ron Gonzales was "caught" making secret deals with Norcal, a waste management company. There is not much worse than an elected official making non-public deals involving millions of taxpayer money. It seemed that several of the other candidates were complicit in this, only backing away from Gonzales once the backlash began.

So with all that in mind, I wound up voting for Michael Mulcahy. The only thing I wasn't real crazy with him was his stance on tax breaks for certain high-tech industries. I don't like government playing favorites in general, but this is not a terrible idea.

Besides mayor, there were several other local issues. There was a half-cent sales tax increase for Santa Clara county. I voted no on this, simply because there was no specification to how the money would be used. There was a measure to continue transferring money from the "general" fund to a fund devoted to parks. I voted yes for this. There was a similar measure for continuing a transfer to benefit the school district I live in. This was a difficult decision for me. If voting no would have meant a tax reduction, it would have been easy. But my desire for private schools won out, and I still voted no on this.

That's enough on the elections... for now. I'll need to get back to technology soon, and my new job has certainly provided a lot of material for that.


Technorati Tags: ,

Monday, June 05, 2006

Elections Part 2: Propositions

The upcoming primary election is novel in that it only has two propositions for California voters to vote on. Of course there was last year's infamous special election that was all propositions, so maybe there's less to go around this year because of that. Unlike the Democratic primary for governor, these are much more interesting.

Proposition 81 -- Bonds for libraries. I like libraries, I really do. Growing up, I frequented the public library near my house. In high school, I would spend many hours at the libary at the community college, doing research for papers. In college, I would troll around the 7th floor of Millikan Library, the math floor. However, I must oppose this proposition. I wouldn't mind more funding for public libraries, but not via bonds. These are debt instruments with no pre-defined repayment mechanism. If bonds were not used and a more well defined and defensible tax mechanism was proposed instead, I would reconsider my position. Plus as it is, libraries are becoming less and less valuable with the advent of the internet. Most of the information that I once had to go to the library to find, I can now easily find online. A couple of years ago I almost took a job with a very cool company called eBrary. They provide a library portal that's kind of like the Dewey Decimal System on steroids. Right now they try to sell to public libraries, but I think it would be a great component to complement private schools. Enroll your kid in a private school and get access to that school's eBrary portal. I digress... No on Prop 81!

Proposition 82 -- Universal Preschool. I just know that this is going to pass. It uses the old "think of the children" trick to justify atrocities. Where to begin on this? I'll try to stick to two basic points.

Free preschool will devalue preschools. Think of how bad public schools are in the United States and in California. This same kind of devaluation will result from tax payer funded preschools. Sure the preschools themselves may remain private, but they will have to conform to state regulation in order to be eligible to receive state money for student tuition. Refusing regulation will mean that they will lose students (and future students) of parents for whom the tuition reduction of letting the state pay for preschool is too great to turn down. This is in its own way just as bad as the No Child Left Behind fiasco. Proponents like to talk about how much better off children who attend preschool are, but it's a useless statistic (correlation does not imply causation!) Children who go to preschool have parents who spend money on sending them to preschool. Those parents are going to be very interested in making sure their kids the most out of preschool because of their considerable investment. The preschools themselves are also under pressure to perform, since kids don't have to go to preschools so their parents could easily remove them from the school completely or just to change schools. If you give away preschool, then parents will not have the investment in it and will not be compelled to be involved as much. This is exactly what happens with public schools. Similarly with less pressure to compete, the preschools themselves will only be motivated to pass their state mandated regulations and nothing more.

Financial unfairness. One of the reasons why this will surely pass is because it is funded by a tax on people who make over $400,000 annually. There's not too many people like that and so their votes are useless, and many people will say "those people are rich and can afford to pay the tax." That's an awful way of thinking in my opinion. Here's how I look at it. People with that kind of income can already send their kids to preschool, and probably do so. Thus they will receive little or no benefit from the program that they are being told to fund. You can't get more unfair than that. Now I know that there are already many such programs based on the same funding principle, but does that justify another one? This is basically singling out a minority (people with high income) and forcing them to do something against their will. But they have money, so it's ok, right? Some of the first persecutions of the Jews in not-quite-yet-Nazi Germany were based on these same principles. No on Prop 82!

There you have it. Two propositions, two Nos. Given my track record on propositions, I'm sure both props will pass.

Saturday, June 03, 2006

Elections Part 1: Angelides vs. Westly

This will be the first of several posts about the elections on Tuesday, June 6. Probably the "biggest" of them is the Democratic Party's primary for its gubernatorial candidate. There are many candidates, but for whatever reason, it has become a two-man contest: Phil Angelides vs. Steve Westly. These two guys are so similar it's ridiculous. They have almost identical views on everything. I will probably vote for Schwarzenegger regardless of who wins this. Angelides seems to favor more taxes and seems like more of a union whip, so that makes me lean for Westly. However, I thought it would be interesting the compare these guys on another, more technical level -- by examining their campaign websites.

Phil Angelides for Governor -- His site is pretty simple, nothing too Flashy. Examining its HTML, it seems pretty clean. Structurally it looks like a good designer setup the page templates. There is a LOT of JavaScripts sprinkled through the pages, instead of in typical JS files. Seems a little hacked together. Closer examination reveals a lot of the inline JS is for WebTrends analysis, so that was probably hacked in after the pages were designed. It was also quickly clear that the site was using Java, and in particular Resin. This was obvious when I tried the search box and got an exception for the result (clearly a text parsing exception to boot.) So extra points for using Java and even more for using Resin. Can't be too happy with a page bombing like that though...

Westly for Governor -- Definitely a Flashier site with more effects. A look at the HTML and it looks very 1990's. Lots and lots of embedded tables. Closer inspection reveals that it's all written in ASP.NET, so probably a lot of the HTML was generated by Visual Studio. Hence the tables-gone-wild approach. No crashes at least. Still ASP.NET is a little disappointing for a former eBay guy who still lives in Atherton. You're not running for governor of Washington! Definitely a more hip site though. It even has an RSS feed.

So in the end, I'd have to favor Angelides' site, despite its lack of hipness and broken search results. At least it has a search, Westly's does not and neither does The Governator's. It wasn't a clear enough of victory though, so I'll probably still vote for Westly for the reasons listed at the beginning.

Tuesday, May 30, 2006

Finales

It's been finale time on TV. Here are my thoughts on the finales of a couple of my favorite shows.

Alias -- Not just a season finale, but a series finale. I started watching Alias just last year. I watched all the old episodes by renting the DVDs for them from Netflix. I would then watch one episode per day, while eating my lunch at work. I then caught a break last fall when TNT started showing Alias nightly and played all of last season. I was able to dvr the new episodes from this eason and catch up to current about a month into the new season. Thus my love of Alias has been concentrated and intense. I thought the new season was very good. The finale was a bit of a letdown, but it really had to be. It's a series based on mystery and intrigue, and a finale cannot really use these devices. No matter what the ultime Rambaldi power was, it could not possibly live up to its five year build-up. Nonetheless, I thought that giving immortality to Sloane and then burying him alive was a clever twist. The final showdown between Sydney and her mom was not nearly as good. Her mother had always been such a complex character, but that complexity was discarded in the end for stock evil and selfishness. Still a good finale to a great show.

Lost -- This was the best finale of any show. The hatch was even cooler than expected. Brining Desmond back and then showcasing his life was clever. The end scene of his ex-girlfriend searching for him was a great twist. As was The Others letting Michael and Walt go. Every time you think you understand The Others (or the hostiles as Desmond referred to them) they prove you are wrong. All in all, this was the perfect kind of finale. It gave you some closure on the current season, but made you eagerly anticipate the next.

My Name Is Earl -- Another great finale. It's not surprising that this show can stay funny. After all, the redneck/white-trash zeitgest is such a great source of humor. What's more surprising is that the plot of each episode is usually pretty interesting too, not just funny. It's definitely a show in the Seinfeld mold.

American Idol -- Yeah that's right, American Idol. This season was over for me a couple of weeks ago. The two best singers were Paris and Chris. They should have been in the finale, but instead we got Taylor and Katharine. Taylor was always the fan favorite just because of his personality. So it wasn't surprising for him to win. It's hard to imagine what kind of CD he will release, but of course it will sell. All American Idol CDs sell. My favorite part about the finale was Meatloaf. I was actually eating a meatloaf sandwhich when Sir Loaf was performing. My wife was in Bakersfield seeing our niece play in a high school softball championship. I called her up and happily reported that I was eating meatloaf while watching Meatloaf sing on American Idol.

Sharefare

I started a new job today at Sharefare.  I can't say too much about what Sharefare does and what I'll be doing there, at least not yet. I think my work there will definitely lead to a lot more technical blogs in the future. Recently I had kept most of my techno-babble to a blog I had on my former employer's intranet. I used it to mostly sprun technical discussion among other engineers there. It worked out pretty well, but of course I wasn't going to repeat a topic from that blog on this one. Hence a lot more sports and pop culture, and a lot less programming and politics. Actually with the California elections coming up, there will definitely be some more politics on here, too.

Saturday, May 27, 2006

Tunes

I got a lot of music for my birthday earlier this month.

Pearl Jam - Pearl Jam ... I was a Pearl Jam fan back in the 90s, of course. I remember when I heard Ten for the first time. I was on a school trip, and a fellow student (David Estes) told me to take a listen. He handed me the CD and I listened to it for the next hour ... and went out and bought it for myself the next day. Like most other fans I really liked the next two albums as well, Vs. and Vitalogy. After that things went down hill. Yield was good, but I haven't bothered to buy their last couple of CDs. I heard the first single, "Worldwide Suicide" off their new self-titled CD, on the radio, and so I was pleased to received Pearl Jam as a gift on my birthday. I won't compare it to their past efforts, as it is tempting to do. It is an excellent CD. It rocks from start to finish. The lyrics are very political, but actually kind of subtle. That makes for an interesting contrast to the music. This is a great CD. If Bruce Springsteen's The Rising was the defining rock response to 9/11, then Pearl Jam may be the defining rock response to the war in Iraq.

We Shall Overcome: The Seeger Sessions - Bruce Springsteen ... Speaking of Bruce Springsteen, I received his latest via an iTunes gift card. It's a fun cd to listen to. I don't have the familiarity with the songs on here, which are all folk songs from the 60's. I think that actually detracts from my experience with this CD. But these are good songs anyways and the performances are energizing. I think Bruce is a great songwriter though, so there's always something a little bittersweet with hearing him sing other peoples' songs. That made me think to myself "if this was by some other, unknown artist, would I like it better?" The answer is probably no, since it's the connection to Bruce that makes these songs seem relevant and modern, even though they are neither.

Stadium Arcadium - The Red Hot Chili Peppers ... I've been a Peppers fans since the 80s. My friend Kevin Stanley got me listening to The Uplift Mofo Party Plan, and it was mind blowing, especially for a 14 year old. I've loved their last two CDs, Californication and By The Way. This CD is clearly an extension of those two, and in many ways is even better. It's a double-CD, with 28 songs altogether. It's kind of overwhelming because every song is really good. It's hard to have the energy to enjoy that much music in one listen. It would almost be better if there were some mediocre songs that you could listen to while doing something else. Instead every song demands your attention and is rewarding. The rennaisance of the Peppers must be attributed to guitarist John Frusciante. His work on here is unbelievable. The bass work by Flea is also the best he's ever done.  Is this the Peppers' best CD of their long, storied career? That's a big statement, but it may be true.

Thursday, May 25, 2006

Office 2007

I'm a sucker for beta software, especially for betas of software I use a lot. I gave the first betas for Windows Vista and IE7 a try, and have used the newer betas for IE7. I'm actually not real impressed with the progress on IE7. It still seems too slow and seems to have more rendering issues than the earlier beta. Anyways, I decided to give the Office 2007 beta a try. Here's my impressions so far.

I really like the UI. A lot of people have criticized MS for breaking their own UI standards, but who cares? And if anybody should be able to break the standards, it should be the party that set the standards. I've given Outlook, Word, and Excel pretty good workouts, especially Word. I had a long design document I needed to finish and a shorter one I needed to write yesterday, and did them both with Word. It is true that because the UI was drastically changed, you will find yourself looking for things that you used to know where they were. However, the UI makes it a lot easier to find those things. And that's really a power user problem. The most common stuff is even easier to get to than ever before. Power users will adjust to the new menu layout. If you were able to find the "Update TOC" for the first time on Word 200x, then you will certainly be able to find it on Word 2007.

For Outlook, I like the To-Do bar, especially showing the next several events on the calendar. It's UI is otherwise less changed than Word or Excel. Excel's UI is similar to Word. It make nice use of contextual menus, so when you select a row on the sheet you get a menu with formatting options, as well as the normal contextual menu you get wheny ou right-click. This is true on Word as well, but seemed even more useful on Excel. Or maybe it was that I had gotten used to on Word already before I used Excel. Either way, this is good feature. I also liked the new tab button, similar to IE7, at the bottom of the window.

I haven't tried Power Point. I installed Visio, which I use a lot. It has a lot less changes, and seemed more like a modest improvement over the earlier version. Like all versions of Visio, the file format is different. This is true with all the Office apps, but is particularly annoying to me when it comes to Visio. I also tried OneNote, a program I use a lot at times. It's UI is very nice and its integration with Outlook is great. I am going to try its online mode for sharing notebooks. I've been using Google's Notebook for clipping ads for houses (I'm moving at the end of June) and sharing them with my wife, and it's very useful.

Now for the negatives! These programs are very slow. Very slow. I don't know if that's because they are beta, or if they are just going to require more CPU power in general. I've been running them on my laptop, which is 1.8 GHz Pentium M with 1 GB of RAM. That would seem like a lot of CPU for Office, so I'm hoping it's just because they are beta. They also require Microsoft Desktop Search to enable some of the features. That's an interesting turn of events. I've played with Microsoft's search in the past and liked it, but always used Google's instead. I could certainly see this Office 2007 feature causing MS Desktop Search to gain traction. Of course it's going to be included with Vista anyways.

Monday, May 22, 2006

Number 714

Yesterday I was eating lunch at The Cheesesteak Shop near my house. They have a TV for the patrons to watch while stuffing their faces, and it's usually got some kind of sports on. Today was no different, and the Giants-A's game had just come on. I watched the end of the previous night's game, with Barry Bonds striking out against Huston Street to end the game. I was hoping to see Bonds hit in the first inning, but it went 1-2-3. Bonds was left on deck. Giants pitcher Jason Schmidt had a shaky first inning, but managed to get out of it only giving up one run. At that point, my family and I were all done with out cheesesteaks, so we left. We were in my wife's minivan, so there was some soft rock station on the radio. They soon announced that Barry had hit home run #714, tying Babe Ruth. I had just barely missed it! If only Jason Schmidt had been quicker, or Michael, Jr. had taken longer eating, I would have seen it as it happened. Oh well.


Of course this has been the biggest news in sports this weekend. It's humorous that some people are trying to downplay it. Some (including MLB) say, who cares about 714, when the record is 755? It's funny to hear people saying that, and yet #714 was a headline all over the country last night and this morning. They say it was anti-climactic because it took Barry a long time to go from #713 to #714 (or from #700 to #714 for that matter.) Yet almost every baseball player interviewed yesterday was asked about #714. Even those that say #714 is a big deal, say that it's not as important because of the steroid allegations hanging over Bonds. Maybe so, but now people are eagerly awaiting #715.


The truth is that #714 is a really big deal. It's an even bigger deal because it was hit by Barry Bonds. Nobody (outside of his home market) liked Barry before the steroid scandals, and now he's probably the most despised player in all of sports. Forget Terrell Owens or Ron Artest, they're fan-favorites compared to Bonds now. And that's why it's an even bigger deal that Bonds hit #714 than if it was some well-liked and apparently clean-living slugger (not sure if there's one like that out there, but let's be theoretical.)


Bonds has re-defined the game. Steroids may not always be part of baseball, but you better bet that some type of "performance enhancement" will. Bonds wasn't the first to go this route, not even close. But he showed that it's a necessity now. That's right. You have to juice, in one way or another, if you're going to be the best. The bar has been set higher, some would say artificially high. Bonds will finish his career with the most home runs. He will provide ample statistical evidence to claim that he is the greatest of all time. He has set the bar even higher, and don't think for a minute that people won't shoot for his marks. And to hit his marks, they will juice. I thought it was particularly ironic that Albert Pujols was defending Bonds earlier this week. I just want somebody to ask Albert what his neck size is...


It doesn't even matter how tough MLB tries to get. The IOC are incredibly tough on juicers, but it hasn't done them much good. In fact at some point, I would be surprised if the IOC doesn't recognize that there are negative financial consequences to the tough policies and they will relent. The games (not just basball) have changed. We, the fans, require a level performance that cannot be consistently achieved "naturally." Otherwise, we're not going to watch.

Sunday, May 14, 2006

My Second Race

Yesterday I ran my second race. Like the first one, it was a 5K. I ran a 31:58 in my first race, and my goal for this one was to run under 30 minutes. I wasn't sure if I would pull it off during the race, as the course was a lot hillier than I expected. However, I finished with an unofficial time of 29:24. I was very pleased with improving my time by two minutes.


This race was in Mountain View, near the Shoreline Amphitheater and Google's campus. Actually the end of the race was through Google's campus, which is really quite nice. For my next race, I'm thinking of running the Vibha Run/Walk on July 9. It's another 5K/10K, but I think I'm going to go for the 10K this time. Not that I've mastered 5K or anything, I'd just like to give the longer distance a try. I think I will set a modest goal of 1:10. My morning runs are 5.6 miles these days, and my best time is 1:09, but that includes several stops for traffic lights. This race is also near Shoreline in Mountain View, but at least now I know to expect a few hills.

Update: My official time was 29:38. Also, here's a picture of me running in the race:

Thursday, May 04, 2006

New Car

Last Friday, I bought a new car. I traded in my 2003 VW Jetta for a 2006 VW Passat. Volkswagen was having a promotion to try to get existing Jetta/Passat owners to buy the new style Jetta/Passats. So I was able to get a great deal on a car I really liked as soon as I test drove it. It's my third VW in the last six years, so obviously I'm a big fan of Volkswagens. Here's a picture of the car:



Some interesting things about the new car... It included XM Radio. My wife bought me an XM Radio receiver for my old car a couple of years ago, back when I had a 60 mile commute (each way.) I tried on three occasions to get it professionally installed, and every time it did not work out for one reason or another. So after several months, I wound up returning it unused. So now I finally have XM Radio, and I am very pleased with it. I'm a big baseball fan, so I love being able to hear all the games on it. There is also a very nice music selection. I have not even tuned in my old favorite local radio station since I got the car, just because there was always so many good choices on XM. My only complaint is the sound quality. It is definitely better than FM radio, but it claims to be CD quality and that is definitely not the case! They are obviously using some kind of compression (MP3?, maybe not because of piracy concerns?) My car also has a in-dash six-disc CD changer that plays MP3 CDs. I made a couple of MP3 CDs, using my iTunes collection. I rip my CDs using EAC and LAME at a very high setting (--alt-preset-standard or --alt-preset-extreme depending on the type of music.) The sound quality on the MP3 CDs is really good. I can't tell any difference between it and a normal CD in the car, thus it is also much better than XM's quality. XM's quality is particularly bad on the MLB broadcasts, where some weird reverb seems to creep in. Maybe that's because it is typically re-broadcasting local AM broadcasts of the games.

Finally, when finishing the purchase of the car Friday night, the finance person had to print a very complex bill-of-sale document for me sign. This was a huge form that had several blanks spaces on it, so it could be used for the sale of any car. Their method for inserting the car-specific information (like what kind of car, the price, etc.) was to fill in the information in a similar looking desktop application, then print the information on to the form with an old dot-matrix printer. Obviously the desktop application knew about the layout of this giant form, so it could print the values in the right blanks on the form. I kept thinking that surely there must be a more efficient way to do this. The form had two carbon-copies attached also, thus the need for the dot matrix printer so that the information was replicated via the carbon paper.

Anyways, I wasn't able to come up with a better solution in the few minutes I waited for this thing to print out. However, my experience with this technology was not over Friday night. On Tuesday, I got a phone call from the dealership. They said that the printer had misaligned some of the elements on the form, so that some of the information was unreadable. This had caused their bank to not accept the form. So they had printed out a new one, but needed me to come by and re-sign the papers. I did and it was a quick, easy process. It still made me think that this kind of thing must happen a lot, especially with such a seemingly archaic technology. Nonetheless, I still couldn't come up with a better way to print this form that would be as quick, uses as little printer ink, and would allow for triplicate copies so easily.

Monday, May 01, 2006

The Price of Gas

"The Price of Gas" is actually a great song by Bloc Party, but that's not what I'm writing about. Nope, this is about what everybody else in America is talking about, $3.00+ per gallon gas. People are upset about paying that much. They see oil companies announce record profits and they think something is going on. Maybe price fixing is why the price of gas is so high.

It's amazing to me that people even say that. To understand the price of gas, just look at the price of oil. It's also at a record high. If oil costs more, then gas will cost more. As for the oil companies, of course they are making more money. They are not spending more money to produce oil. So if the price of oil goes up, but their costs stay the same, then of course their profits go up. Way up.

So the question people should really be asking, is why is the price of oil so high? That's a complex question, but clearly a big part of it is that their perceived instability in the area that producues a huge amount of the world's oil: the middle east. In case you didn't notice, one of the biggest producers of oil (Iraq) was recently invaded. The same country that invaded Iraq is now threatening action against Iraq's immediate neighbor and fellow oil-producer, Iran. Maybe, just maybe, that has something to do with the price of oil and thus the price of gas.

It's also funny that Democrats want to attack Republicans on this issue. Now this would make sense if they did it from "we need to stop making war" perspective. Instead they are entertaining the oil company/price gouging angle, mostly because of The President's close ties to the oil industry. That's just sad. You would think that a supposedly "green" party would see things differently. They would point out that the price of gas is not really that high. It was artificially low for a long time, on an inflation adjusted scale. That low price spurred the auto industry into producing gas guzzling SUVs and Americans bought them up. Higher gas prices could mean less gas being bought and thus less pollution.

Of course that's theoretical, and there's been very little real evidence for this. I must admit that it has made me re-consider public transportation. We have light rail in Silicon Valley. There's a station very close to my house. To get work, I could take it through San Jose and make one transfer to one of the other light rail lines. It would cost me $1.75 each way, or $3.50 for the round trip. It's 15 miles to my office, or 30 miles roundtrip. My car gets 31 miles/gallon highway and 22 city. For my commute, it averages around 25 miles/gallon. Thus I use 1.24 gallons of gas. Gas needs to cost $2.83 for it to be cheaper for me to take the train, and clearly it's way over that these days. Actually, you can get monthly passes for the train, for $61.25. If you figure 20 commute days per month and do the above math, you get the break even point is $2.47.

So I should take the train, right? Maybe, but maybe not. There are two problems. The biggest problem is that while there is a station close to my house, the nearest station to my office is 1.9 miles from it. That's a long walk. There is a bus I could transfer to that would get me a little closer, and of course I could take my bike. That all leads to the other problem, the time. It takes 1 hour and 16 minutes for the route described above. That's just train time, assuming everything is running on schedule. That doesn't include the time for that last 1.9 miles. By car, it takes me about 25 minutes to get to work. If traffic is horrible, it takes 45 minutes. It's tough to justify losing 1-2 hours of my day just to save $1 on gas.

So I'll probably keep generating green house gasses and sending my money to big oil companies. Maybe that's why the green-er parties aren't celebrating $3/gallon gas. It takes more than high gas prices to save the environment.

NFL Draft

I was pretty busy Friday night (more on that in a future post,) so I was stunned to get home and see the headline that the Houston Texans were taking Mario Williams over Reggie Bush with the top pick in this year's draft. Sure I had heard that the Texans were negotiating with both players. I knew there were pundits saying that new Texan head coach Gary Kubiak did not view running back as a make-or-break position (if Olandis Gary can run for 1100+ yards in Kubiak's system, etc.) but I didn't take any of it very seriously. Apparently the only people who thought that it could even make sense to pick somebody over Reggie Bush were the Texans' front office.

Now don't get me wrong. Mario Williams will probably be a good defensive end. Eventually. Even if he wound up being a great defensive end, this was a big mistake. There is no position in football where a team must have the best player in order to win. Teams can win Super Bowls with average quarterbacks and they can certainly win with average running backs. It proves nothing. A player like Reggie Bush only comes along maybe every 10-15 years. He could have turned the Texans into an elite offense. He would have turned David Carr into a pro-bowl quarterback, thus validating him as the top pick from a couple of years ago. He would not have brought them a Super Bowl on his own. That cannot be done in football. But he would have improved their team dramatically, and given them the center piece to build around for years and years to come.

Not convinced that Bush could have had such effects? Enter Exhibit A, Scott Mitchell. In 1995, Mitchell threw for 4338 yards and 32 touchdowns. He ranked second in passing yards and third in touchdowns. From 1994-1997, he averaged 3547 yards and 23 tds per 16 games played. All this depite having poor leadership abilities and decision making, being big and slow, and not even having a great arm (especially given his size.) But he had Barry Sanders. Every team that faced Detroit planned for Barry Sanders. That's what it would have been like for David Carr with Reggie Bush. Carr is already a better quarterback than Scott Mitchell, but Carr has averaged 2833 yds and 13 tds per 16 games played in his career. The Texans actually had a pretty good run offense last year, but they did not have Reggie Bush. And they won't next year either. So don't be looking for 4388 yards and especially not 32 touchdowns from Carr.

Of course Carr's biggest problem has been sacks. Want to slow down a pass rush? Just run a draw to Bush. You only have to do it once. You could probably get away with just faking it once actually. Or throw a screen pass to Bush. That will do the trick, too. It's not going to make up for a completely porous O-line, but it will slow down the pass rush.

So what now for Bush? He gets to lead New Orleans back into New Orleans. The Saints could become the ultimate feel-good story next year. Bush can "call his shot" like Babe Ruth, promising to score a touchdown for some homeless kid whose parents lost everything in Hurricane Katrina. People in New Orleans might even forget about FEMA finally.

As for Houston... Something happens to teams who do really dumb things. It took Boston 80+ years to overcome trading Babe Ruth. The Portland Trailblazers are not even close to overcoming passing up Michael Jordan for Sam Bowie. Meanwhile, Houston's old team picked up Houston-native, national champion/hero Vince Young and Lendale White on Saturday. Coincidence? Hard to say. All I can suggest for Houston is that they make a list of all the bad things they have done and start trying to come clean. It may be the only way to appease karma.

Tuesday, April 18, 2006

Blast from the Past

My wife and I were driving behind a Honda Ridgeline recently.

She pointed out how visually it was very similar to another Japaneese "truck" from the 80's, the Subaru Brat:

Too funny, and too true!

Thursday, April 13, 2006

More Sports

Already one sports post this week, but there a couple of things I need to write about.

The Masters
Phil Mickelson is my favorite golfer, by far. I started liking him because he's a lefty golfer. I learned to golf in college, and I golf left-handed. I was always convinced that most courses were really designed for righties and that lefties were at a disadvantage. This is probably not true, but that got me rooting for Phil. Then I was always annoyed about how much criticism he took for not winning majors and for playing too risky on the golf course. One of my friends pointed me to a great article recently on ESPN, where one of the things discussed was why Tiger Woods is so much better than Phil. The theory was that Tiger worked harder than Phil because Tiger was not afraid to not have an excuse. Phil would not work as hard because he always needed to have an excuse ready. There was some insight in this theory, but it's wrong. Phil doesn't work as hard as Tiger because Phil has been married for many years and has young children. Tiger became the greatest ever while being single with no other obligations in his life but his golf. Tiger is often compared to Michael Jordan. Few will disagree that Jordan was the greatest basketball player ever, and perhaps the greatest pro athlete ever. However, the devotion to his arguably resulted in him being a terrible (and now divorced) husband and father. I digress. Way to go Phil. Two majors in a row!

Baseball
I love opening week. I got this MLB Extra Innings package for free this week. It wound up being good timing as this weekend I was home alone. So I got to watch a few games I wouldn't have seen otherwise. This package is still not that great. There are games that aren't shown for no obvious reason. Last night there was a Houston-Washington game that wasn't shown. It wasn't on any of the other channels I get, so I have no idea why it wasn't shown. Also, these sports packages are a waste until they start being broadcast in hi-def. It's ridiculous if I'm paying $160 to get all these games but they're in standard defintion. This is especially true of NFL Sunday Ticket. If you're watching a game on Sunday Ticket, there is almost always going to be another game on your local network that's in hi-def. Anyways, it was nice to get to watch some extra baseball this weekend. I got to see Johann Santana pitch this morning and Alex Rodriguez take Bartolo Colon deep (yet again) this afternoon.

Gator Basketball
I was incredibly happy to see the announcement that Joakim Noah, Corey Brewer, and Al Horford are all staying for next year. Of course there's still time for them to change their mind, but I don't think they will. There's going to be a lot of pressure to repeat now, but that's a good kind of pressure.

Ricky Williams
For the first time in recent years, I've really got to root for Ricky as he goes before the NFL to appeal a violation of their drug policy. There's no official word, but a lot of people have said that his violation was not from marijuana, and that it is most likely some holistic-mecinal herb. That holistic medicine craziness has helped him kick his marijuana addiction, so hopefully the NFL will be understanding. Of course I am being selfish mostly. I think Miami's hot ending to last season and acquisition of Daunte Culpepper makes them one of the favorites to win the Super Bowl next year. Ronnie Brown is going to have a huge season, but Ricky is a great insurance policy and can step in at anytime and make big plays.

Brett Favre
Green Bay just needs to trade him or cut him. The guy wants to play, but not for Green Bay, but he's too classy to come out and say out. After all he's done for that franchise, don't they owe him that much? They're going to suck next year, with or without Favre. Why make your franchise's savior endure that at the end of his career. It would really scare me, but wouldn't Favre as a Bronco be scary? Or Favre as a Charger (I'm far from convinced on Rivers.) Or Favre as Buc (same thing with Simms.)

Mike @ developerWorks

I recently wrote an article for IBM's developerWorks. It was the first of two articles I've written for IBM. The second one should be online in another week or two. It was a fun experience working with their editors, and hopefully it won't be the last articles I write for IBM.

Both articles have to do with Apache's Geronimo application server. It's obvious to compare Geronimo with the "incumbent" open source Java application server, JBoss. I won't get too far into that. Their architectures are really quite similar. I would say that Geronimo is the more "crafted" of the two. It does less things than JBoss, and it's a little more "stick to the J2EE spec." However, I think when it comes to the standard app server features, it does them a little better than JBoss and it's code is more elegant. I think this is a direct result of it being more of a "true" open source project, where many different developers can contribute. JBoss is much more controlled. If you're not a JBoss employee, you're probably not going to contribute to JBoss.