Skip to content

Latest commit

 

History

History
97 lines (43 loc) · 5 KB

2018-01-07.md

File metadata and controls

97 lines (43 loc) · 5 KB

Trending in Stackoverflow

See what the Stackoverflow community is most excited about today.

Date: 2018-01-07

  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. Using async/await for multiple tasks

    tags: c#, .net, task-parallel-library, async-await, c#-5.0

    267 votes, 4 answers and 132657 views

    \r\n I'm using an API client that is completely asynchrounous, that is, each operation either returns Task or Task, e.g:\n\nstatic async Task DoSomething(int siteId, int postId, IBlogClient client)\n{...\r\n

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

  4. Python: Find in list

    tags: python, find

    312 votes, 5 answers and 926553 views

    \r\n I have come across this delightful:\n\nitem = someSortOfSelection()\nif item in myList:\n doMySpecialFunction(item)\r\nbut sometimes it does not work with all my items, as if they weren't recognized in ...\r\n

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

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

  7. How to ignore a property in class if null, using json.net

    tags: c#, json.net

    271 votes, 9 answers and 160623 views

    \r\n I am using Json.NET to serialize a class to JSON.\n\nI have the class like this:\n\nclass Test1\n{\n [JsonProperty("id")]\n public string ID { get; set; }\n [JsonProperty("label")]\n public string ...\r\n

  8. What is the difference between Bower and npm?

    tags: javascript, npm, bower

    1531 votes, 9 answers and 273361 views

    \r\n What is the fundamental difference between bower and npm? Just want something plain and simple. I've seen some of my colleagues use bower and npm interchangeably in their projects.\r\n

  9. CSS background image to fit width, height should auto-scale in proportion

    tags: html, css

    229 votes, 9 answers and 553208 views

    \r\n I have\n\nbody {\n background: url(images/background.svg);\n}\r\nThe desired effect is that this background image will have width equal to that of the page, height changing to maintain the proportion. e....\r\n

  10. What are the uses of the exec command in shell scripts?

    tags: shell, unix, exec

    182 votes, 2 answers and 204064 views

    \r\n Can anyone explain what are the uses of the exec command in shell scripting with simple examples?\r\n