khi gia
hellotxting :)
antique junk
Netezza muti-proc system give nearly always different ordering on the same query/same data (no ‘order by’ in query of course!). Even partitioned table in Oracle seems to give always same ordering.
Haskell tutorial for concurrency
Great tutorial of all (lot) things about concurrency.
Written in Haskell, this is a good read even for non Haskell programmer. That’s a long time I’m saying I should digg into data paralell haskell … there are great example in the last part of this article.
join on command line
join -t’,’ -1 2 -2 1 -o “1.1 0 2.2” -a 1 f1 f2
This create a join of 2 CSV files f1 and f2, using column 2 as key for f1 and column 1 for f2, printing column 1 fo f1 and the key and column 2 of f2, and ensuring all lines of f1 are in output (left outer join).
blackhole
This is not a dead pixel on my LCD screen … this is a dead mosquito inside my screen :(
VB callback from C++ library
Spent few hours learning to call C++ from VB and VB from C++. It’s relatively easy (type convertion is ok, just be carefull that calling conventions is not the same in IDE (require std call conventions) and executable (both C and std are ok)).
Biggest problem is that a thread not managed by VB cannot call a VB callback (it’s here:http://support.microsoft.com/kb/q198607), so I will probably need to capture a VB thread (a windows timer thread also works) in my C++ API (through a blocking call) and share data between thread with a protected queue … all that to have a callback kind of thing from a C thread to the VB world!
Update: passing Variant from VB to C++ is not fun :(
