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

Counting Number Frequency In Java

Icon Leave Comment
Over the past couple weeks I have noticed a lot of students asking questions about counting number frequencies. The student is often generating, or asked to take in input, and count how many times a series of numbers appear in the data. Sometimes they are given a file for the input and other times they are asked to take in numbers entered by the...
* * * * *

Tricks for Getting Around the 'XMLHttpRequest Cannot Load' Security Limitation in JavaScript

Icon 2 Comments
Some number of years ago web browser developers came up with the idea of allowing Javascript to pull data from other sites into a web page on-the-fly. That day AJAX was born! Short for Asynchronous Javascript and XML, this technology provided a mechanism for web pages to change their content without requiring the whole page...
- - - - -

Quick Tutorial: Building Menus Dynamically With the MenuStrip Control in C#

Icon 2 Comments
One of the easiest ways to build a menu on Winforms is by simply dragging and dropping a MenuStrip control from the toolbox on your form and then go to town filling in menu text and attaching events. Most of the time this is the way to go and works for the majority of programs out there. What we will cover this time around is just a few examples...
- - - - -

The Anatomy of Sliders and Scrollers

Icon Leave Comment
Everywhere you go on the web you see some sort of slider or scrolling widget on the page. You see a lot of them on blogs advertising the latest posts, you see them on event pages showing shots of the audience and speakers and you even see them on software company homepages showing screenshots of the their latest software release. Sure you can get...
* * * * *

Drawing Analog Style Clocks In VB.NET

Icon Leave Comment
A number of years ago I showed an example of creating a typical digital clock using picture numbers...
* * * * *

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

Transforming Shapes With Java AffineTranform

Icon Leave Comment
You, a retro gamer, are on a new quest to bring back a classic arcade hit to a whole new generation of space faring digital cosmonauts. But it is dangerous out there and you need to show these rookies the dangers of journeying their ships alone in the vastness of space. So you want to create your own game of Asteroids...
* * * * -

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

Stash Data Away In Controls With The Tag Property Using VB.NET

Icon 1 Comments
One of the most underutilized properties of any control is a property called "tag". What does it do? Does it cure world hunger? Does it save the planet from annihilation? I would probably say no on both counts, but it does have a bit of a mystique that beginners may not be fully aware of. In design mode of Visual Studio if you select a...
* * * * *

Function Pointer Basics in C++

Icon 2 Comments
Beginners to C++ programming find the concept of pointers foreign to them. Pointers, and code that manipulates pointers (aka pointer arithmetic), can even be daunting to some of the most seasoned programmers. Pointers in C++ account for a fair share of bugs in programs due to the lack of understanding. So why even use them? Well, besides being the...

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

April 2014

S M T W T F S
  12345
6789101112
131415 16 171819
20212223242526
27282930