Latest Questions

Getting "jruby: no Ruby script found in input (LoadError)" while running rails application in Rubymine

Apologies if it's a duplicate question. Asking this as I haven't got any solution yet. Trying to run rails application in Rubymine. I have setup the configurati

How to create shopping list from back-office of Orocommerce

Shopping List describes that Via the back-office, you can access any shopping list created and saved by the customers in the OroCommerce storefront. Can we also

Getting ECONNREFUSED when setting the --record flag for Cypress test

We've got Cypress Dashboard running for some of our tests. I'm looking to expand that into some new tests, and have been trying to run it locally to confirm it'

Ownership of values whose variables are shadowed

See some code below: #[derive(Debug)] struct MyString { a: String, } impl MyString { fn new(s: &str) -> Self { MyString { a: String::fro

How can I use a custom font in jsPDF?

I know, this question has been asked e. g. here and here but whatever I try, I do not get my custom font in the generated pdf. Here are my steps: Download ttf f

Count/Sum a column but exclude #N/A

Currently using the following forumlas to count the number of records in all of column Z that does not have #N/A but it does not work. All the rows in Column Z

Pydantic Checking if list field is unique

Currently, I am trying to create a pydantic model for a pandas dataframe. I would like to check if a column is unique by the following import pandas as pd from

Azure function app that sends log data to Azure Monitor causes socket exhaustion

I have function app that iterates over log files and sends them to Azure Log Analytics using this sample here: https://docs.microsoft.com/en-us/azure/azure-mon

I need to merge data from one table to another, but I have one value that comes from a different table

This is my code MERGE OrderDetailsStructure AS Target USING SalesOrderData AS Source ON Source.WebOrderNo=Target.WebOrderNo WHEN NOT MATCHED BY TARGET THEN INSE

django_elasticsearch_dsl -RequestError(400, 'search_phase_execution_exception', 'failed to create query: For input string: )

I am trying to search with Elasticsearch using django_elasticsearch_dsl and 'django_elasticsearch_dsl_drf',, but I get RequestError(400, 'search_phase_execution

YUV420p render in OpenGL (converting to rgb in fragment shader)

I’m trying to display YUV420p video using OpenGL. I understand how it is supposed to work (uploading Y, U, and then V buffers in separate textures while p

Node.js node:internal/modules/cjs/loader:936 error while trying to use discord.js

I'm trying to make a discord bot with the command prefix "*" but when I try to get the bot online/run it, it gives me this error: node:internal/modules/cjs/loa

cannot call googleapis library inside html

I've been trying to call a simple function (uploadFile(test.txt)) inside an html but I can not call neither my app.js or googleapis library node.js gives this e

Format users' contacts' phone numbers - Flutter

I am building a chat application that takes a user's phone number with a country code for registration. After registration and permission, I use the contacts_se

Is there a way to set auto refresh the jetpack compose preview?

I just started to use the Jetpack compose toolkit. I added the @Preview and a set showBackground = true, showSystemUi = true as parameters and it works really g

My removeClass doesn't remove my AddClass when refreshed on lower resolution

My issue is when i refresh it on desktop resolution, it worked but when i refresh the page on lower reso it should be like this But my issue is this: The cod

Unable to download SQL Server on M1 Mac

I have been trying to download SQL Server on my Mac with an Apple Chip. I've been following the steps that include downloading docker and entering code into my

React-Tooltip not displaying until page is refreshed

Bit of a weird one here. My website is virtually done, there is just one issue. I've implemented tooltips, but they only display once I refresh the page! Here i

How to accept “Apple Media Services Terms and Conditions" for TestFlight/IAP when it always gives an "no connection" error?

I am testing an app with in-app-purchases via TestFlight. Recently, when I try to test buying an in-app-purchase, a prompt "Apple Media Services Terms and Condi

How to use dictionary data initialized in a "class" object

I expose the problem quickly: I have to create 3 classes. X Y and Z, inside X y and z are initialized as variables of class x but not as objects Y and Z. What i

Chakra UI Responsiveness Not Reflecting on UI

I have used Chakra UI for styling a project in Next.js. While most of the styles and components are working as intended, I am having trouble in implementing res

REGEX: Transpose each word from a google sheet cell and put them one under the other (rows)

I need to extract each word (phrase) within a cell in google sheets and put each one under the other in a column (row for each one). I have a regex code that w

Zoho API: working example of authentication?

I spent about 3-4 hours trying to implement the examples at Zoho API's doc but keep getting different errors just to authenticate, e.g. "invalid_response_type"

how to resolve nginx 502 bad-gateway error

I've containerized the next.js web application and hosted in aws ec-2. using nginx as proxy server this is the only working page / not working for any other p

415 Unsupported Media Type from POST

I need to create a POST call with Spring/Webclient which does work fine with curl. POSTDATA="{\"subject\":\"CN=test\",\"type\": \"ssh\",\"usage\":\"login\",\"va

Mapbox (walking) directions api suggest ferries to cross the river instead of using bridges

I am using Directions Api (important - walking mode), v5 version. App works in London. When I select point A on the left side of the river, point B on the right

How do I write a Prisma findFirst where clause that OR's two AND's -- or how does prisma treat undefined's?

I am using Prisma I have a postgres table I want to search, finding only the record that matches where (id and accessKey) or (id and ownerId) It keeps finding w

Teradata - YEARFRAC equivalence

I am having a hard time trying to find something that would be equivalent to YEARFRAC (Excel) for Teradata. I messed around with the below, but want I want it t

Directed SPT vs SPT?

Question: If a graph contains no negative-weight cycles, does there exist an ordering of edges such that Bellman-Ford computes shortest paths by relaxing each e