Skip to content

Excellence in Observation

डाली पर बैठा परिंदा, डाली की कमजोरी या उसके हिलने से नहीं डरता क्योकि उसे डाली पर नहीं अपने पंखो पर विश्वास होता है । (A bird sitting on branch of a tree is not afraid by the shaking or fragile branch because bird relies on her wings not branch.) Always trust yourself more than anything else.

Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom – Clifford Stoll

The life that you are living now…is also a dream of millions.. Value it…and Keep moving forward !!

Seeker of truth, follow no path; All paths lead where, truth is here - Edward Estlin Cummings

Formal education will make you a living. Self-education will take you places. Learning is a journey, drive it, live it, enjoy it !!!

Do the difficult things while they are easy and do the great things while they are small. A journey of a thousand miles must begin with a single step. – Lao Tzu

Amateurs built the Ark, professionals built the Titanic:
= Just because you’re an amateur doesn’t mean you’re not skilled, And just because you’re a professional doesn’t mean you are. The ark held up, the Titanic didn’t.
= Stop complaining. Stop whining. Start creating. Start moving.

White-space before Items in DropDownList

The Problem:

In a restaurant, there are some categories of food items available like Pizza, Burger etc. Each Category is having various food items. The food items are having furthers sub levels.
While selecting a category from drop down (not shown in figure), the food item dropdown must be populated with all  food items under selected category. Let’s say if Pizza is selected in category dropdown (not shown in figure), then all food items of category Pizza will be displayed in food item dropdown as shown in below screenshot. Here there are  two sublevel at level 1: Veg Pizza and Non-Veg Pizza. At level 2, under Veg Pizza,  we have further two child level as “Paneer Pizza” and “Cheese Pizza”. The Paneer Pizza is again have two sub-level as Peppy Paneer and Spicy Paneer.

So here we need to add space before the sublevels depending on its level while adding an item in dropdown list as shown above.

The Solution:

To implement the requirement, I have tried String.Format(“ ”+FoodItemName) and many other ways for all space before sub levels but dropdown was trimming it the while space while adding items. Since we are getting list of food items at runtime, we need to do it using code behind only so no scope of using &nbsp in .aspx page.
Finally I used “\xA0″ as a C# string which is equivalent to “&nbsp” in html. The whole solution is like:
(click on image for clear and big view)

Here at line # 24, we are adding the space for sublevel and using recursion to add further sublevels.
In line # 26, after recursion call, we are removing extra padding.

Thanks for reading. Happy Coding.

DevCon 2012 – Part 2

In the DevCon 2012 – Part 1, we had the overview of DevCon 2012 with summary of my experiences during the event particularly in “DevCon 2012 – Celebrations” section of the post. Further, in this blog post we will have details of the sessions I attended in DevCon 2012.

ASP.NET MVC4 + Web API
by Chaitra Nagaraj
DevCon 2012 – Track 1 – Session 1

In this session she explained various features of ASP.NET WebAPI with demos like how to use ASP.NET Web API to create HTTP services that can reach a broad set of clients including browsers and mobile devices. Other demo were related to HTTP Dispatcher, OData Support, HTTP request/response handling, Bundling and Minification of java script. The session was full of learning and more than houseful.

Battle of Clouds – Windows Azure vs Amazon
by Niraj Bhatt
DevCon 2012 – Track 1 – Session 2

This session was all about two big two major cloud platforms, their offerings and their key differences. He discussed several aspects of hosting the application on cloud and then compare the offering of those two major players in the market. He mentioned scaling, availability, fail-over, geo-location and security related issues too.

Building Applications for Intel Ultrabook Platform and Windows 8
by Rajagopal A
DevCon 2012 – Track 1 – Session 3

An Ultrabook is a new category of computing devices delivering a no-compromise and more secure computing experience in one sleek and portable device. In this session they demonstrated various features of an Ultrabook like sensors,  the importance of “Touch”, and integration with other technologies for Ultrabook applications. Please visit Wikipedia page and Intel site for more information on ultrabook.

Ignite the leader within you
by Vinod Kumar
DevCon 2012 – Track 1 – Session 4

The BIG and most waited session of the day. The session started with a question about leadership – What is the difference between a manager and a leader? With many other audiences, I tried to answer with few points. (I read his blog post long before on this topic).  To clarify the definition of leadership, he started with myth around:

Five Myths about leadership:

Before speaking on myths about leadership and he played a video which was having the journey of few leaders from different fields. In the video there were incidents belongs to Amitabh Bachchan, Bill Gates, Dhirubhai Ambani , Mahatma Gandhi , Sachin Tendulkar and Cadbury.  The video was organized into three parts. First part was having the vision of those great leaders. Second part was about the tough time they faced in their life time while there was no stardom and they were like doomed. The third part was having glimpse of the great they achieved finally. The point was that leaders also used to get tough time but they continue their journey of excellence.  You can enjoy watching similar video here.

