Cant launch new coroutine

I already have a lifecycleScope created in the MainActivity. When I try to create a new lifecycleScope, I get an error: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public val LifecycleOwner.lifecycleScope: LifecycleCoroutineScope defined in androidx.lifecycle I don’t know what to try. 2 UniversityDetails isn’t AppCompatActivity. –  In your … Read more

Is Java “pass-by-reference” or “pass-by-value”?

I always thought Java uses pass-by-reference. However, I read a blog post which claims that Java uses pass-by-value. I don’t think I understand the distinction the author is making. What is the explanation? 8 We would more commonly say that a variable “passed-by-reference” can be mutated. The term appears in textbooks because language theorists needed … Read more

Integrating New Relic Agent with Java 17: java.sql.SQLException NoClassDefFoundError

I’m trying to integrate newrelic-agent for metrics. I’m using the below newrelic version and while running locally, it is working fine. <groupId>com.newrelic.agent.java</groupId> <artifactId>newrelic-agent</artifactId> <version>8.5.0</version> downloaded my newrelic.jar from curl -O https://download.newrelic.com/newrelic/java-agent/newrelic-agent/current/newrelic-java.zip But when I add my service to docker with this image of java 17 linux/x86_64 openjdk:17-jdk-buster, I’m getting NoClassDefFoundError Exception. Error Details Unable to … Read more

my flask server is not executing properly

i have created a flutter that accepts an image from the user. I want to send this image to my flask server where a deep learning model is connected. click to view snapshot of flask server. The server is up and running but the predict function in the flask server is not running and it … Read more

cosmos sdk does not compile with new slices package

While compiling a cosmos sdk project I am getting this /root/go/pkg/mod/github.com/cosmos/[email protected]/runtime/services/reflection.go:60:28: type func(x *descriptorpb.FileDescriptorProto, y *descriptorpb.FileDescriptorProto) bool of func(x, y *descriptorpb.FileDescriptorProto) bool {…} does not match inferred type func(a *descriptorpb.FileDescriptorProto, b *descriptorpb.FileDescriptorProto) int for func(a E, b E) int This is du to the slices package, as the sortFunc is now returning an int. How … Read more

External scripts in tag manager within a single page app built with React aren’t working properly

We have a single page app built with react that also uses GTM to load external scripts like Google Analytics 4, Microsoft Clarity, etc. For some reason none of the external scripts are functioning unless using tag assistant or preview mode in GTM. The 3 external scripts we have are: -Pardot’s Tracking Script -Zoominfo’s Tracking … Read more

Unity scene transition – original background does not appear

In the scene named Stage1, the Player moves to the scene named Stage1_1 through a Gate. using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class ChangeSceneOnTag : MonoBehaviour { private void OnTriggerEnter2D(Collider2D other) { // When it contacts an object with the “Star” tag if (other.CompareTag(“Star”)) { LoadStage1_1Scene(); } } void LoadStage1_1Scene() { SceneManager.LoadScene(“Stage1_Scene … Read more

Cannot read from Pipe using exec.Command in Go

I am writing a go program that sends data to another program via stdin and reads the response via stdout. Here is a script which acts as an “echo server” of sorts: import sys if __name__==’__main__’: for line in sys.stdin: print(“Hello”, line.strip()) When I try to communicate with this program in Go, it hangs on … Read more

Is it safe to throw exceptions from within C++ noexcept functions if you want to terminate the program? [duplicate]

This question already has answers here: Should a theoretically, but not practically, throwing function be declared noexcept? (5 answers) Is my code ill-formed if I intentionally mark a function [that I know may probably throw] noexcept to terminate immediately in case of exception? [duplicate] (2 answers) Closed 12 hours ago. Passing an exception through a … Read more