Latest Questions

Active Admin login not working (Devise + ActiveAdmin + Devise JWT)

I'm using rails in API mode, with Devise and Devise JWT (for the API), and ActiveAdmin. I had everything working but I've been building out the API controllers

How to check if a string passed as argument is a modifiable string

The question is pretty much in the title. The code void modify_str(char* str){ if(strlen(str) > 5) { str[5] = 'x'; } } Will invoke undef

react-native android project not found error

I am trying to create a react-native project using react-native cli. Command I used to create project npx react-native init test After this if I try to run this

Flutter: Understanding human language

this might be a bit of a unusual question. I have implemented voice input in my application and I need some kind of mechanism that will understand the semantics

Azure Functions error - establishing connection failed

I have Azure Data Factory, which calls Azure Durable Functions. I had success working connection until Terraform did some unknown changes. Where the issue could

Found non-empty schema(s) "public" but no schema history table. Use baseline() or set baselineOnMigrate to true to initialize the schema history table

I know this has been asked previously but I am spinning in circles here.... I have a postgres 14 database and a Springboot application running flyway-db:7.13.0

How can i find selected area in photo using OpenCV?

I need to detect a selected area in a photo: Original photo: I used this code: import cv2 as cv import numpy as np img = cv.imread(cv.samples.findFile('./Pict

WIX Installer: ensure successive Version numbers on build

I'm trying to automate my Wix installer builds with my Visual Studio Builds. I am grabbing the application's Application Version via this in my installer.wicpro

Given a list of n integers arr[0..(n-1)], determine the number of different pairs of elements within it which sum to k

I'm tackling this problem and I can't seem to arrive at the correct solution. The question is: "Given a list of n integers arr[0..(n-1)], determine the number

test class for handler trigger is not covered

I did a trigger on content version ,but my handler class is not covered ,can you please explain to me why ? please find below the code and screenshots for non c

hyperscript equvelant of jquery .on("click"

$( document ).ready(function() { console.log( "ready!" ); var counter = 0; $("button").click(function() { e="<p class='test' _=\"on

Return Result<Box<dyn Trait>> in a match

I have a set of types that implements a given trait, I want to get a concrete type object from a string name, strangely it works when my match returns Box<dy

Reading comma-separated words from a file

FILE* inp; inp = fopen("wordlist.txt","r"); //filename of your data file char arr[100][5]; //max word length 5 int i = 0; while(1){ char r

Dependent dropdown using WHERE clause

I am looking for some help. I need to create a dependent dropdown based on the previous input. Everything works in my code, and it sends and receives data from

Difference between HttpContext.TraceIdentifier and Activity.Current.Id

I use a "trace id" in logs. Advice on the aspnet repo and here on SO is to get a traceid from HttpContext.TraceIdentifier. But when the framework creates a Prob

Printing a matrix in spiral order but getting an additional element

#include<bits/stdc++.h> using namespace std; // Printing a matrix in spiral Order int main() { int n, m; cin>>n>>m; int arr[n][

How to generate correct Fragment identifier in Jekyll/Kramdown?

I'am using Jekyll with the Minimal Mistakes template and facing a problem with the fragment header generation. Here is an example.. If you put a header into you

I was trying to solve "Grid unique path" using Dynamic programming in Java

I am trying to implement a solution for grid unique path using D.P. approach while trying to do so, I don't know why in the middle of execution the value at (0,

can we mock method inside object

object Abc { method1(param1,param2):Future[Option[String]] = { //some work } } We are using method1 somewhere and need to stub method1 how can

BitBucket: You are using an account password for Git over HTTPS

Today I got the following message when I used Git + BitBucket on MacOS while pushing a new branch to BitBucket. You are using an account password for Git over H

Osmdroid loading only Elements inside of a Polygon with OverpassAPIProvider

So I am trying the following: Using the Overpass API in osmdroid to only load those nodes, ways or relations that are within or partially within a Polygon. Twea

Strapi v4 api error "posts.map is not a function" NextJs

index.js file export default function Home({ posts }) { return ( <div> {posts && posts.map((post) => ( <div ke

Error only shows the first time using Axios on getInitialProps

Hi everyone i've an issue fetching data with Axios Let me explain to you what im doing: i've my FrontEnd made in NextJs but my BackEnd was made on C# then when

In openpyxl, is there a way to see what conditional formatting rule(s) are applied to a cell?

I'm using openpyxl 2.5.6 and py 3.7.0. My goal is to read an Excel workbook and print both the contents and the formatting of each cell into a CSV. For instance

Exclude version pattern from renovate

There are several standard Java dependencies that have forks with the same maven coordinates and a "redhat-xxx" suffix in their version number, for example comm

VLOOKUP With Duplicate Values

I have 2 sheets like the following: Sheet 1 Sheet 2 I want to enter the values ​​from column B on Sheet 2 into column B on Sheet 1. In Sheet 1 the

print multiple return from void to multiple textboxes in c#

i'm trying to build a question-solving module, so i want to randomly print the "correct answer" data i got from the database, i use a void to get the data, i wa

Mean calculation between dataframes in list in R

I have a list of dataframes that all have the same format (same number of rows, same number of columns and columns have the same name). I would like to create a

How to add branch lines to angular material table?

I am working on a UI (using Angular 10), where I have to show hierarchical structure inside a mat table. The HTML code is using mat table to show the data, and

How can I sum and average my array in Java

I want to sum and average my array in Java. How can I do that? public class EjerciciosArrays extends javax.swing.JFrame { ArrayList<Double> mi_ar