Wednesday, 28 January 2009

Second Life Scripts...

Wireless Base Station 2:

default
{
    state_entry()
    {
        llSetTimerEvent(1); //Repeats the sensor every 1 second.
    }
    
    timer()
    {
    llSensor("WBS1",NULL_KEY,ACTIVE,95,PI);  
    }
    
    sensor(integer num_detected)
    {
    //Do Stuff here.
    // we use a FOR loop here because two people can click the object at the same time.
        integer i;
        for (i = 0; i <>
        {
            // llGetAgentInfo returns a bitfield. Use & instead of == for comparisons.
            //if (llGetAgentInfo(llDetectedKey(i)) & AGENT_FLYING)
           // {
                llSay(0, llDetectedName(i) + ", you're in my range.");
           // }
 
           // else
           // {
           //    llSay(0, llDetectedName(i) + ", you're not flying.");
           // }
        }
    }
}



Wireless Base Station 1:

default
{
    state_entry()
    {
        llSetTimerEvent(1); //Repeats the sensor every 1 second.
        //integer handle = llListen( 10, "WBS2", NULL_KEY, "" );    
    }
    
    timer()
    {
    llSensor("WBS2",NULL_KEY,ACTIVE,95,PI);  
    
    }
    
    sensor(integer num_detected)
    {
    //Do Stuff here.
    // we use a FOR loop here because two people can click the object at the same time.
        integer i;
        for (i = 0; i <>
        {
            // llGetAgentInfo returns a bitfield. Use & instead of == for comparisons.
            //if (llGetAgentInfo(llDetectedKey(i)) & AGENT_FLYING)
            //{
                llSay(0, llDetectedName(i) + ", you're in my range.");
            //}
 
            //else
            //{
            //    llSay(0, llDetectedName(i) + ", you're not flying.");
            //}
        }
    }
}


Heavy Snow Fall:

default
{
    state_entry()
    {
        llSay(0, "Hello, Avatar!");
    }

    touch_start(integer total_number)
    {
        llSay(0, "Touched.");
        llParticleSystem([PSYS_PART_FLAGS, PSYS_PART_FOLLOW_SRC_MASK | PSYS_PART_EMISSIVE_MASK,
    PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_ANGLE | PSYS_SRC_BURST_RADIUS,
    PSYS_PART_START_COLOR, <1,1,1>,PSYS_SRC_ANGLE_BEGIN,1.57]);
    }
}


Light but fast snowfall:

default
{
    state_entry()
    {
        llSay(0, "Hello, Avatar!");
    }

    touch_start(integer total_number)
    {
        llSay(0, "Touched.");
        llParticleSystem([PSYS_PART_FLAGS, PSYS_PART_FOLLOW_SRC_MASK | PSYS_PART_EMISSIVE_MASK,
    PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_ANGLE | PSYS_SRC_BURST_RADIUS,
    PSYS_PART_START_COLOR, <1,1,1>,PSYS_SRC_ANGLE_BEGIN,1.57,PSYS_SRC_BURST_RADIUS,110.0,PSYS_PART_START_SCALE,<0.1,0.1,0.1>,PSYS_PART_END_SCALE,<0.1,0.1,0.1>,PSYS_SRC_BURST_PART_COUNT,100]);
    }
}

Light Snow Fall:

default
{
    state_entry()
    {
        llSay(0, "Hello, Avatar!");
    }

    touch_start(integer total_number)
    {
        llSay(0, "Touched.");
        llParticleSystem([PSYS_PART_FLAGS, PSYS_PART_FOLLOW_SRC_MASK | PSYS_PART_EMISSIVE_MASK,
    PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_ANGLE | PSYS_SRC_BURST_RADIUS,
    PSYS_PART_START_COLOR, <1,1,1>,PSYS_SRC_ANGLE_BEGIN,1.57,PSYS_SRC_BURST_RADIUS,110.0,PSYS_PART_START_SCALE,<0.1,0.1,0.1>,PSYS_PART_END_SCALE,<0.1,0.1,0.1>,PSYS_SRC_BURST_PART_COUNT,100]);
    }
}

Listen on a Channel & Respond:

default {     state_entry()     {         // listen on channel zero for any chat spoken by the object owner.         llListen(0,"",llGetOwner(),"");     }          listen(integer channel, string name, key id, string message)     {         // check if the message corresponds to a predefined string.         // llToLower converts the message to lowercase.         // This way, "HELLO", "Hello" or "HeLLo" will all work the same way.         if (llToLower(message) == "hello")         {             // if the message from the owner is "hello", respond with "Hello.".             llSay(0,"Hello.");         }     } }

Thursday, 20 November 2008

London Sighseeing...

You just need two days and one night to see best places in London.

Day 1:

Start from the:
1.
Victoria Coach Station
164 Buckingham Palace Rd
Westminster, London SW1W, UK
or Victoria Underground Station

2.
Westminister Abbey
The Chapter Office
20 Deans Yard, London, SW1P 3PA

3.
House of Parliament
Palace of Westminster
London, SW1A 0AA

4.
London Eye
Westminster Bridge Road
London, SE1

5.
Big Ben
Bridge Street
London, SW1A

6. 
Trafalgar Square
Westminster, London, UK

7.
Buckingham Palace
London, SW1A 1

8.
The Royal Parks
The Old Police House,
Hyde Park,
London, W2 2UH

9.
Albert Memorial
Kinsington Road
London SW7

10.
Kensington Palace
Palace Green,
London W8 4PX

Have a good night sleep.

Day 2:

1.
Start From:
London Bridge Station
Railway Approach, SouthWalk,
London SE1, UK

2.
SouthWalk Cathedral,
Cathedral St, SouthWalk,
London UK

3.
The Monument
Monument St
London, EC3R 8AH

4.
The Tower of London
Tower Hill, Tower Hamlets,
London EC3N, UK

5.
Aldgate
Greater London, UK

6.
Tower Bridge
Tower Bridge Rd,SouthWalk,
London SE1, UK

7.
HMS Belfast
Morgans Lane
Tooley St, London, SE1 2JH

End :). Enjoy.

Monday, 3 November 2008

Graph Visualization Formats...

I know the following graph visualization formats. If you know anymore please add the to the list:

1. dot

2. fdp

3. neato

4. graphml

5. gml

6.  ygf

Important Semantic Web Keywords...

REST : an architecture to design web-services.
Syndication : Like RSS Feeds.
Web Widgets : Web GUI
Ajax : Used to create interactive web-applications and rich internet applications.
JSON : Javascript Object Notation (JSON). Lighweight computer data interchange format.

Executive Summary: Anthropic's Claude Mythos Model

  What Happened Anthropic announced  Claude Mythos Preview , a new AI model it describes as its most capable ever — and so powerful in cyber...