Welcome to my site

This is a personal web site of Danko Kozar, RIA technologies software architect and developer.

Feel free to browse around!

Get in touch »

A good explanation of createDelegate in Javascript

http://www.sencha.com/forum/showthread.php?329-createDelegate-...-huh

In JS, functions have no idea what object they are attached to and they don't care. The JS runtime generally manages setting the "this" reference in object methods for you automatically. In instances where you pass a function pointer, the "this" variable no longer is maintained for you automatically. createDelegate will bind a function to the correct object allowing you to pass a function pointer and have "this" continue to point to the correct object.

The surprising truth about what motivates us

Embedded video: 
Sorry, you need to install flash to see this content.

Dennis Kucinich on war with Iran

Embedded video: 
Sorry, you need to install flash to see this content.

This Video that Must Be SHARED

Embedded video: 
Sorry, you need to install flash to see this content.

Another Flex bug

This one gave me a huge headache: Flex sometimes cannot extract parts of the AMF response - like sub-objects.

This is because you got to have the instance of the sub-object instantiated in your app before the call.

This isn't a compile-time issue as I thought  (like Flex didn't embed the object's class definition) but a runtime issue. If I load this sub-object as root object via another method call, the problematic method starts working.

Minority report by Obama

Embedded video: 
Sorry, you need to install flash to see this content.

Flex browser caching problem

Whenever you have a problem that Flex Builder / Flash Builder won't build / compile your Flex application (e.g. you are seing the "stale" version which is doing other stuff than your source code, breakpoints don't match etc.) try clearing the browser cache.

If you use Firebug, check Net > Disable Browser Cache.

Or you can, alternatively, go to about:config and set browser.cache.disk.enable = false.

Or this: network.http.use-cache = false.

Gerald Celente on RT America 14 june 2011

Embedded video: 
Sorry, you need to install flash to see this content.

Flex Framework with Deepa Subramaniam

Great explanation of Flex framework:

http://www.colettas.org/?p=162