Generate int value from HttpStatusCode

Here I want to return integer like: ``` { "statusCode": "200" } ``` I am not getting `statuscode` as a integer. ``` var response = new HttpResponseMessage(); response.StatusCode = Request.Crea...

22 Jun at 09:12

How to destroy JWT Tokens on logout?

I am using jwt plugin and strategy in hapijs. I am able to create jwt token while login user and authenticate other API using the same token through 'jwt' strategy. I am setting the token in `reques...

13 Nov at 10:52

No notification sound when sending notification from firebase in android

I am sending push notification from firebase to my Android Application. but when my app is in background firebase onMessageReceived method is not called instead firebase send notification to system fo...

How to generate an .xlsx using php

I need to generate an Excel file with extension `.xlsx`. Here is my simple code: ``` $file = "test.xlsx"; header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); h...

23 Oct at 11:30

reading and doing calculation from .dat file in python

I need to read a .dat file in python which has 12 columns in total and millions of lines of rows. I need to divide column 2,3 and 4 with column 1 for my calculation. So before I load that .dat file, d...

22 Jun at 02:59

force encoding off for one service?

I am trying to implement an RSS feed that is linked through an Outlook client. The feed works on every machine except my development machine. When looking at the results coming back from the service,...

21 Jun at 21:16

Ignore [JsonIgnore] Attribute on Serialization / Deserialization

Is there a way I can ignore Json.NET's `[JsonIgnore]` attribute on a class that I don't have permission to modify/extend? ``` public sealed class CannotModify { public int Keep { get; set; } ...

21 Jun at 20:52

Upgrade version of Pandas

I am running Python on a Windows machine at the following path: ``` C:\WinPython-64bit-3.4.4.1 ``` I am trying to upgrade to the latest version of pandas (currently running '0.17.1') but am having ...

1 Jul at 22:55

Can you disable count (Total) for ServiceStack AutoQuery?

I have AutoQuery setup against a simple join of two tables with approximately 1.3 million rows. Using the built in mini profiler to measure the SQL timings, the query to return the first 100 rows (no ...

#1055 - Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column this is incompatible with sql_mode=only_full_group_by

my Query : ``` select libelle,credit_initial,disponible_v,sum(montant) as montant FROM fiche,annee,type where type.id_type=annee.id_type and annee.id_annee=fiche.id_annee and annee = year(current_t...

16 Mar at 13:24

Using deep learning models from TensorFlow in other language environments

I have a decent amount of experience with TensorFlow, and I am about to embark on a project which will ultimately culminate in using a TensorFlow trained model in a C# production environment. Essentia...

Call child method from parent

I have two components: 1. Parent component 2. Child component I was trying to call Child's method from Parent, I tried this way but couldn't get a result: ``` class Parent extends Component { ren...

17 Dec at 17:50

How to sort dates from Oldest to Newest in Excel?

I have code that brings data in a database to Excel. For it to be versatile the cells are formatted as "General". This worked. Now someone wants to sort dates "Oldest to Newest" but the only option ...

2 Dec at 22:59

IIS Server & ASP.Net Core - 500.19 with error code 0x8007000d on httpplatformhandler tag

I am getting the following error when I try to launch my ASP.Net Core App using IIS Server v7.5 ... I published the website (File System option in Visual Studio) to a specific directory successfully. ...

12 Aug at 05:52

CGRectMake, CGPointMake, CGSizeMake, CGRectZero, CGPointZero is unavailable in Swift

After converting code to latest swift 3.0 I am shown this error. [](https://i.stack.imgur.com/yvqDR.png)[](https://i.stack.imgur.com/IsyeI.png) Also tell me solution for `CGSize = CGSizeMake(0,0)` ...

9 Nov at 05:2

How to change application icon in Xamarin.Forms?

I replaced all the images everywhere (by this I mean in drawable folders and all Windows Assets folders and iOS Resources folder), but it still shows me the default Xamarin icon for the app. I tried t...

21 Jun at 13:26

Sending an email with attachment using SendGrid

``` var myMessage = new SendGridMessage(); myMessage.From = new MailAddress("info@email.com"); myMessage.AddTo("Cristian <myemail@email.com>"); myMessage.Subject = ...

22 Feb at 08:36

Adding stored procedures to In-Memory DB using SqLite

I am using In-Memory database (using ServiceStack.OrmLite.Sqlite.Windows) for unit testing in servicestack based web api. I want to test the service endpoints which depends on stored Procedures throug...

How to set top padding of Entry in Xamarin Forms

In my Xamarin forms application, I need to set a top padding for Entry control in iOS. I created renderers for Entry , but only I am able to set Left and Right padding. Please help me. Following is th...

16 Dec at 15:42

Add project.json package references to a VSIX

When trying to add references to a VSIX, it normally pulls it from the references in the .csproj. However, if the references are not in the .csproj, because they now are in a project.json file, then t...

Get all documents of a collection using Pymongo

I want to write a function to return all the documents contained in `mycollection` in mongodb ``` from pymongo import MongoClient if __name__ == '__main__': client = MongoClient("localhost", 270...

3 Jan at 14:53

The specified version string does not conform to the required format - major[.minor[.build[.revision]]]

I want to append our application version with the build number. For example, `1.3.0.201606071`. When setting this in the AssemblyInfo, I get the following compilation error: > Error CS7034 The spe...

21 Jun at 10:0

Abstract class fields redundancy C#

I have base abstract `Goods` class and inherited `Book` class. ``` abstract class Goods { public decimal weight; string Title, BarCode; double Price; public Goods(string title, stri...

22 Jun at 10:7

Git refusing to merge unrelated histories on rebase

During `git rebase origin/development` the following error message is shown from Git: ``` fatal: refusing to merge unrelated histories Error redoing merge 1234deadbeef1234deadbeef ``` My Git versio...

5 Jun at 11:27

Flags and << operation on enums? C#

Ok so I am new to C#, and for the life of me I cannot comprehend what exactly the below code (from a legacy project) is supposed to do: ``` [Flags] public enum EAccountStatus { None = 0, Free...

21 Jun at 05:55