See what the Stackoverflow community is most excited about today.
Date: 2017-12-14
-
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
-
Turn a List of Lists into a List Using Lambdas
tags: java, function, collections, lambda, java-8
203 votes, 4 answers and 87853 views
\r\n If I have a
List<List<Object>>
can I turn it into aList<Object>
that contains all the objects using continuous (not breaking the invocation sequence) invocations of lambdas?\r\n -
How do I resolve git saying “Commit your changes or stash them before you can merge”?
tags: git
404 votes, 5 answers and 458607 views
\r\n I made some updates on my local machine, pushed them to a remote repository, and now I'm trying to pull the changes to the server and I get the message;\n\nerror: Your local changes to the following ...\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
-
PHP code is not being executed, instead code shows on the page
tags: php, apache
186 votes, 18 answers and 348373 views
\r\n I'm trying to execute some PHP code on a project (using Dreamweaver) but the code isn't being run.\n\nWhen I check the source code, the PHP code appears as HTML tags (I can see it in the source code). ...\r\n
-
Homebrew: Could not symlink, /usr/local/bin is not writable
tags: homebrew
188 votes, 9 answers and 112797 views
\r\n While installing tig, HomeBrew is displaying the following issues while installing a dependency:\n\nError: The
brew link
step did not complete successfully\nThe formula built, but is not symlinked into ...\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
-
What's the difference between implementation and compile in gradle
tags: android, android-studio, gradle, build.gradle, gradle-plugin
188 votes, 2 answers and 27453 views
\r\n After updating to Android Studio 3.0 and creating a new project, I noticed that in build.gradle there is a new way to add new dependencies instead of compile there is implementation and instead of ...\r\n
-
node how to create a directory if doesn't exist?
tags: node.js
232 votes, 9 answers and 165107 views
\r\n Is this the right way to create a directory if it doesn't exist.\nIt should have full permission for the script and readable by others.\n\nvar dir = __dirname + '/upload';\nif (!path.existsSync(dir)) {\n ...\r\n
-
HTML table with 100% width, with vertical scroll inside tbody
tags: html, css, css3, vertical-scrolling
265 votes, 9 answers and 469535 views
\r\n How can I set for
100% width and put only inside vertical scroll for some height?\r\nHTML:\n\n \n\n\n \n <th&...\r\nHead 1