Web Api Controller and Thread Pool

When a HTTP request is received by IIS, it hands off the request to the requested application in an application pool that is serviced by one or more worker processes. A worker process will spawn a thr...

Use pytesseract OCR to recognize text from an image

I need to use Pytesseract to extract text from this picture: [](https://i.stack.imgur.com/HWLay.gif) and the code: ``` from PIL import Image, ImageEnhance, ImageFilter import pytesseract path = 'pic.g...

How can I pass a runtime parameter as part of the dependency resolution?

I need to be able to pass a connection string into some of my service implementations. I am doing this in the constructor. The connection string is configurable by user will be added the ClaimsPrincip...

What is the difference XElement Nodes() vs Elements()?

Documentation says: --- XContainer.Nodes Method () Returns a collection of the child nodes of this element or document, in document order. Remarks Note that the content does not include attribut...

10 Jun at 09:19

Xamarin Forms: ContentPages in TabbedPage

I am trying to put some custom Content Pages into a Tabbed Page. Sadly I am not sure, how to do this with the XAML syntax. My dummy project looks like the following: Page 1 ``` <?xml version="1.0" e...

10 Jun at 09:18

Visual studio code CSS indentation and formatting

I'd like to know if there is any way to activate auto indent a CSS file in visual studio code with the shortcut ++? It's working fine with JavaScript but strangely not with CSS.

24 Aug at 13:19

jquery 3.0 url.indexOf error

I am getting following error from jQuery once it has been updated to `v3.0.0`. `jquery.js:9612 Uncaught TypeError: url.indexOf is not a function` Any Idea why?

20 Nov at 09:15

.NET Core vs Mono

What is the difference between .NET Core and Mono? I found a statement on the official site that said: "Code written for it is also portable across application stacks, such as Mono." My goal is to u...

26 Mar at 23:6

ServiceStack.OrmLite 4.0.58 not creating proper SQL for boolean join conditions

I am attempting to join two tables using `ServiceStack.OrmLite` v4.0.58 but the SQL being generated for a boolean check is incorrect: ``` var exp = Db.From<AdjustmentRequest>() .Join<Acc...

9 Jun at 23:41

System.Security.Cryptography not found

I am trying to add a reference to System.Security.Cryptography.X509Certificates but I get: "The type or namespace 'Cryptography' does not exist in the namespace 'System.Security'. I have tried adding...

'yield' enumerations that don't get 'finished' by caller - what happens

suppose I have ``` IEnumerable<string> Foo() { try { /// open a network connection, start reading packets while(moredata) { yield return packet; ...

15 Apr at 17:4

How to update meta tags in React.js?

I was working on a single page application in react.js, so what is the best way to update meta tags on page transitions or browser back/forward?

9 Jun at 18:59

How to get char** using C#?

I need to pass an argument to an unsafe DllImported function in the form of: ``` [DllImport("third_party.dll")] private static extern unsafe int start(int argc, char** argv); ``` I'm assuming it's ...

23 May at 12:17

Android Horizontal RecyclerView scroll Direction

I made a Horizontal RecyclerView and it works fine(thanks to [this](http://www.truiton.com/2015/02/android-recyclerview-tutorial/)) but the direction of scroll and data are expand from left to right; ...

How to CSS display:none within conditional with React JSX?

I'm trying to render a `div` on the same page when the user clicks on a link. My HTML page: ``` <div class="stores"> <h1>Stores</h1> <ul class="stores"> <li><a href="#" onClick={this.onClick...

26 Jan at 13:58

How to establish a OracleConnection without making use of the obsolete OracleConnection Class

What's the 'new' way of establishing a OraConnection? Microsoft defines several classes as obsolete. https://msdn.microsoft.com/en-us/library/system.data.oracleclient.aspx I used to make use of someth...

Xamarin Forms ListView Binding

Right now I am trying to get a ListView to have some bindable CustomCells. I defined the cells in XAML as a ViewCell under DataTemplate under ListView.ItemTemplate. Let's just say for simplicity that...

9 Jun at 12:59

Stack and Queue enumeration order

I know that `List` enumerator guarantees the enumeration order and respects last sort operation, I know that the `Dictionary` and `HashSet` ones do not i.e. you can be sure that ``` Dictionary<stri...

9 Jun at 12:2

Pandas - Replace values based on index

If I create a dataframe like so: ``` import pandas as pd, numpy as np df = pd.DataFrame(np.random.randint(0,100,size=(100, 2)), columns=list('AB')) ``` How would I change the entry in column A to be...

14 Feb at 13:44

Create custom User Control for Acumatica

I am attempting to create a custom User Control that is usable in the Acumatica Framework. Documentation is very limited so I was hoping someone may have some experience/examples of how best to implem...

how to unit test asp.net core application with constructor dependency injection

I have a asp.net core application that uses dependency injection defined in the startup.cs class of the application: ``` public void ConfigureServices(IServiceCollection services) { se...

How to redirect from root url to /swagger/ui/index?

I have a WebApi project with Swashbuckle installed onto it. In default setup, I must open in browser `http://localhost:56131/swagger/ui/index` to view my operations description and test page. I want ...

Laravel migrations change a column type from varchar to longText

I need to change with a migration column type of `$table->string('text');` to a text type, I have tried to do that in a few ways, but none of them worked. Is it possible to do it in one migration? I c...

21 Jan at 08:9

Using repository pattern when using async / await methods ASP .NET MVC EF

Can you explane me how to implement repository patterns when using async / await methods, here is example without async: Model: Interface: Repository: Controller: How can I do this with async / await ...

Have the ServiceStack v3 libraries been removed from Nuget?

Does anyone know how I can get the V3 version of `ServiceStack.Client` off Nuget? This wiki page appears to suggest that they should be there: [https://github.com/ServiceStackV3/ServiceStackV3](https:...

9 Jun at 10:45