Firefox vs. IE - I Propose a Fight to the Death!
If you're a web developer like me, you know how annoying it is to make websites look and function the same in different browsers. Often, I spend as much time trying to make a chunk of JavaScript or CSS work the same on the two browsers as I do writing the code itself. It's absolutely ridiculous. And don't even get me started on freaking Safari, I have no idea what those folks are thinking.
So here is what I propose: John Lilly, CEO of Mozilla Corporation, in a cage fight to the death with Steve Ballmer, CEO of Microsoft.
The winner gets the right to choose exactly, to the pixel how CSS will be rendered, and JavaScript implemented.
I personally think Balmer will win. He looks like a tough old sonofabitch.
Free website thumbnail generator - abilitron
This is a website thumbnail. I was interested in the process, so I decided to make a website thumbnail generator of my own. So I spent yesterday afternoon doing just that. I call it Abilitron.
Visit abilitron to generate your own free website thumbnails.
Gmail Notifier
Like many people, I use Gmail as my primary email program. It follows me wherever I go so I don't have to worry about keeping the email on my computer at my office and the computer at my house syncronized. I have several POP3 accounts that I also have linked to my Gmail account, which allows me to receive the mail from each address, and also send mail as each of those addresses as well.
I can check my email easily wherever I can find an Internet connection, which has come in handy more than once. But one thing that has always bothered me a little was the fact that I had to remember to continually browse to Gmail to see if I had received any email.
But then my pal Jason told me about this:
http://mail.google.com/support/bin/answer.py?hl=en&answer=9429
It's called the Gmail Notifier. It's a small program that installs a small icon in the status bar locally on your workstation. When you get a new email message, it pops up a notification along with a snippet. And the best part is that it allows you to use Gmail as your "default mail program" so when you click on a "mailto:" link to send an email, it will automatically open a browser and load Gmail.
Ultimate GoDaddy Promo Code
Good for $7.50 .com's and .net's (and for renewals!)
Enter the promo code:
gdbb776
at checkout.
Disable SELINUX in Red Hat ES 5 (CentOS 5)
To check and see if SELINUX (secure linux) is installed and running on your Red Hat ES 5 (CentOS 5, etc) server, use a text editor to open /etc/selinux/config:
vi /etc/selinux/config
Inside you should see a line that says
SELINUX=*some value*
Where *some value* is either enforcing, permissive or disabled. To shut SELINUX off, set the variable to disabled. To receive a set of errors to see what services would be affected if SELINUX was running, set it to perimissive. If you are sure all your services, daemons and everything else is set up with correct SELINUX permissions, you can set it to enforcing.
If you're getting an error after compiling and installing an Oracle OCI8 module for PHP you might want to set SELINUX to permissive or disabled until you are able to resolve the permission problem.
If you have to change the setting you should reboot the server to make sure the change takes effect system wide.
Sendmail as a Gateway to a LAN Mail Server
These are the steps involved in setting up a default installation of Sendmail (8.13.8) in Red Hat Enterprise Linux 5.1 (CentOS 5.1, etc) as a mail gateway from an external (public) address to an internet LAN (Local Area Network) mail server.
Required Packages:
- sendmail
- sendmail-cf
If you need help installing a package, please read how to install packages using YUM.
First off we're going to check that the /etc/hosts file is correct as Sendmail needs to determine the host name by this:
cat /etc/hosts
127.0.0.1 ux-mail.example.com ux-mail
localhost.localdomain localhost
By default Sendmail is listening on the loopback interface, which means it only allows mail to be sent from the server it is running on. Sendmail needs to be configured to listen on the NIC (Network Interface Card) as Sendmail needs to act as a server.
We have to edit /etc/mail/sendmail.mc to make Sendmail listen on the NIC. To make Sendmail skip a certain command, we have to add dnl (delete to new line) to the beginning of the line, since it will then be skipped by the M4 processor. In this case, we want to tell it to skip the command that binds it to the local loopback adapter by changing a line:
Change the line:
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1,Name=MTA')
To:
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1,Name=MTA')
Do the same to the following line to take precautions against spam by not accepting mail from a domain that doesn't exist:
Change the line:
FEATURE(`accept_unresolveble_domains')
To:
dnl FEATURE(`accept_unresolveble_domains')
Also, to forward all *@example.com mail to int-mail.example.com server, add the mailertable feature to the Sendmail configuration file (/etc/mail/sendmail.mc). Add this line towards the bottom, before any MAILER() calls:
FEATURE(`mailertable')
Rebuild the sendmail.cf file and restart Sendmail for the changes to take effect:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
Edit the /etc/mail/access file and add the following lines to allow relaying messages from an example server (192.168.100.30) and an example domain (example.com), just make sure to change the IP address to your server's address, and the domain to your domain name:
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
192.168.100.30 RELAY
example.com RELAY
Then we need to convert the /etc/mail/access file to a Sendmail readable database using makemap:
cd /etc/mail
makemap hash access < access
Next we have to add a line to our mailertable file so sendmail knows where to relay the mail for domain. Edit /etc/mail/mailertable and add:
example.com smtp:[192.168.100.30] # My int-mail.domain.com server
Now we convert the /etc/mail/mailertable file to Sendmail readable database using makemap:
cd /etc/mail
makemap hash mailertable < mailertable
We have to make sure there is no example.com entry in our local host names file by running Sendmail in test mode and showing a list of domains it considers local:
sendmail -bt -C./sendmail.cf
Should return somthing like the following:
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter
At the > prompt, enter the command:
> $=w
Which should return something like:
ux-mail.example.com
ux-mail
localhost.localdomain
localhost
[127.0.0.1]
Type /quit at the prompt to exit:
> /quit
Restart Sendmail to activate all the changes we've made:
service sendmail restart
And we're done!