Archives for 2009

Posts are listed in reverse chronological order, newest to oldest.


  • C#, XML, and LINQ: Updating an XML File

    So far, I have shown you how to load and parse an XML document into a C# class, and also how to add new nodes to an XML document using C#. So now we have reached the fun part: updating an existing node!

    Continue reading…

  • C#, XML, and LINQ: Adding Nodes to an XML File

    My previous example only covered loading and parsing an XML document. This example will include the code I used to add new nodes to the XML tree.

    Continue reading…

  • C#, XML, and LINQ: Load & Parse an XML File

    I promised an example of using LINQ and C# together before the month was out, and it here it is! Whoo. Go me.

    Continue reading…

  • Fun with LINQ

    Anyone who's read any amount of the content I've put on this site knows I love the C# language. It has a lot of capabilities I find really useful, like strong-typing, properties, generics, etc. I also like that C# has implemented one of the more interesting technologies Microsoft has developed recently: LINQ. LINQ stands for Language-Integrated Query, and is a technology we can use to simplify the processing of structured data within the .NET Framework.

    Continue reading…

  • PHP Referrer Snippet

    This is a small chunk of code I use as part of my login script:

    Continue reading…

  • falcon1986 is my hero...

    I've been looking for ways to make this site more responsive (especially the aggregate pages, like Articles, Tutorials, etc.). Some of these pages can get pretty long, so anything that would optimize how they get from me to you is most welcome.

    Continue reading…

  • CSS Template 1

    This is the companion CSS template for the HTML template. Use both together as a starting point for your own website.

    Continue reading…

  • HTML Template 1

    I put together a simple HTML/XHTML template for anyone that wants it. If you're new to web design, this template should be a good way to get started. I also created a CSS template to go with this HTML template. You can find it here.

    Continue reading…

  • Survey of Programming Languages I

    I'm currently taking a course that is called "Programming Language Pragmatics" but could just as easily have been called "Survey of Programming Languages," or something similar. We're basically discussing various programming languages, and then writing simple programs as a method of learning the idiosyncrasies of how different languages are implemented. So far, we've done COBOL, Ruby, Python, and F#. Since I have a penchant for being outspoken, I thought this would be a good time to rant discuss my opinion(s) so far.

    Continue reading…

  • Fixing an odd bug in .htaccess

    I don't know if this is relevant to anyone else, but I've been experiencing issues with some of my sites where I get a 500 (server configuration) error. Something like this:

    Continue reading…

  • Nifty Corners = Sah-weeeeet...

    I don't know how I never found this before. I've looked high and low, near and far, all to find a good clean method for rounding the corners of some HTML elements. Rounded corners just look nice, IMO.

    Continue reading…

  • Creating A C++ Application, Part 1

    I've seen a lot of ways of making a console application in C/C++, and I'll admit, I'm not very impressed. Okay, maybe I should clarify the previous statement. I've seen how the students at GRCC write console apps, and, well, they need help...

    Continue reading…

  • Yur Doin' It Wrong...

    I know I've said this before, but it still bugs me that so many students take the "hack-and-fix" approach to writing code.

    Continue reading…

  • Debt Repayment Calculator, Part One

    I've been wanting to create another tutorial for quite some time now, but I could never seem to come up with a good subject for a coding project. I hate wasting anyone's time, so doing another stupid "Hello, world!" sample was certainly not an option. Then it hit me! What is the one subject that seems to be on everyone's minds lately?

    Continue reading…

  • Programming Primer

    Modern programming has a set of terms that every wannabe programmer must know. Master these terms first. Once you get these terms down pat, it is easier to understand the jargon of each specific programming language.

    Continue reading…

  • The Many Faces of the Hyperlink Element

    Ah, the <a> element. Our friend, the hyperlink. Few HTML elements are as versatile as the hyperlink. We can jump around a page, back and forth between different pages, open our email clients, and execute scripts, all with one meek little HTML tag. Talk about over-achieving...

    Continue reading…

  • C# Sample: Timing Class

    This timing class can be used to test the execution time of your C# algorithms. We used it to compare the time it took various sort and search functions to complete execution.

    Continue reading…

  • C# Sample: RandomDataSet Class

    This is a class I had to code for a project to demonstrate a handful of sort and search algorithms. It is a self-contained class that can be used to build a List of integers. You could easily modify this class to manipulate pretty much any Collection.

    Continue reading…

  • OOP and C#: Making a Sample Class

    Understanding the principles of OOP (object-oriented programming) is very important for those who wish to become .NET programmers, since the .NET Framework is built on the premise that everything is an Object. Since C# was created specifically to implement the .NET Framework, it stands to reason that C# is a good language to demonstrate the development of an object from a logical construct to a piece of working code. The code we will develop here can also be modified to work in pretty much any language that supports OOP. So, get your pencils and notepads ready, kids. It's time to build an object!

    Continue reading…