Know more about Representational state transfer (REST)

by Vahid 13. January 2009 13:42

i am sure these you hear about REST, so want to know what rest is? then have a look at the following definition

Representational state transfer (REST) is a style of software architecture for distributed hypermedia systems such as the World Wide Web. As such, it is not strictly a method for building "web services." The terms “representational state transfer” and “REST” were introduced in 2000 in the doctoral dissertation of Roy Fielding, one of the principal authors of the Hypertext Transfer Protocol (HTTP) specification.

REST strictly refers to a collection of network architecture principles which outline how resources are defined and addressed. The term is often used in a looser sense to describe any simple interface which transmits domain-specific data over HTTP without an additional messaging layer such as SOAP or session tracking via HTTP cookies. These two meanings can conflict as well as overlap. It is possible to design a software system in accordance with Fielding’s REST architectural style without using HTTP and without interacting with the World Wide Web.It is also possible to design simple XML+HTTP interfaces which do not conform to REST principles, and instead follow a model of remote procedure call. The difference between the uses of the term “REST” therefore causes some confusion in technical discussions.

here are some good links to know REST better

Tags:

Technical

Base Class Library Samples

by Vahid 13. January 2009 13:30

i found a set of usefull samples for .net BCL (base class library). you can take them at the following link:

 

http://msdn.microsoft.com/en-us/netframework/aa569267.aspx

Tags: ,

.Net | Technical

Sort based on input parameter in oracle query.

by Vahid 10. January 2009 09:15
Today I was tracing a defect happened in a stored procedure with paging functionality. After spending sometimes on it I came to know that sorting does not work properly. In the order by clause of the procedure we were using an input parameter which holds the column name based on which the result was to be sorted. But it seems that oracle and pl-sql does not support this feature and if we want to sort based on an input parameter we have to go for dynamic query which I don’t like at all.But it's funny that the feature is not there in oracle because the same thing can be done in ms sql server easily.Anyone got some idea about this, please let me know.

 

Tags: ,

Technical

IsNumeric() function in C#?

by Vahid 3. January 2009 05:36

hi,

as you may know c# is missing the nice and usfull IsNumeric function which is available in VB.net. but it is a trivial task to implement a generic equvelant function for it. look at the following code. it will return true if the value is numeric and false if the value is false.

static bool IsNumeric(object value)

{

double retNum;return Double.TryParse(Convert.ToString(value), System.Globalization.NumberStyles.Any, System.Globalization.NumberFormatInfo.InvariantInfo, out retNum);

}

 

Tags: ,

Technical | .Net

HR Manager story

by Vahid 1. January 2009 18:59
One day while walking down the street a highly successfulHuman Resources Manager was tragically hit by a bus and she died. Her soul arrived up in heaven where she was met at the Pearly Gates by St. Peter himself.  "Welcome to Heaven," said St. Peter. "Before you get settled in though, it seems we have a problem. You see, strangely enough, we've never once had a Human Resources Manager make it this far and we're not really sure what to do with you."  "No problem, just let me in," said the woman. "Well, I'd like to, but I have higher orders. What we're going to do is let you have a day in Hell and a day in Heaven and then you can choose whichever one you want to spend an eternity in."  "Actually, I think I've made up my mind, I prefer to stay in Heaven", said the woman "Sorry, we have rules..." And with that St. Peter put the executive in an elevator and it went down-down-down to hell.  The doors opened and she found herself stepping out onto the putting green of a beautiful golf course. In the distance was a country club and standing in front of her were all her friends - fellow executives that she had worked with and they were well dressed in evening gowns and cheering for her. Th! ey ran up and kissed her on both cheeks and they talked about old times. They played an excellent round of golf and at night went to the country club where she enjoyed an excellent steak and lobster dinner.  She met the Devil who was actually a really nice guy (kindof cute) and she had a great time telling jokes and dancing. She was having such a good time that before she knew it, it was time to leave. Everybody shook her hand and waved goodbye as she got on the elevator.  The elevator went up-up-up and opened back up at the Pearly Gates and found St. Peter waiting for her. "Now it's time to spend a day in heaven," he said. So she spent the next 24 hours lounging around on clouds and playing the harp and singing. She had great time and before she knew it her 24 hours were up and St. Peter came and got her.  "So, you've spent a day in hell and you've spent a day in heaven. Now you must choose your eternity," The woman paused for a second and then replied, "Well, I never thought I'd say this, I mean, Heaven has been really great and all, but I think I had a better time in Hell."  So St. Peter escorted her to the elevator and again she went down-down-down back to Hell. When the doors of the elevator opened she found herself standing in a desolate wasteland covered in garbage and filth. She saw her friends were dressed in rags and were picking up the garbage and putting it in sacks.  The Devil came up to her and put his arm around her. "I don't understand," stammered the woman, "yesterday I was here and there was a golf course and a country club and we ate lobster and we danced and had a great time. Now all there is a wasteland of garbage and all my friends look miserable."  The Devil looked at her smiled and told...  

"Yesterday we were recruiting you, today you're an Employee"

Tags:

General