Tuesday, January 31, 2006
Vincenzo Caselli's weblog
EXPLORING PAGE, REQUEST AND SESSION ATTRIBUTES
In order to print all the attribute names and values belonging to
page, request and session scopes insert the following code into your
JSP page:
http://jroller.com/trackback/caselli/Weblog/exploring_page_request_and_session
In order to print all the attribute names and values belonging to
page, request and session scopes insert the following code into your
JSP page:
http://jroller.com/trackback/caselli/Weblog/exploring_page_request_and_session
Incremental Find in Eclipse - Shane Bell
Incremental Find in Eclipse - Shane Bell
TUESDAY, JANUARY 31, 2006
INCREMENTAL FIND IN ECLIPSE
Those of you who use will be familar with it's fantastic
incremental find feature. Just hit / and start typing your search
term and Firefox will search for it as you type.
It's one of those features that after a while you just can't live
without. On the rare occasions that I'm forced to use IE, I'm always
disappointed when I have to revert to the old Ctrl-f find.
So you can imagine my joy when I discovered that has this same
feature. It's been there all along, I just never knew.
While you're editing a file, just hit Ctrl-j to enter the incremental
find mode (you should see "Incremental Find" in the status bar if all
is well). Then just type the text you're looking for and Eclipse will
jump to the first instance of that text. Ctrl-k will find the next
match, and Esc will get you out of incremental find mode.
Add that one to your bag of tricks and you'll save yourself 20
minutes a day :)
TUESDAY, JANUARY 31, 2006
INCREMENTAL FIND IN ECLIPSE
Those of you who use will be familar with it's fantastic
incremental find feature. Just hit / and start typing your search
term and Firefox will search for it as you type.
It's one of those features that after a while you just can't live
without. On the rare occasions that I'm forced to use IE, I'm always
disappointed when I have to revert to the old Ctrl-f find.
So you can imagine my joy when I discovered that has this same
feature. It's been there all along, I just never knew.
While you're editing a file, just hit Ctrl-j to enter the incremental
find mode (you should see "Incremental Find" in the status bar if all
is well). Then just type the text you're looking for and Eclipse will
jump to the first instance of that text. Ctrl-k will find the next
match, and Esc will get you out of incremental find mode.
Add that one to your bag of tricks and you'll save yourself 20
minutes a day :)
How MAPI Beat VIM (an historical footnote)
How MAPI Beat VIM (an historical footnote): "In a post on ZDNet today, David Berlind points out that Microsoft’s grip on the desktop market is due not only to the Office Suite but also to MAPI. MAPI? You ask if you’re not a messaging nerd. Yup, MAPI – Messaging Application Program Interface. David is kind enough to ask “Tom Evslin where are you?” when he first mentions MAPI (and then even kind enough to point to this blog in answer to his question). So I thought I’d also answer another question for history buffs: how Microsoft fought back a coalition of Lotus, Apple, Borland, IBM, MCI, Novell, Oracle and WordPerfect who were pushing VIM (Vendor Independent Messaging), won the messaging API war, and, partly because of this victory, overtook Lotus, which offered Notes at the high end and cc:Mail at the low end, to become the world leader in messaging. I was running the Microsoft Mail group when we developed MAPI and defeated VIM. So you can blame me (partly) if you hate your Exchange Server or your Outlook client. Just as a refresher, APIs are the interfaces by which one program tells another one what to do. A good set of APIs turn a product into a PLATFORM. Other developers write and MARKET their own products which use the platform. Platforms (like Microsoft Exchang"
Face Time and Free Stuff
Face Time and Free Stuff: "Business has been booming for my little custom software company. We're not ready to take over the world or release a product just yet, but things are doing OK. I'm happy. And I've been pondering the means by which I've managed to grow the business. Sometimes it all seems like a happy accident. But after a talk with a good friend and colleague, I think I understand what has happened. How does any business get customers? By advertising? Nobody pays attention to that anymore. By clever PR? Sure, there's always the odd person who will hire you because he saw that newspaper article about how you donated 100 hours of your time to build a website that takes donations to help cure those poor kids in the oncology ward of the local hospital. But as I talk to other solo and small businesspeople, an interesting trend reveals itself: the #1 way small firms get business is by utilizing Face Time and Free Stuff. I can hear you already - 'Wha-a-a-a-t?' Just bear with me for a moment. People like to do business with their friends. Period. Finito. End of story. Go out and ask 100 prospects if they'd rather do business with SuperMegaJumboCorp or with their poker buddy Bob. Go ahead, ask them. I guarantee you that if Bob is even remotely competent at doing what SuperMegaJumboCorp does, 100% of the time, the prospect will choose Bob. Yes, he co"
The QA mindset
The QA mindset: "I was interviewing a woman for a QA position, and asked her why she liked QA. She said, Where else can you get paid to complain?"
Monday, January 30, 2006
Hamas, Palestine, and the Economics of Democracy--Posner
Hamas, Palestine, and the Economics of Democracy--Posner: "President Bush has suggested that spreading democracy is the surest antidote to Islamist terrorism. He can draw on a literature that finds that democracies very rarely go to war with each other, although a conspicuous exception is the U.S. Civil War, since both the Union and the Confederacy were democracies. Hamas, which has just won a majority in the parliament of the Palestinian proto-state, is a political party that has an armed terrorist wing and is pledged to the destruction of Israel. Can that surprising outcome of what appears to have been a genuinely free election be squared with the belief that democracy is the best antidote to war and terrorism? The first thing to note is that one democratic election is not the equivalent of democracy. When Hitler in 1933 was asked by President Hindenburg to form a government, the processes of democracy appeared to be working. The Nazi Party was the largest party in the Reichstag; it was natural to invite its leader to form a government. Within months, Germany was a dictatorship. So the fact that Hamas has won power fairly and squarely does not necessarily portend the continuation of Palestinian democracy. But suppose Palestine remains democratic. What can we look forward to? I don't think the question is answerable if democracy is analyzed realistically. The great economis"
Disrupting the Venture Capital Industry
Disrupting the Venture Capital Industry: "All venture capitalists (VCs) SAY that they like to invest in disruptive technology; some VCs (the best ones) actually do invest in disruptive technologies. So it is certainly a fair and relevant question to ask whether new technology or other changes will disrupt the venture capital industry. And, fair and relevant or not, the discussion has broken out all over the blogosphere. [Note: This post and the ones I quote below are only about venture capital as applied to Internet and software technology; other industries have very different capital needs.] Vastly oversimplified To oversimplify what he is saying, VC Rick Segal blogs that a VC used to provide both a Rolodex full of contacts which the entrepreneur himself or herself doesn’t have but badly needs and the boatload of cash required to execute on an idea. Now, Rick says, the blogosphere is the Rolodex through which customers, supporters, and investors can be mobilized and new technology including free and software and services for almost any purpose as well as very cheap hardware often reduce the money required to what an entrepreneur can float on her or his credit card. Rick says his own daughters have business ideas which they don’t seem to need him to fund. He interprets this as a wakeup call. Chronologically in betw"
Disrupting the Venture Capital Industry
Disrupting the Venture Capital Industry: "All venture capitalists (VCs) SAY that they like to invest in disruptive technology; some VCs (the best ones) actually do invest in disruptive technologies. So it is certainly a fair and relevant question to ask whether new technology or other changes will disrupt the venture capital industry. And, fair and relevant or not, the discussion has broken out all over the blogosphere. [Note: This post and the ones I quote below are only about venture capital as applied to Internet and software technology; other industries have very different capital needs.] Vastly oversimplified To oversimplify what he is saying, VC Rick Segal blogs that a VC used to provide both a Rolodex full of contacts which the entrepreneur himself or herself doesn’t have but badly needs and the boatload of cash required to execute on an idea. Now, Rick says, the blogosphere is the Rolodex through which customers, supporters, and investors can be mobilized and new technology including free and software and services for almost any purpose as well as very cheap hardware often reduce the money required to what an entrepreneur can float on her or his credit card. Rick says his own daughters have business ideas which they don’t seem to need him to fund. He interprets this as a wakeup call. Chronologically in betw"
Sunday, January 29, 2006
Of Dogfood and Soda Police
Of Dogfood and Soda Police: "I encountered an interesting news article today. It seems that one Ford plant has decided to force employees to drive a Ford or be barred from the plant's parking lot rather than being allowed to park in the facility's parking lot. In the software industry, the phrase 'eating your own dogfood' means that you actually use the products you develop. In general, this is a good thing; it leads to higher levels of quality and a deeper understanding of the user experience. But I think Ford is taking it much, much too far. We're not talking about using Ford products at work for the sake of understanding the user experience; we're now talking about Ford penalizing employees for what they purchase with their personal money, on personal time. That's nuts. I am reminded of a story I was recently told by an acquaintance about the HR department at his work. The HR staffers would actually search the refrigerator and employee's lunches to make sure nobody had brought in any Mountain Dew from home. Why? Because the company had struck a deal with a Mountain Dew vendor to provide vending service to their office building at reduced cost on the condition that anyone who consumed Mountain Dew in the building would ONLY consume Mountain Dew that came from the actual Mountain Dew machines. So, the Soda Police from HR would check cubicles and lunch bags and refrigerato"
Of Dogfood and Soda Police
Of Dogfood and Soda Police: "I encountered an interesting news article today. It seems that one Ford plant has decided to force employees to drive a Ford or be barred from the plant's parking lot rather than being allowed to park in the facility's parking lot. In the software industry, the phrase 'eating your own dogfood' means that you actually use the products you develop. In general, this is a good thing; it leads to higher levels of quality and a deeper understanding of the user experience. But I think Ford is taking it much, much too far. We're not talking about using Ford products at work for the sake of understanding the user experience; we're now talking about Ford penalizing employees for what they purchase with their personal money, on personal time. That's nuts. I am reminded of a story I was recently told by an acquaintance about the HR department at his work. The HR staffers would actually search the refrigerator and employee's lunches to make sure nobody had brought in any Mountain Dew from home. Why? Because the company had struck a deal with a Mountain Dew vendor to provide vending service to their office building at reduced cost on the condition that anyone who consumed Mountain Dew in the building would ONLY consume Mountain Dew that came from the actual Mountain Dew machines. So, the Soda Police from HR would check cubicles and lunch bags and refrigerato"
Comic for 29 Jan 2006
Shay Telfer: Star Trek scenes we’d like to see…
Shay Telfer: Star Trek scenes we’d like to see…: "“Computer, set my default preferences for ‘Tea’ to Tea, Earl Grey, Hot”. “Acknowledged”. “Computer, Tea”"
User Is A Four Letter Word
User Is A Four Letter Word: "The term 'user' is not just a pronoun, it is a powerful buzzword that pervades the software development literature, to both good and bad effect. On the up side, the development community has been made aware of the dominating role that end user experience plays in determining the success or failure of many projects. On the down side, the message of the importance of user feedback to the development process has been adopted by some with uncritical fervor. In their efforts to be 'user focused', guided by simplistic notions of 'usability', many managers and programmers uncritically accept whatever users tell them as a mandate. 'The customer is always right' makes a nice slogan but a poor substitute for critical thought. If you want to deliver a product that is genuinely useful, it is important to moderate the user feedback you receive with your own knowledge of usability principles, and to seek independent confirmation of the information they relate. For it is a fact seldom acknowledged in the text books that users are frequently uninformed, mistaken or deliberately deceptive. User Fraud There are two types of fraud - the deliberate fraud and the pious fraud. Both make false statements; the former knowing that they are false, the latter believing them to be true. The user community contains both types. Suppose you are writing a system that "
CD DRM: Compatibility and Software Updates
CD DRM: Compatibility and Software Updates: "Alex and I are working on an academic paper, “Lessons from the Sony CD DRM Episode”, which will analyze several not-yet-discussed aspects of the XCP and MediaMax CD copy protection technologies, and will try to put the Sony CD episode in context and draw lessons for the future. We’ll post the complete paper here next week. Until then, we’ll post drafts of a few sections here. We have two reasons for this: we hope the postings will be interesting in themselves, and we hope your comments will help us improve the paper. Today’s section will be (in the final paper) the last part of the technical core of the paper. Readers of the final paper will have seen the rest of our technical analysis by this point. Blog readers haven’t seen it all yet — stay tuned. Please note that this is a draft and should not be formally quoted or cited. The final version of our entire paper will be posted here when it is ready. Compatibility and Software Updates Compared to other media on which software is distributed, compact discs have a very long life. Many compact discs will still be inserted into computers and other players twenty years or more after they are first bought. If a particular version of (say) active protection software is burned onto a new CD, that software version may well try to install and run i"
CD DRM: Compatibility and Software Updates
CD DRM: Compatibility and Software Updates: "Alex and I are working on an academic paper, “Lessons from the Sony CD DRM Episode”, which will analyze several not-yet-discussed aspects of the XCP and MediaMax CD copy protection technologies, and will try to put the Sony CD episode in context and draw lessons for the future. We’ll post the complete paper here next week. Until then, we’ll post drafts of a few sections here. We have two reasons for this: we hope the postings will be interesting in themselves, and we hope your comments will help us improve the paper. Today’s section will be (in the final paper) the last part of the technical core of the paper. Readers of the final paper will have seen the rest of our technical analysis by this point. Blog readers haven’t seen it all yet — stay tuned. Please note that this is a draft and should not be formally quoted or cited. The final version of our entire paper will be posted here when it is ready. Compatibility and Software Updates Compared to other media on which software is distributed, compact discs have a very long life. Many compact discs will still be inserted into computers and other players twenty years or more after they are first bought. If a particular version of (say) active protection software is burned onto a new CD, that software version may well try to install and run i"
I Thought Democracy was the Answer
I Thought Democracy was the Answer: "Sometimes I've seen the U.S. media take the simplistic view that 'democracy' is the answer to all of a country's problems. I often chuckle to myself when I notice that in many cases the term 'democracy' when used by the American press is really a euphemism for an American friendly government and way of life. This is one of the reasons why I am unsurprised by the inherent contradiction in stories like Bush Says U.S. Won't Deal With Hamas which is excerpted below Stunned by Hamas' decisive election victory, President Bush said Thursday the United States will not deal with the militant Palestinian group as long as it seeks Israel's destruction. 'If your platform is the destruction of Israel it means you're not a partner in peace,' the president said. 'And we're interested in peace.' He urged Hamas to reverse course. Hamas has taken responsibility for dozens of suicide attacks on Israel over the past five years but has largely observed a cease-fire since the election of Fatah leader Mahmoud Abbas as Palestinian president last year. Bush left open the possibility of cutting off U.S. aid to the Palestinians. He called on Abbas, a U.S. ally, to remain in office despite Fatah's defeat by Hamas in parliamentary elections. Abbas, elected separately a year ago, said he was committed to negotiations with I"
Thursday, January 26, 2006
Deindustrialization
Deindustrialization: "There's one aspect of yesterday's manufacturing output figures (pdf) that hasn't received attention - they confirm that output has stagnated for years. Since Q2 1974 (admittedly a cyclical peak), manufacturing output has grown just 9.3%. That's 0.3% a year.You might think this is normal deindustrialization. Manufacturing is best done in low-wage wage countries. However, UK output has lagged way behind other high-wage economies. Here are some comparative growth rates in industrial production (which include output by utilities and oil companies) since Q2 1974:UK = 30.7%.France = 39.0%Italy = 43.8%Japan = 84.9%US = 141%.The UK's disadvantage isn't merely a quirk of the time period. Even over the last 10 years, output has grown more slowly in the UK than, say, France.You can see why European governments don't appreciate lectures from Blair on the merits of Anglo-Saxon capitalism; in terms of industrial growth, the success of Anglo-Saxon economies is a US story, not a UK one.Why has the UK lagged behind? That's a long story. Years ago, one manufacturer put it this way: 'I don't know why we've lost so much market share over the last 30 years. I mean, we're making the same things now we were then.' "
Google HTML Analysis
Google HTML Analysis: " Google Code: Web Authoring Statistics: Google parsed a billion Web pages and pulled some stats out of the HTML. We can now add to this data. In December 2005 we did an analysis of a sample of slightly over a billion documents, extracting information about popular class names, elements, attributes, and related metadata. The results we found are available below. We hope this is of use! Some random notes: The most common META tags specified: keywords description robots generator (thanks, FrontPage) author The BODY tag is a huge repository of non-CSS badness (bgcolor, margin, link, etc.) Very few people put an “id” on the BODY tag. I do this for pages that directly relate to an identifiable object in the system, so that I can make per-object CSS changes, if necessary (having ‘id=”object_232”’ on your BODY tag is handy like you wouldn’t believe). Very few people use COLGROUP. People should use it more. Most popular class names for elements: footer menu title small text Google notes that these class names map “very well to the elements being proposed in HTML5.” They single out GoLive for crappy HTML: GoLive’s footprints are all over the Web. A scary number of pages use , not "