Anyways, after reading the article, I couldn't help but be amazed that the EU would really entertain such a foolish idea. Do they think that the great American colleges are a product of government sponsorship? Obviously they have noticed that universities often work with private industries, but they don't do that because of some government commission "encouraging" then to do so. American universities are not run by some government commission. This is just another classic example of central planning vs. free enterprise, and we've all seen what wins out there.
Wednesday, February 22, 2006
EIT?
Anyways, after reading the article, I couldn't help but be amazed that the EU would really entertain such a foolish idea. Do they think that the great American colleges are a product of government sponsorship? Obviously they have noticed that universities often work with private industries, but they don't do that because of some government commission "encouraging" then to do so. American universities are not run by some government commission. This is just another classic example of central planning vs. free enterprise, and we've all seen what wins out there.
Monday, February 06, 2006
Instant Classic
Pittsburgh deserved it, no doubt. They got lucky against Cincy, with Carson Palmer going down to injury. I really don't think they would have won that game had Palmer not gone down so early in the game. Kitna had decent success, especially at first, so it's easy to "extrapolate" a big passing game for Palmer. They were certainly used to Pittsburgh's pressure defense. So they got lucky. However, The Steelers played great against both Indianapolis and Denver. Of course they still needed a little bit of good luck (Vanderjagt's missed FG) to counter the bad luck (Bettis fumble,) but they definitely out-played Indianapolis -- who was clearly the best team in the regular season. They played up to the same level against Denver, and crushed them. If they had played anywhere near that yesterday, it would have been more like 42-3 or so.
Without Polamalu's usual explosiveness and with Joey Porter contained by Walter Jones (which I didn't think would happen, but did,) Seattle could really execute the offense. Yet they just kept choking away points. Penalties in the end-zone, missed field goals, bad clock management, etc. I would have been ready to jump off The Space Needle if I was a Seahawks fan. They should have been up by at least 10 at halftime, and the game would have been radically different.
I don't think Roethlisberger's thumb was bothering him yesterday, I think he was just really nervous. And he doesn't have a coach who knows how to calm down a young quarterback. It's the same thing that happened against New England in the AFC Championship a year ago. Bill Cowher is a good coach, but one would have to say that Mike Holmgren could have probably done a better job getting Roethlisberger to play well yesterday. Big Ben certainly has the ability, as he demonstrated against Cincinnati, Indianapolis, and Denver. You could just the adrenaline going crazy in him, with him taking on tacklers and throwing hard blocks.
Luckily for him it didn't matter. Big plays from Willie Parker and Hines Ward were more than enough to beat a Seattle team that could not put points on the board despite being able to move the ball pretty much at will.
Side Note 1: It was a good game for ex-Florida Gators. Darrell Jackson played even better than his stats, with two touchdowns taken off the board. Max Starks was also solid for Pittsburgh, throwing a key block on Willie Parker's score. Only bad spot was Maquand Manuel, who had played well for Seattle this year, filling in for Ken Hamlin. Manuel actually was playing pretty well until he got injured in the first quarter and did not return.
Side Note 2: I did not realize until yesterday that Mike Holmgren used to coach at Oak Grove High School. I run by Oak Grove HS every morning, as it's about two miles from my house. I knew that Holmgren grew in San Francisco, but did not know he had coached high school football in San Jose before moving on to BYU.
Thursday, February 02, 2006
Stern Pirates
Look at the evolution of the original Napster, Kazaa, and now iTunes. People want to download music, they don't care about laws (Napster.) Shutting down one distribution method for this does no good as other, more efficient ones replace it (Kazaa.) The only way to really combat this is to offer the same thing legally and for a low price (iTunes.)
So the obvious thing that Sirius should do is offer Stern's shows on iTunes. They should offer them on a show-by-show basis for the iTunes standard of $0.99. In addition to that, they could offer a subscription via iTunes podcasts for say $15 per month. First off, anybody who regularly listened to Stern would spend way more money going this route than paying $13 per month for a Sirius subscription. They'd be paying more for less, since the $13 gets you a lot more than just Stern's four hours in the morning. So it's hard to see how they would be hurting themselves with this move. Additionally, it would let people taste-test Stern on Sirius. These are people who would never throw down the money for a Sirius setup and sign a subscription. However, some of those people are bound to do just that after taste-testing Stern on Sirius (assuming Stern is as entertaining as Sirius and the $500M they are paying him think he is.) So it should actually boost Sirius subscription rates in the long run. Finally, people have shown that if you give them a legal, low price option, they will pay for it over the illegal free option. Apple is closing in on a billion song sales on iTunes after all.
Bloc Party
Anyways if you're a fan of guitar-driven, alterna-rock a la Jane's Addiction or Built to Spill, definitely give a listen to Bloc Party. Actually the record really reminds me a lot of Radiohead's The Bends. A lot of times Brits don't like to take themselves too seriously, but Bloc Party definitely pulls it off.
Wednesday, January 25, 2006
Scottie Pippen Bitter About Kobe's 81
The article basically claims that NBA teams don't play defense anymore. Actually I think an exact quote is that "Today defense is no longer part of the game." This is the most ridiculous statement. The NBA saw a steady decline of scoring in the 90s. Why? Partly because players were drafted more on physical talent than shooting skill, thus overall shooting skills declined. But what do you do with such players? You teach them to play defense. It's a heck of a lot easier than teaching them to shoot.
You could see this starting in the college game first. Pressure defenses really became the norm in the mid-90s. This definitely became the case with the NBA, too. Over the years the NBA has changed the rules in some ways, to try to promote more offense. Now why would the NBA do this if "defense is no longer part of the game?" Obviously if things were like the mid-80s, then they would definitely not try to help offensive players by changing the rules.
So have the rules changes created a league devoid of defense? That's hard to argue given all the recent NBA champions. Detroit and San Antonio are both outstanding defensive teams and have been for years. Before their rein, the league was dominated by the Shaq n' Kobe Lakers. They were coached by Phil Jackson -- the same Phil Jackson who coached Scottie Pippen and the defensive-minded Chicago Bulls. Did Phil just forget about defense while coaching the Lakers? I think not. One of the teams that challenged the Lakers during their run was the Sacramento Kings. They really became serious contenders once they started playing great defense.
So why did Scottie make such a ridiculous statement? Because he needed some ammo to claim that his old buddy Michael Jordan could have scored 81 today. In fact he claims that Michael could have scored 100 today. In fact he says "If Kobe could get 81, I think Michael could get 100 in today's game." Well guess what, there's no if about Kobe scoring 81. Anyways, he goes on to claim that with the lack of defense in the game that he wouldn't be surprised to see players averaging 40 points a night. Way to put down not only Kobe, but every other great scorer out there like Allen Iverson, Tracy McGrady, Vince Carter, and Amare Stoudemire.
Then he goes on to claim that he thinks Phil Jackson will do everything in his power to make sure that Kobe doesn't have a game like that again. He claims that it's bad for the team. Was it bad for the Bulls all the times that Michael Jordan scored 50 or 60 points? He says that Kobe has taken a step backwards from a leadership perspective because he scored 81 in a game, since now Kobe should score 81 points a night and the Lakers should win 75% of their games.
The whole thing reminds of when Mark McGwire and Sammy Sosa were making their magical run at 61 home runs. You had guys like Mike Schmidt bitterly claiming that if only they had played in the current era, they would have hit 75 home runs per year. It's amazing that great players from the past feel the need to belittle great accomplishments by current players. There's no reason to do it, except for their own insecurities and jealousy.
Impeach Bush (Seriously)
So can anyone really imagine a scenario where a wiretap is needed, but somebody decides that FISA will only get in the way? Hold on, let me rephrase that. Can anyone imagine a legitimate scenario where a wiretap is needed, but FISA will get in the way? For me, it's really hard to imagine such a scenario. So let's make the following logical generalization:
That is why this practice must be stopped. It must go to the courts and it must be stopped. Further, the people responsible, and that definitely includes President Bush, must be held accountable. They broke the law and they must be punished for it. For a sitting President, that means impeachment.
Weekend Cycling
That's not Lake Almaden, it's one of the ponds north of it on the trail. As you can see it was an overcast day. It was misty early in the morning, so I didn't hit the road until the around 1:30 PM. Over nine miles on the route, definitely the farthest I've biked so far.
On Sunday, I biked a shorter route up past the hillcap area in San Jose. As the name implies, this route took me up a hill. If you click on the route link and turn on the Elevation feature, you'll see that it's about a 180 foot climb up the hill. It's actually more gradual than Google makes it look. Anywyas, that's a fun route. I plan on biking it during the week, and maybe heading over to the river trail on weekends.
Monday, January 23, 2006
Can You Hear Me Now?
The phone I bought from Verizon is the Samsung SCH-A950. This is the phone that was being touted for awhile as "The MP3 Maestro." It's supposed to combine some iPod functionality into a cell phone. That was an interesting plus to me, but I mostly bought it because it had a good camera (1.3 MP,) EV-DO enabled, and was Bluetooth capable (albeit only for headsets and handsfree operation) for just $99. The music playing was a plus, though I did like that it could take a microSD expansion card.
So far I am very pleased with the phone. Reception is good. It seems to never show more than 2-3 bars, but the sound is great and I've had no dropped calls using it all over San Jose, Campbell, and Sunnyvale. Battery life seems so-so, but I think that's because I've been using a lot of the extras, like the camera, web browser, and yes the music player. The camera is good as expected, though it is a little slow when you use its highest setting, 1280x960. The phone has two speakers for listening to music. Of course they're not that great for rocking out to your favorite songs, but they make for outstanding ringtone speakers.
As for the music player ... well you might have noticed that I said music player, not MP3 player. The phone does not play MP3s. Its capable and did so with an earlier firmware version, but not with the current. It seems that Verizon disable MP3 playing when they added the ability to buy/download songs from Verizon's music store. My phone was running the latest firmware, so it had never had the ability to play MP3s.
This is annoying. Verizon is somewhat notorious for disabling certain features on phones in order to push people to use their premium services. This seems to be another case of this. This is probably why they cripple the Bluetooth capibilities of their phones.
So I could buy songs for $2 a pop from Verizon and play them on my phone. To do this, I also need a $15/month VCAST subscription. Another alternative was to buy a USB cable for my phone, buy songs on my computer, and then sync them to my phone using Windows Media Player. Going this route, the songs are only $1 instead of $2. If you do the sync, WMP will allow MP3s to be synced to your phone. It doesn't actually transfer MP3s to your phone, but instead converts them to WMA files and copies the WMA files to your phone.
So with all this knowledge, I came up with a slightly different solution. I have not bought the USB cable. I probably will, but didn't want to just yet. I did buy a 128 MB microSD card on eBay for $5. The price was too good not to buy it. I already had a card reader for use with my digital camera. So I plugged the microSD card into the card reader (after I had used the card in my phone, so that my phone could set up its directory structure on the card.)
Now when I opened WMP and chose to sync, it gave me the option of syncing to the card. Very nice! I did not want to go the MP3-WMA conversion route, so I just took a CD ("Is This It" by The Strokes) and ripped it to WMA. I put the new tracks in my sync list and executed the sync. Voila!
One problem, though... WMP doesn't really know where to put the files and the phone looks for them in a particular location (the "MY_MUSIC" folder.) So I opened the card up in Windows Explorer, and it had put everything in the root directory. I moved the files there to the MY_MUSIC folder, and transferred the card back to my phone. My phone saw the files and I could play them with no problem. Now I just need to get some 2.5mm headphones...
Sunday, January 08, 2006
Cycling in 2006
She got it for me to give me some variety in my exercise routine. Currently I run three miles, four days a week. Now I plan to run three days and bike three days.
It's an awesome gift, and totally unexpected. However, it's my first bike since college. I've been riding it around my neighborhood in San Jose. The city has a lot of bike lanes. In many cases, these lanes are not next to the shoulder, but about a car's width off the shoulder. Why? So that there's room to park on the shoulder. The net effect of having a bike lane plus parking room between the right lane and the shoulder is that a lot of people use this space as a turn lane. So needless to say, this can be very nerve wracking to a newbie rider.
So one thing I'm looking forward to is riding the bike on bike trails at some of the many parks in San Jose. I just need to get some kind of device for my car, so I can transport my bike to one of these parks. I've heard there's a nice one near Lake Almaden, which is just a few miles from my house. I'm really looking forward to that, especially once the weather dries up and warms up.
Saturday, January 07, 2006
CES and The Big Three
- Microsoft -- The only thing "new" was Urge, Microsoft's MTV backed entry into selling digital music. This just seems like a waste of money by MSFT. We just got through a holiday season that saw ridiculous iPod sales. People who own iPods are only going to buy digital music from iTunes. Urge, like Yahoo's music store, seems like a Napster style service offering subscription. This has its merit, but it won't be enough. MSFT also had some interesting things to say about their software in cars and mobile phones, and announced an HD-DVD player for the XBox 360. Yawn.
- Yahoo -- Yahoo announced their Go service for the Desktop, Television, and Phone. This sounds pretty interesting and a nice way to leverage their purchase of Konfabulator. Go for the TV sounds a lot like Apple's, which is cool. I also like the idea of having Konfabulator Widgets on cell phones. Seems like there won't be a lot of cell phones capable of this at least for awhile.
- Google -- Ah, Google. Their big announcement was their video store. There are some cool ideas behind this, such as letting content name their own prices and download/streaming options. The capitalist in me likes this. They've also got some quality partners such as CBS and the NBA. However, there are a lot of problems. Number one is that their scheme seems more about making content providers comfortable than it is about providing value to the consumer. That's where Apple gets it right. Of course Apple is not as interested in making money off video downloads, since they think it will help the continuing growth of iPod sales. Whatever their reasons, they keep it simple for consumers. You know it's going to cost you $1.99 and that you'll be able to watch it on your computer (and your work computer for that matter) and on your video iPod. That brings me to the next problem with Google's video store. Of course they had to put DRM on the videos (unless the content provider opts out) and they've come up with their own DRM technology. That means no watching videos you downloaded on any mobile player. I think there's a chance this turns out ok, as video downloads may take off while mobile video might not. But it's hard to say on this. Quick sidenote: When it comes to mobile video, as a parent I would love being able to download episodes of my older son's favorite shows (Oobi,
Jack's Big Music Show, and Sesame Street) and watch it on a video system in our minivan. Another sidenote: Here's an interesting article about where Google could be headed with video. It's an idea I've heard thrown around before, about Google doing targeted advertising for television. There are a lot of problems with this idea, though. It underestimates the current sophistication of ad placement via demographic profiling. It also fails to understand that a big part of the value of AdSense is that you only pay for succesful advertising. This doesn't carry-over to TV. Then the worst part is that it ignores the TiVo effect, i.e. that people watch less and less commercials since they can fast forward through them on recorded shows. So I wasn't impressed with Google's video offering. Their more minor announcement, Google Pack, is much more promising. Not because of the currently included software (which is mostly good stuff I already had on my computers,) but because of their Google Updater. This thing is a great device for Google to push new software, both from them and open source stuff like Open Office, to the masses. It's a nice Windows bypass mechanism. A nice move by Google, and I wouldn't be surprised to see Yahoo follow suit.
Monday, January 02, 2006
It's Time for Michael Vick to Grow Up
The fact is that Vick has a career 75.8 quarterback rating. He's never passed for more than 3,000 yards in a season and he's never thrown for more than 16 touchdowns. Those numbers aren't going to produce championship caliber offense. Atlanta will have to go the Baltimore Ravens route if they want to win championships with Vick, or they will have to ask more from Vick.
Of course it's not really as simple as "pass more, run less." What is really needed is "pass better." Often that means finding open receivers when today Vick does not. That will obviously lead to more completions and less interceptions, but the side effect of finding open receivers is less running. It's not like all 102 rush attempts by Vick this year were designed runs. I would guess that very few were in fact. Some were bootlegs where he did not find an open receiver. Others were pure scrambles. Either way, if he finds more open receivers then he will wind up running less.
If you look at great QBs who could scramble, like John Elway, Steve Young, and more recently Donovan McNabb, you will see this trend. Look at Randall Cunningham's ridiculous season with Minnesota a few years ago. If you look at Brett Favre's first four years in the league, you see the same thing.
The only QB who has seemed to defy this kind of common sense was Daunte Culpepper in 2004. He seemed to run a lot, pass a lot, and pass really well. This may have been a single season anamoly. Either way, Vick does not seem capable of this. If he was truly a rule-breaker, a quaterback like none ever before, then his lack of passing production would be made up and his team's offense would still be great. This is just not the case. Atlanta was 12th in yards/game this year and 14th in points/game. That's middle of the pack.
However, it's entirely possible that a lot of people have no interest in seeing Vick improve. Why not? Well because Vick's style of play makes for very entertaining football. Maybe the Falcons will sell more tickets and the NFL will get better ratings with a scrambling Vick than an efficient Vick. Certainly it's got to be more fun for Vick to scramble than to become good at reading defenses. And that's why he has to grow up. He needs to do the hard thing instead of the fun thing. He needs to listen to critics instead of fans. He needs to stop "keeping it real" and start keeping it in in the air and off the ground. He needs to learn from some of the more succesful players who have half his talent (Tom Brady anyone?) They're not as cool and as sexy, but they're better quarterbacks.
Friday, December 30, 2005
Return of The King
A lot has happened since then, too much to try to go back and write about everything. So I'll just hit a couple of big things:
- Yahoo! -- Yahoo has been doing some very interesting things. Their acquisition of del.icio.us is the most interesting. They were already trying to do something similar with their "My Web." I don't know if del.icio.us actually has more users (or even as many,) but it certainly had a lot more mindshare. Yahoo also did a couple of hosting deals with some of the popular blogging software. To me this along with their other acquisitions (Flickr and Konfabulator) indicate a clear strategy of trying to embrace disruptive technologies. Yeah they probably are just doing this because of their compettition with Google, but they still deserve credit for such smart acquisitions.
- Patriot Act -- The Patriot Act is one of the worst pieces of legislation ever passed. I was very happy to see that the filibuster threat was going to keep it from being renewed. The President's attempt to turn public opinion was actually a little surprising. It seemed very Schwarzenegger-ish, which made it even more suprising given Arnold's lack of success in 2005. The news about illegal wiretaps being endorsed by GW definitely helped the Democrats' stance. Let's just hope they can keep this up in 2006.
Tuesday, November 08, 2005
T.O.
The big news in football this week has been the suspension of Terrell Owens. The whole thing kind of reminds me of the steroid controversy in baseball. It's amazing how seriously people take sports. I love sports. I'm a huge football and baseball fan (just ask my wife.) But at the end of the day, sports is just entertainment to me.
That's why I think the T.O. controversy is totally ridiculous. The guy is obviously a ego-maniac who holds a certain amount of contempt for the rest of the world. Kind of reminds me of Bobby Fischer. Put a microphone in front of him and he's bound to say some things that are going to offend the rest of the world. So it wasn't too surprising to me when he ragged on Donovan McNabb (again) and the Eagles front office (again) last week.
But my question is: Who Cares? Sure maybe Donovan McNabb should be angry. Obviously the Eagles management have a right to be angry. But what did the guy really do at the end of the day? He made childish remarks about people. So what? Don't we all have co-workers who make the same kind of remarks on a daily basis?
If the Eagles want to suspend him, there's nothing wrong with that. If I criticized my boss I might get canned. Of course I think it's pretty stupid. They are a much better team with T.O. than without him. Still that's their mistake to be made. Obviously Donovan McNabb's comments about them being better without T.O. just shows that he can be almost as childish as Owens.
I think things would be a lot different if the Eagles were 8-0 right now. But they're not. It's obvious to everyone that their defense is not as good (especially without Corey Simon) and that Donovan McNabb is hurt. So they know they're not a contender this year, which makes it a lot easier to come down hard on Owens. T.O. is probably the best receiver in the league and there's no way a contending team would do what the Eagles have done. If I was an Eagles fan, I would be pissed that they were suspending T.O. because it just means that they're raising the white flag.
technorati tags: sports, football, terrell owens, nfl,
Special Election
This morning I voted in the California Special Election. It was a pleasant experience. There was a poll at the school next to my house, so I simply walked over there. I went around 9:30 AM, so there were no lines. This was the first time I had voted at the polls in California since 2000. There were no polls near my old house in Concord, so I had to vote by absentee ballot. I was surprised by the lack of security. What I mean is that all I had to do was give my name and address. I did not have to present any identification to verify who I was. Anyways, once I did that, they gave me a voting card for the touchscreen machines. It was very quick and easy.
So how did I vote? Well let's just say that I felt like I had changed sides and become a Republican. Here's a breakdown:
Prop 73 -- Parental Notification : Yes
I'm generally against any kind of restrictions on abortion, but not in this case. I really think that parents need to be held more responsible for their children, and so they have to be informed.
Prop 74 -- Public School Teachers Tenure : Yes
Tenure gives lots of guarantees to teachers that most workers do not have. My employer can lay me off anytime they want. They don't have to wait for two consecutive unsatisfactory performance evaluations. So why do teachers have extra protection? Unions of course.
Prop 75 -- Union Dues/Political Contributions : Yes
Speaking of unions... Actually this one was a little more difficult for me to decide. On one hand, why are we passing laws to regulate how unions spend their money? Shouldn't we stay out their business? On the other hand, unions get way too much special treatment. People are pretty much forced into joining unions, so at least this gives those people some power back. Of course what we really need is to remove the many laws the grant special protection of unions.
Prop 76 -- State Spending Limits : Yes
Again this one was a little difficult. I don't like the state minimum school funding requirements. However, I don't like the language of this proposition. It seems to embrace but modify Prop 98, when a total rejection is really needed. Of course, there's probably no way the governor could get a repeal of Prop 98, so I guess this is still some progress.
Prop 77 -- Redistricting : Yes
I've been very amused by the number of ads on this proposition. This one is a no-brainer to me.
Prop 78 -- Drugs Discounts : No
What's this, a new government program overseen by the state? Oh, and it's back by big business. Talk about a recipe for corruption and government enforced monopoly...
Prop 79 -- Drug Discounts : No
This one is equally bad as Prop 78, maybe worse because of more management by the government.
Prop 80 -- Electricity Regulation : No
From the ballot description: " Imposes restrictions on electricity customers' abiity to switch from private utilities to other electric providers." That's all I had to read to figure out how to vote on this one!
So there it is. I really do feel like a Republican suddenly. It's very unsettling.
Saturday, November 05, 2005
AJAX-MVC with Rico
There are a ton of AJAX libraries out there, which is not surprising. It seems like one of the most common ones for Java apps is DWR. I considered using it, but I have some “philosophical” issues with it. I really hate scriptlets inside JSPs. I think this comes from bad experiences with such JSPs early on in my career. I’ve also had to deal with some really bad programmers who thought that the only way to program in Java was to do it in a scriptlet on a JSP page. So the idea of using DWR to directly invoke a business method just seems like a step backwards.
So instead of using DWR, I chose to use Rico. I liked that it was built on Prototype, an object-oriented JavaScript library that is the basis for the excellent AJAX support in Ruby on Rails. In Rico, really allows for AJAX support similar to ROR’s with any server-side technology. Rico is also just a JavaScript library.
Rico lets you register parts of your page that can be updated. It then makes the XMLHttpRequest for you, and when it gets the callback, it simply takes HTML from the response and uses it to replace the corresponding part of the page. That means that your response just needs to create some XHTML that is wrapped in a little XML. I really like this because the XML/XHTML response is really just another view in the application that happens to be consumed by a JavaScript callback function instead of a web-browser. PocoPay already had similar non-HTML views used by the VoiceXML scripts.
For my app (PocoPay), I use Spring MVC. I basically created a new model (command,) controller (simple command controller,) and view (just a clean JSP that declares itself as XML.) All of the parts of the page I wanted to be updated I simply wrapped in <div> tags. I then registered these divs and my view returned the new HTML for them. That was it! No crazy JavaScript to learn. It was truly AJAX-MVC to boot.
Monday, October 31, 2005
Evil Getters and AJAX
That's all well and good, until we start talking about UI. Most of the UIs out there, whether they are desktop applications or web pages, use an MVC paradigm. This inevitably leads to your view calling lots of getters on models to display data. Similarly your controllers wind up calling lots of setters on models to process input. So MVC requires lots of getters and setters.
So is MVC evil? That would be a problem because it is the de facto standard in UI technologies. Let's just concentrate on Java web apps for the moment. Struts and JSF are both MVC based frameworks. My new personal favorite UI technology, Spring MVC is also clearly and MVC framework.
The more object oriented approach to UI would say that objects should know how to render themselves. If they know how to render themselves, then other components (views) do not need to call getters. These objects should also know how to construct themselves. So their components (controllers) do not need to call setters. This is clearly against MVC which says that the view of an object needs to be separated from the object.
Holub's original article caused quite a stir. He stuck to his guns and presented an alternative approach to MVC in a follow-up article last year. Here he suggested that a Builder Pattern be used to build different representations of an object. This could an include an HTML representation to be used by a web app.
This is a clever idea. I liked it quite a bit. However, when I read it, I could totally see an experienced UI developer looking at all of these builder classes that had a lot of nasty code to build HTML strings, and thinking "this is stupid."
Something has changed this year that may change people's minds. That something is AJAX. One of the many things that AJAX encourages is the ability to render on a much more granular basis. You don't want to always re-render an entire when a request is processed. Instead you need to be able to just re-render the parts of the view that have been affected by the request.
I saw an article on TSS about adding AJAX to an existing Struts web app. I couldn't help but be amused by their ridiculous strategies for doing this. They recommend re-using your view, but putting lots of if-tags in so that only parts of the view can be rendered based on data in a request. They then recommend using the request.responseText so that you can just dump the HTML from your view directly into your page.
To me, this just shows the limitations of the MVC approach. The view object is the only thing that can be rendered, so everything has to go through it. These views are supposed to correspond to web pages, so a lot of hacking has to be done to turn a view into something that is not a web page and can be used by AJAX.
What if you didn't have a Struts app? What if you had crazily taken Holub's advice and gone with a builder approach instead? One can imagine that your life is suddenly a lot easier. To use AJAX, you can easily just ask your sub-component to render itself and send that back to the JavaScript handler on the page. It can also render itself as HTML or as XML, allowing you to use the more powerful request.responeXml object. It is not only easier but much more natural to adopt AJAX to a web app that does not use MVC.
Tuesday, October 25, 2005
Flock
I'm writting this blog using Flock. There's been a lot of hype leading up to the beta release of Flock. It's been billed as Web 2.0's browser. It has built in support for a number of trendy sites, like del.icio.us and flickr and is built on top of Firefox. It also has a built-in blogger, that I'm using right now. So what's my opinion of Flock?
Flock is not-bad. It's a good idea to introduce a browser like this whose aim is to make it easier for people to push their own content to the web. It's integration with del.icio.us is a great idea. I could see that as a tool that a lot of people will use. Of course Yahoo! is trying to do the same thing with their My Web tools, and I'm sure Microsoft will follow suit (not so sure about Google.) This kind of tool fits more naturally inside a web browser. Yahoo! uses its toolbar to enable similar functionality, but not everybody has their toolbar or would even want it. To be sure, My Web has other cool features, but I still think Flock+del.icio.us is a better combination.
Having a built-in blog tool is not quite as much of a hit. The biggest blog-site, Google's Blogger, already has a pretty nice interface. For more advanced blogging, Google provides a MS Word plugin that works great. Still Flock has some nice touches. The one I like is the tagging. Tagging is an important part of Web 2.0 and it's nice that you can tag your blogs easily. Actually, they really need to make tagging easier when adding a site to your del.icio.us collection. One of del.icio.us's best features is that this is super easy to tag when using their bookmarklet, and they do a pretty good job of suggesting tags. Anyways, the blogging tool in Flock is not bad.
Now for my real complaints! This is one buggy browser. I installed it on my laptop and on my home desktop. I'm blogging from my laptop, partly because I could not get the blogging feature to work at home. I had a hard time getting del.icio.us integration working on my laptop, though it was easier at home. However, I get prompted for my del.icio.us password a lot on my home machine, but not on my laptop. Its performance is actually not as bad as I expected (Firefox + lots of extensions often becomes slow.) There are many other minor bugs. They've really got to get the blogging and del.icio.us integration working though, as those are their calling cards.
Monday, October 24, 2005
Twenty-Four Hours of Seattle
This past Thursday night I flew to Seattle. I was there until Friday evening when I flew back home to San Jose. Why was I in Seattle? Well that's the subject for another blog that I will definitely write in the not too distant future. This was my first trip to Seattle, so that makes for a pretty good blog subject all by itself.
First off, I flew Alaska Airlines to Seattle. This was my first time flying Alaska, I was very unimpressed. Their terminal in San Jose and their planes all seemed like they had not been redecorated since the 70's. Both of my flights (to and from) were late. The flight attendants were especially annoying. They were like watchdogs when it came to making sure people shut down their laptops and iPods.
What I got really annoyed with was hearing about how there wasn't going to enough room for all the carry-on luggage. Why do they have a policy of one carry-on plus one "personal" item if they don't actually have room for that? They kept threatening to make people check their luggage. Then they would point out that if you had to check your luggage at the gate, you would not be able to claim at the gate (you'd have to get it from baggage claim) unless you were flying first class. How rididculous is that? Earlier this year I flew to Florida with my wife and one-year old son. We bought an umbrella stroller for pushing him around the airport. We would then check this at the gate when were boarding the plane. We would then pick it up when we were getting off the plane, so we could put him back in it. This was especially useful considering we had to change planes in Atlanta. I guess if we were flying Alaska then, we would not have been able to get our stroller back until we got to Florida.
Ok, so Alaska Airlines sucks. Next up was my hotel in Seattle. I stayed at the W Seattle. I was really looking forward to the hotel. It looked really nice online and it sounded like a place that really pampered its guests. This was exactly the case, but yet I was still very disappointed with the W.
The W is one of those places that tries way too hard to be cool. You've known people like that. They're not inherently bad, but you don't really want to be around them much. That's the W. The place is poorly lit. The hall outside my room was very dark, with only low-lit purple lighting. Yes purple. The lobby was dark with booming techno music. This was true when I arrived at 10 PM on Thursday night, and was still true when I went jogging at 7 AM on Friday morning. They like to advertise about the thread-count of the comforters on their beds and their goose feather pillows, but the most important part of a bed is the mattress. Their beds were way too soft. Maybe kids might like that, but most adults will wind up with a back-ache because of the lack of back support. Actually my wife likes super-soft beds like that, but she's the only adult I know who doesn't need back support from their beds, and the W's beds had no back support. The room did have a nice chair and desk. It also had a cool-looking couch that had soft cushions to sit on, but no cushions for the back. So you'd sit down, sink into the seat cushions, then tip backwards and hit the hard board back of the couch. The W is all about form over function.
But here's the worst thing about the W. Despite being a very nice hotel and very expensive hotel, they totally try to nickel-and-dime you. Things that are included at most nice hotels are not included at the W. They deliver USA Today to your door each morning, without you even having to ask. However, they charge you $0.80 for it. They have internet access in the rooms (though no Wi-Fi, which I found very surprising) but you have to pay $15 a day for it! My wife and I recently stayed at a Best Western in Cambria and it had free internet access in all rooms, with free Wi-Fi in most rooms and all public areas. That was a Best Western. You would think that a fancy hotel like the W would have at least as many amenities as a Best Western in central California.
Ok, so I also hated the W. Otherwise though, I really liked Seattle. I was impressed with the cleanliness of the city. I really enjoyed jogging downtown. Seattle seems like a big sports town. The new stadiums (Qwest Field and Safeco Field) are both very impressive. There were tons of sports bars. The weather there was beautiful while I was there. Everyone claims that the rainy-ness of Seattle is greatly exaggerated. Of course fall is generally a nice season in most parts of the country, but it was definitely quite nice in Seattle. I didn't get a chance to try much food there, and didn't even try any coffee while I was there. Maybe next time.
Tuesday, October 11, 2005
Oracle Buys Innobase
So now the big question is why did Oracle buy Innobase? Many people fear that their only reason is to damage MySQL. Given Oracle’s reputation, this is not surprising. Perhaps they fear that open source databases like MySQL will start to eat at their profits (maybe they already are?) InnoDb is GPL’d, but like all MySQL products, they sell support. It’s the money from those support contracts that pay the salaries of the developers who write InnoDB. The MySQL/Innobase contract is up next year, so theoretically Oracle could prevent MySQL from offering support to InnoDB users. That support includes a hot backup tool for InnoDB, a real must for sensitive, high volume customers. So indeed, Oracle could wound MySQL.
Personally, I’m not completely convinced. Does Oracle really fear MySQL that much? If they do, then I’m impressed. Oracle’s never shown that kind of foresight previously. If this is the case, then it would be a strange combination of insight and ignorance. They would be insightful for expecting MySQL to erode their market share in their more profitable spaces. They would be ignorant to think that an open source project could be crippled easily. MySQL already has other transactional engines. There are also many other open source transaction databases out there. It would not be difficult at all for them to replace InnoDB. Their very architecture makes it easy from a technical standpoint. Sure there would be some existing customers affected, but it’s really hard to imagine those people dropping MySQL and switching to Oracle.
And that brings me to the reason why I’m not convinced Oracle is trying to damage MySQL. MySQL and Oracle do not compete directly as much as one might think. Sure there are definitely companies that consider both. I really don’t think there are that many MySQL installs out there where they would have gone with Oracle if MySQL did not exist. If those existing MySQL customers were running Linux (Linux and MySQL put the L and M and in LAMP after all), then they probably would have gone to Postgres instead (or maybe Firebird.) If they were running Windows, then they would definitely go with SQL Server over Oracle, because of the price difference and the fact that they could clearly live without a lot of Oracle’s features.
Basically I don’t think MySQL’s customer base currently draws from would-be Oracle customers. It’s mostly people who want something free that won’t require them to have a full-time DBA to make it work. They want the opposite of Oracle. The two databases really are at the opposite ends of the spectrum.
So maybe Oracle will actually try to strengthen InnoDB and thus strengthen MySQL. Think about how much more attractive MySQL could be if it could boast that Oracle had contributed to its transaction database engine. One could really see MySQL eating into SQL Server’s market share. Meanwhile MySQL could have a lot more support contracts, which in turn could make the idea profitable for Oracle too.
Thursday, October 06, 2005
Nano Nano
In 2001 my wife bought me the first-generation iPod as a Christmas present. At the time we weren’t married, but after getting that kind of present, we tied the knot in 2002. That iPod has seen a lot of use. For years it was my companion on my long commute from the East Bay to Silicon Valley everyday. It was also my companion on numerous personal and business trips across the country. More recently it has been my jogging companion each morning.
Earlier this week, I retired that iPod and finally bought a new one. I bought a 4 GB iPod Nano. As I mentioned, my primary use of the iPod now is for jogging, so the Nano seemed like an even better iPod for that than the iPod Shuffle. For $50 more I could’ve gotten a 20 GB fourth-generation iPod, but the Nano is far better suited for jogging. I rip my songs as high quality VBR MP3s using Lame, so I’ve only got about 500 songs on my Nano. So I sync it with a playlist in iTunes, as my full music collection is over 30 GB in size.
Anyways, I couldn’t be happier with the Nano. It’s really hard to believe how small and light it is. The wheel is very easy to use and the screen is bright and easy to read. It looks like anti-aliased text on the screen actually, a very nice touch. I’m planning on picking up the Nano lanyard to make it even easier to use while jogging.
As for my venerable old iPod, I’m not sure what is to become of it. It still holds a decent charge (~90 minutes, at least while jogging) and is in very good condition. I checked eBay and it looked like I could probably get $50+ for it, but I don’t know if I’d want to sell it. I’m not a very sentimental person, but maybe I’ll just have to keep it around.