text
string
meta
dict
Q: P-value calculation using simulation Suppose that we would like to test whether the average miles-per-gallon of a car is equal to 22. Then H0: mu = 22 vs H1: mu =/= 22. And suppose that the observed mean from the sample (observed test statistic, x_bar) is 20.09. I would like to calculate a p-value using simulation. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: error: invalid conversion from 'int' to 'wifi_mode_t' [-fpermissive] I am porting a sprinkler sw (opensprinkler) from esp8266 to esp32on Arduino IDE. While doing the compile got this error. In file included from C:\opensprinkler\nueva_version\mainArduino\espconnect.h:38, from C:\opensprinkler\nueva_version\mainArdui...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implement server-sent events functionality in firebase functions I am tring to implement server-sent events functionality in a firebase function where it will continuously send back data to the client side while the function is executing rather than sending back data when the function completes. Everything Iv'e trie...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Issue redirecting stdout to file on Windows when coming from Python's subprocess.Popen() I have a python program running on windows that writes a .bat file and then executes it using subprocess.Popen(): sp = subprocess.Popen(os.path.join(my_dir, script_name), env=environ, stderr=subprocess.PIPE) Now in this .bat fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Issue with MathML Rendering of matrix like formulas in Chrome for both on Mac and Android devices I am using MathML rendering in my website using JQMath. Issue only on Mac OS and Android Devices - Not in Windows OS Until now all Mathml formulas are rendering Correclty but after recent update in webkit browsers the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Having trouble with the borrow checker Please help me understand what I'm doing wrong, I'm a new coder and also new to rust. I'm messing around with the code to figure things out and I keep running into issues trying to get this to work. // Silence some warnings so they don't distract from the exercise. // #![allow(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Transparent layer in tkInter I'm trying to create a transparent layer on top of the whole screen and display pointer position. This is what I'm playing with: #!/usr/bin/python3 import tkinter as tk from tkinter import ttk def hover( root, lb): x,y = root.winfo_pointerxy() lb['text'] = f"X={x}\nY={y}" lb.place...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problems with converting tkinter input to int in Python I am making a chatroom using tkinter and sockets in Python. However, when I try to convert my entry into a integer, it doesn't cast. import socket from tkinter import * import tkinter as tk HEADER = 64 FORMAT = 'utf-8' DISCONNECT_MESSAGE = "!DISCONNECT" SERVE...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SwiftUI - Overlapping Navigation bar In multi-controller hierarchy I'm trying to understand why ScrollView inside a multi-controller hierarchy is no longer animating NavigationBar on scrolling. Given that I have the following setup: SwiftUI View: struct SwiftUIView: View { var body: some View { ScrollView { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to wait for a CGContext's drawing operations to be complete? I'm writing a utility that exports MP4 video from a series of black and white images using AVAssetWriter, by suppling frames via an AVAssetWriterInputPixelBufferAdaptor and its associated CVPixelBuffer. I want to add the option to choose a c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I display a "Pause Icon" when user clicks on a playing video in Flutter? I use the following code to show a video to user and give them ability to pause, replay the video: import 'package:flutter/material.dart'; import 'package:video_player/video_player.dart'; class BasicOverlayWidget extends StatelessWidge...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: extract substring between delimiters in redshift I have a string in a column sls_ln_code like below - CNTRY_USA_SLS-1161517-22-12302020_0 CNTRY_USA_SLS-1161517-1234_ACCRUAL_0 I want to extract only the bold portion. I used split_part(sls_ln_cd,'_',3) which worked for the first example but failed for the second. I tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to refactor two React components that share near identical logic? I have two components DateTimeFormField and TimeFormField that I am trying to refactor because both components share almost identical logic and output. One approach that I thought of doing was to maybe export the functions inside the functional co...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does the CPU usage go to 100% after pressing % in SWI-Prolog? I'm very new at Prolog, but am already well aware that the code shown here is not tail-recursive, and therefore not optimal. I'm working my way up to tail-recursion, but have a question in the meantime. I was trying to write a factorial function, and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How determine the week number of a date when there is month overlap? There are a few questions like that, but none that takes in consideration the month overlap. I need to generate weekly Payrolls, and because of that I can't use the normal calendar month range (1-30, 1-31, 1-28, etc) to refer to a given week. The s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Encountered an exception of ffmpeg.wasm can only run one command at a time I want to make a video chat using ffmepg wasm (I know the standard is WebRTC but my assignment is to do this with ffmpeg wasm and a server connecting the 2 clients) and when doing the follow code I am getting ffmpeg.wasm can only run one comm...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio 2022 (Windows) MUAI project does not show iOS simulators Really hoping someone can help me here. I have done my exhaustive best to resolve the following issue. In a nutshell; I do not see any iOS simulators for MAUI projects in VS2022 (Windows). Mac Setup: I can verify that my VS2022 connects to my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is the variable not rendering? I'm fetching some accounts from Metamask and trying to update the state, but for some reason it's not updating unless I reload the page. Is it because of the useEffect I have? const Home: NextPage<IWrapped> = () => { const [provider, setProvider] = useState<ethers.providers.Web3P...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I constrain the height of a Vuetify Expansion Panel such that the panel title doesn't overflow parent? I have an expansion panel that is inside of a div with a set height. Currently, when a panel expands, the open panel pushes all of the other panels to the overflow of the parent div, which makes them invisi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In R, why does map make the wrong plot, but the same code works when I do not map? I want to map a ggplot over a pre-set vector of x variables. The code does generate the plots, but it looks wrong when I use map()--it collapses all the factors into one group. However, this does not happen when I do not use map. Why ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Accessing Active Directory username when using Certification Authentication I'm converting an ASP.NET 4.5 project to ASP.NET Core 7 and having issues using with authentication. It's hosted on Windows Server 2016 not using any Azure services. In ASP.NET 4.5, I used HttpContext.Current.User and it would return the Act...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why don't lazy LINQ Enumerables have a different contract than materialized ones? It feels strange to me that some LINQ predicates that will materialize a collection (running SQL in the Entity framework case), and that materialization changes what is valid code, without changing the compile-time programming contract...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: AV performance - out of my depth - java.lang.NullPointerException: Cannot invoke "java.util.LinkedList.add(Object)" because "this.usedBuffers" is null Newbie here. I'm working on developing an audio-visual live performance and have been using Processing to do this>I'm boot-strapping my knowledge (or lack thereof) as...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to fix 'np.object will be defined as the corresponding NumPy scalar' in Keras I'm working with one of the Deep Learning With Python notebooks (second edition) When I run the following code in cell 1 -- from tensorflow.keras import layers model = keras.Sequential([ layers.Dense(64, activation="relu"), la...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WKURLSchemeHandler and fetch requests with custom scheme I have an application that displays some HTML content with a WKWebView. I'm using a WKURLSchemeHandler attached to the webview configuration to respond to requests for local resources. This works as expected for img tags. I'm able to handle the requests for th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is any copying happening here? As I understand it, you can't return an array from a method because you are actually returning a pointer to data created in the method's scope. There's no guarantee that the data will still be at the address pointed to by that pointer outside the method scope. But it seems to work for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I modify the CSS from a specific element in #shadow-root (open) Example below. How would I change the display of the p in the SR element? #one ?SHADOW-ROOT-QUERY-SELECTOR? p { display: none}; <div> <p>My Website</p> <div id="one"> <!--#shadow-root (open)--> <div id="two"> <div id="thr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why isn't possible to use rebase in such a way that conflicts are only resolved considering the last state of both base and rebased branch? I am puzzled about the inefficiency of rebasing. And after many years I am wondering, why can't this be accomplished? M1 - M2 - M3 - M4 MASTER \ F1 - F2 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to mock interface in Angular test case In my Angular service , I am using an interface to fetch some values. I am writing a test class for that service and want to mock the interface using useClass in Providers section. I get an error 'AppConfigFake only refers to a type, but is being used as a value here.' and...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Excel VBA Sync to OneDrive Server and Graph Api I have the need to do the following process, * *A user on his pc opens a excel workbook and runs a specific macro on this book. *The macro saved a copy of this workbook to a onedrive mapped folder on his local pc. *The macro then must force the onedrive client to u...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Importing Csv File and making Anova Test with 3 Factor I am trying to do Anova Test with 3 factors. I import my CSV file with pandas and used statsmodel for the test. But I have an error like this. "array must not contain infs or NaNs". data = pd.read_csv(r'table.csv') df = pd.DataFrame(data, columns=['Length','Widt...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error using Jest in Expo - SyntaxError: Cannot use import statement outside a module (Firebase imports) I am using Firebase in my Expo app, and when running a Jest test I encounter the error: The error seems to only apply to my Firebase imports. I have attempted the solution here to add "type": "module" to my packa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I have problems, to show the balance of my binance account, using the API for python I was writing a few lines of code in python, to show the balance of my binance account, through its api, but the problem is that when I run the code, it gives me an error that I attach below The error ` C:\xampp\htdocs\PyNance>pytho...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Attempted to index nil with `.Move` on `:GetMouse()` My (Server) script returns the error: Workspace.MachineGun.Server:11: attempt to index nil with 'Move' - Server - Server:11 and Move should be a non nil child of :GetMouse(). Right? local function SetAngle(Part, Mouse) --// Calculate the angle to the players...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pass AuthenticationStateProvider to DataContext I'm using Blazor Server and I need to add audit info to all db records. To accomplish this, I overrode the SaveChanges/SaveChangesAsync to add the audit details public override Task<int> SaveChangesAsync(CancellationToken cancellationToken = default) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cloudfront and ELB problem with redirecting from http to https I have simple stack: EC2, ELB, Route53 and Cloudfront. I would like to enable CachingOptimized in Cache policy howewer I get error in Firefox: The page isn’t redirecting properly Firefox has detected that the server is redirecting the request for this a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Salmon indexing and decoy sequence construction I am trying to quantify the V2 transcript of elmo1 gene from a rna-seq dataset using salmon. I am confused about the decoy sequence construction process. I used the genome.fa file and ran this code: grep "^>" Homo_sapiens.GRCh38.dna.alt.fa | cut -d " " -f1 > decoys.txt...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to select single item (not row) from a tkinter treeview and grid I have this code (which I unabashedly stole from here:https://www.pythontutorial.net/tkinter/tkinter-treeview/): import tkinter as tk from tkinter import ttk from tkinter.messagebox import showinfo root = tk.Tk() root.title('Treeview demo') root.g...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: select all check box for solarwinds webpage I'm looking for a solution to check all in the webpage & i have tried the solutions that are mentioned here Select All checkbox by Javascript or console but in my case i'm using for solarwinds tool to check all the pollers and when i use any of the solution mentioned will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python - How to extract values ​from different list of dictionaries in the rows of the dataframe I have data frame as like df: id features 100 [{'city': 'Rio'}, {'destination': '2'}] 110 [{'city': 'Sao Paulo'}] 135 [{'city': 'Recife'}, {'d...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to unsubscribe RxJs observer when unmounting? I have a redux action observer function, that makes a call to the backend. and if it fails/error, it keeps retrying infinitely. Now what I wanted to do is to kill/unsubscribe the observer when un-mounting. Here is snippet of my code... .pipe( switchMap(() => fetc...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring Batch Application Not Stopping I have configured my spring batch job like below @Bean public Job myJob(Step myStep,JobRepository jobRepository) { return new JobBuilder("sampleJob", jobRepository) .incrementer(new RunIdIncrementer()) .start(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove closest points in Javascript I have two arrays, for example, A and B. A is a master array and B is a child array. A and B both contain centroid points or x and `y' values. I want to remove all the closest points of B from A. For more clarity, for each element of B you find the closest element in A and remove ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Stripe when succes payment get userId (custom Data) I can successfully receive payment in the application , i can see the results in server log and stripe dashboard. What I can't do is I want to use the id of the user who made the payment as a result of the successful payment.I'm using metadata on the checkout side,...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Purchasing: How can I find APIs to integrate that would draw data/ metrics that could translate into useful KPIs and actionable insights? I am working as a purchasing/procurement specialist at a company in the promotional products industry and am looking to find APIs that could help us draw data/metrics to track pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to use DotNetBrowser on winforms ? getting some error a link to the example i'm trying to make using the DotNetBrowser: https://www.c-sharpcorner.com/article/embed-google-maps-in-net-desktop-application/ I used the nuget packager manager browsed for DotNetBrowser.WinForms and installed the version 2.21.0 then cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: How do I install PostgreSQL from Sourcecode successfully without the initdb challenge? Anytime I type "initdb" in the terminal, it says "initdb: command not found", I dont know how to go about it. I have read many blogs and tried the proposed solutions but it still has not worked. A: The steps should be as follows:...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to update Data frame based on specific condition? by dropping not exist directory with Pandas I have dataframe with missing images in images dir that contians labels data with 2 columns (file_name,text) after reading labels.txt file , My working directory look like : $ tree . ├── sample │ ├------- labels.txt ...
{ "language": "hu", "url": "https://stackoverflow.com/questions/75621711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python Curses window flickering Total n00b to working with curses, and I'm a bit confused. I was able to follow demos up until I got to using windows, which seem to only work when they are inside of any kind of loop. However, in the below example each window has a little flickering cursor that leads me to think that...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to transfer cardinality when creating an associative entity? I’m a little confused on how to put in the cardinality after putting the entities in 3rd normal form. Here are the business rules: * *Each DEPARTMRNT has exactly one SUPERVISOR. *A SUPERVISOR is in charge for one and only one DEPARTMENT. *Each DEPA...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does reducing the action space in a multi-armed bandit improve performance? Does reducing the action space in a multi-armed bandit improve performance? Intuitively, it makes sense that it would, but I am tasked with 'proving' it. What measures of performance show improvement? Time horizon of convergence is the main ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How do I get my code to work from a USB on all devices? I use a USB stick to hold all my code for a concept website I'm creating. I have an issue where all my buttons are anchored to go to a G: drive on Windows. But when I use a chromebook I have, it doesn't classify the usb as a G: drive it gets classified as a rem...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How do I make Material-UI Scrollable Tabs act like a carousel and loop back to the beginning once you've scrolled to the end? I'm trying to create a React component that renders scrollable tabs. Material UI already has that functionality built into its "Tabs" component that I can enable simply by setting the variant...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I'm working on pset4 of CS50, but the blur function filters the image into (almost) all red I tried this code to do the "blur" function in pset4 of CS50 course, but it doesn't work in a qay that the output is black and red. I tried to print out avgRed avgBlue and avgGreen and in fact almost every pixel had a lot of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add an alias to a value inside a pivot I'm having trouble creating an Alias within a Pivot based on the values as below. SELECT * FROM ( SELECT trntypeid, trnstatusid, errorcodeid FROM trndatacore WHERE companyid = 374 AND trntypeid = 7 AND trndatetime BETWEEN '2023-01-01' AND '...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Kali Linux: Is there a command to list all available terminal commands? Tried compgen and it doesn't work I'm brand new to Kali linux (installed on a VM about 4 hours ago) and I'm trying to figure out if there is a command in Kali that will display a list of all commands, similar to either the compgen command or the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Converting dataframe to binary values? I have a df that looks like this: > dput(df) structure(list(Person_id = c(123L, 32432L, 34534L, 546L, 567L ), City = c("New York", "LA", "Boston", "New York", "New York" ), Disease_Heart_Failure = c(4L, 0L, 1L, 0L, 8L), Disease_Covid = c(7L, 2L, 1L, 9L, 0L)), class = "data.fra...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React Native backend PUT request for UPDATE post: Granting success message, but not changing in MongoDB collection First off, please forgive the lengthy post. It's only because I'm really at a loss on this one that I wanted to include as much as possible. It's a simple PUT request to update the user's post. I'm gett...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a good way to instantiate temporary tables with Postgres? I would like to save CSV strings in a Postgres table, then turn them into temporary tables for use in Grafana and everywhere else SQL is used when needed. We are starting to extricate ourselves from both Pandas and our semi-proprietary storage system...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding custom errorbars to seaborn FacetGrid acknowledging hue and categorical x order I have a dataset with precomputed means and standard deviations. The values depend on three different categorical values. I would like to create two barplots to split the first categorical variable across them. The other two categ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CSV import fail with pandas I'm trying to import a 500mb csv file using pandas. when I do this: import pandas as pd df = pd.read_csv ('filename.csv') df.head() the result was: Traceback (most recent call last): File "/Users/Filename.py", line 3, in <module> df = pd.read_csv ('/Users/Filename.csv') File "/U...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: is possible to add an img or svg to each selectize option? I've a country list with selectize. But I want to also include the flag of each country before the name of the country. I haven't found any info about this yet. I was wondering if this is possible and how to achieve. I'm using just html css and js with jquer...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Export Contacts from Apple Address Book Database Apple stores Address Book Data in a local sqlite3 databse. I want to export the name and number in a clean and consistent format for all contacts The database is located in: /Users/kellygold/Library/Application\ Support/AddressBook/Sources/<RANDOMSTRING>/AddressBook-...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Android 5.1 (API level 22) Audio Device and routing If you see this image: This is wall mount android audio player. This is multi channel player. in picture you will see 2 vertical channels. Each channel can be routed on either Bluetooth, AUX in or Main Device. It can switch easily. How they have achieved? Below co...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MUI: (Autocomplete) The value provided to Autocomplete is invalid I get this message in the console when I'm trying to load data into an MUI Autocomplete. I'm using react-hook-form and yup to validate my form Image with the warning I created this CodeSandbox with my example. When I click on the edit button, I'd like...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to apply scaler module with groupby in pandas dataframe? I want to scale one column in my dataframe. However, I have different groups within my dataframe. I want to scale within a group. How would I do this? Currently, my code scaled the column in relation to all rows but again, I want this done within a group. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: For Loop Time Complexity Analysis How to encounter Time complexity of such kind of loops? public static void main(String[] args) { int n = 39; for(int i = 0; i<n; i++) { for(int j = 1; i<i*i; i++) { for(int k = 3; k<j; k = k*2) { }...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Toggle for light/dark mode, and 'discount' generator is not working So this is a project for my school work and now that classes are over I'm trying to fix it up to look decent and at least function as I expect it to for a portfolio piece. Here's the HTML <!DOCTYPE html> <html lang="en"> <head> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is there a better, simpler way to implement this feature? My game involves collecting Augments and use it to modify the stats of Snails to create different species of Snails. Currently, my code structure is to have Snail hold a list of Augments. On Start(), it will combine all properties of Augments in that list in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unreal's Lumen File Path (Source Code Path) So I downloaded Unreal's Code from github. I have already read a lot of path tracers (example: Blender's Cycles). I'm really interested in finding out what makes Lumen real time. (I know the basic differences between a Path Tracer and a Ray Tracer - What I want is Lumen's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: By writing a regular expression or a grammar, describe the language accepted by the NFA NFA diagram the strings accepted are aaaaa which is pretty clear. The L = (111 + 1111)* is what I am getting but I need it in regular expression or grammar
{ "language": "en", "url": "https://stackoverflow.com/questions/75621764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is it possible to use nbextension in custom images for SageMaker Studio Notebooks, and how? I'm not asking for help on debugging this particular error, but more for a general answer for Is it possible to use nbextension in custom images for SageMaker Studio Notebooks, and how? As background: I fail on step 2 of the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Security credentials tab not present for the user I am just starting out with AWS. I have a root user and an IAM user. I'm trying to create an access key for my IAM user, but I can't find the security credentials tab as listed here. As you see in the second screenshot, the Security Credentials tab is missing. I ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I know if my RS232 cable is straight or crossover(null modem)? I want to connect two computers using serial cable. how should i do that? I tried to connect them using a serial cable i got and tried to send data from the one computer to the another using serial port monitor tool. but no data received by the a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: AutoRoute (Flutter) -- namespacing widgets w/ same name I'm refactoring a large project to use AutoRoute that has many pages with the same name (just in different directories). Do you have any suggestions on circumventing this without renaming all the classes? Maybe there's a way to separate the router into multip...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why Tensorflow's loss is increased in the presence of more training data Why in the following function, when I pass more initial data set the loss increases? I was expecting the loss function to reach zero faster when more data is present to train with. import { sequential, layers, losses, train, tensor1d, metrics, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to merge two files in Ansible I have a bunch of systems, each system has two servers: database1 server(db1), and database2 server(db2). I created two text files db1_list and db2_list as below: db1_list: db1-env1: 10.8 db1-env2: 10.7 db1-env3: 10.7 db1-env4: 10.8 ... db1-envX: 10.6.2 db2_list: db2-env1: 10.8 db2...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: convert a formula into string in excel i have a big spreadsheet with hundreds of cells and every cell contains a formula. I would like these formulas to be returned as string. For example, if a cell contains this formula countif(A1:50,A1) and this returns a value of 5. What i want is instead of getting the result of...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Opening webpage from inside a script I created a Windows c# script that generates html files, then builds a webpage with links to those html files (reportName contains the path and name of the final webpage). The script is executed from a webpage. After the reportName webpage is created, I want to open the new repor...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What's the difference between urllib and API? I'm trying to access the statics from the websites such as The World Bank and arXiv with python3. The website provided the documentation of APIs, but they were basically internet addresses. Eventually I have to use the package like urllib to access the webpage. But I don...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Gradiant Polys in Here-API Flutter? Does the API for flutter support gradient polylines/polygons? I've looked around the documents and forums but they're mainly related to the javascript API
{ "language": "en", "url": "https://stackoverflow.com/questions/75621795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Autohotkey - how can I detect if the clipboard contains a file? I'd like to use Autohotkey to determine if the clipboard contains a file. I can view text contents of the clipboard withmsgbox %clipboard%, and if I have a file copied in the clipboard then %clipboard% returns the file-path, but it's not possible only f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flink sql : how to find the size of json array I am using flink sql to read data from kafka. One field in kafka message is array, example { "description": "som description", "owner": { "type": "some", "id": "5ff4eb4fed9b4b1288d7993944a8ca23" }, "someArray": [ { "type": "foo", "id": "c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Elasticsearch go client, in Kubernetes (EKS), cannot resolve service name I have a cluster with a client developed in go that needs to write records to an Elastic search index. It will access the Elastic search server (only one server) through a service. I'm not using any operator. The client is running in a pod and...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Module scope and variable garbage collection in Node.js? I'm reviewing some code that exports a function from a Node.js module. The code looks like this const { getClient } = require('...'); let authClient; function getAuthClient() { if (!authClient) { authClient = getClient(); } return client; } mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Modify url via ajax, problem with window.history.pushState() I play around with AJAX-calls on my local server to try different things. One is, as you can guess, modifying the url without page refresh. So far I have following. $('.links').click(function (e) { var targetUrl = $(this).attr('href'); e....
{ "language": "en", "url": "https://stackoverflow.com/questions/75621802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When I click on the checkbox, the task should move to the completed section and be saved there even if the page is reloaded. But is not working When I click on the checkbox, the task should move to the completed section and be saved there even if the page is reloaded. But is not working. import { useState,useEffect ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring MVC - returning DTO in response body for POST Request? I have the following controller POST method that creates a new meeting. @PostMapping("/meetings") ResponseEntity<Object> createMeeting(@RequestBody MeetingDTO meetingDTO) { meetingService.createMeeting(meetingDTO); return ResponseEntity.ok("creat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to obtain a credential from user logged from oauth to, for example, describe instance? I like to obtain authorization from the user logged by oauth. For example if a write a code that describe all instances, the awsuser A could describe only instance A (accoirding to policy in aws for awsuser A). And maybe, the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set up one-to-zero-or-one relationship Given these EF 6 classes: Public Class ClientSurvey Public Property ClientSurveyID As Integer Public Property SurveyTemplateID As Integer Public Overridable Property SurveyTemplate As SurveyTemplate End Class Public Class SurveyTemplate Public Proper...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Phantom leaks with valgrind in C Im writing a simple array. And how i think, do it correct in terms of leaks. But valgrind doesnt think so. Why? That phantom leak just because i do more malloc then free? Code: #include <stdio.h> #include <stdlib.h> #include <string.h> #define CAPACITY_INCREACE(arr) ((int)(arr->capa...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Latest build of a ClickOnce WPF app refuses to activate during a local install on one particular machine Introduction: We have 3 relevant test servers: name OS version .NET CLR TS1 Win7 Pro SP1 6.1.7601.65536 4.5.51209 4.0.30319.34209 TS2 Wsrv2008r2 S...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Case Expression in Group Clause - ELSE "Don't Group" -- create a table CREATE TABLE Jobs ( JobNo int, Entered DATE, Linked int, Status varchar(255) ); -- insert some values INSERT INTO Jobs VALUES (12345,'20211229',11135,'New'), (12345,'20211230',11135,'Cancelled'), (12346,'20221230',NULL,'...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Whats the difference between * and list() in Python? I have noticed that some people use * to turn something into a list. I initially only knew of putting list(x) around the object, but doing *x also seems to work. Are they equivalent? For example, both *Counter(list).values() and list(Counter(list).values()) work f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cores policy stops me from communicating react with springboot I am trying to communicate between my react and spring boot app. I looked at a tone of tutorials to communicate and followed em to the letter. I tried to add cross-origin on the controller, added the proxy to package.json and tried both fetch and Axios. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: unable to update rails 5.2.3 to 6 I have updated my gemfile for rails 6 but everytime I bundle install I get the following error Bundler could not find compatible versions for gem "activerecord": In Gemfile: default_value_for was resolved to 3.1.0, which depends on activerecord (>= 3.2.0, < 6.0) rai...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error Php 8.0 Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given Recently the host provider updated php to 8.0 and in my post the next fatal error appears: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in line 78, This is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to manage python callbacks executed from a C library in a Qt/PySide6 application? Before I describe my particular problem, please check my understanding of how Python works with DLLs in general. I have an existing PySide6 application. When I call QCoreApplication::exec(), a Qt event loop starts running. Eventual...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I use a GPU with Brain.js in Node.js? I am using a lot of data to train an LSTM network, how can I make it use the GPU to speed up the training process?
{ "language": "en", "url": "https://stackoverflow.com/questions/75621820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Script to load JSON file and create a condition to end or continue with the code Hello I call a JSON file with the next code: with open('C:/ftpfiles/itemdatasku.json') as json_file: data = json.load(json_file) What I want to do is create an exception if “list_no” doesn’t exist, or has other information then the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75621822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }