Author: admin

  • Install PowerDNS

    http://rtfm.powerdns.com/compiling-powerdns.html CXXFLAGS=-I/root/trungson/downloads/boost_1_33_1 ./configure –with-modules=”geo bind”

  • LVS-Tun & ISPs

    LVS is a software load balancing solution. It’s open-source software, built directly in Linux kernel and it’s free. The director (load balancer) can be in one DC, and the real servers are in different DCs. The director only needs good bandwidth, Pentium 4 or even P3 is fine since it’s Layer 4 switching (less overhead…

  • Dual Opteron 248

    Just got another ad server, Dual Opteron 248, 2GB RAM, 36 G SCSI. Running the test suite. This seems like a powerful machine. AMD is winning the heart and mind of the web hosting world.

  • CRC32 hash collision

    I was trying to use CRC32() to uniquely identify distinctive domain names because it’s probably the most economical in MySQL datatype (int only takes 4 bytes) comparing to MD5() as a 32-char string. However, it seems hash collisions with CRC32 occur too frequently. Just in a set of about 800k string, got a bunch of…

  • Housing Booms, Busts, and Where Opportunities Occur

    Robert Kiyosaki “Is there a real estate bubble?” That’s the question I’m asked repeatedly. When I reply honestly — “I hope so” — my questioners’ fear occasionally turns into anger. There are seven stages of a financial bubble. read more | digg story

  • 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.