text
string
meta
dict
Q: Please explain me about cache handling of REST api Both of REST api and GraphQL support the caching. On GraphQL, if the user requests multiple same queries, only first query is requested and the next queries aren't requested. It handles by cache handling. But on REST api, at the same case, all of the multiple same A...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: kubernetes cronjob blob mount issues I am trying to run this cronjob on AKS azure through GitHub actions but it does not get deployed, there is another deployment on this manifest file that get deployed but the cronjob doesn't get started here is the describe command on the cron container looks like it is not able t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Agora cloud recording's best fit layout is not working properly I am using agora for live streaming, there can be multiple host in a stream like a video call, and using agora cloud recording to record the stream, but in my recordings screen is not splitting up properly according to number of users, i am using bestFi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to select items from two different entries in a variant column I have a table with one variant column loaded with json data structured as so { "key_a": "value_a", "key_b": 1, "key_c": "some_value", } { "key_d": "value_d", "key_e": 1, } And I am struggling to define a query that looks like SE...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: alternative solution to have both inner service ( use jwt authentication for public visit) visit their API directly without using client jwt token I have two restful services made in node.js, both services are implemented with jwt authentication service in their API design, client can get access to both rest service...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Organizing Lines into Arrays Based on First Value in the List I just started learning python for data analytics for my project. I read each line of my file and created lists of the values for each line, and now I want to add lines into arrays based on the first value in the line. I want to create 4 separate arrays b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Display rows in single rows in SQL Need some advice in SQL your text The table is enter image description here Invoice No| Name | Product | line item 101 | John | A |45 101 | John | B |46 101 | John | C |57 102 | Noah | A |20 103 | Oliver | C |...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: "unused argument" error for `by` when trying to average by group The code is: new_data = cps[, .(inc_pov= mean(inc_pov), employed = mean(employed)), by=c("YEAR", "treated")] It comes back with an error that (by = c("YEAR", "treatment")) is an unused argument. The names of the columns are correct....
{ "language": "en", "url": "https://stackoverflow.com/questions/75610869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using DPDK and a Mellanox Connect-x 5 card, how can I direct incoming traffic to different queues based on ip/port? I am using the following: -Ubuntu 22.04.1 -DPDK 22.11 -Mellanox Connect-X 5 100gbe I have two streams of data coming in to a single 100gbe port. Each stream has a unique ip/port number. I need to sort ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: how to calculate end date using start date and duration (minutes|hours|days|months|etc) in sql query I using postgres sql.I doing a query to calculate the estimated end date from start date and duration (minutes|hours|days|months|etc). The duration can be in minutes|hours| days|months . i try to use dateif but it wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can you run Tabnine and Github Copilot together? Is it possible to run Tabnine and Github Copilot together? Can one override the other? Is this even advised? If they both use greyed out code completion suggestions, how would you be able to tell which one is presenting the suggested code? I'm using Intellij. A: Her...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: The fitting curve does not match with experimental data. How can I match the curve fitting? The red color indicates curve fitting and the magenta color indicates experimental data I try to change the initial guessing parameters, but it does not work. Below is my code x=file[0] # 1st column gives time y=file[1] # 2n...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Putty showing blank screen I try adding the login details but my putty is showing blank screen. Does anyone know how to fix it?
{ "language": "en", "url": "https://stackoverflow.com/questions/75610879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why are some left and right angle brackets colored red in VSCode? I would like to remove these features Some of my angle brackets, left and right, in VSCode, Windows 11, React and Node JS project are red. Dunno why? It just happened. Any fixes? A: VS Code engineer here. This issue is caused by a change in the brac...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error while running "rails generate active_record:session_migration" I run this command: rails generate active_record:session_migration And I get this error: /var/lib/gems/3.0.0/gems/zeitwerk-2.6.7/lib/zeitwerk/kernel.rb:38:in `require': cannot load such file -- listen (LoadError) from /var/lib/gems/3.0.0/g...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: can you save devtool css changes, with create react app? i add workspace file system to my Devtool and make some changes on element but it didn't save anything at the react app file so every time i refresh the web it goes back to the start is there anything i can do so i can save changes from devtool to my react ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to pass formcontrol value to string param I have the following FormControls: username = new FormControl('', [Validators.required]); password = new FormControl('', [Validators.required]); I then try to pass these values into a method: await this._as.login(this.username.value, this.password.value).subscribe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does TFBertModel have different number of layers between is_decoder=True and False? I am trying to use HuggingFace TFBertModel to write my own autoencoder. In my model, I used a TFBertModel(is_decoder=False, num_hidden_layers=1) as encoder and another TFBertModel(is_decoder=True, num_hidden_layers=1) as decoder....
{ "language": "en", "url": "https://stackoverflow.com/questions/75610884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spark consumer streaming from Kafka topic keeps resetting offset so I'm running a spark streaming program and reading a stream from a Kafka topic with the following options for the readStream method. options = { ... ... "kafka.security.protocol": "SASL_SSL", "startingOffsets": "earlie...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why state change in react doesn't reflect instantly inside a function? I have a react component with a state and the return statement consists of a input text box and an event handler which updates the change when an onChange event occurs. import { useState } from 'react'; export default function Menu() { c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Model.findOne() no longer accepts a callback app.get("/", function(req, res) { Item.findOne({}, function(err, foundItems){ if (foundItems.length === 0) { Item.insertMany(defaultItems, function(err){ if (err) { console.log(err); } else { console.log("S...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WPF MVVM - How to update multiple textblocks across multiple user controls when a single property gets updated in ViewModel? I have multiple user controls that are tied to their respective ViewModels. There is a "Name" view/viewmodel pair, an "Id" view/viewmodel pair and a "Status" view. The purpose of the Status vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In R: how might I produce an ordered list of objects, merely from >,<,=, statements about object-pairs as inputs? In R, is it possible to assign relative values to objects, as in, their values with respect to each-other, without specifying their value, and then produce an ordered list of the objects from least to gr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why undetected_chromedriver module doesn't work? ("No module named 'undetected_chromedriver'") on Debian 11 . In pip and pip3 packages list i can see it. But when i try to run test script, i get error: root@debian-s-1vcpu-1gb-amd-nyc3-01:~# python3 chromedriver.py Traceback (most recent call last): File "/root/chro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: fetch returning "true" instead of data i am working on a private project and when i sent a PATCH request to the back end and console.log the data in the front end instead of returning the updated user data it just sent back 'true', so when i try the setstate on some thing i can't bc i get back 'true'. am i doing smt...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How To Match The Numbers Within Regex Match That Repeats Is there a way to match/group the numbers using Regex to get the digits (\d+) within Branch? <Branch> <Hello> <Line1>Test 8</Line1> <Branch> <Branch>1212</Branch> <Branch>3434</Branch> <Branch>5656</Branch> I tried this: <Hello>((.|\n)*)Branch>(\d+) But it wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to read IMEI modem Qualcomm SnapDragon X55 5G on Lenovo ThinkPad X13 with Ubuntu 22.04 LTS? I'm doing a project where I need to display the IMEI number of X55 5G modem of Lenovo Thinkpad X13 with Ubuntu 22.04 LTS. I need to read the IMEI number with the condition that the SIM card is not connected to the device....
{ "language": "en", "url": "https://stackoverflow.com/questions/75610906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: dotnet restore -- The given key 'System.Runtime.InteropServices' was not present in the dictionary Building docker image on Jenkins instance, I am getting an error restoring nuget packages. Using v7.0.101 works v7.0.201 errors out. Same dockerfile build on windows desktop fine. System.Runtime.InteropServices is n...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to custom the look of a class in a list/array in ScriptableObject in editor? I have a ScriptableObject that simply have a list of object: class MyClassHolder : ScriptableObject { public MyClass[] myClass; } [System.Serializable] public class MyClass { public string key; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use Mermaid diagram in Jupyter Notebook with mermaid.ink through proxy Prevously to use Mermaid in a Jupyter Notebook file, nb-mermaid should be installed using pip and then it called using built-in magic commands %%javascript as instructed here or using %%html. Unfortunately, the result, in a Jupyter Noteboo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make one word in a string clickable on Android Jetpack Compsoe? Until recently, I had always used XML's to create my screens, and I knew how to make certain TextViews clickable with those XML's. Now, I'm transitioning to exclusively use Jetpack Compose, and no longer depend on XML. What I'm currently trying t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a better solution? Using GitHub and Google Drive So I plan on moving back and forth between houses. I have all my GitHub projects on my main desktop PC, and I plan to buy another desktop PC for the 2nd place. I want to have all my local cloned repos from GitHub be synced exactly between the two PCs so I can...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fine tune a pre trained transformer based model? sorry for the basic question. I am new to machine learning. reading on transformer based model and its architecture, like BERT, it is mentioned that we can fine tune this model because the weights of the model can be reused. what does this process look like? do...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Python store hostname vars and pass vars for cycle I have the following clusters: * *example.com user pass *example01.com user01 pass01 *example02.com user02 pass02 # Print all physical hosts in a clusters from proxmoxer import ProxmoxAPI import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureReques...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to set html element with position absolute not transparent? My element X its like transparent becouse de position absolute , can it change? .X{ background-color: black; position: absolute; left: 47.2%; color:white; top:0%; padding: 0.1rem; heigh...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why can't I view all source codes in Android Studio? I recently found that when viewing the source code, some of the source code of the android class cannot be viewed, as shown in the following figure: About SDK settings in the project: compileSdk 33 minSdk 26 targetSdk 33 I have installed android version 8.0 abov...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How come my Component resets to its default values? So I'm building a calendar and I've got it to work the only problem is on main shell when changing the year the values of my hooks go back to their default value. the current month and year. I tried e.preventDefault() but it doesn't help my hooks from going back to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to provision a kubernetes kind cluster with audit logging? I followed the instructions here: https://kind.sigs.k8s.io/docs/user/auditing/ It fails with the following error waiting for the kublet to start: [wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory "/et...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React dialog component reusable by many subcomponents I need some help with organizing react components to reuse the same dialog component by multiple children. I have written an example here to try to explain my issue. I have a parent component (Parent.tsx) that includes a hidden dialog and a dynamic list of childr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Swiper.js in React How do I disable loop if there is only one slide? Here is a swiper in react, sometimes it takes multiple swiper slide, sometimes it takes only one. How do I disable the loop feature when there's only one slide? <Swiper slidesPerView={1} spaceBetween={0} loop > ... ... ... </Swiper>
{ "language": "en", "url": "https://stackoverflow.com/questions/75610931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Renaming all files within multiple subfolder structures to parent folder using VBA I have a main folder, with many subfolders, and now I have subfolders within this top layer of subfolders, with files then within those multiple layers of subfolders. I would like to add the suffix of the top layer subfolder to the pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what is the benefit of passing parameters through registers on x64? void func() {} long func1(long a, long b, long c, long d, long e, long f, long g, long h) { func(); } long func0() { return func1(1,2,3,4,5,6,7,8); } The assembly code is shown in the figure on x64 * *func0 save 1~6 to registe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Synchronizing several videos with python dominate (or html) I have a python script using Dominate to write HTML pages. I haven't been able to find a good Dominate tutorial, however I managed to do the following: from dominate import tags doc=dominate.dominate(title="mydoc") with doc: tags.h1("th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: APL2, order of processing each operator arguments Assuming the user function: βˆ‡ f b [1] b βˆ‡ and the following is executed: fΒ¨1 2 3 Three lines will display, 1 digit per line. In APLX the order is 1 2 3. Is there any APL2 guarantee the order the digits will be displayed? This can be critical if the user function has...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Foreign key 'DNUMBER' references invalid column 'DNUMBER' in referencing table 'EMPLOYEE' See previous errors CREATE DATABASE COMPANY; ALTER TABLE EMPLOYEE ADD FOREIGN KEY (SUPERSSN) REFERENCES EMPLOYEE(SSN), FOREIGN KEY (DNUMBER) REFERENCES DEPARTMENT(DNUMBER); CREATE TABLE EMPLOYEE ( FNAME VARCH...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Laravel AJAX call using formData with files problems accessing payload Hoping someone can help... I have a form with 5 x drag and drop JS elements on it. I am trying to use an AJAX call to upload the files to the server and not sure if the payload is working OR if it contains the real data (file name and physical fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get tls extensions in my go code for tls ja3 with latest golang version this is the tls clienthelloinfo stucrt type ClientHelloInfo struct { CipherSuites []uint16 ServerName string SupportedCurves []CurveID SupportedPoints []uint8 SignatureSchemes []SignatureScheme SupportedProtos []st...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Nuget equivalent to npm install --save-dev I am developing a Class Library for Dynamics (D365) plugins, and so I'm constrained to not add dependency assemblies in order to deploy/register it. The case in particular, I'm interested in using the Sonar Lint nugget package and some rules to make the code look more homog...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: R: Applying SQL Style Operations to Network Graphs I have these two graphs in R (g and g1): # Define a vector of names names <- c("John", "Alex", "Jason", "Matt", "Tim", "Luke", "Shawn", "Henry", "Steven", "Scott", "Adam", "Jeff", "Connor", "Peter", "Andrew", "Dave", "Daniel", "Benjamin", "Joseph", "Martin") # Cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring Cloud Function fails to Failed to discover main class on AWS I have to use spring that runs on 11 java to create a lambda for amazon (it does not support yet 17 java). So I use set('springCloudVersion', "2021.0.5") and id 'org.springframework.boot' version '2.7.9'. As result of grade build I have a demo-0.0.1...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why do certain fonts' characters get cropped off the left margin of the editor panel in VS Code and how can it be fixed? I am a teacher who teaches kids coding through video conferencing. Sometimes, I use unique and interesting fonts to induce their concentration(I use vscode). However, some fonts have an issue wher...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The number of rows is not correct with SELECT count in MYSQL When I execute query SELECT COUNT(*) FROM {TABLE_NAME} on MYSQL Client, the result is about 100,000 rows. When the query gets excuted on the appliaction level, however, the result shows only exact 40,000 rows. It seems like there is some limit while the qu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Labelme and opencv-python if I install together, labelme is not working. Any solution? I create a new virtual env and installed labelme alone, it worked. Then I installed opencv-python and labelme is failing, pip install labelme pip install opencv-python labelme images --nodata QObject::moveToThread: Current threa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Phaser Dom Ui Not responding to add event listener I've been trying to make an interactive ui using the phaser DOM, and i've loaded a ui.html file through this.add.dom(0, 0).createFromCache('ui'); and I've tried adding an event listener to a button in that file, but it doesn't appear to respond, as the console.log ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: add leflet fullscreen toggle to sidebar I'm using the leaflet sidebar v2 plugin and would like to add the leaflet fullscreen plugin to the sidebar. Is there anyway to add that functionality. I have not been able to figure out how.
{ "language": "en", "url": "https://stackoverflow.com/questions/75610961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cant turn a map iterator into list because of "org.apache.spark.SparkException: Exception thrown in awaitResult:" in Pyspark My code I was using a map lambda function and two iterator were returned (intColsCount and strColsCount). Everything looks fine but I just can't print these two objects by turning them into li...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to execute a scipt like .sh .scpt and .ps1 in react? I created a file named ActiveApp.sh in shell syntax, but I don't know how to execute it. This is my script: #!/bin/bash active_pid=$(xdotool getactivewindow getwindowpid) active_app=$(ps -p $active_pid -o comm=) echo "Active application: $active_app" I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Django date filter failing to execute right after midnight or 12am I have a django project that allows a user to only create 8 objects per day and its filtering using __day but it seems between oo:oo and 01:59 the programs is allowing users to create unlimited objects. today = datetime.today() day = today.day task_...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Uncaught SyntaxError: Identifier 'myGridOptions' has already been declared const myGridOptions = { columnDefs: [ { field: 'id', headerName: 'ID', minWidth: 50}, { field: 'text', headerName: 'Title', minWidth: 400 }, ], pagination: true, paginationPageSize: 25, defaultColDef: { fl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Running delta queries using Microsoft.Grpah c# sdk 5.^ Trying to run delta queries for SharePoint drive root using new Microsoft.Graph version 5.0.0 nuget package. Seems the Delta function is missing from the Drive API. Is there any way to do delta queries using the new C# SDK? A: I think you need to make one extra...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Extent Report fails and not generating html after upgrading to .net 7 I recently upgraded my code to .net 7 and that broke extent report, I have started seeing this issue when flush Expression of type 'CompiledRazorTemplates.Dynamic.RazorEngine_f27d197e9d7c4ff1a003d172965c70f0' cannot be used for return typ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create different type of user with Entity Framework Core identity? Example: I have 3 types of user like x, y, z and X has properties a, b, c; Y has properties a, b, c d, e and Z has properties f, g, h. These three type of users may have different types of claims and roles and in the future, new types of user...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In solidity Inheritance, Why are the results of G and H "C"? contract A { function foo() public pure virtual returns(string memory) { return "A"; } } contract B is A { function foo() public pure virtual override returns(string memory) { return "B"; } } contract C is A { function ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Php question, live server for PHP with auto-load on save I want to use Live-server for PHP with auto-load on save but it doesn't work I followed everyone's instructions and it didn't work. And I go to the setting.json file and it looks like this.enter image description here i do everything........
{ "language": "en", "url": "https://stackoverflow.com/questions/75610976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Spyder console running on remote kernel in WSL2 keeps saying "Working directory does not exist" I'm trying to run a python script in Python 3.9 from the Anaconda distribution on a kernel in my WSL2 in the Windows Spyder GUI. I was following the instructions in the Spyder FAQ about using a Windows install of Spyder ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make string a valid file name that can later be viewed as original string Say I have a string "this is | test" and I want to use that string as a file name but it is not valid to have the | character inside a file name. What is the best way to replace all characters that are not valid as a file name with characters...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Jira CodeCommit Integration using SSO credentials We actually have an AWS federated account, so all console and service like CodeCommit access is through SSO credentials, with a duration of 24 hrs. For the Jira Plugin with Git Integration, need to be a IAM user or it can be done other way?
{ "language": "en", "url": "https://stackoverflow.com/questions/75610987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I can't figure out whats wrong with my java tictactoe It keeps spitting out "you can pick that space its already been taken and it seems like it's ignoring all the other if statements. I've been tinkering at this for a couple hours and I don't know how to fix it. public class tictactoegame { public static void ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to share a binary file with Delphi on Android? I need to share a binary file (an SQLite database, in fact) from a Delphi 10.4 app on Android 11. The code looks like this: var Database : String; Database := TPath.Combine(ExternalPath, 'file.db'); // permission is granted intent := TJIntent.Create; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does relfinder work,how does it work to find paths between different sparql endpoints How does relfinder work, how does it work to find paths between different sparql endpoints, are there other open source tools like this, or how does it work to find paths between different endpoints? I wanted to implement the a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Vue, how to clone row next to existing selected row? Have set of data list, trying to clone the row, but don't know how to make the new row showing on the next selected row. The HTML: <table id="result_table_2" > <thead> <th>#</th> <th>Name</th> <th>Code</th> <th></th> </thead> <tbody> <tr v-for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: YouTube Audio from Chrome Extension I'm trying to pull the audio stream of a YouTube video and render it directly beneath the video using WaveSurfer. I have successfully built a container that is injected below the video but have hit a wall trying to load the audio data for WaveSurfer to render - any help is greatly...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Error in using map function for generating spectogram through 'Librosa' in python I'm trying to convert tf data to a spectrogram using librosa which I would then feed to a Tensorflow CNN for an Audio Classification problem. I keep getting a 'Positional Argument' error that I have also replicated below. ### the shape...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel route parameter is not accpeting special characters like + (plus) I have this route: Route::get('product/get/{project_token}/{user_id}/{id}', 'get_project')->where('id', '.*'); Here for the id param, the value can be any character like DRGM48/58BA DRGM48/78BA+BZA43B. 1254EBD Now, If the id param value is...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to SQL Injection with numeric value? I'm worrying about SQL injection in my project. My server received user inputed value as { "x": 958065, "y": 1944719 } Only number is accepted both x and y. type Bind struct { X int `json:"x" binding:"required"` Y int `json:"y" binding:"required"` ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75610999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to make Python to run 4 nested loops faster? I have 4 nested loops in my Python code and it takes ages to finish all the loops when the grids are big. For example, here is a piece of my code: from itertools import product T = 50 beta = 0.98 alpha = 0.3 delta = 0.1 xss = ((1 / beta -...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Equivalent of UNION in Data Fusion? I am looking to perform the equivalent of SQL UNION within one pipeline, in Data Fusion. I do not see a plugin named UNION. Can I achieve this functionality using any other existing plugin? Can I leverage a plugin designed for another purpose, to achieve this function? What are my...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel 10 orderBy on Relationship not working on parent I am trying to create menus and submenus populated from two tables in my database. I am able get what I want working except the menus table does not orderBy correctly. The weight field does not impact the sort. It is sorting by the menu key(id) instead. It wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stubborn problems copying fields from one MySQL DB table into another I represent a team creating a dashboard of all the US' arial firefighting operations, capabilities, available resources, etc. for authorities fighting wildfires in the US every year. Our dashboard should have 3 main tabs/sections according to our ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: error caught during app initialization Error: ambiguous indirect export: XMarkIcon Nuxi 3.2.3 Nuxt 3.2.3 with Nitro 2.2.3 tailwindcss 3.2.7 import { Bars3Icon, MagnifyingGlassIcon, ShoppingBagIcon, XMarkIcon } from '@heroicons/vue/24/outline' I try to reinstall @heroicons/vue
{ "language": "en", "url": "https://stackoverflow.com/questions/75611009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I Auto Increment a Number to be used for Formulas to be placed on Cells in Google Apps Script Good Day! I am trying to find a way to auto increment a number to let the cell value follow. This is what I have for now. //worksheets const ws = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("QR CODE GENERATO...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does my SwitchListTile value not reflect the value I saved in shared preferences? I am writing an app in Flutter and I'm trying to have my value in a SwitchListTile widget reflect a value that is saved in shared preferences. Right now, I have a SwitchListTile in a parent widget and a child widget. The SwitchList...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can use rustls to authenticate my connection to a postgres database in Rust? I want to use a cert in my Windows certificate store, to connect to a postgres database with TLS. I'm agnostic about which libraries to use. It looks like rustls is the best way to deal with the TLS side, but I can't see how to connect ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Objective-C react-native bridge: return a value (not a promise) Can the react-native bridge for iOS (Objective-C) return a value (not a promise)? For example can I create a bridge function that corresponds to the following JS signature: myFunc: (x: SomeMap): boolean It appears to me that there's no way to do it: I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring batch job run only one instance at any time Working on a spring boot application to be deployed in AWS ECS process. The application has 2 spring batch jobs, invoked in sequence by a service layer method triggered by cron. Job1 is tasklet based and Job2 is chunk based (may not be relevant here). Application da...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the difference between ASCII escapes and byte escapes in RUST documents? I understand perfectly: \x44 will get a "D" because D is the 44th in ASCII (hex) So \x41 as an example in ASCII escapes So why does it appear in Byte escapes again? What does "Byte escapes" really mean? Would I get an 8bit byte? no......
{ "language": "en", "url": "https://stackoverflow.com/questions/75611017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PyQt5: I need to place a rectangle on the screen where a face is detected.The rectangle appears correctly the first time, but not 2nd time I am working on a project where I need to place a rectangle on the screen where a face is detected. The rectangle appears correctly the first time, but on subsequent attempts, th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: What's the different between `-info` vs `--info` for gradle command option? I tried ./gradlew app:kspDebugKotlin --info and ./gradlew app:kspDebugKotlin -info Both produce the same log output. What's the different between -info and --info?
{ "language": "en", "url": "https://stackoverflow.com/questions/75611023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Static HTML to dynamic WordPress I'm trying to convert my HTML to WordPress, everything works fine and perfect. But for some reason my font awesome icons are not showing and they are showing as a square. How can I fix this, thank you.html link to fontawesome Square icons β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž β€Ž...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Amazon AWS SDK undefined reference to symbol 'BN_num_bits@@OPENSSL_1_1_0' I have amazon aws SDK installed in /home/X/AWS/{lib include} I have openssl version OpenSSL 1.1.1f 31 Mar 2020 I've created a project in Qt using CMake. I cannot pass the linker error: undefined reference to symbol 'BN_num_bits@@OPENSSL_1_1_0...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pandas handling NaN values as 'nan' & 'NaN' This is going to sound like a really stupid issue, but I'm importing file from excel, and noticed that pandas is handling values that are supposed to be NaN differently in VS Code. Here's a visual below... City State 'Detroit' 'MI' 'Chicago' NaN nan 'CA' Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to define a custom function in groovy, using JSR-223 API to integrate with java if i use GroovyShell, it is just like this: CompilerConfiguration cfg = new CompilerConfiguration() cfg.setScriptBaseClass(CustomScript.class.getName()) GroovyShell shell = new GroovyShell(cfg) in which "CustomScript" is my custom ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: read multiple pairs of numbers from a file and finds the distance between every two numbers on a number line I'm writing this function in MIPS assembly. This is my input file lab3_pts.dat 1 2 11 12 -3 4 11 -12 And it is supposed to result in the array [1,1,7,23,-1] This is my code: # $a0: the address of the str...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: What is the most popular resolution category by state? I want to have the top cathegory value for each state SELECT DISTINCT COUNT(tweet_category) AS category_count, tweet_category, tweet_state FROM [New_years_resolutions_2020] GROUP BY tweet_state, tweet_category ORDER BY tweet_state, category_count DESC; cate...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: paper_trail model and User relationships not working I'm renovating on old Rails app, which has an admin view that displays the changes to an object recorded on paper_trail. The rpsecs are failing with the following error: Failure/Error: - @versions.each do |version| ActionView::Template::Error: Associa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: can't run it ,I try for few times enter image description hereenter image description here I don't actually know what mistake did I make,pls help
{ "language": "en", "url": "https://stackoverflow.com/questions/75611043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: is it possible to handle compound layout (getLayout) with next-translate? I try feed layout to my component by passing it like compound component after wrapper the component with another HOC, I use next-translate in my project. // pages/test.tsx function TestPage() { const { t } = useTranslation(); return ( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to solve the "^" is not valid at start of code block issue? I am currently trying to intergrade the WebEx SDK to a Blazor project. I also quite new at this so bare with me a bit. I followed the WebEx official guild to intergrade the browser SDK. in step 3, they instruct me to put the line below to the project. <...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ERROR: Wheel 'pip' located at ... is invalid I have been trying some configuration to load an external python project on MacOS Intel based architecture (I am not so experienced with this). By the way, I have done something wrong because pip/pip3 is not working any more. This is what I get: > pip3.11 install --upgrad...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to troubleshoot Desktop DLL Mso20win32client.dll version 0.0.0.0 time stamp 0x62e7d99? I need help related to Mso20win32client.dll either one of the following: * *how to know if it is corrupted? *how to repair? *what is latest version ? *what is time stamp 0x62e7d99 My question arise because: *I have tried...
{ "language": "en", "url": "https://stackoverflow.com/questions/75611049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }