See what the Stackoverflow community is most excited about today.
Date: 2017-10-26
-
Read environment variables in Node.js
tags: javascript, node.js, environment-variables
893 votes, 4 answers and 366935 views
\r\n Is there a way I can read environment variables in Node.js code?\n\nLike for example Python's os.environ['HOME'].\r\n
-
What is the difference between display: inline and display: inline-block?
tags: css, display
453 votes, 5 answers and 126928 views
\r\n What exactly is the difference between the inline and inline-block values of CSS display?\r\n
-
How to completely uninstall Android Studio?
tags: osx, android-studio, uninstall
269 votes, 6 answers and 163022 views
\r\n I recently downloaded Android Studio on my Macbook Pro and I messed up with it every time I open it. It gives me plugin errors and several other errors. I need to uninstall it completely from my mac. ...\r\n
-
Shall we always use [unowned self] inside closure in Swift
tags: ios, swift, automatic-ref-counting
291 votes, 6 answers and 81571 views
\r\n In WWDC 2014 session 403 Intermediate Swift and transcript, there was the following slide\r\nThe speaker said in that case, if we don't use [unowned self] there, it will be a memory leak. Does it mean ...\r\n
-
Failed to resolve: com.google.firebase:firebase-core:9.0.0
tags: android, firebase
208 votes, 7 answers and 105532 views
\r\n I get the following error while upgrading a firebase project from old domain to new google firebase domain.\r\n Failed to resolve: com.google.firebase:firebase-core:9.0.0\r\nI followed the steps ...\r\n
-
How to stop an animation (cancel() does not work)
tags: android, animation
183 votes, 6 answers and 90789 views
\r\n I need to stop a running translate animation. The .cancel() method of Animation has no effect; the animation goes until the end anyway.\n\nHow do you cancel a running animation?\r\n
-
Mercurial — revert back to old version and continue from there
tags: version-control, mercurial, branch, dvcs, revert
226 votes, 7 answers and 136983 views
\r\n I'm using Mercurial locally for a project (it's the only repo there's no pushing/pulling to/from anywhere else).\n\nTo date it's got a linear history. However, the current thing I'm working on I've now ...\r\n
-
How do you perform wireless debugging in Xcode 9 with iOS 11, Apple TV 4K, etc?
tags: ios, xcode, debugging, ios11, xcode9
200 votes, 12 answers and 38645 views
\r\n Wireless debugging was recently added as a feature in Xcode 9, iOS 11, and tvOS 11. Apple TV 4K doesn't have a USB port, so it requires wireless debugging. How do you perform this wireless debugging ...\r\n
-
How would I extract a single file (or changes to a file) from a git stash?
tags: git, git-stash
465 votes, 8 answers and 115440 views
\r\n I'd like to know if it is possible to extract a single file or diff of a file from a git stash without popping the stash changeset off.\n\nMight anyone be able to provide some suggestions/ideas about ...\r\n
-
How to remove non-alphanumeric characters?
tags: php, regex, string
244 votes, 8 answers and 151596 views
\r\n I need to remove all characters from a string which aren't in a-z A-Z 0-9 set or are not spaces.\n\nDoes anyone have a function to do this?\r\n