Skip to main content

Posts

Showing posts from 2023

Davinci Resovle

 Intall paid version - unpaid version lags because it has no GPU acceleration support. Need to Install Microsoft HEVC if media doesn't load Click on change if asked to change fps

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

Joplin

 Linux https://github.com/laurent22/joplin/issues/6612 sudo add-apt-repository universe sudo apt install libfuse2 https://joplinapp.org/help/#desktop-applications wget -O - https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh | bash It's not free if you want to sync in Joplin Cloud but works for dropbox or onedrive, I used dropbox sudo rm -r ~/.joplin sudo rm -r ~/.config/joplin-desktop sudo rm ~/.local/share/applications/appimagekit-joplin.desktop

Open ec2 on nautilus (File Browser Ubuntu)

Working method ssh-add /home/rb/eta/ec2_ramesh_key.pem In Connect to server do: sftp://ec2-user@ec2-35-91-46-202.us-west-2.compute.amazonaws.com  To rename: Right click >> Add to Bookmark Then you can rename the bookmark https://smashingweb.info/connect-remote-server-nautilus-using-key-file-pem-file/ gedit ~/.ssh/config Well some info were already there ex. from VSCode # Read more about SSH config files: https://linux.die.net/man/5/ssh_config Host Automl6     HostName ec2-35-91-46-202.us-west-2.compute.amazonaws.com     User ec2-user     IdentityFile /home/rb/eta/ec2_ramesh_key.pem Host Automl4     HostName ec2-54-187-190-154.us-west-2.compute.amazonaws.com     User ec2-user     IdentityFile /home/rb/eta/ec2_ramesh_key.pem Host Automl5     HostName ec2-35-89-188-226.us-west-2.compute.amazonaws.com     User ec2-user     IdentityFile /home/rb/eta/ec2_ramesh_key.pem do this in terminal: ssh Automl4 This will get you connected to Amazon ec2 server Then in Nautilus: Ctrl+L ssh://Autom

Windows like file sorting in linux

 in terminal : locale sudo update-locale LC_COLLATE=C restart required https://askubuntu.com/questions/239371/how-do-i-list-folders-with-underscores-first or edit  ~/.profile export LC_COLLATE=C this doesn't require logging out but is temporary killall nautilus && LC_COLLATE=C nautilus &

Fix Grub (lost) on Windows 11 - Or after Removing Ubuntu Partition

 Tried on HP Victus The grub is lost because the windows is set as default for login in BIOS. If you set Ubuntu as default grub will be back. Go to BIOS settings (F10) and Boot Settings and OS boot manager and put ubuntu on top. You get grub back (you can select between ubuntu and windows then) Select Windows [Didn't Work]: Hold Shift+Restart After Restart Again F9 and Windows and got to: Advanced Options > Command Prompt and do: X:\Windows\System32> bootrec /fixmbr X:\Windows\System32> bootrec /fixboot sometimes this gives error: Access is denied. if so, do this X:\Windows\System32> bootsect/nt60 sys Then do: X:\Windows\System32> bootrec /fixboot Repair Grub : Do this before deleting partition [Did but didn't work] Might need to do it by creating an installation media in USB (F9) for boot options HP Victus. X:\Windows\System32> bootrec /fixmbr X:\Windows\System32> bootrec /fixboot sometimes this gives error: Access is denied. if so, do this X:\Windows\Syst

Long Path Windows

 https://robocorp.com/docs/troubleshooting/windows-long-path gpedit.msc Computer Configuration > Administrative Templates > System > Filesystem. On the right, find the "Enable win32 long paths" item and double-click it set to "Enabled" Restart If doesn't work: regedit.msc HKEY-LOCAL-MACHINE > SYSTEM > CurrentControlSet > Control > FileSystem. On the right, find the LongPathsEnabled item and double-click it, Value data: 1

Bitlocker after unlock

  Source Computer > HKEY_CLASSES_ROOT > Drive > shell New > Key, and name the new key "runas" Select runas, double-click (Default) on the runas interface, in the pop-up edit box enter the value data "Lock the Drive" and click OK to save. Right-click the runas folder, click New > Key, and name the newly created Key "Command". In the Command folder interface, double-click (Default), and in the pop-up edit box enter "c:\windows\System32\manage-bde -lock -ForceDismount E:" (E represents the BitLocker encrypted drive that needs to be locked). @%SystemRoot%\System32\manage-bde -lock -ForceDismount K: