text
string
meta
dict
Q: How to show a grouped legend for the hue in a swarmplot How can I group the colors shown in the picture below? If I show the legend, I see all the single value color. ax1=sns.swarmplot(x='y', y='Fos', data=result, color="k", alpha=0.8, hue="y4", palette="Spectral") plt.title('Y4'); ax1.get_legend().remove() #sns.mov...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to translate nginx rules to htaccess? I am moving a website from nginx to apache server. just need some help to convert nginx rules to htaccess. below is part of 100+ nginx rewrite rules exported from nginx server. #error_page 500 502 503 504 /50x.html; error_page 404 /sitemap.php?act=404; if ($http_host ~* "^...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Finding a number that has the same number of digits as a given number and is smaller and has the same the sum of digit python Find a number, which is smaller than a given number, and has the same amounts of digit as it, and the sum of digits is the same. N = int(input()) sume = 0 lik = [int(x) for x in str(N)] for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Unable to access jarfile C:\..\apache-jmeter-5.5\bin\\..\lib\cmdrunner-2.2.jar I'm trying to create a csv from summary report using the JMeter Command Line Graph Plotting Tool plugin. I'm using this command to run test and generate report in non-gui mode. JMeterPluginsCMD.bat --generate-csv summary-report.csv --inpu...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fetch count of attachments (only) in graph api using java I want to fetch count of attachments in a mail using grapgClient in java. One way is there is fetch AttachmentCollectionPage and then get number. But I want to get count attachment count while I am fetching subject, received. I do not want to download ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to draw bounding boxes using normalized bounding polygon vertices? I am using the localization module of Google Vision API and I am getting normalized vertices as the response. I want to draw bounding boxes over these objects but I am not able to reach a solution. Response returned: Top (confidence: 0.8741532564...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Object Tabs Not Loading in PgAdmin enter image description herePgamin is not showing the tabs and all the options to select an object are disabled , Tried re installing Pgadmin 4 couple of time . New to this IDE pls help
{ "language": "en", "url": "https://stackoverflow.com/questions/75603353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: App installed via MSIX package fails to execute I have a Windows Server 2022 VM that is operated in an enterprise environment, isolated from the internet, but managed by our company. On this VM, I have problems installing MSIX packages. The Windows App Store is non-functional, so I am coping the MSIX packages to the...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Moving Files From Libraries to Output Directory Not working I have a app running on .NET 6. <Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>net6.0-windows</TargetFramework> In this project I have dlls which I wanna copy from libraries folder fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Package body: xlsx_builder_pkg / ORA-06502: number or value error: text buffer too small I use package: xlsx_builder_pkg (export data to excel file from some statement). I added an attachments: * *xlsx_builder_pkg.pkb *xlsx_builder_pkg.pks I try to export all the data from institution table to Excel file with on...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Properly Get/Download and Set/Edit Github Gist Contents in Python? I wrote the following functions to get or set/create the text contents of a Github Gist file with the Python github-gists module. They work, but should I modify how they are written? For example I get a warning about accessing a protected memb...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bash script exercise with file I have this exercise: Create a "groups" BASH shell script, which takes as an argument a groups_file.txt file structured as follows: adm:x:4:syslog,adm1 admins:x:1006:adm2,adm12,manuel ssl-cert:x:122:postgres alan2:x:1009:aceto,salvemini conda:x:1011:giovannelli,galise,aceto,caputo,haym...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mongoose schema method to exclude any field to get in response without changing any api in nodejs? I want to apply the method to all apis linked to the schema. I used schema.methods with view(full) for implementation
{ "language": "en", "url": "https://stackoverflow.com/questions/75603360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the fastest known algorithm for building this string depending on input number? To set up a folder structure dependant on the identifier of an entry in some database (which is an integer greater than zero), I need a function that will break it by digits, and build a string of forward slashes and upper and lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to get parameter value after submit the form in asp.net c# using jQuery I have created two aspx pages{page1.aspx and page2.aspx} with master page {main.master} and I redirected to page2 from page1 with <a> tag button click (in page1) my logic is executing fine but while I'm calling that parameter in page2.aspx u...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to drag the horizontal scrollbar from right to left in Safari on Mac I want to create a simple CSS that produces a horizontally scrolling scrollbar that flows from right to left, but in Safari, it is not possible to grab the scrollbar and move it. overflow-x: scroll; direction: rtl; Is it possible that this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: SQL multiple date checks in a grouping I currently have a table with the following format customer shop order_date Peter Nike 2023-02-02 John Reebok 2021-12-12 Peter Adidas 2022-09-10 Peter Nike 2022-08-12 Peter Nike 2020-10-10 I'd like to create a SELECT query that would result in the following ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert (Shamsi) "text" to Gregorian (Miladi) date in excel? How to convert Persian (Shamsi) "text" to Gregorian (Miladi) date with Function in Excel?for example"14011027" to 17/01/2023 with date format thanks I needed a function that convert text to date o
{ "language": "en", "url": "https://stackoverflow.com/questions/75603372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: React Dynamic class toggle multiple Hello I basically want to toggle multiple div from active to inactive based on id or key. Why cant i do something like this ? <div className={ (activeId === 2? 'activecolumn' : 'inactivecolumn') && 'card middlecolumn mb-10 pt-2 pb-2 pl-2' } id="2" onClick={toggleMiddle.bind(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring boot actuator, numeric value presented in scientific format I enabled actuator but it represents numeric values in a scientific format. How to change this to present it in 'normal' format? { "name" : "jvm.memory.used", "measurements" : [ { "statistic" : "VALUE", "value" : 1.86772584E8 <-------...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to force VolumeParameter() I have a little problem with VolumeParameter<>, the bottom line is, I want to add a new field in the inspector and drag any object into this field, I did so: public VolumeParameter<Transform> test = new (); but can't drag it to this field, also cannot be selected in this window: I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Optimize with Django Rest Framework I'm stuck trying to reduce the time from a call to an endpoint in DRF. The problem occurs when I need an important amount of data from the database (in this case days that corresponds to courses), and the result returns correctly but in a very poor performance. I think the problem...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting a pattern or symbol as NA value in geom_tile I have data i want to visualise using geom_tile. The data deal with references in text data from either Germany or Spain to other European countries. Example data: data<- tribble( ~Ref_country, ~Country, ~Share, "ENG", "DE", 0.27, "ENG", "ES", 0.24, "ESP",...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unordered_mutlimap iterator erase I have the following code #include <iostream> #include <unordered_map> using namespace std; int main() { unordered_multimap<int, int> uomap; typedef unordered_multimap<int, int>::iterator iter; uomap.insert({ 2, 30 }); uomap.insert({ 1, 40 }); uomap.insert({ 3...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Vaadin Flow 23 - Grid. How to select multiple row programmatically? I have list of class "Devices" with attributes: name, ip, username and I am display this list in grid. Now I wolud like to programmatically select one or more objects (row in grid) of class Devices after list of Devices objects are displayed in grid...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: access nested array in addclick function with react I have a this const which contains some arrays and nested arrays: const [value, setValue] = useState({ 'DevOps Project Admins': [""], 'Landing Zone Environments': [{ 'Azure AD Groups for Access Control': [{ "role": "" }] }] }); // Result from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you fix the following statement? "String cannot be converted to CAP#1 where CAP#1 is a fresh-type variable" I am trying to create a choice box offering the user to selcet different titles, i.e. Sir, Madam, Mr, Dr, etc. The platform is JavaFX. my code is cbTitle.getItems().add("Mr"); Might I be missing anythi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Using useState in server initialization not working in Nuxt js3 I have an application in Nuxt3, On init page (first connexion or just manual refresh) useState is not working. I verify if i have a token in the cookies, then i validate it on the backend, and then in the payload i retrieve the role and username to set ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Set an EditText clickable to a DatePicker inside a DialogFragment (Kotlin) I'm trying to make one of my EditText to show a DatePicker when clicked. The afromentioned EditText is inside a Popup Dialog Fragment. Can I set the EditText so that when clicked, it becomes a DatePicker? This is currently my Popup Fragment c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sklearn random forest Machine learning I want to output the prediction values of the random forest results from my test data into Excel and generate a map, but I need to know which line this result is for and use its coordinates, that is, how can I see the index of that test data along with the prediction?(with skle...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Code style preference on line breaks within conditions Is there any standard/recommended way, otherwise what's your personal preference in terms of positioning the "condition operator" at the beginning versus the end of a line? Two examples : or/and condition, and ternary operators A) or/and : if (element.getContent...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Database filter selects rows from either category, not both in PHP/SQL [YADCF] On my website people can apply a filter to select websites based on categories. For example, if people select both the category Fashion and the category UK, it shows all the sites from the UK and all the fashion sites. But not all the fas...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't translate the email LARAVEL "If you’re having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:" I've been searching through the internet for about an hour now and I still cannot translate this paragraph. "If you’re having trouble clicking the \":actionText\" but...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django Rest Framework - serializer field from request I have a ProjectMemberRequest model with primary keys to Project and User. class ProjectMember(models.Model): project = models.ForeignKey(Project) user = models.ForeignKey(User) In the serializer used by the view that handles POST /project-member-request...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django GIS - get all PERSONS within at least distance of "n" Points of Interest and annotate with distance Let's imagine the two following models: from django.db import models from django.contrib.gis.db import models as models_gis class Person(models.Model): name = models.CharField(...) coordinates = models...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Azure Data Lake Gen2 (ADLS Gen2) I am trying to find ADLS Gen2 from my Azure account. But, I am not able to locate ADLS Gen2. This is the first time I am trying to use ADLS Gen2. Please let me know if you need any other information. A: Thank you guys, I am able to find ADLS Gen2. Posting this answer if someone els...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating a 50Giga parquet file of random integers using pyspark fails I've tried using different sizes of clusters (EMR on AWS) and it always fails due to YARN killing all the nodes: https://aws.amazon.com/premiumsupport/knowledge-center/emr-exit-status-100-lost-node/ I assume that its due to too high memory require...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does this BiLSTM Keras model approach NaN during training? I am trying to do Trajectory classification with BiLSTM keras model . I have tried reducing the number of nodes , changing the order BiLSTM but the model still approaches NaN. model2 = Sequential() model2.add(Masking(mask_value=-1, input_shape=(...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Error: Your project does not reference "MonoAndroid,Version=v5.0" framework I have installed Xamarin on Visual Studio 2019 I started the first Android project TaregtFramework I have sent the target framework in the picture The project has nothing but two simple buttons I get this error when I try to rebuild Error Pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: This script in trading view is giving 1 result only for about 6 alerts with function any alert() function call. How to get different alert message? I am trying to get different alert messages for one pine script whose link is given below. But this script gives only 1 message for all the alerts that"a new level has b...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What Language Model is Azure, in specific Custom Question Answering, using? I've been researching in documentation, blog posts, etc. what language model Azure is using for their available resources in Language Studio but have not found a clear answer. The most detailed answer I've found is in this post: https://tech...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Adding subfolders in public folder of next js I am trying to create a website and it uses some files like a folder with images, I have saved these images folder in my public directory of project, it works fine on localhost, but when I try to deploy it with production setting, it cannot access those subfolders of pub...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Redirect URI for fetching data from google ads using API what should be the Redirect uri for fetching data from google ads using API in python I tried to provide https://accounts.google.com/o/oauth2/auth in redirect uri. while trying to get refresh token got 404 error- uri mismatch. enter image description here when...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to update JS chart data I have a chart (using chart.js) where i want to update the range of values based on user input. So far I am able to get the new set of values inside an array of objects which contain the x and y values. How do i update the data option inside my already existing chart? chart <script> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: SQL 2012 Reorder pivoted columns I've looked on many questions but couldn't find anything that could help me on what I need to do. I have a table that looks like the below: Item Desc Date Qty_Due 1234 Pen 2023-02-17 100 1234 Pen 2023-02-18 99 1234 Pen 2023-02-19 99 1235 Pencil 2023-02-17 120 1235 Pen...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to open a connection to an encrypted MS ACCESS db from Squirrel SQL Client I want to open an encrypted MS ACCESS (.accdb) database in Squirrel SQL Client Version 4.5.1. I tried this doc: Link to an example I could create the CryptCodecOpener.class but when I try to connect I get the following Error: XXXX: JDBC D...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How Hide Columns header from material ui table I have a set of material ui table header const columns = [ { id: 'id', label: 'ID', hide: true}, { id: 'username', label: 'User Name', }, { id: 'fullname', label: 'Full Name', }, { id: 'phone', label: 'Phone Name', }, { id: 'phone', label: 'Phone Nam...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to suffice a Zero based on the count of values in pandas I have a dataframe with a column year as below Year 202 2021 2022 202 2019 I need to add "0" for all the column values which has "202" how can I do it Expected Output Year 2020 2021 2022 2020 2019 Code so far: df['Year_1'] = df['Year'].str.len() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert private key and public key into jks file I use private key and public key that store in id_rsa and id_rsa.pub. So I now would like to convert them into jks file. Who know commands that can do that please help me up
{ "language": "en", "url": "https://stackoverflow.com/questions/75603448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: R package not loading on jupyter notebook after installation The packages of dplyr and tidyverse are installed but not loading as libraries. It is working in R Studio but not in Jupyter Notebook Tried some things nothing worked
{ "language": "en", "url": "https://stackoverflow.com/questions/75603449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Foreign Key Object is NULL while trying to access it from LINQ query I'm trying to retrieve a list of orders with a LINQ query. The class model of OrderItems has a list of products that is declared as a foreign key referencing the Product class. When I select the order items from a LINQ query and Include the Product...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Vue 3 + Class Components + Typescript: How to append html element to class component on click Precondition: Vue3 + typescript + vue-class-component Im trying to append a dynamic created div to a div element inside of the template tag on focusin on an input template Element. I tried two ways to do that: 1. I tried to...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Most efficient way of sending data from PHP to JS As a beginner JS/PHP/HTML developer I find it hard to understand how data is loaded when a page loads. Background When my search page loads I want to find all posts in my database and then display them on the screen. I need to save the posts in a JS variable to be ab...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Upgrading HIbernate to 5.6.15-Final starts causing foreign key constraint violations Running a Spring App that uses Hibernate and Postgres Tried to upgrade from Hibernate 5.3.20.Final to 5.6.15-Final but am now getting foreign key constraint violations when saving nested entities. See the example relationship Person...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Astro build version routes not working at all I've been building a project with astro, everything worked perfectly fine in the dev mode and the preview mode but whenever I build the app all routes just point to the index.astro file and if I delete it, there is basically no routes at all. In order to identify the pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Receive 3 responses from server after only 1 request from the client I am working on a project in order to drive an external tool remotely by using some commands accross TCP. I chose to use python for doing it. I can't set by any way the server, it's already done by the tool. My only option is to create a client to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Query DynamoDB with "where" and "between" at once I'm very new to DynamoDB, in SQL we could have done the below: select * from Table where Section = 10 and Percentage between "90" and "100" Need to the same with DynamoDB using Python Filter Expression. Below is the query which I have written. fe = Key('Percentage')...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Overriding the default class attribute using django-crispy-forms I am currently learning how to use django crispy forms and can't figure out this issue. I am using it alongside bootstrap5. I have the following form : class CommentForm(forms.ModelForm): class Meta : model = Comments fields = ["co...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In React, having a local database displayed through .map function, how can i pass the data.json from parent to child? I would like to pass the data.json from parent Tiles.js to child Info.js. I thought to pass it with props, as React required I guess, but I receive undefined instead of receiving the array of obj of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: yt-dlp will not load on linux mint tina can anyone assist I am trying to download a video using youtube-dl. This was ok until a few days ago, but now is not possible because of (I believe) changes to the program made by its developers. This is the error message: ERROR: Unable to extract uploader id; please report ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Limiting windows processes by mutex? I have a windows console app which is interrogating a table in a db. The arguments passed into the console app include a connection string and a value found in a specific table in the db. This console app can be fired up at any time. I'm looking to only allow one process to run f...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use wildcard in string replacement? I'm new to PowerShell.I encountered a problem when I tried to replace certain character with some new characters in a string using wildcard.What's wrong with the code? $file = "want apple banana want want" $file.Replace("w*t","wanna") PowerShell outputs "want apple banana ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Type 'string' is not assignable to type 'null'.ts(2322) error after updating ionic I am using the below code for side menu more than two years till ionic version 5 now after updating ionic to 6.20.6 and angular 15^ I am getting the below error at else { this.showLevel1 = idx; } Type 'string' is not assignable to t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: pandas multiindex columns from an other dataframe The first one is like that: F2 F1 F3 F4 F5 2019 8 1 3 4 6 2020 9 1 3 6 1 2021 10 2 4 5 1 The second one like that ID ASSET 0 F1 carac3 1 F2 carac1 2 F3 carac1 3 F4 carac2 4 F5 carac2 I would like to get a multiliindex columns dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Set "all" as variable from stored procedure I've got a procedure that takes couple of params. On of them is product id. What should I write to get all of products? I tried star-sing but it didn't work.
{ "language": "en", "url": "https://stackoverflow.com/questions/75603487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: session lost after a short time Good morning ! I need help please. I am new to Nodejs, Expressjs and Mongo. I am using passport and local passport to handle authentication. I manage to create an account and log in. The problem is that when I'm logged in and not browsing my blog, I lose the session after a while (abo...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Data scraping and I get this problem: We're sorry but viewer-app doesn't work properly without JavaScript enabled. Please enable it to continue I am attempting to scrape https://coworking.routesgrow.com/ . When attempting to scrape with beautiful soup and normal requests library it wouldn't work. I switched to using...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I configure a page that is created by a plugin in WordPress? I have installed in my WorPress site, a plugin that leet me create events and show them in a calendar, and when I click an event, it opens a new page with the details of the event, but the design of this page it's all bad with the menus on my theme...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java - Get 3D point from 2D point and OpenCV camera calibration Good morning, I'm new to the subject and I need some information on this question: I have received a file which provides the following calibration data for a camera: Extrinsic calibration: < opencv_storage > < rvec > 1.759099006652832 0.4671010076999664...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular A function whose declared type is neither 'void' nor 'any' must return a value What's wrong with this angular function? ObservableReturnTest(): Observable<any> { var responseModel; if (Math.random() > .5) { responseModel = new Person(); responseModel.age = 0; return of(responseMod...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Python and VS code I am trying to run code in VSCode but every time getting an error that I could not resolve. Here is the error: python : The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Tkinter Collision weirdness - clipping upon landing on a platform So i was coding a game using tkinter for school, and the collision is being really weird. There's a spot where i can jump and hit the bottom of a platform, which for some reason causes the player to slightly clip into the ground when coming back down....
{ "language": "en", "url": "https://stackoverflow.com/questions/75603502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: with-compiler and extra-lib-dirs in cabal for ALL developers I have a typical stack project layout and I am transitioning to a cabal. The problem is that I should reference extra libraries and installed GHC compiler. My current solution is: -- cabal.project file: ... extra-lib-dirs: libs/mylib -- libs/ is in the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Directshow add filter to AmCap Help me please to figure out how to add video filter to AmCap. I successfully built using VS2019 msdn code samples of AmCap: https://github.com/microsoft/Windows-classic-samples/tree/main/Samples/Win7Samples/multimedia/directshow/capture/amcap and ezrgb24 filter: https://github.com/mic...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python OPC-UA Client for Debian Linux that calls a specific method I have the following code.. from opcua import ua, Client try: # Connect to the server client = Client("opc.tcp://192.168.0.17:4840", timeout=5000) client.set_user('user') client.set_password('password') client.connect() # Ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jenkins: Deleted old builds are always rebuilt Setup: * *Jenkins Freestyle job for Github (Enterprise) *Set Git refspec to: +refs/pull/*/head:refs/remotes/origin/pr/* *Set Git Branch specifier to: :.*\/pr\/\d+ *Set Poll SCM to Schedule H/5 * * * * *Make sure the build breaks fast (prebuild script that says exi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to make symmetric matrix with vector of its non repeated elements? suppose we have non repeated elements of a matrix in a vector . I need to make a symmetric matrix by using this vector in matlab. for example if we have : v= [ 1 4 5 6 9 0] the answer must be the matrix: 1 4 5: 4 6 9: 5 9 0
{ "language": "en", "url": "https://stackoverflow.com/questions/75603515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to see from where the contacts were fetched I want to fetch all contacts, but doing so, I need to see from where the contacts came. When Im listing all the contacts, I need to show from where they were fetched, for example From SIM card, from Phone, or backed up from gmail account. I am aware there are different...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Block of code to search for a certain file on shell using vim I have this line of code that searches for files that contain 30 inside it. Can you explain me what the "0 search/30 30" do? 0 search/30 30 File containing "30" !:mime text/x-30
{ "language": "en", "url": "https://stackoverflow.com/questions/75603521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: client-side TypeScript gives error: .default is not a constructor My current project contains code which runs in the browser. The code is written in TypeScript and transpiled to js using this tsconfig: { "compilerOptions": { "target": "es6", "sourceMap": true, "ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to retain specified variables while using bootstrap validation? I am developing a prediction model in R, with predictor selection as a part of the bootstrap procedure. If I wanted to keep predictor 3 in the model no matter what, is there a way to do that? survival<-Surv(time,outcome) model<- cph(survival ~ predi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Select not binding in Blazor server I have this code that is triggered on lost focus, it should normally give me the id to be used in the LostFocus2 method. The etudes is a List<(int,string)> and is not null (I've seen it using a breakpoint), but trx.id is always 0. <tr> <th>Etude</th> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to integrate API with ajax call in jQuery I am trying to integrate GET method API with ajax call by query, When I select tenant name and click on submit button I'm getting response from backend-end but my problem here I'm trying to integrate that response to respective span elements but span element getting data...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: throw new MongooseError('Query.prototype.exec() no longer accepts a callback'); enter image description here throw new MongooseError('Query.prototype.exec() no longer accepts a callback'); ^ MongooseError: Query.prototype.exec() no longer accepts a callback I was trying to register users A: Mongoose released versio...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is setState() in a loop returning a Transform Error I'm using React Native with Expo and this was working fine in my code but now it throws a Transform Error: Syntax Error: Could not find Program, and on debugging I found that the error is caused by setUsers(user => [...user, users[key]), apparently React Native...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to include a foriegn Key field to User model, and using the foriegn key models field to User serializer? This is my model.py class User(AbstractBaseUser, PermissionsMixin, BaseModel): STUDENT = '1' INSTRUCTOR = '2' ADMIN = '3' ROLE_CHOICES = ( (STUDENT, 'student'), (INSTRUCTOR, '...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AWS CloudFront WAF ACL I am trying to set a WAF ACL on top of my CloudFront distribution. Initial idea behind the implementation is the idea of having a Video On Demand streaming. So basically I do have a web application, which is hosted on my HTTP web server. The web application wants to access a specific video res...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Update session variable using AJAX I have an issue trying to develop a dynamic toggle switch for language using Bootstrap, PHP and Ajax. When I clear the Session variable, my toggle switch is off, the default value. If I turn it on, it seems like my session variable is well turned to true, and then result in the tog...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to fill image's holes located at the boundaries of an image? I am trying to remove all holes in a binarized image, including the ones located at the boundaries of this image. I only manage to fill holes not touching the boundaries. So far, to remove holes I find contours with OpenCV findContours method, and then...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to escape MissingOutputException while running a for loop in a rule in snakemake I have the following snakefile: import os SAMPLES = [i.replace('sample_', '') for i in os.listdir('final_raw')] rule all: input: expand('analysis/results/unmapped/hybrid/read1_{sample}_hy.fastq', sample = SAMPLES) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I would like to debug a vba code in Excel I am having troubles using the following code on my excel vba. How can I debug it? .Attachments.Add ThisWorkbook.Path & "\PDF_Files\" & emailCell & ".pdf"
{ "language": "en", "url": "https://stackoverflow.com/questions/75603551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Firebase storage upload file and get getDownloadURL Error storage/object-not-found I have a problem when I try to upload a file using uploadBytesResumable and want to retrieve the path of the file using getDownloadURL. However, sometimes I encounter an error: "Firebase Storage: Object 'storatge_data/9d668c90-8381-41...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Build a dynamic custom annotation for which I can inject value from application.properties in spring boot I want to build a custom annotation on top of Meta (https://docs.spring.io/spring-data/mongodb/docs/current/api/org/springframework/data/mongodb/core/query/Meta.html) where I can dynamically inject cursorBatchSi...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Camunda Collaboration task I have BPMN model as below: I am currently working on collaboration tasks and have noticed that the task reviewX has not been visited after the deployment of a process instance. I am wondering if there is an issue with the BPMN or if a special configuration is required to address this. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: override the default font folder in the Maven JAR for JasperReports I am trying to override the default font folder in the Maven JAR for JasperReports with my custom font folder. Below is my pom.xml file, but I am encountering the following error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-p...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Empty table row when location id changes I have a data table which contains hundreds of records and each record has a location id. What I am trying to do is echo out all the records with a line break when the location id changes. The SQL statement is: SELECT LocationID, deviceName, companyname, record_ID,location, l...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When open second window opens only UI file without logic file of this UI I have two windows, UI created using QT Designer, each has 1 ui file and 1 py file(where I wrote logic of window). Opening 2nd window from 1st working fine, UI loading, but actions on buttons not working, like it didnt load logic file. 1st wind...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: R: Subtracting each value in one group from the values in another group I need to do something I think is quite simple, but it's difficult to word the problem, so I haven't manage to google a solution. I have a dataframe similar to the one below, but much longer. I have many Sites, each with two Treatment groups: co...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add "Total" cell and the Sum of a column in Pandas? And how do I style them? I have a pandas dataframe that looks like this: col_1 col_2 a 10 b 20 c 30 d 40 But I want to turn it into this, with a "Total" column that shows the sum of col_2 that skips 1 row. How do I do this in panda...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Whether single DPDK process application can be both primary and secondary? In one of my multi process application, i need to share DPDK Mbuff memory from app1 to app2 and from app2 to app3. when I use rte_eal_init in app1, it does initialization and able to probe the available ports, but in app2, when i do the probe...
{ "language": "en", "url": "https://stackoverflow.com/questions/75603573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }