Nimble Coder

Adventures in Nimble Coding
posts - 76, comments - 39, trackbacks - 0

September 2007 Entries

Do You Remember All of Your Command-line Parameters?

I had to brush up on my command-line parameters for cl, link, lib, and dumpbin today. It had been a little while since I had done this so I had to refresh my memory. The project dealt with a DLL generated by Delphi (the original source language was closest to Pascal/Delphi so I wrote a utility to convert Pascal rather than doing a massive conversion) and also generated C headers files and C unit test files at the same time. A while back they wanted a new DLL for a different project that used different functions from the original source....

posted @ Friday, September 28, 2007 2:33 PM | Feedback (0) | Filed Under [ Delphi Tools ]

Percentage Normalization in SQL

I had a little fun with SQL Server last week trying to normalize a gas composition function that was returning a molar percentage of the gas. During testing we found several cases where the sum of the components did not add up to 100.0%. Of course due to floating point inaccuracies it is quite possible that rounding errors could also contribute to the issue. The values we were seeing were a couple of percentage points different and so we decided to normalize the data to ensure that it added up to 100.0%. At the same time, I rounded the components...

posted @ Monday, September 17, 2007 11:40 AM | Feedback (0) | Filed Under [ SQL ]

Powered by: