Monday, August 23, 2010

MyTop for MySql - Installation guide on CentOS

MyTop is the console-based tool for monitoring the overall performance of a MySQL server. The installation steps are as follows

# yum install perl-TermReadKey
# wget http://www.mysqlfanboy.com/mytop/mytop-1.9.tar.gz
# tar -zxvf mytop-1.9.tar.gz
# cd mytop-1.9
# perl Makefile.PL
# make
# make test
# make install


Now we need a config file as follows

# vi ~/.mytop

user=root
pass=YOURPASSWORD
host=localhost
db=YOURDBNAME
delay=5
port=3306
socket=/tmp/mysql.sock
batchmode=0
header=1
color=1
idle=1

Monday, April 12, 2010

Using PUTools with Python for S60 Ver 2.0.0

Python for S60 developers installing PUTools should follow the original document up to "Getting started with push (Python Utility Shell)"

And before proceeding with "On the phone" section do the following

(i) On phone edit phpush.py as follows

[Original phpush.py - Line 1 to 13]

# phpush.py
#

import appuifw
import phcomm
import os
import sys
import glob
import code
import thread
import pushlib
import graphics
import e32

[Modified phpush.py]

# phpush.py
#
# The memory card of my phone is e: and so have Python & Python/libs
# directories on e: drive. Change the path according to your phone.
import sys
sys.path.append("e://Python//libs")
import appuifw
import phcomm
import os
import glob
import code
import thread
import pushlib
import graphics
import e32

(ii) On phone modify phcomm.py stored under e:/python/libs directory

[Original phcomm.py - Line 32]

import socket

[Modified phcomm.py]

import btsocket as socket