Category Archives: Programming

Lack-an-ODBCy

The silly thing of having out-of-date interface files + up-to-date SDK files is that nothing matches and that (generally) the next step is to ‘duke it out’ with everything, except for the compiler. Here’s what I was fighting out: Using … Continue reading

Posted in Programming | Comments Off on Lack-an-ODBCy

Huh. Huh?!?

While returning back to some older ADO/DAO stuff (earlier on xsamplex), I decided to take a look behind the scenes: the ADO/MDAC SDK comes -uh- with a set of tools to help developers find out problems with ODBC drivers and … Continue reading

Posted in Programming | 2 Comments

You asked: CreatMapFile & Pascal

From the logfile, a Polish person looking for CreateFileMapping, most likely using Delphi. The WIN32 API function is generally used in conjunction with ‘MapViewOfFile’. You’d generally use memory mapped files when you run into a TStringList limitation. At this stage, … Continue reading

Posted in Programming, You-Asked | 1 Comment

Com0Com

For the uninitiated: Framework 2.0 nowadays sports genuine Serialport communication (via an extra class/component called SerialPort) [MSDN link]. The class supports both blocking and non-blocking forms of communication. A good way to test serial port communication (without the need of … Continue reading

Posted in Ordinateurs, Programming | Comments Off on Com0Com

Holy Cows!

So, a question programmers (the Earthly types) should be able to answer: How many cows can you store in a genuine Int64? If you’re a smartass, take it away!

Posted in Programming | Comments Off on Holy Cows!

Who slams who?

This article (“The Web is broken and it’s all your fault”) popped up on the Postgres-general list and then made it into Slashdot as ‘Postgres slammed by PHP creator’. The Slashdot thread highlights some interesting PHP flaws and the fact … Continue reading

Posted in Programming, SQL | Comments Off on Who slams who?

Et tu, compile

Managed to compile Regnessem, that is, a couple of hours ago. Compiling isn’t too much of a job: the original directory structure within the tarball (which I hope is the latest version of the program) has been setup nice and … Continue reading

Posted in Hyperlinks, Ordinateurs, Programming | Comments Off on Et tu, compile

CVS

Having used WinCVS for so many moons, both personally and professionally, there’s one thing that annoys the hell out of me: When importing new modules, the dialog that shows which files are going to be part of this module and … Continue reading

Posted in Ordinateurs, Programming | Comments Off on CVS

File format hacking

Today, I was researching the file format of a legacy application that is not supported anymore. I don’t think the company that made the program exist anymore, probably suffering the same fate as anyother (legacy) database vendor: swallowed up by … Continue reading

Posted in Programming | Comments Off on File format hacking

On a related note

For users of Postgres 7.2 (and probably up to 7.3, but it might be compatible with all higher versions) who do not have a clue how to get those triggers going because it’s all undocumented, here goes. Two things you … Continue reading

Posted in Programming | Comments Off on On a related note

Owner draw

While doing some ownerdraw stuff in regular Windows stuff (stuff is my favourite word, as you can see), I noticed something weird: I was forced to ‘refresh’ regions by code, instead of relying on the tools of the specific programming … Continue reading

Posted in Programming, Truro NS | Tagged , | Comments Off on Owner draw

On Select Go Slow

At work, I rolled out a crucial test for the Postgres database: Originally the Invoicing program was never meant to work in a real multi-user environment. This is particularly due to a couple of statements used to generate a unique … Continue reading

Posted in Programming | Comments Off on On Select Go Slow

Algorithms

The most comprehensive resource for algorithms is still the DADS, NIST’s Dictionary of Algorithms and Data Structures. Completely recommended if you quickly need to look up a way to sort your data. DADS is also living proof why it’s ridiculous … Continue reading

Posted in Programming | Comments Off on Algorithms