Send HTTP POST message in ASP.NET Core using HttpClient PostAsJsonAsync
I want to send dynamic object like ``` new { x = 1, y = 2 }; ``` as body of HTTP POST message. So I try to write ``` var client = new HttpClient(); ``` but I can't find method ``` client.PostA...
- Modified
- 10 Jun at 14:12
Conversion of List to Page in Spring
I am trying to convert list to page in spring. I have converted it using > new PageImpl(users, pageable, users.size()); But now I having problem with sorting and pagination itself. When I try passi...
- Modified
- 13 Jun at 06:29
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...
- Modified
- 4 Sep at 03:15
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...
- Modified
- 16 Sep at 01:33
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...
- Modified
- 10 Jun at 12:5
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...
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...
- Modified
- 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.
- Modified
- 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?
.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...
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...
- Modified
- 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...
- Modified
- 23 May at 11:45
'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; ...
- Modified
- 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?
- Modified
- 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 ...
- Modified
- 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; ...
- Modified
- 3 Jan at 13:39
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...
- Modified
- 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...
- Modified
- 6 Aug at 16:2
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...
- Modified
- 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...
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...
- Modified
- 13 Jul at 21:50
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...
- Modified
- 16 Aug at 09:25
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 ...
- Modified
- 9 Jun at 11:26
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...
- Modified
- 21 Jan at 08:9