qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,666,167
<p>I'm trying to associate in a dataframe the values of a list of numbers with the respective strings. Here's the problem:</p> <pre><code>import pandas as pd categories = {&quot;key1&quot;:[&quot;string1&quot;, &quot;string2&quot;, &quot;string3&quot;], &quot;key2&quot;: [&quot;string1&quot;, &quot;str1&quot;, &quot;st...
[ { "answer_id": 74666208, "author": "a5zima", "author_id": 14034634, "author_profile": "https://Stackoverflow.com/users/14034634", "pm_score": 0, "selected": false, "text": "# Convert the list of lists to a set\ndata_set = set(tuple(x) for x in data)\n\n# Convert the set back to a list\nd...
2022/12/03
[ "https://Stackoverflow.com/questions/74666167", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11945594/" ]
74,666,170
<p><a href="https://i.stack.imgur.com/zek7C.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zek7C.jpg" alt="from web page HTML" /></a></p> <p>I am doing a county property survey. The mailing address is included on each record/webpage as a non-displayed comment &lt;!-- p&gt; with a p tag I am trying t...
[ { "answer_id": 74667786, "author": "Shatas", "author_id": 4054411, "author_profile": "https://Stackoverflow.com/users/4054411", "pm_score": 1, "selected": true, "text": "h2 td" } ]
2022/12/03
[ "https://Stackoverflow.com/questions/74666170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14858801/" ]
74,666,184
<p>I am unable to decipher the error here. Can any one help ?</p> <pre><code>from jinja2 import Template prefixes = { &quot;10.0.0.0/24&quot; : { &quot;description&quot;: &quot;Corporate NAS&quot;, &quot;region&quot;: &quot;Europe&quot;, &quot;site&quot;: &quot;Telehouse-West&quot; } }...
[ { "answer_id": 74666243, "author": "Mohamed Yasser", "author_id": 16516114, "author_profile": "https://Stackoverflow.com/users/16516114", "pm_score": 1, "selected": false, "text": "render print(j2.render(prefixes)) print(j2.render(prefixes=prefixes))" }, { "answer_id": 74666285, ...
2022/12/03
[ "https://Stackoverflow.com/questions/74666184", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20020613/" ]
74,666,185
<p>populate each hand with two cards. Take a card from the deck and put it in the player_hand list. Then, take a card from the deck and put it in the dealer_hand list. Do that one more time in that order so that the dealer and player have each two cards. Make sure the dealer's first card is face down. I keep receiving ...
[ { "answer_id": 74666243, "author": "Mohamed Yasser", "author_id": 16516114, "author_profile": "https://Stackoverflow.com/users/16516114", "pm_score": 1, "selected": false, "text": "render print(j2.render(prefixes)) print(j2.render(prefixes=prefixes))" }, { "answer_id": 74666285, ...
2022/12/03
[ "https://Stackoverflow.com/questions/74666185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20326002/" ]
74,666,206
<p>I am trying to grab data from JSON file based on what quarter the dates represent. My goal is to assign the data to a variable so I should have Q1, Q2, Q3, Q4 variables holding the data inside. Below is the JSON:</p> <pre><code>{ &quot;lastDate&quot;:{ &quot;0&quot;:&quot;2022Q4&quot;, &quot;1&qu...
[ { "answer_id": 74666502, "author": "Franco Milanese", "author_id": 13991234, "author_profile": "https://Stackoverflow.com/users/13991234", "pm_score": 1, "selected": false, "text": "import pandas as pd \n\nsample_dict = {\n \"lastDate\":{\n \"0\":\"2022Q4\",\n \"1\":\"20...
2022/12/03
[ "https://Stackoverflow.com/questions/74666206", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18823431/" ]
74,666,210
<p>world! I'm currently stuck on this problem where i want to join two columns and run the select statement of the two, but i'm getting errors; these are the columns i want to join:</p> <pre><code>SELECT DISTINCT column_name FROM owner_name.table_name ORDER BY column_name; </code></pre> <p>and</p> <pre><code>SELECT DIS...
[ { "answer_id": 74666502, "author": "Franco Milanese", "author_id": 13991234, "author_profile": "https://Stackoverflow.com/users/13991234", "pm_score": 1, "selected": false, "text": "import pandas as pd \n\nsample_dict = {\n \"lastDate\":{\n \"0\":\"2022Q4\",\n \"1\":\"20...
2022/12/03
[ "https://Stackoverflow.com/questions/74666210", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20673907/" ]
74,666,238
<pre><code>def n(a): a = str(a) if &quot;0&quot; in a: b = str((a).replace(&quot;0&quot;, '')) a = b[::-1] a = a[::-1] a = int(a) return a else: a = a[::-1] a = a[::-1] a = int(a) return a N = int(input()) des = 10**9 + 7 summa = 0 ...
[ { "answer_id": 74666270, "author": "Mitchell van Zuylen", "author_id": 7052826, "author_profile": "https://Stackoverflow.com/users/7052826", "pm_score": 2, "selected": false, "text": "input '' '' int('')` # returns `ValueError: invalid literal for int() with base 10: ''\n '' int() input ...
2022/12/03
[ "https://Stackoverflow.com/questions/74666238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20673956/" ]
74,666,244
<h2><strong>Problem</strong></h2> <p>I created a counter using HTML, CSS and JS (such as satisfied customer numbers, branch numbers, etc.) The counter is also animated but since it's down the page, I'd like to animate it only when it gets to that point on the page. How do I do with the js?</p> <p><div class="snippet" d...
[ { "answer_id": 74666895, "author": "ths", "author_id": 6388552, "author_profile": "https://Stackoverflow.com/users/6388552", "pm_score": 1, "selected": false, "text": "observer counters animate counter IntersectionObserver counters const counters = document.querySelectorAll('.value'),\n ...
2022/12/03
[ "https://Stackoverflow.com/questions/74666244", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15910389/" ]
74,666,280
<p>I have two dataframes:</p> <pre><code>df1 = C0 C1. C2. 4 AB. 1. 2 5 AC. 7 8 6 AD. 9. 9 7 AE. 2. 6 8 AG 8. 9 df2 = C0 C1. C2 8 AB 0. 1 9 AE. 6. 3 10 AD. 1. 2 </code></pre> <p>I want to apply a subtraction between these two dataframes, such that when the value of the columns...
[ { "answer_id": 74666447, "author": "Tron", "author_id": 9917285, "author_profile": "https://Stackoverflow.com/users/9917285", "pm_score": 1, "selected": true, "text": "df1.merge(df2, how='left', on='C0')\n .assign(match=lambda x: x['C1_y'].notna())\n .fillna(0)\n df['C1_diff'] = df['...
2022/12/03
[ "https://Stackoverflow.com/questions/74666280", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6057371/" ]
74,666,329
<p>I have in a component this piece of code</p> <p><a href="https://i.stack.imgur.com/RAwmk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RAwmk.png" alt="enter image description here" /></a></p> <p>TagCanvas is defined in the _app.tsx file within a legacy JS script. I need to do like that because i...
[ { "answer_id": 74671333, "author": "Marek Rozmus", "author_id": 6738911, "author_profile": "https://Stackoverflow.com/users/6738911", "pm_score": 2, "selected": true, "text": "global setupTest.js global.TagCanvas = {\n Start: () => \"this is the mocked implementation\"\n}\n" }, { ...
2022/12/03
[ "https://Stackoverflow.com/questions/74666329", "https://Stackoverflow.com", "https://Stackoverflow.com/users/967216/" ]
74,666,330
<p>I have code to generate series of keys as in below:</p> <pre><code>def Keygen (x,r,size): key=[] for i in range(size): x= r*x*(1-x) key.append(int((x*pow(10,16))%256)) return key if __name__==&quot;__main__&quot;: key=Keygen(0.45,0.685,92)#Intial Parameters print('nx key:', key, &quot;\n&quot...
[ { "answer_id": 74671333, "author": "Marek Rozmus", "author_id": 6738911, "author_profile": "https://Stackoverflow.com/users/6738911", "pm_score": 2, "selected": true, "text": "global setupTest.js global.TagCanvas = {\n Start: () => \"this is the mocked implementation\"\n}\n" }, { ...
2022/12/03
[ "https://Stackoverflow.com/questions/74666330", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14111838/" ]
74,666,357
<pre><code>struct Node { int data; Node *next; }; void myLinkedList( Node* navigatePtr ) { if(navigatePtr == NULL) return; myLinkedList(navigatePtr -&gt; next); cout &lt;&lt; navigatePtr -&gt; data &lt;&lt; &quot; &quot;; } int main() { // Assuming that head is a pointer pointing to // a linked list 1 -&gt; 2 -...
[ { "answer_id": 74671333, "author": "Marek Rozmus", "author_id": 6738911, "author_profile": "https://Stackoverflow.com/users/6738911", "pm_score": 2, "selected": true, "text": "global setupTest.js global.TagCanvas = {\n Start: () => \"this is the mocked implementation\"\n}\n" }, { ...
2022/12/03
[ "https://Stackoverflow.com/questions/74666357", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20674067/" ]
74,666,361
<p>I have setup a wagtail website. It works great for postings like a blog and simply add new pages. But what if I want to add some extra functions to a page. Like showing values from my own database in a table. Normally i use a models.py, views.py and template.py. But now I don’t see any views.py to add functions or a...
[ { "answer_id": 74671333, "author": "Marek Rozmus", "author_id": 6738911, "author_profile": "https://Stackoverflow.com/users/6738911", "pm_score": 2, "selected": true, "text": "global setupTest.js global.TagCanvas = {\n Start: () => \"this is the mocked implementation\"\n}\n" }, { ...
2022/12/03
[ "https://Stackoverflow.com/questions/74666361", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12263783/" ]
74,666,362
<p>How do I wait in using oc command for an operator package manifest to be available?</p> <p>I am trying this</p> <pre><code>❯ oc wait --for=condition=ready packagemanifest/example-manifest -n openshift-marketplace Error from server (MethodNotAllowed): the server does not allow this method on the requested resource </...
[ { "answer_id": 74671333, "author": "Marek Rozmus", "author_id": 6738911, "author_profile": "https://Stackoverflow.com/users/6738911", "pm_score": 2, "selected": true, "text": "global setupTest.js global.TagCanvas = {\n Start: () => \"this is the mocked implementation\"\n}\n" }, { ...
2022/12/03
[ "https://Stackoverflow.com/questions/74666362", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9286924/" ]
74,666,392
<p>New to C here, I am creating an insert function that will insert any value to an array provided I give the position of the array.</p> <p>For example, here is what I have tried:</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; int insert(int A[], int N, int P, int KEY){ int i = N - 1; while...
[ { "answer_id": 74671333, "author": "Marek Rozmus", "author_id": 6738911, "author_profile": "https://Stackoverflow.com/users/6738911", "pm_score": 2, "selected": true, "text": "global setupTest.js global.TagCanvas = {\n Start: () => \"this is the mocked implementation\"\n}\n" }, { ...
2022/12/03
[ "https://Stackoverflow.com/questions/74666392", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19136165/" ]
74,666,402
<p>I am trying to concatenate data in QUERY formula from cell as shown in image (<a href="https://i.stack.imgur.com/3EdUX.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/3EdUX.jpg</a>) Formula is :=QUERY(CONCATENATE(A9,&quot;!A2:D5&quot;),&quot;Select A,B&quot;) picking data_range from another cell how can I g...
[ { "answer_id": 74671333, "author": "Marek Rozmus", "author_id": 6738911, "author_profile": "https://Stackoverflow.com/users/6738911", "pm_score": 2, "selected": true, "text": "global setupTest.js global.TagCanvas = {\n Start: () => \"this is the mocked implementation\"\n}\n" }, { ...
2022/12/03
[ "https://Stackoverflow.com/questions/74666402", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17089511/" ]
74,666,415
<p>I would like to use <code>@store.Name</code> in the <code>src=&quot;../Pandora.jpg&quot;</code>.</p> <p>At the moment my code is:</p> <pre><code>&lt;img src=&quot;../Pandora.jpg&quot; class=&quot;card-img-top&quot; alt=&quot;@store.Name Logo&quot;&gt; </code></pre> <p>but I want something like:</p> <pre><code>&lt;im...
[ { "answer_id": 74666443, "author": "odnualam", "author_id": 10875688, "author_profile": "https://Stackoverflow.com/users/10875688", "pm_score": 0, "selected": false, "text": "<img src=\"../' + @store.Name + '.jpg\" class=\"card-img-top\" alt=\"@store.Name Logo\">\n <img src=\"../${@store...
2022/12/03
[ "https://Stackoverflow.com/questions/74666415", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4049591/" ]
74,666,424
<h1>Problem</h1> <p>First off, I am going to clarify that this question is not a duplicate of <a href="https://stackoverflow.com/questions/2536379/difference-in-months-between-two-dates-in-javascript">Difference in months between two dates in javascript</a> or <a href="https://stackoverflow.com/questions/4312825/javasc...
[ { "answer_id": 74666443, "author": "odnualam", "author_id": 10875688, "author_profile": "https://Stackoverflow.com/users/10875688", "pm_score": 0, "selected": false, "text": "<img src=\"../' + @store.Name + '.jpg\" class=\"card-img-top\" alt=\"@store.Name Logo\">\n <img src=\"../${@store...
2022/12/03
[ "https://Stackoverflow.com/questions/74666424", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13944742/" ]
74,666,426
<p>Complete the solution so that it splits the string into pairs of two characters. If the string contains an odd number of characters then it should replace the missing second character of the final pair with an underscore ('_').</p> <p>Examples:</p> <ul> <li>'abc' =&gt; ['ab', 'c_']</li> <li>'abcdef' =&gt; ['ab', 'c...
[ { "answer_id": 74666443, "author": "odnualam", "author_id": 10875688, "author_profile": "https://Stackoverflow.com/users/10875688", "pm_score": 0, "selected": false, "text": "<img src=\"../' + @store.Name + '.jpg\" class=\"card-img-top\" alt=\"@store.Name Logo\">\n <img src=\"../${@store...
2022/12/03
[ "https://Stackoverflow.com/questions/74666426", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20367266/" ]
74,666,428
<p>Is this sample in a correct format based on JSON API specifications? In another word can we have in <strong>attributes</strong> an array?</p> <pre><code>{ &quot;meta&quot;: { }, &quot;links&quot;: { &quot;self&quot;: &quot;&quot; }, &quot;jsonapi&quot;: { &quot;version&quot;: &quot;&quot;, &quo...
[ { "answer_id": 74666443, "author": "odnualam", "author_id": 10875688, "author_profile": "https://Stackoverflow.com/users/10875688", "pm_score": 0, "selected": false, "text": "<img src=\"../' + @store.Name + '.jpg\" class=\"card-img-top\" alt=\"@store.Name Logo\">\n <img src=\"../${@store...
2022/12/03
[ "https://Stackoverflow.com/questions/74666428", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4502841/" ]
74,666,435
<p>I am making a discord bot in which an auction could take place.So I want someone to bid only once unless someone bids after him/her.</p> <pre><code>`async def bid(ctx): embed1=discord.Embed(description= f'Bid has been placed by {ctx.author}', title='bid placed') await ctx.send(embed=embed1) ` </code><...
[ { "answer_id": 74666765, "author": "Raymus", "author_id": 20487456, "author_profile": "https://Stackoverflow.com/users/20487456", "pm_score": 2, "selected": true, "text": "bidderid = 0 #this will reset whenever your bot restarts\n@client.command()\nasync def bid(ctx):\n global bidderi...
2022/12/03
[ "https://Stackoverflow.com/questions/74666435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20674140/" ]
74,666,460
<p>I am trying to use the <code>@Valid</code> and <code>@NotBlank</code> annotations in my spring boot project within IntelliJ IDEA 2022.2.3 (Community Edition) Build #IC-222.4345.14, built on October 5, 2022</p> <p>I have added dependency like below in my project pom.xml</p> <pre><code>&lt;dependency&gt; &lt;group...
[ { "answer_id": 74667661, "author": "vanOekel", "author_id": 3080094, "author_profile": "https://Stackoverflow.com/users/3080094", "pm_score": 2, "selected": false, "text": "test spring-boot-starter-validation mvn clean test" }, { "answer_id": 74668186, "author": "Helena", ...
2022/12/03
[ "https://Stackoverflow.com/questions/74666460", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18105313/" ]
74,666,461
<p>So I am working on an online shop as a practice I have imported products data and wanna make pagination. On a page it will be 12 products like so <a href="https://i.stack.imgur.com/hxxmw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hxxmw.png" alt="enter image description here" /></a></p> <p>I h...
[ { "answer_id": 74666475, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 1, "selected": false, "text": "products useEffect(() => {\n setProducts(prods => prods.slice(firstIndex,lastIndex))\n}, [currentPage])\n useEffect ...
2022/12/03
[ "https://Stackoverflow.com/questions/74666461", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19501234/" ]
74,666,511
<p>I have a script that uses ts-node:</p> <pre><code>#!/usr/binenv ts-node const top: number[] = []; </code></pre> <p>but <code>tsc</code> complains:</p> <pre><code>top3.ts(3,7): error TS2451: Cannot redeclare block-scoped variable 'top'. </code></pre> <p>because apparently <code>top</code> is a global variable in bro...
[ { "answer_id": 74666475, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 1, "selected": false, "text": "products useEffect(() => {\n setProducts(prods => prods.slice(firstIndex,lastIndex))\n}, [currentPage])\n useEffect ...
2022/12/03
[ "https://Stackoverflow.com/questions/74666511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4969945/" ]
74,666,546
<p>I have recently explored handling JSON data with the org.json library and all went well. Now I started a bigger Maven project, for which I intend to use the Jackson libraries in stead. Sadly, it does not seem to work for me. I wanted to try out the ObjectMapper class, that VScode autocompleted for me, which also aut...
[ { "answer_id": 74666475, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 1, "selected": false, "text": "products useEffect(() => {\n setProducts(prods => prods.slice(firstIndex,lastIndex))\n}, [currentPage])\n useEffect ...
2022/12/03
[ "https://Stackoverflow.com/questions/74666546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20138458/" ]
74,666,548
<p>I would like to know if there is a faster way to print all the not empty elements of a string list in Java.</p> <p>Currently, this is my code and it works, but I would like to know if there is another, shorter way to do it. That means without creating a &quot;cloned list&quot; from which we removed all the empty ele...
[ { "answer_id": 74666586, "author": "markspace", "author_id": 2338547, "author_profile": "https://Stackoverflow.com/users/2338547", "pm_score": 2, "selected": false, "text": "filter filter(string -> !string.isEmpty()).toList()\n System.out.println( \"Print only non-empty string from the l...
2022/12/03
[ "https://Stackoverflow.com/questions/74666548", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19175002/" ]
74,666,555
<p>I am using Joomla version 3.10 and after upgrading the php version from 7.4 to 8.0, I received this error.</p> <p><code>Fatal error: Unparenthesized </code>a ? b : c ? d : e<code>is not supported. Use either</code>(a ? b : c) ? d : e<code>or</code>a ? b : (c ? d : e)<code> in /home/public_html/language/fa-IR/fa-IR.l...
[ { "answer_id": 74666602, "author": "MaZzIMo24", "author_id": 15222409, "author_profile": "https://Stackoverflow.com/users/15222409", "pm_score": 1, "selected": true, "text": "$return = str_replace(self::MONTH_LENGTH, ($m < 7 ? 31 : ($m < 12 ? 30 : (self::leap_persian($y) ? 30 : 29) ) ) ,...
2022/12/03
[ "https://Stackoverflow.com/questions/74666555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15774314/" ]
74,666,568
<p>The result should have square brackets enclosing the elements of list which are numbers , these numbers should not be enclosed into quotes.</p> <p>i tried to do so with split function and for loop but was not able to get my desired result. i am expecting the answer.</p>
[ { "answer_id": 74666602, "author": "MaZzIMo24", "author_id": 15222409, "author_profile": "https://Stackoverflow.com/users/15222409", "pm_score": 1, "selected": true, "text": "$return = str_replace(self::MONTH_LENGTH, ($m < 7 ? 31 : ($m < 12 ? 30 : (self::leap_persian($y) ? 30 : 29) ) ) ,...
2022/12/03
[ "https://Stackoverflow.com/questions/74666568", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20674167/" ]
74,666,590
<p>I found the problem is It cannot close this window. But it can open the MainWindow. pls help <a href="https://i.stack.imgur.com/xZ6qc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xZ6qc.png" alt="enter image description here" /></a> Code in button</p> <pre><code> private void LoginBtn_Cli...
[ { "answer_id": 74666602, "author": "MaZzIMo24", "author_id": 15222409, "author_profile": "https://Stackoverflow.com/users/15222409", "pm_score": 1, "selected": true, "text": "$return = str_replace(self::MONTH_LENGTH, ($m < 7 ? 31 : ($m < 12 ? 30 : (self::leap_persian($y) ? 30 : 29) ) ) ,...
2022/12/03
[ "https://Stackoverflow.com/questions/74666590", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17217152/" ]
74,666,644
<p>I am new to programming. Trying to open Gmail using this code snippet. But problem is putExtra(Intent.EXTRA_EMAIL, strTo) does not give any result. putExtra(Intent.EXTRA_SUBJECT, strSubject) works fine. I tried to pass array also but result is same. Could someone please give suggestions for this email sender using k...
[ { "answer_id": 74666661, "author": "Begging", "author_id": 16606223, "author_profile": "https://Stackoverflow.com/users/16606223", "pm_score": 2, "selected": false, "text": "val intent = Intent(Intent.ACTION_SEND).apply {\n type = \"message/rfc822\"\n putExtra(Intent.EXTRA_EMAIL, a...
2022/12/03
[ "https://Stackoverflow.com/questions/74666644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5117918/" ]
74,666,674
<p>I can use an unconstrained type paramter:</p> <pre><code>interface State&lt;V&gt; </code></pre> <p>or I can use a constrained type parameter:</p> <pre><code>interface State&lt;V: Any&gt; </code></pre> <p>This seems to be the same, because <a href="https://kotlinlang.org/docs/basic-types.html" rel="nofollow noreferre...
[ { "answer_id": 74667104, "author": "hassan bazai", "author_id": 14279755, "author_profile": "https://Stackoverflow.com/users/14279755", "pm_score": 0, "selected": false, "text": "Any Any" }, { "answer_id": 74668459, "author": "broot", "author_id": 448875, "author_prof...
2022/12/03
[ "https://Stackoverflow.com/questions/74666674", "https://Stackoverflow.com", "https://Stackoverflow.com/users/402322/" ]
74,666,678
<p>how to convert json file data to string in bash shell script? i have below petstore swagger file (<a href="https://petstore.swagger.io/v2/swagger.json" rel="nofollow noreferrer">https://petstore.swagger.io/v2/swagger.json</a>) in json format.</p> <p>i have converted this json file into string with backspaces charact...
[ { "answer_id": 74667104, "author": "hassan bazai", "author_id": 14279755, "author_profile": "https://Stackoverflow.com/users/14279755", "pm_score": 0, "selected": false, "text": "Any Any" }, { "answer_id": 74668459, "author": "broot", "author_id": 448875, "author_prof...
2022/12/03
[ "https://Stackoverflow.com/questions/74666678", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14004008/" ]
74,666,681
<p>In a SpringBoot Controller class, my APIs usually return a ResponseEntity with a body and a status code. But I can apparently dispense with the ResponseEntity by annotating my controller method with <code>@ResponseBody</code>, like this:</p> <pre><code>@Controller public class DemoController { @Autowired Studen...
[ { "answer_id": 74667104, "author": "hassan bazai", "author_id": 14279755, "author_profile": "https://Stackoverflow.com/users/14279755", "pm_score": 0, "selected": false, "text": "Any Any" }, { "answer_id": 74668459, "author": "broot", "author_id": 448875, "author_prof...
2022/12/03
[ "https://Stackoverflow.com/questions/74666681", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2028066/" ]
74,666,692
<pre><code>def result(player1, player2): if player1 == 'A' and player2 == 'X' or player1 == 'B' and player2 == 'Y' or player1 == 'C' and player2 == 'Z': state = 'draw' return state, VALUE[player2] if player1 == 'A' and player2 == 'Y' or player1 == 'B' and player2 == 'Z' or player1 == 'C' and pla...
[ { "answer_id": 74667104, "author": "hassan bazai", "author_id": 14279755, "author_profile": "https://Stackoverflow.com/users/14279755", "pm_score": 0, "selected": false, "text": "Any Any" }, { "answer_id": 74668459, "author": "broot", "author_id": 448875, "author_prof...
2022/12/03
[ "https://Stackoverflow.com/questions/74666692", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20674289/" ]
74,666,762
<p>Here is my code</p> <pre><code> print(data['a'][0]['aa']) print(data['a'][0].keys()) </code></pre> <p>This is input-&gt;</p> <pre><code> data={ 'a':[{ 'aa':{'aax':5,'aay':6,'aaz':7}, 'ab':{'abx':8,'aby':9,'abz':10} }, { 'aaa':{'aaax':11,'...
[ { "answer_id": 74666810, "author": "JayPeerachai", "author_id": 12135518, "author_profile": "https://Stackoverflow.com/users/12135518", "pm_score": 2, "selected": true, "text": "for loop for outer_list in data['a']:\n for outer_key, outer_value in outer_list.items():\n for key,...
2022/12/03
[ "https://Stackoverflow.com/questions/74666762", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12633191/" ]
74,666,769
<p>I am trying to overwrite specific rows and columns from one dataframe with a second dataframe rows and columns. I can't give the actual data but I will use a proxy here.</p> <p>Here is an example and what I have tried:</p> <pre><code>df1 UID B C D 0 X14 cat red One 1 X26 cat blue Tw...
[ { "answer_id": 74666841, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": 1, "selected": false, "text": "reindex_like combine_first out = (\n df2.set_index(\"UID\")\n .reindex_like(df1.set_index(\"UID\")...
2022/12/03
[ "https://Stackoverflow.com/questions/74666769", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10574250/" ]
74,666,795
<p>I am trying to sort datas which are fetched from firebase realtime database according to the value of a child using MVVM architecture the daabase reference is created in a repository</p> <p><strong>GroupNoticeRepository</strong></p> <pre><code>class GroupNoticeRepository(private var groupSelected: String) { val ...
[ { "answer_id": 74667410, "author": "hassan bazai", "author_id": 14279755, "author_profile": "https://Stackoverflow.com/users/14279755", "pm_score": 2, "selected": true, "text": "public class FirebaseDataComparator implements Comparator<FirebaseData> {\n @Override\n public int compa...
2022/12/03
[ "https://Stackoverflow.com/questions/74666795", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13925224/" ]
74,666,805
<p><a href="https://i.stack.imgur.com/PF0Dy.png" rel="nofollow noreferrer">Object</a> Im have Object , but how can get keys + value in this (main : , weather : , clouds: , cors : , ... ) Im try use map but can't go next entry <a href="https://i.stack.imgur.com/RZdnp.png" rel="nofollow noreferrer">My demo</a> Sorry im b...
[ { "answer_id": 74666845, "author": "sheepiiHD", "author_id": 3081794, "author_profile": "https://Stackoverflow.com/users/3081794", "pm_score": 1, "selected": false, "text": "const foobar = {main: \"hello\", clouds = \"world\", cors: 1}\nconst keypairs = Object.entries(foobar);\n\n//loopi...
2022/12/03
[ "https://Stackoverflow.com/questions/74666805", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20673525/" ]
74,666,821
<p>if the user enters a char it should show the wrong input and continue asking for input until it reaches the range of 10 elements. how to solve this? output</p> <pre><code>list = [] even = 0 for x in range(10): number = int(input(&quot;Enter a number: &quot;)) list.append(number) for y in list: if y...
[ { "answer_id": 74666845, "author": "sheepiiHD", "author_id": 3081794, "author_profile": "https://Stackoverflow.com/users/3081794", "pm_score": 1, "selected": false, "text": "const foobar = {main: \"hello\", clouds = \"world\", cors: 1}\nconst keypairs = Object.entries(foobar);\n\n//loopi...
2022/12/03
[ "https://Stackoverflow.com/questions/74666821", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18929055/" ]
74,666,827
<p>I am new to react, so if I am doing anything outside of the problem wrong please tell me also.</p> <p>I'm trying to map my json response into a table, I can collect the data into an object array, but I am receiving this error : <a href="https://i.stack.imgur.com/BvwfF.png" rel="nofollow noreferrer"><img src="https:/...
[ { "answer_id": 74666909, "author": "Yahli Gi", "author_id": 17089291, "author_profile": "https://Stackoverflow.com/users/17089291", "pm_score": 2, "selected": true, "text": "return <>{data && data.length > 0 && child }</>;\n" }, { "answer_id": 74667153, "author": "Amirpasha B...
2022/12/03
[ "https://Stackoverflow.com/questions/74666827", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19213617/" ]
74,666,835
<p>I have a table with 8,000 rows of data and a small sample of it here:</p> <pre><code>Customer ItemDescription Invoice PurchaseDate 1064 Produce 55514 22-01 1064 Snack 55514 22-01 1080 Drink 56511 ...
[ { "answer_id": 74666909, "author": "Yahli Gi", "author_id": 17089291, "author_profile": "https://Stackoverflow.com/users/17089291", "pm_score": 2, "selected": true, "text": "return <>{data && data.length > 0 && child }</>;\n" }, { "answer_id": 74667153, "author": "Amirpasha B...
2022/12/03
[ "https://Stackoverflow.com/questions/74666835", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20413330/" ]
74,666,866
<p>I built a knn model for classification. Unfortunately, my model has accuracy &gt; 80%, and I would like to get a better result. Can I ask for some tips? Maybe I used too many predictors?</p> <p>My data = <a href="https://www.openml.org/search?type=data&amp;sort=runs&amp;id=53&amp;status=active" rel="nofollow norefer...
[ { "answer_id": 74667057, "author": "solac34", "author_id": 20554831, "author_profile": "https://Stackoverflow.com/users/20554831", "pm_score": 1, "selected": false, "text": "errlist = [] #an error list to append\nfor i in range(1,40): #from 0-40 numbers to use in k_neighbors\n knn_i =...
2022/12/03
[ "https://Stackoverflow.com/questions/74666866", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19753240/" ]
74,666,870
<p>I have a CartController with the following function:</p> <pre><code> public function getTotalCartPrice() { $totalCartPrice = 1; return $totalCartPrice; } </code></pre> <p>Cart.blade.php</p> <pre><code>&lt;h3 class=&quot;cartTotal&quot;&gt;Cart total: {{ Cart::getTotalCartPrice }} &l...
[ { "answer_id": 74667057, "author": "solac34", "author_id": 20554831, "author_profile": "https://Stackoverflow.com/users/20554831", "pm_score": 1, "selected": false, "text": "errlist = [] #an error list to append\nfor i in range(1,40): #from 0-40 numbers to use in k_neighbors\n knn_i =...
2022/12/03
[ "https://Stackoverflow.com/questions/74666870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12071277/" ]
74,666,901
<p>Left side there is a menu, right side the content.</p> <p>A flex box is used. Why menu scroll, if I scroll in right side? Why it is not keep fixed? How can I fix it?</p> <p><a href="https://i.stack.imgur.com/OSK0y.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OSK0y.gif" alt="" /></a></p> <p>CSS ...
[ { "answer_id": 74667179, "author": "Franco Gabriel", "author_id": 19499461, "author_profile": "https://Stackoverflow.com/users/19499461", "pm_score": 1, "selected": false, "text": "position: sticky; .top-bar {\n width: 100%;\n height: 40px;\n background-color: black;\n}\n\n.dashboard ...
2022/12/03
[ "https://Stackoverflow.com/questions/74666901", "https://Stackoverflow.com", "https://Stackoverflow.com/users/239219/" ]
74,666,910
<p>on my Project I have a banner on top of my site with 2 buttons. when I click the button profile I want it to change the css style of a div in another component. this is my code for the banner:</p> <pre><code>import Profile from &quot;./Profile&quot;; function Banner() { const invis=false; return ( &lt;d...
[ { "answer_id": 74667179, "author": "Franco Gabriel", "author_id": 19499461, "author_profile": "https://Stackoverflow.com/users/19499461", "pm_score": 1, "selected": false, "text": "position: sticky; .top-bar {\n width: 100%;\n height: 40px;\n background-color: black;\n}\n\n.dashboard ...
2022/12/03
[ "https://Stackoverflow.com/questions/74666910", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19870243/" ]
74,666,923
<p>Disabled users who cannot control a mouse use the keyboard to navigate the page. How do you allow them to select the various styles (like bold etc) in ckeditor5? These elements are NOT in the tabindex of the page by default.</p> <p>Tabbing through a form, I expect to be able to interact with every interactable eleme...
[ { "answer_id": 74667179, "author": "Franco Gabriel", "author_id": 19499461, "author_profile": "https://Stackoverflow.com/users/19499461", "pm_score": 1, "selected": false, "text": "position: sticky; .top-bar {\n width: 100%;\n height: 40px;\n background-color: black;\n}\n\n.dashboard ...
2022/12/03
[ "https://Stackoverflow.com/questions/74666923", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16008060/" ]
74,667,001
<p>Hi all I am a newby and I am trying to create a function that when I press a button for example the 'b' key focus will move from one button on the page to the next. I am able to set the focus on the first button of the page but when I press the 'b' key again focus stays on the first button.</p> <p><div class="snipp...
[ { "answer_id": 74667190, "author": "raykay", "author_id": 18357803, "author_profile": "https://Stackoverflow.com/users/18357803", "pm_score": 0, "selected": false, "text": "let buttons = document.querySelectorAll('button');\nlet currentButton = 0;\n\ndocument.body.addEventListener('keypr...
2022/12/03
[ "https://Stackoverflow.com/questions/74667001", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20674542/" ]
74,667,022
<p>here is a code for multiselect which is working fine for multiselect but i need this code to be work in single select , in this Code #Country list is simply getting list from option as you can see in code and when we select #country in dropdown the #state data is fetching from data base according to country selecti...
[ { "answer_id": 74667190, "author": "raykay", "author_id": 18357803, "author_profile": "https://Stackoverflow.com/users/18357803", "pm_score": 0, "selected": false, "text": "let buttons = document.querySelectorAll('button');\nlet currentButton = 0;\n\ndocument.body.addEventListener('keypr...
2022/12/03
[ "https://Stackoverflow.com/questions/74667022", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20667291/" ]
74,667,069
<p>May I ask on how to add photo background on my website using VS Code?</p> <p>I tried checking in yt but its not background, it just add up to my website as photo alone.</p>
[ { "answer_id": 74667190, "author": "raykay", "author_id": 18357803, "author_profile": "https://Stackoverflow.com/users/18357803", "pm_score": 0, "selected": false, "text": "let buttons = document.querySelectorAll('button');\nlet currentButton = 0;\n\ndocument.body.addEventListener('keypr...
2022/12/03
[ "https://Stackoverflow.com/questions/74667069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20674647/" ]
74,667,078
<p>i tried to install dependencies of my program and I get a error when execute yarn install on linux os</p> <p>i execute &quot;yarn install or sudo yarn install&quot; a i get the next error:</p> <pre><code>An unexpected error occurred: &quot;https://registry.yarnpkg.com/eslint/-/eslint-7.32.0.tgz: connect EACCES 2606:...
[ { "answer_id": 74667190, "author": "raykay", "author_id": 18357803, "author_profile": "https://Stackoverflow.com/users/18357803", "pm_score": 0, "selected": false, "text": "let buttons = document.querySelectorAll('button');\nlet currentButton = 0;\n\ndocument.body.addEventListener('keypr...
2022/12/03
[ "https://Stackoverflow.com/questions/74667078", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10300298/" ]
74,667,121
<p>So for my to-do list, im trying to show in my view the difference in number of days between the current date and the date that the task is suppose to be completed by. But i cant seem to do that because im using date_diff() function and it only accepts objects and not strings for the data types.</p> <p>This is the er...
[ { "answer_id": 74667190, "author": "raykay", "author_id": 18357803, "author_profile": "https://Stackoverflow.com/users/18357803", "pm_score": 0, "selected": false, "text": "let buttons = document.querySelectorAll('button');\nlet currentButton = 0;\n\ndocument.body.addEventListener('keypr...
2022/12/03
[ "https://Stackoverflow.com/questions/74667121", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19012424/" ]
74,667,137
<p>our electricity provider think it could be very fun to make difficult to read csv files they provide.</p> <p>This is precise electric consumption, every 30 min but in the SAME column you have hours, and date, example :</p> <p>[EDIT : here the raw version of the csv file, my bad]</p> <pre><code>; &quot;Récapitulatif ...
[ { "answer_id": 74667242, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 1, "selected": false, "text": "import pandas as pd\n\ncurrent_date = None\nall_data = []\nwith open(\"your_file.txt\", \"r\") as f_in:\n ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18618577/" ]
74,667,141
<p>I have an object that looks like this :</p> <pre><code>{ &quot;mark&quot;: [ { &quot;id&quot;:1, &quot;name&quot;: &quot;mark&quot;, &quot;age&quot;:26 }, { &quot;id&quot;:2, &quot;name&quot;: &quot;mark&quot;, &quot;age&quot;:25 } ], &quot;jack&quot;: [ { ...
[ { "answer_id": 74667262, "author": "Dan Philip Bejoy", "author_id": 6412847, "author_profile": "https://Stackoverflow.com/users/6412847", "pm_score": 0, "selected": false, "text": "const data = fs.readFileSync('users.json');\n.\n.\nfs.writeFileSync('users.json', {...data, ...newObject});...
2022/12/03
[ "https://Stackoverflow.com/questions/74667141", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20117097/" ]
74,667,144
<p><a href="https://i.stack.imgur.com/9rTcj.png" rel="nofollow noreferrer">ValueError: could not broadcast input array from shape (200,200,3) into shape (200,200)</a></p> <pre><code>img_000= np.array(img_00) </code></pre>
[ { "answer_id": 74667178, "author": "solac34", "author_id": 20554831, "author_profile": "https://Stackoverflow.com/users/20554831", "pm_score": 1, "selected": false, "text": "np.asarray(img_00)\n" }, { "answer_id": 74669010, "author": "hpaulj", "author_id": 901925, "au...
2022/12/03
[ "https://Stackoverflow.com/questions/74667144", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19535251/" ]
74,667,168
<p>I have 2 inputs: i (the integer), length (how many bytes the integer should be encoded).</p> <p>how can I convert integer to bytes only with bitwise operations.</p> <pre><code>def int_to_bytes(i, length): for _ in range(length): pass </code></pre>
[ { "answer_id": 74667175, "author": "AKX", "author_id": 51685, "author_profile": "https://Stackoverflow.com/users/51685", "pm_score": 2, "selected": false, "text": "int.to_bytes >>> (1234).to_bytes(16, \"little\")\nb'\\xd2\\x04\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\...
2022/12/03
[ "https://Stackoverflow.com/questions/74667168", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12251690/" ]
74,667,170
<p>I'm running my website on localhost , when I upload files the uploaded file stored in htdocs (local host file) so i want to change the location to my project assets file which is in other location than localhost files this is my code :</p> <pre><code>&lt;?php header('Access-Control-Allow-Origin: *'); header('Access...
[ { "answer_id": 74667175, "author": "AKX", "author_id": 51685, "author_profile": "https://Stackoverflow.com/users/51685", "pm_score": 2, "selected": false, "text": "int.to_bytes >>> (1234).to_bytes(16, \"little\")\nb'\\xd2\\x04\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\...
2022/12/03
[ "https://Stackoverflow.com/questions/74667170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17563478/" ]
74,667,173
<p>I'm practicing format fuction and when I use this code with \t in it, the first 9 output did not have any big space `</p> <pre><code>import random lst = [random.randint(1,100) for i in range(51)] for index, val in enumerate(lst): print(f'{index=}\t{val=}') </code></pre> <p>`</p> <p>It works with \n but not \t, I...
[ { "answer_id": 74667175, "author": "AKX", "author_id": 51685, "author_profile": "https://Stackoverflow.com/users/51685", "pm_score": 2, "selected": false, "text": "int.to_bytes >>> (1234).to_bytes(16, \"little\")\nb'\\xd2\\x04\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\...
2022/12/03
[ "https://Stackoverflow.com/questions/74667173", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14420872/" ]
74,667,174
<p>I tried to implement a logout test method through selenium in Spring Boot but I cannot detect dropdown menu located top right hand side.</p> <p>How can I fix it?</p> <p>Here is the test method shown below.</p> <pre><code>@Test @Order(4) public void logout() throws InterruptedException { login(); driver.get...
[ { "answer_id": 74667679, "author": "Shatas", "author_id": 4054411, "author_profile": "https://Stackoverflow.com/users/4054411", "pm_score": 0, "selected": false, "text": "String xpathProfile = \"//*[@aria-label='View profile and more']\"; \nString xpathSignOut = \"//button[contains(@clas...
2022/12/03
[ "https://Stackoverflow.com/questions/74667174", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5719229/" ]
74,667,211
<p>i am a web developer (php, js, css and ...). i order a python script for remove image background. it worked in cmd very well but when running it from php script, it dosnt work. i look at the script for find problem and i realized that the script stops at this line:</p> <pre><code>net.load_state_dict(self.torch.load(...
[ { "answer_id": 74667679, "author": "Shatas", "author_id": 4054411, "author_profile": "https://Stackoverflow.com/users/4054411", "pm_score": 0, "selected": false, "text": "String xpathProfile = \"//*[@aria-label='View profile and more']\"; \nString xpathSignOut = \"//button[contains(@clas...
2022/12/03
[ "https://Stackoverflow.com/questions/74667211", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5511768/" ]
74,667,223
<p>(<a href="https://i.stack.imgur.com/2zm2w.png" rel="nofollow noreferrer">https://i.stack.imgur.com/2zm2w.png</a>)</p> <pre><code>collectionData(queryRef).subscribe((data) =&gt; { for (const each of data) { this.getCourse(each.courseId) .pipe(take(1)) .subscribe((courseData) =&gt; { const co...
[ { "answer_id": 74667795, "author": "DaumannM", "author_id": 11896081, "author_profile": "https://Stackoverflow.com/users/11896081", "pm_score": -1, "selected": false, "text": "forkJoin(\n {\n a: this.http.call1()..\n b: this.http.call2()..\n c: this.http.call3()..\n }).subscribe()\...
2022/12/03
[ "https://Stackoverflow.com/questions/74667223", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20674766/" ]
74,667,250
<p>I have a struct defined like the following (other fields removed for brevity):</p> <pre><code>use chrono::{ DateTime, Utc }; use serde::{ Deserialize, Serialize }; #[derive( Clone, Debug, PartialEq, Eq, Serialize, Deserialize )] pub struct Test { #[serde(skip_serializing_if = &quot;Option::i...
[ { "answer_id": 74667795, "author": "DaumannM", "author_id": 11896081, "author_profile": "https://Stackoverflow.com/users/11896081", "pm_score": -1, "selected": false, "text": "forkJoin(\n {\n a: this.http.call1()..\n b: this.http.call2()..\n c: this.http.call3()..\n }).subscribe()\...
2022/12/03
[ "https://Stackoverflow.com/questions/74667250", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12103188/" ]
74,667,255
<pre><code>import React from &quot;react&quot;; import &quot;./App.css&quot; import Navbar from &quot;./components/Navbar/Navbar&quot;; import Home from &quot;./components/Home/Home&quot; import About from &quot;./components/About/About&quot;; import { BrowserRouter,Route,Routes,Router } from &quot;react-router-dom&quo...
[ { "answer_id": 74667795, "author": "DaumannM", "author_id": 11896081, "author_profile": "https://Stackoverflow.com/users/11896081", "pm_score": -1, "selected": false, "text": "forkJoin(\n {\n a: this.http.call1()..\n b: this.http.call2()..\n c: this.http.call3()..\n }).subscribe()\...
2022/12/03
[ "https://Stackoverflow.com/questions/74667255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17582110/" ]
74,667,264
<p>i need to count longest 01 from list ex:</p> <pre><code>[1,1,1,0,0,1,1,1,0,1,0,1,0,1,0] </code></pre> <p>suppose to print 4 (sequence could also start with 10):</p> <pre><code>1,0,1,0 = 2 </code></pre> <pre><code>import itertools with open(&quot;file.txt&quot;, 'r+') as file: file_context = file.read() ...
[ { "answer_id": 74667795, "author": "DaumannM", "author_id": 11896081, "author_profile": "https://Stackoverflow.com/users/11896081", "pm_score": -1, "selected": false, "text": "forkJoin(\n {\n a: this.http.call1()..\n b: this.http.call2()..\n c: this.http.call3()..\n }).subscribe()\...
2022/12/03
[ "https://Stackoverflow.com/questions/74667264", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20674825/" ]
74,667,269
<p>I am doing cohort analysis and the dataset I'm using has 15 months as the name as columns with revenue and around 7k user_id rows. I need to get a new column with the month when the user was last time active.</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>2021-01-01</th> <th>2021-02-01<...
[ { "answer_id": 74667352, "author": "Umar.H", "author_id": 9375102, "author_profile": "https://Stackoverflow.com/users/9375102", "pm_score": 1, "selected": false, "text": "idxmax() df['last_month'] = (~df.isna()).idxmax(axis=1)\n\n\nprint(df)\n\n\n 2021-01-01 2021-02-01 last_month\n0 ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20674781/" ]
74,667,319
<p>I am trying to get a backwards typing effect with my code. So the <code>&lt;P&gt;</code> will say &quot;Coming Soon&quot; then type backwards. Then type forwards into &quot;SeaDogs.com.eu.as&quot;</p> <p>This is what I have so far, for some reason it type coming soon backwards twice??? Which is my first hurtle I'm t...
[ { "answer_id": 74667405, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 1, "selected": false, "text": "const demo = document.querySelector('#demo')\n\nconst initial = \"Coming Soon\"\nconst later = \"SeaDogs.com.eu.as\"\...
2022/12/03
[ "https://Stackoverflow.com/questions/74667319", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20674899/" ]
74,667,324
<p>I have a table that shows the date and time whenever an issuer has called the service. I want to write a query to show in a specific day the requests of an specific issuer has not covered the 24 hours. I will be appreciated if someone can guide me. I am beginner at SQL. <img src="https://i.stack.imgur.com/JkLsJ.png"...
[ { "answer_id": 74667405, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 1, "selected": false, "text": "const demo = document.querySelector('#demo')\n\nconst initial = \"Coming Soon\"\nconst later = \"SeaDogs.com.eu.as\"\...
2022/12/03
[ "https://Stackoverflow.com/questions/74667324", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17070100/" ]
74,667,350
<p>the below is my main_call.py file</p> <pre><code>from flask import Flask, jsonify, request from test_invoke.invoke import end_invoke from config import config app = Flask(__name__) @app.route(&quot;/get/posts&quot;, methods=[&quot;GET&quot;]) def load_data(): res = &quot;True&quot; ...
[ { "answer_id": 74667398, "author": "Saurabh Verma", "author_id": 12817895, "author_profile": "https://Stackoverflow.com/users/12817895", "pm_score": 1, "selected": true, "text": "from test_invoke.invoke import end_invoke from invoke import end_invoke" }, { "answer_id": 74667502, ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667350", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1004770/" ]
74,667,361
<p>I want to delete some records after sort and skip items but this query always delete all records after find.as if sort and skip don't do anything':</p> <pre><code>await Book.find(Book.owner.id == user.id).sort(&quot;-created_at&quot;).skip(2).delete() </code></pre>
[ { "answer_id": 74667398, "author": "Saurabh Verma", "author_id": 12817895, "author_profile": "https://Stackoverflow.com/users/12817895", "pm_score": 1, "selected": true, "text": "from test_invoke.invoke import end_invoke from invoke import end_invoke" }, { "answer_id": 74667502, ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667361", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11976483/" ]
74,667,366
<p>I am new to react-router-dom I was passing data from <strong>ParentPage</strong> to the <strong>ChildPage</strong> page using <code>&lt;Link/&gt;</code> and it was a success, but if I'm going to refresh the child page it returns an error <code>TypeError: Cannot read properties of undefined</code>. I have also tried ...
[ { "answer_id": 74667398, "author": "Saurabh Verma", "author_id": 12817895, "author_profile": "https://Stackoverflow.com/users/12817895", "pm_score": 1, "selected": true, "text": "from test_invoke.invoke import end_invoke from invoke import end_invoke" }, { "answer_id": 74667502, ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667366", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13084897/" ]
74,667,386
<p>I have two SVG icons, and all I want to do is apply a background, add some padding, and make the <strong>padding</strong> appear round (border-radius). When adding the padding all is fine and appears as expected, it's only when trying to make it round.</p> <p>No matter what the amount of padding is, the SVG's are cu...
[ { "answer_id": 74667398, "author": "Saurabh Verma", "author_id": 12817895, "author_profile": "https://Stackoverflow.com/users/12817895", "pm_score": 1, "selected": true, "text": "from test_invoke.invoke import end_invoke from invoke import end_invoke" }, { "answer_id": 74667502, ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667386", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16415800/" ]
74,667,397
<p>My expo application works normally on Expo go, even using the command bellow it still works.</p> <blockquote> <p>npx expo start --no-dev --minify</p> </blockquote> <p>But when building with different methods it don't work at all, with different crashes.</p> <blockquote> <p>eas build -p android --profile preview</p> ...
[ { "answer_id": 74668275, "author": "mirik999", "author_id": 13907400, "author_profile": "https://Stackoverflow.com/users/13907400", "pm_score": 1, "selected": false, "text": "\"developmentClient\": true\n" } ]
2022/12/03
[ "https://Stackoverflow.com/questions/74667397", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13253577/" ]
74,667,407
<p>TrackPoint tp Type: TrackPoint</p> <p>The argument type 'TrackPoint (where TrackPoint is defined in ...lib\trackpoint.dart)' can't be assigned to the parameter type 'TrackPoint (where TrackPoint is defined in ...lib\trackPoint.dart)'.dart <strong>(argument_type_not_assignable)</strong> trackpoint.dart(8, 7): TrackPo...
[ { "answer_id": 74668275, "author": "mirik999", "author_id": 13907400, "author_profile": "https://Stackoverflow.com/users/13907400", "pm_score": 1, "selected": false, "text": "\"developmentClient\": true\n" } ]
2022/12/03
[ "https://Stackoverflow.com/questions/74667407", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4823385/" ]
74,667,424
<p>I'm trying to use regex to match: a word that's at least 5 characters long and ends with an 's', but the 's' is included in the 5 characters. Say for example, I have the following words:</p> <pre><code>hexes pixies major prairies caveman zipfiles oxes </code></pre> <p>I tried doing <code>([a-z]s?){5,}</code></p>
[ { "answer_id": 74667543, "author": "The fourth bird", "author_id": 5424988, "author_profile": "https://Stackoverflow.com/users/5424988", "pm_score": 3, "selected": true, "text": "([a-z]s?){5,} s \\b s \\b[a-z]{4,}s\\b\n" }, { "answer_id": 74667875, "author": "Oskar Asplin", ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667424", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15748497/" ]
74,667,427
<p>I read <a href="https://tkdodo.eu/blog/react-query-as-a-state-manager" rel="nofollow noreferrer">an article on using react-query as a state manager</a> and I am now trying to replace a context in my app with react-query (version 4).</p> <p>Previously, I created a context with <code>useContext()</code> that stored a ...
[ { "answer_id": 74673284, "author": "Jakub Kotrs", "author_id": 2188587, "author_profile": "https://Stackoverflow.com/users/2188587", "pm_score": 2, "selected": false, "text": "undefined export type QueryStatus = 'loading' | 'error' | 'success'\n data undefined type QueryObserverResult = ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667427", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1209486/" ]
74,667,428
<p>I want to display the data of the authenticated user and also produce a status code and a status message when the user is not authenticated. I am using Laravel API and Sanctum and this is what I have tried:</p> <pre><code>public function me(Request $request){ $user = $request-&gt;user(); if($user) ...
[ { "answer_id": 74673284, "author": "Jakub Kotrs", "author_id": 2188587, "author_profile": "https://Stackoverflow.com/users/2188587", "pm_score": 2, "selected": false, "text": "undefined export type QueryStatus = 'loading' | 'error' | 'success'\n data undefined type QueryObserverResult = ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667428", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20490773/" ]
74,667,431
<p>I want to make a set of floating point numbers, but with a twist:</p> <p>When testing if some float x is a member of the set s, I want the test to return true if s contains some float f such that</p> <pre><code>abs(x - f) &lt; tol </code></pre> <p>In other words, if the set contains a number that is close to x, retu...
[ { "answer_id": 74669412, "author": "chux - Reinstate Monica", "author_id": 2410359, "author_profile": "https://Stackoverflow.com/users/2410359", "pm_score": 0, "selected": false, "text": "float float MAX_FLOAT N -MAX_FLOAT -N float float" } ]
2022/12/03
[ "https://Stackoverflow.com/questions/74667431", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9985445/" ]
74,667,477
<p>Could you please help me figure out why is this not working i.e. refering to the comment in the code <code>//I need to do this but I can't. I thought this the goal!</code>? I have no idea why this is not working, it's inspired by examples I have seen online.</p> <pre><code>#include &lt;variant&gt; #include &lt;iostr...
[ { "answer_id": 74667677, "author": "apple apple", "author_id": 5980430, "author_profile": "https://Stackoverflow.com/users/5980430", "pm_score": 2, "selected": false, "text": "std:visit class SubVisitor{\n virtual double apply(std::variant<std::string, double> visitable) override\n ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667477", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18718251/" ]
74,667,505
<p>With <code>strict</code> enabled in <code>tsconfig.json</code>, why does <code>tsc</code> not issue an error when indexing an object of type <code>never</code>?</p> <pre><code>const mystery = ({ foo: 1 } as never) console.log(mystery['foo']) // no error console.log(mystery.foo) // Property 'foo' does not exist on...
[ { "answer_id": 74667539, "author": "chivalrous-nerd", "author_id": 7347835, "author_profile": "https://Stackoverflow.com/users/7347835", "pm_score": -1, "selected": false, "text": "type never mystery never { foo: number } as never mystery never console.log console.log never never" }, ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/720877/" ]
74,667,509
<p>I'm making a simple to-do app with add and delete functionality and I want to implement an undo-delete option.</p> <p>So far, I've tried using context but I have a problem with context state logic: undo function uses not-yet updated state values, which leads to errors.</p> <p>The problem is better documented in the ...
[ { "answer_id": 74667539, "author": "chivalrous-nerd", "author_id": 7347835, "author_profile": "https://Stackoverflow.com/users/7347835", "pm_score": -1, "selected": false, "text": "type never mystery never { foo: number } as never mystery never console.log console.log never never" }, ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667509", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13457557/" ]
74,667,518
<pre><code>import qrcode import time import tkinter as tk import os import shutil from sys import exit # GUI with tkinter root = tk.Tk() root.title('Window') root.geometry(&quot;400x400+50+50&quot;) root.iconbitmap('QRCODE-GENERATOR.ico') root.configure(bg=&quot;grey&quot;) lbl_1 = tk.Label(root, text=&quot;Qrcode g...
[ { "answer_id": 74667539, "author": "chivalrous-nerd", "author_id": 7347835, "author_profile": "https://Stackoverflow.com/users/7347835", "pm_score": -1, "selected": false, "text": "type never mystery never { foo: number } as never mystery never console.log console.log never never" }, ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667518", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20484607/" ]
74,667,546
<p>I try to fetch 4 categories from my DB.</p> <p>I get the category, everything is ok but when I submit my form, I get this data :</p> <pre><code>[object%20Object],[object%20Object],[object%20Object],[object%20Object] </code></pre> <p>Here the code :</p> <pre><code>//State const [cates, setCates] = useState([]); // F...
[ { "answer_id": 74667539, "author": "chivalrous-nerd", "author_id": 7347835, "author_profile": "https://Stackoverflow.com/users/7347835", "pm_score": -1, "selected": false, "text": "type never mystery never { foo: number } as never mystery never console.log console.log never never" }, ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17026389/" ]
74,667,561
<p>I am using amazon service and created rabbitmq broker now from the DOT NET code i am trying to connect to this broker.</p> <pre><code> var factory = new ConnectionFactory { Uri = new Uri(&quot;amqps://it:Password@hostname:5671&quot;) }; var connection = factory.CreateConnection(); </code></pre> <p...
[ { "answer_id": 74667539, "author": "chivalrous-nerd", "author_id": 7347835, "author_profile": "https://Stackoverflow.com/users/7347835", "pm_score": -1, "selected": false, "text": "type never mystery never { foo: number } as never mystery never console.log console.log never never" }, ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667561", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2746693/" ]
74,667,577
<p>Here's my sample code:</p> <pre><code>public class MyList&lt;T extends Number&gt; { private List&lt;T&gt; items; public void func() { items.add(Integer.valueOf(1)); } } </code></pre> <p>I think I should be able to add integer to items, but compilation fails:</p> <pre><code>Required type: T Provided: Inte...
[ { "answer_id": 74667902, "author": "Stephen C", "author_id": 139985, "author_profile": "https://Stackoverflow.com/users/139985", "pm_score": 1, "selected": false, "text": "public class MyList<T extends Number> {\n\n private List<T> items = new ArrayList<>();\n\n public void func() ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667577", "https://Stackoverflow.com", "https://Stackoverflow.com/users/243755/" ]
74,667,598
<p>I'm currently working on a website and I it's putting line breaks where I don't believe it should.</p> <p>For example if I'd do:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-overri...
[ { "answer_id": 74667619, "author": "Tohirul Islam", "author_id": 16414128, "author_profile": "https://Stackoverflow.com/users/16414128", "pm_score": 0, "selected": false, "text": "<br/> \\n <p></p> <p></p> <span>a</span><span>b</span> <span></span>" }, { "answer_id": 74667662, ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18374054/" ]
74,667,612
<p>I want to generate a random binary matrix, so I'm using <code> W=np.random.binomial(1, p, (n,n))</code>. It works fine, but I want a constraint that no row is just of 0s.</p> <p>I create the following function:</p> <pre class="lang-py prettyprint-override"><code>def random_matrix(p,n): m=0 while m==0: ...
[ { "answer_id": 74667619, "author": "Tohirul Islam", "author_id": 16414128, "author_profile": "https://Stackoverflow.com/users/16414128", "pm_score": 0, "selected": false, "text": "<br/> \\n <p></p> <p></p> <span>a</span><span>b</span> <span></span>" }, { "answer_id": 74667662, ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667612", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9975452/" ]
74,667,621
<p>I'm trying to get full article in Google Sheet using Openai API. In column A I just mention the topic and want to get full article in column B.</p> <p>Here is what I'm trying</p> <pre><code> /** * Use GPT-3 to generate an article * * @param {string} topic - the topic for the article * @return {string} the ge...
[ { "answer_id": 74668192, "author": "doubleunary", "author_id": 13045193, "author_profile": "https://Stackoverflow.com/users/13045193", "pm_score": 0, "selected": false, "text": "console.log(response.getContentText()) { \"title\": \"OpenAI API Example Article\", \"author\": \"John Doe\", ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667621", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7954236/" ]
74,667,623
<pre><code>user_input = int(input('Enter input: ')) if type(user_input) == &quot;&lt;class 'int'&gt;&quot;: print('This is a integer.') </code></pre> <p>The code above outputs nothing to the console. I am just confused because it is very simple and looks like it should work.</p> <p>I've tried removing the int() in...
[ { "answer_id": 74668192, "author": "doubleunary", "author_id": 13045193, "author_profile": "https://Stackoverflow.com/users/13045193", "pm_score": 0, "selected": false, "text": "console.log(response.getContentText()) { \"title\": \"OpenAI API Example Article\", \"author\": \"John Doe\", ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667623", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20309887/" ]
74,667,658
<p>I try to make a simple file upload server. I wonder if it stores the uploaded file in a ram or hard disk since the container itself run as a virtual-machine in ram so it should not be able to have access to the disk right? unless I specify the bind-mounted volume option. So if the user upload a lot of files to the s...
[ { "answer_id": 74668192, "author": "doubleunary", "author_id": 13045193, "author_profile": "https://Stackoverflow.com/users/13045193", "pm_score": 0, "selected": false, "text": "console.log(response.getContentText()) { \"title\": \"OpenAI API Example Article\", \"author\": \"John Doe\", ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667658", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9740664/" ]
74,667,749
<p>Im just curious why the linethrough worked on everything even the textbox placeholders but not with the text inside all the buttons, with css or not. ``</p> <pre><code>function strike(){ document.getElementById(&quot;root&quot;).style.textDecoration= &quot;line-through&quot;; } function unstrike(){ documen...
[ { "answer_id": 74668192, "author": "doubleunary", "author_id": 13045193, "author_profile": "https://Stackoverflow.com/users/13045193", "pm_score": 0, "selected": false, "text": "console.log(response.getContentText()) { \"title\": \"OpenAI API Example Article\", \"author\": \"John Doe\", ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667749", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20675197/" ]
74,667,758
<p>This will raise an <code>Error: Hydration failed because the initial UI does not match what was rendered on the server.</code> error:</p> <pre class="lang-js prettyprint-override"><code>const [selectedOrganizationShortId, setSelectedOrganizationShortId] = useLocalStorage&lt;string&gt;('teamId', undefined) </code></p...
[ { "answer_id": 74668192, "author": "doubleunary", "author_id": 13045193, "author_profile": "https://Stackoverflow.com/users/13045193", "pm_score": 0, "selected": false, "text": "console.log(response.getContentText()) { \"title\": \"OpenAI API Example Article\", \"author\": \"John Doe\", ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667758", "https://Stackoverflow.com", "https://Stackoverflow.com/users/239219/" ]
74,667,776
<p>i'm currently trying to solve a problem by counting the repeated sequences of character for example:- input:&quot;aaabbcc&quot; output should be printed as 3; input:&quot;aabbcde&quot; output:2. even if a repeated sequencce occurs two or more time it should be considered as 1?</p> <pre><code>private int stringocc1(S...
[ { "answer_id": 74668192, "author": "doubleunary", "author_id": 13045193, "author_profile": "https://Stackoverflow.com/users/13045193", "pm_score": 0, "selected": false, "text": "console.log(response.getContentText()) { \"title\": \"OpenAI API Example Article\", \"author\": \"John Doe\", ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667776", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20663066/" ]
74,667,777
<p>I have a hitbox with a script called &quot;accept&quot;, I then have 2 prefabs that have a public bool of &quot;isPoor&quot;. One of the prefabs = true, the other = false.</p> <p>When the prefabs with isPoor = true goes into the &quot;accept&quot; hitbox I want the game to fail, and when isPoor = false goes into &qu...
[ { "answer_id": 74667832, "author": "Olivier Jacot-Descombes", "author_id": 880990, "author_profile": "https://Stackoverflow.com/users/880990", "pm_score": 2, "selected": true, "text": "isPoor class accept OnTriggerEnter2D = = == // bool isPoor; drop this declaration!\n\npublic void OnTri...
2022/12/03
[ "https://Stackoverflow.com/questions/74667777", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20675073/" ]
74,667,793
<p>I don't understand what the difference between</p> <pre class="lang-c prettyprint-override"><code>int main(int argc, char* argv[]){;} </code></pre> <p>and</p> <pre class="lang-c prettyprint-override"><code>int main(int argc, const char* argv[]){;} </code></pre> <p>is.</p> <p>I'm aware of the difference between a <co...
[ { "answer_id": 74667874, "author": "Eric Postpischil", "author_id": 298225, "author_profile": "https://Stackoverflow.com/users/298225", "pm_score": 4, "selected": true, "text": "int main(int argc, char *argv[]) main int main(int argc, const char *argv[]) const char *[] const char *[] mai...
2022/12/03
[ "https://Stackoverflow.com/questions/74667793", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20675205/" ]
74,667,805
<p>I tried to add a directory path to <code>sys.path</code>, but it gives me an error:</p> <pre class="lang-py prettyprint-override"><code>import sys sys.path.append(&quot;C:\Users\tamer\Desktop\code\python\modules&quot;) </code></pre> <pre class="lang-py prettyprint-override"><code>SyntaxError: (unicode error) 'unicod...
[ { "answer_id": 74667874, "author": "Eric Postpischil", "author_id": 298225, "author_profile": "https://Stackoverflow.com/users/298225", "pm_score": 4, "selected": true, "text": "int main(int argc, char *argv[]) main int main(int argc, const char *argv[]) const char *[] const char *[] mai...
2022/12/03
[ "https://Stackoverflow.com/questions/74667805", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20675252/" ]
74,667,819
<p>Center the numeric input box vertically in the content area<br /> <img src="https://i.stack.imgur.com/3NdSx.png" alt="image" /></p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"...
[ { "answer_id": 74667874, "author": "Eric Postpischil", "author_id": 298225, "author_profile": "https://Stackoverflow.com/users/298225", "pm_score": 4, "selected": true, "text": "int main(int argc, char *argv[]) main int main(int argc, const char *argv[]) const char *[] const char *[] mai...
2022/12/03
[ "https://Stackoverflow.com/questions/74667819", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20675230/" ]
74,667,821
<p>My input.txt is as below</p> <pre><code> \n\n \n \n\n \n\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n\r\n\r\n hello boys\r\n boys\r\n boys\r\n\r\n Download PDF\r\n ...
[ { "answer_id": 74667874, "author": "Eric Postpischil", "author_id": 298225, "author_profile": "https://Stackoverflow.com/users/298225", "pm_score": 4, "selected": true, "text": "int main(int argc, char *argv[]) main int main(int argc, const char *argv[]) const char *[] const char *[] mai...
2022/12/03
[ "https://Stackoverflow.com/questions/74667821", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11930479/" ]
74,667,822
<p>this my html code</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt; &lt;head&gt; &lt;title&gt;pyscript demo&lt;/title&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;https://pyscript.net/latest/pyscript.css&quot; /&gt; &lt;script defer src=&quot;https://pyscript.net/latest/pyscript.js&quot;&...
[ { "answer_id": 74667874, "author": "Eric Postpischil", "author_id": 298225, "author_profile": "https://Stackoverflow.com/users/298225", "pm_score": 4, "selected": true, "text": "int main(int argc, char *argv[]) main int main(int argc, const char *argv[]) const char *[] const char *[] mai...
2022/12/03
[ "https://Stackoverflow.com/questions/74667822", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20167592/" ]
74,667,823
<p>I am currently working on a program that should create a list out of your own inputs. It should list your inputs under each other but if I try to press the &quot;Hinzufügen&quot; button (Enter button), nothing happens and my inputs aren't listed. This is for a school project and I am stuck with this for some time.</...
[ { "answer_id": 74667879, "author": "N.braha", "author_id": 6121138, "author_profile": "https://Stackoverflow.com/users/6121138", "pm_score": 0, "selected": false, "text": "function erstellenEintrag() {\n var li = document.createElement(\"li\");\n // Set the content of the <li> element ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667823", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20219637/" ]
74,667,871
<p>I need to have an async consumer method to consume messages from RabbitMq. My problem is that the rabbitmq client for .net rely on an event handler. I tried to implement a blocking system with a Semaphore, which is working with a low volume. When I'm getting more volume, some messages are lost.</p> <p>Here is my imp...
[ { "answer_id": 74667879, "author": "N.braha", "author_id": 6121138, "author_profile": "https://Stackoverflow.com/users/6121138", "pm_score": 0, "selected": false, "text": "function erstellenEintrag() {\n var li = document.createElement(\"li\");\n // Set the content of the <li> element ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667871", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2884046/" ]
74,667,881
<p>im using <a href="https://pub.dev/packages/flutter_svg" rel="nofollow noreferrer">flutter_svg</a> package for svg. and now i want to use a svg inside a container as decoration like this,</p> <pre class="lang-dart prettyprint-override"><code> Container( decoration: BoxDecoration( image: DecorationImage( i...
[ { "answer_id": 74667879, "author": "N.braha", "author_id": 6121138, "author_profile": "https://Stackoverflow.com/users/6121138", "pm_score": 0, "selected": false, "text": "function erstellenEintrag() {\n var li = document.createElement(\"li\");\n // Set the content of the <li> element ...
2022/12/03
[ "https://Stackoverflow.com/questions/74667881", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10016592/" ]