Friday, April 30, 2010

Run multiple instances of Internet Explorer

Dear Lord,

Thank you for my life, my wife and FOR Hilbrand Edskes who built THIS APPLICATION allowing me to run multiple instances of Internet Explorer.

One more thing...

LAST YEAR YOU TOOK MY FAVORITE ACTOR, PATRICK SWAYZIE. YOU TOOK MY FAVORITE ACTRESS, FARAH FAWCETT. YOU TOOK MY FAVORITE SINGER, MICHAEL JACKSON. I JUST WANTED TO LET YOU KNOW, MY FAVORITE BROWSER IS INTERNET EXPLORER.

AMEN.

 

Sunday, April 18, 2010

Classic ASP VBScript OAuth

FINALLY. VBScript OAuth with example project!

OAuth is hard. I don't care if you're the greatest engineer on Earth, at first glance OAuth is a WTF moment. Having a slew of Classic ASP sites to maintain, and no luck finding any help in the VBSCript OAuth department, I dove in to the HELL that is OAuth. When I'd finally emerged, although scarred for life, I had a full fledged OAuth implementation... done entirely in VBScript... OK, not entirely... but mostly no doubt.


Check it out here: Classic ASP VBScript OAuth

Get twitter user profile pic by name, unauthenticated

No javascript required. No server side component to deal with. Just drop the image tag in using this generic handler as the src:

http://api.twitter.com/1/users/profile_image/[SCREEN_NAME]

Replace "[SCREEN_NAME]" with the actual screen name and, voilĂ .

EX: <img src="http://api.twitter.com/1/users/profile_image/sdesapio">


 

Saturday, April 10, 2010

oAuth 1.0a: oauth_callback in development

The "oauth_callback" parameter goes in the "request token" request NOT the "access token" request! You'll get back an oauth_verifier value which then becomes part of your "access token" request.

AAARRRRRRGGGGGGGGHHHHHHHHHH! K. I feel better.

More info: Signed Callback URLs

Tuesday, April 06, 2010

Adjust contrast in Windows Movie Maker.

How is it possible that contrast adjustment is not built into Windows Movie Maker by default!?

All I can say is... thank heaven for Daniel. Daniel, whoever you are, wherever you are, THANK YOU.

--------------------

<!-- Daniels contrast (2005) http://www.danielfx.moo.no *This XML only works in XP*-->
<TransitionsAndEffects Version="1.0">
<Effects>
<EffectDLL guid="{B4DC8DD9-2CC1-4081-9B2B-20D7030234EF}">
<Effect name="Contrast up" iconid="29" comment="by daniel">
<Param name="InternalName" value="Standard" />
<Param name="Red" value="0.2"/>
<Param name="Blue" value="0.2"/>
<Param name="Green" value="0.2"/>
<Param name="yellow" value="0.2"/>
<Param name="Brightness" value="0.9"/>
</Effect>
<Effect name="Contrast Down" iconid="29" comment="by daniel">
<Param name="InternalName" value="Standard" />
<Param name="Contrast" value="0.5"/>
</Effect>
</EffectDLL>
</Effects>
</TransitionsAndEffects>

--------------------

1. Copy and paste the above XML into Notepad.
2. Save in C:\Program Files\Movie Maker\Shared\AddOnTFX\ as as Contrast.xml (create the AddOnTFX folder if this is your first time adding an XML effect).
3. Restart Movie Maker.

Voila. Contrast adjustment on Windows Movie Maker.

YUI 3: Looping through an array of elements

OH MAN... I was about ready to kill somebody over this one. Being a die-hard YUI2'er, the concepts introduced in YUI 3, while possibly familiar to the jQuery crowd, are COMPLETELY foreign to us YUI 2 jedis.

In any event, the how to...

------------------

YUI 2


var _d = YAHOO.util.DOM;
var aElements = _d.getElementsByClassName('className');
var i = aElements.length;

while(i--){
    doSomething(aElements(i));
}

------------------

YUI 3


YUI().use('node', function(Y){
    var aElements = Y.all('div.selector');

    var i = aElements.size();
    while(i--){
        doSomething(aElements.item(i));
    }
}
------------------

Note the "size" call as opposed to "length" and the "item(i)" in the "doSomething" call. Ouch.

I love YUI and have been a huge fan of Crockford, Glass, Eric, Nate and the rest of the crew over there but DUDES! C'MON! jk ;)

I finally came to grips after finding the "Rosetta Stone." Have a look and good luck!

Monday, April 05, 2010

Error -2146697210

The path to the file is wrong. Your XML parser can not find the file. Check the base path as well as the file extension.