Archive

Archive for May, 2009

Now I can close and reopen questions in stackoverflow

May 29th, 2009

Last week my stackoverflow rep crossed 3000 ;-) Now I can vote to close and reopen questions.

so

so2

For those who don’t know what stackoverflow if all about then stackoverflow ‘about’ page has the best definition.

Stack Overflow is a programming Q & A site that’s free. Free to ask questions, free to answer questions, free to read, free to index, built with plain old HTML, no fake rot13 text on the home page, no scammy google-cloaking tactics, no salespeople, no JavaScript windows dropping down in front of the answer asking for $12.95 to go away. You can register if you want to collect karma and win valuable flair that will appear next to your name, but otherwise, it’s just free. And fast. Very, very fast.

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban Misc

Why are my classes Private by default in Visual Studio .net?

May 27th, 2009

There was an interesting question stackoverflow today.

Why are my classes Private by default in Visual Studio .net?

Here is why

By default a class without an access specifier is internal and a member defaults to private. This it keeps the visibility as restricted as possible and thereby increases encapsulation.

Making a new class public without even thinking about breaks the entire idea of encapsulation.

The class template that VS uses to create a new class can be found in this zip file (in case of CSharp):

C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates\CSharp\1033\Class.zip or C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\Code\1033 when using VS Orcas

Open the zip file, add the public keyword, save it and you’re done. Every time you add a class it will be public.

Check out the question here.

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban vb.net

Twitter in India

May 26th, 2009

There is a joke about India which goes like this

American scientists dug 50 metres under the ground and discovered small pieces of copper. After studying these pieces for a long time America announced that the ancient Americans 25,000 years ago had a nationwide telephone network…Naturally the government of India was not that easily impressed. They ordered their own scientists to dig even deeper. Aftre digging so many meters they found absolutely nothing…..and so the scientists concluded that they had wireless systems.

I was reading about Twitter TV news in yahoo. But people dint realise that we have Twitter in Indian TV channels for a long time.  Surprised? Just watch any of the music channels and you can see everyone wishing their loved ones through SMS. ;-) . This is public timeline.

This post has nothing to do with programming but you can check out my previous posts about twitter programming.

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban Misc

Teach your kids programming with Small Basic

May 26th, 2009

Small Basic is a project that’s aimed at bringing “fun” back to programming. By providing a small and easy to learn programming language in a friendly and inviting development environment, Small Basic makes programming a breeze. Ideal for kids and adults alike, Small Basic helps beginners take the first step into the wonderful world of programming.

Its very easy to write cool programs using Small Basic. Try out following lines of code.

pic = Flickr.GetRandomPicture("beach")
Desktop.SetWallpaper(pic)

Source : SO

You can download Small Basic here. Small Basic blog has lot of examples to help your kids explore Small Basic.

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban links, vb.net

My Session in K-MUG (Kerala Microsoft Users group)

May 25th, 2009

K-MUG conducted another UG session in Trivandrum on 23rd May 2009.  Here is the link to ppt about my session on Visual Studio Tips, plugins and useful tools.

Thanks to Allianz Cornhill for letting us use the training room inspite of our last minute request ;-)

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban Tips, vb.net

Silverlight and IPL

May 23rd, 2009

I was not aware that www.iplt20.com uses Silverlight for live streaming of mathches until I saw ipl live in TechEd. It works super cool even with my slow internet connection too ;-)

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban Silverlight

Security Policy in the v4 CLR

May 23rd, 2009

One of the first changes that you might see to security in the v4 CLR is that we’ve overhauled the security policy system.  In previous releases of the .NET Framework, CAS policy applied to all assemblies loaded into an application (except for in simple sandbox domains).

That lead to a lot of interesting problems.  For instance, one of the more common issues people ran into was that they would develop an application on their local machine that they wanted to share with other people on the network.   Once the application was working on their machine, they would share it out, but nobody could run it over the network because CAS policy provided a lower grant set to assemblies loaded from the intranet than it does to assemblies loaded from the local machine.   The usual result was unexpected and unhandled SecurityExceptions when trying to use the application.

Generally, the only solution to this problem was to either manually update the CAS policy on each machine that wanted to run the application, deploy the application some other way (for instance via ClickOnce), or use native code.

One of the worst things about this problem was that the additional pain of not being able to just share a managed app over the network wasn’t actually buying any security.  If an application wanted to attack your machine, it could bypass the sandbox that the CLR was setting up simply by being written in native code.

Read the rest.

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban Tips, links, vb.net

SQL Server free ebook

May 21st, 2009

SQL Server MVP Jacob Sebastian from Ahmedabad, India has just released a new free Ebook entitled, “The Art of XSD – SQL Server XML Schema Collections”.

