Sockreg

Sockreg

Joined
Oct 14, 2008
Occupation
Student
Location
Malta
Interests
.NET, HTML, CSS, JavaScript, Ruby

Activity Stream

Sockreg created a Page  -  Dec 06, 2009
212 

Illustrates how you can take benefit of the System.Reflection namespace to alter object properties

 Respond   .NET  
Sockreg created a Page  -  Dec 05, 2009
74 

Illustrates the size benefits you can achieve by compressing a stream. It also benchmarks the time taken to write the compressed text and the normal text to the underlying files.

  1 Thread   .NET  
Sockreg created a Page  -  Dec 05, 2009
67 

Well, the .NET framework already contains the functionality provided by this snippet, however this snippet shows how to use some IO namespace classes and functionality.

 Respond   .NET  
Sockreg commented on a Page, Check Internet Connection  -  Dec 02, 2009

If you're into scripting I would suggest F# .. It basically gives you all the benefits of a compiled language and the agile/cool features of a scripting language.. It's pretty much the next big thing in Microsoft and considered to be the language of the future :)

 Respond  
Sockreg commented on a Page, MD5 Hashing  -  Dec 02, 2009

You are converted the dataToHash string inputted in the function to a set of bytes that can be hashed by the hashing algorithm. Once the byte array is hashed it is converted to a string and returned.

 Respond  
Sockreg commented on a Page, Check Internet Connection  -  Dec 02, 2009

The imports keyword is only used to create a shorthand notation for ease of use of the underlying namespace classes. When converted to MSIL the hardcoded IL written is actually System.Console.WriteLine ...

You are actually "importing" the functionality of an assembly when you add it to your project reference's file. P.S you can only use Imports when an external assembly is referenced.

 Respond  
Sockreg created a Page  -  Dec 01, 2009
271 

This snippet function hashes a string into an MD5. The function will throw an error if an empty string is provided. Just copy and paste this into a console application, set the Sub Main() as the start up object and run it! You will see how the same hash is created for the "Test" string and a different hash is created for the "Test1" string. If you've got any problems with this snippet just comment..

Sockreg commented on a Page, Check Internet Connection  -  Dec 01, 2009

This snippet does not detect if your computer is connected to the internet. It actually determines if your computer is connected to a network (like LAN etc) :)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.