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,345,324
Uncaught Error: Call to a member function get() on null (easy photography plugin Wordpress)<p>I have a website with an old theme no longer supported and with a photographic plugin for the portfolio. The backend of the website is a blank page if the plugin is active, when the plugin is not active, all work fine (except ...
<h1>Recursion</h1> <ul> <li>if you want to call same function side of function (recursion).</li> <li><code>$this</code> is use to call recursion in side of class.</li> </ul> <pre><code> private function get_queried_object_id() { $id = (int) $this-&gt;get_queried_object_id(); if ( ! $id ) { $id =...
Uncaught Error: Call to a member function get() on null (easy photography plugin Wordpress)
php|wordpress|compiler-errors|wordpress-theming
1
62
1
72,345,432
72,345,432
0
true
2022-05-23T08:19:24.990Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Uncaught Error: Call to a member function get() on null (easy photography plugin Wordpress)<p>I have a website with an old theme no longer supported and with...
72,356,202
Using R to simulate multiple days<p>Using this function which simulates the number of guests arriving at a resturant over an 8 hour period where lambda = 10 customers per hour, guests = maximum number of guests (=12) that can be served and hours = restaurant open 8 hours a day. How would I go about simulating 5000 days...
<p>Does this achieve what you're looking for:</p> <pre><code>sims &lt;- vector(&quot;list&quot;, length = 5000) sims &lt;- do.call(rbind, lapply(1:5000, function(.) waiting_guests(lambda = 10, guests = 12, hours = 8))) </code></pre> <p>You didn't specify what you want your output to be stored in so in this instance it ...
Using R to simulate multiple days
r|simulation
1
62
1
72,356,235
72,356,235
0
true
2022-05-24T01:03:59.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using R to simulate multiple days<p>Using this function which simulates the number of guests arriving at a resturant over an 8 hour period where lambda = 10 ...
72,315,821
what is the difference between objects.all() and objects.values()?<p>what is the difference between objects.all() and objects.values() ? i used like this</p> <pre><code>queryset = Consulting.objects.values() queryset = queryset.filter(consultant_id=consultant_id) </code></pre> <p>occurs some errors</p> <p>but</p> <pre...
<p>The <code>values()</code> function return dictionary. And the <code>filter</code> function does not exist in dictionary, so error occurs.</p> <p>But <code>all()</code> function returns <code>QuerySet</code> class so <code>filter</code> function can be used. The <code>filter</code> function is defined in the <code>Qu...
what is the difference between objects.all() and objects.values()?
python|django-rest-framework
0
62
1
72,315,941
72,315,941
0
true
2022-05-20T08:30:33.783Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: what is the difference between objects.all() and objects.values()?<p>what is the difference between objects.all() and objects.values() ? i used like this</p>...
72,382,301
Attempting to create objects in loop while reading files and getting error<p>I'm creating a program for school that reads a text file, stores the data into variables, and then creates an object to pass the data into for later use. I'm using a scanner class for file reading at this moment. I am getting an error however....
<p>Your DT class got me wondering, it should be a data class, shouldn't it? But your data class has no instance variables and also only provides static methods to set the content. The keyword static specifies a method as a class method, meaning that it can only be accessed over DT.methodName() and not over the object, ...
Attempting to create objects in loop while reading files and getting error
java|java.util.scanner|filereader|java.nio.file
-1
62
1
72,382,629
72,382,629
0
true
2022-05-25T18:01:44.257Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Attempting to create objects in loop while reading files and getting error<p>I'm creating a program for school that reads a text file, stores the data into v...
72,378,165
is there a way i can animate a polyline?<p>Something similar to a pulsing ring around a marker. What I want to achieve is this... I have many polylines all having Lat/Lng. At a time t, a user can decide to pick any polyline of their choosing. I get their current real-time location coordinates via Bluetooth. I want to u...
<p>Here's a simple example - a method which takes a <code>Polyline</code> instance and a handler (must be on main looper) and begins a repeating update to the polyline width.</p> <p>(Added the Kotlin)</p> <pre><code>private lateinit var polyline: Polyline; private lateinit var handler : Handler; override fun onMapRead...
is there a way i can animate a polyline?
android-studio|kotlin|google-maps|polyline
0
62
1
72,381,497
72,381,497
0
true
2022-05-25T13:01:23.490Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: is there a way i can animate a polyline?<p>Something similar to a pulsing ring around a marker. What I want to achieve is this... I have many polylines all h...
72,285,780
How to create a common shadow for multiple strokes in a single canvas?<p>I'm trying to draw multiple strokes on a canvas and I'd like them to have a common shadow. Currently the cast shadows on one another which is not what I want.</p> <h2>Ideal result</h2> <p><img src="https://i.stack.imgur.com/Xnczf.jpg" alt="ideal r...
<p>You can use <code>Path2D</code> and add all your segments to one path, then do the stroke to that path.</p> <p>Here is your jsfiddle using ctx.filter with my recommendation.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="sni...
How to create a common shadow for multiple strokes in a single canvas?
javascript|canvas
1
62
2
72,293,529
72,293,529
0
true
2022-05-18T08:35:54.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to create a common shadow for multiple strokes in a single canvas?<p>I'm trying to draw multiple strokes on a canvas and I'd like them to have a common s...
72,345,140
Change horizontal line chart to vertical line<p>I'm using chartjs to generate a line chart with 2 datasets with 2 different data label on the x-axis.</p> <p>Currently My chart looks like this below <a href="https://i.stack.imgur.com/N4Voj.jpg" rel="nofollow noreferrer">current horizontal line chart</a></p> <p>I want to...
<p>You need to adjust your data, you still provide your data as if your x axis is the index axis.</p> <p>To solve your issue change the x and y keys in your data object and it will work fine:</p> <pre class="lang-js prettyprint-override"><code>data: [{ y: '2022-03-01', x: 3 }, { y: '2022-03-02', x: ...
Change horizontal line chart to vertical line
javascript|html|chart.js
1
62
1
72,345,381
72,345,381
0
true
2022-05-23T08:03:20.573Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Change horizontal line chart to vertical line<p>I'm using chartjs to generate a line chart with 2 datasets with 2 different data label on the x-axis.</p> <p>...
72,252,714
Here API - v7 / v8 transaction allowance<p>I currently use Here API v7 and get a free 250k transaction allowance per month which I use for getting route directions.</p> <p>I see that v7 is now discontinued and I need to migrate to v8.</p> <p>Looking at their website, there is no mention of the 250k transactions anymore...
<p>Yes, if you continue to use the existing developer portal account, you will still get a free 250k transaction allowance per month for all location services including Routing V8 API. The daily 1k allowance applies to the account in platform and subscribes to the Limited Plan.</p>
Here API - v7 / v8 transaction allowance
here-api
0
62
1
72,269,859
72,269,859
0
true
2022-05-15T22:50:45.793Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Here API - v7 / v8 transaction allowance<p>I currently use Here API v7 and get a free 250k transaction allowance per month which I use for getting route dire...
72,242,147
jQuery setInterval by 5 seconds and Increment by previous interval<p>I am displaying the jQuery modal after 5 seconds using <code>setInterval</code>. I want to increment the number of seconds by the previous interval value.</p> <p>Let's say the page loads and the modal appears after 5 seconds, next time modal should a...
<p>I think <code>setInterval()</code> is not the right tool. I'd go with <code>setTimeout()</code>, with an <em><a href="https://github.com/kylefox/jquery-modal" rel="nofollow noreferrer">event</a></em> that fires when the modal is closed and a <em><strong>global counter</strong></em> that doubles its value each time y...
jQuery setInterval by 5 seconds and Increment by previous interval
jquery
0
62
1
72,242,532
72,242,532
1
true
2022-05-14T16:33:28.087Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: jQuery setInterval by 5 seconds and Increment by previous interval<p>I am displaying the jQuery modal after 5 seconds using <code>setInterval</code>. I want ...
72,248,079
React Redux - Dynamically dispatch function name<p>I am currently working on a project in React Native where I use react-redux.</p> <p>Now I have the situation in which I would like to call the dispatch hook with a dynamic input. However it just do not work but I get no error message in the console.</p> <p>Some remarks...
<p>you can't call a function from a string unless you store them in some object that do the translation</p> <p>like this</p> <pre><code>import { resetCompleteStoreState, setAdressCity, setAdressZipcode, setEmail, setName, setPhone, } from &quot;../../../app/redux/features/auth/userSlice&quot;; ... more Cod...
React Redux - Dynamically dispatch function name
javascript|react-native|react-redux|dynamic-programming
0
62
1
72,248,205
72,248,205
1
true
2022-05-15T12:03:58.540Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React Redux - Dynamically dispatch function name<p>I am currently working on a project in React Native where I use react-redux.</p> <p>Now I have the situati...
72,249,237
ref2.orderByChild is not a function<p>I'm trying to delete some data from firebase realtime database after some time but gives me this error: <code>Uncaught TypeError: ref2.orderByChild is not a function</code></p> <p>this is the code:</p> <pre><code>import { initializeApp } from &quot;https://www.gstatic.com/firebasej...
<p>There's a top level function <code>query()</code> in the new Modular SDK to build a Query. Similarly, <code>orderByChild()</code> and other query constraints are also a function. Try refactoring the code as shown below:</p> <pre><code>var old = query(ref2, orderByChild('timestamp'), endAt(cutoff), limitToLast(1)); ...
ref2.orderByChild is not a function
javascript|firebase|firebase-realtime-database
1
62
2
72,249,360
72,249,360
1
true
2022-05-15T14:36:44.837Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ref2.orderByChild is not a function<p>I'm trying to delete some data from firebase realtime database after some time but gives me this error: <code>Uncaught ...
72,256,707
Why is the output 321 instead of 212?<pre><code>#include &lt;stdio.h&gt; int main() { int i; int j; int k; for(i = 1, j = 0, k = 3 ; i &lt;= 5, j &lt;= 6, k &gt; 1 ;i++, j++, k--); { printf(&quot;%d%d%d&quot;, i, j, k); } } </code></pre> <p>Why is this program printing 321 instead of 212? I get 321...
<p>That's because you have a semicolon at the end of the <code>for</code> loop, so the code runs essentially like this:</p> <pre class="lang-c prettyprint-override"><code>// first you increment i,j and decrement k until k is 1, so twice for(i = 1, j = 0, k = 3 ; i &lt;= 5, j &lt;= 6, k &gt; 1 ;i++, j++, k--) {} // then...
Why is the output 321 instead of 212?
c
-2
62
2
72,256,762
72,256,762
1
true
2022-05-16T09:08:33.317Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is the output 321 instead of 212?<pre><code>#include &lt;stdio.h&gt; int main() { int i; int j; int k; for(i = 1, j = 0, k = 3 ; i &lt;= 5, j...
72,257,841
Tmux truncate pane current path<p>I want to show current pan's path in the window status but as <code>pan_current_path</code> returns absolute path then it can be very large. So the question is how to truncate it like this:</p> <pre><code>PWD = /Users/SomeUser/SomeFolder/SomeFolder2/SomeFolder3 OUTPUT = .../SomeFolder2...
<p>At the end I simply wrote the bash script</p> <pre class="lang-sh prettyprint-override"><code>#!/bin/sh path=&quot;$1&quot; fixed_length=$2 if (( ${#path} &gt; $fixed_length )); then path=$(echo &quot;$path&quot; | tail -c &quot;$fixed_length&quot;) if ! [[ &quot;$path&quot; =~ ^//* ]]; then path=&qu...
Tmux truncate pane current path
bash|tmux
0
62
1
72,268,829
72,268,829
1
true
2022-05-16T10:34:26.780Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Tmux truncate pane current path<p>I want to show current pan's path in the window status but as <code>pan_current_path</code> returns absolute path then it c...
72,269,200
How to get the 2nd record for a customer purchase?<p>I'm working on a customers database and I want to get all data for their second purchase (for all of our customer weather they have 2 or more purchases). For example:</p> <pre><code>Customer_ID Order_ID Order_Date 1 259 09/05/2020 ...
<p>You can use a ROW_NUMBER and filter using QUALIFY clause:</p> <pre><code>select * from table qualify row_number() over(partition by customer_id order by order_date) = 2; </code></pre>
How to get the 2nd record for a customer purchase?
sql|database|snowflake-cloud-data-platform|analysis
1
62
2
72,269,353
72,269,353
1
true
2022-05-17T06:38:24.643Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get the 2nd record for a customer purchase?<p>I'm working on a customers database and I want to get all data for their second purchase (for all of our...
72,272,291
How to keep the device awake?<p>I am using a volley library in my app.and a json placeholder url for api call.i am measuring the time for response to come after an api call.i also want to keep the device or channel awake.which are the ways to implemnt this.</p> <p><strong>Main Activity Class</strong> -I tried to use Fl...
<p><strong>Try this</strong></p> <p>Only add this in your Activity</p> <pre><code>import android.view.WindowManager; @Override public void onResume() { super.onResume(); getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); } @Override public void onPause() { ...
How to keep the device awake?
android|api
0
62
3
72,278,288
72,278,288
1
true
2022-05-17T10:23:00.077Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to keep the device awake?<p>I am using a volley library in my app.and a json placeholder url for api call.i am measuring the time for response to come af...
72,283,046
Getting active background color using useRef<p>Given the css</p> <pre><code>.App { font-family: sans-serif; text-align: center; } .App:hover { background-color: red; } </code></pre> <p>and jsx code</p> <pre><code>import &quot;./styles.css&quot;; import { useRef } from &quot;react&quot;; export default function A...
<p><code>.style</code> only tells you the inline style on the element, and this div has no inline style. If you want to know the style that results when combining inline style and css selectors, you need <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle" rel="nofollow noreferrer">getComp...
Getting active background color using useRef
html|css|reactjs|jsx
2
62
2
72,283,089
72,283,089
1
true
2022-05-18T04:01:22.230Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting active background color using useRef<p>Given the css</p> <pre><code>.App { font-family: sans-serif; text-align: center; } .App:hover { backgrou...
72,280,738
Best Way to Retrieve Actual Concrete Object Of a Certain Type From a Json-String in C#?<p>I'm currently struggling with determining which types a json-string deserializer gives back in C#. I've tried to make a base TypeWHATEVER class where TypeX and TypeY inherited from them, but still whenever I try to retrieve the ac...
<p>Ok, I think there are many things to comment. Let's begin:</p> <p>In your constructor with 3 parameters, use <code>this</code> instead of <code>base</code>. Imagine this situation:</p> <pre><code>public ChildB(string id, string message) : base(id, message) { this.FullName = $&quot;{id} {message}&quot;; } p...
Best Way to Retrieve Actual Concrete Object Of a Certain Type From a Json-String in C#?
c#|visual-studio|generics|types
0
62
1
72,286,021
72,286,021
1
true
2022-05-17T21:14:35.880Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Best Way to Retrieve Actual Concrete Object Of a Certain Type From a Json-String in C#?<p>I'm currently struggling with determining which types a json-string...
72,303,628
image resize in bootstrap<p>I am new to html, css, &amp; bootstrap. I am having a problem with an image with a class of card-img-top. I can t figure out why it doesn t maintain the pre-height of the col-sm-4 when I insert my image. The image has the size:339x508. It gets larger in height from others. Here is the code:<...
<pre><code>.card-img-top { height: 250px; } </code></pre> <p>You can set the height of your image like this.</p>
image resize in bootstrap
html|css|bootstrap-4
1
62
2
72,304,133
72,304,133
1
true
2022-05-19T11:20:32.110Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: image resize in bootstrap<p>I am new to html, css, &amp; bootstrap. I am having a problem with an image with a class of card-img-top. I can t figure out why ...
72,312,289
Why can't while(*s++ = *t++); be compiled after checking "out-of-bounds"?<p>I am currently learning &quot;pointers by following the book &quot;The C Programming Language&quot; by Brian and Dennis.</p> <p>I failed to compile:</p> <pre><code>#include &lt;stdio.h&gt; void _strcpy(char *s, char *t) { while(*s++ = *t++...
<p>This is not an error but a warning.</p> <p>Such a warning is meant to catch logical errors like this:</p> <pre><code>int found=0; while (found=0) { // do something if (abc) { found = 1; } } </code></pre> <p>Where an assignment was used when an equality comparison should have been used.</p> <p>In ...
Why can't while(*s++ = *t++); be compiled after checking "out-of-bounds"?
c|pointers|while-loop|conditional-statements
0
62
2
72,312,310
72,312,310
1
true
2022-05-20T00:14:53.603Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why can't while(*s++ = *t++); be compiled after checking "out-of-bounds"?<p>I am currently learning &quot;pointers by following the book &quot;The C Programm...
72,311,950
Viewing js enabled page in UWP Webview<p>Hi I am trying to open a webpage and display it's contents within a UWP Webview.</p> <p>I am presuming that I doing something wrong as the topic is quite new to me.</p> <p>My main routine:</p> <pre><code>WebViewSettings webSettings = WebviewControll.Settings; webSettings.IsJavaS...
<p>Please take a look at the new <a href="https://docs.microsoft.com/en-us/microsoft-edge/webview2/" rel="nofollow noreferrer">WebView2 control</a>. Use the <code>WebView2</code> control instead of the old <code>WebView</code> control. Using the <code>WebView2</code> control, I could see the html page is shown correctl...
Viewing js enabled page in UWP Webview
uwp
0
62
1
72,312,869
72,312,869
1
true
2022-05-19T23:05:06.817Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Viewing js enabled page in UWP Webview<p>Hi I am trying to open a webpage and display it's contents within a UWP Webview.</p> <p>I am presuming that I doing ...
72,311,096
google cloud secret management<p>im comming here with some basic question how is the best way to import secrets from google cloud management with using google cloud run or is there any chance to import to application.yaml as variable ? or it is only available for kubernetes ? Im using spring boot java application. I am...
<p>Based on @DazWilkin you can try to do a reading and <a href="https://cloud.google.com/secret-manager/docs/create-secret" rel="nofollow noreferrer">quickstart</a> on how you can apply Google Cloud Secret Manager. The link shared includes <a href="https://cloud.google.com/secret-manager/docs/best-practices" rel="nofol...
google cloud secret management
java|spring-boot|google-cloud-platform
0
62
1
72,313,358
72,313,358
1
true
2022-05-19T21:08:39.077Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: google cloud secret management<p>im comming here with some basic question how is the best way to import secrets from google cloud management with using googl...
72,312,280
mongodb get all unique values for each unique field<p>I am looking to query a collection of property prices on mongodb. I would like to return the unique prices only. There are multiple entries for each property, but I want to return only the unique prices associated with the <code>propertyID</code>.</p> <p>How would I...
<p>You can achieve this with simple aggregation pipelines</p> <pre><code>{ $group:{ &quot;_id&quot;: &quot;$propertyID&quot;, //Group by property ID, &quot;uniquePrices&quot; : { &quot;$addToSet&quot; : &quot;$price&quot; //It will give you propertyID wise unique prices } } } </code></pre>
mongodb get all unique values for each unique field
mongodb|mongoose|mongodb-query
0
62
1
72,313,440
72,313,440
1
true
2022-05-20T00:13:08.460Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: mongodb get all unique values for each unique field<p>I am looking to query a collection of property prices on mongodb. I would like to return the unique pri...
72,327,653
dumping YAML with tags as JSON<p>I know I can use ruamel.yaml to load a file with tags in it. But when I want to dump without them i get an error. Simplified example :-</p> <pre class="lang-py prettyprint-override"><code>from ruamel.yaml import YAML from json import dumps import sys yaml = YAML() data = yaml.load( &qu...
<p>You get the error because the neither the safe dumper (pure or not), nor JSON, do know about the <code>ruamel.yaml</code> internal types that preserve comments, tagging, block/flow-style, etc.</p> <p>Dumping as YAML, you could register these types with alternate dump methods. As JSON this is more complex as AFAIK y...
dumping YAML with tags as JSON
json|yaml|tags|converters|ruamel.yaml
1
62
1
72,328,050
72,328,050
1
true
2022-05-21T07:46:19.827Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: dumping YAML with tags as JSON<p>I know I can use ruamel.yaml to load a file with tags in it. But when I want to dump without them i get an error. Simplified...
72,342,474
OneToOne connection between User and Profile in Django<p>I am creating an app in django in which after user model is created, via the signal I create a profile:</p> <pre><code>from django.contrib.auth.models import User class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) @receiv...
<p>When you are creating a separate model linked in such a way, you can add primary_key = True to your OneToOne field eg,</p> <pre><code>user = models.OneToOneField(User, on_delete=models.CASCADE, primary_key=True) </code></pre> <p>This will ensure you can use the same PK value for the User and the Profile.</p>
OneToOne connection between User and Profile in Django
python|django|registration
0
62
2
72,343,046
72,343,046
1
true
2022-05-23T01:41:05.760Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: OneToOne connection between User and Profile in Django<p>I am creating an app in django in which after user model is created, via the signal I create a profi...
72,349,208
How to source AWS credentials profile from .aws/credentials for aws cli<p>I have the following programmatic access credentials for AWS in my <code>.aws/credentials</code> file.</p> <p>how to specify which credentials to use for AWS cli commands? and verify which credentials are being used?</p> <p><a href="https://i.sta...
<p>To verify:</p> <pre><code>AWS_PROFILE=amplify aws sts get-caller-identity # OR aws sts get-caller-identity --profile amplify </code></pre> <p>The same to run commands:</p> <pre><code>AWS_PROFILE=default aws eks --region ....... # OR aws eks --region ....... --profile default </code></pre>
How to source AWS credentials profile from .aws/credentials for aws cli
amazon-web-services|amazon-iam
1
62
1
72,349,326
72,349,326
1
true
2022-05-23T13:15:01.717Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to source AWS credentials profile from .aws/credentials for aws cli<p>I have the following programmatic access credentials for AWS in my <code>.aws/crede...
72,342,549
Outputting the correct balance from payments in each row<p>This is probably simple. But I’m at a standstill. I am using Coldfusion 2021 on a Windows PC. I am trying to Output data that has the sum of payments made by a couple of individuals. This sum of payments is subtracted from a goal number of $425. When one of ou...
<p>Because you have a hard-coded activityCost and activityDeposit (or obtained from elsewhere), there's no need to send them to the database at all. Just get the SUM() of the payments, then in your single-row-per-group output, do the math there, like:</p> #activityCost - activityDeposit - expense.balance# <p>And expen...
Outputting the correct balance from payments in each row
mysql|coldfusion
-2
62
2
72,351,633
72,351,633
1
true
2022-05-23T01:59:04.737Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Outputting the correct balance from payments in each row<p>This is probably simple. But I’m at a standstill. I am using Coldfusion 2021 on a Windows PC. I am...
72,358,284
Can we access the plist inside a framework target from the application?<p>I have embedded a framework inside a project. I would like to keep certain congifuration specific to the framework target inside a plist withing the framework target.</p> <p>Is there any way I can access the plist when running the application ? B...
<p>You have to access for resources via <code>Bundle</code>. In your Framework define something like this:</p> <pre class="lang-swift prettyprint-override"><code>private class BundleClass {} extension Bundle { public static var myFramework: Bundle { Bundle(for: BundleClass.self) } } </code></pre> <p>an...
Can we access the plist inside a framework target from the application?
ios|swift|bundle|target|info.plist
0
62
1
72,358,491
72,358,491
1
true
2022-05-24T06:44:16.357Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can we access the plist inside a framework target from the application?<p>I have embedded a framework inside a project. I would like to keep certain congifur...
72,363,271
Laravel 8.6 login using url parameters through middleware<p>My page in the application is embeded in another application. To get to the embeded page username and password are passed using the URL like <code>&amp;user=foo&amp;password=bar</code>. The route to this page goes through a <code>middleware('loginViaApp')</cod...
<p>You can use this logic for that, just modify it according to your need and use it in middleware</p> <pre><code>$user = User::where('username',$username)-&gt;first(); if(null === $user ){ return redirect()-&gt;route('login'); } $passwordPass = Hash::check($password, $user-&gt;password); if($passwordPass){ aut...
Laravel 8.6 login using url parameters through middleware
laravel|authentication|url|middleware
0
62
1
72,363,475
72,363,475
1
true
2022-05-24T12:53:46.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Laravel 8.6 login using url parameters through middleware<p>My page in the application is embeded in another application. To get to the embeded page username...
72,360,508
Creating an XML response using node JS from JSON<p>I am looking to create an XML schema from an array in the object. The length of the array varies and based on that I would like to create a logic that generates the response. Below is the format and example.</p> <pre><code>Object - Exact &quot;Data&quot;: [{ ...
<p>It's a little complicated, given your expected output, but doable, using a template, json parser, DOMParser and querySelector:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><cod...
Creating an XML response using node JS from JSON
javascript|node.js|json|xml|data-structures
1
62
1
72,367,374
72,367,374
1
true
2022-05-24T09:31:44.810Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Creating an XML response using node JS from JSON<p>I am looking to create an XML schema from an array in the object. The length of the array varies and based...
72,370,967
Create triangle and square pattern with input js<p>I started creating a program in where an input from a user is needed, then, depending on the input, will display either a right triangle or square (triangle for even, square for odd) The pattern will be in descending order starting from the input number. However, my co...
<p>you have some errors over your code , first you don't see any content because you never create a dom element and append to html ,then you don't read the value of the input, your loops have a some errors of undefined variables,and put always your js script at the end of the body, because you need to all html element...
Create triangle and square pattern with input js
javascript|html
1
62
1
72,371,661
72,371,661
1
true
2022-05-25T01:03:51.890Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Create triangle and square pattern with input js<p>I started creating a program in where an input from a user is needed, then, depending on the input, will d...
72,379,640
ResizeObserver elements are always empty<p>I want to be able to use ResizeObserver on multiple elements on my page, and each will trigger the same function call (on the resized element). But sadly instead of DOM objects, the function just seems to receive empty objects.</p> <p>Given one or more...</p> <pre><code>&lt;di...
<p>You can access the element which is being observed via <a href="https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/target" rel="nofollow noreferrer"><code>entry.target</code></a>:</p> <pre class="lang-js prettyprint-override"><code>const resizeObserver = new ResizeObserver((entries) =&gt; { for (...
ResizeObserver elements are always empty
javascript|json|stringify|resize-observer
0
62
1
72,382,464
72,382,464
1
true
2022-05-25T14:36:10.520Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ResizeObserver elements are always empty<p>I want to be able to use ResizeObserver on multiple elements on my page, and each will trigger the same function c...
72,382,468
Regex to remove time zone stamp<p>In Google Sheets, I have time stamps with formats like the following:</p> <pre><code>5/25/2022 14:13:05 5/25/2022 13:21:07 EDT 5/25/2022 17:07:39 GMT+01:00 </code></pre> <p>I am looking for a regex that will remove everything after the time, so the desired output would be:</p> <pre><co...
<p>You can use</p> <pre><code>=REGEXREPLACE(A1, &quot;^(\S+\s\S+).*&quot;, &quot;$1&quot;) =REGEXREPLACE(A1, &quot;^([\d/]+\s[\d:]+).*&quot;, &quot;$1&quot;) </code></pre> <p>See the <a href="https://regex101.com/r/jbPITw/1" rel="nofollow noreferrer">regex demo #1</a> / <a href="https://regex101.com/r/jbPITw/2" rel="no...
Regex to remove time zone stamp
regex|google-sheets|python-datetime
3
62
3
72,382,522
72,382,522
1
true
2022-05-25T18:17:38.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Regex to remove time zone stamp<p>In Google Sheets, I have time stamps with formats like the following:</p> <pre><code>5/25/2022 14:13:05 5/25/2022 13:21:07 ...
72,378,397
about Plotly (how can I post it for my github pages?)<p>I usually write files on ipynb, convert them into markdown files using nbconvert, and post them on my GitHub page. my theme is minimal-mistakes.</p> <p>I want to post the contents of the data visualization using plotly recently, but when I converted it to Markdown...
<p>First, to use plotly graphs on the GitHub page, you must sign up for plotly and issue an api key.</p> <pre class="lang-py prettyprint-override"><code>import plotly.express as px import chart_studio </code></pre> <p>set your api</p> <pre><code>chart_studio.tools.set_credentials_file(username=username, api_key=api_key...
about Plotly (how can I post it for my github pages?)
plotly
0
62
1
72,388,865
72,388,865
1
true
2022-05-25T13:17:50.793Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: about Plotly (how can I post it for my github pages?)<p>I usually write files on ipynb, convert them into markdown files using nbconvert, and post them on my...
72,792,752
How to chain explode and struct field selection?<p>The dataframe:</p> <pre class="lang-py prettyprint-override"><code>from pyspark.sql import functions as F df = spark.createDataFrame([([(1, 2), (3, 4)],)], 'col_name array&lt;struct&lt;c1:int,c2:int&gt;&gt;') df.show() # +----------------+ # | col_name| # +----...
<p>Use the magic inline</p> <pre><code>df.selectExpr('inline(col_name)').show() +---+---+ | c1| c2| +---+---+ | 1| 2| | 3| 4| +---+---+ </code></pre>
How to chain explode and struct field selection?
apache-spark|pyspark|struct|apache-spark-sql|explode
0
62
1
72,793,819
72,793,819
1
true
2022-06-28T20:24:59.630Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to chain explode and struct field selection?<p>The dataframe:</p> <pre class="lang-py prettyprint-override"><code>from pyspark.sql import functions as F ...
72,804,828
Flutter Stack Widget inside ListView widget?<p>I am using the Stack widget in my app and it is working great but now I have a problem with wrapping this Stack widget inside ListView Widget.</p> <p>I am getting error</p> <pre><code>RenderBox was not laid out: RenderPointerListener#20d10 relayoutBoundary=up7 NEEDS-PAINT ...
<p>Both widgets are getting infinite height, you can wrap <code>stackW()</code> with SizedBox widget.</p> <pre class="lang-dart prettyprint-override"><code>body: LayoutBuilder( builder: (context, constraints) =&gt; ListView( scrollDirection: Axis.vertical, children: [ SizedBox( height: constrain...
Flutter Stack Widget inside ListView widget?
android|flutter|flutter-layout|flutter-dependencies
0
62
1
72,804,901
72,804,901
1
true
2022-06-29T16:25:29.233Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flutter Stack Widget inside ListView widget?<p>I am using the Stack widget in my app and it is working great but now I have a problem with wrapping this Stac...
72,805,694
Python: Create Dataframe where values match the column names<p>I would like to bring together 2 lists in one dataframe.</p> <p>The first list I have contains various dates.</p> <pre><code>my_dates = ['20/12/2024', '31/08/2022', '19/08/2022', '21/06/2024'] </code></pre> <p>The second list is a list of list that contains...
<p>here is an approach that creates each stock as it's own pandas series and then uses <code>pd.concat</code> to make them into a dataframe. it then uses the <code>my_dates</code> to select which dates to use and transposes the table to match your desired output</p> <pre><code>import pandas as pd my_dates = ['20/12/20...
Python: Create Dataframe where values match the column names
python|pandas|dataframe|header|columnname
3
62
2
72,805,877
72,805,877
1
true
2022-06-29T17:39:13.427Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python: Create Dataframe where values match the column names<p>I would like to bring together 2 lists in one dataframe.</p> <p>The first list I have contains...
72,801,462
Black space at the bottom with targetSdkVersion 22 on a device with Android 11<p>Following bug occurs on a fairly new Motorola Defy with Android 11:</p> <p>I have a weird black bottom bar in my app when my <code>targetSdkVersion</code> is 22 which disappears if I set 24 as <code>targetSdkVersion</code>.</p> <p><a href=...
<p>The system assumes that your application cannot handle non standard aspect ratio and uses a 16:9 letterbox.</p> <p>This can be controlled with <a href="https://developer.android.com/guide/topics/manifest/activity-element#resizeableActivity" rel="nofollow noreferrer">resizeableActivity</a> :</p> <pre><code>&lt;activi...
Black space at the bottom with targetSdkVersion 22 on a device with Android 11
android|android-layout|user-interface|android-appcompat|targetsdkversion
1
62
1
72,807,315
72,807,315
1
true
2022-06-29T12:29:03.120Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Black space at the bottom with targetSdkVersion 22 on a device with Android 11<p>Following bug occurs on a fairly new Motorola Defy with Android 11:</p> <p>I...
72,809,528
How to set input focus border color with css?<p>With this CSS setting</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;style&gt; input:focus { border-color: red; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;h1&gt;Demo of the :focus selector&lt;/h1&gt; &lt;...
<p>You're looking to modify the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/outline" rel="nofollow noreferrer"><code>outline</code></a> property:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lan...
How to set input focus border color with css?
html|css
0
62
1
72,809,613
72,809,613
1
true
2022-06-30T01:54:04.087Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to set input focus border color with css?<p>With this CSS setting</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;style&gt; ...
72,811,144
How to make menu like this in flutter<p><a href="https://i.stack.imgur.com/GokKL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GokKL.jpg" alt="enter image description here" /></a></p> <p>Im new in flutter stuff can anyone help me to design layout list menu like this in flutter</p> <blockquote> <p>L...
<p>Use <code>ListTile</code> widget for making this UI. Try below example.</p> <pre><code>ListTile( leading: Text( 'Tipe Akun', ), trailing: Wrap( spacing: 12, children: &lt;Widget&gt;[ Text(&quot;Full Service&quot;), Icon(Icons.arrow_forward...
How to make menu like this in flutter
flutter|flutter-layout
-1
62
1
72,811,319
72,811,319
1
true
2022-06-30T06:24:08.167Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make menu like this in flutter<p><a href="https://i.stack.imgur.com/GokKL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GokKL.jpg...
72,827,589
What's the point of creating classes and self in python?<p>What's the point of creating classes and self in python? Like:</p> <pre><code>class ThisIsClass(self): def Func(): self.var+=1 ThisIsClass() </code></pre> <p>Is it necessary to use them?</p>
<p>It becomes necessary to pass <code>self</code> argument to the functions of your class. however, your code has several problems like the initialization of <code>var</code> variable. You need a constructor <code>__init__</code> to create the variable, after that, you will be able to modify it:</p> <pre><code>class Th...
What's the point of creating classes and self in python?
python|class|self
0
62
2
72,827,635
72,827,635
1
true
2022-07-01T10:01:25.693Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What's the point of creating classes and self in python?<p>What's the point of creating classes and self in python? Like:</p> <pre><code>class ThisIsClass(se...
72,826,992
WPF - MVVM - How does the ViewModel set its Properties?<p>My question is, where exactly do I call my &quot;GetBookInformation()&quot; Method and assign its return value to the ViewModel Property &quot;Books&quot;? Do I do all of this inside of the ViewModel constructor or do I do call the method inside of the view clas...
<p>My understanding is that your View shouldn't &quot;know&quot; anything about underlying data sources. Just how to display them. I suggest doing it like this (in VM):</p> <pre><code>public List&lt;BookInformation&gt; Books { get { return new Query().GetBookInformationData(); } } </code></pre> <p>or</p> <pre><cod...
WPF - MVVM - How does the ViewModel set its Properties?
wpf|mvvm|view|model|viewmodel
0
62
1
72,828,535
72,828,535
1
true
2022-07-01T09:13:36.463Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: WPF - MVVM - How does the ViewModel set its Properties?<p>My question is, where exactly do I call my &quot;GetBookInformation()&quot; Method and assign its r...
72,833,432
Importing Bootstrap js files inside HTML5<h1>Question</h1> <p>How can I import Bootstrap from my node_modules/ into a js file without using node/express?</p> <h1>Introduction</h1> <p>I have installed Bootstrap5 in my Yarn monorepo because I don't wanna use CDNs, and I think is more flexible to configure with SASS if I ...
<p>You might download the bootstrap file from the CDN server and serve it with the rest of your project. That way you aren't relying on a CDN or node/node modules.</p>
Importing Bootstrap js files inside HTML5
javascript|html|css|twitter-bootstrap
0
62
1
72,833,644
72,833,644
1
true
2022-07-01T18:40:17.880Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Importing Bootstrap js files inside HTML5<h1>Question</h1> <p>How can I import Bootstrap from my node_modules/ into a js file without using node/express?</p>...
72,832,866
How do I run an existing Django file?<p>I downloaded a folder with multiple python files in the form of a Django project for a course and I am unable to run it. Usually, when you create a Django project it is created within the terminal with the line <code>django-admin startproject web_project .</code> and then <code>p...
<p>At first make sure you opened command prompt or terminal in right directory(in projects directory) when you are running the runserver command. If you are on windows open the project folder(the folder that contains files like manage.py), then right click and press open PowerShell window here.</p>
How do I run an existing Django file?
python|python-3.x|django|server|terminal
0
62
2
72,834,014
72,834,014
1
true
2022-07-01T17:36:31.870Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I run an existing Django file?<p>I downloaded a folder with multiple python files in the form of a Django project for a course and I am unable to run ...
72,837,606
Replace all occurrences of word apart from the first occurrence in a string with empty space in R programming<pre class="lang-r prettyprint-override"><code>Stu_stuff &lt;- c(&quot; STUDENTS ARE GOOD STUDENTS, BUT THERE ARE ALSO BAD STUDENTS&quot;) </code></pre> <ol> <li><code>str_replace_all(str_replace(&quot;STUDENTS&...
<p>Option to remove twice the 2th occurrence of the word:</p> <pre class="lang-r prettyprint-override"><code>Stu_stuff &lt;- c(&quot; STUDENTS ARE GOOD STUDENTS, BUT THERE ARE ALSO BAD STUDENTS&quot;) n &lt;- 2 output &lt;- sub(paste0(&quot;((?:STUDENTS.*?){&quot;,n-1,&quot;})STUDENTS&quot;), &quot;\\1&quot;, Stu_stuf...
Replace all occurrences of word apart from the first occurrence in a string with empty space in R programming
r|stringr
2
62
2
72,837,647
72,837,647
1
true
2022-07-02T08:25:45.383Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Replace all occurrences of word apart from the first occurrence in a string with empty space in R programming<pre class="lang-r prettyprint-override"><code>S...
72,820,941
Golang function to delay sidecar pod<p>I'm trying to delay a sidecar container through a golang function. As far as I know there is no native k8s tool for that.</p> <p>So I just want to check if the main container is serving the URL as expected before executing the code that process some data in the sidecar container.<...
<blockquote> <p>Am I correct if i specify &quot;containername:6062&quot; for the netDialTimeout?</p> </blockquote> <p>All containers in a pod share the same network stack. So they can communicate via localhost. Container names do not work.</p> <p>So, use <code>localhost:6062</code> instead.</p>
Golang function to delay sidecar pod
go|containers
1
62
1
72,837,753
72,837,753
1
true
2022-06-30T19:12:59.173Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Golang function to delay sidecar pod<p>I'm trying to delay a sidecar container through a golang function. As far as I know there is no native k8s tool for th...
72,842,859
How can I find the name of the person ranked 1?<p>What I'm trying to do is find the name of the person who is ranked number 1 in the table shown below. I have tried <code>=LOOKUP</code> and <code>=VLOOKUP</code> but I get an error saying that a result can't be found, even though it's obviously there. I assume that I'm ...
<h2>Answer</h2> <p>The following formula should produce the behaviour you desire:</p> <pre><code>=INDEX(D2:D,MATCH(1,H2:H,0)) </code></pre> <h2>Explanation</h2> <p><code>=VLOOKUP</code> can only be used to find values to the right of a search key. To find values to the left of a search key, use a combination of <code>=...
How can I find the name of the person ranked 1?
google-sheets|google-sheets-formula|vlookup
0
62
5
72,843,299
72,843,299
1
true
2022-07-02T22:38:34.520Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I find the name of the person ranked 1?<p>What I'm trying to do is find the name of the person who is ranked number 1 in the table shown below. I hav...
72,842,044
intent.putExtra getting too long and not convenient<p>I am new using Kotlin and have implemented a recyvclerview list and now I'm using putExtra() and getStringExtra() intents to open in the same activities to avoid creating too many activities. So far it is working fine but I'm noticing my list is getting to long, and...
<p>I'm just posting this as an answer so I can explain it without the comment length limitation, so don't mark it as the correct one or anything! And uh it's a bit longer than I intended but hopefully it helps you understand coding in general a bit more</p> <p>So you've edited your question with a longer <code>when</co...
intent.putExtra getting too long and not convenient
list|android-studio|kotlin|android-intent|getstring
-1
62
2
72,843,407
72,843,407
1
true
2022-07-02T19:51:55.280Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: intent.putExtra getting too long and not convenient<p>I am new using Kotlin and have implemented a recyvclerview list and now I'm using putExtra() and getStr...
72,845,127
Rounding to 2 decimal places in python gpa calculator<p>For my assignment, I have been asked to create a GPA calculator. They want me to edit my code to make the GPA output always show two decimal places. However, mine doesn't seem to be working! D:</p> <p>The output only prints to 1 decimal place</p> <p>here is what I...
<p>You can format the output as a string value with <code>&quot;{:0.2f}&quot;</code> format, so your answer will always have 2 decimal digits despite <code>gpa</code> value:</p> <pre><code>total, num_of_subjects = 100, 10 gpa = total/num_of_subjects gpa = float(round(gpa, 2)) print(&quot;{:0.2f}&quot;.format(gpa)) </...
Rounding to 2 decimal places in python gpa calculator
python|python-3.x
1
62
4
72,845,149
72,845,149
1
true
2022-07-03T08:49:47.570Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Rounding to 2 decimal places in python gpa calculator<p>For my assignment, I have been asked to create a GPA calculator. They want me to edit my code to make...
72,849,047
Getting max value from an arraylist of objects<p>I have an arraylist called cities with objects City from another class, and this object contains both the name of said city but also population. In one method I wanna sum all city populations, aka get the population of the country, however I'm getting an exception in .pa...
<h2>About your Methode getTotalPop()</h2> <ol> <li>c should be a long variable and in initialized to 0 because now you are trying to increment a string which is impossible.</li> <li>you are iterating about a list of cities so iter.next() will give you a city but you want the population of this city so call c += iter.ne...
Getting max value from an arraylist of objects
java
-2
62
1
72,849,581
72,849,581
1
true
2022-07-03T18:41:09.870Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting max value from an arraylist of objects<p>I have an arraylist called cities with objects City from another class, and this object contains both the na...
72,849,505
Public Setters vs. Friend Class vs. Specific Constructor<p>I'm making a simple programming language, and have encountered the following problem:</p> <p>I have a Parser class which has methods that return derived classes of the Node struct. Currently all of the Parser class methods look something like this:</p> <pre><co...
<p>A <code>class</code> is supposed to hold an invariant. Unless all combination of all field values are correct, 2nd version is strongly discouraged; 3rd is recommended. It's also the way to go for immutable structures which help debugging and testing very much.</p>
Public Setters vs. Friend Class vs. Specific Constructor
c++|c++17
1
62
1
72,849,639
72,849,639
1
true
2022-07-03T19:56:18.017Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Public Setters vs. Friend Class vs. Specific Constructor<p>I'm making a simple programming language, and have encountered the following problem:</p> <p>I hav...
72,850,642
Assigning color value to parameter's | dart flutter<p>i have GridView where there is 40 buttons, that's one of them:</p> <pre><code>MyCalcButton( //clr: Colors.amber myNum: &quot;2&quot;, funkcja: () {}, ), </code></pre> <p>In my button class there are 2 required parameters, <strong><code>myNum...
<p>You can provide default value on parameter, in your case on <code>clr</code></p> <pre class="lang-dart prettyprint-override"><code>class MyCalcButton extends StatefulWidget { const MyCalcButton({ Key? key, this.myNum, required this.funkcja, this.clr =const Color.fromARGB(255, 195, 204, 203), }) :...
Assigning color value to parameter's | dart flutter
flutter|dart|colors
0
62
1
72,850,704
72,850,704
1
true
2022-07-03T23:50:06.920Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Assigning color value to parameter's | dart flutter<p>i have GridView where there is 40 buttons, that's one of them:</p> <pre><code>MyCalcButton( //cl...
72,855,343
flutter problem: How to do dynamic height for pageView?<p><strong>strong text</strong>Here I want to do Height in dynamic, Here in Image on top have two btn left and right when I will click on that btn then bellow page will be changed but i got bellow page height issue.</p> <p>How to make it dynamic?</p> <p>If we are n...
<p>In pageview builder return Listview with shrinkWrap : true will solve your problem. Check out below code :</p> <p><em><strong>SliderDetailsPage</strong></em></p> <pre><code>import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; class SliderDetailsPage extends StatefulWidget { const Slide...
flutter problem: How to do dynamic height for pageView?
flutter|flutter-layout|flutter-dependencies|flutter-animation|flutter-test
0
62
1
72,855,684
72,855,684
1
true
2022-07-04T10:31:56.220Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: flutter problem: How to do dynamic height for pageView?<p><strong>strong text</strong>Here I want to do Height in dynamic, Here in Image on top have two btn ...
72,857,838
Split a List of Strings - to get first and last element<p>For the list 'wind'</p> <pre><code>wind=['', 'W at 6kph', 'SSE at 14kph', 'SSE at 23kph', 'WSW at 28kph', 'WSW at 15kph', 'S at 9kph', 'SW at 18kph', 'NNW at 6kph'] </code></pre> <p>I would like to split this into 2 lists.</p> <p>Desired result:</p> <pre><code>w...
<p><strong>Using list comprehension</strong></p> <pre><code>wind_direction=[(y.split(' '))[0] for y in wind] print(wind_direction) wind_strength=[int((x.split(' ')[2]).split('kph')[0]) for x in wind if x != ''] print(wind_strength) </code></pre> <p><strong>Output</strong></p> <pre><code>['', 'W', 'SSE', 'SSE', 'WSW',...
Split a List of Strings - to get first and last element
python|string|list|split
-1
62
5
72,858,069
72,858,069
1
true
2022-07-04T13:51:02.800Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Split a List of Strings - to get first and last element<p>For the list 'wind'</p> <pre><code>wind=['', 'W at 6kph', 'SSE at 14kph', 'SSE at 23kph', 'WSW at 2...
72,857,224
Null-check for inherited member in TypeScript?<pre class="lang-js prettyprint-override"><code>abstract class Base { protected id: number | null = null; init(id: number) { this.id = id; } isIdSet(_ = this.id): _ is null | never { if (this.id === null) throw new Error(ERROR_NO_ID); else return false...
<p><code>The idea was to put he null-check and throw into a function to get rid of duplicate if statements</code></p> <p>You can do this in the base class with a custom getter that checks if <code>this.m_id</code> is defined and throws an error otherwise, essentially forcing the <code>init</code> method to be called be...
Null-check for inherited member in TypeScript?
typescript|null-check
-2
62
2
72,858,354
72,858,354
1
true
2022-07-04T13:03:22.480Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Null-check for inherited member in TypeScript?<pre class="lang-js prettyprint-override"><code>abstract class Base { protected id: number | null = null; ...
72,791,209
Different Results on Same Images Depending on Download Source<p>I'm building a scraper to get images from a Telegram channel then using Tesseract to OCR the text. During testing I manually downloaded the images from the channel using Telegram's web interface (Windows 8.1, Chrome, right click, save as, etc) and ran Tess...
<p>They are NOT the same images. The Chrome image is 449 x 800, and the API image is 719 x 1280. That leads to totally different letter sizes.</p> <p>Additionally, the jpeg image format is unsuitable for OCR and it produces different artifacts on different image sizes.</p>
Different Results on Same Images Depending on Download Source
python|tesseract|python-tesseract|telethon
0
62
1
72,860,617
72,860,617
1
true
2022-06-28T18:03:26.513Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Different Results on Same Images Depending on Download Source<p>I'm building a scraper to get images from a Telegram channel then using Tesseract to OCR the ...
72,859,272
Exporting a multigraph from ggplot to powerpoint with officer<p>somehow I am not able to properly export a plot containing three subplots into my PowerPoint with the <code>officer</code> package. I will most an MWE with the same but different data that produces the plot that I want to export</p> <pre><code>library(fpp3...
<p>The issue is that the object returned by <code>gg_tsdisplay</code> is not a <code>ggplot</code> object but a list of ggplot objects instead. As a consequence only the last element of this list is exported to the pptx or you get an error in the case where your first convert to a dml object.</p> <p>One possible fix wo...
Exporting a multigraph from ggplot to powerpoint with officer
r|ggplot2|plot|powerpoint|r-commander
0
62
1
72,861,944
72,861,944
1
true
2022-07-04T15:47:00.997Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Exporting a multigraph from ggplot to powerpoint with officer<p>somehow I am not able to properly export a plot containing three subplots into my PowerPoint ...
72,866,270
ORACLE: The best way to parse JSON into collection of object types<p>I have an object type: <code>create type t_ref_rec is object(id number, name varchar2(256));</code></p> <p>And a table type: <code>create type t_ref_tbl is table of t_ref_rec;</code></p> <p>I parse JSON onto a collection like this:</p> <pre><code>decl...
<p>If you're on 19c or higher, the best way is to state your object as the return type for a <code>JSON_value</code> call and the database will map it for you:</p> <pre><code>create type t_ref_rec is object(id number, name varchar2(256)); / create type t_ref_tbl is table of t_ref_rec; / select json_value ( '[{&quot;...
ORACLE: The best way to parse JSON into collection of object types
oracle|plsql
0
62
1
72,870,375
72,870,375
1
true
2022-07-05T08:28:43.847Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ORACLE: The best way to parse JSON into collection of object types<p>I have an object type: <code>create type t_ref_rec is object(id number, name varchar2(25...
72,874,308
Using order by and direction with case when but error sorting by secondary column<p>Below works fine:</p> <pre><code>ORDER BY CASE WHEN @SortDirection = 1 AND @SortBy = 1 THEN announce.[Status] END ASC, CASE WHEN @SortDirection = 2 AND @SortBy = 1 THEN announce.[Status] END DESC ... </code></pre> <p>What I want to ...
<p>You don't need to repeat the sort criteria for both directions if they're the same in either case, and they don't have to be right next to the other criteria either. Only one of the first four <code>CASE</code> expressions can possibly return true, and also only of the last two:</p> <pre><code>ORDER BY CASE WHEN @S...
Using order by and direction with case when but error sorting by secondary column
sql-server|tsql
-2
62
2
72,874,642
72,874,642
1
true
2022-07-05T18:58:39.950Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using order by and direction with case when but error sorting by secondary column<p>Below works fine:</p> <pre><code>ORDER BY CASE WHEN @SortDirection = 1 A...
72,877,933
Swift 'Apollo.Cancellable' does not conform to 'Combine.Cancellable'<p>I am using Apollo Client subscriptions for my app. I follow the codes here on the documentation from Apollo <a href="https://www.apollographql.com/docs/ios/subscriptions" rel="nofollow noreferrer">https://www.apollographql.com/docs/ios/subscriptions...
<p>It sounds like you have a naming collision between modules (<code>Apollo</code> and <code>Combine</code>) that both have a <code>Cancellable</code> type defined.</p> <p>You can explicitly declare that you want this <code>Cancellable</code> to be the one from <code>Apollo</code> by doing the following:</p> <pre><code...
Swift 'Apollo.Cancellable' does not conform to 'Combine.Cancellable'
swift|graphql|apollo|apollo-client|combine
1
62
1
72,878,105
72,878,105
1
true
2022-07-06T04:22:33.007Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Swift 'Apollo.Cancellable' does not conform to 'Combine.Cancellable'<p>I am using Apollo Client subscriptions for my app. I follow the codes here on the docu...
72,873,784
How to pass additional context along with a Conflict() response<p>I have a Razor Pages page with some JavaScript sending form data to an API. The API tries to update the database, if there is a concurrency conflict, it returns 409. The JavaScript then checks if the response status is 409 and accordingly alerts the user...
<p><strong>Controller:</strong></p> <p>You can return the following:</p> <pre><code>if (changedDsrs.Any()) { return Conflict(new { message = $&quot;An existing dsr was found.&quot; }); } </code></pre> <p><strong>And in JavaScript:</strong></p> <pre><code>var response = await fetc...
How to pass additional context along with a Conflict() response
c#|asp.net-core|http-status-code-409
2
62
1
72,879,370
72,879,370
1
true
2022-07-05T18:08:13.500Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to pass additional context along with a Conflict() response<p>I have a Razor Pages page with some JavaScript sending form data to an API. The API tries t...
72,867,434
VS Code intellisense not working for some ARM commands<p>I have created an ARM template to deploy Azure Storage Account. VS Code ARM intellisense worked fine until now. However, for 'copy'(to copy the storage account already created) it simply does not work. What am i missing?</p> <pre><code>{ &quot;$schema&quot;: ...
<p><em><strong>We have tried to create an storage account using ARM Template in VS CODE with your configuration as well and works successfully</strong></em>.</p> <p>Below are the workaround we followed;</p> <blockquote> <p>However, for 'copy'(to copy the storage account already created) it simply does not work</p> </bl...
VS Code intellisense not working for some ARM commands
azure|visual-studio-code|azure-resource-manager
0
62
1
72,879,425
72,879,425
1
true
2022-07-05T09:57:02.793Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: VS Code intellisense not working for some ARM commands<p>I have created an ARM template to deploy Azure Storage Account. VS Code ARM intellisense worked fine...
72,879,874
Why iterative std::max with 2 constants is faster than std::max with initializer list?<p>Compiler : Visual Studio 2019 , Optimization : (Favor Speed)(/O2)</p> <p>In a loop (over 1 million cycles), I use std::max to find the maximum element among 10 elements. When I use std::max iteratively, like</p> <pre><code>using na...
<p>You are copying all of the array elements when you are constructing an initializer list, which is going to incur more overhead.</p>
Why iterative std::max with 2 constants is faster than std::max with initializer list?
c++|algorithm|time-complexity|max|initializer-list
-1
62
1
72,879,917
72,879,917
1
true
2022-07-06T08:04:24.037Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why iterative std::max with 2 constants is faster than std::max with initializer list?<p>Compiler : Visual Studio 2019 , Optimization : (Favor Speed)(/O2)</p...
72,879,991
is this correct use of pointer and memory allocation<p>so This is my code that allocate 0th and 2ed string in 2-d array (list of strings, or a bucket) So I like to know did I use correct use of dynamic memory allocation with malloc and realloc.</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include ...
<p>In general the code is unsafe because the second element stays uninitialized.</p> <p>At least you should write</p> <pre><code>a[1] = NULL; </code></pre> <p>For example this allows to free the allocated memory in a loop.</p> <pre><code>for ( size_t i = 0; i &lt; 3; i++ ) { free( a[i] ); } free( a ); </code></pre...
is this correct use of pointer and memory allocation
c|initialization|malloc|dynamic-memory-allocation
1
62
1
72,880,293
72,880,293
1
true
2022-07-06T08:13:10.313Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: is this correct use of pointer and memory allocation<p>so This is my code that allocate 0th and 2ed string in 2-d array (list of strings, or a bucket) So I l...
72,889,344
ModuleNotFoundError after pip install local python package<p>Structure:</p> <pre><code>. ├── application │ └── runner.py └── dummyLibrary ├── helperFunctions.py ├── __init__.py └── setup.py </code></pre> <p>runner.py:</p> <pre><code>import dummyLibrary dummyLibrary.foo() dummyLibrary.bar() </code></pre> ...
<p>Welcome to Stack Overflow!</p> <p>First thing: <code>__init__.py</code> and <code>helperFunctions.py</code> should be inside another nested folder with the same name as the package.</p> <pre><code>. ├── application │ └── runner.py └── dummyLibrary ├── dummyLibrary │ ├── __init__.py │ └── helperFunc...
ModuleNotFoundError after pip install local python package
python
-2
62
1
72,890,386
72,890,386
1
true
2022-07-06T20:12:01.890Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ModuleNotFoundError after pip install local python package<p>Structure:</p> <pre><code>. ├── application │ └── runner.py └── dummyLibrary ├── helperFun...
72,891,121
Creating a Google Sheets extension using Python<p>I am pretty new to Python, and I recently took on a project in which I am supposed to create a google sheets add on in python that edits that specific sheet when it is used.</p> <p><a href="https://developers.google.com/workspace/add-ons/guides/alternate-runtimes" rel="...
<p>Picking your hosting infrastructure is saying to basically pick your server provider. Hosting just refers to servers because everything on the web needs to be hosted for everyone to access. HTTPS endpoints are urls that points to the location of resources in the server.</p> <p>Step 9 was referring to creating a json...
Creating a Google Sheets extension using Python
python|google-api|google-api-python-client|google-search-console|google-workspace-add-ons
1
62
1
72,891,288
72,891,288
1
true
2022-07-07T00:29:27Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Creating a Google Sheets extension using Python<p>I am pretty new to Python, and I recently took on a project in which I am supposed to create a google sheet...
72,893,025
MassTransit fails to connect to existing AWS SNS/SQS<p>Currently, I'm attempting to move from aws sdk to MassTransit. And I have a big issue with connecting to the SQS/SNS. Our infrastructure team created sqs/sns using a terraform script. And we (as developers and application) cannot change (in any way) it since the in...
<p>If the SQS queue is already created, the SNS topic already created, and the subscription from SNS-&gt;SQS is already created, you should remove the <code>.Subscribe</code> call since it will try to create the subscription in the topic.</p> <p>Also, setting queue/topic attributes in MassTransit won't do anything sinc...
MassTransit fails to connect to existing AWS SNS/SQS
c#|amazon-sqs|amazon-sns|masstransit
0
62
1
72,896,960
72,896,960
1
true
2022-07-07T06:12:57.713Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MassTransit fails to connect to existing AWS SNS/SQS<p>Currently, I'm attempting to move from aws sdk to MassTransit. And I have a big issue with connecting ...
72,895,664
Material UI MultiSelect Showing Selected Items Below Dropdown<p>As I wrote on the title, I want to display selected items below the dropdown. But it display them inside by default. It doesn't have to be multiple select but when I click on an item I want it to be pushed to an array and then I want to map through that ar...
<p>The selected item should be stored in the state of your component. You can use this to map through the items and display them where you want. Have a look at this example code I created based in MUI sandbox example for the multiple select <a href="https://codesandbox.io/s/multipleselect-demo-material-ui-forked-rkh80i...
Material UI MultiSelect Showing Selected Items Below Dropdown
reactjs|select|material-ui|dropdown
0
62
1
72,897,942
72,897,942
1
true
2022-07-07T09:45:36.800Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Material UI MultiSelect Showing Selected Items Below Dropdown<p>As I wrote on the title, I want to display selected items below the dropdown. But it display ...
72,901,802
How to programmatically create layout and constraints using Swift IOS<p>How do you programmatically create layout and constraints using Swift IOS. I'm familiar with storyboards, however I'm not sure how to use code to make ui elements.</p>
<p>There are three main steps. First you have to define the element, add it to the view, then add constraints.</p> <p>For example,</p> <pre><code>let button = UIButton() button.translatesAutoresizingMaskIntoConstraints = false view.addSubview(button) NSLayoutConstraint.activate([ button.heightAnchor.constrai...
How to programmatically create layout and constraints using Swift IOS
ios|swift
-1
62
1
72,901,834
72,901,834
1
true
2022-07-07T17:06:34.433Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to programmatically create layout and constraints using Swift IOS<p>How do you programmatically create layout and constraints using Swift IOS. I'm famili...
72,901,897
DJANGO TO HEROKU ImportError win32 only<p>I've been trying to upload my first Django project to Heroku. It worked fine until I tried to run the app in heroku.</p> <p>I am getting this &quot;win32 only&quot; error and I can't seem to find an answer. If you need any further info about the project so here is the GitHub re...
<p><a href="https://github.com/dngbr/Marut/blob/f24950da3e198a86482e061049245cbe68e03d5b/app/views.py" rel="nofollow noreferrer">You are importing a Windows-specific module in <code>app/views.py</code></a>:</p> <pre class="lang-py prettyprint-override"><code>from asyncio.windows_events import NULL </code></pre> <p>You ...
DJANGO TO HEROKU ImportError win32 only
python|django|heroku
0
62
1
72,902,054
72,902,054
1
true
2022-07-07T17:15:07.603Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: DJANGO TO HEROKU ImportError win32 only<p>I've been trying to upload my first Django project to Heroku. It worked fine until I tried to run the app in heroku...
72,900,603
Create non-existent functions by a single click in VS Code Python<p>Other IDE's like PyCharm, IntelliJ, etc. have a feature where if it finds a function being called that is undefined, you can right-click it and click 'create method' or something similar to automatically create the function definition. It helps out a l...
<p>You can install the <a href="https://marketplace.visualstudio.com/items?itemName=rioj7.my-code-actions" rel="nofollow noreferrer">My Code Actions</a> extension, here is a simple example:</p> <p>Configure in <code>settings.json</code> file:</p> <pre class="lang-json prettyprint-override"><code>// settings.json file {...
Create non-existent functions by a single click in VS Code Python
python|visual-studio-code|tdd
1
62
1
72,905,948
72,905,948
1
true
2022-07-07T15:34:17.907Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Create non-existent functions by a single click in VS Code Python<p>Other IDE's like PyCharm, IntelliJ, etc. have a feature where if it finds a function bein...
72,907,381
Do a hard location change when clicking on a link in Vaadin<p>When I click on a link in my vaadin application it gets intercepted by the router and only the components get changed, no page reload is done.</p> <p>But as descripted in the vaadin docs it should only happen when you add the &quot;router-link&quot; HTML-Att...
<p>As descripted by @Knoobie in <a href="https://stackoverflow.com/a/72728856/16651073">https://stackoverflow.com/a/72728856/16651073</a></p> <p>When you add the &quot;router-ignore&quot; attribute to an anchor. It will do a page reload on click.</p>
Do a hard location change when clicking on a link in Vaadin
javascript|vaadin|vaadin-flow|vaadin23
0
62
1
72,907,659
72,907,659
1
true
2022-07-08T06:19:15.310Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Do a hard location change when clicking on a link in Vaadin<p>When I click on a link in my vaadin application it gets intercepted by the router and only the ...
72,902,524
Is there a way to automatically restart nginx with monit when it doesnt respond with status 200<p>Is there a way to automatically restart nginx with monit when it doesnt respond with status 200</p> <p>The server seems to handle most of the requests but tends to lock up for a minute or two when it gets overwhelmed with ...
<p>A simple sample to handle nginx is available from <a href="https://mmonit.com/wiki/Monit/ConfigurationExamples#NginX" rel="nofollow noreferrer">https://mmonit.com/wiki/Monit/ConfigurationExamples#NginX</a> and from <a href="https://www.mmonit.com/monit/documentation/monit.html#CONFIGURATION-EXAMPLES" rel="nofollow n...
Is there a way to automatically restart nginx with monit when it doesnt respond with status 200
nginx|monit
0
62
1
72,908,761
72,908,761
1
true
2022-07-07T18:16:47.033Z
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 automatically restart nginx with monit when it doesnt respond with status 200<p>Is there a way to automatically restart nginx with monit wh...
72,893,369
SwiftUI NavigationView: Keeping back button while removing whitespace<p><a href="https://i.stack.imgur.com/C5lyt.png" rel="nofollow noreferrer">Screen shot of white space</a> I want to remove the empty space below the &lt;Back button in the second navigation view. I know that this question has been asked several times...
<p>It seens like your parent View hasn't a title, to solve this you need to set <code>.navigationTitle</code> inside <code>NavigationView</code> on parent View like this:</p> <pre class="lang-swift prettyprint-override"><code>NavigationView { VStack { //.... } .navigationTitle(Text(&quot;...
SwiftUI NavigationView: Keeping back button while removing whitespace
ios|swiftui|navigationview
0
62
2
72,911,256
72,911,256
1
true
2022-07-07T06:46:06.500Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SwiftUI NavigationView: Keeping back button while removing whitespace<p><a href="https://i.stack.imgur.com/C5lyt.png" rel="nofollow noreferrer">Screen shot o...
72,914,924
How remove password from response in django<p>Code: SERILIZERS</p> <pre><code>class RegisterSerializer(serializers.ModelSerializer): class Meta: model = User fields = (&quot;email&quot;, &quot;user_name&quot;, &quot;password&quot;) def create(self, validated_data): return User.objects.create_user(**validat...
<p>According to <a href="https://www.django-rest-framework.org/api-guide/serializers/#additional-keyword-arguments" rel="nofollow noreferrer">docs</a>, you can use extra_kwargs. So your serializer would look like -</p> <pre><code>class RegisterSerializer(serializers.ModelSerializer): class Meta: model = Use...
How remove password from response in django
python|django|rest
-1
62
2
72,915,057
72,915,057
1
true
2022-07-08T17:24:33.190Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How remove password from response in django<p>Code: SERILIZERS</p> <pre><code>class RegisterSerializer(serializers.ModelSerializer): class Meta: model = ...
72,919,396
Rename files in Multiple Folders with os<p>I have multiple folders with images, with the following folder structure, whose files I would like to rename.</p> <blockquote> <p>Parent Dir</p> <blockquote> <p>Folder 1</p> <blockquote> <blockquote> <p>xyz.jpg abc.png ...</p> </blockquote> </blockquote> </blockquote> </blockq...
<p>You can use the functionality of <code>os.path</code> to extract the file extension and use it for renaming your file. I recreated your directories with <code>.png</code> and <code>.jpg</code> images, and running your code, both folder1 and folder2 worked. There must be a typo or something else causing the problem.<...
Rename files in Multiple Folders with os
python|operating-system
0
62
1
72,920,167
72,920,167
1
true
2022-07-09T06:21:51.757Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Rename files in Multiple Folders with os<p>I have multiple folders with images, with the following folder structure, whose files I would like to rename.</p> ...
72,918,142
How to bulk rename files to add a missing comma before the first space<p>I have a folder with hundreds of files that are supposed to be to this standard:</p> <pre class="lang-none prettyprint-override"><code>Lastname, Firstname - 1010 ddmmyy.pdf </code></pre> <p>At least half of them are missing that comma, and I need ...
<p>You can use below to do that:</p> <pre><code>Get-ChildItem -Path 'D:\SomeWhere' -Filter '*.pdf' -File | Rename-Item -NewName { $_.Name -replace '^([^,\s]+)\s+(.+)', '$1, $2' } </code></pre> <p>Regex details:</p> <pre><code>^ Assert position at the beginning of the string ( Match the regul...
How to bulk rename files to add a missing comma before the first space
powershell
0
62
4
72,921,254
72,921,254
1
true
2022-07-09T00:34:49.520Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to bulk rename files to add a missing comma before the first space<p>I have a folder with hundreds of files that are supposed to be to this standard:</p>...
72,921,957
String in bracket all in caps<p>I have a use case where I want to control all the char in the bracket to uppercase.</p> <p>For example, if there's a string <code>Laugh out Loud (lol)</code> I want to convert it to <code>Laugh Out Loud (LOL)</code></p> <p>something like this, Where applying in a string first letter to b...
<p>You can achieve this if you first <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split" rel="nofollow noreferrer"><code>split</code></a> ths string with empty string and then if it starts with ('(') and ends with (')') then you uppercase whole string else upper case ...
String in bracket all in caps
javascript|node.js|reactjs|lodash
1
62
2
72,922,060
72,922,060
1
true
2022-07-09T13:57:41.547Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: String in bracket all in caps<p>I have a use case where I want to control all the char in the bracket to uppercase.</p> <p>For example, if there's a string <...
72,865,322
How to have hover effect on the entire line in line chart in chart js<pre><code>ngOnInit(): void { var myChart = new Chart('myChart', { type: 'bar', data: { labels: ['Modes'], datasets: [ { label: 'A', data: [this.data.a], borderColor: 'rgba(255,105,180,1)', backgr...
<p>Instead of using a line, you could use a <code>dataset</code> with a single floating bar that can be defined as follows:</p> <pre><code>{ label: 'Total Recordings', data: [[data.totalrecordings -0.5, data.totalrecordings + 0.5]] categoryPercentage: 1, barPercentage: 1, ... } </code></pre> <p>Together with ...
How to have hover effect on the entire line in line chart in chart js
angular|chart.js|bar-chart|linechart|combo-chart
1
62
1
72,928,456
72,928,456
1
true
2022-07-05T07:12:26.870Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to have hover effect on the entire line in line chart in chart js<pre><code>ngOnInit(): void { var myChart = new Chart('myChart', { type: 'bar', ...
72,929,577
How to print two different type objects in python<p>I have Two object:</p> <pre><code>total_statuses = 10 status = {&quot;A&quot;:2, &quot;B&quot;:5, &quot;C&quot;:3} </code></pre> <p>I want to print them in a simple table style without using any extra library such as tabulate.</p> <pre><code>Total A B C ------...
<p>Another solution is use a function:</p> <pre class="lang-py prettyprint-override"><code>In [9]: def show(headers, statuses): ...: [print(f&quot;{h:15}&quot;, end='') for h in headers] ...: print('\n' + '-' * (15 * len(statuses)+1)) ...: print(f'{str(sum(statuses.values())):15}', end='') ...: ...
How to print two different type objects in python
python|python-3.x
-1
62
2
72,929,841
72,929,841
1
true
2022-07-10T15:18:13.603Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to print two different type objects in python<p>I have Two object:</p> <pre><code>total_statuses = 10 status = {&quot;A&quot;:2, &quot;B&quot;:5, &quot;C...
72,934,919
Convenient way to pop up context menu for each row in qtable in Quasar<p>I am new to Quasar.</p> <p>I know I can use the <code>@row-contextmenu</code> event of <code>q-table</code> to notify that a row has been long pressed (in mobile mode) or right clicked (in desktop mode).</p> <p>But how can I pop up my context menu...
<p>You need to use the <code>cell slot</code>.</p> <p><a href="https://codepen.io/Pratik__007/pen/RwMRyNy" rel="nofollow noreferrer">https://codepen.io/Pratik__007/pen/RwMRyNy</a></p>
Convenient way to pop up context menu for each row in qtable in Quasar
vuejs3|quasar-framework|quasar
1
62
1
72,938,384
72,938,384
1
true
2022-07-11T07:13:43.843Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Convenient way to pop up context menu for each row in qtable in Quasar<p>I am new to Quasar.</p> <p>I know I can use the <code>@row-contextmenu</code> event ...
72,940,551
how can I send push notification in ionic app?<p>I've created an app with ionic angular using capacitor. users can create groups and chat with each other. so in firebase, I'm able to send push notifications to specific tokens and it works fine. but how can I send it in app, not in the firebase console?</p> <p>example: ...
<p>Sending a message through the FCM API is possible, but requires that you specify the so-called FCM server key, which means it cannot be securely done from without your client-side code. Instead you'll want to send the messages from a trusted environment (like a server, Cloud Functions or Cloud Run) and then invoke t...
how can I send push notification in ionic app?
firebase|push-notification|firebase-cloud-messaging|capacitor|ionic6
0
62
1
72,942,036
72,942,036
1
true
2022-07-11T14:57:31.833Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how can I send push notification in ionic app?<p>I've created an app with ionic angular using capacitor. users can create groups and chat with each other. so...
72,937,618
How to use Bootstrap tab in Angular?<p>I am trying to use Bootstrap tab but it is not working in Angular app. It seemed quite easy as used Bootstrap previously but can't work around in this Angular app. It displays content of both the tabs and the links do not work properly. P.S I am not using NG Bootstrap</p> <pre><co...
<p>It has worked after using the link from CDN for Jquery and Bootstrap.js. So the url of the directory wasn't right.</p>
How to use Bootstrap tab in Angular?
angular|typescript|twitter-bootstrap|tabs
-1
62
1
72,943,076
72,943,076
1
true
2022-07-11T11:11:21.167Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use Bootstrap tab in Angular?<p>I am trying to use Bootstrap tab but it is not working in Angular app. It seemed quite easy as used Bootstrap previous...
72,948,385
Why does my regular expression differ sometimes for the same input<p>I have this regular expression <code>/[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&amp;//=]*)/gi</code> for testing a URL but it seems nondeterministic. How is this possible?</p> <p><a href="https://i.stack.imgur.com/UVJ...
<p>Because there's a g flag.</p> <p>So it will store lastIndex and wait for the next test.</p> <h1>What is RegExp.test:</h1> <blockquote> <p><em><strong>JavaScript RegExp objects are stateful when they have the global or sticky flags set (e.g., /foo/g or /foo/y). They store a lastIndex from the previous match.</strong>...
Why does my regular expression differ sometimes for the same input
javascript|regex
0
62
2
72,948,449
72,948,449
1
true
2022-07-12T07:14:26.510Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does my regular expression differ sometimes for the same input<p>I have this regular expression <code>/[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\...
72,949,177
KeyError: 'href' when using BeautifulSoup?<p>I am trying to build a dataframe of article titles and links using BeautifulSoup from a website structured like this:</p> <pre><code>&lt;div class = &quot;publish date&quot;&gt; Article 1 published date &lt;/div&gt; &lt;div class = &quot;headline&quot;&gt; &lt;a href=&quot;...
<p>Try to change your selection strategy and process all information in one go:</p> <pre><code>data = [] for e in soup.select('.headline'): data.append({ 'title':e.text.strip(), 'url':e.a.get('href') }) </code></pre> <p><strong>Note:</strong> <em>In newer code avoid old syntax <code>findAll()</c...
KeyError: 'href' when using BeautifulSoup?
python|pandas|dataframe|web-scraping|beautifulsoup
0
62
1
72,949,629
72,949,629
1
true
2022-07-12T08:23:51.463Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: KeyError: 'href' when using BeautifulSoup?<p>I am trying to build a dataframe of article titles and links using BeautifulSoup from a website structured like ...
72,953,043
How to align text on both sides of a Bootstrap switch<p>I'm trying to make a form using Bootstrap, and so far I'm doing great, except one thing. I'd like to add a switch type checkbox to the form, with a label on top, and text on both sides of it. I've tried many ways to accomplish this, but I can't seem to put the two...
<p>You need to make them in same line using a container with flex, float them to one side or made them all inline. I chose the first.</p> <p>All that is left is to nudge a bit the pieces.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre...
How to align text on both sides of a Bootstrap switch
html|css|css-position|bootstrap-5
-1
62
1
72,954,072
72,954,072
1
true
2022-07-12T13:22:47.173Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to align text on both sides of a Bootstrap switch<p>I'm trying to make a form using Bootstrap, and so far I'm doing great, except one thing. I'd like to ...
72,939,542
Check sets contain/match the set of a set in Dart<p>A sets <code>receipt</code> is a set of sets:</p> <pre><code>Set dish1 = {'a', 'b'}; Set dish2 = {'c', 'd'}; Set dish3 = {'a', 'b', 'c'}; Set dish4 = {'a', 'b', 'c', 'd'}; Set receipt = {dish1, dish2, dish3, dish4}; </code></pre> <p>I would like to find the logic that...
<p>To be able to have <code>dish1</code>, <code>dish2</code>, etc. available for your result, they actually have to be in your program. You can do this with a <a href="https://api.dart.dev/stable/2.17.6/dart-core/Map-class.html" rel="nofollow noreferrer"><code>Map</code></a>.</p> <pre><code>void main() { var receipt ...
Check sets contain/match the set of a set in Dart
dart|set|contains
0
62
2
72,955,241
72,955,241
1
true
2022-07-11T13:41:46.543Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Check sets contain/match the set of a set in Dart<p>A sets <code>receipt</code> is a set of sets:</p> <pre><code>Set dish1 = {'a', 'b'}; Set dish2 = {'c', 'd...
72,962,700
How to call UpdateCellsRequest in Google Sheets script<p>I am trying to fix my Google Sheets script program which is timing out. I am merging a set of sheets that consist of a grid of letters that are highlighted with colours to identify shapes in the grid. I want to show a heat map and also have sheets of specific gro...
<h3>Issues:</h3> <ul> <li><a href="https://developers.google.com/apps-script/reference/spreadsheet/spreadsheet-app" rel="nofollow noreferrer">SpreadsheetApp</a> doesn't have any <code>UpdateCellsRequest</code> method. If you want to call <a href="https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/r...
How to call UpdateCellsRequest in Google Sheets script
google-apps-script|google-sheets|google-sheets-api
0
62
1
72,966,463
72,966,463
1
true
2022-07-13T07:52:07.680Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to call UpdateCellsRequest in Google Sheets script<p>I am trying to fix my Google Sheets script program which is timing out. I am merging a set of sheets...
72,898,323
How to reduce package size of PySide6?<p>I am writing a software with <a href="https://pypi.org/project/PySide6/" rel="nofollow noreferrer">PySide6</a>. On my Mac the package has a size of 1.0GiB. Is there a way to easily reduce unnecessary files that I don't need to package.</p> <p>I manually identified the files belo...
<ol> <li>You can install from PyPi only the <a href="https://pypi.org/project/PySide6-Essentials/" rel="nofollow noreferrer">PySide6-Essentials</a> package.</li> <li>You can <a href="https://doc.qt.io/qtforpython-6/gettingstarted-linux.html" rel="nofollow noreferrer">build from source</a> and include via <a href="https...
How to reduce package size of PySide6?
pyqt|pyside6
0
62
1
72,970,629
72,970,629
1
true
2022-07-07T13:03:05.630Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to reduce package size of PySide6?<p>I am writing a software with <a href="https://pypi.org/project/PySide6/" rel="nofollow noreferrer">PySide6</a>. On m...
72,970,089
How to generate arbitrary subqueries/joins in a Jooq query<p><strong>Situation</strong>: I am porting our application to Jooq to eliminate several n+1 problems and ensure custom queries are type-safe (DB server is Postgresql 13). In my example we have documents (ID, file name, file size). Each document can have several...
<p>After reading another question <a href="https://stackoverflow.com/questions/55238643/jooq-join-with-nested-subquery">jOOQ - join with nested subquery</a> (and not realizing the solution) and playing around with generating Java code via <a href="https://www.jooq.org/translate/" rel="nofollow noreferrer">https://www.j...
How to generate arbitrary subqueries/joins in a Jooq query
java|sql|postgresql|jooq
1
62
2
72,971,925
72,971,925
1
true
2022-07-13T17:06:18.570Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to generate arbitrary subqueries/joins in a Jooq query<p><strong>Situation</strong>: I am porting our application to Jooq to eliminate several n+1 proble...
72,972,363
R - ggplot2: Fill only the area between a line and a reference value<p>I want to use ggplot2 to produce a graph like the one below, where the area between the line and a reference value is shaded, and the color of the shading depends on whether y is greater or less than the reference value.</p> <p><a href="https://i.st...
<p>You need two ribbons if you want two different fills:</p> <pre class="lang-r prettyprint-override"><code>ggplot(data = huron, aes(x = year)) + geom_ribbon(aes(ymin = 579, ymax = ifelse(level &gt; 579, level, 579), fill = &quot;Above average&quot;)) + geom_ribbon(aes(ymax = 579, ymin = ifelse(l...
R - ggplot2: Fill only the area between a line and a reference value
r|ggplot2
1
62
2
72,972,487
72,972,487
1
true
2022-07-13T20:37:12.600Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: R - ggplot2: Fill only the area between a line and a reference value<p>I want to use ggplot2 to produce a graph like the one below, where the area between th...
72,974,901
swift how to initialize a Codable Object<p>I want to initialize a Codable Object, for example:</p> <pre><code>struct Student: Codable { let name: String? let performance: String? enum CodingKeys: String, CodingKey { case name, performance } init(from decoder: Decoder) { let container = try...
<p>add this to <code>Student</code>:</p> <pre><code>init(name: String?, performance: String?) { self.name = name self.performance = performance } </code></pre> <p>and use it like this:</p> <pre><code> var student = Student(name: &quot;Bruce&quot;, performance: &quot;A+&quot;) </code></pre>
swift how to initialize a Codable Object
ios|swift|xcode|codable|decoder
-2
62
2
72,974,952
72,974,952
1
true
2022-07-14T03:35:09.877Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: swift how to initialize a Codable Object<p>I want to initialize a Codable Object, for example:</p> <pre><code>struct Student: Codable { let name: String? ...
72,960,065
az vm open-port icmp, is that possible?<p>Following up on <a href="https://stackoverflow.com/questions/47928380/cant-open-azure-vm-port">Can&#39;t open Azure VM Port</a> and <a href="https://docs.microsoft.com/en-us/azure/virtual-machines/windows/nsg-quickstart-portal" rel="nofollow noreferrer">https://docs.microsoft.c...
<blockquote> <p>Is it possible to open icmp port for <code>ping</code> using azure cli, like <code>az vm open-port</code>?</p> </blockquote> <p>Azure NSG now supports ICMP protocol and allows ping to a VM as we can see in the below screenshot from the document <a href="https://docs.microsoft.com/en-us/azure/virtual-net...
az vm open-port icmp, is that possible?
azure|command-line-interface|port|icmp
0
62
1
72,977,671
72,977,671
1
true
2022-07-13T01:50:26.597Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: az vm open-port icmp, is that possible?<p>Following up on <a href="https://stackoverflow.com/questions/47928380/cant-open-azure-vm-port">Can&#39;t open Azure...
72,978,941
Total time in different parts of recursive function<p>I am new to C++ and I need to measure the total time for different parts of a recursive function. A simple example to show where I get so far is:</p> <pre><code>#include &lt;iostream&gt; #include &lt;unistd.h&gt; #include &lt;chrono&gt; using namespace std; using na...
<p>You can use some container to store the times, pass it by reference and accumulate the times. For example with a <code>std::map&lt;std::string,unsinged&gt;</code> to have labels:</p> <pre><code>int recursive(int n, std::map&lt;std::string,unsigned&gt;&amp; times) { if (n &gt;= 0) return; // measure time of ...
Total time in different parts of recursive function
c++|performance|c++11|performance-testing|benchmarking
0
62
1
72,979,038
72,979,038
1
true
2022-07-14T10:20:09.790Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Total time in different parts of recursive function<p>I am new to C++ and I need to measure the total time for different parts of a recursive function. A sim...
72,949,011
Environment variable refresh by editing bashrc not working<p>In VS Code, environment variables can be edited by profile or rc files, such as <code>.bash_profile</code> or <code>.bashrc</code> in integrated terminal.</p> <p>However, when I tried to run a Jupyter notebook file on ssh-remote server, the edited environment...
<p>Try to restart the remote server you are connecting to, by using the <code>Kill VS Code Server On Host...</code> command from the command palette (CTRL+SHIFT+P), selecting the host you experience the problem with, then closing and restarting VS Code.</p> <p>I had the same problem today, and this worked for me. The V...
Environment variable refresh by editing bashrc not working
bash|visual-studio-code
0
62
1
72,983,479
72,983,479
1
true
2022-07-12T08:11:05.537Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Environment variable refresh by editing bashrc not working<p>In VS Code, environment variables can be edited by profile or rc files, such as <code>.bash_prof...
72,984,040
Container exceeding width 100%<p>I was wondering can anyone of you help me with this container width problem. When I'm in mobile view, container width is exceeding 100% for some reason. I tried reducing the width to 90% and it does solve the problem from a mobile view but then at the PC it moves images to left instead ...
<p>So i tried to changed all your width to max-width so they are not overflowing, move your media queries at the bottom. See below sample I made and let me know if this fixes your problem.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pr...
Container exceeding width 100%
html|css|image|twitter-bootstrap|width
1
62
1
72,984,494
72,984,494
1
true
2022-07-14T16:48:07.090Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Container exceeding width 100%<p>I was wondering can anyone of you help me with this container width problem. When I'm in mobile view, container width is exc...
72,985,114
Deplying a C++ application on Linux- linking everything statically to simplify deployment?<p>I am building a C++ project from Github and want to deploy the code to a remote Linux machine. This is all new to me.</p> <p>The project has a main.cpp, which includes the various headers/sources like a library.</p> <p>The CMak...
<p>ITNOA</p> <p>I it is very helpful to make URL of your GitHub's project, but I write some public notes about that</p> <p>In generally in CMake for static linking your library to your executable, you can write simple like below (from <a href="https://cmake.org/cmake/help/latest/manual/cmake-buildsystem.7.html#id16" re...
Deplying a C++ application on Linux- linking everything statically to simplify deployment?
c++|linux|cmake|makefile|build
1
62
1
72,986,766
72,986,766
1
true
2022-07-14T18:25:00.977Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Deplying a C++ application on Linux- linking everything statically to simplify deployment?<p>I am building a C++ project from Github and want to deploy the c...
72,993,240
How to pass dynamic values to EventHub attribute Azure Function c#<p>The function trigger is of type <code>HttpTrigger</code> and I want the send data to <code>EventHub</code> outputEventHubMessage.</p> <pre><code>public class AzureTestFunc { private readonly ConfigSettings _settings; public AzureTestFunc(IOpt...
<p>For EventHubName, use &quot;%YourEventHubSettingName%&quot; format to pull in from appsettings.</p> <p>For Connection, just give the name of the appsetting containing the connectionstring, without the %'s.</p> <p>Reference: <a href="https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-hub...
How to pass dynamic values to EventHub attribute Azure Function c#
c#|azure|azure-functions|azure-eventhub
0
62
1
72,993,594
72,993,594
1
true
2022-07-15T11:24:40.623Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to pass dynamic values to EventHub attribute Azure Function c#<p>The function trigger is of type <code>HttpTrigger</code> and I want the send data to <co...
72,995,943
Powerquery: Check if value exists in column as part of a string<p>Using Power Query in Power BI, I need to check for each row of a column to see if the value already exists as part of a larger string or is identical to a string in the column</p> <p>If it does, then that value should be marked as already existing, if no...
<pre><code>let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText(&quot;i45WMlRQ0lFydHLWcXF103H38NTx8vZRUIrViVYyAslgiBqDRH39/HUCAoMgIiYgkeCQUAjPFMRD0WEGEoHzzBGqYwE=&quot;, BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table ...
Powerquery: Check if value exists in column as part of a string
powerbi|powerquery
1
62
1
72,996,361
72,996,361
1
true
2022-07-15T14:59:49.417Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Powerquery: Check if value exists in column as part of a string<p>Using Power Query in Power BI, I need to check for each row of a column to see if the value...
72,991,142
How I can manage child height according to dynamic content in flex box?<p>In this example child2 has dynamic data which can be increase or decrease, and child3 has fixed height. main parent has dynamic window height, so I want child2 will show entirely without having scroll until whole remaining spaced got covered and ...
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>.mainCon{ height: 390px; width: 200px; border: 1px solid; } .upperBox{ height: calc(100% - 50px); display: flex; flex-...
How I can manage child height according to dynamic content in flex box?
html|css|flexbox
1
62
3
73,003,767
73,003,767
1
true
2022-07-15T08:26:20.880Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How I can manage child height according to dynamic content in flex box?<p>In this example child2 has dynamic data which can be increase or decrease, and chil...
72,997,798
CoreData can't save Object when non-Optional value is set in willSave()<p><strong>Context</strong> I have a non-Optional <code>lastEditTS</code> <code>Attribute</code> on an <code>Entity</code>, which I set every time the method <code>willSave()</code>gets called. However, this results in the following Saving error:</p...
<p>Managed objects are validated before they're saved. Internally, Core Data validates your property values first and only saves if they're OK. In your case, since <code>lastModified</code> is nil when you try to save changes, validation fails. Your <code>willSave</code> function never gets called because validation al...
CoreData can't save Object when non-Optional value is set in willSave()
ios|swift|xcode|core-data
0
62
1
73,008,307
73,008,307
1
true
2022-07-15T17:35:10.563Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: CoreData can't save Object when non-Optional value is set in willSave()<p><strong>Context</strong> I have a non-Optional <code>lastEditTS</code> <code>Attrib...