Tuesday, January 08, 2008
Finally completed my Masters
Thursday, January 12, 2006
Sharepoint Portal Object Model --Tips and Tricks
Anytime you find yourself working with the sharepoint object ,you might jump into a requirement ,where you need to catch the Access Denied Exception and perform your own structured exception handling rather than resorting to the one provided by Sharepoint.
Consider this piece of code
try
{
//Impersonate the administrator;
SPSite site=new SPSite(“http://portal-name”);
//******************************/
site.CatchAccessDeniedException=true;
//******************************/
SPWeb web=site.OpenWeb(“/sites/AdminSite”);
//revert back to the current user (in this case reader);
//this line of code throws the access denied exception
web.Permissions.DoesUserHavePermission(SPRights.ViewWeb);
}
catch(AccessDeniedException exp)
{
//Do you own handling
}
In case you don’t set the AccessDenied flag,SPS will abort the current and redirect the user to the “Unauthorized Page”.
Thursday, August 04, 2005
Going out for a walk with AIBO
AIBO’s personality develops by interactingwith people and each AIBO grows in a different way, based on its individualexperiences. AIBO becomes customizedbased on feedback and the software being used.With supplied AIBO MIND autonomous software, you can immediately interact with a mature ERS-7 or you can also reset it to its puppy stage.
AIBO’s mood changes with its environment, and its mood affects its behavior. AIBO also has instincts to move around, to look for its toys, to satisfy its curiosity, to play and communicate with its owner, to recharge when its battery is low, and to wake up when its done sleeping.
AIBO is capable of six feelings - happiness, sadness, fear, dislike, surprise, and anger. Its unique personality is developed with a combination of theseunique instincts and feelings.
The more you interact with ERS-7, the more it learns.
AIBO’s skill level can improve through encouragement from its owner. By praising AIBO for kicking the ball well, it will continue to play with the ball. Repeated practice with the ball will improve its skill level and it will learn new tricks. If you scold AIBO for playing with its ball, it will stop showing as much interest in it. With AIBO's back sensors, it is possible to adjust AIBO's schedule to coincide with your daily routine. You can schedule your usual bed time and AIBO will go to sleep on its charging station until it's time to get up. AIBO can also use its alarm to wake you up in the morning.
The more you interact with ERS-7, the more it learns. AIBO uses "short and long range distance sensor" in its nose and chest to detect the edges and the wall.
Saturday, July 30, 2005
Pack your bags...we're heading to Australia
The Australian policy for Permanent Residence is based on a points system.To be eligible for PR you must have a minimum of 120 points (im assuming that your a international student in Australia).Here is how the points are calculated.
You are granted points on the basis of your
1) AGE
2) English Language Abilities
3) Your Occupation (Your Occupation must be on the skills assessment lis)
4) Australian Qualifications
5) The place in Australia where you lived and studied(Only Regional and Suburban get points)
6) Is your Occupation in demand in Australia
If your interested check http://www.immi.gov.au
Saturday, July 09, 2005
My First MCP Kill
1.Essential Asp.Net with Examples in C# by Fritz Orion
2.Asp.Net Unleashed
3.Ado.Net Step by Step Microsoft Press
4.Professional Asp.Net Security Wrox Publishers
5.MSCD/MCAD by Amit Kalani ( A very comprehensive book ) Highly recommended
6.Developing Asp.Net Server Side Components Microsoft Press
Last but not the least your faithful MSDN Library
And guess what , the hard work paid off . I struck 1000 ,what more can a MCP ask for :)
Monday, May 16, 2005
Porting ASP.NET to Perl
Coming from the .NET background and bit of evangelizing on my part i convince my manager to build a framework that would make CGI Webdevelopers lives easier.Come up with something that's as snappy as ASP.Net ,as powerful and easily customizable as what the Redmond guys came up with .
After giving a shot at some of the applications that we would be building in the future ,i am completely convinced that this framework is a must .It would be a nightmare jumbling presentation with code ,spaghetti code what they call ,even though Html Templates do work in the direction of separating code and presentation but then again the Template itself can be cluttered with all the TMPL_vars ,TMPL_LOop constructs. We need to keep the Template as clean as possible. No Code.The only code goes behind in a kind of a code behind file. After all it's about time that i use my knowledge of ASp.NEt in Perl :)
Voila within two hours my desk is piled up with papers , each reflecting the activity i've been through in the last two hours,designing the framework. The most interesting part of the framework is the Page Parser thats going to parse my Template and build the control tree.
(to be continued) in the next episode we'll look at some of the swashbuckling work
Tuesday, March 29, 2005
Get Ready for Script CallBacks in ASP.NET 2.0
ASP.NEt 2.0 introduces the notion of Script Call Backs that perform the same purpose i.e talking to your server independently and asynchronously without refreshing the current page.Well how does this magic work.It's simple and Micrsoft had introduced the same concept earlier in the form of "Remote Scripting" ,but now the Script Call Back Mechanism is much tightly intergrated into the ASP.NET 2.0 framework.So here is whats happening under the hood. The Script Call Back is binded to a trigger .When the trigger is instantiated it uses a COM object to issue an HTTP POST or GET command to the specified target URL. The COM object used here is an old acquaintance of many developers:
var xmlRequest = new ActiveXObject("Microsoft.XMLHTTP");
Once the request is made to the server,the server calls the appropriate method,sends the result and the browser can change the UI of the current page using DHTML to reflect the results/changes.
Check it out at
http://msdn.microsoft.com/msdnmag/issues/04/08/CuttingEdge/