Latest Questions

Can't format Quran page in react native

I am making an app to read Quran, using react native (expo). I am having some problems formatting the text. Problems: Random spacing Text resize automatically T

How to inject custom js to shopify via app

Hello I'm pretty new to shopify app development. I created the shopify app with laravel and now I generated a js file with content. What I want is to inject thi

Laravel 8 Multiple Relationships for Factory

In Laravel 8 it is possible to quickly fill relationships with factories. However, I cannot figure out how to generate more than one relationship. How can I cre

What went wrong: Execution failed for task ':flutter_facebook_auth:compileDebugJavaWithJavac'. flutter

FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':flutter_facebook_auth:compileDebugJavaWithJavac'. Multiple build operatio

Why does `Fn() -> T` constrain `T` but `Fn(T) -> T` does not

The following code compiles fine: struct StructA<F>(F); impl<F, T> StructA<F> where F: Fn() -> T {} Although T doesn't show up in StructA'

How to specify a BaseSettings Config's env_file based on a field from the same class?

I want to implement this logic from pydantic import BaseSettings class Settings(BaseSettings): ENVIRONMENT: str = 'local' SECRET_KEY: str = 'someke

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in the package.json of a module in node_modules

This is a React web app. When I run npm start This error occurred > [email protected] start > react-scripts start node:internal/modules/cjs/loader:488

Reading mail RTFbody fails with error 'not implemented'

I have code that reads mail to generate a task with the mail's content. In a few cases this hits a problem, when reading the RTFbody from the mail, saying "not

getting Fatal error in launcher: Unable to create process using '"c:\python37\python.exe" "C:\Python37\Scripts\pyrcc5.exe"

So i'm a beginner at machine learning and i want to try out this project i found it youtube (link here) but the problem is when i get onto the step where i do p

SwiftUI navigation bar inline mode searchable issue

I've noticed a pretty big issue when using inline navigation bar display mode and searchable on my List in my app. When selecting the navigationlink it’s

I can't import qs in vite

I use vite, ts and vue3. Now I want to use qs.stringfy() to build a url's query, but it panic. I use yarn add @types/qs to add qs. My code like this import

Replacing malloc() with my own implementation

I need a fast malloc() / free() replacement. There's mimalloc vom Microsoft Research which is actually on average the fastest malloc()- / free()-replacement. I'

How to convert ouput into uppercases in kali linux shell

I need to convert from 'ifconfig' command output to Uppercases: I've tried like this: ifconfig | tr [:upper:]

Hero image on mobile changes

I'm trying to add two new things to my hero images on the front page of https://webhost.pro/ and the hero on content pages https://webhost.pro/company/about-us/

Run command in tmux and update the status bar

I wrote a simple shell script that will show IP every 15 sec (it checks for VPN basically )... I wanted to add that in my status bar and I did it with #() but i

Is there a way to identify if a worksheet has a highlighted cell at a worksheet level, without checking all the cells?

Is there a way to identify if a worksheet has a highlighted cell at a worksheet level, without checking all the cells? Further context: I have a WorkBook with a

Can i put a value inside a ReactJS Component and then get that value somewhere in another file with importing?

so i am making a ReactJS Component for a contact form. And right now I want to make a method that gets the value from an input in the JSX, and then i want to ge

why do i get an error when i try to do $make?

I'm using devkit pro, trying to create a 3DS Homebrew app. I keep getting an error while doing "$make" I have this code, #include <3ds.h> int main(){ gfx

Django 404 error-page not found, how can I solve this problem?

My project is named main, and when I runserver I get this error.Anybody have any clue how to fix this error. Page not found (404) Request Method: GET Request UR

Could not find function 'spacy-transformers.TransformerModel.v3' in function registry 'architectures'

I was trying to create a custom NER model. I used spacy library to create the model. And this line of code is to create the config file from the base.config fil

Aws textract form design best practices

I’m currently redesigning documents and forms for improving the ease of extraction using Aws textract. Do you have experiences and best practices to share

Assigning custom weights to embedding layer in PyTorch

Does PyTorch's nn.Embedding support manually setting the embedding weights for only specific values? I know I could set the weights of the entire embedding laye

Redis Connection Error with Heroku Redis Instance: Redis connection to failed - read ECONNRESET heroku instance

I have a node js app. And I use Redis from Heroku Redis(with async-redis library). Actually, I have two different Heroku accounts and two different Node.js apps

Discord Python bot - Coroutine never awaited

I'm trying to make a Blind-test bot game in Python, which actually works pretty fine. I managed to get a whole spotify playlist in the queue with that play_next

alignof(T) with T=__m512 is not equal to alignof(__m512)

I ran into a strange situation that alignof(__m512) is not equal to std::alignment_of<__m512>::value compiled by Apple's clang. After some testing I found

Python Zybooks lab function definition input

I have a zybooks lab with the prompt: Write a function max_magnitude() with two integer input parameters that returns the largest magnitude value. Use the funct

Unable to download Azure DevOps test result attachments using REST API in Groovy Unable to determine the current character

I need to download test result file attachments to a folder on my hard drive. When I run the call using talend it returns the file (png) image file in the body

Keras/Tensorflow network inference performance

I am using a Keras network which I am calling predict() many times on a single input. A rough calculation based on the layers gives ~3Mops. Running on my CPU sh

Jetpack compose onClickLabel for Button and IconButton

Working on accessibility enhancements for my app. From Docs, I can see that Card has both onClick and onClickLabel as part of the API. And for composables witho

Making a namespace a friend of a class?

I'm trying to encapsulate the Allegro5 C++ library and I want to have a namespace of rendering functions. The problem is that in order to use the rendering func