Skip to main content

Posts

Showing posts from March, 2023

Filename or extension too long windows

Open Run command by pressing Windows + R and type Regedit and hit enter. This command will open the Registry editor console. Now navigate to the following path. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem From the left-hand side click on the FileSystem and from the right-hand side look for the DWORD named LongPathsEnabled. Double click on the LongPathsEnabled DWORD and set the Value data as 1 and click on OK.

GCC Cuda Incompatible RuntimeError

 RuntimeError: The current installed version of g++ (11.3.0) is greater than the maximum required version by CUDA 11.2. Please make sure to use an adequate version of g++ (>=5.0.0, <11.0) gcc --version sudo apt -y install gcc-10 g++-10 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10 https://github.com/facebookresearch/detectron2/issues/667 subprocess.CalledProcessError: Command '['which', 'c++']' returned non-zero exit status 1 As INSTALL.md says you need gcc>=4.9.

VSCODE Settings

Packages: GitLens Ruff Flake8 Python (To Disable double envs like: (automl)(base)): Didn't work and: conda config --set auto_activate_base False : This worked autoDocstring - Python Docstring Generator Open the settings (File > Preferences > Settings)   or use the keyboard shortcut (Ctrl + ,) you can use search there and To change size of fonts in Tabs etc Ctrl +  and Ctrl - to change Then adjust font size in editor with Ctrl and mouse scroll For debugging:  Python Debugger: Debug using launch.json and in .vscode/launch.json or change to any path you like  "cwd" : "${fileDirname}" {     // Use IntelliSense to learn about possible attributes.     // Hover to view descriptions of existing attributes.     // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387     "version" : "0.2.0" ,     "configurations" : [         {             "name" : "Python Debugger: Current File" ,             &

Protect ec2 key Permissions too open

 Move to C drive first - the pem file Right Click > Properties > Security > Advanced > Change Permissions > Disable Interitance > Convert inherited permissions into explicit permissions on this object Change owner to: RB\rames Then remove all Permission entries and add you - Full control