text string | meta dict |
|---|---|
Q: Authenticate a GET request to Google Play Purchase API with service account python I need to verify purchases of my android App from my AWS lambda in python.
I have seen many posts of how to do so and the documentation and here is the code I have written :
url = f"{google_verify_purchase_endpoint}/{product_id}/token... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Make directive based on function angular I have some html like this
HTML
<div class="wrapper hover-collapse">
<div class="top-navbar">
<div class="menu">
<div class="hamburger">
<i class="pi pi-bars"></i>
</div>
<unified-portal-top-navbar></unified-portal-top-navbar>
</div>
</di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby - loading data in a loop causing memory increase I have a memory issue with a loop in ruby. This code is executed using a Scheduled Job, and the memory is increasing linearly over the time, like if something loaded is retained in memory and never cleaned?
# cars entries is around 2000 entries here
cars.each do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Show error is guest try to place order woocommerce I need simple code in function.php
So i can show error for non-login user
( You need to login first to place order )
I know i can disable checkout for guest from setting in Woocommerce
but i want to show checkout page and show error when guest click on place order
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Next.js Route API - Getting Body Values I am trying out the new Route API's in Next v13.2, but cannot seem to figure out how to get the body values in a POST request.
On the client side, I am calling the API something like this:
const response = await fetch("/api/bot", {
method: "POST",
headers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: React fetching Data from Node Server using fetch() API const Table = ({ route, OnAccessBranch, Branche }) => {
let {Branches, Services, Guichets, items, colNames} = []
fetch("http://localhost:3000/GetTableData)
.then(response => response.json())
.then(Data => {
Branches = Data[0]
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to apply JavaScript class to existing project I have developed simple application using JS and HTML. using that application I am trying to
*
*show all list of projects in html table.
*added search box, using that user can search project by their name.
so here I am getting project list from the JSON list (sto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Object is not abstract and does not implement abstract member public abstract fun onPermissionsChecked(p0: Object is not abstract and does not implement abstract member public abstract fun onPermissionsChecked(p0: MultiplePermissionsReport!): Unit defined in com.karumi.dexter.listener.multi.MultiplePermissionsListen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add more disk space to a partition for a different OS? I have been using Windows 11 on my PC that has 1 TB HDD storage and 128 GB SSD storage. The HDD has 4 drives (D, E, F & G). I partitioned D drive and allocated 50 GB for Linux Mint. I successfully installed Linux Mint on dual boot. Now I want to increase ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error 'postgres.h: No such file or directory' when installing Apache AGE from the latest release I am trying to install Apache AGE by following the instructions provided in the documentation. However, I was only able to install it from the source code. When I attempted to install Postgres 12 from a package manager a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: safari blocking iFrame We are using iframe to load FBFrame on the browser, it's loading on Google Chrome but on safari it's giving below code:
Error
Refused to display 'https://www.facebook.com/login/?next=https%3A%2F%2Fwww.facebook.com%2F' in a frame because it set 'X-Frame-Options' to 'DENY'.
Below are the code:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parameter is not valid. when trying to open a particular jpg image as a bitmap in c# I am opening an image into stream and trying to initialise a bitmap object from it. However, I am getting a rather uninformative "parameter is not valid." exception.
This is the code:
using (var webClient = new Classes.WebClient())... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot draw corners round enough The rounded Rectangles created with the same height and corner radius, but it seems that the x radius became longer and longer as the rectangle became wider.
The orners are not curves as I expected (blue stroke one).
Did I miss something on setting the canvas?
canvas.save()
c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using MySQL JSON array field to join on a table in knex i have two tables slots and bookings. In bookings table i have slots column stored as json array (as shown in figure)
[![enter image description here][1]][1]
I need to to get, each slots data when i fetch bookings data.
slots table:
[![enter image description h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Exception in monitor thread while connecting to server localhost:27017 I am having a Spring Boot project using MongoDB. I am trying to connect to MongoDB running on a different machine. My MongoDB is not accessible on localhost but using some private IP accessible to the pod on a specified port. Following is the gra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to convert JER formatted JSON file to UPER using asn1tools? I am writing a a python script that takes a JSON file encoded in JER and convert it to UPER but I couldn't find a direct way to do this using the asn1tools.
ASN File: schema.asn
Schema DEFINITIONS ::= BEGIN
User ::= SEQUENCE {
firstName IA5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The reason for the automatic correction shortcut key (ctrl + K + D) not working for some code (in Visual Studio 2022)
As it is clear in the two screenshots, some parts of the code are messed up after pressing the shortcut key, and after pressing the shortcut key, some parts are fixed (the parts related to calculat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Match only the value of ticket and not the value of myticket I have a regex which match the value just after the string "ticket="
The current regex used for that is
(?<=ticket=)[0-9]+
We had used positive lookbehind for this usecase.
How can we exclude a particular pre string before the current expression.
For eg:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Git - How to copy a specific folder from one branch to another with a different path? I'm looking for ways to automate deployment of my GitHub project on GitHub Pages.
I have a folder packages/client/dist/ with a deployment build in dev branch. I'm searching for a git command that could copy/push its contents to the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: javascript [] is TRUE, ![] is FALSE, []==![] is TRUE Can someone explain why in Javascript
[] is TRUE
![] is FALSE
but
[] == ![] -> TRUE
I thought it was because it used == which just checked if there were arrays or not but if it had been === to also compare values it would be false but was told that was wrong.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75566138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: What are the requirements to get the current user in an ASP.NET Core Web API I would like to know how I can get the current user's username and id in my asp.net core web app.
Thank you for your time !
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75566139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to use GCP Cloud Build caching when deploying to Cloud Run GCP Cloud Build can use cached image to speed up builds.
I'm currently deploying to a Cloud Run service with gcloud run deploy zero2prod --source=., and noticed that Cloud Build under the hood doesn't utilize caching. What is the ideal way to make it use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to convert this excel column to python dataframe? Here is a table of calculations I am doing in excel. Is it possible to do the same using python? If yes, can anyone help me do the same. Column B is the sensor data I get continously. column A is the sl no associated with data. column C is average of 3 data value... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Debian package dependencies in setup.py or nice setup way? I have written a Python program to receive values from a Bluetooth device. For this I built a wrapper around the gatttool. Now I want to build this as a Debian package for this I use setup.py.
This my setup.py:
setup(
name="b35t",
version="1.0.0",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to archive logs which are rotated based on file size correct? We have several apps' log files are rotated based on file size, e.g. 10MB, for now we would like to archive them with cronjob by weekly, is there any way that does not archive duplicate ones (files are not rotated yet but got arvhived when cronjob run... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calculating valid and cancelled bookings based on available room count in BigQuery I'm trying to analyze the following dataset.
DECLARE AVAILABLE_ROOMS INT64 DEFAULT 2;
WITH `bookings_log` AS (
SELECT "client1" AS `client_id`, "2022-01-01" AS `arrival_date`, "2022-01-08" AS `departure_date` UNION ALL
SELECT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to dynamically index array inside array that is stored as storage in wgsl I have the following structure that represents a 3D VoxelGrid:
var<storage, read> chunks: array<Chunk>;
struct Chunk {
position: vec3<i32>,
metadata: u32,
data: array<vec4<u32>, CHUNK_DATA_SIZE>,
};
I had to use a vector insid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: reactjs - React - passing refs as a prop VS React.forwardRef I would like to learn drawback or benefit of passing refs as a prop VS using React.forwardRef
In below example i am able to pass refForTextArea from "Aaa" component to "Bbb" component and focus onto textarea in Aaa from a button in "Bbb"
So why do we use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: if use @NotBlank or similar validation in my POJO class Spring-boot don't launch application I am working on a project for a rest bees but when I go to insert the various validation for the fields of my pojo and start the application I receive this error:
mvn clean spring-boot:run
[INFO] Scanning for projects...
[I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to add font in Emacs? I have installed emacs and spacemacs but I can see this logo at the bottom bar. I don't know the problem, but I think the font is not installed. Can someone help me with this?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75566165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I have an error here in my face recognition code, how to make it work? Here is my code and it gives an error here:
history = model.fit(
training_generator,
steps_per_epoch=(NUMBER_OF_TRAINING_IMAGES//BATCH_SIZE ),
epochs=EPOCHS,
validation_data=testing_generator,
shuffle=True,
validation_steps=(NUMBER_OF_TESTING_IMA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Loading OpenAPI YAML file in Swagger UI The Developer portal for Google cloud is getting depreciated and I am looking for an option to display my docs. Each of my services has the openAPI.yaml file.
I would like have a page of links for the services and on click open the respective YAML file in swagger.
The code be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: typescript-eslint/no-unsafe-return false positive for stencils JSX I am using some recommended linter configs and one of them configures:
'@typescript-eslint/no-unsafe-return': 'error',
which leads to errors in all my stencil components at the return statement:
render() {
return (
<Host>
</Host>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Changing Binding of ObservableObject in a subview re-renders all subviews of dependent on the object I have an @ObservedObject var filter: Filter property in my FilterPageView, when I pass a property of this object to a subview which contains a list and mutates the passed property, changes in the property re-initial... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use function that can calculate the sum squard I have created the following function to calculate the sum squared
def sum_of_squares(n):
sm = 0
for i in range(1, n + 1):
sm = sm + (i * i)
return sm
this is a snap from the header of the df2
| ACCX | ACCY | ACCZ |
| -------- | --... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to display only subscribed posts in Python So there is 2 apps in Python, one is for blog posts and second is for user profile. I want to display on my HTML main page only user's subscribed posts.
blog post models.py
class News(models.Model):
user = models.ForeignKey(
User,
related_name='use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MPAndroidChart BarChart - ValueFormatter is not applied I use MPAndroid to use Group Bar chart.
I create ValueFormatter.
val StepValueFormatter = object : ValueFormatter() {
override fun getFormattedValue(
value: Float,
entry: Entry?,
dataSetIndex: Int,
viewPortHandler: ViewPortHa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ToString() creates an object on the heap? num.ToString() Will create an object on the heap during the execution of WriteLine()?
int num = 83424;
Console.WriteLine(num.ToString());
A: Almost certainly, yes. There may be some behind-the-scenes tricks to avoid allocations for some small integers, zero, etc (a quick t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: load or Inject ContextMenuView to TreeView Directly I have Created a ContextMenu Separately and want to Inject that View to the Specific View Where TreeView is defined and once user Select any Item in Tree view then this Context Menu should be loaded.
MultiViewContextMenuView
` <ContextMenu x:Class="ContextView.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error while sending request in Go with gin and gorm I started Go very recently and decided to create a simple CRUD back-end using gorm and gin.I have implemented the following function to retrieve a query result.
I can't get some of the endpoints to work.
func GetCurrentStock(c *gin.Context) {
result := initiali... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PyQt6 - QTextBlockUserData assignment issue I have the following PoC code:
from PyQt6.QtWidgets import QApplication, QMainWindow, QTextEdit
from PyQt6.QtGui import QTextCursor, QTextBlockUserData
class UserData(QTextBlockUserData):
def __init__(self, level=-1):
super(UserData, self).__init__()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: aws api gateway lambda proxy integration response error im trying to use AWS api gateway proxy integration with lambda to make an external api call, and i want to return the response as is back to the api gateway .
when i am executing my lambda with custom event every thing works fine , but when im trying to test it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unhandled Exception: SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = localhost, port = 60332 first i want to fetch data from my localhost in MySQL Workbench, I already create dummy database and put the table inside it, but when I did going to fetch data using mysql1 package... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Debezium is failing after updating connector that use confluence schema registry I have a kubernetes cluster that stream my database events where I setup debezium and a confluence schema registry. They connect directly to a kafka cluster inside confluent platform.
Every time I update my connector table.include.list ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Authentication API - How can I use a changing Salt client side? So, let's say I have an authentication Server and a Client that sends a Request with credentials.
My Problem is that when I use a generated Salt, the Server doesn't know about that changed Salt e.g. The Client generates a new Salt, sends the credentials... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to fit an image inside a fixed size div I have a div containing two divs: One for image(30%) and one for text(70%)
Inside the image div, i am fitting my img.
I want the img(image-container) inside the image div(img-banner) to:-
*
*Not exceed outside the div, it should fit in
*Should not be blur
*I don't mind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Uncaught SyntaxError: 59 Laravel 8 + Vue 2? I have Laravel 8 + Vue 2 application everything locally working just fine, when I upload it to production it is working on the web version but on mobile the content show and disappear immediately!
I check console i got this error:
Uncaught SyntaxError: 59
bs https://XX... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I configure dnsmasq to answer requests of specific clients correctly and requests of all other clients with a given ip? I want to configure dnsmasq, to redirect all unknown devices to a "Login" ip and to handle known devices normally.
I've tryed to answer all DNS requests with a ip
address=/#/192.168.0.1
but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Nuxt SSR - Different timezone in the server and in the client I created a signIn function in my Nuxt pinia store
async signIn(email: string, password: string) {
return new Promise<void>(async (resolve, reject) => {
try {
const apiBaseUrl = useRuntimeConfig().API_BASE_URL;
const api ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python speech recognition: Error 400: Bad Request im trying to convert a Wav file to text with speech_recognition, but it always crashes. My Wav file size is around 250mb, however even with a smaller file (2mb) its still crashing.
my code:
import speech_recognition as sr
filename = "untertanaudio.wav"
def speech(fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does it show completely on erl terminal in erlang It cannot show completely on erl terminal if the result too big in erlang. Is there any way to solve it.
[{rabbit_prelaunch_sup,'_',#Fun<erl_eval.42.3316493>},
{rabbit_prelaunch_sighandler,'_',#Fun<erl_eval.42.3316493>},
{rabbit_semver_parser,'_',#Fun<erl_eva... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Split & Rename pdf file using vba I received a merged file including multiple payslips.
There is a specific number in a particular place on every payslip.
I hoped to use this exact number as each file name (Eg. 37224.pdf)
I tried to split and name into separate payslips using the below VBA code.
Option Explicit
Sub ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible for Vectorbt to enter the market in batches? For example, if the initial cash is $1,000, buy $500 when the stock price crosses MA5 for the first time, buy another $500 when the stock price falls to MA10, stop loss and exit when the stock price falls to MA20, and take profit and exit when there is a 20... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python dictionary internal implementation There are two things :
*
*Dictionary implementation in c++ -> Internet says Binary Trees, I got maybe the hash key gets in the form of the binary tree and when we search it gets to the left or right depend on the root value, and finally gets to the memory location where va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Understanding closure returned from function I’m having problems understanding when returning second (in line 8). Is it returned to first? And why do I need to use parentheses with the variable that I assigned to first after doing so? For example: fn(). Why can’t I just use fn?
function first() {
let a = 0
let... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# read key but double value I'm a bit stuck because I'm rewriting things, but there's a problem.
I would like to ask if you are hiring a new person, but for some reason a double value comes in (eg if i then ii)
var is newUser...
The newUser is a char and use Console.ReadKey().KeyChar but the value is double.
I hit ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-7"
} |
Q: definition of servie [pg_servicename] not found on Windows I am running into issues trying to connect to a db using a service file from within QGIS.
Error is "Connection to databse failed. definition of service "pg_servicename" not found.
.pg_service.conf file looks like this:
[pg_servicename]
host=127.0.0.1
dbnam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How can I get a uploaded folder path as a variable in flask app? I'm creating a flask webapp, where users would be able to select any folder in their PC. This folder should contain two subfolders: a folder containing pictures of cats, and another subfolder containing pictures of dogs. A python script would train a p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I Have Error In Line RUN dotnet restore in dockerfile I have an api project with .netcore 6 That I want to dockerize.
this is my dockerfile
but when i publish, get error when download nugets
and not complete
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 80
FROM mcr.microsoft.com/dotnet/sdk:6.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: i have some enroll with: Foreign key 'FK__GiangVien__makho__38996AB5' references invalid table 'Khoa' CREATE TABLE GiangVien
(
magv int PRIMARY KEY,
hotengv char(30),
luong decimal(5,2) CHECK (luong >= 0),
makhoa char(10),
FOREIGN KEY (makhoa) REFERENCES Khoa(makhoa)
);
CREATE TABLE SinhVien
(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTML Source Code Different from the content displayed in browser I observed that Yahoo is somehow able to "hide" the content that it displays in the browser as compared to what we see in the webpage's source code.
For example, if you visit https://finance.yahoo.com/quote/AOTG/profile/ in any standard browser, then i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scipy / Mystic - Constraints violated after being specified I'm trying to optimize a 52x5 matrix to maximize a return value y, using mystic. There are 4 types of constraints that I need to include:
*
*Each element must be in between a min and max range
*Total sum of all the elements must between a min and max ran... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: horizontal scroll with buttons React i need to make salesRibbon__productCarousel scroll when i click to salesRibbon__arrows_arrowForward forward and salesRibbon__arrows_arrowBack backward
import React, { useRef } from 'react';
const SalesRibbon = () => {
const container = useRef(null); //<--- this thing ISN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: alpineJS controlled form submits original value instead of x-model sync one I have an comment section with edit in place functionality. It is a modified version of https://codepen.io/brbcoding-the-selector/pen/yLNvexO with backend submission. On the front end, everything seems to work. The problem comes when I submi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: numbers.sequence in thymeleaf with thymeleaf variable This works :
<tr>
<td th:text="${Blade__${iBladeIndex}__CutterMultiImagesCount}"></td>
</tr>
Returns the correct number in <td>
But this :
<tr th:each="i: ${#numbers.sequence(0, ${Blade__${iBladeIndex}__CutterMultiImagesCount} - 1)}">
<td th:text="${i}"><... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Graphics problems after switching back to the previous screen in kivymd. What can I do to solve this problem? Versions used:
*
*python v3.10.10
*kivy v2.1.0
*kivymd v1.1.1
.kv file:
MDScreenManager:
id: app_manager
MDScreen:
name: 'startup'
MDBoxLayout:
size_hint: 1, 1
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What happens with this simple thread lock using atomic bool? I was wondering what can happen with the following code. Let's just say you implement a thread lock with a simple atomic that's locked by one thread, and then has possible multiple other thread running a while loop waiting for the bool to because false aga... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Error: FormatException: //localhost:3030 - Hi can anyone help me I am try to make a simple request using an api request in my capstone project (developing web application with flutter)
I am not really familiar with this problem.
The code of the request is this:
final response = await http.post( Uri.http(registration... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: creating Github repo with my custom odoo module I'm new to odoo, but I'm a node.js web developer. I'm used to developing on my local machine, pushing the code to my github repo, then cloning or pulling the code on the server.
But developing odoo is different, I cloned the odoo github repo on my local machine, develo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to use Vulkan SDK without manual installation (build from source)? I like to keep dependencies locally.
If my project needs a library the priority is to get it with FetchContent instead of asking the user to install it.
This way anyone with a clear system and no knowledge about CMake can use my projec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Umbraco 10 Site Logo only showing on homepage I currently have a site logo with the element set up on the homepage so that the user can change it, but it's only rendering on my homepage. How do I get it to show on all pages. This is my code
@{
var siteLogo = Model.Value<IPublishedContent>("siteLogo");
if (siteLogo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any way to watch for a registry value change with Powershell? I want to create a powershell script that would allow me to do "something" when the value in a certain registry key changes. This would be to know when the background of windows change with HKEY_CURRENT_USER\Control Panel\Desktop\WallPaper
I've t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Passing within components Next.js 13 I can't find a way to successfully pass const SanityData into function Home and when typing console.log(products,bannerData) data to be shown and used inside function Home.
I tried to call SanityData() inside function Home as you can see, but I still receive undefined when I try ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# find number of equal groups required to divide number from n to 1 Need c# code to know how many groups can be created for a number(N) till 1, each group having set of equal numbers.
Can anyone one help me out how to achieve this without using much loops (for, while)
Example 1:
Input number(N) : 8
Constant number ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-8"
} |
Q: Set-dynamic Distribution using powershell and CSV I am running a small powershell code with CSV file:
Code:
$Data = Import-Csv "C:\DDL\Set-DDL.csv"
ForEach ($wm in $Data) {
Set-DynamicDistributionGroup -Identity $wm.Identity -RecipientFilter {(UserAccountControl -ne "514") -and (Department -like $wm.Dept)}}
CSV:
Id... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spark: Missing data after having heartbeat error I have a Python program that run on the Spark cluster with four workers.It processes a huge Oracle table with about 15 Millions records. After checking the result, I found that about 6 Millions records have not been inserted. My write function is like following:
df.wr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to load and show an image from blob in react native after having a look around here and trying the two suggested solutions so far, I cannot seem to download, load and set an image as a state to be displayed in react native. Here's the code:
const dlResult = await downloadUrls(urls)
console.log (dlResult)
console... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: i'am studyng Data Science, and i dont know how to make the the labels of the x dont stay together the code:
sns.catplot(data=crimes_ano_2010, kind="bar",
x=crimes_ano_2010["Unit Name"], y=crimes_ano_2010["Total Cases"], aspect=3)
i try to use aspect but doesnt make difference
this is the graphic
| {
"language": "en",
"url": "https://stackoverflow.com/questions/75566279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-8"
} |
Q: How can I change the date format for date inputs that use the element? I'm trying to format a date in dd/mm/yyyy format in Vue 3 with TypeScript, but the formatting isn't being applied. I saw many answers recommending using moment.js but the documentation of this library said it is outdated and it can be achieved w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: import functionalities wrapped in an object in NodeJS I try to do the following syntax: Given a library with functionalities import {paint, work, drink} from actions, how can I do something like the below? I tried, but it gives the error log TypeError: Cannot read properties of undefined (reading 'paint').
import ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dropdown select form with pages as option values, with go button, in Bootstrap? I am trying to do a basic site, and am new to bootstrap. The goal is to have a state select form, where you can pick a state, and once selected, you can press a button to go to the page. I have found a few old examples, but I am having t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I want to delete a link of my wordpress site that is not accesible or visible anywhere on dashboard I am new to wordpress and don't know where to find specific things. I am creating a page that goes like example.com/audi but it always converts to example.com/audi-2. When I check the example.com/audi it opens a page ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change the download chunk size in pytube Building a youtube video downloader using pytube. I want to change the chunk size and make it smaller (by default it is 9 MB).
from pytube import YouTube
def on_progress(stream, chunk, bytes_remaining): #I want this to be called more often
total_size = stream.filesize
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Relative path in import in React is not working I am facing an issue with this for some time now. When I try to import a component, hook or an image and when I do for example :
import MyImg from ""
in the quotation mark the import folder suggestion is not working. Okay, I do it manually with ../../ and then it give... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reduce load times by merging cdn files of different modules Initially my project was straightforward, it was a simple project that just involved firebase as a backend. But as thing's processed and I started adding more features to the project, more libraries were added to this project (Its a Web App made with Vanill... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Optix LNK2001 unresolved external symbol I'm trying to follow a step by step tutorial on Optix at github, but in one file there's this line:
extern "C" char embedded_ptx_code[];
which leads to the error at the title since there's no definition of that C string.
I don't get it , am I supposed to generate one myself?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to keep fixed width ticks on X-Axis in react-chartjs-2 I am using Line chart in react-chartjs-2 with labels of type Date. I have a dropdown to display 2 hrs, 4 hrs, 8 hrs charts. I want to maintain the distance between the X-Axis ticks of 15 mins. But in 4 hrs & 8 hrs I get the chart to be "smooshed". This smoos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Android Studio project build success besides new error 'java.lang.NoSuchMethodError' Till few days back, the Android project was building & running success. Now on upgrading few dependency libraries including Gradle version using IDE, the build run is getting success besides error.
I changed the Android Gradle plugi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Namespace not found after successful installation of NuGet package? I have a Visual Studio 2022 .NET 7 MAUI Class Library project named HybridScanner.
I'm importing the ZXing.Net.Maui NuGet package.
The NuGet package installs successfully.
However I'm unable to use it in my library. I'm getting the error:
The type ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Apache nifi nodes shutdown when I get 20 millions rows from a table I am using two nodes in Apache Nifi with external zookeeper.
I have a processor that gets data from a table that has 19 million rows. The processor is ExecuteSQLscript and the request is "Select * from table" and batch of 1000. My pipeline works wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Order of convergence of newton's method I have to determine the order of convergence of the newtonmethod. Tried to do it, but getting a wrong answer.
The output i'm getting is:
1.7128e+00
1.8444e+00
1.9161e+00
1.6276e+00
1.0000e+00
1.0000e+00
1.0000e+00
I know i'm supposed to find that the order is 2 and not 1.
My ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Color transfer between two images by a cropped area in Python Imagine we have two images (master,imageTarget) there is a cropped part for each image that it should be same in both pictures ,for example
source= start point[100,100] and size [500,500]
target= start point[400,300] and size [500,500]
now I want to c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Questdb docker StaticContentProcessor [106] not found I'm running questdb via docker on Linux (Ubuntu)
sudo docker run -p 9000:9000 questdb/questdb
and want to record some price data in python: from cryptofeed I use the example
https://github.com/bmoscon/cryptofeed/blob/master/examples/demo_questdb.py; the only cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Update cell value to NOW() only when a specific cell is updated Without Apps Scripts The idea is pretty simple, have a cell log date and time like NOW() when a cell in the same row or a specific cell is changed, But i didn't find a solution without using Apps Scripts.
Example:
Ideally I'd like to use one formula to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to not sort the result of idxmax python I have the pandas dataframe below:
import pandas as pd
df = pd.DataFrame({
"review_num": [2,2,2,1,1,1,1,1,3],
"review": ["The second review", "The second review", "The second review",
"This is the first review", "This is the first review",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Permission denied from gunicorn trying to create home directory in Docker I'm running a Dockerfile as non-root user. I have created a new directory and installed pipenv and gunicorn as root user. Once set user and group ownership to new user, it cannot run last CMD due to a permission denied.
My dockerfile
FROM pyth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: enabling checkbox elements dynamically using java script I have below HTML code
<input class="user_roles" type="checkbox" id="Administrator" />
<input class="user_roles" type="checkbox" id="Installer" />
<input class="user_roles" type="checkbox" id="Starter" />
<input type="hidden" class="peter" id="peter_Administ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Video onlick event in mobile view in react is not working. Can anyone help me to solve this problem so that I can make use of onClick event in mobile Video onlick event in mobile view in react is not working. Events like onPointerEnter, onTouchStart, onTouchMove, onTouchEnd are working on mobile view but I have to u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Arabic and Farsi letters are not displayed correctly in vscode Arabic and Farsi letters are not displayed correctly in vscode. Do you have a solution?
enter image description here
We expect to be able to view non-English characters correctly when outputting in the terminal, and if there is an extension or a solution... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I fix the no such element exception error? So, I was trying to make a second option menu but I kept getting an error in my java code.
Here was my class:
package StockAnalysis;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.IOException;
import org.jsoup.Jsoup;
import org... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75566327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |