Skip to content

Latest commit

 

History

History
97 lines (43 loc) · 4.8 KB

2018-01-03.md

File metadata and controls

97 lines (43 loc) · 4.8 KB

Trending in Stackoverflow

See what the Stackoverflow community is most excited about today.

Date: 2018-01-03

  1. Difference between val() and text()

    tags: javascript, jquery, html

    196 votes, 3 answers and 67560 views

    \r\n What the difference between jQuery's functions val() and text()?\n\nWhere would you use one over the other?\r\n

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

  3. How to submit form on change of dropdown list?

    tags: html, jsp

    192 votes, 3 answers and 416214 views

    \r\n I am creating a page in JSP where I have a dropdown list and once the user selects a value he has to click on the go button and then the value is sent to the Servlet.\n\n \n ...\r\n

  4. Does C# 6.0 work for .NET 4.0?

    tags: c#, .net, c#-6.0

    233 votes, 4 answers and 55330 views

    \r\n I created a sample project, with C#6.0 goodies - null propagation and properties initialization as an example, set target version .NET 4.0 and it... works.\n\npublic class Cat\n{\n public int ...\r\n

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

  6. SQL injection that gets around mysql_real_escape_string()

    tags: php, mysql, sql, security, sql-injection

    436 votes, 5 answers and 172980 views

    \r\n Is there an SQL injection possibility even when using mysql_real_escape_string() function?\n\nConsider this sample situation. SQL is constructed in PHP like this:\n\n$login = mysql_real_escape_string(...\r\n

  7. SQL query to select dates between two dates

    tags: sql, sql-server, tsql, datetime, sql-server-2005

    184 votes, 19 answers and 1195748 views

    \r\n I have a start_date and end_date. I want to get the list of dates in between these two dates. Can anyone help me pointing the mistake in my query.\n\nselect Date,TotalAllowance \nfrom Calculation \nwhere ...\r\n

  8. How to make a div 100% height of the browser window?

    tags: html, css, css3, height

    1504 votes, 28 answers and 1368102 views

    \r\n I have a layout with two columns - a left div and a right div.\n\nThe right div has a grey background-color, and I need it to expand vertically depending on the height of the user's browser window. ...\r\n

  9. What is a Maven artifact?

    tags: java, build, maven

    238 votes, 9 answers and 122148 views

    \r\n What is an artifact and why does Maven need it?\r\n

  10. jQuery Validate Plugin - How to create a simple custom rule?

    tags: javascript, jquery, jquery-validate

    308 votes, 7 answers and 246025 views

    \r\n How do you create a simple, custom rule using the jQuery Validate plugin (using addMethod) that doesn't use a regex?\n\nFor example, what function would create a rule that validates only if at least one ...\r\n