Latest Questions

Mongo::Error::UnsupportedFeatures (Server at (localhost:27017) reports wire version (2), but this version of the Ruby driver requires at least (6).)

I'm trying to upgrade Mongoid in an Rails 4.2 app from 4.x to 5.x (5.4.1) to connect to a MongoDB 2.6. I've updated the mongoid.yml file to match the difference

react native circular crop

using react-image-crop package trying to create circular bagde, cropping as square works fine but need to create badge as circular png file here is the code:

How do I fix the error of my django form not having cleaned_data attribute?

I have this form: class RegisterForm(UserCreationForm): email = forms.EmailField() class Meta: model = User fields = ["username", "emai

How do I make puppeteer select google translate text box for me? it only works if I click it myself

my code is as follows await page.waitForTimeout(1000); await page.waitForSelector( "#yDmH0d > c-wiz > div > div.WFnNle > c-wiz > div.OlSOob

Cmake : Building .dylib to test Android JUnit tests

I am working on Android native project using C++ code built using CMake. Currently my app is running fine and native lib(.so) is successfully loaded using Syste

how to run javascript function in selenuim

how i can run this js code in selenuim window.hcaptcha.render = (container, params) => { console.log(container) console.log(params) window.hcaptchaCallback =

Round to 2 Decimal Places Even with Zeros

I am currently using the following logic to round to round to 2 decimal places: billables_all["Parts Charged"] = billables_all["Parts Charged"].fillna(0).round(

Validate raw data from the field in react-final-form

I have a field in react-final-form where the user enters a date. For the internal value this gets normalized to YYYY-MM-DD but the user may enter it as DD.MM.YY

Flutter null safety plugin_platform_interface

I have this error, Error: Cannot run with sound null safety, because the following dependencies don't support null safety: - package:plugin_platform_interface

Error: Uncaught TypeError: Failed to resolve module specifier "web3". Relative references must start with either "/", "./", or "../"

I have installed web3 using npm in my project. I now have a web3 folder in my node_modules folder. However, when I run my code on local server, it shows the fol

Excel corrupting formula with @

I'm using EPPlus in my C# code to create an Excel workbook.  My code includes this statement: ws.Cells[1, 1].Formula = "=UNICHAR(160)"; But when I execute

How can I assign a value to a variable of a callable type?

How can I assign a variable of a callable type (type with call signature)? interface CallableType<T> { (isSomething: boolean): T description: string

range1.value = range2.value Very slow VBA

I'am writing simple code like nextCell.Value = dateJour.Value, were dateJour is a date located in a cell in the workbook. When I loop (about 100 times) it takes

properly executing single line in vs code python

hello this is sth simple probably but I want to execute my python code line by line in vs code I am executing the same code without problem in jupiter notebook

Create custom formatter for logging in Quarkus

I have a problem with logs displayed in Splunk. Every exception element stack trace being splitted into separated log. Unfortunately I don't have access to Splu

Method returns NoneType object

Classes and Objects in Python I'm creating a bot in discord.py, and I have a class which stores all the information related to the user, like name, settings, pr

Forcing tree to use some feature first

My goal it to force some feature used firstly to split tree. Below, the function spltted tree using feature_3 first. For instance, is there a way to force to us

Flow Error 'Number of Iterations Exceeded' in Salesforce

I have a record triggered flow in salesforce which performs operations of updating Reports To field in all the Employees of an Organization. The flow is trigger

How to deal with IEnumerables/Arrays/Collections in Fluxor State?

I'm currently trying to implement Fluxor for my Blazor WASM app and all the instructions/tutorials I found recommended something like this example for the Store

Problem : java.lang.NullPointerException: Argument must not be null

I have a problem in this line : public class ShowAllAdapter extends RecyclerView.Adapter<ShowAllAdapter.ViewHolder> { and in this line : Glide.with(conte

My urls no longer point to my pages Wagtail

On a wagtail site I have lost links to my blog pages (possibly as a result of moving to a newer version) My blog listing page is still accessible with the url "

how to run javascript function in selenuim

how i can run this js code in selenuim window.hcaptcha.render = (container, params) => { console.log(container) console.log(params) window.hcaptchaCallback =

Invoke-WebRequest : The remote server returned an error: (401) Unauthorized

I can download https://marketplace.visualstudio.com/_apis/gallery/publishers/blueprint/extensions/vsts-open-work-items-in-excel/0.1.71/package?noPrompt=true in

Download image with python requests

I'm new to python. I have to download some images from the web and save it to my local file system. I've noticed that the response content does not contain any

determine if the shortest path in a graph is unique

Say I have a cyclic graph containing bi-directional and parallel edges e.g. Assume all edge weights equal 1. How would I determine if the shortest path is a un

Where is node-redis v4 documentation/migration guide?

node-redis refactored its API in v4 to support Promises. For some reason, they also decided to change the signature of most commands, which now don't obey any a

Linked lists printing function does not work

#include <stdio.h> #include <stdlib.h> #include <string.h> struct charact { char ch; int occurs; struct charact *next; }; typedef

Round to 2 Decimal Places Even with Zeros

I am currently using the following logic to round to round to 2 decimal places: billables_all["Parts Charged"] = billables_all["Parts Charged"].fillna(0).round(

i have an error about object manipulation

good morning everyone, i get errors in a simple manipulation of a json. I'll show you the code: import React, {useState, useEffect} from 'react'; import Bscpric

Tiff Windows Imaging Component c++

I am trying to replace libtiff into WIC (since libtiff is not able to pass Black Duck Analysis tool anymore) I have used their example https://docs.microsoft.co