All Questions

9 votes
4 answers
19k views

Flutter FCM iOS Issue - APNS device token not set before retrieving FCM Token

I am using firebase_messaging v9.0.1 in my Flutter application. On configuring this library based on the https://pub.dev/packages/firebase_messaging/example, I am able to receive the notification for ...
0 votes
0 answers
3 views

Not getting auto completion for generic type arguments

I have this function function updateProperty<T, K extends keyof T>(obj: T, key: K, value: T[K]): void { obj[key] = value; } And I have this interface and object: interface ExampleObject { a:...
1 vote
1 answer
15 views

Why does TypeScript not give errors for class instances not included in an array type? [duplicate]

I'm trying to ensure that a function only accepts instances of specific classes defined in an array. Here's my TypeScript code: class Types { } class T1 extends Types { } class T2 extends Types { } ...
6 votes
3 answers
2k views

OpenCV Seamless Cloning shift position after finish the process

I am trying to used the seamsless cloning to blend to image together. but I notice that after using the seamsless clone function the area in the mask that I want to transfer is shift upward. So I ...
0 votes
2 answers
8k views

how to run laragon virtual host on port 82

i have checked auto virtual hosts on my laragon, this virtual host was created, but since i am running on port 82 and not the default port 80 i cannot access sample.dev:82 nor localhost:82/...
0 votes
0 answers
5 views

React Native Custom Drawer Content Not Rendering

Nothing in my custom drawer content is rendered in my app after being passed into my drawer navigator. (The drawer is literally just a white screen). Here is my AppNavigator.tsx: const Stack = ...
0 votes
0 answers
5 views

Duplicate Items while converting an object to a node inside two observablelists JavaFX

I am creating a Report Management Software that have a list of clients as it's property. I have two observablelists(data object, node) that I've mapped which creates a node based on the data model, ...
0 votes
1 answer
9 views

The command "yarn babel-node" throws an error

In a webpack project of the environment of VSCode,to learn ES Module and CommonJS,firstly I use the command "yarn add @bebel/node @babel/core @babel/preset-env --dev" to import some ...
0 votes
0 answers
5 views

I can't query media by id (pk) only for name and alternative titles

I am trying to write a query to filter media by category, id, name and alternative titles. When I pass category and name or alternative title the query work normally, but when I pass only category and ...
0 votes
1 answer
13 views

Reclassifying a large rasterstack in Terra based on another raster

I'm trying to do the following: I have a stack of monthly temperature rasters, and from this I calculate the 90th quantile of the stack. Then, I want to have a count for how often each raster cell is ...
0 votes
0 answers
5 views

Element type is invalid: expected a string or a class/function but got: undefined React Native

Here is the error: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your ...
8 votes
3 answers
2k views

Instanceof for generic with <?> or without <?>

I have a question about generics in Java and instanceof operator. It's immposible to make such instanceof check: if (arg instanceof List<Integer>) // immposible due to ...
1 vote
1 answer
902 views

How is an integer formatted to a String with comma separators for thousands in Swift? [duplicate]

I want to be able to convert any integer, I'm only using Int and UInt16 at the moment, into a String with a separator to group the thousands, if any. For example the value 12345 as input would output ...
1 vote
0 answers
12 views

Why does TypeScript not show never type in error when intersecting an object type with a string? [duplicate]

I am trying to understand why TypeScript does not explicitly show a never type in the error messages when intersecting an object type with a string type. Here is my code: type Test1 = { b: number; ...
-1 votes
2 answers
604 views

How do I use user typing functionality in node.js chat app?

I'm trying to make a node.js chat app using socket.io, I want to add a functionality that "user is typing" and online users functionality. How do I add this?

15 30 50 per page
1
2 3 4 5
1613472