Month: March 2006

  • PHP through TOR and Privoxy

    TOR and Privoxy can be used through PHP to enhance the privacy of your connection. First you need to setup and run both TOR (check /etc/torrc) and Privoxy (/etc/privoxy/config, then start it as a service). If something does not work, use wget or see the error log. The PHP code below get a page through…

  • Overture keyword suggestions

    This class extracts the suggestion keywords from Overture (Yahoo! Search Marketing) together with their popularity counts. Sample Output: array ‘dalat’ => 1894 ‘dalat resort’ => 426 ‘dalat nam viet’ => 359 ‘dalat palace sofitel’ => 97 ‘dalat hotel’ => 91 ‘dalat school’ => 63 ‘dalat flower’ => 62 ‘bi dalat vo’ => 60 ‘city dalat’…

  • 10 tips to prevent domain scam/fraud

    You get so excited because a potential buyer just contacted you for a domain with great interest, don’t go on a shopping spree or raise your expectation just yet, it might be a scam and you won’t receive any money or worse, lose your own money. There are con artists working hard days and night…

  • Gmail not receiving message

    Symptoms: messages are not coming to your account regularly Problem: when tried manually to talk to the gmail mail server, we got this error “The Gmail user you are trying to contact is receiving mail at a rate that prevents additional messages from being delivered. Please resend your message at a later time; if the…

  • ImageCreateFromGIF & true color

    If you use a GIF background and try to draw a text, even with GD2 and Freetype fonts, the text will has jigsaw and not antialiased. To correct, change the background image to a true color PNG.

  • Google Search API with PHP5 or NuSOAP

    If you want to search Google through their API. This class detects if you have the PHP5 SOAP lib to use or it should use the NuSOAP lib. With the search results in a PHP object, you should be able to manipulated the information easily.

  • Convert Vietnamese from UTF8 to ASCII

    If you need to convert from UTF8/Unicode Vietnamese with intonation/ascent signs like acute, grave, circumflex, tilde, dot below, hook above, and more to just plain old ASCII without any extras, or to VIRQ format. Here is a PHP class that performs the conversion. Some examples: an toàn => an toan áo giáp => ao giap…

  • MySQL: ALTER IGNORE

    To remove duplicated rows in a table, use ALTER IGNORE. IGNORE is a MySQL extension to standard SQL. It controls how ALTER TABLE works if there are duplicates on unique keys in the new table or if warnings occur when strict mode is enabled. If IGNORE is not specified, the copy is aborted and rolled…

  • Business Joke

    Father : I want you to marry a girl of my choice Son : “I will choose my own bride!” Father: “But the girl is Bill Gates’s daughter.” Son : “Well, in that case…ok” Next Father approaches Bill Gates. Father: “I have a husband for your daughter.” Bill Gates: “But my daughter is too young…

  • International Entrepreneurship

    Benefits Staying closer to the customers is important to the success of any business. If the product is not designed or targeted to the local market, the company needs to look for other countries or locations that have demand for that product. Additionally, any local market has a certain limit in size and going global…