Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

250 bytes - what to do with it?

SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
05-29-2006 15:09
If you could get SL to send 250 bytes of text of your choice directly to your computer and run a program of your choice to do something with the 250 bytes, what use could you make of this ability?
_____________________
-

So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.

I can be found on the web by searching for "SuezanneC Baskerville", or go to

http://www.google.com/profiles/suezanne

-

http://lindenlab.tribe.net/ created on 11/19/03.

Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard,
Robin, and Ryan

-
Ketra Saarinen
Whitelock 'Yena-gal
Join date: 1 Feb 2006
Posts: 676
05-29-2006 15:28
I bet retailers would like a Point of Sale Journal of sorts. One that can be compiled into a database so sales/marketing data can be extracted.
_____________________
From: Doctor Who
J: You've been to the Factories?
DW: Once
J: Well they're gone now, destroyed. Main reactor went critical, vaporized the lot.
DW: Like I said: Once. There's a banana grove there now. I like bananas. Bananas are good.


From: Clutch, 10001110101
Robot Lords of Tokyo, smile, Taste Kittens!
Newfie Pendragon
Crusty and proud of it
Join date: 19 Dec 2003
Posts: 1,025
05-29-2006 16:08
From: SuezanneC Baskerville
If you could get SL to send 250 bytes of text of your choice directly to your computer and run a program of your choice to do something with the 250 bytes, what use could you make of this ability?



I'd do nothing at all. llHTTPRequest does this now, with (theoretically) no limit on the size sent to your compueter, and up to roughly 2000 bytes in reply.

Why would I want to downgrade to 250 bytes?


- Newfie
_____________________
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
05-29-2006 16:27
From: Newfie Pendragon
I'd do nothing at all. llHTTPRequest does this now, with (theoretically) no limit on the size sent to your compueter, and up to roughly 2000 bytes in reply.

Why would I want to downgrade to 250 bytes?


- Newfie

I was under the impression that llHTTPRequest was another of the commands that is intended for those with access to a server to use it. How does one get it to speak to a machine behind a cable modem and a router, like I and many others have?
_____________________
-

So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.

I can be found on the web by searching for "SuezanneC Baskerville", or go to

http://www.google.com/profiles/suezanne

-

http://lindenlab.tribe.net/ created on 11/19/03.

Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard,
Robin, and Ryan

-
Siggy Romulus
DILLIGAF
Join date: 22 Sep 2003
Posts: 5,711
05-29-2006 16:31
Product update verification info, bug reporting, networked vendor sales reports.

Hmmm - web based shopping would get a whole lot easier to set up..
_____________________
The Second Life forums are living proof as to why it's illegal for people to have sex with farm animals.

From: Jesse Linden
I, for one, am highly un-helped by this thread
Fa nyak
>(O.o)<
Join date: 8 Oct 2004
Posts: 342
05-29-2006 16:39
suez, i haven't really looked at the specifics on httprequest, but it's been possible to set up your home pc like a webserver, and free. check out apache server. also i remember using something called DNS2Go in the past to get around the changing ip address issue
Newfie Pendragon
Crusty and proud of it
Join date: 19 Dec 2003
Posts: 1,025
05-29-2006 17:04
From: SuezanneC Baskerville
I was under the impression that llHTTPRequest was another of the commands that is intended for those with access to a server to use it. How does one get it to speak to a machine behind a cable modem and a router, like I and many others have?


That in itself is a universal problem, regardless of if it is llHTTPRequest or not. To have LL communicate with a home machine, it either has to have an open access connection (personal web server/ftp server/etc), or a method that can request the info from within the firewall (email, XML-RPC, etc).

Even an IM service could do this, but in all cases they boil down to a program running on your system, with some type of open incoming port, or a third-party server that acts as a forwarding agent.

In other words...we have a form of connection already that fits that bill, called llHTTPRequest.


- Newfie
_____________________
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
05-29-2006 17:05
This unfortunately requires human intervention to respond to a dialog box, but here it is anyway.

