August 17, 2010

Netbeans 6.9 and Scala 2.8 Final

The Scala 2.8 plugin for Netbeans 6.9 is out as of about a month ago, but the NetBeans wiki entry for Scala hasn’t been updated. To get 6.9 up and running with Scala, download the plugin from the ErlyBird project on Sourceforge (I went with nb-scala-6.9v1.1.0.zip) and do the same thing you’d do to install the old plugin on 6.8.

Essentially the steps are:

  1. Install Scala 2.8 (get it here)
  2. Set the SCALA_HOME environment variable to point to the installed Scala path. Add $SCALA_HOME/bin to PATH
  3. Install NetBeans 6.9
  4. Unzip the Scala plugin (link above)
  5. Open Netbeans, goto Tools -> Plugins -> Downloaded tab, click Add Plugins, browse to the unzipped Scala plugin, select all files, install them.
February 27, 2008

Attended My First Boston Meetup

Last night I attended the Boston Web-Based Business Startup Group, an informal Meetup.com event. About 11 people showed up, and the format was a roundtable discussion. We each took 10 minutes to explain what we do and bounce questions off the group. It was both informative and a good reality check.

I attended the meetup with the two guys from Pandemic Labs, a viral marketing startup, whom I met them through Henry. They turned out to be quite a hit at the meetup due to everyone’s curiosity about what they do and how it might help them.

With this event past me, there are numerous others that I plan on attending. At the meetup, Dale from Lead Gather informed me that The Web Innovators Group attracts a good crowd. The guys at Pandemic told me about the Massachusetts Innovation and Technology Exchange. MITX is a more formal organization with membership dues, but it sounds very promising. Lastly, I want to attend workshops and free counseling sessions offered by SCORE Boston.

February 4, 2008

The Challenge Is Motivation, Focus, and Effort

I should probably give an update on what I’m up to. I have not yet done so on my blog, and since this is my blog, it’s only appropriate that I at least explain something.

In January of 2008, I left my job at Microsoft to start a software company with Henry Cipolla, a classmate from my days at Boston University and also an ex-Microsoft employee. What we aim to develop is mostly a secret for now, but it will be on the web, and it will be targeted at consumers. It will rely on the wealth of social information hitting the web, and it will hopefully profoundly impact the lives of my family, friends, colleagues, and everyone else. Read the rest of this entry »

January 22, 2008

WordPress and .htaccess Password Protected Directories

I tried to make a password protected directory using a .htaccess file earlier today and found out that the root WordPress .htaccess file causes a little trouble.

The situation looks something like:

  • /
    • .htaccess <- From WordPress
  • /ProtectedDir
    • .htaccess <- My file

As of WordPress 2.3.2, its .htaccess file looks like this:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

This lives at the base of WordPress install, which for me happens to be the root of my web site. The rewrite rule throws any URL that leads to a non-existent file to WordPress’ index.php. This lets WordPress do search engine friendly URLs and custom 404 handling.

The problem here is subtle. In order to do password authentication, the web server needs to serve up a “401 Unauthorized” header and optionally an error document. My server defaults to a specific error document path, but I have not created a document at that path. However, Apache still passes the predefined 401 document path through the rewrite rules in an attempt to use it. Since it doesn’t exist, the request gets snagged by the WordPress rewrite rules and index.php. The end result is that what should have been a 401 page now turns into a 404 and you can’t authenticate to the directory.

The solution is simple: override the non-existent, predefined error document path using the ErrorDocument directive in either of the .htaccess files mentioned above.

You have several options. You can either use Apache’s default hard-coded string for the error document by specifying:

ErrorDocument 401 default

Or you can use your own hard-coded error string:

ErrorDocument 401 "Unauthorized access"

Or you can create a 401 document and point the server to it like so:

ErrorDocument 401 /401.html

Pick one of those methods and your password authentication should work. Remember, the error document file must exist if you pick the last method.

Note that the same problem can occur with other HTTP error codes, so be on the lookout for other situations where WordPress might bite you.

Updated Jan. 27 thanks to a suggestion made in this web forum post.

January 9, 2008

Physics in Flash

Coincidentally, Adi and I were just talking about physics engines in Silverlight the other day, then I spotted these two posts on Reddit about physics engines in Flash:

  1. xavierenigma’s next physics game – This one incorporates objects with hard joints, but has no other features yet.
  2. Flash Doodle - Includes anchor points, bubbles with upward force, squishy lines, loose lines (rope). Lacks hard joints. 
November 16, 2007

Statistics about Americans

Time Magazine has an interactive representation of some statistics about Americans on their web site. How much do we drink? How much free time do we have? How happy are we on the job? How much time do we spend commuting? These are some of the stats they show. I particularly like the ”City Population Shift” tab on the Commute map. It shows you how people shift in and out of major cities during the day/night cycles.

Also, as an interesting aside, I managed to find a draft version of this piece. It looks like Time forgot to remove it. Check out the broken version here.

November 15, 2007

Giving Stuff Away on the Internet by Scott Adams

I found an article on the Wall Street Journal’s web page titled “Giving Stuff Away on the Internet.” It’s written by Scott Adams, creator of the Dilbert comics. The arcticle is a well written piece about problems Adams faced “giving stuff away” for free on his blog and web sites, especially where it concerns his non-Dilbert work.

November 13, 2007

One of My Pet Peeves: Blurring Sensitive Information

When I’m browsing the web, occasionally I’ll happen upon an image where a portion is blurred or pixelated to block sensitive information such as a number. This irks me to no end, because as this article by Dheera Venkatraman demonstrates, blurring can be cracked in the same way one might crack a weak password, with a dictionary attack.

Why would someone blur an alphanumeric string when they could just as easily erase or cover it altogether? This is a classic example of having good intentions but making poor choices. I can understand a blurred face, but something as easily cracked as short numbers… you can do better Internet. Dheera sums it up much more eloquently than I can:

“Remember, you want to leave your visitors with NO information, not blurred information.”

November 9, 2007

Cross Country Trip a Success

Finished the trip at about 9pm eastern time today, making for a total travel time of four and a half days. I’ll post some pictures soon along with links to travel logs on the Pansy Patrol web site courtesy of Henry and Clint (whom I traveled with on the trip).

November 5, 2007

Starting My Cross Country Trip

I’m off on my cross country trip going from Seattle to Boston. The trip should take me five to six days, and I’m doing it with two friends and four vehicles between us. I’ll try and snap some pictures along the way.