Friday, May 10, 2013

MySQL Ring Replication Configurations

my.cnf / my.ini



[mysqld]
server-id = 1
replicate-same-server-id = 0
auto-increment-increment = 10
auto-increment-offset = 1
log-bin = mysql-bin
log-slave-updates


SQL

ON MASTER

FLUSH TABLES WITH READ LOCK;
SHOW MASTER STATUS;
UNLOCK TABLES;

ON SLAVE

CHANGE MASTER TO
    MASTER_HOST='master_host_name',
    MASTER_USER='replication_user_name',
    MASTER_PASSWORD='replication_password',
    MASTER_LOG_FILE='recorded_log_file_name',
    MASTER_LOG_POS=recorded_log_position,
    MASTER_CONNECT_RETRY=10;

Friday, March 22, 2013

MyPasswords 2.94

MyPasswords 2.94 released.

This version new feature: Customization of icons for tags in tree view.
Simple put a png icon with the same name of any tag in the icon folder to have it in the tree view.


Download here: http://www.mypasswords7.com

Friday, December 28, 2012

Make VIM More Coder Friendly

Add these to ~/.vimrc

set tabstop=2
set shiftwidth=2
set expandtab
set autoindent
set number

Friday, November 23, 2012

Numeric Password Dictionary File

Today I wondered how big will be a dictionary file containing all numeric passwords of 8-digit numbers (with padding zeros).

So I created one using a simple Java program and amazingly it is a 900mb file.

You can download it here: http://goo.gl/yRmz6


Monday, June 4, 2012

Me and Ubuntu rejoined

It was almost 1 year ago that I got disappointed with Ubuntu Linux; After more than 4 years that I had been using it as my first Desktop operating system I left it for other distributions. They become somehow against Gnome 3 shell and developed their own Unity. The unity was not as light as Gnome 3 and was not supporting all hardware (in compare to Gnome 3 shell).
Since then I have used several distributions. Debian (my favorite server distribution), Fedora and Linux mint.
After 1 year I installed Ubuntu 12.04 2 days ago and I can say they have solved hardware compatibility issues and it is not that much sluggish as it used to be.

Still I do believe Gnome 3 is more user friendly and they have their own philosophy in desktop, but Unity's sidebar is still originating in MS Windows taskbar.