Latest Questions

Load item description from json file

Recently i saw a post about someone making a program that could control a computer it was launched on. (it was this one) Add commands to user input I was really

Redis: single big hash vs many keys

I have some data which has million key-value pairs. So which way is better to store them in redis, single key with super big hash which has million key-value pa

flutter dynamic links open web page when app is not installed

So, I want to redirect user to my web app created in flutter with specific item id when user don't have mobile application installed Here is my code for create

(CEP/ExtendScript) Is it possible to include a JSX file from a server?

I am developing an extension for InDesign and I would like to store the jsx file on a server. This would allow me to update the plugin if I change something in

Change Feed Processor Issue

I am trying to test change feed processor in .net. I have tried to use the change feed processor from the beginning (as mentioned in documentation). When I star

Property 'accessToken' does not exist on type 'User' && firebase is not defined

I am using TypeScript in my React application and I have an error "Property 'accessToken' does not exist on type 'User'" when getting an accessToken of user My

Panda dataframe replace() method for row numbers

I need to replace some values in a column with a specific value using the row numbers list of the required values as an array like following array.Can I use dat

SQL If Value Exists then return that otherwise return whole table

Note: This is an over simplified version of what I am trying to do. Let's say I have a table called USERS that has FIRSTNAME, LASTNAME. Contents are: JOHN SMI

Set a time varying variable to its initial value in a dataframe

I have this dataframe, which I have data for US's states population for different time periods, I want to set the population of every state to its initial value

Return the data of a model directly instead of a dictionary Express.js and Mongoose

Probably the title isn't very clear and is a bit confusing, and to be honest, I do not really know how to ask this question since I'm new to JavaScript and Mong

How can I set variable php and mysql code

I want to set a variable "name", I tried: if(isset($_POST['name'])), But not result. I was also looking for other options but could not get results. I have a PH

I am making a discord.js bot and I want to know if there was an error

I am using the following code to figure out if there was an error. But I want to not run something if there was an error. I have tried to look it up and I could

React draft wysiwyg default font size

Could I ask you how to change default font size in react draft wysiwyg https://github.com/jpuri/react-draft-wysiwyg#readme? Class defining toolbar: export const

How to processing json data in a column by using python/pyspark?

Trying to process JSON data in a column on Databricks. Below is the sample data from a table (its a weather device records info) JSON_Info {"sampleData":"dataD

Configuring Visual & Installer in VS 2022 for x64

My config screen: Why is it that I can't select x64 in the list? In the Alarm Clock row there is Add / Edit in the drop-down list. But not for AlarmClockSetup.

Disable local authentication methods for Cosmos DB database accounts using Azure CLI

I am trying to create a cosmos DB account using Azure CLI. One of required policies I have to comply with is "Cosmos DB database accounts should have local auth

Hi there, I am trying to find the max consecutive ones but python throws an error

I have tried to implement this code but python just blocks me by saying that ValueError: The truth value of an array with more than one element is ambiguous. Us

Consume kafka topic JSON data to postgres using JDBC connector

We have a need to push the kafka topic JSON records to postGresSql database. the JSON are compliant to https://json-schema.org/draft-07/json-schema-release-note

How can I center an animation so it goes from the middle?

An example of what I want (the main text eg. subscribe): https://sounddrout.com/ My code basically has a repeating typewriter effect on it and it just goes from

How to I set a symbol inside the record separator of awk

How do I include symbols into the record separator of awk. I know the basic syntax like this: awk 'BEGIN{RS="[:.!]"}{if (tolower($0) ~ "$" ) print $0 }' which

Application throwing 500 error when image not found instead of 404

We have shifted from Jboss 6 to Jboss 7.2.9 and we observed one changes in the site. Earlier when we were not find an image then we were getting 404 error which

PUT 404 (NOT FOUND) and SyntaxError: Unexpected token < in JSON at position 0

[PUT 404 (NotFound) ][1] [1]: https://i.stack.imgur.com/ugZng.png Client-side code const confirmDeliver = (event) => { const newQuantity = inventory.quantity

Create python function from script

Struggling to get this code to work as a function. It needs to separate values within a particular field which contains + symbols and create a new row which has

javascript setAttribute replacement

I am new to javascript and have problem when play with w3school's example. Here is the link the problem from https://www.w3schools.com/howto/tryit.asp?filename=

How to connect to postgres on another server where postgres is on docker?

I can connect to postgres in that way. On my local machine i run: ssh name@ip -p 22 input --> password and then sudo docker-compose exec postgres bash afte

What exactly does docker swarms dispatcher-heartbeat do?

I am managing a couple of stacks on a couple of nodes running in docker swarm. Unfortunately it seems a worker node lost connection to the single manager I curr

Python patch returning magicmock instead of return value

I have this code import cv2 from src.utilities.binary import message2binary from src.utilities.stegUtils import verify_payload def encode(input_path: any, paylo

Unity Tetris Game blocks sometimes not colliding

I am creating a version of Tetris which uses pentominoes instead of tetrominoes (5 square blocks instead of 4 square blocks). Some of the blocks will sometimes

How to plot Acutal and predictions in python (While 0 and 1)

How to plot the Acutal vs Prediction graph in python. It's was 0 and 1 values so plot is not meaningful.

Adding Flutterwave in to django template and view

I have created flutterwave developer account, as you can see down here i have setup everything except template and views.py file settings.py file FLUTTERWAVE_SE