Latest Questions

AttributeError: module 'rules' has no attribute 'fizz'

So I tried to create a fizz buzz game code in python and I wanted to import the rules from another file, import rules fizz = rules.fizz buzz = rules.buzz fizzb

sourceCpp error: not mach-o or a static library file '/usr/local/lib/libgfortran.dylib'

I've long been a user of RcppArmadillo, but have been unable to compile any programs via sourceCpp since upgrading my OS to Monterey Version 12.3. Getting the f

Target sdk 30 and All File Access permission

My app is rejected due to All file access permission but our app needs it without that it won't work out. we are not able to upload app with target sdk 30 or 31

C++ generate new EC_KEY using OpenSSL 1.1.1n

I'm very new to this OpenSSL stuff and trying to learn my way through it. I want to generate an ec key but its keep failing to generate. I'm currently using Ope

Writing structured facts

I've wrote some ruby code which will run on a linux server and return details about the server as a fact. It does this by connecting to amazon and retrieving so

Use Single Button to select Multi option and Update or Insert On Ms Sql Server

Multi select option list image I Use a multi select option list and create a save button. write a query like that is INSERT and UPDATE same action occur on sing

Opengl GLFW3, Cant update vertices of two object at the same time

So i am trying to make a game where I want to update my player and enemy. enemy and player are squares. I have a square class with VAO, VBO, EBO and vertices wh

How to use Form data received from a POST request in Blazor pages?

I have a Blazor page that can receive form-data from a POST request. After this data is received, it will be set to two properties and also rendered onto the pa

Nested Data inside output needing to be expanded

I have the following code import requests import json import pandas as pd import csv import numpy from pandas.io.json import json_normalize url = 'http://URL/a

How can I add Linux source code global variable?

I face a situation where I need to declare a global variable so every file of Linux source code can reference it. As much as I know, Linux is a Monolithic kerne

What column should I assign to parse_dates while working with google finance?

I wrote a code to show a graph from google finance but i got this error: ValueError: Missing column provided to 'parse_dates': 'Date' This was my code: from bok

Replace part of a long URL and redirect

Is there a way to redirect the URL as follows: URL is generated based on a filtering system so it is like this https://example.com/product-category-no-slash-gen

Is it possible to include a formula within IMPORTHTML?

I have this Google sheet where 2 columns are present. Based on a drop down (of list of first column), I have used a vloopup to find corresponding values in seco

React-map-gl with mapbox on NodeJS map -- map is not showing up

I was following a youtube tutorial and followed the steps exactly, however, my map does not seem to work. I get a blank screen even when I put my own access tok

How can I create monthly repeating tasks in Flutter/Firebase?

I am currently working on a finance app, where the user can create many transactions. To make the user's job a little easier, I want to add transactions that re

Error while reloading nextjs server while using mongoose [duplicate]

I am using NextJS as my framework along with Mongoose. I have seen a few tutorials to implement caching for Mongoose but everytime I make some

Use Firebase Cloud Messaging in a Flutter Windows app

I have checked both firebase_dart and flutterfire packages but none of them provide a firebase FirebaseMessaging class to use. Is there any way I can use Cloud

Sequence number, incorrect number

In a spring boot application, I have this entity @Data @NoArgsConstructor @AllArgsConstructor @Entity public class User { @Id @GeneratedValue(generator="user_id

How to implement multi-tenancy in new Spring Authorization server

Link for Authorization server: https://github.com/spring-projects/spring-authorization-server This project pretty much has everything in terms of OAuth and Iden

Adding shadow text form field

I want to achieve this Here is my code so far, Padding( padding: EdgeInsets.fromLTRB(5, 10, 5, 10), child: Container( decoration: BoxDecoration(

Solidity view returns an error of 'out of gas'

When running a public view function that I deployed to etherscan testnet, I get the following error: Returned error: out of gas I have a forloop that loops 50

Custom Dataset class for hierarchical dataset using “Local Classifier per Parent Node” technique

I’m working on an image classification model for hierarchical dataset using PyTorch implementation of EfficientNet. I am seeking help on how to edit my to

What is included in the ‘standalone’ vs ‘cluster’ Milvus deployments?

What is included in the ‘standalone’ vs ‘cluster’ Milvus deployments? Standalone makes it sound like it is a single instance, but as far

Using loop on a list to creat another list from it. but it is printing an empty list

why my code is always printing empty list_of_lists ?? There is nothing wrong with the class and all functions is well implemented I think that the problem is th

How to use rrdtool to read a rrd file in python

I need to read an rrd file using python. Can some one show me how should I use it? I am completely new to this and I could find some usefull thread How to read

Postgres transaction table with Billion rows and multiple JSON columns

So we have a new project where we need to use postgres 14 to scale up a transaction table that gets heavily updated. The Master table has about a 60 million row

c# SslException: SSL Handshake failed with OpenSSL error - SSL_ERROR_SSL

This error occurs on a single endpoint. It is the one that tries to extract data from SqlServer. If I try to run IIS everything works fine. When I run in a linu

Getting a map() to return a list in Python 3.x

I'm trying to map a list into hex, and then use the list elsewhere. In python 2.6, this was easy: A: Python 2.6: >>> map(chr, [66, 53, 0, 94]) ['B',

React Native map with Google API, Search bar is not compactable with screen width

This is the code for React Native Map using Google Map's API. import React, { useEffect, useState } from 'react'; import { PermissionsAndroid, StyleSheet, View,

Latest VSCode 1.66.2 does not stop on failed assertion in C++ CMake debugging session

My VSCode: Version: 1.66.2 Commit: dfd34e8260c270da74b5c2d86d61aee4b6d56977 Date: 2022-04-11T07:49:24.808Z Electron: 17.2.0 Chromium: 98.0.4758.109 Node.js: 16.