Posted by joseph on October 24, 2011 ·
If you’re running Capistrano for deployment, you might be confused by its vairables, here’s a list of the variables that used by Capistrano:
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src [...]
Posted by joseph on October 16, 2011 ·
I met this issue last week, and finally got a proper way to handle it.
We normally init a list like this “list=[]“, then how can we initialize a python list with a string variable?
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js [...]
Posted by joseph on September 17, 2011 ·
As we know, Subversion uses hidden directories of metadata to enable the functionality it provides. These .svn directories are what makes a directory into a Subversion working copy. Without these, it’s just a directory and Subversion can’t do much with it. UPDATE is an operation that is performed [...]
Posted by joseph on September 4, 2011 ·
Here’s is a SPEC file for building the latest Nginx-v1.0.6 on RHEL/CentOS platform. My Basic modifications are:
Nginx would be installed in a dedicated directory named /opt/admon/nginx
The Nginx serves as a basic web server. Only a limited amount of modules are enabled. You can update it by [...]
Posted by joseph on September 2, 2011 ·
Sometimes, you may face this issue, how can I downgrade a subversion repository properly? As Subversion does not officially supply this toolset, we’ll show an example on how to downgrade an svn repository from 1.6 to 1.4 via svnsync.
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
[...]
Posted by joseph on August 3, 2011 ·
When using Amazon S3 to store the web files, you may face this question sometimes,
How can I keep the files for my productive environment exactly the same as develop environment? (In other words, you want to remove the unused files in dev environment.)
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
[...]
Posted by joseph on July 30, 2011 ·
When running in promiscuous mode, all traffic the network card receives can be read. This configuration is useful for us to do network monitoring, like for a network intrusion detection system.
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
[...]
Posted by joseph on July 29, 2011 ·
MySQL 5.5.15 GA has been released in 28 July 2011.
Functionality Added or Changed
The undocumented –all option for perror is deprecated and will be removed in MySQL 5.6.
Bugs Fixed
InnoDB Storage Engine: A failed CREATE INDEX operation for an InnoDB table could result in some memory being [...]
Posted by joseph on July 13, 2011 ·
This is a forwarded copy from Steves Souders‘ blog site. These rules are the key to speeding up your web pages. The key insight behind these best practices is the realization that only 10-20% of the total end-user response time is spent getting the HTML document to the browser. We need to focus [...]
Posted by joseph on July 10, 2011 ·
This article is meant to be a quick guide that introduces how to get started with Amazon EC2 commandl-ine tools on a MacBook Pro. Most of this information can be found in EC2 API docs, and this is not meant to be a replacement of the documentation, just trying to show the things needed in a clear and [...]