Skip to content

Latest commit

 

History

History
97 lines (43 loc) · 5.08 KB

2017-12-20.md

File metadata and controls

97 lines (43 loc) · 5.08 KB

Trending in Stackoverflow

See what the Stackoverflow community is most excited about today.

Date: 2017-12-20

  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. How do I delete an exported environment variable?

    tags: linux, environment-variables, unset

    1004 votes, 3 answers and 569366 views

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

  3. How can Python iterate over dictionaries with 'for' loops using only the dict keys?

    tags: python, python-2.7, dictionary, key, iteration

    1657 votes, 12 answers and 2233477 views

    \r\n I am a bit puzzled by the following code:\n\nd = {'x': 1, 'y': 2, 'z': 3} \nfor key in d:\n print key, 'corresponds to', d[key]\r\nWhat I don't understand is the key portion. How does Python recognize ...\r\n

  4. What is the list of valid @SuppressWarnings warning names in Java?

    tags: java, eclipse, warnings, compiler-warnings, suppress-warnings

    209 votes, 6 answers and 115318 views

    \r\n What is the list of valid @SuppressWarnings warning names in Java?\n\nThe bit that comes in between the ("") in @SuppressWarnings("").\r\n

  5. How to disable text selection highlighting?

    tags: css, cross-browser, highlighting, textselection

    4021 votes, 34 answers and 1312067 views

    \r\n For anchors that act like buttons (for example, Questions, Tags, Users, etc. at the top of the Stack Overflow page) or tabs, is there a CSS standard way to disable the highlighting effect if the ...\r\n

  6. Best way to work with dates in Android SQLite

    tags: android, sql, database, sqlite, date

    196 votes, 9 answers and 150567 views

    \r\n I'm having some trouble working with dates on my Android application that uses SQLite.\nI have a couple questions:\r\nWhat type should I use to store dates in SQLite (text, integer, ...)?\nGiven the best ...\r\n

  7. IntelliJ: Never use wildcard imports

    tags: settings, intellij-idea

    340 votes, 7 answers and 88524 views

    \r\n Is there a way to tell IntelliJ never to use wildcard imports?\nUnder 'Settings > Code Style > Imports', I can see that you can specify the 'class count' prior to IntelliJ using wildcard imports. ...\r\n

  8. Get name of currently executing test in JUnit 4

    tags: java, unit-testing, junit

    184 votes, 12 answers and 77780 views

    \r\n In JUnit 3, I could get the name of the currently running test like this:\n\npublic class MyTest extends TestCase\n{\n public void testSomething()\n {\n System.out.println("Current test is " + ...\r\n

  9. getWidth() and getHeight() of View returns 0

    tags: java, android, android-layout, getter

    330 votes, 8 answers and 216966 views

    \r\n I am creating all of the elements in my android project dynamically. I am trying to get the width and height of a button so that I can rotate that button around. I am just trying to learn how to work ...\r\n

  10. API pagination best practices

    tags: rest, pagination, api-design

    201 votes, 9 answers and 100566 views

    \r\n I'd love some some help handling a strange edge case with a paginated API I'm building.\n\nLike many APIs, this one paginates large results. If you query /foos, you'll get 100 results (i.e. foo #1-100), ...\r\n