How can I load data from url promise before rendering html page in Ionic 2/3?

In my case I have one ionic page showing the selected items in different templates. for each item type I have settings object that can be fetched from server using ngOnint after item selected, I rende...

Select specific columns from table, Entity Framework

I have a question about selecting specific columns from table using entity framework. The problem is, that I'm using `Find()` method to get my desired table, by primary key, then taking from it some d...

7 Nov at 11:48

String.Equals GID returning false?

I have the following C# code in my ASP.NET MVC application. I try to compare 2 `string` using the `Equals` method, with `culture = "vi"`. My code below: ``` string culture = "vi"; System.Threading.Th...

20 Jun at 09:12

Could not parse the JSON file ,Error in Progam.cs asp.net core

I have some issues with the program.cs file, with the version of ASP.NetCORE 2.0 Here's my code ``` public class Program { public static void Main(string[] args) { BuildWebHost(args).R...

14 Jan at 08:18

TypeScript error TS1005: ';' expected (II)

First of all, I've already seen the other posts about error TS1005. A simple `let x: number;` will generate the `error TS1005` during compilation. It's not about a missing semicolon as what the erro...

18 Aug at 14:8

SettingsManager.GetWritableSettingsStore available for import/export in Visual Studio Extension?

I'm using the `SettingsManager` in my Visual Studio extension to store user settings. ``` SettingsManager settingsManager = new ShellSettingsManager(ServiceProvider.GlobalProvider); var store = setti...

dump() missing 1 required positional argument: 'fp' in python json

I am trying to prettify the json format but i am getting this error: ``` import requests as tt from bs4 import BeautifulSoup import json get_url=tt.get("https://in.pinterest.com/search/pins/?rs=ac&l...

25 Sep at 02:34

Is specifying the listening HTTP port via UseUrls the correct way?

I have successfully deployed an asp.net core mvc to windows iot core on my raspberry pi 3. I am not sure whether specifying the listening HTTP port via invoking `UseUrls` as shown in the following sn...

Error in Xamarin.iOS ARKit demo project: “32-bit architectures are not supported when deployment target is 11 or later"

When deploying the ARKit Sample project from [https://developer.xamarin.com/samples/monotouch/ios11/ARKitSample/](https://developer.xamarin.com/samples/monotouch/ios11/ARKitSample/), I get the build e...

24 Sep at 17:46

Pipenv: Command Not Found

I'm attempting to use pipenv. I ran the command `pip install pipenv`, which ran successfully: ``` ... Successfully built pipenv pathlib shutilwhich pythonz-bd virtualenv-clone Installing collected pac...

29 Dec at 01:24

Node - was compiled against a different Node.js version using NODE_MODULE_VERSION 51

I am running a node application on terminal. Have recently upgraded to node v8.5.0, but am getting this error: ``` Error: The module '/tidee/tidee-au/packages/tidee-au-server/node_modules/bcrypt/lib/...

12 Nov at 12:53

Jupyter notebook not running code. Stuck on In [*]

My code was running fine before I did not change anything and I ran it again. Now it doesn't return anything not even an error. It is just stuck on "In [*]". ![See problem visually here](https://i.st...

23 Sep at 20:25

C# Property with no setter - how can it get set from constructor?

How come you can set a get-only auto-property from a constructor? The code below shows how you can set the property from the constructor but using reflection shows that there really isn't a setter beh...

23 Sep at 15:56

iOS Swift - Get the Current Local Time and Date Timestamp

I'm trying to make an attendance app and I am really confused about date and time in iOS and Firebase. I use date as Key, this is the structure of my Firebase database. ``` --Employees --Unique_ID...

23 Sep at 06:38

iText 7.0.4.0 - Converting PdfDocument to byte array

I'm attempting to split a PDF file page by page, and get each page file's byte array. However, I'm having trouble converting each page to byte array in iText version 7.0.4 for C#. Methods referenced i...

28 Aug at 03:11

Get the list of packages installed in Anaconda

Over a period of time, I have loaded a number of packages into the Anaconda I have been using. Now I am not able to keep track of it. How do we get a list of all packages loaded in Anaconda (Windows 1...

21 Mar at 06:4

Correct way to disable model validation in ASP.Net Core 2 MVC

Set up MVC with the extension method ``` services.AddMvc() ``` Then in a controller, and this may apply to GET also, create a method for the POST action with a parameter supplied in the body, e.g. ...

How to write Repository method for .ThenInclude in EF Core 2

I'm trying to write a repository method for Entity Framework Core 2.0 that can handle returning child collections of properties using .ThenInclude, but I'm having trouble with the second expression. H...

How to open a huge excel file efficiently

I have a 150MB one-sheet excel file that takes about 7 minutes to open on a very powerful machine using the following: ``` # using python import xlrd wb = xlrd.open_workbook(file) sh = wb.sheet_by_in...

1 Oct at 22:5

MongoDB: How To Delete All Records Of A Collection in MongoDB Shell?

I've tried ``` db.users.remove(*) ``` Although it returns an error so how do I go about clearing all records?

16 Sep at 10:10

Automatically set appsettings.json for dev and release environments in asp.net core?

I've defined some values in my `appsettings.json` for things like database connection strings, webapi locations and the like which are different for development, staging and live environments. Is the...

Can't use System.Configuration.Configuration manager in a .NET Standard2.0 library on .NET FX4.6

I have an assembly created in . It reads AppSettings using . I have installed nuget package of with version 4.4.X which is suitable for . When I refer this assembly in console app (.Net Core) it is ...

ServiceStack client post body

I run a local ServiceStack service by using the template from the docs. I'd like to be able to POST information. Get works fine, but I need it to be able to POST data including a body. I test this us...

22 Sep at 08:53

How to loop through and destroy all children of a game object in Unity?

I have the following script which is attached to a game object and run when I click a button in the editor: ``` public void ClearChildren() { Debug.Log(transform.childCount); float i = 0; ...

28 Feb at 07:32

How to fix error: The markup in the document following the root element must be well-formed

I put my code in the XML validation website and it gives me this error: > Line 8: 4 The markup in the document following the root element must be well-formed. The line that is having an issue is ...

22 Sep at 01:43