Where does CLion store executable files?

When you build under CLion, It prints the path it sends the executable to the Console: — Build files have been written to: /home/<user>/.clion10/system/cmake/generated/8bd932b1/8bd932b1/Debug1 To change this File > Settings…, and under CMake settings, enter the desired subdirectory name (e.g., ‘bin’) in the Working directory field: (You may require Run > Clean before the new … Read more

Restoring single collection in an existing mongodb

If you want to restore a single collection then you have to specifiy the dump file of the collection. The dump file of the collection is found in the ‘dump/dbname/’ folder. So assuming your dump folder is in your current working directory, the command would go something like – mongorestore –db mydbname –collection mycollection dump/mydbname/mycollection.bson

Exposing python jupyter on LAN

Try jupyter notebook –ip <your_LAN_ip> –port 8888 Then visit http://your_LAN_ip:8888 from another computer. It’s recommended that you use a password when accessing your notebook server. To set up a password, just run jupyter notebook password. To make it even more secure, you can use SSL for your server by passing the arguments –certfile and –keyfile … Read more

Compile c++14-code with g++

For gcc 4.8.4 you need to use -std=c++1y in later versions, looks like starting with 5.2 you can use -std=c++14. If we look at the gcc online documents we can find the manuals for each version of gcc and we can see by going to Dialect options for 4.9.3 under the GCC 4.9.3 manual it … Read more

no target device found android studio 2.1.1

I already had this problem before. Choose “Run” then “Edit Configurations”. In the “General” tab, check the “Deployment Target Options” section. In my case, the target was already set to “USB Device” and the checkbox “Use same device for future launches” was checked. I had to change the target to “Show Device Chooser Dialog” and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)