Build web apps using Adobe Flex

August 20, 2008

I hate Flash. Any day I would suggest to use AJAX to give your web application that extra pep.

Having said that, lets look at what Flex could do for you. Flex is flashy, Flex is fast to develop. Above all, Adobe has come up with a decent framework for application development.

1. Flex is a complete SDK. Flex is a combination of Action Script (an EMEA Script supporting OOPS) and MXML (XML based UI definition). That good news! But then, they combine to produce SWF files and use the much hated Flash Player to render.

2. A complete IDE in FlexBuilder. Based on Eclipse, this wouldnt let you down.

3. Integration to call REST, SOAP web services. Making REST calls and modifying dom on the fly is a must for any web 2.0 framework. But SOAP? Looks like Adobe is serious about the whole Flex business.

4. Localization support using Resource Bundles. Remember SVG and the NLS support pains? Flex is meant for serious application development.

If you want to develop jazzy looking web 2.0 components for your application in a short time, Flex is worth your time. Remember to use it very judiciously.

Installing Cisco VPN on Ubuntu

August 14, 2008

Cisco VPN client most often requires to be compiled for the linux header you are running. And with the subtle changes in the header versions, its likely that you would run into this error while installing the vpn client:

/usr/src/vpnclient/GenDefs.h:113: error: conflicting types for ‘uintptr_t’
include/linux/types.h:40: error: previous declaration of ‘uintptr_t’ was here

In case you didnt notice this error while installing, you will surely notice this error when you try to start the VPN daemon:

‘/lib/modules/2.6.24-19-generic/CiscoVPN/cisco_ipsec.ko’: -1 Invalid module format

Like HHGG says, dont panic. The VPN client should be patched with the delta from that corresponds to your linux header. Patch your vpnclient as mentioned below and you are good to install!

cd vpnclientfolder
patch < ./vpnclient-linux-2.6.24-final.diff

Its not that theres a dearth of information on the web on this topic, I still end up wasting time everytime I install vpn. So here I go underlining whats been already said.

Ubuntu: Printing with a mouse right-click

August 12, 2008

Few days back, I came across this nice idea on ubuntu forums. If you want to print a file, why do have to open it and then print? What if you wanted to print multiple files?

Its the small things like these that reminds you the usefulness of scripting. So how do I do it?

cupsdoprint -P PrinterName file1 file2 file3

cupsdoprint is a command line tool to print via CUPS.

So we have our little script around CUPS to print. How do we add it to the mouse context menu? As simple as creating an executable script and dropping into the nautilus script folder. Nautilus passes the context information to the script as variables.

The script file would look like this:



cupsdoprint -P MyPrinter $files

exit 0

Name the script “Print”, make it an executable and drop it to your ~/.gnome2/nautilus-scripts folder and happy printing!