Latest Questions

How can I access and process nested objects, arrays or JSON?

I have a nested data structure containing objects and arrays. How can I extract the information, i.e. access a specific or multiple values (or keys)? For examp

How to Get spid using flyway tool?

I am using a flyway tool to run SQL script. I have requirements where I need to return the SPID during the run time in the flyway. Are there any config paramete

i would like to send html content with css to email using php. this i got so far. all work but the content that was sen in email is not interpreted

this is the code where i send email. the file_get_contents(); i retrieve the content but in plain format text. the css style didnt read. <?php use PHPMaile

pandas dataframe function mean() not working correctly to ignore nan values

By default, the mean() method should ignore the nan value, but for my case, it didn't work. It still takes the nan value. a = np.array([1,9]) b = np.array([3,na

Mysql Select INNER JOIN with order by very slow

I'm trying to speed up a mysql query. The Listings table has several million rows. If I don't sort them later I get the result in 0.1 seconds but once I sort it

Reordering boxplot (ggplot) with scale_x_discrete(limits=(...) results in Warning message: Removed 103 rows containing missing values (stat_boxplot)

Probably a user error but I can't find it for the life of me. Trying to rearrange the order of factors in a boxplot I am making using ggplot using the, "scale_x

c# how streamwrite output file and overwrite if file does not exist

namespace shush { public partial class Form1 : Form { private void btnFinish_Click(object sender, EventArgs e) {

Scala explode followed by UDF on a dataframe fails

I have a scala dataframe with the following schema: root |-- time: string (nullable = true) |-- itemId: string (nullable = true) |-- itemFeatures: map (nulla

Calling API with JSON format gives the unknown format error

I am calling an API with groovy code with Jason format data and the response we receive "Response code was 500" "��VJ-�/�M-.NLO-V

Installing Node Application on a server. Apache npm pm2

I have installed a node js application (myapp.js) on a server with a particular IP. I have npm installed and started the application I have done this before but

Continuous scraping (each second) of dynamic webpage with selenium

I am scraping website with selenium successfully using following code: import os import time from selenium import webdriver from selenium.webdriver.common.by im

How to specify multiple principals in a policy document AWS CDK

I am working on cdk script and I want to specify multiple principals such as "Principal": { "AWS": [ "arn:aws:iam::AWS-account-ID:user/user-name-1",

Can't insert data with mongoDB atlas; Error: queryTxt ETIMEOUT

I've tried to connect to mongodb with node.js, but get the following error. Although I've tried several available solution in this platform, like, changing my D

What is the necessary lifetime for SetWindowTextA string parameter

I have a program that creates a std::string s on the heap and passes it to the SetWindowTextA(hWnd, s.c_str()) My question is how long does that string need to

Heremaps native crash (SIGABRT)

We're investigating on an app developed by another team a native Crash on Android related to HereMaps (HERE SDK Navigation edition, navigate-4.10.2.0.7878) with

My first Android app was going great until I tried getting it signed

I've been developing using Flutter/Dart in Android Studio since December and want to finally open it up to others for internal testing. Whenever I upload my app

Rinohtype/Spinx - How to use python variables in stylesheet

I use sphinx to generate HTML and PDF documentation, and was using latex until now to generate PDF, but now looking at swapping for rinohtype. I'm looking at se

Cannot find name 'PhoneOrOauthTokenResponse' during firebase integration in Angular 13

I have created Angular project ng new <projectname> Then installed Angular fire ng add @angular/fire When I compile and run the project ng serve I am s

How to pass out parameter to function from Swift FFI?

Let's say I have a function defined in Rust, which looks like this: #[no_mangle] pub unsafe extern "C" fn do_something( my_value: *mut MyStruct, some_pa

findOneAndUpdate - document query > 1000

So I have a collection that has over 1million documents clearly, I don't need to search 1000 or more documents as it should only be updating the latest document

ARCore: not getting features points on white or any plain surface

I'm using ARCore in my Android app and required features points from ARCore. But I'm not able to get features points for the plain white surfaces. If I try it w

Is it okey to use side effects in the useState hook callback?

Imagine situation: const [value, setValue] = useState(false); const setSomething = (val) => { setValue((prev) => { fn(); dispatch(action); // or an

trying to get administrative permission(without uac) in batch file

@echo off goto check_Permissions :check_Permissions SET "C:\Users\BDAS\Desktop\check_admin=%~dp0"&SET "check_admin=%~dpf0" net session >nul 2>nul &am

R Shiny slider and plot are not populating on Linux RedHat. Any idea what's going on?

I'm trying to host a shiny app on a Linux RedHat server. The app works perfect when running locally. However, neither the slider or histogram is showing while o

Last element is printed twice, Android Studio Cursor

My code creates a duplication of the last entry in the cursor. The text in the textview looks something like this: Peter,23 Paul,40 Anastasia,20 Anastasia,20 H

Error when run in command line "npm install firebase"

C:\Users\user\Desktop\CarInventory>npm install firebase npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: 3d-reac

shell read seems to be getting newlines from file (fifo or regular)

What I want to achieve is to have a shell script hooked up onto a fifo and react to certain commands that would read out (with the usual read command). Now this

why can't I export 'combineReducers' (imported as 'combineReducers') was not found in 'react-redux'

Here is my main js code and why combine all reducer cartredux\src\redux\reducers\main.js import {combineReducers} from "react-redux"; import { cartreducer } fr

I am attempting to connect my Android blu130 to the "existing" wifi signal with zero success. Help, anyone?

I currently reside in my parent's guest house and I wish to connect my Android blu130 to an existing wifi connection in the "main house." My ostensible purpose

Write elasticsearch data in json file

I have 3 node elasticsearch cluster and I put data in index name pp_index in json format. I want to read that data and write in json file. I can read data from