February 2012 S M T W T F S « Oct 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 Categories
-
Recent Posts
Recent Comments
- Fabio Utzig on propertypp: Objective-C-like properties for C++ classes
- Fabio Utzig on Two Conclusions
- Fabio Utzig on Two Conclusions
- Mauricio Berni on Two Conclusions
- Fabio Mierlo on My trip to Seattle for the Amazon.com SDE interview
Archives
Category Archives: English
Solving linker errors OpenThreads/Atomic on OSG projects on Mac OS X 10.6
I’ve just spent two days trying to figure out what was wrong with an OSG application I was not being able to build on Mac OS X 10.6. After importing all necessary OSG frameworks, I kept constantly getting linker errors … Continue reading
Posted in English, Mac, OSG, Programming
2 Comments
Building OpenCV 2.0 on Mac OS X 10.6
I first tried it this way: $ cd OpenCV-2.0.0 $ mkdir build $ cd build $ cmake .. $ make But it failed. I got lots of errors when trying to link highgui to the Carbon libraries. The problem is … Continue reading
Posted in English, Mac, OpenCV, Programming
1 Comment
Why Lua’s 0 (zero) as a true value makes sense
When I started to learn about Lua, I found it a little odd that the numeric 0 (zero) value is treated as a true boolean value by the interpreter, which was different from all other programming languages I had worked … Continue reading
Posted in English, Lua, Programming
Leave a comment
Creationism vs. Evolutionism
As a Christian, I’m just growing sick of that absolutely unfruitful discussion. I can’t stand listening to what theologians have to say, nor can I stand what atheists have to say. It’s all a huge load of garbage. Here are … Continue reading
Posted in English, Faith, Personal
Leave a comment
“Doppler effect” kitchen tiles
The tiles in my kitchen remind me of some Doppler effect illustrations I have seen:
Understanding Bayes’ Theorem
Disclaimer: I am writing this because I finally understood how Bayes’ Theorem works. Therefore, this is much more a reference note to myself than anything else, but I am publishing the information here because I think it might be useful … Continue reading
Posted in English, Math
Leave a comment
Ternary operator in Python
Here’s how you translate the following C code int max(int a, int b) { return (a > b ? a : b); } to Python: def max(a, b): return a if a > b else b The general syntax is: … Continue reading
Posted in English, Programming, Python
Leave a comment
Using feof() and fread()
When reading single bytes from a file in C, one must pay attention to the correct usage of feof() and fread(). At first, the following piece of code seems to work correctly: const char *filename = "hello"; unsigned char byte; … Continue reading
Posted in C, English, Programming
3 Comments
Don’t forget that virtual
I am not really a C++ programmer. I usually code in C, and I think all C++ I’ve ever written involved a couple of vectors and maybe one or two classes. So what I’m writing here is certainly old news … Continue reading
Posted in C++, English, Programming
1 Comment
