Categories
Mastering Development

how to add flexible height to showGeneralDialog on Flutter?

I added padding for transparent outside. But fixed height. How to change it? padding: EdgeInsets.fromLTRB(20, 50, 20, 50), Is it possible to remove above this line and flexible(center)? I am expected like this flexible height alert. click here onPressed: () { showGeneralDialog( context: context, barrierColor: Palette.black.withOpacity(.3), barrierDismissible: true, transitionDuration: Duration(milliseconds: 400), pageBuilder: (_, __, ___) […]

Categories
Development

TypeGraphQL : @Arg Type Error when using a GraphQL class imported from a local Package

I have created a local package with several objects. this package is aimed to be installed via npm in other programs in order to benefit from a common librairy of objects. Among them, I have created a simple class to create a AppoloServer, to be used with TypeGraphQL entities, types and resolvers: export class ClsApolloGraphQlServer […]

Categories
Development

How to dynamically fill/expand a 2d Array using a callback function in Ramda.js

I want to create a dynamic function that can simplify work with array-transforming callbacks in order to fill and expand 2d Array. Outlining the challenge I would like to create a function like this finalFunction({ array, header, …args }, callbackFunctionToTransformArray) Restrictions The given array is always a 2d array The header is supplied as a […]

Categories
Angular Development

Angular Version 8 – Every effort to do NG NEW ends in npm ERR! Error: EPERM: operation not permitted, unlink

I run the following commands as administrator on a standard Windows 10. I installed angular (ver 8), as per book… D:\>npm install -g @angular/cli C:\Users\ThinkInCode\AppData\Roaming\npm\ng -> C:\Users\ThinkInCode\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng > @angular/cli@8.3.8 postinstall C:\Users\ThinkInCode\AppData\Roaming\npm\node_modules\@angular\cli > node ./bin/postinstall/script.js + @angular/cli@8.3.8 added 244 packages from 185 contributors in 155.387s D:\>cd wamp64\www\NGAPPS\UDEMY D:\wamp64\www\NGAPPS\UDEMY>ng –version _ _ ____ _ ___ / \ […]

Categories
Development

Converting Morse Code encoder to decoder in Processing 3 Problem

I’m trying to do Morse Code Decoder on Processing 3. I have codes for Morse Code Encoder. But I’m struggling about convert encoder to decoder. Also I want to enter Morse Code with clicking, but it’s going to be next step after the conversion. I tried to change inputs and outputs and alphabets to the […]

Categories
Development

`An uncaught Exception occurred on “main” thread` Error happens on fresh app

I need help. When I create a fresh code sharing app with command ng new -c=@nativescript/schematics ns6 –shared –style=scss, There is an error like below on tns run andriod. Can somebody help me? It is not working on iOS also. But It’s working without code sharing. One thing to note is that: I installed Nativescript […]

Categories
Angular Development

.NET core angular project cannot send data if the connection is not in the connected state?

I’m running a .NET core angular project in VScode on windows and I’m trying to get signalR to work but unfortunately things don’t seem to be going my way.Before when I had my angular and .net core projects split up(web API and angular project separate) with the same code, this issue did not occur. It’s […]

Categories
Development

How to map from ViewModel to Model with base properties

I want to map ViewModel to Model with base class but without adding base class to ViewModel. I would like to keep my classes’ structure. I have tried to use Include, IncludeBase, IncludeDerivered but I can’t find good configuration. Here is my code public class Program { private static void Main(string[] args) { Console.WriteLine(“Hello World!”); […]

Categories
Development

Apollo data object is empty after sumbit a mutation

I am currently using apollo to make a transfer (adding a user) on my project and when the response my object data is empty. Do you know why ? this is my schema type type UserKyrios { _id: ObjectId! firstname: String! lastname: String! email: String! password: String! creationDate: Date } `; and this is my […]

Categories
Development

Apollo data object is empty after sumbit a mutation

I am currently using apollo to make a transfer (adding a user) on my project and when the response my object data is empty. Do you know why ? this is my schema type type UserKyrios { _id: ObjectId! firstname: String! lastname: String! email: String! password: String! creationDate: Date } `; and this is my […]