See what the Stackoverflow community is most excited about today.
Date: 2017-10-03
-
xcode-select active developer directory error
tags: xcode, osx, command-line-tool
278 votes, 10 answers and 141499 views
\r\n Saw the following error when running an npm install which required node-gyp.. but could be triggered by anything which requires xcode-select\r\n xcode-select: error: tool 'xcodebuild' requires Xcode, ...\r\n
-
Why is it faster to process a sorted array than an unsorted array?
tags: java, c++, performance, optimization, branch-prediction
19418 votes, 17 answers and 1091124 views
\r\n Here is a piece of C++ code that seems very peculiar. For some strange reason, sorting the data miraculously makes the code almost six times faster.\n\n#include \n#include \n#...\r\n
-
tags: html, css
666 votes, 15 answers and 865988 views
\r\n Is there any way to disable a link using CSS?\n\nI have a class called current-page and want links with this class to be disabled so that no action occurs when they are clicked.\r\n
-
Remove item from array by value
tags: javascript, arrays
512 votes, 26 answers and 528444 views
\r\n Is there a method to be able to remove an item from an JavaScript array like from this array:\n\nvar ary = ['three', 'seven', 'eleven'];\r\nAnd I do an function like whereas:\n\nremoveItem('seven', ary);\r\nI'...\r\n
-
Command Line Tools not working - OS X El Capitan/ macOS-sierra
tags: osx, osx-elcapitan, macos-sierra
380 votes, 2 answers and 139612 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
-
mongodb Mongod complains that there is no /data/db folder
tags: osx, mongodb
278 votes, 14 answers and 204537 views
\r\n I am using my new mac for the first time today. I am following the get started guide on the mongodb.org up until the step where one creates the /data/db directory. btw, I used the homebrew route. \n\nSo ...\r\n
-
How to append list to second list (concatenate lists)
tags: python, list
1281 votes, 20 answers and 1008946 views
\r\n How do I concatenate two lists in Python?\n\nExample:\n\nlistone = [1, 2, 3]\nlisttwo = [4, 5, 6]\r\nExpected outcome:\n\njoinedlist == [1, 2, 3, 4, 5, 6]\r\n
-
tags: python, list
1258 votes, 7 answers and 1884723 views
\r\n items = []\nitems.append("apple")\nitems.append("orange")\nitems.append("banana")\n\n# FAKE METHOD::\nitems.amount() # Should return 3\r\nHow do I get the number of elements in the list?\r\n
-
AngularJS with Django - Conflicting template tags
tags: javascript, django, django-templates, angularjs
278 votes, 13 answers and 68225 views
\r\n I want to use AngularJS with Django however they both use {{ }} as their template tags. Is there an easy way to change one of the two to use some other custom templating tag?\r\n
-
What does the term “porcelain” mean in Git?
tags: git
278 votes, 7 answers and 40827 views
\r\n The term "porcelain" appears occasionally in the Git documentation. What does it mean?\r\n