qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,447,805
<p>I'm trying to retrive a <strong>float value</strong> from a SQL Server database <strong>into a double variable</strong>, I'm using this code:</p> <pre><code>bool CDataAccess::GetValue(UINT col, double&amp; value) { int retCode = SQLGetData(m_hstmt, col, SQL_C_DOUBLE, &amp;value, 0, &amp;m_cbValue); ... } </c...
[ { "answer_id": 74448071, "author": "Julio César Estravis", "author_id": 20121447, "author_profile": "https://Stackoverflow.com/users/20121447", "pm_score": 0, "selected": false, "text": "http\n .authorizeExchange((exchanges) ->\n exchanges\n .pathMatchers(\"/openapi/openapi.yml\...
2022/11/15
[ "https://Stackoverflow.com/questions/74447805", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20510540/" ]
74,447,822
<p>I'm trying to print all maximum values</p> <p>so, if the text looks like</p> <p>'''</p> <p>name1 job1 9500.<br /> name2 job2 9500.<br /> name3 job3 4500.</p> <p>'''</p> <p>I want to print it like</p> <p>'''</p> <pre><code>job: job1, sal: 9500 job: job2, sal: 9500 </code></pre> <p>''''</p> <p>so far, my code is</p> <...
[ { "answer_id": 74448071, "author": "Julio César Estravis", "author_id": 20121447, "author_profile": "https://Stackoverflow.com/users/20121447", "pm_score": 0, "selected": false, "text": "http\n .authorizeExchange((exchanges) ->\n exchanges\n .pathMatchers(\"/openapi/openapi.yml\...
2022/11/15
[ "https://Stackoverflow.com/questions/74447822", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17522303/" ]
74,447,848
<p>Hi I'm creating a Teams App and im having trouble implementing a DatePicker in one of my screen. My basic test screen:</p> <pre><code>import React from &quot;react&quot;; import DatePicker from &quot;react-datepicker&quot;; import &quot;react-datepicker/dist/react-datepicker.css&quot;; export default function TestS...
[ { "answer_id": 74448392, "author": "arp", "author_id": 10841628, "author_profile": "https://Stackoverflow.com/users/10841628", "pm_score": 0, "selected": false, "text": "import React, { useState } from \"react\";\nimport DatePicker from \"react-datepicker\";\nimport \"react-datepicker/di...
2022/11/15
[ "https://Stackoverflow.com/questions/74447848", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14543939/" ]
74,447,890
<p>I have a nice piece of C# code which allows me to import data into a table with less columns than in the SQL table (as the file format is consistently bad).</p> <p>My problem comes when I have a blank entry in a column. The values statement does not pickup an empty column from the csv. And so I receive the error</p>...
[ { "answer_id": 74448392, "author": "arp", "author_id": 10841628, "author_profile": "https://Stackoverflow.com/users/10841628", "pm_score": 0, "selected": false, "text": "import React, { useState } from \"react\";\nimport DatePicker from \"react-datepicker\";\nimport \"react-datepicker/di...
2022/11/15
[ "https://Stackoverflow.com/questions/74447890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5748138/" ]
74,447,901
<p>I have a Blazor Wasm app with two components:</p> <p>BaseComp.razor:</p> <pre><code>&lt;h1&gt;I'm base - @Text&lt;/h1&gt; @code{ protected string Text {get; set;} = &quot;Default&quot;; } </code></pre> <p>ChildComponent.razor</p> <pre><code>@inherits BaseComp &lt;BaseComp/&gt; &lt;h1&gt;Hello, only child text...
[ { "answer_id": 74448117, "author": "Marvin Klein", "author_id": 13440841, "author_profile": "https://Stackoverflow.com/users/13440841", "pm_score": 1, "selected": false, "text": "<h1>I'm base - @Text</h1>\n\n@code{\n [Parameter] public string Text {get; set;} = \"Default\";\n}\n <BaseC...
2022/11/15
[ "https://Stackoverflow.com/questions/74447901", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11175348/" ]
74,447,926
<p>I'm trying to make my Discord bot kick a member, and send that &quot;user banned because reason&quot; to a specific channel and not the channel the command was used. The code I'm using:</p> <pre><code>@bot.slash_command(description = &quot;Kick someone&quot;, guild_ids=[1041057700823449682]) @commands.has_permission...
[ { "answer_id": 74448355, "author": "Sam Shields", "author_id": 19261069, "author_profile": "https://Stackoverflow.com/users/19261069", "pm_score": 0, "selected": false, "text": "ctx.channel.send ctx.send @nextcord.slash_command() # I use nextcord, a dpy fork so your setup is gonna be dif...
2022/11/15
[ "https://Stackoverflow.com/questions/74447926", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20417932/" ]
74,447,931
<p>I tried to use sticky to make b_frame take half of a_frame , and c_frame also take half of a_frame. Each frame use half of a_frame. Sum of c_frame and b_frame will use the whole width of a_frame. But it does not work as I expected.</p> <pre><code>a_frame=tk.Frame(frame, highlightbackground=&quot;red&quot;, ...
[ { "answer_id": 74448638, "author": "toyota Supra", "author_id": 4136999, "author_profile": "https://Stackoverflow.com/users/4136999", "pm_score": 0, "selected": false, "text": "import tkinter as tk\nroot= tk.Tk()\n\na_frame=tk.Frame(root, highlightbackground=\"red\",\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74447931", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10688444/" ]
74,447,936
<p>I made a row and I need to separate its children with space between, but it's not separating. This is the code:</p> <pre><code>Container( height: 51, child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Container(width: 56, height: 51, child: ImageIcon(AssetImage(&quot;assets/...
[ { "answer_id": 74448056, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 3, "selected": true, "text": "IntrinsicWidth Container(\n height: 51,\n child: Row(\n mainAxisAlignment: MainAxisAlignment.spaceBetwe...
2022/11/15
[ "https://Stackoverflow.com/questions/74447936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17863939/" ]
74,448,042
<p>I am a contributor to Wikipedia and I would like to make a script with AutoHotKey that could format the wikicode of infoboxes and other similar templates.</p> <p>Infoboxes are templates that displays a box on the side of articles and shows the values of the parameters entered (they are numerous and they differ in nu...
[ { "answer_id": 74448056, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 3, "selected": true, "text": "IntrinsicWidth Container(\n height: 51,\n child: Row(\n mainAxisAlignment: MainAxisAlignment.spaceBetwe...
2022/11/15
[ "https://Stackoverflow.com/questions/74448042", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16593368/" ]
74,448,095
<p>I'm developing a tab based application with Ionic Framework (version 5). The following error occurs only when I modify the code and the application is automatically reloaded on a page other than the &quot;home page&quot;.</p> <p><a href="https://i.stack.imgur.com/Wu0fH.png" rel="nofollow noreferrer"><img src="https:...
[ { "answer_id": 74449298, "author": "James Griffin", "author_id": 8661238, "author_profile": "https://Stackoverflow.com/users/8661238", "pm_score": 0, "selected": false, "text": "tabs-routing.module.ts {\n path: 'new-article',\n loadChildren: () => import('../pages/new-artic...
2022/11/15
[ "https://Stackoverflow.com/questions/74448095", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3422795/" ]
74,448,100
<p>I'm confused as to how exactly I would make 9 random numbers add to whatever number the user may input. Let's say the user inputs &quot;200&quot; as the number, how do I make it so that I could get 9 random numbers add up exactly to 200?</p> <p>Obviously, the code below doesn't work the way I want it to because it's...
[ { "answer_id": 74448235, "author": "MakePeaceGreatAgain", "author_id": 2528063, "author_profile": "https://Stackoverflow.com/users/2528063", "pm_score": 1, "selected": false, "text": "int theSum = 200;\nvar randomNumbers = new int[9];\nfor(int i = 0; i < 8; i)\n{\n randomNumbers[i] = ...
2022/11/15
[ "https://Stackoverflow.com/questions/74448100", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20511555/" ]
74,448,113
<p>I need to check the sequence of calling of some methods of a class.</p> <p>I suppose that my production <code>class A</code> is stored in the following file <em>class_a.py</em>:</p> <pre class="lang-py prettyprint-override"><code>class A: __lock = None def __init__(self, lock): self.__lock = lock ...
[ { "answer_id": 74448235, "author": "MakePeaceGreatAgain", "author_id": 2528063, "author_profile": "https://Stackoverflow.com/users/2528063", "pm_score": 1, "selected": false, "text": "int theSum = 200;\nvar randomNumbers = new int[9];\nfor(int i = 0; i < 8; i)\n{\n randomNumbers[i] = ...
2022/11/15
[ "https://Stackoverflow.com/questions/74448113", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18108367/" ]
74,448,127
<p>I have been trying to get a query output formatted in a specific way but I am surely doing something wrong. Could anyone that knows what I am doing wrong give me a hand? Thanks a lot.</p> <p>I have the following db call:</p> <pre><code> $sql = &quot;SELECT tbl1.spec_num As spec_num, IF(tbl1.s...
[ { "answer_id": 74448205, "author": "RiggsFolly", "author_id": 2310830, "author_profile": "https://Stackoverflow.com/users/2310830", "pm_score": 0, "selected": false, "text": "$stmt = $connection->prepare($sql); \n$stmt->execute();\nwhile ($result = $stmt->fetch(PDO::FETCH_ASSOC)) {\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74448127", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1314786/" ]
74,448,142
<p>A lambda can be easily converted to std::function though this seems to be impossible when the lambda uses generalized capture with a unique_ptr. Likely an underlying std::move is missing. Is there a workaround for this or is this a known issue?</p> <pre><code>#include &lt;iostream&gt; #include &lt;memory&gt; #includ...
[ { "answer_id": 74448248, "author": "doron", "author_id": 232918, "author_profile": "https://Stackoverflow.com/users/232918", "pm_score": 2, "selected": false, "text": "std::shared_ptr" }, { "answer_id": 74448328, "author": "康桓瑋", "author_id": 11638718, "author_profile...
2022/11/15
[ "https://Stackoverflow.com/questions/74448142", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5853141/" ]
74,448,144
<p>Having the nested list like this:</p> <pre><code>lst = [[1,3], [], [2,2,4], [], [3,5]] </code></pre> <p>I'm trying to fill in the empty lists with a value (let's say 0). I know how can do it if we are flatting the list - so then we can use either list comprehension or some pandas solution, but how is it possible to ...
[ { "answer_id": 74448202, "author": "Rafaó", "author_id": 4034593, "author_profile": "https://Stackoverflow.com/users/4034593", "pm_score": 0, "selected": false, "text": "for i, l in enumerate(lst):\n if not l:\n lst[i] = [0]\n\nprint(lst)\n# [[1, 3], [0], [2, 2, 4], [0], [3, 5]...
2022/11/15
[ "https://Stackoverflow.com/questions/74448144", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3079439/" ]
74,448,168
<p>Whenever I try to make a few divs to make a navigation panel at the top of my page it ends up looking like this <a href="https://i.stack.imgur.com/Gafio.png" rel="nofollow noreferrer">Current</a> But I would like those div's side by side, along with that I am unable to put text I got it side by side at one part but ...
[ { "answer_id": 74448202, "author": "Rafaó", "author_id": 4034593, "author_profile": "https://Stackoverflow.com/users/4034593", "pm_score": 0, "selected": false, "text": "for i, l in enumerate(lst):\n if not l:\n lst[i] = [0]\n\nprint(lst)\n# [[1, 3], [0], [2, 2, 4], [0], [3, 5]...
2022/11/15
[ "https://Stackoverflow.com/questions/74448168", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20511579/" ]
74,448,184
<p>Imagine a data set with some time gaps between the records:</p> <pre><code>datatable(t:datetime , v: int) [ datetime(2022-01-01 07:00), 3, datetime(2022-01-01 07:15), 2, datetime(2022-01-01 07:30), 4, datetime(2022-01-01 07:45), 1, datetime(2022-01-01 08:00), 5, // GAP! datetime(2022-01-0...
[ { "answer_id": 74449319, "author": "yifats", "author_id": 10372153, "author_profile": "https://Stackoverflow.com/users/10372153", "pm_score": 3, "selected": true, "text": "datatable(t:datetime , v: int)\n[\n datetime(2022-01-01 07:00), 3,\n datetime(2022-01-01 07:15), 2,\n datet...
2022/11/15
[ "https://Stackoverflow.com/questions/74448184", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19649333/" ]
74,448,186
<p>im new to python and to working with datasets, i'm using a data set that has certain stocks and stuff about them since the 1980's till the late 2010's, i dont want to use any of the stocks in the data set when i use the knn prediction, what can i do?</p> <pre><code>for i in df[&quot;Date&quot;]: if(i.startswith(&q...
[ { "answer_id": 74449319, "author": "yifats", "author_id": 10372153, "author_profile": "https://Stackoverflow.com/users/10372153", "pm_score": 3, "selected": true, "text": "datatable(t:datetime , v: int)\n[\n datetime(2022-01-01 07:00), 3,\n datetime(2022-01-01 07:15), 2,\n datet...
2022/11/15
[ "https://Stackoverflow.com/questions/74448186", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13859338/" ]
74,448,227
<p><a href="https://i.stack.imgur.com/Jweqo.png" rel="nofollow noreferrer">enter image description here</a></p> <pre><code>Failed to convert property value of type java.lang.String[] to required type java.util.List for property tags; nested exception is java.lang.IllegalStateException: Cannot convert value of type java...
[ { "answer_id": 74449319, "author": "yifats", "author_id": 10372153, "author_profile": "https://Stackoverflow.com/users/10372153", "pm_score": 3, "selected": true, "text": "datatable(t:datetime , v: int)\n[\n datetime(2022-01-01 07:00), 3,\n datetime(2022-01-01 07:15), 2,\n datet...
2022/11/15
[ "https://Stackoverflow.com/questions/74448227", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20311174/" ]
74,448,232
<p>I have data as follows:</p> <pre><code>library(data.table) dat &lt;- fread(&quot;total women young 1 0 0 1 1 1 1 0 1 2 1 1 2 2 1 2 2 1 3 1 2 ...
[ { "answer_id": 74448342, "author": "Karthik S", "author_id": 10722752, "author_profile": "https://Stackoverflow.com/users/10722752", "pm_score": 2, "selected": false, "text": "library(dplyr)\ndat %>% mutate(tot = if_else(total > 5, 'over 5', as.character(total))) %>% \n group_by(tot...
2022/11/15
[ "https://Stackoverflow.com/questions/74448232", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8071608/" ]
74,448,240
<p>I have two list, i wanted to merge both the list in next to the same index with the delimiter.</p> <pre><code>list1 = ['1', '2', '3', '4'] list2 = ['A', 'B', 'C', 'D'] </code></pre> <p>Expected result,</p> <pre><code>['1 - A', '2 - B', '3 - C', '4 - D'] </code></pre> <p>I can merge both the lists using <code>Concate...
[ { "answer_id": 74448271, "author": "Mehrdad Pedramfar", "author_id": 3744747, "author_profile": "https://Stackoverflow.com/users/3744747", "pm_score": 3, "selected": true, "text": "zip() list1 = ['1', '2', '3', '4']\nlist2 = ['A', 'B', 'C', 'D']\n\n\nresult = [f'{i} - {j}' for i,j in zip...
2022/11/15
[ "https://Stackoverflow.com/questions/74448240", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4473615/" ]
74,448,247
<p>I have a dataframe with article texts. One row, among others, has several sentences with the copyright symbol, &quot;©&quot;.</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>article_texts</th> </tr> </thead> <tbody> <tr> <td>© Aaron Davidson/Getty Images Aaron Davidson/Getty Images Beyon...
[ { "answer_id": 74448271, "author": "Mehrdad Pedramfar", "author_id": 3744747, "author_profile": "https://Stackoverflow.com/users/3744747", "pm_score": 3, "selected": true, "text": "zip() list1 = ['1', '2', '3', '4']\nlist2 = ['A', 'B', 'C', 'D']\n\n\nresult = [f'{i} - {j}' for i,j in zip...
2022/11/15
[ "https://Stackoverflow.com/questions/74448247", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15073544/" ]
74,448,255
<p>I want to find a value in the following nested array <strong>without using loops</strong>:</p> <pre><code>let children = [ { name: 'grand 1', children: [ { name: 'parent 1.1', children: [ { name: 'child 1.1.1', children: [ // more... ...
[ { "answer_id": 74448910, "author": "Thore", "author_id": 20010246, "author_profile": "https://Stackoverflow.com/users/20010246", "pm_score": 1, "selected": false, "text": "function find(name, children) {\n let [head, ...tail] = children;\n if (head.name === name)\n return head;\n r...
2022/11/15
[ "https://Stackoverflow.com/questions/74448255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20010246/" ]
74,448,292
<p>I have created a branch called &quot;multiple_fixes&quot; off my Dev branch and have been working there for a couple weeks. While I was working on my branch, several other people have created branches after I created mine, and have since made pull requests into the Dev branch.</p> <p>Now, I am ready to merge my cha...
[ { "answer_id": 74448910, "author": "Thore", "author_id": 20010246, "author_profile": "https://Stackoverflow.com/users/20010246", "pm_score": 1, "selected": false, "text": "function find(name, children) {\n let [head, ...tail] = children;\n if (head.name === name)\n return head;\n r...
2022/11/15
[ "https://Stackoverflow.com/questions/74448292", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15995125/" ]
74,448,304
<p>I have a list of terms that I've accomplished through a split (<code>split = str_split(terms, &quot;//&quot;)</code>), where each element would be a row, and within each element the values of three different columns appear sequentially:</p> <pre><code>split [[1]] [1] &quot;value_col_1_1&quot; &quot;value_col_2_1&qu...
[ { "answer_id": 74448352, "author": "Alberto Agudo Dominguez", "author_id": 15459665, "author_profile": "https://Stackoverflow.com/users/15459665", "pm_score": 0, "selected": false, "text": "df[\"first_col\"] <- sapply(split, function(x) x[1])\ndf[\"second_col\"] <- sapply(split, function...
2022/11/15
[ "https://Stackoverflow.com/questions/74448304", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15459665/" ]
74,448,326
<p>My vscode can't run any code.I've been trying to fix it for 2-3 days now but that doesn't work.I don't know it about I try to setup c/c++ in vscode about 15 days ago that time it work it can c c++ python however this few day I back to code something and have found can't run any code.</p> <p>can anyone please suggest...
[ { "answer_id": 74448899, "author": "Anonymous", "author_id": 20510770, "author_profile": "https://Stackoverflow.com/users/20510770", "pm_score": 1, "selected": false, "text": "ctrl + shift + x python example.py\n" } ]
2022/11/15
[ "https://Stackoverflow.com/questions/74448326", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20506941/" ]
74,448,333
<p>There is a use case in which I have a long <code>String</code> which can contain many <code>&lt;img&gt;</code> tags. I need to collect the entire image tag from start(<code>&lt;img src=&quot;</code>) to close(<code>&quot;&gt;</code>) in a List.</p> <p>I wrote a regex(<code>&quot;&lt;img.*?\&quot;&gt;&quot;gm</code>)...
[ { "answer_id": 74448446, "author": "Vinz", "author_id": 17173476, "author_profile": "https://Stackoverflow.com/users/17173476", "pm_score": 2, "selected": false, "text": "final List<String> result = new ArrayList<>();\nwhile (matcher.find()) {\n result.add(matcher.group());\n}\n fina...
2022/11/15
[ "https://Stackoverflow.com/questions/74448333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16696520/" ]
74,448,344
<p>I have trained a BERTopic model on a dataframe of length of 400k. I want to map the topics of each document in a new column inside the dataframe. I could do that by running a for loop on all the documents and do <code>topic_model.transform(doc)</code> on them. The only problem is, it takes more than a second to tran...
[ { "answer_id": 74448446, "author": "Vinz", "author_id": 17173476, "author_profile": "https://Stackoverflow.com/users/17173476", "pm_score": 2, "selected": false, "text": "final List<String> result = new ArrayList<>();\nwhile (matcher.find()) {\n result.add(matcher.group());\n}\n fina...
2022/11/15
[ "https://Stackoverflow.com/questions/74448344", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19924026/" ]
74,448,347
<p>I`m trying to extract the src URL/path without the quotes, only in the case it is an image:</p> <blockquote> <ol> <li>src=&quot;/path/image.png&quot; // should capture =&gt; /path/image.png</li> <li>src=&quot;/path/image.bmp&quot; // should capture =&gt; /path/image.bmp</li> <li>src=&quot;/path/image.jpg&quot; // sh...
[ { "answer_id": 74448367, "author": "pzelenovic", "author_id": 717683, "author_profile": "https://Stackoverflow.com/users/717683", "pm_score": -1, "selected": false, "text": "src=\"(.*image.*)\"" }, { "answer_id": 74448410, "author": "Eterm", "author_id": 1635976, "aut...
2022/11/15
[ "https://Stackoverflow.com/questions/74448347", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11276458/" ]
74,448,353
<p>Unlike <a href="https://stackoverflow.com/questions/47860772/gitlab-remote-http-basic-access-denied-and-fatal-authentication">this post</a> im authorized in gitLab via GitHub</p> <p>I am authorized in gitLab via gitHub and I trying to clone project with URL.</p> <p>So when I trying to do steps below for a new projec...
[ { "answer_id": 74448367, "author": "pzelenovic", "author_id": 717683, "author_profile": "https://Stackoverflow.com/users/717683", "pm_score": -1, "selected": false, "text": "src=\"(.*image.*)\"" }, { "answer_id": 74448410, "author": "Eterm", "author_id": 1635976, "aut...
2022/11/15
[ "https://Stackoverflow.com/questions/74448353", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20501796/" ]
74,448,363
<p>I am trying to find out if a hex color is &quot;blue&quot;. This might be a very subjective thing when comparing different (lighter/ darker) shades of blue or close to blue colors but in my case it does not have to be very precise. I just want to determine if a color is blue or not.</p> <p>The more generalized quest...
[ { "answer_id": 74448594, "author": "Tyler Aldrich", "author_id": 1580425, "author_profile": "https://Stackoverflow.com/users/1580425", "pm_score": 2, "selected": true, "text": " Black #000000 (0,0,0)\n White #FFFFFF (255,255,255)\n Red #FF0000 (255,0,0)\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74448363", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4644897/" ]
74,448,371
<p>I have below code which writes data into AWS s3 location using Glue job, but at the end it is saving in part file, but my requirement is to save filename as filename.json or filename.parquet</p> <pre><code>s3_loc = &quot;s3a://s3_location/path&quot; ##this is the default part of the glue script job = Job(glueConte...
[ { "answer_id": 74448594, "author": "Tyler Aldrich", "author_id": 1580425, "author_profile": "https://Stackoverflow.com/users/1580425", "pm_score": 2, "selected": true, "text": " Black #000000 (0,0,0)\n White #FFFFFF (255,255,255)\n Red #FF0000 (255,0,0)\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74448371", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20511658/" ]
74,448,382
<p>I've got a group of files with <strong>only one</strong> specific extension under one specific directory. How do I check whether I've got at least one of those files. If at least one file with that specific extension is present, then print <em>at least one file matching your extension is present in your directory</e...
[ { "answer_id": 74448594, "author": "Tyler Aldrich", "author_id": 1580425, "author_profile": "https://Stackoverflow.com/users/1580425", "pm_score": 2, "selected": true, "text": " Black #000000 (0,0,0)\n White #FFFFFF (255,255,255)\n Red #FF0000 (255,0,0)\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74448382", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3585282/" ]
74,448,405
<p>As mentioned in cppreference: <a href="https://en.cppreference.com/w/cpp/language/copy_elision" rel="nofollow noreferrer">https://en.cppreference.com/w/cpp/language/copy_elision</a></p> <p>it is guaranteed in c++17 that copy elision must be applied for some cases like</p> <pre><code>SomeBigObject SomeBigObject::Fact...
[ { "answer_id": 74448594, "author": "Tyler Aldrich", "author_id": 1580425, "author_profile": "https://Stackoverflow.com/users/1580425", "pm_score": 2, "selected": true, "text": " Black #000000 (0,0,0)\n White #FFFFFF (255,255,255)\n Red #FF0000 (255,0,0)\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74448405", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4845608/" ]
74,448,412
<p>I hope you are able to help me.</p> <p>My question is:</p> <p>When passing an instance of an object that is in an arraylist, and I pass that arraylist to another class, how do I access it's atributes?</p> <p>I can access the attributes before passing it to another class.</p> <p>The &quot;Main&quot; class, passes on ...
[ { "answer_id": 74448567, "author": "aatwork", "author_id": 14263933, "author_profile": "https://Stackoverflow.com/users/14263933", "pm_score": 1, "selected": false, "text": "public void addEmployees(ArrayList<Employees> listOfEmployees){\n" }, { "answer_id": 74448789, "author...
2022/11/15
[ "https://Stackoverflow.com/questions/74448412", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17703613/" ]
74,448,466
<p>how could I know which domain are used for the download of my docker image ?</p> <p>I need it cause the server I'm using only a allow a specific list of domain name for outside traffic.</p>
[ { "answer_id": 74448567, "author": "aatwork", "author_id": 14263933, "author_profile": "https://Stackoverflow.com/users/14263933", "pm_score": 1, "selected": false, "text": "public void addEmployees(ArrayList<Employees> listOfEmployees){\n" }, { "answer_id": 74448789, "author...
2022/11/15
[ "https://Stackoverflow.com/questions/74448466", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15249330/" ]
74,448,485
<p>I need to change the following field to text like this:</p> <p>0-250000 to '$0 to $250,000'</p> <p>I have to do it multiple times. Is there a way to automate this? For a variety of numbers..</p> <p>I have been doing it manually and it takes a long time</p>
[ { "answer_id": 74448623, "author": "Warcupine", "author_id": 11643528, "author_profile": "https://Stackoverflow.com/users/11643528", "pm_score": 2, "selected": false, "text": "Find Mid Dollar =DOLLAR(MID(A1,1,FIND(\"-\",A1,1) - 1),0) & \" to \" & DOLLAR(MID(A1,FIND(\"-\",A1,1) + 1,LEN(A1...
2022/11/15
[ "https://Stackoverflow.com/questions/74448485", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20511781/" ]
74,448,486
<p>I have the following 4 components:</p> <pre><code>&lt;app-game-control (intervalFired)=&quot;onEmittedCount($event)&quot;&gt;&lt;/app-game-control&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-2&quot;&gt; &lt;app-odd *ngFor=&quot;let evenNumber of arrEvenNumber;index as i&quot; [number]=&qu...
[ { "answer_id": 74448685, "author": "Rajat", "author_id": 3266218, "author_profile": "https://Stackoverflow.com/users/3266218", "pm_score": 0, "selected": false, "text": ":host ::ng-deep .odd {\n background: red;\n}\n :host ::ng-deep" }, { "answer_id": 74448745, "author": "Sa...
2022/11/15
[ "https://Stackoverflow.com/questions/74448486", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17281101/" ]
74,448,527
<p>I would like to filter out rows based on two column, one column is the ID and the other is a string of IDs (collapses by &quot;,&quot;) that should be kept.</p> <p>Example:</p> <pre><code> library(dplyr) mtcars2 &lt;- mtcars%&gt;% mutate(carb_l=letters[carb], # This is the ID carb_list=&quot;c,f,h&quot;)...
[ { "answer_id": 74448584, "author": "Jilber Urbina", "author_id": 1315767, "author_profile": "https://Stackoverflow.com/users/1315767", "pm_score": 2, "selected": false, "text": "mtcars2 %>% \n filter(carb_l %in% strsplit(mtcars2$carb_list[1], \",\")[[1]])\n hp drat wt q...
2022/11/15
[ "https://Stackoverflow.com/questions/74448527", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17918739/" ]
74,448,563
<p>I am creating react context that requires an initial value like these</p> <pre><code>export const HotelSearchContext = createContext&lt;HotelSearch&gt;({ checkInDate: null, checkOutDate: null, setCheckInDate: null, setCheckOutDate: null, }); </code></pre> <p>Type <strong>HotelSearch</strong></p> <pre><code>e...
[ { "answer_id": 74448584, "author": "Jilber Urbina", "author_id": 1315767, "author_profile": "https://Stackoverflow.com/users/1315767", "pm_score": 2, "selected": false, "text": "mtcars2 %>% \n filter(carb_l %in% strsplit(mtcars2$carb_list[1], \",\")[[1]])\n hp drat wt q...
2022/11/15
[ "https://Stackoverflow.com/questions/74448563", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19124826/" ]
74,448,566
<p>This is the workflow I need to accomplish:</p> <ol> <li>Validate the date format of all dates in column_1 and column_2.</li> <li>If date is not in either format: mm/dd/yy hh:mm or mm/dd/yyyy hh:mm</li> <li><em>Need assistance</em> - Print the non-matching values.</li> </ol> <p><strong>Note:</strong> I do not know wh...
[ { "answer_id": 74448584, "author": "Jilber Urbina", "author_id": 1315767, "author_profile": "https://Stackoverflow.com/users/1315767", "pm_score": 2, "selected": false, "text": "mtcars2 %>% \n filter(carb_l %in% strsplit(mtcars2$carb_list[1], \",\")[[1]])\n hp drat wt q...
2022/11/15
[ "https://Stackoverflow.com/questions/74448566", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2325014/" ]
74,448,602
<p>I have a multiple tag in my webpage with the same class called price. Each tag is of that form</p> <pre><code>&lt;p class=&quot;price&quot;&gt;Price: 45$&lt;/p&gt; &lt;p class=&quot;price&quot;&gt;Price: 32$&lt;/p&gt; </code></pre> <p>What I need at the end is to separate the price text in a span and the price in an...
[ { "answer_id": 74448584, "author": "Jilber Urbina", "author_id": 1315767, "author_profile": "https://Stackoverflow.com/users/1315767", "pm_score": 2, "selected": false, "text": "mtcars2 %>% \n filter(carb_l %in% strsplit(mtcars2$carb_list[1], \",\")[[1]])\n hp drat wt q...
2022/11/15
[ "https://Stackoverflow.com/questions/74448602", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19533023/" ]
74,448,608
<p>I don't understand why is not working on my code</p> <pre><code>def random_calculation(num): return((num*77 + (90+2-9+3))) while random_calculation: num = int(input(&quot;Pleace enter number: &quot;)) if num == &quot;0&quot;: break else: print(random_calculation(num)) </code></pre> ...
[ { "answer_id": 74448765, "author": "Sembei Norimaki", "author_id": 20396240, "author_profile": "https://Stackoverflow.com/users/20396240", "pm_score": 2, "selected": true, "text": "while random_calculation def random_calculation(num):\n # 90+2-9+3 is a bit strange, but not incorrect.\...
2022/11/15
[ "https://Stackoverflow.com/questions/74448608", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20511870/" ]
74,448,666
<p>In Docker compose, is it possible for a container A to wait for a container B to finish (aka, stop running) before starting?</p> <p>I have 3 containers in my docker compose:</p> <ul> <li>Container A is a MySQL database</li> <li>Container B is a Flyway container that has some SQL migrations on a certain schema1. Afte...
[ { "answer_id": 74462587, "author": "RabidTunes", "author_id": 3730586, "author_profile": "https://Stackoverflow.com/users/3730586", "pm_score": 0, "selected": false, "text": "restart on-failure -baselineOnMigrate=\"false\"" } ]
2022/11/15
[ "https://Stackoverflow.com/questions/74448666", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3730586/" ]
74,448,683
<p>I have some data taken at different time points in wide format, and need to convert it to long format to aid with analysis and to merge it with another dataset.</p> <p>The format of the data is (where A_0 means value of A at time 0, A_15 means value at time 15):</p> <pre><code>import pandas as pd df_wide = pd.DataF...
[ { "answer_id": 74449215, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 2, "selected": false, "text": "pd.wide_to_long x = pd.wide_to_long(\n df_wide, i=\"Subject\", j=\"Time\", stubnames=[\"A\", \"B\", \"C\"...
2022/11/15
[ "https://Stackoverflow.com/questions/74448683", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20510070/" ]
74,448,687
<p>I have this custom component in vue callled &quot;dm-vehicle-spec&quot;</p> <pre><code> &lt;dm-vehicle-spec @_handleRemoveSpec=&quot;_handleRemoveSpec&quot; v-for=&quot;spec, index in vehicleSpecs&quot; :key=&quot;index&quot; :index=&quot;index&quot; :spec=&quot;spec&quot;&gt;&lt;/dm-vehicle-spec&gt; </code></pre> <...
[ { "answer_id": 74449316, "author": "Nikola Pavicevic", "author_id": 11989189, "author_profile": "https://Stackoverflow.com/users/11989189", "pm_score": 0, "selected": false, "text": "Vue.component('dmVehicleSpec', {\n template: `\n <div class=\"specs-row flex gap-2 w-full items-cente...
2022/11/15
[ "https://Stackoverflow.com/questions/74448687", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15664021/" ]
74,448,701
<p>I am currently working on a task where I need to synchronize the data, example:</p> <p>Client makes a request to get data to the API (API has access to the database), client received the data and saves it to the list. That list is used for some time etc..... Then in the meanwhile another client accesses the same API...
[ { "answer_id": 74449316, "author": "Nikola Pavicevic", "author_id": 11989189, "author_profile": "https://Stackoverflow.com/users/11989189", "pm_score": 0, "selected": false, "text": "Vue.component('dmVehicleSpec', {\n template: `\n <div class=\"specs-row flex gap-2 w-full items-cente...
2022/11/15
[ "https://Stackoverflow.com/questions/74448701", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13628517/" ]
74,448,716
<p>So I have this huge line-by-line std::string variable which is about 58 thousand lines.<br /> How could I select my entire variable? By clicking and dragging I think it takes about 5 minutes :)</p> <p>This is how I stored my string:</p> <pre><code>std::string str = &quot;504b0304140000000800b3ab584fd82c4d1ec01b00002...
[ { "answer_id": 74449141, "author": "tomiis", "author_id": 16413572, "author_profile": "https://Stackoverflow.com/users/16413572", "pm_score": 0, "selected": false, "text": "Ctrl + Alt + right arrow/arrow" }, { "answer_id": 74449294, "author": "Michael_313", "author_id": 1...
2022/11/15
[ "https://Stackoverflow.com/questions/74448716", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17111457/" ]
74,448,721
<p>I have a problem with creating a matrix with user input and rotate it 90 degrees. Anyone knows why there is a problem with the range of the matrix?</p> <p>The problem is when the elements are entered and it only shows up like 2 or 3 elements even if i write that I want 16..</p> <pre><code>public static void main(Str...
[ { "answer_id": 74449141, "author": "tomiis", "author_id": 16413572, "author_profile": "https://Stackoverflow.com/users/16413572", "pm_score": 0, "selected": false, "text": "Ctrl + Alt + right arrow/arrow" }, { "answer_id": 74449294, "author": "Michael_313", "author_id": 1...
2022/11/15
[ "https://Stackoverflow.com/questions/74448721", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20313901/" ]
74,448,730
<p>I have this array of objects</p> <pre><code>const data = [ { id: 0, ALT_VALUE: 11, DLT_VALUE: 76 }, { id: 1, ALT_VALUE: 80, DLT_VALUE: 48 }, { id: 2, ALT_VALUE: 90, DLT_VALUE: 100 }, { id: 3, ALT_VALUE: 12, DLT_VALUE: 70 }, { id: 4, ALT_VALUE: 90, DLT_VALUE: 100 }, { id: 5, ALT_VALUE: 13, DLT...
[ { "answer_id": 74449141, "author": "tomiis", "author_id": 16413572, "author_profile": "https://Stackoverflow.com/users/16413572", "pm_score": 0, "selected": false, "text": "Ctrl + Alt + right arrow/arrow" }, { "answer_id": 74449294, "author": "Michael_313", "author_id": 1...
2022/11/15
[ "https://Stackoverflow.com/questions/74448730", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12262686/" ]
74,448,734
<p>what is the best way to check the false &amp; true condition in this case, i have a state set to false initially</p> <pre><code>status: false, </code></pre> <p>The status changes to true if a certain props is present (data-widget) do i need to add the =&quot;true&quot; to the attribut?</p> <pre><code>&lt;div id=&quo...
[ { "answer_id": 74449141, "author": "tomiis", "author_id": 16413572, "author_profile": "https://Stackoverflow.com/users/16413572", "pm_score": 0, "selected": false, "text": "Ctrl + Alt + right arrow/arrow" }, { "answer_id": 74449294, "author": "Michael_313", "author_id": 1...
2022/11/15
[ "https://Stackoverflow.com/questions/74448734", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9179833/" ]
74,448,753
<p>I have a (somewhat long) list of words. And a function 1 (linsok(lista, elem)) which asks the user for a word, and if the user-inputted word exists in the list, we get a confirmation in the form of exists/does not exist.</p> <p>I then have a 2nd function which for any word in the list will create 4 variations of it ...
[ { "answer_id": 74449141, "author": "tomiis", "author_id": 16413572, "author_profile": "https://Stackoverflow.com/users/16413572", "pm_score": 0, "selected": false, "text": "Ctrl + Alt + right arrow/arrow" }, { "answer_id": 74449294, "author": "Michael_313", "author_id": 1...
2022/11/15
[ "https://Stackoverflow.com/questions/74448753", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20511891/" ]
74,448,782
<p>I was creating an if-else loop based on the type of variable, to either convert a list of numbers to kilograms, or simply one number, and for some reason I cannot call the variable I created into my main() function. I am a beginner to python and any help would be appreciated. Here is my code:</p> <pre><code># Testin...
[ { "answer_id": 74449141, "author": "tomiis", "author_id": 16413572, "author_profile": "https://Stackoverflow.com/users/16413572", "pm_score": 0, "selected": false, "text": "Ctrl + Alt + right arrow/arrow" }, { "answer_id": 74449294, "author": "Michael_313", "author_id": 1...
2022/11/15
[ "https://Stackoverflow.com/questions/74448782", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20511974/" ]
74,448,790
<p>I've created an azure **serverless ** sql database. It seems there is no way to backup/restore this type of databases. I know there is restore to a point in time feature, But I what to download and save database backups my self.</p> <p>Is there a way to backup serverless azure sql databases?</p> <p>1-) There is no B...
[ { "answer_id": 74449141, "author": "tomiis", "author_id": 16413572, "author_profile": "https://Stackoverflow.com/users/16413572", "pm_score": 0, "selected": false, "text": "Ctrl + Alt + right arrow/arrow" }, { "answer_id": 74449294, "author": "Michael_313", "author_id": 1...
2022/11/15
[ "https://Stackoverflow.com/questions/74448790", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8744886/" ]
74,448,793
<p>Still learning sql, but I'm not understanding how all the data I'm putting in my tables are set to 0 or NULL ?</p> <p><a href="https://i.stack.imgur.com/VPLIU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VPLIU.png" alt="MySql commands" /></a></p>
[ { "answer_id": 74448869, "author": "Noscere", "author_id": 10728583, "author_profile": "https://Stackoverflow.com/users/10728583", "pm_score": 1, "selected": false, "text": "INSERT INTO users (email, name, forename, pwdssh)\n VALUES ('email', 'name', 'blaa', 'befbf');\n id email='emai...
2022/11/15
[ "https://Stackoverflow.com/questions/74448793", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16092107/" ]
74,448,821
<p>I am writing a C function <code>GetDeviceList()</code> which must return a list of device names found as strings somehow. The number of devices found and of course the device names themselves will vary each time the function is called.</p> <p>How the function gets the device names is not the scope of this question, ...
[ { "answer_id": 74449359, "author": "Jabberwocky", "author_id": 898348, "author_profile": "https://Stackoverflow.com/users/898348", "pm_score": 2, "selected": false, "text": "GetDeviceList() 'A', 'A', 0, 'B', 'B', 0, 'C', 'C', 0, 0 const char *GetDeviceList()\n{\n static char devicelist[...
2022/11/15
[ "https://Stackoverflow.com/questions/74448821", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4768946/" ]
74,448,831
<p><a href="https://i.stack.imgur.com/d2KAv.png" rel="nofollow noreferrer">How to target an element with random id</a></p> <p>I tried to use xpath, but doesn't worked</p>
[ { "answer_id": 74449359, "author": "Jabberwocky", "author_id": 898348, "author_profile": "https://Stackoverflow.com/users/898348", "pm_score": 2, "selected": false, "text": "GetDeviceList() 'A', 'A', 0, 'B', 'B', 0, 'C', 'C', 0, 0 const char *GetDeviceList()\n{\n static char devicelist[...
2022/11/15
[ "https://Stackoverflow.com/questions/74448831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17642160/" ]
74,448,842
<p>My (first) web app uses pydub, which depends on ffmpeg. On my local windows environment, I installed ffmpeg and added the path to the ffmpeg executables to the windows &quot;path&quot; environment variables.</p> <p>It all works locally, but bow that I have deployed my app to PythonAnywhere, the following line in my ...
[ { "answer_id": 74449359, "author": "Jabberwocky", "author_id": 898348, "author_profile": "https://Stackoverflow.com/users/898348", "pm_score": 2, "selected": false, "text": "GetDeviceList() 'A', 'A', 0, 'B', 'B', 0, 'C', 'C', 0, 0 const char *GetDeviceList()\n{\n static char devicelist[...
2022/11/15
[ "https://Stackoverflow.com/questions/74448842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17072084/" ]
74,448,850
<p>I have a grid, inside which is four divs. The four divs are also <code>display: grid</code>. Inside each of the four divs is a link. One of the links contains text that goes on to an extra line. This makes all the divs in the grid taller. But link <code>hover</code> on the shorter links does not stretch to the botto...
[ { "answer_id": 74448932, "author": "Boguz", "author_id": 5509709, "author_profile": "https://Stackoverflow.com/users/5509709", "pm_score": 0, "selected": false, "text": "height: 100% * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\n.block-intro {\n display: grid;\n gri...
2022/11/15
[ "https://Stackoverflow.com/questions/74448850", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2991837/" ]
74,448,864
<p>How do I enable an arm64 extensions such as FEAT_XNX ?</p> <p>I'm working on stage 2 page table execution permission on arm64, currently looking into D5.4.6 section of the manual.</p> <p>It mentions that the XN pair only describe stage 2 controle only when FEAT_XNX is implemented. In my systems it seems that FEAT_XN...
[ { "answer_id": 74449204, "author": "Peter Maydell", "author_id": 4499941, "author_profile": "https://Stackoverflow.com/users/4499941", "pm_score": 3, "selected": true, "text": "cortex-a76 neoverse-n1 a64fx max" }, { "answer_id": 74449224, "author": "Nate Eldredge", "autho...
2022/11/15
[ "https://Stackoverflow.com/questions/74448864", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18940368/" ]
74,448,871
<p>In a custom function, I want to run an <code>if</code> condition if my vector only has one unique value. I can use <code>length(unique(x)) == 1</code>. However, I think that this could be more efficient: instead of getting all the unique values in the vector and then count them, I could just stop after having found ...
[ { "answer_id": 74449034, "author": "Carl Witthoft", "author_id": 884372, "author_profile": "https://Stackoverflow.com/users/884372", "pm_score": 0, "selected": false, "text": "if(mean(x) == x[1]) mean( x,x-1,x+1) == x sd(x) == 0 length(rle(sort(x)$values) rle microbenchmark" }, { ...
2022/11/15
[ "https://Stackoverflow.com/questions/74448871", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11598948/" ]
74,448,872
<p>I have this:</p> <pre><code>class PageService { static int CurrentPage = 0; } </code></pre> <p>And I have this:</p> <pre><code>import 'package:flutter/material.dart'; import '../services/page_service.dart'; class NavigationMenu extends StatefulWidget { const NavigationMenu({super.key}); @override State&lt...
[ { "answer_id": 74449034, "author": "Carl Witthoft", "author_id": 884372, "author_profile": "https://Stackoverflow.com/users/884372", "pm_score": 0, "selected": false, "text": "if(mean(x) == x[1]) mean( x,x-1,x+1) == x sd(x) == 0 length(rle(sort(x)$values) rle microbenchmark" }, { ...
2022/11/15
[ "https://Stackoverflow.com/questions/74448872", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2661419/" ]
74,448,889
<p>I'm at a loss here, and I realise I may be going the long way around, but I can't figure it out. I have a datetime in UTC, curr. It is not being saved in 24 hr time, so I can convert it to a string s, which is indeed a string in 24 hr time. Now I want to save it back as a datetime still retaining the 24 hr time, but...
[ { "answer_id": 74449049, "author": "Tim Schmelter", "author_id": 284240, "author_profile": "https://Stackoverflow.com/users/284240", "pm_score": 2, "selected": false, "text": "DateTime Console.WriteLine(foo) DateTime.ToString DateTime.ToString DateTime DateTime.ToString DateTime" }, ...
2022/11/15
[ "https://Stackoverflow.com/questions/74448889", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1144431/" ]
74,448,892
<p>I'm trying to create a worker that listens to http requests and adds jobs IDs to a queue. I'm using Python's built-in multiprocessing module for that.</p> <p>I need a Pool with a few processes that will process the job from queue and respawn. Processes have to restart, bacause for some cases job processing can cause...
[ { "answer_id": 74449049, "author": "Tim Schmelter", "author_id": 284240, "author_profile": "https://Stackoverflow.com/users/284240", "pm_score": 2, "selected": false, "text": "DateTime Console.WriteLine(foo) DateTime.ToString DateTime.ToString DateTime DateTime.ToString DateTime" }, ...
2022/11/15
[ "https://Stackoverflow.com/questions/74448892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9737275/" ]
74,448,900
<p>I have a static HTML page at the address <code>https://MyPage/index.html</code></p> <p>The page contains several images, which are located at <code>https://MyPage/MyImages</code></p> <p>The images are linked in the HTML source code like this:</p> <p><code>…&lt;span&gt;&lt;img width=x height=y src=&quot;MyImages/ima...
[ { "answer_id": 74449180, "author": "pier farrugia", "author_id": 19996700, "author_profile": "https://Stackoverflow.com/users/19996700", "pm_score": 2, "selected": false, "text": "const time_to_img = () => {\n document.querySelectorAll('img').forEach(e => {\n const dateStr = Date.now...
2022/11/15
[ "https://Stackoverflow.com/questions/74448900", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1388921/" ]
74,448,921
<p>I have build a result page for a calculation. It's basically a CSS-grid in a DIV. The grid has three columns. In each column there are tiles (divs) which contain tables (which show the results).</p> <p>In JavaScript I calculate the result tables and assign them to the tables. There is an outermost div where I set di...
[ { "answer_id": 74453022, "author": "Dave Pritlove", "author_id": 2005666, "author_profile": "https://Stackoverflow.com/users/2005666", "pm_score": 1, "selected": false, "text": "display: table/table-row/table-cell display: grid table grid display: table <table><tr><td>... display: table-...
2022/11/15
[ "https://Stackoverflow.com/questions/74448921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12270886/" ]
74,448,945
<p>Is there a way to execute <code>DateTime.Parse</code> on a tuple in C#.</p> <p>I am using Specflow and part of the tests I am executing involve testing a list of <code>DateTime</code> tuples (e.g. <code>List&lt;(DateTime, DateTime)&gt;</code>). In this step I am taking in a string, parsing it into a list of strings,...
[ { "answer_id": 74449441, "author": "Olivier Jacot-Descombes", "author_id": 880990, "author_profile": "https://Stackoverflow.com/users/880990", "pm_score": 2, "selected": false, "text": "DateTime.Parse string[] a = tupleString.Split('=');\nvar timeTuple = (first: DateTime.Parse(a[0]), sec...
2022/11/15
[ "https://Stackoverflow.com/questions/74448945", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5571692/" ]
74,448,946
<p>I have the following code segment in python</p> <pre><code> if mask &amp; selectors.EVENT_READ: recv_data = sock.recv(1024) if recv_data: data.outb += recv_data else: print(f&quot;Closing connection to {data.addr}&quot;) </code></pre> <p>Would I read this as: 'if mask and selectos.EV...
[ { "answer_id": 74449031, "author": "chepner", "author_id": 1126841, "author_profile": "https://Stackoverflow.com/users/1126841", "pm_score": 1, "selected": true, "text": "bytes sock.recv b'' if recv_data != b'':\n ...\n & mask & selectors.EVENT_READ mask selectors.EVENT_READ int mask ...
2022/11/15
[ "https://Stackoverflow.com/questions/74448946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20462841/" ]
74,448,964
<p>I have a long config file which looks like:</p> <pre><code>&lt;some stuff before our example&gt; 'Realtime' =&gt; [ 'foo' =&gt; 'bar', 'enabled' =&gt; true, 'lorem' =&gt; 'ipsum' ], &lt;some stuff after our example&gt; </code></pre> <p>The above is a large config php file and I was as...
[ { "answer_id": 74449220, "author": "markp-fuso", "author_id": 7366100, "author_profile": "https://Stackoverflow.com/users/7366100", "pm_score": 2, "selected": false, "text": "awk awk -F\"'\" ' # define input field delimiter as single quote\n$2 ...
2022/11/15
[ "https://Stackoverflow.com/questions/74448964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/436560/" ]
74,448,975
<p>Let's say I have a dataframe like this:</p> <pre><code>import pandas as pd df = pd.DataFrame([[1,2,3,&quot;P&quot;, 1, &quot;A&quot;, &quot;SOMETHING&quot;], [1,2,3,&quot;C&quot;, 0, &quot;B&quot;, &quot;NOTHING&quot;], [1,2,3,&quot;C&quot;, 0, &quot;B&quot;, &quot;SOMETHING&quot...
[ { "answer_id": 74449220, "author": "markp-fuso", "author_id": 7366100, "author_profile": "https://Stackoverflow.com/users/7366100", "pm_score": 2, "selected": false, "text": "awk awk -F\"'\" ' # define input field delimiter as single quote\n$2 ...
2022/11/15
[ "https://Stackoverflow.com/questions/74448975", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7497912/" ]
74,449,024
<p>Right now I have two functions:</p> <pre><code>public void func(Unity.Collections.NativeArray&lt;ushort&gt; a){} public void func(Unity.Collections.NativeArray&lt;short&gt; a){} </code></pre> <p>The functions are the exact same besides the object datatype input. I am also not writing to these NativeArrays, so the ...
[ { "answer_id": 74449058, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 2, "selected": false, "text": "public void func<T>(Unity.Collections.NativeArray<T> a) where T : struct\n{}\n NativeArray<T> where T : struct wher...
2022/11/15
[ "https://Stackoverflow.com/questions/74449024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15939414/" ]
74,449,077
<p>Can You give me tips how I can add to copied files name the prefix comes from name of sub-directory for example</p> <p>this is my source dir <code>'/home/ip/input/IP10/STAT-IP_202211151610_7428/some_files'</code></p> <pre><code>import os import glob import shutil for f in glob.glob('/opt/data/input/IP10/**/*.*', r...
[ { "answer_id": 74449058, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 2, "selected": false, "text": "public void func<T>(Unity.Collections.NativeArray<T> a) where T : struct\n{}\n NativeArray<T> where T : struct wher...
2022/11/15
[ "https://Stackoverflow.com/questions/74449077", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17183340/" ]
74,449,116
<p>I’m having re-rendering issues, any help is greatly appreciated. I tried useMemo and useCallback and it broke the checkbox. I have a component, and inside that component, I display some info in my object. I have let's say an object as such:</p> <pre><code>fakeObject = { name: &quot;rectangle&quot; width: 10 height: ...
[ { "answer_id": 74449677, "author": "kind user", "author_id": 6695924, "author_profile": "https://Stackoverflow.com/users/6695924", "pm_score": 2, "selected": true, "text": "Child const Checkbox = () => {\n const [checked, setChecked] = useState(false);\n console.log('child re-render');...
2022/11/15
[ "https://Stackoverflow.com/questions/74449116", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14764973/" ]
74,449,178
<p>I'm new to using axios and stripe and I'm encountering some issues. When I try to make a post request with axios I receive this error:</p> <p><a href="https://i.stack.imgur.com/4rFrb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4rFrb.png" alt="This is the error I receive when making a post requ...
[ { "answer_id": 74449348, "author": "ymz", "author_id": 4062197, "author_profile": "https://Stackoverflow.com/users/4062197", "pm_score": 1, "selected": false, "text": "app.post(\"/payments/create\", ...\n app.post(\"/payments/create/\", ...\n app.post(\"/payments/create/\", async (reques...
2022/11/15
[ "https://Stackoverflow.com/questions/74449178", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18076768/" ]
74,449,198
<p>I'm trying to pass an array into a method. The idea is a random number is generated, <code>i</code>, and the value of <code>xArray[i]</code> is copied into <code>yArray[x]</code>, where <code>x = 0</code> is increased with each run.</p> <p>What I don't understand is the array I pass into the method is modified as we...
[ { "answer_id": 74449768, "author": "Bustikiller", "author_id": 3607039, "author_profile": "https://Stackoverflow.com/users/3607039", "pm_score": 2, "selected": true, "text": "xArray = inputArray inputArray xArray.delete_at(x) .dup xArray = inputArray.dup inputArray xArray" }, { "...
2022/11/15
[ "https://Stackoverflow.com/questions/74449198", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12240884/" ]
74,449,226
<p>I'nm new to the tensorflow and I'm trying to train a CNN for image classification. Here is the error I got:</p> <pre><code>2022-11-15 11:18:50.087877: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found 2022-11-15 11:1...
[ { "answer_id": 74452536, "author": "YiSan", "author_id": 9282082, "author_profile": "https://Stackoverflow.com/users/9282082", "pm_score": 1, "selected": false, "text": "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\bin C:\\Windows\\System32" } ]
2022/11/15
[ "https://Stackoverflow.com/questions/74449226", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9282082/" ]
74,449,237
<p>The question is asking to create a nested loop to append and increase multiple index in a 2D list,for somehow I can't print the element in the list and i tried to print the length of the list it just return 0.</p> <p>the expect value in the list is:</p> <p>If duration of the music sequence is 1s, starting pitch is 6...
[ { "answer_id": 74452536, "author": "YiSan", "author_id": 9282082, "author_profile": "https://Stackoverflow.com/users/9282082", "pm_score": 1, "selected": false, "text": "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\bin C:\\Windows\\System32" } ]
2022/11/15
[ "https://Stackoverflow.com/questions/74449237", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19761006/" ]
74,449,250
<p>For the following array</p> <pre><code>[ { name: '4K UHD', commentator: 'Ali' }, { name: 'English 1 HD', commentator: 'Ahmed' }, { name: 'English 3 HD', commentator: 'Ahmed' }, { name: 'Premium 1 HD', commentator: 'Ali' }, { name: 'Premium 2 HD', commentator: 'Ahmed' }, ] </code></pre> <p>I want to sort it...
[ { "answer_id": 74449391, "author": "Dreamy Player", "author_id": 15319747, "author_profile": "https://Stackoverflow.com/users/15319747", "pm_score": 0, "selected": false, "text": "array.sort((a, b) => a.name < b.name ? 1 : -1)\n" }, { "answer_id": 74449504, "author": "spender...
2022/11/15
[ "https://Stackoverflow.com/questions/74449250", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17700794/" ]
74,449,262
<p>I have a text file as follows:</p> <p>myfile.txt</p> <pre><code>[items] colors = red, purple, orange, blue [eat] food = burgers, pizza, hotdogs [furry] animals = birds, dogs, cats </code></pre> <p>I have a dictionary:</p> <pre><code>my_dict = {'colors':'green, black','animals':'donkey, tigers'} </code></pre> <p>I w...
[ { "answer_id": 74449456, "author": "StonedTensor", "author_id": 6023918, "author_profile": "https://Stackoverflow.com/users/6023918", "pm_score": -1, "selected": false, "text": "with open(\"myfile.txt\") as file:\n for line in file.readlines():\n if \"colors\" in line:\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74449262", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7617510/" ]
74,449,331
<p>Iv'e tried using my folder that I made in school in my own pc but I can't seem to start it as I am assuming that the path to my python3.9 in school and in my house is not the same place. I write these 2 commands:</p> <p><code>.\env\Scripts\activate</code></p> <p><code>python app.py</code></p> <p>And then I get this ...
[ { "answer_id": 74454483, "author": "JialeDu", "author_id": 19133920, "author_profile": "https://Stackoverflow.com/users/19133920", "pm_score": 0, "selected": false, "text": "Python:Select Interpreter" } ]
2022/11/15
[ "https://Stackoverflow.com/questions/74449331", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15025935/" ]
74,449,343
<pre><code>document.getElementById(&quot;cards&quot;).onmousemove = e =&gt; { for(const card of document.getElementsByClassName(&quot;card&quot;)) { const rect = card.getBoundingClientRect(), x = e.clientX - rect.left, y = e.clientY - rect.top; card.style.setProperty(&quot;--mouse-x&quot;...
[ { "answer_id": 74449579, "author": "AdmiJW", "author_id": 14033758, "author_profile": "https://Stackoverflow.com/users/14033758", "pm_score": 0, "selected": false, "text": "onmousemove <div onMouseMove={ yourEventHandler } />\n .card useState() .cards export function Cards() {\n const [...
2022/11/15
[ "https://Stackoverflow.com/questions/74449343", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20512337/" ]
74,449,345
<p>How can I remove the None values from this dataframe df and convert the columns from a to f as a list</p> <pre><code> emp_no a b c d e f id 0 11390 [1, 28.4] [7, 32.2] [7, 31.3] [28, 40.7] [28, 40.0] [28, 39.6] nhvm657mjhgmjhm 1 1...
[ { "answer_id": 74450437, "author": "BeRT2me", "author_id": 11865956, "author_profile": "https://Stackoverflow.com/users/11865956", "pm_score": 1, "selected": false, "text": "out = [[y for y in x if None not in y] for x in df.iloc[:, 1:].to_dict('list').values()]\nprint(out)\n [[[1, 28.4]...
2022/11/15
[ "https://Stackoverflow.com/questions/74449345", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20418639/" ]
74,449,361
<p>here is the normal typoscript code for the Example like the Description:</p> <pre><code>page { meta { description = TEXT description { field = og_description // description crop = 160| |1 } } } </code></pre> <p>How can i add a crop for the description Text?</p> <p>Thanks all</p>
[ { "answer_id": 74450437, "author": "BeRT2me", "author_id": 11865956, "author_profile": "https://Stackoverflow.com/users/11865956", "pm_score": 1, "selected": false, "text": "out = [[y for y in x if None not in y] for x in df.iloc[:, 1:].to_dict('list').values()]\nprint(out)\n [[[1, 28.4]...
2022/11/15
[ "https://Stackoverflow.com/questions/74449361", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3923134/" ]
74,449,377
<p><a href="https://i.stack.imgur.com/H9Pw3.png" rel="nofollow noreferrer">enter image description here</a></p> <p>I'm developing a quiz game for college.</p> <p>What I want is to stock all of the 8 label.Text values into an array , or in anything that I can iterate over.</p> <pre><code>string[] raspunsuri = new string...
[ { "answer_id": 74450437, "author": "BeRT2me", "author_id": 11865956, "author_profile": "https://Stackoverflow.com/users/11865956", "pm_score": 1, "selected": false, "text": "out = [[y for y in x if None not in y] for x in df.iloc[:, 1:].to_dict('list').values()]\nprint(out)\n [[[1, 28.4]...
2022/11/15
[ "https://Stackoverflow.com/questions/74449377", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20512273/" ]
74,449,397
<p>I have an object called headers. Inside which I want to add certain headers with some random value like:</p> <pre class="lang-js prettyprint-override"><code>configs = { header : { 'x-some-id': Math.random().toString() } } </code></pre> <p>The config paramter is used to client which is used to send http request...
[ { "answer_id": 74449479, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 1, "selected": false, "text": "Proxy const configs = {\n header: new Proxy({\n }, {\n get() {\n return (Math.random() * 1000000 | 0).toStr...
2022/11/15
[ "https://Stackoverflow.com/questions/74449397", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13186127/" ]
74,449,437
<p>Hello I'm trying to create a program that takes input and prints out the initials all uppercase but I can't figure out why my program is only printing the first letter of the last item of the list after string is split</p> <p>this is my code:</p> <pre><code>full_name = input(&quot;Please enter your full name: &quot;...
[ { "answer_id": 74449479, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 1, "selected": false, "text": "Proxy const configs = {\n header: new Proxy({\n }, {\n get() {\n return (Math.random() * 1000000 | 0).toStr...
2022/11/15
[ "https://Stackoverflow.com/questions/74449437", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20473614/" ]
74,449,447
<p>In reactive form, I am using mat-select in a FormArray, for reason that I didn't understand the valueChange response only in the second touch.</p> <p>this is the method that I am using:</p> <pre><code> doSomething(i) { this.form.at(i).valueChanges.pipe(switchMap((categoryId: any) =&gt; { return this.servic...
[ { "answer_id": 74449479, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 1, "selected": false, "text": "Proxy const configs = {\n header: new Proxy({\n }, {\n get() {\n return (Math.random() * 1000000 | 0).toStr...
2022/11/15
[ "https://Stackoverflow.com/questions/74449447", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9088906/" ]
74,449,457
<p>I have tried</p> <ol> <li>subset(df,df$date &gt;= as.Date('2008-01-01'),na.rm = FALSE)</li> <li>subset(df,df$date &gt;= as.Date('2008-01-01'),na.omit = FALSE)</li> </ol> <p>I'm losing all the people who have NAs too. Please suggest a way to sort it out</p> <p>I tried subset(df,df$date &gt;= as.Date('2008-01-01'),na....
[ { "answer_id": 74449629, "author": "Gregor Thomas", "author_id": 903061, "author_profile": "https://Stackoverflow.com/users/903061", "pm_score": 1, "selected": false, "text": "?subset na.rm na.omit subset [ data$ data subset(df, date >= \"2008-01-01\" | is.na(date))\n NA" }, { "a...
2022/11/15
[ "https://Stackoverflow.com/questions/74449457", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20512348/" ]
74,449,462
<p>Let's say we have a class that has a function foo() that counts to 3 and we want from another class to be able to modify this function and after modifying it counts to 3 that was previously declared but also executes the new code too. The function foo() would only be called by class1 and i dont want to use inheritan...
[ { "answer_id": 74449629, "author": "Gregor Thomas", "author_id": 903061, "author_profile": "https://Stackoverflow.com/users/903061", "pm_score": 1, "selected": false, "text": "?subset na.rm na.omit subset [ data$ data subset(df, date >= \"2008-01-01\" | is.na(date))\n NA" }, { "a...
2022/11/15
[ "https://Stackoverflow.com/questions/74449462", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17457445/" ]
74,449,475
<p>I have a dataset that looks like that:</p> <p><a href="https://i.stack.imgur.com/lFczO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lFczO.png" alt="enter image description here" /></a></p> <p>There are 15 unique values in the column 'query id', so I am trying to create new dataframes for each u...
[ { "answer_id": 74449560, "author": "KJDII", "author_id": 14898697, "author_profile": "https://Stackoverflow.com/users/14898697", "pm_score": 0, "selected": false, "text": "\ndf_list = []\n\nfor x in set(df['query id'].to_list()):\n df = df[df['query id'] == x].copy() \n df_list.app...
2022/11/15
[ "https://Stackoverflow.com/questions/74449475", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18134832/" ]
74,449,478
<p>I read that <code>stdint.h</code> is used for portability, but I'm confused.</p> <p>If I wrote a program on a 32-bit system, uint32_t (unsigned int) is 4-bytes.</p> <p>But when this program is run on 16-bit system, int is 2bytes and uint32_t (unsigned int) is 2bytes.</p> <p>I think portability is not guaranteed in t...
[ { "answer_id": 74449509, "author": "dbush", "author_id": 1687119, "author_profile": "https://Stackoverflow.com/users/1687119", "pm_score": 1, "selected": false, "text": "uint32_t uint16_t int int uint32_t uint16_t" }, { "answer_id": 74449573, "author": "John Bollinger", "...
2022/11/15
[ "https://Stackoverflow.com/questions/74449478", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14561051/" ]
74,449,488
<p>Well I'm trying to create user addition form from frontend that creates user and additional info based on custom user model.But I'm getting <code>duplicate key value violates unique constraint &quot;users_driver_email_key&quot; DETAIL: Key (email)=() already exists.</code> here is my code:</p> <p><strong>Models.py<...
[ { "answer_id": 74449509, "author": "dbush", "author_id": 1687119, "author_profile": "https://Stackoverflow.com/users/1687119", "pm_score": 1, "selected": false, "text": "uint32_t uint16_t int int uint32_t uint16_t" }, { "answer_id": 74449573, "author": "John Bollinger", "...
2022/11/15
[ "https://Stackoverflow.com/questions/74449488", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17933458/" ]
74,449,510
<p>I have a question to make the environment of <code>if true then x else y</code> not closed, closed but not well typed, and closed and well typed. How can I do this in OCaml?</p> <p>All I know is that not closed means that there is a variable that is not bound. So x and y will not be bound in this case. Additionally,...
[ { "answer_id": 74449509, "author": "dbush", "author_id": 1687119, "author_profile": "https://Stackoverflow.com/users/1687119", "pm_score": 1, "selected": false, "text": "uint32_t uint16_t int int uint32_t uint16_t" }, { "answer_id": 74449573, "author": "John Bollinger", "...
2022/11/15
[ "https://Stackoverflow.com/questions/74449510", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20454562/" ]
74,449,523
<p>I have a number of checkboxes that return an array of data to PHP. They are all named 'Plans[]' but with different IDs.</p> <p>I have a CSS checkbox styler that replaces the usual HTML checkbox with something more fancy...</p> <p>When the page is displayed, there is one (or several) that are 'checked', but they don'...
[ { "answer_id": 74450096, "author": "Adam", "author_id": 12571484, "author_profile": "https://Stackoverflow.com/users/12571484", "pm_score": -1, "selected": false, "text": ".checkOpt {\n /* added this so the container has some size */\n height: fit-content;\n display: inline-block;\n}\...
2022/11/15
[ "https://Stackoverflow.com/questions/74449523", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12475071/" ]
74,449,533
<p>I've decided to write a custom AuthorizationHandler for a custom Policy I'm using :</p> <pre><code>// I pass this to AddPolicy in startup.cs public class MyRequirement : IAuthorizationRequirement { public MyRequirement () { ... } } public class MyAuthorizationHandler : AuthorizationHandler&lt;MyRequirement&g...
[ { "answer_id": 74450096, "author": "Adam", "author_id": 12571484, "author_profile": "https://Stackoverflow.com/users/12571484", "pm_score": -1, "selected": false, "text": ".checkOpt {\n /* added this so the container has some size */\n height: fit-content;\n display: inline-block;\n}\...
2022/11/15
[ "https://Stackoverflow.com/questions/74449533", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9359785/" ]
74,449,538
<p>On running the following MySQL (5.7.12) UPDATE statement, I get the error <em>&quot;Error Code: 1054. Unknown column 't1.col2' in 'where clause'&quot;</em>.</p> <p>How can I rephrase this query such that the columns of t1 are accessible in the subquery?</p> <pre><code>UPDATE MyFirstTable AS t1 INNER JOIN ( SELEC...
[ { "answer_id": 74450096, "author": "Adam", "author_id": 12571484, "author_profile": "https://Stackoverflow.com/users/12571484", "pm_score": -1, "selected": false, "text": ".checkOpt {\n /* added this so the container has some size */\n height: fit-content;\n display: inline-block;\n}\...
2022/11/15
[ "https://Stackoverflow.com/questions/74449538", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10875689/" ]
74,449,578
<p>I wonder if we can extend the logic of <a href="https://stackoverflow.com/questions/35584085/how-to-count-duplicate-rows-in-pandas-dataframe">How to count duplicate rows in pandas dataframe?</a>, so that we also consider rows which have similar values on the columns with other rows, but the values are unordered.</p>...
[ { "answer_id": 74449825, "author": "sophocles", "author_id": 9167382, "author_profile": "https://Stackoverflow.com/users/9167382", "pm_score": 1, "selected": false, "text": "np.sort axis=1 groupby.size() import numpy as np\n\nfruit_cols = ['fruit1','fruit2']\ndf_sort = pd.DataFrame(np.so...
2022/11/15
[ "https://Stackoverflow.com/questions/74449578", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6214474/" ]
74,449,591
<p>I've got everything working correctly except this one problem - with the third output it says the max pair sum is 13 due to taking sum of the first and last number. It should be 11 (as 9+2 or 4+7). I can't figure it out how I fix this problem - ending the loop with the first and last position.</p> <p>Thank you for a...
[ { "answer_id": 74449825, "author": "sophocles", "author_id": 9167382, "author_profile": "https://Stackoverflow.com/users/9167382", "pm_score": 1, "selected": false, "text": "np.sort axis=1 groupby.size() import numpy as np\n\nfruit_cols = ['fruit1','fruit2']\ndf_sort = pd.DataFrame(np.so...
2022/11/15
[ "https://Stackoverflow.com/questions/74449591", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20512417/" ]
74,449,599
<p>So i was working on some python code so i could get a better understanding of dictionaries. I have only been learning python 2 weeks and its my first language, so there is definitely a lack of knowledge on my end. I started the program originally to have a user input the section number they were on in a video series...
[ { "answer_id": 74449845, "author": "mudi loodi", "author_id": 11962536, "author_profile": "https://Stackoverflow.com/users/11962536", "pm_score": 3, "selected": true, "text": "video_dict = {\n 1 : 19, 2 : 54, 3 : 122, 4 : 9, 5 : 75, 6 : 174, 7 : 100, 8 : 81, 9 : 29, 10 : 46, 11 : 138,...
2022/11/15
[ "https://Stackoverflow.com/questions/74449599", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9221493/" ]
74,449,630
<p>My question is similar to <a href="https://stackoverflow.com/questions/13744620/create-a-matrix-out-of-row-column-value-triplets-in-numpy">this one</a>, but still different. I have a list of triplets like the following, representing rows and columns of a matrix with their cell value:</p> <pre><code>a = [(&quot;g1&q...
[ { "answer_id": 74449845, "author": "mudi loodi", "author_id": 11962536, "author_profile": "https://Stackoverflow.com/users/11962536", "pm_score": 3, "selected": true, "text": "video_dict = {\n 1 : 19, 2 : 54, 3 : 122, 4 : 9, 5 : 75, 6 : 174, 7 : 100, 8 : 81, 9 : 29, 10 : 46, 11 : 138,...
2022/11/15
[ "https://Stackoverflow.com/questions/74449630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3146365/" ]