Latest Questions

phpMyAdmin does not respond to clicks

My phpMyAdmin web-interface is loaded properly, login OK, I can see a standard post-login screen with all database names etc., but when I left-click on anything

Using JSDoc to set an index signature on an ES6 Class

In Typescript, you'd just do this: class Test { [key: string]: whatever } Which allows you to access computed property names like so... class Test { getPro

Revolution scroll slider when user doesn't scroll some where

hi I want to create a scroll based slider website like this site: https://le-mugs.com/ what should I do on sliders that when user doesn't scroll, sliders run au

Laravel migration: using a native PHP enum

In PHP 8.1, native support for enums were introduced. How can I use them in a Laravel Migration? My first thought would be something like this, but it does not

Is it possible to call a python function in a terminal?

I want to be able to run a python program and type a function in the terminal and have the function execute. For example: I define a function in the python scri

How do I convert a number to a string without using stdlib.h or string.h?

Here is my exercise: Write a function that receives from the user two strings that show two real numbers (possibly negative), And produces a string that contai

Getting this error on tap function to see an image in a dialog box

onTap: () { showDialog( context: context, builder: (BuildContext context) { return ImageNetwork( image: data['image'].toString(), height: 400, width: 400, durat

How to fix python `dlib` error: "symbol not found in flat namespace '_png_do_expand_palette_rgb8_neon'"?

I am getting the error: symbol not found in flat namespace '_png_do_expand_palette_rgb8_neon' The error occurs in spite of the dlib package being installed for

Use ticker to periodically load all the files in memory from a path which keeps changing frequently?

I have an application which needs to read files from two different path. After reading all these files, I need to load them up in memory in products map. Path:

How would I implement my proxy into a request with http.client?

headers = { 'Authorization': 'Bearer '+jtw, } conn = http.client.HTTPSConnection("api.minecraftservices.com") conn.request("PUT", "/minecraft/profile/name/"

How to accept multiple objects into an array NestJS

I have a feedbackQuestion schema which takes (title: string, subtitle: string, types: enum, values: enum) import { Prop, Schema, SchemaFactory } from '@nestjs/m

How to get desktop UI font size on Linux?

I have a FreeType2/FontConfig/Harfbuzz application. I am attempting to get the desktop font size in a portable way on Linux desktops without using GTK+ or Qt, o

Python list overwritten each time the previous items

The objective of my application is to create a copy of documents and insert them into the database for each annotator, for example, let's say the master user ha

Vb.net code not performing as Javascript code

I translated a script from javascript that is correctly computing the APRs on mortgage loans into visual basic code which I'm trying to use on another site. I h

Why crystal report not refresh the parameters automatically?

I am using this code in asp.net to run crystal report : paramField.Name = "@ORDER_ID"; paramDiscreteValue.Value = TXTORDERID.Text.ToStri

Display Data from MYSQL using PHP Dropdown

I need to display data from the 'Members' table based on the selected 'grad_date' from a drop down. I have been trying to do it for a while now but have struggl

How to fit showModalBottomSheet?

I have an application, I added showModalBottomSheet to this application. It looks like this: But there is one question. When I open the TextFormField with "&Uu

MAMP PRO access from iOS

I know "MAMP Viewer" works locally but I am looking for a way to access the local site remotely from my iOS devices. At home I have a Orbi network and I can con

elegant means of switching between S3 platforms with boto3

I have some code that uses boto3 and I also have the requirement to be able to switch between using AWS S3 and an S3 compatible on-premises storage platform, th

Having a problem with Javascript Phaser 3 Class

I'm trying to implement the following code into a class, as follows is the code ,and the attempted class. Implementation //----------------------------MIST--

Asking the user for input until they give a valid response

I am writing a program that accepts user input. #note: Python 2.7 users should use `raw_input`, the equivalent of 3.X's `input` age = int(input("Please enter yo

How do I call useQuery in a map function?

I have the below react component which is removing products from a mongodb collection based on the items in the cart. I get this error when I run the code: Comp

Performance issue when dragging/zooming high resolution image in KonvaJS canvas

I am currently loading a rather large image (15000x10000) into a konva canvas. The canvas is draggable in another canvas. The image is not drawn if parts of it

Insert scroll button horizontal using jQuery

I am trying to replicate this example into my own coding. The List tabs are generated dynamically using JS and each have their table (also generated using JS).

How to web scrape the text under <i class>?

I'm trying to get the text "PDF file" under <i class="fa fa-file-pdf-o">. I'm using BeautifulSoup and tried the following, but it didn't work: from bs4 im

Found errors in your .gitlab-ci.yml: unknown keys in `extends`

My code for the pipeline is: include: - template: Terraform/Base.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Terr

How to append data properly in the next line of an array?

def FunctionA(): ... ... ... sol #Here,sol is an array output = [] for i in sol: output.append(FunctionB(i)) print(output) print(output[0,:]) def Function

how does singleton bean handle dynamic index

I am working spring data elastic search. Based on different header in the request, I create @RequestScope object IndexConfig to hold different set of indexes. I

How to Convert A audio.wav file to base64 String in ReactNative

I am trying to build a mobile application and for sending my audio file from my reactnative frontend to my python backend I want to convert my audio.wav to base

Twilio Programmable Chat - Access denied (code: 54007) for old chats

We are using Twilio Programmable Chat on our project for 1 year. On the mobile side we use twilio-chat v.6.0.0 SDK. On the backend side we use java library - co