Skip to main content

Posts

Showing posts from September, 2021

Ubuntu 20.04 : pytest outputs E ImportError: No module named urllib3, eventhough urllib3 is installed

  Your urllib3 and urllib3-1.25.8.egg-info files will be inside /usr/lib/python3/dist-packages/ You have to copy and paste them in /usr/local/lib/python2.7/dist-packages/ and /usr/local/lib/python2.7/site-packages/ The main problem is there is python2 and python3 installed in your computer and python2 is actively used by your system now.

Ubuntu 20.04 : pytest command gives this output -> E ImportError: No module named selenium, even after installing selenium

 Your selenium files will be inside /usr/local/lib/python3.8/dist-packages/ You have to copy and paste them in /usr/local/lib/python2.7/dist-packages/ and /usr/local/lib/python2.7/site-packages/ The main problem is there is python2 and python3 installed in your computer and python2 is actively used by your system now. And selenium is within python3 folder.

How to remember JavaScript's weird capital letters in function names?

 They are written in a style called "lower camel case". What is that? Camel case  (sometimes stylized as  camelCase  or  CamelCase , also known as  camel caps  or more formally as  medial capitals ) is the practice of writing phrases without spaces or punctuation, indicating the separation of words with a single  capitalized  letter, and the first word starting with either case. Common examples include " iPhone " and " eBay ". It is also sometimes used in online usernames such as "johnSmith", and to make multi-word  domain names  more legible, for example in promoting "EasyWidgetCompany.com". Camel case is often used as a  naming convention  in computer programming, but is an ambiguous definition due to the optional  capitalization  of the first letter. Some programming styles prefer camel case with the first letter capitalised, others not. [1] [2] [3]  For clarity, this article calls the two alternativ...

Headphone's microphone not working in Ubuntu 20.04/Fixing bluetooth hsp hfp profile on ubuntu 20.04

Open terminal. Type: sudo su - sudo add - apt - repository ppa : pipewire - debian / pipewire - upstream sudo apt update sudo apt install pipewire sudo apt install libspa - 0.2 - bluetooth sudo apt install pipewire - audio - client - libraries sudo apt upgrade exit systemctl -- user daemon - reload systemctl -- user -- now disable pulseaudio . service pulseaudio . socket systemctl -- user mask pulseaudio systemctl -- user -- now enable pipewire - media - session . service If you run into some issues in the last command, which I did too. The best way is to restart pipewire or reboot your system. systemctl -- user restart pipewire sudo reboot # make sure eveything is working pactl info After your call, switch 'input device' back to 'microphone-built-in-audio' in 'sound settings'. And change output device's configuration to 'High Fidelity Playback (A2DP Sink)'. Increase output volume in settings and increase headset volume from upper tray in desktop. S...