Thursday, 22 October 2009

London Trip...

First Day Plan:

http://maps.google.com.au/maps?f=d&source=s_d&saddr=164+Buckingham+Palace+Rd,+London,+SW1W,+United+Kingdom+(Victoria+Coach+Station)&daddr=20+Deans+Yard,+London,+SW1P+3PA+to:Parliament+Square,+Westminster,+London,+SW1P+3AD,+United+Kingdom+(Big+Ben)+to:York+Pl,+London,+Westminster,+WC2N+5,+United+Kingdom+(Houses+of+Parliament)+to:London+Westminster+Bridge+Road+London,+SE1+to:Belvedere+Rd+to:Trafalgar+Square+Westminster,+London,+UK+to:Buckingham+Palace,+London,+SW1A+1AA,+UK+(Buckingham+Palace)+to:The+Old+Police+House,+Hyde+Park,+London,+W2+2UH,+United+Kingdom+(The+Royal+Parks)+to:Albert+Memorial,+Westminster,+London+SW7+2,+United+Kingdom+to:Kensington+Palace+Palace+Green,+London+W8+4PX+to:164+Buckingham+Palace+Rd,+London,+SW1W,+United+Kingdom+(Victoria+Coach+Station)&hl=en&geocode=FRe2EQMddbz9_yGBRxYBbZUR8Q%3B%3BFeHVEQMd-A3-_yFV9dRg07h4lw%3BFfTTEQMd9hb-_yGov0Zk7hF-sg%3B%3BFeDaEQMdkjL-_w%3B%3BFTPZEQMdv9X9_yGH3Twxb-Jb5g%3BFefwEQMdtHj9_yFbQUtG4jTsCw%3BFafcEQMd7kn9_w%3B%3B&mra=ls&via=5&dirflg=w&sll=51.500355,-0.150547&sspn=0.049209,0.104628&ie=UTF8&ll=51.500168,-0.161963&spn=0.024605,0.068665&z=15

Second Day Plan:

Saturday, 8 August 2009

Improved Code : Second Life ... Attached Sensor Script... with HTTP Request to the Sensor...

string url = "http://apps.prendingerlab.net/virtual_social_network/virtual_mobile_social.php?";
string requestid = "";
string listAgents = "";


callWS(string source, string target)
{
// Call the server
requestid = llHTTPRequest(url + "enc_source_avatar=" + source + "&enc_target_avatar=" + target, [HTTP_METHOD,"GET"] , "");
//llSay(0,url + "enc_source_avatar=" + source + "&enc_target_avatar=" + target);
}

default
{

attach(key attached)
{
if (attached == NULL_KEY)
{
llSetTimerEvent(0);
llSetObjectName("SensorMSN");
llSay(0, llGetObjectName());
}
else
{
llSetTimerEvent(1);
llSetObjectName("Sensor on " + llKey2Name(llGetOwner()));
llSay(0, llGetObjectName());
}
}

timer()
{
llSensor("", NULL_KEY, AGENT, 10, PI);
}


sensor(integer total_number) // total_number is the number of avatars detected.
{
//llSay(0, "detected = " + (string)total_number);
integer i;
listAgents = "";
for (i = 0; i <>
{
if (llGetAgentInfo(llDetectedKey(i)) & AGENT_SCRIPTED)
{
//llSay(0, llKey2Name(llGetOwner()) + " is close to " + llDetectedName(i));
//callWS(llKey2Name(llGetOwner()), llDetectedName(i));
//enc_source_avatar=fawad&enc_target_avatar=fawad
listAgents = llDetectedName(i) + "," + listAgents;
}
}
callWS(llKey2Name(llGetOwner()), listAgents);
}
// if nobody is within 10 meters, say so.
no_sensor() {
//llSay(0, "Nobody is around.");
}

}

Thursday, 6 August 2009

Second Life ... Attached Sensor Script... with HTTP Request to the Sensor...

string url = "http://apps.prendingerlab.net/virtual_social_network/virtual_mobile_social.php?";
string requestid = "";


callWS(string source, string target)
{
// Call the server
requestid = llHTTPRequest(url + "enc_source_avatar=" + source + "&enc_target_avatar=" + target, [HTTP_METHOD,"GET"] , "");
}

default
{

attach(key attached)
{
if (attached == NULL_KEY)
{
llSetTimerEvent(0);
llSetObjectName("SensorMSN");
llSay(0, llGetObjectName());
}
else
{
llSetTimerEvent(1);
llSetObjectName("Sensor on " + llKey2Name(llGetOwner()));
llSay(0, llGetObjectName());
}
}

timer()
{
llSensor("", NULL_KEY, AGENT, 10, PI);
}


sensor(integer total_number) // total_number is the number of avatars detected.
{
llSay(0, "detected = " + (string)total_number);
integer i;
for (i = 0; i <>
{
if (llGetAgentInfo(llDetectedKey(i)) & AGENT_SCRIPTED)
{
//llSay(0, llKey2Name(llGetOwner()) + " is close to " + llDetectedName(i));
callWS(llKey2Name(llGetOwner()), llDetectedName(i));
//enc_source_avatar=fawad&enc_target_avatar=fawad
}
}
}
// if nobody is within 10 meters, say so.
no_sensor() {
llSay(0, "Nobody is around.");
}

}

Wednesday, 5 August 2009

Second Life ... Attached Sensor Script...

default
{

attach(key attached)
{
if (attached == NULL_KEY)
{
llSetTimerEvent(0);
llSetObjectName("SensorMSN");
llSay(0, llGetObjectName());
}
else
{
llSetTimerEvent(1);
llSetObjectName("Sensor on " + llKey2Name(llGetOwner()));
llSay(0, llGetObjectName());
}
}

timer()
{
llSensor("", NULL_KEY, AGENT, 10, PI);
}


sensor(integer total_number) // total_number is the number of avatars detected.
{
llSay(0, "detected = " + (string)total_number);
integer i;
for (i = 0; i <>
{
if (llGetAgentInfo(llDetectedKey(i)) & AGENT_SCRIPTED)
{
llSay(0, llKey2Name(llGetOwner()) + " is close to " + llDetectedName(i));
}
//llSay(0, llGetObjectName() + " is close to " + llDetectedName(i));
//if ( llGetSubString( llDetectedName(i), 0, 8) == "Sensor on")
//{
// llSay(0, llGetObjectName() + " is close to " + llDetectedName(i));
//}
}
}
// if nobody is within 10 meters, say so.
no_sensor() {
llSay(0, "Nobody is around.");
}

}

Saturday, 25 July 2009

N-Body MPI Code...

http://www.artcompsci.org/msa/web/contribs/nbody_sh1p.tar.gz

Eclipse Plugin Information...

In the URLs below you have some information about Eclipse Plugin
architecture and how create a simple plugin.

http://www.eclipsepluginsite.com/
http://onjava.com/pub/a/onjava/2005/02/09/eclipse.html?page=1

First of all you can start from the "Plugin with a View" sample (see
http://www.eclipsepluginsite.com/eclipse-plugin-development-2.html ). This
sample creates the necesary code and files for the plugin. Then you can add
in the view class your GUI objects. If you have a SWT GUI you can add it as
a simple widget in the view plugin. If your GUI is a SWING GUI I think there
is a SWT composite that can contain the SWING GUI.

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...