How to fix git error: RPC failed; curl 56 GnuTLS
I use Ubuntu 16.04. When I want to git push origin master I get: ``` error: RPC failed; curl 56 GnuTLS recv error (-12): A TLS fatal alert has been received. fatal: The remote end hung up unexpectedly...
Embedded statement cannot be a declaration or labeled statement
I am trying to create a user using claim identity asp.net I get this error while creating claims identity user. ``` ApplicationUser user = new ApplicationUser { EmailConfirm...
- Modified
- 14 Jul at 12:36
How to execute servicestack request validation code only
I'm wondering is there a way to flag to servicestack that you only want to execute the fluent validation filter for a request, and not go on to run the real code? Ideally you could add a property to...
- Modified
- 14 Jul at 12:22
Multiple Tables With Same Structure Entity Framework
We have a database with multiple tables with Same structure Table 1 ================== Key ID ........ Table 2 ================== Key ID ....... The number of tables can be dynamic based ...
- Modified
- 3 May at 05:14
How to POST form data with Spring RestTemplate?
I want to convert the following (working) curl snippet to a RestTemplate call: ``` curl -i -X POST -d "email=first.last@example.com" https://app.example.com/hr/email ``` How do I pass the email par...
- Modified
- 28 Sep at 07:23
How to convert an object to JSON correctly in Angular 2 with TypeScript
I'm creating an Angular 2 simple CRUD application that allows me to CRUD products. I'm trying to implement the post method so I can create a product. My backend is an ASP.NET Web API. I'm having some ...
- Modified
- 14 Jul at 10:45
How to Reference .xproj into .csproj?
I have `.csproj` project and I want to reference other project that is `.xproj`, everything looks fine but when I try to build solution then I cannot because the .dll is missing. When i reference the ...
- Modified
- 18 Jul at 11:29
Installing a pip package from within a Jupyter Notebook not working
When I run `!pip install geocoder` in Jupyter Notebook I get the same output as running `pip install geocoder` in the terminal but the geocoder package is not available when I try to import it. I'm u...
- Modified
- 27 Mar at 16:7
Hangfire recurring tasks under minute
Is there a way to set hangfire recurring jobs every few seconds? I do not seek a solution where fire and forget task creates another fire and forget task, and if not, what are suggested alternatives? ...
Angular2: use [(ngModel)] with [ngModelOptions]="{standalone: true}" to link to a reference to model's property
Let's say I have a typescript object of type Mailtype like following: ``` export class Mailtype { constructor( public name?: string, public locale?: string, public email?: string, pu...
- Modified
- 23 Oct at 11:27
Python & Matplotlib: Make 3D plot interactive in Jupyter Notebook
I use Jupyter Notebook to make analysis of datasets. There are a lot of plots in the notebook, and some of them are 3d plots. [](https://i.stack.imgur.com/cPwoQ.png) I'm wondering if it is possible to...
- Modified
- 26 Apr at 16:44
NOW() in ServiceStack.OrmLite
Question is in the title. I have T4 generated objects, but how would I Save() or Update() an object while setting its "LastAccess" property to the sql function "NOW()"? I don't want DateTime.UtcNow, ...
- Modified
- 14 Jul at 00:35
How to use promise in forEach loop of array to populate an object
I am running a forEach loop on an array and making two calls which return promises, and I want to populate an object say `this.options`, and then do other stuff with it. Right now I am running into th...
- Modified
- 13 Jul at 21:58
Is there a newer version of the ServiceStack ProtoBufServiceClient example?
I'm using 4.0.60 of ServiceStack and wanted to implement a service client to use Protobuf format, I tried this [example](https://github.com/ServiceStack/ServiceStack/wiki/Protobuf-format) from the doc...
- Modified
- 14 Jul at 16:28
Built-in method to convert a string to title case in .NET Core?
The .NET has a method [TextInfo.ToTitleCase](https://msdn.microsoft.com/en-us/library/system.globalization.textinfo.totitlecase.aspx). Is there something equivalent in .NET Core? Edit: I'm looking ...
Access appsettings.json values in controller classes
Having trouble figuring out how to read appsettings.json values outside of the startup.cs. What I would like to do is, for instance, is in the _Layout.cshtml, add the site name from the config: For e...
- Modified
- 13 Jul at 18:28
Type argument 'System.Net.Http.Headers.MediaTypeHeaderValue' violates the constraint of type parameter 'T'
I have a Web API solution (targeting .NET 4.6) with a couple of fairly lightweight .NET Core projects in it. I've packaged the .NET Core projects up as a NuGet package and installed them to the Web AP...
- Modified
- 14 Jul at 09:38
Could not find method named Get(Login) or Any(Login) on Service
I get the following error when trying to send an HTTP POST request to my login endpoint: "Could not find method named Get(Login) or Any(Login) on Service LoginService" The Login class has three pro...
- Modified
- 13 Jul at 13:18
Is there any way to get Firebase Auth User UID?
I am looking to fetch Auth User(s) UID from Firebase via NodeJS or Javascript API. I have attached screenshot for it so that you will have idea what I am looking for. ![enter image description here](...
- Modified
- 13 Jul at 13:18
Get Image from the Gallery and Show in ImageView
I need to get an image from the gallery on a button click and show it into the imageview. I am doing it in the following way: ``` btn_image_button.setOnClickListener(new View.OnClickListener() { ...
- Modified
- 13 Jul at 12:45
Why comparing two strings as object causes unexpected result
Consider the following piece of code. ``` object str = new string(new char[] { 't', 'e', 's', 't' }); object str1 = new string(new char[] { 't', 'e', 's', 't' }); Console.WriteLine(str==str1); // fal...
- Modified
- 13 Jul at 11:52
Spring Data and Native Query with pagination
In a web project, using latest spring-data (1.10.2) with a MySQL 5.6 database, I'm trying to use a native query with pagination but I'm experiencing an `org.springframework.data.jpa.repository.query.I...
- Modified
- 6 Mar at 09:48
Open generic type arguments cannot be inferred from the usage
For demonstration purposes and completeness, the following classes are used (): ``` public class A { public IEnumerable<B> B { get; set; } } public class B { public IEnumerable<C> C { get; ...
- Modified
- 18 Jul at 16:47
Newtonsoft.JSON v9.01 + FileNotFoundException (.NET Core Class library)
(VS2015 Update 3 + Patch) I have a plain .NET console application (.NET 4.6) and reference a .NET core class library that targets NetStandard v1.3. The class library has a reference to Newtonsoft.JSO...