text string | meta dict |
|---|---|
Q: Why YAML parsed list is interpreted as object by javascript? This is my config.yml
key1:
list: ['x', 'x', 'x']
And i parse this config with yaml package.
import { parse } from 'yaml';
import { readFileSync } from 'fs';
const parsed = parse(ReadFileSync('config.yml', 'utf-8'));
console.log(typeof parsed['key1'][... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Modify the load balancing between replicas based on custom metrics in Kubernetes I need to customize the default load balancing algorithm (Round Robin) in the Kube proxy. As far as I know, it also provides variants like weighted round robin and the least connection algorithm.
In my case, I want to distribute the tra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Vmware bridged network working for class C ipv4 address, but not for class B ipv4 address Vmware Station17 pro, kali 2022-03.
When connecting with my mobile hotspot, my ip address is 192.168.XXX.XXX, and the mask is 24. In the situation, my Vmware bridged network works after setting.
However, the school LAN is B cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Collapse certain rows using dplyr I'm new to r, and attempting to collapse specific rows of numeric data using dplyr. All the data is int, I have an ID variable and 8 other variables in a 9 by 8 table. If I want to collapse all the data in rows 2 and 3 and 4 and 5, how would I do that?
I've tried to use group_by and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Showing different states in a Spell-dataset using SPSS Syntax I have a Dataset which involves different states for a person ("Number) and the length of a state. my Goal is to Define the Start and End Date for each State in a new Variable.
What I got:
Number----Start date----End Date-----State
24-------01-Jan-1975---... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Weird white line on React page I am having a weird white line displayed on my app but the devtool doesn't detect it. It is disappearing when I remove any of the page components I have on my app and I played around with borders, background color etc without effect. I have tried changing css styles of my index.scss ye... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Badge on an item in GridView Flutter I have a GridView in Flutter and I have to put a badge on it.
I have to achieve something like this.
how can I add that badge on my code and make sure it works perfectly on different sizes.
A: It is easy to do with the help of Stack inside the Gridview Builder same as below
retu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to write Python dict comprehension for varying key lengths i am building a simple weightage model with some relationship between the components. I have a skeleton code that does the relationship building between 2 keys, but when increasing to 3/4 keys, i cant find a way to implement it to cater to varying length... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Change PHP title on page-to-page basis So let's say I have multiple pages that are structured like so:
<?
include_once("head.sub.php");
?>
..HTML continues
Logic pertaining to the <title> in head.sub.php.
if (!isset($g5['title'])) {
$g5['title'] = $config['cf_title'];
$g5_head_title = $g5['title'];
}
e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Masking data frame with multidimensional key I have a data frame containing value_1 and value_2
df_1 = pd.DataFrame(
{
"id_1": [101, 202],
"id_2": [101, 202],
"value_1": [5.0, 10.0],
"value_2": [10.0, 4.0],
}
)
df_1 = df_1.set_index(["id_1", "id_2"])
that looks like this:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Minimize/Maximize window in Jetpack Compose Is there a way to maximize or minimize programmatically the window with Jetpack Compose Desktop ?
I'm thinking about that :
fun main() {
application {
Window(
title = "My Application",
focusable = true,
onCloseRequest = { exi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Check that class was called in a with statement I am building a class that people are supposed to use with a context manager:
with MyClass(params) as mc:
mc.do_things()
...
I was wondering whether it was possible to make sure that people called it this way, and that code looking like this:
mc = MyClass(para... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java Quarkus how can i pass @ConfigProperty to an constructor? Hello I have the following class
@ApplicationScoped
public class AppScopeTest {
@ConfigProperty(name = "my-config-prop")
String test;
private TestClass testclass;
@Inject
public AppScopeTest () {
this.testClass= new Tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to send files from linux server to network shared drive with python script How to send files from linux server to network shared drive with python script?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75582326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Kotlin how to get this Result from database lets say i got the following user database with two columns firstname and lastname:
firstname
lastname
John
Doe
Jane
Doe
Michael
Smith
Jane
Smith
How can i get the following result?
[Doe]
John
Jane
[Smith]
Michael
Jane
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75582328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Channellistner is not working in with newer version of wcf i.e wcfcore Error CS0246: The type or namespace name 'ChannelListenerBase<>' could not be found (are you missing a using directive or an assembly reference?)
I have the framework version of the WCF server code. When I was trying to migrate with CoreWcf, gett... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to integrate Pendo in React application I have a React project and I need to integrate Pendo. Were do I put Pendo code snippet in the application? Is there any react/pendo library to work with?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75582330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to exclude one value from R Shiny sliderInput? I have a Shiny sliderInput in my application in which one can choose a year between 2000 and 2022. However, I do not have any data for 2021 which is why I would like to exclude that year and to not have it shown so that the user cannot choose 2021 on the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cmprsk python package example notebook doesn't work I'm using Python 3.11.1. I've installed https://github.com/OmriTreidel/cmprsk (1.0.0, the latest version) on a new virtual environment, I've installed rpy2 3.4.5 like the documentation suggested, I'm using R 4.2.2 and I've installed the cmprsk package as suggested.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ChatGPT showing blank white page after login I'm trying to login the chatgpt page but it's showing the blank page. I do know, Its my chrome problem or its problem from site. Any body help me to solve it
I looking for a solution for the problem
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75582339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to build nested menus with python-telegram-bot? (after 2023 update removed Updater/Dispatcher) I'm building a tele bot which requires nested menus (and visually I want them to be inline) like the solution mentioned in this 2020 link, but unfortunately after reading through the Jan 2023 documentation, I realised ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Azure ML Client Authentication Failure I am trying to authenticate the Azure ML Client through the following code running on Spark cluster:
os.environ["AZURE_ML_CLI_PRIVATE_FEATURES_ENABLED"] = "true"
os.environ["AZURE_SUBSCRIPTION_ID"] = subscription_id
os.environ["AZURE_RESOURCE_GROUP"] = resource_group
os.environ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Select all records if it is a leap year else exclude 29 february I am trying to exclude people with birthdays on 29.02 this year, because this year is not a leap year and the following query is working. But when I set the year to 2024, it is not giving me any results. I want to select all records if a year is leap a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mocha reporter in Cypress - recording videos I have installed mocha reporter that creates directory called 'reports'. When I run tests by Jenkins, this directory is passed to the artifacts, so when any of my tests fail, the screenshot appears in artifacts.
Can I enable videos like I can take screenshots when my test... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add icons to checkout tags using Hooks? How can I add an icon next to the WooCommerce Checkout page Input tag, which when tapped shows a Tooltip with text?
How to edit checkout inputs with hooks in WooCommerce?
I want to add an icon inside the billing details, in the phone field input, which is billing_phone,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to inject a value from the named channel configuration property in spring-cloud-stream? I have a spring-cloud-stream-kafka project. The following is an abbreviated section of application.yaml. I am interested in injecting the value for the property spring.cloud.stream.kafka.bindings.myNamedChannel.dlq... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unexpected behavior with fgets()+sscanf(): 1st row wrong and rounding floats I'm very surprised by this behaviour. I have to be doing something wrong, but I can't find out what it is.
I had a 133*21 table in a .xml file, and converted it to .csv. I didn't lose any info in this excel conversion.
Then, I made a simple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FilePicker return null nbytes for large file I have a Flutter app for Web.
It allows user picking multiple files and uploading on Google Storage.
FilePickerResult? picked = await FilePicker.platform
.pickFiles(allowMultiple: true,
type: FileType.custom,
withData: true,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Angular Observable returns undefined after subscribing to it I work with an Nx monorepo using Angular 15 and TypeScript.
I'm trying to do a simple fetch from a public api (url = https://jsonplaceholder.typicode.com/users/2) in my service and then log it in my console but for some reason it doesn't work and I can't f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add a route to actix web only if external condition is met I need to add a route to actix_web only if an external condition is met. Since actix_web's App uses a builder pattern and each call to App::route consumes the app instance, I can't seem to find a reasonable way of adding a route conditionally.
Example... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Counting "pre" in R and finding the average I've got a data set in R with "pre" and "post" as the values. I would like to count all the "pre" and find an average for this.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75582356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to specify another value instead of id in the Model class
How can I take the room number itself instead of going to room_num?
But so that at the same time the choice of the room remains as below
How can I implement this?
views.py
class RegList(generics.ListCreateAPIView):
queryset = Registrations.objects.a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I transfer data I need to transfer the data and get the result, how can I do it?
this is my code:
code
but I need to get only the final result
my result
I need to return only the avgQuantity
need some advice, i'm using express
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75582358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How can I return a tuple of a vector and a reference to a value inside the vector? The following code could theoretically work, because the reference returned in the tuple points to a location on the heap:
fn foo<'a>() -> (Vec<u32>, &'a u32){
let v=vec![1];
(v, v.get(0).unwrap())
}
However, I get the follow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to write a groovy script to get _id from MongoDB @Test
public void test() {
int userId = Math.abs(new Random().nextInt() % 10) + 1
HTTPResponse response = request.GET("http://127.0.0.1:8030/feed-server/feed/" + {userId} + "?last_post_id=63ef9fdd81f9764fdd5ba0ce", params)
if (response.statusCode == 3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Explanation on lint warnings for some of my properties Analyzing code I found these warnings.
Could someone explain me some details about them please.
Any alternatives will be welcome
interface A {
var someBoolean: Boolean // Boolean method 'someBoolean' is always inverted
}
class B {
var visible: Boolean by ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: @SpringBootTest, @ExtendWith, etc. for Unit & Integration Tests in Spring Boot? I was using JUnit and Mockito for unit testing in my Spring Boot apps and several weeks ago, I read some tutorials and seen there are various options available for writing test in Spring Boot apps. At here, I want to stick and follow the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to capture the screen on mac using SwiftUI? I am a beginner in SwiftUI. My task to capture the image of the whole screen using SwiftUI includes other apps and title bar. I am unable to show the permission dialog of screen recording and capturing the image of the screen. I have implemented the solution below but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: initialization from incompatible pointer type when assigning a pointer to a 2d array int main()
{
char artist1[4][80] = {};
char artist2[4][80] = {};
char (*pb1)[4][80] = artist1;
char (*pb2)[4][80] = artist2;
char *arrptr[2] = {pb1, pb2};
}
I am trying to assign a pointer to an 2d array ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Break out DIV Container without leaving space So, I'm trying to make a submenu hover navbar, but whenever I hover over the dropdown menu, it still ends up leaving space inside of my original navbar dropdown. Is there anyways to breakout or leave out the extra space within the navbar? I've tried to break out of the p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Call a cell inside of an active form, in Microsoft Access I'm designing a database in Access, I've made a form for data entry.
In Excel there is a feature were it's possible to enter the formula:
=Text(CELL,"FORMAT")
Is this possible to do in Access, inside of an open form.
What I want is for a user to enter a date ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I add class attributes to a navbarPage in Shiny? This is probably a very simple question (or looks like it should be) but it has me stumped. I am working on a Shiny app which uses the bslib package for theming. This is the skeleton code for the UI element:
ui <- fluidPage(
theme = bs_theme(bootswatch = '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does GitHub allow to enable secrets managing for collaborators? I've tried to google this but failed to find any info, so:
*
*I'm invited to a repository to collaborate
*I'm not seeing the Settings tab at all
Can the repo admin configure it in a way that allows me to manage Settings and, more precisely, Secrets,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get a converted Python Exe to work correctly? I am trying to use py-to-exe to convert my program to an executable file that I can put on
other computers without them needing Python or the libraries used in the program, but I can't seem to do it.
So far what I've done is pick the main file that calls on its ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Calling a sub in VB from a different object instance So, i got this Code from another person where i have to do adjustments. There was a whole class doing stuff that all worked fine. Now my task was to rip out a huge chunk - but not all - from the class and put it in a new file and call the code now from the old fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error on my ASP.Net Web Application on server My application on web server was working fine. Due to some (maybe) windows update on server, I am receiving error on my application as follows.
I tried re-build and re-deploying my application but no luck.
ERROR***
Compilation Error Description: An error occurred during... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: (Dataflow) Apache Beam Python requirements.txt file not installing on workers I'm trying to run an Apache Beam pipeline on Google Dataflow. This pipeline reads data from Google BigQuery, adds a schema, converts it to a Dataframe, and performs a transformation on that dataframe using a third-party library (scrubadub)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android DrawerLayout listener how to remove I have 3 different navigation drawer top headers that I set dynamically, that's why I also need to add and remove the listener accordingly:
private fun switchToB() {
val navigationHeaderView = switchDrawerHeaderTo(R.layout.drawer_header_b)
val headerBinding... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to create a view with one specific value pair of each table in a schema? I have a Snowflake schema with 100+ tables. Each has a column โload_timeโ. Is it possible to create a view with each of the table names and their highest value for load_time (latest/newest load_time)?
I donโt really know if I sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create a new column returning the maximum date over an other column as reference I would like to create a new column on my power query code here, to validate and return the maximum date, using another column as a reference,
For example, in my attached image or table below, from the column "Number", I would like to g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Vertically center svg with ellipsis I have text that overflows with ellipsis using css. Inside the text is an svg. I can't figure out how to center the svg vertically while still retaining the ellipsis.
Using hacks like margin-bottom: -0.5rem; on the svg kind of works but causes other weird visual glitches.
https://... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Meaning of rsync sent numbers System is installed with Ubuntu 22.04.1 LTS.
When running command "rsync -avn --delete-before " i see at the end following information:
"sent 5,941,061 bytes received 588,133 bytes 72,145.79 bytes/sec total size is 973,856,677,250 speedup is 149,154.20 (DRY RUN)" My assumption is, that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mongoose $gte doesn't work for aggregation I want go find data with aggregation and limit by date, but I can't find what I am doing wrong. I need agregation, because in full code I am using group, so find is no go for me.
Here is simple version of code:
const dateMonth = new Date();
dateMonth.setDate(dateMonth.getDa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deny remote access to SQL Server which runs as a Docker container I run a SQL Server as a Docker container. Per default the container allows remote access.
Is there a way to prevent remote access?
A: When you map the port, add 127.0.0.1 as the bound IP address. That will limit access to the mapped port to the host ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Azure DevOps Pipeline - Commits since last run My Team are migrating from TeamCity to Azure DevOps for CI, one thing that has been really useful in Teamcity is the build shows a "XX Pending" which lists all the commits to the specified branch made since the build was last run, see below.
Is there an equivalent fea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: The right way to create a custom object in a table via REST API I am trying to create an object in a custom table through Salesforce REST API. The table is called B25__Reservation__c. The application is Booker25. Here is the code:
CloseableHttpClient httpClient = HttpClients.createDefault();
List<NameValueP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: populate JavaFX ListView The ListView does not show what I expected.
I have just started to use JavaFX using Maven and Fxml. And I am wondering, why my data does not show up.
I followed several tutorials, also searched here, but can not pinpoint my fault. For sure it should be simple.
The App:
package eu.ngong.sampl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: HOW TO DECODE DATA RECEIVED DATA FROM RASPBERRY PI UART RX I want to receive data from soil sensor using uart TX to uart RX in raspberry pi
I am following code from https://www.electronicwings.com/raspberry-pi/raspberry-pi-uart-communication-using-python-and-c
UART communication on Raspberry Pi using Pyhton
http://w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How can I insert a dotted line after a table row without using table rows border? I'm trying to create a table like this, I've done it all but I can't make the dotted line below the table row responsive.
I want to acheive this
This is the CSS I used.
th {
padding: 10px;
}
table th {
background-color: #ebf2fb;
}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Update value of variable inside list inside data class using Riverpod and copyWith method Let's say I have a data class Dog that includes a List of puppies.
@immutable
class Dog extends Equatable{
final int id;
final List<Puppy> listOfPuppies;
Dog({required this.id,required this.listOfPuppies});
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: createRoot(...): Target container is not a DOM element. when test React js file test error
I'm using React 18.2.0 version and I am getting the error you see above. My index.test.jsx file:
import {render, screen} from "@testing-library/react";
import CountryDetail from "./index";
test('Country detail renders correct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: upsetR binary variable wrong visualization I have a dataframe EP as follow:
Name A B C D E
----------------
0 0 0 0 0 0
10 0 1 0 1 0
100 1 1 1 0 1
110 0 0 0 0 1
1000 1 1 1 1 0
1010 0 0 0 1 1
My code:
EP_new <- list(A=as.vector(EP$A),B=as.vector(EP$B),C=as.vector(EP$C),
D=as.vector(EP$D),E=as.ve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why am I not seeing any input on this server-client setup? I'm trying to use socket.io for a work project. In order to learn how this library works, I want to setup a test server and client in which I can run some code.
For now, I have set up a working JavaScript server as per the example listed here: https://socket... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Prettier not working on save from within Visual Studio Code It appears the formatting via keyboard and formatting from the menu are not on the same page, but I don't know why. Below are my exact detailed steps...
From Visual Studio Code 1.75.1
*
*I installed the extension Prettier - Code formatter v9.10.4
*From F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: flyctl curl command throwing permission denied I am trying to set up the command line tool for fly.io on ubuntu as per this repository: https://github.com/superfly/flyctl
The first step is installing the latest version:
curl -L https://fly.io/install.sh | sh
but I get this error in my terminal:
mkdir: cannot create... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Splunk search events For events format:
LogMessage: { [-]
message: { [-]
data: { [-]
ConnectorRequest details:
request: { [-]
application: bond
items: [ [-]
{ [-]
naturalKey: ************4206
system: debitCard
}
]
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: npx react-native run-ios runs with Hermes errors I've been trying to run npx react-native run-ins for the past hour and I've been getting these errors:
ERROR TypeError: undefined is not a function, js engine: hermes
ERROR Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplicatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Express/Node JS - Should ypu always check if document exist in database? I got into a habit to have extensive error checking so I always check whether document of user exist before editing or doing something within the controller, but I wonder is this really necessary? For example, within social network app, when us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multiple entries for 'where' program lives with MacOS - How to clear down? I'm doing a search for where gpg but it returns multiple entries.
where gpg
/opt/homebrew/bin/gpg
/opt/homebrew/bin/gpg
Is there any way I can clear down to only have one entry?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75582435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Adding class does not work on first click I have a button on click and on hover to which the active class is added.The problem is that when you go in DevTools and choose devices where there is no hover and click on the button, the active class is not added to it for the first time. But when you click the second time... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JPA @JoinColumns Unable to find column with logical name I Have a Spring Boot Project. Nothing but 3 clases (entities), when i try to run the project i get the error " Caused by: org.hibernate.MappingException: Unable to find column with logical name:"
These are the classes:
@Data
@Entity
@Table(name="HOL")
public c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: enum case insensitive in spring boot 3.0.0+ I have an Enum class and I would like to use the lowercase (i.e., case insensitive) in the URL call of the Get:
package org.crea.w4ag_mock.mocker;
import com.fasterxml.jackson.annotation.JsonProperty;
public enum TimeFramesEnum {
/*
baseline = BASELINE
perio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to update a Future via Provider I define a Future: late Future snapshot;
I initialize it when a button is pressed:
setState(() => snapshot = loadData(...))
I have a FutureBuilder to use the future.
On the other hand, I have a button which updates a value in a ChangeNotifier (from Provider) when pressed. I would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Test & Feedback versions - VS Marketplace version is older than version in Chrome Web Store
*
*The version of the Test & Feedback browser extension in the Visual Studio Marketplace, 1.0.176.1, is older than the version in the Chrome Web Store, 1.0.193.0.
*I am evaluating a request for a Chrome Browser Extension ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Runtime error in simple code of binary to decimal conversion On Geeks for Geeks, I tried to solve a basic problem of binary-to-decimal conversion, but I get a runtime error and I don't know why.
class Solution {
public static int binarytodecimal(String str) {
int n = Integer.parseInt(str);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: descartes, python package, error in polygonpatch I have installed the latest Descartes package using pip3. But I cannot seem to run the example code provided in the website.
`
IndexError Traceback (most recent call last)
/tmp/ipykernel_500743/916321365.py in <module>
20
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Highlight line, even if there is a selection I changed settings.json, so that the current line is easier to see (dark green background):
But this highlighting disappears as soon as there is a selection.
For example I select the word "editor", and now the dark green background is gone:
How to highlight the current ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: sql data query, How to get results from Sql when executing SELECT sex, COUNT(*) AS count FROM SinhVien WHERE sex =0 GROUP BY sex; in java language How to get results from Sql when executing SELECT sex, COUNT(*) AS count FROM SinhVien WHERE sex =0 GROUP BY sex; in java language
please help me i really need to unders... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Map same domain to two different AWS resources I have a domain abc.io in my Route 53.
I have a nextJS application in AWS amplify.
I have my marketing website on the EC2 server.
I wanted abc.io to open my nextJS application whereas abc.io/w/* opens the marketing website.
How can I configure my AWS to achieve that?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error with the measure button on the vertical toolbar with Autodesk platform services The measure button of Autodesk Platform Services (forge viewer) does not work for me. When the toolbar is vertical and I click on the button, it does nothing. When it is horizontal there is no problem. The rest of the buttons work ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: why console.log behaves weirdly in my modules? I have implemented a code and I have exported console.log to two modules but it only prints it once
code:
//file1.js
export const a=console.log("hello");
//file2.js
import {a} from './file1.js';
console.log(a)
//file3.js
import {a} from '.file1.js';
console.log(a)
//... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: prepend and append a string to all elements of an array without using a temporary variable Is there a way to both prepend and append a string to all elements of an array without using a temporary variable, i.e. only using shell parameter expansion?
Having an array
a=(1 2 3)
we prepend a string to every element, e.g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I read my model stored inside a folder in EFS? I am trying to execute the https://aws.amazon.com/blogs/machine-learning/deploy-multiple-machine-learning-models-for-inference-on-aws-lambda-and-amazon-efs/ using my own model, currently I get the project API running, upload my model to the mount point in EFS an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Error When using TPU on Kaggle. Tensorflow I am trying to run a kaggle notebook using TPU's. It works fine on CPU and GPU's. However, I get an error when training model. It is as below.
Please have a look. Would anyone be able help me in this matter please. I am using tensorflow in this instance.
Epoch 1/15
--------... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to retrieve the object from S3 by Codebuild project with cross-account ECR source action I am creating a pipeline that uses ECR Source Action, CodeBuild Action and ECS Deploy Action. The ECR Source is in another AWS account, say Account E. The pipeline and Codebuild is in, say Account P. The pipeline has been... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Exporting $PATH=/usr/local/bin:/usr/bin does not restore commands I added a new python script to my .bash_profile, but the command would not work after sourcing my .bash_profile. I, therefore, tried another command in the .bash_profile to see if the issue was specific to the new command. I realised that none of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does FetchContent build with optimisations? I am moving from including my dependencies using VCPKG to using FetchContent to make building my docker images slightly easer. I now get my dependencies in a file called get_dependencies.cmake like:
include(FetchContent)
message(STATUS "Getting iGraph")
FetchContent_Decla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Automatic Triggering of GitHub repo pushes in Jenkins build I am trying to create a GitHub webhook to connect a GitHub repo and Jenkins(docker container) server -- for triggering Jenkins build automatically when there are repo pushes, I am using ngrok to expose the Jenkins address/repo to get a payload URL for the G... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Golang RPC and dependencies I have two golang backends, which each has its own layers as following:
*
*API layer
*Service layer
*Data layer
I am enjecting the app dependencies like db connection to the data layer, and constructing the layers from API to service then data. so when the app starts I will enject th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Do I still need to use key prop when mapping an array in a React Server Component? I don't think so, but just in case, does anyone know the answer and have a source?
When we map an array to React elements it's a good practice to add a key prop to each element (React will even warn you when you don't).
That's because... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: F# `Map` algorithm What's the algorithm used for the balanced search tree implementation behind F#'s Map type?
https://github.com/dotnet/fsharp/blob/main/src/FSharp.Core/map.fs
I had guessed it might be an AVL tree but I noticed parts of the code look like if t2h > t1h + tolerance then where let tolerance = 2. I hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to create Supabase RLS policy that allows to select only those rows that are being updated? I'm using Supabase javascript SDK to update my Interviews table. I want to allow the user to retrieve inserted/updated rows but I don't want to permit them to browse through all records in this table.
await sup... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tiny MCE WYSIWYG editor control which it applies to We have limited but necessary text edit requirements and are using the free version of TinyMCE 6 on a web page which has more than one instance of the textarea tag.
Not all textareas should be initialized by TicyMCE editor.
The textareas that need to be initialize... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Accessing variable and changing it in another Python script I have a python script surfactant.py. I am importing this script and printing J as shown below. But I want to modify this J without opening surfactant.py. How do I do it?
Initially, J= [2, 6, 9, 10] in surfactant.py. I want to modify this list to J= [2, 6, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to load an unknown list of property files in Spring If I have a unknown size list of files to load, resourceList, how can y load it?
I have seen the use of @PropertySources, but it seems I can't use this method, because I only know the file list after execution, (I get it through an operation with a VM argument,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PROTO nodes (Current Project) does not exist I am currently trying to add a PROTO that is in my project file to an existing world. However, when I try to add a new node, it does not display the "PROTO nodes (Current Project)" section. It only shows:
_ Base nodes
*
*PROTO nodes (Current world files)
*PROTO nodes (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I need help here my script does not work and there is nothing in the output `script.Parent.ClickDetector.MouseClick:Connect(function(Player)
Player:WaitForChild("leaderstats"):WaitForChild("Power").Value -= script.Parent:GetAttribute("Damage")
end)`
I expected the damage of the model to romove the player's powe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SpyOn private property which is a class with methods My Angular app uses the oidc-client UserManager class to manage OAuth authentication.
I have a service as below
export class AuthService {
private userManager: UserManager
private readonly configService: ConfigService;
constructor(configService: ConfigServic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Further process a field using serde_json I'm using serde_json to decode push messages from GCP pub/sub.
#[derive(Debug, Deserialize, Serialize)]
pub struct PushMessage {
pub message: Message,
pub subscription: String,
}
In the messages, the payload is a base64-encoded string under the data key:
#[derive(Deb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75582491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating an Executable from Tkinter, a button should run: py Automation_Network_operators.py
This is the error that I'm getting, but I don't understand as I used auto-py-to-exe and used 'One Directory setting'. This exact file is in the same map as the .exe file. How should I fix this?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75582492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |