Latest Questions

How to pass passphrase of ssh in bash script? [duplicate]

I am discovering the bash scripting. I need to write a bash script to automatically connects my remote server with ssh. I am using MACOSX. I w

Script Node.js from C# in vscode - Edge.js - Unexpected token

I successfully used vs code to write the sample program to script Node.js from C#. I use the following code block directly from https://github.com/tjanczuk/edge

How to prevent back button from dismissing the keyboard in flutter?

I want to set the keyboard to be always opened in the chat page and should not be dismissable by the back button. The WillPopScope() widget is only preventing t

Why is there a gap between the header and the main div?

There is a gap between the header and the main that is the same color as the background color I set for the body tag (black). I've tried making overflow: hidden

Why some of the functions of array objects are not working when selecting them from the menu?

I created this program in Java programming to get all recipes details inputs from user and then user can choose to insert, find, remove or display recipes detai

How do you perform an operation on a phrase *only* if it's outside backticks?

E.g. say you have the line: `Here's an example.` And another example. How could you change only the second "example" to uppercase? E.g: `Here's an example.` An

SavedStateHandle kotlin always receiving null

I need a Factory to support Viewmodel WITH ARGUMENTS. I tried to implement the class which is commended "AbstractSavedStateViewModelFactory". I applied the trou

Python chat server with selectable specific user to chat

I am trying to write simple chat based desktop support app. The gui is not problem, but I have problem with sending messages. The server sends it to all connect

When does a cookie with expiration time "session" expire?

As the question title says, what's the session timeout when I set "session" as cookie expiry? Can you guys point me to some documentation (I searched but haven'

Monitor reading access to contacts ANDROID without rooting of device

There is a way to monitor reading access to contacts? I tried this experiment: I developed an application that reads contacts subsequentially i ran it. After th

running python script drawing svg image based on html inputs inside flask app

Assuming I've got a flask app I would like to call a python script, which would take the values of some inputs within the page (texts, selects, etc.) and then c

Calling A Function from the main.ts file to other ts file is not working in Node js

I have a project in Node JS with the following structure: ormconfig.js package.json src main.ts user user.module.ts user.entity.ts user.service.ts (include a fu

Scratch walking animation broken

What it's supposed to do: I'm making a game on Scratch in which the character has a walking animation. The walking animation is supposed to switch their costume

Pandera: Is cell based dataframe data validation possible?

Every row of my dataframe contain a record with a unique key combination. The data validation will be based on the columns and on key combination. For example,

how can i add javascript files into angular?

i have got a template works fine on visual studio , but when i tried to use it on my angular project i don't know why the javascript code doesn't work , i fille

How to alert north east south west? Javascript

I am new to coding and have had alot of help with this. I am making a game, you have to choose the right cell in the table. I am wondering how i would be able t

ArrayIndexOutOfBoundsException - Scoreboard with images

I am trying to make a scoreboard with images in processing, with images from 0 to 9, but any number greater than 9 does not make changes It should be something

How can I pass the value of a unchecked checkbox to the form? [duplicate]

I have a webiste where users can find a discord server with their option,such as if server is NSFW, premium,member count and tags. I tried to

How do I refer back to a kivy app class instance I have created?

from screen_selections import NameSelection from kivy.app import App from kivy.uix.screenmanager import ScreenManager class ScreenManagerApp(App): def __i

How to make a responsive tile area in leaflet

I'm New to leaflet and game development. I have created a custom map to be displayed in leaflet. Map looks more like https://map.pavia.io/#/ I want to do the sa

torch vision: libc++abi: terminating with uncaught exception of type std::length_error: vector

recently, I started having a weird error when importing torch vision. I have freshly installed MacBook M1, latest Monterey build 12.3.1. Mini-forge is the first

Using AWS Amplify, can I do 301 redirect from /**/index.html to /**/?

Does AWS Amplify support dynamic matching syntax? It works: [ { "source": "/<*>/index.html", "target": "/<*>/", "status"

Vue js can't find page when deployed on firebase

I'm building a stupid web app to do something funny with my friends. I'm using firebase hosting service and discord oauth2. The problem occurs when trying to ac

Electron-React error: I keep getting undefined error while reading 'ipcRenderer'

I am trying to create a desktop application using Electron and React. I set the basic settings using electron-react-boilerplate. https://github.com/electron-rea

How to run a bash script on wsl with powershell?

On my current directory on Windows, I have the following script file simple_script.sh: #!/bin/bash echo "hi from simple script" I wish to run this script on ws

How to limit an array field in javascript object to a certain length

I know this may a simple problem but I have a the following javascript object: const categories = { title: 'cat1', contents: [ { nam

Why does not Serilog selflog work in this simple windows service?

I am unable to get Serilog selflog working in my .NET Core 6.0 C# Windows Service. This is how the Main looks like : public static void Main(string[] args)

File based database maintenance [duplicate]

I'm looking for a solution where the database schema and data are maintained in xml or in some file format, so that the db schema and the data

React Beautiful DnD, multiple columns inside single droppable

I am trying to have a grid column layout, (2 columns) inside a single droppable container. The project is for an online menu where you can create a menu item, w