Skip to content

Latest commit

 

History

History
97 lines (43 loc) · 4.84 KB

2017-12-04.md

File metadata and controls

97 lines (43 loc) · 4.84 KB

Trending in Stackoverflow

See what the Stackoverflow community is most excited about today.

Date: 2017-12-04

  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. What is the common header format of Python files?

    tags: python, header, comments

    334 votes, 5 answers and 235632 views

    \r\n I came across the following header format for Python source files in a document about Python coding guidelines:\n\n#!/usr/bin/env python\n\n"""Foobar.py: Description of what foobar does."""\n\n__author__ ...\r\n

  3. How to get size of mysql database?

    tags: mysql, database

    296 votes, 6 answers and 222657 views

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

  4. Does C# have extension properties?

    tags: c#, properties, extension-methods

    566 votes, 6 answers and 142622 views

    \r\n Does C# have extension properties?\n\nFor example, can I add an extension property to DateTimeFormatInfo called ShortDateLongTimeFormat which would return ShortDatePattern + " " + LongTimePattern?\r\n

  5. Showing all errors and warnings

    tags: php, debugging, warnings

    245 votes, 6 answers and 604870 views

    \r\n UPDATE 2:\n\nI have now removed the following from the .php file:\n\n\r\nI have set display_erros in php.ini as follows:\r\n display_errors = On\r\nerror reporting is ...\r\n

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

  7. What is a raw type and why shouldn't we use it?

    tags: java, generics, raw-types

    457 votes, 14 answers and 154000 views

    \r\n Questions:\r\nWhat are raw types in Java, and why do I often hear that they shouldn't be used in new code?\nWhat is the alternative if we can't use raw types, and how is it better?\r\n

  8. Failed to resolve: com.google.firebase:firebase-core:9.0.0

    tags: android, firebase

    213 votes, 8 answers and 109944 views

    \r\n I get the following error while upgrading a firebase project from old domain to new google firebase domain.\r\n Failed to resolve: com.google.firebase:firebase-core:9.0.0\r\nI followed the steps ...\r\n

  9. Python join: why is it string.join(list) instead of list.join(string)?

    tags: python, string, list, join

    1224 votes, 9 answers and 874094 views

    \r\n This has always confused me. It seems like this would be nicer:\n\nmy_list = ["Hello", "world"]\nprint my_list.join("-")\n# Produce: "Hello-world"\r\nThan this:\n\nmy_list = ["Hello", "world"]\nprint "-".join(...\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