text string | meta dict |
|---|---|
Q: How to restrict app.before_request(***.authenticate) for every request call Working in SSO based authentication with Flask and React. For every endpoints SSO call is getting authenticated. Want to restrict them and to run only at first run of Flask application
# Initialise BAM
bam_app = BAMFlask(
agent_key='***',
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Create table from XML - Parse out Attribute as Header, InnerXml as value I have lots of XML files which contain data I need. I need to parse out an attribute as the column headers and the InnerXml as the values. I can handle looping through the documents, but pulling the individual attribute and innerxml is throwi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: FFMPEG color key filter applied, output to a transparent HEVC mov file, speed is different I have an original recording that has the following ffprobe output:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
Metadata:
major_brand : mp41
minor_version : 538120216
compatible_brands: mp41
cre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript/jQuery SetInterval inside SetInterval show duplicate data I'm working with setInterval. Now it will be setInterval inside setInterval.
Below is the sample code working but for demo2 it show me duplicate data.
For var services must and always run. But for tempJob1 or another tempJob can be stop by using cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: StatusCode: 406, ReasonPhrase: 'Blocked Request Due To Being an IP' I'm trying to write a C# console app to send a bunch of requests to a specific endpoint, but I keep getting this error: StatusCode: 406, ReasonPhrase: 'Blocked Request Due To Being an IP'. As I understand it, this error should happen when whatever I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to pass map object from nodejs express to ejs as javascript variable? my server.js
const myMap= new Map([
[1, { price: 25 }],
[2, { price: 50 }],
[3, { price: 100 }],
])
app.get('/', (req, res) => {
res.render('index', myMap);
})
my index.ejs
<script>
const myMap = <%- JSON.stringify(m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cypress spy not being called I am rying to assert that a mocked service method is called from my component. This is the relevant typescript code for the class:
export class EditProfileCardComponent {
test = 'test'
constructor(private messageHandlingService: MessageHandlingService) {}
onFileSelected(event: a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Failed to build and install Xilinx VVAS 3.0 I'm new to Xilinx VVAS. I want to build and install Xilinx VVAS 3.0 on Ubuntu 18.04.2 following the link VVAS. I got a result from executing command './build_install_vvas.sh TARGET=Edge' indicating that no cmake was found. How should I solve this issue?
yellowd@ubuntu:~/Do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook commerce product page, change button from 'Message' to 'View on Website' The below snippet is the current CTA on my Facebook stores existing product pages. I own a Shopify store that I would like to redirect customers to:
My stores CTA
The following snippet was taken from another Facebook store. When click... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: res.redirect or res.render in a route does not work when sent from a button but works when writing the url manually this is the button
element.addEventListener("click", function()
{
fetch("/class");
});
});
this is the route
router.get('/class', (req, res, next) => {
performFunctions()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create a Process as command line argument in Windows Example: Cons.exe "C:\\Program Files\\7-zip\\7zFM.exe" it creates and execute this process Example:
Cons "C:\\Program Files\\7-zip\\7zFM.exe" it creates and this process.
#include <iostream>
#include <Windows.h>
int main (int argc, char *argv[], char *envp[])
{... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why does the value a function is returning , not reflecting at where it is being called from? I have three small files,
ComponentTest.jsx
import React,{useEffect} from "react"
import updateVariable from "./UpdateVariable"
export default function MainPageTwo(){
let mainPageVariable={}
useEffect(()=>{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Plotly Bar Chart Not Reflecting Values in Call This is driving me nutz.
I have a Polars dataframe named totals that stores counts by year:
I'm making a very simple bar chat in plotly with code like the following:
px.bar(
totals.to_pandas(),
x = 'commit_year',
y = 'count',
color='commit_year'
)
This... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I increase Plotly subplot title/chart separation I have pie charts as subplots of a figure in the sample Python code shown. When plotted, the subplot titles are nearly touching the pie. What's the easiest way to add some space between the title ("title1" and "title2") and each chart?
It would be nice if the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to delete an element of a list in list in Python? I know how to remove an element in a list (e.g using .remove() method). But how to remove an element of a list in list?
In the attached picture, there are two elements [0.0,inf] in the first two lists of the whole list that I want to remove.
Could anyone give me ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Replace all matching substring with results of function using those substrings as an argument in PHP? I have strings like this
you find ^1d6+1 gonkulators and ^1d3 merkel jammers!
I have a function that takes gamer dice notation such as "1d6+1" and "1d3" and computes random numbers (ranges 2-7 an 1-3 respectively).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Correct way of identifying the efficiency of a different program with different programing language STEP 1
Currently I'm working under a project of identifying the best efficient program among the list of given programs which are answers of a single question(eg : Find the 10's and 1's place of a given number) but so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: TreeviewItem selected event not being called in HierarchicalDataTemplate Im stydying Wpf and I need your help.
I try to add events to treeviewitem not to treeview (such as 'Selected', 'MouseDoubleClick'), but I can't do this.
<TreeView >
<TreeView.ItemTemplate>
<Hierar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: React Native app running out of memory and crashing when filling a large FlatList On android devices (on iOS it works fine), both in release and debug modes, my app rus out of memory and crashes as I scroll down on a FlatList and a redux action adds new items fetched from an our API to the list. Here is the FlatList... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is size of random forest object so much bigger than underlying data? Given this data which has 4588 rows, 5 columns and no more than 100 Kb size.
> df<-read.csv("dat1.csv")
> object.size(df)
93016 bytes
> dim(df)
[1] 4588 5
When I generate my RandomForest model, It is really really big:
> library(randomFores... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Run job operation synchronously of a Pipeline in Google Cloud Platform (apache beam) Running a apache beam pipeline in Google Cloud Platform(dataflowRunner), there may be cases where want to run some code only after all the other steps have finished.
here is my python code
p = beam.Pipeline(options=options... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I get ERR_SSL_VERSION_OR_CIPHER_MISMATCH when I try to access my router settings We have an Arris SURFboard WiFi router that is ~6 years old. I can no longer access the router settings for it. I get this message (along with the error code shown above):
This site can’t provide a secure connection
192.168.1.1 uses ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to adjust this Cloudflare Workers JS to redirect users from various countries to their respective destination and set a cookie to keep them there? I'm attempting to extend this Example workers script - https://developers.cloudflare.com/workers/examples/country-code-redirect/ - to...
*
*Check if a 'userGeo' co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Thingsboard Image function I need to display image and last line of a text file using Thingsboard Widget through http POST request. I can do it separately or together but can't seem to find the appropriate widget for this. Please help, thank you so much!
I tried finding the image widget to no avail.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75610672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lattice Boltzmann domain decomposition I'm trying to solve the flow field in a complex geometry using MPI parallelization with lattice boltzmann method. I already worte my own code working in both 2d and 3d test cases in series version. Now my question is which technique is the best for domain decomposition. In my p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: LocalStorage overwrittes when a new user input is made after refreshing the page I'm still learning javascript so I'm doing a To-Do List project following The Odin Project, this is my first time using localStorage too. I have 2 modules, one for controlling all DOM related stuff and the other is where the objects I n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Insert or Delete Objects if does not match I am trying to add base64Images of a chart images. I am trying to match the prev chart base64image with the new chart.base64Image.
This is inserting the new charts but not removing the old object with the same id.
Please help me on how to remove the old object with the same... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to detect a user's choice in C Please help! I'm taking a class for C coding, and the professor wants us to make a program that:
*
*Has a user choose circle, triangle, or rectangle.
*Then based on their answer, wants us to find the circumference/area (circle) area/perimeter (rectangle) and area (triangle) base... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to solve an error "THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed" by using 3D-markup Demo I did "git clone" and open the app on Chrome browser
https://github.com/wallabyway/markupExt
It causes an error "three.js?v=v3.3:35 THREE.WebGLRenderer.readRenderTargetPixels: readPixels fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: character set 'uft8mb3' is not supported by .Net frameworks how to fix this? visual studio database
character set 'uft8mb3' is not supported by .Net frameworks
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75610684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use AWS WAF to protect API Gateway with HTTP APi? I am deploying an POC environment with API gateway in front of Lambda and HTTP API would be sufficient for our usage (REST API wouldn't be used). I am planning to use AWS Web application as a protection measure in front of API gateway with HTTP API to avoid un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: skimage segmetation extracting labels filtered by properties I would like to extract skimage identified "labels" or segments which meet thresholds of parameters. My binary image was successfully split into segments, which skimage seems to call "labels", as the following:
labels = measure.label(classified, connectivi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google Cloud Storage download file using only React I am new member here in stack overflow. Hopefully, my question would be a valid one and in terms with the community.
I am trying to upload/download files from react app to GCP bucket. However, after looking around for long, I could not find a solution that actually... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Discord.py 2.2.0 Dropdown menus not working The following code:
import discord
from discord.ext import commands
class ColorSelection(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def color(self, ctx):
print("POS 1")
colors = ["red", "green", "b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Kubernetes informer fails with Unauthorized I'm trying to construct a Kubernetes informer outside of the EKS cluster that it's watching. I'm using aws-iam-authenticator plugin to provide the exec-based credentials to the EKS cluster. For the plugin to work, I'm assuming an IAM role and passing the AWS IAM credential... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does function which should be only numbers doesn't work for me I want to write a textfield in javafx which accepts only number and backspace. But the code I found doesn't work for me. It doesn't consume letters and other carachters. The code in the photo.enter image description here
Can someone tell me why doesn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to automatically create a production order if sales order confirmation is triggered? I want to track the raw materials and manage its production process. Sales Order confirmation triggers the automatic creation of production order. When Production order is released, it will also automatically reserve bill of mat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to save webpages as pdf-files with the text only? I need to convert a long list of URLs (presented as a Google Sheet) into a series of individual PDFs suitable for downloading and future textual analysis.
With the help of Stack Overflow community I got the code I can use (see here) but the problem is that the ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Proper way to send an object from a post to php and loop over I'm attempting to make a post request to a php server.
I need to pass over some specs in an "object"
I pass the parameter:
files: "[{qty: 25, file: 'LabelProof_1148_1.pdf'}, {qty: 50, file:'LabelProof_1148_2.pdf'}]"
I can access the parameter in php like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Trying to get the I-V curve of the Al-Al2O3-Al model in silvaco atlas reports an error I wrote a simple structure to try to measure its resistance, but I encountered some problems and my program exited abnormally, any friend knows why? I heard that it is because the material properties of aluminum and alumina are no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unity raycast is not returning anything when using IL2CPP I am trying to make a mobile game where I check what object was hit by getting input from touch and casting a ray from camera to that touch using Physics.Raycast. Everything works fine in editor and Unity Remote, but when I building it and playing on a real d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Separate Drawer in App Layout for different Main Views/Paths I have two different drawer view
1.app-drawer-projects
2.app-drawer-users.
I have two different Main view
1.app-project-view
2.app-user-view.
Now when I go to app-project-view path /project, I want to set the drawer to app-drawer-projects
and when I brows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make regex running more than fast with data long paragraph I want to extract text based on the contents of a paragraph column in a pandas dataframe which has text in uppercase, headings followed by letters of the alphabet, and chapter headings followed by row numbers using regex. Previously I asked using chat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using nginx how do I show subdirectories of a website running on a port in a linux instance? I have a website running on 127.0.0.1:8000, and the homepage works fine at http://website, but any subpages like 127.0.0.1:8000/page have a 404 not found error on http://website/page.
I added this to the nginx sites-availabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Odd behavior in Pandas resample I have a problem using pandas.DataFrame.resample with Datetime Index.
My df is:
Column1
2022-08-03 08:48:34 9217.02
2022-08-17 17:14:39 6229.27
2022-08-31 17:17:00 6229.27
2022-09-14 18:12:14 5939.54
2022-09-30 17:51:48 6229.27
2022-10-14 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cannot read/write files on a folder outside the app folder on ipad (IOS, Swift) I am writing an application on IOS(Ipad) using swift
The application requires saving data to reopen it next time
Step 1: I used FileManager to save data to the "Documents" folder in my AppData => write this works fine with no problem
Ste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Dynamic loading of vue components with vite working on dev but not server I'm trying to do something like this:
<component :is="componentVaiable"></component>
Where componentVaiable is one of two components. I've tried importing these components the following ways:
1:
const x = defineAsyncComponent(() => import(".... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to scrap the website by finding a class element using selenium driver in python? I am unable to find an element when try to inspect element on each class, basically want to scrap the website courses using selenium driver. But i am unable to get a data back when running scripting its terminating. How can improve ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Doesn't feature hashing introduce order in categorical features? One-hot encoding transforms the categories of a feature in many binary features, so that no ordering is imposed. Feature hashing creates arrays of random numbers, which are not just 1 and 0. Doesn't it make the model assume there is an order where ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: My springboot can't connect to redis cluster I'm connecting to a redis 7.0.8 cluster in springboot version 2.2.9.RELEASE, which is deployed on my local virtual machine CentOS7, but it keeps reporting an error:
2023-03-01 20:09:31.523 ERROR 32280 --- [nio-9913-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django form is not saving into the db I'm developing a django project where I need to collect data for a student pass application the view.py is as follows
def BusPassForm(request):
school = admindb.SchoolDetail.objects.all()
place = Place.objects.all()
subtime = SubTime.objects.all()
if request.method == 'POST':
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Is there a reliable method of passing microsecond time in a double? I'm trying to work through a rather annoying issue, where I need report data with sub-millisecond precision time stamps. The problem, is that the timestamp message field is a typedefed double. I am only packing this message for a single receiving ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: URLSessionWebSocketTask failing on iOS iMessage extension; working fine in regular app I'm using the URLSessionWebSocketTask to open up and transact with a web socket API. This is working fine in my regular iOS app, however, as soon as I open and try to resume the websocket connection in the iOS app extension, I am ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to find the absolute path where the hid-input.c file is located in Android 9? I only found Android 4.4 in androidxref but not android9, did it get renamed or changed paths/packages?
9.0Search
Searching here did not find any matches for the expected result.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75610739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How should I resolve this domain error in Chapel? Consider this code:
proc generateTuples(a: int, b: int, bNext: int): [] {
var tuples: [1..?] (int,int);
for q in (b+1)..(bNext-1) {
tuples.push([a, q]);
}
return tuples;
}
proc mergeLists(l1: [(int,int)], l2: [(int,int)]): [(int,int)] {
var result: [1.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to web scrape title after specific class? I'm trying to web scrape some information on the following website: https://entertainment.cathaypacific.com/catalog?template=movie&parent=%E9%9B%BB%E5%BD%B1
I would like to scrape all the movies title, years and the length of the movie.
Here is my code to try to scrape t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to save a variable to a text file? (Python 3.11.1) Newbie student coder, trying out a practice where I calculate the hypotenuse of a right triangle from two values of a text file (the sides of the triangle), then saving it. Basically taking two values listed from a text file, calculating hypotenuse, saving the t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Querying Redshift via Psycopg2 - Commas in Strings I have a Redshift table with a column with entries like this:
MSA
LAS VEGAS, NV
PHILADELPHIA
ATLANTIC CITY, NJ
I'm using
cur.execute(query)
but I'm getting the following result for the columns with commas:
MSA
"LAS VEGAS
PHILADELPHIA
"ATL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: I'm trying to use a modified DFS algorithm to search for most optimal routes with some special conditions for each route Main task is to find how many days with most optimal routes it would take to clean of snow from roads, and I'm stuck on the finding the paths part. I can't figure out how to make my method return ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use typescript enum without declaratively referring to it in component code? I have a project with Vuetify and use lots of enums throughout the code. Each time I need to use an enum value I have to register the enum as a property on the component.
Is there a way to register/declare all my enums so I can call ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: A Warrning of Numpy loading: The NumPy module was reloaded (imported a second time) Running result
Today, A UserWarning was occurred when I try to import the numpy package, that was not hanppend before.
I use miniconda to manage packages, here is my package list package list
it seems to be another numpy like packag ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Configure a upload-only folder in Windows IIS I'm trying to make a BITS-upload-only folder in my IIS website, and upload using the following command:
Start-BitsTransfer -Source "..." -Destination "..." -TransferType Upload
So, basically I create a folder under C:\inetpub\wwwroot, e.g. uploads.
I tried to edit privil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: What is the most effective way to compare two files line by line (lines are not ordered)? I have two files of more or less 20 thousand lines and I need to compare them the problem is that the lines are not in the same order, each line is unique because they are records of a DB but the line of file one can be line 15... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to fix Peer to Peer chat app work in UDP with java? This is a Java program that implements a simple UDP chat server. The program allows clients to connect and communicate with each other using the User Datagram Protocol (UDP). The server is multi-threaded, meaning that it can handle multiple client connections s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Is there any documentation on how to set up a Facebook APP in test mode to get access to publish_to_groups permission I have an app in development for posting to a group on facebook. I set up a test app but still don't see where i can get the permission added. It does not show up in any permission option within th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nested Dictionaries to Compile Testing Data I have the data set below, where each row constitues a test:
date
Tech
2/12/23
Tim
2/12/23
Jane
2/12/23
Jane
2/14/23
Jane
I am trying to build a report that tells how many tests each Tech conducted on each day.
The output should look like this
date
Te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Distinct count function for @[CustomerID] column counting @[CustomerNames] in excel CustomerID is the primary key which I' using (number format).
First thing which I did was insert a new column to count if a particular CustomerID have been occured more than once
@CountOfInvoices =COUNTIFS(@[CustomerID],G2)
Then I cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AttributeError: 'tuple' object has no attribute 'first' I'm a beginner in python and having trouble with this problem. I wrote this convert_link function while it returned the AttributeError: 'tuple' object has no attribute 'first'. I don't understand where the tuple came from?
def convert_link(link):
"""Takes a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to revoke request advanced access somes permission in "App review requests" I have some redundant requests for advanced access permission in "App Review Requests". I want to cancel those requests but I don't know anywhere to do it.
I tried clicking the delete button but it is not working.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75610776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unexpected token error in older Electron using Typescript and Vite I am running a barbones Vue/Vite typescript enabled project and connecting to it from an Electron instance started by Blink.jl. Now I don't think Blink.jl is that important here, I don't think it's the issue. The issue I believe is an older version... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create x numbers of sheet based on dataframe size My dataframe is has like more than 4 million rows and I understand excel can only show about 1 million per sheet. But I dont want to manually create 4 sheets as I have other datas with varying millions of rows. Is there a way to code an automatic sheet creator based ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The points are distributed in a rod-like fashion rather than scattered in summary plot This is the summary plot which I plot in my training set (68 pieces of data, 4 pieces in a group, a total of 17 groups, cross validation by GroupKFold).
This is my first time working with such a small dataset, and i found the sum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Testing webhook in GAS; doPost() not logging I am testing a Google Apps Script endpoint for a Stripe webhook. I got stripe to send the test webhook to my GAS endpoint. I see evidence from the executions table that the doPost() function ran. However, the doPost() function was supposed to log the payload from the Stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Konga service to require authentication for certain routes and no need authen for others, while also adding a strip path for a specific route I am setting a service in Konga that require authentication for certain routes (I am using Keycloak JWT token) and allow anonymous access for others, while also adding a strip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why do I get this timeout error with this JEST test in NodeJS? I am running some tests to test an API. The first two tests run fine, but the last gives me a Timeout Error. Increasing the Timeout to 30s does not work.
The code runs fine in Postman, and I get the 404 error when I put in the incorrect id.
If I change t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I update my puppeteer script to input values into the iframe checkout form? Currently, it only lets me type one value, but nothing more I'm trying to create a puppeteer script that will fill out the checkout form on a shopify site, the checkout form is embedded under an iframe and current functionality, my p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: multiply str time ('0:00:00') to a float in Python I try to multiply a series(column) of time string (ex: '0:00:00') to a series(column) of float numbers (ex: 1.1)
time_string = ['0:00:00', '0:00:00', '0:00:16', '0:00:09', '0:02:39', '0:07:19',
'0:02:00', '0:08:33', '0:08:30', '0:14:13', '0:07:24', ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: req.body returning undefined after post request I am trying to run a send mail test using vanilla js and Node.js.
Everything works fine with node but whenever I send a post request using fetch to Node.js server, req.body returns undefined. I have tried using body-parser, cors, and express.json() but still the same t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET Maui IOS Debug and Release mode difference I have a weird problem. I created a .NET MAUI app. At a point of my app, i am loading some basic old .NET assemblies that i load into a byte array before, such as;
byte[] asmbinary=loadassemblybinary();
Assembly MyAssembly = Assembly.Load(asmbinary);
It runs perfect o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to map Home Controller from Different Project/Module - .NET Framework 4.5 I've an existing application using ASP .NET MVC (VB & .NET Framework 4.5).Below is the code for HomeController.vb.
Imports System.Web.Mvc
Namespace Controllers
Public Class HomeController
<AllowAnonymous>
Functio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP Dom document Table Extract Not working by class name I hope you are well along with your loved ones and are also safe.
I'm sorry that I'm creating a new post I tried many hours (1 day) before asking for help.
Edit request: In short, Expected output:
Return all cell titles such as <th>Date</th> as $Date variables... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SwiftUI Dispatch Queue does not update view properly recently I’ve played around with SwiftUI (I’m not a Swift developer, this topic is quite new for me). I’ve found out strange behavior with a dispatch queue.
In my project, the business logic is match more complex; however, here is a simple example (see below).
The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using MCMCpack for latent variable and extracting latent scores from mcmc object I'm using functions MCMCordfactanal() and MCMCirtKd() from R package MCMCpack to generate a posterior distribution and create a latent factor variable.
I could check latent scores using summary() and dimnames(), but I still wouldn't kno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby openssl gem equivalent to openssl command for aes-256-cbc encryption What is the ruby (cypher / pbkdf2_hmac incantations of the openssl gem) equivalent to encrypting with a command like this:
echo 'Top secret text' | openssl enc -base64 -e -aes-256-cbc -salt -pass pass:'mypassword' -pbkdf2 -p
I'm trying to use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: python - Yahoo Finance API issues I am trying to download stock data with yfinance, specifically:
!pip install yfinance
import yfinance as yf
yf.download('AAPL', start='2015-01-01', end=pd.to_datetime('today'), progress=False)
However, this returns:
1 Failed download:
AAPL: TypeError("import_optional_dependency() ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FirebaseError; Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore Damnn really struggling with this one. I had to downgrade to firebase9.4.0 which allowed me to see where my code was throwing errors.
The error:
I have a separate file called queries.config.j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Nuxt3 Use swiper-vue problem useSwiper is not undefined Using swiper-vue in the vue3 project is also a recurring problem。
swiper-vue components hooks useSwiper useSwiperSlie in vue onMonthed lifecycle its also not found useSwiper is not undefined
swiepr-vue components useSwiper useSiperSlie hook normal use.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75610820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Attempting to run a bind9 server using containerd and nerdctl and my instance refuses to listen on port 53 I'm attempting to run bind9 on my system to mess with DNS, with the plan to get this setup the same way on a rpi and host it in my network at home. The service starts up just fine according to logs and can ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you test a rendered subcomponent's values using Jest without passing props or mocking the function? For example, I have the following:
// index.js
const DisplayText = ({msg}: {msg}) => {
return (<>{msg}</>);
};
export const DoStuff = () => {
const [msg, setMsg] = useState();
// setMsg called some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: React Three Fiber Canvas causes all components to not render when rendered I'm trying to learn and work with react and threejs specifically react-three/fiber. I'm running react and three 18.2 and @react-three/fiber 8.11.5. The scene renders fine as long as there is no tag being rendered at all. Regardless of whethe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: REST API design pattern for handling notifications Say I want a user to be notified whenever his or her blog post receives a new comment. The notification should be received upon a browser refresh (i.e. no web sockets needed).
I am considering between two implementations for my REST API:
1) Client submits POST reque... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jar can't find resources So I am trying to load single string from a txt file, so I can simply update resource directory, instead of changing the code.
Application works fine in IDE (IJ),
I also used same approach in other classes.
My concerns are that I am maybe doing something wrong working on Main class, or tryin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Upsampling a CSV File So I have a CSV File which is a time vs acceleration data set as shown below,
https://i.stack.imgur.com/tPjHi.png
Right now the frequency is at 1000hertz and I want to change it to 256hertz, what is the python code to do that?
I've tried the following code but it is not working.
import pandas a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Dev Container Not Starting I am trying to open my project using a dev container via VS Code.
I clicked on "Reopen in Container," the Dev Container terminal opened, and it prompted me to open docuemantion about tips and tricks.
Here is a screenshot:
Here is the devcontainer.json
// For format details, see https://ak... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sveltekit build failing to find external files on gh pages My site refuses to find the rest of the build directory files which is on a separate branch in my GitHub Repo.
Any files in the _app folder is not being found when I go to the site.
As you can see all the get requests are failing for the page
It works bet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to force an application to run in the foreground, and be focused? I'm trying to force an application / file to run in the foreground and be focused when my computer starts up. I already have it automatically starting up with the computer (albeit ~5 seconds after login), but it runs minimized and thus unfocused. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make -webkit-backdrop-filter: blur() work on both Chrome and Safari https://codepen.io/tretretef/pen/vYzxpXa
body {
margin: 0px;
padding: 0px;
}
img {
position: absolute;
width: 100vw;
height: 100vh;
object-fit: cover;
z-index: 1;
}
.blur {
position: absolute;
width: 100vw;
height: 100... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to call a method from shared library using Active Choice Parameter script in Jenkins declarative pipeline? I'm trying to call a method inside the Active Choice Parameter script in Jenkins declarative pipeline by importing the object from src/com/foo. Build runs successfully with out errors but the build paramete... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Spoofing the source ip and port of a udp packet among local applications I have a whitelist that stands between my server and my clients. I want my clients to connect to my server through my whitelist. The point of my whitelist is to ignore any UDP packets that does not have a whitelisted source. If they are in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Aggregating character and numeric data from two dataframes into a new dataframe I'm trying to create a new dataframe that joins the names of some columns and their values.
My inputs looks like this:
input1 = structure(list(Date = structure(c(1677502800, 1677502800,
1677502800, 1677502800, 1677502800, 1677502800), cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75610852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |