Skip to content

Latest commit

 

History

History
97 lines (43 loc) · 4.76 KB

2017-10-02.md

File metadata and controls

97 lines (43 loc) · 4.76 KB

Trending in Stackoverflow

See what the Stackoverflow community is most excited about today.

Date: 2017-10-02

  1. 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

  2. Disable link using css

    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

  3. 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

  4. 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

  5. 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

  6. 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

  7. How to get the size of a list

    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

  8. What is a 'Closure'?

    tags: functional-programming, computer-science, terminology, glossary

    278 votes, 15 answers and 70861 views

    \r\n I asked a question about Currying and closures were mentioned.\nWhat is a closure? How does it relate to currying?\r\n

  9. 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

  10. Why is it faster to process a sorted array than an unsorted array?

    tags: java, c++, performance, optimization, branch-prediction

    19412 votes, 16 answers and 1090497 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