Latest Questions

React useState hook does not update the lonlat value in OSM

I´m stucked with not updating react useState hook setPosition(lonLat) line 34. Could someone advise me please why that does not working? The position cons

Can't clone from repository of Github in Visual Studio

Recently, my visual studio can't clone from repository of GitHub. Once it is completed clone, the visual studio will report this error "One or more errors occur

How to draw button or widget upon QWidget using python-MPV on windows?

I use this library https://github.com/jaseg/python-mpv and PySide6 to embed MPV in container (QWidget) in python. I want to draw the button (or something else m

301 redirect htaccess to right URL

I would like to redirect újdonságok-c-1.html to ujdonsagok. The .htaccess file is now: RewriteRule ^újdonságok-c-1.html ujdonsagok [

Add Django Rest Framework Login Button to Browsable API when Using Third Party Auth Library (django-rest-knox)

The login button is missing from my browsable API. I am using django-rest-knox for token authentication. My urls.py contains: urlpatterns = [ path('admin/',

Model create() method is executed twice SOMETIMES and creates duplicated entry for 1:1 relation

I am making a Laravel 5.7 system which has tons of code and models, but the ones in problem are: Order - first created Transport (1:1 Order) - afterwards create

Unable to send the logs to Splunk Enterprise local using log4j2

I'm using log4j2 and splunk within java to send logs into my Splunk Enterprise HEC (HTTP Event Collector) Splunk Enterprise is running in my local machine. I'm

show only one item with express/ejs/mongo

I've been trying to make a very simple ToDo list but when I want to show the description of the tasks, it displays all the descriptions, not only for that task

delete a table form a database using laravel command

i need to delete a database table using laravel artisan command . not like this command php artisan migrate:rollback --step=5 i need to create like this route o

Image Slider working under activity but unrecognized in fragment

<com.smarteist.autoimageslider.SliderView android:id="@+id/imageSlider" android:layout_width="match_parent" android:layout_height="300dp" app

Rubocop – how can I just display auto-correctable results

I would like to run Rubocop and just see auto-correctable results. The documentation (https://docs.rubocop.org/rubocop/usage/basic_usage.html) indicates this sh

Custom UIButton -> part of title disappears after click

I created custom button subclassing UIButton. I set custom font for titleLabel. After tapping on custom button, the part of title disappears. Without setting cu

found error while installing tensorflow in virtual environment

i found this error while installing tensorflow in my python virtual environment (venv) E:\RASA\demo-demo-demo>pip install tensorflow ERROR: Could not find a

Ktor 2 - How to add thread local data for a request?

Before Ktor 2 it was possible to use withContext(threadLocal.asContextElement(..)) { proceed() } inside an ApplicationFeature to add thread local data to a

How to Select cities from drop down while booking tickets using robot framework

I am new to robot framework and i tried to automate booking sites and when i tried to select cities from Yatra.com website but unable to select cities and dates

How to order comments in firebase firestore by createdAt

I have a document in which there is a comments array of objects and each object has createdAt property. I want to sort all the comments that are inside the comm

Custom utility types (generic types) for classes `IsClass` of TypeScript

I am trying to create a generic type to make sure the first parameter to be a class. However, the factory function parameter cannot be replaced by a generic typ

Why in LDA, n-components doesn't works properly?

I tried to use LDA and find a 3-channel output. But its output has just 2 channels. from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA

How to filter out NULLs in a Hive query?

Table is: Result should be: How can I solve this query? hive\> select \* from xyz; OK xyz.col1 xyz.col2 xyz.col3 NULL b c a NULL c a b

App was not getting started due to <system.web> tag

I am developing a desktop app with .NET Core Which consume data from Rest APIs and save that in database. In past I used .NET framework to develop such app and

QML udp/rtp video stream fails Windows 10

In Qt5 /qml it was possible to playback udp stream as rtp payload on Windows MSVC kit , below qml code works on Qt5, now problem is migrating to qt6 (6.3) this

Error using data.table for output table generation

I would like some help regarding the adjustment of the second code. Codes are intended to do the same thing. The first code is generating the output table corre

Chartjs tooltip and draw line separatly

Chartjs 3.6.1; typescript 4.3.5 I would like to draw a vertical line on chartJs, where the user clicked (once). I can draw a line in the chart.options.onClick()

Boostrap vertical sizing with different style width and height

I am trying to set verticaly icon on profile photo card inside div to be in the middle in white box(div), but dont know why it doesnt works. When I use style="w

print refcursor from function

I'm using oracle 11 XE & Application Express 4.0.2.00.09 and I have this function that I want to print it's cursor. I don't know how to read the return of t

Is it possible to use input variables in keybindings in VS Codium?

In Visual Studio Codium I want to define a command that has a variable parameter. I want the IDE to open specific file, which name is written in another file. A

error showing when starting xampp after changing the hard disk to ssd

I have been running xampp from D drive well. Recently I have changed my hard disk to ssd. After then I can not run the xampp. I have checked the port that is wr

Javascript: Change element class if button has a certain value [closed]

<div class="main-div main-div2"> <!-- IF up to date, main-div3 --> <button id="update-btn" class="btn update

String-join pandas dataframe colums and skip nan values

I'm trying to join column values into new column but I want to skip nan values: df['col'] = 'df['col1'].map(str) + ',' + df['col2'].map(str) + ',' + df['col3'].

Expanding Text Area throws error on Chrome/Firefox but not Safari

I have a text area that dynamically expands to fit the content inputed. It works correctly on all browsers, as far as I can tell, but on FireFox and Chrome it g