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

Recommended Packages: Remote - SSH GitLens Ruff Flake8: To change Line Length for Flake8 do: "flake8.args": [     "--max-line-length=120"  ] in the settings.json I prefer editing the Workspace settings, namely <root project folder>/.vscode/settings.json autoDocstring  - Python Docstring Generator Python (To Disable double envs like: (automl)(base)): Didn't Work and: conda config --set auto_activate_base False : This worked https://stackoverflow.com/questions/77410905 This will although show (automl) the actual env will be base env still 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}" {   ...

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