Friday, 5 February 2016

Sharing my thoughts – Part 1: Driven from within!!

Dear All,

I am a big believer of the Power of Youth. History is full of evidences that the energy and the strength of youth if channelized properly, can create wonders. In this series, I like to share some of my thoughts that I have learnt over the years with my young friends. I hope readers will find them useful. I welcome any comments or suggestions to make it more helpful.

In today’s fast pace life filled with numerous opportunities and unlimited choices and a life that is packed with competitive spirit, many times we find ourselves confused as to what is right and what is wrong or what should we do and what we should not. In this blog I like to cover one of the most important advice that will help you lead a successful and more fulfilling life.

BE DRIVEN BY YOURSELF

Each one of us have many influences in our life that make us who we are. Initially most of us take parents and teacher’s guidance during schools. Which is very important and necessary. Later, friends, colleagues, relatives, society, media etc. play their roles.

However, my advice to you is that, you should be in-charge of your life not others. Take some time to understand what you like, what you enjoy, what are those things or activities which make you forget everything like time, sleep and hunger. Remember, those are your callings and you should follow them.

At every steps you will find people who will give you free advice on what you should do for your future. Listen to them but do what you think is right for you. Remember, it is never too late. I changed my direction after few years into my first job. Since then I have been trying to follow my heart and have taken some very significant decisions that have played very important role in my career and life. I am very happy and satisfied with most of those decisions. These events have made me learn and experience what I am sharing with you today.

Most of us normally link money with success. In my opinion, between a life with lot of money and a life that we happily look forward every morning, the second option is much better. I am not saying money is not important however, hiding your inner voice under the shell made up of money is not a good idea in long term. We will talk more about wealth in the future blogs.

About the society pressure i.e. ‘Log kya kahenge’ (what will people say), I have a very simple advice, Ignore them! Unfortunately, society’s success parameters are very shallow and flexible. Today they may not have good things to say about you but it is very possible that tomorrow they might be proud of you.

Let me share some well-known examples. The popular Cricket Commentator Harsha Bhogale did his MBA from IIM Ahmadabad, a premier management institute in India. He could have easily gotten a high paying job but he followed his passion and we all know how successfully he did it. Kalyan Verma was a well-paid Yahoo India’s software professional. However, now he is a world renowned wildlife photographer. The list goes on and on. These examples also indicate that we many not find our callings early on. That is just fine. What is important is to keep looking for it. 

In summary, my advice is to try to know yourself and have your priorities clear. Here are some simple tips on how you can go about it.
Take a diary and write down following
-          What activities you enjoy doing in your free time
-          What you like
-          What you don’t like
-          What future events will make you very happy like travelling, awards, promotions etc. 
-          What are those things that make you lose track of time, hunger, sleep etc.

Don’t finish this process in one sitting, it will not be complete. Keep adding to it whenever you think of sometime. You may also consider going through lot of information and help available online.

I am very confident that the list that you prepare will give you a very good idea about your passion or it will have some common themes which will be the reflection of your inner you. Try to analyze and come up with a plan on how you can ‘connect the dots’. That direction will give you much more pleasure, satisfaction and success than something that you force onto yourself. It will help you find the goal, the direction and on top of that you will enjoy this journey.

At the end, I do want to mention that I try to follow what I mentioned above as much as I can, however, there are still many things that I have not been able to do or in other words not been able to connect all the dots yet. I am work in progress.

Good Luck!!

Tuesday, 24 November 2015

Enable Intellisense for JavaScript Libraries (e.g., JQuery, AngularJS) in ASP.NET

IntelliSense has become an integral part in programming. It goes hand in hand with .NET because Visual Studio has ability to use reflection to retrieve all the information from the references that you have provided. If you start typing and IntelliSense has no suggestions you’ll immediately realize there is something wrong.

So why not have Intellisense for JavaScript Libraries?

Follow the following steps to enable Intellisense for JavaScript Libraries in your ASP.NET project:
  • Create a folder named “Scripts” in root.
  • Right Click on it => Add => Add New Item => JavaScript File with name “_reference.js”
Note: This file must (by default) be located in a folder at the root called /scripts/. That's the naming convention. Any file located at /Scripts/_references.js is automatically added to global Intellisense.
The file “_reference.js” will contain nothing but just a bunch of references. This is also the only file that is included in the intellisense all the time.
As you can see we have added references for AnjularJS and JQuery. Similarly you can add for any other JavaScript library. Path should be the path of JavaScript library.
Now you might be wondering what is first line.

