Posts Tagged ‘ film ’

Next time you are afraid to share some ideas…

a251PKZ_460s

Advertisements

What is the second law of thermodynamics?

tumblr_mmot8p16zk1rn7cuxdf

I wish you died in Batman begins…

6400501_460s

Is it a spoiler?

4882027_700b

Random Movie Titles (M. Randoxx)

movietitlegen

This will be a short info about the Twitter account movieTitlesGen.

MovieTitlesGen is a script, which randomly generates movie/film titles with a genre and a rating. The script is rather simple, but i thought it produces some funny outputs. So I gave him a Twitter account and now M. Randoxx (movieTitlesGen) works all day and night to produce at least some smiles. You can see his last posts down at the bottom, in the widget bar on the right.

<boringCodingPart>
For those which are more interested in the details, how this script works. It simply gets a text file as input an grabs randomly some words from a sentence, which then is the title of the movie. These titles are between 1 to 5 words long. It than grabs a genre out of an array and a rating from 0 to 10, needless to say these are also randomly taken. At last it adds a punctation, eventually.
So the source code looks something similar to this snippet.

 $randomSentence=extract("TEXTFILE","$rand");
 @genre = ("Action","Adventure","Biographical","Comedy","Documentary","Drama", "Erotic",
 "Educational","Fantasy","Film noir","Historical","Horror","Splatter","Musical",
 "Reality","Romance","Science fiction","Thriller");
 @lineEnd=(".","!","?","");
 $randomGenre=int(rand($#genre));
 $randomRating=int(rand(10));
 $randomLineEnd=int(rand($#lineEnd));

 print $randomSentence.$lineEnd[$randomLineEnd]." (".$genre[$randomGenre].") ".$randomRating."/10 \n";

</boringCodingPart>

The output than looks like this:

  • In an endless markov chain (Film noir) 2/10
  • Schooling interfere with my education (Thriller) 1/10
  • Always worked for me! (Documentary) 8/10
  • Rejection of the ptolemaic system (Historical) 1/10
  • We learn nothing from history (Drama) 3/10
  • Reading with the radio on (Historical) 3/10

The hills have eyes

oXOYfju31kmjEChlpPyNkw2

If you take my black Swingline stapler…

jwwiQ9Bc0UqnDtczadZKrA2

Does he look like a bitch?

4258148_700b

That thing belongs in an museum…

5590816_700b_v1

What’s “pleh”?

5675357_700b

Did you slept with the director?

4709641_700b

Smile!

5078507_700b

Hey Lupita! Settle an argument for us.

4581988_700b

What do you mean…

4612368_700b

Money…

Back off…

 

How to call the police.

 

I see dumb people…

 

Snakes on a plane

Quick! Get the holy hand grenade!

 

%d bloggers like this: