Latest Questions

Soap request in flutter

I am trying to send a soap request to http://www.dneonline.com/calculator.asmx in flutter to add 2 number ElevatedButton( onPressed: () async {

Unexpected Jest Errors when Mocking Uppy

I'm attempting to mock the Uppy class from the uppy package in a Jest unit test following guidance from this previously answered question. My failing code is be

generate human-frinedly ticks in power scale

I want to find an algorithm to generate ticks in a power scale in a human-friendly way. For example, if the power is 1/2, between the range of [0, 100], without

HTML-Table combine two filter scripts

I have two filters, one is a =>greater than or =<less than for one column and the other is a =>greater than and from an input box for a different colum

bad argument #1 to 'insert' (table expected, got nil)

I have a problem with lockpick on my gmod dark rp server, can you help me please? error: [plogs] addons/plogs/lua/plogs/core_sv.lua:87: bad argument #1 to 'inse

VBScript object.GetInfo() returning attribute names different from .NET DirectorySearcher

I have been tasked with writing a C# replacement for a VBScript process that gets a list of all Active Directory user accounts with various object attributes. T

The iPhone app closes immediately when I open the map [closed]

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString objectForKey:]: unrecognized selector sent to

Remote certificate is invalid because of errors in the certificate chain: PartialChain in Ocelot

I have deployed multiple services to a single Linux VM sitting behind Ocelot. However, when making requests against Ocelot I get a 502 back. Looking at the resu

How to use limit and skip in spring data mongodb repository?

I want query sublist in mongo collections using Spring Data MongoDB. My Code is like public interface SomeRepo extends MongoRepository<SomeDoc, String> {

BLE using ESP 32

I am trying to program a BLE client using an ESP32. I have used the attached code (which is the example code from the example section). My problem right now is,

Changing value of existing valuelabels via Syntax

I'm currently transforming my survey results for analysis. The survey program I used (limesurvey) automatically generates value labels, but I need to change the

Laravel - multiple select query

I want to pull data from two columns in my database table, I'm not very good at querying SQL. When I do this query I get this error: Expression #2 of SELECT lis

Telethon give an error when scrap group more than 6K member ('ChannelParticipants' object is not subscriptable)

Telethon give an error when scrap group more than 6K member ('ChannelParticipants' object is not subscriptable) all_participants = [] all_participants = client.

running multiple processes, each with a different set of values for the environment variable

I have a number of jobs. Typically I start the jobs manually by opening a number of terminal windows, and in each terminal window setting certain environment va

Relational data in react-query

I have a REST api which has this endpoint for getting an assignment - '/classes/<str:code>/assignments/<int:assignment_id>' I have created a custom

Find screen resolution in Swift [duplicate]

I am writing an iOS game in Swift using Spritekit and want to find the screen resolution to properly place my sprites. I found multiple ways o

MariaDB losing data when importing CSV

I'm trying to import a CSV file into MariaDB. I've created the table with "varchar(300)" for each field, so it's not missing space. Also, when I loaded the file

Can't get the Profile instance that have logged user as field

So i have here a 'create_project' view where l’m trying to assigne to the 'owner' field of project instance created a 'profile of the current user logged

VUE3 dataLabels stacked column apex chart

I want show only top total datalabels but is dublicate label dataLabels: { enabled: true, offsetY: -20, style: { fontSize: "12px", colo

Flutter routing after v2 upgrade null check operator

I have recently updated my flutter project to the V2 sdk I am having an issue with the null check operator for my routing when I try and click on a route the fo

Wait time in a CSS keyframe

On my CSS code, I use keyframes to animate my text. I would like to add a FadeOut to allow a FadeIn of the text, a display of this one during 10s then a FadeOut

Leetcode Q9 Palindrome Number same code works in Java but not in C++

I tried solving this problem: https://leetcode.com/problems/palindrome-number/ using code: class Solution { public: bool isPalindrome(int x) { int r

Creation of an index with a year base

I have a simple features panel data with the murders in the 32 Mexican states through 24 years. I want to create an index taking as a base the first year in my

Create color palette from color

I have elements that should be colored by some color. However the bigger index of the element the 'lighter' shade of said color it should be, but never gray or

"SyntaxError: Unexpected end of input" raised in near-vm folder during near-sdk-as yarn installment

When I tried to install near-sdk-as on my laptop (Intel-based macOS 10.13) with the command: yarn add -D near-sdk-as I got the following error: ❯ yarn a

Smart for loop in python for a portfolio performance

this is my first question here, so go easy on me. I've computed a certain portfolio in python, for which I've gotten a dataframe (or list for that matter) of ar

Trying to print or access value inside a multidimensional VBA array

'For the most part, I understand how arrays work but apparently not multidimensional ones in VBA. Below is a simple subroutine in which I want to debug.print/ac

Behaviour of :defined pseudo selector class

I had a script as follows const custElem = document.createElement('my-elem') let res = custElem.matches(':defined'); console.log(`custElem.matches(':defined

How to wait for all Concurrent::Promise in an array to finish/resolve

@some_instance_var = Concurrent::Hash.new (0...some.length).each do |idx| fetch_requests[idx] = Concurrent::Promise.execute do response = HTTP.get(EXTD

Algorithm for drawing profiles using long thin rectangles

I want to draw profiles similar to the ones at https://steeldoor.org like: programmatically. (Probably in FreeSCAD, but possibly Python). I want to define a g