Friday, March 12, 2010

easy capitalization in MSWORD

double click on a word to highlight it.  Shift+F3 capitalizes the first letter.  Shift+F3 again capitalizes the whole word.  Shift+F3 a third time lower cases the word.  Probably should make a macro for this in Intellij...

Monday, February 22, 2010

James Beard Semi-Finalists in Masachusetts

Below are the Massachusetts semi-finalists for this years James Beard Awards

I'm going to try to hit every one this year. I'm especially surprised that there are 2 such great restaurants on Nantucket. I'll come back and edit this post with reviews.
CHEFRESTAURANTCITY
Ana SortunOleanaCambridge
Will GilsonGarden at the CellarCambridge
Maura KilpatrickSofra Bakery and CafeCambridge
Richie BarronIl CapriccioWaltham
Dante de MagistrisIl CasaleBelmont
Gabriel Frasca and Amanda LydonStraight Wharf RestaurantNantucket
Steve JohnsonRendezvous in Central SquareCambridge
Michael LaScolaAmerican SeasonsNantucket
Michael LevitonLumièreWest Newton
Tony MawsCraigie on MainCambridge

Thursday, February 18, 2010

I read about Joseph Stack and his crashing a plane into an IRS building. I also read his manifesto. We're here.

This was a reprehensible act by a coward, striking at people who had nothing to do with his problems. Nothing out of this should be glorified nor used as an example. It's also an amazing trap for the conservative zealots. Just like you can't blame Israel or our Foreign policy for 9/11, you can't blame the government for this. As unfair as taxes are right now, it is not cause for murder.

I expect Glen Beck and Rush Limbaugh to reveal themselves as the anti-american dirtballs they are by implying that this was justified, and that there will be more.

I likewise expect anti-liberty professional politicians to blame this on the "Tea Baggers." They would be equally mistaken. People speaking out against the government is exactly the sort of thing that EASES tensions like this. It doesn't mean however that they won't try to curtail our liberties more as a response to this.

There is a contract between men that we call the rule of law. Without the rule of law -- without the guarantee of liberty and equality of opportunity -- there is no justice. There is certainly a time and place for civil disobedience, but the key word is civil.

I fear however, this is the spark to something really nasty, unless we all speak out. So here's my bit:

I think that government has gone astray, but I respect the constitution and the rule of law. We must reform the country, but we must do so peacefully, and within the rule of law. If we cannot do so without violence, then the system we think we are defending is gone, and there is nothing worth fighting for.

Wednesday, February 10, 2010

Did you ever wonder if you can have 2 servlets.xml files?

My new employer uses a machine generated servlets.xml. I'm not sure why someone thought that was a win, but whatever. My new part of the application is being rapidly developed and I didn't want to have to regen the servlets.xml file whever I added something, nor did I want to manually edit a file that says at the top "DO NOT EDIT BY HAND" (even though I did at first).

My solution was to add an entity to the web.xml

So

<!DOCTYPE web-app [

    <!ENTITY servlets SYSTEM "servlets.xml">

]>


Became

<!DOCTYPE web-app [

    <!ENTITY servlets SYSTEM "servlets.xml">

    <!ENTITY objectServlets SYSTEM "objectServlets.xml">

]>



And then futher into web.xml


&servlets;

became

&servlets;
&objectServlets;

And of course I made the objectServlets.xml file in the same dir and format as servlets.xml

Monday, November 09, 2009

Just a little note to help myself and anyone else with this problem. If you're trying to use Tomcat inside Intellij and you have the free version of AVG, you'll get a "port 8080 already in use" exception.

This is because AVG blocks applications from getting that port. Interestingly enough you CAN start tomcat from the command line (\bin\catalina.bat start).

The easiest fix is to change the server.xml file in \conf\server.xml and replace every instance of 8080 with 8000 (or some other port). Then in Intellij in your tomcat configuration, make the broswer start page be localhost:8000 and fire it up!

I posted this on the Jetbrains developer board too: http://www.jetbrains.net/devnet/thread/279387#279387

Wednesday, May 27, 2009

Gay, straight, black, white --
Marriage is a civil right.
Deny the few when you are many,
And when YOU need rights,
you won't have any.

Oppress the rich with your moral authority?
Welcome tyranny of the majority.

If the rich are forced to pay because the majority votes to tax them
Then any right can be lost if the majority decides to ax them.

Thursday, December 04, 2008

After determining the Big-12 championship game participants the BCS
computers were put to work on other major contests and today the BCS
declared Germany to be the winner of World War II.

"Germany put together an incredible number of victories beginning with
the annexation of Austria and the Sudetenland and continuing on into
conference play with defeats of Poland, France, Norway, Sweden, Denmark,
Belgium and the Netherlands. Their only losses came against the US and
Russia; however considering their entire body of work--including an
incredibly tough Strength of Schedule--our computers deemed them worthy
of the #1 ranking."

Questioned about the #4 ranking of the United States the BCS
commissioner stated "The US only had two major victories--Japan and
Germany. The computer models, unlike humans, aren't influenced by
head-to-head contests--they consider each contest to be only a single,
equally-weighted event."

German Chancellor Adolph Hitler said "Yes, we lost to the US; but we
defeated #2 ranked France in only 6 weeks." Herr Hitler has been
criticized for seeking dramatic victories to earn 'style points' to
enhance Germany's rankings. Hitler protested "Our contest with Poland
was in doubt until the final day and the conditions in Norway were
incredibly challenging and demanded the application of additional
forces."

The French ranking has also come under scrutiny. The BCS commented "
France had a single loss against Germany and following a preseason #1
ranking they only fell to #2."
Japan was ranked #3 with victories including Manchuria, Borneo and the
Philippines.