JavaScript Get Scroll Information
The script goes here : getScroll.js [codesyntax lang="javascript"] // get scroll information (cross-browser compatibility) function getScroll() { // t for top, l for left, w for width, h for height va… Continue reading
Introduction to MongoDB
Installation on Windows : 1. Download and install http://fastdl.mongodb.org/win32/mongodb-win32-i386-1.6.5.zip unzip mongodb-win32-i386-1.6.5.zip to D:\mongodb 2. Create folder where database located … Continue reading
Version Control with SVN
1. Create trunk from proj_src(source code) : [codesyntax lang="bash"] $ mv /root/proj_src /home/projects/ $ cd /home/projects/ $ svn import proj_src svn://192.168.1.119/proj/trunk -m "create proj trun… Continue reading
Introduction to NodeJS
1. What is node.js and what does it do? Evented I/O for V8 JavaScript. To provide a purely evented, non-blocking infrastructure to script highly concurrent programs. 2. Basic concept : blocking and no… Continue reading
Master-Slave MySQL-5.1 Replication
Environment: RHEL: 5.3 MySQL: 5.1.54 Master : 1. MySQL user and group [codesyntax lang="bash"] $ groupadd mysql $ useradd -g mysql mysql [/codesyntax] 2. Download and install MySQL [codesyntax lang="b… Continue reading
Example of nginx.conf
Download example of nginx config file : nginx.conf [codesyntax lang="apache"] # nobody nobody but you ... user nobody; # max concurrent requests = worker_processes * worker_connections worker_processe… Continue reading
Customizing Magento Module with Event-Observer
1. About the Module : This module is for media sync when deploying magento as distributed application Module located at : app/code/local/Kim/Syncmedia/ There are only 4 files list below to make that a… Continue reading
PHP-FPM for RHEL
1. Patch PHP-FPM to PHP [codesyntax lang="bash"] $ wget http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz $ wget http://cn.php.net/distributions/php-5.2.17.tar.bz2 $ tar -jxf php-5.2.17.tar.b… Continue reading
Custom Function - getElementsByClassName
[codesyntax lang="javascript"] document.getElementsByClassName = function(className) { var hasClassName = new RegExp("(?:^|\\s)" + className + "(?:$|\\s)"); var allElements = document.getElementsByTag… Continue reading
My /etc/rc.local in Development Server of RHEL
[codesyntax lang="bash"] #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V sty… Continue reading