daynah's gifts

so much going on recently. i just received daynah‘s birthday gifts for me. she totally spoiled me!

daynah's gifts daynah's giftslots of cute items include cinnamoroll candy, pocky, hellokitty candy, hellokitty dolls, japanese treats and a big and extremely soft pillow. can you guess what is the animal on the pillow?

i totally have to take a video (1.15mb) to describe everything ^___^

Die spam bots!

it’s not funny.. the spam spots are horrendous. now after i finally found a good way preventing them from infesting my wp, i found there’s another war i need to fight. they are eating up my bandwidth like MAD! this domain is using more than 10gb a month. thank you so much shi for giving me some more b/w. shi added 5 more gb for me and i about screamed when today i got ANOTHER email telling me i’m over 80% of my b/w limit. OMG when is this gonna stop?

it’s not all about popularity. because regretless gets 20 times more hits compared to pure essence and it does not even use more than twice the bandwidth. how pathetic! i know there are probably other reasons but one of the biggest difference is that pure essence gets hit by bots horribly. take a look

stats for Jan 2005 for pure-essence.net
stats for Jan 2005 pure-essence.net

stats for Jan 2005 for regretless.com
stats for Jan 2005 regretless.com

notice the b/w used by * are “generated by robots, worms, or replies with special HTTP status codes.” gosh i’m so mad. fortunately i’m not alone. i’m researching for different ways to block them. i’m reading How to block spambots, ban spybots, and tell unwanted robots to go to hell – it’s very comprehensive.

stupid cop ruin my night

everything was going great today until this cop came out of nowhere and totally ruined everything for me.

andy and i were planning to have dinner at a chinese restaurant. i was to drive to his work place after i get home since i get off at 5 and he gets off at 6. when i was walking out of the house to meet him around 6, i saw a police car parked outside of our house. then the police started talking to me. here’s our conversation.

police: how did you get that dent on your car?
me: *looking at my car* what dent?
police: *proceeded to point at this half inch tiny dent/cut at my rear bumper.*
me: oh that was there when we bought the car
police: when did you buy the car?
me: september. what is this about?
police: there was a lady and her car got damaged. did you back into her car?
me: what? no! when did it happen?
police: sunday
me: *thinking* that’s not possible. i was home all day sunday watching football games.
police: well your dent looks about the same height as her car’s damage area.
me: well, it’s a coincident then. i didn’t do it. how bad is her damage?
police: very bad. i’m going to have take some pictures. can i see your driver license?
me: *hands over license*
police: well, my camera is out of battery. are you going to be back later tonight?
me: yes.
police: i will have to come back and take some pictures.

*jeez, thanks for ruining my good appetite*

obviously i had to explain to andy why i was late. he was more pissed than me. as soon as we got home, the same police come knocking on our door. i asked him how is it possible that the lady’s car is badly damanged and my car only got a small dent/cut and a few barely visible scratches? he was like: i don’t know. i’m just doing my job.

WTF? do you have a brain?

he then got our insurance info. i showed him my car title and he said he’s gonna call the person who sold us the car to confirm my story.

OMG stupid cop stupid cop stupid cop!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

ok how funny. i just finished typing this. and the same cop knocked on our door and told us they confirmed that it was not our car. weird………………….

OMG geeky bday gift

ok i got my best geeky birthday gift today. LOL, you will have to be a geek to understand my excitement right now. hehehehe i’m soooooooooo happy.

you know how when you use opendir and readdir, you have to chmod your folder to 755 or 777 first? and how if you use mkdir, you won’t be able to delete the directory you created in ftp? it’s such a hassle. i just learned today that you don’t have to. OMG!! i wish i knew this sooner. the trick is to use umask.

if you want to try, just create a directory called test on your domain root, and put a testing file in it. i just put a random jpg. then paste the following code:

<? 
	$old = umask(0); 
	if($dh = opendir($_SERVER[DOCUMENT_ROOT]."/test")) { 
		while (($file = readdir($dh)) !== false) { 
			echo $file."<br />\n"; 
		} 
	} umask($old); 
?>

to a text file and name it “test.php”. upload it to your domain and run it. you should see something like:

.
..
yourtestingfilename

it worked for me. so no chmod. OMG i’m so happy, now i don’t have to chmod all the folders i upload in my gallery folder. muahahahaha!!!!

on the other hand, if you were to create a dir with mkdir. use the code below:

$u = umask(0); 
mkdir($path_to_ur_dir, 0777); 
umask($u);

that way you can easily delete the folder you created with ftp.

my birthday

it’s my 23rd birthday today. aw getting old :) at least i’m getting old with someone i love. andy’s birthday is next month.

i woke up with a card by my pillow (andy has to leave for work earlier than me). inside of the card is a poem:

23rd birthday card

