See what the Stackoverflow community is most excited about today.
Date: 2017-09-30
-
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
-
How to import the class within the same directory or sub directory?
tags: python, python-import
278 votes, 7 answers and 354582 views
\r\n I have a directory that stores all the .py files.\n\nbin/\n main.py\n user.py # where class User resides\n dir.py # where class Dir resides\r\nI want to use classes from user.py and dir.py in main.py.\n...\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 check version of python modules?
tags: python
278 votes, 9 answers and 280416 views
\r\n I just installed the python modules: construct and statlib with setuptools like this:\n\n# Install setuptools to be able to download the following\nsudo apt-get install python-setuptools\n\n# Install ...\r\n
-
How to study design patterns? [closed]
tags: design-patterns
278 votes, 23 answers and 105879 views
\r\n I have read around 4-5 books on design patterns, but still I don't feel I have come closer to intermediate level in design patterns? \n\nHow should I go studying design patterns?\n\nIs there any good ...\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
-
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