Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/rekall/krisgale.com/wp-includes/formatting.php on line 74

here’s an interesting javascript ‘gotcha’… this block of code:

var y = 37;
var x = parseInt(y,10);
var s = “37″;
alert(x === s);

gives you a “false” alert box, whereas this:

var y = 37;
var x = “” + parseInt(y,10);
var s = “37″;
alert(x === s);

yields “true.”

apparently, ‘x’ is not able to be compared to other strings until it is concatenated with another string, or implicitly converted to one using Object.toString().