Taser

Wanna see someone get hit with a taser?

The World's Largest Spider

http://www.youtube.com/watch?v=3DsaXfNgQZ4

Weightless Dog

http://www.youtube.com/watch?v=WfGMOvPzrvE
Via

Do gamers make better surgeons?

Via Reason, originally reported in the LA Times

Doctors who reported having played video games at least three hours a week sometime in their past worked 27% faster and made 37% fewer errors on the surgical tasks compared with those who had never picked up a game controller, according to the study in the Archives of Surgery…

The research looked at 33 surgeons attending a course on laparoscopic surgery and found that their game-playing skill was a better predictor of success on the surgical tests than years of medical practice or number of surgeries performed.

GEEK: How to install Firewatir on Intel Mac OS X Tiger

[EDIT: This is outdated! Go here for an updated tutorial. ]

Firewatir is the Firefox version of Watir, which is a web application testing framework that uses ruby to drive Internet Explorer to run automated test scripts. Both Watir and Firewatir are developed natively on Windows–this is an incomplete, rough draft of my attempts to get it running on Mac OS X

About my setup:

Firefox 2.0.0.2
Mac OS X 10.4.8 (Intel)
XCode 2.4.1

* Download and install Firefox.

* Install the jssh extension. You can find it here:

http://people.mozilla.org/~davel/jssh/jssh-20060622-Darwin.xpi

To install it, double-click on the link above.

* Start Firefox manually with the jssh extension as follows:

$ cd /Applications/Firefox.app/Contents/MacOS

$ ./firefox -jssh &

* If the jssh installation works, you should be able to telnet to port 9997:

$ telnet localhost 9997
Trying ::1…
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1…
Connected to localhost.
Escape character is '^]'.
Welcome to the Mozilla JavaScript Shell!

* Install the firewatir gem. You can find the gem here:

http://code.google.com/p/firewatir/downloads/list

Once you've downloaded it, cd to the download directory and install as follows:

$ cd ~/Desktop
$ sudo gem install –local firewatir-1.0.1-mswin32.gem

You should see:

Password:
Successfully installed firewatir, version 1.0.1
Installing ri documentation for firewatir-1.0.1-mswin32…
Installing RDoc documentation for firewatir-1.0.1-mswin32…

* To test that the unittests have run successfully, go to the unit tests directory in the firewatir gem install. Run “ruby mozilla_all_tests.rb” to run the unit test cases.

$ ruby mozilla_all_tests.rb
Loaded suite mozilla_all_tests
Started

