See what the Stackoverflow community is most excited about today.
Date: 2017-12-26
-
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's the difference between filter and filter_by in SQLAlchemy?
tags: python, sqlalchemy
185 votes, 5 answers and 67628 views
\r\n Could anyone explain the difference between filter and filter_by functions in SQLAlchemy? I am confused and can't really see the difference. Which one should I be using?\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
-
Expanding tuples into arguments
tags: python, tuples, argument-passing
240 votes, 5 answers and 112798 views
\r\n Is there a way to expand a Python tuple into a function - as actual parameters?\n\nFor example, here expand() does the magic:\n\ntuple = (1, "foo", "bar")\n\ndef myfun(number, str1, str2):\n return (...\r\n
-
tags: ajax, http, websocket, comet
214 votes, 5 answers and 90150 views
\r\n There are many blogs and discussions about websocket and HTTP, and many developers and sites strongly advocate websockets, but i still can not understand why.\n\nfor example (arguments of websocket ...\r\n
-
What is the difference between .NET Core and .NET Standard Class Library project types?
tags: .net, .net-core, class-library, .net-standard
241 votes, 6 answers and 42836 views
\r\n In Visual Studio, there are at least 3 different types of class library you can create:\r\nClass Library (.NET Framework)\nClass Library (.NET Standard)\nClass Library (.NET Core)\r\nWhile the first is what ...\r\n
-
Should we use RecyclerView to replace ListView?
tags: android, listview, recyclerview
201 votes, 6 answers and 59397 views
\r\n Android Docs say:\r\n The RecyclerView widget is a more advanced and flexible version of\n ListView. This widget is a container for displaying large data sets\n that can be scrolled very efficiently by ...\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
-
When should I use Arrow functions in ECMAScript 6?
tags: javascript, lambda, ecmascript-6, ecmascript-harmony, arrow-functions
289 votes, 8 answers and 50527 views
\r\n The question is directed at people who have thought about code style in the context of the upcoming ECMAScript 6 (Harmony) and who have already worked with the language.\n\nWith () => {} and function ...\r\n
-
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