Posts Tagged "Programming Theory"

Inheriting From A Control in Java

I am sure we all love Java Swing. It is not quite as thrilling as the swings we use to play on at the park, but it sure makes our Java applications come alive with a nice rich GUI. We are familiar with the JButton to make buttons, JTextFields to make textboxes and perhaps you have even ventured into using JTables. But maybe some of these controls have not gone ...

Variance and Standard Deviation of An Array in C#

Statistics... the bane of some coders existence. Why would it be any fun unless the stats say you are a superstar sports athlete (which coders are not), are going to win a huge prize like the lottery (which coders realize is futile with something like 1 in 13 million PER SELECTION) or that the probability for love is high... you mean with an actual girl? Hogwash! Never the less, statistics ...

Ordering Sets in C++

Now some of you may be thinking "a set" like some kind of gang terminology. While I do belong to a gang of some hard core programmers here at DIC, I can assure you that we are only talk programming terms here. So I don't want you to drive by my house or anyone to ask me to score some weed. However, if you want to know how to order ...

Down the Rabbit Hole with C# Serialization

"Whooooo areeeee youuuuu?" No really, who are you and what are you doing on my blog? Oh you are here to read my blog entry on C# serialization to file writing? Fabulous! There may be times where you want to store an object's data from C# to a file for reading later. You can essentially "freeze" the object in time and leave it in a file which later your program ...

Count Word Matches in a File With Our Friend Java

Ever wanted to dig through a text file and see how many times a particular word appears? Are you afraid the file is going to jump up and bite you and bite you hard?!? Don't sweat it. That crazy file isn't going to be too much trouble if you know some useful classes for dealing with the situation. In this entry we talk about opening a file using a BufferedReader, ...

Page Scraping Links with Ruby

Tinkering around with Ruby I figured I would write up a project that involved a little of everything a common Ruby program might have. A little sockets, a little class creation, array handling etc. The only thing I didn't include was a module but you could easily build one in if you like. The result was a nice little project which scrapes links from a given page. Ruby is gaining ...