Line Counts by Command Line
For line counting in c/cpp/h source files:
For line counting in c/cpp/h source files:
To respond to special mouse button actions in Win32, we need to register the virtual command actions with the callback loop to detect the special mouse button action. For example, to detect forward and backward mouse button actions, we register the APPCOMMAND_BROWSER_FORWARD and APPCOMMAND_BROWSER_BACKWARD events: Should the WM_APPCOMMAND options not work, you might want to look into the VK_* event codes.
Should we want to use wifstream to read unicode characters directly from a file, we will encounter an implementation quirk with newline detection in the standard library. Carriage returns and line feed (CR/LF) characters contained within certain characters as a part of a character’s unicode encoding can be mistaken by std::getline for the newline character. This mix-up then causes std::getline to split lines of text in half. wifstream provides a unicode wide character interface to the std library’s file operation…
When attempting to run wordpress updates, wordpress can ask for ftp credentials. This can be caused by a conflict between the user/group ownership of the wordpress installation’s files and the webserver’s user credentials. The easiest way to fix this is to match the file ownership with the webserver’s user account:
While the Flash Player updates usually run automatically on machine restart, it is possible to keep Flash up to date while still running important operations. We can keep the machine running, and keep Flash up to date, by manually starting the update with the command:
While Software Engineers are undoubtedly more familiar with the C#### or LNK#### errors generated by Visual Studio, MSB#### errors are more indicative of a problem with the compile or compile environment instead of with the code being compiled. While working on build automation using cygwin, I encountered a number of MSB6001 compile errors. They are generated due to a mismatch between how cygwin, being a linux shell, and the underlying Windows system, handle environment variables. We can see a selection…
It is rather interesting when the standard library returns compile errors: This C2143 error is caused by the inclusion of C++ code within a .c file. Renaming the file from *.c to *.cpp will solve the compile error. However, in some circumstances it is not ideal to rename the file. Then the error can be solved by instructing Visual Studio to compile the project as C++ with the /TP option. When we look at the project’s properties, we can see…
Ascension Island Conservation has shared a series of my photos… Also reshared by the Ascension Heritage Society
Ever wanted to know when to stay up late, or to get out of the city to see the northern lights? Northern Lights Forecaster predicts when the northern lights will be visible so you know the best viewing time in advance.
Overview StaticErrors is a gem to help with the creation of static error pages. It allows you to use a dynamically generated page as a template, so all of your default styling and layouts can be used to design the error page. This dynamic page is then saved for static rendering. Syntax Use Cases 1: Basic Operations 2: Multiple Errors 3: Multiple Languages 4: Custom URL / Filepaths Final Considerations You may wish to check the urls of any externally…