See what the Stackoverflow community is most excited about today.
Date: 2017-12-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
-
Git Cherry-pick vs Merge Workflow
tags: git, merge, cherry-pick
256 votes, 3 answers and 112799 views
\r\n Assuming I am the maintainer of a repo, and I want to pull in changes from a contributor, there are a few possible workflows:\r\nI cherry-pick each commit from the remote (in order). In this case git ...\r\n
-
SecurityError: Blocked a frame with origin from accessing a cross-origin frame
tags: javascript, jquery, iframe, same-origin-policy
239 votes, 4 answers and 410958 views
\r\n I am loading an <iframe> in my HTML page and trying to access the elements within it using Javascript, but when I try to execute my code, I get the following error:\n\nSecurityError: Blocked a ...\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
-
Explanation of JSONB introduced by PostgreSQL
tags: json, postgresql, nosql, postgresql-json, jsonb
184 votes, 6 answers and 66246 views
\r\n PostgreSQL just introduced JSONB and it's already trending on hacker news. It would be great if someone could explain how it's different from Hstore and JSON previously present in PostgreSQL. What ...\r\n
-
What is the difference between state and props in React?
tags: javascript, reactjs
205 votes, 9 answers and 64126 views
\r\n I was watching a Pluralsight course on React and the instructor stated that props should not be changed. I'm now reading an article (uberVU/react-guide) on props vs. state and it says \r\n Both props ...\r\n
-
Converting integer to string in Python?
tags: python
861 votes, 8 answers and 2087231 views
\r\n I want to convert an integer to a string in Python. I am typecasting it in vain:\n\nt=raw_input()\nc=[]\nfor j in range(0,int(t)):\n n=raw_input()\n a=[]\n a,b= (int(i) for i in n.split(' '))\n d=...\r\n
-
Why do I get a warning icon when I add a reference to an MEF plugin project?
tags: .net, mef, project-reference
210 votes, 9 answers and 70498 views
\r\n I wish to test the core class of a plugin by directly referencing the plugin project and instantiating the plugin class. When I create a test Console App project and add a project reference to the ...\r\n
-
getWidth() and getHeight() of View returns 0
tags: java, android, android-layout, getter
330 votes, 8 answers and 216966 views
\r\n I am creating all of the elements in my android project dynamically. I am trying to get the width and height of a button so that I can rotate that button around. I am just trying to learn how to work ...\r\n
-
Unix: How to check permissions of a specific directory?
tags: unix
221 votes, 8 answers and 491718 views
\r\n I know that using ls -l "directory/directory/filename" tells me the permissions of a file. How do I do the same on a directory? I could obviously use ls -l on the directory higher in the hierarchy and ...\r\n