jcornelius.com http://jcornelius.com/ Article Feed en-us Wed, 08 Oct 2008 21:32:28 -0400 http://jcornelius.com/images/promote/80x15a.gif J Cornelius http://jcornelius.com/ 2008 Webmaster Jam Session Recap http://jcornelius.com/articles/2008-webmaster-jam-session-recap/ http://jcornelius.com/articles/2008-webmaster-jam-session-recap/ Wed, 08 Oct 2008 21:32:28 -0400 “Life’s like a play; it’s not the length but the excellence of the performance that matters” Those words were spoken by a Roman philosopher in the mid-1st century AD, and they ring true today as evidenced by the speakers and attendees in the 2 short days of the 2008... continue... Always add WWW to your URLs http://jcornelius.com/articles/always-add-www-to-your-urls/ http://jcornelius.com/articles/always-add-www-to-your-urls/ Thu, 19 Feb 2004 22:50:55 -0500 It's always a good idea to have all the traffic for your site go to www.yourdomain.com. Through the magic of Apache mod_rewrite, you can keep your URLs clean and tidy. Often times people will just type your domain name (i.e. "yourdomain.com") into their browser to get to your website. This... continue... Apache Server Response Codes http://jcornelius.com/articles/apache-server-response-codes/ http://jcornelius.com/articles/apache-server-response-codes/ Sat, 17 Apr 2004 12:06:53 -0400 Even a seasoned developer can forget the standard response codes for the Apache Server. This list will refresh your memory. If you are looking to customize your 404 pages check this out Successful Client Requests: 200 OK 201 Created 202 Accepted 203 Non-Authorative Information... continue... Blue Beanie Day http://jcornelius.com/articles/blue-beanie-day/ http://jcornelius.com/articles/blue-beanie-day/ Mon, 30 Nov 2009 12:15:35 -0500 It's Blue Beanie Day on the Web and we've all joined the fray by donning our indigo toques and updating our avatars. But what does it all mean? Advocacy without action is meaningless. The purpose of Blue Beanie Day is to raise awareness and adoption of Web Standards . We all... continue... Bulk Zone File Maker http://jcornelius.com/articles/bulk-zone-file-maker/ http://jcornelius.com/articles/bulk-zone-file-maker/ Sun, 22 May 2005 01:49:54 -0400 If you've ever had to create a bunch of zone files for a bunch of domains you know it can be a pain. Should you ever find yourself in that dark hole again use this. It is a quick and simple DNS Zone File creator for BIND. It takes an array of domain names, creates zone files and adds the zones to... continue... Change MySQL root password http://jcornelius.com/articles/change-mysql-root-password/ http://jcornelius.com/articles/change-mysql-root-password/ Sat, 05 Jun 2004 01:34:51 -0400 This is the 'hands-on' way of changing the root password for your MySQL server. Get to a command prompt on the MySQL server and enter the following commands: mysql -u root mysql > UPDATE user SET password=password('secret') WHERE user='root'; > flush privileges; This should... continue... Change Your Lost Webmin Password http://jcornelius.com/articles/change-your-lost-webmin-password/ http://jcornelius.com/articles/change-your-lost-webmin-password/ Fri, 12 Sep 2003 22:39:43 -0400 At some point you will find yourself locked out of your Webmin console and in need to change the password for your user. Here's how:First, SSH/Telnet to the box in question. You will need to know where Webmin is installed and the path to the script we will be using. > whereis webmin... continue... Check and Restart MySQL with a Cron http://jcornelius.com/articles/check-and-restart-mysql-with-a-cron/ http://jcornelius.com/articles/check-and-restart-mysql-with-a-cron/ Mon, 09 Aug 2004 23:05:04 -0400 If you have a MySQL powered website it is critical that the MySQL Server is running. This little diddy will check to see that the MySQL Server is running and restart it if it's not.You will need to add an entry to your crontab that runs on a interval you are comfortable with. This example runs... continue... Consider the Source http://jcornelius.com/articles/consider-the-source/ http://jcornelius.com/articles/consider-the-source/ Tue, 24 Mar 2009 12:49:13 -0400 Every day we are confronted with a huge amount of data to process. People we talk to, mass media, and the Web provide a never-ending stream of information, facts, opinions, and advertising. So much data can be overwhelming. It's difficult to separate the signal from the noise, so we try to take... continue... Converting Seconds in PHP http://jcornelius.com/articles/converting-seconds-in-php/ http://jcornelius.com/articles/converting-seconds-in-php/ Wed, 14 Jan 2004 10:48:51 -0500 All of the conversion functions that I found seemed really bloated. Here is a nice clean way to convert seconds to a more user friendly hour:minute:seconds format. This example takes the current Unix time and converts it to the desired format. Of course you can use this for just about any... continue... Credit Card Obfuscation in PHP http://jcornelius.com/articles/credit-card-obfuscation-in-php/ http://jcornelius.com/articles/credit-card-obfuscation-in-php/ Wed, 02 Feb 2005 06:10:16 -0500 Recently while writing some billing functions I came across the need to show customers the credit card number on file for their account. Since most people would freak out if I showed them the entire number I had to make a quick function to obfuscate the number and let them know what type of card... continue... Custom 404 pages and Google http://jcornelius.com/articles/custom-404-pages-and-google/ http://jcornelius.com/articles/custom-404-pages-and-google/ Wed, 15 Mar 2006 22:57:38 -0500 Everyone wants to display friendly error pages for visitors to thier website. This is easy to do using a variety of methods, but are the common methods always the best decision? There are an abundance of pages that discuss how to make custom 404 error pages. While this practice is an excellent... continue... Deny Access by User Agent http://jcornelius.com/articles/deny-access-by-user-agent/ http://jcornelius.com/articles/deny-access-by-user-agent/ Wed, 18 May 2005 23:11:44 -0400 The more traffic your Website gets, the more important efficient handling of that traffic becomes. First you want to be sure that your visitors get a fast response, but you also want to make sure that bogus traffic doesn't suck all your bandwidth. Here is a simple way to keep bogus traffic off... continue... Don't Be Evil http://jcornelius.com/articles/dont-be-evil/ http://jcornelius.com/articles/dont-be-evil/ Thu, 03 Dec 2009 17:15:15 -0500 This is the well known mantra of corporate governance at Google. Without a doubt, Google has the majority of mind and market share for many of the tools we use everyday. Services like Maps, Gmail, Docs, Reader, and Wave (not to mention YouTube) are becoming woven into the very fabric of how we... continue... Eleven http://jcornelius.com/articles/eleven/ http://jcornelius.com/articles/eleven/ Sat, 04 Sep 2010 15:46:04 -0400 Eleven years ago today I registered the jcornelius.com domain name. Time has flown and much has happened since then. The web has transformed into quite a different place. Hardly anyone had heard of Google back then, and few of those who had took it seriously. Facebook and Twitter didn’t... continue... Go Forth and Prosper http://jcornelius.com/articles/go-forth-and-prosper/ http://jcornelius.com/articles/go-forth-and-prosper/ Mon, 24 May 2010 22:49:01 -0400 There you sat, excited and accomplished. A carefully selected orator reciting a commencement address to the class of 2010. Your dreams are fresh, vivid, and tangible. It feels as though the world is at your fingertips, and the possibilities are endless. Capture this feeling. You will need it... continue... Google extends the life of IE6 http://jcornelius.com/articles/google-extends-the-life-of-ie6/ http://jcornelius.com/articles/google-extends-the-life-of-ie6/ Sat, 06 Sep 2008 13:54:52 -0400 Yesterday Google announced that they enhanced Gmail for IE 6 users. Really? Google updated the Gmail core almost a year ago. According to the post “IE6 wasn’t able to handle the complexity of the new code in a way that met our performance and stability goals”. So now, 10... continue... Handle it Once http://jcornelius.com/articles/handle-it-once/ http://jcornelius.com/articles/handle-it-once/ Sun, 16 Nov 2008 16:14:00 -0500 A recurring theme of conversation at events and among online chatter seems to be an overload of email and other things vying for our attention. On a few occasions I’ve heard people express their thirst for a simple, clean way of managing the deluge. So here’s my offering. Handle... continue... Hex Color Code Chart http://jcornelius.com/articles/hex-color-code-chart/ http://jcornelius.com/articles/hex-color-code-chart/ Wed, 22 Sep 2004 01:42:16 -0400 When specifying colors in HTML or CSS it's best to use the hex code which is something that browsers understand and convert into colors. Choose a color from the list below and look to its right to get the hex code. If you wanted a nice blue for example, you could use "#0000cc". You can print... continue... IE6 PNG Transparency, Again http://jcornelius.com/articles/ie6-png-transparency-again/ http://jcornelius.com/articles/ie6-png-transparency-again/ Tue, 21 Oct 2008 12:27:17 -0400 So there you are, admiring your hard work. Your pixel precise, artfully crafted design with it’s clever use of 24bit alpha-transparent PNG images to create the perfect effect you wanted. Bravo! Well, that is until you look at it in IE6. So you hack the CSS or add special Javascripts to... continue...