Skip to content

Latest commit

 

History

History
97 lines (43 loc) · 5.03 KB

File metadata and controls

97 lines (43 loc) · 5.03 KB

Trending in Stackoverflow

See what the Stackoverflow community is most excited about today.

Date: 2017-12-07

  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. Can I make a not submit a form?

    tags: javascript, jquery, html, jquery-ui, button

    359 votes, 6 answers and 214882 views

    \r\n I've got a form, with 2 buttons\n\n

    Cancel changes\n\nSubmit\r\nI use jQuery UI's button on them ...\r\n

  3. Advantages of using forward

    tags: c++, c++11, rvalue-reference, c++-faq, perfect-forwarding

    314 votes, 6 answers and 38838 views

    \r\n In perfect forwarding, std::forward is used to convert the named rvalue references t1 and t2 to unnamed rvalue references. What is the purpose of doing that? How would that affect the called function ...\r\n

  4. 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

  5. Seeding the random number generator in Javascript

    tags: javascript, random

    231 votes, 9 answers and 103598 views

    \r\n Is it possible to seed the random number generator (Math.random) in Javascript?\r\n

  6. ASP.NET MVC - Find Absolute Path to the App_Data folder from Controller

    tags: .net, asp.net-mvc, absolute-path

    245 votes, 7 answers and 198835 views

    \r\n What is the correct way to find the absolute path to the App_Data folder from a Controller in an ASP.NET MVC project? I'd like to be able to temporarily work with an .xml file and I don't want to ...\r\n

  7. Android: Vertical alignment for multi line EditText (Text area)

    tags: android, android-edittext, vertical-alignment, multiline

    208 votes, 7 answers and 132501 views

    \r\n I want to have 5 lines for the height of the text area. I am using the following code.\n\n<EditText\n android:layout_width="fill_parent"\n android:layout_height="wrap_content"\n android:gravity=...\r\n

  8. 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

  9. Select rows from a DataFrame based on values in a column in pandas

    tags: python, pandas, dataframe

    482 votes, 11 answers and 557700 views

    \r\n How to select rows from a DataFrame based on values in some column in pandas?\nIn SQL I would use: \n\nselect * from table where colume_name = some_value. \r\nI tried to look at pandas documentation but ...\r\n

  10. PHPUnit assert that an exception was thrown?

    tags: php, exception, phpunit, assert

    183 votes, 10 answers and 86043 views

    \r\n Does anyone know whether there is an assert or something like that which can test whether an exception was thrown in the code being tested?\r\n