My Promotion Story

Welcome to CodeSpread! Here’s my promotion story. A very common scenario for IT...

Read More
Error-Resolved : Too Many Redirects.
Oct30

Error-Resolved : Too Many Redirects.

During Deployment, We faced one error “There are too many redirects happening……”  while navigating to login page. We first felt that this is an issue related to certificate header and can be resolved by setting the parameter ‘ssl=true’ in the header. After banging head for many hours and a night out, the issue got resolved. I thought this resolution might help others also so posting it here. This issue is related to the load balancer where HTTP profile value has to be set up as ssl_header from the dropdown. Please like this post and share, so that it can help somebody looking for...

Read More

know your URL

Guys trust me, I am not kidding!! I have had my experience, telling people about URL, parts of URL, query string, SEO friendly URL, canonical URL. Once again, a simple and innocent question “What is URL?” Internet is a world in itself and each resource can be located by an address which is called as URL:uniform resource locator. Though it is self explanatory but you can read more here. How this works actually? We will take an example and try to explain it in our own usual way. “http://codespread.com/2012/10/28/know-your-url/” http:// – Hyper Text Transfer Protocol A protocol is a standardized means of communication among machines across a network. Equivalent form exists in our world,just look at our daily communication through mails,posts,couriers. Other common protocols can be https,ftp. https is required for a secure communication like transferring money in a guarded truck, ftp is required for file transfer like movers and packers . Lets consider,we post a mail. codespread.com – Domain Name We require an address where this mail should reach so at the front of the envelope we write a unique address. Similarly we have a unique domain name to identify each website. /2012/10/28/know-your-url/ – directories/sub-directory/file-name Though our mail will reach the correct address but still it should reach the concerned person.It should move across the structure to reach the exact recipient  Similarly, our URL should open the exact webpage which might be located inside a directory or sub-directory. Lets see,what is this query string? http://codespread.com/2012/10/29/know-your-url?sort=true The ? operator separates the right side character string in the URL which is called as query string. They appear in a key-value pair like here key is ‘sort’ and its value is ‘true’. Query string is useful, in case, when on reaching a webpage, we require some additional activity to happen. In our case we require sorting. Not all the characters can be used in query string.To show that, I want to include some useful information related to URL encoding from Wikipedia here. In particular, encoding the query string uses the following rules: Letters (A-Z and a-z), numbers (0-9) and the characters ‘.’,’-‘,’~’ and ‘_’ are left as-is SPACE is encoded as ‘+’ or %20 All other characters are encoded as %FF hexadecimal representation with any non-ASCII characters first encoded as UTF-8 (or other specified encoding)  SEO friendly URL SEO is Search Engine Optimization. We all know Google is the search engine that most of the world uses and to make indexing of your website better , SEO friendly URL is one of the options .Few basic rules that needs to be followed to make URL’s search friendly. Keep URLs short Use hyphen to separate words Use lower case letters Avoid parameters/query strings Language based links Canonical URLs Canonical URLs is...

Read More
Interview : a question mark?
Oct28

Interview : a question mark?

I like going for interviews for two simple reasons: I found that this is the simplest way to remain updated with the latest knowledge. If we look at the IT trend, daily new software are getting launched and technologies are getting updated.It is a bit difficult to predict which technology is going to be considered as the next hot skill. Although blogs,tech news, forum discussions keeps us updated about new arrivals and their positives and negatives but an interview can only indicate what is the latest skill, companies or organizations are expecting from the candidate. It definitely tells us where we stand. I can recall few questions which simply put a question mark on my knowledge. They are basic questions but got neglected during the preparation. These questions were asked during .Net,c# interview. Write 15 control names which you have used in your project. I was able to recall some 12-13 control although i have used many more controls. HTML generated for controls like Timer, dropdownlist etc. Message codes like 404,301,200. Abstract class can be written same as Interface with all methods as abstract then what is the difference. If given a choice, which project you will create ‘website’ or ‘webapplication’ and why? Why we are still worried about memory consumption, when garbage collection is there? Write few examples from your project where you have applied OOP? These questions are not difficult but requires some basic attention during the development. What...

Read More
Webservice or Toll-Bridge?
Oct27

Webservice or Toll-Bridge?

Note: This blog does not contain any technical complexity. The most expected thing during any project is any Un-expected requirement shared at the last stage of the project. Somewhat similar happened in my project. We got a requirement to receive any traffic diverted to our site from one of the sub-site developed by a third-party. We proposed a solution : Implement Web Service. Here comes the tricky part,we as a technical guy knows the backdrop of webservice and all the technical intricacies involved but how to make all the non-technical guys understand the problem and solution. Lets try to associate our scenario with some real life object, we can consider our base site as one road and sub-site as another road. These two roads are not connected in any way. We can assume the vehicles running on the road as internet traffic to each site. Now our job is to divert traffic from sub-site road to our base site road. How that can be possible? Simply think and you will know that you have to build a bridge/flyover to connect these roads.So this bridge, we call ,as our webservice. A webservice is a bridge which is used to connect these roads to facilitate traffic. Now, the bridge can be one way or two-way which in technical terms can be mentioned as simplex or duplex communication. It’s a common practice to identify what traffic is coming from one site to another so to monitor this part, we just have to place ‘toll’ at each end and just start tracking. Phew!  I know this article only provides non-technical explanation for few items, so for all other items which are missed will be covered in other articles. Prior to this incident, it was a regular feedback from non-tech guys that they require some common language explanation.It might be a general problem of all non-tech guys so please see one of my attempt to help those guys.if you think this article helped you somewhat, please provide your questions for which you require a non-technical explanation....

Read More
Page 1 of 212