qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,659,092
<p>I'm trying to write a bioinformatics code that will check for certain repeats in a given string of nucleotides. The user inputs a certain patter, and the program outputs how many times something is repeated, or even highlights where they are. I've gotten a good start on it, but could use some help.</p> <p>Below is m...
[ { "answer_id": 74659139, "author": "Cyzanfar", "author_id": 3307520, "author_profile": "https://Stackoverflow.com/users/3307520", "pm_score": 1, "selected": true, "text": "def pattern_count(text, pattern):\n count = 0\n for i in range(len(text) - len(pattern) + 1):\n if text...
2022/12/02
[ "https://Stackoverflow.com/questions/74659092", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20160057/" ]
74,659,098
<p>I am studing Java, i have simple Array linked to ArrayList, it is fixed size i can change values inside array or list without change length. So i tried to change all elements of the Array to see changes into ArrayList (it doesn't work). I saw that if i change single value into Array my list would change too (it work...
[ { "answer_id": 74659938, "author": "pfurbacher", "author_id": 1271785, "author_profile": "https://Stackoverflow.com/users/1271785", "pm_score": 0, "selected": false, "text": "Arrays.asList() import java.util.Arrays;\nimport java.util.List;\n\npublic class ArraysAsListSideEffects {\n\n ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659098", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20372657/" ]
74,659,104
<p>I've a function like:</p> <pre><code>function myFunction(params) { // TODO: something console.log(params.message) } </code></pre> <p>And I need to know all the keys that the myFunction function expects in the params object. Is this possible?</p> <p>I've tried using <a href="https://developer.mozilla.org/en-US/do...
[ { "answer_id": 74659938, "author": "pfurbacher", "author_id": 1271785, "author_profile": "https://Stackoverflow.com/users/1271785", "pm_score": 0, "selected": false, "text": "Arrays.asList() import java.util.Arrays;\nimport java.util.List;\n\npublic class ArraysAsListSideEffects {\n\n ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16052906/" ]
74,659,122
<p>I am wondering how to replace values from second row onwards in a pipe method (connecting to the rest of steps).</p> <pre><code>import pandas as pd import numpy as np df = pd.DataFrame( { &quot;Date&quot;: [&quot;2020-01-01&quot;, &quot;2021-01-01&quot;, &quot;2022-01-01&quot;], &quot;Pop&quot;:...
[ { "answer_id": 74659327, "author": "Cyzanfar", "author_id": 3307520, "author_profile": "https://Stackoverflow.com/users/3307520", "pm_score": 2, "selected": false, "text": "import pandas as pd\nimport numpy as np\n\ndf = pd.DataFrame(\n {\n \"Date\": [\"2020-01-01\", \"2021-01-...
2022/12/02
[ "https://Stackoverflow.com/questions/74659122", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13236293/" ]
74,659,126
<p>I'm writing a program in Python that looks at an XML file that I get from an API and should return a list of users' initials to a list for later use. My XML file looks like this with about 60 users:</p> <pre><code>&lt;ArrayOfuser xmlns=&quot;WebsiteWhereDataComesFrom.com&quot; xmlns:i=&quot;http://www.w3.org/2001/XM...
[ { "answer_id": 74659388, "author": "simpleApp", "author_id": 15568504, "author_profile": "https://Stackoverflow.com/users/15568504", "pm_score": 1, "selected": false, "text": "import xml.etree.ElementTree as ET\nroot = ET.fromstring(xml_in_qes)\nmy_ns = {'root': 'WebsiteWhereDataComesFro...
2022/12/02
[ "https://Stackoverflow.com/questions/74659126", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8683235/" ]
74,659,143
<p>I have a data frame looking like this :</p> <pre><code>&gt; df &lt;- data.frame(x = c(1,0,2,0,1,3,1), + y = c(&quot;lima&quot;,&quot;chicago&quot;,&quot;new york&quot;,&quot;Miami&quot;,&quot;havana&quot;,&quot;Colon&quot;,&quot;la paz&quot;)) &gt; df x y 1 1 lima 2 0 chicago 3 2 new y...
[ { "answer_id": 74659240, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 3, "selected": true, "text": "library(dplyr)\n\ndf %>% \n group_by(ID = row_number()) %>% \n summarise(cur_data()[seq(x+1),]) %>% \n arrange(!i...
2022/12/02
[ "https://Stackoverflow.com/questions/74659143", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15453570/" ]
74,659,144
<p>I want to create a DataFrame to which I want to import data from a class. I mean, I type <code>t1 = Transaction(&quot;20221128&quot;, &quot;C1&quot;, 14)</code> and I want a DataFrame to show data like:</p> <ol> <li>Column 1: Date</li> <li>Column 2: Concept</li> <li>Column 3: Amount</li> </ol> <p>The code where I wa...
[ { "answer_id": 74659240, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 3, "selected": true, "text": "library(dplyr)\n\ndf %>% \n group_by(ID = row_number()) %>% \n summarise(cur_data()[seq(x+1),]) %>% \n arrange(!i...
2022/12/02
[ "https://Stackoverflow.com/questions/74659144", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18685243/" ]
74,659,146
<p>I'm using C# with the .NET 6 framework. I have a class called <code>Message</code> and another called <code>TaggedMessage</code> which inherits from <code>Message</code>.</p> <p>The idea is simple. A function receives an object of type Message and then adds several Tags to it and returns it as a TaggedMessage. A lis...
[ { "answer_id": 74660080, "author": "Viachaslau S", "author_id": 17292083, "author_profile": "https://Stackoverflow.com/users/17292083", "pm_score": 3, "selected": true, "text": "Message TaggedMessage static void Main()\n {\n var config = new MapperConfiguration(cfg =>\n ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659146", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2696330/" ]
74,659,156
<p>I want to test whether a type can be passed to some function, but I'd like to use ADL on the function lookup and include a function from a certain namespace.</p> <p>Consider this code:</p> <pre class="lang-cpp prettyprint-override"><code>#include &lt;utility&gt; #include &lt;vector&gt; template&lt;class T&gt; conce...
[ { "answer_id": 74659272, "author": "Nicol Bolas", "author_id": 734069, "author_profile": "https://Stackoverflow.com/users/734069", "pm_score": 3, "selected": false, "text": "using ranges::swap using operator() using using ranges::swap" }, { "answer_id": 74659822, "author": "A...
2022/12/02
[ "https://Stackoverflow.com/questions/74659156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8951473/" ]
74,659,167
<p>Let's assume I have the code:</p> <pre><code>// Android ViewModel class MyVM(val dao: MyDao) : ViewModel() { fun onButtonInsert() { // point 1 viewModelScope.launch { // point 2 dao.insert_SuspendFun(MyData(id=1, &quot;hello, it works&quot;)) // point 3 ...
[ { "answer_id": 74659438, "author": "Googlian", "author_id": 5380942, "author_profile": "https://Stackoverflow.com/users/5380942", "pm_score": 0, "selected": false, "text": "suspend viewmodelscope.launch(dispatchers.io)\n" }, { "answer_id": 74660561, "author": "Tenfour04", ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659167", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1367449/" ]
74,659,179
<p>i'm having a bit of a headache with VBA which i haven't used since 2006.</p> <p>I have my destination excel file where I need to import 3 predefined sheets from another excel file of the user's choice.</p> <p>After selecting the source file to import I would like to perform a check, IF the &quot;Cover&quot; sheet ex...
[ { "answer_id": 74659438, "author": "Googlian", "author_id": 5380942, "author_profile": "https://Stackoverflow.com/users/5380942", "pm_score": 0, "selected": false, "text": "suspend viewmodelscope.launch(dispatchers.io)\n" }, { "answer_id": 74660561, "author": "Tenfour04", ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659179", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6358335/" ]
74,659,190
<p>I can't understand why my script is not working..I don't get why this is wrong..this is my script code below.</p> <pre><code>using System.Collections; using System.Collections.Generic; using UnityEngine; public class k : MonoBehaviour { void OnTriggerEnter(Collider collider) { if(collider.gameObject.nam...
[ { "answer_id": 74659438, "author": "Googlian", "author_id": 5380942, "author_profile": "https://Stackoverflow.com/users/5380942", "pm_score": 0, "selected": false, "text": "suspend viewmodelscope.launch(dispatchers.io)\n" }, { "answer_id": 74660561, "author": "Tenfour04", ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659190", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18125145/" ]
74,659,214
<p>Im using this code(C#NETCORE5.0) to return a model:</p> <pre class="lang-cs prettyprint-override"><code> [HttpPost] [Authorize(AuthenticationSchemes = &quot;Bearer&quot;)] public IActionResult GetTablero(GenericStringModel item){ TableroVentasManager mng = new TableroVentasManager...
[ { "answer_id": 74659438, "author": "Googlian", "author_id": 5380942, "author_profile": "https://Stackoverflow.com/users/5380942", "pm_score": 0, "selected": false, "text": "suspend viewmodelscope.launch(dispatchers.io)\n" }, { "answer_id": 74660561, "author": "Tenfour04", ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659214", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2615105/" ]
74,659,222
<pre><code>type here </code></pre> <p>Hi I want to convert html to pdf in angular using jspdf and send to nodejs server</p> <p>Can anyone help me?</p> <p>Or give me advice please</p> <p>I have this code saved in the browser and I want to send it to the nodejs server</p> <pre><code>public openPDF(): void { let DATA:...
[ { "answer_id": 74659438, "author": "Googlian", "author_id": 5380942, "author_profile": "https://Stackoverflow.com/users/5380942", "pm_score": 0, "selected": false, "text": "suspend viewmodelscope.launch(dispatchers.io)\n" }, { "answer_id": 74660561, "author": "Tenfour04", ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659222", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20666289/" ]
74,659,233
<p>I want to reemit the last value of my observable at a fix interval, to I tried</p> <pre><code>obs.pipe(repeat({delay:1000})).subscribe(x =&gt; console.log('Emitted', x)); </code></pre> <p>but it did not work. after looking into this, my observable is in fact a BehaviorSubject.</p> <p>So my Question is Why does the 1...
[ { "answer_id": 74659438, "author": "Googlian", "author_id": 5380942, "author_profile": "https://Stackoverflow.com/users/5380942", "pm_score": 0, "selected": false, "text": "suspend viewmodelscope.launch(dispatchers.io)\n" }, { "answer_id": 74660561, "author": "Tenfour04", ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/76209/" ]
74,659,242
<p>I open a modal in Blazor (Server App) that contains an array of strings. Everything is working code wise, but I have to click in the first element to set focus (these are serial numbers and are read with a scanner). After that, as scanning continues the focus moves after each scan. I would like the first element t...
[ { "answer_id": 74659438, "author": "Googlian", "author_id": 5380942, "author_profile": "https://Stackoverflow.com/users/5380942", "pm_score": 0, "selected": false, "text": "suspend viewmodelscope.launch(dispatchers.io)\n" }, { "answer_id": 74660561, "author": "Tenfour04", ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659242", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1812535/" ]
74,659,294
<p>I have an array (<code>$datas</code>) with subs arrays like this :</p> <p><a href="https://i.stack.imgur.com/sFKXA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sFKXA.png" alt="array" /></a></p> <p><a href="https://i.stack.imgur.com/a9c1y.png" rel="nofollow noreferrer"><img src="https://i.stack....
[ { "answer_id": 74659438, "author": "Googlian", "author_id": 5380942, "author_profile": "https://Stackoverflow.com/users/5380942", "pm_score": 0, "selected": false, "text": "suspend viewmodelscope.launch(dispatchers.io)\n" }, { "answer_id": 74660561, "author": "Tenfour04", ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659294", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20260243/" ]
74,659,302
<p>I want to know if there is a better and cleaner way of printing the 3rd step of a generator function. Currently I have written the following code</p> <pre><code>def imparesgen(): n = 0 while n&lt;200: n=n+2 yield n gen = imparesgen() y = 0 for x in gen: y+=1 if y == 3: print(x) </code></pre> <...
[ { "answer_id": 74659400, "author": "Pranav Hosangadi", "author_id": 843953, "author_profile": "https://Stackoverflow.com/users/843953", "pm_score": 0, "selected": false, "text": "zip gen gen = imparesgen()\nfor _, item in zip(range(3), gen):\n pass\n\n# Now, item is the third element\...
2022/12/02
[ "https://Stackoverflow.com/questions/74659302", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20668655/" ]
74,659,310
<p>I have a dataframe where the rows contain NaN values. The df contains <strong>original columns</strong> namely <strong>Heading 1 Heading 2 and Heading 3</strong> and <strong>extra columns</strong> called <strong>Unnamed: 1 Unnamed: 2 and Unnamed: 3</strong> as shown:</p> <div class="s-table-container"> <table class=...
[ { "answer_id": 74659400, "author": "Pranav Hosangadi", "author_id": 843953, "author_profile": "https://Stackoverflow.com/users/843953", "pm_score": 0, "selected": false, "text": "zip gen gen = imparesgen()\nfor _, item in zip(range(3), gen):\n pass\n\n# Now, item is the third element\...
2022/12/02
[ "https://Stackoverflow.com/questions/74659310", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15320579/" ]
74,659,333
<p>I have a fixed size <code>u8</code> array of size <code>2048</code>, which gets filled from a network data of varying lengths. I need to copy this data to a <code>vec</code> of <code>u8</code> of size equal to received length.</p> <p>This is how I used to do in c++</p> <pre><code>char buff[2048]; ssize_t data_len = ...
[ { "answer_id": 74659381, "author": "cafce25", "author_id": 442760, "author_profile": "https://Stackoverflow.com/users/442760", "pm_score": 4, "selected": true, "text": "let vec = buff[..data_len].to_vec();\n Clone buff[..data_len] data_len to_vec Vec let vec = buff.into_iter().take(data_...
2022/12/02
[ "https://Stackoverflow.com/questions/74659333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3938402/" ]
74,659,344
<p>I would like to match 10 characters after the second pattern:</p> <p>My String:</p> <pre><code>www.mysite.de/ep/3423141549/ep/B104RHWZZZ?something </code></pre> <p>What I want to be matched:</p> <pre><code>B104RHWZZZ </code></pre> <p>What the regex currently matches:</p> <pre><code>B104RHWZZZ?something </code></pre>...
[ { "answer_id": 74659381, "author": "cafce25", "author_id": 442760, "author_profile": "https://Stackoverflow.com/users/442760", "pm_score": 4, "selected": true, "text": "let vec = buff[..data_len].to_vec();\n Clone buff[..data_len] data_len to_vec Vec let vec = buff.into_iter().take(data_...
2022/12/02
[ "https://Stackoverflow.com/questions/74659344", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14171427/" ]
74,659,373
<p>Working on a django web app and running into an issue with my javascript. The web application is multiple different html pages, so the elements my js code is searching for are present on some pages but not others. If the second line is not present on the current page, the script stops running and the final function ...
[ { "answer_id": 74659381, "author": "cafce25", "author_id": 442760, "author_profile": "https://Stackoverflow.com/users/442760", "pm_score": 4, "selected": true, "text": "let vec = buff[..data_len].to_vec();\n Clone buff[..data_len] data_len to_vec Vec let vec = buff.into_iter().take(data_...
2022/12/02
[ "https://Stackoverflow.com/questions/74659373", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20668723/" ]
74,659,409
<p>My table structure is like this:</p> <pre><code>+----------+------------+---------------+ | id | manager_id | restaurant_id | +----------+------------+---------------+ | 1 | 1 | 1001 | | 2 | 1 | 1002 | | 3 | 2 | 1003 | | 4 | 2 ...
[ { "answer_id": 74659381, "author": "cafce25", "author_id": 442760, "author_profile": "https://Stackoverflow.com/users/442760", "pm_score": 4, "selected": true, "text": "let vec = buff[..data_len].to_vec();\n Clone buff[..data_len] data_len to_vec Vec let vec = buff.into_iter().take(data_...
2022/12/02
[ "https://Stackoverflow.com/questions/74659409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/954777/" ]
74,659,435
<p>I am trying to create a django view which will let users to create a new product on the website.</p> <pre><code>class CreateProductView(APIView): serializer_class = CreateProductSerializer def post(self, request, format = None): serializer = self.serializer_class(data=request.data) ...
[ { "answer_id": 74659381, "author": "cafce25", "author_id": 442760, "author_profile": "https://Stackoverflow.com/users/442760", "pm_score": 4, "selected": true, "text": "let vec = buff[..data_len].to_vec();\n Clone buff[..data_len] data_len to_vec Vec let vec = buff.into_iter().take(data_...
2022/12/02
[ "https://Stackoverflow.com/questions/74659435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16137730/" ]
74,659,436
<p>I'm trying to batch merge to create multiple nodes. Using the below code,</p> <pre><code>def test_batches(tx,user_batch): result= tx.run(f&quot;Unwind {user_batch} as user\ MERGE (n:User {{id: user.id, name: user.name, username: user.username }})&quot;) </code></pre> <p>However...
[ { "answer_id": 74659636, "author": "Frederik Bruun", "author_id": 6172247, "author_profile": "https://Stackoverflow.com/users/6172247", "pm_score": 0, "selected": false, "text": "def test_batches(tx,user_batch):\n result = tx.run(f\"UNWIND {user_batch} as user\n MERGE (n:User {{id:...
2022/12/02
[ "https://Stackoverflow.com/questions/74659436", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20321674/" ]
74,659,463
<p>I have a NextJS app that I am using Jest and React Testing Library to test. I have a card component that is passed data (id, image url, text, and name) that is rendered on the card. This works correctly on the webpage. When I run the test, the test cannot find any text on the page.</p> <p>Here is the component:</...
[ { "answer_id": 74659636, "author": "Frederik Bruun", "author_id": 6172247, "author_profile": "https://Stackoverflow.com/users/6172247", "pm_score": 0, "selected": false, "text": "def test_batches(tx,user_batch):\n result = tx.run(f\"UNWIND {user_batch} as user\n MERGE (n:User {{id:...
2022/12/02
[ "https://Stackoverflow.com/questions/74659463", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15061254/" ]
74,659,476
<p>I have a text file with over 250 million lines. Each line has a 3 digit area code followed by a comma and a 7 digit number.</p> <p>Sample Input File:<br /> 201,2220000<br /> 201,5551212<br /> 310,5552481<br /> 376,1239876<br /> 443,0002222<br /> 572,8880099<br /> ...</p> <p>I would like to generate an output file wh...
[ { "answer_id": 74659596, "author": "Santiago Squarzon", "author_id": 15339544, "author_profile": "https://Stackoverflow.com/users/15339544", "pm_score": 3, "selected": true, "text": ".SubString(0, 3) switch -File File.ReadLines $map = @{ }\nswitch -File path\\to\\source\\file.txt {\n ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659476", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14714446/" ]
74,659,502
<p>I'm trying to get this loop to continue. So far, when input is not matched to my REGEX, &quot;input not valid&quot; gets displayed but loop won't continue. What am I missing here?</p> <p>Apreciate your help!</p> <pre><code>import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; pub...
[ { "answer_id": 74659632, "author": "Sam Cousins", "author_id": 19152535, "author_profile": "https://Stackoverflow.com/users/19152535", "pm_score": 0, "selected": false, "text": "scn.next()" }, { "answer_id": 74659680, "author": "horcrux", "author_id": 4607733, "author...
2022/12/02
[ "https://Stackoverflow.com/questions/74659502", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20668683/" ]
74,659,510
<p>I have to make a recursive function that counts how many negative values there are in a given list, but I can't figure out what I am supposed to return for each conditional.</p> <pre><code>def countNegatives(list): &quot;&quot;&quot;Takes in a list of numbers and returns the number of negative numbers th...
[ { "answer_id": 74659572, "author": "trincot", "author_id": 5459839, "author_profile": "https://Stackoverflow.com/users/5459839", "pm_score": 0, "selected": false, "text": "list[0] < 0 return count + 1\n return 1 + countNegatives(list[1:])\n" }, { "answer_id": 7465...
2022/12/02
[ "https://Stackoverflow.com/questions/74659510", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20662448/" ]
74,659,522
<p>I'm still a newbie in React and I've been struggling for some time with the topic mentioned above. I've got a state which looks like this:</p> <pre><code>const [questions, setQuestions] = React.useState([]) React.useEffect(()=&gt;{ fetch('https://the-trivia-api.com/api/questions?limit=5&amp;difficult...
[ { "answer_id": 74659590, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 1, "selected": false, "text": "function selectAnswer(answerId, questionId) {\n setQuestions((prevData) =>\n prevData.map((item) => ({\n ......
2022/12/02
[ "https://Stackoverflow.com/questions/74659522", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20668458/" ]
74,659,543
<p>I would like to be able to install the python module jupyter with pip but I get an error in my terminal when I try 'pip install jupyter' which returns this: `</p> <pre><code> error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─&gt; [9 lines of ...
[ { "answer_id": 74659590, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 1, "selected": false, "text": "function selectAnswer(answerId, questionId) {\n setQuestions((prevData) =>\n prevData.map((item) => ({\n ......
2022/12/02
[ "https://Stackoverflow.com/questions/74659543", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16996888/" ]
74,659,589
<p>I've managed to convert a js sudoku generator into a ts generator for some practice and the only problem I'm having is getting it to output only complete boards. Right now, it's outputting boards regardless if they're complete and I have to refresh until one board is correct.</p> <p>I'm not sure how to write the fol...
[ { "answer_id": 74659590, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 1, "selected": false, "text": "function selectAnswer(answerId, questionId) {\n setQuestions((prevData) =>\n prevData.map((item) => ({\n ......
2022/12/02
[ "https://Stackoverflow.com/questions/74659589", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20310478/" ]
74,659,607
<p>I was searching to find how to make the camera fit a game object and I found this answer:</p> <p><a href="https://stackoverflow.com/questions/71013982/change-the-size-of-camera-to-fit-a-gameobject-in-unity-c">Change the size of camera to fit a GameObject in Unity/C#</a> , and I don't understand this part</p> <pre><c...
[ { "answer_id": 74659590, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 1, "selected": false, "text": "function selectAnswer(answerId, questionId) {\n setQuestions((prevData) =>\n prevData.map((item) => ({\n ......
2022/12/02
[ "https://Stackoverflow.com/questions/74659607", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20668889/" ]
74,659,635
<p>I'm developing Serial Port program using Boost::Asio.<br> I call the <code>SerialPort::read_async</code> method every time I want to read data from serial port.<br> While I am testing I realized that the data received on serial port is not getting saved in the <code>read_buffer</code> however the read handler receiv...
[ { "answer_id": 74661374, "author": "sehe", "author_id": 85371, "author_profile": "https://Stackoverflow.com/users/85371", "pm_score": 1, "selected": false, "text": "read_timeout #include <boost/asio.hpp>\n#include <boost/asio/serial_port.hpp>\n#include <boost/bind/bind.hpp>\n#include <io...
2022/12/02
[ "https://Stackoverflow.com/questions/74659635", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6319901/" ]
74,659,686
<p>Some Python libraries are listed under one name in pip, but imported under a different name in the interpreter.</p> <p>pycroptodome is a good example. In pip list, you see &quot;pycryptodome&quot;. In a Python program, you have to call &quot;import Crypto&quot;. &quot;import pycryptodome&quot; gives an error that th...
[ { "answer_id": 74659825, "author": "D P", "author_id": 20622893, "author_profile": "https://Stackoverflow.com/users/20622893", "pm_score": 0, "selected": false, "text": "pydoc modules \n" }, { "answer_id": 74660392, "author": "Masoud Gheisari", "author_id": 15863196, ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659686", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1839555/" ]
74,659,693
<p>We are trying to create a new Excel file with nested data using Python code. Here is the code for reference:</p> <pre><code>`import glob import pandas as pd import re import openpyxl dp = pd.read_excel(&quot;UnpredictableDataMerge.xlsx&quot;, sheet_name =&quot;Sheet1&quot;) line_numbers = [4, 7] print(&quot;Heey, w...
[ { "answer_id": 74659825, "author": "D P", "author_id": 20622893, "author_profile": "https://Stackoverflow.com/users/20622893", "pm_score": 0, "selected": false, "text": "pydoc modules \n" }, { "answer_id": 74660392, "author": "Masoud Gheisari", "author_id": 15863196, ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659693", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20668962/" ]
74,659,714
<p>So I found tutorial about work with GUI in python tkinter<br /> then I try to learn it from w3school, I copied the sample code:</p> <pre><code>from tkinter import * from tkinter .ttk import * root = Tk() label = Label(root, text=&quot;Hello world Tkinket GUI Example &quot;) label.pack() root.mainloop() ...
[ { "answer_id": 74659803, "author": "Cracko298", "author_id": 20669026, "author_profile": "https://Stackoverflow.com/users/20669026", "pm_score": 0, "selected": false, "text": "from tkinter import * from tkinter .ttk import *" }, { "answer_id": 74659804, "author": "Ryan van Vu...
2022/12/02
[ "https://Stackoverflow.com/questions/74659714", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16785674/" ]
74,659,719
<p>I would like to return all ingress resources that do not contain a specific annotation. Using the following command returns an error:</p> <pre><code>kubectl get ingress --all-namespaces -o=jsonpath='{.items[?(!(@.metadata.annotations.kubernetes\.io/ingress\.class))].metadata.name}' </code></pre> <p>error:</p> <pre><...
[ { "answer_id": 74659775, "author": "Begging", "author_id": 16606223, "author_profile": "https://Stackoverflow.com/users/16606223", "pm_score": 1, "selected": false, "text": "kubectl get ingress --all-namespaces -o=jsonpath='{.items[?(!(@.metadata.annotations[\"kubernetes.io/ingress.class...
2022/12/02
[ "https://Stackoverflow.com/questions/74659719", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10709519/" ]
74,659,733
<p>I'm developing a game in console c#, that you can read maps created in files. For doing so, i'm reading a file and storing that into a string. Then i'm reading each character individually and depending on the character, I need to create an object using the factory pattern. I don't know how to do it without coupling ...
[ { "answer_id": 74659973, "author": "Guru Stron", "author_id": 2501279, "author_profile": "https://Stackoverflow.com/users/2501279", "pm_score": 2, "selected": false, "text": "switch public class ObjectFactory \n{\n private static readonly Dictionary<char, Func<MyObject>> _objectFactor...
2022/12/02
[ "https://Stackoverflow.com/questions/74659733", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13483046/" ]
74,659,736
<p>I need to give this divider but I don't know how to coding it .</p> <p><a href="https://i.stack.imgur.com/GzkmV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GzkmV.png" alt="enter image description here" /></a></p> <p>I tried but I don't know how to give thin to thick .</p>
[ { "answer_id": 74659973, "author": "Guru Stron", "author_id": 2501279, "author_profile": "https://Stackoverflow.com/users/2501279", "pm_score": 2, "selected": false, "text": "switch public class ObjectFactory \n{\n private static readonly Dictionary<char, Func<MyObject>> _objectFactor...
2022/12/02
[ "https://Stackoverflow.com/questions/74659736", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20376640/" ]
74,659,756
<p>I have a data frame with the values of precipitations day per day. I would like to do a sort of resample, so instead of day per day the data is collected year per year and every year has a column that contains the number of times it rained more than a certain value.</p> <div class="s-table-container"> <table class="...
[ { "answer_id": 74659973, "author": "Guru Stron", "author_id": 2501279, "author_profile": "https://Stackoverflow.com/users/2501279", "pm_score": 2, "selected": false, "text": "switch public class ObjectFactory \n{\n private static readonly Dictionary<char, Func<MyObject>> _objectFactor...
2022/12/02
[ "https://Stackoverflow.com/questions/74659756", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20668924/" ]
74,659,764
<p>I'm trying to get a interpolated contour surface with triangulation from matplotlib. My data looks like a curve and I can't get rid of the data below the curve. I would like to have the outside datapoints as boundaries.</p> <p>I got the code from <a href="https://matplotlib.org/3.1.1/gallery/images_contours_and_fiel...
[ { "answer_id": 74659973, "author": "Guru Stron", "author_id": 2501279, "author_profile": "https://Stackoverflow.com/users/2501279", "pm_score": 2, "selected": false, "text": "switch public class ObjectFactory \n{\n private static readonly Dictionary<char, Func<MyObject>> _objectFactor...
2022/12/02
[ "https://Stackoverflow.com/questions/74659764", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18235748/" ]
74,659,786
<p>I'm new to Excel VBA, and after quite some time attempting to solve my issue, I am unable to create a working solution. The attached image is a mock up of an actual table I'm working with. I would like to:</p> <p><a href="https://i.stack.imgur.com/JrTLS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur....
[ { "answer_id": 74660278, "author": "Lewis Morris", "author_id": 3348264, "author_profile": "https://Stackoverflow.com/users/3348264", "pm_score": 0, "selected": false, "text": "output Public dataWs As Worksheet\nPublic outputWs As Worksheet\nPublic searchWs As Worksheet\n\n\nFunction cre...
2022/12/02
[ "https://Stackoverflow.com/questions/74659786", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20668968/" ]
74,659,794
<p>I know that if you have something like this...</p> <pre><code>const [state, setState] = useState('some state'); </code></pre> <p>and you are getting the warning for setState is never used, you should simply not useState, and instead, a normal variable.</p> <p>My question is, what if this is useContext instead of use...
[ { "answer_id": 74659813, "author": "Xiduzo", "author_id": 4655177, "author_profile": "https://Stackoverflow.com/users/4655177", "pm_score": 3, "selected": true, "text": "const [state] = useContext(myContext);\n useContext useState const useState = () => [\"hi\", \"mom\"];\n\nconst [posit...
2022/12/02
[ "https://Stackoverflow.com/questions/74659794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14167364/" ]
74,659,809
<p>I have 2 datasets. One contains a column of companies name, and another contains a column of headlines of news. So the aim I want to achieve is to find all the news whose headline contains one company in the other datasets.<a href="https://i.stack.imgur.com/PQs0d.png" rel="nofollow noreferrer">Basically the two dat...
[ { "answer_id": 74659813, "author": "Xiduzo", "author_id": 4655177, "author_profile": "https://Stackoverflow.com/users/4655177", "pm_score": 3, "selected": true, "text": "const [state] = useContext(myContext);\n useContext useState const useState = () => [\"hi\", \"mom\"];\n\nconst [posit...
2022/12/02
[ "https://Stackoverflow.com/questions/74659809", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20135786/" ]
74,659,811
<p>I'm trying to add exploded columns to a dataframe:</p> <pre><code>from pyspark.sql.functions import * from pyspark.sql.types import * # Convenience function for turning JSON strings into DataFrames. def jsonToDataFrame(json, schema=None): # SparkSessions are available with Spark 2.0+ reader = spark.read if s...
[ { "answer_id": 74659812, "author": "Chris Snow", "author_id": 1033422, "author_profile": "https://Stackoverflow.com/users/1033422", "pm_score": 0, "selected": false, "text": "display(\n events.select(explode(\"a\").alias(\"x\", \"y\"), *[c for c in events.columns])\n)\n select explode(\...
2022/12/02
[ "https://Stackoverflow.com/questions/74659811", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1033422/" ]
74,659,818
<p>Having a hard time with Regex. What would be the regex for finding a file name with variable in between them? For eg:</p> <p>File name : DON_2010_JOE_1222022.txt</p> <p>In the above file name the words DON, JOE and the format .txt will remain constant. Rest numbers might change for every file. There could be charact...
[ { "answer_id": 74660057, "author": "Nataliikaa PetroOwwa", "author_id": 4848126, "author_profile": "https://Stackoverflow.com/users/4848126", "pm_score": 0, "selected": false, "text": "DON_(?<firstString>.*)_JOE_(?<secondString>.*).txt\n matcher.group(\"firstString\")" }, { "answ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659818", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10402543/" ]
74,659,858
<p>I'm used to use GCP's secret manager. There, we can create a secret and give a specific READ permission for one specific service account. I mean, let's say we create a secret ABC and a service account &quot;getsecretaccount&quot;, I can give the read permission for this SA called getsecretaccount to access the ABC s...
[ { "answer_id": 74660057, "author": "Nataliikaa PetroOwwa", "author_id": 4848126, "author_profile": "https://Stackoverflow.com/users/4848126", "pm_score": 0, "selected": false, "text": "DON_(?<firstString>.*)_JOE_(?<secondString>.*).txt\n matcher.group(\"firstString\")" }, { "answ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659858", "https://Stackoverflow.com", "https://Stackoverflow.com/users/342111/" ]
74,659,902
<p>I want the config to show up with 2 spaces before each line.</p> <pre><code>--- - hosts: localhost vars: filename: file1 a: aaa config: |- missingok daily compress rotate 4 create dateext dateformat -%d%m...
[ { "answer_id": 74660546, "author": "flyx", "author_id": 347964, "author_profile": "https://Stackoverflow.com/users/347964", "pm_score": 3, "selected": true, "text": " config: |2-\n missingok\n daily\n compress\n rotate 4\n create\n dateext\n ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659902", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16758323/" ]
74,659,934
<p>I am relatively new to SAS but have done a fair amount of programming over the years. I am at a loss on how to accomplish a task in SAS that I feel I would be able to do relatively easily in other platforms. I have an input table similar to this:</p> <div class="s-table-container"> <table class="s-table"> <thead> <t...
[ { "answer_id": 74660546, "author": "flyx", "author_id": 347964, "author_profile": "https://Stackoverflow.com/users/347964", "pm_score": 3, "selected": true, "text": " config: |2-\n missingok\n daily\n compress\n rotate 4\n create\n dateext\n ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659934", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20668733/" ]
74,659,968
<p>I would like to iterate through a dataframe rows and concatenate that row to a different dataframe basically building up a different dataframe with some rows.</p> <p>For example: `<a href="https://i.stack.imgur.com/PSx9U.png" rel="nofollow noreferrer">IPCSection and IPCClass Dataframes</a></p> <pre><code> allcolumns...
[ { "answer_id": 74660546, "author": "flyx", "author_id": 347964, "author_profile": "https://Stackoverflow.com/users/347964", "pm_score": 3, "selected": true, "text": " config: |2-\n missingok\n daily\n compress\n rotate 4\n create\n dateext\n ...
2022/12/02
[ "https://Stackoverflow.com/questions/74659968", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20669067/" ]
74,660,013
<p>I have a query that pulls specific ranges of columns from a different sheet. It is combining the top two rows. Any way to string together multiple ranges of columns from a different sheet and not combine the top row? thanks</p> <p>example Query ( {'mainview'!, A1:L36, 'mainview'!n1:N36}) this does not work</p> <p>Fi...
[ { "answer_id": 74660546, "author": "flyx", "author_id": 347964, "author_profile": "https://Stackoverflow.com/users/347964", "pm_score": 3, "selected": true, "text": " config: |2-\n missingok\n daily\n compress\n rotate 4\n create\n dateext\n ...
2022/12/02
[ "https://Stackoverflow.com/questions/74660013", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13052545/" ]
74,660,024
<p>I have a class <code>BleScanner</code> that wraps an internal <code>BluetoothLEAdvertisementWatcher</code>. It also implements <code>IDisposable</code> to make sure that the watcher is stopped when the scanner gets disposed of.</p> <pre><code>public sealed class BleScanner : IDisposable { public event Advertisem...
[ { "answer_id": 74660686, "author": "Vic F", "author_id": 4054386, "author_profile": "https://Stackoverflow.com/users/4054386", "pm_score": 2, "selected": false, "text": "BluetoothLEAdvertisementWatcher" }, { "answer_id": 74667093, "author": "Stephen Cleary", "author_id": ...
2022/12/02
[ "https://Stackoverflow.com/questions/74660024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1843468/" ]
74,660,047
<p>I am developing the code for my PIC32MK1024MCM project. I have already tested the code well and now I am only putting all the code modules into the final project (the code is not complete in this example yet, but the functionality is not the axis of interest here). For the first time in my life, I wanted to make it ...
[ { "answer_id": 74660686, "author": "Vic F", "author_id": 4054386, "author_profile": "https://Stackoverflow.com/users/4054386", "pm_score": 2, "selected": false, "text": "BluetoothLEAdvertisementWatcher" }, { "answer_id": 74667093, "author": "Stephen Cleary", "author_id": ...
2022/12/02
[ "https://Stackoverflow.com/questions/74660047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18135626/" ]
74,660,058
<p>Looking to solve how to pass my search results to other components so when users use the search bar, the searched results gets displayed instead of that components rendered data.. in this case it would homeScreen. using react router v5 and i tried passing it through the router but many attempts didn't work, should i...
[ { "answer_id": 74660686, "author": "Vic F", "author_id": 4054386, "author_profile": "https://Stackoverflow.com/users/4054386", "pm_score": 2, "selected": false, "text": "BluetoothLEAdvertisementWatcher" }, { "answer_id": 74667093, "author": "Stephen Cleary", "author_id": ...
2022/12/02
[ "https://Stackoverflow.com/questions/74660058", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19778871/" ]
74,660,087
<p>I have an igraph plot that is geographically laid out based on its latitude and longitude coordinates. I now want to hide certain points from one time period, while preserving the layout of the graph. I would therefore not like to delete the vertices from the network, but merely make them invisible in this particula...
[ { "answer_id": 74660686, "author": "Vic F", "author_id": 4054386, "author_profile": "https://Stackoverflow.com/users/4054386", "pm_score": 2, "selected": false, "text": "BluetoothLEAdvertisementWatcher" }, { "answer_id": 74667093, "author": "Stephen Cleary", "author_id": ...
2022/12/02
[ "https://Stackoverflow.com/questions/74660087", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18574641/" ]
74,660,121
<p>Using the method JsonConvert.DeserializeObject returns the default values for all properties.</p> <pre class="lang-cs prettyprint-override"><code>var current = JsonConvert.DeserializeObject&lt;Current&gt;(myJson); </code></pre> <pre class="lang-json prettyprint-override"><code>{ &quot;location&quot;: { &...
[ { "answer_id": 74660200, "author": "Saeed Gholamzadeh", "author_id": 12781348, "author_profile": "https://Stackoverflow.com/users/12781348", "pm_score": 2, "selected": false, "text": "public class YourModel {\n\n //create location class that has Name property\n public Location Locati...
2022/12/02
[ "https://Stackoverflow.com/questions/74660121", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20668996/" ]
74,660,147
<p>Lets supose I have a tabla A like:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>bisac1</th> <th>bisac2</th> <th>bisac3</th> <th>desire</th> </tr> </thead> <tbody> <tr> <td>x</td> <td>y</td> <td>z</td> <td>10</td> </tr> <tr> <td>y</td> <td>z</td> <td>x</td> <td>8</td> </tr> <tr> <td>z<...
[ { "answer_id": 74660242, "author": "Stu", "author_id": 15332650, "author_profile": "https://Stackoverflow.com/users/15332650", "pm_score": 1, "selected": false, "text": "select \n case when bisac1 in ('x','y','z') then 1 else 0 end +\n case when bisac2 in ('x','y','z') then 1 else ...
2022/12/02
[ "https://Stackoverflow.com/questions/74660147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10596766/" ]
74,660,172
<p>I am really struggling in creating a macro that from a master Excel file creates multiple Excel files based on the values in the first column. More specifically, I have in column &quot;A&quot; some categories, and based on all the categories (ITT1, ITT2, ITT3, ITT4 and ITT5) I would like to create multiple excel fil...
[ { "answer_id": 74660242, "author": "Stu", "author_id": 15332650, "author_profile": "https://Stackoverflow.com/users/15332650", "pm_score": 1, "selected": false, "text": "select \n case when bisac1 in ('x','y','z') then 1 else 0 end +\n case when bisac2 in ('x','y','z') then 1 else ...
2022/12/02
[ "https://Stackoverflow.com/questions/74660172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19076195/" ]
74,660,181
<p>I'm trying to install packages on multiple versions of Python. I'm currently running 3.8.8, and 3.11.0.</p> <p>Following this post <a href="https://stackoverflow.com/questions/10919569/install-a-module-using-pip-for-specific-python-version">Install a module using pip for specific python version</a> called</p> <p><co...
[ { "answer_id": 74660253, "author": "Ivan Perehiniak", "author_id": 20637117, "author_profile": "https://Stackoverflow.com/users/20637117", "pm_score": 0, "selected": false, "text": "python3 —-version\n" } ]
2022/12/02
[ "https://Stackoverflow.com/questions/74660181", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16451872/" ]
74,660,182
<p>Say I have a Typescript tuple:</p> <pre><code>type Sandwich = [name: string, toppings: object] </code></pre> <p>Now I want to extend it:</p> <pre><code>type HotDog = [name: string, toppings: object, length: number] </code></pre> <p>Can <code>HotDog</code> extend <code>Sandwich</code> without duplication?</p>
[ { "answer_id": 74660221, "author": "Alex Wayne", "author_id": 62076, "author_profile": "https://Stackoverflow.com/users/62076", "pm_score": 1, "selected": false, "text": "type Sandwich = [name: string, toppings: object]\ntype HotDog = [...sandwich: Sandwich, length: number]\n// ^ type ...
2022/12/02
[ "https://Stackoverflow.com/questions/74660182", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4185992/" ]
74,660,194
<p>I want to create a struct by calling <code>new</code> member function of a given struct by initializing only some of the fields. I am getting an error <code>error[E0063]: missing fields b and join_handle in initializer of B::B</code>. This is my sample code</p> <p>main.rs</p> <pre><code>mod B; mod A; fn main() { ...
[ { "answer_id": 74660337, "author": "cafce25", "author_id": 442760, "author_profile": "https://Stackoverflow.com/users/442760", "pm_score": 2, "selected": false, "text": "Option B struct B {\n a: String,\n b: Option<AS>,\n join_handle: Option<thread::JoinHandle<()>>,\n}\nimpl B {...
2022/12/02
[ "https://Stackoverflow.com/questions/74660194", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3938402/" ]
74,660,214
<p>I have a basic assignment and can't get the program right. The assignment is to make a program that displays the minimum amount of banknotes and coins necessary to pay.</p> <pre><code>#include &lt;iostream&gt; using namespace std; int main() { int pari; cin &gt;&gt; pari; switch (pari) { cas...
[ { "answer_id": 74660901, "author": "Remy Lebeau", "author_id": 65863, "author_profile": "https://Stackoverflow.com/users/65863", "pm_score": 2, "selected": false, "text": "#include <iostream>\nusing namespace std;\n\nint main()\n{\n int pari;\n cin >> pari;\n\n cout << pari/5000...
2022/12/02
[ "https://Stackoverflow.com/questions/74660214", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20669379/" ]
74,660,234
<p>I have a simple string and a list:</p> <pre><code>string = &quot;the secret key is A&quot; list = [&quot;123&quot;,&quot;234&quot;,&quot;345&quot;] </code></pre> <p>I need to replace one item (&quot;A&quot;) combining that item with another item from the list (&quot;A123&quot;) as many times as the number of items i...
[ { "answer_id": 74660259, "author": "I'mahdi", "author_id": 1740577, "author_profile": "https://Stackoverflow.com/users/1740577", "pm_score": 0, "selected": false, "text": "str.replace st = \"the secret key is A\"\n\nlst = [\"123\",\"234\",\"345\"]\n\nkey_rep = \"A\"\n\nfor l in lst:\n ...
2022/12/02
[ "https://Stackoverflow.com/questions/74660234", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18020486/" ]
74,660,240
<p>I'm playing a game with the following circuit diagram.<br /> 3 inputs can be turned on.<br /> The solution of the game is to turn ON inputs 3, 4 and 8.</p> <p><a href="https://i.stack.imgur.com/zlCXX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zlCXX.png" alt="Circuit diagram" /></a></p> <block...
[ { "answer_id": 74660631, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 2, "selected": false, "text": "function test(a, b, c, d, e, f, g, h) {\n const ab = a && b;\n const abcd = (ab || c) && d;\n const ef = e && f;\n...
2022/12/02
[ "https://Stackoverflow.com/questions/74660240", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19558281/" ]
74,660,254
<p>I'm using Angular 14. I checked <a href="https://masteringjs.io/tutorials/fundamentals/foreach-break" rel="nofollow noreferrer">this</a> and several other articles but none was useful at all. I've a piece of code in a ternary operator. The code is like this:</p> <pre><code>var finalValue = this.recordData.myArray.le...
[ { "answer_id": 74660351, "author": "Satpal", "author_id": 1668533, "author_profile": "https://Stackoverflow.com/users/1668533", "pm_score": 0, "selected": false, "text": "undefined every() var finalValue = this.recordData.myArray.length === 0 ?\n 'empty record' :\n (this.recordData.myA...
2022/12/02
[ "https://Stackoverflow.com/questions/74660254", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11163977/" ]
74,660,257
<p>I've already looked at this and it did not solve my issue <a href="https://www.stackoverflow.com/">https://stackoverflow.com/questions/51079664/c-sharp-error-with-exceldatareader</a></p> <p>I've tried building a method that reads an <strong>XLS</strong> file and converts it to string[] But I get an error when trying...
[ { "answer_id": 74660351, "author": "Satpal", "author_id": 1668533, "author_profile": "https://Stackoverflow.com/users/1668533", "pm_score": 0, "selected": false, "text": "undefined every() var finalValue = this.recordData.myArray.length === 0 ?\n 'empty record' :\n (this.recordData.myA...
2022/12/02
[ "https://Stackoverflow.com/questions/74660257", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16889986/" ]
74,660,274
<p>Kinda stuck here.</p> <p>I am fetching data from database with php into this variable in javascript.</p> <pre><code>&lt;?php //connection to database include(&quot;con.php&quot;); //query $query = &quot;SELECT * FROM magacin_artikli&quot;; $r = mysqli_query($conn, $query); $dataGrafDodArt = array(); while($row = ...
[ { "answer_id": 74660331, "author": "Zeeshan ATS", "author_id": 20669413, "author_profile": "https://Stackoverflow.com/users/20669413", "pm_score": -1, "selected": false, "text": "[\n { \"name\": \"John Doe\", \"age\": 30 },\n { \"name\": \"Jane Doe\", \"age\": 25 }\n]\n const jsonArray...
2022/12/02
[ "https://Stackoverflow.com/questions/74660274", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8431130/" ]
74,660,283
<p>I am attempting to build a stopwatch Shiny app.</p> <p>My end goal is to record &quot;trial&quot; times. Each trial will start when the space bar (key code == 32) is pressed, and will end when the space bar is released. I also want to record the time between my trials, which is time from when the space bar is releas...
[ { "answer_id": 74660331, "author": "Zeeshan ATS", "author_id": 20669413, "author_profile": "https://Stackoverflow.com/users/20669413", "pm_score": -1, "selected": false, "text": "[\n { \"name\": \"John Doe\", \"age\": 30 },\n { \"name\": \"Jane Doe\", \"age\": 25 }\n]\n const jsonArray...
2022/12/02
[ "https://Stackoverflow.com/questions/74660283", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20669225/" ]
74,660,327
<p>I was wondering how I can make a program with input of MAXIMUM 5 seconds(e.g he can send input after 2 seconds) in python I decided to do a SIMPLE game where you basically have to rewrite a word below 5 seconds. I know how to create input and make it wait EXACTLY 5 SECONDS, but what I want to achieve is to set maxim...
[ { "answer_id": 74660331, "author": "Zeeshan ATS", "author_id": 20669413, "author_profile": "https://Stackoverflow.com/users/20669413", "pm_score": -1, "selected": false, "text": "[\n { \"name\": \"John Doe\", \"age\": 30 },\n { \"name\": \"Jane Doe\", \"age\": 25 }\n]\n const jsonArray...
2022/12/02
[ "https://Stackoverflow.com/questions/74660327", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12786471/" ]
74,660,328
<pre><code> dictionary = testEns(idSession) columns = dictionary.keys() for i in dictionary.values(): sql2='''insert into PERSONS(person_id , person_name) VALUES{};'''.format(i) cursor.execute(sql2) </code></pre> <p>The function testEns(idSession) contains the result of an api call that...
[ { "answer_id": 74660378, "author": "Frederik Bruun", "author_id": 6172247, "author_profile": "https://Stackoverflow.com/users/6172247", "pm_score": -1, "selected": false, "text": "sql2 = '''insert into PERSONS(person_id , person_name) VALUES{};'''.format(i)\n sql2 = '''INSERT INTO PERSON...
2022/12/02
[ "https://Stackoverflow.com/questions/74660328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13435513/" ]
74,660,360
<p>I have two files and want to transfer date from one to other after doing a test</p> <p>File1:</p> <pre><code>ID, X1, X2, X3 2000, 1, 2, 3 2001, 3, 4, 5 1999, 2, 5, 6 2003, 3, 5, 4 </code></pre> <p>File2:</p> <pre><code>ID, X1, X2, X3, 2000, 2001, 2002, 2003, </code></pre> <p>Result file will be like:</p> <p>1999 &qu...
[ { "answer_id": 74660482, "author": "Jilber Urbina", "author_id": 1315767, "author_profile": "https://Stackoverflow.com/users/1315767", "pm_score": 1, "selected": false, "text": "right_join df1 %>% \n right_join(df2, by=\"ID\") %>% \n arrange(ID)\n ID X1 X2 X3\n1 2000 1 2 3\n2 200...
2022/12/02
[ "https://Stackoverflow.com/questions/74660360", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20624987/" ]
74,660,368
<p>I am learning about layout constraints and find it a bit confusing why the last line of NSLayout Constraints for the trailing anchor mentions a view instead of loginView? Is there any good logical way to think of this? Struggling to imagine what is written.</p> <pre><code>let loginView = LoginView() view.addSubvie...
[ { "answer_id": 74660495, "author": "hallux", "author_id": 14128044, "author_profile": "https://Stackoverflow.com/users/14128044", "pm_score": 0, "selected": false, "text": "loginView view.trailingAnchor loginView loginView loginView loginView" }, { "answer_id": 74660554, "aut...
2022/12/02
[ "https://Stackoverflow.com/questions/74660368", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20372651/" ]
74,660,374
<p>I have to convert 2022-11-29 to '2022-11-29T04:00:00.000Z' it is offset for Santo Domingo Timezone.</p> <p>But the first problem StartFromUtc is already '2022-11-29T02:00:00+02:00' but I expected '2022-11-29T00:00:00+00:00'.</p> <p>so the next calculation is wrong too.</p> <p>How can help?</p> <p><div class="snippet...
[ { "answer_id": 74660483, "author": "MrAusnadian", "author_id": 14635109, "author_profile": "https://Stackoverflow.com/users/14635109", "pm_score": 0, "selected": false, "text": "const tz = 'America/Santo_Domingo';\nconst startFromDate = dayjs(new Date('2022-11-29 UTC'));\nconst tzdate = ...
2022/12/02
[ "https://Stackoverflow.com/questions/74660374", "https://Stackoverflow.com", "https://Stackoverflow.com/users/450466/" ]
74,660,417
<p>I'm trying to compare 2 csv files and then put the common entries in a 3rd csv to write to file. For some reason it iterates the whole loop for row in csv_input but the entry in csv_compare loop iterates only once and stops on the last entry. I want to compare every row entry with every entry entry.</p> <pre><code>i...
[ { "answer_id": 74660466, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 0, "selected": false, "text": "csv_compare import csv\n\nfinalCSV = {}\nwith open(\"input.csv\", newline=\"\") as csvfile, open(\n \"com...
2022/12/02
[ "https://Stackoverflow.com/questions/74660417", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1373439/" ]
74,660,418
<p>I would like to have instead of only the vector of optimal solution to a mip , all the feasible (suboptimal) vectors.<br /> I found some old questions here, but I am not sure how they work.</p> <p>First of all, is there any new library tool/way to do that automatically ?<br /> I tried this but, it did nothing:</p> <...
[ { "answer_id": 74661407, "author": "Oscar Dowson", "author_id": 13591160, "author_profile": "https://Stackoverflow.com/users/13591160", "pm_score": 2, "selected": false, "text": "using JuMP\nmodel = Model()\n@variable(model, x[1:10] >= 0)\n# ... other constraints ...\noptimize!(model)\n\...
2022/12/02
[ "https://Stackoverflow.com/questions/74660418", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14386149/" ]
74,660,427
<p><strong>Problem</strong>: Our company receives a data set that summarizes invoices to be paid. For each outstanding invoice, there is a single row of data. Each invoice has a variable number of items to be paid and are listed on the same row. Each item has four columns listed on the invoice row. As a result, the num...
[ { "answer_id": 74661407, "author": "Oscar Dowson", "author_id": 13591160, "author_profile": "https://Stackoverflow.com/users/13591160", "pm_score": 2, "selected": false, "text": "using JuMP\nmodel = Model()\n@variable(model, x[1:10] >= 0)\n# ... other constraints ...\noptimize!(model)\n\...
2022/12/02
[ "https://Stackoverflow.com/questions/74660427", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20669255/" ]
74,660,443
<p>I have to download a lot of data in mass from the internet, and I don't want this to crowd my main directory so much, so I like to move it to a /data folder. I make this data into a list, then move that entire list into that folder. However, I then struggle to do analyses with sapply() and other functions upon this ...
[ { "answer_id": 74661407, "author": "Oscar Dowson", "author_id": 13591160, "author_profile": "https://Stackoverflow.com/users/13591160", "pm_score": 2, "selected": false, "text": "using JuMP\nmodel = Model()\n@variable(model, x[1:10] >= 0)\n# ... other constraints ...\noptimize!(model)\n\...
2022/12/02
[ "https://Stackoverflow.com/questions/74660443", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14306416/" ]
74,660,475
<p><a href="https://i.stack.imgur.com/YmAkE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YmAkE.png" alt="HTML source:" /></a></p> <p>How to create an array forEach of the playlist card ids and test to assert array positioning/order on the page ex. 0=130, 1=100 etc. in Cypress</p> <p>I think I coul...
[ { "answer_id": 74661041, "author": "jjhelguero", "author_id": 17917809, "author_profile": "https://Stackoverflow.com/users/17917809", "pm_score": 2, "selected": true, "text": "data-object-type data-object-type const expectedOrder = [\"130\", \"100\", \"1\"];\ncy.get(\"[data-object-type]\...
2022/12/02
[ "https://Stackoverflow.com/questions/74660475", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4584966/" ]
74,660,484
<p>I have dataframe that looks like this:</p> <pre><code> email account_name 0 NaN weichert, realtors mnsota 1 jhawkins sterling group com sterling group 2 lbaltz baltzchevy com baltz chevrolet </code></pre> <p>and I ...
[ { "answer_id": 74661041, "author": "jjhelguero", "author_id": 17917809, "author_profile": "https://Stackoverflow.com/users/17917809", "pm_score": 2, "selected": true, "text": "data-object-type data-object-type const expectedOrder = [\"130\", \"100\", \"1\"];\ncy.get(\"[data-object-type]\...
2022/12/02
[ "https://Stackoverflow.com/questions/74660484", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13530377/" ]
74,660,492
<p>I am new to coding and i can't figure out a way to convert this pseudocode to actual code in python especially the total number of dice part. I want to calculate total number of green dice in a dice stack of different colours.</p> <pre><code>Y4 G6 R3 G2 W2 W1 </code></pre> <pre><code>where, Y4 = yellow dice with f...
[ { "answer_id": 74660567, "author": "twister_void", "author_id": 637377, "author_profile": "https://Stackoverflow.com/users/637377", "pm_score": -1, "selected": false, "text": "class Dice(object):\n\n def __init__(self, dice_list):\n self.dice_list = dice_list\n\n def score(s...
2022/12/02
[ "https://Stackoverflow.com/questions/74660492", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20436221/" ]
74,660,537
<p>I work with Sales and problem is that this table does not have records for each client for every year. Records are missing randomly. Instead i need to have those years there and put 0 for sales for those years for my analysis.</p> <p>I have limited knowledge of SQL. Can anybody help on this one? What i have as of no...
[ { "answer_id": 74660567, "author": "twister_void", "author_id": 637377, "author_profile": "https://Stackoverflow.com/users/637377", "pm_score": -1, "selected": false, "text": "class Dice(object):\n\n def __init__(self, dice_list):\n self.dice_list = dice_list\n\n def score(s...
2022/12/02
[ "https://Stackoverflow.com/questions/74660537", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20584166/" ]
74,660,556
<p>I'm trying to convert the dates inside a JSON file to their respective quarter and year. My JSON file is formatted below:</p> <pre><code>{ &quot;lastDate&quot;: { &quot;0&quot;: &quot;11/22/2022&quot;, &quot;1&quot;: &quot;10/28/2022&quot;, &quot;2&quot;: &quot;10/17/2022&quot;, &...
[ { "answer_id": 74660567, "author": "twister_void", "author_id": 637377, "author_profile": "https://Stackoverflow.com/users/637377", "pm_score": -1, "selected": false, "text": "class Dice(object):\n\n def __init__(self, dice_list):\n self.dice_list = dice_list\n\n def score(s...
2022/12/02
[ "https://Stackoverflow.com/questions/74660556", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18823431/" ]
74,660,579
<p>I'm working with a REST API, and I need to return a <code>JSON</code> with my values ​​to it. However, I need the <code>items</code> of the payload variable to show all the items inside the <code>cart_item</code>.</p> <p>I have this:</p> <pre class="lang-py prettyprint-override"><code>payload = { &quot;items&quo...
[ { "answer_id": 74660660, "author": "Sarah Messer", "author_id": 2112722, "author_profile": "https://Stackoverflow.com/users/2112722", "pm_score": 1, "selected": true, "text": " from json import dumps\n\n items_dict = []\n for cart_item in cart_items:\n items_dict.append({\n ...
2022/12/02
[ "https://Stackoverflow.com/questions/74660579", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19455169/" ]
74,660,582
<p>Here's my function that returns the Sum of all pair numbers in an array, and the Average of Odd numbers. Although it outputs the Average as zero for some reason.</p> <pre><code> #include &lt;stdio.h&gt; int MoySom(int Tab[],float* Moyenne,int Length) { int S=0,C=0; *Moyenne=0; for(int i=0;i&lt;Len...
[ { "answer_id": 74660653, "author": "chux - Reinstate Monica", "author_id": 2410359, "author_profile": "https://Stackoverflow.com/users/2410359", "pm_score": 3, "selected": true, "text": "int Length,Tab[Length]; Tab[Length] Length Tab[] Length int Length;\n float Moyenne;\n printf(\"Entr...
2022/12/02
[ "https://Stackoverflow.com/questions/74660582", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20361438/" ]
74,660,588
<p>Two models Users (built-in) and Posts:</p> <pre><code>class Post(models.Model): post_date = models.DateTimeField(default=timezone.now) user = models.ForeignKey(User, on_delete=models.CASCADE, null=True, related_name='user_post') post = models.CharField(max_length=100) </code></pre> <p>I want to have an A...
[ { "answer_id": 74660653, "author": "chux - Reinstate Monica", "author_id": 2410359, "author_profile": "https://Stackoverflow.com/users/2410359", "pm_score": 3, "selected": true, "text": "int Length,Tab[Length]; Tab[Length] Length Tab[] Length int Length;\n float Moyenne;\n printf(\"Entr...
2022/12/02
[ "https://Stackoverflow.com/questions/74660588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/858103/" ]
74,660,595
<p>I've implemented the 2D ISING model in Python, using NumPy and Numba's JIT:</p> <pre><code> from timeit import default_timer as timer import matplotlib.pyplot as plt import numba as nb import numpy as np # TODO for Dict optimization. # from numba import types # from numba.typed import Dict @nb.njit(nogil=True) def...
[ { "answer_id": 74660653, "author": "chux - Reinstate Monica", "author_id": 2410359, "author_profile": "https://Stackoverflow.com/users/2410359", "pm_score": 3, "selected": true, "text": "int Length,Tab[Length]; Tab[Length] Length Tab[] Length int Length;\n float Moyenne;\n printf(\"Entr...
2022/12/02
[ "https://Stackoverflow.com/questions/74660595", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14044445/" ]
74,660,599
<p>I have a large data frame called <code>data_frame</code> with two columns <code>PRE</code> and <code>STATUS</code> that look like this:</p> <pre><code>PRE STATUS 1_752566 GAINED 1_776546 LOST 1_832918 NA 1_842013 LOST 1_846864 GAINED 11_8122943 NA 11_8188699 GAINED 11_8321128 NA 23_95137734...
[ { "answer_id": 74660629, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": false, "text": "_ library(dplyr)\ndf <- df %>%\n mutate(CHR = trimws(PRE, whitespace = \"_.*\"))\n df\n PRE STATUS CHR\...
2022/12/02
[ "https://Stackoverflow.com/questions/74660599", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11924976/" ]
74,660,611
<p>I am using the following Gradio sample code to transcribe my audio:</p> <pre><code>from transformers import pipeline p = pipeline(&quot;automatic-speech-recognition&quot;) import gradio as gr def transcribe(audio): text = p(audio)[&quot;text&quot;] return text gr.Interface( fn=transcribe, inputs=...
[ { "answer_id": 74660629, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": false, "text": "_ library(dplyr)\ndf <- df %>%\n mutate(CHR = trimws(PRE, whitespace = \"_.*\"))\n df\n PRE STATUS CHR\...
2022/12/02
[ "https://Stackoverflow.com/questions/74660611", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10151520/" ]
74,660,613
<p>`</p> <pre><code>life_max = -5 life_min = 999 country_max = &quot;&quot; country_min = &quot;&quot; answer = int(input(&quot;Which year would you like to enter? &quot;)) with open (&quot;life.csv&quot;) as f: next(f) for line in f: parts = line.split(&quot;,&quot;) life = float(part...
[ { "answer_id": 74660629, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": false, "text": "_ library(dplyr)\ndf <- df %>%\n mutate(CHR = trimws(PRE, whitespace = \"_.*\"))\n df\n PRE STATUS CHR\...
2022/12/02
[ "https://Stackoverflow.com/questions/74660613", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20669567/" ]
74,660,619
<p>Im some ocassion a Stack user help me for make this script. Im edit it for add more attributes but I have problems when try to add <strong>Authors</strong></p> <p>The Author label is next to <code>target</code> and <code>href</code>. I have problem in this part.</p> <pre><code> library(tidyverse) library(rvest) s...
[ { "answer_id": 74662671, "author": "margusl", "author_id": 646761, "author_profile": "https://Stackoverflow.com/users/646761", "pm_score": 2, "selected": false, "text": "; library(tidyverse, warn.conflicts = F)\nlibrary(rvest, warn.conflicts = F)\n\nstartTime <- Sys.time()\nget_cg <- fu...
2022/12/02
[ "https://Stackoverflow.com/questions/74660619", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15449339/" ]
74,660,628
<p>When I`m trying to connect Django Server to PostgreSQL db there is an error: &quot; port 5433 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? &quot;</p> <p>I`m using Windows 10, Pycharm, Debian</p> <p>Settings in Django:</p> <pre><code>DATABASES = { 'default': { ...
[ { "answer_id": 74662671, "author": "margusl", "author_id": 646761, "author_profile": "https://Stackoverflow.com/users/646761", "pm_score": 2, "selected": false, "text": "; library(tidyverse, warn.conflicts = F)\nlibrary(rvest, warn.conflicts = F)\n\nstartTime <- Sys.time()\nget_cg <- fu...
2022/12/02
[ "https://Stackoverflow.com/questions/74660628", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20646427/" ]
74,660,641
<p>i am trying to make a program that compares word1 strings with word2 string to occur only once</p> <pre><code>class Solution: def closeStrings(self, word1: str, word2: str) -&gt; bool: word1 = [x.strip() for x in word1] word2 = [x.strip() for x in word2] update = False for x in wo...
[ { "answer_id": 74660751, "author": "Thomas Weller", "author_id": 480982, "author_profile": "https://Stackoverflow.com/users/480982", "pm_score": 1, "selected": false, "text": "print(Solution.closeStrings(Solution,word1='a',word2='aa')) Solution self word1 = [x.strip() for x in word1] pri...
2022/12/02
[ "https://Stackoverflow.com/questions/74660641", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20615635/" ]
74,660,644
<p>I have a text file where every other row either begins with &quot;A&quot; or &quot;B&quot; like this</p> <pre><code>A810 WE WILDWOOD DR B20220901BROOKE A6223 AMHERST BAY B20221001SARAI </code></pre> <p>How can I read the text file and create a two column pandas dataframe where the line beginning with &quot;A&quot; ...
[ { "answer_id": 74660723, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": 2, "selected": false, "text": "pandas.DataFrame.shift pandas.DataFrame.join from io import StringIO \nimport pandas as pd\n\ns = \"\"\"A810 WE ...
2022/12/02
[ "https://Stackoverflow.com/questions/74660644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11069614/" ]
74,660,663
<p>I am writing a program that sends a signal in one process and receives it in a thread in another. I have the entire program written with signals being caught and handled, as well as any synchronization issues. The problem is, I am trying to log the time the signal was sent and the time the signal was received. Thoug...
[ { "answer_id": 74660723, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": 2, "selected": false, "text": "pandas.DataFrame.shift pandas.DataFrame.join from io import StringIO \nimport pandas as pd\n\ns = \"\"\"A810 WE ...
2022/12/02
[ "https://Stackoverflow.com/questions/74660663", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16009652/" ]
74,660,690
<p><a href="https://i.stack.imgur.com/5AV9o.png" rel="nofollow noreferrer">This is the dataset:</a></p> <p>`</p> <pre><code>data = {'id': ['1','1','1','1','2','2','2','2','2','3','3','3','3','3','3','3'], 'status': ['Active','Active','Active','Pending Action','Pending Action','Pending Action','Act...
[ { "answer_id": 74660723, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": 2, "selected": false, "text": "pandas.DataFrame.shift pandas.DataFrame.join from io import StringIO \nimport pandas as pd\n\ns = \"\"\"A810 WE ...
2022/12/02
[ "https://Stackoverflow.com/questions/74660690", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20661992/" ]
74,660,709
<p>In my power automate flow, I have an action that give time output in this format: 2022-12-01T18:52:50.0000000Z How can I take this output and format as yyyy/mm/dd . I want to use the time output as string for a folder structure.</p>
[ { "answer_id": 74660723, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": 2, "selected": false, "text": "pandas.DataFrame.shift pandas.DataFrame.join from io import StringIO \nimport pandas as pd\n\ns = \"\"\"A810 WE ...
2022/12/02
[ "https://Stackoverflow.com/questions/74660709", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19374360/" ]
74,660,743
<p>I need to restructure my data so that it goes from 5 columns to 1 column, while preserving the relative positions. The example is generic but the real data will have different stems and responses for each row.</p> <p>For example, say I have the data below:</p> <p><a href="https://i.stack.imgur.com/hO4pw.png" rel="no...
[ { "answer_id": 74660723, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": 2, "selected": false, "text": "pandas.DataFrame.shift pandas.DataFrame.join from io import StringIO \nimport pandas as pd\n\ns = \"\"\"A810 WE ...
2022/12/02
[ "https://Stackoverflow.com/questions/74660743", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18738799/" ]
74,660,782
<p>I've got a simple CMake educational project sturctured like this:</p> <p><a href="https://i.stack.imgur.com/CwxCo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CwxCo.png" alt="project structure" /></a></p> <p>The root CMakeLists.txt is like that:</p> <pre><code>cmake_minimum_required(VERSION 3....
[ { "answer_id": 74662888, "author": "s0nicYouth", "author_id": 1745543, "author_profile": "https://Stackoverflow.com/users/1745543", "pm_score": 1, "selected": false, "text": "\"configurationProvider\" \"ms-vscode.makefile-tools\" \"configurationProvider\": \"ms-vscode.cmake-tools\"" } ...
2022/12/02
[ "https://Stackoverflow.com/questions/74660782", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1745543/" ]
74,660,791
<p>I created a custom hook which takes a url and return the data</p> <pre class="lang-js prettyprint-override"><code>import { useEffect, useState } from &quot;react&quot;; export function useHttp({ url }: { url: string }) { const [data, setData] = useState&lt;any&gt;(null); useEffect(() =&gt; { const controlle...
[ { "answer_id": 74660825, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 1, "selected": false, "text": "export function useHttp({ url }: { url: string }) {\n const [data, setData] = useState<any>(null);\n\n useEffect(()...
2022/12/02
[ "https://Stackoverflow.com/questions/74660791", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20669639/" ]