C# ServiceStack.Redis SetAll with expire
First, a link to the library: [ServiceStack.Redis](https://github.com/ServiceStack/ServiceStack.Redis) now, Im working on some generic cache mechanism which supports, for now, in 4 methods: Put, Ge...
- Modified
- 10 May at 13:49
Understanding inplace=True in pandas
In the `pandas` library many times there is an option to change the object inplace such as with the following statement... ``` df.dropna(axis='index', how='all', inplace=True) ``` I am curious what i...
IIS Compilation Error -2146232576 AspNetInitializationExceptionModule
I have a fairly simple C# WebAPI2 project that runs locally but after publishing to IIS on a remote machine (Windows Server 2012 R2 Standard) the web page displays the following (after setting customE...
- Modified
- 10 May at 12:41
What does Override application root URL really do?
The only place on the entire internet I could find an explanation is on [MSDN](https://msdn.microsoft.com/en-us/library/aa983445.aspx): > Specifies an alternative path for the application root URL. U...
- Modified
- 11 May at 07:15
Microsoft Guidelines for Collections: Confused about several parts
I'm looking at Microsoft's [Guidelines for Collections](https://msdn.microsoft.com/en-us/library/dn169389%28v=vs.110%29.aspx) and I find a few parts hard to understand: `ArrayList``List<T>`. Does thi...
- Modified
- 10 May at 01:23
Returning a promise in an async function in TypeScript
It's my understanding that these two functions will have the same behavior in JavaScript: ``` const whatever1 = (): Promise<number> => { return new Promise((resolve) => { resolve(4); ...
- Modified
- 9 May at 23:10
TeamCity fails to build projects using C# 7
TeamCity is throwing errors when I added new the output variable syntax in our latest code update: ``` if (Enum.TryParse(input, out MyProject.ClassificationType classification)) { result.Classifi...
Could not load file or assembly 'Newtonsoft.Json, Version=10.0.0.0' - However binary exists in bin folder
I am trying to do something pretty simple here, and I've been stuck on it for several hours. I feel like I've exhausted almost every option. All I am trying to do is: `JsonConvert.SerializeObject(mode...
- Modified
- 20 Jun at 09:12
Issues in Xunit.Assert.Collection - C#
I have a Class Library, it contains the following Model and Method Model: ``` public class Employee { public int EmpId { get; set; } public string Name { get; set; } } ``` Method: ``` pub...
- Modified
- 1 Apr at 16:47
No 'Access-Control-Allow-Origin' header is present on the requested resource—when trying to get data from a REST API
I'm trying to fetch some data from the REST API of HP Alm. It works pretty well with a small curl script—I get my data. Now doing that with JavaScript, fetch and ES6 (more or less) seems to be a bigge...
- Modified
- 14 Aug at 12:48
Entity Framework How Do I Detach All Objects Of Specific Type From Datacontext?
Currently I am trying to implement code prior to my datacontext.savechanges() method that detaches all objects of a specific type from the data context so that they do not get inserted into the databa...
- Modified
- 9 May at 14:22
How to implement apple token based push notifications (using p8 file) in C#?
For an app with some kind of chat based features I want to add push notification support for receiving new messages. What I want to do is use the new token based authentication (.p8 file) from Apple, ...
- Modified
- 23 May at 12:34
Using ServiceStack and RabbitMQ to send a stream
I am attempting to send a stream using RabbitMQ and Servicestack (v1.0.41 using .NET Core). My Request implements `ServiceStack.Web.IRequiresRequestStream`, and the stream property is set in the clie...
- Modified
- 9 May at 12:7
Check if an array is empty in React Native
How can I check if an array is empty with a IF statment? I have this array 'acessos' that's empty ``` ... constructor(props){ super(props); this.state = { acessos:[] }; } ... ```...
- Modified
- 9 May at 14:41
How to print a Groovy variable in Jenkins?
I have the following code within a Jenkins pipeline: ``` stage ('Question') { try { timeout(time: 1, unit: 'MINUTES') { userInput = input message: 'Choose server to publish to:...
- Modified
- 8 Mar at 09:6
Register with Phone number instead of email using mvc identity
I have a requirement in my web application, that I need to register a user with their phone number instead of email and password. The system should take the input of the user's phone number and send...
- Modified
- 15 May at 05:36
Kotlin static methods and variables
I want to be able to save a class instance to a public static variable but I can't figure out how to do this in Kotlin. ``` class Foo { public static Foo instance; public Foo() { ins...
- Modified
- 8 May at 21:52
Visual Studio Code Order In AutoCompletion
I recently switched to Visual Studio Code and I love it! It starts so quickly andI just enjoy the open source environment more than Visual Studio. But there's one problem that I have encountered that ...
- Modified
- 8 May at 21:40
How to handle calling more specific routes based on a list of clubs returned in the client?
Suppose I have a list of clubs that a customer can belong to. I have a `FindClubs` route that will return all of the clubs that a customer could sign up for. I also have a `FindCustomerClubs` route th...
- Modified
- 8 May at 21:15
changing sort in value_counts
If I do ``` mt = mobile.PattLen.value_counts() # sort True by default ``` I get ``` 4 2831 3 2555 5 1561 [...] ``` If I do ``` mt = mobile.PattLen.value_counts(sort=False) ``` I ...
ServiceStack with EF6 Code First SQL Database
I'm trying to implement Service Stack beside or over an existing WebApi project with an EF6 Code-First SQL Database. I'm running into trouble with setting the foreign key references. My classes loo...
- Modified
- 8 May at 20:29
Round corner for BottomSheetDialogFragment
I have a custom BttomSheetDialogFragment and I want to have round corners in top of Bottom View This is my Custom class that inflates my layout that I want to appear from bottom ``` View mView; @Over...
- Modified
- 17 Feb at 16:30
Unable to set my connectionstring in NLog
The NLog.config file does not set the connection string. ``` <?xml version="1.0" encoding="utf-8" ?> <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001...
- Modified
- 22 Sep at 23:1
Error:Execution failed for task ':app:compileDebugKotlin'. > Compilation error. See log for more details
``` Error:Execution failed for task ':app:compileDebugKotlin'. > Compilation error. See log for more details ``` build:gradle(Module:app) ``` buildscript { repositories { maven { ...
- Modified
- 26 Oct at 06:47
servicestack GlobalRequestFilters request Dto coming null
I have a `GlobalRequestFilters` filter in the `apphost` file that catch the authenticate request, the filter is working fine but the problem is in the dto in `req` , `res` and `requestDto` is null ?...
- Modified
- 7 Nov at 20:5