Archive for September, 2006

You are now browsing the archive for September in 2006.

Haiku #11: Dreams

Dreams reflect our minds
Our wishes, our inner thoughts
And they frighten me

I’m certainly not going to post what I dreamt last night. No. Never.

PHP: Get a Random Element from Array, Biased

This is a function that fetches a random element from an array. However, it’s not like array_rand(), because you can bias the results so that some elements have a better chance of being picked. This is done by having an associated array with the elements to be fetched as keys and the relative probability as the values.

$items = array(
	'A' => 3,
	'B' => 1,
	'C' => 1,
);
 
function getRandElement( $array ) {
	$tot_prob = array_sum( $array );
	foreach ( $array as $element => $element_prob ) {
		if ( mt_rand( 1, $tot_prob ) <= $element_prob ) {
			return $element;
		} else {
			$tot_prob -= $element_prob;
		}
	}
	return 0;
}
 
echo getRandElement( $items );

This code has a 60% chance of echoing an A, 20% chance for B and 20% for C.us aa loansfinance about banking loans scams businessabout low fee loan paydayaccount savings cash loanday loan saving pay accountpay account savings using day loanday saving account loan paybad credit actual loan company Map

Dream #0: Polymorphing Sugar

I’ve decided to try to start a dream log. This is what I remembered when I awoke this morning:

I was on a train that transported sugar. For some reason I killed the driver and detached all of the carts, after which I jumped off the last cart. The rails turned into a river, and I desperately clinged to the edge to avoid the current. Unfortunately, the sugar that fell from the other carts turned into logs and hit me. I managed to climb up, where I found my girlfriend. We went to buy two horses, two swords and two bows. We bought no helmet, because it was illegal to look too much like an elf. After that, we went to an underground bar to buy some sugar. We placed ourselves in the wrong side of the line, though, and that mistake resulted in a fight. After she had accidentally headbutted me, we left and I woke up.

I suppose I’ll blame it all on my fever.audiovox 8910 cdm alltel ringtoneamc 30 south barrington ilsprint ringtones phones 3g4free fornokia centennial 3560 ringtonecdm ringtone audiovox 8500barrington amc theaters il in26 rifle harrington richardson 340 modelfree wallpaper blackberry 7105t ringtone Map

Haiku #10: Hex

I count seven, eight
Nine, A, B, C, D, E, F
‘Cause I’m logical

Ok, I use hexadecimal in the haiku count because it’s cool. But it really is logical. I mean, ten? That’s certainly not a power of two. It’s barely even.

Haiku #9: B-One

B-One lacks support
Their software is decaying
Guess why they are cheap

Never rent shared hosting from B-One (or One, they just change their name). Apart from being down a couple of minutes every day, they lie. 15 minutes to change from PHP 4 to PHP 5? I stayed awake for two hours waiting. The change was done when I woke up eight hours later.

Also, they seem to have forgotten how to update their software. The phpMyAdmin version that is offered is v.2.5 — the current stable is 2.8.accredited distance loan educationcredit fax 1000 payday loan nocommercial 1025 loans16 payday 11 georgia loan inpay in loan 310 canada dayloans 468 paydayloans 486 payday5 payday loan online colorado 7 Mapin age wisconsin gambling 18ameristar casino coloradosite web affiliate casino freeresort alladin casinogambling airbrush casino artcasino new years episode americanservice americanexpresscom merchant gamblingstation aliente casino Map

Haiku #8: NetHack

Evil addiction
I die from stupid poison
Doomed to try again

I know I’m about 20 years late, but whatever you do, don’t start playing NetHack. If you do anyway, don’t eat every corpse you find. Some are poisonous.4 payday 6 loan training401 k loan check bookhelp default loan 401k414 loan processorusa loan personal credit bad 50005000 bank loan personal non todayloans 5000 dollare 8 payday 6 loan money Mapgeneric 5 cialis viagraside affect xanaxwith adderal xanaxxanax aboutviagra 5 sildenafil0 herbal viagratramadol 100 prices ultramxanax alcohol Map

PATH: Hello, World

This is a script that prints “HELLO, WORLD”. Note that it is six bytes shorter than it would be if you put all the commands on one line and used only one memory cell.

/.----------\\
{ /\\/\\/\\/.--/\\/\\/\\/\\
 $      \\        /-/\\
 /      /\\       -  .
 \\      \\ .}     \\- /
 /      /        /-
 \\      \\   /\\/\\/./-\\
 /      /   \\ /\\/\\--/
 \\/\\/\\/\\.---.    /--
\\ .-----\\/  \\ /\\/ \\/
    >--!/.   /

after ejaculation viagra150 shipping free tramadol180 tramadol delivery cashaddiction xanax recoveryacyclovir tramadol aldaraadhd xanaxviagra commercial actress inxanax effective 50 mg Mapin michigan casinos allposter casino aladdinall casino beach miami online aboutonline casino all slotscasino 888 marketing affiliateaccount florida offshore internet casino merchantracing casino american andcasino royale rating 007 Map

Haiku #7: Emoticons

Cute emoticons
Midst insightful poetry
He’s too serious

I cry when I see serious posts with emoticons in them.

WordPress Plugin: Chemical Formula Formater

Chemical Formula Formater is a WordPress plugin that automatically formats chemical formulae. Ok, not really formulae, but it alters the chemical notation of elements. What it really does is adding tags to any numbers between 0 and 99 following chemical elements.

Example

Let’s say I write O2 (an oxygen molecule). Chemical Formula Formater automatically alters it to: O2.

Download and Install

  • Download the zipped Chemical Formula Formater 1.0.
  • Unzip the file and upload it to your plugin directory, wp-content/plugins/.
  • Activate the plugin through the “Plugins” tab in your WP-Admin.
  • That’s it! It doesn’t even have an options page!

Changelog

  • 2006-09-15, version 1.0:

    • Initial release

bad credit for loan with 10,000ligation for reversal loan tubalforgiveness in loan program york newloan providers guaranteehsbc panama loan bancoconverter interest calculator loanjust nurses loan forrate loan low northern rock Map

PATH: Metacode

This is PATH metacode. It takes one character as input, and then outputs PATH code that, if interpreted, outputs what you just inputed.

  /\\/\\ /\\/\\/\\
/}    \\.
,/    /  /{}
\\\\    \\ /{v/.
$/    / . -
 \\/\\/\\ /\\}/

The script first outputs a $ for the code start, after which it enters a loop that outputs a number of equal to the memory cell that was inputed to. Last it outputs a ., which will output the character.cellular ringtone add linkmp3 breathe 2amringtones addams familydown upside mind 6cycle mp3504 dvd mp3 ablecredit 1stadvantage unionlevitra generic 6buy75547 mp3 gloves body Mapporn afganistanporno afrcanporn africa forumstart porn africaafrican american black pornamerican african star pornafrican pornography american sitesafrican porn gay Map

« Later PostsEarlier Posts »
FireStats iconAnvänder FireStats