Skip to content

Latest commit

 

History

History
97 lines (43 loc) · 4.82 KB

File metadata and controls

97 lines (43 loc) · 4.82 KB

Trending in Stackoverflow

See what the Stackoverflow community is most excited about today.

Date: 2017-10-20

  1. What's the use for “stdafx.h” in Visual Studio?

    tags: visual-studio, visual-studio-2010, visual-c++, cross-platform, stdafx.h

    376 votes, 5 answers and 299276 views

    \r\n The stdafx.h is automatically generated when I start a project in VS2010.\nI need to make cross-platform C++ library, so I don't/can't use this header file.\n\nWhat is this for?\nIs it OK that I just ...\r\n

  2. Duplicating a MySQL table, indexes and data

    tags: mysql

    389 votes, 7 answers and 255325 views

    \r\n How do I copy / clone / duplicate the data, structure and indexes of a MySQL table to a new one?\n\nThis is what I've found so far.\n\nThis will copy the data and the structure, but not the indexes:\n\n...\r\n

  3. Key existence check in HashMap

    tags: java, hashmap

    208 votes, 9 answers and 281372 views

    \r\n Is checking for key existence in HashMap always necessary?\n\nI have a HashMap with say a 1000 entries and I am looking at improving the efficiency.\nIf the HashMap is being accessed very frequently, ...\r\n

  4. “INSERT IGNORE” vs “INSERT … ON DUPLICATE KEY UPDATE”

    tags: mysql, insert

    665 votes, 9 answers and 654976 views

    \r\n While executing an INSERT statement with many rows, I want to skip duplicate entries that would otherwise cause failure. After some research, my options appear to be the use of either: \r\nON DUPLICATE ...\r\n

  5. How to fix homebrew permissions?

    tags: osx, homebrew, libjpeg

    304 votes, 11 answers and 150179 views

    \r\n I have uninstalled and installed Homebrew 3 times now because it seems to never allow me to install anything as it denies me permissions at the end of most installations.\n\nAs an example I will post ...\r\n

  6. How to list only the file names that changed between two commits?

    tags: git, git-diff, git-show

    1270 votes, 10 answers and 429843 views

    \r\n I have a bunch of commits in the repo. I want to see a list of files changed between two commits - from SHA1 to SHA2.\n\nWhat command should I use?\r\n

  7. node.js require() cache - possible to invalidate?

    tags: node.js

    224 votes, 13 answers and 85603 views

    \r\n From the node.js documentation:\r\n Modules are cached after the first time they are loaded. This means (among other things) that every call to require('foo') will get exactly the same object returned, ...\r\n

  8. How does database indexing work?

    tags: sql, database, performance, indexing, database-indexes

    1546 votes, 11 answers and 556572 views

    \r\n Given that indexing is so important as your data set increases in size, can someone explain how does indexing work at a database-agnostic level?\n\nFor information on queries to index a field, check out ...\r\n

  9. Java 8 List into Map<K, V>

    tags: java, lambda, java-8, java-stream

    507 votes, 14 answers and 296720 views

    \r\n I want to translate a List of objects into a Map using Java 8's streams and lambdas.\n\nThis is how I would write it in Java 7 and below.\n\nprivate Map<String, Choice> nameMap(List ...\r\n

  10. How to clone git repository with specific revision/changeset?

    tags: git, git-clone, revision

    224 votes, 11 answers and 268810 views

    \r\n How can I clone git repository with specific revision, something like I usually do in Mercurial:\n\nhg clone -r 3 /path/to/repository\r\n