Posted by Ryan | Posted in Public | Posted on 30-05-2010
0
Posted by Ryan | Posted in Public | Posted on 28-05-2010
0
There’s so many email address regular expressions out there, it’s hard to know which one works best. This site has done a comprehensive tests of several regex’s and this one appears to be best…for now.
/^([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,6})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)$/i
http://fightingforalostcause.net/misc/2006/compare-email-regex.php
Posted by Ayman | Posted in Developers Only | Posted on 28-05-2010
0
Sorry, this is a private post meant only for Red Ventures Developers. If you are a developer, log in here: http://developers.redventures.com/wp-admin/
Posted by James | Posted in Public | Posted on 13-05-2010
0
The ones for gaining speed on DOM insertion are particularly interesting.
http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips.aspx
Posted by Ryan | Posted in Public | Posted on 13-05-2010
0
For SEO purposes, it’s always a good idea to send all visitors to one domain for your site. For example, Google will index both http://example.com and http://www.example.com and count it as duplicate content. Therefore, it’s a good idea to forward all traffic to one or the other. In the example below, I want traffic to be forwarded differently if it’s a subdomain versus a non-subdomain. This example avoids using hard coded domains so it can be easily copied and implemented in your .htaccess file or apache conf file.
RewriteEngine on
# Rewrite regular domains to always have www
RewriteCond %{HTTP_HOST} !^www\.[a-z-]+\.[a-z]{2,6} [NC]
RewriteCond %{HTTP_HOST} !^[^\.]+\.[^\.]+\.[^\.]+ [NC]
RewriteCond %{HTTP_HOST} ([a-z-]+\.[a-z]{2,6})$ [NC]
RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]
# Rewrite subdomains to NEVER have www
RewriteCond %{HTTP_HOST} ^www\.([^\.]+)\.([^\.]+)\.([^\.]+) [NC]
RewriteRule ^(.*)$ http://%1.%2.%3/$1 [R=301,NC,L]
Posted by Ryan | Posted in Developers Only | Posted on 13-05-2010
0
Sorry, this is a private post meant only for Red Ventures Developers. If you are a developer, log in here: http://developers.redventures.com/wp-admin/
Posted by Ryan | Posted in Public | Posted on 07-05-2010
0
http://datacharmer.blogspot.com/2010/05/two-quick-performance-tips-with-mysql.html
The main point is that if you have columns with nulls, those nulls are stored in the first partition and if that partition is large, then you will take a big hit. To avoid such, add an empty partition to be the first partition and it runs much faster.
Posted by Colin | Posted in Public | Posted on 03-05-2010
0
http://www.noupe.com/php/htaccess-techniques.html
Our apache configs are pretty complex these days, but this article is a good read for anyone needing a ‘back-to-basics’ primer.
This is a quick read, covering 12 small htaccess snippets ranging from compressing asset files and forcing download headers to how to do a simple 301 redirect.