MyComputingArt

Articles about computing. What are you interested in?

.htaccess, apache, bloxsom, broadcast, case, client-server, command-line, configuration, cool'n'quiet, cooling, cpu, disk suspension, dsl, error, fan, fan controller, file management, firewall, freeware, google earth, gps, grub, hardware, heatsink, howto, images, lapping, linux, measurement, motherboard, mp3, mysql, password, pda, perl, programming, qemu, rdp, regex, router, screen recording, script, security, shell, silencing, software, system recover, tools, ubuntu, virtualization, visual basic, VMWare, vnc, web, windows, wireless, xen, xp


About
About
RSS
rss
Skin
Default
Old browsers
Categories
Archives
Search
word word = any word
+word +word = all the words
regexp pattern


Powered by Blosxom




Ads



Install and boot Windows on a second hard disk

I have a SATA disk and a EIDE disk, I installed Linux on the SATA disk and now I want to install Windows on the EIDE disk.
Because Windows must be installed on the disk that boot first, I entered BIOS and changed the boot order as this:
cdrom
EIDE disk
SATA disk
Then I installed Windows on the EIDE disk.
I want to configure dual boot this way: I changed BIOS boot order as it was previously (SATA disk before EIDE disk) and booted Linux, then I added these lines to /boot/grub/menu.list (on Ubuntu or Debian; if grub is not installed try apt-get install grub):
title WinXP
map (hd0,0) (hd1,0)
map (hd1,0) (hd0,0)
rootnoverify (hd1,0)
chainloader +1
That means Windows believes the EIDE disk is the first and SATA is the second, so it's happy and if I reboot and choose WinXP from grub menu it starts.

Posted by: Z24 | Wed, Aug 30 2006 | Category: /windows | Permanent link | home
Tagged as: , ,



Running PHP scripts from command-line with WAMP (Windows Apache, MySQL, PHP)

On my old pc I installed Apache, MySQL and PHP singularly, and I made some PHP scripts to be runned from command-line, like this:

c:\php\php -f myscript.php
On my new pc I installed WAMP5 1.6.4, all was running fine (phpMyAdmin, my local website, php scripts pointed to by the browser) but php scripts launched by command-line reported
Fatal error: Call to undefined function mysql_connect() in myscript.php
Obviously I changed the php path to c:\wamp\php\php but with no results.
Solution: change the command to
c:\wamp\php\php -c c:\wamp\apache2\bin -f myscript.php
The -c option tells php to search php.ini in the directory specified, and that's needed because WAMP puts php.ini in Apache bin directory, while with a PHP regular installation php.ini is located in the php.exe directory.

Posted by: Z24 | Sun, Aug 27 2006 | Category: /configurations/windows | Permanent link | home
Tagged as: ,



Pausing a command

How to pause / suspend / sleep a running command in a terminal?
Press Ctrl+S
How to resume the paused command?
Press Ctrl+Q

Posted by: Z24 | Sun, Aug 27 2006 | Category: /linux | Permanent link | home
Tagged as: , ,



Execute a command at shutdown

To dismount TrueCrypt volumes at shutdown and reboot time, I created a script, put it in/etc/init.d/ and symlinked it into the needed /etc/rc?.d/ directories using update-rc.d.
Here is the detail:

See full post ...



Posted by: Z24 | Sun, Aug 27 2006 | Category: /linux | Permanent link | home
Tagged as: , , , ,



How to rename multiple files from bash

Rename all *html files to *test:

for x in `ls *html`; do mv $x `echo $x | sed -e "s/html/test/"`; done

Bash for:
for var in some-list ; do command ; done


Posted by: Z24 | Sun, Aug 27 2006 | Category: /linux | Permanent link | home
Tagged as: , , , ,



About

This blog is born in August 2006 and it's about computing science: software reviews, configurations, tutorials, howtoes, for both Windows and Linux, hardware reviews, problems and relative solutions, tips and tricks, and everything else I get through in my computing related life.
The name ComputingArt was born as a "Computing Articles" contraction, but as pointed out by my friend csdk, it reminds to "Computing Art".

Posted by: | Tue, Aug 15 2006 | Category: | Permanent link | home



Valid HTML 4.01 Strict    Valid CSS!

http://www.mycomputingart.com/

To contact the webmaster and author write to: info<at>mycomputingart<dot>com
© mycomputingart.com, year(today()).