See what the Stackoverflow community is most excited about today.
Date: 2017-12-25
-
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
-
What is the difference between active and passive FTP?
tags: ftp
241 votes, 4 answers and 252729 views
\r\n Will anyone please tell me what the difference between active and passive FTP? Which one is preferable?\r\n
-
What does “SyntaxError: Missing parentheses in call to 'print'” mean in Python?
tags: python, python-3.x
287 votes, 4 answers and 471978 views
\r\n When I try to use a print statement in Python, it gives me this error:\n\n>>> print "Hello world!"\n File "", line 1\n print "Hello world!"\n ^\nSyntaxError: ...\r\n
-
How to “fadeOut” & “remove” a div in jQuery?
tags: javascript, jquery
184 votes, 6 answers and 131567 views
\r\n I'm trying to give fadeout effect to a div & delete that div(id = "notification"), when an image is clicked.\n\nThis is how I'm doing that:\n\n<a onclick="$("#notification").fadeOut(300,function() {...\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
-
SQL query to select dates between two dates
tags: sql, sql-server, tsql, datetime, sql-server-2005
184 votes, 19 answers and 1195748 views
\r\n I have a start_date and end_date. I want to get the list of dates in between these two dates. Can anyone help me pointing the mistake in my query.\n\nselect Date,TotalAllowance \nfrom Calculation \nwhere ...\r\n
-
Plot logarithmic axes with matplotlib in python
tags: python, matplotlib, scale, logarithm
238 votes, 6 answers and 365127 views
\r\n I want to plot a graph with one logarithmic axis using matplotlib. \n\nI've been reading the docs, but can't figure out the syntax. I know that it's probably something simple like 'scale=linear' in the ...\r\n
-
Scalaz iteratees: “Lifting”
EnumeratorT
to matchIterateeT
for a “bigger” monadtags:
197 votes, 0 answers and 3061 views
\r\n If I have an EnumeratorT and a corresponding IterateeT I can run them together:\n\nval en: EnumeratorT[String, Task] = EnumeratorT.enumList(List("a", "b", "c"))\nval it: IterateeT[String, Task, Int] = ...\r\n
-
Angular HTTP GET with TypeScript error http.get(…).map is not a function in [null]
tags: angular, rxjs
220 votes, 8 answers and 128203 views
\r\n I have a problem with HTTP in Angular. \n\nI just want to GET a JSON list and show it in the view. \n\nService class\n\nimport {Injectable} from "angular2/core";\nimport {Hall} from "./hall";\nimport {Http} ...\r\n
-
How to iterate through two lists in parallel?
tags: python, iterator
442 votes, 7 answers and 309011 views
\r\n I have two iterables in Python, and I want to go over them in pairs:\n\nfoo = (1, 2, 3)\nbar = (4, 5, 6)\n\nfor (f, b) in some_iterator(foo, bar):\n print "f: ", f, "; b: ", b\r\nIt should result in:\n\nf: 1;...\r\n