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

Demo of Twitter Application-Only OAuth Authentication Using Java

Icon 2 Comments
I found that there was little in the way of examples using Application-Only OAuth...
* * * * *

Using Performance Counters in the C# Language

Icon Leave Comment
At any given time the Windows operating system is tracking statistics for the system and many of the processes / applications that are currently running on it. Things like the number of processors, how many threads are executing, how often the CLR is in garbage collection, the number of I/O operations being performed etc are all tracked through...
- - - - -

The Comma Operator in C++

Icon Leave Comment
When we think of the comma character we often think of it as a separator. It separates values in an CSV file, it separates items in lists, it may separate index values in multidimensional arrays (in other languages) and more. But in C++ an obscure way of using them was as an operator. The reason it never made it big as an operator and into the...
- - - - -

Applying Enchantments for PHP RPG Games - One Approach

Icon Leave Comment
So you want to build a PHP game and are just now learning how to do it. You fired up your browser and began searching for various game articles and perhaps you have found very little. What you did find might not explain a flexible way to apply magical spells to units you create. After all, what is an RPG game without enchantments you can cast on...
* * * * *

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...
- - - - -

Playing and Thottling Sound Clips in Java

Icon 1 Comments
A user recently came up with an interesting project today that frankly I had never really played around with too much... playing sound clips using Java's AudioSystem. The problem he was having was two fold actually. How does one go about throttling a sound (preventing the user from triggering the sound multiple times so that they overlap...
- - - - -

Johnson-Trotter Algorithm in VC++.NET

Icon Leave Comment
The Johnson-Trotter algorithm is an algorithm for figuring out permutations given a value set. A permutation is a way of altering the values in a set to create a different unique sequence from the original. If we have the set 1, 2, 3, 4, 5... one permutation would be 2, 1, 4, 5, 3 and another would be 3, 4, 2, 1, 5. Using a quirky little...
- - - - -

File Chunking and Merging in C++

Icon Leave Comment
I got the idea for a file chunking program the other day while I was reading a Ruby article. I thought to myself, why not build a similar utility in C++? The idea of chunking a file (that is, taking a file and breaking it into smaller files) can be a useful utility when dealing with some rather big files. Perhaps if you mix it with some file...
- - - - -

Chain of Responsibility Pattern - C++

Icon 2 Comments
So you are alone in your cubicle at work, twiddling away on your computer when suddenly your supervisor comes by and yells at you for not handing in some kind of report. You tried to do it earlier but your supervisor was too busy playing fuse ball with the VPs to listen to you. After all, miracle workers like you are suppose to work miracles, not...

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