Latest Questions

Need to do Radio button in antd default checked

I have a Radio Button Group with dynamically data coming from an array. Here's the code : <Radio.Group options={uniqueRadioElements} onChange={onCate

Removing Non-English Words from CSV - NLTK

I am relatively new to Python and NLTK and have a hold of Flickr data stored in CSV and want to remove non-english words from the tags column. I keep getting er

Can't SET variable in BigQuery | Error: Cannot coerce expression

I'm trying to set variable in order to make further operation. But when I set my first variable on line 2 ("SET(new_user)=( "), I get an error Query error: Can

Ansible how to acces results dictionary

I am opening a playbook to update patches in centos, but first I need to validate that there are updated packages and in case the tasks are not stopped. I am us

How to render different style css on same component?

I have react component which is a button and I render this component three times. I want to add some CSS on the second component but I don't know how. I tried t

MongoDB in C# - Type not null query

I have collection where each document has two fields: "Field1" - string value "Field2" - object value with "Field2.Field3(object).Field4(string)". Now I'm tryin

DialogFragment not hiding navigation controls when in full screen

I'm trying to have a full screen DialogFragment with the ability to show / hide status and navigation bars when tapping the screen. Here is the DialogFragment c

Problems installing the python library for salvus

I'm having some problems installing the Python library for salvus (see installation instructions). When I use Conda to configure the salvus environment, the fin

Why my Akka main actor stops even though behavior doesn't change?

I have written a small application, but there is a problem that my app doesn't wait for my actors to stop, and stops them before their actions are completed. I

How to configure custom key for data that has composite primary key in @urql/exchange-graphcache cacheExchange

On the frontend I have a Cart, it has buttons to call a GraphQL mutation to increase or decrease the quantity of a product. The mutation worked as expected, exc

why does next auth say that client_id is required, even though in discord providers, there clearly is a client_id

When I try to use next auth to create a discord oauth client and I click sign in, I get this error: https://next-auth.js.org/errors#get_authorization_url_error

Using the wikipedia module I can get the url of the first image from a wiki page, but I'm not sure how I would show the image, I'm new to progamming

I'm pretty blind to this kind of stuff as I've only taken 2 semesters of basic python. I am able to get the URL from image fairly easily as you can see in my im

minCompileSDK specified in dependency AAR metadata (androidx.window:window:1.0.0-beta04)

I'm currently using Android studio attempting to run an old Flutter project I made about a year and a half ago. When I attempt to run it I get the error: The mi

General question about nearest neighbor data structures

I want to improve the speed of my feature matching algorithm. The matching is based on comparing feature A with circularly shifted feature B. The shifting is pe

How can I use Gaussian Mixture to fit 2 gaussians in my data?

I'm trying to fit 2 gaussians in my red/blue population data. But it does not fit. What am I doing wrong? The code is: mag1 = 'z' mag2 = 'y' mask_rich = (wazp_m

Opaque NavBar Overlapping H1 and content

Ok so figured out the first problem.... now my navbar brand isn't expanding. It seems to be stuck at one size and its added a scroll bar to accommodate. How to

Phaser 3 interactive hitarea of a container

I have a container containing an image and some text; We are facing an issue with the interactive hitarea of the container this.image = this.add.image(0, 0, 'Gr

I have this error which says that there is no "wrapper" in the module curses

import curses import os from curses import wrapper # import Wrapper as Wp def design(stdscr): try: curses.init_pair(1, curses.COLOR_RED, curses.CO

Firebird query returns Buffer

This is my first time connecting to a Firebird database from Node JS. I'm using the "node-firebird" package. Everything seems to work fine. But I get these <

I created a file and stored some value there. When i opened the file in read mode and printed read(33) and printed tell() its showing as in below:

[enter image description here][1] I created a file poem.txt a stored a poem: There is freedom waiting for you, On the breezes of the sky, And you ask,"What if i

Add toolbar and drawer menu to Android Google Maps Activity

I have created a standard Google Maps Activity in my app in Android Studio and the map works as expected. My Activity is called 'NativeMap' and then the activit

Flutter Notification not showing pop up

Notifications I send with Firebase when the app is open, in the background, and closed work fine. But I want to pop up, like this: My codes; local_notificatio

Newbie Glade user confounded by radio buttons

I have a Glade GTK Gui which is meant to be a Front End for a CLI program I wrote a couple of years ago. There are a number of fields for the user to fill in. T

Android API 28 getBitmap throwing "no such column" error

On Android API 28, I'm trying to get the album art for a particular album using the albumID. The code throws the following error on getBitmap android.database.s

How to get a block with the exact number of bitcoin?

Bitcoin blocks are stored as *.dat files and downloaded not in real order because of parallel downloading. That means that blk_0123.dat on one node can differ f

How to mock bean with @PostConstruct method

I need to mock some class that contains @PostConstruct method, but I get NullPointerException inside @PostConstruct method. My code looks like the following: @S

Use tcp for packets to send packets of data

I want to use tcp for packets of data, not streams, but will it work with simultaneous sending? Will i get new independent socket with independent buffer? I mea

Github Action: No signing certificate "iOS Development" found

The related issue is here: https://github.com/yukiarrr/ios-build-action/issues/74 UPDATE: there is no "iOS Development" inside any of the code in my project. An

Dart/Flutter: Http request raises XMLHttpRequest error

I am trying to make an RSS reader with flutter but the program raises the XMLHttpRequest error. In my test I used web (Chrome) as my target platform. I already

How to get the Config.json file for Alexa voice service (AVS) SDK (Download button missing ?)

I am trying to build AVS built-in device for Android platform I followed the steps given in this doc https://developer.amazon.com/en-GB/docs/alexa/avs-device-sd