Subscribe to Martyr2's Programming Underground        RSS Feed
- - - - -

Convert Infix to Postfix in C++

Icon Leave Comment
Remember those pesky equations that baffled you in like 1st grade? Addition and subtraction along with their friends multiplication and division. Hey, you wanted to go play kick ball or chase that girl around the playground... not to hook up with her but to put dirt in her hair. Well, you probably learned to write your equations in infix form like...
- - - - -

Can a Programmer Write the Perfect Program? Not Without The Help of Others.

Icon 12 Comments
On the Programming Underground we usually talk about code theory or examples, but once in awhile I like to pull up a seat and chat about some of my programming thoughts. Yeah most people think about dinner, going out with friends, picking the kids up on their way home but I am an unusual person, even by programmer standards. My day is often...
- - - - -

Rijndael Class Example for File Encryption in C#

Icon 3 Comments
Hello readers! It has been awhile since my last post. Lots of things have been going on lately and I have been busy developing some great code for some great people. In this entry I am going to show you a bit of plain text file encryption using the Rijndael Algorithm. This example is a fairly simple one and I hope to explain the basics as I...
- - - - -

Playing with Recursive Directory Diving in VB.NET

Icon 1 Comments
So recently someone asked about listing files from several directories but only to a given depth. They were using a DirectoryInfo object, as they probably should, to get a list of files. There was a problem with this however since the constructor of this object only offers a version where you specify no recursion on the sub directories or full...
- - - - -

Passing Data Between Forms in C# or VB.NET

Icon 4 Comments
One of the first obstacles that people new to C# (or VB.NET for that matter) run into is how to get two forms to communicate with one another. How do you get your main form (a parent) to open and pass along data to another form (the child)? This question typically arises when the programmer wants to create a dialog situation where they click a...
- - - - -

Best Way to Improve Your Code... A Vacation

Icon 3 Comments
The idea of taking a sizable break is bantered around from time to time as coding lore, but does it really work? In my opinion it sure does! Newbies and experts alike underestimate the mind when it comes to problem solving and always wonder what is the fountain of youth when it comes to thinking with code clarity. Those of us who go to work to...
- - - - -

Reflective N-bit Binary Gray Code Using Ruby

Icon Leave Comment
So what is behind the theory of binary gray code? It was named after Frank Gray and is a numerical system where each successive value differs from the one before it by one bit value. It is like counting in binary, but in binary counting a step may require changing two bits. For instance going from 1 (01) to 2 (10) would involve changing the most...
* * * * *

Intersection of LinkedLists Using Java

Icon 3 Comments
Yesterday a user came through the Java forum looking for help with finding the intersection of two LinkedList sets. If you were anything like I was in school, you probably had a flash back to math class and the teacher drawing Venn Diagrams up on the white board. Two circles, usually representing two sets of elements, and where they overlapped was...
- - - - -

Histogram Equalization Using PHP

Icon 4 Comments
The other day someone on the board had asked about histogram equalization and it had sparked some thoughts about how it is applied to picture correction and enhancement. Then of course it hit me like a ton of bricks (ouch!), why not make this into a blog post? So here I am telling all you fine people about using PHP to equalize the histogram...
- - - - -

Slot Machine Example in C++

Icon 3 Comments
I was bored and that can be a dangerous thing. Like doodling on the phone book while you are talking on the phone, I doodle code while answering questions on DIC. Yeah, it means I have no life and yes it means I was born a coder. During this little doodle I decided to make a slot machine. But not your standard slot machine per say, but one...

  • (15 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • 5
  • Last »