Friday, October 21, 2016

1. Go to Administrative Tools/Services and find the Windows Update service. Stop it.2. Go to C:\Windows\ and rename the SoftwareDistribution folder to something like SoftwareDistribution.old3. Restart the Windows Update service.4. Click the Check for Updates button on the Windows Update screen.5. Windows will perform the check - it may take some time, so leave it running. Eventually it will successfully complete.6. You can then delete the SoftwareSistribution.old folder.

Tuesday, July 26, 2016

I installed today Oracle XE on SUSE 11 and I got this error during configuration:Database Configuration failed. Look into /u01/app/oracle/product/11.2.0/xe/config/log for detailsIn the files in /u01/app/oracle/product/11.2.0/xe/config/log

there were these errors:ORA-00119: invalid specification for system parameter LOCAL_LISTENERORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=linux-jbzk.site)(PORT=1521))'

Thursday, April 14, 2016

If you log via SSH and you get a prompt showing only the bash version it means that .bashrc wasn't sourced. SSH sources .bash_profile not .bashrc.
To solve this problem, create/update .bash_profile with the following content :

Sunday, March 6, 2016

This post is for those who just need "a refresh" of the steps required to set google test with Visual Studio. If you are a newbie, please refer the excellent references at the bottom of this post.

Some simple actions will allow you to use the popular Google Test Framework in Visual Studio.
In a summary you will need to perform these steps:

1) Download the latest version of google test
2) Open and Compile in Visual Studio the TWO Visual Studio solutions you'll find in googletest/msvc: gtest.sln (static libraries) and gtest-md.sln (dynamic libraries)NOTE: Before open gtest.sln and gtest-md.sln remember to unlock these files (right click and unblock).
3) Neglect the warnings in Visual Studio and
With the DEBUG configuration Build -> Build Solution
With the Release configuration : Build -> Build Solution

These steps will create the gtest libraries in msvc/gtest/Debug msvc/gtest/Release.Debug:gtest_maind.libgtestd.lib

4) To create a test project to support an existing project of yours you'll need to make the following changes in your test project:

Be sure your Runtime Library is the same in BOTH project AND it is consistent with the google test libraries you are using: e.g. if you compiled gtest.sln YOU need to set a multi-thread runtime environment : /MT and /MTd , for release and debug solution, respectively. This is set in General Properties -> C/C++ -> Code Generation. Distinguish between Release and Debug

In General Properties set correctly Include Directories and Libraries Directories