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,938,246
How to apply a style with on the mobile menu?<p>On my Drupal 9 website, I activated the Olivero default theme. Here is a demonstration :</p> <p><a href="https://tugboat-aqrmztryfqsezpvnghut1cszck2wwasr.tugboatqa.com/" rel="nofollow noreferrer">https://tugboat-aqrmztryfqsezpvnghut1cszck2wwasr.tugboatqa.com/</a></p> <p>I...
<p>Adding a class can be done via <code>classList.add()</code>, removing a class is done via <code>classList.remove()</code></p> <p>In your case this would be:</p> <pre><code> document.getElementById(&quot;site-header__inner&quot;).classList.add('shadow-active') </code></pre> <p>and <code>classList.remove('shadow-acti...
How to apply a style with on the mobile menu?
javascript|html|jquery|css|drupal-theming
0
52
1
72,950,579
72,950,579
0
true
2022-07-11T11:59:41.763Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to apply a style with on the mobile menu?<p>On my Drupal 9 website, I activated the Olivero default theme. Here is a demonstration :</p> <p><a href="http...
72,978,344
Django statics returns 404 error in cPanel Passenger<p>I used cPanel and deployed a Django application on my server using <code>passenger_wsgi.py</code>. The problem is when I'm trying to access static files (like admin CSS file: <code>static/admin/css/base.css</code>) I'm facing with 404 error. I've already done <code...
<p>Thanks to <a href="https://stackoverflow.com/a/68897849/9817841">Ali's answer</a>, For anyone with the same problem, here are the steps I've done. Wish it would be helpful:</p> <ol> <li>Make sure your <code>settings.py</code> file contains these lines:</li> </ol> <pre><code>STATIC_ROOT = os.path.join(BASE_DIR, &quot...
Django statics returns 404 error in cPanel Passenger
django|django-staticfiles
0
52
3
72,980,699
72,980,699
0
true
2022-07-14T09:34:15.797Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Django statics returns 404 error in cPanel Passenger<p>I used cPanel and deployed a Django application on my server using <code>passenger_wsgi.py</code>. The...
72,960,257
How to use kms key from one module inside other sqs module in terraform?<p>I have created two modules in terraform. One for SQS and other for KMS key. This is my SQS module</p> <pre><code>resource &quot;aws_sqs_queue&quot; &quot;terraform_queue&quot; { name = &quot;terraform-example-queue&quot; ...
<p>You have to <strong>output</strong> key id from your kms module, and then <strong>pass</strong> it to sqs:</p> <pre><code>module &quot;sqs&quot; { source = &quot;./modules/SQS&quot; key_id = module.kms.id } </code></pre> <p>In the <code>sqs</code> you will have variable:</p> <pre><code>variable &quot;key_id...
How to use kms key from one module inside other sqs module in terraform?
amazon-web-services|terraform
0
52
1
72,960,384
72,960,384
0
true
2022-07-13T02:28:56.610Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use kms key from one module inside other sqs module in terraform?<p>I have created two modules in terraform. One for SQS and other for KMS key. This i...
72,889,754
Add Image in listView using image from url Picasso crash in android<p>Bonjour I have spent days and night looking for an answer suitable to my case can you help please Here is the code I am using anytime I add the ligne with Picasso, the program crashes It works fine with static images from drawable I just want to disp...
<p>The main things you need to fix are not creating the adapter every loop instance and not accessing row views (the ImageView) from outside the adapter.</p> <p><strong>1. Do not make the adapter inside the loop</strong></p> <p>You should build the array of data to display first, then after the loop that builds the arr...
Add Image in listView using image from url Picasso crash in android
android|json|listview|url|picasso
-1
52
1
72,898,273
72,898,273
0
true
2022-07-06T20:56:32.850Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Add Image in listView using image from url Picasso crash in android<p>Bonjour I have spent days and night looking for an answer suitable to my case can you h...
72,914,873
Tkinter interface does call Function in Main code<p>Hi guys I'm making a Python3 program that makes some ZPL tags. And I have two codes, one with the main code and another with the Interface (that I use Tkinter to make it). So my problem is that my Interface is not working well with the main code. So, it's confusion so...
<p>This is caused by the circular import of <code>MainClass</code>'s contents in <code>classGui.py</code> and <code>classGui</code>'s <code>ProgGui</code> in <code>MainClass.py</code>. (Both the files are dependent on each other)</p> <p>As both the files are importing each other's contents (functions like <code>geraPdf...
Tkinter interface does call Function in Main code
python|python-3.x|tkinter
1
52
1
72,941,486
72,941,486
0
true
2022-07-08T17:19:40.853Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Tkinter interface does call Function in Main code<p>Hi guys I'm making a Python3 program that makes some ZPL tags. And I have two codes, one with the main co...
72,769,737
How to use fetched api result in other methods or functions in Nuxt3<p>How to work with fetched data from an API in Nuxt3?</p> <p>For example, I want to set metatags from the API's results, but it throws an error of undefined. I am unable to access <code>pageData</code> in <code>useHead</code>.</p> <pre class="lang-htm...
<p>You should use <code>pageData.value.seo.metatitle</code> to print the content of your ref.</p> <p>More details are available here: <a href="https://vuejs.org/guide/essentials/reactivity-fundamentals.html#reactive-variables-with-ref" rel="nofollow noreferrer">https://vuejs.org/guide/essentials/reactivity-fundamentals...
How to use fetched api result in other methods or functions in Nuxt3
vue.js|nuxt.js|vuejs3|nuxtjs3
1
52
1
72,770,083
72,770,083
1
true
2022-06-27T09:23:21.560Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use fetched api result in other methods or functions in Nuxt3<p>How to work with fetched data from an API in Nuxt3?</p> <p>For example, I want to set ...
72,770,841
In Laravel, why can I not assign values to an Eloquent Model directly from an array?<p>This isn't causing any problems, I'm just totally confused by some behaviour I'm running into so would appreciate some insight.</p> <p>In my Laravel application I hit an API and loop through it like so:</p> <pre><code>$response = Htt...
<p>You are overwriting your <code>$article</code> variable. So when you assign your model attributes <code>$article</code> is no longer an array but an empty Article Model Object.</p> <p>Try this:</p> <pre><code>$articleModel = new Article; $articleModel-&gt;permalink = $article['permalink']; $articleModel-&gt;headline...
In Laravel, why can I not assign values to an Eloquent Model directly from an array?
php|laravel|eloquent
0
52
2
72,771,299
72,771,299
1
true
2022-06-27T10:47:03.607Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: In Laravel, why can I not assign values to an Eloquent Model directly from an array?<p>This isn't causing any problems, I'm just totally confused by some beh...
72,770,675
DisMax query parser is not running<p>Environment- solr-8.9.0</p> <p>Movies data in a form of a .csv file has been indexed in apache solr.</p> <p>Movies data</p> <pre><code>name,directed_by,genre,type,id,initial_release_date .45,Gary Lennon,Black comedy|Thriller|Psychological thriller|Indie film|Action Film|Crime Thrill...
<p>You need to use the <a href="https://solr.apache.org/guide/8_9/the-dismax-query-parser.html#qf-query-fields-parameter" rel="nofollow noreferrer"><code>qf</code></a> (query fields) parameter to specify in which field(s) the search should be performed, along with (optionally) a boost factor used to increase or decreas...
DisMax query parser is not running
solr|dismax
0
52
1
72,772,820
72,772,820
1
true
2022-06-27T10:35:41.220Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: DisMax query parser is not running<p>Environment- solr-8.9.0</p> <p>Movies data in a form of a .csv file has been indexed in apache solr.</p> <p>Movies data<...
72,776,051
Loop through a column of strings and NaN while avoiding NaN<p>Say I have a column called <code>names</code>:</p> <pre><code>names name1 NaN name2 NaN </code></pre> <p>Entries like <code>name1</code> and <code>name2</code> are of type <code>str</code>, and all the NaN entries are of type <code>float</code>, in case you...
<p>You can use <code>if df['contact'][i] == df['contact'][i]</code> to identify non-<code>NaN</code> values. This leverages the cool property that <code>NaN != NaN</code>.</p> <p>Though with that said there are other probably vectorized ways to do what you are trying to do.</p>
Loop through a column of strings and NaN while avoiding NaN
python|pandas
0
52
2
72,776,157
72,776,157
1
true
2022-06-27T17:18:47.317Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Loop through a column of strings and NaN while avoiding NaN<p>Say I have a column called <code>names</code>:</p> <pre><code>names name1 NaN name2 NaN </code...
72,777,426
Trying to compile hello world linux kernel module: missing MODULE_LICENSE()<p>I'm trying to compile the simplest kernel module possible, from the <a href="https://www.linuxtopia.org/online_books/Linux_Kernel_Module_Programming_Guide/x121.html" rel="nofollow noreferrer">The Linux Kernel Module Programming Guide</a>. <co...
<p>You need to add call to <code>MODULE_LICENSE</code> to your source file (<code>hello.c</code> in your case). This is what the error message is talking about. E.g.</p> <pre><code>MODULE_LICENSE(&quot;GPL&quot;); </code></pre> <hr /> <p>Most modules also call <code>MODULE_AUTHOR</code>:</p> <pre><code>MODULE_AUTHOR(&q...
Trying to compile hello world linux kernel module: missing MODULE_LICENSE()
linux|makefile|linux-kernel
0
52
1
72,777,493
72,777,493
1
true
2022-06-27T19:29:22.577Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trying to compile hello world linux kernel module: missing MODULE_LICENSE()<p>I'm trying to compile the simplest kernel module possible, from the <a href="ht...
72,778,946
Django-native/ORM based approach to self join<p>Trying to set up a Django-native query that grabs all rows/relationships when it shows up on the other side of many-to-many relationship.</p> <p>I can explain with an example:</p> <pre><code># Django models class Ingredient: id = ... name = ... ... class Dis...
<p>You can <a href="https://docs.djangoproject.com/en/dev/ref/models/querysets/#filter" rel="nofollow noreferrer"><strong><code>.filter(…)</code></strong> <sup>[Django-doc]</sup></a> with:</p> <pre><code>Ingredient.objects.filter( <b>ingredienttodish__dish_id__ingredienttodish__ingredient_id__name='Tomato'</b> )</c...
Django-native/ORM based approach to self join
python|django|django-models|django-queryset
2
52
1
72,779,004
72,779,004
1
true
2022-06-27T22:36:27.873Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Django-native/ORM based approach to self join<p>Trying to set up a Django-native query that grabs all rows/relationships when it shows up on the other side o...
72,776,930
spacy v3.3:- Getting zero loss as well as other metric during training using cli<p>I have used the commands which are provided in the <a href="https://spacy.io/usage/training#quickstart" rel="nofollow noreferrer">spacy document</a>. I followed all the below steps:-</p> <ol> <li>Using the spacy format for creating the m...
<p>It looks like your data is NER annotations, but your pipeline contains only a tok2vec and parser component. It should contain an NER component. Use the <a href="https://spacy.io/usage/training#quickstart" rel="nofollow noreferrer">quickstart</a> to generate an NER config and start over from step 3 in your list.</p>
spacy v3.3:- Getting zero loss as well as other metric during training using cli
python-3.x|spacy|named-entity-recognition
1
52
1
72,781,219
72,781,219
1
true
2022-06-27T18:39:22.980Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: spacy v3.3:- Getting zero loss as well as other metric during training using cli<p>I have used the commands which are provided in the <a href="https://spacy....
72,781,115
Parsing json with jq with negative index not working on Windows<p>I am having following output after a <code>curl</code> call</p> <pre><code>{&quot;snapshotsForStream&quot;:[{&quot;id&quot;:24221},{&quot;id&quot;:24230},{&quot;id&quot;:24274}],&quot;code&quot;:null,&quot;message&quot;:null} </code></pre> <p>I just want...
<p>Accessing elements <a href="https://stedolan.github.io/jq/manual/#ArrayIndex:.%5B2%5D" rel="nofollow noreferrer">with negative indices</a> was introduced in <code>jq-1.5</code>, you seem to be running a version before that which is really old. See <a href="https://github.com/stedolan/jq/issues/1388" rel="nofollow no...
Parsing json with jq with negative index not working on Windows
jq
0
52
1
72,781,613
72,781,613
1
true
2022-06-28T05:26:07.517Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Parsing json with jq with negative index not working on Windows<p>I am having following output after a <code>curl</code> call</p> <pre><code>{&quot;snapshots...
72,781,599
Change collapsible sidebar to fixed<p>I have a react website with a collapsible sidebar, my problem is i want the sidebar to be permanent instead of clicking button it stays permanently open. I am confused on how to do that so can anyone help.</p> <p>Code :</p> <pre><code>const Sidebar = () =&gt; { const [sidebar, setS...
<p>Okay so you wanna it to be always open , now it's just a css change :</p> <pre><code>const SidebarNav = styled.nav` ... // Old left: ${({ sidebar }) =&gt; (sidebar ? &quot;0&quot; : &quot;-100%&quot;)}; // New left: 0; ... `; </code></pre> <p>And then you don't need the <strong>sidebar</strong> state an...
Change collapsible sidebar to fixed
reactjs|react-sidebar
0
52
1
72,784,006
72,784,006
1
true
2022-06-28T06:24:09.097Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Change collapsible sidebar to fixed<p>I have a react website with a collapsible sidebar, my problem is i want the sidebar to be permanent instead of clicking...
72,783,305
Shiny : impossible to do a mutate on a reactive data source (reactiveFileReader / reactivePoll)<p>I'm trying to build a shiny application that gets live data from a .csv file named &quot;test.csv&quot;. Here is a example of the data :</p> <pre><code>name age timestamp Paul 23 1654095025 Michael 23 1674095025 Ja...
<pre><code>library(shiny) library(dplyr) f &lt;- tempfile(fileext = &quot;.csv&quot;) writeLines(text = 'name age timestamp Paul 23 1654095025 Michael 23 1674095025 Jane 54 1654895025 Jack 31 1954095025 Luis 23 1954095025 Anna 85 1954095025 ', con = f) ui &lt;- fluidPage( mainPanel( tab...
Shiny : impossible to do a mutate on a reactive data source (reactiveFileReader / reactivePoll)
r|dplyr|shiny|reactive|shiny-reactivity
1
52
2
72,784,243
72,784,243
1
true
2022-06-28T08:42:14.030Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Shiny : impossible to do a mutate on a reactive data source (reactiveFileReader / reactivePoll)<p>I'm trying to build a shiny application that gets live data...
72,783,119
Functional URL hit lambda twice<p>I am trying to make use of functional url in case of mono lambda function, I have created a functional url with no security.</p> <p>URL was created successfully, but <em>Not able to hit that url using postman.</em> So I use chrome web browser to hit my url(Get request). But the problem...
<p>There are two possibilities I can think off-</p> <ol> <li>Chrome/browser sending another request for <code>favicon.png</code></li> <li>If you have configuration on server side that enforce HTTP to HTTPS conversion of the request, like re-direct to enforce SSL connection. In that case as well, browser send one reques...
Functional URL hit lambda twice
amazon-web-services|aws-lambda
0
52
1
72,785,036
72,785,036
1
true
2022-06-28T08:26:48.343Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Functional URL hit lambda twice<p>I am trying to make use of functional url in case of mono lambda function, I have created a functional url with no security...
72,786,058
How do I repeat the analysis of the frequency/table of categorical variables by group for multiple variables<p>I created this dataframe <code>Variable_7101</code> but I would like to repeat this analysis for multiple variables. To be more specific, I have another dataframe (df) with rows containing the other variables ...
<p>This is how you could do:</p> <pre class="lang-r prettyprint-override"><code>library(data.table) # minimal example set.seed(1) DATA &lt;- data.table(V1 = sample(3, 10, replace = T), V7101 = sample(3, 10, replace = T), V7102 = sample(3, 10, replace = T), V7...
How do I repeat the analysis of the frequency/table of categorical variables by group for multiple variables
r|dplyr|data.table|tidyverse|dcast
1
52
1
72,786,939
72,786,939
1
true
2022-06-28T12:01:39.367Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I repeat the analysis of the frequency/table of categorical variables by group for multiple variables<p>I created this dataframe <code>Variable_7101</...
72,786,781
How to pull latest change from Gerrit repo<p>I have a problem with pulling last commit changes from Gerrit server. To push changes to the server I use git push origin HEAD:refs/for/master. So, I thought I can do similar for pull - git pull origin HEAD:refs/for/master, but it didn't work. In the meanwhile I found, that ...
<p>On a Gerrit server, <code>refs/for/</code> is a &quot;magic&quot; name-space.</p> <p>Gerrit is a Java implementation of a Git server, but it's <em>not Git</em>.<sup>1</sup> It's a server implementation, and it does have a Git repository &quot;behind&quot; the server. But the server accepts <code>git push</code> re...
How to pull latest change from Gerrit repo
git|gerrit
-1
52
1
72,787,288
72,787,288
1
true
2022-06-28T12:52:29.407Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to pull latest change from Gerrit repo<p>I have a problem with pulling last commit changes from Gerrit server. To push changes to the server I use git pu...
72,784,415
C# Close TcpClient not working when using threaded connections<p>I'm having trouble closing a <code>tcpClient</code> connection when calling <code>Application.exit()</code> from a windows form. The problem I'm having is when the form closes the application is still running due to TCP connected devices and I want to clo...
<p>A separate thread for each listener is a bad idea if you have lots of listeners anyway. You should transition this completely to <code>async</code> <code>await</code> and use the <code>CancellationToken</code> when you close the app.</p> <p>You just need to use token also in the handler of the client, then it will b...
C# Close TcpClient not working when using threaded connections
c#|tcpclient
2
52
1
72,787,418
72,787,418
1
true
2022-06-28T10:00:27.050Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C# Close TcpClient not working when using threaded connections<p>I'm having trouble closing a <code>tcpClient</code> connection when calling <code>Applicatio...
72,788,127
GoLang iterate over yaml file<p>I wanted to know if this logic is possible in Golang. I have a yaml file as such:</p> <pre><code>initSteps: - &quot;pip install --upgrade pip&quot; - &quot;python3 --version&quot; buildSteps: - &quot;pip install .&quot; runProcess: - &quot;python3 test.py&quot; </code></pre> <p...
<p>You can read your .yaml config file with viper. Simple code example:</p> <pre><code>import ( &quot;fmt&quot; &quot;github.com/spf13/viper&quot; ) func main() { readYaml() } func readYaml() { viper.SetConfigName(&quot;test&quot;) // name of config file (without extension) viper.Se...
GoLang iterate over yaml file
go
2
52
1
72,789,791
72,789,791
1
true
2022-06-28T14:17:51.767Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: GoLang iterate over yaml file<p>I wanted to know if this logic is possible in Golang. I have a yaml file as such:</p> <pre><code>initSteps: - &quot;pip ins...
72,786,024
Combine Data of Two Tables in single DropDown using Django<blockquote> <p><strong>Problem</strong>: I have Two Tables Users and Users Group and in front end on request of that particular page need to send all data from both the table together, as there is specific drop down to show them both, and after done with the op...
<p>there is no out of the box solution for that. I can advise to seprate this dropdown into two. First with UserGroup, second with User. You can fill user dropdown based on selected UserGroup with ajax or htmx -&gt; <a href="https://htmx.org/examples/value-select/" rel="nofollow noreferrer">htmx value-select</a></p> <p...
Combine Data of Two Tables in single DropDown using Django
python|django|django-models|django-rest-framework|django-views
0
52
1
72,790,766
72,790,766
1
true
2022-06-28T11:59:40.680Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Combine Data of Two Tables in single DropDown using Django<blockquote> <p><strong>Problem</strong>: I have Two Tables Users and Users Group and in front end ...
72,990,194
Typing for QTable @request<p>I tried to implement &quot;<a href="https://quasar.dev/vue-components/table#server-side-pagination-filter-and-sorting" rel="nofollow noreferrer">Server side pagination, filter and sorting sample</a>&quot; in Typescript.</p> <p>I used <code>QTableProps['onRequest']</code> for props typing bu...
<p>After research, I found that the problem can be solved by using <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html" rel="nofollow noreferrer">Parameters and NonNullable</a>.</p> <pre><code>export default defineComponent({ methods: { onRequest( props: Parameters&lt;NonNullable&lt;QTa...
Typing for QTable @request
quasar-framework|quasar
0
52
2
73,288,992
73,288,992
0
true
2022-07-15T07:05:28.040Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Typing for QTable @request<p>I tried to implement &quot;<a href="https://quasar.dev/vue-components/table#server-side-pagination-filter-and-sorting" rel="nofo...
73,003,127
VoIP notifications the certificate subject must end with ".voip" and the device token app bundle ends with ".voip"<p>I have error in twilio, says &quot;VoIP notifications the certificate subject must end with &quot;.voip&quot; and the device token app bundle ends with &quot;.voip&quot;.</p> <p>when I check the similar ...
<p>Actually, you don't have to create new ID. Instead ask your backend team to push Voip notification to APNS server with header field:</p> <blockquote> <p>apns-topic: &quot;com.company.app.voip&quot;</p> </blockquote> <p>Where <code>com.company.app</code> is the registed bundle ID.</p> <p>Maybe you can use below tool ...
VoIP notifications the certificate subject must end with ".voip" and the device token app bundle ends with ".voip"
ios|twilio|apple-push-notifications|voip|bundle-identifier
0
52
1
73,266,286
73,266,286
0
true
2022-07-16T09:38:29.413Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: VoIP notifications the certificate subject must end with ".voip" and the device token app bundle ends with ".voip"<p>I have error in twilio, says &quot;VoIP ...
73,016,495
With iText7,How to specifies the width and color of strokes for text?<p>I's there any solution for iText 7 to specify the stroke width and stroke color for text?</p> <p>The code I have tried so far:</p> <pre><code>using var doc = new PdfDocument(new PdfWriter(&quot;a4.pdf&quot;)); var pageSize = PageSize.A4; var page =...
<p>You can achieve the result similar to what you have in your HTML with the following styling settings:</p> <pre><code>p.SetStrokeColor(ColorConstants.PINK); p.SetStrokeWidth(0.5f); p.SetFontColor(ColorConstants.WHITE); p.SetTextRenderingMode(PdfCanvasConstants.TextRenderingMode.FILL_STROKE); </code></pre> <p>Full cod...
With iText7,How to specifies the width and color of strokes for text?
.net-core|.net-6.0|itext7
0
52
1
73,372,724
73,372,724
1
true
2022-07-18T01:27:29.337Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: With iText7,How to specifies the width and color of strokes for text?<p>I's there any solution for iText 7 to specify the stroke width and stroke color for t...
72,307,763
What causes R's "seasonal" package/function to not return an adjusted series?<p>I'm trying to get a seasonally adjusted version of two similar-looking series. The <code>seas</code> function works for the first and seems to silently fail to return data for the second. What's going on with this second series?</p> <pre><c...
<p>It is a rather short time series and x-13 tries to detect and estimate outliers, a trading day effect, whilst also finding an optimal ARIMA model and testing whether Easter has an impact. Depending on you prior knowledge about the series, you may decide to go any of the following routes:</p> <ol> <li>Leave out (part...
What causes R's "seasonal" package/function to not return an adjusted series?
r
0
52
1
73,527,533
73,527,533
1
true
2022-05-19T16:05:33.293Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What causes R's "seasonal" package/function to not return an adjusted series?<p>I'm trying to get a seasonally adjusted version of two similar-looking series...
72,241,182
R: create diagonal from 1 to 10 in matrix -> returns only last value<p>I need to modify a matrix filled with random numbers so that the resulting matrix has a diagonal with the numbers 1 to 10 and everywhere else there are supposed to be zeros. I am almost done but the diagonal only shows the last value 10 instead of t...
<p>Your innermost loop is unnecessary. When you are looping through <code>j</code>, you are looping through each <em>cell</em> in row <code>i</code>. So you need only assign the value <code>i</code> to the cell if <code>i == j</code> and <code>0</code> otherwise. You don't need the variable <code>o</code> at all.</p> <...
R: create diagonal from 1 to 10 in matrix -> returns only last value
r|matrix|caching|nested-loops|diagonal
0
52
4
72,241,427
72,241,427
0
true
2022-05-14T14:35:02.997Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: R: create diagonal from 1 to 10 in matrix -> returns only last value<p>I need to modify a matrix filled with random numbers so that the resulting matrix has ...
72,238,477
how to read a csv file edited from excel in python?<p>Hi I tried loading the csv file that has been edited and saved as csv comma delimited. However it's not loading right.</p> <p>I used the normal pd_read_csv like so.</p> <pre><code>df = pd.read_csv('file.csv',quotechar'&quot;') </code></pre> <p>However the file retur...
<p>I don't know how you got to that file, but it looks broken.</p> <pre><code>productId,items,unit 1,orange juice 3,300ml 2,&quot;&quot;lime juice 3,4&quot;&quot;,300ml 3,grape juice 2, 300ml </code></pre> <p>If double quotes are your delimiter (<code>&quot;</code>), then you should have a single one around your quoted...
how to read a csv file edited from excel in python?
python|pandas
0
52
1
72,243,524
72,243,524
0
true
2022-05-14T08:21:13.400Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to read a csv file edited from excel in python?<p>Hi I tried loading the csv file that has been edited and saved as csv comma delimited. However it's not...
72,241,977
Django - Form not saving when submitted<p>Good afternoon all,</p> <p>One of my form does not seem to save when submitted. I cannot see why, in particular as I have a similar form working just fine using the same code.</p> <p>For some reason it work just fine using the admin panel.</p> <p>My assumption is that I am miss...
<p>I detect 2 fixes</p> <p>On your url, the parameter product_id might need the type of data it will going to receive</p> <pre><code>path('product/add_review/&lt;int:product_id&gt;', views.add_review,name=&quot;add_review&quot;), </code></pre> <p>And in your view, you are sending an instance, and no data for a new rati...
Django - Form not saving when submitted
python|django|django-forms
0
52
1
72,244,304
72,244,304
0
true
2022-05-14T16:10:32.303Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Django - Form not saving when submitted<p>Good afternoon all,</p> <p>One of my form does not seem to save when submitted. I cannot see why, in particular as ...
72,244,712
How can I fix this specific instance of a TypeError in python<pre><code># importing necessary libraries &amp; my own library of functions called dependancies: from tkinter import N import Dependancies import pandas as pd import time from pathlib import Path import os #___________________________________________________...
<p>In <code>parsing_startOver_quit</code>, return the result of <code>data_parser()</code></p> <pre class="lang-py prettyprint-override"><code>def parsing_startOver_quit(reciprocate=False): &quot;&quot;&quot; offers the user the choice, either to quit the program of star all over again due to a critically need...
How can I fix this specific instance of a TypeError in python
python|pandas|typeerror|nonetype|keyboardinterrupt
1
52
1
72,244,757
72,244,757
0
true
2022-05-15T00:21:04.690Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I fix this specific instance of a TypeError in python<pre><code># importing necessary libraries &amp; my own library of functions called dependancies...
72,245,121
Spaces between editor line numbers intellij<p>As you can see there is a lot of &quot;Spaces&quot; between editor line numbers and i dont know how to disable or delete that.</p> <p><a href="https://i.stack.imgur.com/aCUDr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aCUDr.png" alt="enter image desc...
<p>thanks to @user11350388 I finally found the problem and basically it was cause of a property in Editor|Inlay Hints. Specifically in Code vision -&gt; Code author where if I deactivate it the problem is solved by magic.</p> <p><a href="https://i.stack.imgur.com/7N4e8.png" rel="nofollow noreferrer"><img src="https://i...
Spaces between editor line numbers intellij
java|intellij-idea|intellij-13
0
52
1
72,245,256
72,245,256
0
true
2022-05-15T02:13:32.410Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Spaces between editor line numbers intellij<p>As you can see there is a lot of &quot;Spaces&quot; between editor line numbers and i dont know how to disable ...
72,245,697
pandas AttributeError: 'NoneType' object has no attribute 'shape'<p>I am trying to delete a row from a pandas dataframe based in the index value that the user gives me. It is giving me an error from my PandasModel file whenever I try to drop it. It is giving me the error even if the dataframe is not empty and the index...
<p>Here is your problem:</p> <pre><code>self.df_Edit = self.df_Edit.drop(index = int(self.Edit.Line_Index.text()), inplace = True) </code></pre> <p>You SPECIFICALLY asked for &quot;inplace&quot; operation. In that case. <code>dropna</code> doesn't return anything, because it did the operation in place. That sets <cod...
pandas AttributeError: 'NoneType' object has no attribute 'shape'
python|pandas
0
52
1
72,246,212
72,246,212
0
true
2022-05-15T05:22:16.540Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: pandas AttributeError: 'NoneType' object has no attribute 'shape'<p>I am trying to delete a row from a pandas dataframe based in the index value that the use...
72,247,273
Foreach not returning if value not found<p><code>foreach</code> seems to skip element if not found. Is there any way to force it to return a back up value if not found? I tried to use <code>coalesce</code> to no avail...it will return <code>period</code> if found, otherwise, skips it and move on to checking for next el...
<p>Found a way by creating first a table and inserting all the periods with a <code>foreach</code></p> <pre><code>$reference = $mysqli-&gt;query(&quot;create temporary table reference (period varchar(15), match_date datetime); &quot;); foreach ($periods as $k=&gt;$p) { $insert = $mysqli-&gt;query(&quot;insert i...
Foreach not returning if value not found
php|mysql
-3
52
1
72,251,835
72,251,835
0
true
2022-05-15T10:04:56.690Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Foreach not returning if value not found<p><code>foreach</code> seems to skip element if not found. Is there any way to force it to return a back up value if...
72,251,868
Reverse for 'add_comment' with keyword arguments '{'pk': ''}' not found. 2 pattern(s) tried:<p>How can I fix it?</p> <h3>Error message</h3> <blockquote> <p>Reverse for 'add_comment' with keyword arguments '{'pk': ''}' not found. 2 pattern(s) tried: ['shopping_mall/top_cloth/(?P[0-9]+)/comment\Z', 'top_cloth/(?P[0-9]+)/...
<p>Your <code>product.pk</code> is the empty string, therefore the regex <code>top_cloth/&lt;int:pk&gt;/comment</code> doesn't match (<code>int</code> means <code>[0-9]+</code> therefore needs at least one character).</p> <p>Therefore there is no url found (hence the error).</p> <p>Now, why your product.pk is empty ? I...
Reverse for 'add_comment' with keyword arguments '{'pk': ''}' not found. 2 pattern(s) tried:
python|django
0
52
1
72,252,766
72,252,766
0
true
2022-05-15T20:13:10.107Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Reverse for 'add_comment' with keyword arguments '{'pk': ''}' not found. 2 pattern(s) tried:<p>How can I fix it?</p> <h3>Error message</h3> <blockquote> <p>R...
72,253,117
How to test routes using regEx in JavaScript<p>I have some routes in my Node Js single plage application which update without page load. I wanna test some routes using regEx to get a perfect match of the route.</p> <p>I have <code>/index</code>, <code>/contact</code>, <code>/products</code> in switch statement.</p> <pr...
<p>You could do something like this - since the &quot;parts&quot; of the pathname are always separated by <code>/</code> there's no need for the complexity of a <code>regex</code> - a simple <code>.split</code> will do just fine</p> <pre><code>// the leading , is NOT a typo const [, root, ...rest] = location.pathname.s...
How to test routes using regEx in JavaScript
javascript|node.js|frontend
0
52
1
72,253,297
72,253,297
0
true
2022-05-16T00:30:12.003Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to test routes using regEx in JavaScript<p>I have some routes in my Node Js single plage application which update without page load. I wanna test some ro...
72,257,414
How to remove top shadow to tab layout in android<p>**Hi i need add shadow under my tab layout and remove top of the tablayout **</p> <p><strong>This is My Tab layout</strong></p> <p><a href="https://i.stack.imgur.com/m9YiA.png" rel="nofollow noreferrer">enter image description here</a></p> <p><strong>My Activity xml :...
<p>Remove properties</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-html lang-html prettyprint-override"><code>android:elevation="2dp" &lt;!-- Other Wise edits this property --&gt; android:elevation="0dp"</code>...
How to remove top shadow to tab layout in android
java|android
0
52
1
72,258,612
72,258,612
0
true
2022-05-16T10:00:43.743Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to remove top shadow to tab layout in android<p>**Hi i need add shadow under my tab layout and remove top of the tablayout **</p> <p><strong>This is My T...
72,265,329
ERROR Warning: Encountered two children with the same key, `${item}-${index}`<p>I keep getting this error 'ERROR Warning: Encountered two children with the same key, <code>${item}-${index}</code>' and don't know why? How can I go about fixing it? Please help thank you in advance!</p> <pre><code> return ( &l...
<p>Just replace '' by `` around <code>${item}-${index}</code> in order to interpolate your variables in the string. But in fact you only need to refer to the index as follows :</p> <pre><code>return ( &lt;View style={styles.container}&gt; &lt;FlatList data={tabs} key...
ERROR Warning: Encountered two children with the same key, `${item}-${index}`
javascript|reactjs|database|react-native|key
-3
52
1
72,265,470
72,265,470
0
true
2022-05-16T20:35:41.333Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ERROR Warning: Encountered two children with the same key, `${item}-${index}`<p>I keep getting this error 'ERROR Warning: Encountered two children with the ...
72,266,252
Showing the original index of an element in a vector after bubblesort<p>I'm new to c++ and i'm having a problem with my code. I need to show the original indexes of a vector before it was sorted, after sorted. I tried it like this:</p> <pre><code>#include &lt;vector&gt; using namespace std; void bubblesort(vector&lt;i...
<p>If your goal is to show the indices of the sorted vector, then another approach is to not sort the original vector, but instead to sort a vector of index values based on the original vector.</p> <p>The index vector would be initialized to 0, 1, 2, etc. up until the vector's size, minus 1.</p> <p>Here is an example:<...
Showing the original index of an element in a vector after bubblesort
c++|vector
0
52
1
72,267,263
72,267,263
0
true
2022-05-16T22:26:01.773Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Showing the original index of an element in a vector after bubblesort<p>I'm new to c++ and i'm having a problem with my code. I need to show the original ind...
72,279,820
Using non-monomorphizable generic parameters in a function<p>I want to write some code that should be generic across implementors of a particular trait, but whose exact type can't be known until runtime.</p> <p>In particular, I want to apply a function from <code>PartialOrd</code> onto a subset of the cases from a give...
<p>You can't late-bind a generic function, but you can create a trait for that:</p> <pre class="lang-rust prettyprint-override"><code>pub trait Comparator&lt;T&gt; { fn compare(self, a: &amp;T, b: &amp;T) -&gt; bool; } </code></pre> <p>Then create a type for each comparator, for example <code>Gt</code>:</p> <pre cl...
Using non-monomorphizable generic parameters in a function
generics|rust
0
52
1
72,279,977
72,279,977
0
true
2022-05-17T19:42:34.160Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using non-monomorphizable generic parameters in a function<p>I want to write some code that should be generic across implementors of a particular trait, but ...
72,278,150
how to get image src if it is in binary on mobile phones<p>i am creating qr codes using <a href="https://davidshimjs.github.io/qrcodejs/" rel="nofollow noreferrer">This Libary</a> and this is how it works, it creates an image tag and stores the qr code image in the src as a binary image. i want to download the qr code ...
<p>add this to your code</p> <pre><code>var can = document.querySelector(&quot;#qrcode canvas&quot;); alert(can.toDataURL()) document.getElementById(&quot;download&quot;).href = can.toDataURL(); </code></pre>
how to get image src if it is in binary on mobile phones
javascript|qr-code
1
52
1
72,281,044
72,281,044
0
true
2022-05-17T17:12:33.697Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to get image src if it is in binary on mobile phones<p>i am creating qr codes using <a href="https://davidshimjs.github.io/qrcodejs/" rel="nofollow noref...
72,283,834
Need to sort this by the value but move the 0 to the end<p>It currently looks like this unsorted.</p> <pre><code>[('391', '0'), ('411', '0.00'), ('174', '4'), ('734', '8.753'),('512', '6.3'),('700', '5.34'),] </code></pre> <p>I need to make it look like this if possible.</p> <pre><code>[('174', '4'),('700', '5.34'),('5...
<p>You can accomplish this using the <code>.sort()</code> method, first sorting normally, then sorting so that values equal to 0 are moved to the end.</p> <pre class="lang-py prettyprint-override"><code>my_list = [('391', '0'), ('411', '0.00'), ('174', '4'), ('734', '8.753'),('512', '6.3'),('700', '5.34'),] my_list.sor...
Need to sort this by the value but move the 0 to the end
python|sorting|dictionary
-3
52
2
72,283,898
72,283,898
0
true
2022-05-18T05:53:58.300Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Need to sort this by the value but move the 0 to the end<p>It currently looks like this unsorted.</p> <pre><code>[('391', '0'), ('411', '0.00'), ('174', '4')...
72,292,600
Maxheap giving wrong result<p>I wrote the following code to build a maxheap from a already existing array the downadjust function makes the array a max heap but it is not producing results as desired Please check the code and tell me where am I going wrong also it would be very helpful if someone suggest what changes t...
<p>Result for <code>5 1 9 2 11 50 6 100 7</code> is valid heap <code>100 11 50 7 5 9 6 2 1</code>.</p> <p>Perhaps you wanted <code>50 11</code> sequence and other ordered pairs of child nodes, but heap construction does not provide strict mutual ordering of children (as binary search tree does).</p> <p>To make minheap,...
Maxheap giving wrong result
c++|algorithm|data-structures|heap|max-heap
0
52
1
72,293,093
72,293,093
0
true
2022-05-18T16:09:50.930Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Maxheap giving wrong result<p>I wrote the following code to build a maxheap from a already existing array the downadjust function makes the array a max heap ...
72,295,985
How to format Python code to always return this specific length<p>Sorry if this is a bit of a noob question. But moving on..</p> <p>Say at the beginning of my code I set a variable, like this:</p> <pre><code>TestVar = 'A6' </code></pre> <p>But I later want it to print out as <code>000000A6</code></p> <p>Or say it was</...
<p>Use string function rjust():</p> <pre><code>print(test.rjust(8,'0')) </code></pre>
How to format Python code to always return this specific length
python
1
52
6
72,296,063
72,296,063
0
true
2022-05-18T21:06:16.910Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to format Python code to always return this specific length<p>Sorry if this is a bit of a noob question. But moving on..</p> <p>Say at the beginning of m...
72,295,673
Convert date and week of day to calendar format using pivot<p>I have the following data in the temp table</p> <p><a href="https://i.stack.imgur.com/wJwgM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wJwgM.png" alt="" /></a></p> <p>I want it to convert into the calendar format using pivot as</p> <p...
<p>Got, the solution, the last day was missing because of the where statement in my CTE, it should be less than or equals to max date.</p> <pre><code> With CTE (dt,dw,last) as ( select Cast(dateadd(day, -day(GetDate())+1,GetDate())as date),datename(dw,Cast(dateadd(day, -day(GetDate())+1,GetDate())as date)), cast(dat...
Convert date and week of day to calendar format using pivot
sql|sql-server|pivot
1
52
2
72,300,372
72,300,372
0
true
2022-05-18T20:35:59.080Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Convert date and week of day to calendar format using pivot<p>I have the following data in the temp table</p> <p><a href="https://i.stack.imgur.com/wJwgM.png...
72,304,307
Loop if else in scanner<p>I want to loop my scanner if the user entered something and it made the statement false in my code, if the user entered a false statement, the loop will continue but if I enter the right statement, it will still continue.</p> <pre><code>Scanner sc = new Scanner(System.in); System.out....
<p>I would rewrite it like this</p> <pre><code>Scanner sc = new Scanner(System.in); System.out.println(&quot;Enter your student number: &quot;); String sn = sc.nextLine(); String REGEX = &quot;[0-9]{4}.[0-9]{2}.[0-9]{3}&quot;; Pattern pattern = Pattern.compile(REGEX); while(!pattern.matcher(sn).matches()) { Syst...
Loop if else in scanner
java|regex|loops|java.util.scanner
0
52
2
72,304,447
72,304,447
0
true
2022-05-19T12:10:46.877Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Loop if else in scanner<p>I want to loop my scanner if the user entered something and it made the statement false in my code, if the user entered a false sta...
72,305,668
I'm trying to use fixtures to hold data for different tests, This is an example of the code. where I'm getting 'Cannot read properties of undefined<p>I'm trying to use fixtures to hold data for different tests, This is an example of the code. When it gets to the second test I'm getting 'Cannot read properties of undefi...
<p>Instead of</p> <blockquote> <p>this.data=data</p> </blockquote> <p>try using</p> <blockquote> <p>globalThis.data = data</p> </blockquote>
I'm trying to use fixtures to hold data for different tests, This is an example of the code. where I'm getting 'Cannot read properties of undefined
cypress
0
52
2
72,306,052
72,306,052
0
true
2022-05-19T13:42:48.413Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I'm trying to use fixtures to hold data for different tests, This is an example of the code. where I'm getting 'Cannot read properties of undefined<p>I'm try...
72,307,368
How to Extract string from XML Property<p>Using PowerShell, I am attempting to extract the contents of <code>Value=&quot;&quot;</code> which will either be <code>Production</code> or <code>Training</code>, from a XML file. Here is a snippit of the XML file:</p> <pre><code>&lt;ParameterGroup TestRequired=&quot;false&qu...
<p>As you have it now, your object named <code>Value</code> has 3 properties, <code>UseFunction</code>,<code>Value</code>, and <code>ValueList</code>, and you need to select the child property named <code>Value</code>, which has a value of <code>Training</code>.</p> <p>You could actually just duplicate what you already...
How to Extract string from XML Property
xml|powershell|object|properties|output
0
52
1
72,307,672
72,307,672
0
true
2022-05-19T15:36:20.367Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to Extract string from XML Property<p>Using PowerShell, I am attempting to extract the contents of <code>Value=&quot;&quot;</code> which will either be <...
72,307,102
Bluetooth low energy android doesn’t give me a real address only null name<p>Can anyone help me? I want to scan nearby devices using bluetooth low energy but when I scan it give me random addresses with name null And this is my code: I downloaded an app his name BLE scanner when I turn on BLE advertise on both phones a...
<blockquote> <p>Bluetooth devices send advertising packets (PDUs) to broadcast data, and to allow other devices (scanners) to find and connect to them.</p> </blockquote> <p>So,if you don't have advertising devices nearby, you scanner will not find anything. here you can find detailed information about advertising and s...
Bluetooth low energy android doesn’t give me a real address only null name
java|android|bluetooth
0
52
1
72,309,600
72,309,600
0
true
2022-05-19T15:17:07.430Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Bluetooth low energy android doesn’t give me a real address only null name<p>Can anyone help me? I want to scan nearby devices using bluetooth low energy but...
72,306,766
WPF How to find a specific control in an ItemsControl with data binding<p>I have an <code>ItemsControl</code> which is bound to a list:</p> <pre><code>&lt;ItemsControl x:Name=&quot;icFiles&quot; ItemsSource=&quot;{Binding Path=files}&quot;&gt; &lt;ItemsControl.ItemTemplate&gt; &lt;DataTemplate&gt; ...
<p>You need to access the item container's content template (which is the item's <code>DataTemplate</code>).</p> <p>In case of the <code>ItemsControl</code>, you can use the following example to obtain a named element from the <code>DataTemplate</code>:</p> <pre class="lang-cs prettyprint-override"><code> for (int item...
WPF How to find a specific control in an ItemsControl with data binding
wpf|data-binding|controls|itemscontrol
-2
52
2
72,310,978
72,310,978
0
true
2022-05-19T14:52:37.290Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: WPF How to find a specific control in an ItemsControl with data binding<p>I have an <code>ItemsControl</code> which is bound to a list:</p> <pre><code>&lt;It...
72,311,079
problems with get_context_data in ListView (django)<p>I need to show in a template two models:</p> <p>models.py:</p> <pre><code>class Dimension(TimeStampedModel): level = models.ForeignKey('Level', verbose_name=_('Level'), on_delete=models.CASCADE) name = models.CharField(verbose_name=('Name'), max_length=200)...
<p>You can do it with inefficient rendering, but if you have 100-200 subdimensions - it should not be a problem.</p> <pre><code>{% for dimension in dimensions %} &lt;div class=&quot;col&quot;&gt; &lt;div class=&quot;card&quot; style=&quot;width: 18rem;&quot;&gt; &lt;a class=&quot;&quot;&gt;{{dimension.name}}&lt...
problems with get_context_data in ListView (django)
python|django|listview
0
52
1
72,311,501
72,311,501
0
true
2022-05-19T21:06:23.243Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: problems with get_context_data in ListView (django)<p>I need to show in a template two models:</p> <p>models.py:</p> <pre><code>class Dimension(TimeStampedMo...
72,315,246
joining merge multiple dataframes without matching index<p>I have a complete data set that looks like this: pandas==1.1.5</p> <pre><code>all_data_set = [ ('A','Area1','AA','A B D E'), ('B','Area1','AA','A B D E'), ('C','Area2','BB','C'), ('D','Area1','CC','A B D E'), ('E','Area1'...
<p>If think you don't need your grouped dfs. You can compute your members with <code>groupby</code> then use the created df to lookup AA and CC members. Finally fill NA values with <code>Name</code>:</p> <pre><code>import pandas as pd all_data_set = [ ('A','Area1','AA','A B D E'), ('B','Area1','AA','A ...
joining merge multiple dataframes without matching index
python|python-3.x|pandas|dataframe
0
52
1
72,317,475
72,317,475
0
true
2022-05-20T07:42:52.497Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: joining merge multiple dataframes without matching index<p>I have a complete data set that looks like this: pandas==1.1.5</p> <pre><code>all_data_set = [ ...
72,317,778
RenderView in Symfony Helper usage<p>How can I use <code>$this-&gt;renderView</code> inside a Symfony helper class (not inside a controller)? I'm new about the function <code>renderView</code> but what do I have to setup to use it within the <code>Helper</code> class?</p>
<p>You can inject twig as a service with autowiring</p> <pre><code>&lt;?php namespace App\My\Ns; use Twig\Environment; class Helper { public function __construct( protected Environment $environment ) { } public function method() { $html = $this-&gt;environment-&gt;render('my/temp...
RenderView in Symfony Helper usage
symfony|render|symfony-3.4
0
52
1
72,319,058
72,319,058
0
true
2022-05-20T10:56:52.807Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: RenderView in Symfony Helper usage<p>How can I use <code>$this-&gt;renderView</code> inside a Symfony helper class (not inside a controller)? I'm new about t...
72,324,565
Angular images and span not showing<p>Hello Im adding some images an using a tooltip animation on hover, I have used the same setup in react and vanilla js. Im currently using Angular 2 and for some reason my spans nor images will show up, I know im using the correct path because if i put the image outside the containe...
<p>Figured it out, I have bootstrap installed and I couldnt use the tooltip class.</p>
Angular images and span not showing
angular
0
52
1
72,326,323
72,326,323
0
true
2022-05-20T20:40:20.393Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Angular images and span not showing<p>Hello Im adding some images an using a tooltip animation on hover, I have used the same setup in react and vanilla js. ...
72,336,225
How to use the properties of a class in the same class like they have values in C#<p>I am trying to use a property of a class in the same class to compare with another value. However, this property is still empty because I do not have an instance of that class. See the example below.</p> <pre><code>public Zoo(string na...
<p>The problem is you don't initialize <code>AnimalsWhichCouldNotBeModified</code> in the non-default constructor. You can either add the initialization into the non-default constructor:</p> <pre><code>public Zoo(string name, int capacity) { Name = name; Capacity = capacity; AnimalsWhichCouldNotBeModifi...
How to use the properties of a class in the same class like they have values in C#
c#|class|properties
2
52
2
72,336,365
72,336,365
0
true
2022-05-22T09:17:34.023Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use the properties of a class in the same class like they have values in C#<p>I am trying to use a property of a class in the same class to compare wi...
72,330,871
How to get list out of string represented as ["Smth", "Smth", "Smth"]<p>I have an pandas series object that includes features related to house. Those features are placed in squared brackets like this : ['Laundry In Unit', 'No Fee', 'Elevator'] but I need to have these features as a list of strings so I wonder if it pos...
<p>if you have a string that <code>repr</code>s like this:</p> <p><code>'[&quot;Smth&quot;, &quot;Smth&quot;, &quot;Smth&quot;]'</code></p> <p>and you want a list that looks like this:</p> <p><code>[&quot;Smth&quot;, &quot;Smth&quot;, &quot;Smth&quot;]</code></p> <p>then you need <code>ast.literal_eval</code>:</p> <pre...
How to get list out of string represented as ["Smth", "Smth", "Smth"]
python|pandas|dataframe|machine-learning
-2
52
2
72,337,364
72,337,364
0
true
2022-05-21T15:21:52.353Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get list out of string represented as ["Smth", "Smth", "Smth"]<p>I have an pandas series object that includes features related to house. Those feature...
72,336,033
Pass the devise user path in a partial<p>I'm trying to create a sidebar menu with the below information:</p> <pre class="lang-rb prettyprint-override"><code># app/controllers/users_controller.rb def show @user = User.friendly.find(params[:id]) end </code></pre> <pre class="lang-rb prettyprint-override"><code># confi...
<p>This is how <code>current_user</code> method is set up by Devise: <a href="https://github.com/heartcombo/devise/blob/v4.8.1/lib/devise/controllers/helpers.rb#L125" rel="nofollow noreferrer">current_user</a> is a controller method <a href="https://github.com/heartcombo/devise/blob/v4.8.1/lib/devise.rb#L458" rel="nofo...
Pass the devise user path in a partial
ruby-on-rails|devise
1
52
1
72,343,582
72,343,582
0
true
2022-05-22T08:44:58.127Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pass the devise user path in a partial<p>I'm trying to create a sidebar menu with the below information:</p> <pre class="lang-rb prettyprint-override"><code>...
72,340,783
Heroku set git remote heroku but when adding I get error remote heroku already exists<p>Until now I was using connect to github with heroku but as I understand it is currently disabled. So it's my first time doing it through Heroku CLI.</p> <p>I am following the tutorial on heroku. First I log in using heroku login. Th...
<p>I was able to deploy the project with just <code>git push heroku master</code></p>
Heroku set git remote heroku but when adding I get error remote heroku already exists
git|heroku
0
52
1
72,350,411
72,350,411
0
true
2022-05-22T19:39:59.800Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Heroku set git remote heroku but when adding I get error remote heroku already exists<p>Until now I was using connect to github with heroku but as I understa...
72,352,940
NameError: Variable name is not defined<p>I am having trouble with some undefined variables in my code for a school assignment using nested loops and functions. Also, if you happen to spot any other errors please lmk.</p> <p>Code:</p> <pre><code>shopping_lists = [ ['toothpaste', 'q-tips', 'milk'], ['milk', 'candy', 'ap...
<p>I would rearrange your execution flow as follows.</p> <pre><code>shopping_lists = [ ['toothpaste', 'q-tips', 'milk'], ['milk', 'candy', 'apples'], ['planner', 'pencils', 'q-tips'] ] def handle_action(action): if action == '1': update_list() elif action == '2': view_item() eli...
NameError: Variable name is not defined
python|nameerror
-1
52
1
72,353,060
72,353,060
0
true
2022-05-23T17:57:49.570Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: NameError: Variable name is not defined<p>I am having trouble with some undefined variables in my code for a school assignment using nested loops and functio...
72,359,332
R splitting dataframes in a list<p>I made a list of dataframes to apply the same function to all the dataframe elements.</p> <p>first those are the libraries i used (i know that many of these will not actually be used in this code, but anyway)</p> <pre><code>library(ggplot2) library(dplyr) library(ggpmisc) library(plot...
<p>You can generate dataframes of dataframes and <code>nest</code>/<code>unnest</code> (drill down into the &quot;dataframelets&quot; and back), together with the usual dataframe operations (e.g. summarising by groups) with little code like this:</p> <pre><code>library(dplyr) library(tidyr) data.frame(filename = c(&...
R splitting dataframes in a list
r|dataframe|split|naming
0
52
1
72,360,958
72,360,958
0
true
2022-05-24T08:07:50.897Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: R splitting dataframes in a list<p>I made a list of dataframes to apply the same function to all the dataframe elements.</p> <p>first those are the libraries...
72,363,938
how to change list's type?<p>if I have a list like <code>{&quot;4&quot; , &quot;3&quot;}</code>,<br /> I want to change that list's type(string to float) -&gt; <code>{4f , 3f}</code>.<br /> Is there a function can help me?<br /> I want <code>{&quot;4&quot; , &quot;3&quot;}</code> to <code>{4f , 3f}</code></p>
<p>You can use <code>float.Parse</code> in select. Make sure you use <code>system.linq</code>.</p> <pre class="lang-cs prettyprint-override"><code>var A = new List&lt;string&gt;() {&quot;4&quot;, &quot;3&quot;}; var B = A.Select(float.Parse).ToList(); </code></pre>
how to change list's type?
c#
0
52
2
72,364,153
72,364,153
0
true
2022-05-24T13:38:37.063Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to change list's type?<p>if I have a list like <code>{&quot;4&quot; , &quot;3&quot;}</code>,<br /> I want to change that list's type(string to float) -&g...
72,318,346
I want close electron app from another html page with button<p>We are currently improve a project with electronjs: We have main.js for electron as you know and we have another html page that javascripts codes in it. We created a close button in this html page and this button should close the app but we cant reach main...
<p>You must use <code>ipcMain</code> and <code>ipcRenderer</code>. Main for reading message and Renderer for sending message.</p> <blockquote> <p>.html page</p> </blockquote> <pre><code>&lt;script&gt; function kapat() { const { ipcRenderer } = require('electron') const ipc = ipcRenderer; ipc...
I want close electron app from another html page with button
javascript|html|electron
0
52
1
72,365,199
72,365,199
0
true
2022-05-20T11:39:35.733Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I want close electron app from another html page with button<p>We are currently improve a project with electronjs: We have main.js for electron as you know ...
72,344,055
C# - PowerShell object execute Remove-AppxPackage successfully but unable to remove application from another user<p>I want to remove the application from another user account (Specific selected user) I used below query Remove-AppxPackage -Package FACEBOOK.FACEBOOK_2021.927.1.0_neutral__8xx8rvfyw5nnt -User S-1-5-21-1982...
<p>Below script format work for me</p> <p>Get-AppxPackage -User SID | Where PackageFullName -eq packagefullname | Remove-AppxPackage -User</p> <h2>script</h2> <p>Get-AppxPackage -User S-1-5-21-1982064058-2852822003-722279830-1009 | Where PackageFullName -eq FACEBOOK.FACEBOOK_2021.927.1.0_neutral__8xx8rvfyw5nnt | Remove...
C# - PowerShell object execute Remove-AppxPackage successfully but unable to remove application from another user
c#|powershell
0
52
2
72,365,758
72,365,758
0
true
2022-05-23T06:24:09.170Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C# - PowerShell object execute Remove-AppxPackage successfully but unable to remove application from another user<p>I want to remove the application from ano...
72,365,612
How to use a argument from bash call in postgresql script?<p>I have the following bash script call.</p> <pre class="lang-bash prettyprint-override"><code>psql -U postgres postgres &lt; ../dump_script.sql -v test=1 &gt;/dev/null </code></pre> <p>In the <code>dump_script.sql</code>-script I have the following code:</p> <...
<p>This answer is possible because of the hint from @jjanes</p> <pre class="lang-sql prettyprint-override"><code>\set dbName 'dbDev' SELECT :test = 1 AS is_test_run \gset \if :is_test_run \set dbName 'dbTest' \endif </code></pre> <p>This works as intended!</p>
How to use a argument from bash call in postgresql script?
postgresql|bash|if-statement|syntax-error
0
52
1
72,368,287
72,368,287
0
true
2022-05-24T15:31:07.437Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use a argument from bash call in postgresql script?<p>I have the following bash script call.</p> <pre class="lang-bash prettyprint-override"><code>psq...
72,369,718
How to zero out specific entries in a 2D numpy array given another array that specifies the indices to zero out?<p>I have a (k,n) numpy array (call it <code>D</code>) from which I have to zero out specific entries in that array based on the indices given in another numpy array, say <code>y</code>, that's (n,1).</p> <p>...
<p>I will contrive some <code>D[5,10]</code> and <code>y[10,1]</code> as you didn't provide a MWE. Then, use <code>y</code> as first index through <code>y.ravel()</code> and <code>np.arange(n)</code> as second index. So, <code>D[y.ravel(), np.arange(n)] = 0</code> will do what you want.</p> <pre><code>import numpy as n...
How to zero out specific entries in a 2D numpy array given another array that specifies the indices to zero out?
python|arrays|numpy
1
52
2
72,372,541
72,372,541
0
true
2022-05-24T21:33:29.570Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to zero out specific entries in a 2D numpy array given another array that specifies the indices to zero out?<p>I have a (k,n) numpy array (call it <code>...
72,373,514
How to let users upload or change the uploaded images in one page, and display it in another page?<p>How to let user upload image in one page, and then display it in another page? User can change the image and it'll be changed also in the other page. Also, I'm talking about using php / js / jquery / mysqli anything tha...
<ol> <li>Format the image into Base64 string</li> <li>store it in local-storage</li> <li>In another page get it from local-storage and assign to the id or class.</li> </ol> <blockquote> <p>Suggesting the link that already have answered for <a href="https://stackoverflow.com/questions/19183180/how-to-save-an-image-to-lo...
How to let users upload or change the uploaded images in one page, and display it in another page?
javascript|java|php|html|jquery
-2
52
1
72,373,728
72,373,728
0
true
2022-05-25T07:29:46.570Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to let users upload or change the uploaded images in one page, and display it in another page?<p>How to let user upload image in one page, and then displ...
72,371,914
JSP Servlet MYSQL query does not execute<p>So I'm fighting with this issue for 2 hours straight and I cannot find a solution. I have 2 files. Manage.jsp where I'm printing out whole table with data and there I have 2 submit buttons - 1 to delete specific row, other to download a file from within that row.</p> <p>Submit...
<p>Okay, seems like the problem has been fixed by simply using <code>.strip()</code> function next to variable containing name of the file. For some reason there must have been some additional white spaces added and therefore resulting in error.</p>
JSP Servlet MYSQL query does not execute
java|mysql|sql|jsp|servlets
1
52
1
72,375,032
72,375,032
0
true
2022-05-25T04:18:23.577Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JSP Servlet MYSQL query does not execute<p>So I'm fighting with this issue for 2 hours straight and I cannot find a solution. I have 2 files. Manage.jsp wher...
72,373,680
Read Integer from JSON and add it to an arraylist<p>I would like to read data from a URL (JSON format) and add these values to the an <code>ArrayList</code>. I tested the reading from the URL part and this works. But for some reason I can't add the value that I read to the <code>ArrayList</code></p> <p>Anyone has an id...
<p>I think you are directly trying to add string number value to Int Array <code>payList</code> so first cast to Parse int using <code>Integer.parseInt()</code></p> <p>try below code this may help</p> <pre><code> try { JSONArray responseArray = new JSONArray(response); ...
Read Integer from JSON and add it to an arraylist
java|android|json|arraylist
-1
52
1
72,377,194
72,377,194
0
true
2022-05-25T07:41:28.663Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Read Integer from JSON and add it to an arraylist<p>I would like to read data from a URL (JSON format) and add these values to the an <code>ArrayList</code>....
72,373,845
Issue with Cognito API using Angular HttpClient and HttpHeader<p>I'm currently having trouble with HttpClient vs Axios</p> <p>when I use this code</p> <pre><code> const requestBody = { grant_type: 'refresh_token', client_id: environment.APP_COGNITO_CLIENT_ID, refresh_token: this.storage.get(&quot;au...
<p>maybe it's because the second argument is the body/data and the third are the headers. so it should be like this: this.$http.post(environment.APP_COGNITO_TOKEN_ENDPOINT + '/oauth2/token?' + queryString, null, httpOptions) -------- or ad your data instead of null</p> <p>By Zero Twelve</p>
Issue with Cognito API using Angular HttpClient and HttpHeader
angular|amazon-web-services|amazon-cognito
0
52
1
72,378,778
72,378,778
0
true
2022-05-25T07:53:58.690Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Issue with Cognito API using Angular HttpClient and HttpHeader<p>I'm currently having trouble with HttpClient vs Axios</p> <p>when I use this code</p> <pre><...
72,379,046
Export-CRMSolution Loop Failing ? (Microsoft.Xrm.Data.PowerShell)<p>I'm trying to export all Power Automate solutions. Export-CrmSolution works one at a time, but breaks when I try to make it loop through the solution names. I've tried putting them into an array, putting the variable in quotes and parentheses, and maki...
<p>Fun Fact: Solved it. Thanks!</p> <ol> <li><p>String Too Long? Filter to only visible solutions. Ex.</p> <p>Where-Object{ $_.isvisible -eq &quot;yes&quot;}</p> </li> <li><p>Can't find solution by &quot;Name&quot;? It wants the record's UniqueName, not FriendlyName. Ex.</p> <p>Export-CrmSolution &quot;$($solution.uniq...
Export-CRMSolution Loop Failing ? (Microsoft.Xrm.Data.PowerShell)
powershell|dynamics-crm|crm|power-automate
0
52
1
72,380,220
72,380,220
0
true
2022-05-25T13:59:08.080Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Export-CRMSolution Loop Failing ? (Microsoft.Xrm.Data.PowerShell)<p>I'm trying to export all Power Automate solutions. Export-CrmSolution works one at a time...
72,378,050
NodeJS route changes not being updated but new routes work properly<p>I need to make some changes in an old legacy code which I don't know much about, and I'm experiencing something very confusing.</p> <p>the route is defined like this</p> <pre><code>app.get('/getMapProduct',billing.getMapProdut); </code></pre> <p>and ...
<p>This was eventually really silly, though still some of the scenarios that happened aren't clear to me. It was a weirdly setup cache on the CloudFront</p>
NodeJS route changes not being updated but new routes work properly
node.js|express|nginx|amazon-ec2
1
52
1
72,381,734
72,381,734
0
true
2022-05-25T12:54:07.467Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: NodeJS route changes not being updated but new routes work properly<p>I need to make some changes in an old legacy code which I don't know much about, and I'...
72,380,770
Change DB name for Entity Framework DbContext<p>I have inherited an application which is using Entity Framework to access a SQL Server database. The <code>DbContext</code> class has the constructor as shown below, where <code>BuildingPermits</code> is the name of the initial catalog.</p> <p>I would like to be able to s...
<p>You can try this.</p> <pre><code>using System.Configuration; public BuildingPermitsDbContext() : base(DatabaseName()) { Database.SetInitializer&lt;BuildingPermitsDbContext&gt;(null); } private static string DatabaseName() { var db = ConfigurationManager.AppSettingss[&quot;desiredDbName&quot;]; return db...
Change DB name for Entity Framework DbContext
c#|entity-framework
0
52
1
72,383,393
72,383,393
0
true
2022-05-25T15:52:27.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Change DB name for Entity Framework DbContext<p>I have inherited an application which is using Entity Framework to access a SQL Server database. The <code>Db...
72,385,909
sh -c doesn't recognize heredoc syntax<p>I think the two commands below should be identical, but given the heredoc, the shell produces an error. Is it possible to pass a heredoc to the -c argument of sh?</p> <h3>heredoc example</h3> <pre class="lang-bash prettyprint-override"><code>/bin/sh -c &lt;&lt;EOF echo 'hello' E...
<p>The commands are not equivalent.</p> <pre class="lang-bash prettyprint-override"><code>/bin/sh -c &lt;&lt;EOF echo 'hello' EOF </code></pre> <p>is equivalent to</p> <pre class="lang-bash prettyprint-override"><code>echo &quot;echo 'hello'&quot; | /bin/sh -c </code></pre> <p>or, with here-string:</p> <pre class="lang...
sh -c doesn't recognize heredoc syntax
shell|sh|posix
-1
52
2
72,385,982
72,385,982
0
true
2022-05-26T02:03:17.693Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: sh -c doesn't recognize heredoc syntax<p>I think the two commands below should be identical, but given the heredoc, the shell produces an error. Is it possib...
72,387,143
Cannot push a 2d array into an array<p>Sorry if the title is unclear/badly worded, I'm a fairly new coder who sucks at remembering correct terminology. I have been trying to create a 3d array in Javascript that I want to look like this:</p> <pre class="lang-js prettyprint-override"><code>var errorCountList = [ [ ...
<p>You're probably pushing references of <em>one</em> array, rather than pushing nine different arrays. In order to save memory, javascript never creates a new array when reassigning an array (and the same goes with or objects).</p> <p>You can see that in the log in the snippet below: <code>/**ref:2**/,</code></p> <p><...
Cannot push a 2d array into an array
javascript|arrays|push
0
52
2
72,387,285
72,387,285
0
true
2022-05-26T05:33:32.230Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cannot push a 2d array into an array<p>Sorry if the title is unclear/badly worded, I'm a fairly new coder who sucks at remembering correct terminology. I hav...
72,339,568
no such column (pyhon tkinter)<p>i want to store all table's names in a list to then print in another window. But when i try to put those names in the new table i create, it givese me: &quot;OperationalError: no such column: and the name of the name i want to insert in&quot;. The probelm is mainly in the function &quot...
<p>Note that for the following line:</p> <pre class="lang-py prettyprint-override"><code>c.execute(&quot;&quot;&quot;INSERT INTO nomiClienti (nomi) VALUES (&quot;&quot;&quot;+ nome +&quot;&quot;&quot;);&quot;&quot;&quot;) </code></pre> <p>If <code>nome</code> has value, for example, <code>&quot;Hello&quot;...
no such column (pyhon tkinter)
python|sql|tkinter|sql-insert
0
52
1
72,387,470
72,387,470
0
true
2022-05-22T16:51:14.717Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: no such column (pyhon tkinter)<p>i want to store all table's names in a list to then print in another window. But when i try to put those names in the new ta...
72,395,496
Python blackjack program code issue. Why is it returning key "1" instead of "10"?<p>I used python tutor to step through the code and found that there is a bug in user_current_score(). for cards.get(card), it is pulling the &quot;10&quot; dictionary key but seeing it as a 1 instead, then returning None since there is no...
<p>You should use <code>append</code> method to add values to your lists.</p> <p>When you try to <code>+=</code> list with str (with more than 1 character) you are actually splitting this str to characters and append them sequentally.</p> <p>try this one:</p> <pre><code>while len(user_hand) &lt; 5: user_hand.append(d...
Python blackjack program code issue. Why is it returning key "1" instead of "10"?
python
-1
52
2
72,395,726
72,395,726
0
true
2022-05-26T17:02:24.277Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python blackjack program code issue. Why is it returning key "1" instead of "10"?<p>I used python tutor to step through the code and found that there is a bu...
72,369,418
How to group a List of records by fields into an Object with Lists inside<p>I've tried to figure out how to do this but i'm stuck and i would like some help.</p> <p>After having done a complex SQL Query and having assigned its result to a JPA Entity that maps this query result as if it was a view, i have this List, whe...
<p>The solution was to group again, inside the method where i would build objects from the records.</p> <pre><code>Map&lt;String, List&lt;ResultContainerRecords&gt;&gt; mapR = resultList.stream() .collect(Collectors.groupingBy(ResultContainerRecords::idImp)); mapR.values().stream().forEach(x -&...
How to group a List of records by fields into an Object with Lists inside
java|list|dictionary|stream|groupingby
0
52
1
72,406,812
72,406,812
0
true
2022-05-24T21:00:36.303Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to group a List of records by fields into an Object with Lists inside<p>I've tried to figure out how to do this but i'm stuck and i would like some help....
72,397,915
Given the BSD name or a reference to a network interface, how to get its gateway and DNS servers?<p>In a macOS app, I'm trying to get the gateway / router and DNS servers for a network interface. The interface could be identified by its BSD name, or using System Configuration with a <code>SCNetworkInterfaceRef</code> o...
<p>I've figured out how to do this, given a <code>SCNetworkServiceRef</code>. These two functions will return the gateway and DNS servers for the specified network:</p> <pre><code>CFStringRef copyNetworkServiceGateway(SCNetworkServiceRef service) { CFStringRef result = NULL; CFStringRef interfaceServiceID = SCN...
Given the BSD name or a reference to a network interface, how to get its gateway and DNS servers?
macos|networking|system-configuration
-2
52
1
72,427,895
72,427,895
0
true
2022-05-26T20:54:33.297Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Given the BSD name or a reference to a network interface, how to get its gateway and DNS servers?<p>In a macOS app, I'm trying to get the gateway / router an...
72,274,635
Center Vertically Anchor Tag in inline-block<p>Hello I need to center anchor tag vertically and I'm using vertical-align: middle; but it doesn't work for me. Can someone tell me what can I do. I'm using inline-block for display and MDN Reference shows that vertical align works for inline-block elements but it doesn't f...
<p>You need to use flex property to center align anchor tag.</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-override"><code>@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex...
Center Vertically Anchor Tag in inline-block
css|anchor|center|vertical-alignment
-1
52
2
72,274,749
72,274,749
0
true
2022-05-17T13:07:51.777Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Center Vertically Anchor Tag in inline-block<p>Hello I need to center anchor tag vertically and I'm using vertical-align: middle; but it doesn't work for me....
72,386,928
Apply Function on Dataframe Returns RangeIndex Error<p>Below is the code I'm trying to execute but I am getting the error: <code>KeyError: 'None of [RangeIndex(start=0, stop=54, step=1)] are in the [columns]'</code></p> <p>I've tried feeding in columns a few ways using dev_cols, feeding in RangeIndex identical to the i...
<p>It is expected, because <code>dev</code> is empty DataFrame, so select by any column(s) failed:</p> <pre><code>dev = pd.DataFrame() dev[dev_sentences.columns] </code></pre> <p>Need:</p> <pre><code>dev_sentences = pd.DataFrame(dev_sentences).astype(str) dev = dev_sentences.copy() dev['dev_combined'] = dev.apply(' '.j...
Apply Function on Dataframe Returns RangeIndex Error
python|pandas
1
52
1
72,386,948
72,386,948
0
true
2022-05-26T05:05:18.003Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Apply Function on Dataframe Returns RangeIndex Error<p>Below is the code I'm trying to execute but I am getting the error: <code>KeyError: 'None of [RangeInd...
72,369,206
Difference in PDFs when manually generated with Knit-Button vs rmarkdown::render() - e.g. section numbers not always included<p>I try to generate multiple reports (1 per group) with <code>rmarkdown::render()</code>, but it produces no section numbers.</p> <p>I use the following file-structure for this in case you want ...
<p>The behaviour of <code>pdf_document()</code> as the output-format in <code>rmarkdown::render</code> caused the missing section-numbers. In my YAML-header in <code>main.Rmd</code> I chose to keep the section numbers with <code>number_sections: true</code>. If this should also be rendered when using rmarkdown::render,...
Difference in PDFs when manually generated with Knit-Button vs rmarkdown::render() - e.g. section numbers not always included
r-markdown|rendering|pdflatex
-1
52
1
72,377,021
72,377,021
0
true
2022-05-24T20:39:35.003Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Difference in PDFs when manually generated with Knit-Button vs rmarkdown::render() - e.g. section numbers not always included<p>I try to generate multiple re...
72,307,475
Firestore only returns 1 item<p>When I make a call to the firestore it returns the correct amount of items but shows them both as the sam item, rather than the 2 separate items</p> <p>e.g I have a recipe for chicken curry and a recipe for salmon and rice but only the salmon and rice recipe gets shown</p> <p>Here is my ...
<p>You are itterating in each childview over every item in your collection.</p> <p>Remove this unnecessary <code>ForEach</code> loops:</p> <p><em><strong>!Be aware!</strong></em> I had to mock your <code>FireBase</code> model implementation, so I don´t know if there is something wrong in your <code>getData()</code> or ...
Firestore only returns 1 item
google-cloud-firestore|swiftui
1
52
1
72,310,823
72,310,823
0
true
2022-05-19T15:43:55.093Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Firestore only returns 1 item<p>When I make a call to the firestore it returns the correct amount of items but shows them both as the sam item, rather than t...
72,263,872
Node pg update multiple rows in one query (error: operator does not exist: text = integer)<p>I have the following query:</p> <pre class="lang-js prettyprint-override"><code>UPDATE test_schema.test_table as t SET test_row_value2 = c.test_row_value2 FROM (values ($1, $2, $3), ($1, $4, $5) ) as c(id, test_row_value1, ...
<p>I had to change this part of the query:</p> <pre><code>c.id = t.id </code></pre> <p>to the following:</p> <pre><code>c.id = t.id::int </code></pre> <p>Notice the <code>::int</code> part. I'm not sure why node pg requires the cast but everything seems to be working fine now.</p>
Node pg update multiple rows in one query (error: operator does not exist: text = integer)
node.js|postgresql|pg
0
52
1
72,264,396
72,264,396
0
true
2022-05-16T18:20:55.387Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Node pg update multiple rows in one query (error: operator does not exist: text = integer)<p>I have the following query:</p> <pre class="lang-js prettyprint-...
72,282,439
Heroku Django deployment ModuleNotFoundError: No module named 'appointmentApp'<p>Im trying to deploy a django site using Heroku and I keep running into this error when the page tries to load with heroku logs --tail</p> <pre><code> » Warning: heroku update available from 7.53.0 to 7.60.2. 2022-05-18T01:09:37.493808+00...
<p>I had to back track, if someone else runs into this, you might be having the same issue</p> <p>Basically this <a href="https://stackoverflow.com/questions/57587490/couldnt-find-wsgi-module-deploying-heroku">Couldn&#39;t find WSGI module deploying Heroku</a></p> <p>The file structure is wrong manage.py has to be at t...
Heroku Django deployment ModuleNotFoundError: No module named 'appointmentApp'
django|heroku
0
52
2
72,293,112
72,293,112
0
true
2022-05-18T01:57:14.753Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Heroku Django deployment ModuleNotFoundError: No module named 'appointmentApp'<p>Im trying to deploy a django site using Heroku and I keep running into this ...
72,346,186
JS TS how to refactor repetitive code into a higher order function with multiple param types<p>I've been wanting to refactor the following code into a higher order function with typescript to make it cleaner and more re-usable, though have been finding it really challenging to make it work.</p> <pre><code>import { Docu...
<p>So basically you want to refactor this part:</p> <pre><code>try { /* SOME OPERATION */ timer({ ...metricsLabels, success: 'true' }); return result; } catch (err: any) { timer({ ...metricsLabels, success: 'false' }); throw new Error(err.message); } </code></pre> <p>You can just wrap it in a funct...
JS TS how to refactor repetitive code into a higher order function with multiple param types
javascript|typescript|refactoring|higher-order-functions
0
52
1
72,346,356
72,346,356
0
true
2022-05-23T09:26:13.663Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JS TS how to refactor repetitive code into a higher order function with multiple param types<p>I've been wanting to refactor the following code into a higher...
72,387,714
Split a two-dimensional array of specified length<p>Split the original array into a two-dimensional array of the specified length</p> <p><code>list =&gt; source array</code></p> <p><code>columns =&gt; columns number</code></p> <p><code>targetList =&gt; two-dimensional array</code></p> <pre><code>const list = [1,2,3,4,5...
<p>You can use <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce" rel="nofollow noreferrer">Array.prototype.reduce</a> and transform the given <code>list</code> to the desired grid.</p> <p>Push the a new row to the resultant grid if any of the following conditions me...
Split a two-dimensional array of specified length
javascript|java|arrays
0
52
1
72,388,167
72,388,167
0
true
2022-05-26T06:36:39.967Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Split a two-dimensional array of specified length<p>Split the original array into a two-dimensional array of the specified length</p> <p><code>list =&gt; sou...
72,238,081
MarkLogic matches function with regular expression<p>I am new to XQuery so could you please help me to understand what is <code>&amp;#xA7;</code> and <code>&amp;#xA7;.*$</code> in below MarkLogic XQuery:</p> <pre><code>if (matches($cite, '&amp;#xA7;')) replace($cite,'&amp;#xA7;.*$','') </code></pre> <p>here <code>$ci...
<p>In regex, the <code>$</code> in a regex expression <a href="https://docs.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-language-quick-reference#anchors" rel="nofollow noreferrer">is an anchor point</a> to the end of the input string value.</p> <p><code>&amp;#xA7;</code> is a <a href="https://en.w...
MarkLogic matches function with regular expression
regex|string|xquery|marklogic|marklogic-9
1
52
1
72,240,758
72,240,758
0
true
2022-05-14T07:08:48.707Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MarkLogic matches function with regular expression<p>I am new to XQuery so could you please help me to understand what is <code>&amp;#xA7;</code> and <code>&...
72,310,999
Batch find and replace only on lines that contain a specific text<p>I'm trying to do a &quot;find and replace&quot; into a text file from batch but only on specific lines, as such:</p> <p><strong>Before:</strong></p> <pre><code>7,U7k956ykBJ,&quot;GenericLine&quot; 7,SwNZVX7SwPA2,&quot;GenericLine&quot; 7,783bMsWVSJZ8,&...
<p>In my opinion, batch is kind of clunky to be doing this in - consider PowerShell.</p> <p>But, for batch, this script:</p> <ol> <li>Enables delayed variable expansion.</li> <li>Sets DestinationFile.txt to 0 bytes.</li> <li>Loops via <code>FOR</code> through the lines of a file named SourceFile.TXT.</li> <li>Places ea...
Batch find and replace only on lines that contain a specific text
batch-file|replace
-1
52
1
72,311,601
72,311,601
0
true
2022-05-19T20:59:11.880Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Batch find and replace only on lines that contain a specific text<p>I'm trying to do a &quot;find and replace&quot; into a text file from batch but only on s...
72,305,526
How to change "capacityIncrement" value post initialization in Vector?<p>In vector by default <code>initialCapacity</code> is set at <code>10</code> and <code>capacityIncrement</code> is also set at <code>10</code>.</p> <p>Thus if we do -</p> <pre><code>Vector&lt;String&gt; vector = new Vector&lt;&gt;(); </code></pre> ...
<p>You can do it using reflect.Field as below:</p> <pre><code>public static void main (String[] args){ Vector&lt;String&gt; vector = new Vector&lt;&gt;(5, 5); System.out.println(getMyCapacityIncrement(vector)); setMyCapacityIncrement(vector, 9); System.out.println(getMyCapacityIncrement(vector)); } priv...
How to change "capacityIncrement" value post initialization in Vector?
java|vector|frameworks|size|capacity
-1
52
2
72,306,017
72,306,017
0
true
2022-05-19T13:33:29.160Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to change "capacityIncrement" value post initialization in Vector?<p>In vector by default <code>initialCapacity</code> is set at <code>10</code> and <cod...
72,392,651
How to put date(parsed from csv) in Python to mysql?<p>I've made separate simple example just to check what method would work with date in my case and didn't find any solution.</p> <p>we have:</p> <ol> <li>db table:</li> </ol> <pre><code>CREATE TABLE `main_test` ( `id` bigint NOT NULL AUTO_INCREMENT, `DATESTAMP` da...
<p>thanks to @buran and @Dean-Van-Greunen</p> <p>let me show you my version of answer as a first but not last step, thats not elegant at all, but it works.</p> <pre><code> date = line[&quot;DATESTAMP&quot;][6:-8] + &quot;-&quot; + line[&quot;DATESTAMP&quot;][3:-13] + &quot;-&quot; + line[&quot;DATESTAMP&quot;][:...
How to put date(parsed from csv) in Python to mysql?
python|mysql|csv
0
52
2
72,396,331
72,396,331
0
true
2022-05-26T13:31:34.527Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to put date(parsed from csv) in Python to mysql?<p>I've made separate simple example just to check what method would work with date in my case and didn't...
72,337,603
Git asks for password over ssh on One PC only<p>After updating from Ubuntu 21.10 to 22.04,I constantly get password prompt when interacting with company's self-hosted gitlab on my Desktop. My other machine(laptop) connects through ssh perfectly.</p> <p>I tried everything even replacing <code>.ssh</code> with the laptop...
<blockquote> <p>The RSA SHA-1 hash algorithm is being quickly deprecated. There is a workaround for re-enabling RSA at SSH-RSA key rejected with message &quot;no mutual signature algorithm&quot; .</p> </blockquote> <p><a href="https://askubuntu.com/questions/1404049/ssh-without-password-does-not-work-after-upgrading-fr...
Git asks for password over ssh on One PC only
git
0
52
1
72,338,912
72,338,912
0
true
2022-05-22T12:32:56.947Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Git asks for password over ssh on One PC only<p>After updating from Ubuntu 21.10 to 22.04,I constantly get password prompt when interacting with company's se...
72,290,905
Split with specials character and print string value<pre><code>public class SplitStringobj { public static void main(String[] args) { String val1= Start//complete//First//com//upload the dummy123//First//download; String val2= First; String[] splitObject = outObject.split(&quot;//&quot;); f...
<p>Here is my attempt.</p> <pre class="lang-java prettyprint-override"><code>public static String first_match(String[] str, String toMatch) { boolean match = false; StringBuilder output = new StringBuilder(); for (int i=0; i&lt;str.length; i++) { if (str[i].equals(toMatch)) { match = tr...
Split with specials character and print string value
java
-4
52
1
72,291,243
72,291,243
0
true
2022-05-18T14:18:19.520Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Split with specials character and print string value<pre><code>public class SplitStringobj { public static void main(String[] args) { String val1= ...
72,263,109
Ansible manage deployable files in multi environment project<p>In our projet, which has a <code>local</code>, <code>dev</code> and <code>prod</code> environment, we want to deploy a file <code>ourKeystore.p12</code>. This file must be present in those 3 environments, with the same name, but with a different content.</p...
<p>Use the special variable <a href="https://docs.ansible.com/ansible/latest/reference_appendices/special_variables.html" rel="nofollow noreferrer"><em>inventory_dir</em></a> to read the files in the roles. Put the declaration into the <em>group_vars/all</em>. For example,</p> <pre class="lang-sh prettyprint-override">...
Ansible manage deployable files in multi environment project
ansible
1
52
1
72,265,219
72,265,219
0
true
2022-05-16T17:14:10.727Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Ansible manage deployable files in multi environment project<p>In our projet, which has a <code>local</code>, <code>dev</code> and <code>prod</code> environm...
72,255,725
inline raw html inside haml, right after interpolation<p>Ultimately I need an url encoded line, to pass it to whatsapp or telegram share feature from web. I need to add a line break <code>&lt;br&gt;</code> after unlinked sequence of data, but what I tried all the time it appears as text element, not html element.</p> <...
<p>Use if statement:</p> <pre><code>%br - if unit.square_total? = &quot;Total area: #{cut_zeros(unit.square_total)}&quot; %br - else if unit.square_plot? = &quot;Plot area: #{cut_zeros(unit.square_plot)}&quot; %br - ... </code></pre> <p>EDIT</p> <p>so, try</p> <pre><code>%br = unit.square_covered? ? &quot;Cove...
inline raw html inside haml, right after interpolation
ruby-on-rails|haml
0
52
1
72,256,364
72,256,364
0
true
2022-05-16T07:45:19.950Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: inline raw html inside haml, right after interpolation<p>Ultimately I need an url encoded line, to pass it to whatsapp or telegram share feature from web. I ...
72,382,465
Within a markup-string, how to replace any e.g. class-name specified element with its own title-text?<p>I have a variable called <code>$text</code>.</p> <p>I want to make it so that if there are any spans with the class &quot;emote&quot;, replace the entire span and its contents with the title attribute of the span. Al...
<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>function replaceAnyTargetedElementByItsTitleText(markup, selector) { const doc = (new DOMParser) .parseFromString(markup, "tex...
Within a markup-string, how to replace any e.g. class-name specified element with its own title-text?
javascript|html|markup|domparser
1
52
1
72,382,884
72,382,884
0
true
2022-05-25T18:17:22.650Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Within a markup-string, how to replace any e.g. class-name specified element with its own title-text?<p>I have a variable called <code>$text</code>.</p> <p>I...
72,364,044
Combine with month and year column kept in different columns on Oracle<p>I keep the month and year information in different columns as numbers. I want to go back 12 months on sysdate using these columns.</p> <p>The table I used below as an example , Since we are in the 5th month now, I want to get the data up to the 6t...
<pre><code>select * from versiyon where lpad(year, 4, '0') || lpad(month, 2, '0') &gt;= to_number(to_char(sysdate - 365, 'yyyymm' )) </code></pre> <p><a href="https://dbfiddle.uk/?rdbms=oracle_21&amp;fiddle=824adb9f5eab4a1e4b5e77809f66352a" rel="nofollow noreferrer">Here is a demo</a></p> <p>As MT0 say it will not wor...
Combine with month and year column kept in different columns on Oracle
sql|oracle|plsql
0
52
3
72,364,255
72,364,255
0
true
2022-05-24T13:44:41.697Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Combine with month and year column kept in different columns on Oracle<p>I keep the month and year information in different columns as numbers. I want to go ...
72,327,904
How do I access the an element in an enumeration by the associated number in C?<p>I have an enumeration in C as follows:</p> <pre><code>enum menu { PASTA, PIZZA, DIET_COKE, MOJITO, }; </code></pre> <p>Since I haven't explicitly mentioned the integer values corresponding to these elements, they are assig...
<p>The enums are nothing but named constants in C. Same as you declare a const using</p> <pre class="lang-c prettyprint-override"><code>#define PASTA 0 #define PIZZA 1 #define DIET_COKE 2 #define MOJITO 3 </code></pre> <p>for example.</p> <p>With the enum the compiler does that for you automatically. So there is no way...
How do I access the an element in an enumeration by the associated number in C?
c|enums|user-defined-types
0
52
1
72,327,973
72,327,973
0
true
2022-05-21T08:31:49.403Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I access the an element in an enumeration by the associated number in C?<p>I have an enumeration in C as follows:</p> <pre><code>enum menu { PASTA...
72,320,850
Getting no projection from Dynamics CRM dataset<p>I am trying to get data from Dynamics in my Data Factory, but somehow I'm not seeing column output when I try to use the dataset in my Data Flow.</p> <p>When I use the 'Preview data' option in my Dynamics dataset I'm getting result, so that looks fine. But when I try to...
<p>I solved this issue by using a 'copy data' activity like this:</p> <p><a href="https://i.stack.imgur.com/8jETH.png" rel="nofollow noreferrer">Source</a></p>
Getting no projection from Dynamics CRM dataset
azure|dynamics-crm|azure-data-factory|microsoft-dynamics
0
52
2
72,453,390
72,453,390
0
true
2022-05-20T14:44:47.940Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting no projection from Dynamics CRM dataset<p>I am trying to get data from Dynamics in my Data Factory, but somehow I'm not seeing column output when I t...
72,362,995
Trying to save a copy of a file to specific Google Drive folder, from URLs in a Google Sheet<p>I am running this code in google Apps Script to save a copy of a file (photo) in a specific folder, from a URL link extracted from a Google Sheet. The photos are in other peoples google drive accounts..</p> <p>This google she...
<p>Let me know if this works for you:</p> <pre><code>SpreadsheetApp.getActiveSpreadsheet() .getSheetByName(`Sheet1`) .getRange(`L6:L68`) .getDisplayValues() .flat() .filter(String) .forEach(url =&gt; { const targetFile =...
Trying to save a copy of a file to specific Google Drive folder, from URLs in a Google Sheet
javascript|google-apps-script|google-sheets|odk
0
52
2
72,363,296
72,363,296
0
true
2022-05-24T12:36:10.087Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trying to save a copy of a file to specific Google Drive folder, from URLs in a Google Sheet<p>I am running this code in google Apps Script to save a copy of...
72,390,847
How to pass multiple argments with process.startInfo.Arguments<p>I have this peace of code here:</p> <pre><code>void Main(string[] args) { string[] ARRAY = new string[2]; ARRAY[0] = &quot;1&quot;; ARRAY[1] = &quot;2&quot;; Process process = new Process(); process.startInfo.FileName = @&quot;PATH&quot...
<p><a href="https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.processstartinfo.arguments?view=net-6.0" rel="nofollow noreferrer"><code>process.startInfo.Arguments</code></a> is of type <code>string</code> and you are trying to pass array of string to it.</p> <pre><code>public string Arguments { get; set; }...
How to pass multiple argments with process.startInfo.Arguments
c#|arrays|console|arguments
0
52
2
72,390,885
72,390,885
0
true
2022-05-26T11:08:02.253Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to pass multiple argments with process.startInfo.Arguments<p>I have this peace of code here:</p> <pre><code>void Main(string[] args) { string[] ARRAY ...
72,369,107
My express.js is not receiving the body that I sent from react native<p>I have a api object set up like this in react native:</p> <pre><code>import axios from &quot;axios&quot;; import AsyncStorage from &quot;@react-native-async-storage/async-storage&quot;; //npm install @react-native-async-storage/async-storage const...
<p>GET request shouldn't include data.</p> <blockquote> <p>The HTTP GET method requests a representation of the specified resource. Requests using GET should only be used to request data (they shouldn't include data).</p> </blockquote> <p><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET" rel="nofo...
My express.js is not receiving the body that I sent from react native
javascript|node.js|react-native|express
0
52
1
72,369,238
72,369,238
0
true
2022-05-24T20:28:45.137Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: My express.js is not receiving the body that I sent from react native<p>I have a api object set up like this in react native:</p> <pre><code>import axios fro...
72,397,736
Java Swing not showing components as it should<p>I am trying to code the GUI for a class in Java and some components appear but some don't. Precisely JTextBoxes and JButton appear but JLabels and JComboBoxes don't. Another problem is that I tried to remove the JComboBox and put JTextBox, but when I tried to type a bloo...
<p>By using <code>formFrame.setLayout(null);</code> you chose to not use a <a href="https://docs.oracle.com/javase/8/docs/api/java/awt/LayoutManager.html" rel="nofollow noreferrer">LayoutManager</a> for your <code>JFrame</code>. This is usually a bad idea, because then you are responsible for setting the positions and ...
Java Swing not showing components as it should
java|swing
0
52
2
72,398,510
72,398,510
0
true
2022-05-26T20:33:21.197Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Java Swing not showing components as it should<p>I am trying to code the GUI for a class in Java and some components appear but some don't. Precisely JTextBo...