Mindblown: a blog about philosophy.

  • Install or recompile mmcache

    This is old material as you should be using eAccelerator now. Install from source or best yet, RPM). This is for reference or for those who have not made the switch. Instructions Step 1. Compiling Turck MMCache run “make clean” first if recompiling export PHP_PREFIX=”/usr” $PHP_PREFIX/bin/phpize ./configure –enable-mmcache=shared –with-php-config=$PHP_PREFIX/bin/php-config make You must specify the real…

  • mod_dosevasive Configuration

    DOSHashTableSize The hash table size defines the number of top-level nodes for each child’s hash table. Increasing this number will provide faster performance by decreasing the number of iterations required to get to the record, but consume more memory for table space. You should increase this if you have a busy web server. The value…

  • Startup equity basics

    Par value has no relationship to the market value of a stock. The original purpose of this requirement was to protect creditors by specifying a permanent amount of capital (called legal capital)that owners could not withdraw before a bankruptcy which would leave creditors with an empty shell. Sales of the same class of stock made…

  • SQL World Cities Database

    Some data sets about world cities we no longer use — Generation Time: Feb 13, 2007 at 02:12 AM CREATE TABLE cities ( ID int(11) NOT NULL auto_increment, Name char(35) NOT NULL default ”, CountryCode char(3) NOT NULL default ”, District char(20) NOT NULL default ”, Population int(11) NOT NULL default ‘0’, PRIMARY KEY (ID)…

  • man ps – process status

    -O is preloaded “-o” -c different scheduler info for -l option -f does full listing -j jobs format -l long format -o user-defined format -y do not show flags; show rss in place of addr O is preloaded “o” (overloaded) X old Linux i386 register format j job control format l display long format o…

  • A simple Taconite usage

    We were testing Taconite a long time ago and this is a basic usage. Since we now use an internal AJAX framework, we release this snippet so someone might get an idea how to use this framework. It’s nothing fancy, only a simple snippet. $o = ‘‘; $o .= ‘‘; $o .= ‘‘; $o .=…

  • usleep & CPU usage

    If you’re making a PHP client-server script using a loop to capture events and process data. The CPU usage might be significant. In our test environment, it consumes 50% CPU cycles constantly. A quick and simple fix: add usleep() of about 100-500ms before looping again so it’s still interactive with users yet allow CPU to…

  • Misterious 500 – Internal Server Error

    This is a very generic error but it means there is some critical issue with the server. One time we experienced with this because our codebase was getting heavier and the default value of memory_limit=8M in php.ini wasn’t enough. Solution: increase this value to something higher

  • MySQL replication & a full disk

    To avoid the nasty mess because of a full hard drive, make sure your log files are in control. Things run really wild without diskspace! If you’re running MySQL replication, run “PURGE MASTER LOGS TO ‘yourbinlogname-bin.00x’” or “PURGE MASTER LOGS BEFORE ‘2007-05-30 10:10:10’;” to safely remove the logs before X. Make sure it’s a number…

  • XML Encoding in IE vs. Firefox

    If you experience “An Invalid character was found in text content.” error message when loading an XML document in IE but not in Firefox, you might have use some special character that is invalid according to the default UTF-8 encoding in IE. To correct, specify encoding=”iso-8859-1″ or check this link out for more details: XML…

Got any book recommendations?