Skip to content

Latest commit

 

History

History
97 lines (43 loc) · 5.08 KB

2017-11-25.md

File metadata and controls

97 lines (43 loc) · 5.08 KB

Trending in Stackoverflow

See what the Stackoverflow community is most excited about today.

Date: 2017-11-25

  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 do I hide certain files from the sidebar in Visual Studio Code?

    tags: visual-studio-code

    242 votes, 5 answers and 69745 views

    \r\n Using Microsoft's Visual Studio Code, how do I hide certain files and file patterns from appearing in the sidebar?\n\nI want to hide .meta and .git style files\r\n

  3. What do 'real', 'user' and 'sys' mean in the output of time(1)?

    tags: unix, time, benchmarking

    1188 votes, 5 answers and 297055 views

    \r\n $ time foo\nreal 0m0.003s\nuser 0m0.000s\nsys 0m0.004s\n$\r\nWhat do 'real', 'user' and 'sys' mean in the output of time?\n\nWhich one is meaningful when benchmarking my app?\r\n

  4. Update git commit author date when amending

    tags: git

    186 votes, 5 answers and 49122 views

    \r\n I found myself amending my commits quite often. I don't stash so much because I tend to forget I did so, especially when I want to save what I did before I leave or before a weekend, so I do a "draft" ...\r\n

  5. how to split a string in shell and get the last field

    tags: bash, split, tokenize, cut

    182 votes, 13 answers and 267434 views

    \r\n suppose I have the string 1:2:3:4:5 and I want to get its last field (5 in this case). how do I do that using Bash? I tried cut, but I don't know how to specify the last field with -f.\r\n

  6. Disabled form inputs do not appear in the request

    tags: html, forms, http, browser

    227 votes, 6 answers and 120229 views

    \r\n I have some disabled inputs in a form and I want to send them to a server, but Chrome excludes them from the request. \n\nIs there any workaround for this without adding a hidden field? \n\n<form ...\r\n

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

  8. Is it a good practice to use try-except-else in Python?

    tags: python, exception, exception-handling, try-catch

    223 votes, 8 answers and 116086 views

    \r\n From time to time in Python, I see the block:\n\ntry:\n try_this(whatever)\nexcept SomeException as exception:\n #Handle exception\nelse:\n return something\r\nWhat is the reason for the try-except-else ...\r\n

  9. core dumped - but core file is not in current directory?

    tags: c, linux, coredump

    200 votes, 7 answers and 250968 views

    \r\n While running a C program, It says "(core dumped)" but I can't see any files under current path.\n\nI have set and verified the ulimit:\n\nulimit -c unlimited \nulimit -a \r\nI also tried to find file named "...\r\n

  10. jQuery get textarea text

    tags: javascript, jquery, ajax

    395 votes, 7 answers and 606683 views

    \r\n Recently I have started playing with jQuery, and have been following a couple of tutorials. Now I feel slightly competent with using it (it's pretty easy), and I thought it would be cool if I were ...\r\n