See what the Stackoverflow community is most excited about today.
Date: 2017-11-28
-
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
-
Parallel.ForEach vs Task.Factory.StartNew
tags: c#, c#-4.0, task-parallel-library, parallel-extensions
213 votes, 4 answers and 97588 views
\r\n What is the difference between the below code snippets? Won't both be using threadpool threads?\n\nFor instance if I want to call a function for each item in a collection,\n\nParallel.ForEach(...\r\n
-
Notifications for new Github project releases?
tags: github
207 votes, 5 answers and 20393 views
\r\n I'm using a library from a Github project. Is there some way to set up a notification for new project releases?\n\nFor example, I want to know when a new release appears here\n\nI know I can be notified ...\r\n
-
What is the maximum recursion depth in Python, and how to increase it?
tags: python, recursion
183 votes, 11 answers and 185524 views
\r\n I have this tail recursive function here:\n\ndef fib(n, sum):\n if n < 1:\n return sum\n else:\n return fib(n-1, sum+n)\n\nc = 998\nprint(fib(c, 0))\r\nIt works up to n=997, then it just ...\r\n
-
System.currentTimeMillis vs System.nanoTime
tags: java, timer, time-precision
294 votes, 11 answers and 285741 views
\r\n Accuracy Vs. Precision\n\nWhat I would like to know is whether I should use System.currentTimeMillis() or System.nanoTime() when updating my object's positions in my game? Their change in movement is ...\r\n
-
Difference between FragmentPagerAdapter and FragmentStatePagerAdapter
tags: android, android-fragments, android-viewpager, fragmentpageradapter, fragmentstatepageradapter
257 votes, 6 answers and 72131 views
\r\n What is the difference between FragmentPagerAdapter and FragmentStatePagerAdapter?\n\nAbout FragmentPagerAdapter Google's guide says:\r\n This version of the pager is best for use when there are a ...\r\n
-
What is the difference between SQL, PL-SQL and T-SQL?
tags: sql, tsql, plsql
255 votes, 6 answers and 327783 views
\r\n What is the difference between SQL, PL-SQL and T-SQL?\n\nCan anyone explain what the differences between these three are, and provide scenarios where each would be relevantly used?\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
-
Command Line Tools not working - OS X El Capitan/macOS Sierra/macOS High Sierra
tags: osx, macos-sierra, osx-elcapitan, macos-high-sierra
413 votes, 7 answers and 151534 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
-
What is the difference between --save and --save-dev?
tags: save, package, npm
277 votes, 7 answers and 67027 views
\r\n What is the difference between: \r\n npm install [package_name] --save\r\nand \r\n npm install [package_name] --save-dev\r\nWhat does this mean?\r\n