Code Is Poetry

Life is Binary


Went to Cantonment Mosque for Jummah Prayer

Went to Cantonment Mosque for Jummah Prayer.Khotba was on saying prayers in Jamat and saying prayers regularly.There are lot of rewards for one who says his prayer in Jamat.The intension of saying prayer in Jamat even brings a lot of rewards.When people go to mosque with the intension of saying prayer in Jamat, every step he makes towards mosque removes all sins he committed in his life as well as rewarded with a lot of blessings and peace more than anything in the world.When doing Salat it...

Read more

2niteShanghai - A Party that always returns

Topic: is site for chinese people who love to party. Site hosts various pubs, clubs and restaurant location with map so that one can find those easily. Ticket ordering system is also implemented so that one can order ticket online for an event. One can also check his/her luck online by purchasing lottery tickets. Technologies Used: Cakephp, Bootstrap, Jquery, Html, Css, Mysql Development Status: In progress Site Status: Live Site...

Read more

Jibon Krisno Memorial High School

Book has an amazing finish. The Headmaster took the 2nd placed student in Dhaka Board  on his shoulder with joy and circle around the school playground after that boys great result is SSC examination. Some memorable notes from this book Every one has his/her own goal of Everest. One can succeed to achieve goal by straining him/her with strong rules of discipline.  

Read more

Using MySQL from SSH

Using MySQL from SSH may seem to be quite tricky if you’ve never done it before – but fear not – below is a list of MySQL commands that you can use to perform the required actions. Start by logging-in using a SSH client, like PuTTY, to access the shell command line. Below when you see # it means from the unix shell. And when you see mysql> it means from a MySQL prompt after logging into MySQL. To login (from unix shell) use -h hostname only if needed # mysql -h...

Read more

Mysql command line path in windows

Although windows have nice GUI for mysql database management in forms of phpmadmin, sqlyog and may be more, sometimes it is also necessary to have the knowledge of command line usage of mysql.  If wamp is setup, then you can go to mysql command line by following steps 1. type cmd and run windows command line 2. then go to the path of mysql installation folder where it is setup, which might be in following pattern     cd d:\wamp\bin\mysql\mysql_15.1.30\bin (mine is...

Read more

Cakephp getting last executed sql query for debugging purpose

Sometimes it is necessary to trace the last sql query run by cakephp find method as it does a lot of work underneat, Following is a neat little function does this for you. function getLastQuery() { $dbo = $this->getDatasource(); $logs = $dbo->getLog(); $lastLog = end($logs['log']); return $lastLog['query']; }

Read more

Redirect all pages to index.php

It is often necessary to redirect all pages to index page of a site because of site maintenance. So, you need to put following code in your htaccess file. RewriteEngine on RewriteCond %{REQUEST_URI} !^/$ RewriteRule .* / [L,R=302]

Read more

php strtotime function and its usage

It is very important to know what strtotime function does. It can be used in following ways. echo(strtotime("now") . "<br>"); echo(strtotime("3 October 2005") . "<br>"); echo(strtotime("+5 hours") . "<br>"); echo(strtotime("+1 week") . "<br>"); echo(strtotime("+1 week 3 days 7 hours 5 seconds") . "<br>"); echo(strtotime("next Monday") ....

Read more