Generally there are following myths about leadership: The Management Myth, The Entrepreneur Myth, The Knowledge Myth, The Pioneer Myth and The Position Myth. To be a leader any of those things is not mandatory. For example, to be a leader there is no need to be an authority or a manager. Leader is a person to which people come themselves as they trust him and feel comfortable. Mahatma Gandhi never assumed himself as an authority but always used to describe himself as a humble servant of Mother India. Dhirubhai Ambani started off as a small time worker with Arab merchants and became the leader of Reliance Industries which is having over 85,000 employees today.

The final point is: Real leadership is being the person others will gladly and confidently follow.

Here Vinod narrated a story: There was a Master who chosen a young monk, relatively new to their monastery, as his successor, instead of a old monk who was bearing many responsibility of monastery at that time and was one of the oldest member of the foundation.

While old monk showed his discontentment and asked for a chance to prove himself better, the Master asked young monk to work in kitchen and asked old one to manage the monastery. After some days this old monk asked to the Master that “I have noticed a phenomena that when people are happy they comes to me but when they are in trouble they used to rush in the kitchen.” The master replied, “It is because the true leader lives there.”

So Real leadership is being the person others trust and approach for help. It is not about holding a position or authority.

The big why:

A leader always focus on why before how and then. He/she first answers the why factor and fills the sense of purpose towards the endeavors. For a leader, people come first than work. And once people get the sense of purpose they involve produce result enthusiastically as shown below:

The following graphs answer why now a day employees within big organization just work without the enthusiasm.

When a new organization is established by some leaders, they have very precise and great vision and strong belief in that. Since the people count is less, the leaders are able to inspire individuals directly. All employees have belief in the vision and feel the sense of purpose in what they do there and contribute without exhaustion in spite of work pressure. But as time passes the organization need more people, now the new people are not hired by leaders but by the followers or we can say people from 2nd line. So this goes on, after certain time a new hire just join for work opportunity or money, not due to belief in vision.  The average of belief in the original vision of establishment level goes down.

The key lessons here is:

  1. Successful organizations need more leaders to inspire newbies towards the vision in the long run.
  2. To Change the Direction of the Organization, Change the Leader.

More Learnings:

  1. Be a child: Children do not get affected much by the surrounding. They used to play or do what they want freely. So sometime act like a child, you may have better insight.
  2. Technology is just a tool, not direction. It is a leader who utilizes it for betterment of people.
  3. Leader convinces the surroundings not only the team. (To demonstrate this he played a clip of movie Lagaan in which Bhuvan convinces the whole village to make Kachra as a part of their team.  A similar video here)

This was really a wonderful sessions. My thousands thanks to Vinod Sir. I feel so lucky to have him as a mentor in BDotNet.

SQL Server Tips and Tricks for Web Developers
by Pinal Dave
DevCon 2012 – Track 2- Session 5

This was an awesome session full of laughter and learning as expected from the unique style of Pinal. The session started with discussion of importance of internet. Then Pinal demonstrated what great responsibility web developer has in present time. And the logic behind was:

=>  First things comes in our mind while we think of web (cobweb) is Spider

=>  Now think spider as a human that would be Spider Man

=>  If we consider Spider Man in technology world, he would be Web Developer

=> As Spider Man says “With great power comes great responsibility”

=>  The great responsibility of Spider Man as Web Developer would be to build high performance web application.

Pinal presented above points in very smooth flow and slide deck full of images and messages. After this amusing story, how to create a high performance web application was the subject of rest of the session.

Then he demonstrated SQL Server tips and tricks which are very relevant to web developers. He advised the Web developers some do’s and don’t while writing query for database like never use Scalar Functions hides the performance factors. Performance of query while using IN, EXISTS and JOIN very much depends upon particular situation. Key learning was there is no silver bullet to get the most efficient query for a situation. Often every situation is unique and we need to think about various ways to perform the task and look into execution plan for relative performance.

Some Paradox out of sessions:

  1. Nothing is more permanent than temporary fix.
  2. BDA task: Increase performance without changing the code.

Thanks Pinal for wonderful session and blending fun with learning in such a splendid way.

Visual Studio 2012 – Tips & Tricks
by Lohith G N
DevCon 2012 – Track 2- Session 6

The motive of the session was if you save few second in common activities during development, you can save an hour in day. In this session he focused on new short cut applicable to VS 2012 but also spoke about less used shortcuts which were there in VS 2005, VS 2008, VS 2010, VS 2010 SP1 and VS 2010 with PPT. More about PPT (Productivity Prowers tools for VS 2010) please visit: Productivity power tools

