http://fakesteve.blogspot.com/2007/08/stunning-post-from-microsoftie.html
Ongoing musings, tips, and observations from a Van Couvering, not someone who is going to Vancouver.
Wednesday, August 29, 2007
Microsoft employee says (anonymously on FakeSteve) that Vista is just *not good*
Java DB: It's both embedded *and* a server
The instructions on how to enable the network server are here.
You either set the property
derby.drda.startNetworkServer=true
in your derby.properties
file or you can start it explicitly:
NetworkServerControl server = new NetworkServerControl();
server.start (null);
Pretty darn simple...
Tim Boudreau moves, with flash and fun
http://weblogs.java.net/blog/timboudreau/archive/2007/08/the_netbeansmob.html
Jet Lag program was a success!
Thanks, Damon, that really worked! Another benefit of blogging :) It's right up my alley (being from Berkeley).
Something about pressing all those points and reminding myself to feel good -- I found myself relaxing, breathing better, and feeling refreshed. I had zero jet lag in both directions, on a five day trip. I didn't sit up wide awake in the middle of the night or collapse in the middle of the day.
Yes, it sounds all wooey/New Agey, but hey, I am an open-minded scientist type and will try anything that doesn't sound harmful or cultish. Before you pooh-pooh it, try it yourself.
Prague Trip
OK, Heathrow was hell, but Prague was quite wonderful. I actually was able to get away from the office on Friday afternoon and take a walking tour of Prague. I highly recommend Prague Walks They have all sorts of walking tours - the one I took was three hours with a very knowledgeable guide and included a stop half-way through at a pub for a foot rest and a local beer. What a great way to spend three hours!
More photos can be found here. They're with my crappy cell phone camera, I forgot to bring my regular camera (probably a good thing because it would probably still be sitting in Heathrow in my lost suitcase), but there are some good shots in there considering.
Tuesday, August 28, 2007
Heathrow Hell
I remember seeing Simon Phipps links about Heathrow, but didn't really pay attention. I didn't have any idea how bad it could be.
When you exit in England, you simply go out, get your baggage (although that did take 45 minutes), catch the Heathrow Express, and you're good to go. On the way back in, you go through security and on to your plane.
Ah, but when you're transferring flights, it's an entirely different, and hellish, experience. There is no one international terminal, so you have to be shipped from terminal to termnal on a bus. Our bus got stuck behind a luggage cart that had lost its luggage. Their transfer stations are completely overwhelmed, and it takes an hour to get a boarding pass for your next leg of the flight. Worst of all, the UK doesn't trust any other country's security and you have to go through a security check even though you went through one at your original departing airport. And this security is completely overwhelmed and the line is (if you're lucky) 45 minutes to an hour long.
The worst part of this was that I got the sense that the staff there really didn't really care if this was an inconvenience, it's just the way it is. And at Virgin Atlantic, when they were continually screwing up my ticket, they kept intimating it was my own misunderstanding of the arcane rules of airport/airline bureaucracy that was causing the problems. Deal with it, passengers, it's not our problem, was the general feeling.
As a result of the delayed flight and eternal security line, I missed my connection. So, I get put on a BA flight. Back to Terminal 1, the terminal I started at. And guess what, I have to back through friggin' security because I have been "mixed" with unchecked passengers. And nobody seems to think that maybe, just maybe, there could be a better way. Deal with it, passengers.
I checked at the gate to make sure my luggage had followed me, and they assured me it had. When I get to SFO, no luggage. Since then I have been calling every day, and today they told me that it often takes a month for someone to get their baggage back. A MONTH!. I was this close to packing my laptop on that suitcase...
I can just see the folks at Heathrow standing around, hands in pockets, taking a break, not really caring, and my luggage just sitting there. Someone glances over at the bag. "Who's luggage is that?" someone asks. "Dunno." says someone else and shrugs. Oh well... Not my problem...
Heathrow is an old, massive, airport, that is completely overwhelmed. This I understand. But the general apathy of the folks working there, the complete disregard for passengers, is unforgivable. They should have a sign over the airport as you come in: "Deal with it."
I was complaining to one of the people helping me with my lost luggage about Heathrow, and she said she personally will not go into Heathrow as a passenger, at least until the build their new terminal. A flight attendant on the BA flight also confirmed that Heathrow is absolutely hellish and to be avoided.
So Heathrow is permanently on my black list. I hope some day the airlines realize they are losing customers because of Heathrow, and start making deals with alternate airports. I hope some day Heathrow realizes that passengers are actually what they are there for, and without passengers, you have no airport.
Personally, I am one passenger they have lost, and I'll also be telling anybody else I know to avoid Heathrow at all costs as a transfer destination. If I am transferring in Europe, I will go through any airport other than Heathrow.
Deal with it, Heathrow.
P.S. Reading the comments on Tim's blog about Heathrow, it sounds like Frankfurt and Amsterdam are great choices, and that Paris, Gatwick and Stansted are all pretty close to Heathrow in terms of pure yuck.
Rick Hillegas talks to us about Java DB
http://today.java.net/pub/a/today/2007/08/27/javamobility-podcast17.html
Friday, August 24, 2007
Password encryption in Derby 10.3
securityMechanism
property on the URL.See http://db.apache.org/derby/docs/dev/ref/rrefattribsecmech.html for more details.
English Cheddar in the Colonies!
Elizabeth:
The shop is Neal's Yard Dairy - the cheeses are locally produced English ones with the names of the farmers on them! Here's the website:
http://www.nealsyarddairy.co.uk/thecheeses.html#
David tried the Montgomery Cheddar, if you click the link you can see more pictures.
Me dear ol' Pa:
Not only that -- I went to the website and found that they retail in the USA via select fromageries. Voila! Montgomery cheddar!
http://www.bedfordcheeseshop.com/catalog/?id=33
Fake Steve and SUNW=>JAVA - Ouch!
http://fakesteve.blogspot.com/2007/08/more-big-changes-coming-at-sun.html
http://fakesteve.blogspot.com/2007/08/i-stand-corrected.html
PostgreSQL 8.3 is faster with sequential scans
http://www.commandprompt.com/blogs/joshua_drake/2007/08/postgresql_83_its_faster_really_it_is/
Top 25 responses to Sun’s JAVA move
Thursday, August 23, 2007
Russell Beattie - eBay has real problems
The RDBMS is dead. Long live the RDBMS!
What the heck is going on here? Why is everyone claiming the irrelevance or actual death of the RDBMS?
Alex's blog is one I don't fully understand, but then again, I don't think I fully understand his Resource-Oriented Architecture, and I've never used Ruby on Rails. I can't see how REST support in Ruby on Rails somehow gets rid of the need for an RDBMS.
But let's look at the other two. Both Nitin and Arnon are talking about the impact of scale. Nitin also talks about the impact of hierarchical organizations such as social networks that are very hard to translate to a relational model and still get good performance.
To be honest, I think the biggest challenge is scale. Web applications are attracting a user-base that is not just your own company's employees, but an ever-increasing vast sea of global consumers, millions and millions of them. If your web application is successful, you may need to hit levels of scale, reliability, scalability and availability that you never thought possible, and definitely far beyond what relational database vendors thought possible when these systems were first architected.
With this kind of scale, you have to try to eliminate every single point of contention and single point of failure in your system. You need to be able to distribute it across thousands of machines where every request can run independently and on any machine. And the problem is that the database is a big point of contention, because it implements transactional semantics, which thus require centralized locking and storage to disk, creating bottlenecks and slowing everything down.
So I agree with these authors that Web Scale is forcing us to do a major re-thinking of how and when to persist data, and ask questions about how important, really, are ACID semantics and normalized data? Where and when can I let go of atomicity, consistency, integrity and durability (ACID)?
This reminds me of what airlines do. You book a flight, and you have the impression that they have reserved you a seat on the plane. Well, they have, and they haven't. In their case they need to optimize for the fullest flight possible, and people are unpredictable. We commit to being there for the flight, but sometimes we don't show up or cancel at the last minute. So, they overbook. They take the risk that everybody or almost everybody shows up, and if necessary they do a compensating transaction (literally) by paying people to take another flight. This potential cost is worth it to them in the long run.
In the same way, you start making calculated risks because scalability and performance are so important. You risk some loss of data and use a "lazy cache" (at the disk level or above) that batches up writes rather writing to disk for every transaction. You use more relaxed modes of maintaining consistency with things like optimistic concurrency and compensating transactions. You let the client manage some of the durability by sending it a representation of the current state and let it ship that back to your for the next operation (this is the REST model).
Another issue of scaling is the fact that databases tend to be centralized, and this creates a bottleneck. Oracle RAC is clustered, but it can't scale to hundreds of nodes because it's busy managing locks and shipping data around.
The centralized bottlneck of an RDBMS can often be solved at the application level by partitioning your data across multiple databases. This is what eBay does - each request is keyed off of the user id and sent to the appropriate database/app server partition. But this does require a domain model where there is as close to zero data shared across requests. Otherwise you just end up duplicating the bottleneck at the application tier by shipping data between application servers. This is another way where the REST model of shipping relevant state back to the client comes in handy -- the client can provide all the context it needs for each request, and the server doesn't have to keep this stuff around (and potentially share it with another server in the cluster).
Finally, maybe not everything has to be stored in the relational model. Maybe you can get by with a key/value store like Berkeley DB. Or maybe you can just keep some of your data in a clustered in-memory hashtable like memcached or Gigaspaces[1]. If you can do this, it can give you some serious performance wins.
But does all this make the database "dead" or "irrelevant?" I don't think so, and I don't think these authors really think so either (well, I don't know about Alex). I think it's very very good to have something that will give you the ACID guarantees and the power of SQL when you need it. It's a sense of security and safety, like having a home to come back to with a warm fire and a cup of cocoa after having a wild old time on the town.
It just means we have to re-think any tendencies we may have that everything has to be completely correct and perfect and relational when dealing with our data. Sometimes sloppy but quick is the best way to go.
[1] Gigaspaces is actually a lot more than just an in-memory hashtable. Because they store objects, then you can keep your data and logic close together, and in almost all cases this allows you to process a request on a single machine. This can be a very big performance and scalability win.
Jersey (RI for Java REST JSR) will be made available as a Glassfish plugin
http://blogs.sun.com/japod/entry/jersey_will_soon_be_available
Wikipedia becomes Bureaucrapedia
http://www.roughtype.com/archives/2007/08/rise_of_the_wik.php
Java Kernel is Ready?
http://weblogs.java.net/blog/editors/archives/2007/08/nobody_told_me.html
There is no Web Operating System (or WebOS) (by Jeremy Zawodny)
Wednesday, August 22, 2007
Gastronomic delights in London
Our first stop was a great little tea shoppe where we had fruit scones with clotted cream and jam, little tea cakes, and incredible, delicious Earl Grey tea.
Then we wandered next door to a wonderful cheese shop, full of cheeses made by local British cheese "artisans." They had the infamous Stinking Bishop from Wallace and Gromit.
Henrik had me taste one of the cheddars. Wow! Incredible. Nice smooth fore-taste, and then an everlasting tingling sour/nutty after-taste. Never had anything like, nor do I expect to ever find anything like this in the USA.
I loved the atmosphere of the shop, with its full rounds of cheese and the "cheese waterfall" that kept the shop nice and moist.
Then, round the corner to a sweet little coffee shop. I really liked the communal wood table that people shared -- you just don't see that in the USA, and I wish we'd see more.
My cappucino was perfect, better than almost any I could find in the Bay Area, which is supposed to have pretty darn good coffee. There was also a hand-made chocolate truffle that was astonishingly good.
So if anyone says British food is bad, tasteless and dull, they should check out London these days. It is quite a change from some of my first visits to London, where the food was just ghastly. Elizabeth credits this to the EU, which allows for more cross-pollination from the Continent...
One last thing to notice: those little clips hanging below the table at the coffee shop.
What are those for? Obvious, says Elizabeth: to hang your purse from, so they won't get stolen. Now that's a cool idea...
Eep! -- Blogger in German from Heathrow
I finally found this blog by Amit Agarwal that says I have to remove my temp folder and then set my default language at http://www.blogger.com/language.g. Sheesh! It would be nice if this were documented, rather than me having to search for a blog to do it.
Monday, August 20, 2007
David Duffield's Workday ERP System Uses In-Memory DB and Metatags
http://www.roughtype.com/archives/2007/08/the_end_of_erp.php
Detecting the version of the Java VM you're in
Friday, August 17, 2007
Book Recommendation: Overcoming Jet Lag
I'm going to Prague next week for work, so I'm pulling out this great book that my ex-boss gave to me, called Overcoming Jet Lag.
It is based on research done by the government for travelling officials, and it has a very easy-to-follow program based on principles of the internal clock that they uncovered: light and dark, diet, caffeine, and activity. I've used it before for my trips to Norway, and they have really worked. Highly recommended.
Tips for migrating a MySQL database to Derby/Java DB
A very useful way to do this is through DDLUtils, a very nice utility that lets you export a database schema from one database and create it in another. Here is the MySQL page from DDLUtils.
But I also thought I'd share what looked like a very useful email from one person who did it. Note the interesting tips about non-standard JDBC that worked in MySQL but which Derby did not accept.
>If you don't mind - what were your top three pains when moving from
>MySQL to Derby?
Glad to, if it will be of any interest, although the problems were
probably a result of our* own inexperience and naivity.
1. We used DdlUtils to do the migration, did the conversion form
MySQL to xml ok, but then encountered errors on conversion to Derby.
These threw us initially because they related to primary keys not
being unique, but eventually we realized that this was because
MediumInt is only supported in MySQL and the conversion changed it to
a Small integer. I guess we should have inspected the xml schema more
carefully. I had consulted the page:
http://db.apache.org/ddlutils/databases/mysql.html
And my one suggestion here is that the conversion table on that page
should include the recasting of mediumint - presumably an oversight.
2. The other problems arose at runtime after apparent successful
conversion, and also arose from the non-standard nature of MySQL.
There were three aspects of the java code of my app that Derby took
exception to. One was a JDBC ResultSet method (first()) I had used in
a hack to check for empty tables. It turned out Derby didn't like
this and made me use some JDBC2 method for scrolling the table. It
also wouldn't allow a finally{} clause for closing a connection that
it already handled itself (easy enough to remove) and wouldn't allow
a faulty SQL query that MySQL had ignored (typo of GROUP instead of
ORDER - for the correction of which I thank it).
So the moral is perhaps that Derby is to MySQL as Java is to Perl -
it won't tolerate the sloppy habits you had become accustomed to. :-)
(Apologies to the Perl community)
An old neighbor ends up in Arbil, Iraq
Anyway, I thought I'd share his latest note.
Friday 1 PM
Hi everyone,
We work Sunday through Thursday so today is my day off and I slept in. It is approximately 112 degrees outside. I wanted to address the security issue. I’m getting some inquiries and people are wondering if I am in harm’s way.
Search the internet for a good map of Iraq and look at the top of the country. Kurdistan is sometimes confused with the "northern provinces" and the media continues to not distinguish between ethnic Kurdistan and the northern provinces. Mosul is violent and is up north, yes, but way east over near the Syrian border. Kirkuk is dangerous and there are lots of "incidence" down there and that is why we never entered the city. Even though the micro finance bank that I am consulting for operates there, no westerners in my parent organization enter the city. Everyone thinks that after the November election ( here ); Kirkuk will be ethnically cleansed and all the Arabs that Sadam moved in, will be kicked out…. or whatever. The Kurdish paramilitary is ready and they want the city back as well as the oil.
Anyway, Kurdistan is the three or four provinces that form a little icecap across the top of Iraq and border Turkey and Iran. The nasty genocide that occurred two days ago, for example, was outside of true Kurdistan but the area is obviously still populated by Kurds. The distinction is critical to understand, just because some bombs go off, and it is "up north" and some Kurds die, does not mean it is in Kurdistan. This may seem like trivia but I am depending on it. This city, Erbil, has a ten foot moat, or ditch, dug all the way around it to stop vehicles from entering cross terrain. The only way in is on the paved road, through multiple checkpoints guarded by the Kurd Army and the paramilitary. Voila ! No ethnic Arabs allowed. Period.
Nothing is perfect, and that is why I cannot leave the compound. It ( the compound ) is in a suburb of Erbil somewhere near the airport, and is occupied by a variation of religion that I am not sure of, I think there are Christians here or something. The suburb itself is surrounded by walls with watchtowers and guards. I live in a compound within the suburb that, as you already know, has blast walls, only one vehicle gate in and a different one out. The road to the gate has concrete diversions so an approaching car has to go really slow or it will crash. Everyone stops at the gate and the guards run a mirror under 360 degrees of the car, then the sniffer dog does it again. All supervised by Triple Canopy staff ( Google “Triple Canopy” and you can see the level of security that is provided to westerners ) No bombs allowed ! Worst case scenario is that somehow a person gets in past the gate and starts shooting up the place. They would last about one second. There are literally hundreds of armed people here including heavy duty westerners ( South African mercenaries ), not just the Kurds. Or, if someone drove close enough to the suburb, they could touch off some mortar rounds, but that would be so inaccurate that I don't even think of it.
Sorry for all the details, but information can cause relaxation, and that is what I am trying to convey. After all, there were drive by shootings almost every night on the commute path I took through north Oakland when I came back from the bank in Fremont. One of our friends was held up twice on the foot path between the BART station and his house in North Berkeley. So “safe” is a relative term.
It's noon and I am leaving the house to get lunch. Tonight I am hoping to get a security guy and go out of the compound for dinner. If not, then I will stay here, locked up like a caged rat. There is a big citadel about a mile away ( in the suburb ) and it old and famous. Maybe I can include that in my adventure if and when I can arrange an outing.
Best Regards to all
How to upgrade a Derby/Java DB database
Well, Derby is focused on ease of administration and embedded use, and this includes seriously painless upgrade.
There are two types of upgrade: soft upgrade and full upgrade.
With soft upgrade, you can use a new driver to work with a database created under a previous version, but older drivers will still be able to work with the database too -- the database itself is not upgraded to the newer version/format.
This is convenient if you want to just try things out, or if you have a mixed environment where some users are still using older versions of the driver.
The drawback of this approach is that if there are new features in the newer version that rely on a new database format or new system metadata, etc., then you can't take advantage of those new features. For example, Derby 10.3 has added features for security, SQL, and administration that won't work with an older database.
That is where full upgrade comes in.
You don't need to do anything crazy like export all your data, create a new database, and recreate your tables and load your data. All you have to do is set the "upgrade" property to "true" when you connect to the database.
There are two ways to do this. You can set it as a property directly in the URL, e.g
"jdbc:derby:travel;upgrade=true"or you can add it as a property when you get the connection, e.g.
One important caveat: if you have created a database with a non-GA version of Java DB you can not upgrade it. This is because there is no commitment to support upgrade from what is basically an experimental database. All this mean is, please don't deploy a production solution using Java DB with a beta version of Java DB.
String dbURL = "jdbc:derby:travel";
Properties connProps = new Properties();
connProps.put("upgrade", "true");
Connection conn = DriverManager.getConnection(dbURL, connProps);
Thursday, August 16, 2007
Larry Ellison: Open Source has no value in and of itself
Regarding future challenges, Ellison dismisses open source as a threat to Oracle.
"Open source is not something to be feared. Open source is something to be explained. Open source wins not because it's open and not because it's free. Open source wins only when it's better," he says.
To me this is another example of Oracle trying to address open source by dismissing it. Of course people only choose something because it is better. But Larry doesn't acknowledge that open source is inherently better because it is open and free.
When it is open, it allows for innovation. When it is open, it prevents you from getting locked into a single vendor. Both OEMs and customers trust it because it is not controlled by someone who may be a competitor either in business or politics. When it is free, it delivers significant price/performance benefits.
Larry goes on to say
the purchase price of software is only about 10 percent of the total cost of ownership of software. So even if the software is free, the most you can save is 10 percent off. Now the question is, what are your other costs of developing applications, of running applications on a daily basis, of dealing with problems when they occur? We think that Oracle is absolutely very competitive with open source
I think what Larry is saying here is that open source, if it is poor quality, gives you longer-term higher costs in terms of day-to-day maintenance. But I don't know if there is any data that shows that PostgreSQL or MySQL is not as stable or reliable as Oracle. And here again he is missing the value of open source: the community makes open source more reliable over time, because there are more eyeballs and more people making fixes. It's true for security, and it's true for quality.
My general feeling is, Larry is trying to pooh-pooh open source, because his customers are looking very closely at lower-cost and independent solutions. So Oracle's job is to dismiss and scare and keep their customers from taking open source databases seriously. But if I were Oracle, I'd be checking my rear-view mirror, because history has shown that open source goes where you never expect it would go: operating systems, applications servers, office suites, and, yes, enterprise databases.
Code For Freedom in India
From the site:
Sun Microsystems is happy to announce the Code For Freedom contest where students across India contribute to the technologies that are empowering the participation age. Participating in this contest will provide you with precious industry experience while still learning in college. And there is more. We in turn reward you for your valuable contribution in taking the first steps towards the open source movement.
For more information, see http://in.sun.com/communities/univ/codeforfreedom/
Happy 60th Independence Day for India
This week celebrates 60 years of independence for India. I have always, always been struck with the way that India obtained its independence. Here in America, we fought with gun and musket; in India, it was fought completely with non-violent means. As always, India is giving the world deep and profound teachings.
Many people complain about our jobs being taken to India. But I know for a fact that Indians have been a huge component of the technical revolution from the beginning. And I want to honor and thank all of the contributions from the great Indian community.
I also want to thank India for giving me personally a vast and deep ocean of wisdom from which I can draw. Great statements such as tat tvam asi ("Thou Art That") and chittam mantraha ("The mind is mantra") have been food for years of contemplation and practice.
And the Indian people - sweet, kind, patient, funny, hard-working, passionate, disciplined. I want to thank and honor all of my Indian friends and colleagues.
Happy Independence Day!
An Earth Without People -- an interview with Alan Weisman
NetBeans 6 will be dual-licensed with GPLv2+Classpath and CDDL
For more information, see the FAQ.
Cool Stuff with Sun's Cool Threads T2000 and PostgreSQL
Thanks to Max for pointing this out. Not only is the price/performance significantly better ($26 vs $113) with the T2000/PostgreSQL vs HP/Oracle, but the T2000 delivers 1 1/2 times higher performance per watt. I love the DB licensing cost of $0 for PostgreSQL.
Wednesday, August 15, 2007
Roumen's Wiki Rant
Alex Bunardzic » Resource Oriented Architecture
http://jooto.com/blog/index.php/category/resource-oriented-architecture/
Tuesday, August 14, 2007
java.net Forums : Please stop promoting new frameworks ...
http://forums.java.net/jive/thread.jspa?messageID=230579&tstart=0#230579
DamnHandy : » Where VMWare Fusion Shines Over Parallels Desktop
http://www.damnhandy.com/2007/08/13/where-vmware-fusion-shines-over-parallels-desktop/
Tim Bray prognosticates and navel gazes
http://www.tbray.org/ongoing/When/200x/2007/08/13/Prognostication
The Secret Diary of Steve Jobs: My lunch with Fester
http://fakesteve.blogspot.com/2007/08/my-lunch-with-fester.html
Monday, August 13, 2007
If you want to get scared, talk to scientists
I am a subscriber to Science News, and I always learn at least one new cool thing in each issue. The July 21 edition had an article where scientists have uncovered that England was separated from the rest of Europe by a single mega-flood when a huge lake from the melting ice of the last ice age burst its banks. Sorry, you have to be a subscriber to read this, but the New Scientist has a for-free article on this.
There are many examples of sudden massive geologic and ecological change like this. Another megaflood I learned about yesterday from my brother was the one from another ice-age lake bursting that carved out the Channeled Scablands in Washington. This flood came all the way from Montana.
Then there are the super-volcanos that cause mass extinctions and the comet and asteroid hits, including the one that eliminated dinosaurs.
Interesting, but so what, right?
Well, Pa was explaining what is happening with the Greenland Ice Sheet. This sheet is the last remnant of the last Ice Age, and in some areas is many miles deep. And it is melting very rapidly as the melting water lubricates the sheet where it grips the rock. Many of us know this, but what isn't talked about much (at least I couldn't find anything) is how quickly this could actually happen.
According to my father, it's possible that the Greenland Ice Sheet will literally slide off the rock like snow slides off a metal roof once it melts to a certain point, and that sea levels will rise 20 feet not in 100 or 500 years but in just a few years. Moving vast populations of our coastal cities 20 feet uphill in a matter of a few years: doesn't sound like fun.
It's uncomfortable hearing these things from a fairly cynical scientist. He also made me aware of methane hydrates and the methane cycle. Methane is actually a significantly more powerful greenhouse gas than carbon dioxide. And if the oceans get too warm, vast amounts of methane currently frozen up in methane hydrates may be released, increasing global warming and releasing more hydrates and and and...
In a great book called A Short History of Nearly Everything, I read that the situation where we have temperate zones and an ice sheet is a very very rare situation for Earth. It is much more common to have a very frozen planet (at one point it was completely frozen over) or a very hot planet with no ice. It would seem we are tipping a very wobbly seesaw over to a new point of stability, one which our race may not like very much.
Erlang, the next Smalltalk?
http://thanksforallthesnow.blogspot.com/2007/08/erlang-next-smalltalk.html
Nitin Borwankar: Data 2.0: How the Web disrupts our relational database world
http://future.gigaom.com/2007/08/10/data-20-how-the-web-disrupts-our-relational-database-world/
Data Visualization Doesn't Have To Be Boring
http://www.smashingmagazine.com/2007/08/02/data-visualization-modern-approaches
Thursday, August 09, 2007
BoingBoing: Virgin America's virgin flight
http://www.boingboing.net/2007/08/08/getting_high_with_ri.html
Erlang, the next Java?
Derby 10.3 is an official release
http://www.nabble.com/-RESULT---VOTE--10.3.1.4-release-tf4239820.html
Academics Waking Up to Wikipedia
http://opendotdotdot.blogspot.com/2007/08/academics-waking-up-to-wikipedia.html
What to Eat » Raw Milk or Raw Deal?
Wednesday, August 08, 2007
Hey, what happened to my auto-indent in NetBeans?
While walking my kid in the stroller this morning, I had a moment of illumination. When I came into work, I removed my userdir, and that fixed the problem. Magic!
Actually, removing your userdir seems to be the Magic Bullet for strange NetBeans behavior. NetBeans seems to be able to get its configuration repository mixed up from time to time, and then it starts having these little psychotic episodes like no longer indenting, or badging files that compile fine, and so on.
So, what is this "userdir" of which I speak? It's the "user directory" and it contains all the configuration environment for NetBeans for a given user. And where is this beast? Take a look at this FAQ for your answers (note that on a Mac the "About" page is not under "Help" but under the bold "NetBeans" menu on the far left).
Be aware that when you remove your userdir, you lose any configurations you have set up. You will have to re-register your app server, re-install any extra modules you installed, and so on. Perhaps there is a way to avoid this consequence, but I haven't spent the time to track it down.
Tuesday, August 07, 2007
Jonathan Schwartz's Weblog: Sun Enters the Commodity Silicon Business
http://blogs.sun.com/jonathan/entry/sun_enters_the_commodity_silicon
Global-Warming Deniers: A Well-Funded Machine - Newsweek
Earth2Tech : Sun’s Energy Efficient Chip
http://earth2tech.com/2007/08/07/suns-energy-efficient-chip/
More details on JSON support in JAXB
http://blogs.sun.com/japod/entry/json_entity_providers_in_jersey
Using JAXB to generate XML and JSON from a single HTTP method
They've been working on using JAXB to support both XML and JSON bindings.
Paul's recent checkin allows you to annotate a single method with JAXB annotations to support JSON and XML data formats as a response.
Which format is used depends upon the accept header of the HTTP request. If there is no accept header or it is set to
*
, application/*
or application/xml
then you get XML. If it's application/json
, then you get JSON.Here is an example from Paul's email:
@UriTemplate("/")
public class MyResource {
@HttpMethod
@ProduceMime({"application/xml", "application/json"})
public JAXBBean get() {
JAXBBean j = ...
return j;
}
}
Note that this is very in line with REST principles. The response is a representation of the state, and you can get different representations of that state for the same request, depending upon what the request asks for.
Pretty darn cool - great work, guys!
Monday, August 06, 2007
Open source study: Developer communities not enough for support
Friday, August 03, 2007
H2 Database supports PostgreSQL ODBC driver
http://www.theserverside.com/news/thread.tss?thread_id=46456
To niche or not to niche
http://www.redmonk.com/jgovernor/2007/08/03/on-blogging-no-niche-required/
Roumen does Dilbert for NetBeans
http://blogs.sun.com/roumen/entry/dilbert_plugin_for_netbeans
Ian Murdock and Marc Hamilton On Sun OS Strategy
Google Gears running on Windows CE powered devices
http://groups.google.com/group/google-gears/browse_thread/thread/ecd9aa97b2b47de7
Google Gears Object/Relational Mapping API
http://www.urielkatz.com/archive/detail/google-gears-orm-v01/
New Dojo Offline Release That Integrates With Google Gears
How to bind stored procedures to visual web components
Thursday, August 02, 2007
Google Uses Crowdsourcing To Create Maps In India
http://radar.oreilly.com/archives/2007/08/google_uses_cro.html
Stephen O'Grady on The Potential for Online Desktop
Cay Horstmann's not happy with The Java DB in JDK shell game
http://weblogs.java.net/blog/cayhorstmann/archive/2007/08/a_bundle_of_joy.html
Wednesday, August 01, 2007
Xerox invents super-green paper
Serious high tech on the new Virgin America planes
http://radar.oreilly.com/archives/2007/07/_virgin_america.html