This Ebook is designed to help database developers learn and use XML Schema collections in SQL Server. The Art of XSD starts with the basics of XML schemas and then walks the reader through to building powerful XML schemas in SQL Server.

Source

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban Uncategorized

Microsoft TechEd 2009 India

May 18th, 2009

After so many Yes and No, I finally decided to attend TechED India in Hyderabad. Thanks to TweetMyPC for getting me a free pass and my company for sponsoring my Travel and accomodation ;-) . It was a two and a half hour flight journey from Trivandrum to Hyderabad. I had to take a plane from Trivandrum to Chennai and there to Hyderabad (Next time I will think about choosing Air India. They are worse than our Government buses). The travel was at night and I couldn’t sleep the whole night and reached hyderabad at 9:00 AM on 13th May 2009. It was a 45 min drive from Airport to the Venue. I reached the venue one hour late so missed Steve Ballmer’s keynote address.

Venue was filled with thousands of IT professionals, Developers and Techies and I waited for some time to meet Sreejumon and Binoy. I had a feeling that being alone might be boring but all the sessions kept me busy all the three days.

Day 1 started with Keynote address by Steve Ballmer and followed by lots of Sessions. I attended the folowing sessions which were for Web Developers.

  1. Welcome to ASP.net 4.0 – Developing next gen web applications by Stephen Walther. As expected this session was about the new .net 4.0 and visual studio 2010 and its new features. This session was very informative. Stephen also promised that he will give us some surprise about the new version of AJAX Control Toolkit in his next session on Day 2.
  2. Developing MVC based web apps using ASP.net

There are lots of changes in asp.net 4.0 and I am sure all the developers will love it. In the afternoon I met Suprotim Agarwal of dotnetcurry. I am one of the authors for dotnetcurry and Iam meeting him first time (Personally). I also met few other MVPs like Vikram and Sathish Kumar.

I attended Windows 7 lab in the evening and attended the session about the changes in Windows 7. It was a very informative session. I have used Windows Vista only for a week and but Windows 7 looks more promising an has better features. I am sure Windows 7 will be like Windows XP which is still the favorite Operating system for Millions of users.

Only 1 hour of sleep left me tired and I went to sleep early on 13th May.

Day 2 started with keynote address by Resul Pookutty. You must be wondering what this guy is doing in a Techie’s session ;-) . I had the same feeling when I entered the hall but Resul talked about Music and how he uses technology to bring perfection, Originality to his editing.

day-1

Day 2 (for Web developers) started with a session about Microsoft Web platform and the session was by a person from irctc. Yes you read it right the session was about IRCTC – Online Passenger Reservation system. This was one of the best session. I was not aware that irctc was the largest e commerce website in Asia. The speaker talked about how he uses MS technologies for IRCTC and their challenges. My friends used to complain how slow the site is sometimes but I know the reason for this. The system books ticket using a 1985 model PRS. This was one of the most interesting sessions. He also talked about their future plans about the website, Revenue and some stats.

This was followed by ASP.net AJAX 4.0 as promised Stephen started this session by introducing(Inaugurating) 3 new controls in AJAX control toolkit. HTML Editor, Combo box and Color Picker are the 3 new controls. I am planning to write articles about these 3 new controls soon in codegeeks and dotnetcurry.

Afternoon session was about ASP.net deployment in 2010 and this was not as informative as previous sessions but I attended the session because I felt the VS 2010 would solve some of the release issues we face in the company I work for.

One of the 2 main attractions in TechED was Microsoft SAM (not to mention about his new company, Kingfisher Air hostesses ;-) ) and Microsoft Surface.

Microsoft SAM

imag0034

Day 3 was all about Silverlight.

  1. What’s new in Silverlight 3
  2. Silverlight and .net RIA services
  3. IIS media pack and Silverlight 3 – Redefining online multimedia applications
  4. Advanced Silverlight : Doing more with Silverlight

Overall TechEd was a very new experience for me. Met lots Experts, made new friends and came back home with lots of knowledge.

imag0033

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban Misc, links

Microsoft Silverlight 2 for Mobile: Developing for Mobile Devices

May 12th, 2009

Wouldn’t it be super cool if the Silverlight apps you build for the desktop can now run on Millions of Mobile Devices ? If you have been building Silverlight applications and are wondering how to extend them mobile devices, this is just the right session for you. In this session, filled with some very cool demos you will not only learn how to extend your existing Silverlight 2 applications to work on Windows Mobile but also learn how to build rich mobile Silverlight apps that play media, handle simple gestures, have cool animations, and web services. We will also talk about tooling enhancements in Visual Studio that support Silverlight app development on Windows Mobile, what to consider when delivering eye-popping UI on mobile, and help you understand the key differences from developing Silverlight apps for the desktop.

Read the rest here.

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban Silverlight