Format y axis as percent
I have an existing plot that was created with pandas like this: ``` df['myvar'].plot(kind='bar') ``` The y axis is format as float and I want to change the y axis to percentages. All of the soluti...
- Modified
- 23 May at 10:31
Error: Cannot find module 'webpack'
I'm just getting started with webpack and am having difficulty getting the [multiple-entry-points sample](https://github.com/webpack/webpack/tree/master/examples/multiple-entry-points) to build. The ...
How do I open phone settings when a button is clicked?
I am trying to implement a feature in an App that shows an alert when the internet connection is not available. The alert has two actions (OK and Settings), whenever a user clicks on settings, I want ...
Adjust icon size of Floating action button (fab)
 The new floating action button should be and the icon inside it should be . So the space between icon and button should be . ``` <ImageButton ...
- Modified
- 3 Aug at 12:3
Find duplicate records in MongoDB
How would I find duplicate fields in a mongo collection. I'd like to check if any of the "name" fields are duplicates. ``` { "name" : "ksqn291", "__v" : 0, "_id" : ObjectId("540f346c3e7f...
- Modified
- 22 Sep at 17:57
Pandas join issue: columns overlap but no suffix specified
I have the following data frames: ``` print(df_a) mukey DI PI 0 100000 35 14 1 1000005 44 14 2 1000006 44 14 3 1000007 43 13 4 1000008 43 13 print(df_b) mukey niccdcd 0 1...
How to see remote tags?
In Atlassian SourceTree, how to know which tags are only local and which are also in remote? When creating a tag you get the option "Push tag to: ...", but how to know if a tag has been pushed or not...
- Modified
- 22 Sep at 22:56
React – the right way to pass form element state to sibling/parent elements?
- - - I've come up with two solutions, but neither of them feels quite right. First solution: 1. Assign P a state, state.input. 2. Create an onChange function in P, which takes in an event and sets ...
- Modified
- 26 May at 13:51
How big is too big for a PostgreSQL table?
I'm working on the design for a RoR project for my company, and our development team has already run into a bit of a debate about the design, specifically the database. We have a model called `Messag...
- Modified
- 19 Feb at 08:34
Do I need a Global.asax.cs file at all if I'm using an OWIN Startup.cs class and move all configuration there?
Let's say for example in a brand new ASP.NET MVC 5 application made from the MVC with Individual Accounts template, if I delete the `Global.asax.cs` class and move it's configuration code to `Startup....
- Modified
- 26 Feb at 21:19
External VS2013 build error "error MSB4019: The imported project <path> was not found"
I am building a project through the command line and not inside Visual Studio 2013. Note, I had upgraded my project from Visual Studio 2012 to 2013. The project builds fine inside the IDE. Also, I com...
- Modified
- 3 Dec at 12:38
Waiting on a list of Future
I have a method which returns a `List` of futures ``` List<Future<O>> futures = getFutures(); ``` Now I want to wait until either all futures are done processing successfully or any of the tasks wh...
- Modified
- 13 Oct at 18:21
Integrating Dropzone.js into existing HTML form with other fields
I currently have a HTML form which users fill in details of an advert they wish to post. I now want to be able to add a for uploading images of the item for sale. I have found [Dropzone.js](https://...
- Modified
- 24 Mar at 17:27
How to create a shared library with cmake?
I have written a library that I used to compile using a self-written Makefile, but now I want to switch to cmake. The tree looks like this (I removed all the irrelevant files): ``` . ├── include │ ...
- Modified
- 21 Nov at 14:28
Add a duration to a moment (moment.js)
Moment version: 2.0.0 [After reading the docs](http://momentjs.com/docs/#/manipulating/add/), I thought this would be straight-forward (Chrome console): ``` var timestring1 = "2013-05-09T00:00:00Z";...
- Modified
- 27 Jun at 04:27
Cell spacing in UICollectionView
How do I set cell spacing in a section of `UICollectionView`? I know there is a property `minimumInteritemSpacing` I have set it to 5.0 still the spacing is not appearing 5.0. I have implemented the f...
- Modified
- 22 Dec at 12:27
How can I make a button redirect my page to another page?
I have been trying the following: ``` <form action="/home" class="inline"> <button class="float-left submit-button" >Home</button> </form> ``` It seems to work but it goes to the page "/home?" ...
- Modified
- 3 Jul at 09:32
How can I dynamically add a directive in AngularJS?
I have a very boiled down version of what I am doing that gets the problem across. I have a simple `directive`. Whenever you click an element, it adds another one. However, it needs to be compiled fi...
- Modified
- 29 Aug at 08:54
How to watch for a route change in AngularJS?
How would one watch/trigger an event on a route change?
- Modified
- 8 May at 14:0
git visual diff between branches
This answer is great for seeing a visual diff between two files that are checked into git: [How do I view 'git diff' output with a visual diff program?](https://stackoverflow.com/questions/255202/how-...
How to disable Google translate from HTML in Chrome
I just made a website for a french restaurant. The website is in english, but I guess there is enough french on the website (labeled pictures of menu items) to prompt the visitor to translate the web...
- Modified
- 16 Feb at 18:57
What's the difference between "Write-Host", "Write-Output", or "[console]::WriteLine"?
There are a number of different ways to output messages. What is the effective difference between outputting something via `Write-Host`, `Write-Output`, or `[console]::WriteLine`? I also notice that...
- Modified
- 5 Mar at 09:46
Could not load file or assembly ... The parameter is incorrect
Recently I met the following exception at C# solution: > Error 2 Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b9a188c8922137c6' or one of i...
- Modified
- 25 Nov at 12:51
Convert dd-mm-yyyy string to date
i am trying to convert a string in the format dd-mm-yyyy into a date object in JavaScript using the following: ``` var from = $("#datepicker").val(); var to = $("#datepickertwo").val(); var f = new...
- Modified
- 29 Mar at 13:2
C++ compiling on Windows and Linux: ifdef switch
I want to run some c++ code on Linux and Windows. There are some pieces of code that I want to include only for one operating system and not the other. Is there a standard that once can use? Somet...
- Modified
- 23 Aug at 15:53