• Concise Ruby

    I started learning Ruby and it looks really awesome! For instance, I’ve just written a code that produces Fibonacci numbers:

    It is the most elegant solution I’ve ever seen!

  • “error initializing java runtime environment”

    Buggy Adobe IDE. If you get “error initializing java runtime environment” message at the Adobe Flash IDE startup, you need to fix the file c:\Documents and Settings\<username>\Local Settings\Application Data\Adobe\Flash CS5.5\en_US\Configuration\ActionScript 3.0\jvm.ini (it’s a path on XP). The memory parameter must be equal to “-Xmx128m”

  • Flash Player update on Chrome

    If you want to update your Flash Player version uder Chrome, you can do it by updating Chrome: Go “About Google Chrome” and then confirm an update of Google chrome.
    It’s nasty for flash developers…
    Any other solutions?

  • Sweet SWiX

    SWiX – is extremely useful tool that allows changing swf file without having fla-source or launching Flash IDE. The application shows you XML-like source of swf where you can see the structure and even change the data. But beware, it needs license for commercial use.

  • They made it louder!

    Adobe Flash Player 11 Public Beta is released. Try it here

  • Debug flash player crash in Mozilla Firefox 4

    If you have a problem described above here is a solution

  • Site of the day. Monet

    http://www.monet2010.com

  • Error #2046 in blank Flex application in IntelliJ IDEA 10

    Not far ago Intellij IDEA 10 was released. I downloaded it and launched blank Flex application but found this:

    “Error #2046: The loaded file did not have a valid signature”.

    This problem is described here: http://forums.adobe.com/thread/723378?decorator=print&displayFullThread=true. The reason: IDEA doesn’t pass “-static-link-runtime-shared-libraries” parameter to the compiled by default. So flash player cannot find RSL libraries in runtime. Thus if you have the same problem – just add a string “-static-link-runtime-shared-libraries=true” to you additional compiler options.

    Fun coding!

  • About two errors in IntelliJ IDEA

    Invalid menu handle

    Error message
    If a strange error “Invalid menu handle” appears to you in IntelliJ IDEA when you are trying to run an application, it means the path of your default application executor is broken. For example, you need to reinstall the flash player if you run swf files.

    No JDK specified in Ant

    This error message can be displayed when you are trying to run ANT build. It is caused when your default Project SDK is set to non-Java SDK (Flex SDK whatever). So just open Project settings window and select any JDK in Project->Project SDK combobox.

  • Basic steps in designing a small user program

    Matt Gallagher made a very neat and laconic summary of steps of architecturing a MVC application.
    According to him, the basic steps in designing a small user program are:

    1. Decide what the program will display to the user.
    2. Work out how the user will navigate through the program to reach each view.
    3. Work out the data that is needed to populate the views that the user will navigate.
    4. Decide where that data will come from and how you will manage access to it.
    5. Decide how and when you will construct your views.
    6. Decide how you will provide your views with data.

    Hope you will find it useful.