Skip to content

Latest commit

 

History

History
97 lines (43 loc) · 4.89 KB

2017-11-30.md

File metadata and controls

97 lines (43 loc) · 4.89 KB

Trending in Stackoverflow

See what the Stackoverflow community is most excited about today.

Date: 2017-11-30

  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. Rename a dictionary key

    tags: python, dictionary, ordereddictionary

    207 votes, 5 answers and 90988 views

    \r\n Is there a way to rename a dictionary key, without reassigning its value to a new name and removing the old name key; and without iterating through dict key/value?\nIn case of OrderedDict, do the same, ...\r\n

  3. Advantages and disadvantages of GUID / UUID database keys

    tags: database, guid, uuid

    183 votes, 8 answers and 68692 views

    \r\n I've worked on a number of database systems in the past where moving entries between databases would have been made a lot easier if all the database keys had been GUID / UUID values. I've considered ...\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. Is [[ ]] preferable over [ ] in Bash?

    tags: bash, if-statement

    323 votes, 7 answers and 122792 views

    \r\n A co-worker claimed recently in a code review that the [[ ]] construct is to be preferred over [ ] in constructs like \n\nif [ "id -nu" = "$someuser" ] ; then \n echo "I love you madly, $someuser"\n...\r\n

  6. Group by in LINQ

    tags: c#, linq, group-by

    686 votes, 7 answers and 770582 views

    \r\n Let's suppose if we have a class like\n\nclass Person { \n internal int PersonID; \n internal string car ; \n}\r\nNow I have a list of this class: List persons;\n\nNow this list can have ...\r\n

  7. Pure CSS to make font-size responsive based on dynamic amount of characters

    tags: css, css3

    206 votes, 7 answers and 299311 views

    \r\n I know that this could be solved fairly easily with Javascript, but I'm only interested in a pure CSS solution. \n\nI want a way to dynamically resize text so that it always fits into a fixed div. Here ...\r\n

  8. How to set tab-space style?

    tags: visual-studio-code

    237 votes, 10 answers and 122497 views

    \r\n A simple question: is it possible to customize the tab-to-space conversion factor when using VSCode? For instance, right now in HTML it appears to produce 2 spaces per press of TAB, but in Typescript ...\r\n

  9. How do I remove/delete a virtualenv?

    tags: python, virtualenv, virtualenvwrapper, virtualenv-commands

    233 votes, 9 answers and 191102 views

    \r\n I created an environment with the following command: virtualenv venv --distribute\n\nI cannot remove it with the following command: rmvirtualenv venv -\nThis is part of virtualenvwrapper as mentioned in ...\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