Posts Tagged "Programming Theory"

Watermarking Images With Text in C#

Have you ever wanted to watermark your images in a C# application? Write your own little copyright on the photo and prevent those lamahs from actually ripping it off your site and using it for their own dastardly deeds? Ever wonder why I talk with questions and sound like I am an infommercial? Neither do I but after seeing a great question on the boards about watermarking, I thought I ...

Avoid Tying Classes to Your Forms

So you have a great class written and you want to integrate it into your project. Whether it be C#, Java, VB even C++ you may have asked yourself "How do I go about getting my class to update my form controls?" or "How do I get the class to change something on my interface or another class?" It is a common question asked on the board and the answer ...

Zippity Do Dah, Zipping with Java, Yay!

My oh my what a wonderful code day! Welcome to another entry of my blog and I hope you have enjoyed your stay. Before we cover todays topic of creating zip files in Java I wanted to thank everyone who has subscribed to my blog and added links through their websites. I appreciate the support and enjoy bringing you on a journey through this vast programming world. We have tamed ...

Train / Bus Reservation Example in Java

ALLLLLL ABOARD! Buy your tickets right here for the DIC train of love. In this episode we talk about a problem that pops up once in awhile on the boards, a seat reservation system. People have their preferences and the DIC train is no different. Some people like the windows, some people like the aisle seats and some even like to hang out there in the caboose (Yeah you know ...

Problems with Brute Force in Programming

"Damn! This solution just won't work! I have tried everything and all I get is a bunch of mush! Stupid programming I hate it!" Does this sound like you? Do you feel like one of those people on TV at the beginning of some paid television commercial? Many times the newbie and the expert alike finds themselves in the situation where a project just seems to stall. As human beings, ...

Euclidean, Bezout, and Coprime Oh My!

Occasionally a programmer loves to play with numbers. Some like to stick gum in their sister's hair, but that is besides the point. At the heart of some programming is the heart of mathematics and especially number theory. One of the great theoretical algorithms out there is the Extended Euclidean algorithm which is used to find the Greatest Common Divisor (GCD). The GCD is a number which divides both of ...