Closed Thread Icon

Topic awaiting preservation: Distributed networking (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8907" title="Pages that link to Topic awaiting preservation: Distributed networking (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Distributed networking <span class="small">(Page 1 of 1)</span>\

 
wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 10-14-2003 22:33

Has anyone thought of doing some distributed networking with javascript and cgi? Having recently seen articles about clusters of xboxes, PS2s and even pocket PCs, I thought this would be awesome: literally any system with javascript and cgi capabilities could run these! Very slowly admittedly, but nevertheless. There is a way of working out pi: 4(1 - 1/3 + 1/5 - 1/7 + 1/9...). Anyone fancy trying? Maybe not this particular project (huge amounts of decimal places can be very annoying), but another?

Any helpers, and especially any suggestions would be very welcome!

Wrayal

Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 10-14-2003 22:56

Someone published a book with PI down to something like a million decimal places....

knock yourself out...


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-15-2003 08:20

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 10-15-2003 17:56

Thanks for that petskull, real creative
Try http://www.foad.com/pi/index.html instead!
I didnt want to do it really creatively. In fact, all my programs tend to be for academic enjoyment - I have yet to find a use for my raytracer
The other problem is that I can't compile at school, I just want to try. If nobody really wants to help, could anyone suggest any ideas? (Pi isn't exactly original)

Wrayal


Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 10-15-2003 18:26

holy crap.... that rocks, wrayal....

*rightclick.save*


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 10-15-2003 19:40

Ah! I know! the 3n+1 problem. Is this stupid, or just jobless?

Wrayal

Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

[This message has been edited by wrayal (edited 10-15-2003).]

wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 10-15-2003 22:44

Probably nobody cares, but the main prog is here: http://www.wrayal.4t.com/3n+1.html
Next is the cgi bit

Wrayal

Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 10-15-2003 23:55

what is this 3n+1 thing?


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 10-16-2003 14:58

Its fairly simple:
Take a number

if (its even) divide by 2
if (its odd) multiply by 3 and add 1
and repeat.

It is believed the sequence always comes down to one.

Any suggestions? I am thinking of using an iframe which submits by cgi, so that the main screen can calculate virtually constantly without having to reload. Sensible?

Wrayal

Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-16-2003 15:08

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

amikael
Bipolar (III) Inmate

From: övik
Insane since: Dec 2002

posted posted 10-16-2003 16:20

Question...
Why dont you translate the raytracer to the server, as a cgi-script, and then just redraw the page when the work is done?
- It would run so much faster.

I can't see that it's very much different when it comes to the coding, since you dont manipulate the page's DOM or anything that requires access to it, while drawing the image.
It should be basically the same code, with minor adjustments..

(^-^)b

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-16-2003 16:28

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

amikael
Bipolar (III) Inmate

From: övik
Insane since: Dec 2002

posted posted 10-16-2003 19:11

And if it's done in C++ or C#??

(^-^)b

wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 10-16-2003 20:02

Hold on, wait, where did raytracing come into this? This has nothing to do with rendering!
As to the charge...I've got a boradband connection out in Germany, no cap, just £21 per month, 768 down 256 up. I was thinking of running it off that (I hardly thuink many people are going to do this...). I have never done any php, only javascript and cgi and html, hence this method.
Why not C++ or C#? This is a piece of academic fun! I do this in my free time because I enjoy it! Im not actually trying to accompliosh anything. And anyway, since I am at school, I could not compile anyway. I hate C++. I always find compilers to be very unreliable. Eg., I was having a look through some openGL, and couldnt find a single compiler that would compile it. I cant afford something that costs hundreds or even thousands (borland comes to mind....) and devC++ couldnt manage it etc. I tried, but no-one seemed to be able to help me...

Also, this is very quick. On a reasonable computer, it can do the first 1000 in about 30s. I found a site saying they ahd onl;y done up to 1,000,000. That would take no time at all, even using javascript!

I am planning to get my server to distribute the work as units, and collate the information, storing how much each ip has done etc. Ambitious otr suicidal. Anyone want to help?

Wrayal

Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 10-17-2003 21:45

I am sorry, I have tried to do this by meyelf, but have failed miserably. I am trying to work out how to use the iframe to send/receive information. How do I communicate using javascript between the iframe and the main page, and how do and submit a form on the iframe using a script from the main page? What I was planning to do is this: write all the collated info to a form in the iframe, and submit it, passing back info from the iframe.
Is it something along the lines of:

document.getElementById("myIframe").somethingorother?

Please help!

Wrayal

Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 10-17-2003 22:36

Sorry, sorted that one out:

set Iframe source to be x.html?(insert text you want to send here)

in x.html:

string is: self.location.href.split("?")[1]

Yay . Now I just gota work out how to send this. BTW, I am sure that this is a really stupid way of doing this. But hey, I have never tried anything like this before

Wrayal

Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 10-26-2003 06:11

I think I have finished my prog, and it all seems to work, but is there anyone who could host it for me to do a test across internet?

Any help much appreciated!

Wrayal

Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

Hub-izer
Bipolar (III) Inmate

From: The little green dot at the center of your monitor
Insane since: Jul 2003

posted posted 10-28-2003 00:02

I'd be willing to give it a shot. For it's sheer flaunting of common sense

wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 10-28-2003 00:22

As in you would be prepared to host it for a test? That would be legendary! If you give me ur e-mail address, I will send u the files. It needn't be permanent, a friend will be able to host it for me in future - he is getting a site soon. If I've misunderstood you, sorry.

Question, who here is actually going to visit it? (and would you be prepared to leave your computer on overnight on it )

Wrayal

Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

Hub-izer
Bipolar (III) Inmate

From: The little green dot at the center of your monitor
Insane since: Jul 2003

posted posted 10-28-2003 01:35

Leaving it on at night == out of the question... but..er I could put it up somewhere, I think.
Email me at jsdistrib@rwcenter.net

wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 10-28-2003 01:47

Why is overnight out of the question, just wondering?

Anyway, thankyou very much for the offer! One thing - I advise you set the permissions of these things carefully. As mine aren't on the internet, I tend to keep them as 777 or something like that. Could you put the pages in www.yoursiteaddress.com/distributed and put everything else in www.yoursiteaddress.com/cgi-bin?

Can I just post the scripts for each page here? Hotmail doesnt letme have attachments any more.

Wrayal

Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

wrayal
Bipolar (III) Inmate

From: Cranleigh, Surrey, England
Insane since: May 2003

posted posted 10-28-2003 02:30

Could you go here: http://217.88.231.243/distributed/aquelunit.html
and tell me what happens adn which browser u are using? FYI, I think it doesn't work in mozilla

Please!

[edit]Forget that - had to shut down server - security issues. But it will return (I think - I dont know if I have a constant WAN IP. If not -> no DNS!)[/edit]

Wrayal

Go to kimber-ja.demon.co.uk and click on the link to the raytracer!

[This message has been edited by wrayal (edited 10-28-2003).]

« BackwardsOnwards »

Show Forum Drop Down Menu