Capistrano variables list

Capistrano variables list

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 [...]
Python: initialize a list

Python: initialize a list

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 [...]
Subversion: difference among checkout export and update

Subversion: difference among checkout export and update

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 [...]
Nginx 1.0.6 RPM package SPEC file

Nginx 1.0.6 RPM package SPEC file

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 [...]
Downgrade SVN from 1.6 to 1.4

Downgrade SVN from 1.6 to 1.4

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]; [...]
Sync two Amazon S3 buckets

Sync two Amazon S3 buckets

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]; [...]
Configure network card in promiscuous mode

Configure network card in promiscuous mode

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; [...]
MySQL 5.5.15 GA Released

MySQL 5.5.15 GA Released

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 [...]
14 Rules for Faster-Loading Web Sites

14 Rules for Faster-Loading Web Sites

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 [...]
Setup Amazon EC2 API tools on Macbook

Setup Amazon EC2 API tools on Macbook

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 [...]
© 2006-2011 Admon Home. All rights reserved.