Closed Thread Icon

Topic awaiting preservation: random coding kwestion Pages that link to <a href="https://ozoneasylum.com/backlink?for=12209" title="Pages that link to Topic awaiting preservation: random coding kwestion" rel="nofollow" >Topic awaiting preservation: random coding kwestion\

 
Author Thread
mikey milker
Paranoid (IV) Mad Scientist

From:
Insane since: Apr 2000

posted posted 05-10-2002 06:53

hey hey...

i'm currently working on some web-based art-fag random-experience deal and i need some basic help with the code. i don't need specific technical mumbo-jumbo details, just a general overview of how it'd be best to go about... well, maybe i should tell you what i want to do first.

problem one

what i'm envisioning is the ability for a visitor to input text of their choice into a page on a web page. from there that text would be run through a "translator" of sorts that would basically be in place to butcher the text into something nonsensical. for example, when you run one-sentence of english through babelfish multiple times using different languages and eventually convert it back to english.. well at that point it barely resembles what you started with.

after that the newly-generated text would then be displayed to the next page the person would be visiting via a link located on the "text input" page.

what i'm envisioning (realize i have very little background in programming so this is probably the wrong approach) at this point is the input text is run through a script of sorts that manipulates it before storing the new output to a text file that would save prior entries and append the newest entry to the top of the file so it would be displayed first when called upon for "random" display.

does this make sense? i hope so... basically i need a general explanation of how something like this might be approached so i can use it in support of some graphical mock-ups i have to show next week for a proposal.

problem two

is it possible to write javascript code that would make a onclick popup window appear with random width and height dimensions -- while also being able to set min & max values as 'reasonable' boundaries?


thanks for any ideas or help you guys might be able to offer!

cheers.mikey.milker

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-10-2002 07:36

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.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-10-2002 08:32

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.

mikey milker
Paranoid (IV) Mad Scientist

From:
Insane since: Apr 2000

posted posted 05-10-2002 08:39

ini --

great information, thanks a million. i didn't even need code on the second one but what you wrote makes perfect sense and i look forward to eventually getting the chance to implement that stuff.

i never knew about that msdn link either! i bookmarked it and will check it out when i'm more awake tomorrow -- looks like a good resource.

as for problem a, i'm just look for a general description on how i would be able to do that. for example, what programming languages would i be using and what files would there have to be. i'm assuming a translator file or program for reference and a saved text file for output... but can you just explain the basics of how that would be approached?

thanks again!

cheers.mikey.milker

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-10-2002 08:52

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.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-10-2002 13:50

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.

Veneficuz
Paranoid (IV) Inmate

From: A graveyard of dreams
Insane since: Mar 2001

posted posted 05-10-2002 14:07

I think the code is supposed to look like this:

code:
...
intervalX = maxSizeX-minSizeX;
intervalY = maxSizeY-minSizeY;
var randX = (Math.round(Math.random()*intervalX))+minSizeX;
var randY = (Math.round(Math.random()*intervalY))+minSizeY;
...



InI forgot to put the X and Y behind the interval when defining the rand variables.

-= Veneficuz =-
"Mundus vult decipi. Ergo decipiatur."

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-10-2002 14:15

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.

mobrul
Bipolar (III) Inmate

From:
Insane since: Aug 2000

posted posted 05-10-2002 14:33

Would now be a good time to say 'welcome back'?
If not, I'll just say 'hey'.
mobrul

« BackwardsOnwards »

Show Forum Drop Down Menu