Posts tagged Time
Mysql Database Replication
Dec 20th

Howtoforge.com does it well, but it took me some time, and in particular I feel one command was left out. Start by removing the bind address in /etc/mysql/my.cnf:
#skip-networking
#bind-address = 127.0.0.1
Then add the following to /etc/mysql/my.cnf. Particularly to the mysqld section!!:
log-bin = /var/log/mysql/mysql-bin.log
binlog-do-db=exampledb
server-id=1
Exampledb is the database that you intend to replicate. Server-id should be 1 being that we are dealing with the master server. Make sure that you have the log directory /var/log/mysql. On the server login as root:
mysql -u root -p
Enter the password you configure when you setup mysql. If you don’t know the password you can reset it by skipping the grant tables:
sudo /etc/init.d/mysql stop
mysql --skip-grant-tables
Then login as root:
mysql -u root
Then change the root password:
UPDATE user SET password=PASSWORD('newpassword') WHERE user='root';
Then restart mysql:
sudo /etc/init.d/mysql restart
Then login as root:
mysql -u root -p
The latter, resetting the root password, was a slight digression that may be helpful. Now add a new user with replication privileges:
GRANT REPLICATION SLAVE ON *.* TO 'replicate'@'%' IDENTIFIED BY 'replicate';
The previous command will create a user replicate with password replicate. Your slave server will connect to the master as user replicate.
Then flush privileges:
FLUSH PRIVILEGES;
USE exampledb;
FLUSH TABLES WITH READ LOCK;
SHOW MASTER STATUS;
UNLOCK TABLES;
quit;
Show master status displays information about the log file mysql generates. It will give you the log position which is necessary to synchronize the slave.
Now onto the salve. Login to the slave mysql server:
mysql -u root -p
Create a database of the same name that is on the master:
CREATE DATABASE exampledb;
quit;
Edit the slave’s /etc/mysql/my.cnf file, add:
server-id=2
master-host=192.168.0.100
master-user=replicate
master-password=replicate
master-connect-retry=60
replicate-do-db=exampledb
Set the master host ip address to that of the master; kinda logical, don’t ya think… Log back into mysql on the slave:
Login to mysql:
mysql -u root -p
Issue the following:
STOP SLAVE;
RESET SLAVE;
LOAD DATA FROM MASTER;
The following will set the slave accordingly:
CHANGE MASTER TO MASTER_HOST='192.168.0.100', MASTER_USER='replicate', MASTER_PASSWORD='replicate', MASTER_LOG_FILE='mysql-bin.006', MASTER_LOG_POS=183;
Make sure the master log file is what is printer on the slave when you issue master status. The same goes for the position of the log!!!!! If you don’t have that screen up anymore issue on the master mysql server:
SHOW MASTER STATUS;
Then on the slave issue:
START SLAVE;
Quit mysql and your good to go…. Give me an email and I’ll help you out…
Verizion – Side by Side with at&t Coverage Map
Nov 18th

I like this map. It really shows how poor at&t’s coverage is. I had at&t for a long time, and I would get dropped calls on my iPhone. I would call at&t all the time and the rep would say that its not in your contract that at&t guarantees service. So basically I had bad service, would get 10 dropped calls per day, and at&t says the service is fine. They would continuously point to the coverage map saying my area has full service. How do they explain the dropped calls? At&t would say they don’t guarantee service.
This map speaks for the nation. And even the local coverage is the same. I have no problem with a company not supporting particular areas. But at&t would continuously point to the local coverage map of my area, and say I have full coverage. The map is not correct. I talk more about my local map in a previous post.
Oil Prices and Environmental Effects
Nov 9th
Time and time again we see oil prices changed proportionally to upcoming environmental events. Current:
NEW YORK (Dow Jones)–Crude futures rose above $79 a barrel Monday on concerns about the threat Tropical Storm Ida poses to U.S. oil and gas production facilities in the Gulf of Mexico. A weakening in the dollar also supported prices.[Source]
That’s a relatively big number considering the amount of oil reserves that are available. Also, another interesting fact is that prices are relatively high because production levels are as lost as post hurricane conditions. This is partially because of the high oil reserves and the demand of oil in the marketplace. The low production level, the upcoming hurricane, and the amount of reserves all contribute to the price of oil. Production can be increased, but where is the product stored? The current situation is that the high supply is actually causing high prices, which is completely counterintuitive to the supply and demand model as it pertains to product price.
iPhone 3.1.2 Jailbroken to use any Carrier – Does it Matter?
Nov 4th
iphone OS 3.1.2 has been jailbroken again, allowing users to do whatever they like with the gadgets they’ve bought.[Source]
The iPhone can use any carrier particularly TMobile instead of at&t. I had an iPhone for a long time, but ultimately the GSM bottleneck of the device is a tremendous downfall. On at&t MMS took unnecessarily too long, and I cant tell you how many times my calls were dropped. At one point I was calling tech support just so the call would drop with them on the phone. I called for a month traight, toward the end of my at&t experience, resulting in over 10 dropped called per day. Ultimately I got a rep that credited me $200 because of the amount of dropped calls. I was doing pizza delivery at the time, and literally could not drive through town without getting a dropped call. I used the $200 credit to cancel my acount without having to pay the early contract termination fees. Worked like a charm!
The worst thing is the at&t map says there is full coverage in my neighborhood. That was relative bullshit. I say relative because I also used another at&t phone, that was operating at 1 bar, but the calls did not drop. Apparently the iPhone requires a stronger signal strength as compared to other more simple phones.
I eventually jailbroke my phone, but did not have good experience with TMobile either. I ended up ditching the iPhone, even though I loved and still love it, for Verizon. I went with the Blackberry storm.
I still have my iPhone with a TMobile prepaid sim card. Its a $10 prepaid sim card, and the iPhone has full edge internet access for three months at a time, resulting in a net cost of $3 per month.
I rarely use the iPhone, but I still love it. I also love my Blackberry. There is no winning and you can never have the best of both worlds.
In this post I show an at&t coverage map of my neighborhood that is completely incorrect.
ReactOS – a ground-up implementation of a Microsoft Windows XP compatible operating system
Nov 7th
ReactOS has been around for a while. The combination of their website, and the progress of the software in my books deems ReactOS worthy of checking in on from time to time.



