Ning Ma blog

my technology tips

February, 2012

Setting up nagios3 to send prowl notifications

I spent a few minutes today setting up our nagios install at work to page me via prowl, instead of an email->sms gateway. Why? Because I’m cheap, that’s why – don’t like paying for any more texts than I must. I ran into a few gotchas, so I thought I would briefly document the process. […]

Installing Nagios Core monitoring system (client and server)

Nagios Core allows you to monitor your entire IT infrastructure to ensure systems, applications, services, and business processes are functioning properly. In the event of a failure, it can alert technical staff of the problem, allowing them to begin remediation processes before outages affect business processes, end-users, or customers. The monitoring server 1. Install Nagios […]

Ubunto No JAVA_HOME environment variable is defined.

1. Install java Currently the Sun Java 6 packages are working fine now for Ubuntu 10.10 and 10.04 users. It works fine for me.

2. Add variable

change /usr/lib/jvm/java-6-sun- to your java location

Choosing innodb_buffer_pool_size

Innodb Buffer Pool is by far the most important option for Innodb Performance and it must be set correctly. I’ve seen a lot of clients which came through extreme sufferings leaving it at default value (8M). So if you have dedicated MySQL Box and you’re only using Innodb tables you will want to give all […]

25 Best jQuery Tooltip Plugins

Tooltips, although are small things but one can’t underestimate their importance in website design. Tooltip is an excellent way to put up any extra information on site without hampering basic design or the main information. A “hover box” appears and disappears on hovering the cursor/mouse. Jquery Tooltip is the key to make a well made […]

55 jQuery Form Plugins To Download And Use

Default forms are boring and that’s for certain. Styling your form with a jQuery plugin is the solution for your aesthetic issues with basic and old forms. There are here 55 jQuery plugins for forms covering everything that you would think of related to form styling with the powerful jQuery. >> Start saving on printing […]

35 cool JQuery plugins

  jQuery is a speedy, succinct library that make traversing HTML documents, handling events, performing animations, and adding AJAX simpler. jQuery imparts web developers the opportunity to make websites better with incredible elements without the necessity to write down dozens of lines of code. In this compilation, you will find top 35 highly advanced and […]

Move a whole lamp site to another server

1. tar all folder

2. backup mysql DB

3.scp files from ssh to another server

4. restore the DB

5. tar gz file

6. Update httpd.conf 7. chown -Rf permissions 8. update DNS nameserver or ip

How to copy a mysql database using mysqldump

1. Back-up the original database that you want to “clone” In case you you have a mysql password for user root you need to use mysql(dump) -u root -p dbname and you will be asked for root password by mysql program. If you don’t wish to be asked you can youse mysql(dump) -u root -ppassword […]