Merry Christmas!
Merry Christmas to everyone! I wish you all relaxing days and a nice time together with the people you love.
Merry Christmas to everyone! I wish you all relaxing days and a nice time together with the people you love.
Some time ago I stumbled over a neat trick in programming languages which understand C++-like comment lines (single- and multi-lined comments). This allows toggling between two different blocks of code by just adding or removing a simple '/' character in the first line.
/* <<- Add/remove one '/' here to toggle active code block
String mode = "release";
/*/
String mode = "debug";
//*/
I found this somewhere on Stackoverflow.com but couldn't locate the article containing this again. I found a reference to this here but I guess this trick is much, much older than this article.
Some time ago I had to deal with a very strange issue on my Windows XP installation on my laptop. Everytime my computer turned the display back on after rebooting, hibernate or even standby it changed its resolution to 1024x768 pixels. This was really weird because the native resolution of my display is 1920x1200 pixels and so the resizing was very disturbing.
I'm having a Nvidia Quadro FX 770M chipset but searches on the internet indicated that this issue also applied to other chipsets and were likely more of a deeper and complicated driver issue where some setting somehow flipped and caused this behavior.
There were a lot of descriptions and suggestions how to get rid of this issue (including re-installing the driver) but none of them worked for me. Finally I came across this posting in the Nvidia forums which offered a procedure to resolve this issue. I did not try the full procedure at first but took a shorter route (with less reboots) and this already resolved the problem for me:
It is important to NOT enter the Windows display control panel for changing the resolution, even if the Nvidia control panel is entered afterwards from there. Nevertheless, after this procedure the native resolution persisted on my notebook even after reboots/resumes.