This will be a bit of an introductory article on memory, written in part for my wife and for anyone else who may find such an introduction useful. In The Beginning… In the beginning there was RAM, random access memory. A microprocessor which could execute instructions would be attached to that RAM, which could be [...]
Filed under: Algorithms, C++, Hardware, Objective C++, Papers, Things To Remember | Posted on September 4th, 2010 by William Woody | No Comments »
Some interesting links I found that discuss time zones: Complete timezone information for all countries. – Just as the label says The official US time (NIST & USNO) – Displays the current time in the 10 major time zones in the United States. Time Zone Converter – Allows a search of the various time zones [...]
Filed under: C++, Java, Objective C++, Things To Remember | Posted on September 1st, 2010 by William Woody | No Comments »
I don’t know why it didn’t dawn on me that this would work. After all, it’s not like I’ve been using C++ for the past 18-mumble-years. (Oh, wait; I have. Meh.) So we define a class AClass, BClass and CClass such that AClass has an operator that converts it to BClass and CClass, and BClass [...]
Filed under: C++, Things To Remember | Posted on December 5th, 2009 by William Woody | No Comments »
Don’t hide or disable menu items. This is what separates the User Interface men from the User Interface boys: the suggestion “Instead, leave the menu item enabled. If there’s some reason you can’t complete the action, the menu item can display a message telling the user why” is the most Gawd-aweful suggestion I’ve heard in [...]
Filed under: C++, Commentary, Java, Objective C++ | Posted on July 1st, 2008 by William Woody | No Comments »
I just wrote: return tasks[[value intValue]].objectID; Heh heh heh heh heh… (For those who don’t understand, I just called a std::vector array operator[] method for the array ‘tasks’ with the return value of an Objective-C invocation of ‘intValue’ on the NSNumber value.)
Filed under: C++, Objective C++ | Posted on June 9th, 2008 by William Woody | 2 Comments »
So I needed to build a complex template. I wanted to build a map which also operated as a cache: as the contents of the map hit a limit on the number of objects in the map, the last referred to objects are automatically erased from the map. (What I’m doing is writing a bit [...]
Filed under: C++, Things To Remember | Posted on May 16th, 2008 by William Woody | No Comments »
I ran into an interesting problem while working on some code, and I thought it would probably be a good idea to, well, document the problem so I can remember it in the future. The problem was this: I have a C++ class which is the key index in a std::map class. This C++ class [...]
Filed under: C++ | Posted on April 25th, 2008 by William Woody | No Comments »
Let’s see: Java + JSP for the server. C++ for the core desktop and phone engine. C++ for the Windows and WinCE version. Objective-C++ for the Mac and iPhone version. Sounds just about right for a custom client-server system targeting multiple platforms: it’s about using the right tool for the job, and keeping things as [...]
Filed under: C++, Java, Objective C++ | Posted on April 1st, 2008 by William Woody | No Comments »