If you get the above dialog while starting Visual Studio 2015, then do the following:
- Open registry editor (Windows+r > regedit)
- Navigate to the registry key: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0
- Delete the “MainWindow” registry value
Now try opening Visual Studio 2015. It should start without any issues.
Go to Tools > Options > Text Editor.
If you want to disable the drop down for all languages then, select “General” under “All Languages”. If not, select “General” under the language of your choice and then un-check the “Navigation bar” check box under “Display” group.
Method-1: Using the C++ standard library std::bitset.
1 #include <iostream>
2 #include <bitset>
3 #include <string>
5 using namespace std;
7 int main(int argc, char* argv)
9 int n, nbits;
11 cout << "Enter a number: ";
12 cin >> n;
14 bitset<sizeof(short) * 8> b(n);
15 cout << "Binary equivalent of " << n << ": " << b.to_string() << endl;
17 string bits = b.to_string();
18 string rbits = bits;
19 reverse(rbits.begin(), rbits.end());
21 if (bits == rbits)
22 cout << bits << " == " << rbits << endl;
24 cout << bits << " != " << rbits << endl;
26 return 0;
The above method is inefficient both in space and running time. For the sake of brevity, the extra copy of ‘rbits‘ is used. The above method runs approximately in linear time (‘n‘ times for converting the bits to string and another ‘n‘ for reversing the string).
Powered by ScribeFire.
To get the Dell service tag via command line or from a remote computer, execute the following on the command line:
wmic bios get serialnumber
More info on WMIC can be found here: WMIC – Take Command-line Control over WMI
More WMIC examples can be found here: Examples of WMIC commands for Windows .NET SERVER Family
Update: Boost.Log is now part of the entire set of Boost Libraries since v1.54. The instructions on how to build Boost Log is available here: Configuring and building the Boost Log library
The following instructions are valid only for v1.0 of Boost Log.
This is a brain dump of the method followed by me to install Boost.Log. One important note before you build and install boost libraries: Make sure you have installed a threading library like pthreads. Most package managers should have them.
Now lets get on to the build steps:
- If you have installed Boost already from source, then its fine continue to next step. Otherwise download it from here (this link is for latest version as of this writing: v1.45). Extract the boost libraries at say:
/opt. We can build the libraries along with
- Download Boost.Log from Sourceforge.
- Extract the Boost.Log source archive in a folder – say
- Copy the
log folder in:
/opt/boost-log-1.0/boost to your boost source directory
/opt/Boost_1_45_0/boost (assuming that you have extracted it in
- Copy the
log folder in:
/opt/boost-log-1.0/libs to your boost
/opt/Boost_1_45_0/libs (assuming that you have extracted it in
- If you haven’t installed other Boost libraries, then follow these steps:
.bootstrap.sh --show-libraries — this will list all the libraries that will be built and installed. You should see
log listed as part of it.
.bootstrap.sh --with-libraries=all --prefix=/usr/local --includedir=/usr/local/include --libdir=/usr/local/lib
Finally make sure
/usr/local/lib (the path specified in
bjam to install the built libraries) as part of it. If it is not edit your
~/.bashrc and add the following:
If you know the ‘SHA1 hash key’ for a commit you made to git and if you want to know the corresponding svn revision number here is what you do:
$ git svn log --show-commit | grep GIT-SHA1-KEY
GIT-SHA1-KEY‘ is the 128-bit key that git assigns for each commit.
If you know of any other ways to fetch the svn revision number of a git commit object, please post it in the comments. Thanks!