Earlier today a client requested I change the output of their lead form to split the “full name” entry into “first name” and “last name”. My initial thought was to use a Regular Expression (RegExp) to match the parts of the string for my UPDATE query…
I looked around on the web for a while trying to find an example of what I was trying to do. Some were close, but none performed the JOIN portion of the query and on the same table from the SELECT portion (self referencing). So, here is the code I used to created a sub-category only dropdown using the parent categories as the optgroup labels.
Save time calculating your billable hours by using this handy conversion chart. It was modeled after http://www.p1m.com/unit.htm and placed here to ensure I could locate it at a later date in case it is ever removed from that site.
I pulled this chart from i18nguy.com and placed it here to ensure it would not be gone when I needed it again. The credit goes to Tex Texin (credited in footer of linked page), I removed all special formatting since I found it did not improve usability.
The inspiration from this compass was found in a guide on ffxiclopedia.com. It was only missing the order of the days. I redrew it and added the day numbers for quick reference of which day is next or how far away the day you want will be.
Well, if you’re here you most likey are not getting any data from your FormMail script in the email you received. The problem is that dthetre’s script expects register_globals to be turned on. Since PHP4, most installations have register_globals turned off. This means your script will not work unless the feature is enabled. Most hosts are not likely to enable this feature (we’re one of them).
So here’s a quick workaround for the script. Add this code right after the header section of the script (before “// for ultimate security, use this instead of using the form”).
CODE UPDATED – SEE BELOW
I have been all over the web looking for a good solution that will display a flash movie in both Internet Explorer and Firefox. Most of what I have seen are bloated hacks and workarounds. If we just take a look at the XHTML standards set forth by ther W3C, the answer can be found.
Even though there are many attributes that are considered acceptable by the standards, too many designers are over-complicating the problem at hand. Here is an example of a streamlined object tag that works as expected in most modern browsers.
When developing an html form, there are many occassions where you might want to disable Mozilla’s or Internet Explorer’s auto-complete feature. This may be for credit card payment or login forms. Whatever your case may be, the following code will disable autocomplete in a form element.
We installed the utility by following their installation instructions on the above linked page. We made on modification to the script by lowering the number of connections allowed to 50 thinking it would be acceptable for normal traffic. Shortly after, we were locked out of our own server… duh. After rebooting our DSL modem to get a new IP address, we quickly logged in and reverted to the suggested count of 150. From our experience, take the advice of the team that wrote the script 😉
The notification emails starting coming through letting us know when IP addresses were being blocked because they had more than 150 connections to our server at one time. After which we noticed the script was reporting the connection count as both the count and IP address.
As some of you may already know, I am an Xbox 360 console gamer. My 2 favorite genres are role-playing games (RPG) and first-person shooters (FPS). I, as well as many other gamers participated in the COD4:MW beta, and I have to tell you… I can’t wait! This game was absolutely unbelievable in the multiplayer-only beta version so I can only imagine what the final release will be like in terms of multiplayer action and the solo campaign.
From what I have read there is no Xbox Live cooperative campaign in the final release… what a shame. Don’t get me wrong, I love playing deathmatches and objective based games like capture the flag (CTF) online, but just bringing in one or 2 friends to mix things up a bit in the campaign is usually a lot of fun for me (Formerly Known As: Buck Fitches; Currently Known As: Hates XBL) and my buddy Ryan (Ceymore Butts).
Since I deal a lot with designing artwork in US measurements (fractions) using Illustrator and Photoshop, more often than not I have to break out a calculator to determine the decimal value of a fractional measurement.
Lets say I need to create a document that is 4 inches wide by 3 7/16 inches high. Obviously 4 inches needs no conversion, but then you have the 3 7/16 inches measurement. First you take 1, divide it by 16, then multiply the result by 7… what a pain.
So I have thrown together a quick reference guide that start at 1/64 and goes up to 63/64 with each variation in between. Bookmark or print this page to save a copy for your own personal reference. The most common fractions for my purposes are outlined in bold.
I recently had the need to redirect one query string to another query string. The reason for this was we created a new item in our Zen Cart software that took the place of 3 other items. To make sure the search engines and our visitors reached the new product instead of the old ones, the following code was used to redirect them accordingly.