See what the Stackoverflow community is most excited about today.
Date: 2017-11-22
-
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
-
tags: travis-ci
258 votes, 7 answers and 84279 views
\r\n I've just joined a project, and I'm new to travis-ci. I'd rather not have to push every little change to .travis.yml and every little change I make to the source in order to run the build. With ...\r\n
-
Can I delete a git commit but keep the changes
tags: git
338 votes, 6 answers and 112246 views
\r\n In one of my development branches, I made some changes to my codebase. Before I was able to complete the features I was working on, I had to switch my current branch to master to demo some features. ...\r\n
-
Using Node.js require vs. ES6 import/export
tags: javascript, node.js, ecmascript-6, babeljs
410 votes, 6 answers and 195116 views
\r\n In a project I'm collaborating on, we have two choices on which module system we can use:\r\nImporting modules using require, and exporting using module.exports and exports.foo\nImporting modules using ...\r\n
-
tags: html, cookies, httprequest, local-storage
684 votes, 6 answers and 201363 views
\r\n I want to reduce load times on my websites by moving all cookies into local storage since they seem to have the same functionality. Are there any pros/cons (especially performance-wise) in using local ...\r\n
-
How to declare a local variable in Razor?
tags: c#, .net, asp.net-mvc, asp.net-mvc-3, razor
261 votes, 6 answers and 220655 views
\r\n I am developing a web application in asp.net mvc 3.\nI am very new to it. In a view using razor, I'd like to declare some local variables and use it across the entire page. How can this be done?\n\nIt ...\r\n
-
Xcode 8 / Swift 3: “Expression of type UIViewController? is unused” warning
tags: ios, swift
219 votes, 6 answers and 41401 views
\r\n I've got the following function which compiled cleanly previously but generates a warning with Xcode 8.\n\nfunc exitViewController()\n{\n navigationController?.popViewController(animated: true)\n}\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
-
undo git update-index --assume-unchanged
tags: git, version-control, git-index
275 votes, 7 answers and 65254 views
\r\n The way you git ignore watching/tracking a particular dir/file. you just run this: \n\ngit update-index --assume-unchanged \n\nNow how do you undo it so they are watched again? (lets call it ...\r\n
-
How to store decimal values in SQL Server?
tags: sql, sql-server, types, decimal
204 votes, 7 answers and 370522 views
\r\n I'm trying to figure out decimal data type of a column in the SQL Server. I need to be able to store values like 15.5, 26.9, 24.7, 9.8, etc\n\nI assigned decimal(18, 0) to the column data type but this ...\r\n