Latest Questions

how to parsing web socket response (JSON) in flutter

I have a task, I want to take the data through the web socket, and display them on the screen of the application. But I did not even find a normal example to do

In D3.js, what is the difference the graphing function required to make a line graph and one required to make an area graph?

I have an application which renders a line graph from programmatically created datasets. I would like to allow users to swap between different visualization mod

Eloquent Where using CASE WHEN and withMin()

I have a query like this: Product::withMin('promotions as promotion_price', 'promotion_products.price') ->orderByRaw('CASE WHEN promotion_price IS NULL THE

CPU Percentage Scan

I need to scan through all running processes and filter the ones with high usage. I currently have the code bellow but is taking too long to scan through them.

How to capture names of clicked folders in the right pane of a GtkFileChooserWidget (GTK4)?

My box runs Ubuntu 21.10. I use GTK4, C-language and XML description of the GUI. I am new to GUIs in general, and to GTK4 in particular. The program uses a GtkF

how do I delete a Gerrit account in version 2.10?

I am trying to delete a user account on our Gerrit 2.10 server. I found this article here on StackOverflow, but it applies to version 3.0 and references branche

How to nest formatted strings in XAML?

Is it possible to nest formatted strings in XAML without creating a custom class? Here is an example of what I want to achieve: Format a string, e.g. "inner sta

Test functions cannot both take a 'done' callback

I'm trying to create a simple test with nestjs, and I'm get this error Test functions cannot both take a 'done' callback and return something. Either use a 'do

I was Getting below error when i'm to import csv file using Logstash 8.1

I'm getting below error when I was executing below command in my cmd prompt C:\Program Files\Elk Stack\logstash-8.1.2\bin>logstash -f ./logstach.conf Logstac

vuejs basic conditional rendering issue

I simply just want to show the span if the name is found in the data. If its not found in the data, I want the span to hide. I am using simply v-if or v-else.It

shape '[1]' is invalid for input of size 2048

I am trying the extract features from images using resnet 152 model. It was working just fine with resnet18 model but when I try to use resnet152 model, it show

c# Cefsharp how to make correct sequence of JavaScript actions on the web site

These sequences of actions work with Thread.Sleep, somewhere in 1 second, somewhere in 2 seconds. I think using Thread.Sleep/Task.Delay is not good. Because it

Command failed: adb shell am start

Getting error while trying to run this command npx react-native run-android for my react native android app

Rails 7 css assets are not working in production, need help understanding how the asset pipeline works without webpacker

Trying out rails 7, with tailwind and postcss. I have a few stylesheets in assets/stylesheets, which I import through a file called imports.css in the same fold

Dependencies issue while installing model card toolkit

Model Card --> Model Card toolkit I want to install a model card toolkit in my python virtual environment through this command: pip install model-card-toolk

Count and list all values

I'm trying to loop through cells of a specific column, find new values in those cells, count how many times a specific value is found and return the values alon

Challenge: Short-Circuiting a Loop - Interview Practice

Question: Complete the function holidays that accepts an array of strings and iterates through the array. If the array contains the string "October", return "Ha

Blender to unity animation issues

I have a model with animations in blender, which I then put into my unity file as a FBX file. Anyone know what I did wrong?

OS X: #include <CoreFoundation/CoreFoundation.h> leads to error: unknown type name 'dispatch_block_t'

$ cat t1.c #include <CoreFoundation/CoreFoundation.h> $ gcc t1.c In file included from /usr/include/dispatch/dispatch.h:51, from /System

How to test getters in a state class using bloc_test?

Say I have a state class class MyState extends Equatable { final bool isSaving; final String errorMsg; const MyState({ this.isSaving = false, thi

Evaluate a Google Sheets math expression with formula

I have some strings inside Google Sheets, containing simple arithmetic expressions: Is there a way to evaluate these expressions without the need for writing a

How to make the graphics for a Graph theory undirected graph

I have been trying for the last few days to implement a graph into a C# Windows Forms app, but I have been unsuccessful at this task. I haven't been able to fin

Snowflake View too slow to query with dynamic pivot

I have created a stored procedure in Snowflake to dynamically pivot the table and create a view from JSON data. The query creates a view with 370 columns as I d

how do I save the videos in an specific bitrate using ffmpeg?

I am trying to save some videos in specific bitrate (8000k) and for this, I used the following code: ffmpeg -i input_1080p60 -c:v libx264 -pix_fmt yuv420p

Scroll inside div doesn't wrk with Puppeteer

I try to scroll area inside div using Puppeteer. I tried to follow these answers: https://stackoverflow.com/a/67490337 and https://stackoverflow.com/a/52031392

Django: The QuerySet value for an exact lookup must be limited to one result using slicing

i am tring to access a page using a slug url, but i keep getting this error The QuerySet value for an exact lookup must be limited to one result using slicing.

SwiftUI navigationLink isActivie not working [closed]

Purpose My intention is to come back from view3 and return directly to view1 Current Status My view hierarchy here is view1 -> view2 ->

Celery task is pending in the browser but succeeded in the python shell of Django

I'm using Django, Celery, and RabbitMQ for simple tasks on Ubuntu but celery gives no response. I can't figure out why the task is pending in the browser, while

How to know if a support library already supports AndroidX?

I have project in unity, that uses Mapbox, Mapbox includes the following support library: support-v4-25.1.0.aar This library comes as an .aar file and NOT as a

conda install and network issues

I am running: conda install spyder-kernel=2.1 and get back: Collecting package metadata (current_repodata.json): failed CondaHTTPError: HTTP 000 CONNECTION FA