Sunday, July 13, 2008

A Script Generator for Second Life

Anyone who scripts in Second Life knows that the scripting language has a pretty steep learning curve, especially if you are not used to event driven programming. So it would be nice to have a code generator-maybe something a novice could use. Well today a post on SLED, the Second Life Educator's list, had a brief mention of a system called Scratch for Second Life (S4SL).

S4SL can be down loaded for Macs and Windows machine. I tested the Windows version on my home Vista machine and hope to test the Mac version on my iMac at work later this week.

S4SL is developed by Eric Rosenbaum at MIT, using Scratch . Scratch allows you to program graphically by snapping together little "modules." It sounds like a lot of fun in itself! But getting back to S4SL, the program has 8 classes of modules including one called pen which apparently requires an extra set of tools. Here is the opening window loaded along side the Second Life client. The left hand part of the window shows the eight modules, and the shapes associated with motion commands.

opening screen

Click on the image to go to my Flickr stream to see a large version of this screen. The basic idea is to snap together modules in S4SL. Then you press the copy code button. This copies the generated SL script into your clip board. So all you need to do is to rez an object SL, and paste the code in place of a new script.

S4SL is loads of fun and I spent a delightful evening making little Second Life "pets" that follow my Avatar around. The next image shows a Scratch program for a pet that exhibits random motion, but then attempts to find my avatar if it gets too far away.

Image3

The "modules" are color coded based on function and notice how the "modules" can be snapped together. This sort of approach ought to be appealing for novice programmers including biology types who are of course used to thinking of shape as related to function.

There are some limitations to S4SL. First, since it is in development, only some of the capabilities of SL's language are implemented. The code is fat, meaning there is a lot of non functional material in the code depending what sorts of features are enabled or disabled. Also the resulting code, because not everything is implemented may not work the way the user expects.

Originally I pasted the script into a cube prim for testing but it so happened I had a flexi prim representation of a phospholipid hanging around and I thought it would make a cool bacterium complete with flagella. So here is a brief movie (A still is here) of the resulting "bacterial cell:"



I think S4SL has a lot of potential as a learning tool. For instance someone interested in behavior could use the system, as my example suggests, let students design bots which mimic different sorts of orientation behavior. Students without any programming experience can give their simple prims behaviors and there are good pre-made S4SL projects that come with the down load to show how this can be done.

S4SL, a neat learning tool and lots of fun and it doesn't require any scratch for the fun.

Friday, July 04, 2008

Dappled Water Lilies


dappled water lilies
Originally uploaded by pdecell
As a friend commented...you can't go wrong shooting pictures of water lilies but I really like the dappled light on these flowers. So enjoy. By the way these this year's blooms from the plant pictured back in 2006 here.

Dragon Fly Eyes


dragon fly eyes
Originally uploaded by pdecell
I try to see something new every day. Look at this dragon fly's eyes closely. The eye is divided into at least two regions. The upper region seems to have slightly larger sections(ommatidia), perhaps for detecting movement. The lower region's ommatidia are smaller, perhaps for seeing detail.

Click on the image to see larger versions on my flickr photostream.

Wednesday, June 25, 2008

Salamander

Slow beats the heart of the salamander
Who rests guarding her eggs in the cool moss.
Silently she breathes in my time through gloss
Of skin gold and brown. Disturbed she gathers
Tightly against them; only they matter
Turning their gray yolks, spinning time to floss.
Unwraps the program of their lives embossed
Even in me through my life meander,
Back to the cold throated streams where she lives,
Her old slow eyes imprinted in my eyes
And drawing me into you with a stare,
For that brief moment; then my hair I give
One flick and with a couple pulls and sighs
My mother's eyes click red lips down the stair.

Two very disparate images I know, but salamanders of course typically go through a metamorphosis. Once going out, I was just checking my appearance and how much I can resemble my mother at this age struck me. And no, I don't think wanting to be like one's mother (or father) is really part of being transgender, so forget that.

Transition

Suddenly we are past the tipping point
And are staring at the body summer,
Her green skin crawling with beetles shimmers
Water, salt from her breast my eyes anoint.
She enfolds me;shoots rustle from each joint.
Dirt crumbling from her, she sheds spring's glamor,
And from her secret places rise odors
Half decomposed into the high dew point-
Not of spring's meadowed fem and lily scents
But fully herself dark entangled black
Charcoal odors from Permian forests.
Rises she from her old self redolent
With the notes of the hive, bees forth and back,
The ants, bees and I, all of us, her guests.

