Archive for the 'to view' Category

JavaScript lazy functions.

I never thought about lazy functions in JavaScript. Apparently, you can implement it this way:

var foo = function() {
    var t = new Date();
    foo = function() {
        return t;
    };
    return foo();
};

I hate JavaScript.

Scala functions vs. methods

Scala is hard. To use its syntax sugar you have to know what’s going on.

VOTE FOR THIS ONE!!!!!1

Now as jailbreaking is legal, couldn’t Adobe publish a Flashplayer for the iOS (iPhone, iPod, iPad) over Cydia(App Store for Jailbreaked Apps)?
I guess this would be a huge market!

https://bugs.adobe.com/jira/browse/FP-5228
I’d like Flash Player on my iPad please!

Did you know about AS3 “down to” operator?

I am talking about –> operator. Did you know about it? It’s called “down to” operator. Here’s an example.

var a:uint = 20;
while ( a --> 0 ) trace(a);

Isn’t it cool?!

Ten tips for building better Adobe AIR applications

Usually I dislike posts titled “10/20/30 whatever for/to whatever whatever“. Why 10? Can there be more? Why you chose these ones?

But this post about AIR applications seems to be really useful. At least I got some interesting stuff from the article. It is definitely a good read if (even if not) you are developing AIR applications.

initInjector 0.2.1b

Scala version 2.8.0 has been finally released, Joa updated apparat amazingly fast and v.0.2.1b is just a stable Scala 2.8.0 compiled application.

http://va.lent.in/projects/swf/initInjector/initInjector.0.2.1b.zip

InitInjector is a little Scala app which allows you to move code from SWF constructor to a private init method and subscribe it to ADDED_TO_STAGE. This fixes an error of stage being null in loaded SWFs constructor.

0.2.1b:

  • Recompiled for Scala 2.8.0

0.2b:

  • Fixed several bugs
  • Added -p option which also injects init method to parent class constructor
  • Thanks to Joa Ebert who modified apparat for my needs I got rid of half of my code

Thanks to everyone for reporting bugs.

More on faster MD5

All of you who liked the first version of famous algorithms on steroids library from blooddy will be pleased by the new release. This time it’s even faster and more stable. The author got rid of some bugs too (like this one).

Also at last he hosts the file himself so I finally can cut my traffic bills by half.

The world desperately needs flash

Just read an article about Smokescreen, which “It runs entirely in the browser, reads in SWF binaries, unzips them (in native JS), extracts images and embedded audio and turns them in to base64 encoded data:uris, then stitches the vector graphics back together as animated SVG.” for iPhone/iPad.

Wonder what people can do just to see flash in iPad.

This thingie can only render flash banners. And we all know that banners is the most important and advanced thing of all flash stuff.

Protecting flash games

Last Thursday I spoke at FlashGamm 2010 Moscow about how to protect your game from hackers. Though, slides alone can’t substitute my long monologue, I uploaded the presentation (in Russian and English) here. I hope it will be useful for you guys.

The hardest tetris ever

True story.