text
string
meta
dict
Q: how to solve "make *** no targets specified and no makefile found. stop" in seperate compilation I use Mac vscode to do separate compilation for my C++ program. I opened the makefile and opened terminal under makefile. Then I input make, and it gives me a warning saying that "make: *** No targets specified and no ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Entity Framework Core: how to sum across groups after groupby I have a GroupBy method and subsequent sum for each group. I would like then to take the sum across groups, but none of 10000 examples I looked at show how to do it. Let _context.BookSales .GroupBy(f => new {f.date, f.author, f.revenue, f.tax }) .Wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to mock requests.Session.get using unittest module? I want to mock app.requests.Session.get from test_app.py to return a mocked requests.Response object with a 404 status_code to generate an InvalidPlayerIdException. However, no exception is raised as seen from the below output. Is it because I'm using with clau...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to test recording audio and video while video call streaming in WebRTC using puppeteer? when I created the record audio and video while video call streaming using WebRTC, it worked I think I need to test through automated testing using a puppeteer for the runtime to background testing, so I've created the puppet...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When page switches error occur: System.NullReferenceException: „Object reference not set to an instance of an object.” I want my program to switch between two pages every 15 seconds, when switching from MainWindow to Czas its working, but when it has to switch other way, error: System.NullReferenceException: „Object...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Compare Date in Data Studio I am a newbie in Data Studio. I want to filter 2 different Date: Current Year and Base Year which is Base Year less than Current Year for comparing period. For example: * *Current Year = 2023, Base Year = 2022 or 2021,... *Current Year = 2020, Base Year = 2019 or 2018,... Could you pl...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: React JS: Is it possible to use a helper function without importing it? Can I define a function globally in one file (e.g. helper.js somewhere) to use this function without importing it in every component file? A: As @nicholas-tower said : You could put it on the window object, but i'd recommend using imports unle...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the best and fastest way to send DNS queries to millions of IP addresses and store the responses? I have a text file with around 16 million IP addresses, and another text file with a list of domain names that I need to query. I want to send DNS queries to each IP address for each domain and store the response...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-6" }
Q: Gradle toolchain resolver plugin doesn't download jdk17 for a spring boot 3 project It seems spring boot gradle plugin version 3.x is not working with the toolchain resolver plugin under jdk8. This simple build.gradle: plugins { id 'java' id 'org.springframework.boot' version '3.0.3' id 'io.spring.depend...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UITableView - is there a way to create cells in advance to prevent UI thread from being blocked when height is calculated? I have to display fairly long NSAttributedString in cells of UITableVIew. I am not allowed to split the NSAttributedString in pieces as I need to be able select and highlight text. Problem is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Cloudformation YAML file to take script parameter as input I am not sure whether I can utilise the parameter value as below. where am I going wrong? #!/usr/bin/env bash $stack_name="IAM-IA-Account" $username=$1 aws cloudformation create-stack --stack-name $stack_name --parameters ParameterKey=Username,ParameterVal...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Map XML list / XML elements with different attribute values to separate fields I have an XML file that looks like this: XML file: <foobar name="quux"> <supplement key="head">this is a text row</supplement> <supplement key="body">this is some other text row</supplement> </foobar> I would like to have <supple...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: All images are drawn except the last one canvas I'm trying to display a blackjack table using NodeJS and Canvas. I'm drawing the images of all players and all the cards. The problem is that the image of the last card is not rendered, but the code does execute at that point and the coordinates of the card are correct...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Playwright converts to Capitalized api keys values to simple I'm sending a post request using playwright const response = await request.post(path,{ headers: { 'Accept': apiHeaders().ACCEPT, 'Content-Type': apiHeaders().CONTENT_TYPE, 'X-OO-SERVLET-TOKEN': apiHeaders().X_OO_SERVLET_TOKEN }, data: JSON.stringify(orderD...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The best way to create child process from C++ program for an external python tool and communicates with each other? It's not worth developing an editor tool using C++. So I plan to invoke the editor written by python. What I need is to let the parent process (the C++ program) react to the file changing or saving in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to change the snapshot mechanism from cow(copy on write) to row(redirect on write) in Ceph system? In the ceph system, the snapshot mechanism uses COW by default, but this mechanism has write amplification when writing data, that is, one read and two write, which affects performance. Now I want to use the ROW me...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to subtract or add different set amounts across multiple cells by referencing another cell So basically im trying to add or subtract various set amounts from a stock list from entering one number ie 1 pallet = 5 apples 10 bananas 6 oranges and 2 pears, so when i enter 1 pallet it automatically adds or subtracts ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using MySQL CONVERT_TZ in django ORM I am using the CONVERT_TZ MySQL function to convert datetime saved into the database into other timezone while running query. But I want to do the same thing with Django ORM due to performance issues with the next steps. Below is the code I am doing. boarding_stations = StationPo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make a Coding Software Reader/Translator? How do i make a "Reader/Translator" For code so for example instead of typing: getServer().getConsoleSender().sendMessage(ChatColor.AQUA+"Base:Activated"); The user will type: Console.Print(Color.AQUA+"Base:Activated"); It might be good to mention that The "Code" is f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: fetching data from mongodb and assign it in a specific order I am creating a leaderboard in reactJS, I am uploading user records by a XLSX format file and then I am fetching the data from DB. I am using a "DateRangePicker" from "react-date-range" package through which I am fetching data in date-wise format, in this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: refactor age imputation How can I refactor the following code to make sure it easier to read and better using a function. Can reproduce code and data frames used using GitHub https://github.com/hamidpat/titanic posted csv used on my github. import numpy as np import pandas as pd train_df = pd.read_csv("train_df.cs...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JQuery to override div element I have my snippet here Two questions on that : * *I have challenge in overriding the element when a selection is clicked, the Apexchart loaded is flashed only. Trying this codes but seems don't help. $('#inventoryChart').empty() inventoryAll.render(); Please advise. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Solved | Fedora : Changed password with tty but can't use it in GUI TLDR : The title says it all Hello everyone, I recently changed my session password on fedora (through gnome settings) because it was the last password that was used in multiple places. For some reason my password manager didn't save it so I lost th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: display the current select of a form on the website I have a form with lots of select fields. I want to display the the choice of the current user on the page: This is an example of a select field: <select name="message[jungfrau-f4]"> <option selected disabled">Stückzahl</option> <option value="jungfrau-f4: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Obfuscated Flutter app, exception and stack are in text format or they are a binary? I want to send errors/exceptions of an obfuscated Flutter app to a server to record incidents. They are text variables (to deobfuscate with, for example, "flutter symbolize -i -d /out/android/app.android-arm64.symbols") or somethin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: having multiple websites in one ga4 account Is it possible to have one GA4 account and push multiple websites / brands into that one GA property and then separate them by event parameters or a unique identifiers? we have also purchased another company and were also hoping to do the same thing Some structure like the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to save data into Postgresql I need to create a postgresql for save the user_created_name into the database. def save_it(): conn = psycopg2.connect( host = "localhost", database = "learning_app", user = "postgres", port = "5432", password = "", ) # Create a cursor c = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When sending AWS SES emails using a node serverless lamda environment, an endpoint request timeout error can occur When sending AWS SES emails using a node serverless lamda environment, an endpoint request timeout error can occur When I run this code locally it's working fine but when I upload code in lamda and try ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I am johns , i ve got problem about Laravel 9 enter image description here how to fixe it bros, please help me enter image description here
{ "language": "en", "url": "https://stackoverflow.com/questions/75625376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-7" }
Q: sql query to get the status of scorm completion i have to get the status of completion of the scrom package by students and i wrote a code that is displaying only the completed and incomplete students data, but i also want those students who are enrolled but not attempted the thing, help me. This is my query: select...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to merge collection data in PLSQL I wan to merge the collection data that I got separately Example CREATE TYPE VARCHAR_NTT AS TABLE OF VARCHAR2(50 CHAR); select * FROM( (with test_data1 as ( select '1' as ID, 'AAA' as NAME, VARCHAR_NTT('AAA') as SUB from dual union all select '2', 'BBB', VARCHAR_NTT('AAA'...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Resolve subfolder to a file in webpack fallback I want to import a widgets from a module A as import SomeWidget from '@modules/A/widgets/SomeWidget'; However, my app has multiple "themes" and some themes might not use the module A, so I want to resolve the path to the widget to a file that exports an "empty" widget...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Restating Windows in Diagnostic startup mode while keeping Remote desktop After switching from "Normal Startup" to "Diagnostic Startup" in "System Configuration" (msconfig), which services must I re-enable to be able to connect to the PC via Remote Desktop after rebooting?
{ "language": "en", "url": "https://stackoverflow.com/questions/75625384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google KSM does not sign RSA PKCP v1.5 through OpenSSL / PKCS#11 with "mechanism 0xd is not permitted for key" We are trying to setup a mTLS connection using a private key that is generated and stored in a HSM. We are using Google KMS for the HSM part. Our application is a nodejs app that uses axios to make requests...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: addResourceHandlers cannot handle Exception when I have another Interceptor when I request normal url and throw a exception,my GloablExceptionHandler can handle it. but when I request resource url /static/upload/ ,and i have no permission, GloablExceptionHandler cannot handle it just throw it on my IDEA console, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing ethernet port connected to android phone I am trying to build an app for modbus tcp/ip client on my android device. I've attached a USB to ethernet port converter and I'm trying to communicate through my laptop as a server. I'm not able to connect to the network with the error saying: java.net.ConnectionEx...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Filter rows that contain exact strings in a column I need to filter rows from df that contain air as a stand-alone word in a column library(dplyr) df <- data.frame(x = c(13, 34, 5, 124, 56), y = c('air transport', 'hairdressing', 'airport', 'repair', 'frontend')) This gives me rows that partially c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I fix _TypeError in Flutter? I have a trivial map like this: Map _datiMap = box.get("exc") ?? {}; when it runs: _datiMap.addAll({"${DateFormat("y-MM-dd", "${AppLocalizations.of(context)!.codice}").format(_giornoSelezionato)}" : "${_oreProgrammateGiornoAttuale! + 1}"}); throws this error: type '_Map<dynam...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: GKE Dashboard using Cloud Operations I have a GKE cluster that has Cloud Monitoring for System enabled. I can use the dashboard that GCP provided that has information such as existing namespaces, nodes or existing pods. You can see it on the screenshot. How can I export such information to the BigQuery or how to im...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Moving local server into the cloud I currently have a number of websites I work on locally, off a physical server, they are all built in PHP, using phpMyAdmin running off XAMPP. I assign them a name in the hosts file and access them like http://websitename:8080. What I would like to do is move them all into the clou...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to apply validation for image resolution on click of button that "choose file of recommended resolution" I have <input type= file and a button to update that file 0n server. I want a function in which on click of a button it will validate an uploaded file resolution (width and height) A: function validateImageF...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to run Flutter application on iOS emulator? im trying to run the app on iOS emulator . the error I get is this : Xcode's output: Writing result bundle at path: /var/folders/s3/16z94fvx7sb0gsfm3rngxrtc0000gn/T/flutter_tools.c8pxkF/flutter_ios_build_temp_dirCqRXDZ/temporar y_xcresult_bundle ../../Flutter...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to can i set a margin in a python list to select an item based on its % I am currently working on the code where i can select a number of items from a certain list. Let's say i have a list: PD: ['cell-phone:', '76%', '65%', 'bottle:', '89%', '48%', 'person:', '78%', 'mouse:', '44%'] As you can see in total there...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PowerBI slicer with datetime with between style i`m currently switching from Tableau to PowerBI, but am encoutering some problems. In Tablaue i`m using a datetime slicer like this: As I found out after some searching this is not possible in PowerBI, except other styles which i don`t want to use. Power Pi just selec...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to import LESS local class in other LESS file? File src/common/a.less: .borderA { border: 1px solid red; } File src/common/b.less: @import aa from "~@src/common/a"; .parent { :local(aa.borderA) { border: 1px solid blue; } } html: <div class="src-common-a__parent"> <!-- want to render this .bord...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I set multiple roles in the keycloak.protect()? I'm using keycloak.protect('user') in nodejs (keycloak-connect lib) for my APIs to allow only user role and it works. How could I add multiple roles in the keycloak.protect()? I tried with the keycloak.protect(['user','admin']) but it allows anyone with a valid...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot Pass the Float from component to vue I struggle a lot from this topic. I want to pass variable tmp_sell from AllProductsChoose component into QuoteAdd, the variable tmp_sell is really in component AllProductsChoose but when I try to pass the float, it only gives me 0? Here is the component (Click Here and wil...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: escape double quotes inside double quotes i am trying to run below command inside a grovvy script, how ever i am getting below error: please help illegal string body character after dollar sign; solution: either escape a literal dollar sign "\$5" or bracket the value expression "${5}" @ line 10, column 192. mage-dep...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: vb.net 2022 alterate events after a Designer modify I'm a newer in vb.net and with vb.net 2022 (project: Windows Form App) when I change something in a form Design sometimes all object's event are recreated and the old are not more linked to object. For example I add a label or modify a button and all form's events ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 'Uncaught Error: Actions must be plain objects. Use custom middleware for async actions' error in Redux-toolkit calculatorSlice code calculatorSlice.js const initialState = { display: 0, currentOperand: null, previousOperand: null, currentOperator: null }; export const calculatorSlice = createSlice({ name...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Readings from Sensor.TYPE_ACCELEROMETER and Sensor.TYPE_MAGNETIC_FIELD is wrong on real device, but not on emulator? I'm trying to read the azimuth value off my device. This is done by the following code: val accelerometerReading = FloatArray(3) val magnetometerReading = FloatArray(3) val rotationMatrix = FloatArray...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: django dev to deployment ssh root@my_server_ip Created a new user with following comman: adduser djangoadmin usermod -aG sudo djangoadmin Add SSH key for new user cd /home/djangoadmin mkdir .ssh cd .ssh nano authorized_keys Paste the key and hit "ctrl-x", hit "y" to save and "enter" to exit But when i Login as new u...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Build prod build for NextJs - (Static) automatically rendered as static HTML (uses no initial props) Trying to create prod build with npm run build but it outputs to info - Creating an optimized production build info - Compiled successfully info - Collecting page data info - Generating static pages (5/5) info -...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Ajax call attached to HTML form submission behaves strangely, gets borked without an event.preventDefault() call I have a very strange problem. There is this Ajax call that is attached to the submit button of a form. When the form is submitted, the Ajax function gets called and does some checking in the backi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add placeholder in date picker field using css Below is my css code: div.hs-dateinput .hs-input{ background: url(../../static/icons/calendar-grey.svg) no-repeat; background-size: 2rem 2rem; min-height: 44px; } Currently all other placeholder are coming from Hubspot but for date picker fie...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What does this error partial write: max-series-per-database limit exceeded means I'm trying to deploy build but facing this below mentioned error {"error":"partial write: max-series-per-database limit exceeded: (1000000) dropped=1"} The code fails to deploy while running into dev environment. In order to cross check...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to solved : [Errno 107] Transport endpoint is not connected: '/content/gdrive/MyDrive/Colab Notebooks/superpixels/MNIST.pkl' I am still confused about how to solve this program error, even though the accessed file is already in the directory DATASET_NAME = 'MNIST' dataset = LoadData(DATASET_NAME) # 54s trainset,...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to make POST-request when get 2 fields (in string and integer representation) coming within same field from models.py I need to make POST-request through the Postman for url http://127.0.0.1:8000/api/v1/posts/1/comments/ The same field from models.py file I'd like either to do in POST output as a string and i...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Count total quantity on hand in item field Need a body field in Inventory Item form to display the Total item quantity on hand from various locations. i tried formulas but not working properly
{ "language": "en", "url": "https://stackoverflow.com/questions/75625458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Elasticsearch-java-api how to build script tag query conditions { "query": { "script_score": { "query": { "match_all": {} }, "script": { "source": "cosineSimilarity(params.feature, 'feature') + 1.0", "params": { "feature": [ 2.0, 2.0, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sendgrid send email with attachment throw exception in Java I tried to use send grid email facility to send email with attachment in Java but unfortunately the code throw exception NoHttpResponseException. The exception msg is org.apache.http.NoHttpResponseException: api.sendgrid.com failed to respond. I'm using sen...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Not able to redirect container logs to file using subprocess.run I have a python script to start some containers, wait for them to finish execution and then start a few others. I wanted to get the container logs and this bash command worked for me: docker logs -f container-name &> tmp.log & However when I try to ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I access the out-of-bag sample for each tree in a random forest built with LightGBM in Random Forest Mode? Random forest is a bit out of date for most applications, being superseded by Gradient Boosted Trees. However, in some special situations it is still a good choice. One of the advantages of Random Fores...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the name of the network that WifiP2pManager is connected to? I am using WifiP2pManager from Android. Is there a way I can get the name/ssid of the network WifiP2pManager is connected to?
{ "language": "en", "url": "https://stackoverflow.com/questions/75625469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: With DateTime/DateOnly how can I determine 4th day of the month? I want to schedule sending a message with MassTransit and it accepts a DateTime object. How can I say at a given point in time determine the 4th day of the month. I initially thought new DateTime(DateTime.Now.Year, DateTime.Now.Month + 1, 4) could work...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does my switch statement give me a syntax error? I need to get the string variable from the channel in a switch statement. go version go1.19.6 linux/amd64 .\test.go:12:12: syntax error: unexpected :=, expecting : package main import ( "fmt" ) func main() { writeMsgs := make(chan string) go sendMsgs...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Detect pictures with Pillow in python I wanna to create an app that have some pictures of all type of paper moneys. The app must give a paper money picture as an input and tell user how much is that money.However if the input picture isn't a paper money and it's fake, The app must detect it. Important: I have to use...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: C++ boost PP get set difference on 2 sequence? How to get set difference on Boost PP seq by macro function? For example, I have #define FRUIT (apple)(banana)(pear)(orange) #define EAT (banana)(orange) #define REST (apple)(pear) How Could I get boost pp seq: REST?
{ "language": "en", "url": "https://stackoverflow.com/questions/75625483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AWS Rekognition returns InvalidS3ObjectException I've been trying to figure-out what seems wrong with my program. I followed the documentation for aws rekognition->compareFaces(). https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CompareFaces.html the S3->getObject() is working fine, I get the image. B...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Produce high quality GIF with Fluent FFmpeg I'm trying to generate high quality GIF's with Fluent FFmpeg, which is a wrapper for FFmpeg for Nodejs and i'm stuck. What i need to do is add to add palletegen & palleteuse and i found a great example how this can be use directly in FFmpeg here. However, I need help to ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jenkins installation on Windows - All Plugins Fails to Install I am trying to install Jenkins on my windows machine using the build (Index of /war-stable/2.361.1) with JDK 17 preinstalled. At the time of jenkins installations, I see all the plugins fails to install. The error message which I see for all plugins fail...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flutter: filter List> by items in a list I have the following block of code where I am returning a List<Map<String, dynamic>> static Future<List<Map<String, dynamic>>>? getData(String category, List<String> levels, int levelIndex, bool completed) async { List<Map<String, dynamic>> allData = []; try { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: python: adding rows in a dataframe I need to read a dataframe, evaluate a condition based on 2 columns values then create a new line after the current i'm reading and apply the condition on this new one. Here the dataframe: {'MColumn': a b c d 0 201607 1924 1927 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a third party platform where I can host a large image gallery and then embed into my website with an iframe? I have a WordPress website where I am using the Essential Grid plugin for my gallery on one of the pages. The gallery is almost up to over 2000 images, and I have to regularly upload more onto the si...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating directory and extract BLOB inside there in SQL Server I am trying to extract BLOB into file in respected directory. Here is my table looks like : After executing the code it should create all 3 folders inside @outPutPath for each row from the table and create the files inside it. I have working code for ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reading data in batches and updating them in EF core I'm trying to read data in batches, 1k by 1k, until everything is processed. public async IAsyncEnumerable<IEnumerable<MyData>> GetData() { var data = dbContext.MyTable.AsNoTracking().Where(d => d.Status == 2); int totalDataCount = await data.Count...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Updating iOS sdk from delphi 11.3 is very slow When from delphi I try to update the iOS SDK it's very slow (it's take days to finish). * *macOS ventura (in vmware) + xcode 14.2 *delphi Alexandria 11.3 *no antivirus installed *I also try to reinstall macos ventura from scratch (clean install) and xcode 14.2 noth...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add elements in existing array I have an array that shows the amount of service worked minutes for each year. But for some years, there are no service worked minutes recorded. In these cases, I need to add "0 min". Input: const processMinutes = [ '1990', '180min', '1991', '135 min', '1992', '126 mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jolt transformation - array array inside apache nifi my attempts Input : { "results": [ { "group": { "queueId": "fila1", "mediaType": "message1" }, "data": [ { "metric": "oInteracting1", "stats": { "count": 1 }, "trun...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error audio loading when runing Whisper Open AI model The problem im trying to solve is that i cant run Whisper model for some audio, it says something related to audio decoding. payload.wav: Invalid data found when processing input. raise RuntimeError(f"Failed to load audio: {e.stderr.decode()}") from e I tried usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you formally describe your Websocket API? REST and other synchronous API are well defined via OpenAPI specification, and docs&code can be generated with Swagger or other platforms. It is not suited to describe Websockets. This question has already been asked 6 years ago on stack, and i would like to know the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to style Stripe.js custom element like my other bootstrap floating label elements I'd like to style my Stripe.js elements (card number, Cvc, Expiry) with floating labels, to be consistent with my other bootstrap floating labels I'm using ngx-stripe as a wrapper around Stripe.js. I've been able to make them look ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I load NiFi beans into my Reporting task or processor? I'm writing a custom reporting task where I need access to org.apache.nifi.controller.FlowController. The final aim is to get access to ProvenanceRepository with which I'll be able to perform read operations. In short, I need some way to access WriteAhea...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multi-row editing table Flutter I'm Strungling to do a multi row edit on a table in flutter, I found exactly what I need, but it's in JS, I wonder if the is an "easy" way to do the same thing in Flutter My example in js : https://editor.datatables.net/examples/simple/multiRow If someone know how I can start somethin...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove Multiple Users from All AD Groups with PowerShell I am trying to run a Script, which gets all users from a specific OU and the removes all those users from the groups they are apart of. Ive tried multiple things but I just cannot get it right. My Code currently looks like this: $DisabledUser = Get-ADUser...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to have color-bar in spectrogram in angular I have made a spectrogram of an audio file using wavesurfer with spectrogram plugin and colormap in angular. I want to add colorbar to it. Please suggest how to implement that. this.wave = WaveSurfer.create({ container: '#waveform', waveColor: '#5A5A5A'...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does seq_cst order formally guarantee the result in an IRIW litmus test? Consider this example from cppreference #include <thread> #include <atomic> #include <cassert> std::atomic<bool> x = {false}; std::atomic<bool> y = {false}; std::atomic<int> z = {0}; void write_x() { x.store(true, std::memory_order_...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why doesn't the code print out "prime" when i use 'C =1;' but when i dont give any values to 'C ' initially it works perfectly fine? WHEN C = 1; DOESNT SAY 'PRIME' WHEN I ENTER A PRIME NUMBER BUT WORKS WHEN I ENTER A NON PRIME NUMBER. #include <stdio.h> int main() { int a, b, c; printf("Enter the number\n"); scanf("...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-13" }
Q: How can I pass foreman host parameters to ansible vars with foreman inventory plugin? I'm trying to run Ansible playbooks without starting the execution from foreman/satellite, for many reasons (ugly scheduling is one). Instead, I want to use GitLab CI. For this, I'm using the foreman inventory plugin, (theforeman.f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implementing bulk save-and-update of a List with MongoTemplate I'd like to use MongoTemplate to save or update a list of entities in a bulk, meaning that if one element of the list isn't present, I'll be written; and if one element of the list is present, then it should be updated. Record.java @ToString @Builder @Ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: exercise with bash shell and ls command I have to create a shell script that: counts the number of files that have this extension; calculate total file size with this extension; list to the user the names of the (extension-free) les whose size is greater than 1000 bytes; ask the user for confirmation for the removal...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to reduce app size of android app made using react-native I have made an app by integrating react native into existing android app. It's size is increasing by 5 MB as compared to previous app(without integrating React-Native). I followed all the steps mentioned in answers of this SO ques :How to reduce Android A...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: *How to Change the Data into Properties File Using Jenkins I want to change application.property file data. Inject environment variables plugin install and also mention application.property file path but further i don't know how to do and what value should be add in "Property content". My application.property file: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it safe to use Activity.Current from multiple parallel tasks on the same thread? When trying to implement W3C tracing which makes use of variables, such as e.g. Activity.Current.SpanId, the following question came up. The official documentation for the static property Activity.Current says: Gets or sets the curr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: allow CORS policy i want to delete data via ajax, i use PHP for render interface and odoo fro backend service, i am using CURL for get API, but i have problem in CORS policy like thisenter image description here this is my , ajax code $(document).on('click', '#delete_data', function(){ var id = $(this).data("id"...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Terraform Unreadable module directory I have a terraform configuration as: trying to use the service account in main.tf as ################# General Settings ################################# provider "google" { project = var.project_id region = var.project_region } module "serivce_account" { source = "./se...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Different outcomes by Python IDLE and VS Code python interpreter On executing the following code in Python IDLE It just works as intended try: number = int(input("Enter the number: ")) except ValueError: print("Sorry i didnt understand that.") continue if number < 623: pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Azure logic app extract 2nd line from body I have a body message body which contains an important service name in the body of the message which is plain text. I need to extract that whole line into a new field. how can this be achieved in Azure logic app. Sample data %%% DB-Service-Name Line1 Line2 I only need to e...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does BigQuery allow mulitple-table joins with a SQL `with` clause? Does BigQuery allow mulitple-table joins with a SQL with clause? Example: WITH t1 as (select tab1, tab2 from t1 group by 1,2), t2 as ( select tab1, tab2, tab3, from t2 group by 1,2,3) t3 as ( select tab1, tab2, from t3 group by 1,2,3) I can make th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to prevent duplication using stored procedure in mysql? I have a table with 2 columns. Shown below: ID Data 1 A 1 B 2 C 3 D 3 D I'm trying to create a stored procedure to Update the table. Each ID can have more than 1 data but however the data must be different. ID 1 can have the both data A ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75625545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }