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,926,098
Assigning a string value in column x based off of a keyword in column y<p>I am trying to assign a brand name of a product to use on an excel doc. I have a column named &quot;Name&quot; which contains the name of multiple products, for example &quot;12oz Rambler Bottle White&quot;, which I have a blank column named &quo...
<p>You can try:</p> <pre><code>df.loc[df['Name'].str.contains(r'(?:keyword1|keyword2|keyword3)'), 'Brand'] = 'whatever' </code></pre> <ol> <li><a href="https://pandas.pydata.org/docs/reference/api/pandas.Series.str.contains.html" rel="nofollow noreferrer">pandas.Series.str.contains()</a> tests if pattern or regex is co...
Assigning a string value in column x based off of a keyword in column y
python|pandas|analytics
0
40
1
72,926,129
72,926,129
0
true
2022-07-10T04:13:02.063Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Assigning a string value in column x based off of a keyword in column y<p>I am trying to assign a brand name of a product to use on an excel doc. I have a co...
72,926,776
How can I extract hastags from textinput and safe in an array in React Native<p>I want to extract hashtags from Textinput and save them in an array.</p> <p>For example, the user enters</p> <blockquote> <p>&quot;Hello world, #Good #morning&quot;</p> </blockquote> <p>I want to save the #Good and #morning in an array usin...
<p>I think you can simply loop through the string and in case you find a hastag(<code>#</code>) you can add the respective value(until the space is reached) to an array.</p> <p>Or you can also use regex, like so:</p> <pre><code>const mystring = &quot;Hello world, #Good #morning&quot;; const hashtags = mystring.match(/#...
How can I extract hastags from textinput and safe in an array in React Native
javascript|regex|react-native
-1
40
1
72,926,787
72,926,787
0
true
2022-07-10T07:15:07.077Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I extract hastags from textinput and safe in an array in React Native<p>I want to extract hashtags from Textinput and save them in an array.</p> <p>F...
72,972,252
Pyspark - how to grab just the hour timestamp in a datetime string?<p>I have a df in pyspark that has a date/time column. The datetime is set up as a string. I'm trying to extract the particular hour out of each datetime string and then count how many '0-hours', '1-hours', '2-hours', etc. are included. Each string is s...
<p>Maybe something like:</p> <pre><code>&gt;&gt;&gt; from pyspark.sql.functions import to_timestamp, hour &gt;&gt;&gt; df = spark.createDataFrame([{&quot;dt&quot;: &quot;2016-04-26 19:49:16&quot;}]) &gt;&gt;&gt; df.select(&quot;dt&quot;, hour(to_timestamp(&quot;dt&quot;, &quot;yyyy-MM-dd HH:mm:ss&quot;)).alias(&quot;h...
Pyspark - how to grab just the hour timestamp in a datetime string?
python|python-3.x|dataframe|pyspark
0
40
2
72,972,397
72,972,397
0
true
2022-07-13T20:26:42.117Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pyspark - how to grab just the hour timestamp in a datetime string?<p>I have a df in pyspark that has a date/time column. The datetime is set up as a string....
73,012,948
node-canvas & TypeScript: Assertion failed: (tmp.table_size - hash_table_sizes < ARRAY_LENGTH (hash_table_sizes))<p>I am using node-canvas for drawing an image, this error occurs when the code is ran:</p> <pre><code>Assertion failed: (tmp.table_size - hash_table_sizes &lt; ARRAY_LENGTH (hash_table_sizes)), function _ca...
<p>It appears that <code>npm rebuild</code> fully resolves this issue.</p> <p>Deleting <code>node_modules</code> folder and running <code>npm install</code> will also work as an alternative method.</p>
node-canvas & TypeScript: Assertion failed: (tmp.table_size - hash_table_sizes < ARRAY_LENGTH (hash_table_sizes))
node.js|typescript|canvas|cairo|node-canvas
0
40
1
73,013,066
73,013,066
0
true
2022-07-17T15:15:28.330Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: node-canvas & TypeScript: Assertion failed: (tmp.table_size - hash_table_sizes < ARRAY_LENGTH (hash_table_sizes))<p>I am using node-canvas for drawing an ima...
72,841,556
Excel - Find the matching values between two columns return adjacent value into a new column<p>I have tried looking for this answer, but with no joy.</p> <p>I have two columns with IDs Columns A and B, and in Column C are the Count totals of Column B. What I need to do is find the match of Column B to Column A, then re...
<p>You may want to <code>XLOOKUP</code> the respective row value of column A with column B to return the related value from column C</p> <p><a href="https://support.microsoft.com/en-us/office/xlookup-function-b7fd680e-6d10-43e6-84f9-88eae8bf5929" rel="nofollow noreferrer">https://support.microsoft.com/en-us/office/xloo...
Excel - Find the matching values between two columns return adjacent value into a new column
excel|excel-formula
0
40
2
72,841,663
72,841,663
0
true
2022-07-02T18:36:06.080Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Excel - Find the matching values between two columns return adjacent value into a new column<p>I have tried looking for this answer, but with no joy.</p> <p>...
72,928,315
NotifyOfPropertyChange Not updating in realtime<p>I have two Textboxes, I tried to update the second Textbox when i changed the first one but it's only work when i clicked another control or we can say a Button and also if i change the Second Textbox and click the button the First Textbox not gonna be updated.</p> <p>I...
<p>To synchronize both <code>TextBox</code> elements you must bind them to a common property using <code>BindingMode.TwoWay</code> (if both elements can update each other).</p> <p>To update the <code>Binding</code> set on the <code>TextBox.Text</code> property without moving the focus, you must configure the <code>Bind...
NotifyOfPropertyChange Not updating in realtime
wpf|.net-6.0|caliburn.micro
0
40
1
72,929,120
72,929,120
0
true
2022-07-10T11:59:17.753Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: NotifyOfPropertyChange Not updating in realtime<p>I have two Textboxes, I tried to update the second Textbox when i changed the first one but it's only work ...
72,848,939
Image slider - While rendering img using {#each} by clicking buttons that change visible image, transitions and animations don't work<p>It's my first time asking question on stack overflow and from what I'm feeling I'm missing something very small or don't understand the logic correctly. I show images by {#each} block ...
<p>You need to key the <code>{#each}</code> (<a href="https://svelte.dev/docs#template-syntax-each" rel="nofollow noreferrer">see docs</a>), e.g.</p> <pre class="lang-html prettyprint-override"><code>{#each images.slice(prevSelected, selected) as img (img)} </code></pre> <p>Otherwise the same component is reused and on...
Image slider - While rendering img using {#each} by clicking buttons that change visible image, transitions and animations don't work
css|css-animations|svelte|sveltekit|svelte-transition
0
40
1
72,849,238
72,849,238
0
true
2022-07-03T18:24:12.843Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Image slider - While rendering img using {#each} by clicking buttons that change visible image, transitions and animations don't work<p>It's my first time as...
72,864,464
XML with 2 namespace. Issue with attributes and unable to replace namespace<p>I'm struggling to resolve an xml transformation that I'm working on. The Input XML has 2 namespaces which makes it challenging and I need to replace the input XML's namespace value to some other value.</p> <p>Basically, I am trying to:</p> <o...
<p>Try this:</p> <pre class="lang-xml prettyprint-override"><code>&lt;xsl:stylesheet version=&quot;2.0&quot; xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:ns2=&quot;http://xmlns.example.com/eventNotify&quot; xmlns:old=&quot;http://xmlns.example.com/eventNotify/v1&quot; xmlns=&quot;htt...
XML with 2 namespace. Issue with attributes and unable to replace namespace
xml|xslt|xslt-2.0|xslt-3.0
0
40
2
72,865,092
72,865,092
0
true
2022-07-05T05:41:18.467Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: XML with 2 namespace. Issue with attributes and unable to replace namespace<p>I'm struggling to resolve an xml transformation that I'm working on. The Input ...
72,903,376
Tkinter stopwatch stops with 1 second delay<p>When you press &quot;reset&quot; button, the stopwatch is supposed to stop and reset, but instead it sets digits to zero, then adds one more second and ends up with 00:00:0<strong>1</strong>.</p> <p>The same with &quot;stop&quot; button. F.e. if we press stop at 00:05, it s...
<p>Defined a variable for <code>stopwatch_label.after(1000, stopwatch_update)</code> and now everything works fine.</p> <p>The end of <code>stopwatch_update()</code>:</p> <pre><code>if switch: global stopwatch_after stopwatch_after = stopwatch_label.after(1000, stopwatch_update) </code></pre> <p><co...
Tkinter stopwatch stops with 1 second delay
python|debugging|tkinter|stopwatch
1
40
1
72,950,909
72,950,909
0
true
2022-07-07T19:39:05.110Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Tkinter stopwatch stops with 1 second delay<p>When you press &quot;reset&quot; button, the stopwatch is supposed to stop and reset, but instead it sets digit...
73,011,547
Find missing date range in R<p>I have a dataframe of start and end dates, where each row represents a specific trip.</p> <p>Those date ranges makeup a continuous timeline except around April where there is a <strong>discontinuity</strong>/lack of data (because no trips were taken).</p> <p>I would like to find the start...
<p>A possible solution:</p> <pre class="lang-r prettyprint-override"><code>library(tidyverse) library(lubridate) df %&gt;% mutate(date1 = if_else(start == lag(end), NA_Date_, lag(end)), date2 = if_else(start == lag(end), NA_Date_, start)) %&gt;% bind_rows(tibble(start = .$date1, end = .$date2)) %&gt;% ...
Find missing date range in R
r|dplyr
0
40
1
73,011,676
73,011,676
0
true
2022-07-17T11:55:39.497Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Find missing date range in R<p>I have a dataframe of start and end dates, where each row represents a specific trip.</p> <p>Those date ranges makeup a contin...
72,910,296
Which files are needed for an own finisher to work in the Typo3 form extension?<p>I want to make my own finisher but I don't have a clue what is needed.</p> <p>I have \Domain\Finishers\MyOwnFinisher.php // with the finisher class Configuration\Form\Backend.yaml //which should tell my TYPO3 where to look for the finishe...
<p>You have some definition in the yaml file, I complete it as I never know if you missed it or left it out:</p> <pre><code>TYPO3: CMS: Form: prototypes: standard: finishersDefinition: MyOwn: implementationClassName: 'mastar\testprivateext\Classes\Domain\Finishers...
Which files are needed for an own finisher to work in the Typo3 form extension?
typo3|typoscript
0
40
1
72,910,716
72,910,716
0
true
2022-07-08T10:46:59.790Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Which files are needed for an own finisher to work in the Typo3 form extension?<p>I want to make my own finisher but I don't have a clue what is needed.</p> ...
72,854,529
Why my @media query isn't showing and it seems to not working?<p>I am having problems with the media query, it seems not working, why, and how can i resolve? I search on the internet but i still don't get it... this is my code</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel...
<p>First you are missing the very important tag for responsive</p> <pre><code>&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot; /&gt; </code></pre> <p>Second, because initially you are applying the <code>background-color</code> to <code>html,body</code></p> <p>So either apply it...
Why my @media query isn't showing and it seems to not working?
html|css|frontend|media-queries
0
40
2
72,854,607
72,854,607
0
true
2022-07-04T09:28:27.690Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why my @media query isn't showing and it seems to not working?<p>I am having problems with the media query, it seems not working, why, and how can i resolv...
72,857,592
How to add text under images like shown in example below [Flutter]<p>I would like to add the text &quot;Appointments&quot; like shown in the example below. I've tried using the Text widget under Image.asset but I don't think I'm using it right. I'm still new to Flutter so any help would be much appreciated.</p> <p><a h...
<p>Use below code :</p> <pre><code> Container( height: 250, width: 320, decoration: BoxDecoration( borderRadius: BorderRadius.circular(10), boxShadow: kElevationToShadow[1], color: Color.fromARGB(255, 255, 255, 255), ...
How to add text under images like shown in example below [Flutter]
flutter
-1
40
2
72,857,779
72,857,779
0
true
2022-07-04T13:32:39.513Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add text under images like shown in example below [Flutter]<p>I would like to add the text &quot;Appointments&quot; like shown in the example below. I...
72,784,921
trying to display css on selected page<p>trying to display certain css in selected page in wordpress. I have below code in header.</p> <pre><code>&lt;?php if ( is_page('105') ) {?&gt; &lt;style&gt;.article-header {display:none;}&lt;/style&gt; &lt;?php } ?&gt; </code></pre> <p>above code work only when we...
<p>Add the following code to functions.php file using action Hook. if you want to add style or script on footer then you can use <code>wp_footer</code> hook or if you want to add custom css or script to header you can use <code>wp_head</code> hook.</p> <pre><code>add_action(&quot;wp_head&quot;, function() { global...
trying to display css on selected page
wordpress|custom-wordpress-pages
0
40
2
72,786,889
72,786,889
0
true
2022-06-28T10:36:37.763Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: trying to display css on selected page<p>trying to display certain css in selected page in wordpress. I have below code in header.</p> <pre><code>&lt;?php ...
72,927,106
The browser blocks Dash component inside Django<p>I have made a <code>Django</code> project which I tried to insert a <code>Dash component</code> in, using <code>django_plotly_dash</code> module, that part related to <code>Dash component</code> won't show and gets blocked by browser:</p> <p><a href="https://i.stack.img...
<p>I found the answer, in <code>MIDDLEWARE</code> section of <code>settings.py</code>.</p> <p>Remove:</p> <pre class="lang-py prettyprint-override"><code>django.middleware.clickjacking.XFrameOptionsMiddleware </code></pre>
The browser blocks Dash component inside Django
python|html|django-templates|plotly-dash|blocked
0
40
1
72,941,432
72,941,432
0
true
2022-07-10T08:22:27.180Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: The browser blocks Dash component inside Django<p>I have made a <code>Django</code> project which I tried to insert a <code>Dash component</code> in, using <...
72,882,352
why tkinter variable can be used in function with out incoming and regular variable need incoming<p>today I am studying tkinter and meet something strange, can anyone help?<br /> Here is my first code:</p> <pre class="lang-py prettyprint-override"><code>from tkinter import * def click_me(): count += 1 print(f'Y...
<p>In Python, <em>by default</em>, you can only <strong>assign</strong> to variables in the <strong>innermost scope</strong>. When you do <code>count += 1</code> (which is pretty much same as <code>count = count + 1</code>) you assign to <code>count</code>, so Python treats it as a local variable. Because of that, when...
why tkinter variable can be used in function with out incoming and regular variable need incoming
python|tkinter
-3
40
1
72,883,067
72,883,067
0
true
2022-07-06T10:56:50.023Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: why tkinter variable can be used in function with out incoming and regular variable need incoming<p>today I am studying tkinter and meet something strange, c...
72,964,508
Is there a way to find the physical disk size of a table in Postgres?<p>Please note that I'm talking about the <em>physical</em> size, <em>on disk</em>, that the table consumes, not the size of the data and metadata in the table.</p> <p>As noted here: <a href="https://www.postgresql.org/docs/current/routine-vacuuming.h...
<p>It seems that I've misread the definition of <code>pg_total_relation_size</code> - this seems to be the exact value that I'm looking for and includes the physical size on disk. I led myself to believe that this value only includes data but not the table's reserved disk space.</p> <p>See also <a href="https://stackov...
Is there a way to find the physical disk size of a table in Postgres?
postgresql
0
40
1
72,964,745
72,964,745
0
true
2022-07-13T10:09:51.550Z
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 find the physical disk size of a table in Postgres?<p>Please note that I'm talking about the <em>physical</em> size, <em>on disk</em>, that...
72,957,362
Getting result from native implementation that could take time in Flutter plugin<p>My native library has a function that takes a closure parameter. This closure is necessary to ensure that network access is complete (the http request is non-blocking) so that the closure can take certain actions. Because Flutter plugin ...
<p>I was able to solve the time issue by doing this inside the native implementation:</p> <pre><code>[MyNativeClass loginWithId:userName password:password completion:^(BOOL success) { result([NSNumber numberWithBool:success]); }]; </code></pre> <p>Thanks to Richard Heap whose comments made me realize I can do it thi...
Getting result from native implementation that could take time in Flutter plugin
flutter|closures|httprequest|flutter-plugin
0
40
1
72,982,989
72,982,989
0
true
2022-07-12T19:20:22.450Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting result from native implementation that could take time in Flutter plugin<p>My native library has a function that takes a closure parameter. This clos...
72,999,117
Find correlation in bigquery between two columns for each group (in third column)<p>I have a table with columns:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: left;">time</th> <th style="text-align: center;">name</th> <th style="text-align: right;">metric_a</th> <th sty...
<p>I just needed to use <code>GROUP BY</code>:</p> <pre><code>SELECT name, corr(metric_a, metric_b) AS corr from T GROUP BY name </code></pre>
Find correlation in bigquery between two columns for each group (in third column)
sql|google-bigquery|correlation
-1
40
1
72,999,275
72,999,275
0
true
2022-07-15T20:06:41.367Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Find correlation in bigquery between two columns for each group (in third column)<p>I have a table with columns:</p> <div class="s-table-container"> <table c...
72,879,647
Pandas masking the column replaces non matched value to NaN<p>Say I have a dataframe</p> <pre><code>d = { &quot;cid&quot;: [1, 3, 3], &quot;txt&quot;: [&quot;Kakashi is GOAT&quot;, &quot;Eleven is El&quot;, &quot;Hello agian&quot;], &quot;anime&quot;: ['Kakashi ', 'el', 'mouse'] } df = pd.DataFrame(data=d...
<p>You could skip the <code>mask</code> step and just assign the <code>newCol</code> values using (almost) the same lambda function:</p> <pre class="lang-py prettyprint-override"><code>df['newCol'] = df.apply(lambda x: x.code if x.anime.lower() in x.txt.lower() else 999, axis=1) </code></pre> <p>Output:</p> <pre><code>...
Pandas masking the column replaces non matched value to NaN
python|pandas
0
40
2
72,879,713
72,879,713
0
true
2022-07-06T07:44:33.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pandas masking the column replaces non matched value to NaN<p>Say I have a dataframe</p> <pre><code>d = { &quot;cid&quot;: [1, 3, 3], &quot;txt&quot;...
72,968,818
How can I bring the input to the center?<p>How to get <code>&lt;input type=&quot;text&quot;&gt;</code> in the center? I want to make a login form but i cannot bring the input on the center</p>
<h3>Method 1</h3> <p>Wrap your <code>input</code> element in a <code>div</code> and set it's <code>text-align</code> to <code>center</code></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 lang-css prettyprint-ov...
How can I bring the input to the center?
html|css
0
40
1
72,968,876
72,968,876
0
true
2022-07-13T15:26:17.770Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I bring the input to the center?<p>How to get <code>&lt;input type=&quot;text&quot;&gt;</code> in the center? I want to make a login form but i canno...
72,828,456
Android java button value check<p>I'm trying to learn basic stuff in android studio with java. I need to create 1 activity where we need a Button and a text to input. When the button is clicked to check is the input value is between 3 words &quot;Primary, Secondary , Higher). Here is the mainactivity code</p> <pre><cod...
<p>Follow this way</p> <p>add input field in you xml file above button view .</p> <pre><code>&lt;EditText android:id=&quot;@+id/edu&quot; android:layout_width=&quot;fill_parent&quot; android:layout_height=&quot;wrap_content&quot; android:hint=&quot;Enter your education&quot; /&gt; </code></pre> ...
Android java button value check
java|android|android-button
1
40
1
72,829,096
72,829,096
0
true
2022-07-01T11:17:41.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Android java button value check<p>I'm trying to learn basic stuff in android studio with java. I need to create 1 activity where we need a Button and a text ...
72,937,930
split the text and make a list of list<p>I have text file and I want to split the files and make it list where it is starting from @Given, @When and @And and put in a list, below files look like this</p> <pre><code>@Given User Username{ User Userpassowrd User ID } @When User Username{ User Userpassowrd User ID ...
<p>You could use <em>for loop</em> to iterate over lines of <code>txtFile</code> by <em>split('\n')</em> with <em>break line</em> and <code>startswith</code> to check if it start with '@' ot with <em>closing curly brace</em> '}' store lines in <code>list</code> and finally join them back with new line <em>'\n'</em> and...
split the text and make a list of list
python|list|split
-2
40
1
72,938,034
72,938,034
0
true
2022-07-11T11:34:58.357Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: split the text and make a list of list<p>I have text file and I want to split the files and make it list where it is starting from @Given, @When and @And an...
72,835,194
Kotlin Change ViewText with an ID provided by a String<p><strong>Goal:</strong> To get a ViewText resource and edit it from an activity, using a mutable string (because then the string can be changed to alter other ViewTexts in the same function).</p> <p><strong>Context:</strong> I'm making a grid using TableRows and T...
<p>A binding object is just an autogenerated class, whose class members are defined by the views in your layout XML. You can't add or access a field on a class with the syntax you showed - binding classes are no different from any other class. If you wanted to be able to access them by name, you could load them into a ...
Kotlin Change ViewText with an ID provided by a String
android|kotlin|binding
1
40
1
72,835,326
72,835,326
0
true
2022-07-01T22:40:43.380Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Kotlin Change ViewText with an ID provided by a String<p><strong>Goal:</strong> To get a ViewText resource and edit it from an activity, using a mutable stri...
73,005,890
how can i get all the data in document firestore?<p>current i am working to my school project using android studio, it is an attendance system where I store my data to Firestore and the user are able to download/export the data to become Excel file. What I am trying to do is how can I get the all data in a single docum...
<p>You are looping over things multiple times where you probably don't need to be. If you want to get multiple documents from a collection and have each document be a single row in the spreadsheet where the document fields fill the columns within that row, then you only need a single loop - over documents. It would loo...
how can i get all the data in document firestore?
java|android|firebase|google-cloud-firestore
0
40
2
73,006,012
73,006,012
0
true
2022-07-16T16:27:29.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how can i get all the data in document firestore?<p>current i am working to my school project using android studio, it is an attendance system where I store ...
72,848,829
Django app NameError however the app is installed<p>I'm trying to modify Django's built-in authetnication system by adding a custom user model. The customized model is defined inside an app named <code>accounts</code>:</p> <pre><code>from django.db import models from django.contrib.auth.models import AbstractUser from...
<p>The <a href="https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-AUTH_USER_MODEL" rel="nofollow noreferrer"><strong><code>AUTH_USER_MODEL</code></strong> setting <sup>[Django-doc]</sup></a> should be a <em>string</em>, not a (qualified) name, so:</p> <pre><code># settings.py # &hellip; # string litera...
Django app NameError however the app is installed
python|django|django-users|django-settings|django-apps
1
40
2
72,848,946
72,848,946
0
true
2022-07-03T18:06:36.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Django app NameError however the app is installed<p>I'm trying to modify Django's built-in authetnication system by adding a custom user model. The customize...
72,771,473
How to extract pure unique values (no duplicate values) in R?<p>I'm trying to extract pure unique values in R.</p> <p>For example:</p> <pre><code>vec &lt;- c(&quot;a&quot;, &quot;b&quot;, &quot;c&quot;,&quot;c&quot;) </code></pre> <p>Using <code>duplicate()</code> I get:</p> <pre><code>vec[!duplicated(vec, fromLast=TR...
<p>You can use the following code with <code>ave</code> which counts the <code>length</code> of unique values and takes only the elements whose length is 1 to skip the duplicates:</p> <pre><code>vec &lt;- c(&quot;a&quot;, &quot;b&quot;, &quot;c&quot;,&quot;c&quot;) vec[ave(vec, vec, FUN = length) == 1] </code></pre> <...
How to extract pure unique values (no duplicate values) in R?
r|duplicates|unique
0
40
1
72,771,498
72,771,498
1
true
2022-06-27T11:39:21.527Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to extract pure unique values (no duplicate values) in R?<p>I'm trying to extract pure unique values in R.</p> <p>For example:</p> <pre><code>vec &lt;- c...
72,772,494
How to make textBox and button side by side?<p>I'm building a project and I need to make a search section but I have a problem. I want to make search button side by side with textBox but I couldn't figure it out how to do it. How can I make them side by side ?</p> <p><a href="https://i.stack.imgur.com/GidwI.jpg" rel="n...
<p>you can use</p> <pre class="lang-html prettyprint-override"><code>display: flex; </code></pre> <p>this should put all elements inside the div next to eachother</p>
How to make textBox and button side by side?
html|css
0
40
2
72,772,519
72,772,519
1
true
2022-06-27T12:57:10.543Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make textBox and button side by side?<p>I'm building a project and I need to make a search section but I have a problem. I want to make search button ...
72,772,459
How can I take the previous 5 values I am passing through search and then using it in API. I want to display pervious five values<p>This is a functional component. Here I am using useEffect hook to hit API on the dependency of search. The place where I am doing console.log(<code>${search}</code> is displaying the curre...
<p>The following code is able to keep track of previous searches as you expect. It just stacks the previous response to an array along with the result and excludes items from the end when the size exceeds more than 5.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true"> <d...
How can I take the previous 5 values I am passing through search and then using it in API. I want to display pervious five values
javascript|reactjs|arrays
2
40
1
72,772,957
72,772,957
1
true
2022-06-27T12:54:40.130Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I take the previous 5 values I am passing through search and then using it in API. I want to display pervious five values<p>This is a functional comp...
72,773,393
Strict or Loose equality when comparing to a Symbol?<p>Is strict equality (<code>===</code>) ever required when comparing any entity to a Symbol? None of the type conversion rules on <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality#description" rel="nofollow noreferrer">MDN<...
<blockquote> <p>So can something like</p> <pre><code>function foo(x) { return x == somePredefinedSymbol; } </code></pre> <p>ever go wrong,</p> </blockquote> <p>Yes, this is a somewhat constructed example but it does showcase a failure scenario:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-consol...
Strict or Loose equality when comparing to a Symbol?
javascript
0
40
1
72,773,938
72,773,938
1
true
2022-06-27T14:02:05.363Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Strict or Loose equality when comparing to a Symbol?<p>Is strict equality (<code>===</code>) ever required when comparing any entity to a Symbol? None of the...
72,774,283
Filtering Flux elements based on result of webservice call<p>In below code I am filtering elements ina flux based on some logic and then further filtering based on the result of webservice call. Now the webservice returns a Mono so I can use it in the filter method. calling block() doesn't work. Can someone how to go a...
<p>You should avoid <code>block</code> while building reactive flows. <code>filter</code> could be used to apply synchronous logic. In case you need to apply asynchronous function that returns <code>Mono</code> - use <code>filterWhen</code>.</p> <pre><code>protected Flux&lt;&gt; getFilteredResults(Flux&lt;&gt; resultsT...
Filtering Flux elements based on result of webservice call
spring-webflux|project-reactor
1
40
1
72,774,471
72,774,471
1
true
2022-06-27T15:02:02.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Filtering Flux elements based on result of webservice call<p>In below code I am filtering elements ina flux based on some logic and then further filtering ba...
72,776,653
Python multithreading (Concurrent Futures) resutls in recursive results, how to set multithreading properly?<p>I put together the following Python script which uses multithreading to execute a function which returns a dictionary (my actual application is for loading and parsing - but simplified it here to a string ope...
<p>The ONLY things that should be outside of your <code>if __name__</code> guard are the setting of global inputs, and the function to be executed. THAT'S IT. Remember that, with multiprocessing, each new thread starts a brand new interpreter, which re-runs your file, but with <code>__name__</code> set to a different v...
Python multithreading (Concurrent Futures) resutls in recursive results, how to set multithreading properly?
python|multithreading|multiprocessing|concurrent.futures|process-pool
0
40
1
72,776,728
72,776,728
1
true
2022-06-27T18:12:21.033Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python multithreading (Concurrent Futures) resutls in recursive results, how to set multithreading properly?<p>I put together the following Python script whi...
72,777,156
How to split an array in Clickhouse based on custom condition<p>I am trying to find a way to split my array when the next element is smaller than the previous element. Here is some sample data</p> <blockquote> <p>[100, 200, 500, 100, 150, 200]</p> </blockquote> <p>I need to convert this to</p> <blockquote> <p>[[100, 20...
<p>Try this way:</p> <pre class="lang-sql prettyprint-override"><code>SELECT [100, 200, 500, 100, 150, 200] AS arr, arrayMap((x, index) -&gt; if(index = 1, 1, (arr[index]) &lt; (arr[index - 1])), arr, arrayEnumerate(arr)) AS split_rules, arraySplit((x, y) -&gt; y, arr, split_rules) AS result /* ┌─arr──────...
How to split an array in Clickhouse based on custom condition
sql|clickhouse
0
40
1
72,777,524
72,777,524
1
true
2022-06-27T19:01:22.330Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to split an array in Clickhouse based on custom condition<p>I am trying to find a way to split my array when the next element is smaller than the previou...
72,779,169
Moving player on Y axis in Godot 2D<p>I'm new to Godot. I'm trying to make my player move vertically just like when it's moving horizontally. I've tried a couple of thoughts, but unfortunately, I couldn't move him the I want him to move. I want to code my vertical movement in a similar way to my following horizontal mo...
<p>Once upon a time there were vectors. I'm not in the mood to make yet another <a href="https://math.stackexchange.com/a/4335556/6928">Introduction to Vector Algebra</a> or to explain <a href="https://gamedev.stackexchange.com/a/160075/10408">How to Work With Arbitrarily Oriented Vectors</a>. <em>Perhaps you might be ...
Moving player on Y axis in Godot 2D
game-development|godot|gdscript
1
40
1
72,780,140
72,780,140
1
true
2022-06-27T23:13:19.047Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Moving player on Y axis in Godot 2D<p>I'm new to Godot. I'm trying to make my player move vertically just like when it's moving horizontally. I've tried a co...
72,780,520
Having trouble navigating to different page<p>I have a react website with user authentication and a sidebar. I have routes protected which don't allow the person to navigate without logging in. It works fine but now i want it so that the sidebar is shown only after login, to achieve this i kept sidebar inside protected...
<p>If you only want the <code>Sidebar</code> component to render with certain routes it is a common solution to use what is called a Layout Route to render an <code>Outlet</code> component for nested routes to render their routed content into when matched.</p> <p>See <a href="https://reactrouter.com/docs/en/v6/getting-...
Having trouble navigating to different page
reactjs|react-router-dom
1
40
1
72,780,727
72,780,727
1
true
2022-06-28T03:44:54.470Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Having trouble navigating to different page<p>I have a react website with user authentication and a sidebar. I have routes protected which don't allow the pe...
72,778,364
WiX Installer use RegistrySearch result for directory<p>I'm trying to create an installer using WiX for an add-in to a product called SolidWorks.</p> <p>Looking at the <a href="https://www.firegiant.com/wix/tutorial/getting-started/where-to-install/" rel="nofollow noreferrer">docs</a> led me to believe that I should be...
<p>As per the comments above, the issue is that the registry key is in the 64-bit hive but the package was 32-bit. The fix is to either make the package 64-bit (so the searches look in 64-bit locations by default) or make the registry search 64-bit by adding the <code>Win64='yes'</code> attribute.</p>
WiX Installer use RegistrySearch result for directory
wix
0
40
1
72,781,676
72,781,676
1
true
2022-06-27T21:13:31.700Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: WiX Installer use RegistrySearch result for directory<p>I'm trying to create an installer using WiX for an add-in to a product called SolidWorks.</p> <p>Look...
72,782,935
How can i map a json string to a dictionary from a dynamic type<p>I want to take a json string and map it to a dictionary so i can have access to its key value pairs and then check the values after. I keep getting an error:</p> <blockquote> <p>Unable to cast object of type <code>Newtonsoft.Json.Linq.JObject</code> to t...
<p>Instead of explicit casting from <code>JObject</code> to <code>Dictionary</code>, use <a href="https://www.newtonsoft.com/json/help/html/M_Newtonsoft_Json_Linq_JToken_ToObject__1.htm" rel="nofollow noreferrer"><code>JObject.ToObject&lt;T&gt;()</code></a>.</p> <pre class="lang-cs prettyprint-override"><code>IDictiona...
How can i map a json string to a dictionary from a dynamic type
c#|json|.net|idictionary
0
40
1
72,783,043
72,783,043
1
true
2022-06-28T08:13:25.913Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can i map a json string to a dictionary from a dynamic type<p>I want to take a json string and map it to a dictionary so i can have access to its key val...
72,786,647
creating row total in R<p>Being quite new on R, i would like to create a row &quot;total&quot; with the sum of the lines of each column, for the columns &quot;nb de sejours&quot; and &quot;activite en valeur&quot; (for each year). Could anyone help me ?</p> <blockquote> <p>dput(head(computing))</p> </blockquote> <pre><...
<p>you may need to convert numeric columns from characters to numeric first, then we use <code>adorn_totals()</code> from package <code>janitor</code></p> <pre><code>fra_computing %&gt;% mutate(across(-c(&quot;type de sejour&quot;), as.numeric)) %&gt;% adorn_totals(&quot;row&quot;) type de sejour nb de sejours N2 anne...
creating row total in R
r|dplyr|sum|cumulative-sum
0
40
1
72,786,823
72,786,823
1
true
2022-06-28T12:41:46.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: creating row total in R<p>Being quite new on R, i would like to create a row &quot;total&quot; with the sum of the lines of each column, for the columns &quo...
72,779,086
Extract and explode inner nested element as rows from string nested structure<p>I would like to explode a column to rows in a dataframe on pyspark hive. There are two columns in the dataframe. The column &quot;business_id&quot; is a string. The column &quot;sports_info&quot; is a struct type, each element value is an a...
<pre><code>df2 = df.withColumn('sport_new', expr(&quot;transform (sports_type, x -&gt; regexp_extract( x, 'sport_id:([0-9]+)',1))&quot;)).show() </code></pre> <p>Explained:</p> <pre><code>expr( #use a SQL expression, only way to access transform (pre spark 3) &quot;transform ( # run a SQL function on an array sports...
Extract and explode inner nested element as rows from string nested structure
json|apache-spark|pyspark
1
40
1
72,787,581
72,787,581
1
true
2022-06-27T22:59:00.823Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Extract and explode inner nested element as rows from string nested structure<p>I would like to explode a column to rows in a dataframe on pyspark hive. Ther...
72,789,085
Count users with a condition in MYSQL<p>I have a table 'helpdesk' (detail below) that lists tickets.</p> <p>I'm trying to get the top 10 users who report issues, however there is a complication in the fact that users can report an issue for another user (think secretary for their boss as an example).</p> <p>The table s...
<p>Assuming that <code>people_id</code> is the primary key of <code>people</code> you should do a <code>LEFT</code> join of <code>people</code> to <code>helpdesk</code> (and not the other way around) and use a <code>CASE</code> expression in the <code>ON</code> clause, so that you pick the correct user:</p> <pre><code>...
Count users with a condition in MYSQL
mysql|sql|group-by|count|left-join
1
40
1
72,789,296
72,789,296
1
true
2022-06-28T15:15:18.867Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Count users with a condition in MYSQL<p>I have a table 'helpdesk' (detail below) that lists tickets.</p> <p>I'm trying to get the top 10 users who report iss...
72,790,375
SQL Date Time Format including Time<p>Need help with Oracle SQL Formatting. I have the below code which outputs the data (MINNEEDTIME) in DD-MM-YY format. Need to change this to MM/DD/YYYY HH:MI AM format. Tried TO_CHAR for converting and that threw an error. Any assistance will be appreciated. Thank you</p> <pre><code...
<p>You can use <code>TO_CHAR(&lt;date&gt;, &lt;format&gt;)</code> as in:</p> <pre><code>select to_char(current_date, 'MM/DD/YYYY HH:MI AM') from dual </code></pre> <p>In your case replace <code>ve.EVENT_DTIME</code> with:</p> <pre><code>to_char(ve.EVENT_DTIME, 'MM/DD/YYYY HH:MI AM') </code></pre>
SQL Date Time Format including Time
sql|oracle
-1
40
2
72,790,434
72,790,434
1
true
2022-06-28T16:48:46.103Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL Date Time Format including Time<p>Need help with Oracle SQL Formatting. I have the below code which outputs the data (MINNEEDTIME) in DD-MM-YY format. Ne...
72,777,850
How to check if computations are done in DataSpell<p>I am running the following code in DataSpell</p> <pre><code>some_object = function_with_very_long_computations() </code></pre> <p>I seem not able to find any indicators in DataSpell to confirm that line execution is completed. Especially in the case where some_object...
<p>If you run it within a Jupyter notebook, it'll have an indication whether the cell is still running or not.</p> <p>EDIT:</p> <p>For Python scripts, there is a button &quot;Show Command Queue&quot; on the Python Console toolbar, which displays a green dot while the script is running (see screenshot).<a href="https://...
How to check if computations are done in DataSpell
python|dataspell
1
40
1
73,529,338
73,529,338
1
true
2022-06-27T20:16:56.150Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to check if computations are done in DataSpell<p>I am running the following code in DataSpell</p> <pre><code>some_object = function_with_very_long_comput...
72,238,016
Pandas: imputing descriptive stats using a groupby with a variable<p>I have a data frame like this:</p> <pre><code>input_df = pd.DataFrame({&quot;sex&quot;: [&quot;M&quot;, &quot;F&quot;, &quot;F&quot;, &quot;M&quot;, &quot;M&quot;], &quot;Class&quot;: [1, 2, 2, 1, 1], &quot;Age&quot;:[40, 30, 30, 50, NaN]}) </code></p...
<p>If you give the right inputs, it outputs just fine...</p> <pre><code># Fixed input to match function: df = pd.DataFrame({&quot;Sex&quot;: [&quot;M&quot;, &quot;F&quot;, &quot;F&quot;, &quot;M&quot;, &quot;M&quot;], &quot;Pclass&quot;: [1, 2, 2, 1, 1], &quot;Age&quot;:[40, 30, 30, 50, np.nan]}) def conditional_imput...
Pandas: imputing descriptive stats using a groupby with a variable
pandas|transform
-1
40
1
72,238,086
72,238,086
0
true
2022-05-14T06:58:48.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pandas: imputing descriptive stats using a groupby with a variable<p>I have a data frame like this:</p> <pre><code>input_df = pd.DataFrame({&quot;sex&quot;: ...
72,239,070
How can I set variable php and mysql code<p>I want to set a variable &quot;name&quot;, I tried: if(isset($_POST['name'])), But not result.</p> <p>I was also looking for other options but could not get results.</p> <p>I have a PHP code:</p> <pre><code> &lt;?php $servername = &quot;localhost&quot;; $username = &quot...
<p>Add to the top:</p> <pre><code>$name = $_POST['name']; </code></pre> <p>And edit this line as:</p> <pre><code> $sql = &quot;SELECT name, addres, status, date FROM silknet WHERE name='$name'&quot;; </code></pre>
How can I set variable php and mysql code
php
-1
40
1
72,239,431
72,239,431
0
true
2022-05-14T09:49:35.867Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I set variable php and mysql code<p>I want to set a variable &quot;name&quot;, I tried: if(isset($_POST['name'])), But not result.</p> <p>I was also ...
72,238,362
How do I load an item from API to a fragment inside an Activity?<p>I need to load elements from my API to a fragment inside an activity, but once I initialize the element inside of the Activity Class present in the fragment like the TextView the app crashes.</p> <p><a href="https://i.stack.imgur.com/tJolj.png" rel="nof...
<p>As I don't have the Exception stack trace, I would recommend you to pass it in a Bundle, because I would say the Exception occurs when this casting happens:</p> <pre><code>val item = intent.getSerializableExtra(&quot;item&quot;) as DemoDataBaseItem </code></pre> <p>try to send the data with a bundle as the following...
How do I load an item from API to a fragment inside an Activity?
android|android-studio|kotlin
0
40
1
72,239,973
72,239,973
0
true
2022-05-14T07:59:36.853Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I load an item from API to a fragment inside an Activity?<p>I need to load elements from my API to a fragment inside an activity, but once I initializ...
72,246,475
Get Time like "2022-05-15T06:48:10.189Z"<p>I am attempting to get the current time formatted into the string similar to <code>2022-05-15T06:48:10.189Z</code>,</p> <p>How would I be able to do that with python, is it <code>datetime</code> or <code>time</code>?</p>
<p>It's called Zulu Time Zone in <a href="https://en.wikipedia.org/wiki/List_of_military_time_zones" rel="nofollow noreferrer">military time zones</a>, the letter Z indicates UTC.</p> <p>You can use <code>utcnow()</code> and <code>isoformat()</code>, for example:</p> <pre class="lang-py prettyprint-override"><code>prin...
Get Time like "2022-05-15T06:48:10.189Z"
python
-1
40
1
72,246,537
72,246,537
0
true
2022-05-15T07:55:21.160Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get Time like "2022-05-15T06:48:10.189Z"<p>I am attempting to get the current time formatted into the string similar to <code>2022-05-15T06:48:10.189Z</code>...
72,252,589
How do I fix a dropdown button (HTML)<p>Whenever I try to change the things in this code, I'm only changing the button and function parts, but either nothing shows, or the button dosent work, when I click the button, it should show motivational comments, for a website I'm making, here's the code:</p> <p><div class="sni...
<ol> <li><p>Your body element should contain all of your markup, not just some of it. Also, your <code>body</code> wasn't being closed.</p> </li> <li><p>I've used a <code>div</code> to hold your comments</p> </li> <li><p><code>button.onclick = myFunction;</code> wouldn't work as <code>button</code> is undefined. You al...
How do I fix a dropdown button (HTML)
html|css|function|button|visibility
-1
40
3
72,252,606
72,252,606
0
true
2022-05-15T22:19:40.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I fix a dropdown button (HTML)<p>Whenever I try to change the things in this code, I'm only changing the button and function parts, but either nothing...
72,249,905
asio::ip::tcp::socket auto reconnect by io_service<p>Under Ubuntu 2404LTS with boost version 1.65.1.</p> <p>I use <code>io_service</code> to initiate <code>asio::ip::tcp::socket</code> <code>async_connect</code> and get <code>socket1</code>, then I read several messages from it.</p> <p>After receving some specific mess...
<p>We can't tell without seeing the code, but my suspicion is to undefined behaviour.</p> <p>Here's a literal implementation of your description:</p> <p><strong><a href="http://coliru.stacked-crooked.com/a/4ee0dc1a3ef41b86" rel="nofollow noreferrer">Live On Coliru</a></strong></p> <pre><code>#include &lt;boost/asio.hpp...
asio::ip::tcp::socket auto reconnect by io_service
c++|tcp|boost-asio|asio
1
40
1
72,253,206
72,253,206
0
true
2022-05-15T15:56:40.897Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: asio::ip::tcp::socket auto reconnect by io_service<p>Under Ubuntu 2404LTS with boost version 1.65.1.</p> <p>I use <code>io_service</code> to initiate <code>a...
72,252,668
Email schedule that runs in the background in ASP.NET MVC<p>How to create an email that run in the background as long as there is a timeout &gt; 2 between 2 dates.</p> <p>2 days the difference between the 2 dates otherwise there is a time overrun as in the photo (opening date1, closing date2 : date2 -date1 &gt; 2 =&gt;...
<p>You can follow below steps:</p> <ol> <li>Create a background SQLAgent job, which runs on regular schedule, say daily once or every 12 hours, based on the notification schedule.</li> <li>This SQLAgent job, polls the schedule table and sends email using <code>sp_send_dbmail</code>. Use DATEDIFF(day,GETDATE(),TravelDat...
Email schedule that runs in the background in ASP.NET MVC
sql-server|asp.net-mvc
0
40
1
72,253,933
72,253,933
0
true
2022-05-15T22:37:03.040Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Email schedule that runs in the background in ASP.NET MVC<p>How to create an email that run in the background as long as there is a timeout &gt; 2 between 2 ...
72,241,178
Attach Database Backup file in E-Mail send not working<p>I am using following code to take backup of my mysql database.</p> <p>With this code, a file is created and get saved in same folder where this script is kept. It is working perfectly.</p> <p>I am trying to email this file using phpmailer. But I am stucked as <st...
<p>I have edited this code and now it is working...</p> <p>Edited code kept on github...</p> <p><a href="https://github.com/vaidyamanishjoshi/db-backup-with-pdo-and-email-it" rel="nofollow noreferrer">https://github.com/vaidyamanishjoshi/db-backup-with-pdo-and-email-it</a></p>
Attach Database Backup file in E-Mail send not working
php|phpmailer|database-backups
0
40
1
72,255,154
72,255,154
0
true
2022-05-14T14:34:49.427Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Attach Database Backup file in E-Mail send not working<p>I am using following code to take backup of my mysql database.</p> <p>With this code, a file is crea...
72,257,207
group the object in array by name<pre><code>let obj = [ { name: &quot;a&quot;, quantity: 2 }, { name: &quot;b&quot;, quantity: 4 }, { name: &quot;c&quot;, quantity: 88 } ] let obj2 = [ { name: &quot;a&quot;, quantity: 2 } ]...
<p>You can use <code>forEach()</code> for this.</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"><code>let obj = [ { name: "a", quantity: 2 }, { na...
group the object in array by name
javascript|node.js
1
40
2
72,257,290
72,257,290
0
true
2022-05-16T09:45:41.873Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: group the object in array by name<pre><code>let obj = [ { name: &quot;a&quot;, quantity: 2 }, { name: &quot;b&quot;, ...
72,247,941
C# acessing a class item from a static class<p>I want to create a static class that contains all &quot;Name&quot; entries from the previous Client class:</p> <pre><code> public class Client { [Key] public int ClientID { get; set; } public string Name { get; set; } } static class Clien...
<p>In static class, class objects have to be static. So create a static object and use it's instance.</p> <pre><code> public class Client { [Key] public int ClientID { get; set; } public string Name { get; set; } } static class ClientList { static Client client = new ...
C# acessing a class item from a static class
c#
0
40
2
72,257,501
72,257,501
0
true
2022-05-15T11:43:48.730Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C# acessing a class item from a static class<p>I want to create a static class that contains all &quot;Name&quot; entries from the previous Client class:</p>...
72,265,666
Sum function has unexpected behavior<p>I have a problem using the <code>sum()</code> function within my defined function. When I write the same code without defining a function everything works.</p> <pre><code>new_game = input(&quot;Do you want to play a game of Blackjack? Type 'y' or 'n': \n&quot;) while new_game == ...
<p>A function can only <code>return</code> once. As soon as your function gets to its first <code>return</code> statement, it's done:</p> <pre><code> def sum_scores(): my_score = sum(my_cards) return my_score # all done! </code></pre> <p>Instead, wait until you're all done computing the two scores before ...
Sum function has unexpected behavior
python|sum
0
40
1
72,265,768
72,265,768
0
true
2022-05-16T21:09:38.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Sum function has unexpected behavior<p>I have a problem using the <code>sum()</code> function within my defined function. When I write the same code without ...
72,267,851
How to get the value in the enumeration declared in the drl file in java<p>I started learning drools recently, when I declared an enum type in drl file, but in java, I don't know how to get the value of this enum, can anyone help me?</p> <p>First: <strong>enums declared in drools file</strong></p> <pre><code>declare en...
<p>Generally speaking, you don't do it like that.</p> <p>If you need it in Java, declare it in Java. You can reference Java enums by importing them as you would any other class.</p> <p>OrderStatus.java:</p> <pre><code>package com.example; public enum OrderStatus { // ... } </code></pre> <p>example.drl</p> <pre><code...
How to get the value in the enumeration declared in the drl file in java
drools
0
40
1
72,269,487
72,269,487
0
true
2022-05-17T03:23:10.610Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get the value in the enumeration declared in the drl file in java<p>I started learning drools recently, when I declared an enum type in drl file, but ...
72,277,648
Errror: _tkinter.TclError: bad window path name ".!button"<p>So today I tried to use python classes for the first time, to remove the excessive use of global keyword. I am trying to create a tkinter window in which, when we click one button it removes the clicked button and replaces it with a new button. And when we cl...
<p>You're destroying <code>self.hi</code> and then later trying to call <code>place</code> on the destroyed button. Once a widget has been destroyed you can no longer use it.</p> <p>If you want to keep cycling the buttons, don't destroy them. Since you are using <code>place</code>, you can use <code>self.hi.place_forge...
Errror: _tkinter.TclError: bad window path name ".!button"
python|class|tkinter
0
40
1
72,277,798
72,277,798
0
true
2022-05-17T16:29:56.057Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Errror: _tkinter.TclError: bad window path name ".!button"<p>So today I tried to use python classes for the first time, to remove the excessive use of global...
72,280,573
Make a matrix out of a df in R<p>So I have a table that looks something like this</p> <pre><code>name &lt;- c(&quot;AGTC&quot;,&quot;ATTC&quot;,&quot;ATGC&quot;, &quot;ATCC&quot;) Var1 &lt;- c(&quot;TRA11&quot;,&quot;TRA8&quot;,&quot;TRA9&quot;, &quot;TRA9&quot;) Var2 &lt;- c(&quot;TRB1&quot;, &quot;TRB15&quot;, &quot;...
<pre><code>table(df[-1]) Var2 Var1 TRB1 TRB15 TRB7 TRA11 1 0 0 TRA8 0 1 0 TRA9 0 0 2 </code></pre> <p>If you want it as a dataframe:</p> <pre><code>as.data.frame.matrix(table(df[-1])) TRB1 TRB15 TRB7 TRA11 1 0 0 TRA8 0 1 0 TRA9 0 0 ...
Make a matrix out of a df in R
r|dataframe|ggplot2|tidyverse|circos
1
40
2
72,280,631
72,280,631
0
true
2022-05-17T20:54:35.210Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Make a matrix out of a df in R<p>So I have a table that looks something like this</p> <pre><code>name &lt;- c(&quot;AGTC&quot;,&quot;ATTC&quot;,&quot;ATGC&qu...
72,281,618
Passing another attribute to params other than the id<p>I want to access the <code>username</code> attribute of my <code>User</code> model from <code>params</code> using <code>params[:username]</code>.</p> <p>On my <code>user</code> model, I have</p> <pre><code>class User &lt; ApplicationRecord has_secure_password ...
<p>For more details check rails guides <a href="https://guides.rubyonrails.org/routing.html#overriding-named-route-parameters" rel="nofollow noreferrer">overriding-named-route-parameters</a></p> <p>Add route like this</p> <pre><code>Rails.application.routes.draw do root &quot;pages#home&quot; resources :users, pat...
Passing another attribute to params other than the id
ruby-on-rails
0
40
1
72,283,947
72,283,947
0
true
2022-05-17T23:10:50.833Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Passing another attribute to params other than the id<p>I want to access the <code>username</code> attribute of my <code>User</code> model from <code>params<...
72,284,278
use python variable to read specific rows from access table using sqlalchemy<p>I have an access table called &quot;Cell_list&quot; with a key column called &quot;Cell_#&quot;. I want to read the table into a dataframe, but only the rows that match indices which are specified in a python list &quot;cell_numbers&quot;. I...
<p>Convert (join) <code>cell_numbers</code> to text:</p> <pre><code>cell_text = '(1,3,7)' </code></pre> <p>and concatenate this.</p> <p>The finished SQL should read (you may need brackets around the weird field name <code>Cell_#</code>):</p> <pre><code>SELECT * FROM Cell_list WHERE [Cell_#] IN (1,3,7) </code></pre>
use python variable to read specific rows from access table using sqlalchemy
python|pandas|ms-access|pyodbc
1
40
2
72,284,395
72,284,395
0
true
2022-05-18T06:40:25.667Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: use python variable to read specific rows from access table using sqlalchemy<p>I have an access table called &quot;Cell_list&quot; with a key column called &...
72,296,111
Create new column based on the sum of selected columns in python<p>I have a dataframe like this</p> <pre><code>ID Q001 Q002 Q003 Q004 Q005 Q006 Q007 Q008 Win A 1 1 1 1 1 1 1 1 Yes B 0 1 0 1 0 1 0 1 ...
<p>Use <code>np.where()</code> to return a value conditional on other columns.</p> <pre><code>df['Win'] = np.where(df['Q001'] + df['Q002'] &gt;= 2, 'Yes', 'No') </code></pre>
Create new column based on the sum of selected columns in python
python|pandas
-1
40
4
72,296,172
72,296,172
0
true
2022-05-18T21:19:26.370Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Create new column based on the sum of selected columns in python<p>I have a dataframe like this</p> <pre><code>ID Q001 Q002 Q003 Q004 Q005 Q0...
72,298,515
How can i read a file with fs or without it, but i want to read row per row?<p>I want to read a file with fs, but so far i could not do that, never show the console 2222, why can not see the console?</p> <pre><code>const inputFileName = &quot;./input.txt&quot;; fs.createWriteStream(outputFileName, { flags: &quot;a&quo...
<p>you should listen the <code>line</code> event.here is a simple code.</p> <pre class="lang-js prettyprint-override"><code>let fs = require('fs'); let readline = require('readline'); let strInputFileName = 'input.txt'; let fRead = fs.createReadStream(strInputFileName); fRead.on('end', ()=&gt;{ console.log('...
How can i read a file with fs or without it, but i want to read row per row?
javascript
0
40
2
72,298,940
72,298,940
0
true
2022-05-19T04:07:31.687Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can i read a file with fs or without it, but i want to read row per row?<p>I want to read a file with fs, but so far i could not do that, never show the ...
72,280,422
Is TensorFlow the way to go for this optimization problem?<p>I have to optimize the result of a process that depends on a large number of variables, i.e. a laser engraving system where the engraving depth depends on the laser speed, distance, power and so on.</p> <p>The final objective is the minimization of the engrav...
<p>I’m not quite sure if I understood the problem correctly, would you add some example data and a desired output?</p> <p>As far as I understood, It could be feasible to use TensorFlow, but I believe there are better solutions to that problem. Let me expand on this.</p> <p>TensorFlow is a framework focused in the devel...
Is TensorFlow the way to go for this optimization problem?
tensorflow|machine-learning|optimization
-1
40
1
72,302,186
72,302,186
0
true
2022-05-17T20:37:40.703Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is TensorFlow the way to go for this optimization problem?<p>I have to optimize the result of a process that depends on a large number of variables, i.e. a l...
72,300,260
How to render specific HTML tags from a text in React?<p>I have a dynamic text coming from my server with some HTML tags in it. I don't want to &quot;dangerouslySetInnerHTML&quot; because of security reasons and because I only want to allow specific html tags like <code>&lt;i&gt; &lt;b&gt; &lt;strong&gt; &lt;em&gt;</co...
<p>I fixed this by using the <strong>dompurify</strong> library and created a reusable component in React.</p> <p>html-tag-renderer.js</p> <pre><code>import React from 'react'; import DOMPurify from 'dompurify'; import PropTypes from 'prop-types'; const HTMLTagRenderer = ({ string, allowedTags }) =&gt; { const clean...
How to render specific HTML tags from a text in React?
html|reactjs|regex
-3
40
1
72,303,949
72,303,949
0
true
2022-05-19T07:21:19.110Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to render specific HTML tags from a text in React?<p>I have a dynamic text coming from my server with some HTML tags in it. I don't want to &quot;dangero...
72,292,593
Can't create an object of type interface with data collected from ngrx store<p>I have this interface:</p> <pre><code>export interface AuthStateInterface { isSubmitting: boolean, X_HI_CODE: string, token: string, userId : number, roleId: number } </code></pre> <p>And I want to create an object of ...
<p>There were several concepts of angular or typescript in general that I was misunderstanding. As @MikeOne said in the comments, Ngrx selectors return Observables, and I had to subscribe and assign them to the variables I've declared previously. So this is what I did:</p> <p>1- I initialized the variables, not observa...
Can't create an object of type interface with data collected from ngrx store
angular|typescript|object|interface|ngrx
0
40
1
72,304,571
72,304,571
0
true
2022-05-18T16:09:37.323Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can't create an object of type interface with data collected from ngrx store<p>I have this interface:</p> <pre><code>export interface AuthStateInterface { ...
72,305,434
Plot coastline and calculate distances (marmap and ggmap)<p>I am working on a research project in marine ecology, using R, and I would like to create a map of a small and precise part of the French Mediterranean coast. From this map I would like to add the different fish collection sites in order to calculate the dista...
<p>I'd recommend using <code>leaflet</code> for mapping and <code>geosphere</code> to find the Haversine (as the crow flies` distance betwen points.</p>
Plot coastline and calculate distances (marmap and ggmap)
r|ggplot2|maps|distance|ggmap
1
40
1
72,305,460
72,305,460
0
true
2022-05-19T13:27:26.443Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Plot coastline and calculate distances (marmap and ggmap)<p>I am working on a research project in marine ecology, using R, and I would like to create a map o...
72,312,717
How to generate 2-yaxis graphs on a panel data per id?<p>I have a dataset, <code>df</code> that looks like this:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Date</th> <th>Code</th> <th>City</th> <th>State</th> <th>Quantity x</th> <th>Quantity y</th> <th>Population</th> <th>Cases</th> <t...
<p>If I understood you correctly, you are looking for a <a href="https://blog.hubspot.com/website/filter-rows-pandas" rel="nofollow noreferrer">filtering functionality</a>:</p> <pre><code>import matplotlib.pyplot as plt import pandas as pd def plot_quantity_and_death(df): # your code fig, ax1 = plt.subplots(f...
How to generate 2-yaxis graphs on a panel data per id?
python|pandas|matplotlib
0
40
1
72,314,060
72,314,060
0
true
2022-05-20T01:41:44.743Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to generate 2-yaxis graphs on a panel data per id?<p>I have a dataset, <code>df</code> that looks like this:</p> <div class="s-table-container"> <table c...
72,314,366
Generate pb.c/pb.h files using protobuf-c without anonymous members in structs<p>I am trying to generate some pb.c and pb.h files using protobuf-c. I have earlier use nanopb to generate the same files but need to move to protobuf-c for a new project.</p> <p>When generating the structure for a OneOf field, I see a diffe...
<p>Looking at the protobuf-c source code in <a href="https://github.com/protobuf-c/protobuf-c/blob/f224ab2eeb648a818eb20687d7150a285442c907/protoc-c/c_message.cc#L212-L224" rel="nofollow noreferrer">c_message.cc</a>, the generation of <code>union {}</code> is unconditional and has no option for naming it.</p>
Generate pb.c/pb.h files using protobuf-c without anonymous members in structs
protocol-buffers|protobuf-c
0
40
1
72,314,425
72,314,425
0
true
2022-05-20T06:20:13.447Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Generate pb.c/pb.h files using protobuf-c without anonymous members in structs<p>I am trying to generate some pb.c and pb.h files using protobuf-c. I have ea...
72,316,183
Round Down and Round Up float to negative decimals point in python<p>I'm looking for something to round up and round down at 1,2, and -1 decimal points in python, I have written some logic through it I am able to get the right values for +ve points but still looking round down -ve values.</p> <p>my code is as -:</p> <p...
<p>This is the complete solution that meets my matrix.</p> <pre><code>import decimal outcome = '622222.545454545' rounding=&quot;Alwayes Up&quot; decimal_place = -1 # for positive values if rounding == &quot;Alwayes Up&quot;: decimal.getcontext().rounding = decimal.ROUND_UP elif rounding == &quot;Alwayes Down...
Round Down and Round Up float to negative decimals point in python
python
-2
40
1
72,317,243
72,317,243
0
true
2022-05-20T08:58:37.930Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Round Down and Round Up float to negative decimals point in python<p>I'm looking for something to round up and round down at 1,2, and -1 decimal points in py...
72,322,339
SQL Join is not working when adding a third value to SELECT<p>Slowly going insane wondering why my SQL query works with 2 SELECT variables, but not 3. This is being used in Solarwinds.</p> <pre><code>SELECT TOP 20 ROUND(AVG(t1.Availability), 2) as Average_Availability, t2.Caption as Node_Name FROM Orion.ResponseTime t1...
<p>This query is aggregating rows to calculate the <code>AVG()</code>, but you are only grouping by one of your other fields, <code>Node_Name</code>. You need to add <code>CurrentStatus</code> to the <code>GROUP BY</code> list</p>
SQL Join is not working when adding a third value to SELECT
mysql|sql|solarwinds-orion
1
40
2
72,322,448
72,322,448
0
true
2022-05-20T16:52:46.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL Join is not working when adding a third value to SELECT<p>Slowly going insane wondering why my SQL query works with 2 SELECT variables, but not 3. This i...
72,323,805
Is there a way to get a list of all the releases in a GitHub repository?<p>I believe the <code>PyGitHub</code> libary can do this, but for the purposes of my project, I am calling the GitHub API directly with the <code>requests</code> library as I am caching the results of my API call with the <a href="https://requests...
<p>The Github API uses <a href="https://docs.github.com/en/rest/guides/traversing-with-pagination" rel="nofollow noreferrer">pagination</a> to deal with large numbers of responses. You can request pages other than the first page by appending <code>page=&lt;n&gt;</code> to your request url. For example:</p> <pre><code>p...
Is there a way to get a list of all the releases in a GitHub repository?
python|github|github-api
0
40
1
72,324,881
72,324,881
0
true
2022-05-20T19:10:38.887Z
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 get a list of all the releases in a GitHub repository?<p>I believe the <code>PyGitHub</code> libary can do this, but for the purposes of my...
72,326,518
Copy URL from Spotify Playlist<p>I'm trying to make a GUI that takes your Spotify playlist, analyzes it and guesses your age. I'm looking thru their API tutorial and the only way to get the user's playlist is to have them connect using authorization. Is there a way to use the copied link that is available from the shar...
<p>Unless these playlists are public, no, they always will need to AUTH.</p>
Copy URL from Spotify Playlist
python|tkinter|spotify
0
40
1
72,326,568
72,326,568
0
true
2022-05-21T03:48:21.733Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Copy URL from Spotify Playlist<p>I'm trying to make a GUI that takes your Spotify playlist, analyzes it and guesses your age. I'm looking thru their API tuto...
72,324,998
Convert ArrayList<Custom> to gson in Java Android<p>Good afternoon. I can not understand why the code does not work after publishing in the Google market. Before publishing in android studio code</p> <pre><code>ArrayList&lt;TableAccount&gt; tableAccount = getTableAccount(); String jsonStr = new Gson().toJson(tableAccou...
<p>Apparently, you turned on ProGuard/R8 for your <code>release</code> build, and its obfuscation mode renamed your fields.</p> <p>The biggest lesson from here is to make sure that you test your <code>release</code> builds before uploading them to Google Play.</p> <p>To fix the problem, you could:</p> <ul> <li>Turn off...
Convert ArrayList<Custom> to gson in Java Android
java|android|gson
1
40
1
72,329,407
72,329,407
0
true
2022-05-20T21:35:52.853Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Convert ArrayList<Custom> to gson in Java Android<p>Good afternoon. I can not understand why the code does not work after publishing in the Google market. Be...
72,320,766
Laravel How to solve Swift Message attach Data error?<pre><code> $pdf = Pdf::loadHTML($html); Mail::send(array(), array(), function ($message) use ($fullname, $email, $html, $pdf) { $message-&gt;to([$email =&gt; $fullname]) -&gt;subject('New Test Mail') -&gt;fr...
<p>Just swap setBody method with attachData like this:</p> <pre><code> $pdf = Pdf::loadHTML($html); Mail::send(array(), array(), function ($message) use ($fullname, $email, $html, $pdf) { $message-&gt;to([$email =&gt; $fullname]) -&gt;subject('New Test Mail') -&gt;from('noreply@siteaddr...
Laravel How to solve Swift Message attach Data error?
laravel
0
40
1
72,329,798
72,329,798
0
true
2022-05-20T14:39:13.360Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Laravel How to solve Swift Message attach Data error?<pre><code> $pdf = Pdf::loadHTML($html); Mail::send(array(), array(), function ($message)...
72,330,843
I want to close the offer at the end of the timer?<p>I want the ad to close automatically when the timer ends I have tried several forms of loops but it still doesn't work when implementing the loops it stops working, it just cancels the timer thing.</p> <p>The other thing I couldn't do is when I press the close button...
<p>Use <code>document.querySelector(&quot;.alert&quot;)</code> and <code>.remove()</code> to remove that Ads from HTML like <a href="https://stackoverflow.com/a/72330906/19117401">@Nathan Adda</a> suggest, <code>addEventListener</code> click on DOM of close Button for remove Ads using <code>.remove()</code> same above...
I want to close the offer at the end of the timer?
javascript|html|css
0
40
2
72,331,266
72,331,266
0
true
2022-05-21T15:17:27.840Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I want to close the offer at the end of the timer?<p>I want the ad to close automatically when the timer ends I have tried several forms of loops but it stil...
72,332,841
Is ftp connection to secure server in c++ program secure with libcurl?<p>Is ftp connection to secure server in c++ program secure with libcurl?I need to make a client program that will receive and write data to the host.</p>
<p>FTP is insecure, it transfers data, user names &amp; passwords in the clear. Don't use it. Use either https, scp or sftp.</p>
Is ftp connection to secure server in c++ program secure with libcurl?
ftp
0
40
1
72,332,855
72,332,855
0
true
2022-05-21T20:00:38.920Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is ftp connection to secure server in c++ program secure with libcurl?<p>Is ftp connection to secure server in c++ program secure with libcurl?I need to make...
72,332,533
Cannot declare a member of a Discriminated Union<p>The following code gives an compilation error about being &quot;not sufficiently generic&quot;. What is wrong?</p> <pre><code>type SameLenVectors&lt;'T when 'T: (static member (+): 'T * 'T -&gt; 'T) and 'T: (static member (*): 'T * 'T -&gt; 'T)&gt; = private SameLe...
<p><code>'T</code> is a <a href="https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/generics/statically-resolved-type-parameters" rel="nofollow noreferrer">statically resolved type parameter</a> (SRTP), so it must be inlined at the call site:</p> <pre class="lang-ml prettyprint-override"><code>member inl...
Cannot declare a member of a Discriminated Union
generics|f#
0
40
1
72,333,549
72,333,549
0
true
2022-05-21T19:10:26.970Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cannot declare a member of a Discriminated Union<p>The following code gives an compilation error about being &quot;not sufficiently generic&quot;. What is wr...
72,348,323
How to iterate over a xml file to extract some attributes?<p>I'm trying to extract the values from a xml file and save it as a dataframe. For each <strong>line</strong> element, I'd like to add the date from the <strong>chk</strong> element.</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot...
<pre><code>import xml.etree.ElementTree as ET xml = '''&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt; &lt;sales&gt; &lt;chk no=&quot;xxx&quot; date=&quot;xxxx&quot; time=&quot;xxx&quot; total=&quot;xxxx&quot; debtor=&quot;xxxx&quot; name=&quot;xxx&quot; cardnumber=&quot;xxxxxxx&quot; mobil=&...
How to iterate over a xml file to extract some attributes?
python|xml
0
40
2
72,349,425
72,349,425
0
true
2022-05-23T12:11:47.667Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to iterate over a xml file to extract some attributes?<p>I'm trying to extract the values from a xml file and save it as a dataframe. For each <strong>li...
72,352,324
Use of panda .loc function in order to select a specific data within a column<p>I have a dataset which can be found on this website: <a href="http://tennis-data.co.uk/alldata.php" rel="nofollow noreferrer">http://tennis-data.co.uk/alldata.php</a>. It gathers outcomes of both WTA and ATP tennis games over several years....
<pre><code>df = df_atp.loc[df_atp[&quot;Date&quot;].between(&quot;01/01/2016&quot;, &quot;31/12/2017&quot;), ['Winner', 'Wsets']] df = df[df['Winner'] == 'Federer R.'] print(df) </code></pre> <p>is the most readable way to do it. You could also do</p> <pre><code>df = df_atp.loc[df_atp[&quot;Date&quot;].between(&quot;01...
Use of panda .loc function in order to select a specific data within a column
python|pandas|dataframe|pandas-loc
1
40
2
72,352,453
72,352,453
0
true
2022-05-23T17:05:35.107Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Use of panda .loc function in order to select a specific data within a column<p>I have a dataset which can be found on this website: <a href="http://tennis-d...
72,327,153
dropdown list not loaded in edit form or not selected row according table id<p>My Below Codes are edit row in database. All is working fine except a two dropdown lists which is dynamically loaded from database. but in edit mode its not loaded all options in list or default row not selected according to row id of databa...
<p>some steps should be possible:</p> <ol> <li><p>add selected in the select</p> <pre><code> &lt;div class=&quot;form-group&quot;&gt; &lt;label&gt;Department&lt;/label&gt; &lt;select selected data-placeholder=&quot;Select Department&quot; name=&quot;dept&quot; id=&quot;&quot; class=&quot;form-control select2&quot; &g...
dropdown list not loaded in edit form or not selected row according table id
php|mysql|dropdown
0
40
1
72,353,161
72,353,161
0
true
2022-05-21T06:16:53.143Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: dropdown list not loaded in edit form or not selected row according table id<p>My Below Codes are edit row in database. All is working fine except a two drop...
72,355,788
div element not displaying<p>I am currently designing a website that requires a div element to appear overlayed on top of an image when that image is hovered over. The images are in a carousel that expands and changes the size of them when they are hovered, and I would like the description (sc-desc) to appear with the ...
<p>You probably want something like this (replace the image div with an actual <code>img</code>). The important part is to use <code>position: absolute</code> on the overlay div, and set its parent div as <code>position: relative</code>. This will make the overlay div position absolute relative to the parent div. If yo...
div element not displaying
html|css
0
40
1
72,355,954
72,355,954
0
true
2022-05-23T23:34:06.197Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: div element not displaying<p>I am currently designing a website that requires a div element to appear overlayed on top of an image when that image is hovered...
72,356,967
java - Set final fields with reflection in Constructor<p>I'm trying to make a multi-language app with messages inside multiple <code>*.properties</code> files. I've started working on something like this:</p> <pre class="lang-java prettyprint-override"><code> public Language(@NotNull Map&lt;String, String&gt; info)...
<p>Usually, you don't store text messages directly in constants, but rather just message keys. Then you use these keys to fetch the actual text messages in the map.</p> <p>You can use a map directly, but in Java, there is ResourceBundle. A ResourceBundle can be loaded directly from a .properties file.</p> <p>my-bundle_...
java - Set final fields with reflection in Constructor
java|string|reflection|final
-2
40
1
72,357,212
72,357,212
0
true
2022-05-24T03:42:39.790Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: java - Set final fields with reflection in Constructor<p>I'm trying to make a multi-language app with messages inside multiple <code>*.properties</code> file...
72,357,047
Drag formula to the last row (take first cell as A6)<p>I need to fill the formula till the last used row. I have data from A6:A28, however while using below code its dragging the formula till row 628. Issue is with 4th line of the code. Please help me correct.</p> <pre><code>Dim Lastrow As Long Lastrow = ActiveSheet.Ce...
<h2>Copy Down Formulas</h2> <p><strong>A Quick Fix</strong></p> <ul> <li>Just remove the <code>6</code> after the <code>M</code>.</li> </ul> <pre class="lang-vb prettyprint-override"><code>Selection.AutoFill Destination:=Range(&quot;H6:M&quot; &amp; LastRow), Type:=xlFillDefault </code></pre> <p><strong>An Improvement<...
Drag formula to the last row (take first cell as A6)
excel|vba
1
40
1
72,357,371
72,357,371
0
true
2022-05-24T03:55:35.133Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Drag formula to the last row (take first cell as A6)<p>I need to fill the formula till the last used row. I have data from A6:A28, however while using below ...
72,357,966
React input field value issue<pre><code>const [inputValue,setInputValue] = useState(&quot;&quot;) handleChange = (e)=&gt;{ setInputValue(e.target.value) console.log(e.target.value,inputValue) } </code></pre> <p>this is a simple input tag <strong>onChange</strong> function but the thing here inside the handleChange fun...
<p><em>&quot;the thing is that i want to do a search bar and because of this when i type let's say &quot;a&quot; or something search doesn't work because the state value is empty that time.&quot;</em></p> <p>Setting state is an async process. When you try to log the state immediately after setting it all you're doing i...
React input field value issue
javascript|reactjs
-1
40
2
72,358,616
72,358,616
0
true
2022-05-24T06:12:58.827Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React input field value issue<pre><code>const [inputValue,setInputValue] = useState(&quot;&quot;) handleChange = (e)=&gt;{ setInputValue(e.target.value) con...
72,360,887
Teradata BTEQ: disable logon prompt<p>When i run a teradata bteq in the CMD shell -</p> <p>A little logon prompt screen pops up.</p> <p>When i press enter the bteq runs.</p> <p>Is there a way to disable this popup screen?</p> <p>Searching the internet yields that entering a <code>logonprompt off</code> should solve the...
<p>You can pass the fully qualified logon string to get rid of the prompt.</p> <p><code>.LOGON my_server/user,password</code></p> <p>If you still want to go with only the server details in .LOGON. Along with <code>.SET LOGONPROMPT OFF</code>, set the environment variable <code>GUILOGON</code> as <code>NO</code>.</p> <...
Teradata BTEQ: disable logon prompt
teradata|bteq
0
40
1
72,362,067
72,362,067
0
true
2022-05-24T09:59:05.287Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Teradata BTEQ: disable logon prompt<p>When i run a teradata bteq in the CMD shell -</p> <p>A little logon prompt screen pops up.</p> <p>When i press enter th...
72,360,334
BC50319 error using OleDb.OleDbDataAdapter.Fill<p>I get the error <a href="https://docs.microsoft.com/en-us/dotnet/visual-basic/misc/bc30519" rel="nofollow noreferrer">BC50319</a> on 'da.Fill(DataTableWorkstation)' which is part of this segment:</p> <pre><code> Using da As New OleDb.OleDbDataAdapter(oleExcelComm...
<p>The solution for the problem is, that I need to be explicit when initializing variables. I had to change the initialization of my variable from this:</p> <pre><code>Dim DataTableWorkstation As DataTable </code></pre> <p>to this:</p> <pre><code>Dim DataTableWorkstation As System.Data.DataTable </code></pre> <p>and th...
BC50319 error using OleDb.OleDbDataAdapter.Fill
excel|vb.net|visual-studio
0
40
1
72,363,116
72,363,116
0
true
2022-05-24T09:20:23.183Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: BC50319 error using OleDb.OleDbDataAdapter.Fill<p>I get the error <a href="https://docs.microsoft.com/en-us/dotnet/visual-basic/misc/bc30519" rel="nofollow n...
72,324,174
All elements are outside the containers after migrating TYPO3 version and gridelements<p>I am in the process of migrating our website from TYPO3 version 8 LTS to 9.5 LTS.</p> <p>I have problems with gridelements (old version 8.7, new version 9.81).</p> <p>Everything is correct in FE but <strong>when I add content in BE...
<p>The problem was a TypoScript snippet in our site</p> <pre><code>TCEFORM { tt_content { colPos.keepItems = 1,0,2 } } </code></pre> <p>keepItems -1 was missing.</p>
All elements are outside the containers after migrating TYPO3 version and gridelements
typo3-9.x|tx-gridelements
1
40
1
72,368,972
72,368,972
0
true
2022-05-20T19:52:09.997Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: All elements are outside the containers after migrating TYPO3 version and gridelements<p>I am in the process of migrating our website from TYPO3 version 8 LT...
72,366,278
How to make a GridItem use all of the available space in a LazyVGrid?<p>I would like the 2nd column of my LazyVGrid to fill all of the available space (a bit like <code>flex:1</code> in css). I should be able to do it by using <code>.flexible()</code>, but I can't get it to work</p> <p>What am I missing? Thanks in adva...
<p>You don't give a use case, or a <a href="https://stackoverflow.com/help/minimal-reproducible-example">Minimal Reproducible Example (MRE)</a>, so it is a bit difficult to determine what you do want, other than the second image. You can't produce that with <code>GridItem.Size</code>. You can make that look by setting ...
How to make a GridItem use all of the available space in a LazyVGrid?
ios|swiftui
1
40
1
72,369,373
72,369,373
0
true
2022-05-24T16:22:27.543Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make a GridItem use all of the available space in a LazyVGrid?<p>I would like the 2nd column of my LazyVGrid to fill all of the available space (a bit...
72,349,998
How to Parse SOAP response and extract part of it using simpleXml in php<p>I am trying to parse the following SOAP response</p> <pre><code> &lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt; &lt;soapenv:Body&gt; &lt;ns1:CommandResponseData xmlns:ns1=&quot;http://examp...
<p>I prefer <code>xpath</code> for such tasks.</p> <pre><code>$xml = new SimpleXMLElement($re); $xml-&gt;registerXPathNamespace(&quot;soapenv&quot;, &quot;http://schemas.xmlsoap.org/soap/envelope/&quot;); $xml-&gt;registerXPathNamespace(&quot;ns1&quot;, &quot;http://example.com/ossbss/charge.once/wsdl/entity/Tis/xsd/1&...
How to Parse SOAP response and extract part of it using simpleXml in php
php|soap|simplexml
0
40
1
72,370,226
72,370,226
0
true
2022-05-23T14:10:09.703Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to Parse SOAP response and extract part of it using simpleXml in php<p>I am trying to parse the following SOAP response</p> <pre><code> &lt;soapenv:Enve...
72,363,489
Is a password pattern validator a security vulnerability?<p>Is a password pattern validator a security vulnerability?</p> <p>Example: Your password must contain a at leastlowercase char and uppercase , a special character, a number and a sequence between 10 and 50 characters.</p>
<p>Please have a look into OWASP Application Security Verification Standard available here: <a href="https://github.com/OWASP/ASVS/raw/v4.0.3/4.0/OWASP%20Application%20Security%20Verification%20Standard%204.0.3-en.pdf" rel="nofollow noreferrer">https://github.com/OWASP/ASVS/raw/v4.0.3/4.0/OWASP%20Application%20Security...
Is a password pattern validator a security vulnerability?
security|backend|password-protection|cracking
0
40
1
72,373,075
72,373,075
0
true
2022-05-24T13:09:14.350Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is a password pattern validator a security vulnerability?<p>Is a password pattern validator a security vulnerability?</p> <p>Example: Your password must cont...
72,359,193
How to avoid views resizing in immersive mode?<p>I'm using immersive mode when i click on &quot;play&quot; and show system bars again when pressing &quot;stop&quot;. I'm using these methods:</p> <pre><code>fun hideSystemUI(container: View) { WindowCompat.setDecorFitsSystemWindows(window, false) WindowIn...
<p>I found solution. We need to set <code>window.attributes.layoutInDisplayCutoutMode</code> in <code>LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER</code> or <code>LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES</code> due to documentation's cutout best practices: <a href="https://developer.android.com/guide/topics/display-cutout#bes...
How to avoid views resizing in immersive mode?
android|insets
0
40
1
72,373,978
72,373,978
0
true
2022-05-24T07:57:06.603Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to avoid views resizing in immersive mode?<p>I'm using immersive mode when i click on &quot;play&quot; and show system bars again when pressing &quot;sto...
72,378,854
Running App Script with output on a different Sheet<p>I have found a script that pulls data from a cell and adds a row to the bottom of the Google Sheet, but I want to be able to have the output on a separate sheet called &quot;Data&quot;. Here is the script:</p> <pre><code>function recordValue() { var sheet = Spreadsh...
<p>You must declare the second sheet.</p> <pre><code>function recordValue() { var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(&quot;Channels&quot;); var dataSheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(&quot;Data&quot;); var date = new Date(); var value = sheet.getRange(&quot;B9...
Running App Script with output on a different Sheet
google-apps-script|google-sheets
0
40
2
72,379,041
72,379,041
0
true
2022-05-25T13:48:14.410Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Running App Script with output on a different Sheet<p>I have found a script that pulls data from a cell and adds a row to the bottom of the Google Sheet, but...
72,380,448
Decomposing a string into words separared by spaces, ignoring spaces within quoted strings, and considering ( and ) as words<p>How can I explode the following string:</p> <pre><code>+test +word any -sample (+toto +titi &quot;generic test&quot;) -column:&quot;test this&quot; (+data id:1234) </code></pre> <p>into</p> <pr...
<p>I think PCRE verbs can be used to achieve your goal:</p> <pre><code>preg_split('/&quot;.*?&quot;(*SKIP)(*FAIL)|(\(|\))| /', '+test +word any -sampe (+toto +titi &quot;generic test&quot;) -column:&quot;test this&quot; (+data id:1234)',-1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY) </code></pre> <p><a href="https...
Decomposing a string into words separared by spaces, ignoring spaces within quoted strings, and considering ( and ) as words
php|regex|matching
1
40
2
72,380,550
72,380,550
0
true
2022-05-25T15:29:13.667Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Decomposing a string into words separared by spaces, ignoring spaces within quoted strings, and considering ( and ) as words<p>How can I explode the followin...
72,347,731
ProcedureNotFound gds.list()<p>While working with Neo4j Desktop (version 4.4.5), I am unable to call any procedure from gds library though I have added the plugin already. Even on calling</p> <pre><code>CALL gds.list() </code></pre> <p>I am getting the below error message</p> <pre><code>Neo.ClientError.Procedure.Proced...
<p>The <code>gds.list()</code> is not a procedure but rather a function. Try the following:</p> <pre><code>RETURN gds.list() </code></pre>
ProcedureNotFound gds.list()
graph|plugins|neo4j
0
40
1
72,383,975
72,383,975
0
true
2022-05-23T11:25:04.973Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ProcedureNotFound gds.list()<p>While working with Neo4j Desktop (version 4.4.5), I am unable to call any procedure from gds library though I have added the p...
72,384,544
PHP, Changing values in an multidimensional array<p>I got the following Array in PHP:</p> <pre><code>$data[] = array('Slug' =&gt; 'jan', 'Name' =&gt; 'Jan', 'Alter' =&gt; '39', 'Jahrgang' =&gt; '1981', 'ID' =&gt; '3'); $data[] = array('Slug' =&gt; 'kjell', 'Name' =&gt; 'Kjell', 'Alter' =&gt; '4', 'Jahrgang' =&gt; '2018...
<p>I would opt to slightly restructure the data for easier access, by setting the array key to the Slug value.</p> <pre><code>$data['jan'] = array('Name' =&gt; 'Jan', 'Alter' =&gt; '39', 'Jahrgang' =&gt; '1981', 'ID' =&gt; '3'); $data['kjell'] = array('Name' =&gt; 'Kjell', 'Alter' =&gt; '4', 'Jahrgang' =&gt; '2018', 'I...
PHP, Changing values in an multidimensional array
php|arrays|multidimensional-array|key
1
40
3
72,385,482
72,385,482
0
true
2022-05-25T21:52:11.027Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PHP, Changing values in an multidimensional array<p>I got the following Array in PHP:</p> <pre><code>$data[] = array('Slug' =&gt; 'jan', 'Name' =&gt; 'Jan', ...
72,387,518
How to write SQL query leftjoin?<p>with table like this I want to answer:</p> <p>Given the <code>Employee</code> and <code>AnnualReviews</code> tables, write a query to return all employees who have never had a review sorted by HireDate. (Table link below)</p> <p>Here is my query, kindly help to correction:</p> <pre><c...
<pre><code>SELECT * FROM employee WHERE terminationdate IS NULL AND lastname LIKE ‘SMITH%’ ORDER BY lastname, firstname; </code></pre>
How to write SQL query leftjoin?
mysql
0
40
1
72,387,773
72,387,773
0
true
2022-05-26T06:17:45.973Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to write SQL query leftjoin?<p>with table like this I want to answer:</p> <p>Given the <code>Employee</code> and <code>AnnualReviews</code> tables, write...
72,387,628
How do I get combinations of a list of words in python<p>I am trying to make a script that if I gave it a list of words such as ('1', '2', '3') it would give me:</p> <p>1 12 13 123 232 2 21 23 213 231 3 31 32 31 32 312 321</p> <p>I have tried itertools but I couldn't figure it out How can I do this?</p> <p>Thankyou</p>
<p>You need a variant of the <a href="https://docs.python.org/3/library/itertools.html#itertools-recipes" rel="nofollow noreferrer">powerset recipe</a> from <a href="https://docs.python.org/3/library/itertools.html" rel="nofollow noreferrer"><code>itertools</code></a> using permutations instead of combinations:</p> <pr...
How do I get combinations of a list of words in python
python
1
40
1
72,387,849
72,387,849
0
true
2022-05-26T06:28:30.357Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I get combinations of a list of words in python<p>I am trying to make a script that if I gave it a list of words such as ('1', '2', '3') it would give...
72,388,936
How to calcuate item quantiy from array of object if the itemid is same and how to sum up those quantity whose date are same too<p>I have data in this format</p> <pre><code>const ChkdArr = [ { date: &quot;2022-05-25&quot;, itemId: 29, quantity: 4, }, { date: &quot;2022-05-26&quot;, itemId: 29,...
<p>This can be done efficiently using a map, and a new output array. In the map, we will store the key as itemId and value as its index in the output array. Then we will loop through the data, and see if the itemId has an index in the map, if it is we will look up that item value from output array, and update the curre...
How to calcuate item quantiy from array of object if the itemid is same and how to sum up those quantity whose date are same too
javascript
1
40
4
72,389,243
72,389,243
0
true
2022-05-26T08:29:53.940Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to calcuate item quantiy from array of object if the itemid is same and how to sum up those quantity whose date are same too<p>I have data in this format...
72,389,465
3d Camera Control Slider<p>I was wondering if it is possible to make a slider for <a href="https://plotly.com/python/3d-camera-controls/" rel="nofollow noreferrer">3d Camera Controls</a>. And I want to save it as a html file. The following is my code. Any help or suggestion would be appreciated.</p> <pre><code>import n...
<p>If you are using Jupyter Notebook, you can use <code>ipywidgets</code>:</p> <pre class="lang-py prettyprint-override"><code>import plotly.graph_objects as go import numpy as np from ipywidgets import widgets # numerical data r, t = np.mgrid[0:2.25:20j, 0:2*np.pi:20j] x = r * np.cos(t) y = r * np.sin(t) z = np.cos(r...
3d Camera Control Slider
plotly
0
40
1
72,391,180
72,391,180
0
true
2022-05-26T09:15:15.750Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: 3d Camera Control Slider<p>I was wondering if it is possible to make a slider for <a href="https://plotly.com/python/3d-camera-controls/" rel="nofollow noref...
72,388,328
How to get the specific out put for Numpy array slicing?<p>x is an array of shape(n_dim,n_row,n_col) of 1st n natural numbers b is boolean array of shape(2,) having elements True,false</p> <pre><code> def array_slice(n,n_dim,n_row,n_col): x = np.arange(0,n).reshape(n_dim,n_row,n_col) b = n...
<p>An example:</p> <pre><code>In [83]: x= np.arange(24).reshape(2,3,4) In [84]: b = np.full((2,),True) In [85]: x Out[85]: array([[[ 0, 1, 2, 3], [ 4, 5, 6, 7], [ 8, 9, 10, 11]], [[12, 13, 14, 15], [16, 17, 18, 19], [20, 21, 22, 23]]]) In [86]: b Out[86]: array([ True,...
How to get the specific out put for Numpy array slicing?
numpy|numpy-ndarray|numpy-slicing
1
40
1
72,395,670
72,395,670
0
true
2022-05-26T07:34:45.600Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get the specific out put for Numpy array slicing?<p>x is an array of shape(n_dim,n_row,n_col) of 1st n natural numbers b is boolean array of shape(2,)...
72,378,947
Domino check access in linked document<p>Situation:</p> <p>I have two documents: <strong>doc_parent</strong> (has access fields) and <strong>doc_file</strong>(public doc). <strong>doc_file</strong> has field &quot;<em>parent_unid</em>&quot;( with unid of doc_parent ) and field &quot;<em>$file</em>&quot; with attachment...
<p>You can't do it while directly accessing the $file object. You would have to have the access to the file go through an agent via a URL that looks something like this:</p> <pre><code>http://server/base/checkAccessAndRetriveFile?OpenAgent&amp;fileunid=doc_file_unid/&amp;filename=file_name.docx </code></pre> <p>And the...
Domino check access in linked document
lotus-notes|lotus-domino|lotusscript|lotus
0
40
1
72,398,178
72,398,178
0
true
2022-05-25T13:53:11.700Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Domino check access in linked document<p>Situation:</p> <p>I have two documents: <strong>doc_parent</strong> (has access fields) and <strong>doc_file</strong...
72,398,448
Is there a way to plot a "function string" in python?<p>Example: The user types &quot;(x^2 + 5)^3&quot; into the terminal and the script plots the function like WolframAlpha would do.</p> <p>Is there an easy way to do that in python?</p> <p>The function might include abs(), sqrt() etc.</p> <p>Thanks in advance for your...
<p>You could try using eval with an inputted X or default x:</p> <pre class="lang-py prettyprint-override"><code>import matplotlib.pyplot as plt import numpy as np import re def get_variables(input_string): count = 0 matches = re.findall(r'(?i)[a-z]', input_string) return set(matches) #returns unique vari...
Is there a way to plot a "function string" in python?
python|matplotlib
0
40
1
72,398,782
72,398,782
0
true
2022-05-26T21:59:00.503Z
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 plot a "function string" in python?<p>Example: The user types &quot;(x^2 + 5)^3&quot; into the terminal and the script plots the function l...