Posts

You Tube new look

Image
Google has been busy revamping their style sheets for all their products and focus'n more on revenue now Get Youtube's new interface which turns out to be more social ;) On chrome: Go to  http://www.youtube.com Ctrl + Shift + i Then click on console Now paste  document.cookie="VISITOR_INFO1_LIVE=ST1Ti53r4fU"  on the console and hit Enter. Reload (F5)

Google Maps

Image
Browsers are getting Stronger Sharper & Smarter ;) The day is not far away when we have nothing but a  browser installed in the desktop and things will be floating in the cloud ( provided our ISP are reliable which they are not now). Web technology is so open that even the all time money maker  Microsoft  to open up. WebGL is a open source technology that helps build 3D enabled apps with its rich API within the browser. WebGL's early application the  Body Browser  was just a peek to this technology. Google has integrated this tech with the google maps now and they have it pretty well. Google Maps GL once you click on the above link you will see a option on the left bottom something like this then just flow through. Now checkout the satellite view from the right top then just browse places its so smooth, no more frame by frame loading. Now that's sleek ;) even try the new view angles from the round knobs. Well everything was not smooth as i expected, thanks to

Remote desktop

Image
May be the laziest software engineer had invented this ;) which literally keeps to glued on to your desk. This innovation may be even have taken away onsite opportunities  of many. Now for users who are adhered to web browser & still more lazy than the inventor ;) and keep count of clicks to the least. The chrome remote desktop app is a cross-platform app that lets you access remote boxes. Check out http://goo.gl/EnhRe

WCF web service & Jquery

Here is a new item we can try out, seems to be very light. In this post i will walk through a simple credential validation. Create a simple ASP.NET project Add a the following mark-up in your Login.aspx page     < div>         < input  type= "text"  id= "username"  />         < input  type= "password"  id= "password"  />         < input  type= "button"  id= "login"  value= "Login"  />     </ div > Add jquery library and reference     < script  src= "Scripts/jquery-1.5.1.js"  type= "text/javascript">< / script > Add WCF Service Set aspNetCompatibilityEnabled attribute to true in your web.config file     < serviceHostingEnvironment  multipleSiteBindingsEnabled= " true "  aspNetCompatibilityEnabled= " true "  /> Set Factory attribute to "System.ServiceModel.Activation.WebScriptServiceHo

Code First!!!

Image
Code first- I just love this approach, well any developer would. MVC has been haunting since long ago. So thinking to my self better late than never gave it shot and found it to be pretty neat & interesting. And Microsoft as before with MVC, Entity framework, etc etc leaves you wondering how they did that!!! . Lets start coding (if we get a chance to ;) ), Select ASP.NET MVC3 Web Application in the next select Internet application and try razor view engine with html5 Now check your solution explorer you will see quite a lot of things that has come from thin air. Don't b shocked there is still to come Microsoft now needs a developer who knows to create a class For this sample project let me create following two classes Employee and Department and add to Models folder      public   class   Employee     {          public   int  Id {  get ;  set ; }          public   string  Name {  get ;  set ; }          public   string  

Notify Async operation in C#

Image
Threading is a nice thing until we know how it is being executed. Sometime it can be a pain in the arse and sometimes asset you gain from. Today came across a question on how to get to know a async operation is completed thought of spending some time to explain it in my way. How do you get to know a Async operation is completed, well one way is  IAsyncResult ,this is how we go, Lets create a delegate that will be used call our time consuming or background task. delegate   string   CallFunctionDelegate ( string  arg1,  string  arg2); say the time consuming function private   string  DoSomeThingBig( string  arg1,  string  arg2) just to show how to pass argument, i have used some dummy arguments. Once the time consuming function is completed lets call the notification function that will called after the asynchronous operation let that be private   void  AfterDoingSomethingBig( IAsyncResult  result) Now for this kind of function signature we have a delegate class calle

Visual studio styles

Transform your visual studio's visual looks :) There are a lot of templates that are readily available. Thanks to Luke Sampson who has created a space to share styles. Personally i like  WekeRoad Ink   and  Zenburn 2010 public   partial   class   _Default  : System.Web.UI. Page     {          delegate   string   CallFunctionDelegate ( string  arg1,  string  arg2);          protected   void  Page_Load( object  sender,  EventArgs  e)         {              AsyncCallback  CallBackAfterAsynOperation =  new   AsyncCallback ();         } Its damn easy to get it done. 1.Open Visual Studio 2.Click on Tools->Import and export settings 3.Select Import selected environment settings 4.Select No, Just Import new setting 5.Now browse for the settings file you downloaded from  http://studiostyl.es/ Make your visual studio interesting. If you are really good in colors create one style and upload in Luke's repository.