Puns about communism aren’t funny unless everyone gets them.
Cyprus Computer Society – Logos
The Cyprus Computer Society (CCS) is a professional and independent not-for-profit organization, seeking to improve and promote high standards amongst informatics professionals, in recognition of the impact that informatics has on employment, business, society as well as on the quality of life of the citizen.
Through the advancement of IT Science and good practice our organization promotes wider social and economic progress, bringing together industry, academics, practitioners and government to share knowledge, promote new thinking, inform the design of new curricula, shape public policy and inform the public.
As the Body of Computer Science and IT Professionals, the CCS is engaged in a range of activities, expresses its views on behalf of its members to the National Authorities on IT strategic issues and engages in European and other projects by developing multistakeholder co-operations with the academic community, government, public, private and non-governmental organizations.
The CCS was founded in 1984 and today with the high quality level of the services it offers to its (more than 1200) members, the IT community and the society, the CCS has become the trust-worthy reference point of IT in Cyprus.
VirtualBox on Windows: Stuck in capture mode as the keyboard does not have a right Ctrl button 1
Recently, we got a laptop that did not have a right Ctrl
button and we found out after we started a VM with no Guest Additions installed.
Because of these two factors we could not escape the VM capture mode and return to the host OS.
To resolve the issue, we pressed Alt
+Ctrl
+Del
to force the window to escape by entering that specialised Windows security screen and the hit Cancel
.
Then, we went to the VirtualBox window and did the following procedure to change the button that allows you to escape the capture mode.
From the VirtualBox Window menu we went to: File
–> Preferences
–> Input
and then clicked on the box next to HOST KEY COMBINATION
and then typed the key we wanted to use.
C/C++: How do you set GDB debug flag (-g) with cmake? 1
Solution 1: Modify the CMakeLists.txt file
Add the following line to your CMakeLists.txt
file to set the compilation mode to Debug
(non-optimized code with debug symbols):
set(CMAKE_BUILD_TYPE Debug)
Add the following line to your CMakeLists.txt
file to set the compilation mode to RelWithDebInfo
(optimized code with debug symbols):
set(CMAKE_BUILD_TYPE RelWithDebInfo)
Solution 2: Add a command line argument to your cmake command:
Modify as follows your cmake
command to set the compilation mode to Debug
(non-optimized code with debug symbols):
cmake -DCMAKE_BUILD_TYPE=Debug <path and other arguments>
Modify as follows your cmake
command to set the compilation mode to RelWithDebInfo
(optimized code with debug symbols):
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo <path and other arguments>
Bonus material:
The difference between Debug
and RelwithDebInfo
modes is that RelwithDebInfo
optimizes the code similarly to the behavior of Release
mode. It produces fully optimized code, but also creates the symbol table and the debug metadata to give the debugger as much input as it is possible to map the execution back to the original code at any time.
Code build with RelwithDebInfo
mode should not have it’s performance degraded in comparison to Release
mode, as the symbol table and debug metadata that are generated do not live in the executable code section, so they should not affect the performance when the code is run without a debugger attached.