Archive for August 2009

Lucky in my Shinjuku office hoarding slippers

This morning before an early meeting I found most of the slippers missing AGAIN. This is Japan and as you may know its customary for people to take off their shoes at the door. The culprit as usual "Lucky" my ferret, he seems to have a "thing" for collecting slippers. Here you can see him hoarding a bunch behind the Sun rack:

_IGP4957

He has another "cubby" of slippers up the other end of my office, when he makes his way with the slippers he cannot be stopped. Best to let him do his 'ferrety'** thing I suppose:
_IGP4714

_IGP4819

Loving the crunchy sounds a plastic bag can make ferrets go nuts when you give them one. Lucky is 100% deaf, but he still must get enjoyment from the feeling of it. Another thing they love is tunnels, tubes and holes. So if heaven for a ferret is a plastic bag, doubly so if it's in the shape of a two meter tube. Such treasure he found in my office:
_IGP4790

_IGP4776

_IGP4720

After about half an hour he gets a little tired, here he is plotting his next moves:
_IGP4896

More photos of that morning here.
After these acts of vandalism, he always returns to his natural narcoleptic state.

** Ferrety (new word by me)

Some simple redirection using PHP

Some simple redirection I wrote ages ago! using PHP, looks bad but works. I literally added to it as sites grew.

<?php
/************************************************************************/
/* Nexus Redirector: Web Portal */
/* =========================== */
/* */
/* Copyright(c)2002 Bernard Edlington bernard(at)nexusinternational.jp */
/* */
/* */
/************************************************************************/
function checknex() {
global $HTTP_REFERER;
global $HTTP_HOST;
$HTTP_HOST= getenv('HTTP_HOST');
$str = $HTTP_HOST;
$str = strtolower($str);
$site = "noneofyabusiness1.jp";
$site1 = "noneofyabusiness2.com";
$site2 = "noneofyabusiness3.com";
$site3 = "noneofyabusiness4.org";
$site4 = "noneofyabusiness5.jp";
$site5 = "noneofyabusiness6.com";
global $HTTP_HOST;
global $PHP_SELF;
if ((ereg ("(.*)".$site2, $str))||(ereg ("(.*)".$site3, $str))||(ereg ("(.*)".$site4, $str)))
{
header( 'Location: http://www.noneofyabusiness.org' );
}
elseif (ereg ("(.*)".$site1, $str))
{
header( 'Location: http://noneofyabusiness/-a.googlepages.com/home' ) ;
}
elseif (ereg ("(.*)".$site5, $str))
{
header( 'Location: http://www.noneofyabusiness1/-a.googlepages.com/home' ) ;
}
elseif (ereg ("(.*)".$site, $str))
{
header( 'Location: http://www.noneofyabusiness.jp/foobar/' ) ;
}
else
{
$pattern = array('/\.com$/', '/\.co\.jp$/','/\.jp$/');
$replacement = '';
$wiped = preg_replace($pattern, $replacement, $str);
$pattern1 = '/^.*\./';
$wiped1 = preg_replace($pattern1, $replacement, $wiped);
echo'<meta http-equiv="refresh" content="5;url=http://www. noneofyabusiness.jp/foobar/">';
echo'<center><h3>',$wiped1,' message here</h3></center><br>
<center><img border="0" src="/images/logo1.png" width="90" height="80" alt="icon"></a>
<img border="0" src="/images/logo2.png" width="358" height="26" alt="icon"></a></center>';
echo'<br><center><h3>you will be redirected in 5 seconds</h3></center>';
echo'<center><h3>click <a href="http://www. noneofyabusiness.jp/foobar/">here</a> if you have any problems</h3></center><br>';
}
}
checknex();
?>