zigamorph

Stories submitted by zigamorph

Understand C#: Proper use IDisposable and using keyword(coderjournal.com)

submitted by zigamorphzigamorph(3319) 4 years, 7 months ago

Most System.Data, System.IO and System.Windows.Controls objects use the IDisposable interface, as well as many others, to free up unmanaged resources that may have been created when the object was initialized. Unmanaged resources are any calls that are made outside of the .NET environment, this can be GDI+ calls, SQL Driver calls, Disk IO calls, or basically anything that cannot be accounted for by the Garbage Collector. read more...

add a comment |category: |Views: 271

tags: another

Track Cookie Usage with a Web Service via AJAX(coderjournal.com)

submitted by zigamorphzigamorph(3319) 4 years, 7 months ago

Many of the modern and sophisticated traffic monitoring software can track everything from number of visits, where a visitor came from, what search terms were used to find your site, where the visitor came from geographically, to what type of browser they are using on what platform. Many of the JavaScript based solutions such as Google Analytics offer much more information about the browser than ones that sit between the web and the web server such as AWStats. This is because there is much more information provided via JavaScript about the screen resolution and color depth, however the down side is that if JavaScript is disabled you don’t get any information. So it is usually a wise idea to use a combination of both Client and Server based traffic monitoring. read more...

add a comment |category: |Views: 3

tags: another

How To: Unit Test Hidden Classes(coderjournal.com)

submitted by zigamorphzigamorph(3319) 4 years, 7 months ago

One of the most popular ways to Unit Test .NET code is NUnit. However, I am not going to get in to the basics of Unit Testing in this post. If you are interesting in learning more about NUnit and Unit Testing please visit NUnit QuickStart page. This post is going to deal with how does a developer test a class that has a private or hidden constructor. read more...

add a comment |category: |Views: 3

tags: another

Using Distributed Transactions in your Data Layer(coderjournal.com)

submitted by zigamorphzigamorph(3319) 4 years, 7 months ago

Many developers use a pattern called ORM or Object Relation Mapping to generate data layers for their application. Many other developers choose to create their own data layers by hand. I have done both and I don’t have a preference of one over the other. With an ORM generator you have an easy to maintain data layer for your applications, when you create one by hand you have much more control of the data layer as far as object creation goes. read more...

add a comment |category: |Views: 7

tags: another

Creating a Vista like Search Box(coderjournal.com)

submitted by zigamorphzigamorph(3319) 4 years, 7 months ago

In this post we are going to go over what it takes to create a control, and more specifically a Vista Search Box like control. read more...

3 comments |category: |Views: 125

tags: another

World Of HTTP/1.1 Status Codes(coderjournal.com)

submitted by zigamorphzigamorph(3319) 4 years, 7 months ago

Most developers are familiar with the HTTP 1.0 Status Codes, that have been recently popularized by the SEO guys. We have all heard that you should use 301 Moved Permanently instead of 302 Temporary Redirect. What many of the SEO guys won’t tell you, because they don’t know any better, is that they are using the RFC 1945 HTTP/1.0 Standard that was released in May 1996, that is right it is about 12 years old. The newest HTTP/1.1 Standard, RFC 2616, was released in June 1999, and made some pretty drastic changes the the 3xx Redirect Status Codes. The goal of this post is to inform and familiarize developers with the HTTP/1.1 Standard, specifically the 3xx Redirect Status Code changes. This can have drastic effect on how you handle requests on your website and optimize your site for search engines. read more...

add a comment |category: |Views: 4

tags: another

Creating a more accurate JSON .NET Serializer(coderjournal.com)

submitted by zigamorphzigamorph(3319) 4 years, 7 months ago

System.Web.Script.Serialization.JavaScriptSerializer, which takes you objects and turns them in to a JSON string that can be evaluated by JavaScript and reversed in to an object. However it was lacking in more than a few areas. So this author extended the current JSON serializer to use the XML attributes which provide more flexibility. read more...

add a comment |category: |Views: 87

tags: another