Mark Nelson

Programming, mostly.

  • Home
  • About Mark Nelson
  • Archives
  • Liberal Code Use Policy

No Exceptions - With One Exception

Posted in November 13th, 2007
by Mark in Programming

Exceptions are a necessary part of the C++ language, but for most programmers they are worse than worthless - they are unusable. When exceptions were first added to the language back in the days before standardization, they were seen as a brilliant improvement over the hideous setjmp/longjmp facility from ANSI C. Because exceptions unwind […]

read more from this topic.....

13 Comments

Yet Another Word Puzzle

Posted in November 13th, 2007
by Mark in Web Articles, Programming, Computer Science

Dr. Dobb’s PortalNovember, 2007
Article on DDJ site

As I’ve confessed in the past, I’m a sucker for word puzzles. My recent post on a Will Shortz puzzle from NPR Morning Edition ended up provoking a surprising amount of comment, much of it in the vein […]

read more from this topic.....

4 Comments

The Byzantine Generals Problem

Posted in July 23rd, 2007
by Mark in Programming, Computer Science, Magazine Articles

This article presents the algorithm that solves the Byzantine General’s Problem, as first described by Lamport, Pease, and Shostak in 1982 [1]. While Lamport’s algorithm is not particularly complex, programmers who aren’t used to working on distributed computation might find it difficult to implement. To accompany the explanation of the algorithm, I have included a C++ program designed for experimentation with the solution.

read more from this topic.....

21 Comments

Puzzling

Posted in April 1st, 2007
by Mark in Web Articles, Programming, Computer Science

Dr. Dobb's PortalApril, 2007
Article on DDJ site

I'm an inveterate fan of wordplay of all sorts - puzzles, anagrams, crosswords. I've been known online by my anagrammatic name, SnorkelMan, all the way back to the ancient days of the text mode BBS. My continual hectoring [...]

read more from this topic.....

20 Comments

Compression tutorials for Java Programmers

Posted in July 17th, 2006
by Mark in Programming, Data Compression

Richard Baldwin has written a few nice tutorials on Data Compression, with the algorithms illustrated by Java code. Three free articles cover Huffman coding, LZ77 compressing, and the DCT.

read more from this topic.....

2 Comments

Java: Good World Citizen

Posted in July 13th, 2006
by Mark in Web Articles, Programming

This article gives an overview of how to handle internationalization in your Java program, with samples given for Chinese web pages.

read more from this topic.....

No Comments

Transparent ATL Controls

Posted in March 1st, 1998
by Mark in Graphics, Programming, Magazine Articles

Tom Armstrong and I wrote an article describing our technique for building an ATL control that displays bitmaps with transparent sections.

read more from this topic.....

1 Comment

zlib - Looking the Gift Code in the Mouth

Posted in January 1st, 1997
by Mark in Programming, Data Compression, Magazine Articles

This article describes how to use the free zlib code to compress files. Detailed source code, plus a 32 bit ActiveX control accompany the article.

read more from this topic.....

24 Comments

File Verification Using CRC

Posted in May 1st, 1992
by Mark in Programming, Magazine Articles

This article shows you how to calculate a standard 32-bit CRC on a file's contents, and provides a short C program that demonstrates the technique.

read more from this topic.....

1 Comment

Managing the Heap

Posted in February 1st, 1990
by Mark in Programming, Magazine Articles

This article describes a technique used to untangle heap and pointer problems in C programs.

read more from this topic.....

2 Comments

Find the office chair mat you've been dreaming of at GlassMat. It doesn't crack, dent, or yellow, and it never wears out. Lifetime warranty!

Links From Google


Amazon Books

 
Mark Nelson at Blogged

Bookmarks/Feeds

Use the first button below to bookmark this article on sites like del.icio.us, Digg, Reddit, Slashdot, etc. The second button adds a feed for the site to your reader. Both buttons will open a selection screen in a new window.

AddThis Social Bookmark Button
AddThis Feed Button

Categories

Standards Humor Scams Work Culture VoIP Hackery Writing Snarkiness Graphics Video Audio People Web Articles Business Programming Complaining Computer Science Magazine Articles Data Compression

Recent Entries

  • Brute Force vs. AI
  • A Little Knowledge Can Be a Felonious Thing
  • P ≠ NP?
  • 5 Trillion Digits of Pi
  • The Pigeonhole Principle
  • Innumeracy Part N
  • Slate Rips Me Off
  • Another One Bites the Dust
  • English as a Foreign Language - A Cautionary Tale
  • How Evil Is Apple?

Blogroll

  • Joey Nelson - Joey Nelson
  • Obviosaurus.com - It's obvious

My Books

  • The Data Compression Book
  • Serial Communications: A C++ Developer's Guide, 1st. ed.
  • Serial Communications: A C++ Developer's Guide, 2nd ed.
  • C++ Programmer's Guide to the Standard Template Library
  • Developing Cisco IP Phone Services: A Cisco AVVID Solution

Archives

Recent Comments

  • Ernst in The Million Random Digit Challenge …
  • A Little Knowle… in The Pigeonhole Principle
  • Mark Nelson in The Million Random Digit Challenge …
  • ademsam in The Million Random Digit Challenge …
  • Mark Nelson in The Million Random Digit Challenge …
  • ademsam in The Million Random Digit Challenge …
  • Alan in The Million Random Digit Challenge …
  • Alan in The Million Random Digit Challenge …
  • Tango in The Million Random Digit Challenge …
  • Larsen in The Million Random Digit Challenge …
©2007 Mark Nelson
Powered by WordPress | Talian designed by VA4Business, Virtual Assistance for Business who's blog can be found at Steve Arun's Virtual Marketing Blog