Webitservice - webitservice.com
General Information:
Latest News:
Startup and Kano model 26 Dec 2012 | 03:46 pm
Every entrepreneur starting his own business, startup company, a simple web service is faced with the project planning. Under project planning I mean which features should be implemented per your prio...
The selected file /tmp/file*** could not be uploaded, because the destination * is not properly configured 27 Jul 2012 | 04:28 am
The selected file /tmp/file*** could not be uploaded, because the destination * is not properly configured. Main problem is that on shared or VPS hosting those directories: files/ tmp/ do not have pr...
Drupal bulk delete nodes per filter 4 Jul 2012 | 04:48 am
<?php error_reporting(E_ALL); require_once './includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); $nodetype = "nodetype"; $uid = 1468; $limit = 500; $results = db_query("SELECT ni...
Remove ^M characters at end of lines in vim 13 Jun 2012 | 08:54 pm
Remove ^M characters at end of lines in vim To remove the ^M characters at the end of all lines in vim, use: :%s/^V^M//g The ^v is a CONTROL-V character and ^m is a CONTROL-M. When you type this, i...
Error accessing home page of phpMyAdmin 2.8.1 27 Apr 2012 | 06:24 am
Error accessing home page of phpMyAdmin 2.8.1 Warning: session_write_close() [function.session-write-close]: open(C:\DOCUME~1\user\LOCALS~1\Temp\php\session\sess_orpi7es4n3h62bk9f0sul5raj5, O_RDWR) f...
Fast and easy MySQL backup and recovery with shell command 26 Apr 2012 | 10:40 pm
Quick backup and restore of the MySQL database using mysqldump and gzip utility: Backup: mysqldump -u <user> -p<password> <database_name> | gzip -9 > database_dump.sql.gz Recovery: gunzip < databa...
How to print array in Drupal using drupal_set_message 19 Apr 2012 | 01:36 am
Problem: How to print array in Drupal using drupal_set_message Solution: drupal_set_message('<pre>'. print_r($array_or_object, TRUE) .'</pre>');
How to remove all emails from inbox 15 Apr 2012 | 10:31 am
Problem Problem occurs when inbox is overloaded. I can not login into webmail to delete all messages. Solution 1. ssh to the host 2. cd /var/qmail/mailnames/domain.com/webmaster/Maildir/cur 3. re...
CentOS - list all users 15 Apr 2012 | 10:28 am
cat /etc/password shows you all existing users.
How to create new SVN repository 15 Apr 2012 | 10:26 am
1. open /etc/httpd/conf.d/subversion.conf 2. add appropriate section for new repository: <Location /svn-repository> DAV svn SVNPath /srv/svn/repository AuthType Basic AuthName "repository Repos...