Archive for May, 2009

TypingWeb Offers Free Typing Lessons [Keyboards]

Sunday, May 31st, 2009

Whether you're an able but slow touch typist, or you never graduated beyond hunting and pecking, TypingWeb is a free and easy to use online typing tutor that will help you hone your keyboard chops.

There is no registration necessary, you can dive right in and try out the basic lessons. Registering for an account lets you save your progress and other statistics. Along with a clean and easy to use interface, what sets TypingWeb apart from other free typing tutors is the ability to change the language and keyboard layout. Want to learn Dvorak without tearing your current keyboard apart? Learning to type on a keyboard other than an English QWERTY layout? Swap out the keyboard in the settings section.

TypingWeb is structured to take you from the home row all the way to efficiently using infrequent keys and key combination. There are also actually enjoyable typing games, unlike the lame typing games you may recall from grade school typing tutors. TypingWeb is free, but if you want to get rid of the ads, you can pay a one-time $9.99 fee to turn TypingWeb ad-free. Thanks Kratos!

TypingWeb


Digest authentication with Apache

Sunday, May 31st, 2009

This article is in continuation with previous and talks about setting up digest authentication with Apache.

There are few changes compared to the steps for Basic authentication.

1. Generating the password file for digest auth.

htdigest -c digest.txt secret prash

digest.txt is the password file, secret - the realm and prash is the username.

2. Create htaccess.acl under c:\wamp\www\digest-auth\ with following data

AuthUserFile C:\wamp\bin\apache\Apache2.2.11\bin\digest.txt
AuthName "Protected by Digest auth"
AuthType Digest
AuthDigestProvider file

<Limit GET POST>
require valid-user
</Limit>

‘AuthDigestProvider file’ is an additional property that needs to be mentioned for proper working of digest authentication.

3. And, last but not the least. Enable auth_digest_module by un-commenting the following line if its already commented in httpd.conf.

LoadModule auth_digest_module modules/mod_auth_digest.so

Reference : http://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html

Setting up HTTP Basic authentication with Apache

Sunday, May 31st, 2009

Last week, I had a chance to setup our test Apache server for Basic and Digest authentication. The setup was required to verify few of the HTTP authentication related test cases.

I’m blogging it here so that I’ll not forget, if I need it again :)

I had WAMP Server v2.0  which included Apache v2.2.11 web server.

Setting up Basic authentication was straight forward.

1. Update http.conf by adding :

AccessFileName htaccess.acl .htaccess

An htaccess file can be used to modify the Apache configuration on a per-directory basis.

On some operating systems ‘htaccess.acl’ is not required. Ex, on Linux, you can just mention it as .htaccess. This is because, on Linux you can create a file with name .htaccess.

2. Add “Directory” tag into http.conf as shown below :

<Directory "c:/wamp/www/basic-auth/">
    Options None
    AllowOverride all
    Order Deny,Allow
</Directory>

c:/wamp/www/basic-auth/ is the folder which needs to be secured by the authentication scheme which we are trying to impose.

3. Next step is to create password file.

cd C:\wamp\bin\apache\Apache2.2.11\bin
htpasswd -c pwd.txt prash

This prompts for the password for the username – ‘prash’. After supplying the password we will be ready with the password file – ‘pwd.txt’ under ‘C:\wamp\bin\apache\Apache2.2.11\bin’.

4. Create the htaccess file - ‘htaccess.acl’ file with the following data.

AuthUserFile C:\wamp\bin\apache\Apache2.2.11\bin\pwd.txt
AuthName "Protected"
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>

This specifies which password file need to be considered for the authentication – ‘C:/wamp/bin/apache/Apache2.2.11/bin/pwd.txt’ also the type of authentication scheme – Basic.

Place this file under the folder ‘c:/wamp/www/basic-auth/’ along with other live data and restart the server.

Now, try accessing the folder http://localhost/basic-auth. This should prompt for username and password.

Reference : http://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html

Build a $14 Video Camera Stabilizer [DIY]

Sunday, May 31st, 2009

Professional video stabilizers are prohibitively expensive. You won't get $10,000 worth of stabilization out of a $14 DIY model, but you will get radically smoother video for a tiny fraction of the price.

How does the DIY model provide smooth video? Instead of the complex arrangement of balancing mechanisms, resistance bands, and springs, the DIY stabilizer relies on a simpler system. Your arms and a counter weight at the bottom of the stabilizer work together to minimize the movement. Camera shake is radically reduced when the weight of the camera is offset by a equal or slightly heavier weight at the bottom. Sound about right for your needs? You'll need some pipe, a disc weight, some hand tools and a power drill to put this one together.

For photos and a step by step build guide, check out the PDF below. If you need to stabilize video in a car, check out how to make a dashboard stabilizer out of a sponge.

$14 Video Stabilizer [Make]



Build Your Own Outdoor Movie Theater [Weekend Project]

Saturday, May 30th, 2009

There's a certain allure to seeing a movie outside on a nice summer night, whether it's the nostalgia of drive-in movies or seasonal ambience. Recreate the experience with your own outdoor theater.

Dave Banks, writing for Wired's Geek Dad column, saw an outdoor theater system advertised in a catalog and immediately started dreaming of recreating the magic of those outdoor movie experiences. The price for the small projector, screen, and two speakers was a whopping $3,500. He shopped around online, priced out components individually, but ended up still priced over $2,000 to buy speakers, a comparable projector, and a collapsible screen. He wouldn't be worth his Geek Dad moniker if he didn't follow up his sticker shock with some creative DIY magic. The first order of business was to scrounge as many parts as he could:

My company had a projector that - with a little work - could be repurposed for an outdoor event (and it had nearly 1,000 more lumens than the piddly projector in the catalog). The speakers could be borrowed from an audiophile friend and I dusted off an old receiver to drive the sound. Finally, the dvd player was disconnected from the kitchen tv to contribute to the cause.

It wouldn't be an outdoor theater without an enormous screen however. The cheapest commercial screen at the size he wanted was over a grand. With some creative use of pvc piping, buckets, rope and cement, he built his own, shown in the picture above. The most important part, the screen material, only cost him $25. The total cost for the materials was $123 with an additional $125 spent on getting grommets and reinforcing stitches put in by a local awning company. Dave notes in hindsight that if he hadn't been racing towards a memorial day unveiling, he would have done the grommet and stitch work himself and cut the cost of the screen in half. For more pictures of the build and some tips and tricks he learned along the way, check out full article below.

How To Build Your Own Outdoor Movie Theatre [Wired]