See what the Stackoverflow community is most excited about today.
Date: 2017-12-19
-
How do I delete (unset) an exported environment variable?
tags: linux, environment-variables, unset
967 votes, 3 answers and 547486 views
\r\n Before installing gnuplot I set the environment variable GNUPLOT_DRIVER_DIR = /home/gnuplot/build/src.\n\nDuring the installation something went wrong; now I want to remove the GNUPLOT_DRIVER_DIR ...\r\n
-
Less Aggressive Compilation with CSS3 calc
tags: css, css3, compilation, less, css-calc
269 votes, 4 answers and 85396 views
\r\n The Less compilers that I'm using (OrangeBits and dotless 1.3.0.5) are aggressively translating \n\nbody { width: calc(100% - 250px - 1.5em); }\r\ninto\n\nbody { width: calc(-151.5%); }\r\nWhich is obviously ...\r\n
-
There is no tracking information for the current branch
tags: git, github, git-pull
235 votes, 4 answers and 130719 views
\r\n I've been using github from a relatively short period, and I've always used the client to perform commits and pulls. I decided to try it from the git bash yesterday, and I successfully created a new ...\r\n
-
How can Python iterate over dictionaries with 'for' loops using only the dict keys?
tags: python, python-2.7, dictionary, key, iteration
1657 votes, 12 answers and 2233477 views
\r\n I am a bit puzzled by the following code:\n\nd = {'x': 1, 'y': 2, 'z': 3} \nfor key in d:\n print key, 'corresponds to', d[key]\r\nWhat I don't understand is the key portion. How does Python recognize ...\r\n
-
How to config vscode to open files always in a new tab?
tags: visual-studio-code
242 votes, 6 answers and 44597 views
\r\n I am using vscode 1.3.1 with the newly introduced tabs. When I click on files, the first file will open in a tab. If I do not make any changes to this file, the second clicked file will open in the ...\r\n
-
IntelliJ: Never use wildcard imports
tags: settings, intellij-idea
340 votes, 6 answers and 88409 views
\r\n Is there a way to tell IntelliJ never to use wildcard imports?\nUnder 'Settings > Code Style > Imports', I can see that you can specify the 'class count' prior to IntelliJ using wildcard imports. ...\r\n
-
Can I get JSON to load into an OrderedDict in Python?
tags: python, json, load, ordereddictionary
290 votes, 6 answers and 73710 views
\r\n Ok so I can use an OrderedDict in json.dump. That is, an OrderedDict can be used as an input to JSON.\n\nBut can it be used as an output? If so how? In my case I'd like to load into an OrderedDict so I ...\r\n
-
How can I remove (chomp) a trailing newline in Python?
tags: python, newline, trailing
1204 votes, 25 answers and 1110910 views
\r\n What is the Python equivalent of Perl's chomp function, which removes the last character of a string if it is a newline?\r\n
-
How to change css display none or block property using Jquery?
tags: jquery, jquery-selectors
296 votes, 10 answers and 813424 views
\r\n How to change css display none or block property using Jquery?\r\n
-
getWidth() and getHeight() of View returns 0
tags: java, android, android-layout, getter
330 votes, 8 answers and 216966 views
\r\n I am creating all of the elements in my android project dynamically. I am trying to get the width and height of a button so that I can rotate that button around. I am just trying to learn how to work ...\r\n