[At this point, the script just hangs and does nothing until you interrupt it. I tried to run it with ruby-debug, by adding the following line to setup.rb:

require 'ruby-debug'
debugger

However, when I ran it again, I got the following error:

crasch2:/usr/local/lib/ruby/gems/1.8/gems/firewatir-1.0.1-mswin32/unittests crasch$ ruby mozilla_all_tests.rb
dyld: NSLinkModule() error
dyld: Symbol not found: _rl_filename_completion_function
Referenced from: /usr/local/lib/ruby/1.8/i686-darwin8.8.1/readline.bundle
Expected in: flat namespace

Trace/BPT trap

A search for the error message suggests that there is a problem with my readline installation. Readline is installed on my machine via ports:

$ port installed
The following ports are currently installed:
...
readline @5.1.004_0 (active)
...

Next I tried to rebuild readline per the instructions on this page:

http://www.nabble.com/Ruby-1.8.4-Mac-OS-X-readline-problems-t801880.html

$ curl -O ftp://ftp.gnu.org/gnu/readline/readline-5.1.tar.gz
$ tar -xzf readline-5.1.tar.gz
$ cd readline-5.1
$ ./configure --prefix=/usr/local
$ make
$ sudo make install

Configuration and compilation seemed to go okay. However, the "sudo make install" output resulted in the following:

/bin/sh ./support/mkinstalldirs /usr/local/include \
        /usr/local/include/readline /usr/local/lib \
        /usr/local/info /usr/local/man/man3
for f in readline.h chardefs.h keymaps.h history.h tilde.h rlstdc.h rlconf.h rltypedefs.h; do \
        /usr/bin/install -c -m 644 ./$f /usr/local/include/readline ; \
done
( if test -d doc ; then \
        cd doc && \
        make  infodir=/usr/local/info DESTDIR= install; \
  fi )
/bin/sh ../support/mkdirs /usr/local/info /usr/local/man/man3
if test -n "" ; then \
        /bin/sh ../support/mkdirs  ; \
fi
if test -f readline.info; then \
        /usr/bin/install -c -m 644 readline.info /usr/local/info/readline.info; \
else \
        /usr/bin/install -c -m 644 ./readline.info /usr/local/info/readline.info; \
fi
if test -f rluserman.info; then \
        /usr/bin/install -c -m 644 rluserman.info /usr/local/info/rluserman.info; \
else \
        /usr/bin/install -c -m 644 ./rluserman.info /usr/local/info/rluserman.info; \
fi
if test -f history.info; then \
        /usr/bin/install -c -m 644 history.info /usr/local/info/history.info; \
else \
        /usr/bin/install -c -m 644 ./history.info /usr/local/info/history.info; \
fi
if /bin/sh -c 'install-info --version' >/dev/null 2>&1; then \
        install-info --dir-file=/usr/local/info/dir \
                /usr/local/info/readline.info ; \
        install-info --dir-file=/usr/local/info/dir \
                /usr/local/info/history.info ; \
        install-info --dir-file=/usr/local/info/dir \
                /usr/local/info/rluserman.info ; \
else true; fi
/usr/bin/install -c -m 644 ./readline.3 /usr/local/man/man3/readline.3
/usr/bin/install -c -m 644 ./history.3 /usr/local/man/man3/history.3
if test -n "" ; then \
        if test -f readline.html; then \
                /usr/bin/install -c -m 644 readline.html /readline.html; \
        else \
                /usr/bin/install -c -m 644 ./readline.html /readline.html; \
        fi ; \
        if test -f history.html; then \
                /usr/bin/install -c -m 644 history.html /history.html; \
        else \
                /usr/bin/install -c -m 644 ./history.html /history.html; \
        fi ; \
        if test -f rluserman.html; then \
                /usr/bin/install -c -m 644 rluserman.html /rluserman.html; \
        else \
                /usr/bin/install -c -m 644 ./rluserman.html /rluserman.html; \
        fi ; \
fi
mv /usr/local/lib/libreadline.a /usr/local/lib/libreadline.old
/usr/bin/install -c -m 644 libreadline.a /usr/local/lib/libreadline.a
test -n "ranlib" && ranlib /usr/local/lib/libreadline.a
mv /usr/local/lib/libhistory.a /usr/local/lib/libhistory.old
/usr/bin/install -c -m 644 libhistory.a /usr/local/lib/libhistory.a
test -n "ranlib" && ranlib /usr/local/lib/libhistory.a
test -d shlib || mkdir shlib
( cd shlib ; make  all )
make[1]: Nothing to be done for `all'.
( cd shlib ; make  DESTDIR= install )
/bin/sh ../support/mkdirs /usr/local/lib
/bin/sh ../support/shlib-install -O darwin8.8.1 -d /usr/local/lib -b /usr/local/bin -i “/usr/bin/install -c -m 644″ libhistory.5.1.dylib
/bin/sh ../support/shlib-install -O darwin8.8.1 -d /usr/local/lib -b /usr/local/bin -i “/usr/bin/install -c -m 644″ libreadline.5.1.dylib
install: you may need to run ldconfig

Searching for "install: you may need to run ldconfig" led me to this page:

http://blog.innerewut.de/articles/2005/05/08/tiger-and-ruby-readline

Lucas's blog archives were destroyed when his hosting company changed locations, but I was ultimately able to find a copy of the script in the wabyback machine:

http://web.archive.org/web/20050509041116/http://rufy.com/fix-ruby-tiger.sh

I downloaded and updated the script to reflect more recent versions of the software:

curl http://rubyforge.rubyuser.de/rubygems/rubygems-0.9.2.tgz | tar xfz -
cd rubygems-0.9.2
sudo ruby setup.rb
sudo gem install fixrbconfig
sudo fixrbconfig
cd ..
curl ftp://ftp.gnu.org/gnu/readline/readline-5.2.tar.gz | tar xfz -
cd readline-5.2
./configure
cd shlib
sed -e 's/-dynamic/-dynamiclib/' Makefile > Makefile.good
mv Makefile.good Makefile
cd ..
make && sudo make install
sudo rm /usr/lib/libreadline*
sudo ln -s /usr/local/lib/libreadline* /usr/lib/
cd ..
curl ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.5.tar.gz | tar xfz -
cd ruby-1.8.5/ext/readline/
ruby extconf.rb
make && sudo make install
cd ../../../
rm -rf ruby-1.8.5 readline-5.2 rubygems-0.9.2

The -dynamiclib flag is already present in the shlib/Makefile, so I removed the following lines from the original fix-ruby-tiger.sh script:

cd shlib
sed -e 's/-dynamic/-dynamiclib/' Makefile > Makefile.good
mv Makefile.good Makefile
cd ..

I then ran each step manually to verify that they each worked.

After running through the modified script, I see this in my /usr/local/lib:

crasch2:/usr/local/lib crasch$ ls -al libreadline.*
-r-xr-xr-x 1 root wheel 444456 Feb 26 11:38 libreadline.5.1.dylib
-r-xr-xr-x 1 root wheel 444456 Feb 26 01:31 libreadline.5.1.dylib.old
-r-xr-xr-x 1 root wheel 425624 Feb 26 13:42 libreadline.5.2.dylib
lrwxr-xr-x 1 root wheel 21 Feb 26 13:42 libreadline.5.dylib -> libreadline.5.2.dylib
-rw-r--r-- 1 root wheel 577692 Feb 26 13:42 libreadline.a
lrwxr-xr-x 1 root wheel 21 Feb 26 13:42 libreadline.dylib -> libreadline.5.2.dylib
-rw-r--r-- 1 root wheel 578228 Feb 26 13:25 libreadline.old

But when I run the unittests with ruby-debug installed , I still get the same error:

crasch2:/usr/local/lib/ruby/gems/1.8/gems/firewatir-1.0.1-mswin32/unittests crasch$ ruby mozilla_all_tests.rb
dyld: NSLinkModule() error
dyld: Symbol not found: _rl_filename_completion_function
Referenced from: /usr/local/lib/ruby/site_ruby/1.8/i686-darwin8.8.1/readline.bundle
Expected in: flat namespace

Trace/BPT trap

Anyone have any suggestions for what to try next? Thanks!

Hotel California

Okay, I'm back in the Bay Area. (San Mateo to be exact.) And all my worldly possessions are in transit.

GEEK: Why does Thunderbird display attached text files as inline text?

Whenever I tried to send someone a text file as an attachment via Thunderbird, the “attachement” would be displayed as inline text when opened in Mail.app. This forum page explains why:

http://forums.mozillazine.org/viewtopic.php?t=121230

Although the fix below doesn't always work, it appears to work for me.

When creating a message, by default Thunderbird treats text attachments as a part of the message body. To force it to encode all attachments as actual separate attachments create a user.js file with the following line:

user_pref(“mail.content_disposition_type”, 1);

(If the user.js file already exists, just add the line above to the bottom of the file.) The file can be found in your Thunderbird profile directory. Here's where I found my profile directory:

/Users/crasch/Library/Thunderbird/Profiles/[randomstring].default

This simply makes tbird always use the

Content-Disposition: attachment;

descriptor in the attachment's header rather than intelligently (or stupidly depending on your point of view) use the default:

Content-Disposition: inline;

for inlineable things like text files.

"You don't take books seriously." (NSFW)

http://www.youtube.com/watch?v=ZWlPkUFJNJ0
Via .

Think Small

http://www.nytimes.com/2007/02/16/realestate/greathomes/16tiny.html?_r=2&pagewanted=all

The New York Times

February 16, 2007
Think Small
By BETHANY LYTTLE

WHEN John Friedman and Kristin Shepherd of Berkeley, Calif., purchased 160 acres in the mountains near Telluride, Colo., it was with the intent to build — just not right away. Before designing a small, ecologically sensitive second home they wanted to spend a year or two visiting the land to determine the most suitable building site. But at an elevation of 9,600 feet, living in tents was out.

So, early last summer, Mr. Friedman, 69, an industrial photographer, rented a truck and trailered a pre-built 65-square-foot Tumbleweed Tiny House up mountain roads, into a meadow and parked. To compensate for the lack of interior space, the couple cook, entertain and, for the most part, live outdoors. “We live in our view rather than look at it,” said Ms. Shepherd, 58, a retired youth counselor and an avid hiker. At night the two nestle in a sleeping loft with three feet of clearance, gazing at stars through a skylight. “It’s shelter, pure and simple,” Ms. Shepherd said.

A wave of interest in such small dwellings — some to serve, like the Shepherds’ home, as temporary housing, others to become space-saving dwellings of a more permanent nature — has prompted designers and manufacturers to offer building plans, kits and factory-built houses to the growing number of small-thinking second-home shoppers. Seldom measuring much more than 500 square feet, the buildings offer sharp contrasts to the rambling houses that are commonplace as second homes.

This reduction of scale makes sense for a lot of people. Second homes are often geared toward outdoor activities, so for several months of the year interior space is superfluous. Minimal square footage means reduced maintenance costs, less upkeep and reduced energy consumption. Prefabricated and pre-built models can require little or no site preparation, which means no anxious weekend drives to the country to make sure construction is moving along. Add to this an element of instant gratification (once the planning stage is over, most houses go up in days, even hours, and many are delivered, turn-key, to the site).

Choosing a house starts to resemble buying a car.

Hardly the slapped-together hunting camp that belonged to your uncle, these buildings even offer instant curb appeal. They are often equipped with airplane-size bathrooms and tiny kitchenettes. Styles include romantic, rustic and designer modern. Jeanette Andersen, an agent at Sotheby’s International Realty/Santa Monica, said that in theory this could contribute to an increase in sales of undeveloped land. “When the design is appealing,” she said, “buyers are more willing to buy one and spend the money they saved on land.”

This is the case for two retirees, Gail Conti and her husband, Tom, of Rockledge, Fla. Attracted to a charming porch, pastel hues and compact size, they hope to buy a 308-square-foot Katrina Cottage, originally designed for hurricane relief by Cusato Cottages, when Lowe’s stores begin selling them this year. “To me, they’re reminiscent of the bungalows I used to see in the 1940s,” Ms. Conti said.

With a 3,000-square-foot primary residence on the Intracoastal Waterway — with sailing just outside their door — the Contis don’t need a vacation house. Instead, they plan to put their Katrina on land they will buy in Virginia or Maryland, near Washington and close to their daughter, son-in-law and young grandson. “It would allow us to visit for stretches of time without intruding and without incurring great cost,” Ms. Conti said.

PRICES for tiny houses vary by region, but in general reflect degrees of finishing, who does the building, types of materials and design options. In general, count on spending anywhere from $35 a square foot for a very basic structure to more than $200 a square foot for designer models built with specialized or luxury materials.

Manufacturers’ prices do not always include delivery fees, and there can be other costs, including site preparation, foundation work and installation of electric, water and sewer services. “You have to go into this with open eyes,” said Jay Shafer, owner of the Tumbleweed Tiny House Company. “Zoning laws, land covenants, building permits, restrictions and codes vary within states and across the country, and these impact what has to be done at the site, and how.”

For $90,000 in 2004, Scott McGlasson, 40, owner of Woodsport, a custom furniture design studio in Minneapolis, and his wife, Lisa, a human resources coordinator, bought a 700-square-foot weeHouse by Alchemy Architects. It has plumbing, tall glass doors, Andersen windows, laminate flooring, recessed lighting and Ikea cabinets. It is comfortable and attractive. “But people confuse prefab with inexpensive,” Mr. McGlasson said. “On a middle-class budget, this was doable, but not easy.” They bought the land — a small lot on Lake Pequaywan in northern Minnesota — in 2002 for $80,000. It already had a septic system, a well and access to utilities.

One rectangular module serves as the main floor; above it is an additional square module that serves as a second bedroom, which must be entered from outdoors via a ship’s ladder. Guests love it because it’s separate from the rest of the house. “And because they can lock out our three kids,” Mr. McGlasson said.

Still, it’s hard to resist doing the math. Five people sharing about 700 square feet has to present challenges — especially when three of those people are still growing. To make the most efficient use of the space, Mr. McGlasson designed and built much of the furniture, some with birch from the surrounding forest. He also added a free-standing sauna and a deck for outdoor living. “But when friends come, we’re pretty packed in,” he said. The trade-off is that when the time comes to leave, they just sweep it out and go. “We’re here to swim, fish, hike and cook,” Mr. McGlasson said. “If we wanted all the conveniences of home, we’d be there.”

Living tiny, however, does not require deprivation, thanks to modern technology. Gregory Johnson, president of the Small House Society, who lives in a 140-square-foot house in Iowa, noted that people once needed “a stereo system, countless LPs or CDs, photo albums and a small library of books.” Now, everything can take up no more space than a laptop or an iPod.

Stephanie Arado, a Minnesota Orchestra violinist, said that it took living in a tiny house to learn how little space she really needed. For about $45,000, she bought a 392-square-foot weeHouse with no electricity and no bathroom as the solution to a siting problem on her 32 acres in western Wisconsin. Ms. Arado, who has two children, planned to use the tiny house as a springboard to building something bigger.

But four years have passed, and she now has no intention of supersizing. “Something happened,” Ms. Arado said. “I started to see the beauty in how it works.” There is a queen-size bed for her and a bunk for her two children. When friends visit, sleeping pads and cots are pulled out. “The glass walls make the house feel much bigger than it is,” she said. “People are surprised to hear it’s only 14 feet wide.”

The tiny-house movement complements another vacation-home trend: buying land with an eye to conservation. John Friedman and Kristin Shepherd will return to their Tumbleweed Tiny House in Telluride this spring, not only to hike, but also to observe wildlife patterns and work to ensure that the land, which they purchased with the express purpose of conservation, remains protected.

MATTHEW ADAMS, 30, a San Francisco lawyer, shares this approach. On Feb. 2, he watched as the four walls of his $24,000, very modern 120-square-foot house went up on a very small portion of his 160 acres near Red Bluff, Calif. From the beginning, Mr. Adams said, he had an ecological agenda and intended to serve as a steward of the former ranch property. “I was committed to finding a tiny house that would have no lasting impact on the land,” he said. “But truthfully, I wanted something with design value, too.”

Modern Cabana offered both. The structure rides on concrete piers, so there’s no need to pour a foundation. To minimize waste, the builder, Nick Damner, works exclusively with eight-foot units of plywood, glass and wallboard. Recycled denim is used as insulation.

“It feels acutely more sheltering to be in a tiny house rather than a big one,” Mr. Adams said of the glass-and-wood structure, which sits like a jewel box on the land. “Looking out at the vastness of the environment heightens your sense of containment.”

From a set of design options, Mr. Adams selected operable windows on four sides and sliding glass doors. “You won’t find any quilts or knickknacks here,” Mr. Adams said. There’s no kitchen or bathroom, either. He plans to put in a well, he says, then order a second cabana to use as a bath house. Cooking will continue to be outdoors.

Great Homes

* Real Estate
* NYTimes.com

Copyright 2007 The New York Times Company

* Privacy Policy
* Search
* Corrections
* XML
* Help
* Contact Us
* Work for Us
* Site Map

Dancing Dog

Dancing Dog

Via