/// <autosync enabled="true"/>

JavaScript files are added, deleted and renamed all the time, so it's very easy to forget to update the _references.js file accordingly. A better approach was to add a feature that would do that automatically and thereby give Intellisense for all .js files globally all the time.

This new auto-sync comment is all it takes to enable automatic synchronization of triple-slash references. Whenever a .js file is added, renamed, moved or deleted, the _references.js file is automatically updated to reflect the changes.

That’s it. Now just focus on logic to be implemented, intellisense will handle rest.

Wednesday, 18 November 2015

New Project on AngularJS

To all software developers out there, we are very excited to start a very interesting AngularJS based project. Love to know your experience with AngularJS or if you would like to learn it. 
Let us know!

Monday, 15 September 2014

Updating Identity Column in SQL Server.

If you want to update the value of identity column of existing records then you need to set

set identity_insert YourTable ON
 
 
 
Example
-- Set Identity insert on so that value can be inserted into this column
SET IDENTITY_INSERT YourTable ON
GO
-- Insert the record which you want to update with new value in identity column
INSERT INTO YourTable(IdentityCol, otherCol) VALUES(13,'myValue')
GO
-- Delete the old row of which you have inserted a copy (above) (make sure about FK's)
DELETE FROM YourTable WHERE ID=3
GO
--Now set the idenetity_insert OFF to back to prevoius track
SET IDENTITY_INSERT YourTable OFF

Tuesday, 19 August 2014

HTTP Status Codes

HTTP Status Codes
Hi
Hello Developers, I came across Some Http Errors, I got some data about Http Errors that I am sharing with you guys.
HTTP, Hypertext Transfer Protocol, is the method by which clients (i.e. you) and servers communicate. When someone clicks a link, types in a URL or submits out a form, their browser sends a request to a server for information. It might be asking for a page, or sending data, but either way, that is called an HTTP Request. When a server receives that request, it sends back an HTTP Response, with information for the client. Usually, this is invisible, though I'm sure you've seen one of the very common Response codes - 404, indicating a page was not found. There are a fair few more status codes sent by servers, and the following is a list of the current ones in HTTP 1.1, along with an explanation of their meanings.

Client Error

400 - Bad Request
a status code of 400 indicates that the server did not understand the request due to bad syntax.

401 - Unauthorized
a 401 status code indicates that before a resource can be accessed, the client must be authorised by the server.

403 - Forbidden
a 403 status code indicates that the client cannot access the requested resource. That might mean that the wrong username and password were sent in the request, or that the permissions on the server do not allow what was being asked.

404 - Not found
the best known of them all, the 404 status code indicates that the requested resource was not found at the URL given, and the server has no idea how long for.

408 - Request Timeout
A 408 status code means that the client did not produce a request quickly enough. A server is set to only wait a certain amount of time for responses from clients, and a 408 status code indicates that time has passed.

414 - Request-URI Too Long
The 414 status code indicates the URL requested by the client was longer than it can process.

 

Server Error

500 - Internal Server Error
A 500 status code (all too often seen by Perl programmers) indicates that the server encountered something it didn't expect and was unable to complete the request.

501 - Not Implemented
The 501 status code indicates that the server does not support all that is needed for the request to be completed.

502 - Bad Gateway
A 502 status code indicates that a server, while acting as a proxy, received a response from a server further upstream that it judged invalid.

503 - Service Unavailable
A 503 status code is most often seen on extremely busy servers, and it indicates that the server was unable to complete the request due to a server overload.

504 - Gateway Timeout
A 504 status code is returned when a server acting as a proxy has waited too long for a response from a server further upstream.

505 - HTTP Version Not Supported
A 505 status code is returned when the HTTP version indicated in the request is no supported. The response should indicate which HTTP versions are supported.

Introduction

"Sharing knowledge is not about giving people something,or getting something from them. That

is only valid for information sharing. Sharing knowledge occurs when people are genuinely

interested in helping one another develop new capacities for action; it is about creating

learning processes."


Purpose : We can share our technical skill on it like as follows

- Solutions to common technical issues.
- Explore the new learned concept.
- Share new technologies etc