Sometimes we face the problem of control D in debian. In this scenario you must unmount all the drives of your hard disk then you need to go through file scan for recovery and fixation.
1. Give the root password
2. fdisk – l
It will show all the partitions of your hard disk

this is my hard disk, you might have lot more or less
3. Now you need to unmount all of the partition, command is as below
umount /dev/sda1
..
..
umount /dev/sda5
4. Now run file scan, command is
fsck
you might have to press y for several times for fixing the errors. After completing the fsck restart the machine
5. init 6
Some times its easier to use batch file with action to reduce the image size or create auto levels or use auto filters for multiple images. To create the action and batch file you need to do the following tasks.
1. Open Adobe photoshop
2. Then open an image.
3. Go to window menu and select action. A window will pop up
4. In that action pallet you can find ‘new set’ button, click on that and create a new set named “zea set”.
5. Then in the action pallet you will also find a button named ‘new action’ button click on that create an action named “zea action” and press record. your recording will start now.
6. now whatever you do, it will be recorded, for instance if you make auto levels, it will remember that you made auto levels command.
7. Do what ever you want to do and save the file and close it.
8. Now press on ‘stop playing/recording’ button in the action pallet.
9. Click on file menu you will find a sub menu named automate click on that there you can find another sub menu batch… (file -> automate -> batch…) click on that and there will be a window named ‘Batch’.
10. Now select ‘zea set’ and ‘zea action’ from the set and action field on ‘Batch’ window.
11. chose the path containing the images that you want to do the same thing(that you have done for the earlier image) for all the images. you can also chose a destination path. then click ok.
It has been seen that often the server is located in differnt timezones than ours….. Its been too tough to change the timezones in CodeIgniter for me. To resolve this problem we can add a simple helper file. For this you need to do the following steps.
Step 1. Create a folder in your applications folder named ‘helpers’
Step2. Save a file with named ‘zea_helper.php’ containing
function bd_time() {
return mktime((gmdate('H').'GMT')+6, date("i"), date("s"), date("m"), date("d"), date("y"));
}
in the above created ‘helpers’ folder. I have used +6 bceause bangladesh time is GMT 6+, if your time is GMT -4 you should write “(gmdate(‘H’) . ‘ GMT’)-4,” instead (gmdate(‘H’) . ‘ GMT’)+6,
Step3. Go to your autoload.php in config folder and change the line $autoload['helper'] = array(”); to $autoload['helper'] = array(‘zea’); and save the file.
Step4. Now just load the helper just like other helpers in your controller like $this->load->helper(‘zea’);. and start using it as a helpers
ex: echo date(“F j, Y, g:i a”,bd_time());
dont forget to load the helper in the controller.
- Create a file called .htaccess with any editor (like WordPad or Notes or dreamweaver or anyting).
- Add the following line in .htaccess:
| php_flag register_globals on |
- Upload the file to your web hosting account(generally inside of public_html folder). Make sure the name of the file dosen’t have any kind of extension. The file name should be only .htaccess
Fell free to ask about it….
Step 1: First go to start menu and click on run
Step 2: Type “command” on the command line

run
Step 3: When you see the command prompt. Type “nslookup your domain/website name” Ex: nslookup google.com, nslookup www.google.com and press enter.


January 7th,2009
Networking
| tags:
IP |
No Comments
$this->load->helper(‘url’);
print “Base URL: “. base_url();
N.B: do not forget to load the helper file.
Some times it has been seen that everything is correct but its showing the blank page. I have had this sort of problems. I found an interesting problem. The controller which I was calling had an extra line after the php ending tag. I removed that line and it was working smoothly.