@HostBinding and @HostListener: what do they do and what are they for?
In my meanderings around the world wide interweb, and now especially the [angular.io style docs](https://angular.io/guide/styleguide), I find many references to `@HostBinding` and `@HostListener`. It ...
- Modified
- 13 Dec at 23:26
Showing classes from indirectly referenced packages in .NET Core
I am trying to implement basic UoW/Repository pattern with ASP.NET/Entity Framework Core and I have encountered very troubling behavior. My solution consists of 4 projects in total. , where my entity ...
- Modified
- 20 Jun at 09:12
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...
- Modified
- 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...
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...
- Modified
- 14 Nov at 07:12
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...
- Modified
- 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...
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,...
- Modified
- 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; } ...
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 ...
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 ...
- Modified
- 22 Jun at 15:45
#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...
- Modified
- 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...
- Modified
- 21 Jun at 17:6
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...
- Modified
- 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 ...
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. ...
- Modified
- 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)` ...
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...
- Modified
- 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 = ...
- Modified
- 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...
- Modified
- 21 Jun at 12:33
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...
- Modified
- 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...
- Modified
- 23 May at 10:31
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...
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...
- Modified
- 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...
- Modified
- 22 Jun at 10:7