I have udpated Hoops SDK from v17 to v19, and my previous C# Winform application, which runs pretty well in v17, fail to start in v19. Debugging into the code reveals the below exception:
ofEnableAlphaBlending()/ofSetVerticalSync(true) results in program crashing: access violation and troubleshooting
In a recent project using openFramework, the program crashes on startup. Debugging into the program shows that the program halts when the functions ofEnableAlphaBlending() or ofSetVerticalSync(true); is called. A Google searching shows that this is most probably due to the fact that OpenGL driver of the display adapter is too low, e.g. OpenGL 1.1 is used, whereas OpenGL 1.3 or above is expected to make the program run smoothly.
To trouble shoot this, update the display driver to support OpenGL 1.3 or above:
A brief list of git commands
| git fetch origin (origin is the serve alias) |
Looks up which server is origin; –> fetches any data you don’t have—> update local data base –> moving the origin/master pointer to up-to-date position |
The above figures are copied from Git Pro book, see here for details.
Git Command explained with snapshots (II)
Continuing the previous article, now let’s apply some modifications on the “SomeText.txt”, but do NOT save it at the moment! Then run the command “git diff”
Git Command explained with snapshots (I)
The very beginning step is probably creating/selecting a folder (e.g. C:\_Test) where to keep your source code. Now this folder is just a common folder, and it is not a Git repository yet. To let Git know this, use the command: “git init”
Diable Fn key of Mac keyboard for Bootcamp-based Windows system
In a recent project, we are required to deploy our application in Windows platform, and we then installed Windows 7 using Bootcamp. In the subsequent development using Visual Studio 2010, we frequently use F5 (Run/debug), F12 (Go to definition) and F10 (Step into), but each time, we have to use the combination of Fn + F5, Fn + F12, Fn + F10 etc. to accomplish the desired tasks. One of colleagues Arthur, found the way to solve this, although this is also searchable using Google, but it seems almost all descriptions are not very clear. Below are the detailed procedures with snapshot:
- In the system try, click the icon Boot Camp;
- Then click the “Boot Camp Control Panel”;
- in the “Keyboard” tab, tick the “Use all F1, …”
openFramework in VisualStudio: “error C2001: newline in constant” or “IntelliSense: too many characters in character constant” error
When compiling the examples in the openFramework, if you encounter the below errors:
- “IntelliSense: too many characters in character constant …icons.h” or
- error C2001: newline in constant (see below Fig.1)
Learning openFramework from a MFC-er’s perspective
Recently I began learning openFramework and ever talked with my colleagues about how to adapt to it as quickly as possible. As a programmer who started programming along the path C –> C++/MFC –> .Net/C#, I found the below analogy is quite useful to digest and use the framework.
| ofBaseApp | CWinApp |
| setup() | InitInstance() |
| draw() | OnDraw() |
| exit | ExitInstance() |
If you are willing to accept these new words/expressions, it will be trivial to get started with openFramework! I will update this as my project progresses.
Happy coding!
OpenCV: CUDA_TOOLKIT_ROOT_DIR not found or specified
In the latest OpenCV release version is 2.3.1 (August 2011), if you use CMake to config the build files for VisualStudio, it is likely that you encounter the same error as me:
Some recommend to use the old version 2.3 instead to troubleshoot this, while a simple solution is to point this directory to any existing folder, as shown below:
Duplicate Toolbars/buttons after reinstalling Visual Studio .Net
My Visual Studio.Net crashes frequently and I then asked my colleague to reinstall it for me. Sadly, after reinstallation, the GUI becomes rather chaotic, with duplicate toolbar buttons as shown below: