text
string
meta
dict
Q: SQL Query with more than 1 WHERE I have 3 tables. I want a list of t1.user_name, t3.item_id WHERE user_id = 17 AND stat = 0 OR the row not exist, meanwhile user_id != 17 AND shipped = 1; Table1 CREATE TABLE table1( id NOT NULL AUTO_INCREMENT, user_name varchar(255), ); Table 2 CREATE TABLE table2( id NO...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: LOGO - Siemens WEB How I communicate with the logo via javascript? I want to create a web page, where there are web controls and sensor readings via PLC. My question is how am I going to fetch and send data to the PLC through the web page.
{ "language": "en", "url": "https://stackoverflow.com/questions/75592950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Need "Days since X Date" to not change once that cell is used I'm creating a gradebook for teachers. I have a column tracking how many days have elapsed since the due date, as many schools take off points for each day an assignment is late. I have that formula set, but I realized that as today's date progresses, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: print a variable value in str_replace function below is my code. All is okay but, in image alt tag, its showing $image_alt, instead value of that variable. How can I print the value of the variable inside this function? Kind regards. $image_alt = $attributes["caption"]; $image_src= Str_replace('src="', 'alt=$image_a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I see see what properties are being used in a function? I have a relatively large function that has 3 input parameters which include dozens of nested properties. I'm looking for a way to see which properties are being used from those objects, that way I can only pass in the required data. private int Functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Using python to calculate average of a grouped column I have written a Python code to average numbers by groups. Hereby I want to average 5th column grouped by 2nd column. import numpy as np import sys import pandas as pd df = pd.read_table("test.txt", delimiter=" ") result = df.groupby(['radii']).mean() np.savetxt(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: unable to connect to redis with my celery project with rabbitmq as broker I am able to send the task to rabbitMQ and let my celery workers to execute the tasks but when i use the result URL with the task id, it just loads and does not show anything, I don't know if its due to connection error with Redis or what. fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Combining plurals and interpolation with react-i18n Is it possible to combine the plural functionality with interpolation. So it would automatically become plural in case there are more than 2 arguments. The keys bird_one: "{{ a }} is a bird", bird_two: "{{ a }} and {{ b }} are birds" Ideal reference which does no...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is buf() and what does it do exactly? Why is this code using buf() when it passes a variable name to MyBuffer constructor? What does buf() do exactly? #include <iostream> using namespace std; class MyBuffer { private: int* myNums; public: explicit MyBuffer(unsigned int length) { cout << "Const...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create a dictonary with merged cell as a key and corresponding columns cell as values This is the sample excel data. I am using openpyxl to work with excel data in Python. I want to create a dictonary in the following format: { 'A':[1,2,3], 'B':[4,5,6], 'C':[7,8,9] } So far I am able to detect the merge cells and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Docker context not found on GitLab when building multiarch image I am trying to build a multiarch image on GitLab CI with buildx and when I tried to run docker inside my pod I receive this error: Failed to initialize: unable to resolve docker endpoint: context "/builds/infrastructure/apps/deployer": context not foun...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Executing a Gitlab pipeline from receiving a webhook I'm running a local gitlab server (omnibus) and I have a company internal repo (set up through Rhodecode). I'm trying to get Gitlab to trigger a pipeline upon receiving a webhook from our Repo once there is a push done to our repo. Then have a python script parse ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I change the font weight of this string? (Screenshot attached) I want to change the font weight of the String "Willkommen im B2B Shop", but dont know why it remains the same: https://b2b.schneider-sportswear.de/schneiderb2btest/Anmeldung I am a complete newbie to CSS and I am thankful for any advice where to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Visual studio code live server issue Whenever I use the visual studio code live server extension and open the console on the browser than my webpage will never reload and it shows an error. If I close the console and reload the page it loads fine. Any solution for this problem?[Check the images](https://i.stack.imgu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Something’s not right with your CTI vendor’s metadata I was trying Computer telephony integration (CTI) with Amazon Connect CTI, after the configuration when i tried to make a connect, getting this error Something’s not right with your CTI vendor’s metadata. can someone help me on this issue?
{ "language": "en", "url": "https://stackoverflow.com/questions/75592975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: My apache rewrite rule is not working for the social sharing I am trying to serve endpoint to static page when HTTP user agent is from the social network platform like Facebook, LinkendIn and others. My shared URL will be like https://abcxyz.com/app/#/product/326c75d3-6434-11ed-a118-06c20f99771a and my staic page e...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Complex conditional statement to change a specific cell in r I have a data frame like the following (but with 10,000 rows, and 250 columns): a b c d e f g -------------- 1| 4 0 6 3 7 3 7 2| 4 6 0 6 6 2 1 3| 3 6 2 6 8 0 5 Where I have applied df$h <- (rowSums(df[, c(1, 2, 4, 6)]))/4 to produce: a b c d e f ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Simplest way to protect a Flask app with a password I'm building a very simple web app using Flask, just to learn. I'd like to implement a login page, with just a password form in the main page, to access the app itself. I know there are libraries that does so, but I need a very simple login form with just a passwor...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to reload a page when a element is rendered in python dash? I want the page to be reloaded when a specific element is rendered. Or being able to reload the page from my python code without sending the element to the client. This is my current element. I want it to trigger a page reload. [dcc.Graph(figure=px.scat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: null written inside a file that has script in it I unzipped a .tar file in windows using 7zip and see "null null null0000 00000 nullasync mycode{" This text file that i have has a script in it which i need to run.I deleted the null and made a readable code but while running the thing i face errors which makes me thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: mat-date-range-input propagates Enter key press if inside form I faced with an issue/bug if mat-date-range-input inside a form and there is a button after it - the button is clicked if I press Enter inside date input field! Here is example: stackblitz example I tried stopPropagation() on inputs - but it doesn't help...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to prevent passing celery task arguments to the logs? I have a celery task that takes an avro file as a byte string and writes it to a database. This task is taken up by a worker and it succeeds as I can see it in the database. However, the worker's logs are cluttered with the byte string argument that the task ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are there any good deployment frameworks for custom C++ applications? I'm familiar with Click Once on Windows. Click Once works by deploying a small "bootstrap" application that is able to download a manifest file (a list of files needed to run the application). I'm having trouble finding something like this for Li...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use getApplicationDocumentsDirectory() to get path before using it in FutureBuilder In this Flutter app, I want to build a list of items with thumbnails that are stored as file names in the database. The files are stored inside the application's directory and only the name is saved in the database. When I build the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: bradle.build failed without an error message or warning gradle.build failed without an error message or warning also clean failed without an error message or warning please help I tried file > invalidate cashes > restart this is gradle app apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to send socket.io event using @socket.io/redis-emitter to server which is using @socket.io/redis-adapter internally I have copy pasted code from documentation. Still server is not able to receive events from emitter. server.js const { Server, Socket } = require("socket.io"); const { createClient } = require...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Making primeng table responsive without adding horizontal scrollbar to all the screen but only to the table itself I have a table with lots of columns, when I switch to a laptop all the text bumps into each other. I tried using responsiveLayout="scroll" but it creates 2 scrollbars one for the table (which is good) b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75592995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: could not load export data: cannot import error in golanglint I see new error in prow job could not load export data: cannot import "github.com/IBM/ibmcloud-volume-interface/lib/utils/reasoncode" (unknown bexport format version -1 ("u\x01\x00\x00\x00\x00\x00\x00\x00\x16\x00\x00\x00\x18\x00\x00\x00\x19\x00\x00\x00\x1...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I optimize the code of this python guessing game, and ask the user if they want to play again? import random n = random.randint(1, 31) choice = input("\nDo you want to play a game? (y/n): ") if (choice == "y") or (choice == "Y") or (choice == "Yes") or (choice == "yes"): counter = 0 number = int(in...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to connect Cypress to Zephyr Scale? I have been trying to connect my cypress tests with the Zephyr Scale Jira plugin, but I cannot really do it. Can somebody recommend me anything that can be used to connect the cypress tests with zephyr scale? When running this command: npx cypress run --reporter cypress-zephyr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Copy Files from yesterday date ans update that value in SQL Database Need help. * *There was a input folder with 5 files. when files exist that should reflect column verified to 1 in SQL DB table. Sol: i have tried getmetadata- exist and if condition* to throw TRUE when file exist. BUT how we send TRUE value to D...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 404 page not found error when trying to edit a user using their ID, with the @PathVariable annotation I'm learning spring boot, I have a basic crud program with a list of users, roles and permissions, etc. However, each user has an edit button that only a user with an ADMIN role can access, and when clicked, it shou...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to mysqldump mixed DB (MyISAM,InnoDB) separatelly for replication setup? I want to dump and setup for replication 4 databases roughly each about 3gb of size. The problem is that my tables are mixed and I need database tables to be locked as short period as possible.(Production Server) Is there any cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sending data form HTML input to Rest-Controller and back (Java Spring boot) I am working on a Simulation to calculate the course of an epidemic. For this I already have my website in which can enter values in the "input" tag which then get sent to the controller. In the controller, the received numbers should get ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Plot constant surface on tricontourf in Python I currently have a tricontourf contour map and I wish to interpolate the points and plot a line on the contour plot where the z value is equal to 0. Currently the plot looks like this: And the accompanying code looks like this: import matplotlib.pyplot as plt from mpl_...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prisma database schema for multi-level SaaS application I'd just like to get some feedback on my current database schema and a few issues I'm having with it. I'm trying to create multi-level User -> Organisation -> Project account flow, one that you would usually find in a SaaS application. I'd like a system where: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove-Item does not delete folder I need to delete a folder, but I get error can't remove because directory is not empty I used this command : Remove-Item \\wsl.localhost\Debian\home\my_folder_to_delete -Recurse -Force How can I force this delete ? PS: I use powerShell on windows 11 Thank you very much A: From th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a formula for "paste speacial as value" I have a cell in a text format that contains a mathematical formula such as =(1+2+3)/3. I want to calculate the value of this formula in another cell, but I want to keep the formula. Is there an "excel function" that can do that? Note: I don't want to do it manually u...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stop Sequential Processing in Drools Decision Table I am porting an application that was built using a very old version of Drools (2.5?) to Drools 7/Java 8. The application uses Decision Tables stored as xcel (.xls) spreadsheet files. The current spreadsheet has the Sequential Attribute set to "True" and a RHS ACTI...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: StreamingResponseBody thread release after outputstream is closed I have a SpringMVC endpoint for downloading documents stored in S3. It returns a ResponseEntity<StreamingResponseBody> The method in the Runnable reads the document in S3 with an InputStream and copies the bytes of the document in the OutputStream con...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sqlalchemy error when getting return type While retrieving the column type of Array receiving the below error in SQLALCHEMY(HANA) col_def["type"] = coltype() TypeError: init() missing 1 required positional argument: 'item_type' A: Rather than using SQLALCHEMY I used HANA built in views to solve this problem
{ "language": "en", "url": "https://stackoverflow.com/questions/75593026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Change a function argument type based on previous argument I have a static function named "onHook". This function have two parameters, an ID and a Callback. My goal is to change the type of the callback argument based on the type of the Hook ID. For now I managed to get this working : Typescript playground enum Hoo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Shopee affiliate open API return invalid character 'h' after object key:value pair I'm new to graphQL and trying to use Shopee's OPEN API generateShortLink: https://affiliate.shopee.ph/open_api/list?type=short_link However my code below returns the error: {'code': 2, 'msg': "invalid character 'h' after object key:va...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.noteapp, PID: 19664 E/Android Runtime: FATAL EXCEPTION: main Process: com.example.noteapp, PID: 19664
{ "language": "en", "url": "https://stackoverflow.com/questions/75593032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Standard BC-API to post Sales Orders Short Question: I have been looking for a Standard Business Central API to post a Sales Order, but I wasn't able to find anything. Do you know if I just haven't found it or if there really isn't any API for that scenario. I am using this APIs: https://api.businesscentral.dynamics...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PCA ANALYSIS biplot How can I replace a column. I want to replace the 1, 2,3,4, 5 columns in the picture above with AG1, AG2 so that it will appear on my PCA plot.This is what a view of my data looks like This is what my PCA plot is showingpca biplot. This is how I want it to look. Please what code can I use?
{ "language": "en", "url": "https://stackoverflow.com/questions/75593037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting $options.template in component created hook - migrating to vue 3 I am in the process of migrating a large application from Vue 2 to Vue 3 by using the Vue compat build. In Vue 2 we had a component that accepted a template from its parent as a prop which was then set using this.$options.template in the create...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple forms in one page Formik Is is possible to have multiple formik forms in one page? I have 2 forms and Submit button is not working for any of them. I tried refs but i couldnt fix the problem A: You can do something like this: import { Formik, Form, Field } from "formik"; const Form1 = () => { const hand...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a masked password box in a Python FMX GUI app? I'm making an app using DelphiFMX GUI library for Python. I need to have a component where I can enter a password and have that password masked. Sure I can use an Edit component, but then the password is in plain text and not masked. How do I mask a passwo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Perlin Noise generating weird results I'm coding an implementation of Perlin Noise in C#. When I run the program it outputs this: Every cell individually looks alright but when compared to it's neighbours they don't match. (In some rare cases two or more cells do match each other). This is the Perlin struct used fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I get the target framework that is used in binaries path in dotnet? When I build the application the binaries are placed to a folder like this: ../bin/Release/net7.0/.. Is there a way to get the string "net7.0" from the running assembly somehow? It is possible to get some attributes like that: var targetFram...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: plotly.express not showing plots I would like to make use out of plotly.express but they do not show up in spyder (or browser or whereever). Due to some trials I import: import plotly.graph_objs as go import plotly as plotly import plotly.express as px from plotly.offline import plot from IPython.display import disp...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parsing an escape character in TypeScript I'm trying to parse a SubStation Alpha format file. I have a line that is The glorious history of mankind\Nsuddenly came to an end. I am trying to get the numbers of \N in this line. I tried splitting by \N, \\N. I tried replacing with \\N.
{ "language": "en", "url": "https://stackoverflow.com/questions/75593053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Going from erd relation to table I need to convert an erd to a set of DDL statements, which then represent the erd. I am stuck on how I translate relations to DDL statements. Say we have entity department, with primary key name, and entity employee, with primary key employeeID. The relation between them is that the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Logical replication for separate schema within the SAME database in Postgresql For reference, I'm using PostgreSQL version 14.3 Let's say I have two schema, X and Y, and in X I have a table called customer, which will be touched by a customer microservice. I want Y to be able to see the data that is added/changed/re...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: EF Migration doesn't specify the migration In PM console I enter Update-Database -Migration BookCoverFieldUpdate -StartUpProject Infrastructure But it keep applying InitialMigration. This causes the exception. PM> Update-Database -Migration BookCoverFieldUpdate -StartUpProject Infrastructure Build started... Build ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DeadObjectException only on Android 10 I'm developing an app for smartphone/tablet for Android version from 9 to 12 (at the moment). For version 9, 11 and 12 everything is fine, no particular problem at all. I tried my app on Android 10 and when it switch from the splash screen to the login activity it crashes with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Passing class type as a parameter in Kotlin In my app, I have a Kotlin object that performs database queries. It also saves the data it got from the database to a hashmap named Cache. Currently, this is the function for getting a specific document from a collection (aka table). private val CACHE: HashMap<Collection,...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ag-grid with custom Header containing SearchBox and Focus Problem I am trying to implement a Ag-grid Table with a custom Column Header which displays a SearchBox (simple Textbox) below the normal Column text. How can I achieve this type of table? A: You can implement custom header component via headerComponent in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: To convert a list of numbers, letters and symbols to a string How can I convert a list of numbers, letters and symbols to a string. Something like, ['a', '1', 'e', '%', '5', '$', '.'] to convert to "a1e%5$." or a1e%5$. I tried using the str() function and the ''.join() function but it printed the same thing out
{ "language": "en", "url": "https://stackoverflow.com/questions/75593069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Same loop but two different outputs for the table I am using a for loop to print out a table. It all works well, but all tables after the first loop look different. the attached screenshot shows Sektion_100AY which is the correct output. But Sektion_200AX is wrong. TABx=np.c_[list(range(1,LimX+1)),sort_tabelX[0...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: PATCH method with enum value doesn't work with Postman but works with browser Here is my Spring Controller with the @PatchMapping : @PatchMapping("/mode/{numClient}") public Response<Object> mode( @PathVariable Integer numClient, @RequestBody ModeEnum mode, @RequestHeader(name = "Authorization")...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: git automatically ignore commits by file I'm using the following command for git to ignore commits listed in .git-blame-ignore-revs git config blame.ignoreRevsFile .git-blame-ignore-revs This file is tracked in a remote git repo. Every developer has to set up this command manually on first pull. I have no idea why...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: pppd problem: Hangup (SIGHUP) after Protocol-Reject I'm trying to set up a connection using a Vodafone LTE sim card on a carrier board with a Qualcomm modem equipped and with Linux Yocto running. I managed to turn on the modem but I can't connect it to internet. I can paste the syslog down here: Nov 19 17:27:27 imx6...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: drop year and month and year from a date format so I want to convert this column from str to date format ,i used the following df["Time"]=pd.to_datetime(df["Time"],format='%H:%M') OUTPUT: 0 1900-01-01 02:29:00 1 1900-01-01 06:52:00 2 1900-01-01 10:23:00 3 1900-01-01 12:59:00 . . . Name: Time, Length:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to disable SwiperJS on certain breakpoints? As the title says, im wondering if it's possible to disable a Swiper when hitting a certain breakpoint within React? <Swiper breakpoints={{ 640: { slidesPerView: 1 }, strong text 768: { slidesPerView: 2 }, 1024: { slidesPerView: 3, enabled: false } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Programmatically setting the SelectedItem of a CollectionView is not working on iOS I am populating a screen with a CollectionView and I'd like to preselect the SelectedItem. On Android (left screenshot), this works fine, but not on iOS (right screenshot) - only manual selection by the user seems to change the UI. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to call Proxy API on server for Nuxtjs I am not able to call proxy url which I setup in target field in nuxt.config.js. Sample code: Nuxt.config.js: modules: [ '@nuxtjs/proxy' ], proxy: { '/api/ :{ target: 'some external API Endpoint / URL',pathRewrite: { '^/api/' : '/' }, changeOrigin: true } } Above ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there an R function to do grouped operations on a data frame without collapsing it? Apologies if the question isn't formulated correctly in the title, I am fairly new to this and still not used to the exact terminology. I need to add a column to a data frame that contains the result of operations (e.g., mean, sum...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to fill color while write to excel I have a df like the one on the left. I would like to export it to an excel file with some formatting based on the Name value. What should I do? the rows filled with grey color every other unique names. df<-structure(list(Name = c("Tom", "Tom", "Tom", "Jerry", "Jerry", "Amy",...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Google Rich Result Testing Tool Error: Parsing error: Missing ‘}’ or object member name My website: www.bharatpharmatech.com My code is in nextjs My Schema Is: { "@context": "https://schema.org/", "@type": "WebSite", "name": "Bharat Pharmatech", "url": "https://bharatpharmatech.com", "potentialAction": { "@type": "S...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: when using torch cuda the script get killed I'm using jetson nano device that has GPU. >>> import torch >>> import torchvision >>> torch.__version__ '1.8.0' >>> torchvision.__version__ '0.9.0a0+01dfa8e' >>> torch.cuda.is_available() True >>> torch.cuda.device_count() 1 >>> torch.cuda.current_device() 0 >>> torch.cud...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nextjs Link not routing to page, if current url contains '#' I am on a page where the url contains '#' and a reference (localhost:3000/some-id#header) On this page I have a link to a subpage eg. localhost:3000/some-id/subpage The nextjs link to the subpage will clean the url and NOT navigate to the subpage. Clicking...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I restructure a JSON array in Javascript I am trying to extract and restructure data from a JSON array. I have an array of objects like this const data = [ { "name": "EVENTNAME 1", "venue": "VENUE 1", "starttime": "09:00", "endtime": "12:00", slug: { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Can I pause the notifications in Reality Composer? In Reality Composer, I identified the notification called replay. In Xcode, I controlled the notification by adding this code: Scene1.notifications.replay.post() Can I call the method for stopping or pausing this notification? A: In Reality Composer you can create...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: apply multiple XSL stylesheets with identical templates I need to apply several XSL stylesheets to an input document but the stylesheet to be imported have some templates named with identical names. Here is what I need to do: <xsl:import href="convert_from_a_to_b.xsl"/> <xls:import href="convert_from_b_to_c.xsl"/> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: ElasticSearch scoring based on percentage of category I'm not quite sure where to get started with this query. I'm using the opensearch quickstart data to try to explain. The documents have the following fields for example: { ... "customer_first_name": "Sonya", "customer_full_name": "So...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: correct func addImage and saveJSONfile I wrote two func to add and save image in the directory, but I don't know how to correct these errors. argument label 'name:' in call do { try Fil func addMyImage(_ name: String, image: UIImage ) { let myImage = Image(name: name). Extraneou seManager().sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: I tried to make a C++ program and then I got a linker error so I have a linker Error 2005 (LNK2005) and I can't figure out what I did wronghere's the photo of the error I tried to make a program with a lot of files and headers (basically not to use one file for the whole code and functions) and then the LNK error ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: UNION changes the order in the query. Why? I have a problem with a specific task on hackerrank: https://www.hackerrank.com/challenges/the-pads/problem?isFullScreen=true I know how to do it, but for some reason UNION break the query for me. If I write this: (select concat(name,substring(occupation,1,1)) from occupati...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Chat GPT OpenAI api key security issue I have used chat gpt open ai API in iOS application, their https API requires Authorization key in headers with API key. curl https://api.openai.com/v1/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{"model": "text-davinci-003"...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Stackoverflow after deploying code on my hololens 2 I got this specific error when I try to build and deploy my code. the build works, the deploy is effective but when it starts, I see the "Made by Unity" and this error shows up : Unhandled exception at 0x00007FFC92EE5FE0 (GameAssembly.dll) in HolOnBoard.exe: 0xC000...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Delta table read in Athena I have a Delta Table in Athena that is partitioned. This table has data ingested every 5 minutes. This gives me about 288 files ingested per day in one partition. On Day + 1 I run a proccess to coalesce(1) all files in the Day partition. So in one partition I have 289 files. My doubts are:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Zotero Software Tool ( Reference Tool for researchers) , Interface development and road map for beginners how to develop plugins? I am a student of computer science, my final year project supervisor order me to develop an interface for Zotero software tool which tell the user work , which he done or doing with the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Data table and field extraction from word files in palantir foundry I am looking for solution to extract tables and some fields from word files in Palantir foundry. is there any out of the box solution available for the same? Any other suggestions/examples will be helpful
{ "language": "en", "url": "https://stackoverflow.com/questions/75593109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create Azure MYSQL instance for Organization I want to create an Azure MYSQL instance for my team in the organization. from what I can see I need to provide ip addresses of the devices which can access the MYSQL instance. How can I configure the firewall rules such that the SQL instance is only available for my team...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Distinct results from Spring Data JPA Specification by one column I have the following table on database: id employee_id title created_at 1 10 title1 2022-10-10 1 10 title2 2022-10-11 I want fetch data by distinct on title column; by sql I can do this: select distinct on (employee_id) * from contracts ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Linking multiple C++ files in ECL I have C++ code spread across multiple C++ and header files and wanted to know how to link them in ECL. Should I install them as libraries (.cpp and header files) into the local cluster I am running in order to import them into the main C++ embed code and use it OR is there any othe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Plot timeseries data against categorical column I am trying to plot my data (a huge data) with x axis as date and y axis a categorical variable. (a sample of data is provided as below.) I tried with as follows but the chart is unreadable. I also would like to make it interactive. I just want to show in specific date...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In 2023, how to invite Facebook friends in Game via API? I've read tons of articles on Facebook friends integration, tested several things, but clearly, I'm still not able today to tell if it can be at least achieved through the facebook api (which is a shame....). I have a website, main content is related to games....
{ "language": "en", "url": "https://stackoverflow.com/questions/75593114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Django GeometryDistance usage with postgis database I am having some issues using GeometryDistance where I have a node point object and am trying to find the closest node in another table in the database. GeometryDistance(start_node.geom, vertex.objects.all()) This is the truncated output. GeometryDistance(Value(<P...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create Apache web server that pulls data from Cloud SQL database server on Google Cloud? I'm on a project where I need to set up a webpage that would display data from a database. However, I'm not sure where to start and what are required. Below is my plan: * *Create a db instance (Cloud SQL) *Create datab...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: I'm looking for a way to add two or more timestamps (format "D" 'hh" "mm") together with a formula or VBA I am looking for a way to add two timeframes together which results in a "days" "hours" "minutes"-format As you can see from the picture above: I can calculate the differences between columns C and B in "days" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to do the deploy of an application with the front end in react and the API in node, express, sequelize and mysql workbench? I developed an application with the front-end in react and the API in node.js, express.js, sequelize, and mysql workbench. Now i need to do the deploy of my application. PS: I have never de...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get methods that are called inside some method in C# Let's say I have methods void Foo(){ Bar(); //do stuff } void Bar(){ // do stuff } How can I make an algorithm that takes a method as an argument and tries to find all the methods that get called inside that method. For example if I do findMethods(Fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Implement constraint with pyomo data = [['Jan','5', 'A', "Yellow_dress", "15", "1"], ['Jan','5', 'A', "Yellow_blue", "15", "1"], ['Jan','5', 'A', "Yellow_pink", "15", "1"], ['Jan','5', 'A', "Black_dress", "15", "0"], ['Mar','5', 'A', "Yellow_dress", "15", "1"], ['Mar','5', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: how to change default spacing between options in react-select I'm trying to change the default spacing between options in a menu in react-select. now there is some predetermined distance between them that I cannot get rid of. on the screenshots you can see what I'm dealing with. I specifically turned on the backgrou...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to bind ReactiveCommand from view constructor to Button inside ItemTemplate I am using ReactiveUI and Avalonia with C#. I have problem with executing command on a Button inside ItemTemplate of MyItemsControl. MyView and MyItemsControl are correctly displayed but when I click a Button generated inside ItemsTempla...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C++ Unresolved external, but lib contains method My application uses iphlapi.lib. Although NotifyInterfaceChange is present in the iphlpapi.lib lib, there are unresolved externals on the left. The lib is registered in the project at the linker. Also directly in the code with #pragma comment(lib, "iphlpapi.lib") does...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Get All team members from DevOps Scrum team with roles I am working on a project where I need to retrieve Product Owner, Scrum Master, QA Lead, Dev Lead and Scrum Team Area Path from Azure DevOps. I am open to technologies like Power Automate, Python, Power Virtual Agent etc. I tried with REST API Endpoints but unab...
{ "language": "en", "url": "https://stackoverflow.com/questions/75593137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }