Jul. 27th, 2004

waider: (Default)
I like this: that story about the terrorist dry run that's doing the rounds? it's bunkum. In particular,
The source said the air marshals on the flight were partially concerned Jacobsen's actions could have been an effort by terrorists or attackers to create a disturbance on the plane to force the agents to identify themselves.
Mind you, I don't like so much that her inadvertent ploy appears to have worked, in that at least one of the marshals apparently identified himself to her.
waider: (Default)
From my RSS reader just now:
Irish Times Breaking News
12:24:00: Korei withdraws resignation as Palestinian PM
Palestinian Prime Minister Ahmed Qurie has officially retracted his resignation today, ending a two week stand-off with President Yasser Arafat.
(No, there isn't an official Irish Times newsfeed, I wrote one, dammit.)
waider: (Default)
I woke up in the middle of the night, having had a fairly vivid dream, in which someone I know featured. I wasn't 100% sure it was them, though, and it occurred to me that the biggest problem with dreams like that is that you can't exactly go to the person you think it was and say, "hey, was that you in my dream last night?" Of course, that then dumped me into a brief moment of solipsism where I got a fit of giggles at the thought that, hey, since I invented all these people, of course I can ask them if they were in my dreams, because the people in the dreams are the same as the "real" ones.
waider: (Default)
strfmon() is a function that formats "money" values according to local convention, or locale as we geeks like to call it. This accounts for such things as how you group your numbers (by thousands for most countries; Japan groups by ten thousands), whether the currency symbol goes before or after the amount, where you put spacing, what your group separator is, etc.

strfmon() belongs to the insane class of C library functions that refuse to allocate memory for something they should allocate memory for. Specifically, to get a result from strfmon() you have to give it a buffer to write the result into. It will tell you how much of that buffer it used. But, er, you don't know how much of a buffer to give it until you've already called the function. This leaves you in the situation of either (a) calling the damned thing repeatedly until it's happy or (b) making a rough guess, and crossing your fingers. Since I'm in a fairly restricted environment, I've currently opted for the latter in the interests of not adding needless cycles to an already overcycled system. But seriously folks. DON'T FRICKIN' DESIGN YOUR INTERFACES LIKE THIS.

(oh yeah. for added pain, I'm actually calling this via a C extension to Perl, which I've mostly hand-built due to the fact that I guess everyone else who looked at the task ran screaming from the strfmon() interface.)

Profile

waider: (Default)
waider

April 2017

S M T W T F S
      1
2345678
9101112131415
16171819202122
232425262728 29
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 3rd, 2026 06:40 pm
Powered by Dreamwidth Studios