Thursday, May 14, 2009

Procedural Text

Fun little experiment.

Basically I scan through some text files, record the number of times pairs of words appear, then go through and use them as probabilities one word will follow the next, and randomly generate text one word at a time.

Here's the result of Homer's Odyssey + Tucker Max's "I Hope they Serve Beer in Hell" + a Cave Story FAQ + a Pokemon Fanfic:

BOOK XXI

Minerva came up, shooting people who had to the for he had vaginas SlingBlade wasn't fucking verbatim off and you a freshly flayed me around and asked heaven has to another man's, and looking at sea, all went and also his own jism spat out his arrow into the bar, and the long enough lying all fighting for her. She's not right at sea came downstairs and scrub yourself a ki-ote caught hold and my age and killed him for spikes, use the dead body to be killed. Thereon he won't fit for these words he gonna make us back twelve days, for her home again; see that night, and a song suggestions and took an immortal gods were getting frustrated, I start playing "Friends in attendance on their suppers, and head right and went back to his own money I do better. He'll yell (in a couple lances, and the roaring winds, which was left the door, the end of the whole story.

TheCousin ten talents of the top of Peleus. The walls on the way. I went to lose an oar, till we will be weird slurping noise. At the blocks of the suitors. Ulysses said:

"Pisistratus, I pass out, into me.

10:00: Hate pushes his hand against a cute face." The teen girl unconscious (for I got too sober. I am, it for your beer breath bothering you, University of agony ... together." Redhead "I don't want a hole that I went on the back to girls. Oh, Steph ... I decide for I have at least three wheeler... up the better pick-up line so that night, I didn't fucking cheese-eating surrender monkey. I like the contest is a long way in our way I'm invoking that young in the hole is simple: I was, to your goats and challenge his return some plan for three wheeler... up among you in order a scratching noise that your tricks and starts hitting the same boy of Ulysses as she meant taking a cat bawling incessantly. I just try-ing to date, avoid the window to the island not been driven the door on your son: may see if you know, and lie without telling him in bad end to the flesh and then head and can't leave him down upon the blocks on in this you ever been?" May told him not let loose, vomiting all the first Ananament Gem so scared of an ox, or if you gods in the actual streets.
* This enrages me. Prudes suck.

4:16: She stopped and then go home with whatever I thought through markings like it would be funny, like trying to the walls of consider- able to shift moves on, if the power and I walk around for him. The only himself, he just to them, and care how I have sex . AND TAKE MING ARIVE!!" [To the best way home again. And this wife fucks the white thing starts rising. If you are over the cloister upon the ground. His heart was very thickly peopled, but I, who dwell in me to GoldenWife's apartment. We couldn't resist the fucking great cave, and the housekeeper took sign neither in Palo Alto, Fenwick, or any man had succeeded in our surroundings while Karl Childers. My friend who treated you, nor virtue, had made the benches and praying to do you are not associated with my longing to The Gathering tournament, a girl crumpled in my dick is found."

Ulysses was hilarious.

Of course, he had a semi-retarded man just entering the ring were guarding the night a shit, my mild cheers from me." 10:56: Much to herself, and by, for his brawny hand, hospitable and had swords or two. Its hind legs (they move left and to my mast in Palo Alto At bar to the crowd. I know a fair Diana went down, and treating so long?" Tucker "Baby, are nearly eight spears, and wrought with terrific squall from the cave sacred to bed.

By the occasion served; in Cyprus. Thence we weren't sure if haply you probably closer to play with a hurry to the truth, and just sat in my island. I did, for the battle in his comfortable bed outside the source of the bed, but were following the fluttering of the first face in the first weapon! The beauty whether he and now go out their hands, I guess we hurried off at me ... did we could have here and avoiding bats until you suitors, they saw was in the hotel, and moved still drunk. Your mother marry Eurymachus, who took me of humor and brought us shouted out into the story of us where taking her fits as well spoken shall have a blow it is going to where we have to see a dancing in their servants are putting on its force, and foreigners in my money's worth. He's King, a symphony of their course, my life.

EVERYONE HAS TO DOUCHE!! IF SOMEONE STUCK A 1-star (aka, Wildebeast): The sushi restaurant.



11:29: There does strange that Ulysses when she sees the gunfish sign, and powerful and it looks up, so at its first floor, telling me behind him down. Get that he went into his desk lady comes over her retch, the seat and deception (whereas the cut, and my being alive or he asked.

"I'm not let the way of the start hooking up. The weather comes begging about tards when he strung it took his turn, going to wash his mouth, all of a trip back waaaay to the floor of splooge.

This angers me, and I let my group of the ghost of it, pulling me for I were heaving and many great neck of your head, can't see that I am about whom I was the phone, calling and wash their voices in her taller than 5 or his being hit, just cum I decide it even as the =BUBBLER=, another matter. Is it remain away after a loud crash. Girl "I'm not really good account; may tell you are no longer."

Then came together and said, 'Achilles, son of the rock while the pen are doing; see if you have no one or you to normal, though they hook-up he may slacken your set about him with my reaction to Ithaca goes behind him. "Menelaus," replied Neptune, and nursed him from me. I agreed that you to sacrifice of the front of the town, Thomas, back home to get hit, right in the ship and it was a wife of your speech, and now began to father could have been left to get her this, it will not let out in sacrifice around this little and kick myself talking to get back. It was a long spear all about half of my fault that Ulysses and ignored, until she pretty sure to leave us shall have, and her to eat them said, 'as to get enough for those who was swerving from your house?"

Ulysses very angry, or on treesin the wooded slopes of awful burning.

5:23: She stayed where her anger of sandpaper or drink, Telemachus could see you, nor two dollars, I've measured and offered his wife? Even though you attack it washed, its sand.

Continue left on dark, whereon Agamemnon he was leaving the Phaeacians see that of those two servants had the sincerity of these suitors; begin talking to use the hotel, and tell you the Sunstones. To this to eat out of them together when they sent his bed is how carefully away, but somehow made them a humming sound like a clock thing before, I tell all my car [I could think that any one of sheep and handed round as they are, about salary, benefits, work bored you to say what you and told them to have flown off multiple partners are staffed by Vulcan's marriage takes me in tears him up the covers her for there was dead, and full of the wall and a ram, a firebrand."

Ulysses was much as a little else; nevertheless, those people have come, that he loosed the bow in number, watched American fast with good omen when it may be mad. The four whom he sees the approach the gods. Get another better comes out her fingers into my side? What was brewing. The Now the Cook County Emergency Room: Tucker "No, not knowing El Bingeroso is Vegas, they all honesty, saying:

"So I walked in wait for prizes as visitors for their cloaks on guys keep heading right. You will tell you all the sudden:

"BUUUUUURRRRRRRRRRRPPPPPPPPP!"

The swineherd might not attractive. I lied her he manages to kill me, smiled at the urinal

And the rest of there next thought of everyone, you have been ill-treating his son as much taller and sea. Furthermore, wicked witchcraft that they gathered under the richest, and the water and I turn into the ship of Icarius the house I was That was a cry out and PWJ said she, "could easily caught one else in Ortygia. So Eteoneus bustled back already knew what his own if you can avoid the ground seethed with five-pronged spits while on a chameleon's, his nurse went out all of the whole house; they never look went clean them something- even got back, and furnished him and no likelihood of my home, and it was this:

FatGirl and the room and take a friend can I hung a taxi or the faithful to lay it cheap carnival trinkets I whispered back.

I was the middle sheep, or do such a ball of condoms, and pocket the chief persons of silver. Everything I figured this the county along which is hot." SlingBlade "He got sucked miles walked in the house, but they are humans worthy henchmen, when he could then poise your nose and I was not fancy legal talkin' to decide to the ships had put my wide-open eye. I left Florida State Fair. He laid it was enjoying himself into my dash his cheeks are easy to the twentieth day to explain. My father, but I might be COVERED IN LOW RENT SHIT DOES NOT FUCK DA YEW TWO DAYS!?!?" Mike "Oh good, but those in one of the =GUM BASE=, and the store your wife.

"'When your old Misty" Brock Fortress did ill disposed to the prize for me into the bar after giving me off their being a matter how much longer; have sent me off! ME WRESTLE, I'LL FUCKING CLOWNS ARE KISSING IN THE GODDAMN DIGNITY?"

8:00: We looked around my brave companions when she held the corpses bespattered with your friends, and other of Iasus, who are we got. The bard sing the rocks. We then leave the clouds, and said, "No man, that's what I really cute, the shelter from destruction" the =IRON BOND=.

///////////// DECISION TIME \\\\\\\\\\\\\

If you did that when they did you 28."

This isn't it? Anyway, while swinging. Once ALL I was willing to the belt adorned with a helmet, and she drew well as he knows nothing of me the wind into a man can indeed could only that way? This jump at once. Now, therefore, will follow briskly behind a ripple upon the best of the center of this point blank say that I have kept a tramp such bad enough to entreat you a way over the cave, and clearly see Doug at the rocks he excels in full-on El Bingeroso man. He knocks King guy, we saw them over the star blocks hanging out any of us. These are whores."

Greased by the girls in the single tooth-and regaled us go on the actual tape was long pause.

"You're a great story and when he was OK. Here dwells the heavens. Winds from the great looking, and talk to the coolest thing to open the males, both ship and nursed me a ship, and Mermaid took the work when I ruled among themselves, and cannot wash and El Bing "Alright guys, and treated you, fucking with children rejoice when the seat inlaid with spears them and drink, Ulysses with all certainly been like ghetto romance. It was another Mimiga, then leave these guys I am." This girl wearing silver mastiffs which was too would one after you off his hair, with plenty of heroes by all agreed and my stomach muscles and Rick said.

"Well isn't that our bed to my clothes and heaven put a small cutscene, then get away from the car, which on board her building keeps running from toil and the belly by no ill deeds and wanted to a bar. He had driven hither and the nurses handed round the area and glistened most of Olympian Jove, from far. He thought was like 6am the string, and I called.

"Oh yeah and we bore the root than meeting one else that he had two girls that I try and anointed Ulysses ever mess with the poor things. I wished I just lays him when you will give up their work. And I can't take advantage of love for the shape of the gods and fucked her seat, and you are thinking of gay and torn by one, neither ships that summer associates in Duke or with a headlock. Hate ignores me out for it; so use your desire. I got her =AIR TANK= Use enough of my neighborhood. Tanner grabbed the sea. He is dawn will become the blind look out, just ended up Santa's house. Opposite them how many victims; but gave me be shot, throws a quarrel over your PENIS. This didn't say if you go about when she went onto it came in no the woman, Jenka, for his staff, or other. I wrote me off! ME of the front of the lobby, I am sitting over in Cyprus. Thence we too easy. You just didn't like Gone with thick clouds, while their side of the rest of love, he was actually thought that was surprising. Galgameth cried in the waves ran up to see the maids held the bottom" Tanner continued.

"That's attractive." PWJ is beguiling you, you you could not right."

"First light and many of helping one of Maxim, except for the message and save, then Circe has its way and I have been against the harbour, with the quiver full of my longing to look on my corner." I saw four minutes, I wasn't easy, he married, a crucial than myself."

"Is it left her lap: Woman "Oh Christ... not get supper ready, for about it is safe out of your knees and whose speech of a jungle, we were wonderfully like a tsunami of those polled vote and goats, pigs, and did as my own free will enter the =BOOSTER v2.0= back to accept the behest of my life, and Minerva answered, "Sir, you hear the corporeal interim one could easily caught- not scold her," replied giving him and threw up at Pylos, or risked so worn, so my mother. You can shoot them, and which my clothes ripped him immortal, no more seriously date guys workin' with its due pomp, build a nose job and broke out of the Heimlich. Apparently, it for the gods brought them lightly. So now took their crying, and cunning Aeaean island. Do whatever you met mine, and where you how but before Christmas Day One: Baby Dolls. I go to get back and ask yourself: Is stripper-fiancee going past her husband and as the Core of Nausicaa had to the nurses handed I come down to the middle; moreover she might eat. Presently Menelaus told her.

"But the men and killing the sink and that, but you to Laertes, go by night we might get it" John Steele to Ortilochus and leaning upon the split into the left the left of all a Swedish girl. She hung up for I AM NOT STUPID!" SlingBlade "A blind guy eat it, for a bird in principle, it is long and she goes wrong, and a man would say is avoiding bats as they are two nights that as Diana or a pity for a bathroom is persistent wooer, of numbers.

Once at all that was a piece of us had done already. Twice."

I help being driven far away alive, and strippers, double-fisting vodka haze that probably only been crossed our castle and when they made instead I was kinda looks are in Europe. Especially for him. Not that would come off.

1:12: My friend "Why have been the wine round, therefore, with a haven of the line so don't go to write angsty poetry?!?"

She challenges me this:

"Do I almost felt like a young pig you have a large a week after night or hares, but he can gain its wheat and went down there?" Jonathan replied.

Everyone turned to tell you will take us as the door on the final fleet was when the body shots arrive. Tequila. Judging by me, so drunk and spat out from the lab when he was setting out of Saturn, King Alcinous. The men who could best I want to her whenever he has brought them had beautified him drink with Andrew, a visit which was in the hottest girls who keep heading right for this one was that you need this sad thoughts with her on his phone with him. The room to do, we reached the guardian said.

"But there! It got back into Betty's mouth would have no time you to know I am quoting him sit here to the left. There was it. But then kill the twentieth year old and strangling her; she wants. They started honking, flashing bright line turn the Trojans. Anon he is easy. Mermaid "Networking, dude, it's over, enter the fields nor were trying the sheep as fast asleep. The conversation went on my ass off, because you when we had killed on cowboy hat really cute face, changed her face, holding and moaned and threw it was to understand. I like bad stuff I did not. Some one should land on to talk to make friends before he is in the cave this is so that Brownhole and attacked by Icmalius and large volcano. We get the time in the carver fetched water again, even large piece of his arrow on her steps; but eat his mind they were done; when you're with?" Tucker "HAHHAHMHAH ... I cannot cross on your pain and that night.

Tucker "Yeah, he could not; but not there is fun of her defense, do it! What the lamp in the plan." Tucker [A blank, unregistering stare] Girl "Hey Tucker, I even identifying other dirty puddle on board and bong water. Keep heading in case before Junior and dancing, and down to her couch beside him. I guess we wouldn't be a bridegroom and delighted in my site is your voyage to her timbers together and out then talk to ruin your temples. I had offered it from the table of the point out but SHE'S STILL lost your friend I'm going to us. There are fatuous, but I was like midnight." FatGirl 'Tucker, you have a ho into open window. Move, because unlike Tom Cruise, I said, when we have never so will, that has given me. I got two huge fake cell phone and I notice till bed with scrolls of fair wind. Here, we'll call the gleam of it SMELLS. I again raised a shaft and moon; then, my ship, while I can be seen. At the face; but tell me, the night the desk. The suitors would have fulfilled my fingers in there smiling grimly Sardinian fashion with his house of my pants.

1:24: I ran next moving person. Jove the Achaean name, put the facial. As for me:

Tucker "Have you are a grove of night to go. See how abominably you talked to kill it that Teiresias went down of all vicious sluts who were in my hospitality, and they had given to your jumps and that would take what port that she was stupid people they say and get back with a documentary about $800, John Cusack calls me not slowing us about my daughters and kinda spooky.

I would be especially not sent some goatskins and short, and enter the hot curling iron without eating, and hear that country, but some food out a sea shore. Was that has moved there is it true nothing bad some marginally attractive girl wearing a tiny Asian projectile fired at the perfect precursor to you die? Did you might have seen yet. Instead, go unanswered, "Who are smooth and men rushed upon thee. More especially to fuck her again and suffered at first to keep hanging out at all, it's not go home again using the gods who posted this to get the gates of things! What the deal of the Cephallenians, and shadows of the sea, and learned a girl not yet... St. Augustine!" All of the oil upon the child of Mentor, when you up to them how we took hold your men's eyes with the enemies, then was going down like it." Tucker "Thanks Dawn" Tanner yelled.

Wednesday, May 6, 2009

I caved

Monday, May 4, 2009

How to ask me a question

This has been on my chest for a while now. I often get asked questions about coding flash over aim, email, pm, etc. I don't mind answering questions, but I am not a personal tutor for everyone.

Anyway, this is how you should ask me questions (it's a good guide to follow in general too):

1. Don't sent me .fla files, send me a link to a .swf file, or a .txt file with the code in question. I'm not going to drudge through your source to figure out what's wrong, and part of getting better at coding is learning to isolate where your problem it. It's easier for you to do that than me, since I don't know how your code works, this is something you should do before asking me your question. If you show me a swf, I can help tell you where to look to find the problem usually if that's what your problem is.

2. Figure out exactly what it is you want to ask me. Numerous times I get asked, "what's wrong with my code" and they show me a swf, and from looking, 90% of the time the ENTIRE thing is messed up and buggy, or nothing seems messed up and buggy, and neither of those situations helps me help you. I also get this sometimes: "Can I ask you a question?" "ok," "How do I make [complicated feature]?" As I mentioned before, I'll answer questions and help point you in the right direction for tracking down bugs, but I am not a tutor. Make your question specific, technical, brief, and detailed. Rather than ask me how to do accurate collision detection, for instance, ask me how to collide a point to an irregular shape, or a circle to an irregular shape. I'm fine with those types of questions, but being generic doesn't help, and even if I answer the generic question one way, it most likely isn't the answer you were looking for, and it wastes both our time.

3. Narrow the code you send me. I don't need all your code, only the parts relevant to what your question is about. If you can't figure out what parts are relevant, either you have a really really weird problem, or you need to spend a little while learning how to code before attempting something big.


This is how I'll answer your questions:

I won't edit source files for you.
I won't code stuff for you.

I might point out syntax errors or typos, or give you one or 2 lines, or tell you to move this line there and such, but those are only minor changes.

If your code structure is way off or confusing to answer, i'll let you know, but I wont be able to help you much.

If it's a theoretical thing, I'll tell you what to look up online in order to accomplish what you're trying to do.

Thanks.