See what the Stackoverflow community is most excited about today.
Date: 2017-11-20
-
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
-
tags: android, android-resources, android-attributes
376 votes, 4 answers and 178267 views
\r\n I need to implement my own attributes like in com.android.R.attr\n\nFound nothing in official documentation so I need information about how to define these attrs and how to use them from my code.\r\n
-
Command Line Tools not working - OS X El Capitan/macOS Sierra/macOS High Sierra
tags: osx, macos-sierra, osx-elcapitan, macos-high-sierra
405 votes, 6 answers and 149032 views
\r\n I just upgraded from Yosemite to El Capitan (and replicated the problem upgrading from El Capitan to Sierra), and when I try to type for example git status inside a terminal, I get the following error:...\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
-
Clearing coverage highlighting in Eclipse
tags: eclipse, code-coverage, cobertura, emma
243 votes, 7 answers and 59738 views
\r\n After running coverage reports in Eclipse (using cobertura or an EMMA plugin), my source code files get highlighted in green, red and yellow depending on which lines of code were covered by tests.\n\n...\r\n
-
ImportError: Cannot import name X
tags: python, importerror, python-import
232 votes, 7 answers and 323768 views
\r\n I have four different files named: main, vector, entity, and physics. I will not post all the code, mostly just the imports, because I think that's where the error is. But if you want, I can post more....\r\n
-
Git refusing to merge unrelated histories
tags: git, rebase
541 votes, 8 answers and 318152 views
\r\n During git rebase origin/development following error message is shown from git:\n\nfatal: refusing to merge unrelated histories\nError redoing merge 1234deadbeef1234deadbeef\r\nMy git version is 2.9.0. ...\r\n
-
In a Git repository, how to properly rename a directory?
tags: git, directory, rename
300 votes, 8 answers and 138109 views
\r\n In a Git repository, how to properly rename a directory? I think it should work to copy the directory to be renamed to a new directory with desired name, and delete the old directory, and git add, ...\r\n
-
Docker - Enter Running Container with new TTY
tags: docker, tty
308 votes, 8 answers and 182723 views
\r\n I have a container that is running the Apache service in the foreground. I would like to be able to access the container from another shell in order to "poke around" inside it and examine the files. ...\r\n
-
Android Studio: how to remove/update the “Created by” comment added to all new classes?
tags: android-studio, intellij-idea
207 votes, 8 answers and 56534 views
\r\n By default Android Studio automatically adds a header comment to all new classes, e.g.\n\n/**\n * Created by Dan on 11/20/13.\n */\r\nWhere is the setting to customize or remove it?\r\n