Putty and tree - how to avoid weird characters (squares)
Character encoding is always a problem when communicating between Windows and Linux. And using the "tree" command is affected by this problem if you are connected to a Linux box using Putty on a...
View ArticleHow to optimize all tables from all databases
The following command will optimize all of your databases' tables within MySQL. It is important to optimize tables to reduce data fragmentation. mysqlcheck -Aop -uroot If you are not using root replace...
View ArticleCSS3 box-shadow on left and right sides only
It is possible to have inset shadows on both left and right sides of a block. It is a matter of showing only one side of the box-shadow at a time, and so you need two box-shadows (one for each side of...
View ArticleHow to add a Password reset link on user login block in Drupal
In Drupal 7, adding a link to allow users to reset their password (a "forgot my password" link) is quite easy through the hook_form_alter() hook. /** * implements hook_form_alter(). */ function...
View ArticleQuickly install a new Drupal site (in a multisite environment) using Drush
Easy as that! Just replace with your own parameters! drush site-install standard \ --site-name=FoobarSite \ --sites-subdir=foobar \ --db-su=adminuser \ --db-su-pw=adminuserpw \...
View Article
More Pages to Explore .....