Websites | Photography | Video Editing | 3D Animations

From the Blog

Jan
16
Posted by Paul Costan at 11:58 am

Command line as follow:

/etc/init.d/httpd  restart

/etc/init.d/mysqld restart

Or

serice httpd restart

serice mysqld restart

————————————–

Import Database dumps

1) mysql -u root -p -h localhost

2) mysql> create database foo;

3) mysql> exit;

4) mysql -u root -p -h localhost foo < testing_db.sql -------------------------------------- Adding site to your virtual host: /etc/httpd/conf.d/filename.conf -------------------------------------- To view logs go to: # cd /etc/httpd/logs # tail -f test_error_log

Jan
12
Posted by Paul Costan at 11:37 am

# ab -n 100 -c 10 http://www.yourwebsite.com/index.php

————————————–

Benchmarking www.yourwebsite.com (be patient)…..done
Server Software: Apache/2.2.17
Server Hostname: www.yourwebsite.com
Server Port: 80

Document Path: /index.php
Document Length: 0 bytes

Concurrency Level: 10
Time taken for tests: 149.230631 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Non-2xx responses: 100
Total transferred: 51800 bytes
HTML transferred: 0 bytes
Requests per second: 0.67 [#/sec] (mean)
Time per request: 14923.063 [ms] (mean)
Time per request: 1492.306 [ms] (mean, across all concurrent requests)
Transfer rate: 0.34 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 114 3630 2779.9 2805 9515
Processing: 3340 10416 3989.7 10051 26970
Waiting: 3336 10161 3530.4 10050 26966
Total: 3872 14047 4661.0 13495 32027

Percentage of the requests served within a certain time (ms)
50% 13495
66% 15568
75% 16474
80% 17911
90% 20448
95% 23026
98% 24990
99% 32027
100% 32027 (longest request)

Recently my contract with O2 had expired. I did a lot of research and phoning around for best deals and T-Mobile gave me an offer I could not refuse. I do love my iPhone but I thought to try out Android. And why not I’m open minded as I’m a web developer. I know there are a lot of people out there who are anti-Apple or anti-Android. But I do believe that everyone should try them all. before making judgment. I had it all… Nokia, Blackberry, IOS, Android etc. And I do like Apple simplicity and I believe Android are catching up.

… Anyways back on track…

I had cancelled my contract with O2 and received my shiny new Samsung Galaxy S2 with T-Mobile. Now my iPhone was redundant and I thought to Jailbreak it as I thought this was only way to unlock the device. I did the jailbreak but there was no app to unlock the phone as  the baseband was up-to-date and no one has written a patch as yet. I did more research and discovered after reading  an article somewhere, you can actually contact your network provider to release your phone. As a customer you have the rights to have your phone unlock after ending your contract; and besides the device is no longer their property so why should it be lock their network.

Here is the link found on O2 to unlock your iPhone.

https://www.o2.co.uk/apps/help/help?qid=1&q1=2&route=unlocking&case=Handset%20Unlocking%20Form

In less than a week I received a text msg saying my iPhone can now be unlocked by syncing my iPhone to iTune. So I did a ‘Restore’ as I had previous jail broken my iPhone. After the restore process, I got a pop message saying ‘Congratulations, your iPhone is now unlocked’. Something along those lines anyways.

So if you want to unlock your phone and thinking of switching network providers, you have rights to contact your network provider and ask them to unlock your phone, regardless if its an iPhone or not.

Please leave your comments, I’m interested to know your success story or not.