Archive for January 2010

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;
}

Android and WPA2-Enterprise

It seems that anytime I really need this, I forget how to set it up. These are the instructions for setting up Android inside a WPA2-Enterprise scenario:

  1. Click the Menu button and select ‘Settings’.
  2. Scroll to the top and select ‘Wireless & Networks’.
  3. Make sure the that ‘Wi-Fi’ selection is checked
  4. Select ‘Wi=Fi Settings’
  5. Under Wi-Fi networks you will see a list of available networks, in case of the University of Cincinnati, one can select  ‘Securewireless’ to configure. If you do not see it, proceed to manual configure below.
  6. In the pull down menu of ‘EAP Method’, select ‘PEAP’.
  7. In the pull down menu of ‘Phase 2 authentication’, select ‘MSCHAPV2′.
  8. Scroll past CA certificate and Client certificate
  9. In the ‘Identity’ field enter your login at UCIT (your 6+2 login)
  10. Skip the ‘Anonymous identity’ field.
  11. In the password field enter your wireless password. (If your cursor is stuck at ‘Identity’ click “next” on your keypad twice to get to Password).
  12. Select Connect. The account settings, including username/password are now saved and you will connect automatically when ‘Securewireless’ is in range.

For Manual configuration, you need to…

  1. Scroll to the bottom and select ‘Add Wi-Fi Network’
  2. In ‘Network SSID’ enter ‘Securewireless’
  3. Scroll down to ‘Security’ and select ‘802.1x Enterprise’
  4. Scroll down to ‘EAP Type’ and select ‘PEAP’
  5. Scroll down to ‘Phase 2 authentication’ and select ‘MSCHAPV2′.
  6. Scroll down and enter your login in the ‘Identity’ field, skip the ‘Anonymous Identity’ field, and enter your password in the ‘Wireless password’ field.
  7. Select save and you with connect. The account settings, including username/password are now saved and you will connect automatically when ‘Securewireless’ is in range.