Another year has gone by,
and so much has changed.
I’m your husband, you’re my wife.
I find it hard to explain.
We have two precious puppies
who both love you so much
It makes me smile to see misty jump
and bubo make his pig ears crunch
I remember on our first anniversary
I asked you to marry me
At that time I was young and eager
But there was something my heart could see
I knew from that point on
you are the one for me
And patience has finally paid me
so that we may be together
for eternity
I know you have to work today
but relax and take it easy
It’s hard to keep up with all
this stuff when life seems to busy
But I’m so much happier
now that I know
I don’t have to journey my
road alone
I love you, Andy

it made me cry ;_;

your radio blog

radio blog has been around for a while but i haven’t tried it until yesterday. i think it’s a great application. take a look at mine

if you want to install one of your own, simply go to radioblogclub.com and download the zip (you don’t even need to sign up) and follow the Instructions.txt. if you need further assistance with the instructions, this post provides lots of screenshots.

originally i thought you must have php on your server in order to host a radio blog. but i learned that you can even host your radio blog on free servers that does not support php. i’ve tried this trick, it really works. so i’m gonna summarize it for you.

how to make your radio blog without PHP
1. make sure you’ve downloaded and unzipped the files from radioblogclub.com
2. browse to the folder from your zip file with window explorer. now pick one mp3 file and paste it into your creat.sound directory. and double click on convert64.bat
3. after the file is created in your creat.sound/sounds folder, upload that file on a free server somewhere. now the file will end with “rbs” – if your server does not like that extension, take a look at this thread. i heard freetown.com is a good place to upload your files but i have not tried myself.
4. after you are done uploading. browse to your radio blog folder and open radio.blog folder. open the config.xml file in a text editor. change the following line:

<playlist path="sounds/playlist.php" />

to:

<playlist path="playlist.xml" />

5. open a blank text file and paste the following:

<?xml version="1.0" encoding="UTF-8"?> 
<tracks> 
<track trackMod="1999216396" title="TITLE OF YOUR SONG" path="URL OF YOUR SONG"/> 
</tracks>

replace “TITLE OF YOUR SONG” and “URL OF YOUR SONG”. remember “URL OF YOUR SONG” should be the url of the song you just uploaded. i.e. http://geocities.com/youraccount/mysong.rbs
Now save this file as playlist.xml (make sure the extension is not txt)
6. now rename the index.php in your radio.blog folder to index.html
7. load index.html, it should work! then just upload everything in your radio.blog folder on the free server.

happy radio blogging :) check dmb star members’ radio blogs

my gallery script

i’m so tired of all the gallery scripts available. maybe i’m just not looking at the correct location. i really don’t care about all the functionalities such as comments, rating, hits etc. i don’t even know why the scripts need a database support. i just want a script that quickly loads the photos and give me A LOT OF control of the layout so it will work with all of my themes.

here’s my idea. designate a folder for ALL PHOTOS for the photo album. let’s call this folder the root folder. each directory created within the root folder would a specific category. all folders created within the category folder would be subcategories. within each folder are all the photo files nothing else. there will be on php file in the root folder that holds the description of all photos in one big array.

when the script loads, it simply reads the root folder and then figure everything out from here. the script is able to generate thumbnails.

this would mean, you can upload the photos in bulk with ftp along with a description file and boom, your gallery should be updated. NO UPLOAD, NO DATABASE UPDATE and all those crap.

after looking around and trying a few different free scripts, i did not find anything that totally satisfy my need. then inspired by leslie’s gallery script , i’ve decided to write my own. it’s pretty much done. i still need to add a few more descriptions. btw thank you leslie for all your help during my development!

current features include:

  • auto read dir and its subdir
  • auto create thumbnails
  • auto generate the next and previous photo link
  • display __ number of random photos
  • display __ number of newest photos
  • auto delete thumbnails if the orginal photos are deleted
  • an admin script that allows me to regenerate thumbnails if necessary
  • an admin script that would generate my big description array like this
  • most importantly it will be compatible with all my themes! this means it’s validated xhtml strict

blah that’s all i can think of. i don’t think it will be sharing this script any time soon. it involves too much. but then sometimes i feel bad not sharing. we will see. if you think you will use a script like this, let me know.

threaded comments notification

ok i guess when i wrote up my threaded comments hack, i did not include the feature where the comment author who you are replying to will get notified by email. hrm it’s just an update in your functions.php under wp-includes.

here’s my code. you can replace your old wp_notify_postauthor function with it.

like always. BACK UP before you overwrite anything.

small bug fix – spotted by ecila
:) the reply notification does not include the commenter’s email address so i added it in now.

my cubicle

i think my cubicle is pretty cool. the first time i saw it i was actually surprised about how big it was. i mean for an entry level position, i was expecting a stall sized cubicle. haha.. not to say it’s really big or anything. you can’t fit another person in there easily but still for myself, it’s good enough.

a picture of my cubicle for your viewing pleasure. btw, the bubo graphic you see. it’s a print out of this haha

i also made a new layout for my tabulas. it’s not done tho. and hrm now i kind of realize the pain of making customized layouts for centralize blog service.. you don’t have all the control over the code.. like when someone on your friends list post bad code, it will affect your layout and messes it up XP. darn.