This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.reddit.com/r/linux/comments/byugan/how_to_install_japanese_input_in_linux_tutorial/ | |
== | |
How to install Japanese Input in Linux (tutorial) | |
Introduction: | |
Hello, my name is Eitan. I am new to linux but i am learning rapidly. | |
I want to contribute to the community by writing a tutorials for things that might sound easy and unnecessary but for some it might help a lot. if you see that i wrote something wrong please be sure that your write in the comments so i will fix myself. | |
(This tutorial was tested on debian based oses) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.discoverbits.in/864/error-launchpadlib-requires-testresources-which-installed | |
== | |
ERROR: launchpadlib 1.10.6 requires testresources, which is not installed. | |
+2 votes | |
asked Oct 6, 2019 in Programming Languages by pythonuser (11.5k points) | |
recategorized Oct 6, 2019 by pythonuser | |
I am getting the following error when I try to upgrade setuptools: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
collections.defaultdict(int) | |
# good | |
collections.defaultdict(lambda: 0) | |
# good | |
collections.defaultdict(lambda x:x**2) | |
# TypeError: <lambda>() missing 1 required positional argument: 'x' | |
# it seems program expects function without arguments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt has its spyder3 (3.2.6) | |
let's install miniconda | |
download here https://docs.conda.io/en/latest/miniconda.html | |
run | |
$ sh Miniconda3-latest-Linux-x86_64.sh | |
use miniconda to install spyder4 | |
$ conda install spyder | |
so I can have them both |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/59225879/how-to-hide-hover-tooltips-on-spyder-4 | |
not sure where to ask: | |
is there a way to not have the help tooltip/popup/hover window opening in spyder? | |
since updating to 4.0 the window does not close when you change between windows: | |
https://stackoverflow.com/questions/59225879/how-to-hide-hover-tooltips-on-spyder-4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/54429210/how-do-i-prevent-conda-from-activating-the-base-environment-by-default | |
== | |
I recently installed anaconda2 on my Mac. By default Conda is configured to activate the base environment when I open a fresh terminal session. | |
I want access to the Conda commands (i.e. I want the path to Conda added to my $PATH which Conda does when initialised so that's fine). | |
But I don't ordinarily program in python, and I don't want Conda to activate an environment by default. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import functools | |
@functools.lru_cache(None) | |
def f(x): | |
print('f') | |
return 2 | |
def g(x): | |
print('g') | |
return 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/uxsoft/AppleWirelessKeyboard/releases/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/38016277/git-opening-and-editing-files-from-other-branches | |
There two ways you can do this: | |
Commit the changes in alt branch and then do git checkout master. | |
If you do not want to commit then do git stash in alt branch and then go to master by doing this: git checkout master. Later once you have done the testing in master, checkout to alt and do git stash apply(this would reapply the changes to alt branch). | |
Each time you do git stash it creates a list of changes, which can be checked by git stash list. Each item will have an index number to it starting from 0. So if you stash more than once you can reapply a particular stash like this: git stash apply @stash{<index_no>}. |