See what the Stackoverflow community is most excited about today.
Date: 2017-10-11
-
Command Line Tools not working - OS X El Capitan/macOS Sierra/macOS High Sierra
tags: osx, macos-sierra, osx-elcapitan, macos-high-sierra
384 votes, 3 answers and 141598 views
\r\n I just upgraded from Yosemite to El Capitan (and replicated the problem upgrading from El Capitan to Sierra), and when I try to type for example git status inside a terminal, I get the following error:...\r\n
-
Why is my program slow when looping over exactly 8192 elements?
tags: c++, performance, memory-management, gcc
644 votes, 3 answers and 70693 views
\r\n Here is the extract from the program in question. The matrix img[][] has the size SIZE×SIZE, and is initialized at:\n\nimg[j][i] = 2 * j + i\n\nThen, you make a matrix res[][], and each field in here is ...\r\n
-
Adding parameter to ng-click function inside ng-repeat doesn't seem to work
tags: angularjs, ng-repeat, angularjs-ng-click
335 votes, 6 answers and 344178 views
\r\n I have a simple loop with ng-repeat like this:\n\n
- \n
\r\n...\r\n{{task.name}}\n remove\n
- \n
-
How do I create a category in Xcode 6 or higher?
tags: ios, objective-c, category, xcode6
306 votes, 8 answers and 74607 views
\r\n I want to create a category on UIColor in my app using Xcode 6. But the thing is that in Xcode 6 there is no Objective-C category file template. \n\nIs there any option to create a category in Xcode 6?\r\n
-
What is a NullPointerException, and how do I fix it?
tags: java, nullpointerexception
211 votes, 12 answers and 1518444 views
\r\n What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?\n\nWhat methods/tools can be used to determine the cause so that you stop the exception from causing the program ...\r\n
-
how to uninstall npm modules in node js?
tags: node.js, npm
393 votes, 11 answers and 347743 views
\r\n As commonly known, any npm module can be installed by running a simple command: npm install <module_name>.\n\nI have installed a few modules that I do not use anymore and I just want to get them ...\r\n
-
Is there a way to collapse all code blocks in Eclipse?
tags: eclipse, ide
452 votes, 11 answers and 154080 views
\r\n Eclipse has that "+/-" on the left to expand and collapse blocks of code.\n\nI've got tens of thousands of lines to go through and would really like to just collapse everything, and selectively expand ...\r\n
-
How to sort (list/tuple) of lists/tuples?
tags: python, list, sorting, tuples
342 votes, 11 answers and 337231 views
\r\n I have some data either in list contains lists, or list contains tuples.\n\ndata = [[1,2,3], [4,5,6], [7,8,9]]\ndata = [(1,2,3), (4,5,6), (7,8,9)]\r\nAnd I want to sort by the 2nd element in the subset. ...\r\n
-
SQL query to select dates between two dates
tags: sql, sql-server, tsql, datetime, sql-server-2005
178 votes, 18 answers and 1145542 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
-
Java - Convert integer to string [duplicate]
tags: java, string, numbers, int
267 votes, 7 answers and 1120393 views
\r\n Given a number:\n\nint number = 1234;\r\nWhich would be the "best" way to convert this to a string:\n\nString stringNumber = "1234";\r\nI have tried searching (googling) for an answer but no many seemed "...\r\n