Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » History   (RSS)

Make your Task Switcher Window bigger

One of the best features of Windows is the ability to Cut and Paste data within an application or from one application to another. You can alt-tab or click on the task bar to switch between actively running applications, like Word and Visual Studio. When

Which pixels do you turn on when you draw a line?

When I wrote my cartoon animation program almost 30 years ago (see Cartoon animation program ) I needed to know how to draw a line. Of course, nowadays, we just call a library function that will draw a line given two points. If you think about it, the
Posted by Calvin_Hsia | 3 Comments
Filed under: , ,

Cartoon animation program

A cartoon can be thought of as a series of drawings. To simulate movement, the drawings can be slightly different from each other. Remember drawing simple cartoons using a pad of paper? Simply flipping through the pages made the drawings come to life.
Posted by Calvin_Hsia | 15 Comments

Cellular Automata: The Game of Life

I remember my dad getting a copy of Scientific American magazine every month when I was a kid. He kept back issues on a shelf in our living room. I remember being fascinated by the issue (Oct 1970) which described John Conway’s Game of Life . A few decades
Posted by Calvin_Hsia | 5 Comments
Filed under: ,

Examine .Net Memory Leaks

Writing programs using .Net is very productive. One reason is because much of memory management is “managed” for you. In C, C++ and other “native” languages, if you allocate memory, you’re responsible for freeing it. There were stopgap measures, like

Uninstall VB6 causes error message: You do not have a license to use this control

I was running out of disk space on one of my machines, so I used my TreeMap program to see where I could delete files to save space. I saw that I still had VB6 on the machine, and I didn’t need it on that machine any more, so I uninstalled it. It's amazing
Posted by Calvin_Hsia | 2 Comments

Run your application forms on the web

I received a customer question: I have looked all over the web and still searching, and found your blog. I have a very specific issue and I need to ask whether this is doable first of all and how to do it after. First of all, I need to make a foxPro app
Posted by Calvin_Hsia | 7 Comments
Filed under: , ,

The MVPs are coming!

I was quoted in this Computerworld article about the MVP summit, which is happening this week in Seattle . The author says I compiled a “spreadsheet that ranked the most prolific posters on the FoxPro forum”. That is slightly incorrect: obvious to Fox
Posted by Calvin_Hsia | 3 Comments
Filed under: ,

Write your own hangman game

Many years ago (1985) I wrote a C program to play Hangman. I had decoded a word processor spelling dictionary for my word source. More recently, I have encoded 2 spelling dictionaries for general purpose use: 1 with 171201 words, the other with 53869.

Visual Sorting Algorithm comparison

When I bought my first IBM PC around 1981, I wrote a program to demonstrate the speed of various sorting algorithms. It filled the screen with random characters, then the user could choose amongst a few sorting techniques and watch the sort algorithm
Posted by Calvin_Hsia | 3 Comments
Filed under: , ,

Turtle Graphics Logo Program

Warning: this simple program produces mesmerizing spirographic images that seem hallucinatory in nature! Discretion is advised! Do not drive while watching these graphics! Almost 30 years ago, I had heard about a concept developed by Professor Seymour
Posted by Calvin_Hsia | 14 Comments
Filed under: , ,

What was that strange character? The mystery deepens

In my last post, What's that funny character? , I asked about a particular character. In fact, another mystery character can occur. Embarassingly, SET CARRY ON was set on my machine when I ran the code, and I didn’t add it to the sample. It’s off normally
Posted by Calvin_Hsia | 4 Comments
Filed under: ,

What's that funny character?

Run this code: CREATE CURSOR foo ( line c( 100 )) LIST STRUCTURE TO t.txt APPEND FROM t.txt sdf GO RECNO ()- 1 FOR i = 1 TO LEN ( TRIM ( line )) ?i, SUBSTR ( line ,i, 1 ), ASC ( SUBSTR ( line ,i, 1 )) ENDFOR It produces t.txt which looks like this: Structure
Posted by Calvin_Hsia | 10 Comments
Filed under: ,

National Public Radio Car Talk

You may have heard a radio show on National Public Radio called Car Talk hosted by Tom and Ray Magliozzi, aka Click and Clack. It’s a call in show, where audience members call in with their car problems, and Click and Clack offer advice in a humorous
Posted by Calvin_Hsia | 2 Comments
Filed under:

Are there any pots inside?

I was watching my 9 year old daughter deftly manipulating the joystick on our original Sony PlayStation (predecessor of the Play Station 2) and that reminded me of a story. I lived in Boston from 1976 to 1984. I liked to hang out in a surplus electronics
Posted by Calvin_Hsia | 6 Comments
Filed under:
More Posts Next page »
 
Page view tracker