Recovery story

I-35W Mississippi River bridge

After 40 years of a faithful service, she collapsed due to some undersized gusset not being able to bear the increasing load.

 

I-35W Saint Anthony Falls Bridge 

Then the replacement is a well-loved and praised bridge.


Such a story.

Forgot what I was doing

But most likely that numpy array works so inefficiently compared to item/itemset on opencv-python, here


 

A practicioner's view

Bridge maintenance and safety: A practicioner's view

C. Seim is one hell of a guy. :) His paper (talk?) talked about how bridge maintenance progresses from analyses on primary effects (static loading, force balance, material properties, etc.; all that is incorporated into bridge design); to secondary effects (dynamic loading properties, time-dependent [finite element] analysis of the members; towards tertiary effects (material behavior to temperature, resistance to corrosion, bearing durability, the list goes on)

 I have not listed any references, as these are my thoughts alone, based on my own experiences.

That's one smug remarks from him, he deserved it.

python opencv VideoWriter results in invalid video file

Little did I know that OpenCV's VideoWriter could not handle saving into oddball-frame-sized video files. Python's not so verbose output doesn't help at all. Your program will still run fine like nothing wrong is happening, in the end it produces not-supposed-to-be file size like 578 kB or sth.

I bumped into similar SO articles [1, 2] which mentioned the case. I confirmed that VideoWriter works nicely when the frame dimensions (both height and width) is multiple of 8.

I am just so bad with farewells

I, indeed, am.

byte offset to pointer (C/C++)

I had the same question as this guy. I need to add some byte offset to a variable of struct something dataypes.

struct something data, *ptr.
char *helper;

ptr= &data;
helper= ptr;

&helper +offset ; // these two will do the same:
& helper[offset] ; // advances the helper by offset byte
*ptr + 1 will advance by the whole sizeof(struct someting)


openezx

openezx.org used to be a place to share things development of EZX phones. The project was active mostly from 2004 to 2008. Went under in 2011/2012, just to be archived on Github and Open Source Mobile Communication Consortium earlier this year.

The original openezx.org now is a lesbian porn site. D'oh. The time of registration is somewhat close to the date the Github and OSMCOM went up.

pidof

I am still doing
kill `pidof <some thing>`
instead of pkill <the thing>

Am I old shool already?