See what the Stackoverflow community is most excited about today.
Date: 2018-01-08
-
What is the “Upgrade-Insecure-Requests” HTTP header?
tags: google-chrome, http, http-headers, upgrade-insecure-requests
188 votes, 2 answers and 85296 views
\r\n I made a POST request to a HTTP (non-HTTPS) site, inspected the request in Chrome's Developer Tools, and found that it added its own header before sending it to the server:\n\nUpgrade-Insecure-Requests: ...\r\n
-
What's the difference between implementation and compile in gradle
tags: android, android-studio, gradle, build.gradle, gradle-plugin
230 votes, 3 answers and 34213 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
-
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
-
tags: asp.net, path, directory, mapping, filesystems
406 votes, 3 answers and 401355 views
\r\n Can anyone explain the difference between Server.MapPath("."), Server.MapPath("~"), Server.MapPath(@"") and Server.MapPath("/")?\r\n
-
tags: python-3.x
280 votes, 4 answers and 78582 views
\r\n I am still quite new to programming, and I was googling this question and I do not seem to get a straight answer. \n\nI googled what a cache was and I understand it is an encrypted file of similar files ...\r\n
-
Using async/await for multiple tasks
tags: c#, .net, task-parallel-library, async-await, c#-5.0
268 votes, 5 answers and 132781 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
-
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
-
How to get the focused element with jQuery?
tags: javascript, jquery, cursor, element, caret
272 votes, 5 answers and 238657 views
\r\n Using jQuery, how can I get the input element that has the caret's (cursor's) focus? \n\nOr in other words, how to determine if an input has the caret's focus?\r\n
-
tags: mysql, database, table-rename
185 votes, 12 answers and 256295 views
\r\n Renaming a table is not working in MySQL\n\nRENAME TABLE group TO member;\r\nThe error message is\n\n#1064 - You have an error in your SQL syntax; check the manual that corresponds\n to your MySQL ...\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