How to make a simple rounded button in Storyboard?

I just started learning iOS development, cannot find how to make simple rounded button. I find resources for old versions. Do I need to set a custom background for a button? In Android, I would just u...

10 Aug at 14:6

"Uncaught TypeError: a.indexOf is not a function" error when opening new foundation project

I've created a new Foundation 5 project through bash, with `foundation new my-project`. When I open the index.html file in Chrome an `Uncaught TypeError: a.indexOf is not a function` error is shown in...

Difference between decorating a property in C# with BsonRepresentation(BsonType.ObjectId) vs BsonId vs ObjectId

Am new to mongodb and am liking how easy it is not to worry about schema stuff, I have a question suppose you want an Id property in mongo and mongo uses `ObjectId` to denote property Id's, so far i s...

17 May at 09:2

Python can't find the file pip.conf

I can't find the file `pip.conf` in the path `~/.config/pip/pip.conf` or the path `~/pip/pip.conf`. My version of pip is 8.1.2

18 Feb at 14:39

WCF client logging dotnet core

I'm using on windows and have a file with classes generated by the . I'm using nlog for the logging purpose. Is there a way I can log all the to and from the external service? Already tried logman ...

10 Aug at 09:10

Spark - SELECT WHERE or filtering?

What's the difference between selecting with a where clause and filtering in Spark? Are there any use cases in which one is more appropriate than the other one? When do I use ``` DataFrame newdf =...

5 Sep at 13:35

Pass data to middleware further down the chain

When I register middleware as part of the request pipeline, how do I pass data through the middleware chain. (ultimately accessible in an MVC controller action) For example, I have implemented custom...

10 Aug at 08:48

How to Add Incremental Numbers to a New Column Using Pandas

I have this simplified dataframe: ``` ID Fruit F1 Apple F2 Orange F3 Banana ``` I want to add in the begining of the dataframe a new column `df['New_ID']` which has the number `880` that i...

10 Aug at 01:41

RestSharp showing Error of Cannot create an instance of an interface have to manually deserialize

I have RestSharp (which is like HttpClient) call and return data from a Web Api method I'm getting this error `{"Cannot create an instance of an interface."}` My code looks like this: ``` public ...

Custom setter but auto getter

I have an object with a property for which I want to create a custom setter and also keep the automatic getter: ``` public class SomeObject { public int SomeProp { get; set; } public Nullable<s...

9 Aug at 18:59

ServiceStack root/default.cshtml downloading webpage / not displaying

Currently works 100% fine for me and another designers machine. A different designer is facing this issue: metadata displays, services display, static content displays. When navigating to the root / ...

9 Aug at 20:36

Can you Self-Host ServiceStack via Named Pipes?

I need to create a process that is able to have high-performance communication with other local processes. To do so, I'm looking at using [.Net's named pipes](https://msdn.microsoft.com/en-us/library/...

9 Aug at 16:40

Apply Formula Cell to a DataGridview

I want to add formula cell in a `DataGridView`. Is there any custom `DataGridView` to do this? Example: ``` grid[4, column].Text = string.Format("=MAX({0}6:{0}{1})", columnAsString, grid.RowCount);...

23 Aug at 09:13

How do I pass a variable from an ActionFilter to a Controller Action in C# MVC?

Taking a simple action filter, which checks if the user is logged in and retrieves their user ID. ``` public class LoginFilter : ActionFilterAttribute { public override void OnActionExecuting(Act...

References of References with COM caller

I have a scenario like this: 1. COM Call from an MS Access Application using VBA 2. Call is into a C# library we are building which has a reference to Newtonsoft.Json v9 3. Library uses nuget packag...

1 Jul at 08:43

VS Crashing after 'Set As StartUp Project'

I have a solution in VS 2012, I try to change the startup project to project but the vs crashing immediately (with the other projects - no problem) with the familiar message "Visual Studion Stop Work...

ValueError: all the input arrays must have same number of dimensions

I'm having a problem with `np.append`. I'm trying to duplicate the last column of 20x361 matrix `n_list_converted` by using the code below: ``` n_last = [] n_last = n_list_converted[:, -1] n_lists =...

9 Aug at 10:52

Ansible: How to get service status by Ansible?

I want to get service like `redis-server` running status by Ansible. I know how to use Ansible service module to stop or start system service. But how can I get the current service status?

31 Mar at 14:44

Could not load file or assembly 'Microsoft.AI.Web' or one of its dependencies. The system cannot find the file specified

After successfully publishing my Web Api to Azure when i try to hit the api i get the following error. Here's [a link to api](http://uninamaapi.azurewebsites.net/api/NewsFeed/UserNewsFeed?id=1) ``` ...

9 Aug at 09:36

Disabling editing in DataGridView

I'm using Visual Studio 2012. I want to disable the editing on the `DataGridView`, it seems to work when I used this code: ``` private void dataGridView1_CellContentClick(object sender, DataGridViewC...

How to pass multiple parameter to @Directives (@Components) in Angular with TypeScript?

Since I've created `@Directive` as `SelectableDirective`, I'm little bit confused, about how to pass value to the custom directive. I have searched a lot but didn't get proper solution in with . He...

30 Aug at 19:25

React Native: Possible unhandled promise rejection

I'm getting the following error: > `Possible unhandled promise rejection (id:0: Network request failed)` Here's the promise code, I don't see what's wrong here, any ideas? ``` return fetch(url) ....

15 Sep at 10:39

Update property in nested array of entities in MongoDB

Is there a straight forward way to update nested array of entities in MongoDB. I am using `MongoDB C# Driver` for making the DB call from application. Below is an exmaple : say I have a `Student` coll...

8 Aug at 22:16

Why is C# Array.BinarySearch so fast?

I have implemented a binarySearch implementation in C# for finding integers in an integer array: # Binary Search ``` static int binarySearch(int[] arr, int i) { int low = 0, high = arr.Lengt...

24 Aug at 10:24

TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'

I having trouble passing a function as a parameter to another function. This is my code: ``` def display_pageviews(hostname): pageviews_results = get_pageviews_query(service, hostname).execute(...

8 Aug at 19:24