August 26, 2008, 11:53 pm
ALTER TABLE `attributes` DROP FOREIGN KEY `attributes_ibfk_1`;
MySQL ERROR 1005 (HY000): Can’t create table ‘Table.frm’ (errno: 150). Here’s the solution.
Example:
ALTER TABLE `race` DROP FOREIGN KEY `race_ibfk_1`;
ALTER TABLE `race`
ADD CONSTRAINT `race_ibfk_1` FOREIGN KEY (`specieId`) REFERENCES `specie` (`specieId`) ON DELETE CASCADE;
August 25, 2008, 7:00 pm
$ sudo mount -o loop /path/to/feisty-desktop-i386.iso /tmp/ubuntu-livecd
August 25, 2008, 6:22 am
This command will replace all instances of ‘replaceme’ with ‘newstring’ in files ‘*.php’ on /home/mysite/httpdocs.
find /home/mysite/httpdocs -name '*.php' | xargs replace 'replaceme' 'newstring' --
August 16, 2008, 6:28 am
cat /etc/passwd | cut -d":" -f1
August 6, 2008, 1:10 am
Follow the links:
Virtual host examples from Apache website.
http://httpd.apache.org/docs/2.0/vhosts/examples.html
Turns out that it is possible to have multiple VirtualHosts on port 80 (Default http), but because of a limitation of SSL, we can’t have multiple VirtualHosts on port 443 (Default https).
I solved the problem as follows. I created the two VirtualHosts on port 80, one on port 443 and one on port 444.
Shared IP, multiple vhosts and multiple SSL certificates on Apache
The process is only 2 steps and involves modifying your Apache configuration.
1. Create virtual hosts “map file”.
2. Modify existing SSL vhost.
Caveat: The SSL certificate used will be common to all SSL vhosts.
Hosting multiple SSL vhosts on a single IP/Port/Certificate with Apache2
The following article discusses the following:
Basics Of Virtual Hosts, Name-Based Virtual Hosts, IP-Based Virtual Hosts, Configuring IP Aliasing, Virtual Hosts with IPs, Multiple Instances of Apache, Example for name based virtual hosts, Example for IP based virtual hosts.
Creating Name Based and IP Based Virtual hosts in Apache
July 28, 2008, 10:04 am
$ gzip -d compressed_file.gz
July 26, 2008, 6:27 pm
<html>
<head>
<style type="text/css">
body {
font-size: 12px;
font-family: arial;
}
a {
margin-top: 1px;
display:block;
line-height: 25px;
border-left: solid 10px #DDDDDD;
text-decoration: none;
padding-left: 11px;
background-color: #EEEEEE;
}
a:link {}
a:visited {}
a:hover {
padding-left: 12px;
border-left: solid 10px green;
border-bottom: 1px #333333;
background-color: #CCCCCC;
color: blue;
}
a:active {}
</style>
</head>
<body>
<div style="margin: 50px 0 0 10px; width: 220px;">
<div><a href="../saps.php">visitors, click here</a></div>
<div><a href="cms/">admin, proceed to saps</a></div>
</div>
</body>
</html>
July 26, 2008, 12:43 am
These free tools have been designed to validate and check the health of your public DNS servers.


Free Secondary DNS for your domains. If your looking for another DNS to put your domain in, this is for you. Providing additional secondary servers can greatly improve the reliability and accessibility of your domain. Should your primary DNS become unavailable due to network problems, your secondary DNS entries come into play, the more DNS servers you have, the greater the resilience to errors.

July 25, 2008, 7:19 pm
Here are the SQL commands:
create database newdb;
grant CREATE,INSERT,DELETE,UPDATE,SELECT on newdb.* to newuser@localhost;
SET PASSWORD FOR 'newuser'@'localhost' = password(’newuserpass’);
– or –
SET PASSWORD FOR 'newuser'@'localhost' = old_password(’newuserpass’);
flush privileges;