Skip to content

Latest commit

 

History

History
97 lines (43 loc) · 4.99 KB

2017-11-18.md

File metadata and controls

97 lines (43 loc) · 4.99 KB

Trending in Stackoverflow

See what the Stackoverflow community is most excited about today.

Date: 2017-11-18

  1. How do I delete (unset) an exported environment variable?

    tags: linux, environment-variables, unset

    967 votes, 3 answers and 547486 views

    \r\n Before installing gnuplot I set the environment variable GNUPLOT_DRIVER_DIR = /home/gnuplot/build/src.\n\nDuring the installation something went wrong; now I want to remove the GNUPLOT_DRIVER_DIR ...\r\n

  2. Start thread with member function

    tags: c++, multithreading, c++11

    186 votes, 5 answers and 186023 views

    \r\n I am trying to construct a std::thread with a member function that takes no arguments and returns void. I can't figure out any syntax that works - the compiler complains no matter what. What is the ...\r\n

  3. Why do we need middleware for async flow in Redux?

    tags: javascript, asynchronous, reactjs, redux, redux-thunk

    312 votes, 6 answers and 61761 views

    \r\n According to the docs, "Without middleware, Redux store only supports synchronous data flow". I don't understand why this is the case. Why can't the container component call the async API, and then ...\r\n

  4. How to auto-indent code in the Atom editor?

    tags: code-formatting, atom-editor, auto-indent

    274 votes, 8 answers and 220456 views

    \r\n How do you auto-indent your code in the Atom editor? In other editors you can usually select some code and auto-indent it. \n\nIs there a keyboard shortcut as well?\r\n

  5. In Java, difference between package private, public, protected, and private

    tags: java, private, public, protected, access-modifiers

    2147 votes, 25 answers and 1362630 views

    \r\n In Java, are there clear rules on when to use each of access modifiers, namely the default (package private), public, protected and private, while making class and interface and dealing with ...\r\n

  6. How to resolve “Error: bad index – Fatal: index file corrupt” when using Git

    tags: git, corruption

    424 votes, 11 answers and 127554 views

    \r\n After git init, I added and committed a few files, made some changes, added and committed. Set up the git daemon (running under Cygwin on WinXP) and cloned the repository once.\nNow, I get this error ...\r\n

  7. How can I get last characters of a string using JavaScript

    tags: javascript

    447 votes, 11 answers and 571100 views

    \r\n I have \n\nvar id="ctl03_Tabs1";\r\nUsing JavaScript, how might I get the last five characters or last character?\r\n

  8. How to get height of entire document with JavaScript?

    tags: javascript

    199 votes, 12 answers and 285712 views

    \r\n Some documents I can't get the height of the document (to position something absolutely at the very bottom). Additionally, a padding-bottom on seems to do nothing on these pages, but do on the pages ...\r\n

  9. How to do case insensitive search in Vim

    tags: search, vim, case-insensitive

    1207 votes, 12 answers and 299607 views

    \r\n I'd like to search for an upper case word, for example COPYRIGHT in a file. I tried performing a search like:\n\n/copyright/i # Doesn't work\r\nbut it doesn't work. I know that in Perl, if I give the ...\r\n

  10. List of Big-O for PHP functions

    tags: php, performance, algorithm, arrays, big-o

    255 votes, 3 answers and 48884 views

    \r\n After using PHP for a while now, I've noticed that not all PHP built in functions as fast as expected. Consider the below two possible implementations of a function that finds if a number is prime ...\r\n