Archives

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


2017 (1 post)
  • (Don't) Catch 'Em All!

    I want to be the very best, like no one ever was! To catch them is my real test, to train them is my cause...

    Continue reading…

2013 (3 posts)
  • Implementing ASP.NET Membership with a Custom Provider

    Perhaps one of the most ubiquitous means of user management in an ASP.NET application is the oft-maligned Membership library, but let's be honest; the default Membership tools are pretty terrible. If you use the default Membership, Roles, and Profile providers, you're going to have the awesome privilege of dealing with a database schema that revolves around serializing user information to BLOB fields.

    Continue reading…

  • C# Hashing Utility

    I've had a frequent need lately to create various hash-strings (implementing a Gravatar helper, for instance), and I thought some of you might find the utility class I created useful. It's self-contained (other than the obvious reliance on .NET assemblies) and includes an enumeration I created to make the hash-type more obvious to work with.

    Continue reading…

  • Hobbies, Standards, and Ethics - Oh My!

    When asked what my hobbies are, I have to suppress the urge to laugh uncontrollably. My main "hobby," web development, became an obsession quite a while ago.

    Continue reading…

2011 (5 posts)
  • Overloading Constructors in Java

    Overloading: bad for boats, but endlessly useful in the programming world. In this post, I'll show you how to take advantage of this core concept in Java.

    Continue reading…

  • The Not-So-Great PHP/MySQL Tutorial, Part 2

    So, assuming you read (and completed) Part 1, you should have a functional database connection script and an input page. Part 2 will cover how we get our data back out of the database.

    Continue reading…

  • The Not-So-Great PHP/MySQL Tutorial, Part 1

    Ok, so let's assume you've been given a simple task. You need to be able to record some basic data about some theoretical employees, and then produce some basic output. Let's cover a few rules first.

    Continue reading…

  • Making Your XML Sitemap a Little More Useful

    I've had a sitemap for this site for quite a while. Google (and the various other search engines) loves them some sitemaps, since it helps them crawl your site a little faster and more efficiently. For those of you wondering what a sitemap is, it is a XML document that contains an element for every public-facing page in your web site. A good sitemap follows the standard setup by Sitemaps.org, a collaboration between Google, Yahoo, and Microsoft to establish a standard sitemap format. You can deviate from the sitemap protocol if you're feeling rebellious, but the search engines will respond by ignoring your sitemap (and perhaps your site in the process).

    Continue reading…

  • Using LINQ to Easily Serialize an Exception to XML

    I was working on my capstone project last semester, and ran into a need to log exception data to a portable format. I loves me some XML, so that was my obvious (and, let's be honest, only) choice. .NET includes a lot of built-in code in most data types to allow for seamless serialization, so I thought this would be a simple matter.

    Continue reading…

2010 (3 posts)
  • Thinking About the Past...

    Here's a friendly warning to y'all: this post has nothing to do with "techie" stuff. I just felt like posting something that's been rolling around in my head. Just so you know...

    Continue reading…

  • A Discussion of Class

    I seem to have to explain the concept of "classes" to a lot of programming students lately, so I got to thinking that a new blog post may be in order. So, if you happen to be a newbie programmer and are wondering exactly what a class is, tune in and follow along. Please ask questions at the end, too, if anything is not clear...

    Continue reading…

  • C#, XML, and LINQ: Deleting an XML Node

    So far we've learned how to load & parse an XML file, add new nodes to it, and update it's nodes. Today we're gonna learn the scary part: deleting nodes.

    Continue reading…

2009 (19 posts)
  • 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…

2008 (12 posts)
  • HTML + CSS = A Calendar? Cool!

    I've always liked those little date/calendar icons some blogs have for each of their entries, but I could never figure out how they managed to make the date correct. Then I found this article: Creating a Blog Entry Date Calendar Icon Look with CSS, Mostly. The author, one Shirley E. Kaiser, M.A., wrote a nice article on one possible way of using HTML and CSS to create the appearance of a date "icon."

    Continue reading…

  • An Interesting Use of a C# Foreach Loop

    I've seen many different ways of clearing the contents of controls in a Windows Form object, some of which can be quite elaborate. While it can be fun to come up with these convoluted schemes, there is an easier way. Here's what I do...

    Continue reading…

  • Coding Like Forrest Gump

    It never fails. Every semester, I have to help at least one student who wants to create some convoluted, twisted function for their homework assignment, when it really isn't necessary. I tend to squint at their screen for a moment, scratch my head, and ask, "...and what are you trying to do here, again?"

    Continue reading…

  • Pretty URLs For Everyone!

    Have you ever visited a website, and wondered how the person managing it is able to have their pages display without having the file extension on every page? I used to. Turns out, it's not so hard to get what is commonly referred to as "pretty URLs." It's as simple as adding a few lines of text to a special file most people have on their host servers: the .htaccess file.

    Continue reading…

  • Why Sherlock Holmes Would Have Made A Kick-Ass Programmer

    One of the few quotes I know from the world of Sir Arthur Conan Doyle's Sherlock Holmes goes something like this: "When you are trying to solve what appears to be a mystery, eliminate the obvious first. Whatever is left, no matter how extraordinary, is the answer..."

    Continue reading…

  • C/C++ : Creating a Custom Class

    There are two methods for creating a class in a C++ project. The first method is to code your class directly in the project code in which you will be using the class. However, if you take that route, you cannot reuse that code later (say, for an entirely different project) without opening the first project, copying the code, and pasting it into your new project. The second method involves creating a discrete class project, separate from any program code, and then "including" the class in your program code. I try to always use the second method, for the very simple fact that if I create a class I find useful, I can use it again and again.

    Continue reading…

  • C/C++ : Includes

    C++ includes take one of two forms: #include <> or #include "". The only difference is that the former tells the compiler to look within the STL (Standard Template Library) for the source code, while the latter instructs the compiler to look in the local project folder first. If the compiler doesn't find the file in the local folder, it will search the STL.

    Continue reading…

  • Conditional Statements

    Conditional statements are used where your program must evaluate whether a logical statement is true or false. These include, but are not limited to:

    Continue reading…

  • Object-Oriented Programming

    Object-oriented programming centers around the idea that everything can be represented as an object. Each object has characteristics, represented programmatically as variables, and actions it can perform, represented programmatically with subroutines and functions.

    Continue reading…

  • Tutorial One: HTML >> PHP

    Welcome! For those of you stumbling onto this page, this is the first in a series of articles where I walk through creating a simple website for a fictional friend of mine. We will start with the complete HTML source for the index page, and then analyze it to determine which parts can be repeated in our other pages. Then, we will create a dynamically-generated PHP index page from the original HTML source.

    Continue reading…

  • What Ever Happened to Thinking Logically?

    Perhaps I only see this because I have attended a two-year college, but it seems to me that students entering the programming field are not really being taught to think logically, but rather to regurgitate code that someone else has already worked out. Instead of focusing on teaching these students to develop good analytical skills, and teaching them good planning techniques, we instead shuffle them through boring, pointless, unchallenging exercises that don't really teach them anything they can use in the "real world."

    Continue reading…

  • Obsession of the moment: M-V-C

    I am, above all other things, a programmer. I'm one of those guys that stay up late writing code, reading technical reference manuals, and drooling over case tools. So I suppose it comes as no surprise that my newest obsession focuses on a tantalizing new PHP framework a friend of mine recently turned me on to, CodeIgniter.

    Continue reading…