Skip to content

Latest commit

 

History

History
97 lines (43 loc) · 5.16 KB

2017-12-25.md

File metadata and controls

97 lines (43 loc) · 5.16 KB

Trending in Stackoverflow

See what the Stackoverflow community is most excited about today.

Date: 2017-12-25

  1. 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

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

  7. 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

  8. Scalaz iteratees: “Lifting” EnumeratorT to match IterateeT for a “bigger” monad

    tags:

    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

  9. 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

  10. 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