I do lot of my development in C++. It’s not the most user-friendly of languages but it’s very powerful. Learning it can be a bear, however. If you’re really a glutton for punishment, you could start with The C++ Programming…
I do lot of my development in C++. It’s not the most user-friendly of languages but it’s very powerful. Learning it can be a bear, however. If you’re really a glutton for punishment, you could start with The C++ Programming…
If you run into a compiler error like this compiling a template on HP 11.00: Error 419: “myfile.cpp”, line 5 # ‘iterator’ is used as a type, but has not been defined as a type. std::vector::iterator j; you need to…
I’ve been doing some scripting in perl lately. I’ve been writing a script that generates a slew of data files and it was running really slow. I wanted to find out the bottleneck. Fortunately for me, Perl includes a nice…
I recently had to get user information from a NIS domain programmatically. It’s fairly simple to dump the NIS database from the command line using ypcat. e.g. It’s just as easy to match users or UIDs using ypwhich. e.g. Unfortunately,…
The Solaris compiler suite ships with dbx, a source level debugger. Later versions include additional functionality to detect memory leaks and dangling blocks at program exit. The Sun guys once again designed a pretty powerful tool with a god awful…
The CORBA object semantics are really frustrating at times. They behave close enough to how C++ does things to make them familiar, but they differ enough to lull you into a false sense of familiarity. Your first attempt to return…
Suppose you’re following the “resource acquisition is initialization” technique where you allocate resources as part of construction. You might write classes like: The resource is allocated in the constructor when the object is instantiated and released in the destructor when…
The Solaris compiler really has some useless error messages. I get “Reallocation failure in ySpace()” occasionally when compiling under SunOS with the forte compiler. The compilation fails and I’m left scratching my head. This error message is really awful. The…