Posted on September 26, 2011, 8:03 am, by Brian, under
Uncategorized.
Firebug is a great way to debug during web page development. Although it is not available natively in IE it can be easily added by pasting in the code below in the address bar of the page you want to use it.
javascript:var firebug=document.createElement(’script’);firebug.setAttribute(’src’,'http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js’);document.body.appendChild(firebug);(function(){if(window.firebug.version){firebug.init();}else{setTimeout(arguments.callee);}})();void(firebug);
Posted on April 11, 2011, 11:33 am, by Brian, under
Uncategorized.
If you’re dealing with LINQ in C# .Net there is a great tool called Linqpad that allows LINQ queries to be run from a GUI against your SQL DB. The tool is free, but requires a license for intellisense support.
http://www.linqpad.net/
This task is one I seem to be doing repeatedly, so here is a snippet for all the world to enjoy.
import flash.geom.ColorTransform;
private function tint(c:Number, obj:*) {
var myColor:ColorTransform = obj.transform.colorTransform;
myColor.color = c;
obj.transform.colorTransform = myColor;
}
tint(0xffcc00, myMovieClip);
Sometimes in flash you need to get an XMLList from tags while ignoring tag case.
<xml>
<tagName>contents</tagName>
<TAGNAME>contents</TAGNAME>
</xml>
I have a class that extracts XHTML from the page where a swf is embeded. Works great except different browsers return different case for tags. Below is the snippet I used to get a node list no matter the tag case. [...]
Posted on March 30, 2010, 3:10 pm, by Brian, under
Uncategorized.
For the sake of my memory I’m posting a simple jQuery ajax routine.
$(’a.ajax-enabled’).click(function(evt){
evt.preventDefault();
$(’#content’).load($(this).attr(’href’) + ‘ #content’);
});
Posted on February 24, 2010, 3:12 pm, by Brian, under
Uncategorized.
The (now) new Firefox 3.6 and possibly other versions place a 1px border around flash elements embedded with swfojbect. This outline is similar to the active link outline. May occur on other object and embed tags as well.
If you’re annoyed by this, there is a simple CSS fix.
a:focus, object:focus {
outline: none;
-moz-outline-style: none; [...]
Google, seo, and flash – oh my.
A nifty AIR app for creating, printing, and editing a GAIA framework site.xml file.
Originally posted/get it here
Posted on January 4, 2009, 4:41 pm, by Brian, under
Uncategorized.
Had the need to validate an email address in Actionscript 3 recently. I have always copied and pasted regular expressions before. I took the time and learned them (the as3 implementation anyway). Below is a function using an email validation regex and an example swf along with the source.
function isValidEmail( str:String ):Boolean {
[...]
http://www.karenware.com/powertools/ptreplicator.asp
Karen’s Replicator is a powerful if bricky backup program for windows. The interface is a little old school, but the feature set is quite nice.