Skip to content

Latest commit

 

History

History
97 lines (43 loc) · 4.83 KB

2017-11-29.md

File metadata and controls

97 lines (43 loc) · 4.83 KB

Trending in Stackoverflow

See what the Stackoverflow community is most excited about today.

Date: 2017-11-29

  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 to get size of mysql database?

    tags: mysql, database

    292 votes, 5 answers and 221582 views

    \r\n How to get size of a mysql database?\nSuppose the target database is called "v3".\r\n

  3. Is there any way I can define a variable in LaTeX?

    tags: variables, latex

    243 votes, 5 answers and 183878 views

    \r\n In LaTeX, how can I define a string variable whose content is used instead of the variable in the compiled PDF?\n\nLet's say I'm writing a tech doc on a software and I want to define the package name in ...\r\n

  4. Access index of the parent ng-repeat from child ng-repeat

    tags: javascript, angularjs, angularjs-ng-repeat

    197 votes, 6 answers and 124985 views

    \r\n I want to use the index of the parent list (foos) as an argument to a function call in the child list (foos.bars).\n\nI found a post where someone recommends using $parent.$index, but $index is not a ...\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. In Android, how do I set margins in dp programmatically?

    tags: android, layout, button, margin

    243 votes, 7 answers and 243324 views

    \r\n In this, this and this thread I tried to find an answer on how to set the margins on a single view. However, I was wondering if there isn't an easier way. I'll explain why I rather wouldn't want to ...\r\n

  7. git-diff to ignore ^M

    tags: git, diff, newline, git-diff

    268 votes, 9 answers and 163618 views

    \r\n In a project where some of the files contains ^M as newline separators. Diffing these files are apparently impossible, since git-diff sees it as the entire file is just a single line.\n\nHow does one ...\r\n

  8. How can I see the raw SQL queries Django is running?

    tags: sql, django

    188 votes, 9 answers and 92764 views

    \r\n Is there a way to show the SQL that Django is running while performing a query?\r\n

  9. Targeting only Firefox with CSS

    tags: css, firefox, css-hack

    485 votes, 9 answers and 447174 views

    \r\n Using conditional comments it is easy to target Internet Explorer with browser-specific CSS rules:\n\n\r\nSometimes it is ...\r\n

  10. Do I commit the package-lock.json file created by npm 5?

    tags: node.js, git, npm, version-control, lockfile

    256 votes, 3 answers and 58306 views

    \r\n npm 5 was released today and one of the new features include deterministic installs with the creation of a package-lock.json file.\n\nIs this file supposed to be kept in source control?\n\nI'm assuming it'...\r\n