geeky

firefox is a good js debugger

did you know firefox is a really good javascript debugger? yes i’m a bit slow. i thought firefox does not show js errors. in fact, if you type “javascript:” in the url, a js console will pop up. i’ve been using IE for js debugging for a long time. and it’s HORRIBLE.. the msg is… Continue reading firefox is a good js debugger

geeky · php code

time left php function

just a simple function that returns how many days, hours, minutes and seconds are left given a timestamp i put together. kinda bored so sharing some code XP give either $time_left (time left in timestamp) or $endtime (an ending timestamp)

geeky

xmlhttprequest chat

i knew someone would get it to before me 🙂 as soon as i learned about xmlhttprequest, i thought it’s totally possible to write a chat script with it. well here it is! but it’s still very primitive.. maybe i will help develop it since i’m seriously considering using one for the new dmb 🙂

geeky · personal

ebay tips

i’ve bought over 10 items from ebay. just recently i almost did not receive the product i paid for. so i talked to a ebay agent at live chat. unbelivably the agent was very competent and gave me quite some valuable information. give your seller a last chance in my case, i did not receive… Continue reading ebay tips

geeky · php code

write better search engine in php

my limited mysql knowledge always produced inaccurate search results when i write the board search engine. i want to do better this time for the new board so i’m reading this and trying out mysql regular expression and full text search. i’m pretty excited. oh also, leslie reminded me. this perl style coding will save… Continue reading write better search engine in php

geeky · php code

mysql date column type

i have to say that the decision to make the birthday column for members on the new board type DATE is a very good one. i never knew about all the magic mysql DATE type can do 🙂 but i still love the simplicity of time arithmetic unix timestamp provides.

geeky · php code

javascript unescape like php function

when you start dealing with languages (i.e. chinese) that require 8 bit encoding or more, you will learn about all the wonderful jazz of utf8, unicode, ISO etc. i was looking all over for a php function that does what javascript unescape does. normally rawurldecode would work, but…