See what the Stackoverflow community is most excited about today.
Date: 2018-01-13
-
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
-
load and execute order of scripts
tags: javascript, load-order
189 votes, 4 answers and 145630 views
\r\n There are so many different ways to include JavaScript in a html page. I know about the following options:\r\ninline code or loaded from external URI\nincluded in or tag [1,2]\nhaving ...\r\n
-
How to avoid mysql 'Deadlock found when trying to get lock; try restarting transaction'
tags: mysql, deadlock
186 votes, 5 answers and 222363 views
\r\n I have a innoDB table which records online users. It gets updated on every page refresh by a user to keep track of which pages they are on and their last access date to the site. I then have a cron ...\r\n
-
How do I (or can I) SELECT DISTINCT on multiple columns?
tags: sql, postgresql, sql-update, duplicates, distinct
297 votes, 4 answers and 694565 views
\r\n I need to retrieve all rows from a table where 2 columns combined are all different. So I want all the sales that do not have any other sales that happened on the same day for the same price. The ...\r\n
-
What is the maximum possible length of a query string?
tags: browser, max, query-string
416 votes, 4 answers and 231334 views
\r\n Is it browser dependent? Also, do different web stacks have different limits on how much data they can get from the request?\r\n
-
Schema for a multilanguage database
tags: database-design, localization, multilingual
186 votes, 10 answers and 73627 views
\r\n I'm developing a multilanguage software. As far as the application code goes, localizability is not an issue. We can use language specific resources and have all kinds of tools that work well with ...\r\n
-
What is the PostgreSQL equivalent for ISNULL()
tags: sql-server, postgresql, null
186 votes, 5 answers and 173601 views
\r\n In MS SQL-Server, I can do:\n\nSELECT ISNULL(Field,'Empty') from Table\n\nBut in PostgreSQL I get a syntax error. How do I emulate the ISNULL() functionality ?\r\n
-
In CSS Flexbox, why are there no “justify-items” and “justify-self” properties?
tags: css, css3, flexbox, language-lawyer, w3c
312 votes, 5 answers and 57877 views
\r\n Consider the main axis and cross axis of a flex container:\r\n &...\r\n
-
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
-
How does the vim “write with sudo” trick work?
tags: vim, sudo
1040 votes, 5 answers and 231051 views
\r\n Many of you have probably seen the command that allows you to write on a file that needs root permission, even when you forgot to open vim with sudo:\n\n:w !sudo tee %\r\nThe thing is that I don't get ...\r\n