HOWTO: Use Automatic Washing Machine to Wash Clothes?

General No Comments »

Hmm!
Washing clothes is one of the hardest work for any women in the planet. Recently i have purchased a LG top loading, fully automatic machine ($375) and i was very surprised, being a first time user i really didnt know how to use a washing machine. I hate to admit it but its […]

FIX->Fatal error: Maximum execution time of 300 seconds exceeded with phpMyAdmin

Linux/Unix, PHP Scripts No Comments »

PHPMyAdmin will not work for uploading large mysql databases. If you attempt to upload a large mysql dataset you will often get this error
Fatal error: Maximum execution time of 300 seconds exceeded
Fix:
If you get this error you will need edit config.default.php inside phpmyadmin and look for this line
$cfg[’ExecTimeLimit’] = 300;
and replace with 0 […]

Fix-> Warning: ereg_replace(): REG_BADRPT in PHP

PHP Scripts No Comments »

If you are a PHP programmer and if you are using regular expressions with ereg_replace then often with replacing particular characters you might encounter error like
Warning: ereg_replace(): REG_BADRPT
Here is a simple function that causes this error

function OrigURL($str)
{
$out = ereg_replace('+',' ',$str);
return $out;
}

Solution: Just escape the characters. Only then it will work.
$out = ereg_replace(’\+’,’ ‘,$str);
Hope this […]

How to remove GET variable within $_SERVER[’QUERY_STRING’] in PHP

PHP Scripts No Comments »

I was working on a mysql search script with paging where i had to pass the same GET parameters to page numbers like
search.php?q=what+europe+scripts&page=1
I used $_SERVER[’QUERY_STRING’] to get the GET parameters. But the problem i got was when i was in page 2 it would show query string like
search.php?q=what+europe+scripts&page=1&page=2
and if i am in page 5, it […]

10 Best FREE Wordpress THEMES You Never Want to MISS!

Wordpress 4 Comments »

Wordpress is such a powerful CMS and literally you can achieve anything from it. Not just that its code is very easy to understand and it can be customized to anything.
Here are the 10 best free wordpress themes you would never want to miss.
Blue Sensation

License: FREE
Download | Visit Website

Monochrome Gallery
(Photo gallery theme)

License: FREE
Download | Visit […]

How to get parent category name in Wordpress?

Wordpress No Comments »

In wordpress, sometimes you may have many subcategories for a different parent categories. By default wordpress lists all sub-categories.
if i have category structure like
Drupal
- 2 Column
- 3 Column
- Left sidebar
- Right sidebar
Wordpress
- Fixed Width
- Widget Ready
- News/Magazine
- Photogallery
and if i do a wordpress post (with title say CSS Gallery) inside Wordpress -> Photogallery i […]

Wordpress problem with subcategories under identical names!

Wordpress No Comments »

Wordpress version 2.6.2 seems to have a problem with creating identical categories. It does not allow you to create a same name subcategories even with different parent.
For example you have category structure like
Wordpress Theme
- 2 Column
- 3 column
- Left sidebar
- Right sidebar
Drupal
- 2 column
- 3 column


You wont be able to identical subcategories even it belongs […]

How to do backups with Network Attached Storage (NAS) in Linux

Linux/Unix No Comments »

Network Attached Storage (NAS) is the cheap and easy way of storing your server backup files. Most often i used to do a cpanel backup files every week and i always wanted to store these files outside by server. Should my server crash, i can easily retrieve backup through FTP and restore the whole site. […]

New Website for Best Wordpress Themes

Wordpress No Comments »

i love wordpress and skinning wordpress with themes even a lot more. I have spent lot many hours with plenty of wordpress hacks including lot many wordpress themes. The problem was there were lot many beautiful themes scattered over the Web and many people just dont know where to download a good wordpress theme.
so i […]

[Fix] Ziplib compile error with zziptest.c

Linux/Unix No Comments »

I was trying to compile and install zziplib in my server and i downloaded the version zziplib-0.10.82 and it was giving me errors like
../../bins/zziptest.c: In function ‘main’:
../../bins/zziptest.c:76: error: invalid lvalue in assignment
make[3]: *** [zziptest.o] Error 1
To fix:
install the latest version of zziplib.0.13.49. It nicely fixed the above problem. It will be under zziplib-preview file name.
Note […]

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login