Flex doesn’t have a String.replaceAll()?

No, it does not. It does, however, have a pretty powerful regex parser, so instead of “myString.replaceAll(‘,’,’ ‘)” I can do a “myString.replace(/,/g, ” “)“. It is definitely a one-liner to use a global regex, but its not intuitively obvious.. and while coding a useless while loop, I looked over the API one more time and saw how easy it could be solved. :P

Getting subversion svn+ssh:// to work with Eclipse (subclipse)

I’ve been moving all my code to a centralized version control system and had everything setup using CVS when I noticed that some of my NS-2 code started to break due to soft-link problems (CVS doesn’t support it). So I downloaded and install GIT (only to find out that it doesn’t natively handle it as well). So I ended up with SVN, however, I didn’t want to do it through WebDAV or as a new service… SVN however allows for SSH tunneling (i.e. with a subversion repository url of svn+ssh://talmai@talmai.com.br/myrepo) and I can use integrate it using the Subclipse subversion integration with Eclipse.

When I used JavaHL (JNI) I got the following error, “svn: Can’t create tunnel: The system cannot find the file specified“. After some googling, I discoved that I needed to configure eclipse to use the JavaSVN interface (In Eclipse, under Windows –> Preferences –> Team –> SVN –> SVN interface: make sure you have selected JavaSVN). The next error that popped-up was “svn: Handshake failed, received:“, and when I tried to connect using a shell (“svn list –verbose snv+ssh://talmai@talmai.com.br/myrepo“) I got “‘bash: svnserve: Command not found“. Obviously this was a path problem, but my PATH was correctly, so I ended up adding a link to svnserve on /usr/bin. Things magically worked from that point on. :)

Adjusting PopUp visual effects on Flex

Flex Modal Transparency

When you use the PopupManager in Flex by default it will include a blur effect, as well as place a transparent layer on top of the background. This looks very nice, but it was slightly too light for my taste. After what seems too long of a search, I finally found something. As expected, it can be configured using css.

For example, to remove the blur effect, one can:

global{
	modalTransparencyBlur: 0;
}

In my case, this is what I used for the “after” you see in the image above:

global{
	modalTransparency: 0.6;
	modalTransparencyBlur: 5;
	modalTransparencyColor: #000000;
	modalTransparencyDuration: 100;
}