Posts

Showing posts from 2021

Ubuntu Xrdp polkit policy error when mounting external USB storage

SOLUTION You need to mount USB storage using PMOUNT via the terminal.  First, install PMOUNT sudo apt-get install PMOUNT Then mount the storage device: pmount /dev/sda1 (replace sda1 with drive label) You can find the drive label from the Disks  utility; search for Disks on Ubuntu. To unmount. p u mount /dev/sda1  ( replace  sda1 with  drive label)

Thought of the day...

Image
    The greatest enemy of capitalism is a mind nurtured by Bhavana [meditation].

File "stdin", line 1 — invalid syntax error in Visual Studio Code

Image
If you came across this error, keep on reading to learn how to fix it.  File "<stdin>", line 1     & C:/Users/Chanaka/AppData/Local/Microsoft/WindowsApps/PythonSoftwareFoundation.Python.3.9/python.exe g:/CP/hello_world.py     ^ SyntaxError: invalid syntax I got this error for a simple hello world python code. Python files cannot be run within the interpreter. Sounds weird right? Python cannot be run within Python! 🙄  I know why but my thought process is not quite clear. Until I process my thoughts, try THE fix. I wish the error message was descriptive for noobs like me.  FIX Type exit() in the Visual Studio Code terminal and press enter, as shown below. Then run the Python file in the terminal. Ta Da! You should not see this error again.  Happy Pythoning.  

Cannot boot in to the Samsung S10 (Galaxy) recovery mode/menu? Here's the fix. (2021 May)

Image
 1. Turn off the phone.   2. Connect the phone to your PC via the USB-C cable. 3. Immediately press and hold the the Volume Up + Bixby + Power keys.      Note: This has to be done immediately after connecting the phone to PC.  4. The recovery menu should appear now.

Why Buddhism is awesome

Image
This blog post is work in progress and is unedited.   In this blog post, I want to build an argument—that Buddhism is a great religion.  For me, Buddhism is a standard operating procedure, a set of instructions, the goal of which is a transformed state of mind that is made of a material that does not attach itself to phenomena. Ajahn Brahm calls it a Teflon mind.  For example, someone calls you a bitch or a buffoon. A person with a transformed mind would just let it pass by treating it as a mere sound (I'll tell you how this happens). A person with an untrained mind will ruminate over it for days, weeks, and months and suffer. Teflon is a material coated on non-stick pans.  How this happens Close your eyes for 5 seconds and experience what is going around. You will hear people moving things around, birds chirping; feel your breathing on your chest and nose and the cushion against your buttocks; or see various mental images from the past, future or a dreamy la-la land that does not