The llLoadUrl command sends an URL to your default browser.

The registy key HKEY_CLASSES_ROOT\HTTP\shell\open\command stores the default browser that is called by llLoadUrl.

I created a batch file to test this and called it FakeBrowser.bat .

I set the above key to "C:\Program Files\Fake-Browser\Fake-Browser.bat" %1

In the FakeBrowser.bat I put
From: someone
Echo %1
"C:\Program Files\Opera\Opera.exe" %1
pause


I created an object with a script that calls llLoadUrl, set to call "http:qqqq"

This worked, the batch file got called, echoed "qqqq", and ran Opera, which failed to find a page called qqqq.


Instead of a batch file use a program you write that checks the url for a specific string that you add at the beginning of the strings that you want to process yourself. If your custom program doesn't find the flag string at the beginning of the string it gets passed, it calls your real browser and gives it the %1 parameter and the url gets opened in your browser as normal.

If your program does find the flag string, it process the rest of the message and doesn't call the browser.


Like I said, this requires you to click on the dialog that LSL produces that asks if you want to open the browser.
_____________________
-

So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.

I can be found on the web by searching for "SuezanneC Baskerville", or go to

http://www.google.com/profiles/suezanne

-

http://lindenlab.tribe.net/ created on 11/19/03.

Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard,
Robin, and Ryan

-
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
05-29-2006 17:23
From: Fa nyak
suez, i haven't really looked at the specifics on httprequest, but it's been possible to set up your home pc like a webserver, and free. check out apache server. also i remember using something called DNS2Go in the past to get around the changing ip address issue

I have looked at both apache and something like DNS2Go, I don't recall which one it was. It looked like getting apache to work would make my brain explode so I haven't pursued that.

I just like to fiddle around sometimes.
_____________________
-

So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.

I can be found on the web by searching for "SuezanneC Baskerville", or go to

http://www.google.com/profiles/suezanne

-

http://lindenlab.tribe.net/ created on 11/19/03.

Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard,
Robin, and Ryan

-
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
05-29-2006 22:52
From: SuezanneC Baskerville
I have looked at both apache and something like DNS2Go, I don't recall which one it was. It looked like getting apache to work would make my brain explode so I haven't pursued that.

I just like to fiddle around sometimes.


I use no-ip.com myself, as a dynamic-IP DSL subscriber. Ive found it extremely reliable, but I still wouldnt want to run anything of a commercial nature off of my home computers.

Apache isnt really that bad - Im just getting my feet wet in the server arena, and it was just point and click to setup a simple webpage. (It even gives you a little taskbar widget that lets you turn it off and on :D)

I modified a few settings to move the default website folder to a different harddrive, but if you dont need that, you dont even need to touch the config file.

I still havent fiddled with any PHP though, Ill reply once I figure that out.
==Chris
_____________________
October 3rd is the Day Against DRM (Digital Restrictions Management), learn more at http://www.defectivebydesign.org/what_is_drm
Seronis Zagato
Verified Resident
Join date: 30 Aug 2005
Posts: 454
05-30-2006 00:25
From: SuezanneC Baskerville
This unfortunately requires human intervention to respond to a dialog box, but here it is anyway.

The llLoadUrl command sends an URL to your default browser.

The registy key HKEY_CLASSES_ROOT\HTTP\shell\open\command stores the default browser that is called by llLoadUrl.

I created a batch file to test this and called it FakeBrowser.bat .

I set the above key to "C:\Program Files\Fake-Browser\Fake-Browser.bat" %1

In the FakeBrowser.bat I put


I created an object with a script that calls llLoadUrl, set to call "http:qqqq"

This worked, the batch file got called, echoed "qqqq", and ran Opera, which failed to find a page called qqqq.


Instead of a batch file use a program you write that checks the url for a specific string that you add at the beginning of the strings that you want to process yourself. If your custom program doesn't find the flag string at the beginning of the string it gets passed, it calls your real browser and gives it the %1 parameter and the url gets opened in your browser as normal.

