qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,646,634
<p>Hi I wanted to separate integers in a string an build an array For example 50 + 80 in column I wanted to get [50,80] this is simple example in my column I will have more complex expressions such as (10 + 20) / 30 I want [10,20,30]<br /> I may have +,-,*,/,(,),' ' remove all this and wanted to build and array with co...
[ { "answer_id": 74646897, "author": "JRiggles", "author_id": 8512262, "author_profile": "https://Stackoverflow.com/users/8512262", "pm_score": 1, "selected": false, "text": "tkinter.after() after # I don't know what your imports look like, so this is a boilerplate example\nimport tkinter ...
2022/12/01
[ "https://Stackoverflow.com/questions/74646634", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20659196/" ]
74,646,642
<p>So I'm building a quiz app and that quiz is divided into difficulty levels. I change that level on a button click by setting params into my path. Then I try to insert a difficulty index because the structure of my obj is:</p> <pre><code>const questions = { easy: [...], medium: [...], hard: [...] } </code></pr...
[ { "answer_id": 74646655, "author": "Drew Reese", "author_id": 8690857, "author_profile": "https://Stackoverflow.com/users/8690857", "pm_score": 0, "selected": false, "text": "difficulty const handlePageChange = () => {\n if (difficulty && currentPage + 1 < questions[difficulty]?.length)...
2022/12/01
[ "https://Stackoverflow.com/questions/74646642", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18367514/" ]
74,646,644
<p>Hej!</p> <p>I own a domain registered through GCP and it's connected with Cloud DNS in GCP, I would be very happy if you could help me setup my custom domain for my web page at <a href="https://buahaha.github.io" rel="nofollow noreferrer">buahaha.github.io</a>.</p> <p>I think I know how to do this, because I did it ...
[ { "answer_id": 74646655, "author": "Drew Reese", "author_id": 8690857, "author_profile": "https://Stackoverflow.com/users/8690857", "pm_score": 0, "selected": false, "text": "difficulty const handlePageChange = () => {\n if (difficulty && currentPage + 1 < questions[difficulty]?.length)...
2022/12/01
[ "https://Stackoverflow.com/questions/74646644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14041713/" ]
74,646,662
<pre><code>menu = { &quot;Baja Taco&quot;: 4.00, &quot;Burrito&quot;: 7.50, &quot;Bowl&quot;: 8.50, &quot;Nachos&quot;: 11.00, &quot;Quesadilla&quot;: 8.50, &quot;Super Burrito&quot;: 8.50, &quot;Super Quesadilla&quot;: 9.50, &quot;Taco&quot;: 3.00, &quot;Tortilla Salad&quot;: 8.00 }...
[ { "answer_id": 74646747, "author": "Chrispresso", "author_id": 2599709, "author_profile": "https://Stackoverflow.com/users/2599709", "pm_score": 0, "selected": false, "text": "total menu = {\n \"Baja Taco\": 4.00,\n \"Burrito\": 7.50,\n \"Bowl\": 8.50,\n \"Nachos\": 11.00,\n ...
2022/12/01
[ "https://Stackoverflow.com/questions/74646662", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20574466/" ]
74,646,722
<p><strong>App.js</strong></p> <pre><code>function App() { return ( &lt;div className=&quot;sm:text-center&quot;&gt; &lt;h1&gt; Hello &lt;/h1&gt; &lt;/div&gt; ); } export default App; </code></pre> <p><strong>tailwind.js</strong></p> <pre><code>/** @type {import('tailwindcss').Confi...
[ { "answer_id": 74646747, "author": "Chrispresso", "author_id": 2599709, "author_profile": "https://Stackoverflow.com/users/2599709", "pm_score": 0, "selected": false, "text": "total menu = {\n \"Baja Taco\": 4.00,\n \"Burrito\": 7.50,\n \"Bowl\": 8.50,\n \"Nachos\": 11.00,\n ...
2022/12/01
[ "https://Stackoverflow.com/questions/74646722", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16300552/" ]
74,646,730
<p>I have the following group of <code>GET</code> routes on Laravel:</p> <pre><code>Route::get('/location/get', 'Ajax@getProducts'); Route::get('/products/get', 'Ajax@getProducts'); Route::get('/schedule/get', 'Ajax@getProducts'); </code></pre> <p>I want to protect those routes with the automatically generated <code>CS...
[ { "answer_id": 74646926, "author": "Arthur Shlain", "author_id": 2453148, "author_profile": "https://Stackoverflow.com/users/2453148", "pm_score": 2, "selected": true, "text": "csrf Route::group(['before' => 'csrf'], function() {\n // your ::post routes\n});\n csrf_get Route::group(['...
2022/12/01
[ "https://Stackoverflow.com/questions/74646730", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10541642/" ]
74,646,731
<p>Problem Statement</p> <p>A matrix is a 2D array of numbers arranged in rows and columns. We give you a Matrix of <code>N</code> rows and <code>M</code> columns.</p> <p>Now your task is to do this operation on this matrix:</p> <ul> <li>If the value matches with the current row and column number then add <code>3</code...
[ { "answer_id": 74647565, "author": "chux - Reinstate Monica", "author_id": 2410359, "author_profile": "https://Stackoverflow.com/users/2410359", "pm_score": 1, "selected": false, "text": "if (arr[i][j] == arr[i+1] && arr[i][j]== arr[j+1]){ int arr[row][column]; arr[i+1] arr[j+1] arr[i][j...
2022/12/01
[ "https://Stackoverflow.com/questions/74646731", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20584362/" ]
74,646,757
<p>I've been trying to run a PowerShell script, and upon doing so, I receive a message that NuGet Provider is required.</p> <pre><code>NuGet provider is required to continue This version of PowerShellGet requires minimum version '2.8.5.201' of NuGet provider to publish an item to NuGet-based repositories. The NuGet pro...
[ { "answer_id": 74647565, "author": "chux - Reinstate Monica", "author_id": 2410359, "author_profile": "https://Stackoverflow.com/users/2410359", "pm_score": 1, "selected": false, "text": "if (arr[i][j] == arr[i+1] && arr[i][j]== arr[j+1]){ int arr[row][column]; arr[i+1] arr[j+1] arr[i][j...
2022/12/01
[ "https://Stackoverflow.com/questions/74646757", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6530134/" ]
74,646,759
<p>I am creating an interactive website where the user is able to click anywhere on the page and each paragraph will show up one by one. At the moment the paragraphs are displaying to the right of the click but i want the paragraph to be centred on the mouse position. Is there a way to do this?</p> <p>Is there also a w...
[ { "answer_id": 74647390, "author": "EssXTee", "author_id": 2339619, "author_profile": "https://Stackoverflow.com/users/2339619", "pm_score": 2, "selected": true, "text": "width height width height top left const paragraphs = [\n {text: `Paragraph: 1`, class: \"red gray-bg font-1\"},\n ...
2022/12/01
[ "https://Stackoverflow.com/questions/74646759", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20504382/" ]
74,646,761
<p>I have been trying to make a simple program to check a person's birthday and if their birthday is the same as their pet, for it to be printed out on the console, or if it's not the same to type out no valid input. I don't know why but the variables are not being taken in saying they aren't properly added or it just ...
[ { "answer_id": 74646846, "author": "pm100", "author_id": 173397, "author_profile": "https://Stackoverflow.com/users/173397", "pm_score": -1, "selected": false, "text": " public string BirthdayCheck()\n { \n" }, { "answer_id": 74649708, "author": "Ceemah Four", "auth...
2022/12/01
[ "https://Stackoverflow.com/questions/74646761", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17209877/" ]
74,646,811
<p>I was trying to find the way you can identify embed message text and author, but never found it. So is there any way to do that?</p> <p>Googled through out of the Internet but not found it unfortunately.</p>
[ { "answer_id": 74646938, "author": "Chrispresso", "author_id": 2599709, "author_profile": "https://Stackoverflow.com/users/2599709", "pm_score": 1, "selected": false, "text": "obj obj.author obj.title" }, { "answer_id": 74650668, "author": "J Muzhen", "author_id": 1234139...
2022/12/01
[ "https://Stackoverflow.com/questions/74646811", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20659342/" ]
74,646,866
<p>When I compile this code</p> <pre class="lang-rust prettyprint-override"><code> fn read(&amp;mut self) -&gt; Result&lt;u8, &amp;str&gt; { if self.pos &gt;= 512 { return Err(&quot;End of buffer&quot;.into()); } let res = self.buf[self.pos]; self.pos += 1; Ok(res...
[ { "answer_id": 74646962, "author": "cafce25", "author_id": 442760, "author_profile": "https://Stackoverflow.com/users/442760", "pm_score": 3, "selected": true, "text": "fn read<'a>(&'a mut self) -> Result<u8, &'a str>\n self Result str fn read(&mut self) -> Result<u8, &'static str>\n" ...
2022/12/01
[ "https://Stackoverflow.com/questions/74646866", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12294900/" ]
74,646,885
<p>In my Effect im listening on an Action, that value of the Action is a string Array. Now i need to loop over the array and use the values as inputs for the next asnyc function.</p> <pre><code>someEffect$ = createEffect(() =&gt; this.action$.pipe( ofType(someAction), mergeMap(({ someValue }) =&gt;...
[ { "answer_id": 74649482, "author": "Tobias S.", "author_id": 8613630, "author_profile": "https://Stackoverflow.com/users/8613630", "pm_score": 3, "selected": true, "text": "forkJoin someEffect$ = createEffect(() => \n this.action$.pipe(\n ofType(someAction),\n mergeMap((...
2022/12/01
[ "https://Stackoverflow.com/questions/74646885", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11896081/" ]
74,646,887
<p>I am trying to run linear regression through functional programming. However, I am not able to get the output successfully. <code>purrr:::map</code> returns multiple rows per nested list instead of one row.</p> <pre><code>#perform linear regression for each cylinder mtcars_result &lt;- mtcars%&gt;% nest(-cyl)%&gt;...
[ { "answer_id": 74647498, "author": "TimTeaFan", "author_id": 9349302, "author_profile": "https://Stackoverflow.com/users/9349302", "pm_score": 3, "selected": true, "text": "imap predict .y mtcars_result %>%\n mutate(predicted_values = imap(model, ~ get_prediction(.x, \"disp\", predict[....
2022/12/01
[ "https://Stackoverflow.com/questions/74646887", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17918739/" ]
74,646,952
<p>Trying to edit the below grammar and define the semantic actions required to translate arithmetic expressions written in the language defined below into postfix notation.</p> <pre><code>grammar Expr; expr: expr ('*'|'/') term | expr ('+'|'-') term | term ; term: '('expr')' | ID | NUM ; ID:...
[ { "answer_id": 74647498, "author": "TimTeaFan", "author_id": 9349302, "author_profile": "https://Stackoverflow.com/users/9349302", "pm_score": 3, "selected": true, "text": "imap predict .y mtcars_result %>%\n mutate(predicted_values = imap(model, ~ get_prediction(.x, \"disp\", predict[....
2022/12/01
[ "https://Stackoverflow.com/questions/74646952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20659370/" ]
74,646,964
<p>I have a function that returns a byte array that represents a JSON string I need to parse. Generally, I would use <code>Encoding.Default.GetString(myByteArray)</code> to convert it to a string, but the resulting string has some unrecognized characters in it: <code>?{&quot;rects&quot;:[],&quot;text&quot;:&quot;&quot;...
[ { "answer_id": 74647367, "author": "Dmitry Bychenko", "author_id": 2319407, "author_profile": "https://Stackoverflow.com/users/2319407", "pm_score": 2, "selected": true, "text": "FE UTF-16 (LE) var data = new byte[] { \n 255, 254, // <- BOM (UTF-16 (LE))\n 123, 0, 34, 0, 114, 0, /* Pay...
2022/12/01
[ "https://Stackoverflow.com/questions/74646964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14121186/" ]
74,646,975
<p>I have a template twig in html for example:</p> <pre><code>&lt;p&gt;Test document&lt;/p&gt; &lt;p&gt;However&lt;/p&gt; </code></pre> <p>I would like to replace the word 'Test' in the include template. <code>{% include '@template/testing' %}</code></p> <p>Is there some solution to replace the word in the include sta...
[ { "answer_id": 74649978, "author": "thomasf10", "author_id": 18219390, "author_profile": "https://Stackoverflow.com/users/18219390", "pm_score": -1, "selected": false, "text": "{%- set block_modify -%}\n{% include 'template.html' %}\n{%- endset -%}\n\n{% if 'Hi' in block_modify %}\n\n{{ ...
2022/12/01
[ "https://Stackoverflow.com/questions/74646975", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18219390/" ]
74,647,047
<p>I am trying to round up 5.9999998 to 5.999.</p> <p>But I have a problem, If I do round(number) it'll round it up to 6. How can I round a number like this to max 3 decimals?</p>
[ { "answer_id": 74647133, "author": "3dSpatialUser", "author_id": 5775358, "author_profile": "https://Stackoverflow.com/users/5775358", "pm_score": 2, "selected": false, "text": "number = 5.999999998\nnew_number = int(number * 1e3) / 1e3\n" }, { "answer_id": 74647167, "author"...
2022/12/01
[ "https://Stackoverflow.com/questions/74647047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20494538/" ]
74,647,052
<p>My dataframe is like this:</p> <pre><code>data = { &quot;a&quot;: [420, 380, 390], &quot;b&quot;: [50, 40, 45] } df = pd.DataFrame(data) </code></pre> <p>I want to add new item at the end of this dataframe, and remove the first item. I mean cont will be 3 each addition.</p> <p>New item add</p> <pre><code>{&quot...
[ { "answer_id": 74647078, "author": "I'mahdi", "author_id": 1740577, "author_profile": "https://Stackoverflow.com/users/1740577", "pm_score": 1, "selected": false, "text": "pd.concat append dct = {\"a\": 300, \"b\": 88}\ndf_new = pd.concat([df, pd.Series(dct).to_frame().T]\n ...
2022/12/01
[ "https://Stackoverflow.com/questions/74647052", "https://Stackoverflow.com", "https://Stackoverflow.com/users/694716/" ]
74,647,054
<p>I would like to import a CSV in Django. The issue occurs when trying to import based on the attributes. Here is my code:</p> <pre class="lang-py prettyprint-override"><code>class Event(models.Model): id = models.BigAutoField(primary_key=True) amount = models.ForeignKey(Amount, on_delete=models.CASCADE) v...
[ { "answer_id": 74648526, "author": "Matthew Hegarty", "author_id": 39296, "author_profile": "https://Stackoverflow.com/users/39296", "pm_score": 1, "selected": false, "text": "Space (space_code,space_type,space_date) Time (time_date,time_type) import-export before_import_row() get_or_cre...
2022/12/01
[ "https://Stackoverflow.com/questions/74647054", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1600108/" ]
74,647,061
<p>I have a task to practice and I just can't get the solution. It should be noted that I am a total beginner. There is 1min for the exercise, so it should be child's play. But I am racking my brains over it.</p> <p>I am supposed to write an expression for the following :</p> <p>Let x and k be variables of type int. Fo...
[ { "answer_id": 74647077, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 2, "selected": false, "text": "if ( x < 1 << k - 1 ) { /*...*/ }\n k - 1 1 << k - 1 int" }, { "answer_id": 74647137, "author":...
2022/12/01
[ "https://Stackoverflow.com/questions/74647061", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15052389/" ]
74,647,074
<p>I'm working on an university project with ML, and the project got quite big, I usually don't use github but I need to format my pc and do not trust the Google Drive backup I have, therefore I wanna have a second one so I don't lose the code whatsoever.</p> <p>I'm using Git with GitHub desktop, I'm not very knowledge...
[ { "answer_id": 74647077, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 2, "selected": false, "text": "if ( x < 1 << k - 1 ) { /*...*/ }\n k - 1 1 << k - 1 int" }, { "answer_id": 74647137, "author":...
2022/12/01
[ "https://Stackoverflow.com/questions/74647074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15192515/" ]
74,647,098
<p>I have the following dataframe <strong><code>df</code></strong>, where the variable <strong><code>types</code></strong> corresponds to up to 3 types for each ID (the dataset has approximately 3000 rows):</p> <pre><code>ID types grade num a01 a,b,c 7.1 1 a02 c,d 7.7 3 a03 c 7.3 4 a...
[ { "answer_id": 74647077, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 2, "selected": false, "text": "if ( x < 1 << k - 1 ) { /*...*/ }\n k - 1 1 << k - 1 int" }, { "answer_id": 74647137, "author":...
2022/12/01
[ "https://Stackoverflow.com/questions/74647098", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20638561/" ]
74,647,169
<p>Structure of my directories and files is:</p> <pre><code>Folder1: File1 Folder2: File2 File3 File4 Folder3: File5 File6 File7 file8 </code></pre> <p>...
[ { "answer_id": 74647077, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 2, "selected": false, "text": "if ( x < 1 << k - 1 ) { /*...*/ }\n k - 1 1 << k - 1 int" }, { "answer_id": 74647137, "author":...
2022/12/01
[ "https://Stackoverflow.com/questions/74647169", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20659417/" ]
74,647,208
<p>In Razor Pages, how can I redirect to a URL that contains slugs?</p> <p>For example, the code below takes me to the URL that contains rootValue:</p> <pre><code>return RedirectToPage(&quot;/EmailConfirmation&quot;, new {email = command.Email}); </code></pre> <p>The output is like this: https://localhost:5001/EmailCon...
[ { "answer_id": 74647077, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 2, "selected": false, "text": "if ( x < 1 << k - 1 ) { /*...*/ }\n k - 1 1 << k - 1 int" }, { "answer_id": 74647137, "author":...
2022/12/01
[ "https://Stackoverflow.com/questions/74647208", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20648138/" ]
74,647,215
<p>I have been using the Python Jenkins APIs to manager my Jenkins jobs. It has worked for a long time, but it stopped suddenly working. This is the code excerpt:</p> <pre><code>import jenkins server = jenkins.Jenkins('https://jenkins.company.com', username='xxxx', password='password') server._session.verify = False p...
[ { "answer_id": 74647077, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 2, "selected": false, "text": "if ( x < 1 << k - 1 ) { /*...*/ }\n k - 1 1 << k - 1 int" }, { "answer_id": 74647137, "author":...
2022/12/01
[ "https://Stackoverflow.com/questions/74647215", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4483819/" ]
74,647,222
<p>I have two tables A and B, Table A have 3 cols and table B have 2 cols.</p> <p>Table A data:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>name</th> <th>id</th> <th>city</th> </tr> </thead> <tbody> <tr> <td>xyz</td> <td>1</td> <td>ab</td> </tr> <tr> <td>xyz2</td> <td>2</td> <td>ab1</td...
[ { "answer_id": 74647599, "author": "Cetin Basoz", "author_id": 894977, "author_profile": "https://Stackoverflow.com/users/894977", "pm_score": 0, "selected": false, "text": "select * from (\nselect a.name, a.id, a.city, \n case when b.id is not null then 'Yes' else 'No' end as [Match]\n...
2022/12/01
[ "https://Stackoverflow.com/questions/74647222", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12694274/" ]
74,647,277
<p>I have a function that runs a <code>fetch()</code> and at the very end of the fetch call it logs to the console.</p> <p>I want to <em>conditionally</em> add a second fetch function before the end of the first. It also logs to the console.</p> <p>I'm having trouble working out how to ensure the first log waits for th...
[ { "answer_id": 74647287, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 2, "selected": true, "text": "await function alwaysRuns() {\n fetch('https://api.spacexdata.com/v4/launches/latest')\n .then(result => result.js...
2022/12/01
[ "https://Stackoverflow.com/questions/74647277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1231001/" ]
74,647,310
<p>I have a set of <code>x</code> and <code>y</code> data and I want to use exponential regression to find the line that best fits those set of points. i.e.:</p> <pre><code>y = P1 + P2 exp(-P0 x) </code></pre> <p>I want to calculate the values of <code>P0</code>, <code>P1</code> and <code>P2</code>.</p> <p>I use a sof...
[ { "answer_id": 74647526, "author": "Miquel Rigo", "author_id": 7480676, "author_profile": "https://Stackoverflow.com/users/7480676", "pm_score": -1, "selected": false, "text": "import numpy as np\nfrom scipy.optimize import minimize\n\n# Define the function that we want to fit to the dat...
2022/12/01
[ "https://Stackoverflow.com/questions/74647310", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20005411/" ]
74,647,349
<p>The workflow Supabase uses for version controlling the (PostgreSQL) schema is for the developer to manually run a tool that diffs the schema after every change and saves the resulting migration to a file.</p> <p>I found it surprising to build the database schema using imperative commands (CREATE TABLE, ENABLE ROW LE...
[ { "answer_id": 74647526, "author": "Miquel Rigo", "author_id": 7480676, "author_profile": "https://Stackoverflow.com/users/7480676", "pm_score": -1, "selected": false, "text": "import numpy as np\nfrom scipy.optimize import minimize\n\n# Define the function that we want to fit to the dat...
2022/12/01
[ "https://Stackoverflow.com/questions/74647349", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7541458/" ]
74,647,356
<p>I'm trying to scrape an apartment website and it's not looping. I get different apartments but the rest of the information is the same. Yesterday it was pulling a different address.</p> <pre><code>url = &quot;https://www.apartments.com/atlanta-ga/?bb=lnwszyjy-H4lu8uqH&quot; header = {'User-Agent': 'Mozilla/5.0 (X11...
[ { "answer_id": 74647526, "author": "Miquel Rigo", "author_id": 7480676, "author_profile": "https://Stackoverflow.com/users/7480676", "pm_score": -1, "selected": false, "text": "import numpy as np\nfrom scipy.optimize import minimize\n\n# Define the function that we want to fit to the dat...
2022/12/01
[ "https://Stackoverflow.com/questions/74647356", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15564501/" ]
74,647,377
<p>I am trying to write a calculator using functions for each operation and switch case in c language but output is as follows: for example when i enter 5 and 6, and choose addition it prints sss5.000000 + 6.000000 = 11.000000 how can i remove the sss before 5.000000 and what causes this problem? thanks for helping.</p...
[ { "answer_id": 74647541, "author": "abelenky", "author_id": 34824, "author_profile": "https://Stackoverflow.com/users/34824", "pm_score": 1, "selected": false, "text": "#include <stdio.h>\n#include <math.h>\n\nfloat addTwoNumbers (float num1, float num2) { return num1+num2; }\nfl...
2022/12/01
[ "https://Stackoverflow.com/questions/74647377", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20647521/" ]
74,647,409
<p>In my <code>nextjs</code>-app I have a Button component:</p> <pre><code>interface IButton { text: string theme: 'primary' | 'secondary' size: 'small' | 'medium' | 'large' onClick?: () =&gt; void } const Button = ({ theme, text, size, onClick }: IButton) =&gt; { return ( &lt;button onCli...
[ { "answer_id": 74647541, "author": "abelenky", "author_id": 34824, "author_profile": "https://Stackoverflow.com/users/34824", "pm_score": 1, "selected": false, "text": "#include <stdio.h>\n#include <math.h>\n\nfloat addTwoNumbers (float num1, float num2) { return num1+num2; }\nfl...
2022/12/01
[ "https://Stackoverflow.com/questions/74647409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3955607/" ]
74,647,416
<p>How to receive all data from a connection in <code>socketserver</code> so that it the connection does not hang on the client side</p> <pre><code>class ConnectionHandler(BaseRequestHandler): def handle(self): data = b'' while 1: tmp = self.request.recv(1024) if not tmp: ...
[ { "answer_id": 74647482, "author": "Miquel Rigo", "author_id": 7480676, "author_profile": "https://Stackoverflow.com/users/7480676", "pm_score": 2, "selected": false, "text": "class ConnectionHandler(BaseRequestHandler):\n\ndef handle(self):\n # Use the makefile method to get a file-l...
2022/12/01
[ "https://Stackoverflow.com/questions/74647416", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17975829/" ]
74,647,428
<p>I have the following scenario and am trying to understand the right way to implement it.</p> <p>I have Okta as my IDP. Amazon API gateway for managing my APIs and some lambdas which handle the API requests. Identity Pool is used to provide AWS credentials to the client accessing the APIs.</p> <p>When the client acce...
[ { "answer_id": 74659651, "author": "Sampath Dilhan", "author_id": 3668866, "author_profile": "https://Stackoverflow.com/users/3668866", "pm_score": 1, "selected": false, "text": "context context" } ]
2022/12/01
[ "https://Stackoverflow.com/questions/74647428", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1081150/" ]
74,647,441
<p>Im creating this website using laravel and there is an option to add new items to the sell when an item adds the admin can mark it as a new arrival, I want to count 10 days from the date added and when the 10 days passed, I want to item no longer listed as new arrival. How can I implement this</p>
[ { "answer_id": 74659651, "author": "Sampath Dilhan", "author_id": 3668866, "author_profile": "https://Stackoverflow.com/users/3668866", "pm_score": 1, "selected": false, "text": "context context" } ]
2022/12/01
[ "https://Stackoverflow.com/questions/74647441", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20370427/" ]
74,647,475
<p>I would like to parse some text or any data from <a href="https://drive.google.com/drive/folders/1IqnZJaWxyWqwHuzByV3XQHRvNbCJW_g6?usp=sharing" rel="nofollow noreferrer">this pdf</a> with Python. Everything I have tried is not working.</p> <p>I have a tried a variety of approaches:</p> <pre><code># importing require...
[ { "answer_id": 74659651, "author": "Sampath Dilhan", "author_id": 3668866, "author_profile": "https://Stackoverflow.com/users/3668866", "pm_score": 1, "selected": false, "text": "context context" } ]
2022/12/01
[ "https://Stackoverflow.com/questions/74647475", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20659719/" ]
74,647,479
<p>I want to determine on macOS which version of .NET runtimes I have installed. I'm using command <code>dotnet --list-runtimes</code> to print available versions.</p> <pre><code>Microsoft.AspNetCore.App 6.0.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.11 [/usr/local/share/do...
[ { "answer_id": 74647512, "author": "Christian Fritz", "author_id": 1087119, "author_profile": "https://Stackoverflow.com/users/1087119", "pm_score": 0, "selected": false, "text": "dotnet --list-runtimes | cut -d ' ' -f 2 | sort | uniq | xargs\n6.0.11 6.0.9\n > for version in $(dotnet --l...
2022/12/01
[ "https://Stackoverflow.com/questions/74647479", "https://Stackoverflow.com", "https://Stackoverflow.com/users/878395/" ]
74,647,494
<p>My main.dart screen calls SplashScreen and then SplashScreen calls BottomNavigationScreen. I am manually calling all the screens for <strong>_widgetOptions.elementAt(_selectedIndex)</strong> in widgetOptions.</p> <p>I want not to call all screens manually. Instead I want to call screens by using named routes defined...
[ { "answer_id": 74647512, "author": "Christian Fritz", "author_id": 1087119, "author_profile": "https://Stackoverflow.com/users/1087119", "pm_score": 0, "selected": false, "text": "dotnet --list-runtimes | cut -d ' ' -f 2 | sort | uniq | xargs\n6.0.11 6.0.9\n > for version in $(dotnet --l...
2022/12/01
[ "https://Stackoverflow.com/questions/74647494", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16280202/" ]
74,647,530
<p>I have a route that needs to wait for a Redis pub/sub message before it can send a response.</p> <pre><code> app.post('/route', async function (req: any, rep) { // Listen for redis redis.on('message', async (ch, msg) =&gt; { let match = JSON.parse(msg) if (match.id == req.body.id) { rep....
[ { "answer_id": 74647562, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 2, "selected": true, "text": "app.post(\"/route\", async function (req: any, rep) {\n const [ch, msg] = await waitForMessage(redis);\n let match =...
2022/12/01
[ "https://Stackoverflow.com/questions/74647530", "https://Stackoverflow.com", "https://Stackoverflow.com/users/499125/" ]
74,647,547
<p><strong>main.c</strong></p> <pre><code>#include &lt;stdio.h&gt; #include &lt;string.h&gt; #include &quot;matrix.h&quot; int main(){ //Prompt the user for the size of matrix to be calculated. printf(&quot;Welcome to the matrix determinant calculator!\n\n&quot;); printf(&quot;Please select the matrix size ...
[ { "answer_id": 74647562, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 2, "selected": true, "text": "app.post(\"/route\", async function (req: any, rep) {\n const [ch, msg] = await waitForMessage(redis);\n let match =...
2022/12/01
[ "https://Stackoverflow.com/questions/74647547", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20659828/" ]
74,647,573
<p>I'm wondering if it's possible to add new type of charts, like a radar chart, to the React library plotly/react-pivottable <a href="https://github.com/plotly/react-pivottable" rel="nofollow noreferrer">https://github.com/plotly/react-pivottable</a>.</p> <p>I would like to add a spider chart, always from the chart li...
[ { "answer_id": 74647562, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 2, "selected": true, "text": "app.post(\"/route\", async function (req: any, rep) {\n const [ch, msg] = await waitForMessage(redis);\n let match =...
2022/12/01
[ "https://Stackoverflow.com/questions/74647573", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2072676/" ]
74,647,596
<p>How to display the value of a ulong in the text property of a label in c#? I'm really new to c# sorry if that's a dumb question.</p> <p>(this is in an &quot;if&quot; that works apart from this)</p> <pre><code>label1.Text = nameOfUlong; </code></pre> <p>I didn't know that you can't convert ulong to string I guess.</p...
[ { "answer_id": 74647621, "author": "Avrohom Yisroel", "author_id": 706346, "author_profile": "https://Stackoverflow.com/users/706346", "pm_score": 1, "selected": false, "text": "label1.Text = nameOfUlong.ToString();\n" }, { "answer_id": 74647654, "author": "Dmitry Bychenko", ...
2022/12/01
[ "https://Stackoverflow.com/questions/74647596", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20648756/" ]
74,647,600
<p>I have a directory structured like this:</p> <pre><code>main_folder .git .gitignore rootfolder .DS_Store folder1 .ipynb_checkpoints/filename-checkpoint.csv abc.txt def.json somedir more.json folder2 .DS_Store .ipynb_checkpoints/file-filename2-checkpoint.csv rty.csv somedir ui...
[ { "answer_id": 74647621, "author": "Avrohom Yisroel", "author_id": 706346, "author_profile": "https://Stackoverflow.com/users/706346", "pm_score": 1, "selected": false, "text": "label1.Text = nameOfUlong.ToString();\n" }, { "answer_id": 74647654, "author": "Dmitry Bychenko", ...
2022/12/01
[ "https://Stackoverflow.com/questions/74647600", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11857974/" ]
74,647,631
<p>i am trying to display some data about a specific id and THATS where the WHERE Clause comes in place, but it doens't work. By the way in wp_posts the user_id is the wp_users.ID.</p> <pre><code>SELECT wp_users.ID, post_name FROM wp_users LEFT JOIN wp_posts ON wp_users.ID = user_id ORDER BY wp_users.ID WHERE wp_users....
[ { "answer_id": 74647621, "author": "Avrohom Yisroel", "author_id": 706346, "author_profile": "https://Stackoverflow.com/users/706346", "pm_score": 1, "selected": false, "text": "label1.Text = nameOfUlong.ToString();\n" }, { "answer_id": 74647654, "author": "Dmitry Bychenko", ...
2022/12/01
[ "https://Stackoverflow.com/questions/74647631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20659884/" ]
74,647,633
<p>I'm switching from moment to Luxon. Currently, using moment I can can convert a <code>Date()</code> to timestamp format with this:</p> <pre><code> ....moment() .subtract(2, 'hours') .utc() .format('YYYY-MM-DD HH:mm:ss [GMT]'); </code></pre> <p>with the result looking like : <code>2022-12-01 1...
[ { "answer_id": 74647621, "author": "Avrohom Yisroel", "author_id": 706346, "author_profile": "https://Stackoverflow.com/users/706346", "pm_score": 1, "selected": false, "text": "label1.Text = nameOfUlong.ToString();\n" }, { "answer_id": 74647654, "author": "Dmitry Bychenko", ...
2022/12/01
[ "https://Stackoverflow.com/questions/74647633", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20235789/" ]
74,647,636
<p>Hello I'm a beginner at PL/SQL and some help would be appreciated.</p> <p>So I have this procedure here and my goal is to have it so that when this procedure is executed that I can enter a 5 digit integer (a zipcode) and it will just select those values from the table and display just as if I've done a query like</p...
[ { "answer_id": 74647719, "author": "Littlefoot", "author_id": 9097906, "author_profile": "https://Stackoverflow.com/users/9097906", "pm_score": 0, "selected": false, "text": "SQL> set serveroutput on\nSQL> create or replace procedure p_list\n 2 (p_deptno in dept.deptno%type,\n 3 ...
2022/12/01
[ "https://Stackoverflow.com/questions/74647636", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15208122/" ]
74,647,640
<p>I have this DataFrame:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Names</th> <th>Account_1</th> <th>Account_2</th> <th>ID_Movement</th> <th>Less_1</th> <th>Less_2</th> </tr> </thead> <tbody> <tr> <td>Peter</td> <td>35</td> <td>70</td> <td>Movement_1</td> <td>0</td> <td>5</td> </tr> ...
[ { "answer_id": 74647833, "author": "Pawel Sznura", "author_id": 10457515, "author_profile": "https://Stackoverflow.com/users/10457515", "pm_score": 0, "selected": false, "text": "df['New_Account1'] = df.apply(lambda row : (row['Account 1'] - row['Less_1']), axis = 1)\n" }, { "ans...
2022/12/01
[ "https://Stackoverflow.com/questions/74647640", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20478046/" ]
74,647,645
<p>when I use updateCorrectAnswers with useEffect below. it is not updating my correct answers. it shows just empty array. when a new set of api call comes it shows my old data. I don't understand why. <a href="https://i.stack.imgur.com/MbW5L.png" rel="nofollow noreferrer">console.log image that shows old data and empt...
[ { "answer_id": 74647833, "author": "Pawel Sznura", "author_id": 10457515, "author_profile": "https://Stackoverflow.com/users/10457515", "pm_score": 0, "selected": false, "text": "df['New_Account1'] = df.apply(lambda row : (row['Account 1'] - row['Less_1']), axis = 1)\n" }, { "ans...
2022/12/01
[ "https://Stackoverflow.com/questions/74647645", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20659878/" ]
74,647,647
<p>I just started learning about Google Apps Scripts and I created this script that will help me copy a range of data in Google Sheets into another sheet.</p> <p>This is my code</p> <pre><code>function copyPaste() { const ss = SpreadsheetApp.openById('1btVcMHU2a4hyU6gz3D4ZN7RYXX_HYWLKJPxuGmdKvEI').getSheetByName('Fo...
[ { "answer_id": 74647833, "author": "Pawel Sznura", "author_id": 10457515, "author_profile": "https://Stackoverflow.com/users/10457515", "pm_score": 0, "selected": false, "text": "df['New_Account1'] = df.apply(lambda row : (row['Account 1'] - row['Less_1']), axis = 1)\n" }, { "ans...
2022/12/01
[ "https://Stackoverflow.com/questions/74647647", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20659798/" ]
74,647,651
<p>I am trying to add a parameter to a Revit family. When I open the Revit Family document and execute the code below in a macro, I get this error:</p> <blockquote> <p>System.Exception: Document regeneration failed. at MacroModule.executeMacro_(MacroModule*, AString* MacroName) at MacroModule.executeMacro_(MacroModule*...
[ { "answer_id": 74651898, "author": "Jeremy Tammik", "author_id": 3552305, "author_profile": "https://Stackoverflow.com/users/3552305", "pm_score": 1, "selected": false, "text": "document.Regenerate" }, { "answer_id": 74653002, "author": "Ranj", "author_id": 3419211, "...
2022/12/01
[ "https://Stackoverflow.com/questions/74647651", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3419211/" ]
74,647,659
<p>I have a question: we have a table that has (among other stuff) a couple of IP/port pairs that I would like to be globally unique to avoid crosstalk in streaming binaries that use this configuration.</p> <p>Assume a table as follows</p> <pre><code>Create table config ( Id serial NOT NULL, One_IP text, O...
[ { "answer_id": 74647803, "author": "Dijkgraaf", "author_id": 2571021, "author_profile": "https://Stackoverflow.com/users/2571021", "pm_score": -1, "selected": false, "text": "Create table config (\n Id serial NOT NULL,\n IP text,\n Port intege...
2022/12/01
[ "https://Stackoverflow.com/questions/74647659", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20659873/" ]
74,647,677
<p>I have a React application. I have installed the packages with <code>yarn</code> and ran it with <code>yarn start</code>. But, the app is not opening in the browser. The console shows me the following:</p> <pre><code>Compiled successfully! You can now view extension in the browser. http://localhost:3000 ...
[ { "answer_id": 74647803, "author": "Dijkgraaf", "author_id": 2571021, "author_profile": "https://Stackoverflow.com/users/2571021", "pm_score": -1, "selected": false, "text": "Create table config (\n Id serial NOT NULL,\n IP text,\n Port intege...
2022/12/01
[ "https://Stackoverflow.com/questions/74647677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12743692/" ]
74,647,681
<p>This would be useful for me because I have a bunch of constants that are different when I test my program locally vs when I run it on the server that it's supposed to run on.</p> <p>I assumed an if-else expression would work:</p> <pre><code>const val FOO = false const val BAR = if (FOO) 1L else 2L </code></pre> <p>H...
[ { "answer_id": 74647818, "author": "radof", "author_id": 20349343, "author_profile": "https://Stackoverflow.com/users/20349343", "pm_score": 0, "selected": false, "text": "const const final final val var val const val" }, { "answer_id": 74648121, "author": "Joffrey", "aut...
2022/12/01
[ "https://Stackoverflow.com/questions/74647681", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6514834/" ]
74,647,685
<p>I'm unable to get any information about the parameter when using <code>typing.Union</code>:</p> <pre class="lang-py prettyprint-override"><code>import typing x = typing.Union[str,int] print(typing.get_args(x)) </code></pre> <p>Output: <code>(&lt;class 'str'&gt;, &lt;class 'int'&gt;)</code></p> <pre class="lang-py p...
[ { "answer_id": 74648460, "author": "Daniil Fajnberg", "author_id": 19770795, "author_profile": "https://Stackoverflow.com/users/19770795", "pm_score": 1, "selected": false, "text": "x y int str print(type(x)) print(type(y)) y str int get_args int 1 x from typing import Union\n\nx = Union...
2022/12/01
[ "https://Stackoverflow.com/questions/74647685", "https://Stackoverflow.com", "https://Stackoverflow.com/users/617657/" ]
74,647,695
<p>I have an array with Questions. Each question has options to pick from and the correct answer. I am trying to add true/false if the option is correct. How should I best do this? I tried <code>.map()</code> and <code>.forEach</code> but I don't know how to access <code>correct_answer</code> and use that to add the <c...
[ { "answer_id": 74647717, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 1, "selected": false, "text": "const data = [{\n \"question\": \"What is the approximate value of mathematical constant e?\",\n \"options\": [...
2022/12/01
[ "https://Stackoverflow.com/questions/74647695", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9710121/" ]
74,647,704
<p>I am making a tick tack toe cli game that takes user imput and prints an updated board. One of the features i want it to have is that it can recognise that there already is a character in the slot that you want to put your piece. right now i have a switch case with the default not changing anything. can i refer back...
[ { "answer_id": 74648013, "author": "Hiran Chaudhuri", "author_id": 4222206, "author_profile": "https://Stackoverflow.com/users/4222206", "pm_score": 2, "selected": true, "text": "field already occupied break that is not a valid option" }, { "answer_id": 74649206, "author": "s...
2022/12/01
[ "https://Stackoverflow.com/questions/74647704", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20573680/" ]
74,647,706
<p>I have some json objects, i want to join all of the objects only in one</p> <p>i have this input</p> <pre><code>a:[{h:1, i:2}] b:[{j:1, k:2}] c:[{l:1, m:2}] </code></pre> <p>i need this output</p> <pre><code>[{type: a, h:1, i:2}, {type: a, o:1, p:2}, {type: b, j:1, k:2}, {type: c, l:1, m:2}] </code></pre> <p>i was t...
[ { "answer_id": 74647763, "author": "Guido Carugati", "author_id": 13290792, "author_profile": "https://Stackoverflow.com/users/13290792", "pm_score": 1, "selected": false, "text": "const a = [{h: 1, i: 2}];\nconst b = [{j: 1, k: 2}];\nconst c = [{l: 1, m: 2}];\n\nconst result = [].concat...
2022/12/01
[ "https://Stackoverflow.com/questions/74647706", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20503335/" ]
74,647,708
<p>I want to create a Chrome extension to get the background image of an HTML element so I added an option in the right-click menu. It worked in Manifest v2 but when I tried to update to Manifest v3 my code did not longer worked. Is there a thing I missed?</p> <p>Here is my <code>manifest.json</code>:</p> <pre><code>{ ...
[ { "answer_id": 74647830, "author": "geekySRM", "author_id": 7636285, "author_profile": "https://Stackoverflow.com/users/7636285", "pm_score": -1, "selected": false, "text": "background background browser_action background browser_action {\n \"manifest_version\": 3,\n \"name\": \"Backgr...
2022/12/01
[ "https://Stackoverflow.com/questions/74647708", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18661194/" ]
74,647,711
<p>Grammarly is somehow able to put its button on the bottom right of text boxes, as shown in the gif. Moreover, the button moves when the textbox moves.</p> <p>I'm building a chrome extension that puts a similar button on text boxes (bottom-right). I can get hold of the textbox element by listening to <code>focusin</c...
[ { "answer_id": 74647948, "author": "TrueStoryShort", "author_id": 20117831, "author_profile": "https://Stackoverflow.com/users/20117831", "pm_score": 0, "selected": false, "text": " <div class=\"wrapper\">\n <textarea></textarea>\n <button></button>\n</div>\n .wrapper {\n position: ...
2022/12/01
[ "https://Stackoverflow.com/questions/74647711", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3073272/" ]
74,647,782
<h1>The Question</h1> <p>I'm trying to make a command that shows you the schedule of your class, for that, the user first introduces as an argument its degree and then the class, but every degree has a different number of classes, so I can't show a generic list for all the degrees.</p> <p>The actual code:</p> <pre clas...
[ { "answer_id": 74647948, "author": "TrueStoryShort", "author_id": 20117831, "author_profile": "https://Stackoverflow.com/users/20117831", "pm_score": 0, "selected": false, "text": " <div class=\"wrapper\">\n <textarea></textarea>\n <button></button>\n</div>\n .wrapper {\n position: ...
2022/12/01
[ "https://Stackoverflow.com/questions/74647782", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20659527/" ]
74,647,796
<p>Here's my contract.</p> <pre><code>// SPDX-License-Identifier: MIT pragma solidity &gt;= 0.7.3; contract terceiroTest { // We pass and old String, a new string and when this event is // broadcast everybody is able to see that the even happened. // and see the strings exposed too. event UpdatedMessa...
[ { "answer_id": 74647948, "author": "TrueStoryShort", "author_id": 20117831, "author_profile": "https://Stackoverflow.com/users/20117831", "pm_score": 0, "selected": false, "text": " <div class=\"wrapper\">\n <textarea></textarea>\n <button></button>\n</div>\n .wrapper {\n position: ...
2022/12/01
[ "https://Stackoverflow.com/questions/74647796", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5734496/" ]
74,647,815
<p>I have a multi-index data set with 100 cases, and each case has 5 questions. Each question was scored by 2 raters.</p> <pre><code>case question rater1 rater2 1 1 1 1 1 2 1 0 1 3 1 1 1 4 1 1 1 5 0 0 2 1 0 1...
[ { "answer_id": 74647926, "author": "MrFlick", "author_id": 2372064, "author_profile": "https://Stackoverflow.com/users/2372064", "pm_score": 3, "selected": true, "text": "library(dplyr)\ndd %>% \n group_by(case, grp = case_when(question %in% 1:3~\"A\", question %in% 4:5 ~ \"B\")) %>% \n...
2022/12/01
[ "https://Stackoverflow.com/questions/74647815", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20081864/" ]
74,647,839
<p>I am trying to make a smooth animation of lines that move over time. Here is some example data <strong>edited to add <code>x</code> for completeness as I forgot that initially, apologies</strong>:</p> <pre><code>x &lt;- c( 0, 10, 19, 27, 35, 41, 48, 52, 55, 56 ) test.data &lt;- data.frame( depth = rep( seq( 1, 10 ...
[ { "answer_id": 74647926, "author": "MrFlick", "author_id": 2372064, "author_profile": "https://Stackoverflow.com/users/2372064", "pm_score": 3, "selected": true, "text": "library(dplyr)\ndd %>% \n group_by(case, grp = case_when(question %in% 1:3~\"A\", question %in% 4:5 ~ \"B\")) %>% \n...
2022/12/01
[ "https://Stackoverflow.com/questions/74647839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4360613/" ]
74,647,845
<p>I need to have a template class where each object adds itself to a vector and based on the template type parameter(allowed only: string, int, float) add to the corresponding container. I need a way to have compile time checks for the type and based on the check add to the corresponding container and if the type is n...
[ { "answer_id": 74648074, "author": "Remy Lebeau", "author_id": 65863, "author_profile": "https://Stackoverflow.com/users/65863", "pm_score": 2, "selected": false, "text": "if constexpr std::is_same_v #include <type_traits>\n\ntemplate<typename T>\nstruct myClass\n{\n myClass()\n {\n ...
2022/12/01
[ "https://Stackoverflow.com/questions/74647845", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11340026/" ]
74,647,864
<p>I am creating a scheduled delivery system.</p> <p>I put together the following script that counts the quantity of specific days of the week between two dates in dd/mm/yyyy format (UK).</p> <pre><code>var date0 = &quot;01/02/2021&quot;; var date1 = &quot;31/01/2022&quot;; var dayList = [1]; // Monday based on Sunday ...
[ { "answer_id": 74648074, "author": "Remy Lebeau", "author_id": 65863, "author_profile": "https://Stackoverflow.com/users/65863", "pm_score": 2, "selected": false, "text": "if constexpr std::is_same_v #include <type_traits>\n\ntemplate<typename T>\nstruct myClass\n{\n myClass()\n {\n ...
2022/12/01
[ "https://Stackoverflow.com/questions/74647864", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18745848/" ]
74,647,866
<p>I need my code to stop and wait until the next day. The time does not matter, I just need it to continue when the date changes.</p> <pre><code>currentDate = datetime.datetime.now() future = datetime.datetime(currentDate.year, currentDate.month, (currentDate.day + 1)) time.sleep((future-currentDate).total_seco...
[ { "answer_id": 74647993, "author": "Lewis Morris", "author_id": 3348264, "author_profile": "https://Stackoverflow.com/users/3348264", "pm_score": 2, "selected": false, "text": "import datetime\nimport time\n def loop_until_tomorrow():\n \"\"\" Will use a while loop to iterate until to...
2022/12/01
[ "https://Stackoverflow.com/questions/74647866", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20079494/" ]
74,647,873
<p>I am doing <code>printf(&quot;\t%d&quot;, i)</code> in a for-loop to print column labels for a table.</p> <p>Before the loop, I do <code>printf(&quot;some string ===&gt;&quot;)</code>.</p> <p>An issue I notice is that for example, if I do <code>printf(&quot;some string===&gt;&quot;</code> (one character less), the f...
[ { "answer_id": 74647993, "author": "Lewis Morris", "author_id": 3348264, "author_profile": "https://Stackoverflow.com/users/3348264", "pm_score": 2, "selected": false, "text": "import datetime\nimport time\n def loop_until_tomorrow():\n \"\"\" Will use a while loop to iterate until to...
2022/12/01
[ "https://Stackoverflow.com/questions/74647873", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17576954/" ]
74,647,878
<p>i have an array <code>[&quot;academy&quot;]</code> and i need count chars from the string in the array.</p> <p>output:</p> <pre><code>a:2 c:1 d:1 e:1 m:1 y:1 </code></pre> <p>like this</p> <p>i tried two for loops</p> <pre><code>function sumChar(arr){ let alph=&quot;abcdefghijklmnopqrstuvxyz&quot;; let count...
[ { "answer_id": 74648048, "author": "st3phhays", "author_id": 10430540, "author_profile": "https://Stackoverflow.com/users/10430540", "pm_score": 1, "selected": false, "text": "// create an empty object to store the character counts\nvar charCounts = {};\n\n// get the string from the arra...
2022/12/01
[ "https://Stackoverflow.com/questions/74647878", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20660069/" ]
74,647,892
<p>I have a SQL table containing timestamps of the following format:</p> <p><code>2022-02-07 12:57:45.000</code></p> <p>In SQL Server, you can convert this to a floating point date serial number (days since 1900-01-01):</p> <pre class="lang-sql prettyprint-override"><code>select convert(float, my_timestamp_field) as fl...
[ { "answer_id": 74648562, "author": "Rajat", "author_id": 9947159, "author_profile": "https://Stackoverflow.com/users/9947159", "pm_score": 2, "selected": false, "text": "datediff set mydate='2022-02-07 12:57:45.000'::timestamp;\n\nselect datediff(seconds, '1900-01-01', $mydate)::float/86...
2022/12/01
[ "https://Stackoverflow.com/questions/74647892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15417368/" ]
74,647,915
<p>I am using a printer d11 and trying to connect it to my device using Bluetooth. But I am encountering this error: Need android. permission.BLUETOOTH_SCAN permission for AttributionSource.</p> <p>I have already added the permissions and all but I'm still having errors, it points me out that the problem is here.</p> <...
[ { "answer_id": 74648562, "author": "Rajat", "author_id": 9947159, "author_profile": "https://Stackoverflow.com/users/9947159", "pm_score": 2, "selected": false, "text": "datediff set mydate='2022-02-07 12:57:45.000'::timestamp;\n\nselect datediff(seconds, '1900-01-01', $mydate)::float/86...
2022/12/01
[ "https://Stackoverflow.com/questions/74647915", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16588587/" ]
74,647,937
<p>I'm trying to render an infinite scroll component and update its data with newly fetched news upon scrolling to the end of it. It works on the first scroll, but gets stuck at <code>Loading...</code> after that. I don't understand what is going on that makes it stop fetching after first scroll.</p> <p>Code that's sup...
[ { "answer_id": 74648562, "author": "Rajat", "author_id": 9947159, "author_profile": "https://Stackoverflow.com/users/9947159", "pm_score": 2, "selected": false, "text": "datediff set mydate='2022-02-07 12:57:45.000'::timestamp;\n\nselect datediff(seconds, '1900-01-01', $mydate)::float/86...
2022/12/01
[ "https://Stackoverflow.com/questions/74647937", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14510980/" ]
74,647,951
<p><a href="https://jsbin.com/hakuzozari/edit?html,css,output" rel="nofollow noreferrer">https://jsbin.com/hakuzozari/edit?html,css,output</a></p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&quot;utf-8&quot;&gt; &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width&quo...
[ { "answer_id": 74648008, "author": "FreddyNoNose", "author_id": 10525306, "author_profile": "https://Stackoverflow.com/users/10525306", "pm_score": 0, "selected": false, "text": " h1{\n font-weight: normal;\n font-family: \"impact\"\n}\n" }, { "answer_id": 74648095, "author...
2022/12/01
[ "https://Stackoverflow.com/questions/74647951", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17544244/" ]
74,647,975
<p>Kindly assist me in cleaning my date types in python.</p> <p>My sample data is as follows:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>INITIATION DATE</th> <th>DATE CUT</th> <th>DATE GIVEN</th> </tr> </thead> <tbody> <tr> <td>1/July/2022</td> <td>21 July 2022</td> <td>11-July-2022</t...
[ { "answer_id": 74649334, "author": "Hannon qaoud", "author_id": 15678119, "author_profile": "https://Stackoverflow.com/users/15678119", "pm_score": 0, "selected": false, "text": "format df['INITIATION DATE'] = pd.to_datetime(df['INITIATION DATE'], format='%d-%B-%Y').dt.strftime('%d %B %Y...
2022/12/01
[ "https://Stackoverflow.com/questions/74647975", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13384545/" ]
74,647,979
<p>I know this question has been asked before but I have tried to implement the answers to those forums but none have worked for me so far.</p> <p>Here is my html file:</p> <pre><code> {% include 'main.html' %} {% load static %} &lt;head&gt; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quo...
[ { "answer_id": 74649334, "author": "Hannon qaoud", "author_id": 15678119, "author_profile": "https://Stackoverflow.com/users/15678119", "pm_score": 0, "selected": false, "text": "format df['INITIATION DATE'] = pd.to_datetime(df['INITIATION DATE'], format='%d-%B-%Y').dt.strftime('%d %B %Y...
2022/12/01
[ "https://Stackoverflow.com/questions/74647979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13149562/" ]
74,648,020
<pre><code>//Method for Strip HTML public static String stripHtml(String inStr) { boolean inTag = false; char c; StringBuffer outStr = new StringBuffer(); int len = inStr.length(); for (int i = 0; i &lt; len; i++) { c = inStr.charAt(i); if (c == '&lt;') { inTag = true; } if (!inTag) { ...
[ { "answer_id": 74648078, "author": "Hiran Chaudhuri", "author_id": 4222206, "author_profile": "https://Stackoverflow.com/users/4222206", "pm_score": 2, "selected": false, "text": "getTextContent()" }, { "answer_id": 74648410, "author": "モキャデ", "author_id": 20607467, ...
2022/12/01
[ "https://Stackoverflow.com/questions/74648020", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20660181/" ]
74,648,047
<p>Have a string as follows:</p> <pre><code>files=&quot;applications/dbt/Dockerfile applications/dbt/cloudbuild.yaml applications/dataform/Dockerfile applications/dataform/cloudbuild.yaml&quot; </code></pre> <p>Want to extract the first two directories and save it as another string like this:</p> <pre><code>&quot;appli...
[ { "answer_id": 74648126, "author": "Gilles Quenot", "author_id": 465183, "author_profile": "https://Stackoverflow.com/users/465183", "pm_score": 1, "selected": false, "text": "arr=( applications/dbt/Dockerfile applications/dbt/cloudbuild.yaml applications/dataform/Dockerfile applications...
2022/12/01
[ "https://Stackoverflow.com/questions/74648047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19329929/" ]
74,648,054
<p>how can call from OfferteService.cs to get a StateHasChanged function in detailsOfferta.razor?</p> <p>hello how can I call the StateHasChanged function from a service to update the detailsOfferta.razor page by the function statehaschanged?</p> <p>Thank you very much</p> <p>I tried invokeasync but it does not work</...
[ { "answer_id": 74648126, "author": "Gilles Quenot", "author_id": 465183, "author_profile": "https://Stackoverflow.com/users/465183", "pm_score": 1, "selected": false, "text": "arr=( applications/dbt/Dockerfile applications/dbt/cloudbuild.yaml applications/dataform/Dockerfile applications...
2022/12/01
[ "https://Stackoverflow.com/questions/74648054", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20660196/" ]
74,648,059
<p>I have a piece of text similar to this and it is basically a string of HTML code.</p> <pre><code>hello &lt;span dir=&quot;auto&quot; class=&quot;aDTYNe snByac OvPDhc OIC90c&quot;&gt;Professional Referee&lt;/span&gt; &lt;div&gt;....&lt;/div&gt; &lt;span dir=&quot;auto&quot; class=&quot;aDTYNe snByac OvPDhc OIC90c&quo...
[ { "answer_id": 74648119, "author": "trincot", "author_id": 5459839, "author_profile": "https://Stackoverflow.com/users/5459839", "pm_score": 2, "selected": true, "text": "const html = `hello\n<span dir=\"auto\" class=\"aDTYNe snByac OvPDhc OIC90c\">Professional Referee</span>\n<div>....<...
2022/12/01
[ "https://Stackoverflow.com/questions/74648059", "https://Stackoverflow.com", "https://Stackoverflow.com/users/892628/" ]
74,648,072
<p>I am trying to create a function that will use the query method to filter through a data frame based on multiple conditions and create a new series with the values applicable.</p> <p>Here is an example of the df that I am working with:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th styl...
[ { "answer_id": 74648319, "author": "PaulS", "author_id": 11564487, "author_profile": "https://Stackoverflow.com/users/11564487", "pm_score": 2, "selected": true, "text": "f strings def sorter(df,week):\n return df.query(f'Week == {week} & Treatment.str.startswith(\"A\").values')['Valu...
2022/12/01
[ "https://Stackoverflow.com/questions/74648072", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17101266/" ]
74,648,077
<p>I have this method that I want to pass <em>into</em> another function.</p> <pre class="lang-py prettyprint-override"><code>def get_service_enums(context, enum): svc = Service(context) return svc.get_enum(enum) </code></pre> <p>I want to pass this function is as a parameter to another class.</p> <pre><code>Colu...
[ { "answer_id": 74648319, "author": "PaulS", "author_id": 11564487, "author_profile": "https://Stackoverflow.com/users/11564487", "pm_score": 2, "selected": true, "text": "f strings def sorter(df,week):\n return df.query(f'Week == {week} & Treatment.str.startswith(\"A\").values')['Valu...
2022/12/01
[ "https://Stackoverflow.com/questions/74648077", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5330107/" ]
74,648,137
<p>I am working on implementing a search bar for a notes app I have been working on, I put an input inside a <code>SideBar</code> component, which is nested inside the main <code>App</code> component. The issue is that whenever I input a character, the input unfocuses.</p> <p>My code:</p> <pre><code>function App() { ...
[ { "answer_id": 74648319, "author": "PaulS", "author_id": 11564487, "author_profile": "https://Stackoverflow.com/users/11564487", "pm_score": 2, "selected": true, "text": "f strings def sorter(df,week):\n return df.query(f'Week == {week} & Treatment.str.startswith(\"A\").values')['Valu...
2022/12/01
[ "https://Stackoverflow.com/questions/74648137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20480501/" ]
74,648,144
<p>I have a function in my UI where I want to be able to collapse/make visible a text message depending on the value of a custom property in my window object.</p> <p>Using online references, I have come up with this code-behind to register the property:</p> <pre><code>public bool ValidInterval { get { return pValidI...
[ { "answer_id": 74648540, "author": "ΩmegaMan", "author_id": 285795, "author_profile": "https://Stackoverflow.com/users/285795", "pm_score": 1, "selected": false, "text": "class" }, { "answer_id": 74648623, "author": "Tarazed", "author_id": 12705028, "author_profile": ...
2022/12/01
[ "https://Stackoverflow.com/questions/74648144", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11552497/" ]
74,648,235
<p>So basically, I have this command that runs in Gitlab CI to update a field in YAML configuration before packaging and pushing a Helm chart.</p> <pre><code>yq -i -y &quot;.pod.image.imageTag=&quot;${CI_COMMIT_SHORT_SHA}&quot;&quot; deployment/values.yaml </code></pre> <p>values.yaml</p> <pre><code>pod: image: r...
[ { "answer_id": 74648540, "author": "ΩmegaMan", "author_id": 285795, "author_profile": "https://Stackoverflow.com/users/285795", "pm_score": 1, "selected": false, "text": "class" }, { "answer_id": 74648623, "author": "Tarazed", "author_id": 12705028, "author_profile": ...
2022/12/01
[ "https://Stackoverflow.com/questions/74648235", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15333232/" ]
74,648,253
<h1>Question:</h1> <p>Below works, but is there a better &quot;R way&quot; of achieving similar result? I am essentially trying to create / distribute groups into individual line items according to a user defined function (currently just using a loop).</p> <h1>Example:</h1> <pre class="lang-r prettyprint-override"><cod...
[ { "answer_id": 74648512, "author": "stefan", "author_id": 12993861, "author_profile": "https://Stackoverflow.com/users/12993861", "pm_score": 2, "selected": false, "text": "tidyverse purrr::pmap tidyr::unnest_longer library(dplyr, w = FALSE)\nlibrary(tidyr)\nlibrary(purrr)\n\ndiv <- 52\n...
2022/12/01
[ "https://Stackoverflow.com/questions/74648253", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3601357/" ]
74,648,264
<p>I am studying the pointers and this question became interesting. I want it to be like this: we have two arrays of integers. Determine the value and number of the largest element of the first array that is not part of the second but I don't know how to make the second part of the code that will check if the largest n...
[ { "answer_id": 74648384, "author": "Jason", "author_id": 635822, "author_profile": "https://Stackoverflow.com/users/635822", "pm_score": 0, "selected": false, "text": "LONG_MIN #include <limits.h>\n\nint i = 0;\nfor (; i < n; ++i) {\n int j = 0;\n for (; j < n; ++j) {\n /* i...
2022/12/01
[ "https://Stackoverflow.com/questions/74648264", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20380423/" ]
74,648,333
<p>making guessing game. I keep getting an attribute error trying to append my guess to the guesses list. following along in a course. I was prompted to say getting warmer if the current guess was closer than the last guess. i set guesses = 0 and and within the while loop i tried to append with (guesses.append(cg)) cg ...
[ { "answer_id": 74648384, "author": "Jason", "author_id": 635822, "author_profile": "https://Stackoverflow.com/users/635822", "pm_score": 0, "selected": false, "text": "LONG_MIN #include <limits.h>\n\nint i = 0;\nfor (; i < n; ++i) {\n int j = 0;\n for (; j < n; ++j) {\n /* i...
2022/12/01
[ "https://Stackoverflow.com/questions/74648333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20660336/" ]
74,648,335
<p>For example,</p> <p>Lets say I have a map:</p> <pre><code>Map&lt;string, dynamic&gt; myMap = {'zero': 0, 'one': 1, 'two': 2}; </code></pre> <p>How can I display these values in a text widget like what is depicted below:</p> <pre><code>Map key-value pairs: zero: 0 one: 1 two: 2 </code></pre>
[ { "answer_id": 74648439, "author": "Gwhyyy", "author_id": 18670641, "author_profile": "https://Stackoverflow.com/users/18670641", "pm_score": 3, "selected": true, "text": "Column(\n children: myMap.entries\n .map(\n (e) => Text(\"${e.key}: ${e.value}\"),\n )\n .toL...
2022/12/01
[ "https://Stackoverflow.com/questions/74648335", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14868799/" ]
74,648,363
<p>I have a file that is essentially made up of rows of strings. I am trying to extract the sections of rows into individual files between rows of strings. The file looks like this:</p> <pre><code>**File Begins** &quot;Name: XXX_2&quot; &quot;Description: Object 1210 , 111&quot; &quot;Sampling_info: statexy=1346&quo...
[ { "answer_id": 74649100, "author": "I_O ", "author_id": 20513099, "author_profile": "https://Stackoverflow.com/users/20513099", "pm_score": 0, "selected": false, "text": "library(dplyr)\nlibrary(tidyr)\n\ndf <- read.delim('path_to_input_file/your_file.txt',\n sep = ':', h...
2022/12/01
[ "https://Stackoverflow.com/questions/74648363", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13709409/" ]
74,648,370
<p>I'm wanting to rename</p> <pre><code>123/1/ -&gt; 123/v1/ foo/1/ -&gt; foo/v1/ bar/1/ -&gt; bar/v1/ 345/1/ -&gt; 345/v1/ </code></pre> <p>I've searched and found a few related solutions, but not quite sure what is best in this instance. e.g.,</p> <pre><code>find . -wholename &quot;*/1&quot; -exec echo '{}' \; </code...
[ { "answer_id": 74648408, "author": "Ed Morton", "author_id": 1745001, "author_profile": "https://Stackoverflow.com/users/1745001", "pm_score": 2, "selected": false, "text": "while IFS= read -r old; do\n new=\"${old##*/}v1\"\n echo mv -- \"$old\" $new\"\ndone < <(find . -type d -nam...
2022/12/01
[ "https://Stackoverflow.com/questions/74648370", "https://Stackoverflow.com", "https://Stackoverflow.com/users/954986/" ]
74,648,374
<p>I have an array of objects and some of those objects has groups which is an array,</p> <p>i want all those objects from all groups and put it into one array of object, any idea how this could be done ?</p> <p>what i want to have is this : <code>GroupData= [ { id: &quot;679d8044&quot;, name: &quot;group 3&quot; }, { ...
[ { "answer_id": 74648488, "author": "Dennis Martinez", "author_id": 613932, "author_profile": "https://Stackoverflow.com/users/613932", "pm_score": 1, "selected": false, "text": "const mydata = [\n {\n name: \"living room\",\n groups: \"\"\n },\n {\n groups: [\n {\n ...
2022/12/01
[ "https://Stackoverflow.com/questions/74648374", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17292277/" ]
74,648,391
<p>I am trying to use MongoDb with SpringBoot using docker-compose, but I can't seem to connect to the database using the username and password that i set in the <code>docker-compose.yaml</code> and <code>application.properties</code></p> <p>Below is the <code>docker-compose.yaml</code>.</p> <pre><code>version: &quot;3...
[ { "answer_id": 74648578, "author": "Steve Storck", "author_id": 8031498, "author_profile": "https://Stackoverflow.com/users/8031498", "pm_score": 1, "selected": false, "text": "spring.data.mongodb.host mongodb data" } ]
2022/12/01
[ "https://Stackoverflow.com/questions/74648391", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20100274/" ]
74,648,412
<p>I have currently one dict with key-value and one list with values. e.g.</p> <pre class="lang-py prettyprint-override"><code>data = { 'total': { '06724': 0, '06725': 0, '06726': 0, '06727': 0, '06712': 22, '06713': 35, '06714': 108, '06715': 70, ...
[ { "answer_id": 74648578, "author": "Steve Storck", "author_id": 8031498, "author_profile": "https://Stackoverflow.com/users/8031498", "pm_score": 1, "selected": false, "text": "spring.data.mongodb.host mongodb data" } ]
2022/12/01
[ "https://Stackoverflow.com/questions/74648412", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13019246/" ]
74,648,487
<p>I have two Pandas dataframes. df1 is a time series with 6 columns of values, one of which is column 'name'. df2 is a list of rows each with a unique string in the 'name' column and a the same date in each row of the 'date' column---all rows have the same date value from an observation that occurred on same date.</p>...
[ { "answer_id": 74648578, "author": "Steve Storck", "author_id": 8031498, "author_profile": "https://Stackoverflow.com/users/8031498", "pm_score": 1, "selected": false, "text": "spring.data.mongodb.host mongodb data" } ]
2022/12/01
[ "https://Stackoverflow.com/questions/74648487", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20176945/" ]
74,648,506
<p>I am trying to scrape data from <a href="https://www.onthesnow.com/alberta/lake-louise/historical-snowfall" rel="nofollow noreferrer">https://www.onthesnow.com/alberta/lake-louise/historical-snowfall</a> however the default script only shows the monthly totals and not the annual totals. There is a tab you have to se...
[ { "answer_id": 74648578, "author": "Steve Storck", "author_id": 8031498, "author_profile": "https://Stackoverflow.com/users/8031498", "pm_score": 1, "selected": false, "text": "spring.data.mongodb.host mongodb data" } ]
2022/12/01
[ "https://Stackoverflow.com/questions/74648506", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20660440/" ]
74,648,573
<p>I will put in the code first.</p> <pre><code>{gameModes.map((gameMode, key) =&gt; { return ( &lt;&gt; &lt;div className={styles.gameMode} key={key} onClick={gameModeHandler}&gt; &lt;div className={styles.gameModeContent}&gt; &lt;img src=...
[ { "answer_id": 74648615, "author": "Zac Anger", "author_id": 5774952, "author_profile": "https://Stackoverflow.com/users/5774952", "pm_score": 0, "selected": false, "text": "onClick={() => gameModeHandler(gameMode.title)}" }, { "answer_id": 74648752, "author": "Collins USHI",...
2022/12/01
[ "https://Stackoverflow.com/questions/74648573", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18549005/" ]
74,648,592
<p>I'm currently working on a practice social media app. In this app, current users can invite their friends by email to join the app (specifically, joining a 'channel' of the app, like Discord). I'm working on unit tests to ensure that emails are valid. I'm working with serializers for the first time and I'm trying to...
[ { "answer_id": 74648615, "author": "Zac Anger", "author_id": 5774952, "author_profile": "https://Stackoverflow.com/users/5774952", "pm_score": 0, "selected": false, "text": "onClick={() => gameModeHandler(gameMode.title)}" }, { "answer_id": 74648752, "author": "Collins USHI",...
2022/12/01
[ "https://Stackoverflow.com/questions/74648592", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5513336/" ]
74,648,642
<p>my name is Jan, I have to do a project for high school, the fact is that I have made a code to access an api, but I cannot display the results of an array that has the api on the screen. This is the code : `</p> <pre><code>document.querySelector(&quot;button&quot;).addEventListener(&quot;click&quot;, getCoin); fun...
[ { "answer_id": 74648615, "author": "Zac Anger", "author_id": 5774952, "author_profile": "https://Stackoverflow.com/users/5774952", "pm_score": 0, "selected": false, "text": "onClick={() => gameModeHandler(gameMode.title)}" }, { "answer_id": 74648752, "author": "Collins USHI",...
2022/12/01
[ "https://Stackoverflow.com/questions/74648642", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20660545/" ]
74,648,666
<p>I am trying to use BeautifulSoup to scrape a particular download URL from a web page, based on a partial text match. There are many links on the page, and it changes frequently. The html I'm scraping is full of sections that look something like this:</p> <pre><code>&lt;section class=&quot;onecol habonecol&quot;&gt; ...
[ { "answer_id": 74648615, "author": "Zac Anger", "author_id": 5774952, "author_profile": "https://Stackoverflow.com/users/5774952", "pm_score": 0, "selected": false, "text": "onClick={() => gameModeHandler(gameMode.title)}" }, { "answer_id": 74648752, "author": "Collins USHI",...
2022/12/01
[ "https://Stackoverflow.com/questions/74648666", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6415819/" ]
74,648,678
<p>I'm writing a program to find genes in a large string of DNA.</p> <p>My output is correct on small input strings of DNA, but when I test it on their example DNA string (which is very large—too large to check manually if my output is correct) it says that my output is incorrect.</p> <p>Here's my code:</p> <pre class=...
[ { "answer_id": 74662092, "author": "isaiah paget", "author_id": 20434534, "author_profile": "https://Stackoverflow.com/users/20434534", "pm_score": -1, "selected": false, "text": "the problem with my code is that this function should have contained a loop, because in some cases where non...
2022/12/01
[ "https://Stackoverflow.com/questions/74648678", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20434534/" ]