Latest Questions

Remote form refresh the page on submit

I am trying to add some ajax and work with remote forms on my rails 7 app. I added local: false but the form still rerenders the page instead of just sending a

How to show popup on mouse hover of marker in ngx-mapbox-gl

I am currently showing markers and popups on click of markers. We have a requirement now to show popups on hover. my template is like below : <mgl-map #map1

I used fetch() method to load data from external server. All data are being loaded properly. But I came across dificulity when I use querySelector

I'm trying to load data from an external server and render it on my web page by using javascript. I used fetch(url) to load the data. Data is being loaded prope

Swift tabBar not displaying correctly

In Xcode I have this app that uses tabBarItem. There are 5 items and occasionally when I'm on a specific page I get this weird overlay of the tabBarItems (see p

I am trying to create a post in instagram clone in ruby and rails but it throws an error "no implicit conversion of Integer into string"

This is the Post Model class Post < ApplicationRecord mount_uploader :image, ImageUploader scope :active, -> { where active: true } end This is

Laravel Blade Component - Pass property with colon in the middle and access from class

I have the following code in a Livewire Component <x-input.color wire:model="foo.name" wire-test="foo.name" /> So I am trying to use a Blade Comp

Using Resource wrapper with multiple entities and mapper classes in clean architecture android

Let's say we have an app that is going to apply clean architecture principles. we have repositories, data sources(local & remote), multiple value objects fo

How to apply CSS to the input fields of only one react component?

I am trying to apply CSS to the input fields of a react component. I have written CSS in a correspondent CSS file of a component but It is applied to input fiel

How to fix this error when I am creating vscode extention

npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older ver

Appium inspector not recognizing iOS elements or refreshing

I am unable to use the Apppium Inspector in iOS. When I load a desired capability set into Appium Inspector the app loads fine as shown below I am unable to do

How to convert DataTable to List<T> in C#

For convert DataTable to List you can used the AutoMapper Library and you can do it automatically

I am getting this error "AttributeError: 'module' object has no attribute 'Completion'" when I try to use openai

this is my code and I get this error when I try to run it response = openai.Completion.create( AttributeError: 'module' object has no attribute 'Completion' imp

Laravel join multiple query result

when i run the following query, results are listed multiple. there are 3 records in the table but it lists 5 $adverts = Advert::where("category_id", $category-&

LifecycleOwner also if I change Activity

I m trying to build a code to get position of the smartphone from a private SDK. So i m build this code: nextomePhoenixSdk.getLocalizationLiveData().observe((Li

Apple pay button not show in stripe

Hi I am using iphone 6s safari browser but the payment-request-button not show (for website). my all step are correct I used https server (ngrok). also add my d

How can I load an xlsx workbook into R?

I have an xlsx workbook on my desktop with existing sheets. I have a dataframe in R that I would like to add to this workbook as a new sheet. Using library(open

FatFs async read without blocking

I am using stm32f103 and i need to read data from sd card. I am using a coroutine system ,so i don't want to block. Is there a possible way to read asyncly?

Flask static send from localhost to server

I am deploying an application on localhost and listening on a port on a remote server which is bound to a domain, the application shows up fine on localhost and

How to convert varchar2 input parameter to timestamp in stored procedure

We are using a proprietary product to develop our application. This product is capable of connecting to Oracle DB and executes SQL queries and stored procedures

how to pass null value to just one specific key of the one object using same DRF serializer

I'm just passing the same object 2 times in the same serializer but I want to pass key: "retweet": null in one object and in another object I want to pass some

setTimeout block execution code block in NativeEventEmitter callback

I am trying to send a string to the native side (android) with a delay. But setTimeout is blocking the execution. Could you explain what is happening? const eve

NextJS: Error serializing `.data.data` returned from `getServerSideProps`

I'm new to NextJS. I'm working on a simple page in which I need to retrieve data from my backend app. My backend app is a totally separate app written in go. My

Flutter how to update ui when user change size of web application window

I create flutter web application to increase knowledge about adaptive ui, and i stuck with a big problem for me. When i move my application window to other scre

"maxConcurrentRequests" is not working in dedicated ASP for azure function

I have Azure function in V4. and I have host.json as it is mentioned that maxConcurrentRequests is 10 but at the time of execution azure function ignores this s

How to use default interface methods in specific class?

public interface IPrinter { public void Print() { Console.WriteLine("Printing..."); } } public interface IScanner { public void Scan()

Howto pass argument depending on target framework?

My .csproj file uses multi target: <TargetFrameworks>net6.0;net472</TargetFrameworks> and I need the '/p:DefineConstants="TRACE; X64; NETFRAMEWORK;

Socket error - return getattr(self._sock,name)(*args)

I have this error when I try to run this on my server can you help me error: line 228, in meth return getattr(self._sock,name)(*args) TypeError: listen(

Sharing ssh keys with trusted person

Some work needs to be done on remote linux server want to share ssh keys with trusted person. Whats the best way forward xstation

the following arguments are required: -m/--model, -o/--output

I am attempting to run a GoogLeNet code, but then get this error: C:\Users\JG\AppData\Local\Programs\Python\Python39\python.exe C:/Users/JG/PycharmProjects/Goog

ERROR Command failed: ./gradlew assembleRelease --stacktrace

I'm trying to build an apk with bubblewrap, the command is bubblewrap build I'm using codeanywhere to run the test, but I get the following error. Error: