Using Online Translator As Web Proxy
Some of us are happy enough having nice internet connection, full access anywhere. But for those who use internet from office, sometimes the network administrator restricts some website to visit (friendster, myspace, altavista etc). Many reason for it. Mostly, to enhance worker performance and to avoid virus and other malwares.
But it feel like we have a gun with bullets inside, but we can’t shoot at the target because we’re inside a very thick wall. So how to trick your office’s rule? Simply using any online translator!
I’m not telling you a joke. Let’s give it a try. Okay, let me mention two famous translator: Babelfish and Google Translate.
Open one of them (Babelfish or Google Translate), fill the URL you want to see in the input box and select any language into English. We choose “into English” to avoid the translation. We don’t want to translate the page, right? We only want to open the page.
If you’re lucky, your desired page will be opened. Just enjoy it and watch you back, your boss might behind you and watch you crawling on cool Japanese girl site ^o^
Stupid Linux User
I visited MediaTech Expo ’06 at Mandala Bakti Wanitatama building, this afternoon. Then I went to laptop booth and saw there are some laptops with Linux installed on it.
Sound like a good news, because most people here using pirated Windows for their operating system. So I got closer just to find out what distro they might use. Seem it’s Mandriva.. I opened the shell…
Voila, I got root!
Yeah, naughty is my middle name. I created user with my sweet and famous nickname, sandal. Leaving some message for the owner and do some bad thing with the laptops he.he.
Don’t be worry, I didn’t have enough time to write rm -rf *.* ^_*
Create Thumbnail on The Fly Using PHP and GD
Here’s a cool script I use to resize picture on the fly. I don’t wanna loose any space in my server, so instead of creating a real thumbnail file, I generate a thumbnail on the fly.
First, specify the HTTP header.
header("Content-type: image/jpeg");
Then, this is the formula to resize the image with aspect ratio. We will only need to specify new thumbnail's width. And its height will be automatically set.
// get image size
$file = $_GET[image];
if($size = GetImageSize($file)){
$w = $size[0];
$h = $size[1];
//set new size
$nw = $_GET['width'];
$nh = ($nw*$h)/$w;
}
else{
//set new size
$nw = "0";
$nh = "0";
}
?>
Now let's draw the image:
//draw image
$src_img = imagecreatefromjpeg($file);
$dst_img = imagecreatetruecolor($nw,$nh);
imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $nw, $nh, $w, $h);
imagejpeg($dst_img,"",100);
imagedestroy($src_img);
imagedestroy($dst_img);
?>
Save above pieces code into a file, name it thumbnail.php, for example. Then, call it with common <IMG SRC="thumbnail.php?image=img/picture.jpg&width=150" />
Your image should be succesfully displayed. If you have any question, please don't hesitate to contact me yeni.setiawan AT yahoo DOT com ^_*
Back Again!
Huraaayy!!! This evening sandalian.com is available again.
For 1-2 weeks, we’re down since sandalian.com had reached its bandwidth limit. I’ll check the problem tonight. Nice to see you again, reader ^_*