If your program does find the flag string, it process the rest of the message and doesn't call the browser.


Like I said, this requires you to click on the dialog that LSL produces that asks if you want to open the browser.



Ya know i've done stuff like that with other programs but never thought to use the LoadUrl as a quickie method of sending data to someones PC. Brilliant Suz
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
05-30-2006 05:44
Thanks, Seronis, for your overstatement.

I think I got the memory of looking at the Apache instructions confused with looking at the vBulletin installation instructions.

I have now installed Apache. Running the installation program worked. Folllowing installation one is supposed to configure it, and configuring it means editing a text file. I guess one is supposed to just ignore the contents of the text file, except for defining the root folder, but just looking at the configuration file is disturbing. The Apache feather did not show up in the system tray following installation as it should have, but the 127.0.0.1 page shows up like it should.

The real challenge here is "Can I get this installed and move on to the next step in being able to get llHttpRequest to work before I lose interest or just plain forget what I was doing?"
_____________________
-

So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.

I can be found on the web by searching for "SuezanneC Baskerville", or go to

http://www.google.com/profiles/suezanne

-

http://lindenlab.tribe.net/ created on 11/19/03.

Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard,
Robin, and Ryan

-
Yumi Murakami
DoIt!AttachTheEarOfACat!
Join date: 27 Sep 2005
Posts: 6,860
05-30-2006 07:02
From: Newfie Pendragon

In other words...we have a form of connection already that fits that bill, called llHTTPRequest.


But how do you get the client's IP address to send the HTTP request to the right place?
Luciftias Neurocam
Ecosystem Design
Join date: 13 Oct 2005
Posts: 742
05-30-2006 07:33
I'd culture some cells from a frog brain, and use telemetry information from SL to "train" the cell culture to navigate a box around SL. It could wander the land and help people like Kane did in "Kung Fu".
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
05-31-2006 13:56
The apache version of the apache server didn't seem to be able to install the apache monitor, so I tried the xampp version. This did appear to install completely and correctly but that doesn't mean you have a a functioning web server. You have to get your ports working correctly, by getting them forwarded or mapped in your router. This appears to be a bit of a pain, you may have already filled up the slots in the router's port forwarding screen, and your ISP may be blocking the commonly used port 80 and other common ports.
_____________________
-

So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.

I can be found on the web by searching for "SuezanneC Baskerville", or go to

http://www.google.com/profiles/suezanne

-

http://lindenlab.tribe.net/ created on 11/19/03.

Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard,
Robin, and Ryan

-
Zen Zeddmore
3dprinter Enthusiast
Join date: 31 Jul 2006
Posts: 604
09-03-2006 15:31
From: Luciftias Neurocam
I'd culture some cells from a frog brain, and use telemetry information from SL to "train" the cell culture to navigate a box around SL. It could wander the land and help people like Kane did in "Kung Fu".


D-mn! i LIKE the way you think..... :)
CrazyMonkey Feaver
Monkey Guy
Join date: 1 Jul 2003
Posts: 201
09-03-2006 16:12
I just wrote my own program to get and recieve data directly from SL/llHTTPRequest. It does nothing usefull, just parsed some of the basic data fields. I tried apache, but it was easier for me to make my own program then learn apache, lol..

As far as I know, you can send a body up to 2048 bytes, I never tested the limit.
The wiki says HTTP_BODY_MAXLENGTH = 2048, but also says its not yet supported.
Devlin Gallant
Thought Police
Join date: 18 Jun 2003
Posts: 5,948
09-04-2006 09:19
From: SuezanneC Baskerville
If you could get SL to send 250 bytes of text of your choice directly to your computer and run a program of your choice to do something with the 250 bytes, what use could you make of this ability?


