Questions

Unable To Match Legacy Serialized XML When Using ServiceStack.Text

Here is the legacy Message class that has all of the XML attributes with the output that is generated using the built-in .NET serializer: ``` [Serializable] [XmlRoot(Namespace = http://www.tibco....

23 Feb at 14:10

Horrible performance using SqlCommand Async methods with large data

I'm having major SQL performance problems when using async calls. I have created a small case to demonstrate the problem. I have create a database on a SQL Server 2016 which resides in our LAN (so no...

Error:Cause: unable to find valid certification path to requested target

I got the following Error in android Studio 2.2.3 when I sync gradle. How can I fix this issue I am Adding my Gradle file also ``` apply plugin: 'com.android.application' android { compileSdkVers...

7 Aug at 10:19

ASP.net core MVC catch all route serve static file

Is there a way to make a catch all route serve a static file? Looking at this [http://blog.nbellocam.me/2016/03/21/routing-angular-2-asp-net-core/](http://blog.nbellocam.me/2016/03/21/routing-angular...

23 Feb at 11:24

How can I create an observable with a delay

## Question For testing purposes, I'm creating `Observable` objects that replace the observable that would be returned by an actual http call with `Http`. My observable is created with the follow...

23 Feb at 16:57

Access C++ static methods from C#

Say you have following C++ code: ``` extern "C" { void testA(int a, float b) { } static void testB(int a, float b){ } } ``` I want to access this in my C# project using `DllImport`...

F# functions vs C# "Func"tions

So I ran across this tour of F#: [https://learn.microsoft.com/en-us/dotnet/articles/fsharp/tour](https://learn.microsoft.com/en-us/dotnet/articles/fsharp/tour) ... and boy howdy is F# interesting! Th...

23 Feb at 04:35

SoapHttpClientProtocol and TLS 1.2 - The client and server cannot communicate, because they do not possess a common algorithm

There are numerous posts on SO about this and I have scoured them, but still don't have a solution. I am hoping that someone can point me in the right direction. We have a requirement now to use TLS ...

23 Feb at 04:34

HttpClient doesn't redirect even when AllowAutoRedirect = true

I'm trying to parse a wikispaces page but I'm not able to get the actual page. I'm not sure if its a HttpClient bug or some missing configuration. This is my code: ``` HttpClientHandler handler = n...

23 Feb at 01:41

Using a Strategy and Factory Pattern with Dependency Injection

I am working on a side project to better understand Inversion of Control and Dependency Injection and different design patterns. I am wondering if there are ? . As a result I find myself declaring ...

Order by "Relevance Values"

I'm working on Windows Forms application. I want to apply a filter on ListView. The requirement was to implement search feature in windows when searching files with a given name in a folder. It turns ...

15 Dec at 20:30

Error loading hostpolicy.dll while deploying .NET Core console app to Azure WebJobs

I have followed this [tutorial](https://blog.kloud.com.au/2016/06/08/azure-webjobs-with-dotnet-core-rc2/) to deploy a .NET Core console application to an Azure Web Service WebJob. My app is running lo...

Setting TTL on RabbitMQ queue using Servicestack

[I have read](https://www.rabbitmq.com/ttl.html) that it is possible to set a time to live (TTL) on a RabbitMQ (per queue) so that a message will be wiped from the queue by the RabbitMQ server if the ...

22 Feb at 14:56

How can I serve static html from spring boot?

I ran the spring-boot-sample-web-static project from [here](https://github.com/spring-projects/spring-boot/tree/1.5.x), made this alteration to the pom ``` <dependency> <groupId>org.springframe...

17 Jan at 22:9

Angular 2 : Validators.pattern() not working

I am trying to validate input `type="text"` using a pattern. I want text only. Component : ``` this.from = this.fb.group({ name: ['',[Validators.required,Validators.pattern('/^[a-zA-Z]+$/')]], }...

2 Jun at 02:27

Why does unboxing require explicit casting in C#?

Boxing is the process of converting a value type into a managed heap object, which is implicit. Unboxing is the reverse process, for which the compiler requires an explicit cast. Since boxing stores t...

22 Feb at 20:42

Upload file to Google Drive with C#

How can I upload a file to google drive, with given mail address, using C#?

22 Feb at 17:8

Bootstrap Center Vertical and Horizontal Alignment

I have a page where only form exists and I want form to be placed in the center of the screen. ``` <div class="container"> <div class="row justify-content-center align-items-center"> <form> ...

accessing a docker container from another container

I created two docker containers based on two different images. One of db and another for webserver. Both containers are running on my mac osx. I can access db container from host machine and same way ...

5 Nov at 11:26

How to use existing DB with IdentityServer4

I want to use IdentityServer4 with my custom database. I've separate tables for admin and students and both entities have separate rights. I want to know how to configure IdentityServer EF database ...

20 Sep at 13:26

Get git branch name in Jenkins Pipeline/Jenkinsfile

I've create a jenkins pipeline and it is pulling the pipeline script from scm. I set the branch specifier to '`all`', so it builds on any change to any branch. How do I access the branch name causin...

23 Feb at 01:24

ValueError: Length of values does not match length of index | Pandas DataFrame.unique()

I am trying to get a new dataset, or change the value of the current dataset columns to their unique values. Here is an example of what I am trying to get : ``` A B ----- 0| 1 1 1| 2 5 2| 1 5 3| 7 9 ...

24 Nov at 07:25

Mock IMemoryCache with Moq throwing exception

I'm trying to mock `IMemoryCache` with Moq. I'm getting this error: > An exception of type 'System.NotSupportedException' occurred in Moq.dll but was not handled in user codeAdditional information:...

Best way to import Observable from rxjs

In my angular 2 app I have a service that uses the `Observable` class from the `rxjs` library. ``` import { Observable } from 'rxjs'; ``` At the moment I am just using `Observable` so that I can us...

Getting an early-bound relationship

When I am linking annotations to a specific entity, rather than creating a relationship like so: ``` var associateRequest = new AssociateRequest { Target = new EntityReference(SalesOrder.EntityLo...