Skip to content

Latest commit

 

History

History
97 lines (43 loc) · 4.98 KB

2018-01-01.md

File metadata and controls

97 lines (43 loc) · 4.98 KB

Trending in Stackoverflow

See what the Stackoverflow community is most excited about today.

Date: 2018-01-01

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

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

  4. How to get the current URL within a Django template?

    tags: django, templates

    218 votes, 7 answers and 161712 views

    \r\n I was wondering how to get the current URL within a template.\n\nSay my URL was\n\n/user/profile/\r\nHow do I return this to the template?\r\n

  5. What's “tools:context” in Android layout files?

    tags: android, xml, android-layout, android-context, android-tools-namespace

    780 votes, 7 answers and 178030 views

    \r\n Starting with a recent new version of ADT, I've noticed this new attribute on the layout XML files, for example:\n\n<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"\n xmlns:...\r\n

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

  7. send/post xml file using curl command line

    tags: xml, command-line, curl

    301 votes, 8 answers and 438625 views

    \r\n How can I send/post an xml file to a local server http://localhost:8080 using curl from the command line? \n\nWhat command should I use?\r\n

  8. What is the quickest way to HTTP GET in Python?

    tags: python, http, networking

    370 votes, 9 answers and 444809 views

    \r\n What is the quickest way to HTTP GET in Python if I know the content will be a string? I am searching the docs for a quick one-liner like:\n\ncontents = url.get("http://example.com/foo/bar")\r\nBut all I ...\r\n

  9. Converting a date string to a DateTime object using Joda Time library

    tags: java, datetime, jodatime

    199 votes, 9 answers and 261548 views

    \r\n I have a date as a string in the following format "04/02/2011 20:27:05". I am using Joda-Time library and would like to convert it to DateTime object. I did:\n\nDateTime dt = new DateTime("04/02/2011 20:...\r\n

  10. What are the uses of the exec command in shell scripts?

    tags: shell, unix, exec

    182 votes, 2 answers and 204064 views

    \r\n Can anyone explain what are the uses of the exec command in shell scripting with simple examples?\r\n