22
Sep

I hate Adobe and their bugs

Seriously, Flash is so bugged. I hate spending hours trying to find what’s going on. 91% of developers might not see that but people who are really into advanced stuff have to face flash bugs on daily basis. Actually best flash developers don’t know AS3 better than others or have deeper design patterns knowledge. They are valuable because THEY KNOW THESE BUGS. That’s it.

Last week I have to face with this bug and this bug. May 2008! Come on! You say the bug is fixed?! No way. Flash Builder 4 (SDK 4.1.0) got it.

What about bugs which have not been fixed for years?! What about stupid mouse wheel, wmode=transparent, Russian text input etc?

Tags: ,

21
Sep

Git SSH keys problem on Windows.

As you know git is kind of not native to windows. You might want to set up SSH access to a remote git repository and generate SSH keys using Putty. Don’t do that. We had major headache trying to make it work lately. GitHub explains how to generate SSH keys on Windows correctly.

  1. Run Git Bash console from Start -> Programs -> Git
  2. Use ssh-keygen -t rsa -C "your@email.com" to generate your key

This key will work perfectly with remote git repositories.

Tags: , ,

25
Aug

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.

Tags: ,

23
Aug

Scala functions vs. methods

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

Tags:

22
Aug

In case you need to unlock some files on OS X

Recently I got a major headache with OS X file locks. Apparently, I can do nothing with locked files even being under root. So here comes a handy script which does that recursively. Taken from this site but there was a typo.

#! /bin/bash
#
# Simple file unlocking utility for Mac OS X
#
ARGS=1
E_BADARGS=65

function recursiveUnlock() {
 pushd $1
 for rdir in `ls -A`; do
 if [ -d "${rdir}" ]; then
 recursiveUnlock ${rdir}
 else
 /Developer/Tools/SetFile -a l ${rdir}
 fi
 done
 popd
}

if [ $# -ne "$ARGS" ]
then
 echo "Usage: `basename $0` starting-directory"
 exit $E_BADARGS
fi

recursiveUnlock $1

Call it recursiveUnlock.sh and “chmod” it to 755.

Tags: ,

20
Aug

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!

Tags: , ,

20
Aug

Continuing on the XML bug

Looks like my XML Flash Player 10.1 issue already has a bug filled at bugs.adobe.com. Too bad, that could be the first ever bug report submitted by me )8

Tags: , , ,

19
Aug

Huge Flash Player 10.1 XML bug.

Check this XML.

<data xmlns:Bla="bla"><Bla:bla></bla:bla></data>

It’s obviously malformed. Flash Player 10.0 fails to parse it but Flash Player 10.1 doesn’t care. This caused major headache yesterday.

How do I submit a bug to Adobe?

Tags: , ,

16
Aug

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?!

Tags: , ,