STOP SOPA AND PIPA

SOPA and PIPA cripple the free and open internet. They put the onus on website owners to police user-contributed material and call for the blocking of entire sites, even if the links are not to infringing material. Small sites (such as this one that provides amazing C# material and more) will not have the sufficient resources to mount a legal challenge. Without opposition, large media companies may seek to cut off funding sources for small competing foreign sites, even if big media are wrong. Foreign sites will be blacklisted, which means they won’t show up in major search engines.

Click Here To Continue Reading …

Using PowerShell to Delete Files Not Written to in ‘X’ Days

If you have ever had any type of program or application that keeps logs or fouls up the \temp\ directory in your system you know the frustration that comes from wasted disk space with old, unused files. Luckily, you can create a very basic PowerShell script to check a given folder and delete files that are older than a set number of days.

Click Here To Continue Reading …

Happy Holidays!

I just want to wish everyone Merry Christmas and Happy Holidays! Thank you all for reading my articles and tutorials! Be sure to eat a ton of food and enjoy the precious time you spend with your friend and family. Also, I hope you got some pretty rad gifts!

Click Here To Continue Reading …

Just a Pause in the Grand Journey

Today represents my last day here at Mercer for my second co-op. It sure has been a wild ride since I started in the early fall. I have met a ton of new people who all play important and critical roles here at Mercer, and have made even more friendships and relationships with my team members. There is so much on my mind, so in this post I want to share some of my thoughts with you.

Click Here To Continue Reading …

GUID, UUID, and You!

So let’s say you have a bunch of objects. Yeah, a bunch of random objects completely unrelated to each other. You need a simple system that will take the information about these objects and shove them into a database. Do you just create a simple int identification value? If you do that then how do you control the indexing across multiple database servers? A surefire way to do this is instead use some method to generate a unique ID no matter the instance. This is where a GUID/UUID will come in handy!

Click Here To Continue Reading …

Handling NULL Values in MSSQL Queries

When working with a given set of data in a Microsoft SQL server, you may have rows that contain one more NULL values for a given column. This may or may not impact your queries against the database, so it is important to understand how the database handles these values and how your queries should be designed around this consideration.

Click Here To Continue Reading …

if(ThanksG) { give.Thanks(); }

Make sure you enjoy the time off from work and school as much as you can. Be sure to surround yourself with those that you love and cherish! Don’t forget to tell them how much you value them as a person and the impact they have on your life. Also be sure to eat a ton of food, drink plenty, and have a wonderful time!

Click Here To Continue Reading …

Build Objects With Interfaces

The ability to create module software and code blocks is a great trait to have. Being able to drop certain chunks of code from one piece of software to another piece of unrelated software is a powerful thing. Not only does this save time, but it will also allow you to build a small library of tools you find useful in all your applications. Interfaces in C# is just one of many ways to build more modular objects that have similar behavior.

Click Here To Continue Reading …

Disable “You Have Created a Service”

When you create a basic WCF service hosted through IIS, you are greeted with a generic page informing you that “You Have Created a Service”. This is useful since it provides to the developer two critical pieces of information. First it lets you know that the service is up and running, second it provides basic code stubs to query the service with. While this may be fine for development, you might not want to display this page in production. Disabling it is not intuitive, but with some searching through the MSDN documentation I have found the preferred way of changing this page.

Click Here To Continue Reading …

Conditional Restrictions

The other day I showed you how to use conditional statements to build more elegant debugging code blocks. What I did not discuss in that same article was the restrictions that came with using conditionals. Today I’ll cover that.

Click Here To Continue Reading …