Refer: https://dzone.com/articles/easy-mocking-your-database-0
Pylint Tweaks Print Statement Error
Refer: https://stackoverflow.com/questions/48626676/vs-code-shows-an-error-message-at-print-statement-in-python-2-7
Refer: https://code.visualstudio.com/docs/python/linting
Create yourself a default file:
pylint --generate-rcfile > .pylintrc
Update the following section and add this entry
[MESSAGES CONTROL]
disable=print-statement
Visual Source Code
Edit /home/mruckman/.config/Code/User/settings.json and update this section for pylint:
"python.linting.pylintArgs": [
"--max-line-length=120",
"--rcfile=/home/mruckman/Documents/Scripts/Python/pylintrc"
],
Download: pylintrc.txt
Fixing Windows Printer Problems
Advanced
If the previous troubleshooting step is not successful, you may need to clear spooler files and restart the spooler service.
- In the search box on the taskbar, type Services, then select the search result of the same name.
- In the Services list, double-tap (or double-click) Print Spooler. Select Stop > OK.
- In the search box on the taskbar, type %WINDIR%\system32\spool\printers, select the file folder in the search results, and then delete all files in the folder.
- Search for and open Services again
- In the Services list, double-tab (or double-click) Print Spooler.
- Select Start, and in the Startup Type list, make sure that Automatic is selected, and then select OK.
Refer: https://support.microsoft.com/en-us/help/4027397/windows-10-fix-printer-problems
Parallels Toolbox Deleted Font Cache
Refer: http://osxdaily.com/2015/01/08/clear-font-caches-databases-mac-os-x/
$ sudo atsutil databases -remove
Reboot your computer
Grep Only For Certain File Extension and Remove Warnings
grep -ir --include \*.conf "prdweb2" 2>/dev/null
Update Date / Time Display in Ubuntu 18.04
Install Plug-in Extension from Software Center
Clock Override
The only weird part, you can only get to the extension settings by searching for it in the software center.
Use the following for YYYY-MM-DD HH:MM
%F %H:%M
Installing Latest Ubuntu Kernel
Trying to fix broken trackpad in Lenovo Ideapad 330
Refer: https://itsfoss.com/upgrade-linux-kernel-ubuntu/
From this article: https://askubuntu.com/questions/1049a787/lenovo-ideapaad-330-touchpad-not-working/
The following two items need done, to get the two finger and edge scrolling to work also:
sudo modprobe -r psmouse
sudo modprobe psmouse
Visual Studio Code Error ENOENT
Error: ENOENT: no such file or directory, lstat '/snap/code'
Refer: https://github.com/Microsoft/vscode/issues/65095
Fix: sudo ln -s /snap/vscode /snap/code
Turn off video auto play in Firefox
Refer: https://support.mozilla.org/en-US/questions/1222694
about:config?filter=autoplay
Helpful Reply
The pref that controls auto-play has been changed in the current Firefox release (63.0.1) to an Integer value.
media.autoplay.default = 0
When the first two prefs listed below (or at least user-gestures-needed) are true then there is also a setting available in "Options/Preferences -> Privacy & Security -> Permissions" and you can inspect and modify the exceptions.
media.autoplay.enabled.user-gestures-needed = true
media.autoplay.ask-permission = true
media.autoplay.default = 0 [0=Allowed, 1=Blocked, 2=Prompt]
You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.
http://kb.mozillazine.org/about:config
See also:
https://support.mozilla.org/en-US/kb/block-autoplay
Install Flash Plug-in Ubuntu 18.04
Refer: https://computingforgeeks.com/how-to-install-latest-adobe-flash-player-on-ubuntu-18-04-linux/
sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
sudo apt update
sudo apt -y upgrade
sudo apt install adobe-flashplugin
sudo apt-get install browser-plugin-freshplayer-pepperflash
Adobe Flash should now also be available on search menu too
