Latest Questions

Issue with docker and postgres, cannot run containers

Hi guys I have issue with docker-compose and postgres image. I am trying to use docker-compose(I am new to docker) for my API and postgres database. Her is how

Get page's blocks in EPiServer Content delivery API

I have a page in Episerver / Optimizely, with a page that has some blocks, but I want to access the blocks through https://localhost:5000/api/episerver/v3.0/con

Combining Two Flows and add them to temporary list of StateFlow(Hot Flows)

I m getting data from two End points using flows and assigning those two list to temporary list in ViewModel. For this purpose, I'm using combine function and r

Can someone explain me why "operator precedence" applies to logical operators like "||", "&&" in javaScript

Can someone explain me why operator precedence applies to logical operators like || and && in JavaScript? What does that mean in an operation like: tru

check if text is bold

I am testing the output of a search and I want to be sure that I will get the text and that it would be bold. For example I want the name to include "ar". As an

How Can I Hash By A Raw Pointer?

I want to create a function that provides a two step write and commit, like so: // Omitting locking for brevity struct States { commited_state: u64, //

How to send scheduled email with Crontab in Django

I like to send scheduled emails in Django with Crontab. I made a very simple app to test how can I send an email in every minutes (just for testing purposes). I

crr output list- remove df$ from coefficients?

I am using the cmprsk package to create a series of regressions. In the real models I used, I specified my models in the same way that is shown in the example t

Tweepy is throwing an error when I try to upload an image. (AttributeError: 'dict' object has no attribute 'media_id_string')

import tweepy import os from PIL import Image consumer_key = "hidden" consumer_secret = "hidden" access_token = "hidden" access_token_secret = "hidden" auth =

How can I rename files in a swift package in Xcode?

I don't want to rename a swift package. I want to rename files in the swift package. When I click on a file and wait until Xcode decides to bless me by highlig

High Throughput but Slow Consumer (Event Grid or Servicebus)

My producer is producing high volume data in a short span of time for a couple hours of a day; then does nothing for the rest of the day. My consumer is slow du

Reduce the react native ios/android size folder

Need help to reduce the react-native file size, my repo is getting heavy. cd ios xcodebuild clean cd android ./gradlew clean ./gradlew cleanBuildCache I tried

Download AWS RDS Data using Python After a certain Timestamp

I have an RDS database where there is a single sql table and new timeseries data shows up in it every 3 hours. I am trying to make a python script that pulls me

ApolloNetworkException sometime on Apollo Mutation on Android

I am using ApolloClient for Android. Sometime one mutation api failed with ApolloNetworkException. Problem is i can't generate in debugging. This exception occu

Creating New Columns in Pandas based on subtracting two variables based on value from different indexes

I have a DateFrame df which contains Open High Low Close Volume and Date data for every minute for the past ten days. **open** high low **close** volume

GITLAB - Fatal: Could not read from remote repository

First of all, thank you so much for your attention on this important issue that I'm dealing right now... See the image below then keep reading the text: So, I b

ValueError: [E143] Labels for component 'tagger' not initialized

I've been following this tutorial to create a custom NER. However, I keep getting this error: ValueError: [E143] Labels for component 'tagger' not initialized.

Game object can't detect others when using collision.gameObject.tag in unity

I have designed a scenario as below: I created an object spawner to collide with things tagged as "ob", using a boolean to manage the timing to spawn new obstac

Dockerfile RUN command multiple inputs

I have a Dockerfile using which I am trying to build an image. I wish to have multiple inputs fetched from the user from STDIN, when the build runs. To get star

AttributeError: 'str' object has no attribute 'tk' when click button [duplicate]

Here is my code: window = tk.Tk() version = tk.Label(text="hi", fg="orange", bg="black",

Why is my NFT metadata not showing on opensea?

I am developing a NFT contract on ETH using open Zeppelin, and reached the stage where, I am deploy on rinkeby. However there appears to an issue with the token

Python3: Import Module over Package

I'm looking for suggestions to import a module over a package in Python3. I don't have control over the names of the files so changing them is not an option. Ad

Jquery UI Sortable execute function on drop outside or inside the same list

I am working with Jquery ui sortables. I have made bootstrap cards sortable in a table. When i drop a card i want a to execute a function. This works fine when

Add a waiting point in a heredoc block running on a remote server

I am trying to add a waiting point to my code which can then be resumed/unblocked manually. Sadly it is not working as expected. I guess due to how heredoc work

How can I loop through pages of 100 records until the last page is less than 100 using PHP?

I have this bit of PHP code below. try { echo "Try for getting data"; $starttime = ("1900-01-01"); $endtime = $currDate; $day1 = strtotime($

Update an element in faiss index

I am using faiss indexflatIP to store vectors related to some words. I also use another list to store words (the vector of the nth element in the list is nth ve

unable to run docker within docker

I am using gitlab and need to build a docker image within the container image. Every-time I am trying to do that I am getting error : Cannot connect to the Dock

Echo SSH key into the container messes docker build output

I need to use SSH keys inside a container during build stage and I do that with RUN echo "${SSH_KEY}" > /root/.ssh/id_rsa Where SSH_KEY is build arg. The pr

java.lang.IllegalAccessError: issue coming while running maven build

I am getting the below issue while trying to run the maven build . Project runs fine in java application but while running maven build getting the below issue .

Azure Function does not connect to Cosmos DB

I keep getting an error in application insight when trying to run my Azure function, it works locally on my computer but does not work in Azure. Here is the err