Lohith started to demonstrate the short cuts to manage Start Page, Solution Recent list, theme change, search for options within toolbars, Windows and document management, Navigation and debugging etc. The PDF of Slide deck having all the short cut demonstrated is available here.

This session was very practical and interactive as it was enabling the developer more productive and efficient.

DevCon  2012 – More Details:

If you are more interested in what community says about it, Please visit BDotNet Facebook Page. Some more useful links in this regards are:

Presentation Slides and Code of DevCon 2012 Sessions

More about DevCon 2012 Speakers

Blog Post on DevCon 2012 by Jagan 

Blog Post on DevCon 2012 by Senthil

Blog Post on DevCon 2012 by Manas

Blog Post of DevCon 2012 by Akash

Blog Post of DevCon 2012 by Tomy

Blog on DevCon 2012 by Abhishek

Conclusively, DevCon 2012 was a great event of leaning for me and fellow BDotNetters. Thanks to all who joined and made this event a grand success.

Thanks for reading. Have a nice time.

DevCon 2012 – Part 1

DevCon  2012 – An Introduction:

DevCon  2012 was organized on 4th August 2012 by BDotNet User Group in Microsoft Signature building, Bangalore. It was a big day for all BDotNetters. We had a nice opportunity of learning, sharing and networking. The official website for the event is http://www.devcon.bdotnet.in/

I would like to share my experience of  DevCon 2012 here which I will put in two blogs in order to have convenient size of the posts. In this post first I am providing some history that would be useful for new members of BDotNet and then I will give overview of the DevCon 2012. In second blog post DevCon 2012 – Part 2  I will be discussing closely about the each sessions I attended.

If you are in hurry and looking for single line summary of DevCon 2012 experience, for me it would be:

A Developer Conference having outstanding speakers facilitating Learning with fun and presenting path ahead to excellence in technology and life as well.
– (For more please visit: Source)

DevCon  2012 – The Legacy:

BDotNet is Bangalore DotNetUser Group, a community which provide a platform for learning, sharing and nurturing technocrats and leaders. The ultimate goal is to share the learnings in order to use the technologies effectively and  to embrace new technologies smoothly. BDotNet user group was established in 2003 and very active community as of now.

We used to have a half day UG meet after every fortnight on Saturday usually from 10:00AM to 01:00PM . Often in very 4-6 months there are some full day big events like SQL Saturday, TechEd Day, DevCon etc. Sometime we used to collaborate with other user groups like Bangalore IT Pro and organizations too.

You can have an overview of the events organized by BDotNet UG group in past at below links:

EventBrite BDotNet PageDevCon 2010 on Lohith’s BlogBDotNet Events Page, BDotNet Events on FB

DevCon  2012 – Powered by:

The event was powered by BDotNet core members specially by Vinod, Lohith, Vic, Pinal and Kashi.

Manas Ranjan Dash, Kamlesh RaoSudeepta Ganguly, Neethu Kumar also did excellent volunteer work for registration, time keeping and other logistics.

DevCon 2012 was sponsored by: Microsoft, Telerik, Pluralsight and Intel.

DevCon  2012 – The Agenda:

We had a minor change in agenda available on DevCon 2012 Site. Since nobody was ready to miss the session from Pinal and Lohith which were put in parallel track, so due to high demand of people, organizing committee changed the agenda.  The final agenda was:

Time

Track 1

Track 2

09:00am – 9:30am

Registration

09:30am – 10:00am

Keynote by Ranjan Bhattacharjee

10:00am – 11:00am

ASP.NET MVC4 + Web API

Speaker: Chaitra Nagaraj

Windows 8 – A peek inside

Speaker: Vic Parmar

11:00am – 11:15am

Tea Break

11:15am – 12:15pm

“Battle of Clouds – Windows Azure vs Amazon WebServices

Speaker: Niraj Bhatt

Windows 8 for Developers

Speaker: Rajashekaran Vengalil

12:15pm – 01:15pm

Building Applications for Intel Ultrabook Platform and Windows* 8

Speaker: Rajagopal A

Walkthrough of a Metro Application

Speaker: Praveen Srivatsa

01:15pm – 02:00pm

Lunch

02:00pm – 03:00pm

Ignite the leader within you

Speaker: Vinod Kumar

Kendo UI community launch

Speaker: Abhishek Kant

03:00pm – 03:15pm

Tea Break

03:15pm – 04:15pm

Introduction to No-SQL & Mongo DB

Speaker: Manoj G

SQL Server Tips and Tricks for Web Developers