summer pads

One thing that always strikes me about summer is the smells. I don't have a particularly strong sense of smell and I am a bit quirky in terms of the smells I enjoy. They tend to earthy, complex and not floral in the standard sense, and to me these sorts of complex summer smells are incredibly sexy.

This poem is part of my ongoing exploration of the sonnet form. Normally I write more open forms but find sonnets incredibly fun to write and I am glad to have a bit of time this summer to continue my explorations.

Here are some other poems in the same series:

Full Moon: http://theforcethat.blogspot.com/2008/01/full-moon.html
Secular Poem: http://theforcethat.blogspot.com/2008/06/secular-poem.html
Salamander: http://theforcethat.blogspot.com/2008/06/salamander.html

Busted!

Global warming skeptics that is. Turns out they are taking a page from Creationists who love to put out lists of scientists who support their positions. Over at Lightbucket there is an interesting post shedding light on the antics of the Heartland Institute(website, sourcewatch) with it's list of 500 scientists who are supposedly global warming skeptics.

Check it out at:
http://lightbucket.wordpress.com/2008/05/06/the-heartland-institutes-500-scientist-list/

From the post:

"The list of Dennis Avery’s coauthors immediately looks odd. Some of the scientists are dead, some don’t exist [6], and the deceased astrologer Theodor Landscheidt is on it. Extraordinarily, Michael Mann, the author of the “hockey stick” paper, and one of the scientists running the RealClimate blog, is on the list as a coauthor “whose research contradicts man-made global warming” !"

Desmogblog at http://www.desmogblog.com/ has been doing a great job of tracking this story.

See that blog's latest update at http://www.desmogblog.com/500-scientists-with-documented-doubts-about-the-heartland-institute

Monday, June 23, 2008

Vote Republican!

Not convinced? Well, just check this video out.



More information can be found at:
http://www.imvotingrepublican.com/

Friday, June 20, 2008

Cloning Copybot Hitting The Grid

While browsing my Flickr contacts I ran across this photo and entry posted by Prad Prathivi, a designer in Second Life. Apparently a copy bot exists now that will duplicate a Second Life Avatar, including major features of the Avatar profile, and and at least some of the Avatar's attachments.

According to Prad, Second Life allows copy bots for legitimate purposes-backing up inventory for instance but using them to copy other people's stuff-including their avatars is against the Second Life terms of service.

Indeed, according to Second Life's Knowledge Base entry on protecting copyrights, using copy bots to "infringe" on someone's content is a violation of the Terms of Service. However, SL also notes that residents are allowed to have Copy Bots for legitimate reasons.

When I asked Prad how one could tell the real Avatar from the copy he said this:

"I wouldn't have been able to tell them apart, aside of the rez date, quality of avatar and the No payment Info on File. But even that wouldn't have given me a second thought.. your avatar could be duplicated without you even knowing it, as well as content creator's work being stolen."

By the way I have a query to the person, whose AV is allegedly Kulton Short, who was reported to be selling the copy bot, but I have received no response.

Not everyone responding Prad's post feels there is a problem, several SL users didn't think there is much merit in duplicating avatars. Caliburn Sustanto says basically who cares, noting that it is already possible to make a copy of someone's avatar by tracking down all the attachments and duplicating the appearance of the avatar. Besides "Thousands of avatars already look pretty much the same already".

It is not clear to me how big of a problem copy bots are but I think there is at least the potential of a problem. The analogy is of course phishing in which users are lured to false websites in order to steal passwords. IN the old days an alert user could generally spot phishing sites after all. Once before phishing became widespread I got a message about my AOL account that said to go to the AOL website and enter my account and password because of some security issue. The site looked official but the URL was clearly not from AOL. So I called AOL security. As a reward I got several months of free service.

At the very least, these sorts of copy bots might have the affect of undermining confidence in Second Life's security and users ability to protect their avatars and original content.

By the way these bots don't seem to reside in Second Life but are external programs orginally developed for debugging purposes. Also they cannot get at account information so the avatar show up with no payment on record.

Here is another very recent report of what sounds like the same copy bot that Prad reported.