Latest Questions

Bitshifting a uint64_t gives wrong result

As was said in the title, bitshifting a uint64_t type gives wrong results. I have absolutely no idea why this is the case. It seems like on the edges of the shi

How to extract all datas from xml DOM in node JS

I am going to extract all attributes and texts from xml DOM in express Now I am using xml-query node module <?xml version="1.0"?> <OrderMessage

Angular ERROR TypeError: Cannot read properties of undefined (reading 'onDestroy')

I have problem. Angular is sometimes showing error ERROR TypeError: Cannot read properties of undefined (reading 'onDestroy') I am getting this error when I am

How can I install pyaudio on a mac with M1 chip? (Have tried homebrew and portaudio already)

I am trying to install pyaudio on my Mac, but I keep getting an error. I have tried using homebrew, then installing portaudio, but still, get the same error. I

How to create a comparison plot from an Excel file with many worksheets

I want to create a plot that will have in the x axis the months and for each country it will show the Orders per month. Attempting to create a function that rea

i get always a 0 as a returned value, can anyone help me to extract that value and use it for further calculations ,and thanks

this is the code , i get always a 0 as a returned value, can anyone help me to extract that value and use it for further calculations , i'm new in python espess

Grails 4 Mapping exception - org.grails.datastore.mapping.model.IllegalMappingException: Non-existent mapping property

I am upgrading from grails 2.5.4 to 4 and getting the following error in grails 4 : Failed to instantiate [org.grails.orm.hibernate.HibernateDatastore]: Constru

Issue with worksheet object and LoadPicture in VBA

I have been working on an excel macro and have come across an issue that doesn't make sense to me. I have on two of my sheets, (Sheets("Printing Sheet") and She

cannot connect to Postgres - password unknown

I can't connect on postgresql. when i go on pgadmin>server>postgresql, it asked me "please enter the password for the user 'postgres' to connect the serve

Google sheet script to search and retrieve Gmail data

I've started a script that matches an email address in Col D with Gmail and writes the last message date in Col E. I'd like that script to repeat row by row - n

How to get all Candy Machine Ids on solana chain by web3 or json rpc

I wanna get all Candy Machine Ids on chain by web3 or json rpc call. I have tried with getProgramAccounts json rpc but have response with Maximum response size

Blazor WASM Load and display large pdfs by splitting them as streams

I'm working on a Blazor WASM App and I want my users to easily open pdf files on specific pages that contain additional information. I cannot distribute those f

How to make AgGridReact rows lower z-index

I have a cell renderer that shows an mgt-person fine but the hover mgt-person-card goes behind the following ag-rows. I tried .ag-row { z-index: -unset !i

ngIf display button if a field has certain value in Database

I need to have a button (by ngIf) when a field in Db has certain value, Any Idea? Do I need store procedure and.. Thanks

Python: Compare values of two fields with multiple strings and add all unique values to a 3rd field

I am still a Python-Rookie and are stuck with an idea. I want to compare the values of Type1 with Type2 and add all unique values to a 3rd field. My demo data:

There is a data base that stores the image path. Is there a way to implement that path?

@member.route("/createreport") def Createreport(): if "username" not in session: return render_template('login.html',headername="Login เ#

Spark dataframe from dictionary

I'm trying to create a spark dataframe from a dictionary which has data in the format {'33_45677': 0, '45_3233': 25, '56_4599': 43524} .. etc. dict_pairs={'33

Web crawl angular website for elasticsearch indexing

Is there a way to index an angular website using the web crawler functionality of elasticsearch?

Editing a TextField in preview

I am trying to add a TextField in SwiftUI. It successfully appears with the initial text, but it is not editable in the preview display, only when I run a simul

ln-service (npm-package) [ 400, 'ExpectedLndToCreateNewInvoice' ]

I'm using ln-service package and I'm connected to a local instance of lnd node (created with polar). I'm using plain js. import lnservice from 'ln-service'; l

Issue with saving custom field (custom post type) in WooCommerce coupon usage restriction tab

I'm trying to add a new field in the usage restriction of coupons. Here is my code: function add_coupon_cpt_field() { $value = get_post_meta( $post->ID,

R: converting text with irregular length into dataframe

Simplified example of a text i have after importing with readlines: text <- c("just", "stuff", "nothing", "interesting", "date", "06.05.2022", "number", "1/

Swift UITableView with search bar and perform an Unwind Segue

So I have a UITableViewController with a UISearchBar. I want to simply select a name and then unwind back to the AddTicketTVC with the selected info. This works

Is it possible to use Application Gateway rewrites rules to redirect to external website?

I have a task to use Application Gateway rewrite rules to capture any request to (*).mycompany1.com and redirect it to (*).mycompany2.com. I created rewrite set

Go command line wrapper with flexible output (stdout/file/network)

Below is a command line wrapper which can parse user input command line string to Go exec.Command(). Here is why I want to write a wrapper on it: exec.Command c

Importing React as default module not working inside Symfony Webpack Encore project

I have a Symfony project, where the frontend-pipeline is built with Webpack Encore, I would like to add React to the project and have a React widget inserted in

How to kill a subprocess when it goes interactive in Python

I need to run several subprocess.run in a loop. Most of the time, if the exe called in the subprocess succeed nothing happen. But in some cases, usually when so

Why the html custom form is not working django

I have a contact page with a simple form. Here is views.py: def contact_view(request): if request.method == 'GET': form = ContactForm() else: form = Con

BeautifulSoup request is returning an empty list from LinkedIn.com/jobs

I'm new to BeautifulSoup and web scraping so please bare with me. I'm using Beautiful soup to pull all job post cards from LinkedIn with the title "Security Eng

Failing tests -> Cannot read properties of undefined (reading 'rpc')

I was writing a test in TypeScript for Adding two numbers. I am receiving the following error: Adds two numbers: TypeError: Cannot read properties of undef