Questions

Convert Json string to Json object in Swift 4

I try to convert JSON string to a JSON object but after `JSONSerialization` the output is `nil` in JSON. Response String: ``` [{\"form_id\":3465,\"canonical_name\":\"df_SAWERQ\",\"form_name\":\"Acti...

15 Nov at 12:3

IDX10603: The algorithm: 'HS256' requires the SecurityKey.KeySize to be greater than '128' bits. KeySize reported: '32'. Parameter name: key.KeySize

I was just working with Asp.Net Core Web API, and implementing Authentication. And I am calling this API from an Angular Application. But I am always getting an error as below. > IDX10603: The algori...

1 Feb at 14:36

How to do a LIKE in Entity Framework CORE (not full .net)

There are Q+A's for Entity Framework LIKE's in the Full .net framework: [How to do SQL Like % in Linq?](https://stackoverflow.com/questions/835790/how-to-do-sql-like-in-linq) [Like Operator in Entity ...

What are pipe and tap methods in Angular tutorial?

I'm following the tutorial at [https://angular.io](https://angular.io), and I'm having trouble finding documentation; specifically for the methods `pipe` and `tap`. I can't find anything on [https://...

9 Apr at 15:50

System.Net.SecurityProtocolType.Tls12 definition not found

I'm trying to add the following line of code to the Global.asax file in a website project. ``` System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; ``` The vs201...

14 Nov at 09:45

CSS class for pointer cursor

Is there any CSS class or attribute for `pointer:cursor` in [Bootstrap 4](https://getbootstrap.com/docs/4.0/components/buttons/) specially for button or link? ``` <link href="https://maxcdn.bootstrapc...

16 Feb at 20:12

EF Core 2.0.0 Query Filter is Caching TenantId (Updated for 2.0.1+)

I'm building a multi-tenant application, and am running into difficulties with what I think is EF Core caching the tenant id across requests. The only thing that seems to help is constantly rebuilding...

Save and load weights in keras

Im trying to save and load weights from the model i have trained. the code im using to save the model is. ``` TensorBoard(log_dir='/output') model.fit_generator(image_a_b_gen(batch_size), steps_per_...

13 Nov at 14:15

How to import keras from tf.keras in Tensorflow?

``` import tensorflow as tf import tensorflow from tensorflow import keras from keras.layers import Dense ``` I am getting the below error ``` from keras.layers import Input, Dense Traceback (mos...

Microsoft.CSharp.Core.targets missing

I am building a webservice project on a TFS2017 Update 3 with build tools 2017. I get the following error > C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft...

Distribution certificate / private key not installed

Using Xcode 9.1, after building an iOS app, I want to archive it and upload it to the appStore for beta-testing. But I get the following issue after clicking the button `Upload to the App Store...` an...

29 Oct at 16:40

GitHub Commit Error: Permission denied fatal: Unable to process path ~/App_Data/aspnet-MyProject.mdf

I am attempting to commit an update to my ASP.Net MVC project using GitHub integration in Microsoft Visual Studio 2017. I am working on Code-First Migrations. After my previous successful commit, I ...

Permission denied when installing npm modules in OSX

I'm trying to install `node-g.raphael`, and I'm getting the following error: ``` Bender-03:htdocs alfred$ sudo npm install node-g.raphael --save Password: > contextify@0.1.15 install /Users/alfre...

12 Nov at 22:37

Angular (4, 5, 6, 7) - Simple example of slide in out animation on ngIf

What is the bare minimum and 's native way to and a container element? e.g. ``` <div ngIf="show"> <!-- Content --> </div> ``` Content (from top to down just like jQuery.[slideDown](http://a...

What is the difference between MSTest.TestAdapter vs MSTest.TestFramework and when do I need which one?

What is actualy the difference between `MSTest.TestAdapter` vs `MSTest.TestFramework` and when do I need which one? In the NuGet descriptions you can read: > The adapter to discover and execute MSTes...

Conda activate not working?

``` gonzo  ~/a/packages  conda env list # conda environments: # ppo_latest /nohome/jaan/abhishek/anaconda3/envs/ppo_latest root * /nohome/jaan/abhishek/anaconda3 go...

12 Nov at 07:3

C# 7 Compiler Error - Pattern Matching

For some reason, `M1()` causes a compiler error, while `M2()`, which does the same thing, causes no error. Any idea why? Using `false ==` should be the same as using the not operator, `!`. > Use of ...

11 Nov at 20:54

INSTALL_FAILED_USER_RESTRICTED : android studio using redmi 4 device

[](https://i.stack.imgur.com/TsZ3Z.jpg) Got this freaky error ``` Installation failed with message Failed to finalize session : INSTALL_FAILED_USER_RESTRICTED: Install canceled by user. It is possible...

17 Aug at 14:18

What is the best Environment.SpecialFolder for store application data in Xamarin.Forms?

I'm new in Xamarin.Forms and mobile development. I want to store user and encrypted password of my application user in file on mobile device. I'm using xamarin forms technology. I kwnow that there are...

No provider for HttpClient

After upgrading from angular 4.4 to 5.0 and after updating all HttpModule and Http to HttpClientModule I started to get this error. I also added HttpModule again to be sure it's not due to some depe...

11 Jun at 07:45

PropertyBuilder<T> Does Not Contain A Definition For HasColumnType

I just built up a bunch of POCO classes and a DbContext class utilizing EntityFramework Core and the Scaffold-DbContext NuGet Package Manager Console command. It generated a bunch of code and most of...

Using "await" inside non-async function

I have an async function that runs by a setInterval somewhere in my code. This function updates some cache in regular intervals. I also have a different, synchronous function which needs to retrieve ...

10 Nov at 18:57

Inheritance security rules violated by type: 'MySql.Data.Entity.MySqlEFConfiguration'

I've created an asp.net web application which should connect to a mysql database. I´m using entity framework 6 with an ado.net entity data model. I´ve also followed the following tutorial: [https://d...

npm WARN npm npm does not support Node.js v9.1.0

I updated to the latest node v9.1.0 and now npm doesn't work. > npm WARN npm npm does not support Node.js v9.1.0

10 Nov at 15:31

"Predefined type 'System.*' is not defined or imported" Error, visual studio code, omnisharp

I'm having an issue with the mentioned error in several .net core applications. I'm using vs code version 1.18.0 but the error started to appear already in the previous version. The error appears in ...