See what the Stackoverflow community is most excited about today.
Date: 2017-10-15
-
OrderBy descending in Lambda expression?
tags: linq, lambda
221 votes, 5 answers and 253892 views
\r\n I know in normal Linq grammar, orderby xxx descending is very easy, but how do I do this in Lambda expression?\r\n
-
What's “tools:context” in Android layout files?
tags: android, xml, android-layout, android-context, android-tools-namespace
756 votes, 6 answers and 171918 views
\r\n Starting with a recent new version of ADT, I've noticed this new attribute on the layout XML files, for example:\n\n<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"\n xmlns:...\r\n
-
Uninstall / remove a Homebrew package including all its dependencies
tags: osx, homebrew
212 votes, 7 answers and 258078 views
\r\n I have a Homebrew package that I wish to uninstall / remove with all its dependencies, skipping packages whom other packages depend upon.\n\ne.g. Uninstall package a which depends on packages b & c, ...\r\n
-
Difference between append vs. extend list methods in Python
tags: python, list, data-structures, append, extend
2203 votes, 19 answers and 1760989 views
\r\n What's the difference between the list methods append() and extend()?\r\n
-
iTerm 2: How to set keyboard shortcuts to jump to beginning/end of line?
tags: osx, bash, iterm, iterm2
217 votes, 11 answers and 65105 views
\r\n I can see that Ctrl+left/right jumps to the beginning/end of line. How to change this to Cmd+left/right arrow?\n\nIn order to get Alt+left/right arrow working correctly for word jumping follow this ...\r\n
-
How to check if object property exists with a variable holding the property name?
tags: javascript, object
368 votes, 9 answers and 321043 views
\r\n I am checking for the existence of an object property with a variable holding the property name in question. \n\nvar myObj;\nmyObj.prop = "exists";\nvar myProp = "p"+"r"+"o"+"p";\n\nif(myObj.myProp){\n ...\r\n
-
How to use DbContext.Database.SqlQuery(sql, params) with stored procedure? EF Code First CTP5
tags: c#, sql, ado.net, linq-to-entities, entity-framework-ctp5
189 votes, 9 answers and 218749 views
\r\n I have a stored procedure that has three parameters and I've been trying to use the following to return the results:\n\ncontext.Database.SqlQuery("mySpName", param1, param2, param3);\r...\r\n
-
Maven is not working in Java 8 when Javadoc tags are incomplete
tags: java, maven, migration, java-8, javadoc
234 votes, 11 answers and 94167 views
\r\n Since I use Maven I have been able to build and install in my local repository projects that have incomplete Javadoc tags (for example, a missing parameter). \n\nHowever, since I migrated to Java 8 (1.8....\r\n
-
Hibernate hbm2ddl.auto possible values and what they do?
tags: java, hibernate, hbm2ddl
797 votes, 13 answers and 710379 views
\r\n I really want to know more about the update, export and the values that could be given to hibernate.hbm2ddl.auto\nI need to know when to use the update and when not? And what is the alternative?\n\nThese ...\r\n
-
Cannot insert explicit value for identity column in table 'table' when IDENTITY_INSERT is set to OFF
tags: sql, sql-server
190 votes, 13 answers and 394324 views
\r\n I have the below error when I execute the following script. What is the error about, and how it can be resolved?\n\nInsert table(OperationID,OpDescription,FilterID)\nvalues (20,'Hierachy Update',1)\r\n...\r\n