text
string
meta
dict
Q: I'm trying to deploy a django site on a hosting. But I don't have SSH access. Are there any other options to do this? Я пытаюсь задеплоить сайт на джанго на хостинг. Но у меня нет доступа к SSH. Есть какие нибудь другие способы это сделать? How to deploy django project on host without usinng SSH? Я пытался через wsg...
{ "language": "ru", "url": "https://stackoverflow.com/questions/75631380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Error in WinBugs: array index is greater than array upper bound for na I have an error in my WINBUGS code and I'm not sure how to fix it. In the "Model Specification" step, the model is syntatically correct. After loading my data and trying to hit the compile button, I got this error: array index is greater than arr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I locate files with glob lib in Python and print them Please tell me what is wrong here, I've been digging the internet over 3 days and can't find the solution. import pandas as pd import os import glob folder_name = input("Please insert the folder name to locate databases: ") diskD = glob.glob("D:/*/{folder...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Vscode jupyter notebook requires ipykernel When I try to "debug" cell of jupyter notebook opened in vscode, I get following message: Ipykernel setup required for this feature When I click on current kernel button (red boxed below), it show me following available kernels: Note that the current kernel correspond to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: LEFT JOIN generating the wrong SUM I am trying to do a simple join of two different tables stock_tracker_max and tbl_shipment_data_final. However, one of the SUMs I get post join is completely wrong. Query 1: SELECT a.Stock_Tracker ,SUM(a.Qty_Invoiced) as Qty_Invoiced ,SUM(a.Qty_Received) as Qty_Received FROM `s...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular - Re-Trigger router guard I have an angular app. There I have a route ('home') protected by a routeGuard. I locally save the username and hash(password) if the user has signed in once and on app load I fetch them and initiate the signin process, which is a server call and takes some time. Now if I reopen the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wordpress Action "update_user_meta" reading and updating Im trying to create an action when a user meta value is updated, swap the values. but nothing is happening, any ideay why ? function my_checkout_update_user_meta( $user_id ) { if(pll_current_language() == 'he') { $first_name_input = isset($_PO...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trying to import excel xls file into stata but keep getting an error import excel Miles driven.xls using required r(100); How do i fix this?
{ "language": "en", "url": "https://stackoverflow.com/questions/75631391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How can I solve this issue, The argument type 'MaterialApp Function()' can't be assigned error I am using ScreenUtilInit and this error is occurred, The argument type 'MaterialApp Function()' can't be assigned to the parameter type 'Widget Function(BuildContext, Widget?)', This is the flutter code segment, and how ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: trying to install avif library python i'm trying to install avif library and appear this in my console. `PS C:\Users\s\OneDrive\Escritorio\apis> pip install avif Collecting avif Using cached avif-0.5.0.tar.gz (12 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metad...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does time_starttransfer is higher than the total_time? The times measured by Curl look confusing - I am always seeing that APPCONNECT_TIME is higher than even TOTAL_TIME. I also expect APPCONNECT_TIME being less than STARTRANSFER_TIME because the latter measures when the first byte is received while APPCONNECT_T...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: No suitable method found for thenReturn I am new to java and mockito, trying to mock my //kinesisClient is of type KinesisAsyncClient PutRecordResponse result = kinesisClient.putRecord(putRecordRequest).get(); like below: KinesisAsyncClient kinesisClient = mock(KinesisAsyncClient.class); PutRecordResult res = mock(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Undefined function .intelephense(1010) enter image description here Undefined function .intelephense(1010)
{ "language": "en", "url": "https://stackoverflow.com/questions/75631405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Fast way to find max number of consecutive 1-bits in million-bit numbers For example, 123456789 in binary is 111010110111100110100010101. The max number of consecutive 1-bits is 4. I got interested in solving that efficiently for very large numbers (million bits or even more). I came up with this: def onebits(n): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ESP32 in HomeKit "cmake" must be available on the PATH to use idf.py I wanted to use my ESP32 Cam as camera in Homekit. I found an interesting project which works without bridge, but I have trouble to get it to work. I did in the Terminal on a Mac with MacOS Ventura: cd /Users/<user>/Desktop/Skripte/Mikrocontroller/...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with a compilation C++ code via Visual Studio Code I have one problem. I have made a program with count all goods from the input.txt like: 18 25 2 - (18$, 25 cents, 2 products of the selected category) Program consists of 3 files - main.cpp, Price.cpp and Price.h I compiles normally in online-compilers, but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: If using all scalar values, you must pass an index [Google Cloud Plateform] PLS HELP when i run this code on google cloud plateform it generate error while running on jupyter and on windown python it work please help might there little mistake in code symbol_CCXT = 'BTC/USDT:USDT' leverage = 0.3 SMA_ST = 3 SMA_LT = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: why does my crystal report builder in VS 2022 look like this. things are all cut off enter image description here Why is each section trimmed and cut off like this
{ "language": "en", "url": "https://stackoverflow.com/questions/75631417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mpirun, Python, and task mapping I have to use two tools together in a SLURM system with many cores, in a Python wrapper. * *The first one is complex and cannot be changed. It is spawn in Python directly, and uses task per node used, and each task uses as many CPUs as there are in each node. Example: 4 nodes of 20...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: System.ArgumentException index 140 Im working with a webapi and when I run it locally, I get the weird error below. There is nothing different with this setup than another webapi I've been using locally, same local sqlserver, etc. Whats really odd is, I assume index 140 would be char 140. HOWEVER, if I modify the li...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set a global variable that can be accessed between components? https://i.stack.imgur.com/mx3mN.png Heres a picture of the structure of the project In login.component.html I have code to obtain the username via user input from a standard login screen: Login.component.html <form [formGroup]="loginForm" #n...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trying to retrieve array from django QueryDict I want to transfer an array from an Inertia form array to django. In the debug window it's shown as test[0] = 1, test[1] = 2. Neither calling request.POST.get("test") nor request.POST.getlist("test") nor request.POST.getlist("test[]") returns me a usable list. My form o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set formula with condition query in SQL Server invoice ProdId Price amount result 1 1 10 2 20.2 1 2 20 1 20.2 1 3 10 2 20.2 2 1 10 1 10 2 2 20 2 20 How to query if an invoice has only prodID = 1 or 2 then price * Amount else price * amount + 1%. A: If the invoice just needs to have either...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create a list of single-entry dictionaries where each group by a given column contributes a value from a 2nd column for all but 1st row which is key I have a pandas dataframe that looks like this: header1 header2 First row1 Second row2 Third row1 Fourth row2 Fifth row1 I want to create a list of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Can't get correct output when an equation has multiple arguments The assignment calls for a calculator that understands squared numbers. To simplify the notation, a squared number is represented as X^ where X is the number you want to square. The whole thing accepts multiple equations. For example, if the user ent...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python str vs unicode on Windows, Python 2.7, why does 'á' become '\xa0' Background I'm using a Windows machine. I know Python 2.* is not supported anymore, but I'm still learning Python 2.7.16. I also have Python 3.7.1. I know in Python 3.* "unicode was renamed to str" I use Git Bash as my main shell. I read this q...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Recommendations for reliable platforms to get data on specific Ethereum tokens I have been searching for a platform or API to obtain accurate data on specific Ethereum tokens that are relatively unknown. Specifically, I am looking for data on market cap, price, and 24-hour volume. Unfortunately, platforms like CoinG...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP - Check if a file is new in the directory My goal is to check if any new csv file has been added to a directory and add that as a log to the db. I tried the below code: <?php $path = "manifests/*.csv"; $latest_ctime = 0; $latest_filename = ''; $files = glob($path); foreach ($files as $file) { if (is_file($...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Delete all set variables postgresql dbeaver I have a lot of variables, which i create in pgsql request like @set variable=x. I need to delete all variables i have so that the system don t remember any. And each time i run the code it used only variables, setted in this script I could not find how to do it. Tried to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to programmatically check if logscale is set in gnuplot? For some special plotting routines with different templates it would be helpful to know whether logscale x or y is set or not, and based on that the script might continue differently. Attempt 1: There are e.g. the gnuplot variables GPVAL_X_LOG and GPVAL_Y_...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prevent onClick (using ENTER) on a button after overlay shown I have a button and when I click, its shown an overlay with width 100%, height 100% and position: absolute. The problem is that, after I click the button to show the overlay, I can press enter and the overlay will show again (2x times). I need to prevent ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use Multiple/Wildcard hosttype in Azure Application Gateway for various API endpoints I have configured Azure application gateway for a Front End (FE) Web App and an API Web App (Backend) Both the app services are private endpoint enabled and VNET integrated The FE web app is working fine But the API app or t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the output of the current PHP? <?php echo 'Hello'; echo 'World': $e = // Get the output of the page. echo $e; // 'HelloWorld' should be printed. ?> I want to get all the output of the current page and print it as a variable. For example, I printed 'Hello' and 'World' respectively. How can I get the con...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Session cookie is being dropped, but for only one link on one page I maintain an e-commerce shopping site (or "cart") for an external client. They have their own separate web site on their own server on a different domain. Their site links to our cart, opening it in a new tab or window (with target="_blank" in the l...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I Create a Vertical Arrow with Text Annotation with Dynamic Text Positioning in Konva? I'm trying to draw some geometric shapes in the user interface via Konva and react-konva. One basic element is a vertical arrow with annotated text to show the dimension of a shape, as shown below: It's created by the foll...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Kubernetes Pod Cannot Resolve Service by Name I am new to kubernetes and I am having trouble with my deployment. I have a local k8s cluster (minikube) running 2 Pods (rabbitMQ and a python microservice that needs to connect to rabbitMQ). I have created a Service for RMQ but I cannot get the microservice to be able t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Preserving multi-line string as is when round-triping in ruamel Suppose I have a file like so test: long: "This is a sample text across two lines." When I load the file and dump it back with no changes to the file, it changes this document into test: long: "This is a sample text\ \ across two li...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add domain name in DHCP offer packet with scapy? I have written a DHCP server code in python using Scapy that can sniff discovery messages and send an appropriate offer message with an IP for a client. I tried to insert another option in the packet regarding the DNS server IP, but it doesn't show up no matter...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Access files on connected Mac from app running on iPhone Is there a way to access the local file system on a Mac from a iPhone connected via USB? eg An app using the Camera saves photos to the local file-system (The Mac connected via a USB cable). The app could be running in XCode?
{ "language": "en", "url": "https://stackoverflow.com/questions/75631457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: SwiftUI adding animation to pages in TabView i'm developing an app using swiftUI and i ran into some problems. Im trying to add an animation which will change scale and opacity as i'm dragging scrolling through pages in TabView which has PageTabViewStyle style. So as soon as the offset is changing when I'm dragging ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python WebScraper w/ BeautifulSoup: Not Scraping All Pages I'm a brand new coder who was tasked (by my company) with making a web scraper for eBay, to assist the CFO in finding inventory items when we need them. I've got it developed to scrape from multiple pages, but when the Pandas DataFrame loads, the number of r...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Oracle 4 weeks running average - missing values must imply 0 I am trying to create a 4 week running average of data, and then pivot it for a pivot table report. I am basically porting a spreadsheet-as-a-DB and it's reports and I am just starting to realize how sloppy and forgiving excel is. The goal is to take the r...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I compile .net app that uses bond in docker? I'm trying to make a CD for library that uses bond - it compiles perfectly localy but it seems like I can't compile it in a docker image - I'm getting error from below, it suggest that I need to install bond tools - I can't find image that would have them installe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: try to fix the div by using flex I have a page where I cannot full css but I can share the image as to how it is showing now, I have the HTML like this .thumbnail .pricetag .spiral { position: absolute; top: -19px; left: 10px; background: url(../img/spiral.png) no-repeat right 0; height: 50px; width: 3...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: constexpr instances of class that usually have non-constexpr behavior in the destructor, in C++20 I would like to be able to create constexpr values for a type that usually has a non-trivial destructor. Unfortunately, I'm using C++20, so don't have if consteval. Here is a minimal working example that is accepted b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I prevent MathJax equations from overlapping with dropdown menus in Bootstrap 5.2? I'm building a website using Bootstrap 5.2 that includes MathJax equations and dropdown menus in the navbar. However, the MathJax equations are overlapping with the dropdown menus, making it difficult to use the menus. I've tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to Find Lookup Values in Multiple Tables in Power Query Hi I am trying to apply lookup on a table to find corresponding values from another table. But since there are null values I want to apply another lookup using a different column in the main table and finding those values in a different lookup table. Though...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: ZSH with OhMyZsh cycle through history when there is no match Issue * *I am using ohmyzsh with no changes. Here is my .zshrc file (comments removed for brevity): export ZSH="$HOME/.oh-my-zsh" ZSH_THEME="robbyrussell" plugins=(git) source $ZSH/oh-my-zsh.sh * *When I use the UP arrow key with a blank terminal...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: gdb doesn't support DWARF 5 macro sections? #include <stdio.h> #define A "hello world\n" void main() { printf(A); } $ gcc -gdwarf-4 -g3 a.c \ && gdb -ex 'set confirm off' \ -ex 'break main' \ -ex 'run' \ -ex 'p A' \ -ex q \ a.out ... Breakpoint 1, main () at a.c:5 5 prin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flexibly set floating point number precision at compile time I have a C++ program that can be compiled for single or double precision floating point numbers. Similar as explained here (Switching between float and double precision at compile time), I have a header file which defines: typedef double dtype or: typedef ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Swift Get color at point in CAGradientLayer I am trying to get the colour of a point along a CAGradientLayer, the function I am using below works on a view with a solid background colour, but when using on a gradient, it returns the incorrect result. extension UIView { func colorOfPointView(point: CGPoint) -> CGColo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I query AWS S3 bucket for N last modified objects using the REST API? Using the Rest API (not CLI), How do I query an AWS S3 bucket for N last modified objects?
{ "language": "en", "url": "https://stackoverflow.com/questions/75631487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add `mat-checkboxes` column to `mat-table` with dynamic columns I'm struggling to add a new column with mat-checkboxes to my mat-table, including a mat-checkbox in the table's header for selecting all items. I added the corresponding code in HTML, but I'm not sure how I should approach the matter in the TypeScript f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Open xml-files in python I have 100 xml-files and I want parse them in python Example of files: <?xml version="1.0" <?xml version="1.0" encoding="UTF-8"?> <api version="3.2"> <peoplecount> <entry id="1" name="" userid=""> <count datetime="2022.07.11 14:16:20" realin="0" realout="1" realpass="0" queuetime="0" /> <co...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to bin the sum of a decision variable in Pyomo I am currently working on an optimization project implemented in pyomo in which I need to calculate the sum of the decision variable and bin the result. for example suppose x = decision variable$ at time t = 0, constraint.skip at time t = 1, if sum(x0) >= 1$, then ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to properly extend user model in Django I am working on a Django employee management system, I want the employee bio data on the same table as the user object used for registration and login I tried adding the user model as a OnetoOneField on the employee table, but I don’t like having to register the user and t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: YouTube API - get most watched videos for a given week I'm wondering if it is possible to use YouTube's API to find the most viewed videos each week. Ideally, the request would also yield the subscriber count from the channel that hosts the video as well as the language. Is this possible? A: I don't think it's poss...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PySerial Unable to read output from APC220 I am trying to get a PySerial program to read data from an APC220 connected to an Arduino. The APC220 is receiving data from the Arduino; I can see it on the serial monitor, but the Python program cannot read it. The code takes the a number sent from the Arduino and calcula...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I add data labels to surface and ribbon plots in plotly.js I am trying to plot measurement data by using plotly.js. As data should resemble a 3 dimensional item, I was looking for a 3D plot and found the ribbon plot to be quite suitable. Untortunately, unlike in the 2D plots in plotly, a lot of functions like...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Informatica: How to filter a table based on aggregation result of another table? In Informatica, how to filter a table based on the aggregation result of another table? Given the following 2 tables: Table_1: SomeText VARCHAR, SomeDate DATE Table_2: SomeDate_2 DATE, OutputDate_2 DATE and the following aggregation (in...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I want the object to move in different directions I can't figure out how to make the object move first from right to left, and then as soon as it got to the left side, it immediately started moving in the other direction var tm; var cars; var cx; var gameBegin; function go() { if(gameBegin==1) return; gameB...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spring boot - method 'POST' is not supported (multipart/form-data) I'm trying to send through multipart/form-data a post request from my products controller, where I upload a file of images and information of my product in json @RestController @CrossOrigin(origins = "*", maxAge = 3600) @RequestMapping("/product") ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Decoding XMP data read using python from .lrcat I'm reading .lrcat data using a python script and sqlite3. I have a column in the Adobe_AdditionalMetadata table called xmp with an odd encoding, probably an Adobe Lightroom encoding. Here's my chunk of code: from libxmp import XMPFiles cursor = conn.execute('SELECT x...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with NaN value in first column, pandas I have dummy CSV data like below: Salesman_id;Name;Surname 105;Ann;Alstonn 121;Abaziel;XYZ 148;Fenoftale;Ina 151;Stefan;Merro 151;Stefan;Merro I can't imagine why i have nan in Salesm_id. Why isn't it 4.00 like in Name and Surname column? +--------+-------------+------...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting zero record in user meta data in wordpress I am trying to get user list with specifice role and who is register between two date. I tried But getting zero record (**it has record in database **)in result. $meta_query = array('relation' => 'AND'); if(isset($_GET['interviewr'])) { $interviewr = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JSON.parse changing number values to null Parsing a string JSON object nullifies numbers that are in nested arrays. I'm parsing a string JSON object in javascript. The string: (throw it into https://jsonformatter.org/json-pretty-print if you want, but its pretty simple) {"teams":[["Roman Bravo-Young (PSU)","vito Aru...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Access Violation from R2R (ready-to-run) assembly when using GetTypes() from a thread in Net Core (Net7) I am in a thread where I am using AssemblyLoadContext.Default.Assemblies to retrieve the loaded assemblies and call GetTypes() on them. In the list of assemblies there is also PresentationFramework which turns t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Accessing S3 object with NodeJS longtime front-end dev trying to pick up some back-end stack. I'm taking a course through Coursera on using NodeJS with AWS. The first assignment had us set up some IAM policies/users, upload a JSON object to S3, and then attempt to load and console.log the contents of that object u...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jackson parse array with both anonymous and named field I would like to parse the following json string using Jackson ObjectMapper: ["EVENT","event-id",{"content":"{}","created_at":1677781808,"tags":[["t","tag1"]]}] I was trying the following model class: @JsonFormat(shape= JsonFormat.Shape.ARRAY) public class Even...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting a local CSV File to an array I am trying to convert a local CSV file to an array. I found a package called csv-to-array that is supposed to convert the CSV file to a JSON array. When I try to iterate through it and add values, nothing happens and x remains at 0. But I tried outputting the values of array....
{ "language": "en", "url": "https://stackoverflow.com/questions/75631528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React native navigation "TypeError: Cannot convert undefined value to object" I am trying to create a drawer using react native navigation but I am getting the error "TypeError: Cannot convert undefined value to object". I haven't been able to find exactly where the problem comes from. App.js import { NavigationC...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Emulator Wifi Connected with No Internet I know this question has appeared multiple times on SO, but NONE of the answers helped, here's a list of what I've tried before: * *restarting the IDE *invalidating the caches / rebuilding project *wiping data & cold booting the emulator *changing the gate and IP...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Retain data types after concatenating pandas dataframes The data type for the last column for all the dataframes is "object". The remaining columns of the mut dataframe is binary, whereas the remaining columns of the other dataframes are float. In my code below, the resulting dataframe df_scaled has "object" data ty...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MUI Autocomplete's container expands on multiple values I am trying to use Material UI's Autocomplete, but having trouble controlling it's behavior. So basically when there is more than one selected value the component overflows on Y-axes if being focused because it's container has explicit width. I would like it t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In Power BI, is there a view or other way to show a single record as a list of key value pairs? In Power BI, is there a view or other way to show a single record as a list of key value pairs? I'd like to list out the values of single record/row. Its column headings would be in the first column and the values in the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL - Create multiple columns for fill rates based on conditions, with GROUP BY Some example data: CREATE TABLE #TempTable ( ID varchar(10), GroupCD varchar(10), SurrogateKEY1 varchar(10), SurrogateKEY2 varchar(10) ) INSERT INTO #TempTable (ID, GroupCD, SurrogateKEY1, SurrogateKEY2) VALUES ('1', 'UNK', '1234...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android studio location permission issue I made an android application. I have problem when starting the app because of location permission, when app start I put function to get device location. The problem is sometime when we click "Yes" on the permission it crashed on the first time. It still get the location and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to interact with third-party programs using python? How to run a specific process of a third-party program using python? Suppose I want to create software for cleaning computer memory using third-party programs, what are the options for implementing this idea? I am already aware of RPA, but this approach to the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: PM2 processes were disappeared from Ubuntu with no server restart I was developing a Flask service on an Ubuntu 22.04 server. To run it in the production mode, I used waitress as the web server, and PM2 as the daemonizer tool. It was OK for a while, and unfortunately, after two weeks I realized that the Flask app is...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to deploy a Multi-Page React App in cPanel? I have a Multi-Page React App. I saw a few tutorials on YouTube that were showing the same thing: * *Add homepage in package.json *Run npm run build *Upload the content of /build folder to cPanel (in /public_html) My question is: Do I have to do something else for...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to Read correctly accents characters on pandas dataframe? I'm trying to read a csv file from a opendata public institution website, but when i tried to read it, it is not possible with 'utf-8' encodin; so i tried with others like 'ascii', 'ISO-8859-1' or 'latin1'. With these i'm able to read it, but it doesn't r...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the root element of the current instance of a Livewire component? According to the official Livewire docs on inline scripts, it's possible to get the current instance of a Livewire component inside the inline scripts of their views by using @this directive. As the documentation points out, Note: the @thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Strange date/time protocol, need help solving I'm trying to reverse engineer the data sent from a very old temperature/humidity device and decode the date/time and other data from serial communication. This are some of the older registers of the device: 1997 table and this are more recent registers, device is out o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why Can I pull the same (public) docker image from 1 machine, but not from another? Very simply: I am trying to pull the same docker image from 2 different machines: One is on an AWS virt (where I first encountered the problem) and the second is from a test box I have at home. The image, which might matter, is actua...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Excel to new Outlook Contact: correct data but not reading in I’ve written the below script. Its job is to take a (well-formatted) Excel file and, row by row, create new Contacts in Outlook. Am running Windows 11 with everything recently updated (this morning, actually). Within PowerShell (run as Administrator), the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: monitor azure functions from rest api I need to monitor and control the functions in an azure functions app, from outside of azure portal. I'm looking for a way to extract a list of functions, their execution history, their schedule and status. Is there a rest API that can give me that information? or can I get it i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regarding the np.gradient routine I am trying to understand np.gradient() routine for 2D arrays. In the example provided in the documentation, we have: dx = 2. y = [1., 1.5, 3.5] np.gradient(np.array([[1, 2, 6], [3, 4, 5]], dtype=float), dx, y) which gives [array([[ 1. , 1. , -0.5], [ 1. , 1. , -0.5]]), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there anyway to activate 'venv' on Pycharm? **Hello i'm using pycharm for Django on windows and when i use this code .\venv\Scripts\activate system shows me this error this is my error what should i do to activating my virtual enviroment ** i just try this code .\venv\Scripts\activate A: It has nothing to do wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why won't SQL Server table update without auto increment column? (SQL, C#, Windows Forms, Visual Studio) Unless a column has its Identity Specification (Is Identity) property = true my table will not update. Why? I am trying to make the primary key a 5-digit unique ID number that I can append myself with values from...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Setting expireAfterSeconds on index for ttl not working in documentDb 4.0 I am trying to make an exclusive lock semaphore using mongoose on a documentDb collection document. The index and document gets created alright, however the document never expire. I've tried turning createdAt into a string and set it to an ISO...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to conditionally add properties to an object that was initialized already, without typing it? Suppose the following: const person = { name: 'George', age: 30, hobbies: ['art', 'gaming'], }; if (1 + 1 === 2) { person.position = 'Sales Clerk'; // error here } I can fix this as follows: type TPerson = { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create dropdown list of all the sheets in a google workbook I hope someone can point me in the right direction. I want to use google scripts to compare contents of 2 google sheets (one master and one with weekly information). I would like the script to pop-up a dialog box with a dropdown control containing all the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: swap one female name in-between two male name I tried to swap one female name in between two male names Input Id Name Sal Gender 1 AA 2000 M 2 BB 1500 M 3 CC 3000 F expected output could be Id Name Sal Gender 1 AA 2000 M 3 CC 3000 F 2 BB 1500 M A: One opti...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I get the "versioning of blobs" setting for a storage account via Azure Python SDK or REST API I want to be able to programmatically find out if versioning of blobs is enabled on a storage account. Via the web console I can see this in Data Protection -> Tracking. I cannot find any reference to how to get (o...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: FFMPeg command to combine images with audio and then add background music So, I have a series of corresponding image and audio files "0.mp3", "0.png", "1.mp3", "1.png", etc... I want to have it so the image shows for the duration of the audio file. I also want music to play in the background. The command will also e...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get an if and elif statement to open a different screen based on the conditions i've set? So I am trying to make a space simulation for younger ages and there are 3 separate difficulties based on the user's age. If the user is aged 7-9, the easy difficulty should be presented to them. If the user is aged 10...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Configuring Vuforia's Magic Leap 2 Sample Scene 10.13.3 to work with the Magic Leap Simulator (within Unity) So I have imported Vuforia's Magic Leap 2 Sample into Unity and have double-checked the build settings between according to what has been posted on their development page. When I go to test the build in Unity...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: set flex base height to another elemet I have designed a chat page. I have used a long line next to all the chats to style it, but there is a problem. css style: .inner-chat { flex-basis: 75%; position: relative; overflow-y: auto; } .inner-chat::after { content: ''; position: absolute; background: #BDBD...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pairwise product on a Python List (or numpy array) I have a list of numbers (floats) (with the list size typically being greater than 20k) and need to find the pairwise product of each of those. For example if I have 10 numbers, I need an output of 45 numbers in a list with the output being these 45 numbers. A nest...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I set up MathJax to work with angular (throughout the entire project, and not just a specific component)? I have some asciimath text on my angular page and would like any asciimath, delimited by backticks `` to i.e.: sum_(i=1)^n i^3=((n(n+1))/2)^2 in these backticks, should be picked up by the MathJax librar...
{ "language": "en", "url": "https://stackoverflow.com/questions/75631580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }