text
string
meta
dict
Q: How can I geta list of files in multiple sub-folder with their absolute path in Linux I have multiple sub-folder, in every sub-folder have multiple .txt file. I want to organize a list with every file.I use this command to get absolute path. find $PWD -type f -name "*.txt" but how do I merge all of them into a tex...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deleting specific data using filewriter? When user enters the account they want to delete, I want to delete that specific account, and it should no longer show up on my txt file, but I keep getting an error... I've only learned java for a month now, so please help me out with the basics:) //Here's the filewriter cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Git shows diff for special character " " question mark inside a square. How to resolve it? I did some code changes from Visual Studio code and push my changes to Git repo. While raising the PR, I saw there was a diff for special characters but I didn't change anything on those particular lines. See SS: Then I tried...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do i return variables from multiple functions into one variable and to make it so it updates each time return variable is given? The problem is, that i want to make it so the attack function gets "attack" variable from other functions. So basically i want to get a variable that updates each time "attack" gets re...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to use dbt_utils.unique_combination_of_columns on DBT How could anyone help me how to use this DBT command "dbt_utils.unique_combination_of_columns" I plan to test 2 different column on my DBT unfortunately (user_id & ticker_symbol) I'm encountering an error upon running dbt test. Your response is highly apprec...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Return new Promise from function but return object can't use .then I try to create cart system base on Academind vid but the I use mysql instead and I NEED to follow the MVC pattern.the problem is when my router use controller object(which use product model obj) to query product from db then add it to cart(from Cart...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Issue with Exporting Cycle into CSV filetype in Zephyr Squad REST API Followed Official Doc: Zephyr Squad Cloud REST API (formerly Zephyr for Jira) Getting Missing parameter: projectId as a response from Zephyr Squad. I am not getting why parameter of projectId is missing even though I have been passing this in pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Default Legend does not fit in R Plot margins I have searched so many techniques to solve it, but could not find the solution. Dataframe is the below: name n geometry langs <chr> <int> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to locate a class or view for component when change the components folder path from views/com.. to views/admin/com.. of Laravel using breeze getting the error Unable to locate a class or view for component [auth-session-status] I want to change the folder path of the components and layout to under the admin f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JOIN column with substring index value i have two different table, one of the table contains substring value separate by comma (,) i would like join the value to another table. Table campaign id name area 1 campaign 1 1,2,3 2 promo 3,4 Tabel area id name 1 Indonesia 2 Sin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Show text when a dropdown option is selected ejs works only for index 0 I render an HTML page using ejs. The problem I face right now is that I have aloops in ejs that contain select options, and I show different texts on change, but it only works for the first element; for other elements, it doesn't show text on ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Land cover classification is displayed incorrectly i wanted to do a land cover classification. The script has no errors, but the map is displayed incorrectly. Instead of the different classifications being displayed, I see the map only in black (unknown)this Images shows how it looks now, this is how it should look ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to iterate over vector of pyclass objects in rust? I am using maturin and I am trying to implement the method get_car() for my class. But using the following code use pyo3::prelude::*; #[pyclass] struct Car { name: String, } #[pyclass] struct Garage { cars: Vec<Car>, } #[pymethods] impl Garage { f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: FullCanlendar upgrade v3 to v6 I am new to FullCalendar. Our application already using FullCalendar v3 in salesforce. I have seen documentation looks like V6 version is having diiferent method than the v3. like getView() method method not exists. Can any guide me how to implement v6? Thank you, Sonal G var view = $(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Symfony 3.4 returns plain text header with JSON response I'm working on a project using Symfony 3.4 and sometimes when I make a request that should return only JSON, I get a response with an HTTP header that looks like plain text. Here's an example response: ""HTTP/1.1 200 OKDate: Wed, 01 Mar 2023 07:51:05 GMT Serve...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React Jest Test Example I have the following code to display a list of items using Fluent UI DetailsList control in React/TypeScript. function App() { const [jobs, setJobs] = useState([]); useEffect(() => { fetch('<api>') .then(response => response.json()) .then(res => setJobs(res)) }, []) r...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: ffmpeg padding doesn't scale when changing resolution I have a ffmpeg command which takes a bunch of audio files, 3 image files, and renders a video with them. Image Input Dimmensions: * *1_front.jpg 600w x 593h *2_back.jpg 600w x 466h *3_cd.jpg 600w x 598h The video has a resolution of w=600 h=593, which is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: No way to print with expo react native to dotmatrix bluetooth? I need to print from android to dot matrix printer via bluetooth. Ive tried most of libraries but I've not succeeded. Do any guys done before printing to dotmatrix with expo before or show me a way ?
{ "language": "en", "url": "https://stackoverflow.com/questions/75624201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tailwind intellisens isn't working with cdn Tailwind intellisens doesn't work in VScode while using tailwind with cdn. Doesn't show suggestions. I tried reinstalling intellisens and I tried npm tailwind installation. A: Try using this type 'npx tailwindcss init' command in terminal. You can see that Config.tailwind...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Play Billing Library 5 How to pass Library response to views in Jetpack Compose I've been developing an Android app using Kotlin and now I'm trying to integrate Play Billing Library into the app. When I open the app, I get a response from the library whether if I have a purchased item or not. If I have a purchased i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why are the hearts in turtle appearing slanted? import turtle t = turtle.Turtle() def heart(x): t.penup() t.goto(x, -100) t.pendown() t.color('black','red') t.begin_fill() t.left(45) t.forward(100) t.circle(50, 180) t.right(90) t.circle(50, 180) t.forward(100) t.end...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: chrome headless (--headless=new) is also used to set the desired window size ("--window-size=1920,1080") WebDriver driver; /* start driver*/ ChromeOptions options = new ChromeOptions(); /* add to chromeoptions*/ options.addArguments("--headless=new"); options.addArguments("--window...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting typescript type to cost to use as a value throwing error in unit test I have a type like this: type Weather = 'sunny' | 'rainy' | 'pleasant'; Now I have a function whose return type is 'Weather', I want this function to always return a valid value within Weather. So I converted the above type to const to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: No matches for kind "HorizontalPodAutoscaler" in version "autoscaling/v2" when installing knative serving I followed the official instruction to installing knative serving on a self-built k8s cluster. But when running the second line kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.9....
{ "language": "en", "url": "https://stackoverflow.com/questions/75624217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does golang-lru Contains documentation talk about eviction I am trying to work with golang-lru package but I am confused about some of the methods. Example - Contains It says Contains checks if a key is in the cache, without updating the recent-ness or deleting it for being stale. AFAIK LRU eviction is based o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to write an unit test for method which doesn't return anything I have a method which is fetching the values from appsetting.json file and assigning to a variables. Here it is not returing anything. So how to write a unit test for such a class and what to assert? Any mocking is required? public void GetConfig() {...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DLL is generated as 0 kb while using NET Reactor Obfuscation I have scene a scenario while obfuscating the DLL files some time it generates as 0(Zero) kb in output folder? As anyone has face the same problem? I'm using https://www.eziriz.com/ .net reactor to obfuscate. I'm expecting the cause of the issue and the so...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Typescript union item sibling property not inferred How is it possible to make typescript return the full correct type for a given element? It does not correctly infer the sibling properties playground const schema = { oneOf: [ { prop1: { prop11: "A", prop12: 12 }, prop2: { prop21: "1" }...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i write a touch screen (HidUsb device) driver for windows? I need to implement something like i have a one CPU which is having two monitors one is normal one and another is touch screen. As windows is provided functionality for mouse is like when i touch the touch screen the mouse from the primary monitor to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pass gradle version into spring application.yaml during build I have gradle.build.kts that is build based on env variable, so I have something like this version = System.getenv("APPLICATION_VERSION") Now, I want to build my Spring application.yaml value of spring.application.version with same thing. So first things...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to pass context from static MainActivity to another Class? I have a Bluetooth App and I'm busy adding runtime permissions with SDK 31. The app ran on SDK 30 but I'm adding the runtime permissions now. I have public static class MainActivity extends AppCompatActivity { and in MainActivity I have the following per...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to declare an import name the same as declared in another constants/variables file I have two files, routes.js and package.ts I want to declare an import name in package.ts by using variable declared in routes.js This is routes.js //object for the whole app routes export default Object.freeze({ packageModule: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CustomUserStore with custom User entity error This is identity and service add i am referecing https://learn.microsoft.com/en-us/aspnet/core/security/authentication/identity-custom-storage-providers?view=aspnetcore-7.0 services.AddIdentity<User, Role>().AddEntityFrameworkStores<CPSContext>().AddDefaultTokenProviders...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Application Shortcut created with Advertise='yes' does not show ICON for the shortcut, but shortcut works fine we have WIX installer script that has been working fine for almost few years now. with recent upgrades to the system running Windows defender, firewall ON, Windows 10, Build: 19044.2673, 21H2 the applicatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: play local file with offset and length I have multiple audio files written into a file in a specific format. And I would like to play the audio files by Offset and ContentLength. How could I achieve it? In Android, specific ways to achieve it are as follows. refer to android MediaPlayer public void setDataSource(Fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding elements to LinkedList fluently in Java I'm lookig for a way (ideally only with Java SDK classes) to inline adding elements to a LinkedList in Java, to convert LinkedList<String> linkedList = new LinkedList<>(); linkedList.add("b"); linkedList.addAll(List.of("c", "d")); linkedList.addFirst("a"); linkedList.ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why i can't off error bubling in Symfony form? Can't off error bubling in Symfony form when i render form field Mine one of a customs child types for example: class PassportNumberType extends AbstractType implements DataMapperInterface { /** * @inheritDoc */ public function buildForm(FormBuilderInt...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Return value from code statement in Frends process without assigning variable In a Frends process, sometimes I just want to pipe the result of one C# statement into the next element, just like how tasks work, and I'd rather not pollute the scope with a variable that will only be used once. I tried keeping "Assign va...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: In gmail signin popup, the default content not displying I have integrated google signin in my application, and i submitted privacy policy and terms of ervice links in google console.sign in with gmail account is working fine. but the bottom content is not displaying expecting output: To continue, Google will share ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to grouping age and create new table by age range in Python please bear with me as this is my first time ask a question. I have table users with columns users_id age 0001_a 17 0002_a 18 0003_a 22 0004_a 25 0005_a 40 0006_a 18 0007_a 55 0008_a 41 0009_a 32 0010_a 18 0011_a 43 0012_a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Github Actions how to block merging other pull requests till master pipeline finished Basically I am trying to automate bumping up version in master pipeline. Master pipeline should preform checks after merging pull request, bump up version and commit/push new version and tag to repository. But if two developers mer...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use a custom function to update a column in a Pandas group by object which has a sequential records Requesting guidance for using right function for a data frame which is grouped by a column. Objectives as- 1)Use custom function to update a fresh empty column created in original data frame 2) The index need to main...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are the main differences between Inertia's useForm() and axios requests? I know Inertia useForm() rerenders the components after successfull form submission. And, in the Inertia docs it says it "very similar to handling classic HTML form submissions". I am building an SPA with Laravel10-breeze-vue, and I need t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access JSON Data using URL, Header Prefix, and Access Key I have been given URL and Authorization e.g. URL: “https://xxxx.com/_xxx/xxx/_all” Authorization: “Header xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” How can I use GET API to get the Response JSON using Javascript and React.js. A: Try this code: fetch("https://xxxx.com/...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Trying to create a grid of widgets with scrollbars in python and tkinter I am so confused (as you can see from my code which is currently a hodge-podge from various sources). I am trying to have a scrollable grid of widgets (currently tk.Entry's) that fill the frame when it is enlarged. Currently I only am trying ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to read and enhance contrast of 32bit .tiff image using opencv2 in python coding? As I tried to code the opencv2 to read the tiff image file, It show up OpenCV TIFF: TIFFRGBAImageOK: Sorry, can not handle images with 32-bit samples I should expect that the opencv will read the file and process it with enhance ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loading an DLL (write in C++) in C# not working and without error In my C# program I want to import a DLL written in C/C++. With an little DLL (just 3 function) it's work. But when I want to integrate my entire code it's not working. More specifically, the DLL loads but does not finish loadin, so I don't call the im...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Leetcode time limit exceded in 167. Two Sum II - Input Array Is Sorted actually I am a newbie in LeetCode but want to ask the reason why my code is not working? Here its my code where is my fault i thought that ıt was flawless before submitted. class Solution { public int[] twoSum(int[] numbers, int target) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How can i span my table cell to different rows? I'm trying to implement this table that has the table header on the left side of the table, and the cell with the label header spans to multiple rows as long as the data label falls under the same header. Here's my very noob implementation... labels.map((label, index) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a c# design pattern for chaining producer/consumer? this is my first ever post on Stack Overflow. I am trying to create a C# console application that handles web requests which essentially consists of three steps: * *Read input lines from a file (which can have a length of several million lines). *Each l...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to remove previous matplotlib scatter with mouse clicking I want make just one new scatter and delete previous scatter on the fig But i can't the method to remove previous scatter,so the number of scatter is increased when i click mouse i make to remain one scatter when i click the left button of mouse here is m...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot connect to Interactive Brokers Trading Workstation via Python API I'm trying to connect to the Interactive Broker's TWS via the Python API using this simple code: from ibapi.client import EClient from ibapi.wrapper import EWrapper class App(EWrapper, EClient): def __init__(self): EClient.__init_...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fix this problem ModuleNotFoundError: No module named 'urllib2'? I have a problem, at first had an issue with my libraries for using googletrans. then made a fix by using following open googletrans.py and put print(translation.encode(encoding)) and saved. The problem was not gone but produce another issue wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Javascript Regex validation - only allow 6 digits including one decimal point I am trying to make regex for input field validation which allows 6 digits number optionally includes one decimal point. such as below. 1234 -> true 123456 -> true 123.45 -> true 12.345 -> true 1.2345 -> true 12.3456 -> false 123.456 -> fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: What are the values in the backquotes structs for? When I learned Golang today, I found some things I didn't understand in the code. Here are some sample: type man struct { Name string `<- What is this ->` Age string `<- There is no error ->` } I searched on the Internet for the ```` in struct, and it said...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Best way to wrap multiple CSS to single CSS I want to merge these two CSS. What are the possible ways to do this .home .site-content .content-area{width: 100%;} .archive.category .site-content .content-area{width: 100%;} These two line of CSS should me merged in a single line. A: Use :is() It's pure css with MDN d...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Azure Function - Python Hi guys I am fairly new to Azure. I have a basic question , I am trying to create a Azure function using Python. Can I develop it directly on Azure Portal, or is it necessary to develop it using VS code and then deploy it to Azure function. A: Can I develop it directly on Azure Portal, or i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to propagate info (variable value change) from a makefile child rule to a parent rule (i.e., up the dependency graph)? I'm trying to change a Makefile variable in a rule and have the new value be available globally. The use case I have is to convey that a child rule was triggered up to its parent rule(s) so that...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python Pandas write "\\" to csv I need to consumed data from Kafka then write some columns value to csv file, Then I meet data with value contains "some text \\". I want to use that as a raw value, but python make it become "some text \", How to handle that double backslash like we use print(r"some text \\") to prin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: OpenAI GPT-3 API errors: 'text' does not exist TS(2339) & 'prompt' does not exist on type 'CreateChatCompletion' TS(2345) import openai from "./zggpt"; const query = async (prompt:string, chatId:string, model:string) => { const res= await openai .createChatCompletion({ model, prompt, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert and add a date while quering through to SQL via python Querying to sql connection through Python, but receiving below error. However the same code worked when connecting via excel > to azure sql Code: DF=pd.read_sql('SELECT CONVERT(VARCHAR(MAX), candidate,2) AS candidate,CONVERT(datetime,'01-'+Month,2...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to let the bitmap captured by DXGI AcquireNextFrame skip cursor in IDD driver? In the IDD UMDF driver, how to let the bitmap captured by DXGI AcquireNextFrame skip cursor? When running Microsoft's IddDriverSample, DXGI can capture the screen picture, but there contains cursor in the picture. I want to get cursor...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I write a LINQ query to get data dynamically based on user input So I have a frontend where a user can select a table where he wants to pull data from , along with a field that he wants to display on the frontend (image for reference below) How would I be able to actually pull the appropriate fields data fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I open a session stored in local cache into a new window? This is my script which works correctly to save the sessionID key/value into local storage. function saveSession() { // get document name var userInput = $('#docName').val(); // check if document name is valid if (userInput === "") { alert...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to handle dynamically generated javascript elements on button click I am trying to create a task lists of employee management system using table and rows. I have created static html row and also implemented Jquery-UI calendar in that which is working perfectly fine. I can copy paste that static html row the cale...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Appollo Server - Intercepting resolvers to get resolution time of each? (Typescript) I have 25 resolvers and instead of writing a logger in each of them I would want to use some kind of interceptor to record time of each of them. I want to pass in plugins as shown below: plugins: [ { { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET Core Publish Task Slow after upgrading blazor project to .Net 7 Azure Pipeline '.Net Core Publish' task too slow after upgrading the project to Dot Net 7. It just took less than 8 min before, using Dot Net6. After the upgrade to dot net 7 it takes more than 50 min and most of the times it fails if it doesnt com...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I found written code of different models in Matlab I am looking for liquid desiccant dehumidification models to get idea how to write code in MATALB. I tried a code to run a model in MATALB but it is not working
{ "language": "en", "url": "https://stackoverflow.com/questions/75624319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Connecting to Guacamole Client without showing token in url Currently, I am first getting the authToken from api/tokens end point. The changing the window location to https://{guacServer}/#client/{connectionId}?token={authToken}. But now I want to pass the token as a header as in this PR(https://github.com/apache/g...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Printer on Ubuntu server 22.04? enter image description here enter image description here enter image description here printing from windows and printing from linux desktop and from local test printing it's the same. How do I fix it?
{ "language": "en", "url": "https://stackoverflow.com/questions/75624321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Change dynamically the event callback parameter of a Blazor component I have a Blazor component that can take various parameters, including an EventCallback. The code below will work, but I cannot change the callback: <ModalDialog Title="@_dialogTitle" Message="@_dialogMessage" Layout="@_di...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Please Help Me To Solve Multiple Input through Scanner Class Problem in Java public static void main(String[] args){ Scanner sc = new Scanner(System.in); Hotel[] l = new Hotel[4]; for(int i = 0; i<4; i++){ int a = sc.nextInt(); // sc.nextLine(); String b = sc.nextLine(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: vectorize a comparison operation between of rows of a dataframe with multiindex columns I have a dataframe with multindex columns and time series data. I want to create a new set of columns where the value of a cell in that column is a boolean dependent on whether some other column of that row is identical value to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Fix pre login handshake in Visual Studio C# .NET Maui database connecting to SQL Server {Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 31 - Encryption(ssl/tls) h...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Client mounting works only after rebooting the NFS server on CentOS That's the real problem.. Right after rebooting the NFS server on the client works such commands like mount -a, mount -t nfs 192.168.33.2:/home /home and showmount -e 192.168.33.2, automatic mounting with rebooting doesn't work at all, my fstab: 192...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why can an async method with return type ValueTask await a regular Task without generating a compiler error? The following code does not compile public ValueTask Foo() { return Task.Delay(1000); } but yields an Error CS0029: Cannot implicitly convert type 'System.Threading.Tasks.Task' to 'System.Threading.Tasks...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Re-rendered segment above Summary online demo 13.2.1 github Structure of demo files app │ globals.css │ layout.module.scss │ layout.tsx │ page.tsx │ └───static - segment is cached, because in the static\layout.tsx file the option dynamic=force-static │ layout.tsx │ page.tsx │ └───dynami...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set max height of sibling to to rest of siblings I have a unique requirement because I'm using a react library to generate the table. I removed JSX and replicated the same issue using HTML and CSS. If you look at below code snippet you can see in some places I have defined display CSS property with table-row,...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Azure API management policy: Unable to check if a parameter exists or not in request body I am having a control flow where I am specifying policy that will check if location property exists in request body, if exists I am sending the request with<send-request> here is my code: <set-variable name="location-id" value=...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PyTorch model not releasing peak memory after computation I am using SentenceTransformers library to get a text embedding of a given text. I do inference on one of the pre-trained models from the library, and use the embedding vector for further computations. When the model is doing inference, there is a spike in me...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I get the details of an sms from the sms package using Telephony.Sms.getDefaultSmsPackage(getApplicationContext()) passed to an intent? I trying to get the details of an sms including it's body the sender and couple of other details I can get from the sms but I have to do this from the sms app such that when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unknown CMake command "qt_standard_project_setup" on Raspberry Pi I am trying to get Qt6 working on my Raspberry Pi 4 B 2GB. It's running Ubuntu 22.04. I installed all necessary packages with qt6-base-dev and any dependent packages (build-essential, cmake and so on) But I can't get QT to work with it. I keep getting...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to test @login_required view in django I've a django view which has @login_required decorator then it renders html file with context and I'm trying test it's function whether the context is in response @login_required def my_view(request): #code goes here context={'name':name} return render(request, hom...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I was testing something for my code, as I wanted to remove all the numbers before the decimal in an int k = '22.33' k = list(k) print(k) len(k) for i in range(len(k)): if(i != 1): k.pop(i) with this code it says pop index out of range, but when an item is popped from k, the length of k decreased so how can t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Tensorflow TypeError: Exception encountered when calling layer "lambda_1" (type Lambda) I am trying to build a OC-CNN, but when I try to load my model, it meets error def get_model(train=True): pre_process = Lambda(preprocess_input) vgg = VGG16(weights = 'imagenet', include_top = False) vgg = Model(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Form Submit button not working while implementing if statement logic **I'm trying to implement submit button logic with a simple empty strings input validation, but after clicking the button the whole window gets epty. While conforming to the if statement one block needs to be displayed. https://codesandbox.io/s/int...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Git pre-commit hook in Xcode 14 source control I have a small issue with git pre-commit hooks. I have pre-commit setup to read config from swiftlint and swiftformat from my current repository, which works fine until I'm on iTerm or terminal. So, when I stage files and run pre-commit it starts linting and formatting ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: fastest way to match the values retrieved by SELECT with elements in Array (Oracle PLSQL) I have the table my_table that may looks like: +----+--------------------+ | id | some_other_columns | +====+====================+ | 2 | data_2 | +----+--------------------+ | 4 | data_4 | +----+------...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Gtkmm 3 ComboBoxText how to disable options? I have been trying several ways to get this done, but I am stuck, I can access the model, but I cannot access the view part to set the option disabled with set_sensitive I cannot find any example or documentation that mention how to do this. I have a comboboxtext object i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do i get rid of this border thing ; I think there is some collision between the theme and the tkinter module The border outside the button and entry label This is the code that i wrote A: Usually borders are caused by a borderwidth. It seems you have this property set on your components. You could try to set th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to split coin to transfer Sui Here is what I'm trying: public entry fun purchase_nft( marketplace: &mut Marketplace, item_id: ID, coin: Coin<SUI>, ctx: &mut TxContext ) { let sender = tx_context::sender(ctx); let listing = dynamic_object_field::borrow_mut<ID, L...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Routing issue - URL rewriting middleware I am trying to configure my asp.net core web application for this routing. For example, when the URL request is www.xyx.com, it will be routed to www.xyx.com/admin/abc. This works. But when I click other pages, it goes to www.xyx.com/page1 instead of www.xyx.com/admin/abc/pag...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to write a lambda function that update dynamoDB? I have my lambda function as follow: const AWS = require('aws-sdk'); const dynamodb = new AWS.DynamoDB.DocumentClient({region: 'us-east-2'}); exports.handler = async (event) => { const phone=event.phoneNumber; const amount=event.amountChange; const u...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get only list of IDs from MongoDB using springboot? @Query(value="{ 'studentsList.$id': ?0 }", fields="{'$id': 1}") List<Subject> findAllByStudentID(ObjectId studentId); I am trying to find a way to make this work. I know it currently returns the object with just the "id" field filled in, but I would like it...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why imagemagick mogrify command not found and how to solve this? I'm trying to write automation service that gets all images exclude .jpg from the current directory (or selected files), convert them to .jpg by imagemagick mogrify and delete old images. script: mogrify -format jpg *.* && find . -type f ! -name "*.jp...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Nginx: install dynamic module on the server My nginx version is nginx/1.18.0 (Ubuntu). I want to install a dynamic module on the server https://www.nginx.com/resources/wiki/modules/headers_more/. The official documentation states: "Grab the nginx source code from nginx.org, for example, the version 1.17.8 (see nginx...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extra Information on the VSCode Terminal I am using the PuLP module to solve Linear Programming problems. My code works on idle's shell as it need to be. But in VSCode terminal it gives many extra unnecesary information. Is there any way i can fix it? and here is the complete code. from pulp import* TYPES = ["wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Hash passwords in md5 with symfony 6.2 I'm currently working on a project that aims to move from a heavy Java application to a web application with Symfony. The objective is to start from an existing database and not to modify it at all. In this database, the password is hashed with md5. After several weeks of troub...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to click on button on travel website I have successfully launched MMT but after checking fares when I want to click on "Book" button it is giving errors as element not present I have tries xpath, class and id locators but still the same issue also applied the wait statement and tried presently in chrome brows...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Form focus on custom element when required hidden field is not filled I have a form with a hidden required input element. I will be setting the value of this input through javascript based on some other computations. If the value is empty and the form submits, I want the .focusable div to be focused instead. Try rem...
{ "language": "en", "url": "https://stackoverflow.com/questions/75624384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }