Here is an SQL file of the 2 Character and their corresponding 3 Character ISO Country Codes: ISO_CC.sql I’ve needed to use this several times, so I thought posting might help someone.
Avoid FTP Info Request From WordPress Updates
When performing WordPress updates, some installations prompt for FTP information. This request for FTP information is because WordPress cannot write the updates to files on the server through PHP and therefore requests FTP login information to attempt to write files via FTP instead of PHP. But, if you do not have FTP access, or do… Continue reading Avoid FTP Info Request From WordPress Updates
Alternative to Akismet
Aksimet is a paid anti-spam comment service that comes standard with your WordPress installation. As it is the standard for dealing with comment spam in WordPress, but it is a paid service. A combination of the following two plugins has proved to be a great free alternative to Akismet: Antispam Bee (Don’t let the German… Continue reading Alternative to Akismet
Easy Regular Expression Testing
RegEx Pal is the best online Regular Expression testing system I have ever used. It is remarkably easy to use, it performs the regular expression in real-time and highlights syntax. It was launched in 2007, and I’m sorry to have only found it now, because using it has improved my skills with regular expression 10-fold… Continue reading Easy Regular Expression Testing
AWS micro EC2 instance WordPress LAMP stack optimized low memory settings
Amazon Web Services EC2 micro instances are a good way to test and develop a LAMP stack running WordPress, but, the settings for Apache, MySQL and PHP on a Linux AMI (Amazon Managed Image), by default, tend to have memory settings too high for using on a micro EC2 instance. Which can cause the WordPress… Continue reading AWS micro EC2 instance WordPress LAMP stack optimized low memory settings
AWS EC2 Amazon Linux AMI change timezone
AWS (Amazon Web Services) EC2 Amazon Linux AMI timezone will most likely be different than your local machines’ timezone. To remedy this issue on Amazon’s Linux machine image, ssh in and type the following commands in prompt: sudo su become root user ln -sf /usr/share/zoneinfo/America/Toronto /etc/localtime Choose your time zone ( in this example Toronto… Continue reading AWS EC2 Amazon Linux AMI change timezone
Triage – Handmade Leather Goods
Just finished helping a friend get a shop up and running: http://triagegoods.com On WordPress, this store represents a lot of work and fun. It’s worthing taking a peak at. Will be working hard to market with all the middle ware goodness that exists now a days.
Solving WordPress’s White Screen of Death
WordPress has an issue that can be dumbfounding to say the least. An occurrence called the “White Screen of Death” can happen for really any issue; incompatible plugin, theme bug, an update to a file, etc. But it’s the blank screen with no information that is the difficult part of solving the blank screens cause.… Continue reading Solving WordPress’s White Screen of Death
How to Get The Domain and TLD from a URL using PHP and Regular Expression
How to get a domain and it’s TLD from a URL string using PHP and Regular Expression: preg_match(“/[a-z0-9\-]{1,63}\.[a-z\.]{2,6}$/”, parse_url($_url_string, PHP_URL_HOST), $_domain_tld); echo $_domain_tld[0]; This is particularly useful for dealing with country TLD’s, like co.uk, on.gc along with the general .com, .net, etc. It is also capable of ruling-out multiple subdomains like: http://i83tr.cdn-2.delivery.net/homepage/sprite.png so you end… Continue reading How to Get The Domain and TLD from a URL using PHP and Regular Expression
Can’t Find Documentation on a WordPress Function?
QueryPosts.com is a great site for documentation and source details on WordPress functions. WordPress.org’s Codex is an essential site for referencing the inner workings of WordPress and does have a long list of documentation covering most of the WordPress functions, but does not cover all the functions available in WordPress and doesn’t show the functions’… Continue reading Can’t Find Documentation on a WordPress Function?