I wouldn't. That's all I need is for some bug to screw up my puter. :eek:
_____________________
I LIKE children, I've just never been able to finish a whole one.
Enabran Templar
Capitalist Pig
Join date: 26 Aug 2004
Posts: 4,506
09-04-2006 09:28
trojan!
_____________________
From: Hiro Pendragon
Furthermore, as Second Life goes to the Metaverse, and this becomes an open platform, Linden Lab risks lawsuit in court and [attachment culling] will, I repeat WILL be reverse in court.


Second Life Forums: Who needs Reason when you can use bold tags?
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
09-04-2006 09:35
From: Devlin Gallant
I wouldn't. That's all I need is for some bug to screw up my puter. :eek:

This thread is a bit obsolete at this point, but - the information would be information of your choice, and the program that intercepts the call to your default web browser is a program that you select.

If you are unwilling to run programs of your own choice - possibly one you wrote yourself - to process data of your own choice, such as, for example, using a web browser to send the keystrokes that your produce and cause them to be displayed in a forum website, then your computer should be sold or donated to a school or sent for recycling because you won't be able to do anything at all with it.
_____________________
-

So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.

I can be found on the web by searching for "SuezanneC Baskerville", or go to

http://www.google.com/profiles/suezanne

-

http://lindenlab.tribe.net/ created on 11/19/03.

Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard,
Robin, and Ryan

-
Devlin Gallant
Thought Police
Join date: 18 Jun 2003
Posts: 5,948
09-04-2006 09:42
From: SuezanneC Baskerville
This thread is a bit obsolete at this point, but - the information would be information of your choice, and the program that intercepts the call to your default web browser is a program that you select.

If you are unwilling to run programs of your own choice - possibly one you wrote yourself - to process data of your own choice, such as, for example, using a web browser to send the keystrokes that your produce and cause them to be displayed in a forum website, then your computer should be sold or donated to a school or sent for recycling because you won't be able to do anything at all with it.


Bah! There would be even MORE bugs if I wrote it myself. :o
_____________________
I LIKE children, I've just never been able to finish a whole one.
Adriana Caligari
Registered User
Join date: 21 Apr 2005
Posts: 458
09-04-2006 09:44
From: SuezanneC Baskerville
If you could get SL to send 250 bytes of text of your choice directly to your computer and run a program of your choice to do something with the 250 bytes, what use could you make of this ability?


I get where you were going with this, but how about a different question.

If you could assign the DEBUG_CHANNEL to be a .txt file on your pc would you find it helpful.

Answer - bl***y hell yes.
_____________________
Maker of quality Gadgets
Caligari Designs Store
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
09-04-2006 09:50
From: Devlin Gallant
Bah! There would be even MORE bugs if I wrote it myself. :o

More bugs than Second Life?

I think not!

It takes a team of software engineers to do that.
_____________________
-

So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.

I can be found on the web by searching for "SuezanneC Baskerville", or go to

http://www.google.com/profiles/suezanne

-

http://lindenlab.tribe.net/ created on 11/19/03.

Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard,
Robin, and Ryan

-
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
09-04-2006 10:35
From: CrazyMonkey Feaver
I just wrote my own program to get and recieve data directly from SL/llHTTPRequest. It does nothing usefull, just parsed some of the basic data fields. I tried apache, but it was easier for me to make my own program then learn apache, lol..

As far as I know, you can send a body up to 2048 bytes, I never tested the limit.
The wiki says HTTP_BODY_MAXLENGTH = 2048, but also says its not yet supported.


its 2048, i hit it all the time
From: someone

More bugs than Second Life?

I think not!

It takes a team of software engineers to do that.



grumble Loudon
A Little bit a lion
Join date: 30 Nov 2005
Posts: 612
09-04-2006 13:01
From: Yumi Murakami
But how do you get the client's IP address to send the HTTP request to the right place?


Earlier I used a page scraper with one of these free "Your IP address is" pages

I also know one person that used a screen reader to automate the dialog boxes that you have to click no to keep getting payed at my site. So much for randomizing the button order. :rolleyes:
Now I am working on random misspellings.

Also rember the older http request system allows your PC to contact an LL object.
1 2