journal
all all entries rss SoML excited dreams runes YRUU ultimate KTRU skate sleepy nihongo
Rob is 20,354 days old today.
prev day next day printable version

Entries this day: PHP_Code_I_needed Project_finished free_hugs

PHP Code I needed

12:33pm JST Thursday 18 October 2007 (day 13721)

I was searching for a way in PHP to split the REQUEST_URI into its constituent parts. Didn't find it, so wrote this:

<?php
$path = $_SERVER['REQUEST_URI'];
$parameters = basename($path);

// get the parameters into $params hash
$pairs = explode("&",$parameters);
foreach ($pairs as $pair) {
	$parts = explode ("=",$pair);
	$params[$parts[0]] = $parts[1];
}

foreach ($params as $key => $value) {
	echo "<p>" . $key . " is " . $value;
}
?>

I'm sure it can be used (by someone way smarter than me) to hack yer system, so don't use it. But against my own advice, I'm using it (cause I'm not way smarter than myself).

permalink

Project finished

5:22pm JST Thursday 18 October 2007 (day 13721)

Cool. I finished the project as per specs. There are a couple of tweaks I want to add (I just added one: automagic closing of a success-message window), and there's one extra thing that أوأ«¤µ¤َ asked for as soon as he saw everything, but those extra points will be relatively easy.

permalink

free hugs

8:14pm JST Thursday 18 October 2007 (day 13721)

Gave an hour's worth of free hugs in Hachiko Square tonight. Pretty low turnout for willing recipients. At 8pm I had been there 53 minutes and mentally logged 13 hugs. All but two were from individuals who came alone or whose partners chose not to hug. Usually the partners are automatically peer-pressured into hugging as well.

Hug number 11 was with a girl named Eda from Denmark. I teased her a bit when she specified it was "in Europe;" I guess she's had many blank stares when telling people.

Eda held the sign for about 5 minutes. She got an obligatory hug from her friend (but not her two Japanese host sisters), and then nothing for a while. She said it was okay because she knew people were at least noticing her and "thinking about it." After a bit she got a pair of hugs from two girls.

A couple of "hugs" were not really hugs in the sense that I know them.

types of hugs (assuming both participants have two arms):

  1. Excellent: both right arms on top, chest to chest connection, hands stationary on backs, awareness of each other's breathing, relaxation upon realization this is a real hug.

  2. Great: somewhere between Excellent and Good

  3. Good: four arms, strong squeeze, back patting, short duration

  4. So-so: four arms, no chest connection ("A-frame"), back patting

  5. meh: side to side, each person one arm, optional patting

  6. wtf: head hunched down with raised shoulder like to ram a door, no arm around anything, bump slightly into my chest instead of a door

One hug that I wouldn't really call a hug was like the wtf listed above. The other I can't really remember, but somewhere down in "meh."

After the 13 hugs in 53 minutes, I got a quick 6 hugs in 7 minutes. With that final 6/7 hug/minute ratio, I almost jumped the overall hour from a 1/4 hug/minute ratio to 1/3!

But still below the average of 1/2 (no mathematical pun intended).

Perhaps tomorrow night (Friday) will be a bit livelier.

permalink
prev day next day