Using http_build_query now that I know about it! Handy!
Category Archives: Design
jQuery Validation Plugin
Using the jQuery Validation Plugin to validate my web forms… handy!
Preserving whitespace in jQuery .val()
Found this article today which had a method for preserving white space in jQuery’s .val() function.
$.valHooks.textarea = {
get: function( elem ) {
return elem.value.replace( /\r?\n/g, "\r\n" );
}};
Adobe’s EchoSign
I used EchoSign for the first time today. It’s Adobe’s online electronic signature system, pretty handy.
Escaping SQL values in PHP without using mysql_real_escape_string
Found this article which has a handy ‘escape’ function:
// replace any non-ascii character with its hex code.
function escape($value) {
$return = '';
for($i = 0; $i < strlen($value); ++$i) {
$char = $value[$i];
$ord = ord($char);
if($char !== "'" && $char !== "\"" && $char !== '\\' && $ord >= 32 && $ord <= 126)
$return .= $char;
else
$return .= '\\x' . dechex($ord);
}
return $return;
}
Single Sign On: integrating Postfix/Kerberos/LDAP
Some reading to do concerning integrating Postfix/Kerberos with LDAP:
http://www.postfix.org/LDAP_README.html
http://www.boobah.info/howto/postfix-ldap.html
http://web.mit.edu/kerberos/krb5-devel/doc/admin/conf_ldap.html
HTML5 Boilerplate
I learned about the HTML5 Boilerplate library today. It’s a template for creating a HTML5 website.
Raphaël—JavaScript Library
Learning about the Raphaël—JavaScript Library. This can be used to do animations and drawing in HTML documents.
Facebook App Development
I’m getting interested in Facebook App development and have found a few things to read:
favicon.ico generator
When I need a favicon.ico for my site I use the favicon.cc generator.