|
journal
all | Rob is 20,354 days old today. |
Sept 2007 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Nov 2007 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
2006
jan feb mar apr
may jun jul aug
sep oct nov dec
2008
jan feb mar apr
may jun jul aug
sep oct nov dec
|< << more >> >| |
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). permalinkProject 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. permalinkfree 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):
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. permalinkprev day next day |