Speaker: Pinal Dave

04:15pm – 05:15pm

HTML5 – what you NEED to know

Speaker: Amar Nithyananda

Visual Studio 2012 – Tips & Tricks

Speaker: Lohith G N

05:15pm – 05:30pm

Closing note By Core BDotNet Members

In above table the sessions’name in voilet color were the sessions which I attended there. Please go to the post DevCon 2012 – Part 2  which having detail of  all those sessions.

DevCon  2012 –  Celebrations:

It was a full day celebration of new technologies coming for DotNet developers. We had great learning of web technologies, Metro apps and windows 8 and most awaited session on leadership by Vinod Sir. People were super excited for the sessions by Pinal and Lohith too.

The day started with Keynotes of DevCon 2012 by Ranjan Bhattacharjee. He gave overview of Windows 8 as developer tool and different capabilities of new operating system. The presence of leaders like Srini between us was making the day magnificent.

Then the sessions started in two tracks- One on Atrium Hall and another one in Hamilton Hall. We could choose any sessions which would be more useful to individual and switch between the tracks.

For first half I attended track 1, beginning with the session by Chaitra on ASP.NET MVC4 + Web API. This first session was more than houseful and the lessons were very useful for a developer in day to day life.

The lunch was very testy. It was sweeter as we were having our friends as mentors around.

In second half, we had most awaited session on leadership by Vinod Sir. Then there was most hilarious and energetic session of the day from Pinal : SQL Server Tips and Tricks for Web Developers ( With great power, comes great responsibility ).

Thare is separate post DevCon 2012 – Part 2 on all the sessions witch I attended otherwise this post would be too long. Here in short, each session was great with lot of leanings and fun.

In every session if you ask a great question or answer a question from speakers, you would get some goodies from Telerik (Kendu UI T-shirt or keychains). I was lucky one to win a Kendu UI T-shirt in Pinal’s session -SQL Server Tips and Tricks for Web Developers.

We will have all presentation slides and demo code available online and speakers will provide the links to download those at BDotNet Facebook page. The slide-deck of “Ignite the leader within you” is already available here. In closing notes, it was also declared the best blog on this event will get a EXO PC from Intel.

In the last, while attendees were submitting feedback from, volunteers made sure that each one is getting Plural Sight Monthly Subscription as well as Key Chains form Telerik.

DevCon  2012 – Part 2:

I hope you have enjoyed the memories of DevCon 2012 along with this post. Further please go to the post DevCon 2012 – Part 2  which having detail of sessions which I attended. At the end of the post DevCon 2012 – Part 2, I have given the links to more blogs on DevCon – 2012 from fellow BDotNetters.

I really feel grateful to the leads and fellow members of BDotNet for providing such an opportunity. Thanks to all.

Have a nice day.

Advance C# 4 Training in HP

I delivered Advance C#4 Training in my current organization HP in Quarter-2. In that training we had total 8 sessions of 2 hours each, between Monday 21 May 2012 to Friday 01 June 2012.

Today L&D team organized a “Q3 Recognition Day” and we had coffee chat with our L&D Director, Sumanth Tarigopula. Blow is the Certificate I received from him:

During the training, it was nice interaction with teams. Thanks HP L&D team for such a nice opportunity.

Six Real-world Examples of Singleton Pattern

Singleton Pattern:  Ensure a class has only one instance, and provide a global point of access to it.

Typical Real World Uses:

  1. “Score” class in game development to keep track of score of teams
  2. “HitCounter” class for a web application
  3. “MainController” class for an application
  4. “Logger” class which is used for logging in different sources
  5. “LoadBalancer” class in application
  6. “ConfigurationSettings” class which provides the configuration for an application

 

Set the Goal but Focus on Journey

In other words, vision the future but live in present. There is a saying, “Yesterday is History, Tomorrow a Mystery, Today is a Gift, That’s why it’s called the Present”. So the present, the journey, the path is also a reward along with final destination.

If you want to enjoy the life, you must learn how to enjoy the journey. There would be very few moments of joy if you feel happy only while you have just achieved something. To achieve a goal, make a proper plan, follow it. Life is so precious. Never think that if you do not have some achievement, life is not worthy enough or it is miserable. Life is a great bliss itself. A journey towards any big achievement needs time. Rome was not built in a day. We must have to wait for the season. And the waiting, the way has its own beauty and worth. So keep smiling, move ahead, and grab what you desire.

 

Thanks to Pinal and Srini as above blog post is inspired by: http://blog.sqlauthority.com/2012/07/17/sqlauthority-guest-post-lessons-from-life-practice-let-go-srini-chandra-author-of-3-lives-in-search-of-bliss/