qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,486,815
<p>I want to use threading package to calculate the square of num and my code like,</p> <pre><code>import threading def my_squr(num): #if this function take long time to run print(num*num) return num*num if __name__ == &quot;__main__&quot;: l1 = [1,3,5,7,11,13,15,17] for i, item in enumerate(l1): ...
[ { "answer_id": 74486917, "author": "Mustafa KÜÇÜKDEMİRCİ", "author_id": 15833253, "author_profile": "https://Stackoverflow.com/users/15833253", "pm_score": 3, "selected": true, "text": "->Create thread x and start\n->wait for finish of thread x\n->Create thread y and start\n->wait for fi...
2022/11/18
[ "https://Stackoverflow.com/questions/74486815", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12931358/" ]
74,486,825
<p>Is there any way I can store inside <code>header</code> base on <code>section.type</code> different titles like <code>&lt;p&gt; {section.title1} &lt;/p&gt;</code> or <code>&lt;p&gt; {section.title2} &lt;/p&gt;</code> ?</p> <pre><code>return ( &lt;Collapse onToggle={onHandleClick} header={ ...
[ { "answer_id": 74486845, "author": "S.Marx", "author_id": 11095009, "author_profile": "https://Stackoverflow.com/users/11095009", "pm_score": 0, "selected": false, "text": "return (\n <Collapse\n onToggle={onHandleClick}\n header={\n section.type ? <p>{section....
2022/11/18
[ "https://Stackoverflow.com/questions/74486825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3522687/" ]
74,486,841
<p>Firstly, I'm using Python 3.11.0 in Colab.</p> <p>When I use <code>/</code> to make parameters positional-only, <code>SyntaxError</code> is raised.</p> <p>However, when I use <code>*</code> for keyword-only parameters, any error hasn't been raised.</p> <p>Is there anyone who knows why these things happen?</p> <pre><...
[ { "answer_id": 74486845, "author": "S.Marx", "author_id": 11095009, "author_profile": "https://Stackoverflow.com/users/11095009", "pm_score": 0, "selected": false, "text": "return (\n <Collapse\n onToggle={onHandleClick}\n header={\n section.type ? <p>{section....
2022/11/18
[ "https://Stackoverflow.com/questions/74486841", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20537542/" ]
74,486,843
<p><code>x:Key</code> behaves like an attached property where it is available in the children of <code>ResourceDictionary</code>. However, I cannot find the implementation of <code>x:Key</code> in <code>ResourceDictionary</code> (<a href="https://github.com/dotnet/maui/blob/50d5bc9c2aed26276371740bd9d5e5beab52533c/src/...
[ { "answer_id": 74487804, "author": "mamift", "author_id": 1376318, "author_profile": "https://Stackoverflow.com/users/1376318", "pm_score": 2, "selected": true, "text": "x:Key xmlns:x=\"http://schemas.microsoft.com/winfx/2009/xaml\" XmlName XmlName x:Key x:Arguments x:DataType x:FactoryM...
2022/11/18
[ "https://Stackoverflow.com/questions/74486843", "https://Stackoverflow.com", "https://Stackoverflow.com/users/835073/" ]
74,486,859
<p>i'm going to learn flutter. so i installed the latest version of flutter(Flutter 3.3.8) and make the path of that on windows. then i installed the latest version of android studio(Android Studio Dolphin | 2021.3.1 Patch 1) and installed the flutter plugin and sdk and emulator of api 32 and 29 on it.</p> <p>also i in...
[ { "answer_id": 74487804, "author": "mamift", "author_id": 1376318, "author_profile": "https://Stackoverflow.com/users/1376318", "pm_score": 2, "selected": true, "text": "x:Key xmlns:x=\"http://schemas.microsoft.com/winfx/2009/xaml\" XmlName XmlName x:Key x:Arguments x:DataType x:FactoryM...
2022/11/18
[ "https://Stackoverflow.com/questions/74486859", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20537641/" ]
74,486,875
<p>I'm trying to change the number of items in array, over which a for loop is running, during the for loop, with the objective that this changes the number of loops. In a very simplified version, the code would look something like this:</p> <pre><code>var loopArray: [Int] = [] loopArray.append(1) loopArray.append(2) ...
[ { "answer_id": 74487804, "author": "mamift", "author_id": 1376318, "author_profile": "https://Stackoverflow.com/users/1376318", "pm_score": 2, "selected": true, "text": "x:Key xmlns:x=\"http://schemas.microsoft.com/winfx/2009/xaml\" XmlName XmlName x:Key x:Arguments x:DataType x:FactoryM...
2022/11/18
[ "https://Stackoverflow.com/questions/74486875", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16835035/" ]
74,486,884
<p>I try to read data from application properties file in Spring Boot Application.</p> <p>Following Code is my main class.</p> <pre><code>@SpringBootApplication(scanBasePackages = &quot;com.fsk.limitservice&quot;) public class LimitServiceApplication { public static void main(String[] args) { SpringApplica...
[ { "answer_id": 74487120, "author": "DingHao", "author_id": 19546048, "author_profile": "https://Stackoverflow.com/users/19546048", "pm_score": 1, "selected": false, "text": "@ConfigurationPropertiesScan @ConstructorBinding" }, { "answer_id": 74487899, "author": "birca123", ...
2022/11/18
[ "https://Stackoverflow.com/questions/74486884", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11863934/" ]
74,486,886
<p>My docker-compose creates 3 containers - django, celery and rabbitmq. When i run the following commands -&gt; docker-compose build and docker-compose up, the containers run successfully.</p> <p>However I am having issues with deploying the image. The image generated has an image ID of 24d7638e2aff. For whatever reas...
[ { "answer_id": 74486987, "author": "HoliSimo", "author_id": 10419454, "author_profile": "https://Stackoverflow.com/users/10419454", "pm_score": 0, "selected": false, "text": "docker-compose.yml set -o errexit\nset -o pipefail\nset -o nounset\n\npython manage.py migrate && python manage.p...
2022/11/18
[ "https://Stackoverflow.com/questions/74486886", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15980387/" ]
74,486,889
<p>I'm working on a Spring Boot project that uses Spring Cloud (<code>io.awspring.cloud:spring-cloud-aws-dependencies:2.4.2</code>) to produce and consume AWS SQS messages. I have several message producers and several message consumers, and all is working fine from that perspective.</p> <p>I now have a cross cutting co...
[ { "answer_id": 74500968, "author": "kriegaex", "author_id": 1082681, "author_profile": "https://Stackoverflow.com/users/1082681", "pm_score": 1, "selected": false, "text": "MessageChannel.send(Message) # This works, now we can create JDK interface proxies. The seemingly equivalent altern...
2022/11/18
[ "https://Stackoverflow.com/questions/74486889", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1378228/" ]
74,486,897
<p>I'm working on an Angular project and after I make a put request I want to be able to display on screen the message from console to inform the user. I tried using <code>res.message</code> but i get <code>Property 'message' does not exist on type 'Object' </code> the function code</p> <pre><code>this.http.put('https:...
[ { "answer_id": 74487070, "author": "Luca Angrisani", "author_id": 13240452, "author_profile": "https://Stackoverflow.com/users/13240452", "pm_score": 0, "selected": false, "text": "this.http.put('https://hjwnr2qluh-vpce-023bfa93fa33e8bbe.execute-api.eu-central-1.amazonaws.com/fabi/master...
2022/11/18
[ "https://Stackoverflow.com/questions/74486897", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19938599/" ]
74,486,902
<p>I added 5 buttons in js to html and I want them to be defined with a one second delay, and because of this js, when it reaches the addEventListener line, those buttons are not defined and gives an error.</p> <p><a href="https://i.stack.imgur.com/PYq4N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.co...
[ { "answer_id": 74487070, "author": "Luca Angrisani", "author_id": 13240452, "author_profile": "https://Stackoverflow.com/users/13240452", "pm_score": 0, "selected": false, "text": "this.http.put('https://hjwnr2qluh-vpce-023bfa93fa33e8bbe.execute-api.eu-central-1.amazonaws.com/fabi/master...
2022/11/18
[ "https://Stackoverflow.com/questions/74486902", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19556273/" ]
74,486,952
<p>I'm trying to optimize the loading of fonts on a website. I found this website <a href="https://beamtic.com/optimizing-font-load" rel="nofollow noreferrer">https://beamtic.com/optimizing-font-load</a> giving suggestions to improve the fonts loading. I read the section &quot;Avoid font swapping&quot; which suggests t...
[ { "answer_id": 74487070, "author": "Luca Angrisani", "author_id": 13240452, "author_profile": "https://Stackoverflow.com/users/13240452", "pm_score": 0, "selected": false, "text": "this.http.put('https://hjwnr2qluh-vpce-023bfa93fa33e8bbe.execute-api.eu-central-1.amazonaws.com/fabi/master...
2022/11/18
[ "https://Stackoverflow.com/questions/74486952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18881168/" ]
74,487,021
<p>for some reason this isn't working.</p> <p>i may be making a silly mistake somewhere. please help</p> <pre><code># importing modules import urllib.request import matplotlib.pyplot as plt import matplotlib.cm as cm import numpy as np from PIL import Image </code></pre> <p>#dowload mona lisa image</p> <pre><code>urll...
[ { "answer_id": 74487066, "author": "Chris", "author_id": 14408656, "author_profile": "https://Stackoverflow.com/users/14408656", "pm_score": 2, "selected": false, "text": "from PIL import Image\nimg = Image.open('image.png').convert('L')\nimg.save('greyscale.png')\n" }, { "answer...
2022/11/18
[ "https://Stackoverflow.com/questions/74487021", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7846884/" ]
74,487,023
<p>I have two columns in a df and rows of dates. I'd like to see how well each column matches the other and moves in sync with the other column - ie. do they move in tandem and does one influence the movements in the other.</p> <pre><code> Col1 Col2 Date ...
[ { "answer_id": 74487066, "author": "Chris", "author_id": 14408656, "author_profile": "https://Stackoverflow.com/users/14408656", "pm_score": 2, "selected": false, "text": "from PIL import Image\nimg = Image.open('image.png').convert('L')\nimg.save('greyscale.png')\n" }, { "answer...
2022/11/18
[ "https://Stackoverflow.com/questions/74487023", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9437961/" ]
74,487,025
<p><a href="https://i.stack.imgur.com/YzV9L.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YzV9L.png" alt="enter image description here" /></a></p> <p>I need help with my program. I need it to calculate the 3x3 average and then go and and calculate the next. This is what i got so far, it‘s only to c...
[ { "answer_id": 74487066, "author": "Chris", "author_id": 14408656, "author_profile": "https://Stackoverflow.com/users/14408656", "pm_score": 2, "selected": false, "text": "from PIL import Image\nimg = Image.open('image.png').convert('L')\nimg.save('greyscale.png')\n" }, { "answer...
2022/11/18
[ "https://Stackoverflow.com/questions/74487025", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20528928/" ]
74,487,051
<p>I have a large list of around 200 values</p> <p>The list looks like this</p> <pre><code>list_ids = [10148, 10149, 10150, 10151, 10152, 10153, 10154, 10155, 10156, 10157, 10158, 10159, 10160, 10161, 10163, 10164, 10165, 10167, 10168, 10169, 10170, 10171, 10172, 10173, 10174, 10175, 10177, ...
[ { "answer_id": 74487144, "author": "StephanT", "author_id": 10895042, "author_profile": "https://Stackoverflow.com/users/10895042", "pm_score": 0, "selected": false, "text": "import pandas as pd\n\nids = pd.Series(list_ids)\nids.sample(19).values\n import random\nrandom.shuffle(list_ids)...
2022/11/18
[ "https://Stackoverflow.com/questions/74487051", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11883900/" ]
74,487,068
<p>I wanted to connect a MySQL database to my Laravel application.<br /> I created one using <a href="https://www.phpmyadmin.net/" rel="nofollow noreferrer">PHPMyAdmin</a> administration tool of MySQL, then I added it in the <code>.env</code> as whereas the <code>database.php</code> application files.</p> <p>I ran the ...
[ { "answer_id": 74487144, "author": "StephanT", "author_id": 10895042, "author_profile": "https://Stackoverflow.com/users/10895042", "pm_score": 0, "selected": false, "text": "import pandas as pd\n\nids = pd.Series(list_ids)\nids.sample(19).values\n import random\nrandom.shuffle(list_ids)...
2022/11/18
[ "https://Stackoverflow.com/questions/74487068", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20537718/" ]
74,487,130
<p>Edited for clarity and reproduciblity....</p> <p>I have a list of dataframes that I want to export to a folder on my PC via a file path. Doing this one at a time, or writing multiple <code>'write.csv'</code> commands is possible, but repetitive. Is there a way that I could use a for loop to export my data frames fro...
[ { "answer_id": 74487337, "author": "Julien", "author_id": 8806649, "author_profile": "https://Stackoverflow.com/users/8806649", "pm_score": 1, "selected": false, "text": "lapply(seq_along(dataList), \\(i) write.csv(dataList[[i]], paste0(\"C:/filepath/dataframe_name_\", i, \".csv\"), row....
2022/11/18
[ "https://Stackoverflow.com/questions/74487130", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17438953/" ]
74,487,165
<p>Imagining I have these two <code>INSERT</code> statements, the first one was yesterday and the second one is today:</p> <pre><code>INSERT INTO table(id, field1, field2, field3) VALUES (1, &quot;John&quot;, &quot;Doe&quot;, &quot;12345&quot;) INSERT INTO table(id, field1, field2, field3) VALUES (1, &quot;Mary&quot...
[ { "answer_id": 74487241, "author": "Eric Kong", "author_id": 15723533, "author_profile": "https://Stackoverflow.com/users/15723533", "pm_score": 1, "selected": false, "text": "ALTER TABLE table ADD UNIQUE (field3);\n" }, { "answer_id": 74487244, "author": "Haresh Makwana", ...
2022/11/18
[ "https://Stackoverflow.com/questions/74487165", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11025822/" ]
74,487,176
<p>How do I change the shape of this data so that the subject column becomes a top row header containing all unique values. Name and Surnames are listed in the 1st and 2nd column as unique values. Then in each cell I need a true or false of whether the person is in that subject class. I need to transpose or reshape the...
[ { "answer_id": 74487212, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 2, "selected": true, "text": "crosstab out = (pd\n .crosstab([df['NAME'], df['SURNAME']], df['SUBJECT'])\n .astype(bool)\n .reset_index().rename_a...
2022/11/18
[ "https://Stackoverflow.com/questions/74487176", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11436736/" ]
74,487,208
<p>I have following dataframe named df.</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>id</th> <th>letter</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>x,y</td> </tr> <tr> <td>2</td> <td>z</td> </tr> <tr> <td>3</td> <td>a</td> </tr> </tbody> </table> </div> <p>The mapping condition is {'...
[ { "answer_id": 74487275, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 2, "selected": true, "text": "cond = {'x' : 1, 'z' : 2, 'ELSE' : 0}\n\ndf['map'] = (df['letter']\n .str.split(',').explode()\n .map(lambda x: cond...
2022/11/18
[ "https://Stackoverflow.com/questions/74487208", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10428889/" ]
74,487,250
<p>Our automated scripts have been installing this package for sometime without any issues. We also had this problem last week with the azcopy package (same error) - it was failing for around 4 days and then miraculously started working again. Is anyone else experiencing this?</p> <p>Installing the package using: <code...
[ { "answer_id": 74487275, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 2, "selected": true, "text": "cond = {'x' : 1, 'z' : 2, 'ELSE' : 0}\n\ndf['map'] = (df['letter']\n .str.split(',').explode()\n .map(lambda x: cond...
2022/11/18
[ "https://Stackoverflow.com/questions/74487250", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5515824/" ]
74,487,262
<p>Let's say I have a file called <code>File1.txt</code> that has the string</p> <pre><code>Hamburger </code></pre> <p>And I have another file called <code>File2.txt</code> that has the string:</p> <pre><code>I love Pizza </code></pre> <p>I want to use the <code>sed</code> command to make changes such that it copies al...
[ { "answer_id": 74487865, "author": "sorpigal", "author_id": 180736, "author_profile": "https://Stackoverflow.com/users/180736", "pm_score": 1, "selected": false, "text": "github-actions envsubst File2.txt I love $Pizza\n export Pizza=$(<File1.txt)\nenvsubst '$Pizza' < File2.txt\n $Pizza"...
2022/11/18
[ "https://Stackoverflow.com/questions/74487262", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19979471/" ]
74,487,302
<p>I'm trying to solve the Leetcode's Two Sum problem (<a href="https://leetcode.com/problems/two-sum/" rel="nofollow noreferrer">https://leetcode.com/problems/two-sum/</a>) and my code runs well on small lists,</p> <p>but the website outputs me 'time limit exceeded' when trying this list and target (<a href="https://l...
[ { "answer_id": 74487517, "author": "Nineteendo", "author_id": 13454049, "author_profile": "https://Stackoverflow.com/users/13454049", "pm_score": 0, "selected": false, "text": "from datetime import datetime\nstart = datetime.now()\nnums = list(range(1,10_000 + 1))\ntarget = 19_999\nx = 0...
2022/11/18
[ "https://Stackoverflow.com/questions/74487302", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20310521/" ]
74,487,324
<p>I have a list of random objects generated from a Model (querySet). I intend to create a separate list of objects using some but not all of the values of the objects from the original list.</p> <p>For instance,</p> <pre class="lang-py prettyprint-override"><code>people = [ {'name': 'John', 'age': 20, 'location': ...
[ { "answer_id": 74487365, "author": "Runinho", "author_id": 18724786, "author_profile": "https://Stackoverflow.com/users/18724786", "pm_score": 1, "selected": true, "text": "my_own_list = []\n\nfor person in people:\n my_obj = {}\n my_obj['your_name'] = person['name']\n my_obj['y...
2022/11/18
[ "https://Stackoverflow.com/questions/74487324", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18823056/" ]
74,487,361
<p>Execution time of this code is too long.</p> <pre><code>df.rolling(window=255).apply(myFunc) </code></pre> <p>My dataframes shape is (500, 10000).</p> <pre><code> 0 1 ... 9999 2021-11-01 0.011111 0.054242 2021-11-04 0.025244 0.003653 2021-11-05 0.524521 0.099521 2021-11-06 0.05424...
[ { "answer_id": 74487365, "author": "Runinho", "author_id": 18724786, "author_profile": "https://Stackoverflow.com/users/18724786", "pm_score": 1, "selected": true, "text": "my_own_list = []\n\nfor person in people:\n my_obj = {}\n my_obj['your_name'] = person['name']\n my_obj['y...
2022/11/18
[ "https://Stackoverflow.com/questions/74487361", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15453459/" ]
74,487,384
<p>I have 5 inputs and 5 buttons. I have two problems</p> <ol> <li>First, I want only one input to appear when a button is clicked.But with the code I wrote, all inputs appear together</li> <li>The second thing is that, when each button is clicked, the value inside the button, which is a number here, will be displayed ...
[ { "answer_id": 74487581, "author": "pier farrugia", "author_id": 19996700, "author_profile": "https://Stackoverflow.com/users/19996700", "pm_score": 0, "selected": false, "text": "document.querySelectorAll(\".myButton\").forEach(function(buttonSelected, id) {\n buttonSelected.addEventLi...
2022/11/18
[ "https://Stackoverflow.com/questions/74487384", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15034898/" ]
74,487,390
<pre><code>public class Inputs { public string firstname { get; set; } public string lastname { get; set; } } public class Data { public class D1 : Inputs { } public class D2 : Inputs { } public class D3 : Inputs { } } Data.D1 d1 = new Data.D1(); d1.firstname = &quot;first&quot;; Data.D2 d2 = new...
[ { "answer_id": 74487581, "author": "pier farrugia", "author_id": 19996700, "author_profile": "https://Stackoverflow.com/users/19996700", "pm_score": 0, "selected": false, "text": "document.querySelectorAll(\".myButton\").forEach(function(buttonSelected, id) {\n buttonSelected.addEventLi...
2022/11/18
[ "https://Stackoverflow.com/questions/74487390", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19867742/" ]
74,487,395
<p>I have a json data and I wanted to know how I can access the values using fetch api so that I can print it on the screen. the json data from jsonplaceholder <a href="https://i.stack.imgur.com/YrkEP.png" rel="nofollow noreferrer"></a>. the page I want it to be displayed</p> <p><a href="https://i.stack.imgur.com/CwdpE...
[ { "answer_id": 74487581, "author": "pier farrugia", "author_id": 19996700, "author_profile": "https://Stackoverflow.com/users/19996700", "pm_score": 0, "selected": false, "text": "document.querySelectorAll(\".myButton\").forEach(function(buttonSelected, id) {\n buttonSelected.addEventLi...
2022/11/18
[ "https://Stackoverflow.com/questions/74487395", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20526756/" ]
74,487,404
<p>I'm trying to fill a column down with a specific value. I stupidly used the xlDown function, which crashed Excel. I want the cells of column B to be filled <em>only</em> as long as the cells in column A aren't empty.</p> <p>My idea at the moment is to declare a variable and initialize it with the value of the length...
[ { "answer_id": 74487530, "author": "kasjer", "author_id": 7910019, "author_profile": "https://Stackoverflow.com/users/7910019", "pm_score": 1, "selected": false, "text": "for i = firstrow to lastrow\n if cells(i, yourColumn).value2 <> vbnullstring then\n cells(i, yourColumn+1).value...
2022/11/18
[ "https://Stackoverflow.com/questions/74487404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20197062/" ]
74,487,421
<p>I want to manipulate the data after receiving it from the server in Datatable. Data comes from the web server. But the response data from server is encoded. To decode the data I need to call another asynchronous function (here decodeData() ). I tried to call async funtion in dataSrc section like following example bu...
[ { "answer_id": 74487448, "author": "Muhammed YILMAZ", "author_id": 19262548, "author_profile": "https://Stackoverflow.com/users/19262548", "pm_score": 0, "selected": false, "text": "$(document).ready(function () {\n $('#example').DataTable({\n processing: true,\n serverS...
2022/11/18
[ "https://Stackoverflow.com/questions/74487421", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5174791/" ]
74,487,433
<p>I don't know why my back arrow on the toolbar does nothing, can anybody help me?</p> <p>I leave here the onCreate of the activity, the adapter and the xml Im using recyclerView with constraint layout</p> <p>here is the code of the Activity &quot;onCreate&quot; class:</p> <pre><code>@Override override fun onCreate(sa...
[ { "answer_id": 74487448, "author": "Muhammed YILMAZ", "author_id": 19262548, "author_profile": "https://Stackoverflow.com/users/19262548", "pm_score": 0, "selected": false, "text": "$(document).ready(function () {\n $('#example').DataTable({\n processing: true,\n serverS...
2022/11/18
[ "https://Stackoverflow.com/questions/74487433", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20289804/" ]
74,487,480
<p>I'm fairly new to spring boot and Java, I've been working on a REST API using springboot for an ecommerce project but for some reason I can't get the products from the database, my products are getting saved to the database but whenever I fetch them the fields show up as null values.<a href="https://i.stack.imgur.co...
[ { "answer_id": 74487448, "author": "Muhammed YILMAZ", "author_id": 19262548, "author_profile": "https://Stackoverflow.com/users/19262548", "pm_score": 0, "selected": false, "text": "$(document).ready(function () {\n $('#example').DataTable({\n processing: true,\n serverS...
2022/11/18
[ "https://Stackoverflow.com/questions/74487480", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20537761/" ]
74,487,485
<p>Here is a sample of the data</p> <pre><code> df&lt;-read.table (text=&quot; A1.1 A1.2 A1.3 A1.4 A1.5 3 3 4 3 1 0 4 1 2 4 4 1 0 4 3 1 2 3 3 3 4 4 3 3 3 1 3 0 1 4 0 1 3 0 0 1 1 0 0 1 &quot;, header=TRUE) </...
[ { "answer_id": 74487588, "author": "user2974951", "author_id": 2974951, "author_profile": "https://Stackoverflow.com/users/2974951", "pm_score": 2, "selected": true, "text": "df2=data.frame(table(unlist(df)))\ndf2$Percent=df2$Freq/sum(df2$Freq)*100\n\n Var1 Freq Percent\n1 0 8 ...
2022/11/18
[ "https://Stackoverflow.com/questions/74487485", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13095591/" ]
74,487,493
<p>I'm trying to rotate a texture inside vertex shader. I have a pointer to a texture that, for my purpose, is rotated counterclockwise by 90 degrees. I <strong>don't want</strong> to manually rotate the texture before calling <code>glTexImage2D()</code>.</p> <p>I can use <code>#version 120</code> only.</p> <p>This is ...
[ { "answer_id": 74487636, "author": "Rabbid76", "author_id": 5577765, "author_profile": "https://Stackoverflow.com/users/5577765", "pm_score": 3, "selected": true, "text": "A = (cos(w), -sin(w), 0,\n sin(w), cos(w), 0,\n 0, 0, 1 );\n mat3 A = mat3(cos(w), -sin(w), 0.0,\n ...
2022/11/18
[ "https://Stackoverflow.com/questions/74487493", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7556145/" ]
74,487,528
<p>I want to make the sidenavigation modul to close when i click the linkes inside the sidenav, the links works but it does not close the modul</p> <p>index.html</p> <pre><code> &lt;!-- side navbar --&gt; &lt;div class=&quot;sidenav&quot; id=&quot;sidenav&quot;&gt; &lt;span class=&quot;cancel-btn&quot; id=&quot;ca...
[ { "answer_id": 74487636, "author": "Rabbid76", "author_id": 5577765, "author_profile": "https://Stackoverflow.com/users/5577765", "pm_score": 3, "selected": true, "text": "A = (cos(w), -sin(w), 0,\n sin(w), cos(w), 0,\n 0, 0, 1 );\n mat3 A = mat3(cos(w), -sin(w), 0.0,\n ...
2022/11/18
[ "https://Stackoverflow.com/questions/74487528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16449134/" ]
74,487,534
<p>I want to create a procedure show if a given number prime</p> <p>what i have tried so far :</p> <pre class="lang-py prettyprint-override"><code>def premier(a): isPrimary=False for i in range(2,a//2): if(a%i==0): isPrimary=True break if(isPrimary==True): print(a,'es...
[ { "answer_id": 74487574, "author": "Chris", "author_id": 14408656, "author_profile": "https://Stackoverflow.com/users/14408656", "pm_score": 0, "selected": false, "text": "def is_prime(n):\n for i in range(2,n):\n if (n % i) == 0:\n return False\n return True\n" }, { "a...
2022/11/18
[ "https://Stackoverflow.com/questions/74487534", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20522314/" ]
74,487,544
<p>I'm receiving data from a server in the form of an array, which I'm storing in a variable; the data is arriving every 5 seconds, so I need to store every array that comes through the server into an array.</p> <p>So the array looks like this:</p> <p><a href="https://i.stack.imgur.com/zM1Fd.png" rel="nofollow noreferr...
[ { "answer_id": 74487678, "author": "Ademir Šehić", "author_id": 13893004, "author_profile": "https://Stackoverflow.com/users/13893004", "pm_score": 0, "selected": false, "text": "let array = [];\n\nfor (let i = 0; i < 5; i++) {\n array = [...array, [1,2,3,4,5]];\n}\nconsole.log(array);"...
2022/11/18
[ "https://Stackoverflow.com/questions/74487544", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19844902/" ]
74,487,557
<p>Hi im a programming student and im trying to build a login/register page. and ive written a custom hook to get data of the user/ post data to login or register. and my problem is that react only accepts custom hooks inside react components or other custom hooks and i want to post the login/register on button click. ...
[ { "answer_id": 74487678, "author": "Ademir Šehić", "author_id": 13893004, "author_profile": "https://Stackoverflow.com/users/13893004", "pm_score": 0, "selected": false, "text": "let array = [];\n\nfor (let i = 0; i < 5; i++) {\n array = [...array, [1,2,3,4,5]];\n}\nconsole.log(array);"...
2022/11/18
[ "https://Stackoverflow.com/questions/74487557", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18678710/" ]
74,487,572
<p>Say that I have the following lists</p> <pre><code>L = [(&quot;a0&quot;,&quot;a1&quot;),(&quot;b0&quot;,),(&quot;b1&quot;,&quot;a1&quot;,&quot;b0&quot;),(&quot;a0&quot;,&quot;a1&quot;),(&quot;b0&quot;,)] M = [&quot;u0&quot;, &quot;u1&quot;, &quot;u2&quot;, &quot;u3&quot;, &quot;u4&quot;, &quot;u5&quot;, &quot;u6&quo...
[ { "answer_id": 74487626, "author": "gog", "author_id": 3494774, "author_profile": "https://Stackoverflow.com/users/3494774", "pm_score": 3, "selected": false, "text": "it = iter(M)\n res = [tuple(itertools.islice(it, len(t))) for t in L]\n" }, { "answer_id": 74487641, "author...
2022/11/18
[ "https://Stackoverflow.com/questions/74487572", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2562058/" ]
74,487,599
<p>I want one of my several SELECT statements to not print the column headers, just the selected records. Is this possible in Cassandra 3.0?</p> <p>I tried the below but it returns the column name:</p> <pre><code>cqlsh -e &quot;select count(1) from system_schema.keyspaces where keyspace_name='test'&quot;; count ------...
[ { "answer_id": 74487626, "author": "gog", "author_id": 3494774, "author_profile": "https://Stackoverflow.com/users/3494774", "pm_score": 3, "selected": false, "text": "it = iter(M)\n res = [tuple(itertools.islice(it, len(t))) for t in L]\n" }, { "answer_id": 74487641, "author...
2022/11/18
[ "https://Stackoverflow.com/questions/74487599", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6868255/" ]
74,487,627
<p>I have a dataframe like as shown below</p> <pre><code>customer_id revenue_m7 revenue_m8 revenue_m9 revenue_m10 1 1234 1231 1256 1239 2 5678 3425 3255 2345 </code></pre> <p>I would like to do the below</p> <p>a) get avera...
[ { "answer_id": 74487656, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 3, "selected": true, "text": "filter # keep only the \"revenue_\" columns\ndf2 = df.filter(like='revenue_')\n# or\n# df2 = df.filter(regex=r'reven...
2022/11/18
[ "https://Stackoverflow.com/questions/74487627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10829044/" ]
74,487,650
<pre><code>double S = 0; double *pSum = &amp;S; double P = 0; double *pAverage = &amp;P; printf(&quot;The average and sum of the variables: %lf %lf&quot;, &amp;S, &amp;P); </code></pre> <p>I'm working with pointers and functions but for some reason I can't understand why I'm getting 2 warning specifi...
[ { "answer_id": 74487688, "author": "Some programmer dude", "author_id": 440558, "author_profile": "https://Stackoverflow.com/users/440558", "pm_score": 2, "selected": false, "text": "scanf printf & printf(\"The average and sum of the variables: %lf %lf\", S, P);\n" }, { "answer_i...
2022/11/18
[ "https://Stackoverflow.com/questions/74487650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20276643/" ]
74,487,654
<p>I have a dialogue component in which I have created a ref, but I also want to pass the ref from the parent to it. How can I do this?</p> <pre><code>import { forwardRef } from &quot;react&quot;; export const PopOver = ({ show = false, ... }, ref) =&gt; { const thisRef = useRef(null); // dealing with UI cha...
[ { "answer_id": 74487693, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 0, "selected": false, "text": "useEffect const otherRef = useRef(null);\nconst thisRef = useRef(null);\n\nuseEffect(() => {\n otherRef.cu...
2022/11/18
[ "https://Stackoverflow.com/questions/74487654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12609736/" ]
74,487,664
<p>I have some strange error in my SPM.</p> <p><strong>Code example:</strong></p> <pre class="lang-swift prettyprint-override"><code>import SwiftUI struct ExampleView: View { var body: some View { Text(&quot;Stub&quot;) } } </code></pre> <p><strong>Error:</strong></p> <blockquote> <p>'some' return types ...
[ { "answer_id": 74487693, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 0, "selected": false, "text": "useEffect const otherRef = useRef(null);\nconst thisRef = useRef(null);\n\nuseEffect(() => {\n otherRef.cu...
2022/11/18
[ "https://Stackoverflow.com/questions/74487664", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6465611/" ]
74,487,673
<p>I want to match a pattern that starts with $ and ends with either dot(.) or double quote(&quot;). I tried with this</p> <pre><code>re.findall(r&quot;\$(.+?)\.&quot;,query1) </code></pre> <p>Above works for starting with $ and ending with . How to add OR in ending characters so that it matches with pattern ending ei...
[ { "answer_id": 74487693, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 0, "selected": false, "text": "useEffect const otherRef = useRef(null);\nconst thisRef = useRef(null);\n\nuseEffect(() => {\n otherRef.cu...
2022/11/18
[ "https://Stackoverflow.com/questions/74487673", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11577186/" ]
74,487,691
<p>I'm looking for the right sql query to do the following operation: I need to display all record for today and for each make sum of price field for the curent user and date &lt; today</p> <p>Table Commandes: (today = 11/18/2022)</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>ID</th> <th>...
[ { "answer_id": 74488045, "author": "Akina", "author_id": 10138734, "author_profile": "https://Stackoverflow.com/users/10138734", "pm_score": -1, "selected": false, "text": "SELECT username, \n `date`,\n MAX(CASE WHEN `date` = CURRENT_DATE THEN price END) price,\n SUM(CA...
2022/11/18
[ "https://Stackoverflow.com/questions/74487691", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20476202/" ]
74,487,694
<p>let's see I have an array like <code>let filterData= [[1,2,3],[x,y],[z,10]]</code> Have to make it in single line or in single array as an output: <code>this.filterData= [ 1,2,3,x,y,z,10];</code>how can I achieve this in Javascript or typescript language.</p> <p>anyone have a solution of it..please suggest</p> <pre>...
[ { "answer_id": 74487753, "author": "flyingfox", "author_id": 3176419, "author_profile": "https://Stackoverflow.com/users/3176419", "pm_score": 2, "selected": false, "text": "Array.flat() let filterData= [[1,2,3],['x','y'],['z',10]]\nfilterData = filterData.flat()\nconsole.log(filterData)...
2022/11/18
[ "https://Stackoverflow.com/questions/74487694", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15070647/" ]
74,487,735
<p>I'm trying to create a Flexbox grid where the images have the same height and the margin(gutter) adjusts itself depending on the size of the image.</p> <p>I have tried to set the images to a certain height, but when text is added, the text does not break according to the width of the image.</p> <p><a href="https://w...
[ { "answer_id": 74487891, "author": "George Chond", "author_id": 17730652, "author_profile": "https://Stackoverflow.com/users/17730652", "pm_score": 0, "selected": false, "text": ".collection-item-28 {\n margin-bottom: 14px; /* Adjust this to your liking */\n}\n.text-block-19{\n positio...
2022/11/18
[ "https://Stackoverflow.com/questions/74487735", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11480879/" ]
74,487,746
<p>I deployed kubernetes cluster in <code>minikube</code> which has one master node and one worker node. When I tried to see the kube-proxy with:</p> <pre><code>kubectl get pods -n kube-system </code></pre> <p>two kube-proxies apear</p> <pre><code>kube-proxy-6jxgq kube-proxy-sq58d </code></pre> <p>Acc...
[ { "answer_id": 74487891, "author": "George Chond", "author_id": 17730652, "author_profile": "https://Stackoverflow.com/users/17730652", "pm_score": 0, "selected": false, "text": ".collection-item-28 {\n margin-bottom: 14px; /* Adjust this to your liking */\n}\n.text-block-19{\n positio...
2022/11/18
[ "https://Stackoverflow.com/questions/74487746", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19664050/" ]
74,487,748
<p>In TypeScript, I have arrays of objects like this</p> <pre><code>const props1 = [ { propName: 'id', propValue: 1 }, { propName: 'name', propValue: 'John' }, { propName: 'age', propValue: 30 } ]; const props2 = [ { propName: 'id', propValue: 2 }, { propName: 'role', propValue: 'admin' } ]; const props3 = ...
[ { "answer_id": 74487891, "author": "George Chond", "author_id": 17730652, "author_profile": "https://Stackoverflow.com/users/17730652", "pm_score": 0, "selected": false, "text": ".collection-item-28 {\n margin-bottom: 14px; /* Adjust this to your liking */\n}\n.text-block-19{\n positio...
2022/11/18
[ "https://Stackoverflow.com/questions/74487748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1274894/" ]
74,487,759
<p>I am trying to uppercase strings that match a regular expression.</p> <p>I tried:</p> <pre><code>SELECT REGEXP_REPLACE( 'I am testing this string', '(testing|string)', UPPER('\\1') ); </code></pre> <p>which does not work, my guess is because the upper is applied to '\1' before it is actually turned into the...
[ { "answer_id": 74488354, "author": "Samuel", "author_id": 16529576, "author_profile": "https://Stackoverflow.com/users/16529576", "pm_score": 0, "selected": false, "text": "replace(replace(\"word for text \",\"word\",\"WORD\"),\"text,\"TEXT) * REGEXP_REPLACE * * X offset X UPPER string_a...
2022/11/18
[ "https://Stackoverflow.com/questions/74487759", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8007872/" ]
74,487,766
<p>I want to run an external script (demo_print.py) and print the output in real-time in a text widget.</p> <p>I got error:</p> <p>What's my mistake and how to reach my goal ? You can suggest more simple solution if you have.</p> <pre class="lang-py prettyprint-override"><code>Exception in thread Thread-1: Traceback (m...
[ { "answer_id": 74488354, "author": "Samuel", "author_id": 16529576, "author_profile": "https://Stackoverflow.com/users/16529576", "pm_score": 0, "selected": false, "text": "replace(replace(\"word for text \",\"word\",\"WORD\"),\"text,\"TEXT) * REGEXP_REPLACE * * X offset X UPPER string_a...
2022/11/18
[ "https://Stackoverflow.com/questions/74487766", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20538203/" ]
74,487,779
<p>script.sh</p> <blockquote> </blockquote> <pre><code>#!/bin/sh dbt run --select $model_tag --profiles-dir . </code></pre> <p>Want to run this shell script that takes the Variable model_tag from my .go file</p> <p>invoke.go</p> <blockquote> </blockquote> <pre><code>package main import ( &quot;fmt&quot; &quot;...
[ { "answer_id": 74487842, "author": "Matteo", "author_id": 2270041, "author_profile": "https://Stackoverflow.com/users/2270041", "pm_score": 0, "selected": false, "text": " cmd := exec.CommandContext(r.Context(), \"/bin/sh\",fmt.Sprintf(\"model_tag=%s script.sh\",mt))\n\n" }, { ...
2022/11/18
[ "https://Stackoverflow.com/questions/74487779", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19329929/" ]
74,487,852
<p>A function takes one string argument and outputs a string.</p> <p>It should remove all vowels from the supplied string if the string contains mostly vowels, otherwise return the supplied string without modification.</p> <p>Specification:</p> <ul> <li>A string is considered to contain mostly vowels if it has more vow...
[ { "answer_id": 74488067, "author": "Smytt", "author_id": 8263781, "author_profile": "https://Stackoverflow.com/users/8263781", "pm_score": 3, "selected": true, "text": "const maybeDisemvowel = (originalString) => {\n const onlyConsonants = originalString.replace(/[^bcdfghjklmnpqrstvwxys...
2022/11/18
[ "https://Stackoverflow.com/questions/74487852", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,487,881
<p>I am using a batch file to rename all files in a folder into a numbered list. The code I use is as follow:</p> <pre><code>set /a Index=1 setlocal enabledelayedexpansion for /f &quot;tokens=*&quot; %%f in ('dir /b') do ( echo %%f echo !Index! rename &quot;%%f&quot; &quot;!Index!.*&quot; set /a Index+=1 pause ) </co...
[ { "answer_id": 74488656, "author": "faragona", "author_id": 5694941, "author_profile": "https://Stackoverflow.com/users/5694941", "pm_score": 3, "selected": true, "text": "[HKEY_CURRENT_USER\\Software\\Microsoft\\Command Processor]\n\"Autorun\"=\"@chcp 65001>nul & prompt $d$s$s$t$_$p$g &...
2022/11/18
[ "https://Stackoverflow.com/questions/74487881", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5694941/" ]
74,487,889
<p>Say I have a web application with <code>UserController</code>. Client sends a HTTP POST request that is about to be handled by the controller. That however first must parse the provided json to <code>UserDTO</code>. For this reason there exist a <code>UserDTOConverter</code> with a method <code>toDTO(json): User</co...
[ { "answer_id": 74488656, "author": "faragona", "author_id": 5694941, "author_profile": "https://Stackoverflow.com/users/5694941", "pm_score": 3, "selected": true, "text": "[HKEY_CURRENT_USER\\Software\\Microsoft\\Command Processor]\n\"Autorun\"=\"@chcp 65001>nul & prompt $d$s$s$t$_$p$g &...
2022/11/18
[ "https://Stackoverflow.com/questions/74487889", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20002375/" ]
74,487,910
<p>I am new to python, apologies if I do not explain well or provide partial solutions yet...</p> <p>I have a dataframe as below: a key, some dates (distributed in rows), and many other columns (same key, same value)</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Key</th> <th>Date 1</th> <...
[ { "answer_id": 74488656, "author": "faragona", "author_id": 5694941, "author_profile": "https://Stackoverflow.com/users/5694941", "pm_score": 3, "selected": true, "text": "[HKEY_CURRENT_USER\\Software\\Microsoft\\Command Processor]\n\"Autorun\"=\"@chcp 65001>nul & prompt $d$s$s$t$_$p$g &...
2022/11/18
[ "https://Stackoverflow.com/questions/74487910", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20538245/" ]
74,487,943
<p>I have a project that I developed with EF Core and react. What I want is to be able to give the second person an &quot;updated before&quot; error if two different users open the screen at the same time and update the same data at different times. But when I apply it as in the pictures, it does not catch any errors a...
[ { "answer_id": 74488656, "author": "faragona", "author_id": 5694941, "author_profile": "https://Stackoverflow.com/users/5694941", "pm_score": 3, "selected": true, "text": "[HKEY_CURRENT_USER\\Software\\Microsoft\\Command Processor]\n\"Autorun\"=\"@chcp 65001>nul & prompt $d$s$s$t$_$p$g &...
2022/11/18
[ "https://Stackoverflow.com/questions/74487943", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20538410/" ]
74,487,970
<p>I am very new to C++ programming. I want to insert elements of type enum into a <code>vector&lt;uint8_t&gt;</code> ? ie append all elements of <code>std::vector &lt;ValType&gt; call</code> to <code>std::vector&lt;uint8_t&gt; bravo</code> .Is there any way to do so?</p> <pre><code>#include &lt;stdio.h&gt; #includ...
[ { "answer_id": 74488123, "author": "Some programmer dude", "author_id": 440558, "author_profile": "https://Stackoverflow.com/users/440558", "pm_score": 1, "selected": false, "text": "static_cast ValType ValType uint8_t static_cast std::transform" }, { "answer_id": 74488224, "...
2022/11/18
[ "https://Stackoverflow.com/questions/74487970", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20483318/" ]
74,487,980
<p>in my code, i don't understand why zero doesn't print i did all possible solutions that I know but it doesn't print zero.</p> <pre><code>#include &lt;iostream&gt; using namespace std; int main(){ int digits; int numberOne = 0; int integer; cout&lt;&lt;&quot;Enter the number: &quot;; cin&gt...
[ { "answer_id": 74488123, "author": "Some programmer dude", "author_id": 440558, "author_profile": "https://Stackoverflow.com/users/440558", "pm_score": 1, "selected": false, "text": "static_cast ValType ValType uint8_t static_cast std::transform" }, { "answer_id": 74488224, "...
2022/11/18
[ "https://Stackoverflow.com/questions/74487980", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20538431/" ]
74,488,013
<p>I'm Using Junit in Spring Boot, along with <a href="https://www.testcontainers.org/" rel="nofollow noreferrer">TestContainers</a> (Docker, MySQL 8.0.29) to develop integration tests.</p> <p>When I execute my tests individually, they all succeed. However when I run them all at once (i.e. in CI/CD), they fail. This is...
[ { "answer_id": 74488063, "author": "Simon Martinelli", "author_id": 1045142, "author_profile": "https://Stackoverflow.com/users/1045142", "pm_score": 2, "selected": false, "text": "@Transactional" }, { "answer_id": 74488237, "author": "Nathan Mittelette", "author_id": 142...
2022/11/18
[ "https://Stackoverflow.com/questions/74488013", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10148986/" ]
74,488,038
<p>I was writing some code and realized this might be a reasonably common operation. I also realized I don't know a clean way to do it.</p> <p>The questions is: Get the top 5 entries in column1, sorted by column2, within groups given by column3.</p> <p>If I had to intuit how this would be writen in Polars it'd be:</p> ...
[ { "answer_id": 74499120, "author": "jvz", "author_id": 5504925, "author_profile": "https://Stackoverflow.com/users/5504925", "pm_score": 2, "selected": true, "text": "df_agg df_agg = df.groupby(['storeId','customerId']).agg(pl.col('saleValue').sum().alias('totalSales'))\n df_agg.groupby(...
2022/11/18
[ "https://Stackoverflow.com/questions/74488038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17194313/" ]
74,488,046
<p>I am stumbling into an issue with a regex search in python</p> <p>So I have:</p> <pre class="lang-py prettyprint-override"><code>testVariable = re.findall(r'functest(.*?)1', 'functest exampleOne [2] functest exampleTwo [1] functest exampleOne throw [2] functest exampleThree [1]') </code></pre> <p>Current Output is:<...
[ { "answer_id": 74488191, "author": "The fourth bird", "author_id": 5424988, "author_profile": "https://Stackoverflow.com/users/5424988", "pm_score": 2, "selected": true, "text": "\\bfunctest\\b\\s*(\\D*)[13]\\b\n \\bfunctest\\b\\s* (\\D*) [13] \\b \\bfunctest\\b\\s*([^][]*\\[)[13]]\n imp...
2022/11/18
[ "https://Stackoverflow.com/questions/74488046", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13053168/" ]
74,488,051
<p>Currently I load multiple parquet file with this code :</p> <pre><code>df = spark.read.parquet(&quot;/mnt/dev/bronze/Voucher/*/*&quot;) </code></pre> <p>(Into the Voucher folder, there is one folder by date, and one parquet file inside it)</p> <p>How can I add the creation date of each parquet file into my DataFrame...
[ { "answer_id": 74639432, "author": "Saideep Arikontham", "author_id": 18844585, "author_profile": "https://Stackoverflow.com/users/18844585", "pm_score": 2, "selected": true, "text": "os.stat st_mtime st_ctime os.stat from pyspark.sql.functions import lit\nimport pandas as pd\npath = \"/...
2022/11/18
[ "https://Stackoverflow.com/questions/74488051", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6565296/" ]
74,488,079
<p>i am working on project which contains more than 200 input fields for list.is it possible to manage them with single state input</p> <pre><code>import { useState } from &quot;react&quot;; import Item from &quot;../Components/Item&quot;; const initialState={ input:'' } const List = () =&gt; { const [values,setV...
[ { "answer_id": 74488190, "author": "Ali Sattarzadeh", "author_id": 11434567, "author_profile": "https://Stackoverflow.com/users/11434567", "pm_score": 2, "selected": true, "text": " <Item\n name=\"input\"\n price=\"50\"\n value={values}\n handleChange={handleC...
2022/11/18
[ "https://Stackoverflow.com/questions/74488079", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20507696/" ]
74,488,096
<p>I'm trying to trigger an update when a <code>list</code> in my <code>map</code> changes. Type is <code>Map&lt;String, List&lt;int&gt;&gt;</code>. Basically one of the integers is changing in the list but not triggering the blocbuilder. Although when I print the state the value is updated. I'm using freezed. From wha...
[ { "answer_id": 74488190, "author": "Ali Sattarzadeh", "author_id": 11434567, "author_profile": "https://Stackoverflow.com/users/11434567", "pm_score": 2, "selected": true, "text": " <Item\n name=\"input\"\n price=\"50\"\n value={values}\n handleChange={handleC...
2022/11/18
[ "https://Stackoverflow.com/questions/74488096", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2387962/" ]
74,488,142
<p>I m building a car simulator game using Unity. For the input I m using Logitheck steering wheel G29. Now I need to use Hand Controller to accelerate or break. This is my Hand Controller Hand Controller HC1 <a href="https://www.3drap.it/product/hand-controller-throttle-and-brake-gaming-is-possible/" rel="nofollow nor...
[ { "answer_id": 74528293, "author": "Jabbar", "author_id": 16930239, "author_profile": "https://Stackoverflow.com/users/16930239", "pm_score": 2, "selected": false, "text": "joystick 1 button 0, joystick 1 button 1, joystick 2 button 0… joystick button 0, joystick button 1, joystick but...
2022/11/18
[ "https://Stackoverflow.com/questions/74488142", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2405663/" ]
74,488,160
<p>I have a TEXT file with 4 fields and 3rd field is JSON string which I want to extract and create a separate column in dataframe.</p> <pre><code>pk,line,json,date DBG,CDL,{&quot;line&quot;:&quot;CDL&quot;,&quot;stn&quot;:&quot;DBG&quot;,&quot;latitude&quot;:&quot;12.298915&quot;,&quot;longitude&quot;:&quot;143.846263...
[ { "answer_id": 74528293, "author": "Jabbar", "author_id": 16930239, "author_profile": "https://Stackoverflow.com/users/16930239", "pm_score": 2, "selected": false, "text": "joystick 1 button 0, joystick 1 button 1, joystick 2 button 0… joystick button 0, joystick button 1, joystick but...
2022/11/18
[ "https://Stackoverflow.com/questions/74488160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4324123/" ]
74,488,166
<p>hello all I have a small issue I want to add a condition in the extension where it works like this: If you are on the home page, go to the relevant section But if we are on another page, such as the user page, then when I press any button in the navbar, it takes me to the home page.</p> <pre><code> &lt;nav id=&quo...
[ { "answer_id": 74528293, "author": "Jabbar", "author_id": 16930239, "author_profile": "https://Stackoverflow.com/users/16930239", "pm_score": 2, "selected": false, "text": "joystick 1 button 0, joystick 1 button 1, joystick 2 button 0… joystick button 0, joystick button 1, joystick but...
2022/11/18
[ "https://Stackoverflow.com/questions/74488166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19478880/" ]
74,488,175
<p>I am starting to learn C# design SOLID principles and design patterns. I just want to ask what could be the best design pattern to be used to refactor this particular code.</p> <pre><code>using InvoiceApp.Invoices; namespace InvoiceApp { internal class InvoiceProcessor { internal void Process(int cl...
[ { "answer_id": 74492257, "author": "StepUp", "author_id": 1646240, "author_profile": "https://Stackoverflow.com/users/1646240", "pm_score": 1, "selected": false, "text": "switch Dictionary<TKey, TValue> new public enum InvoiceType\n{\n SimpleInvoice, InvoiceWithHeader, InvoiceWithFoot...
2022/11/18
[ "https://Stackoverflow.com/questions/74488175", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20538516/" ]
74,488,216
<p>I have a table that logs calls and I'm trying to map the called numbers to the users answering them. To do this I need to display a table that shows me two seperate questions.</p> <p>I guess the relevant columns in the existing table are &quot;phone_number&quot; and &quot;user_email&quot;. Lets say we have around 40...
[ { "answer_id": 74492257, "author": "StepUp", "author_id": 1646240, "author_profile": "https://Stackoverflow.com/users/1646240", "pm_score": 1, "selected": false, "text": "switch Dictionary<TKey, TValue> new public enum InvoiceType\n{\n SimpleInvoice, InvoiceWithHeader, InvoiceWithFoot...
2022/11/18
[ "https://Stackoverflow.com/questions/74488216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20104248/" ]
74,488,246
<p>I have a project that is using <code>net6</code> as the target framework. I recently installed .net core 7 SDK on my PC. After that, when I use <code>dotnet watch run</code> I get a strange error:</p> <pre><code>Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, ...
[ { "answer_id": 74488505, "author": "Lajos Arpad", "author_id": 436560, "author_profile": "https://Stackoverflow.com/users/436560", "pm_score": 0, "selected": false, "text": "web.config <assemblies> <assemblies System.Runtime" } ]
2022/11/18
[ "https://Stackoverflow.com/questions/74488246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1730846/" ]
74,488,301
<p>I have found interesting behaviour of js extends, and do not understand the reasons of it<br /> in case of copy values right from another value, for some reasons value will be copied from parent</p> <pre><code>class parent { defaultValue = 1; value = this.defaultValue; } new parent() // {defaultValue: 1, value: ...
[ { "answer_id": 74491646, "author": "Yury Tarabanko", "author_id": 351705, "author_profile": "https://Stackoverflow.com/users/351705", "pm_score": 1, "selected": false, "text": "Child1 Parent1 defaultValue = 1 Child2 Child2.prototype defaultValue class Parent1 {\n defaultValue = 1;\n va...
2022/11/18
[ "https://Stackoverflow.com/questions/74488301", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17018048/" ]
74,488,311
<p>bonjour / hello</p> <p>First of all sorry for my very poor english, I'm french and I used google translator.</p> <p>I'm using an ansible playbook to run a bash script. In my test environment it works, but not in my production environment and I don't understand why.</p> <p>It's a script that allows to scan for violat...
[ { "answer_id": 74491646, "author": "Yury Tarabanko", "author_id": 351705, "author_profile": "https://Stackoverflow.com/users/351705", "pm_score": 1, "selected": false, "text": "Child1 Parent1 defaultValue = 1 Child2 Child2.prototype defaultValue class Parent1 {\n defaultValue = 1;\n va...
2022/11/18
[ "https://Stackoverflow.com/questions/74488311", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19125838/" ]
74,488,324
<p>I have some confusion about permission with using <code>PHPickerViewController</code> &amp; <code>UIImagePickerController</code>.</p> <p><strong>Do I have to request permission for using it ? (Currently, I open it without request permission but It's working.)</strong></p> <p><strong>Is it acceptable for upload to ap...
[ { "answer_id": 74491646, "author": "Yury Tarabanko", "author_id": 351705, "author_profile": "https://Stackoverflow.com/users/351705", "pm_score": 1, "selected": false, "text": "Child1 Parent1 defaultValue = 1 Child2 Child2.prototype defaultValue class Parent1 {\n defaultValue = 1;\n va...
2022/11/18
[ "https://Stackoverflow.com/questions/74488324", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14202114/" ]
74,488,333
<p>I am currently trying to write a Blazor component library to be used across different Blazor applications and I would like the ability to toggle whether there is security or not.</p> <p>So essentially to write a Blazor component that if you so choose, doesn't require authorization, but if you do require authorizatio...
[ { "answer_id": 74492744, "author": "MrC aka Shaun Curtis", "author_id": 13065781, "author_profile": "https://Stackoverflow.com/users/13065781", "pm_score": 1, "selected": false, "text": "AuthorizeView AuthorizeView public class UIAuthorizeButton : UIButton\n{\n [CascadingParameter] pu...
2022/11/18
[ "https://Stackoverflow.com/questions/74488333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/621059/" ]
74,488,338
<p>I have some problem and maybe I can give an example of two views below what I want to achieve.</p> <pre><code>class SomeViewOne(TemplateView): model = None template_name = 'app/template1.html' def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) # The downlo...
[ { "answer_id": 74488454, "author": "Manoj Tolagekar", "author_id": 17808039, "author_profile": "https://Stackoverflow.com/users/17808039", "pm_score": 0, "selected": false, "text": "<a href=\"{% url 'some-name-url' {{ x }} %}\" #Just removed single quotes from variable x.\n" }, { ...
2022/11/18
[ "https://Stackoverflow.com/questions/74488338", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17356459/" ]
74,488,345
<p>I'm trying to make an arduino UNO circuit that allows me to set the blinking duration of an LED with two pushbuttons, but I'm having trouble with the program. First of all, the default blinking duration is 0,5 s. And I want to program the first pushbutton to be able to extend the blinking duration by 0,1 seconds, wh...
[ { "answer_id": 74488454, "author": "Manoj Tolagekar", "author_id": 17808039, "author_profile": "https://Stackoverflow.com/users/17808039", "pm_score": 0, "selected": false, "text": "<a href=\"{% url 'some-name-url' {{ x }} %}\" #Just removed single quotes from variable x.\n" }, { ...
2022/11/18
[ "https://Stackoverflow.com/questions/74488345", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20538442/" ]
74,488,359
<p>I have a python script that sends emails with attachments using GMAIL's API. Each time(mostly after a day) I run the script, I get an error that the token's invalid.</p> <p>The only solution I have identified so far is to download the json file each time I run the script but I was expecting this to be done only once...
[ { "answer_id": 74488454, "author": "Manoj Tolagekar", "author_id": 17808039, "author_profile": "https://Stackoverflow.com/users/17808039", "pm_score": 0, "selected": false, "text": "<a href=\"{% url 'some-name-url' {{ x }} %}\" #Just removed single quotes from variable x.\n" }, { ...
2022/11/18
[ "https://Stackoverflow.com/questions/74488359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19971389/" ]
74,488,361
<p>This is the function I need to plot: <a href="https://i.stack.imgur.com/yRQHG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yRQHG.png" alt="function" /></a></p> <p>This is my code:</p> <pre class="lang-py prettyprint-override"><code>pi = np.pi sin = np.sin e = np.e x1 = np.linspace(-10*pi, -pi)...
[ { "answer_id": 74488480, "author": "Ahmed AEK", "author_id": 15649230, "author_profile": "https://Stackoverflow.com/users/15649230", "pm_score": 0, "selected": false, "text": "y2 = np.zeros_like(x2) y4 = np.zeros_like(x4)" }, { "answer_id": 74488573, "author": "Double_LA", ...
2022/11/18
[ "https://Stackoverflow.com/questions/74488361", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20538617/" ]
74,488,367
<p>On my website I've got a button which is clicked automatically by js with the loading of the website.</p> <pre><code>window.onload=function(){ document.getElementById(&quot;myBtn&quot;).click(); }; </code></pre> <p>The thing I don't know how to code is that I want the button only to be auto clicked at the first vi...
[ { "answer_id": 74488982, "author": "George Chond", "author_id": 17730652, "author_profile": "https://Stackoverflow.com/users/17730652", "pm_score": 1, "selected": true, "text": "// Initialize an object\nlet obj = {};\n\n// Trigger when DOM loads\nwindow.addEventListener('DOMContentLoaded...
2022/11/18
[ "https://Stackoverflow.com/questions/74488367", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20324342/" ]
74,488,379
<p>So I created a task handler. I want to have it run for some predetermined guaranteed amount of time, then I want to do some of my stuff, and only then do I need the result of the handler to be awaited. Something like:</p> <pre><code>var th = TaskCreator(); th.awaitFor(5000); //do some work var result = await th; </c...
[ { "answer_id": 74488418, "author": "ProgrammingLlama", "author_id": 3181933, "author_profile": "https://Stackoverflow.com/users/3181933", "pm_score": 4, "selected": true, "text": "WhenAny var th = TaskCreator();\nawait Task.WhenAny(Task.Delay(TimeSpan.FromSeconds(5)), th);\n//do some wor...
2022/11/18
[ "https://Stackoverflow.com/questions/74488379", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1973207/" ]
74,488,383
<p>I have a bash script <code>vault.sh</code></p> <pre><code>az login Source_Kv_Name=&quot;myKeyVault2020&quot; SECRETS+=($(az keyvault secret list --vault-name $Source_Kv_Name --query &quot;[].id&quot; -o tsv)) </code></pre> <p>If I run it as <code>bash vault.sh</code> it fails to connect to vault (authenticate)</p> <...
[ { "answer_id": 74488418, "author": "ProgrammingLlama", "author_id": 3181933, "author_profile": "https://Stackoverflow.com/users/3181933", "pm_score": 4, "selected": true, "text": "WhenAny var th = TaskCreator();\nawait Task.WhenAny(Task.Delay(TimeSpan.FromSeconds(5)), th);\n//do some wor...
2022/11/18
[ "https://Stackoverflow.com/questions/74488383", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6489386/" ]
74,488,391
<p>I found a strange behavior when using the ROUND function with the third parameter to truncate a float number:</p> <pre><code>declare @f2 float = 1.24; select round(@f2, 2, 1) </code></pre> <p>Outputs:</p> <pre><code>1.23 </code></pre> <p>I am fully aware of the approximately nature of floating point types, but it do...
[ { "answer_id": 74488645, "author": "Ineffable21", "author_id": 19733965, "author_profile": "https://Stackoverflow.com/users/19733965", "pm_score": 0, "selected": false, "text": "declare @f2 float = 1.24;\nselect round(@f2, 2)\n" }, { "answer_id": 74489619, "author": "Eric Pos...
2022/11/18
[ "https://Stackoverflow.com/questions/74488391", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9252578/" ]
74,488,433
<p>I want to call a function inside Wrap content. My requirement is to call this function before the wrap content is loaded.</p> <pre class="lang-dart prettyprint-override"><code> void checkFund(){} Wrap( children: entList .map((element) =&gt; Padding( padding: const EdgeInsets.only(left: 4.0,...
[ { "answer_id": 74489005, "author": "RobMac", "author_id": 13091054, "author_profile": "https://Stackoverflow.com/users/13091054", "pm_score": 0, "selected": false, "text": "... \nchild: _myFancyWidget(),\n... \nWidget _myFancyWidget() {\n checkFund();\n return Wrap( ... );\n}\n...\n...
2022/11/18
[ "https://Stackoverflow.com/questions/74488433", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11118094/" ]
74,488,452
<p>been trying for a while something i want to do:</p> <p>i have two different objects with same keyName and different values, i need to create a new array that will contain a new object with two entries, the values from the two objects with same key.</p> <pre><code>enter code here OBJ1{ keyNAME : 'lalala', toto: 'bbb...
[ { "answer_id": 74488603, "author": "titouanbou", "author_id": 9913759, "author_profile": "https://Stackoverflow.com/users/9913759", "pm_score": 0, "selected": false, "text": "OBJ3=[]\nObject.keys(OBJ1).forEach((key)=>OBJ3[OBJ1[key]]=OBJ2[key])\n" }, { "answer_id": 74488651, "...
2022/11/18
[ "https://Stackoverflow.com/questions/74488452", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15802715/" ]
74,488,465
<p>'Missing Expression' for Select Distinct Query <a href="https://i.stack.imgur.com/VtX6V.png" rel="nofollow noreferrer">the error sign</a></p> <pre><code>CREATE OR REPLACE FORCE EDITIONABLE VIEW &quot;KIR_V_KAS_MASUK_KET&quot; (&quot;...&quot;) as SELECT KMH.KODE_KAS, KA.NIS, KA.NAMA, KA.KELAS, KA.JURUSAN, ...
[ { "answer_id": 74488571, "author": "Littlefoot", "author_id": 9097906, "author_profile": "https://Stackoverflow.com/users/9097906", "pm_score": 2, "selected": false, "text": "create view ... as\nselect DISTINCT kmh.kode_kas, ... --> DISTINCT goes here\n (select periode from...
2022/11/18
[ "https://Stackoverflow.com/questions/74488465", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20429504/" ]
74,488,479
<p>I would like to split a tensor into several tensors with torch on Python. The tensor is the tokenization of a long text.</p> <p>First here is what I had done:</p> <pre><code>tensor = tensor([[ 3746, 3120, 1024, ..., 2655, 24051, 2015]]) #size 14714 result = tensor.split(510) </code></pre> <p>It works but now I...
[ { "answer_id": 74488571, "author": "Littlefoot", "author_id": 9097906, "author_profile": "https://Stackoverflow.com/users/9097906", "pm_score": 2, "selected": false, "text": "create view ... as\nselect DISTINCT kmh.kode_kas, ... --> DISTINCT goes here\n (select periode from...
2022/11/18
[ "https://Stackoverflow.com/questions/74488479", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14022403/" ]
74,488,521
<p>I have two unordered lists inside a div with a known class. I need to change the list items in the first list to spans with the class &quot;time&quot;. Next I would like to change the second list items to spans with the class &quot;frequency&quot;. Finally I would like to remove the <code>&lt;ul&gt;</code> tags leav...
[ { "answer_id": 74488628, "author": "S M Samnoon Abrar", "author_id": 8188682, "author_profile": "https://Stackoverflow.com/users/8188682", "pm_score": 3, "selected": true, "text": "$('#training-labels ul:nth-of-type(1) li').wrap('<span class=\"time\"/>').contents().unwrap();\n\n$('#train...
2022/11/18
[ "https://Stackoverflow.com/questions/74488521", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5444988/" ]
74,488,552
<p>in my project i am using cypress with plain javascript. i am facing the challenge of importing the modules (page objects) via aliases instead of spaghetti code like <code>../../../../folder/page.js</code>. I <strong>don't</strong> use <code>typescript</code> or <code>react.js</code> and <strong>don't</strong> have a...
[ { "answer_id": 74491050, "author": "Uzair Khan", "author_id": 17601619, "author_profile": "https://Stackoverflow.com/users/17601619", "pm_score": 0, "selected": false, "text": "webpack.config.js resolve.alias resolve: {\n alias: {\n '@page': path.resolve(__dirname, '{path you want t...
2022/11/18
[ "https://Stackoverflow.com/questions/74488552", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20206511/" ]
74,488,560
<p>When I write a Mojo, how can I determine whether I am currently in Batch Mode (i.e. the <code>-B</code> parameter was given on command line)?</p>
[ { "answer_id": 74488695, "author": "Mark Bramnik", "author_id": 605153, "author_profile": "https://Stackoverflow.com/users/605153", "pm_score": 1, "selected": false, "text": "generate /**\n * User settings used to check the interactiveMode.\n */\n @Parameter( property = \"in...
2022/11/18
[ "https://Stackoverflow.com/questions/74488560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/927493/" ]
74,488,562
<p>I want to check if items in array existed and add new values from another array without overwriting element after reloading. I created such code:</p> <pre><code>//take from that array List&lt;int&gt; list = [2, 3, 5]; // add to this array and check if this array already has the same element or not Li...
[ { "answer_id": 74488695, "author": "Mark Bramnik", "author_id": 605153, "author_profile": "https://Stackoverflow.com/users/605153", "pm_score": 1, "selected": false, "text": "generate /**\n * User settings used to check the interactiveMode.\n */\n @Parameter( property = \"in...
2022/11/18
[ "https://Stackoverflow.com/questions/74488562", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16357470/" ]
74,488,581
<p>I have the following function : `</p> <pre><code>def file(DOCname,TABLEid): directory = DOCname parent_dir = &quot;E:\\Tables\\Documents\\&quot;+TABLEid path = os.path.join(parent_dir, directory) try: os.makedirs(path, exist_ok = True) print(&quot;Directory '%s' created successfully&quot; % director...
[ { "answer_id": 74488695, "author": "Mark Bramnik", "author_id": 605153, "author_profile": "https://Stackoverflow.com/users/605153", "pm_score": 1, "selected": false, "text": "generate /**\n * User settings used to check the interactiveMode.\n */\n @Parameter( property = \"in...
2022/11/18
[ "https://Stackoverflow.com/questions/74488581", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20538757/" ]
74,488,587
<p>In latex, I need to start an item in an enumerate list with an align* environment, but this environment starts with a new line, leaving an ugly empty space.</p> <p>What I'm trying to achieve:</p> <ol> <li><p>e^{ix}=cos x+i sin x</p> <p>e^{i\pi} = -1</p> <p>e^{i\pi}+1=0</p> </li> </ol> <p>What I'm trying:</p> <pre><c...
[ { "answer_id": 74488695, "author": "Mark Bramnik", "author_id": 605153, "author_profile": "https://Stackoverflow.com/users/605153", "pm_score": 1, "selected": false, "text": "generate /**\n * User settings used to check the interactiveMode.\n */\n @Parameter( property = \"in...
2022/11/18
[ "https://Stackoverflow.com/questions/74488587", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4230918/" ]
74,488,607
<p>How do I convert an Enum to a Constant Class like this, in Typescript? Currently using React Typescript, with functional components . This question is slightly different: <a href="https://stackoverflow.com/questions/43100718/typescript-enum-to-object-array">TypeScript enum to object array</a></p> <pre><code>export e...
[ { "answer_id": 74488695, "author": "Mark Bramnik", "author_id": 605153, "author_profile": "https://Stackoverflow.com/users/605153", "pm_score": 1, "selected": false, "text": "generate /**\n * User settings used to check the interactiveMode.\n */\n @Parameter( property = \"in...
2022/11/18
[ "https://Stackoverflow.com/questions/74488607", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15435022/" ]
74,488,608
<p>As part of my build process I want to run a dotnet tool before the compile.</p> <p>I can add this section to my sdk project file:</p> <pre><code> &lt;ItemGroup&gt; &lt;PackageDownload Include=&quot;MyTool&quot; Version=&quot;[1.0.1]&quot; /&gt; &lt;/ItemGroup&gt; </code></pre> <p>Then the tool is downloaded a...
[ { "answer_id": 74488695, "author": "Mark Bramnik", "author_id": 605153, "author_profile": "https://Stackoverflow.com/users/605153", "pm_score": 1, "selected": false, "text": "generate /**\n * User settings used to check the interactiveMode.\n */\n @Parameter( property = \"in...
2022/11/18
[ "https://Stackoverflow.com/questions/74488608", "https://Stackoverflow.com", "https://Stackoverflow.com/users/304820/" ]
74,488,619
<p>I'm using <a href="https://tanstack.com/query/v4/" rel="nofollow noreferrer">react-query 4</a> to get some data from my server via JSON:API and create some objects:</p> <pre><code>export type QueryReturnQueue = QueueObject[] | false; const getQueryQueue = async (query: string): Promise&lt;QueryReturnQueue&gt; =&gt;...
[ { "answer_id": 74488695, "author": "Mark Bramnik", "author_id": 605153, "author_profile": "https://Stackoverflow.com/users/605153", "pm_score": 1, "selected": false, "text": "generate /**\n * User settings used to check the interactiveMode.\n */\n @Parameter( property = \"in...
2022/11/18
[ "https://Stackoverflow.com/questions/74488619", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1209486/" ]
74,488,659
<p>I want to copy a video file from a remote server to my localhost , so I have:</p> <pre><code>const ftp = require(&quot;basic-ftp&quot;); const path = 'C:\inetpub\wwwroot\Server\views\admin\files\session\trimed\oblivin.mp4'; example() async function example() { const client = new ftp.Client() client.ftp.verbose...
[ { "answer_id": 74488949, "author": "AAKASH9820", "author_id": 12124280, "author_profile": "https://Stackoverflow.com/users/12124280", "pm_score": -1, "selected": false, "text": "fetch('C:\\inetpub\\wwwroot\\Server\\views\\admin\\files\\session\\trimed\\oblivin.mp4').then(resp => resp.blo...
2022/11/18
[ "https://Stackoverflow.com/questions/74488659", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10715551/" ]
74,488,692
<p>I have a huge <code>tbb::concurrent_unordered_map</code> that gets &quot;read&quot; heavily by multiple (~60) threads concurrently.</p> <p>Once per day I need to clear it (either fully, or selectively). Erasing is obviously not thread safe in <code>tbb</code> implementation, so some synchronisation needs to be in pl...
[ { "answer_id": 74488949, "author": "AAKASH9820", "author_id": 12124280, "author_profile": "https://Stackoverflow.com/users/12124280", "pm_score": -1, "selected": false, "text": "fetch('C:\\inetpub\\wwwroot\\Server\\views\\admin\\files\\session\\trimed\\oblivin.mp4').then(resp => resp.blo...
2022/11/18
[ "https://Stackoverflow.com/questions/74488692", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3424564/" ]