Monday, November 01, 2004

7 - G Rainbow Colony

Simply Superb..... Excellenct
7G Rainbow Colony Movie Stills
The breathtaking trailers of Tamil film "7G Rainbow Colony" had been a fixture on TV channels for quite some time now. The music of the movie has also been one of the biggest hits of the season. Walking into the theatre to watch the movie at last, flooded by memories of Selvaraghavan's last creation, I wondered whether "7G Rainbow Colony" could ever measure up to "Kaadhal Kondein".What strikes one first about "7G Rainbow Colony" is that its hero, Kathir (played by Ravi Krishna), is no archetypal Tamil film hero. He is an average, rather uncouth and rowdy, lower middleclass Chennaiite. The kind of person, who never draws a second glance from women. He is the quintessential underachiever who frustrates his father by performing disastrously in every examination he takes. He spends his time drinking, smoking or behaving raucously in theatres with his friends. Anitha (Sonia Agarwal), whose family has suffered a serious financial reverse, shifts into Rainbow Colony -- a decidedly lower middleclass neighbourhood -- and occupies the flat below Kathir's. Mercifully for the viewer, the result is not love at first sight! And love, when it does bloom in Kathir's heart, is not the formulaic love that one usually witnesses on the silver screen. In fact, Kathir's long, silent stares and his dogged pursuit of Anitha accurately mirrors the almost obsessive infatuations often seen in school and college campuses in these parts.

7G Rainbow Colony Movie Stills

Though Anitha's feelings towards Kathir do ultimately change, it is thankfully gradual and believable. The feeling of repulsion that viewers feel towards Kathir also gradually changes as the movie gets on. Anitha then helps Kathir rise out of the ocean of mediocrity and achieve something tangible in life.Sonia Agarwal is undoubtedly the star of the film. She looks ravishing though a little on the buxom side. She has portrayed to perfection the harassed, young girl with a staid middle class values.Unprepossessing and ordinary, Ravi Krishna's character doesn't stand out in a crowd and is just one among faceless millions. Though Kathir's three other friends appear in a large number of frames in the movie, their faces don't stay in the viewer's mind - an indication that Selvaraghavan has successfully managed to portray them as the kind of people who, in real life, receive no second glance.The songs drag on a little too long but the music by Yuvan Shankar Raja is excellent. The background music, though a trifle loud at times, lends itself to the narrative, which in turn is fast-paced and engrossing.

7G Rainbow Colony Movie Stills

Selvaraghavan's directorial venture after "Kaadhal Kondein" can be given an emphatic thumbs-up. He has managed to weave together a touching movie, which brings tears to one's eyes at moments. This movie is definitely among the best released this year, and must not by any means be given the go-by.

Permission View Tool

Permissions View Tool is shipped with .Net FrameWork. This tool is used to view the Declarative and Requested permissions set on an assembly.

So let us create an assembly set some requested and declarative permissions on it and view them with Permview.

Let us start by creating an assembly and setting some Requested permissions on it.

1) Open a new WindowsApplication.2) Add a button to the form named Button1.3) Add a Class to this Application Named MyClass.4) Add a method to this class named Add which adds to numbers and returns the result.5) In the Button Click event of Button1 call the Add method of the MyClass as shown below.

MyClass myClass = new MyClass(); MessageBox.Show(myClass.Add(1,2).ToString());

6) Run the application. click on the Button and you will get the result as "3".Now we will add requested permission to this assembly.
7) Go to AssemblyInfo.cs and add the below lines

[assembly: FileIOPermission(SecurityAction.RequestMinimum,Write="c:\\")][assembly: UIPermission(SecurityAction.RequestRefuse, Window = UIPermissionWindow.AllWindows)]

By setting these permissions we say that to execute this application minimum write permission on C: is required. Along with that we have also requested an another UI permission which refuses to show any windows on the screen hence no forms or message boxes will be displayed.
8) Run the application. The form will not be loaded instead you will see the below error message:

Additional information: Request for the permission of type System.Security.Permissions.UIPermission, mscorlib, Version=1.0.3300.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.

9) We can vew the permissions set on an assembly with permview.exe.10) Go to VS.Net command prompt and go to the folder which contains your application exe.11) Type the following command :permview WindowsApplication2.exe 12) You will see all the permissions set on the assembly as below:

minimal permission set:
optional permission set: Not specified
refused permission set:

13) Since we have set RequestRefuse permission for UIPermission we were unable to see the form so let us change that to RequestOptional as follows :

[assembly: UIPermission(SecurityAction.RequestOptional, Window = UIPermissionWindow.AllWindows)]


These permissions on the assesmbly that we saw were erquested permissions on the assembly. Permview is also used to view declarative security on classes or methods.
15) Let us add Declarative security to our MyClass as follows:

[PrincipalPermission (SecurityAction.Demand, Role="Administrator")] // add this above the class declaration

16) According to the above permission only those users who belong to the "Administrator" role will be able to instantiate this class or call any method on this class.
17) Let us view the declarative security of this class.18) Go to the VS.NET command prompt and type the following command : permview /decl WindowsApplication2.exe.

Note : - "/decl" shows the declarative permissions set on the classs and methods of the assembly.
19) You will see the class declarative permissions (as shown below) along with the requested assembly permissions.

Class WindowsApplication2.Class1 NonCasDemand permission set:

20) You will be able to execute the method call if the current user is an Administrator on the machine.

In this way we can use Permview.exe to view the declarative and requested permissions set on any assembly.

There are 3 types of requested permissions which can be granted on assembly :

Minimum permissions: (RequestMinimum) Permissions your code must have in order to run. Optional permissions: (RequestOptional) Permissions your code can use, but can run effectively without. Refused permissions: (RequestRefuse) Permissions that you want to ensure will never be granted to your code, even if security policy allows them to be granted.


-- Please post your queries and comments for my articles in the usergroup for the benefit of all. I hope this step from my end is helpful to all of us.