question_id
int64
37.6M
73.2M
input_text
stringlengths
88
52.4k
output_text
stringlengths
37
35.6k
title
stringlengths
15
150
tags
stringlengths
1
107
q_score
int64
-19
397
view_count
int64
3
879k
answer_count
int64
1
21
accepted_answer_id
int64
37.6M
73.8M
answer_id
int64
37.6M
73.8M
a_score
int64
-5
1.29k
is_accepted
bool
1 class
creation_date
stringlengths
20
24
input_text_instruct
stringlengths
251
52.6k
72,232,167
How to generate access token for testing with Azure AD<p>We have a spring boot REST API which will be used by mobile client. Azure AD is used for auth. We need to generate access token for initial testing spring boot REST API. What is the recommended option for this? Basically we need to to generate access token using ...
<p>To get the access token from Azure AD to authenticate and authorize users from Azure AD.</p> <ol> <li><p>First, you need to register both the application mobile client and spring boot applications in your Azure AD. Refer <a href="https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app...
How to generate access token for testing with Azure AD
spring-boot|azure-active-directory
0
400
1
72,298,032
72,298,032
1
true
2022-05-13T15:40:05.877Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to generate access token for testing with Azure AD<p>We have a spring boot REST API which will be used by mobile client. Azure AD is used for auth. We ne...
72,204,174
Is there a way to reload subgit configuration after import has started?<p>I have a large repository (20000+ commits) that takes a while to do a one-time cutover from SVN to git. There is a tangled web of hundreds of branches, some of which are proper branches, others are more like developer sandboxes, some are partial ...
<p>It is possible to restart the initial import with the same command used for the initial start, but the thing is that the mapping configuration change that affects branches mapping (means adds or removes branches to/from the configuration) requires the repository import restart from scratch as such the configuration ...
Is there a way to reload subgit configuration after import has started?
subgit
0
15
1
72,300,158
72,300,158
1
true
2022-05-11T15:59:27.900Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there a way to reload subgit configuration after import has started?<p>I have a large repository (20000+ commits) that takes a while to do a one-time cuto...
72,214,269
Disabling input is delayed<p>I have an Export button on my page that is creating a PDF (this part is working). During the export process I would like to disable some input or show an overlay to block the user to modify the page. I'm using the code below:</p> <pre><code>function RenderSelectedChartJsToPDF() { // Optio...
<p>As mentioned by @PeterKrebs the issue seems to be the PDF library blocking the browser. I used a setTimeout function to solve my issue as follow:</p> <pre><code>function RenderSelectedChartJsToPDF() { $('.featureInput').attr(&quot;disabled&quot;, true); $(&quot;#fileName&quot;).attr(&quot;disabled&quot;, true); ...
Disabling input is delayed
javascript|jquery
0
53
1
72,301,025
72,301,025
1
true
2022-05-12T10:51:53.627Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Disabling input is delayed<p>I have an Export button on my page that is creating a PDF (this part is working). During the export process I would like to disa...
72,215,976
PyPDF2.errors.PdfReadError: PDF starts with '♣▬', but '%PDF-' expected<p>I have a folder containing a lot of sub-folders, with PDF files inside. It's a real mess to find information in these files, so I'm making a program to parse these folders and files, searching for a keyword in the PDF files, and returning the name...
<p><strong>disclaimer</strong>: I am the author of <code>borb</code>, the library mentioned in this answer</p> <p>PDF documents caught in the wild will sometimes start with non-pdf bytes (a header that is not really part of the PDF spec). This can cause all kinds of problems.</p> <p>PDF will (internally) keep track of ...
PyPDF2.errors.PdfReadError: PDF starts with '♣▬', but '%PDF-' expected
python|pdf|pypdf2
0
1,385
2
72,302,387
72,302,387
1
true
2022-05-12T12:55:10.510Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PyPDF2.errors.PdfReadError: PDF starts with '♣▬', but '%PDF-' expected<p>I have a folder containing a lot of sub-folders, with PDF files inside. It's a real ...
72,226,796
Apache Camel: compound conditions by using the predicateBuilder and access them from the when() function<p>I am trying to compound conditions with the PredicateBuilder and saving it to the header to access the predicate from the when() function. At the beginning I set the body to <code>Hello World</code>. Also the bod...
<p>Predicates have matches method which you can use to evaluate the predicate with</p> <p>If you want to get the result for Predicate you can use the <a href="https://camel.apache.org/manual/predicate.html#_predicate_api" rel="nofollow noreferrer">matches-method</a> to evaluate the predicate.</p> <pre class="lang-java ...
Apache Camel: compound conditions by using the predicateBuilder and access them from the when() function
java|apache-camel
0
172
1
72,304,964
72,304,964
1
true
2022-05-13T08:47:06.307Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Apache Camel: compound conditions by using the predicateBuilder and access them from the when() function<p>I am trying to compound conditions with the Predi...
72,224,168
Why is my cookie not being saved on Safari but being saved on Chrome?<p>So I am working on a project, the frontend is on Next.JS hosted on vercel, the backend is on Express.JS hosted on heroku.</p> <p>I am using express-session along with passport JS to store the sessions.</p> <p>On the frontend I am using axios for th...
<p>Alright, It turns out the reason for this happening is because Safari doesn't allow cross-domain cookies. So, the only true way to resolve this is by hosting the backend and frontend on different subdomains of the same domain.</p>
Why is my cookie not being saved on Safari but being saved on Chrome?
express|cookies|axios|safari
0
328
1
72,311,778
72,311,778
1
true
2022-05-13T03:32:30.203Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is my cookie not being saved on Safari but being saved on Chrome?<p>So I am working on a project, the frontend is on Next.JS hosted on vercel, the backen...
72,199,781
Concurent memory access from a GDK Event handler and GtkDrawinaArea on_draw function<p>I am implementing a simple program that will allow me to place rectangles in a grid when I click on an empty placement in a grid. I have also made it scrollable, so that the size of the grid can be quite big. Here is a brief overview...
<p>I copied your code to my sandbox and tested out your program. After sprinkling a bunch of &quot;printf&quot; statements through your program, I believe I found the issue. You set up the &quot;rect_list&quot; node via your sentinel function and initially it holds the pointer to your first structure element. Howeve...
Concurent memory access from a GDK Event handler and GtkDrawinaArea on_draw function
c|linked-list|pthreads|gtk|gdk
0
37
1
72,313,147
72,313,147
1
true
2022-05-11T10:55:59.747Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Concurent memory access from a GDK Event handler and GtkDrawinaArea on_draw function<p>I am implementing a simple program that will allow me to place rectang...
72,168,027
Where could I find further documentation for the method set_iam_policy of the google.cloud.resourcemanager_v3<p>I try to use the <a href="https://cloud.google.com/python/docs/reference/cloudresourcemanager/latest/google.cloud.resourcemanager_v3.services.projects.ProjectsClient#google_cloud_resourcemanager_v3_services_p...
<p>I received from the GCP support the following URL: <a href="https://cloud.google.com/pubsub/docs/reference/rpc/google.iam.v1#google.iam.v1.SetIamPolicyRequest" rel="nofollow noreferrer">https://cloud.google.com/pubsub/docs/reference/rpc/google.iam.v1#google.iam.v1.SetIamPolicyRequest</a></p> <p>The website delivers ...
Where could I find further documentation for the method set_iam_policy of the google.cloud.resourcemanager_v3
python|python-3.x|google-cloud-platform|google-cloud-resource-manager
0
121
1
72,314,936
72,314,936
1
true
2022-05-09T06:57:55.853Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Where could I find further documentation for the method set_iam_policy of the google.cloud.resourcemanager_v3<p>I try to use the <a href="https://cloud.googl...
72,186,228
hive fetch result from hdfs is too slow, because of too many the map only task, How can I merge the query result When hive SQL query is executed<p>hive query produces too many result files in the fold of &quot;/tmp/hive/hive&quot;, Close to 4W tasks.But the total number of running results is only more than 100 so I won...
<p>set mapred.max.split.size=2560000000;<br /> Increase the size of the file processed by a single map, thereby reducing the number of maps</p>
hive fetch result from hdfs is too slow, because of too many the map only task, How can I merge the query result When hive SQL query is executed
hadoop|hive|beeline
0
263
2
72,316,798
72,316,798
1
true
2022-05-10T12:21:18.130Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: hive fetch result from hdfs is too slow, because of too many the map only task, How can I merge the query result When hive SQL query is executed<p>hive query...
72,214,379
How to solve , Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information<p>I am implementing google automl in NodeJS to predict the image level. I have created model, level and uploaded images manually. Now I want to predict level of an image usi...
<p>As mentioned by @Rakesh Saini , this error occurs when <a href="https://cloud.google.com/vision/automl/docs/tutorial" rel="nofollow noreferrer">environment variables</a> are not set or missing.The environment can be set by adding <a href="https://cloud.google.com/docs/authentication/production" rel="nofollow norefer...
How to solve , Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information
node.js|machine-learning|google-cloud-storage|google-cloud-automl
0
156
1
72,318,042
72,318,042
1
true
2022-05-12T11:01:20.207Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to solve , Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information<p>I am imp...
72,173,798
Updating Smartsheet Summary Field Pick List values<p>I am currently updating column pick list values in sheets with an API call to keep the options in sync with the source.</p> <p>There is now a need to apply those same pick list values to a summary field pick list options list.</p> <ul> <li><a href="https://stackoverf...
<p>Adding/Updating summary fields by curl or by the SDK works, refer to the documentation : <a href="https://smartsheet-platform.github.io/api-docs/?shell#add-summary-fields" rel="nofollow noreferrer">https://smartsheet-platform.github.io/api-docs/?shell#add-summary-fields</a></p>
Updating Smartsheet Summary Field Pick List values
smartsheet-api-2.0
0
35
1
72,318,286
72,318,286
1
true
2022-05-09T14:38:51.857Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Updating Smartsheet Summary Field Pick List values<p>I am currently updating column pick list values in sheets with an API call to keep the options in sync w...
71,298,203
How to use GstReferenceTimestampMeta properly<p>My goal is to attach timestamps to <code>GstBuffer</code> which is independent of GST time. I found <a href="https://gstreamer.freedesktop.org/documentation/gstreamer/gstbuffer.html?gi-language=c#GstReferenceTimestampMeta" rel="nofollow noreferrer">GstReferenceTimestampMe...
<p>as far as I know, GstMeta data is intra-pipeline only. If you need an inter-pipeline solution, you need to implement it in the coded (H.264, H.265, ...) or in the RTP header.</p> <p>Cheers,</p>
How to use GstReferenceTimestampMeta properly
c++|gstreamer
0
256
1
72,319,524
72,319,524
1
true
2022-02-28T16:36:06.943Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use GstReferenceTimestampMeta properly<p>My goal is to attach timestamps to <code>GstBuffer</code> which is independent of GST time. I found <a href="...
72,173,535
Does it possible to read passport`s data from nfc chip in Flutter app?<p>I'm working on app in that I want to read passport's data form nfc chip, but I cannot to find some package or information about that. I know about nfc_manager and flutter_nfc_kit but both of them don't allow to read passport data. Also I know that...
<p>In fact, there is a library based on the <code>flutter_nfc_kit</code> to read the passport. Please refer to <a href="https://github.com/ZeroPass/dmrtd" rel="nofollow noreferrer">dmrtd</a>.</p>
Does it possible to read passport`s data from nfc chip in Flutter app?
flutter|dart|security|nfc
0
422
2
72,320,639
72,320,639
1
true
2022-05-09T14:20:42.093Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Does it possible to read passport`s data from nfc chip in Flutter app?<p>I'm working on app in that I want to read passport's data form nfc chip, but I canno...
72,207,914
How to stop listening on a stream in python gRPC client<p>I am listening in a python thread on a gRPC stream that never ends:</p> <pre><code>responses = some_grpc_stub.FunctionThatReturnsStream() for response in responses: on_event(response) </code></pre> <p>I want to do this for a while, and then <em>stop</em> liste...
<p>maybe you can consider using <code>cancel()</code>[1]? The streaming call returns an object that is both a Future and an iterator, you can invoke <code>responses.cancel()</code> to cancel it. In practice, this needs to happen in another thread, because the consumption of the iterator blocks.</p> <p>If you are using ...
How to stop listening on a stream in python gRPC client
grpc|grpc-python
0
291
1
72,323,414
72,323,414
1
true
2022-05-11T21:43:13.187Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to stop listening on a stream in python gRPC client<p>I am listening in a python thread on a gRPC stream that never ends:</p> <pre><code>responses = some...
72,202,942
How to add add row number to NetSuite saved searches<p>I have a Transactions saved search that sums an amount over a number of grouped fields:</p> <p>Results window looks like this (left out a number of Groups for simplicity) : <a href="https://i.stack.imgur.com/NhCkF.png" rel="nofollow noreferrer"><img src="https://i....
<p>If you use at least one Summary column, Netsuite will not display any column without Summary Type defined, so you need to add that to your Rownum column too. So here is a working example: <a href="https://i.stack.imgur.com/X4YEY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X4YEY.png" alt="enter...
How to add add row number to NetSuite saved searches
netsuite|saved-searches
0
258
3
72,329,018
72,329,018
1
true
2022-05-11T14:35:26.103Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add add row number to NetSuite saved searches<p>I have a Transactions saved search that sums an amount over a number of grouped fields:</p> <p>Results...
72,191,952
Yelp URL Encoding<p>How do I encode the Yelp Review URL to also display the review text?</p> <p>I got it down to where I can pre-fill the review to display a certain number of starts (e.g. 5 stars for the review below)</p> <p>(NOT MY BUSINESS, JUST AN EXAMPLE)</p> <p><code>https://www.yelp.com/writeareview/biz/R9KSEEqy...
<p>You won't be able to access the textarea element, because it does not exist - the field for the review description is actually a div (editable div with a text input role) because it has no id or name attribute you can't access it via request parameters. See, rating is the name of the radio box group, so passing a 5 ...
Yelp URL Encoding
urlencode|review|yelp
0
25
1
72,333,977
72,333,977
1
true
2022-05-10T19:21:17.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Yelp URL Encoding<p>How do I encode the Yelp Review URL to also display the review text?</p> <p>I got it down to where I can pre-fill the review to display a...
72,139,424
Access Control for API requests is not working in WSO2 APIM 4.1.0<p>I am trying <a href="https://apim.docs.wso2.com/en/latest/design/rate-limiting/access-control/" rel="nofollow noreferrer">rate limiting - allowed ip operation</a> in WSO2 APIM 4.1.0.</p> <p>Steps followed:</p> <ul> <li>Added new Policy by navigate to <...
<p>As suggested above by both @Athiththan and @Wasura Wattearachchi , I have deployed new revision after applying policy to API, which resolves my usecase.</p> <p>Policy:</p> <p><a href="https://i.stack.imgur.com/W8CYX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W8CYX.png" alt="policy" /></a></p...
Access Control for API requests is not working in WSO2 APIM 4.1.0
wso2|wso2-api-manager|rate-limiting|wso2-enterprise-integrator|whitelist
0
126
2
72,336,874
72,336,874
1
true
2022-05-06T09:44:13.573Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Access Control for API requests is not working in WSO2 APIM 4.1.0<p>I am trying <a href="https://apim.docs.wso2.com/en/latest/design/rate-limiting/access-con...
72,201,584
How to solve "UTF-8" is not supported encoding name<p>I am using HttpClient to send a post request to a remote server where I do not have control and trying to get the response as following</p> <pre><code>HttpResponseArgs result = //Make the request with HttpClient object ( I am skipping it here) var stringResult = re...
<p>You can use custom <a href="https://docs.microsoft.com/en-us/dotnet/api/system.text.encodingprovider?view=net-6.0" rel="nofollow noreferrer">EncodingProvider</a></p> <pre><code>public class Utf8EncodingProvider : EncodingProvider { public override Encoding GetEncoding(string name) { return name == &q...
How to solve "UTF-8" is not supported encoding name
c#|.net|utf-8|dotnet-httpclient|.net-standard-2.0
0
476
3
72,340,863
72,340,863
1
true
2022-05-11T13:05:09.313Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to solve "UTF-8" is not supported encoding name<p>I am using HttpClient to send a post request to a remote server where I do not have control and trying ...
72,224,338
How to determine if an SMS Message has Images Using Twilio Studio?<p><strong>How do I check if an SMS message has an image or not?</strong> I'm using Twilio Studio.</p> <ul> <li>I think I should use the <code>Split Based On</code> Flow Control action...</li> </ul> <p><a href="https://i.stack.imgur.com/JXSXI.png" rel="n...
<p>Instead of checking the <code>trigger.message.Body</code> which contains the text of the message, you should check <code>trigger.message.NumMedia</code> which tells you how many images were sent.</p> <p>You can then add transitions to test whether <code>NumMedia</code> is &quot;0&quot; or if matches any of &quot;1&q...
How to determine if an SMS Message has Images Using Twilio Studio?
image|twilio|twilio-studio
0
36
1
72,342,118
72,342,118
1
true
2022-05-13T04:09:37.500Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to determine if an SMS Message has Images Using Twilio Studio?<p><strong>How do I check if an SMS message has an image or not?</strong> I'm using Twilio ...
72,233,869
Check if class being used?<p>Simple problem, is it possible to check if a class is being used or not?</p> <pre><code>class A { } class B { } class TestClass { static void Main(string[] args) { var a = new A(); } } </code></pre> <p>I want to loop through all classes with reflection and get back that...
<p>Short answer: My understanding is that unfortunately <strong>it is not possible to see if a class is used or not</strong> using reflection. I've got this hardcore solution tip using the Expression feature but I'm not sure that it is what I'm after.</p>
Check if class being used?
c#|.net-core
0
98
1
72,344,980
72,344,980
1
true
2022-05-13T18:13:10.930Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Check if class being used?<p>Simple problem, is it possible to check if a class is being used or not?</p> <pre><code>class A { } class B { } class TestClass...
72,148,409
Crash on MDLLightProbe<p>I was trying to bake an MDLLightProbe but the app is crashing. I have stripped down the code to bare minimum but still getting the same crash. Attaching the code and the stack.</p> <pre><code> SCNNode *ambientLight = [SCNNode node]; ambientLight.light = [SCNLight light]; ambientLight...
<p>I don't use theses libs, but after checking the doc:</p> <p>The method you use is:</p> <pre><code>+ (MDLLightProbe *)lightProbeWithTextureSize:(NSInteger)textureSize forLocation:(MDLTransform *)transform lightsToConsider:(NSArray&lt;MDLLight *&gt; *)ligh...
Crash on MDLLightProbe
swift|scenekit|apple-model-io
0
59
1
72,346,457
72,346,457
1
true
2022-05-06T23:52:35.177Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Crash on MDLLightProbe<p>I was trying to bake an MDLLightProbe but the app is crashing. I have stripped down the code to bare minimum but still getting the s...
72,160,184
Minimal layout with header, footer, Left Menu, Content, RightMenu on Bootstrap 4-5<p>Help to make a minimal layout with <strong>header</strong>, <strong>footer</strong>, <strong>LeftMenu</strong>, <strong>Content</strong>, <strong>RightMenu</strong> on <strong>Bootstrap 4-5</strong>.<br /> The width of <strong>LeftMenu...
<p>You want to create a simple layout like this using Bootstrap 4 or 5.</p> <p><a href="https://i.stack.imgur.com/DN8Sa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DN8Sa.png" alt="enter image description here" /></a></p> <p>I think this is the style you wanted, you can change height and padding a...
Minimal layout with header, footer, Left Menu, Content, RightMenu on Bootstrap 4-5
html|css|bootstrap-4|bootstrap-5
0
259
1
72,347,602
72,347,602
1
true
2022-05-08T10:38:56.687Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Minimal layout with header, footer, Left Menu, Content, RightMenu on Bootstrap 4-5<p>Help to make a minimal layout with <strong>header</strong>, <strong>foot...
72,228,443
How can I compare a ClassDeclarationSyntax object against an IdentifierNameSyntax object?<p>I'm writing a source generator in C#, and I've got 2 objects that I need to compare to see if they relate to the same class, but I can't find a way to do it.</p> <p>My first object is an instance of <code>ClassDeclarationSyntax<...
<p>The method you are looking for is <code>GetDeclaredSymbol</code> on <code>semanticModel</code>. As <a href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.codeanalysis.csharp.csharpextensions.getdeclaredsymbol?view=roslyn-dotnet-4.2.0" rel="nofollow noreferrer">you can see from the documentation</a>, there a...
How can I compare a ClassDeclarationSyntax object against an IdentifierNameSyntax object?
c#|code-analysis|roslyn-code-analysis|sourcegenerators
0
45
1
72,350,916
72,350,916
1
true
2022-05-13T10:54:07.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I compare a ClassDeclarationSyntax object against an IdentifierNameSyntax object?<p>I'm writing a source generator in C#, and I've got 2 objects that...
72,159,854
Chrome/Edge and Firefox wrap long hyperlinks differently. Why?<p>I have noticed that Chrome/Edge and Firefox wrap long hyperlinks differently. Firefox breaks them on the slash <code>/</code> character, whereas Chrome/Edge doesn't consider the slash <code>/</code> character special.</p> <p>Is there some description abou...
<p>What you're looking for is the <a href="https://drafts.csswg.org/css-text/#propdef-line-break" rel="nofollow noreferrer">line-break</a> property. It specifies what characters are allowed to have line-breaks and which do not, but it's not precise. To summarize it gives some specific rules for certain characters in ce...
Chrome/Edge and Firefox wrap long hyperlinks differently. Why?
css|google-chrome|firefox|cross-browser|microsoft-edge
0
137
2
72,351,911
72,351,911
1
true
2022-05-08T09:54:42.277Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Chrome/Edge and Firefox wrap long hyperlinks differently. Why?<p>I have noticed that Chrome/Edge and Firefox wrap long hyperlinks differently. Firefox breaks...
72,204,443
Using args or props to derive data from Redux using selectors<p><strong>TL;DR</strong>: <em>I'm trying to use an id and type parameters in my selectors but the params are <code>undefined</code>. What is the correct way of doing this using <code>reselect</code> and <code>createStructuredSelector</code>?</em></p> <p>I'm ...
<p>I figured out the solution thanks to @markerikson's answer and this <a href="https://flufd.github.io/reselect-with-multiple-parameters/" rel="nofollow noreferrer">blog</a>.</p> <p>These are the selectors I'm using:</p> <pre><code>const getCustomView = ({ customView }) =&gt; customView; const getId = (_, id) =&gt; i...
Using args or props to derive data from Redux using selectors
javascript|reactjs|redux|reselect
0
121
2
72,354,915
72,354,915
1
true
2022-05-11T16:20:54.583Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using args or props to derive data from Redux using selectors<p><strong>TL;DR</strong>: <em>I'm trying to use an id and type parameters in my selectors but t...
72,223,975
What is the expected error code returned if the IoTHub device is disabled while still connected?<p>I would like to know what is the expected error code returned if the IoTHub device is disabled while still connected in the IoTHub. I tested it with the scenario below:</p> <p><strong>Scenario A:</strong></p> <ol> <li>Dev...
<p>This seems related to the limited error reporting in MQTT 3.1.1. The server will drop the connection when the device is disabled in IoTHub, it has no implicit mechanism to tell the client why it was disconnected. The client experiences network issue which then gets surfaced.</p> <p>In the second case once the TCP c...
What is the expected error code returned if the IoTHub device is disabled while still connected?
azure-iot-hub|azure-iot-sdk
0
165
1
72,357,021
72,357,021
1
true
2022-05-13T02:54:31.983Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the expected error code returned if the IoTHub device is disabled while still connected?<p>I would like to know what is the expected error code retur...
72,171,717
Why is my Filterizr gallery suddenly not working in Safari?<p>I have been using a Filterizr gallery for years on my website.</p> <p><a href="http://whataprettyface.ca" rel="nofollow noreferrer">http://whataprettyface.ca</a> (click 'portfolio' from the nav bar).</p> <p>Recently I noticed (after not changing anything) th...
<p>i had the same issue. I think the problem is Safari 15.4. I solved it adding this css lines:</p> <pre><code>.filteredOut &gt; a { opacity: 0; } </code></pre> <p>I hope it works for you too.</p>
Why is my Filterizr gallery suddenly not working in Safari?
jquery|safari
0
53
1
72,363,499
72,363,499
1
true
2022-05-09T12:04:26.267Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is my Filterizr gallery suddenly not working in Safari?<p>I have been using a Filterizr gallery for years on my website.</p> <p><a href="http://whatapret...
72,174,006
How to maintain connectivity to Office365 with Mailkit without reauthenticating user each email sent<p>Some background information which could be helpful to other potential solutions. My organization uses my windows login to also access other software applications such as office365 (outlook online and outlook desktop a...
<blockquote> <p>My organization uses my windows login to also access other software applications such as office365 (outlook online and outlook desktop app).</p> </blockquote> <p>Oof. That's not a good practice.</p> <blockquote> <ol> <li>Forgo my current username and password setup in the SQL DB and authenticate users a...
How to maintain connectivity to Office365 with Mailkit without reauthenticating user each email sent
asp.net-core|mailkit|office365-apps
0
116
1
72,366,748
72,366,748
1
true
2022-05-09T14:54:11.240Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to maintain connectivity to Office365 with Mailkit without reauthenticating user each email sent<p>Some background information which could be helpful to ...
72,189,757
How long can a Mailkit SMTPClient connection stay open<p>I use mailkit for my ASP.Net Core application and create a SMTPClient object which I then connect to Office365 and authenticate my user with a username and password. How long can this connection be open until it expires or needs to be reauthenticated? Also, is th...
<p>To keep a client connection to a server alive (whether it be using the ImapClient, Pop3Client, or the SmtpClient), you can use the NoOp() or NoOpAsync() methods to send a command to the server that does &quot;nothing&quot; but to let the server know that the client is still there and wants the connection to remain a...
How long can a Mailkit SMTPClient connection stay open
asp.net-core-mvc|office365|smtpclient|mailkit
0
150
1
72,368,367
72,368,367
1
true
2022-05-10T16:13:55.717Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How long can a Mailkit SMTPClient connection stay open<p>I use mailkit for my ASP.Net Core application and create a SMTPClient object which I then connect to...
72,010,229
How to create insights or recommendations from SharePoint list using Syntex?<p>How create recommendations or insights from dataset which resides in the SharePoint list. Is there any way to SharePoint Syntex would help in this Use case?</p>
<p>SharePoint Syntex uses document understanding or forms processing to classify and extract metadata from documents and forms. If your SharePoint list is not a document library (only a list of data values) then Syntex does not apply.</p>
How to create insights or recommendations from SharePoint list using Syntex?
sharepoint|office365|azure-ai
0
11
1
72,379,965
72,379,965
1
true
2022-04-26T07:49:33.557Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to create insights or recommendations from SharePoint list using Syntex?<p>How create recommendations or insights from dataset which resides in the Share...
72,191,978
How to set "use remote VNET gateway" on Azure network peering via Terraform<p>How can I set use remote VNET's gateway on a hub peer using terraform?</p> <p>On the spoke, I'm trying to set the below highlighted &quot;Use the remote virtual network's gateway or Route Server&quot; via terraform:</p> <p>I've tried setting ...
<p>You can configure spoke Vnets to use the hub Vnet VPN gateway to communicate with remote networks. To allow gateway traffic to flow from spoke to hub and connect to remote networks, you must:</p> <ul> <li>Configure the peering connection in the hub to allow gateway transit.</li> <li>Configure the peering connection ...
How to set "use remote VNET gateway" on Azure network peering via Terraform
terraform|terraform-provider-azure|vnet
0
660
1
72,380,773
72,380,773
1
true
2022-05-10T19:24:07.073Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to set "use remote VNET gateway" on Azure network peering via Terraform<p>How can I set use remote VNET's gateway on a hub peer using terraform?</p> <p>O...
72,174,122
org.hibernate.UnsupportedLockAttemptException: Lock mode not supported : Hibernate 4->5 Upgrade<p>We've just upgraded Hibernate 4-&gt;5 in our application. The following code used to work in Hibernate 4. There is a job which fetches some data from <code>MAIL_HISTORY_T</code> and can optionally write into <code>MAIL_HIS...
<p>We fixed this by rewriting the <strong>Write operation as Native SQL</strong>. The Read operation remains unchanged as before.</p> <p>Therefore, the previous Hibernate-based <code>createNewMailHistory()</code> is now Native SQL:</p> <pre><code> sessionFactory.getCurrentSession().createNativeQuery(&quot;insert &qu...
org.hibernate.UnsupportedLockAttemptException: Lock mode not supported : Hibernate 4->5 Upgrade
spring|hibernate
0
102
2
72,397,000
72,397,000
1
true
2022-05-09T15:01:40.770Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: org.hibernate.UnsupportedLockAttemptException: Lock mode not supported : Hibernate 4->5 Upgrade<p>We've just upgraded Hibernate 4-&gt;5 in our application. T...
72,174,388
Using Terraform and creating lambda module, how to set default env variables and add custom ones if required<p>I'm trying to create a custom Terraform AWS lambda module that will have a set of default environment variables in all lambdas, while allowing the option through a variable to add custom env variables to a spe...
<p>You can use the <a href="https://www.terraform.io/language/functions/merge" rel="nofollow noreferrer">merge function</a> of Terraform to merge the two maps to one before assigning them to the Lambda:</p> <pre><code>locals { default_environment_variables = { default_key = &quot;default_value&quot;} all_environmen...
Using Terraform and creating lambda module, how to set default env variables and add custom ones if required
node.js|environment-variables|terraform-provider-aws|terraform-modules
0
277
1
72,410,400
72,410,400
1
true
2022-05-09T15:18:45.627Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using Terraform and creating lambda module, how to set default env variables and add custom ones if required<p>I'm trying to create a custom Terraform AWS la...
72,166,856
Use Amazon SNS / Pinpoint to send push notifications<p>I'm trying to figure out which service should I use to send push notifications for cases very similar as to when an app like Instagram notifies you every time you receive a new like, or as when Tinder let's you know a new person liked you.</p> <p>I'm kind of confus...
<p>You can definitely achieve this using SNS. Using SNS, you can set up topics to target subsets of your customers (e.g. broadcast a notification in German to all of the customers in Germany) as well as send push notifications to individual devices.</p> <p>Depending on whether you are targeting Apple, Android, web or a...
Use Amazon SNS / Pinpoint to send push notifications
amazon-web-services|aws-lambda|push-notification|amazon-sns|aws-pinpoint
0
223
1
72,411,878
72,411,878
1
true
2022-05-09T04:00:08.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Use Amazon SNS / Pinpoint to send push notifications<p>I'm trying to figure out which service should I use to send push notifications for cases very similar ...
72,231,860
Locating Columns that Contain a String in their Name<p>Other than manually traversing every table schema in the entire database, how can I produce a list of all tables that contain a field containing the string &quot;email&quot; in <a href="https://docs.actian.com/psql/PSQLv13/" rel="nofollow noreferrer">Pervasive 13</...
<p>You can query the <a href="https://docs.actian.com/psql/PSQLv13/index.html#page/sqlref%2Fsqlsystb.htm" rel="nofollow noreferrer">System Objects</a>, use:</p> <pre><code>SELECT f.Xf$Name, g.Xe$Name FROM X$File f INNER JOIN X$Field g ON g.Xe$File = f.Xf$Id WHERE UPPER(g.Xe$Name) LIKE '%EMAIL%'; </code></pre>
Locating Columns that Contain a String in their Name
pervasive|pervasive-sql
0
23
2
72,418,289
72,418,289
1
true
2022-05-13T15:15:21.337Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Locating Columns that Contain a String in their Name<p>Other than manually traversing every table schema in the entire database, how can I produce a list of ...
72,144,908
How to add a single data point to a line graph in D3 without redrawing<p>I'm working on replacing a dynamic chart implemented in highcharts. The current implementation is a line-area chart that expands over time with incoming streaming data, so the replacement needs to be dynamically alterable, and preferrably animate...
<p>I ended up abandoning D3 as it required too much development to make it as presentable as an interactive chart that was ready out-of-the-box, but I did figure out how to do what I was thinking.</p> <p>Instead of re-adding a new line with additional points at every iteration, I ended up using a path component which a...
How to add a single data point to a line graph in D3 without redrawing
javascript|d3.js
0
38
1
72,451,736
72,451,736
1
true
2022-05-06T16:46:00.133Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add a single data point to a line graph in D3 without redrawing<p>I'm working on replacing a dynamic chart implemented in highcharts. The current imp...
72,208,464
Trying to create AWS spot datafeed, getting error: InaccessibleStorageLocation<p>I am following the 'documentation' here: <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html</a></p> <p>With ...
<p>What worked me for this issue is enabling the ACL. I initially had the ACLs disabled and I was running into the same permissions issue. I updated the S3 bucket and enabled ACLs then the message went away and I was able to create see the spot pricing feed.</p>
Trying to create AWS spot datafeed, getting error: InaccessibleStorageLocation
amazon-web-services|amazon-ec2
0
99
1
72,452,578
72,452,578
1
true
2022-05-11T23:01:20.873Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trying to create AWS spot datafeed, getting error: InaccessibleStorageLocation<p>I am following the 'documentation' here: <a href="https://docs.aws.amazon.co...
72,219,961
Why doesn't the shortcode appear inside the elementor html widget?<p>I have some custom html, css and js inside elementor's html widget. At some point I had to insert a div tag with a shortcode made by me inside. The shortcode displays fine in elementor's shortcode widget, but does not display inside elementor's html w...
<p>You can use the shortcode widget of Elementor and use the html elements before or after the shortcode. It will work perfectly. But inside the HTML widget it will not work as the widget is not for running shortcode.</p> <p>Use it like this inside the shortcode widget -</p> <p><div class="snippet" data-lang="js" data-...
Why doesn't the shortcode appear inside the elementor html widget?
php|html|widget|shortcode|elementor
0
315
1
72,462,790
72,462,790
1
true
2022-05-12T17:34:51.960Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why doesn't the shortcode appear inside the elementor html widget?<p>I have some custom html, css and js inside elementor's html widget. At some point I had ...
72,215,236
VPC Network error when configuring App Engine for Google Tag Manager Server Side<p>I'm trying to set up ServerSide Google Tag Manager, which is a service that runs on GCP App Engine.</p> <p>The setup is done with a few Cloud Shell commands, which are describede here: <a href="https://developers.google.com/tag-platform/...
<p>The answer to this was that the <code>default</code> service in the app engine (Services in the left-hand menu in the app engine console) failed to automatically create the VPC- and subnetworks.</p> <p>By manually recreating the <code>default</code>app engine service, the correct VPC networks and subnetworks were cr...
VPC Network error when configuring App Engine for Google Tag Manager Server Side
google-app-engine|google-cloud-platform|google-tag-manager|google-cloud-shell|google-vpc
0
171
2
72,467,081
72,467,081
1
true
2022-05-12T12:04:44.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: VPC Network error when configuring App Engine for Google Tag Manager Server Side<p>I'm trying to set up ServerSide Google Tag Manager, which is a service tha...
72,234,717
Duplicate keystrokes on cshtml editor<p>I'm having a strange problem in Visual Studio 2022, and would like to know if someone else faced it.</p> <p>It only happens when editting .cshtml files, on Asp.net MVC projects, ocasionally when I press a key on the keyboard, the editor insert that same letter 2, sometimes 4 time...
<p>You most likely have GitHub Copilot activated. If so, try deactivating it.</p> <p>I was going nuts with this too, until I found out that it was GitHub Copilot that was doing it once in a while. I have not found a solution to it, other than deactivating Copilot. You can see a thread on it here: <a href="https://githu...
Duplicate keystrokes on cshtml editor
c#|asp.net|asp.net-mvc|visual-studio|visual-studio-2022
0
168
1
72,499,078
72,499,078
1
true
2022-05-13T19:45:20.303Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Duplicate keystrokes on cshtml editor<p>I'm having a strange problem in Visual Studio 2022, and would like to know if someone else faced it.</p> <p>It only h...
72,223,705
Message: unknown error: cannot parse internal JSON template: Line: 1, column: 1, Unexpected token<pre><code>options = webdriver.ChromeOptions() options.add_argument(&quot;user-data-dir=C:\\Users\\jack_l\\AppData\\Local\\Google\\Chrome\\User Data&quot;) options.add_argument(r'--profile-directory=Profile 8') driver = we...
<p>I managed to get it up and running again! The solution that worked for me was deleting C:\Users\USER\AppData\Local\Google\Chrome folder and reinstalling Chrome. If you run into this problem, give it a try.</p>
Message: unknown error: cannot parse internal JSON template: Line: 1, column: 1, Unexpected token
python|google-chrome|selenium-webdriver|selenium-chromedriver|chromium
0
603
1
72,507,179
72,507,179
1
true
2022-05-13T01:58:40.307Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Message: unknown error: cannot parse internal JSON template: Line: 1, column: 1, Unexpected token<pre><code>options = webdriver.ChromeOptions() options.add_...
72,199,435
LAPACKE_dposv access violation with standard example<p>I'm maintaining a project that uses the Intel MKL.</p> <p>In investigating a problem I've gone back to fundamentals and started from a <a href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-lapack-examples/top/lapack-routines-linear-equations...
<p>Anyone else who is looking into this with similar issues can refer to the Intel communities for the solution as this query has been addressed here <a href="https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LAPACKE-dposv-access-violation-with-standard-example/m-p/1384005#M33157" rel="nofollow noreferrer...
LAPACKE_dposv access violation with standard example
intel-mkl
0
66
1
72,516,391
72,516,391
1
true
2022-05-11T10:27:43.330Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: LAPACKE_dposv access violation with standard example<p>I'm maintaining a project that uses the Intel MKL.</p> <p>In investigating a problem I've gone back to...
72,200,924
Github Action prints Commit Message instead of Tag Message<p>I want to print the current git Tag's <strong>message</strong> in a Github Action.</p> <p>If I run the following locally:</p> <pre><code>git tag -l --sort=-taggerdate --format='%(contents)' $(git describe --tags $(git branch --show-current) ) </code></pre> <p...
<p>The solution is to fetch all tags apparently:</p> <pre><code>- name: Fetch Tags run: git fetch --tags --force </code></pre>
Github Action prints Commit Message instead of Tag Message
git|github-actions
0
139
1
72,571,812
72,571,812
1
true
2022-05-11T12:17:34.930Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Github Action prints Commit Message instead of Tag Message<p>I want to print the current git Tag's <strong>message</strong> in a Github Action.</p> <p>If I r...
72,171,180
Hyperledger fabric: Querying implicit data collection<p>I am seeing this when querying data from implicit private data collection. Please see code snippet below.</p> <p>When I query individual key (<strong>using QueryBidPrivate/GetPrivateData</strong>), I get corresponding data. But if I query the complete collection (...
<p><code>GetPrivateDataByPartialCompositeKey()</code> is the function for querying a range of private data that was stored using a composite key. GetPrivateDataByRange() won't retrieve the data stored with a composite key. I think in the above code snippet you have to replace the function call <code>GetPrivateDataByRa...
Hyperledger fabric: Querying implicit data collection
hyperledger-fabric
0
78
2
72,576,082
72,576,082
1
true
2022-05-09T11:23:29.010Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Hyperledger fabric: Querying implicit data collection<p>I am seeing this when querying data from implicit private data collection. Please see code snippet be...
72,193,548
react-i18next break line on Translation<p>I have a translation key, with a text where I need to have a new line <code>&lt;br/&gt;</code>.</p> <p>As an example I have:</p> <pre><code>{ &quot;key&quot;:&quot;First line. &lt;br/&gt; Second line&quot; } </code></pre> <p>When calling <code>t(&quot;key&quot;)</code>, I stil...
<p>I implemented this function and defined my translations with a <code>\n</code> for line breaks</p> <pre class="lang-js prettyprint-override"><code>function MultilineTranslation({text}) { const items = text.split('\n') return ( &lt;&gt; { items.map(item =&gt; &lt;p&gt;{item}&lt;/p&gt;)} &lt;/&gt; ) ...
react-i18next break line on Translation
html|reactjs|internationalization|i18next
0
811
2
72,591,991
72,591,991
1
true
2022-05-10T22:27:47.067Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: react-i18next break line on Translation<p>I have a translation key, with a text where I need to have a new line <code>&lt;br/&gt;</code>.</p> <p>As an exampl...
72,184,652
Include the Matheron estimator in pykrige<p>Hi I have another question: how can I include the Matheron estimator in my program and still use Pykrige?</p> <p>My program looks like this:</p> <pre><code>from pykrige.ok import OrdinaryKriging from pykrige.kriging_tools import write_asc_grid import pykrige.kriging_tools as ...
<p>Sebastian here from the <a href="https://github.com/GeoStat-Framework" rel="nofollow noreferrer">GeoStat-Framework</a>. The Matheron estimator for the empirical variogram is used by default in PyKrige (and is the only option).</p> <p>Since PyKrige and <a href="https://github.com/GeoStat-Framework/GSTools" rel="nofol...
Include the Matheron estimator in pykrige
python|numpy|scipy|geostatistics
0
58
1
72,601,413
72,601,413
1
true
2022-05-10T10:26:19.470Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Include the Matheron estimator in pykrige<p>Hi I have another question: how can I include the Matheron estimator in my program and still use Pykrige?</p> <p>...
72,215,735
How to fix `There is currently no session available` after an API request call to Laravel 9<p>After Laravel project upgrade to PHP8 and laravel 9 on the all API endpoints started getting: <code>There is currently no session available</code>.</p> <ul> <li>Upgrade was made from laravel 8 to laravel 9.</li> <li>PHP was up...
<p>Was able to fix with this composer dependency for dingo api:</p> <pre><code>&quot;api-ecosystem-for-laravel/dingo-api&quot;: &quot;dev-laravel-9-support&quot; </code></pre>
How to fix `There is currently no session available` after an API request call to Laravel 9
laravel|request|upgrade|dingo-api|php-8.1
0
202
1
72,612,405
72,612,405
1
true
2022-05-12T12:38:12.583Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to fix `There is currently no session available` after an API request call to Laravel 9<p>After Laravel project upgrade to PHP8 and laravel 9 on the all ...
72,214,837
How to get specific columns from stored procedure return in .NET 6 and EF 6<p>Recently I updated my app to .net 6 and entity framework to 6.0.5 but some of my functionalities crashed which is expected. Namely, before this I was using entity framework 3.1.3. In my app I have many calls to stored procedures and most of t...
<p>No, there is no way of keeping the old calling pattern.</p> <p>EF Core Power Tools can do the mappings for you automatically, maybe it can ease the transition?</p>
How to get specific columns from stored procedure return in .NET 6 and EF 6
c#|.net-core|entity-framework-6|.net-6.0
0
259
1
72,613,599
72,613,599
1
true
2022-05-12T11:37:26.820Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get specific columns from stored procedure return in .NET 6 and EF 6<p>Recently I updated my app to .net 6 and entity framework to 6.0.5 but some of m...
72,164,717
Apple "App Store Server Notifications" Sandbox Server URL Not Working<p>Our app working normally on Ipad and when subscribe and cancel subscription it ok, <strong>but no notification sent to our server !</strong></p> <p>I have filled the App Information with the our server Sandbox Server URL,</p> <p>Our link look like ...
<p>I think WWDC22 feature <strong>Request a Test Notification</strong> may help you.</p> <p>ref: <a href="https://developer.apple.com/documentation/appstoreserverapi/request_a_test_notification?changes=_2" rel="nofollow noreferrer">https://developer.apple.com/documentation/appstoreserverapi/request_a_test_notification?...
Apple "App Store Server Notifications" Sandbox Server URL Not Working
ios|testing|in-app-purchase|subscription|storekit
0
433
1
72,625,409
72,625,409
1
true
2022-05-08T20:06:50.463Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Apple "App Store Server Notifications" Sandbox Server URL Not Working<p>Our app working normally on Ipad and when subscribe and cancel subscription it ok, <s...
72,186,518
Pandas - drop function<p>I want to drop rows from a dataframe, based on the condition that the value of a specific column is in a list. If this is not the case I want the row to be dropped.</p> <p>Do you have any suggestions? Thanks in advance</p> <p>As an example, if the value in column 'C' is not inside the list l, I...
<pre><code>df = df[df.apply(lambda x: any(x.isin(l)), axis=1)] </code></pre> <p>if only one column must be</p> <p>and if, only <code>C</code>:</p> <pre><code>df[df.apply(lambda x: x[&quot;C&quot;] in l, axis=1)] </code></pre> <p>or, if all columns:</p> <pre><code>df = df[df.apply(lambda x: all(x.isin(l)), axis=1)] </co...
Pandas - drop function
python|pandas|dataframe|drop
0
73
2
72,186,729
72,186,729
1
true
2022-05-10T12:42:24.033Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pandas - drop function<p>I want to drop rows from a dataframe, based on the condition that the value of a specific column is in a list. If this is not the ca...
72,215,384
Is it possible to execute cucumber scenario's in parallel on different browsers(chrome and firefox) at same time?<p>I succeeded to run cucumber scenario's in parallel but only on one browsertype(chrome or firefox). So first I run my tests on chrome. When tests finish I start a second test run on firefox.</p> <p>Is it p...
<p>You are running a your tests against a matrix of browsers. Typically this matrix configured in CI and provided to the test execution via environment variables. For example using <a href="https://docs.gitlab.com/ee/ci/yaml/#parallel-matrix-jobs" rel="nofollow noreferrer">Gitlab CI Matrix</a>:</p> <pre class="lang-yam...
Is it possible to execute cucumber scenario's in parallel on different browsers(chrome and firefox) at same time?
selenium|cucumber|testng|cucumber-jvm|testng-dataprovider
0
373
2
72,223,094
72,223,094
1
true
2022-05-12T12:14:09.347Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is it possible to execute cucumber scenario's in parallel on different browsers(chrome and firefox) at same time?<p>I succeeded to run cucumber scenario's in...
72,233,703
REACT- Making 2 different dynamic displays depending on a selection checkboxes ( everything is on the same page now)<p>depending on the selection of my user <code>Change the type</code> or <code>Choose the comments</code> (he can select only one choice), there will be a different display, but my code displayed both opt...
<p>I understood better thanks to the picture you added, here is the code: <a href="https://codesandbox.io/s/first-page-with-dynamic-field-forked-vpxyhu?file=/src/App.js" rel="nofollow noreferrer">https://codesandbox.io/s/first-page-with-dynamic-field-forked-vpxyhu?file=/src/App.js</a></p>
REACT- Making 2 different dynamic displays depending on a selection checkboxes ( everything is on the same page now)
javascript|reactjs|checkbox|react-hook-form
0
31
1
72,234,306
72,234,306
1
true
2022-05-13T17:57:15.807Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: REACT- Making 2 different dynamic displays depending on a selection checkboxes ( everything is on the same page now)<p>depending on the selection of my user ...
72,178,736
Generic typed borrowed value does not live long enough in match<p>I have this function for quick SQL queries those only expect one value from the DB. I import the postgres 0.19.3 library.</p> <pre><code>fn psql_query&lt;'a, T&gt;(db: &amp;str, query: &amp;str) -&gt; Result&lt;T, postgres::Error&gt; where T: postgre...
<blockquote> <p>If <code>get()</code> would return a slice or reference that ties the return value to <code>row</code>, I would understand, but I don't think this is the case.</p> </blockquote> <p>That <em>can</em> be the case; the returned type from <code>get()</code> must implement <a href="https://docs.rs/postgres/l...
Generic typed borrowed value does not live long enough in match
rust|lifetime|borrow-checker|ownership
0
83
1
72,179,499
72,179,499
1
true
2022-05-09T22:15:00.523Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Generic typed borrowed value does not live long enough in match<p>I have this function for quick SQL queries those only expect one value from the DB. I impor...
72,170,972
Using Python's Find() in a while loop to return the index of words in a string<p>A problem I'm working on involves using a while loop to iterate through a string, using the Find() function to return the index of a specific word in that string whenever it appears. For this example it's finding the name 'Weena' in a stri...
<p>I would just intialize <code>count</code> variable separately and use while loop to iterate through <code>time_machine_text.split()</code>. For example:</p> <pre><code>count = 0 words = time_machine_text.split() while count &lt; len(words): word = words[count] if &quot;weena&quot; in word: print(coun...
Using Python's Find() in a while loop to return the index of words in a string
python|string|loops|while-loop|find
0
190
1
72,171,266
72,171,266
1
true
2022-05-09T11:06:35.203Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using Python's Find() in a while loop to return the index of words in a string<p>A problem I'm working on involves using a while loop to iterate through a st...
72,171,205
Is there a way that uses less memory in python to do this<p>I am using or-tools to solve an optimization problem. I have many constraints that I am storing in a list. Unfortunately, that takes a lot of memory space.</p> <pre><code>constraints_list = [] for i in range(rows): constraints_list.append([0] * (4 * i) + [...
<p>The first thing that comes into my head is using compression of some sort. i.e. only storing essential parts of your constraints in the array needed to reproduce the entire constraint. For example:</p> <blockquote> <p>[0] * (4 * i)</p> </blockquote> <p>This is not needed fully. You can simply store <code>i</code> an...
Is there a way that uses less memory in python to do this
python|data-science
0
64
1
72,171,521
72,171,521
1
true
2022-05-09T11:25:40.393Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there a way that uses less memory in python to do this<p>I am using or-tools to solve an optimization problem. I have many constraints that I am storing i...
72,177,874
How I build Dart Regexp Properly?<p>Goal of this expression is <em>separate</em> mathematic calculations into operators, symbols, numbers and brackets.</p> <p>For example:</p> <p><code>Input string: 1+3-6*(12-3+4/5)</code></p> <p><code>Output list: 1, +, 3, -, 6, *, (12-3+4/5)</code></p> <p>So I built <a href="https://...
<ol> <li><p>The syntax <code>/pattern/g</code> is used to create regular expression <em>literals</em> in JavaScript (and <code>sed</code> and some other languages), just as quotes are used to create string literals. Dart doesn't have regular expression literals; you instead must invoke the <code>RegExp</code> construc...
How I build Dart Regexp Properly?
dart
0
42
2
72,178,728
72,178,728
1
true
2022-05-09T20:27:07.830Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How I build Dart Regexp Properly?<p>Goal of this expression is <em>separate</em> mathematic calculations into operators, symbols, numbers and brackets.</p> <...
72,186,153
Flutter generic function callback<p>can you comment?</p> <pre class="lang-dart prettyprint-override"><code>typedef ButtonChangedCallback = void Function&lt;T&gt;(T value); class MyWidget&lt;T&gt; extends StatefulWidget { ButtonChangedCallback? onCallback; const MyWidget( {required Key key, this.onCallb...
<p>When you do:</p> <pre class="lang-dart prettyprint-override"><code>typedef ButtonChangedCallback = void Function&lt;T&gt;(T value); class MyWidget&lt;T&gt; extends StatefulWidget { ButtonChangedCallback? onCallback; </code></pre> <p>You're declaring that <code>ButtonChangedCallback</code> must be a generic funct...
Flutter generic function callback
flutter|dart|generics|lambda|callback
0
137
2
72,186,467
72,186,467
1
true
2022-05-10T12:15:37.487Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flutter generic function callback<p>can you comment?</p> <pre class="lang-dart prettyprint-override"><code>typedef ButtonChangedCallback = void Function&lt;T...
72,158,254
git: Keep files/folder in upstream repo, but don't include in source<p>I wanted to include a folder called <code>screenshots/</code> in my git repo (mainly to support the README) to show... well screenshots of the app I created, so I did. However, the next time I tried to push a new commit to the repo, I got an error u...
<p>It helps to think about <em>what Git stores</em>. Git doesn't store folders in the first place; instead, Git stores <em>commits</em>, and commits in turn store (in part) <em>files</em>, as a sort of archive, frozen in time. The files have long names that may include slashes, such as <code>path/to/file.ext</code>. ...
git: Keep files/folder in upstream repo, but don't include in source
git
0
37
1
72,158,949
72,158,949
1
true
2022-05-08T05:12:32.280Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: git: Keep files/folder in upstream repo, but don't include in source<p>I wanted to include a folder called <code>screenshots/</code> in my git repo (mainly t...
72,171,944
How to refresh data periodically with Stream?<p>I have a Future function that accepts currencies. This function is in a separate file. On the main page, I accept it through the Future builder and expand the data. How can I update them dynamically with Stream? I need to update this data every 5 seconds. My Future func:<...
<p>Use <code>streamBuilder</code> with <code>stream</code></p> <pre><code>StreamController&lt;List&lt;CurrencyModel&gt;&gt; controller = StreamController&lt;List&lt;CurrencyModel&gt;(); Timer? timer; @override void initState() { super.initState(); timer = Timer.periodic(Duration(seconds: 5), (Timer t) =&gt; fetch...
How to refresh data periodically with Stream?
flutter|dart
0
256
3
72,172,582
72,172,582
1
true
2022-05-09T12:22:23.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to refresh data periodically with Stream?<p>I have a Future function that accepts currencies. This function is in a separate file. On the main page, I ac...
72,035,919
MongoDB - update an object inside a multi dimensional numerical indexed array<p>I am learming MongoDB (ver 5) [with Django (pymongo)] and facing a problem to update a multidimensional numerical array of objects.</p> <p>I want to update an object value nested within a multi dimensional array.</p> <p>Sample collection da...
<p>Query</p> <ul> <li>arrayfilters to match the <code>word= &quot;arep 2&quot;</code></li> <li>for all members(2 nested levels)<code>($[] means for all members)</code>, set the word(that satisfies the arrayFilter)<code>($[w].word)</code> to <code>&quot;hello&quot;</code></li> </ul> <p><a href="https://cmql.org/playmong...
MongoDB - update an object inside a multi dimensional numerical indexed array
arrays|mongodb|object|multidimensional-array|mongodb-update
0
29
1
72,036,630
72,036,630
1
true
2022-04-27T22:20:59.890Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MongoDB - update an object inside a multi dimensional numerical indexed array<p>I am learming MongoDB (ver 5) [with Django (pymongo)] and facing a problem to...
72,210,929
How to add/remove characters inside TextField?<p>I have a Room database with a table that holds users. Each user has an ID and a name. My goal is to change the name of the user based on the ID. Here is what I have tried.</p> <p>I have an UsersScreen that contains a LazyColumn where I display all users. It works fine. E...
<p>After <code>TextField</code> trigger <code>onValueChange</code> it's expected that you modify value passed into <code>value</code>.</p> <p>If you want to edit your view model property, you can do something like this, expecting <code>User</code> to be a data class:</p> <pre><code>onValueChange = { viewModel.userState...
How to add/remove characters inside TextField?
android|kotlin|android-room|android-jetpack-compose|android-jetpack
0
77
1
72,222,995
72,222,995
1
true
2022-05-12T06:23:04.653Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add/remove characters inside TextField?<p>I have a Room database with a table that holds users. Each user has an ID and a name. My goal is to change t...
72,156,210
Select and extract contact details using Intent and ActivityResultContracts<p>I have a button to open and select a contact for some of it's specific data - name and number using <a href="https://developer.android.com/reference/androidx/activity/result/contract/ActivityResultContracts" rel="nofollow noreferrer">Activity...
<p>It seems using <strong>ActivityResultContracts.PickContact()</strong> is the issue.</p> <p>I had to modify the code using <strong>Intent</strong> and <strong>ActivityResultContracts.StartActivityForResult()</strong> to get my desired result. Here is the new code</p> <pre><code>@Composable @Preview fun openAndSelect...
Select and extract contact details using Intent and ActivityResultContracts
android|android-intent|android-jetpack-compose|android-contacts|activityresultcontracts
0
210
1
72,159,988
72,159,988
1
true
2022-05-07T20:40:37.097Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Select and extract contact details using Intent and ActivityResultContracts<p>I have a button to open and select a contact for some of it's specific data - n...
72,181,090
Getting pixels of many different colors when drawing with SDL in Rust<p>I am playing around <a href="https://docs.rs/sdl2/latest/sdl2" rel="nofollow noreferrer">SDL2</a> in Rust and want to draw a rectangle and a point on the screen. While this does seem to function to an extent, I get all sorts of trash pixels of vary...
<p>You need to clear the canvas, clearing the canvas at the start of the frame is normal to ensure there aren't any artefacts from previous frames left over, or from something else leftover (i.e another program that previously used that memory and didn't zero it out before exiting/ moving on). In your case you'd need t...
Getting pixels of many different colors when drawing with SDL in Rust
canvas|rust|graphics|sdl|sdl-2
0
200
1
72,181,951
72,181,951
1
true
2022-05-10T05:21:18.597Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting pixels of many different colors when drawing with SDL in Rust<p>I am playing around <a href="https://docs.rs/sdl2/latest/sdl2" rel="nofollow noreferr...
72,196,459
Working with timestamps from jpg.filename<p>I have a folder (&quot;pictures&quot;) with many jpg.files with the filename as timestamp (e.g. &quot;09_02_01.jp&quot; or &quot;10_04_01.jpg&quot;). Now I want to iterate through the folder and all jpg files and use the filenames as timestamps. With these timestamps I want t...
<p>You can try my code below:</p> <pre><code>from datetime import datetime import os def gettime(folder_dir): timediff_sec = 30 time_stamps = [] for images in os.listdir(folder_dir): if images.endswith(&quot;.jpg&quot;): fn, fext = os.path.splitext(images) # string name ...
Working with timestamps from jpg.filename
python|file|directory|timestamp
0
120
1
72,197,385
72,197,385
1
true
2022-05-11T06:39:44.760Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Working with timestamps from jpg.filename<p>I have a folder (&quot;pictures&quot;) with many jpg.files with the filename as timestamp (e.g. &quot;09_02_01.jp...
72,209,547
How to define variable so it doesn't clean my file every time I run it<p>I just started studying dictionaries and I encountered the following issue. I have the variable <code>dictionary</code> that is modified various times through some other functions, and every time that happens if dumps itself to a file using the pi...
<p>You can try it</p> <pre><code>import pickle dictionary = {&quot;test&quot;: &quot;1&quot;} # save to pickle file toys = open('toysFile.pkl','ab') pickle.dump(dictionary,toys) toys.close() # load pickle file toysRB = open('toysFile.pkl','rb') toysRBLoad = pickle.load(toysRB) print(toysRBLoad) </code></pre>
How to define variable so it doesn't clean my file every time I run it
python|file
0
56
2
72,209,578
72,209,578
1
true
2022-05-12T02:39:07.977Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to define variable so it doesn't clean my file every time I run it<p>I just started studying dictionaries and I encountered the following issue. I have t...
72,195,759
How to pass paramters to argo workflow api<p>I am running my workflow through argo workflow api ,and I am not able to pass dynamic input paramters</p> <pre><code>curl -k --request POST \ --url https://localhost:2746/api/v1/workflows/argo \ --header 'content-type: application/json' \ --data '{ &quot;namespace&q...
<p>You can pass parameters to the workflow which instead can be sent to any step inside the workflow. The parameter should have a name. In your example you are only passing the value directly to the step.</p> <p>Here is an example payload.</p> <pre><code> { &quot;workflow&quot;: { &quot;metadata&...
How to pass paramters to argo workflow api
argo-workflows|argoproj
0
405
1
72,196,724
72,196,724
1
true
2022-05-11T05:16:44.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to pass paramters to argo workflow api<p>I am running my workflow through argo workflow api ,and I am not able to pass dynamic input paramters</p> <pre><...
72,141,843
Get data in component tree using RTK Query<p>I think I misunderstand the purpose of RTK Query.</p> <p>Basically I have an app, where I need to login using email and password, this request returns me userId. That is my API file</p> <pre><code>export const accountApi = createApi({ reducerPath: 'accountApi', baseQuery: fe...
<p>Looks like you are mixing up the API layer and storage. RTK-Q brings you a wrapping layer with Cache and other API-related features to make all the data-fetching fetch lifecycle easier and consistent all over the app.</p> <p>What are you looking for - is a data storage-related question. It can be handled with any of...
Get data in component tree using RTK Query
reactjs|rtk-query|rtk
0
281
1
72,144,550
72,144,550
1
true
2022-05-06T12:57:56.633Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get data in component tree using RTK Query<p>I think I misunderstand the purpose of RTK Query.</p> <p>Basically I have an app, where I need to login using em...
72,147,706
Overwrite variables if condition is met, else keep existing values R<p>I have a data frame</p> <pre><code>df&lt;-data.frame(Name=c('H001', 'H002', 'H003', 'H004', 'H005', 'H006', 'H007', 'H008', 'H009', 'H010'), Var1=c(1:10), Var2=c(4,6,7,2,3,8,9,3,2,10), ...
<p>You can add a final <code>else</code> statement at the end of your <code>case_when</code>, so that if none of the other conditions are met, then it will just return <code>Var3</code> for a given row. By default, it will return <code>NA</code> if none of the other conditions are met.</p> <pre><code>df %&gt;% mutat...
Overwrite variables if condition is met, else keep existing values R
r|dplyr|conditional-statements
0
141
1
72,147,795
72,147,795
1
true
2022-05-06T21:50:49.160Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Overwrite variables if condition is met, else keep existing values R<p>I have a data frame</p> <pre><code>df&lt;-data.frame(Name=c('H001', 'H002', 'H003', 'H...
72,192,616
R Removing words from a string in a dataframe<p>Let's say I have the following dataset:</p> <pre><code>Date_Received = c(&quot;Addition 1/2/2018&quot;, &quot;Swimming Pool 1/8/2018&quot;, &quot;Abandonment 1/9/2018&quot;, &quot;Existing Approval 3/14/2018&quot;, &quot;Holding Tank 5/11/2018&quot;) Date_Approved = c(&q...
<p>We can use <code>trimws</code>, which has a whitespace argument (as you used in your code) that can be used to specify the whitespace.</p> <pre><code>library(dplyr) df %&gt;% mutate(Date_Received = trimws(Date_Received, &quot;left&quot;, &quot;\\D&quot;)) </code></pre> <p>Or with <code>str_replace_all</code>:</p...
R Removing words from a string in a dataframe
r|dplyr
0
45
2
72,192,664
72,192,664
1
true
2022-05-10T20:32:13.953Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: R Removing words from a string in a dataframe<p>Let's say I have the following dataset:</p> <pre><code>Date_Received = c(&quot;Addition 1/2/2018&quot;, &quot...
72,202,924
PostgreSQL - How to use the result of previous record to insert a new record<p>I am trying to write a migration for my <code>customer</code> table where the my new column <code>new_number</code> should get incremental values (starting from 10000 because of a business rule) for each company like the following:</p> <div ...
<p>if I understand correctly you can try to <code>ROW_NUMBER</code> window function instead of function.</p> <pre><code>WITH cte AS ( SELECT *,ROW_NUMBER() OVER(PARTITION BY company_id ORDER BY id) rn FROM customer ) UPDATE customer t1 SET new_number = cte.rn + 9999 FROM cte WHERE t1.new_number IS NULL AND t1....
PostgreSQL - How to use the result of previous record to insert a new record
sql|postgresql
0
75
4
72,203,044
72,203,044
1
true
2022-05-11T14:34:16.867Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PostgreSQL - How to use the result of previous record to insert a new record<p>I am trying to write a migration for my <code>customer</code> table where the ...
72,169,626
Concurrency settings for GCP PubSub Java subscriber client<p>There are two important fields for controlling the concurrency level in <a href="https://github.com/googleapis/java-pubsub" rel="nofollow noreferrer">Java GCP PubSub consumer</a>:</p> <ul> <li>Parallel pull count</li> <li>Number of executor threads</li> </ul>...
<p>The <code>setParallelPullCount</code> option doesn't just refer to the number of Java <code>Executor</code>s, it refers to the number of streams created that request messages from the server. The different streams could potentially return a different number of messages due to a variety of factors. One may want to in...
Concurrency settings for GCP PubSub Java subscriber client
java|multithreading|google-cloud-platform|publish-subscribe|google-cloud-pubsub
0
323
1
72,193,322
72,193,322
1
true
2022-05-09T09:19:08.537Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Concurrency settings for GCP PubSub Java subscriber client<p>There are two important fields for controlling the concurrency level in <a href="https://github....
72,189,960
How to use FormattableString[] in TestCaseSource<p>I have an NUnit test that needs to test a bunch of different <code>FormattableString</code> cases and I'm passing the cases using <code>TestCaseSource</code>:</p> <pre><code>static IEnumerable&lt;TestCaseData&gt; TestCaseSourceData() { FormattableString data1 = For...
<p>You are trying to cast FormattableString to FormattableString[] - this is what error message is saying.</p> <p>You have two options:</p> <ol> <li><p>Use single object:</p> <pre><code> [TestFixture] public class TestClass { public static IEnumerable&lt;TestCaseData&gt; TestCaseSourceData() { Form...
How to use FormattableString[] in TestCaseSource
c#|nunit|formattablestring
0
38
1
72,191,048
72,191,048
1
true
2022-05-10T16:29:58.247Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use FormattableString[] in TestCaseSource<p>I have an NUnit test that needs to test a bunch of different <code>FormattableString</code> cases and I'm ...
72,225,131
Get date of max hours worked<p>Tables: Employee ( ID , Name ) EmployeeHours ( EmployeeID ,Date, Hours )</p> <p><strong>This is my requirement:</strong></p> <blockquote> <p>Write a sql for following results for a year EmployeeID , TotalHoursWorked , Date and Hours ( Date and Hours when Employee worked most )</p>...
<p>you could use you query result in join with the original table</p> <pre><code> select distinct eh1.empId, eh1.date, t.hours, t.name, t.totalHoursWorked from shoplist.empHours eh1 inner join ( select e.id, e.name, sum(eh.hours) as totalHoursWorked, max(eh.hours) hours from shoplist.emp e inner join...
Get date of max hours worked
mysql
0
33
1
72,225,207
72,225,207
1
true
2022-05-13T06:11:01.480Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get date of max hours worked<p>Tables: Employee ( ID , Name ) EmployeeHours ( EmployeeID ,Date, Hours )</p> <p><strong>This is my requirement:</strong><...
72,055,596
Anylogic transitions - Rate condition<p>I was trying to create a transition between two states with a rate logic: I want that event to happen x times randomly, but only for a limited model time interval (for example from 1 pm to 00 am model time, to specify that this event CAN happen only in this range of time). Do you...
<p>Change the transition from rate to message with a particular message as follows:</p> <p><a href="https://i.stack.imgur.com/84Xr3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/84Xr3.png" alt="enter image description here" /></a></p> <p>Then, create a function that returns a double value. The body...
Anylogic transitions - Rate condition
anylogic
0
32
1
72,055,732
72,055,732
1
true
2022-04-29T09:15:12.533Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Anylogic transitions - Rate condition<p>I was trying to create a transition between two states with a rate logic: I want that event to happen x times randoml...
72,057,971
Refer to transporter in flowchart blocks ANYLOGIC<p>In my model sometimes my transporter (agent type=AMR) needs to charge his battery, this is executed by creating a new order in the source block and let them seize the specific transporter to a certain location where this transporter gets charged. This charging is happ...
<p>Instead of trying to do this in the delay block, I recommend you do that in the release block since no model time would have passed between the two blocks, so the model logic would not be impacted.</p> <p>In the on enter field of the release block use:</p> <pre><code>((AMR)unit).Batterylevel=100 </code></pre>
Refer to transporter in flowchart blocks ANYLOGIC
anylogic
0
29
1
72,058,194
72,058,194
1
true
2022-04-29T12:27:02.953Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Refer to transporter in flowchart blocks ANYLOGIC<p>In my model sometimes my transporter (agent type=AMR) needs to charge his battery, this is executed by cr...
72,232,083
Holder class (Having some objects references) compile error: 'Can not be referenced -- it is a deletted funciton'<p>I need a &quot;holder&quot; class. It is supposed to store objects references.</p> <p>Like: holder.A = a; // Gets a reference!</p> <p>Sample code bellow including the compiler error:</p> <pre><code>class ...
<p>The <strong>problem</strong> is that since your class <code>Holder</code> has a reference data member <code>MyA</code>, its default constructor <code>Holder::Holder()</code> will be implicitly deleted.</p> <p>This can be seen from <a href="https://en.cppreference.com/w/cpp/language/default_constructor" rel="nofollow...
Holder class (Having some objects references) compile error: 'Can not be referenced -- it is a deletted funciton'
c++|compiler-errors
0
22
2
72,232,154
72,232,154
1
true
2022-05-13T15:33:13.363Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Holder class (Having some objects references) compile error: 'Can not be referenced -- it is a deletted funciton'<p>I need a &quot;holder&quot; class. It is ...
72,237,424
Issue overloading the operator c++<p>I keep getting the following errors</p> <p>Error (active) E0349 no operator &quot;&lt;&lt;&quot; matches these operands Error C2678 binary '&lt;&lt;': no operator found which takes a left-hand operand of type 'std::ostream' (or there is no acceptable conversion)</p> <p>I know...
<p>The problem is that you've used:</p> <pre><code>stream &lt;&lt; Account.display(stream); </code></pre> <p>inside the overloaded <code>operator&lt;&lt;</code>. This is a problem because <code>account::display</code> returns a <code>std::ostream</code> and there is no overload of <code>operator&lt;&lt;</code> that tak...
Issue overloading the operator c++
c++|operator-overloading
0
41
1
72,237,467
72,237,467
1
true
2022-05-14T04:52:09.257Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Issue overloading the operator c++<p>I keep getting the following errors</p> <p>Error (active) E0349 no operator &quot;&lt;&lt;&quot; matches these operan...
72,236,313
How can I plot a line chart with two different companies monthly sales from 12 months before and 12 months after<p>The dataframe is a snapshot of what I'm working with. What I want to achieve is a line chart of the monthly sales of the different brands. Months with '-' before the number indicates the months prior up to...
<p>Try to reformat the data first:</p> <pre><code># Removes unnecessary columns and sets new indices. cols = df.columns[~df.columns.str.contains('count')] df = df[cols] df.rename(columns={'toy_brand_A': 'toy_brand'}, inplace=True) df.set_index('toy_brand', inplace=True) df = df.T df['company'] = 0 df.loc[df.index.str.c...
How can I plot a line chart with two different companies monthly sales from 12 months before and 12 months after
python|pandas|matplotlib|seaborn
0
103
1
72,236,881
72,236,881
1
true
2022-05-13T23:42:47.640Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I plot a line chart with two different companies monthly sales from 12 months before and 12 months after<p>The dataframe is a snapshot of what I'm wo...
72,184,734
Pandas: using .Query(inplace=True) doesn't filter dataset as expected<p>I'm quite new to Pandas and I'm doing some work on concrete compressive strength. I have a dataset which I've imported into a dataframe like so:</p> <pre><code>file = &quot;Concrete_Data.csv&quot; data = pd.read_csv(file) </code></pre> <p>The datas...
<p>First filter:</p> <pre><code>data = data.query('Age &lt;= 28') </code></pre> <p>Or:</p> <pre><code>data = data[data['Age'] &lt;= 28] </code></pre> <p>and then use vectorized solution - divide and sum columns:</p> <pre><code>data.insert(4, &quot;Water-Cement&quot;, (data[&quot;Water&quot;] / (data[&quot;Cement&quot;]...
Pandas: using .Query(inplace=True) doesn't filter dataset as expected
python|pandas|dataframe
0
62
2
72,184,753
72,184,753
1
true
2022-05-10T10:32:54.853Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pandas: using .Query(inplace=True) doesn't filter dataset as expected<p>I'm quite new to Pandas and I'm doing some work on concrete compressive strength. I h...
72,224,675
Datetime + String from a Pandas table into a new table. One line of code<p>I'm a beginner at python. I'm moving specific cells/scalars from one Dataframe to another. I'm trying to work out why my first block of code didn't work but my expanded code does. Why does concat give an error? My Initial Dataframes:</p> <p>df1_...
<p>First idea is transpose rows for one row DataFrame:</p> <pre><code>df = df1_Data.set_index(df1_Data.columns[0]).iloc[:, 2].T df.columns = df.columns.str.strip(':') </code></pre> <p>Your code - you need convert values to strings for possible join together:</p> <pre><code>date_string=df1_Data.iat[0,2].strftime(&quot;...
Datetime + String from a Pandas table into a new table. One line of code
python|pandas|string|datetime
0
33
1
72,224,760
72,224,760
1
true
2022-05-13T05:04:33.703Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Datetime + String from a Pandas table into a new table. One line of code<p>I'm a beginner at python. I'm moving specific cells/scalars from one Dataframe to ...
72,218,214
Cypress doesn't take screenshots in CLI mode<p>I'm trying to take a simple screenshot using Cypress, however, it only works in the Cypress GUI (<code>cypress open</code>).<br /> Whenever I run <code>cypress run</code>, it shows that the test succeeded but there's not screenshot saved.</p> <p>This my code:</p> <pre><cod...
<p>Actually, even in the GUI you may get inconsistent behaviour with the code you've provided: you should try to refactor your tests to avoid the use of <code>async</code>.</p> <p>Cypress already does a lot of async stuff itself. See <a href="https://stackoverflow.com/a/49980928/1657610">this answer</a> for more inform...
Cypress doesn't take screenshots in CLI mode
javascript|automation|cypress
0
137
1
72,248,621
72,248,621
1
true
2022-05-12T15:19:03.737Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cypress doesn't take screenshots in CLI mode<p>I'm trying to take a simple screenshot using Cypress, however, it only works in the Cypress GUI (<code>cypress...
72,224,569
Custom Ansible module throws unsupported arguments when passing list as parameter<p>I am writing custom module but when I put the type as list and pass the values like below, I get the error</p> <blockquote> <p>unsupported parameters</p> </blockquote> <p>For type string it is working fine.</p> <p>What is the correct wa...
<p>From what I can see, the error</p> <blockquote> <p>Unsupported parameters for (test_module) module: computers</p> </blockquote> <p>Means that you did not properly feed your expected parameters in the <code>argument_spec</code> of the instantiation of the object <code>AnsibleModule</code>.</p> <p>Here is a MVP to hav...
Custom Ansible module throws unsupported arguments when passing list as parameter
python|ansible
0
121
1
72,225,859
72,225,859
1
true
2022-05-13T04:45:34.070Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Custom Ansible module throws unsupported arguments when passing list as parameter<p>I am writing custom module but when I put the type as list and pass the v...
72,142,514
Parse long String of coords into lat & longs Flutter<p>I receive a <code>String</code> of Lats &amp; Longs from an API call in Json</p> <pre><code>&quot;lineStrings&quot;: [ &quot;[[[-0.301457,51.515017],[-0.288265,51.51014],[-0.280462,51.503057],[-0.267972,51.494627],[-0.254555,51.495148],[-0.245704,51.494917]...
<p>You'll have to do some manually splitting:</p> <pre><code>void main() { '[[[-0.301457,51.515017],[-0.288265,51.51014],[-0.280462,51.503057]]]' .split('],[') .forEach((p) =&gt; print(p.replaceAll('[', '').replaceAll(']', ''))); } </code></pre> <p>prints:</p> <pre><code>-0.301457,51.515017 -0.288265,51.5...
Parse long String of coords into lat & longs Flutter
json|flutter|dart
0
41
2
72,142,942
72,142,942
1
true
2022-05-06T13:45:48.303Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Parse long String of coords into lat & longs Flutter<p>I receive a <code>String</code> of Lats &amp; Longs from an API call in Json</p> <pre><code>&quot;line...
72,235,876
Is there a way of assigning a future variable to another variable without returning null in dart?<p>I was trying to pass a data to a variable that returns future but it returns out to be null even though I'm using async and await. what is I'm missing here ?</p> <pre><code>import 'package:http/http.dart' as http; import...
<p>you are awaiting the constructor, which is not an async function anyway plus you are accessing the variable longtiude which has not been set yet, you need to call the function <code>getWeatherData</code> first</p> <pre><code>final weather = Weather(); await weather.getWeatherData(); print(weather.longtiude); </code>...
Is there a way of assigning a future variable to another variable without returning null in dart?
flutter|dart|async-await|flutter-test|dart-null-safety
0
38
1
72,236,043
72,236,043
1
true
2022-05-13T22:15:47.687Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there a way of assigning a future variable to another variable without returning null in dart?<p>I was trying to pass a data to a variable that returns fu...
72,170,562
compare function not working in a rock paper scissor programm<p>i mad a rockpaperscissors program (the code below) that logs user input, cmoputer choice and then compares to get the result. the comparing part doesn't work for some reason it always logs &quot;It's a tie&quot;, can someone help.</p> <p>the code:</p> <pre...
<p>You should pass <code>playerSelection</code> and <code>computerChoice</code> to the <code>compare</code> function as parameters when you call the function:</p> <pre><code>compare(playerSelection, computerChoice); </code></pre> <p>Also you should return values from the <code>choice()</code>and <code>computerPlay()</c...
compare function not working in a rock paper scissor programm
javascript
0
36
1
72,171,082
72,171,082
1
true
2022-05-09T10:31:19.027Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: compare function not working in a rock paper scissor programm<p>i mad a rockpaperscissors program (the code below) that logs user input, cmoputer choice and ...
72,149,236
Preparing input data for LSTM layer with conditions<p>I have a data frame that looks like the one below:</p> <pre><code>DF.head(20): time var1 var2 prob 12:30 10 12 85 12:31 15 45 85 12:32 18 12 85 12:33 17 26 ...
<p>Your question is not completely clear but the input to the LSTM should be in form:</p> <pre><code>[samples, timesteps, features] </code></pre> <p>For example:</p> <pre><code>inputs = tf.random.normal([32, 10, 8]) </code></pre> <p>So in your case, each sample will have shape (6,2). You can use rolling or simple for t...
Preparing input data for LSTM layer with conditions
python|pandas|numpy|lstm
0
35
1
72,149,281
72,149,281
1
true
2022-05-07T03:23:37.087Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Preparing input data for LSTM layer with conditions<p>I have a data frame that looks like the one below:</p> <pre><code>DF.head(20): time var1 v...
72,157,704
Applying the KFold Cross Validation on nested dictionary<p>Input dictionary</p> <pre><code>new_dict1 = {'ABW':{'ABR':1,'BPR':1,'CBR':1,'DBR':0},'BCW':{'ABR':0,'BPR':0,'CBR':1,'DBR':0}, 'CBW':{'ABR':1,'BPR':1,'CBR':0,'DBR':0},'MCW':{'ABR':1,'BPR':1,'CBR':0,'DBR':1}, 'DBW':{'ABR':0,'BPR':0,'CBR':1,'DBR':0...
<p>You can use something like this:</p> <pre><code>from sklearn.model_selection import KFold df = pd.DataFrame(new_dict1) kf = KFold(n_splits = 2, shuffle = True, random_state = 0) inds = kf.split(df) for train_val_index, test_index in inds: kf = KFold(n_splits = 2, shuffle = True, random_state = 0) inds2 = kf....
Applying the KFold Cross Validation on nested dictionary
python|pandas|dictionary|nested|k-fold
0
99
1
72,158,317
72,158,317
1
true
2022-05-08T02:44:25.480Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Applying the KFold Cross Validation on nested dictionary<p>Input dictionary</p> <pre><code>new_dict1 = {'ABW':{'ABR':1,'BPR':1,'CBR':1,'DBR':0},'BCW':{'ABR':...
72,216,114
How to avoid repetitive parameter names (i.e. nearly the same name as an attribute of the object) when creating an object constructor?<p>I'm VERY new to OOP programming, so I apologize in advance if this is a stupid/irrelevant question</p> <p>Below is a very simple object constructor in JavaScript</p> <pre><code>functi...
<p>Instead of creating multiple parameters, you could have the constructor take only one argument: an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html" rel="nofollow noreferrer">ArrayList</a>. Then you can set the object's private and public properties by pulling them out of the contructor's ...
How to avoid repetitive parameter names (i.e. nearly the same name as an attribute of the object) when creating an object constructor?
javascript|java|object|constructor|dry
0
74
2
72,216,294
72,216,294
1
true
2022-05-12T13:04:40.813Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to avoid repetitive parameter names (i.e. nearly the same name as an attribute of the object) when creating an object constructor?<p>I'm VERY new to OOP ...
72,196,075
RTP timestamp in data packets vs RTCP SR packets<p>I'm trying to understand the difference between the RTP timestamp as it occurs in RTP data packets vs as it is used in RTCP Sender Report (SR) packets.</p> <p>For the RTP timestamp in data packets I have established that:</p> <ul> <li>They are not based on wall-clock t...
<p>The process of sending RTCP report packets is separated from sending the related RTP packet stream(s). With that I mean that they usually won't be sent at the same time. Therefore a sent RTP packet and RTCP report packet will typically contain different RTP timestamp values.</p> <p>As you know a relationship exists ...
RTP timestamp in data packets vs RTCP SR packets
rtp|rtcp
0
139
1
72,196,850
72,196,850
1
true
2022-05-11T06:00:09.467Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: RTP timestamp in data packets vs RTCP SR packets<p>I'm trying to understand the difference between the RTP timestamp as it occurs in RTP data packets vs as i...
72,210,178
Calculate a ratio using SQL incorporating lag values<p>I have a table like this</p> <p><a href="https://i.stack.imgur.com/GP6J4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GP6J4.png" alt="enter image description here" /></a></p> <p>For each day, I need to calculate the ratio of (sum of val for th...
<p>You can combine aggregation with <code>LAG()</code> window function:</p> <pre><code>SELECT Date, SUM(CASE WHEN cat = 4 THEN val END) / LAG(SUM(CASE WHEN cat = 3 THEN val END)) OVER (ORDER BY Date) ratio FROM performance GROUP BY Date; </code></pre> <p>See the <a href="https://dbfiddle.uk/?rdbms=sqlit...
Calculate a ratio using SQL incorporating lag values
mysql|sql|sqlite
0
40
2
72,210,253
72,210,253
1
true
2022-05-12T04:34:45.943Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Calculate a ratio using SQL incorporating lag values<p>I have a table like this</p> <p><a href="https://i.stack.imgur.com/GP6J4.png" rel="nofollow noreferrer...
72,149,049
Update global variable from while loop<p>Having trouble updating my global variable in this shell script. I have read that the variables inside the loops run on a sub shell. Can someone clarify how this works and what steps I should take.</p> <pre><code>USER_NonRecursiveSum=0.0 while [ $lineCount -le $(($USER_Num)) ] ...
<p>That <em>particular</em> style of loop does not run in a sub-shell, it will update the variable just fine. You can see that in the following code, equivalent to yours other than adding things that you haven't included in the question:</p> <pre class="lang-sh prettyprint-override"><code>USER_NonRecursiveSum=0 ((USER...
Update global variable from while loop
bash|shell
0
156
1
72,149,065
72,149,065
1
true
2022-05-07T02:36:50.340Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Update global variable from while loop<p>Having trouble updating my global variable in this shell script. I have read that the variables inside the loops run...
72,044,590
CSS animation on the container instead of on the link<p>I have a CSS border animation on an HTML link. The animation sets on mouse hover and it automatically adjusts to the with of the link. Once the mouse is hover, border animations appear in pairs, left-right + top-down. When the animation is over the borders will fo...
<p>Set the <code>.sparkle</code> to display block so it covers the whole thing.<br /> Also define how your text should break, because if it's a long word, it has no choice to go out of bound by default.</p> <pre class="lang-css prettyprint-override"><code>.sparkle { display: block; word-break: break-all; /*...
CSS animation on the container instead of on the link
html|css|css-animations
0
31
2
72,044,778
72,044,778
1
true
2022-04-28T13:31:32.327Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: CSS animation on the container instead of on the link<p>I have a CSS border animation on an HTML link. The animation sets on mouse hover and it automatically...
72,170,196
using char array in for loop test expression result to extra iteration<p>I was trying to use the below code to iterate on char array elements on my PC.</p> <pre><code>#include &lt;stdio.h&gt; int main(int argc , char *argv[] , char* env[]){ char szBuffer[] = {'A' , 'B' , '4' , 'y' , 't' , 'A' , 'B' , '4' , 'y' , ...
<p>I guess this <strong>Undefined Behavior(UB)</strong> was caused by the stack. You can use this code and run it on different machines and different compilers, even different options when you compile this code. You may get different results.</p> <pre class="lang-c prettyprint-override"><code>#include &lt;stdio.h&gt; ...
using char array in for loop test expression result to extra iteration
c|for-loop|pointers|memory
0
45
1
72,170,360
72,170,360
1
true
2022-05-09T10:01:15.873Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: using char array in for loop test expression result to extra iteration<p>I was trying to use the below code to iterate on char array elements on my PC.</p> <...
72,183,928
Snowflake: Extracting multiple XML tags of same type "together" into one cell (as XML-Variant)<p>We are receiving XML files in our Snowflake-Database. There is a tag that can occur multiple times or no times. We would like to extract this tag as XML (or better convert to JSON) as a Variant while passing the rest into a...
<p>Can you try this one?</p> <pre><code>WITH xmldata AS ( SELECT 1 record_no, Parse_xml( '&lt;container&gt; &lt;contentOne&gt;Here is a 1&lt;/contentOne&gt; &lt;contentTwo&gt;Here is a 2&lt;/contentTwo&gt...
Snowflake: Extracting multiple XML tags of same type "together" into one cell (as XML-Variant)
xml|xml-parsing|snowflake-cloud-data-platform
0
114
1
72,185,386
72,185,386
1
true
2022-05-10T09:34:33.747Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Snowflake: Extracting multiple XML tags of same type "together" into one cell (as XML-Variant)<p>We are receiving XML files in our Snowflake-Database. There ...
72,199,885
Tkinter buttons not stacking on left<p>I want to stack two buttons on the frame's left (NOT MIDDLE).</p> <p>My code:</p> <pre><code>import tkinter as tk from tkinter import Frame, Button, LEFT def pressed(): print(&quot;Button Pressed!&quot;) root = tk.Tk() frame = Frame(root) frame.pack() button1 = Button(fra...
<p>Your frame only packs, without any <code>expand</code> or <code>fill</code> parameter so your buttons are going to stay in the top center because the frame will only expand enough to fit the buttons and no more. So in order for the buttons to appear on the left you would need something like this.</p> <pre><code>imp...
Tkinter buttons not stacking on left
python|tkinter
0
72
1
72,205,351
72,205,351
1
true
2022-05-11T11:02:41.547Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Tkinter buttons not stacking on left<p>I want to stack two buttons on the frame's left (NOT MIDDLE).</p> <p>My code:</p> <pre><code>import tkinter as tk from...
72,181,977
alignment and constraint does not work in SwiftUI<p>I'm just trying to use the segment control which work on both -iPhone and iPad devices. Using SwiftUI, below is the code and screenshot, this code does not work for iPad and different versions of iPhone devices.</p> <pre><code>struct ContentView: View { @State pri...
<p><a href="https://i.stack.imgur.com/AzyXX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AzyXX.png" alt="enter image description here" /></a>Your ipad view is not looking proper as you want Because you did not gave navigationViewStyle to your navigation View.</p> <pre><code> NavigationV...
alignment and constraint does not work in SwiftUI
iphone|ipad|swiftui|alignment
0
52
2
72,182,560
72,182,560
1
true
2022-05-10T07:05:59.943Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: alignment and constraint does not work in SwiftUI<p>I'm just trying to use the segment control which work on both -iPhone and iPad devices. Using SwiftUI, be...
72,074,802
NodeJS setImmediate and private class method<p>So, first time experimenting with <code>setImmediate</code>. It seems it can't run private class methods. Is that so? If yes, can someone explain to me why?</p> <h3>Doesn't work</h3> <blockquote> <p>Private class method as argument to <code>setImmediate</code>. Throws <cod...
<p>If you pass <code>this.looper</code>, then the by the time the function is called, looper will no longer have a correct reference to <code>this</code>, so this breaks on the second iteration.</p> <p>Solve this by using one of the following:</p> <pre><code>setImmediate(this.looper.bind(this)); setImmediate(() =&gt; t...
NodeJS setImmediate and private class method
javascript|node.js|async-await|event-loop|setimmediate
0
27
1
72,074,818
72,074,818
1
true
2022-05-01T07:29:01.227Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: NodeJS setImmediate and private class method<p>So, first time experimenting with <code>setImmediate</code>. It seems it can't run private class methods. Is t...
72,148,476
Extract single value from function that returns multiple values for use with dplyr() pipe<p>I have the following data:</p> <pre><code>date_range &lt;- c('2020-01-31', '2020-02-28', '2020-03-31', '2020-04-30', '2020-05-31', '2020-06-30', '2020-07-31', ...
<p>can you try <code>[[1]]</code> (which will return a number) instead of <code>[1]</code> (which will return a list)?</p>
Extract single value from function that returns multiple values for use with dplyr() pipe
r|dplyr
0
23
1
72,148,555
72,148,555
1
true
2022-05-07T00:07:56.603Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Extract single value from function that returns multiple values for use with dplyr() pipe<p>I have the following data:</p> <pre><code>date_range &lt;- c('202...
72,174,372
Set a ListMoveChange filter when using OptaPlanner Spring Boot starter<p>We are using the OptaPlanner Spring Boot starter to create a vehicle routing problem solver based on the example in the OptaPlanner quickstarts:</p> <p><a href="https://github.com/kiegroup/optaplanner-quickstarts/tree/stable/use-cases/vehicle-rout...
<p>This is a XML solver config using a a swap move selector and a change move selector with move filtering:</p> <pre class="lang-xml prettyprint-override"><code> &lt;constructionHeuristic/&gt; &lt;localSearch&gt; &lt;unionMoveSelector&gt; &lt;changeMoveSelector&gt; &lt;filterClass&gt;org.acme.vehic...
Set a ListMoveChange filter when using OptaPlanner Spring Boot starter
spring-boot|optaplanner
0
49
1
72,184,672
72,184,672
1
true
2022-05-09T15:17:55.100Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Set a ListMoveChange filter when using OptaPlanner Spring Boot starter<p>We are using the OptaPlanner Spring Boot starter to create a vehicle routing problem...
72,112,659
Transform a dataframe using pivot<p>I am trying to transform a dataframe using <code>pivot</code>. Since the column contains duplicate entries, i tried to add a <code>count</code> column following what's suggested <a href="https://stackoverflow.com/a/47152692/8281509">here</a> (Question 10 posted in this answer).</p> <...
<p>As far as you have more then one value associated with 'A' and 'B' you have to aggregate values somehow.</p> <p>So if I've understood your issue right possible solution is the following:</p> <pre><code>#pip install pandas import pandas as pd d = { 't': [0, 1, 2, 0, 1, 2, 0, 2, 0, 1], 'input': [2, 2...
Transform a dataframe using pivot
python-3.x|pandas|dataframe|pivot|pandas-groupby
0
31
1
72,140,734
72,140,734
1
true
2022-05-04T12:04:02.977Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Transform a dataframe using pivot<p>I am trying to transform a dataframe using <code>pivot</code>. Since the column contains duplicate entries, i tried to ad...