qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,664,212
<p>As you know looping through each pixels and accessing their values with opencv takes too long. As a beginner I'm trying to learn opencv myself when I tried this approach it took me around 7-10 seconds of time to loop through image and perform operations.</p> <p>code is as below</p> <pre><code>original_image = cv2.im...
[ { "answer_id": 74664281, "author": "Phinnik", "author_id": 13980141, "author_profile": "https://Stackoverflow.com/users/13980141", "pm_score": 0, "selected": false, "text": "mask_gray = (\n (150 <= image[:, :, 0]) & (image[:, :, 0] <= 180) & \n (150 <= image[:, :, 1]) & (image[:, :...
2022/12/03
[ "https://Stackoverflow.com/questions/74664212", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19669574/" ]
74,664,215
<p>I'm using the following function to determine if a winner has been crowned in connect four. Piece is whether they are green or red, last is the last played move (by piece), and name is the discord name of the person playing the game, as it is a file based connect four game. Board is a 2d array being made of all empt...
[ { "answer_id": 74664281, "author": "Phinnik", "author_id": 13980141, "author_profile": "https://Stackoverflow.com/users/13980141", "pm_score": 0, "selected": false, "text": "mask_gray = (\n (150 <= image[:, :, 0]) & (image[:, :, 0] <= 180) & \n (150 <= image[:, :, 1]) & (image[:, :...
2022/12/03
[ "https://Stackoverflow.com/questions/74664215", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20419122/" ]
74,664,244
<p>Editing my sister's tic-tac-toe code and she (also I) hit a snag. If Player one was to type a number greater than 9 or type a number that at was already used it will crash. Is there and recommended solution to problem.</p> <pre><code>printGameBoard(gameBoard); //User input requests while(true) { ...
[ { "answer_id": 74664281, "author": "Phinnik", "author_id": 13980141, "author_profile": "https://Stackoverflow.com/users/13980141", "pm_score": 0, "selected": false, "text": "mask_gray = (\n (150 <= image[:, :, 0]) & (image[:, :, 0] <= 180) & \n (150 <= image[:, :, 1]) & (image[:, :...
2022/12/03
[ "https://Stackoverflow.com/questions/74664244", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20671989/" ]
74,664,246
<p>I have two data frames:</p> <p>df1:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Index</th> <th>Date</th> </tr> </thead> <tbody> <tr> <td>0</td> <td>2016-03-21 20:10:00</td> </tr> <tr> <td>1</td> <td>2016-03-22 21:09:00</td> </tr> <tr> <td>2</td> <td>2016-05-03 17:05:00</td> </tr> </t...
[ { "answer_id": 74664281, "author": "Phinnik", "author_id": 13980141, "author_profile": "https://Stackoverflow.com/users/13980141", "pm_score": 0, "selected": false, "text": "mask_gray = (\n (150 <= image[:, :, 0]) & (image[:, :, 0] <= 180) & \n (150 <= image[:, :, 1]) & (image[:, :...
2022/12/03
[ "https://Stackoverflow.com/questions/74664246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20543897/" ]
74,664,257
<p>Could you tell me the way to refresh data on RecycleView on Fragment. On DialogFragment, there are some TextInputEditText, and users could change the data. After users closed DialogFragment with dismiss(), RecycleView isn't changed.</p> <p>Tried to use Intetnt back to RecycleView, but I think it is not correct way. ...
[ { "answer_id": 74664281, "author": "Phinnik", "author_id": 13980141, "author_profile": "https://Stackoverflow.com/users/13980141", "pm_score": 0, "selected": false, "text": "mask_gray = (\n (150 <= image[:, :, 0]) & (image[:, :, 0] <= 180) & \n (150 <= image[:, :, 1]) & (image[:, :...
2022/12/03
[ "https://Stackoverflow.com/questions/74664257", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20672071/" ]
74,664,279
<p>So if someone needs to disable a submit button unless the user input is filled, he needs to do this:</p> <pre><code> $(function () { $('#login').attr('disabled', true); $('#userinput').change(function () { if ($('#userinput').val() != '') { $('#login...
[ { "answer_id": 74664281, "author": "Phinnik", "author_id": 13980141, "author_profile": "https://Stackoverflow.com/users/13980141", "pm_score": 0, "selected": false, "text": "mask_gray = (\n (150 <= image[:, :, 0]) & (image[:, :, 0] <= 180) & \n (150 <= image[:, :, 1]) & (image[:, :...
2022/12/03
[ "https://Stackoverflow.com/questions/74664279", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17730693/" ]
74,664,288
<p>I was building a React project with Vite and it was going great. I needed to add some charts and found out about the recharts package and really liked it so downloaded it into my project with the command <code>npm i recharts</code>.</p> <p>I get the following message:</p> <p><a href="https://i.stack.imgur.com/An8KL....
[ { "answer_id": 74664281, "author": "Phinnik", "author_id": 13980141, "author_profile": "https://Stackoverflow.com/users/13980141", "pm_score": 0, "selected": false, "text": "mask_gray = (\n (150 <= image[:, :, 0]) & (image[:, :, 0] <= 180) & \n (150 <= image[:, :, 1]) & (image[:, :...
2022/12/03
[ "https://Stackoverflow.com/questions/74664288", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8926559/" ]
74,664,338
<p>I am trying to exclude certain words from dictionary file.</p> <pre><code># cat en.txt test testing access/p batch batch/n batches cross # cat exclude.txt test batch # grep -vf exclude.txt en.txt access/p cross </code></pre> <p>The words like &quot;testing&quot; and &quot;batches&quot; should be included in the re...
[ { "answer_id": 74664612, "author": "Daweo", "author_id": 10785975, "author_profile": "https://Stackoverflow.com/users/10785975", "pm_score": 2, "selected": false, "text": "AWK en.txt test\ntesting\naccess/p\nbatch\nbatch/n\nbatches\ncross\n exclude.txt test\nbatch\n awk 'BEGIN{FS=\"/\"}F...
2022/12/03
[ "https://Stackoverflow.com/questions/74664338", "https://Stackoverflow.com", "https://Stackoverflow.com/users/139150/" ]
74,664,355
<p>i have html css js web-site and i have a little problem. I make html and css for my search_form. I need to scroll the site page to a current product when user enters the product name in the search engine. I suggest that when i'm inputting product name with class .text_2_Rapid_Item_1 my page is scrolling before produ...
[ { "answer_id": 74664612, "author": "Daweo", "author_id": 10785975, "author_profile": "https://Stackoverflow.com/users/10785975", "pm_score": 2, "selected": false, "text": "AWK en.txt test\ntesting\naccess/p\nbatch\nbatch/n\nbatches\ncross\n exclude.txt test\nbatch\n awk 'BEGIN{FS=\"/\"}F...
2022/12/03
[ "https://Stackoverflow.com/questions/74664355", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20672142/" ]
74,664,379
<p>What is the best approach to audit the database for:</p> <ol> <li>Make a copy of the deleted and updated records.</li> <li>Save the date and user ID of the ones who did the DML which is (the ID) was saved on a session in ASP.NET</li> </ol> <p>My manager told me to add 3 extra columns to each table one for the <code...
[ { "answer_id": 74664612, "author": "Daweo", "author_id": 10785975, "author_profile": "https://Stackoverflow.com/users/10785975", "pm_score": 2, "selected": false, "text": "AWK en.txt test\ntesting\naccess/p\nbatch\nbatch/n\nbatches\ncross\n exclude.txt test\nbatch\n awk 'BEGIN{FS=\"/\"}F...
2022/12/03
[ "https://Stackoverflow.com/questions/74664379", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18598052/" ]
74,664,396
<p>Hello im trying to make a oop function but im currently stuck on how can i inherit the <code>__init__</code> arguments of my parent class to the child class, is there a method that can i use to adapt the variable from my main to use in child?</p> <pre><code>class a: def __init__(self, name): self.name = ...
[ { "answer_id": 74664612, "author": "Daweo", "author_id": 10785975, "author_profile": "https://Stackoverflow.com/users/10785975", "pm_score": 2, "selected": false, "text": "AWK en.txt test\ntesting\naccess/p\nbatch\nbatch/n\nbatches\ncross\n exclude.txt test\nbatch\n awk 'BEGIN{FS=\"/\"}F...
2022/12/03
[ "https://Stackoverflow.com/questions/74664396", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14740052/" ]
74,664,399
<p>i tried to make a function for averaging all the array in an object of another array, but however i tried i can't call the parameter for the function i make</p> <blockquote> </blockquote> <pre><code>let students = [randy, riziq, rama]; let randy = { name: 'Randy', score: [75, 80, 90] }; let riziq = { name: '...
[ { "answer_id": 74664504, "author": "Asraf", "author_id": 20361860, "author_profile": "https://Stackoverflow.com/users/20361860", "pm_score": 2, "selected": false, "text": "let students = [randy, riziq, rama]; let randy = {\n name: 'Randy',\n score: [75, 80, 90]\n};\nlet riziq = {\n ...
2022/12/03
[ "https://Stackoverflow.com/questions/74664399", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20672275/" ]
74,664,400
<p>this is my code for a dropdown, I am using tailwindCSS and pure html,</p> <pre><code>&lt;li class=&quot;relative&quot; x-data=&quot;{isOpen:false}&quot;&gt; &lt;button @click=&quot;isOpen=!isOpen&quot; class=&quot; block text-sm font-bold outline-none focus:outline-none text-blue-900 &quot; href=&q...
[ { "answer_id": 74664436, "author": "Code28", "author_id": 17574707, "author_profile": "https://Stackoverflow.com/users/17574707", "pm_score": 1, "selected": false, "text": ".\n\ndrop-down{\ndisplay:none;\n}\n.drop-down-parent:hover .drop-down{\n\ndisplay:block;\n\n}\n" }, { "answ...
2022/12/03
[ "https://Stackoverflow.com/questions/74664400", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19336351/" ]
74,664,410
<p>I am using Stripe in my NextJs project and have tried to get customers list in my app but have not succeeded. If anyone knows how to get it, please instruct me on how to do that.</p> <p><strong>This is my code:</strong></p> <pre><code>import { loadStripe } from &quot;@stripe/stripe-js&quot;; async function getStrip...
[ { "answer_id": 74664449, "author": "regex", "author_id": 9470979, "author_profile": "https://Stackoverflow.com/users/9470979", "pm_score": 0, "selected": false, "text": "stripe.customers.list() email created stripe.customers.list() import { loadStripe } from \"@stripe/stripe-js\";\n\nasy...
2022/12/03
[ "https://Stackoverflow.com/questions/74664410", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11283695/" ]
74,664,427
<p>I'm trying to do some sort of timeline design using CSS grid, with elements interweaved on both sides. But at least rows 1, 2 and the last have juste blanked unused space.</p> <p>The columns are declared, but the rows aren't. So I tried using <code>grid-auto-rows: min-content</code>, but it didn't change anything. A...
[ { "answer_id": 74664449, "author": "regex", "author_id": 9470979, "author_profile": "https://Stackoverflow.com/users/9470979", "pm_score": 0, "selected": false, "text": "stripe.customers.list() email created stripe.customers.list() import { loadStripe } from \"@stripe/stripe-js\";\n\nasy...
2022/12/03
[ "https://Stackoverflow.com/questions/74664427", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4433288/" ]
74,664,429
<p>I have 2 lists and I want to see how many of the text in list 1 is in list 2 but I don't really know of a way to like combine them the output isn't summed and I have tried sum method but it does it for all words counted not each word.</p> <p>Code:</p> <pre class="lang-py prettyprint-override"><code>l1 = ['hello', 'h...
[ { "answer_id": 74664448, "author": "kenjoe41", "author_id": 4671205, "author_profile": "https://Stackoverflow.com/users/4671205", "pm_score": 1, "selected": false, "text": "from collections import Counter\n\nl1 = ['hello', 'hi']\nl2 = ['hey', 'hi', 'hello', 'hello']\n\n# Create a Counter...
2022/12/03
[ "https://Stackoverflow.com/questions/74664429", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19533292/" ]
74,664,451
<p>So another prolog question here.</p> <p>As the title indicated, I tried to add one element on each sublist of a list. But things really don't go well. Here's my code so far:</p> <pre><code>add_char(Char, Motif, NewM):- append(Motif, [Char], NewM). add_all(Char, [], _, RE). add_all(Char, [H|T], Pred, RE):- add_ch...
[ { "answer_id": 74665530, "author": "TessellatingHeckler", "author_id": 478656, "author_profile": "https://Stackoverflow.com/users/478656", "pm_score": 1, "selected": true, "text": "=(v,[1,2,3]) add_char(Char, (X=Motif), (X=NewM)) :- % destructures v=[1,2,3]\n append(Motif, [Char], Ne...
2022/12/03
[ "https://Stackoverflow.com/questions/74664451", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20632687/" ]
74,664,488
<p>I want to fillna values in the 'last unique id' column based on the increment values from the previous row</p> <pre><code>**input is** Channel last unique id 0 MYNTRA MN000351370 1 NYKAA NYK00038219 2 NYKAA NaN 3 NYKAA NaN 4 NYKAA NaN 5 NYKAA NaN 6 MYNTRA NaN 7 MYNTRA NaN 8 MYNTRA Na...
[ { "answer_id": 74665530, "author": "TessellatingHeckler", "author_id": 478656, "author_profile": "https://Stackoverflow.com/users/478656", "pm_score": 1, "selected": true, "text": "=(v,[1,2,3]) add_char(Char, (X=Motif), (X=NewM)) :- % destructures v=[1,2,3]\n append(Motif, [Char], Ne...
2022/12/03
[ "https://Stackoverflow.com/questions/74664488", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16173748/" ]
74,664,498
<p>I am new to go and now evaluate a demo function about slice with Fibonacci sequence</p> <pre><code>package main import &quot;fmt&quot; func fbn(n int) []uint64 { fbnSlice := make([]uint64, n) fbnSlice[0] = 1 fbnSlice[1] = 1 for i := 2; i &lt; n; i++ { fbnSlice[i] = fbnSlice[i-1] + fbnSlice...
[ { "answer_id": 74665530, "author": "TessellatingHeckler", "author_id": 478656, "author_profile": "https://Stackoverflow.com/users/478656", "pm_score": 1, "selected": true, "text": "=(v,[1,2,3]) add_char(Char, (X=Motif), (X=NewM)) :- % destructures v=[1,2,3]\n append(Motif, [Char], Ne...
2022/12/03
[ "https://Stackoverflow.com/questions/74664498", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7452990/" ]
74,664,508
<p>I'm trying to find a way to create a nested list out of an already-existing non-empty list using built-in list fuctions.</p> <p>Here is a small example: <code>a=['Groceries', 'School Fees', 'Medicines', 'Furniture']</code> When I try <code>a[0].insert(0, 1000)</code> for example, I'm met with an error. Is there any ...
[ { "answer_id": 74665530, "author": "TessellatingHeckler", "author_id": 478656, "author_profile": "https://Stackoverflow.com/users/478656", "pm_score": 1, "selected": true, "text": "=(v,[1,2,3]) add_char(Char, (X=Motif), (X=NewM)) :- % destructures v=[1,2,3]\n append(Motif, [Char], Ne...
2022/12/03
[ "https://Stackoverflow.com/questions/74664508", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12819949/" ]
74,664,526
<p>I'm just trying to figure out how to toggle a css class for an individual button that is generated from a mapped array.</p> <p>My code works, but it toggles <em>every</em> mapped button, not just the button selected.</p> <pre><code> &lt;div className='synonym-keeper'&gt; ...
[ { "answer_id": 74664575, "author": "Amila Senadheera", "author_id": 8510405, "author_profile": "https://Stackoverflow.com/users/8510405", "pm_score": 3, "selected": true, "text": "Togglebutton const synArr = [\"button 1\", \"button 2\", \"button 3\"];\n\nconst ToggleButton = ({ text }) =...
2022/12/03
[ "https://Stackoverflow.com/questions/74664526", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17502217/" ]
74,664,542
<p>I have login information in my list. I am trying to match login id and password with list. My code only allow to test correct id and password. If id or password is not matched then my code is not allow me to re enter the id and password.</p> <p>Here is my code:</p> <pre><code>System.out.println(&quot;*** Welcome bac...
[ { "answer_id": 74664575, "author": "Amila Senadheera", "author_id": 8510405, "author_profile": "https://Stackoverflow.com/users/8510405", "pm_score": 3, "selected": true, "text": "Togglebutton const synArr = [\"button 1\", \"button 2\", \"button 3\"];\n\nconst ToggleButton = ({ text }) =...
2022/12/03
[ "https://Stackoverflow.com/questions/74664542", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20672431/" ]
74,664,554
<p>I have an JSON file similar to this:</p> <pre class="lang-json prettyprint-override"><code>{ &quot;version&quot;: &quot;2.0&quot;, &quot;stage&quot; : { &quot;objects&quot; : [ { &quot;foo&quot; : 1100, &quot;bar&quot; : false, &quot;id&quot...
[ { "answer_id": 74664887, "author": "knittl", "author_id": 112968, "author_profile": "https://Stackoverflow.com/users/112968", "pm_score": 1, "selected": false, "text": "to_entries .stage.objects |= (to_entries | map(.value.id = .key + 1 | .value))\n .stage.objects |= (to_entries | map(.v...
2022/12/03
[ "https://Stackoverflow.com/questions/74664554", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20672299/" ]
74,664,596
<p>I'm very new to React JS but watched a few video tutorials on how to build my own portfolio. I want to map my portfolio items which contain an image, title, description, role and link. I managed to map everything except for the link to the detailed page of the respective portfolio item.</p> <p>Could anyone please he...
[ { "answer_id": 74664876, "author": "ClusterH", "author_id": 15119024, "author_profile": "https://Stackoverflow.com/users/15119024", "pm_score": 0, "selected": false, "text": "import React, { Suspense, lazy } from 'react';\nimport { BrowserRouter as Router, Routes, Route } from 'react-rou...
2022/12/03
[ "https://Stackoverflow.com/questions/74664596", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4599636/" ]
74,664,597
<p>I have these two plots (a heatmap and a stacked barplot). How can I put these plots near each other? Indeed I want to integrate these two plots.</p> <p>Thanks for any help.</p> <p>Here is my script:</p> <pre><code>df.bar &lt;- data.frame(Gene.name=c('Gene1','Gene1','Gene1','Gene2','Gene2','Gene2','Gene3','Gene3','Ge...
[ { "answer_id": 74665519, "author": "Allan Cameron", "author_id": 12500315, "author_profile": "https://Stackoverflow.com/users/12500315", "pm_score": 3, "selected": true, "text": "heatmap.2 ggplot heatmap.2 library(gplots)\nlibrary(ggplot2)\nlibrary(patchwork)\nlibrary(gridGraphics)\n\np1...
2022/12/03
[ "https://Stackoverflow.com/questions/74664597", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15521046/" ]
74,664,603
<p>I'm trying to create a graph that lists the high and low temperature per city on a specific day, but it seems like the y axes are just overlapping instead of plotting the point along it. Here is what I have:</p> <pre><code>fig, al = plt.subplots() al.scatter(al_cities, al_min) al.scatter(al_cities, al_max, c='red') ...
[ { "answer_id": 74664864, "author": "ScottC", "author_id": 20174226, "author_profile": "https://Stackoverflow.com/users/20174226", "pm_score": 2, "selected": true, "text": "al_min al_max ['1','2','3'] [1,2,3] al_min = list(map(int, al_min))\nal_max = list(map(int, al_max))\n import matplo...
2022/12/03
[ "https://Stackoverflow.com/questions/74664603", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14490539/" ]
74,664,615
<p>I have a dataset that looks something like this:</p> <pre><code>name = c(&quot;john&quot;, &quot;john&quot;, &quot;john&quot;, &quot;alex&quot;,&quot;alex&quot;, &quot;tim&quot;, &quot;tim&quot;, &quot;tim&quot;, &quot;ralph&quot;, &quot;ralph&quot;) year = c(2010, 2011, 2012, 2011, 2012, 2010, 2011, 2012, 2014, 201...
[ { "answer_id": 74664749, "author": "Rui Barradas", "author_id": 8245406, "author_profile": "https://Stackoverflow.com/users/8245406", "pm_score": 3, "selected": true, "text": "# 1.\nagg <- aggregate(year ~ name, my_data, paste, collapse = \", \")\nas.data.frame(table(agg$year))\n#> ...
2022/12/03
[ "https://Stackoverflow.com/questions/74664615", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13203841/" ]
74,664,657
<p>Given an array of songs that are different versions of the same song:</p> <pre><code>const songArray = [&quot;Holiday&quot;, &quot;Holiday - Remastered Remix&quot;, &quot;Holiday - Live in Portugal&quot;, &quot;Holiday (Remix)&quot;, &quot;Like a Prayer&quot;, &quot;Like a Prayer - Remaster&quot;, &quot;Like a Praye...
[ { "answer_id": 74664688, "author": "Amila Senadheera", "author_id": 8510405, "author_profile": "https://Stackoverflow.com/users/8510405", "pm_score": 1, "selected": false, "text": "Array.prototype.some() const songArray = [ \"Holiday\", \"Holiday - Remastered Remix\", \"Holiday - Live in...
2022/12/03
[ "https://Stackoverflow.com/questions/74664657", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20672514/" ]
74,664,671
<p>I am trying to make a responsive card layout as shown in the image.</p> <p><a href="https://i.stack.imgur.com/Bzgbd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bzgbd.png" alt="enter image description here" /></a></p> <p>Currently what I am doing is that I am separately creating layouts for com...
[ { "answer_id": 74664781, "author": "Ashok Shah", "author_id": 1530567, "author_profile": "https://Stackoverflow.com/users/1530567", "pm_score": 2, "selected": true, "text": "/* tablet view */\n@media only screen and (max-width: 768px){\n .parent-container {\n max-width: 320px;\...
2022/12/03
[ "https://Stackoverflow.com/questions/74664671", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17348251/" ]
74,664,718
<p>Is there any way in which we can have literal '#' character in replacement-list of C preprocessor macro?</p> <p>'#' character in replacement-list of C preprocessor is an operator that performs stringification of argument, for example-</p> <pre><code>#define foo(words) #words foo(Hello World!) </code></pre> <p>will ...
[ { "answer_id": 74664781, "author": "Ashok Shah", "author_id": 1530567, "author_profile": "https://Stackoverflow.com/users/1530567", "pm_score": 2, "selected": true, "text": "/* tablet view */\n@media only screen and (max-width: 768px){\n .parent-container {\n max-width: 320px;\...
2022/12/03
[ "https://Stackoverflow.com/questions/74664718", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9724232/" ]
74,664,728
<p>I am trying to do this problem:</p> <p><a href="https://www.chegg.com/homework-help/questions-and-answers/blocks-pyramid-def-pyramidblocks-n-m-h-pyramid-structure-although-ancient-mesoamerican-fam-q38542637" rel="nofollow noreferrer">https://www.chegg.com/homework-help/questions-and-answers/blocks-pyramid-def-pyrami...
[ { "answer_id": 74664781, "author": "Ashok Shah", "author_id": 1530567, "author_profile": "https://Stackoverflow.com/users/1530567", "pm_score": 2, "selected": true, "text": "/* tablet view */\n@media only screen and (max-width: 768px){\n .parent-container {\n max-width: 320px;\...
2022/12/03
[ "https://Stackoverflow.com/questions/74664728", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20672626/" ]
74,664,741
<p>I am trying to add Notification feature in Moodle Mobile App using Firebase Cloud Messaging, and I am getting an error while building the Ionic app.</p> <blockquote> <p>cordova build android Conflict found, edit-config changes from config.xml will overwrite plugin.xml changes Removing permission &quot;android.permis...
[ { "answer_id": 74664781, "author": "Ashok Shah", "author_id": 1530567, "author_profile": "https://Stackoverflow.com/users/1530567", "pm_score": 2, "selected": true, "text": "/* tablet view */\n@media only screen and (max-width: 768px){\n .parent-container {\n max-width: 320px;\...
2022/12/03
[ "https://Stackoverflow.com/questions/74664741", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19052339/" ]
74,664,746
<p>I am attempting to populate values from one DataFrame to another DataFrame based on a common column present in both DataFrames.</p> <p>The code I wrote for this operation is as follows:</p> <pre><code>for i in df1.zipcodes: for j in df2.zipcodes.unique(): if i == j: #print(&quot;this is i:&quot;,...
[ { "answer_id": 74664781, "author": "Ashok Shah", "author_id": 1530567, "author_profile": "https://Stackoverflow.com/users/1530567", "pm_score": 2, "selected": true, "text": "/* tablet view */\n@media only screen and (max-width: 768px){\n .parent-container {\n max-width: 320px;\...
2022/12/03
[ "https://Stackoverflow.com/questions/74664746", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15183282/" ]
74,664,861
<p>I would like to ask question related to fetching. I'm required to create a weather website. For this, firstly, I registered in weather api, got a key, and formulated my 'url' by following api doc. Now, the url itself seems works; 'https://api.openweathermap.org/data/2.5/weather?q=London&amp;units=metric&amp;appid=01...
[ { "answer_id": 74664957, "author": "JohnVersus", "author_id": 9243755, "author_profile": "https://Stackoverflow.com/users/9243755", "pm_score": -1, "selected": false, "text": "let weather = {\n fetchWeather : function() {\n const requestOptions = {\n method: 'GET',\n ...
2022/12/03
[ "https://Stackoverflow.com/questions/74664861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19063067/" ]
74,664,870
<p>I have two dictionaries:</p> <pre><code>first_dict = {'a': ['1', '2', '3'], 'b': ['4', '5'], 'c': ['6'], } </code></pre> <pre><code>second_dict = {'1': 'wqeewe', '2': 'efsafa', '4': 'fsasaf', '6': 'kgoeew', '7': 'fk...
[ { "answer_id": 74665012, "author": "pizoooo", "author_id": 10902484, "author_profile": "https://Stackoverflow.com/users/10902484", "pm_score": 1, "selected": false, "text": "first_dict = {'a': ['1', '2', '3'],\n 'b': ['4', '5'],\n 'c': ['6'],\n }\n\...
2022/12/03
[ "https://Stackoverflow.com/questions/74664870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20395754/" ]
74,664,892
<p>I am trying to change the state in the App components from a child components and I fell i would result to an issue later in my app</p> <p>i tried passing the setFunction down to the child components then having it change the value in the app components</p>
[ { "answer_id": 74665012, "author": "pizoooo", "author_id": 10902484, "author_profile": "https://Stackoverflow.com/users/10902484", "pm_score": 1, "selected": false, "text": "first_dict = {'a': ['1', '2', '3'],\n 'b': ['4', '5'],\n 'c': ['6'],\n }\n\...
2022/12/03
[ "https://Stackoverflow.com/questions/74664892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14215391/" ]
74,664,899
<p>I have a dataframe contains one column which has multiple strings separated by the comma, but in this string, I want to remove all matter after hyphen (including hyphen), main point is after in some cases hyphen is not there but directed parenthesis is there so I also want to remove that as well and carry all the af...
[ { "answer_id": 74665011, "author": "Frodnar", "author_id": 15534441, "author_profile": "https://Stackoverflow.com/users/15534441", "pm_score": 1, "selected": false, "text": "dd['sin'] = dd['sin'].str.split(\", \")\ndd = dd.explode('sin').reset_index()\ndd['sin'] = dd['sin'].str.replace('...
2022/12/03
[ "https://Stackoverflow.com/questions/74664899", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15543946/" ]
74,664,926
<p>I have visualization like this:</p> <p><img src="https://i.stack.imgur.com/iEuqw.png" alt="enter image description here" /></p> <p>I want to change the marker icon into a <strong>football icon</strong> with the <strong>same color as the line</strong></p> <p>My code looks like this :</p> <pre><code>fig, ax = plt.subp...
[ { "answer_id": 74665691, "author": "GenZ", "author_id": 19921706, "author_profile": "https://Stackoverflow.com/users/19921706", "pm_score": 1, "selected": true, "text": "matplotlib import matplotlib.pyplot as plt\nfrom matplotlib.offsetbox import OffsetImage, AnnotationBbox\n\ndef getIma...
2022/12/03
[ "https://Stackoverflow.com/questions/74664926", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20336070/" ]
74,664,944
<p>Cannot instal nuxt and create app. I used <a href="https://nuxtjs.org/docs/get-started/installation" rel="nofollow noreferrer">https://nuxtjs.org/docs/get-started/installation</a> and <a href="https://github.com/nuxt/create-nuxt-app" rel="nofollow noreferrer">https://github.com/nuxt/create-nuxt-app</a> for creating ...
[ { "answer_id": 74665691, "author": "GenZ", "author_id": 19921706, "author_profile": "https://Stackoverflow.com/users/19921706", "pm_score": 1, "selected": true, "text": "matplotlib import matplotlib.pyplot as plt\nfrom matplotlib.offsetbox import OffsetImage, AnnotationBbox\n\ndef getIma...
2022/12/03
[ "https://Stackoverflow.com/questions/74664944", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20146550/" ]
74,664,964
<p>I am tryin to take user input in a parameterized java constructor but I am failing. It gives the following error</p> <pre><code>Exception in thread &quot;main&quot; java.util.NoSuchElementException: No line found at java.base/java.util.Scanner.nextLine(Scanner.java:1651) at Main.main(Main.java:24) </code></p...
[ { "answer_id": 74664991, "author": "Novaordo", "author_id": 20594686, "author_profile": "https://Stackoverflow.com/users/20594686", "pm_score": -1, "selected": false, "text": " public Student( String name, String date) {\n this.name=name;\n this.date=date;\n }\n static cl...
2022/12/03
[ "https://Stackoverflow.com/questions/74664964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12393492/" ]
74,664,972
<p>I have a text file structured like this:</p> <pre><code>[timestamp1] header with space [timestamp2] data1 [timestamp3] data2 [timestamp4] data3 [timestamp5] .. [timestamp6] footer with space [timestamp7] junk [timestamp8] header with space [timestamp9] data4 [timestamp10] data5 [timestamp11] ... [timestamp12] foote...
[ { "answer_id": 74665003, "author": "Itération 122442", "author_id": 6213883, "author_profile": "https://Stackoverflow.com/users/6213883", "pm_score": 2, "selected": false, "text": "BEGIN {\n i = 0\n}\n{\n if ($0 == \"header\") {\n write = 1\n } else if ($0 == \"footer\") ...
2022/12/03
[ "https://Stackoverflow.com/questions/74664972", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9439683/" ]
74,664,982
<p>I am trying to create a discord bot, but I am caught in an unending loop of problems. In every video I've watched, it is recommended that you write the cog loading function as thus:</p> <pre><code>async def load_auto(): for filename in os.listdir('./cogs'): if filename.endswith('.py'): awa...
[ { "answer_id": 74665003, "author": "Itération 122442", "author_id": 6213883, "author_profile": "https://Stackoverflow.com/users/6213883", "pm_score": 2, "selected": false, "text": "BEGIN {\n i = 0\n}\n{\n if ($0 == \"header\") {\n write = 1\n } else if ($0 == \"footer\") ...
2022/12/03
[ "https://Stackoverflow.com/questions/74664982", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20672587/" ]
74,665,004
<p>I want to create a two column card layout and I'm using reusable widget I created. But I'm having renderflow issues. Below are the errors. i already tried to make it smaller, it worked but not as what i want it to look like.</p> <p>════════ Exception caught by rendering library ═════════════════════════════════ A ...
[ { "answer_id": 74665003, "author": "Itération 122442", "author_id": 6213883, "author_profile": "https://Stackoverflow.com/users/6213883", "pm_score": 2, "selected": false, "text": "BEGIN {\n i = 0\n}\n{\n if ($0 == \"header\") {\n write = 1\n } else if ($0 == \"footer\") ...
2022/12/03
[ "https://Stackoverflow.com/questions/74665004", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20501864/" ]
74,665,030
<p><a href="https://i.stack.imgur.com/7iR85.jpg" rel="nofollow noreferrer">enter image description here</a> - Relationships</p> <p>Find employees who took some kind of management class (i.e., a class whose name ends with management). List employees’ last and first name, class name, and the class date. Sort the query ou...
[ { "answer_id": 74665003, "author": "Itération 122442", "author_id": 6213883, "author_profile": "https://Stackoverflow.com/users/6213883", "pm_score": 2, "selected": false, "text": "BEGIN {\n i = 0\n}\n{\n if ($0 == \"header\") {\n write = 1\n } else if ($0 == \"footer\") ...
2022/12/03
[ "https://Stackoverflow.com/questions/74665030", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20113736/" ]
74,665,078
<p>I understand a bit about the useEffect hook but I think there’s still more knowledge to grasp. Some of which are not in the documentation. Please any contribution will help a lot y’all.</p> <p>Some of my questions are:</p> <ol> <li><p>Does useEffect get called on initial render even in production just like in develo...
[ { "answer_id": 74665003, "author": "Itération 122442", "author_id": 6213883, "author_profile": "https://Stackoverflow.com/users/6213883", "pm_score": 2, "selected": false, "text": "BEGIN {\n i = 0\n}\n{\n if ($0 == \"header\") {\n write = 1\n } else if ($0 == \"footer\") ...
2022/12/03
[ "https://Stackoverflow.com/questions/74665078", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16770846/" ]
74,665,089
<p>I have an array and I want to assign values in group of 3s Name, Id, Population, Name, Id, Population, Name, Id, Population etc. Is there a way to do that? This is what I have</p> <pre class="lang-java prettyprint-override"><code>while (scanner.hasNext()) { ` scanner.useDelimiter(&quot;,&quot;);` list.add(sc...
[ { "answer_id": 74665003, "author": "Itération 122442", "author_id": 6213883, "author_profile": "https://Stackoverflow.com/users/6213883", "pm_score": 2, "selected": false, "text": "BEGIN {\n i = 0\n}\n{\n if ($0 == \"header\") {\n write = 1\n } else if ($0 == \"footer\") ...
2022/12/03
[ "https://Stackoverflow.com/questions/74665089", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20627734/" ]
74,665,120
<p>Implement a function that is given 2 positive integers representing 2 angles of a triangle. If the triangle is right, isosceles, or both, the function should return 1, 2 or 3, respectively. Otherwise it should return 0.</p> <p>im actually just started learning C language and cant move on cause i cant find an answer ...
[ { "answer_id": 74665811, "author": "Juraj", "author_id": 14091997, "author_profile": "https://Stackoverflow.com/users/14091997", "pm_score": 0, "selected": false, "text": "int TriangleType(unsigned num1, unsigned num2)\n{\n int result;\n if (num1 == 90 || num2 == 90 || num1 + num2 == 9...
2022/12/03
[ "https://Stackoverflow.com/questions/74665120", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19357198/" ]
74,665,124
<pre class="lang-py prettyprint-override"><code>import re, datetime def add_months(datestr, months): ref_year, ref_month = &quot;&quot;, &quot;&quot; ref_year_is_leap_year = False aux_date = str(datetime.datetime.strptime(datestr, &quot;%Y-%m-%d&quot;)) print(repr(aux_date)) for i_month in range...
[ { "answer_id": 74665811, "author": "Juraj", "author_id": 14091997, "author_profile": "https://Stackoverflow.com/users/14091997", "pm_score": 0, "selected": false, "text": "int TriangleType(unsigned num1, unsigned num2)\n{\n int result;\n if (num1 == 90 || num2 == 90 || num1 + num2 == 9...
2022/12/03
[ "https://Stackoverflow.com/questions/74665124", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17696880/" ]
74,665,141
<p>I want to delete child component, parent will delete the last child only and after that, it shows that index is -1 from hostView and can't delete the child from view</p> <p>this is my Child View</p> <pre><code>&lt;button (click)=&quot;remove_me()&quot; &gt;I am a Child {{unique_key}}, click to Remove &lt;/button&gt;...
[ { "answer_id": 74665811, "author": "Juraj", "author_id": 14091997, "author_profile": "https://Stackoverflow.com/users/14091997", "pm_score": 0, "selected": false, "text": "int TriangleType(unsigned num1, unsigned num2)\n{\n int result;\n if (num1 == 90 || num2 == 90 || num1 + num2 == 9...
2022/12/03
[ "https://Stackoverflow.com/questions/74665141", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20673042/" ]
74,665,143
<p>I am in serious trouble. I have been uploading to the s3 bucket using aws-sdk javascript, downloading it through object link. Using s3 to store images/assets to be used for the nextjs website. I have set the bucket to the read only for everyone. I just realize that this is serious problem, as anyone will be able to ...
[ { "answer_id": 74665811, "author": "Juraj", "author_id": 14091997, "author_profile": "https://Stackoverflow.com/users/14091997", "pm_score": 0, "selected": false, "text": "int TriangleType(unsigned num1, unsigned num2)\n{\n int result;\n if (num1 == 90 || num2 == 90 || num1 + num2 == 9...
2022/12/03
[ "https://Stackoverflow.com/questions/74665143", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14899600/" ]
74,665,149
<p>I expect the User to provide a sentence.</p> <p>And as an output, they will reverse a string with only the odd-length words reversed (<em>i.e. even-length words should remain intact</em>).</p> <pre><code>static String secretAgentII(String s) { StringBuffer sb = new StringBuffer(); String[] newStr = s.split(&...
[ { "answer_id": 74665811, "author": "Juraj", "author_id": 14091997, "author_profile": "https://Stackoverflow.com/users/14091997", "pm_score": 0, "selected": false, "text": "int TriangleType(unsigned num1, unsigned num2)\n{\n int result;\n if (num1 == 90 || num2 == 90 || num1 + num2 == 9...
2022/12/03
[ "https://Stackoverflow.com/questions/74665149", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17934589/" ]
74,665,162
<p>This is a <a href="https://docs.raku.org/language/nativecall" rel="nofollow noreferrer">NativeCall</a> question.</p> <p>I have 8 bytes (little endian) in a <code>CArray</code> representing a memory address. How do I create a <code>Pointer</code> out it?</p> <p>(<code>CArray</code> and <code>Pointer</code> are two of...
[ { "answer_id": 74672031, "author": "Håkon Hægland", "author_id": 2173773, "author_profile": "https://Stackoverflow.com/users/2173773", "pm_score": 0, "selected": false, "text": "my $ptr = nativecast(CArray[Pointer], $array);\nmy Pointer $ptr2 = $ptr[$idx];\n" }, { "answer_id": 74...
2022/12/03
[ "https://Stackoverflow.com/questions/74665162", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9713817/" ]
74,665,170
<p>i want to asking this problem. this output is the expected output</p> <pre><code>* *# *#% *#%* *#%*# *#%*#% </code></pre> <p>and this is my solution</p> <pre><code>#include &lt;iostream&gt; using namespace std; int main(){ int a,b,n; cout &lt;&lt; &quot;Input the row&quot;; cin &gt;&gt; n; for (a = 1;...
[ { "answer_id": 74672031, "author": "Håkon Hægland", "author_id": 2173773, "author_profile": "https://Stackoverflow.com/users/2173773", "pm_score": 0, "selected": false, "text": "my $ptr = nativecast(CArray[Pointer], $array);\nmy Pointer $ptr2 = $ptr[$idx];\n" }, { "answer_id": 74...
2022/12/03
[ "https://Stackoverflow.com/questions/74665170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20545573/" ]
74,665,232
<p>My goal is to embed an iframe (I have no control over it) with <strong>variable height</strong> and crop off the bottom 100px. The code I have so far is this:</p> <pre class="lang-html prettyprint-override"><code>&lt;iframe id=&quot;booking-content&quot; title=&quot;booking-content&quot; src=&quot;https://ou...
[ { "answer_id": 74672031, "author": "Håkon Hægland", "author_id": 2173773, "author_profile": "https://Stackoverflow.com/users/2173773", "pm_score": 0, "selected": false, "text": "my $ptr = nativecast(CArray[Pointer], $array);\nmy Pointer $ptr2 = $ptr[$idx];\n" }, { "answer_id": 74...
2022/12/03
[ "https://Stackoverflow.com/questions/74665232", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9189492/" ]
74,665,237
<p>One of my event’s variables isn’t getting defined.</p> <p>The <code>title</code> variable isn’t getting defined so I think I made a mistake.</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-js lang-js prettyprin...
[ { "answer_id": 74665279, "author": "haggbart", "author_id": 15949328, "author_profile": "https://Stackoverflow.com/users/15949328", "pm_score": 1, "selected": false, "text": "addToCartClicked storeitem.getElementsByClassName('product-name')[0].innerHTML shopItem storeitem shopItem button...
2022/12/03
[ "https://Stackoverflow.com/questions/74665237", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20642557/" ]
74,665,243
<p>I am pretty new to Python and couldn't understand the origin of this problem.</p> <p>I'm trying to implement an interface, I have downloaded the <code>zope.interface</code> package, and imported it in my file like this</p> <pre><code>import zope.interface </code></pre> <p>Now when I write</p> <pre><code>class MyInt...
[ { "answer_id": 74665279, "author": "haggbart", "author_id": 15949328, "author_profile": "https://Stackoverflow.com/users/15949328", "pm_score": 1, "selected": false, "text": "addToCartClicked storeitem.getElementsByClassName('product-name')[0].innerHTML shopItem storeitem shopItem button...
2022/12/03
[ "https://Stackoverflow.com/questions/74665243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20673138/" ]
74,665,251
<p>I have a <a href="https://rigcount.bakerhughes.com/static-files/127758f8-64a3-4c59-a0d1-3011dc4a0000" rel="nofollow noreferrer">Spreadsheet of Time series Data</a></p> <p>It has separate tables for each year with a single row gap in between. I want to have the Year from table header as part of the date column. So th...
[ { "answer_id": 74666198, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": 1, "selected": false, "text": "pandas import pandas as pd\n\ndf = pd.read_excel(\"Worldwide Rig Count Nov 2022.xlsx\",\n sheet_n...
2022/12/03
[ "https://Stackoverflow.com/questions/74665251", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4399016/" ]
74,665,281
<p>I have created a program that creates an object called &quot;Point&quot; in the class &quot;Point&quot;. Now I wonder how to find the distance between two points created in the Main method. The instructions from my teacher are :</p> <blockquote> <p>Add a new method to the Point class named &quot;distance&quot;.</p> ...
[ { "answer_id": 74665348, "author": "Charles Han", "author_id": 11514907, "author_profile": "https://Stackoverflow.com/users/11514907", "pm_score": 3, "selected": true, "text": "Point distance public double distance (Point other)\n{\n var otherX = other.getXCoordinate();\n var otherY = ...
2022/12/03
[ "https://Stackoverflow.com/questions/74665281", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20178516/" ]
74,665,337
<p>I have data on this form in a data.table DT:</p> <pre><code>DT = data.table( year=c('1981', '1981', '1981', '2005', '2005', '2005'), value=c(2, 8, 16, 3, 9, 27), order =c(1,2,3,1,2,3)) </code></pre> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: left;">year</th> ...
[ { "answer_id": 74665667, "author": "jay.sf", "author_id": 6574038, "author_profile": "https://Stackoverflow.com/users/6574038", "pm_score": 2, "selected": false, "text": "dcast DT[, lapply(seq_along(value), \\(v) {l <- length(value); `length<-`(value[v:l], l)}), by=year]\n# year V1 V2...
2022/12/03
[ "https://Stackoverflow.com/questions/74665337", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9730443/" ]
74,665,341
<p>I want to use BINARY UUIDs as my primary key in my tables, but using my own custom functions that generates optimised UUIDs loosely based on this article: <a href="https://mariadb.com/kb/en/guiduuid-performance/" rel="nofollow noreferrer">https://mariadb.com/kb/en/guiduuid-performance/</a></p> <p>The table structure...
[ { "answer_id": 74665667, "author": "jay.sf", "author_id": 6574038, "author_profile": "https://Stackoverflow.com/users/6574038", "pm_score": 2, "selected": false, "text": "dcast DT[, lapply(seq_along(value), \\(v) {l <- length(value); `length<-`(value[v:l], l)}), by=year]\n# year V1 V2...
2022/12/03
[ "https://Stackoverflow.com/questions/74665341", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15433936/" ]
74,665,344
<p>I have a requirement to create a network receiver thread by storing the thread join handle inside a network receiver struct. But I'm getting errors <code>error[E0506]: cannot assign to self.join_handle because it is borrowed</code> and <code>error[E0521]: borrowed data escapes outside of associated function</code>, ...
[ { "answer_id": 74665451, "author": "Juicyrook", "author_id": 20250235, "author_profile": "https://Stackoverflow.com/users/20250235", "pm_score": -1, "selected": false, "text": "use std::thread;\nuse std::sync::atomic::{AtomicBool, Ordering};\n\npub struct NetworkReceiver {\n terminate...
2022/12/03
[ "https://Stackoverflow.com/questions/74665344", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3938402/" ]
74,665,350
<p>We need to find the sum of the following number to a given range n which describes is n=5 then the last term will be 55555.</p>
[ { "answer_id": 74665424, "author": "bn_ln", "author_id": 10535824, "author_profile": "https://Stackoverflow.com/users/10535824", "pm_score": 2, "selected": true, "text": "mul def find_sum(digit, max_repeats):\n return sum(int(str(digit)*(i+1)) for i in range(max_repeats))\n\nprint(fin...
2022/12/03
[ "https://Stackoverflow.com/questions/74665350", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20622172/" ]
74,665,377
<p>I have the following structure User is a parent to Assignee and Submitter. A Submitter has a one to many relationship with Request. A Request is Many to Many relationship with Assignee.</p> <p>I have the following 2 queries that I'd like to combine into one table:</p> <pre><code>Select r.request_number, u.first_na...
[ { "answer_id": 74665424, "author": "bn_ln", "author_id": 10535824, "author_profile": "https://Stackoverflow.com/users/10535824", "pm_score": 2, "selected": true, "text": "mul def find_sum(digit, max_repeats):\n return sum(int(str(digit)*(i+1)) for i in range(max_repeats))\n\nprint(fin...
2022/12/03
[ "https://Stackoverflow.com/questions/74665377", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4079729/" ]
74,665,384
<p>Below is my code from leetcode. I think that I have write proper logic code but it not work only for edge case - &quot;race a car&quot;. It returns true for that but it should be false. why it is? Link of question - <a href="https://leetcode.com/problems/valid-palindrome" rel="nofollow noreferrer">https://leetcode.c...
[ { "answer_id": 74665424, "author": "bn_ln", "author_id": 10535824, "author_profile": "https://Stackoverflow.com/users/10535824", "pm_score": 2, "selected": true, "text": "mul def find_sum(digit, max_repeats):\n return sum(int(str(digit)*(i+1)) for i in range(max_repeats))\n\nprint(fin...
2022/12/03
[ "https://Stackoverflow.com/questions/74665384", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19148152/" ]
74,665,422
<p>Hello I'm a total beginner to Unity and just installed. Every time I try to create new 3D project, Error window pop up &quot;Failed to resolve project template: [com.unity.template.3d] is not a valid project template.&quot; any suggestions on what to do? Unity 3.3.0</p> <p>I tried googling the answer but it seems th...
[ { "answer_id": 74665424, "author": "bn_ln", "author_id": 10535824, "author_profile": "https://Stackoverflow.com/users/10535824", "pm_score": 2, "selected": true, "text": "mul def find_sum(digit, max_repeats):\n return sum(int(str(digit)*(i+1)) for i in range(max_repeats))\n\nprint(fin...
2022/12/03
[ "https://Stackoverflow.com/questions/74665422", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20673299/" ]
74,665,430
<p>I have a program which checks whether a given number from 0 to 9999 is a prime number or not (It was provided as a sample solution):</p> <pre><code>public class Primzahl { public static void main(String[] args) { for (int i = 0; i &lt; 10000; i++) { System.out.println(i + &quot; &quot; + is...
[ { "answer_id": 74665475, "author": "Andrew B", "author_id": 7325087, "author_profile": "https://Stackoverflow.com/users/7325087", "pm_score": 2, "selected": true, "text": "i < (zahl / 2 + 1)\n if (zahl % i == 0) {\n return false;\n }\n zahl % i == 0" }, { "answer_id": 7466...
2022/12/03
[ "https://Stackoverflow.com/questions/74665430", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9240628/" ]
74,665,441
<p>I have</p> <pre><code>x= ['AA', 'BB', 'CC'] </code></pre> <p>and I want to lower case only <code>'BB'</code>.</p>
[ { "answer_id": 74665475, "author": "Andrew B", "author_id": 7325087, "author_profile": "https://Stackoverflow.com/users/7325087", "pm_score": 2, "selected": true, "text": "i < (zahl / 2 + 1)\n if (zahl % i == 0) {\n return false;\n }\n zahl % i == 0" }, { "answer_id": 7466...
2022/12/03
[ "https://Stackoverflow.com/questions/74665441", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20673289/" ]
74,665,453
<p>I'm creating a Twitter/Reddit style website. I've been wondering what is the best way to securely send the in-depth details of comment data via a reply button press, grabbing it in JS and sending it back to my database</p> <p>If there are 100 comments with 100 reply buttons, can I store the comment ID in the value f...
[ { "answer_id": 74665475, "author": "Andrew B", "author_id": 7325087, "author_profile": "https://Stackoverflow.com/users/7325087", "pm_score": 2, "selected": true, "text": "i < (zahl / 2 + 1)\n if (zahl % i == 0) {\n return false;\n }\n zahl % i == 0" }, { "answer_id": 7466...
2022/12/03
[ "https://Stackoverflow.com/questions/74665453", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17370936/" ]
74,665,469
<p>I have this code and when I run it I get this: <code>[I@2c7b84de</code>.</p> <p>Can someone explain to me why I get that?</p> <pre><code>public class EJer22 { public static void main(String[] args){ int[] numeros = { 50, 21, 6, 97, 18 }; System.out.println(numeros); } public static int[]...
[ { "answer_id": 74665475, "author": "Andrew B", "author_id": 7325087, "author_profile": "https://Stackoverflow.com/users/7325087", "pm_score": 2, "selected": true, "text": "i < (zahl / 2 + 1)\n if (zahl % i == 0) {\n return false;\n }\n zahl % i == 0" }, { "answer_id": 7466...
2022/12/03
[ "https://Stackoverflow.com/questions/74665469", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20673338/" ]
74,665,502
<p>So, I am following the <a href="https://www.mongodb.com/languages/mern-stack-tutorial" rel="nofollow noreferrer">MERN stack tutorial</a> from the MongoDB official website.</p> <p>In the create.js file we create the <code>Create</code> component. Follows the code sample:</p> <pre><code>import React, { useState } from...
[ { "answer_id": 74665475, "author": "Andrew B", "author_id": 7325087, "author_profile": "https://Stackoverflow.com/users/7325087", "pm_score": 2, "selected": true, "text": "i < (zahl / 2 + 1)\n if (zahl % i == 0) {\n return false;\n }\n zahl % i == 0" }, { "answer_id": 7466...
2022/12/03
[ "https://Stackoverflow.com/questions/74665502", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17095078/" ]
74,665,525
<p>I am making a web application with NextJs. In the page I need to fetch an api to get data and display it. But it compiles I have got an error.</p> <p>The error is : <code>Error: Your `getStaticProps` function did not return an object. Did you forget to add a `return`?</code></p> <p>And there is my function :</p> <pr...
[ { "answer_id": 74665475, "author": "Andrew B", "author_id": 7325087, "author_profile": "https://Stackoverflow.com/users/7325087", "pm_score": 2, "selected": true, "text": "i < (zahl / 2 + 1)\n if (zahl % i == 0) {\n return false;\n }\n zahl % i == 0" }, { "answer_id": 7466...
2022/12/03
[ "https://Stackoverflow.com/questions/74665525", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17906472/" ]
74,665,531
<p>I have plupload and I have microphone, I want to add and send audio I have recorded from plupload to server. How can I do it with close to zero needless actions ? I tried to use addFile, but it do not work</p> <pre><code>var uploader = new plupload.Uploader({ runtimes : 'html5,flash,silverlight,html4', brow...
[ { "answer_id": 74665475, "author": "Andrew B", "author_id": 7325087, "author_profile": "https://Stackoverflow.com/users/7325087", "pm_score": 2, "selected": true, "text": "i < (zahl / 2 + 1)\n if (zahl % i == 0) {\n return false;\n }\n zahl % i == 0" }, { "answer_id": 7466...
2022/12/03
[ "https://Stackoverflow.com/questions/74665531", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20447769/" ]
74,665,577
<p>Im learning Python here so please spare me for silly questions. I Encounter an issue with adding attribute to a class instance</p> <p>I have a dictionary of people with name,age and strength, i.e</p> <pre><code>{ &quot;Mary&quot;: {&quot;age&quot;:25, &quot;strength&quot;: 80}, &quot;John&quot;: {&quot;age&quot;: 40...
[ { "answer_id": 74665475, "author": "Andrew B", "author_id": 7325087, "author_profile": "https://Stackoverflow.com/users/7325087", "pm_score": 2, "selected": true, "text": "i < (zahl / 2 + 1)\n if (zahl % i == 0) {\n return false;\n }\n zahl % i == 0" }, { "answer_id": 7466...
2022/12/03
[ "https://Stackoverflow.com/questions/74665577", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14759425/" ]
74,665,592
<p>I accidentally deleted a piece of code on <code>Visual Studio Code</code>. I haven't closed visual studio yet.</p> <p><code>CTRL + Z</code> doesn't work. <code>Edit + Undo</code> doesn't work either. The variables are still stored. It was accidental. I just happen to close a jupyter notebook box</p> <p>Any idea how ...
[ { "answer_id": 74665679, "author": "bravopapa", "author_id": 20176161, "author_profile": "https://Stackoverflow.com/users/20176161", "pm_score": 1, "selected": false, "text": "CTRL +Z .ipynb" }, { "answer_id": 74665770, "author": "Warkaz", "author_id": 10985412, "auth...
2022/12/03
[ "https://Stackoverflow.com/questions/74665592", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20176161/" ]
74,665,618
<p>If you have a constructor which calls this() when is super() called? In the first constructor called? Or in the last constructor without the keyword this()?</p> <p>Main calls: new B()</p> <pre><code>public class A { public A(){ System.out.print(&quot;A &quot;); } } public class B extends A { public B...
[ { "answer_id": 74666240, "author": "Mario Mateaș", "author_id": 14808001, "author_profile": "https://Stackoverflow.com/users/14808001", "pm_score": 0, "selected": false, "text": "new B() public B() this() super() System.out.print(\"B0); super() this(1) int this() super() super() super() ...
2022/12/03
[ "https://Stackoverflow.com/questions/74665618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13519512/" ]
74,665,643
<p>I've tried to write a program which converts decimal to binary and vice versa but when I try 23, it flags line 17 (answer2 -= x) as a type error.</p> <pre><code> import math x = 4096 y = &quot;&quot; z = 10 q = 1 final_answer = 0 answer1 = str(input(&quot;Do you want to convert decimal i...
[ { "answer_id": 74665694, "author": "Lexpj", "author_id": 10229386, "author_profile": "https://Stackoverflow.com/users/10229386", "pm_score": 1, "selected": false, "text": "answer2 = float(answer2)\n" }, { "answer_id": 74665916, "author": "chivalrous-nerd", "author_id": 73...
2022/12/03
[ "https://Stackoverflow.com/questions/74665643", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20340948/" ]
74,665,675
<p>I am trying to determine the majority in a list of lists for a project I am working on. My problem is that the code will run in an environment that not allow me to use packages. Can someone refer me to an algorithm that does what I am asking or let me know about a way to do it with pre built functions in python that...
[ { "answer_id": 74665694, "author": "Lexpj", "author_id": 10229386, "author_profile": "https://Stackoverflow.com/users/10229386", "pm_score": 1, "selected": false, "text": "answer2 = float(answer2)\n" }, { "answer_id": 74665916, "author": "chivalrous-nerd", "author_id": 73...
2022/12/03
[ "https://Stackoverflow.com/questions/74665675", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19916855/" ]
74,665,703
<p>if i have a value like this :</p> <blockquote> <p>C:100% B:90% A:80%</p> </blockquote> <p>i want to add comma after every % so the output is like this :</p> <blockquote> <p>C:100%,B:90%,A:80%</p> </blockquote> <p>i've tried somthing like :</p> <pre><code>data['Final'] = data['Final'].str.replace(r'(%)\n\b', r'\1,', ...
[ { "answer_id": 74665800, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": 0, "selected": false, "text": "df['final']= df['final'].str.replace(r'%\\s*\\b', r'%,', regex=True)\n print(df)\n\n final\n0 C:100...
2022/12/03
[ "https://Stackoverflow.com/questions/74665703", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20671365/" ]
74,665,717
<p>Here is my sample data</p> <pre><code>const data = [{&quot;amount&quot;: &quot;600,000&quot;, &quot;cover&quot;: null, &quot;id&quot;: &quot;1&quot;, &quot;img&quot;: &quot;636e56de36301.1.png&quot;, &quot;make&quot;: &quot;bmw&quot;, &quot;model&quot;: &quot;bmw&quot;, &quot;name&quot;: &quot;APA&quot;, &quot;polic...
[ { "answer_id": 74665784, "author": "Asraf", "author_id": 20361860, "author_profile": "https://Stackoverflow.com/users/20361860", "pm_score": 2, "selected": true, "text": "reduce() reduce() reduce item if(id.includes(item.id)) return item prev .reduce() const data = [{\"amount\": \"600,00...
2022/12/03
[ "https://Stackoverflow.com/questions/74665717", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11114439/" ]
74,665,726
<p>Let's say I have a list with a bunch of numbers in it, I'm looking to make a function that will list and return the numbers that are being repeated in <strong>most</strong> of them.</p> <p>Example code:</p> <pre><code>—ListOfNumbers = [1234, 9912349, 578] -print(GetPatern(ListOfNumbers)) 1234 </code></pre>
[ { "answer_id": 74665942, "author": "chivalrous-nerd", "author_id": 7347835, "author_profile": "https://Stackoverflow.com/users/7347835", "pm_score": 1, "selected": false, "text": "def get_pattern(numbers):\n # First, we will create a dictionary where the keys are the numbers in our list...
2022/12/03
[ "https://Stackoverflow.com/questions/74665726", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19519009/" ]
74,665,763
<p>I am making a simple web-shop application prototype and need to pass shopping cart items (which are stored in localStorage) to our SQLServer. The localStorage is as follows</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="sn...
[ { "answer_id": 74670846, "author": "Avrohom Yisroel", "author_id": 706346, "author_profile": "https://Stackoverflow.com/users/706346", "pm_score": 0, "selected": false, "text": "@Globals.String = localStorage.getItem('productsInCart')\n String Globals jim function addOwl(){\n ...
2022/12/03
[ "https://Stackoverflow.com/questions/74665763", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14944885/" ]
74,665,768
<p>NullReferenceException: Object reference not set to an instance of an object</p> <p>StarterAssets.ThirdPersonController.Move () (at Assets/Scripts/ThirdPersonController.cs:258)</p> <p>StarterAssets.ThirdPersonController.Update () (at Assets/Scripts/ThirdPersonController.cs:161)</p> <p>from 155 to 161 line:</p> <pre>...
[ { "answer_id": 74670846, "author": "Avrohom Yisroel", "author_id": 706346, "author_profile": "https://Stackoverflow.com/users/706346", "pm_score": 0, "selected": false, "text": "@Globals.String = localStorage.getItem('productsInCart')\n String Globals jim function addOwl(){\n ...
2022/12/03
[ "https://Stackoverflow.com/questions/74665768", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19358776/" ]
74,665,774
<p>I'm learning purpose of JWT tokens in ASP.NET Core, but I don't understand one thing. Why does every blog calling JWT authentication? If we pass a token to an authenticated (logged-in) user. I mean why JWT is not authorization but authentication? Can't understand which point I'm skipping in this topic.</p> <p><a hre...
[ { "answer_id": 74670846, "author": "Avrohom Yisroel", "author_id": 706346, "author_profile": "https://Stackoverflow.com/users/706346", "pm_score": 0, "selected": false, "text": "@Globals.String = localStorage.getItem('productsInCart')\n String Globals jim function addOwl(){\n ...
2022/12/03
[ "https://Stackoverflow.com/questions/74665774", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13249741/" ]
74,665,777
<p>I have this drawer I learned to make on youtube</p> <p><a href="https://www.youtube.com/watch?v=JLICaBEiJS0&amp;list=PLQkwcJG4YTCSpJ2NLhDTHhi6XBNfk9WiC&amp;index=31" rel="nofollow noreferrer">https://www.youtube.com/watch?v=JLICaBEiJS0&amp;list=PLQkwcJG4YTCSpJ2NLhDTHhi6XBNfk9WiC&amp;index=31</a> Philipp Lackner</p> ...
[ { "answer_id": 74670846, "author": "Avrohom Yisroel", "author_id": 706346, "author_profile": "https://Stackoverflow.com/users/706346", "pm_score": 0, "selected": false, "text": "@Globals.String = localStorage.getItem('productsInCart')\n String Globals jim function addOwl(){\n ...
2022/12/03
[ "https://Stackoverflow.com/questions/74665777", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13104490/" ]
74,665,788
<p>I have list of numbers as str</p> <pre class="lang-py prettyprint-override"><code>li = ['1', '4', '8.6'] </code></pre> <p>if I use <code>int</code> to convert the result is <code>[1, 4, 8]</code>. If I use <code>float</code> to convert the result is <code>[1.0, 4.0, 8.6]</code></p> <p>I want to convert them to <code...
[ { "answer_id": 74665819, "author": "Lexpj", "author_id": 10229386, "author_profile": "https://Stackoverflow.com/users/10229386", "pm_score": 2, "selected": false, "text": "isdigit() True li = ['1', '4', '8.6']\nlst = [int(x) if x.isdigit() else float(x) for x in li]\nprint(lst)\n types =...
2022/12/03
[ "https://Stackoverflow.com/questions/74665788", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20673588/" ]
74,665,796
<p>i want apply lambda to do multiplication which is condition type data float value like this</p> <p>0.412</p> <p>0.0036</p> <p>0.0467</p> <p>0.000678</p> <p>0.00000342</p> <p>expected output</p> <p>0.41</p> <p>0.36</p> <p>0.47</p> <p>0.68</p> <p>0.34</p>
[ { "answer_id": 74665972, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": 1, "selected": false, "text": "replace astype round df[\"col\"] = df[\"col\"].replace(\"\\.0*\", \".\", regex=True).astype(float).round(2)\n print...
2022/12/03
[ "https://Stackoverflow.com/questions/74665796", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8321274/" ]
74,665,845
<p>When I saw the term &quot;Concurrent render&quot; or &quot;Concurrent features&quot; in React 18, it confused me. Because I know the browser handle tasks on a single main thread. How react render concurrently on a single thread ?</p> <p>Does react use event loop and task queue internally ?</p>
[ { "answer_id": 74665972, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": 1, "selected": false, "text": "replace astype round df[\"col\"] = df[\"col\"].replace(\"\\.0*\", \".\", regex=True).astype(float).round(2)\n print...
2022/12/03
[ "https://Stackoverflow.com/questions/74665845", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15387782/" ]
74,665,887
<p>I am receiving various errors like this after I do</p> <blockquote> <p>ionic build --prod --release</p> </blockquote> <pre><code>src/app/pages/top-media/top-media.page.ts:18:16 18 templateUrl: './top-media.page.html', ~~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the template of component TopMediaPage....
[ { "answer_id": 74665972, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": 1, "selected": false, "text": "replace astype round df[\"col\"] = df[\"col\"].replace(\"\\.0*\", \".\", regex=True).astype(float).round(2)\n print...
2022/12/03
[ "https://Stackoverflow.com/questions/74665887", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20378337/" ]
74,665,888
<p>I have a table named &quot;table1&quot; and I'm splitting it based on a criterion, and then joining the split parts one by one in for loop. The following is a representation of what I am trying to do.</p> <p><a href="https://i.stack.imgur.com/UwqXX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U...
[ { "answer_id": 74665972, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": 1, "selected": false, "text": "replace astype round df[\"col\"] = df[\"col\"].replace(\"\\.0*\", \".\", regex=True).astype(float).round(2)\n print...
2022/12/03
[ "https://Stackoverflow.com/questions/74665888", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9178472/" ]
74,665,906
<p>I have created a <code>clamp</code> function to bound value in a given range. <em>(Almost every one of you know what a clamp function does)</em></p> <p>So this the function I created (using <code>TS</code>)</p> <pre class="lang-js prettyprint-override"><code>function clamp(value: number, min: number, max: number) { ...
[ { "answer_id": 74666023, "author": "pizzamanyes", "author_id": 20670513, "author_profile": "https://Stackoverflow.com/users/20670513", "pm_score": 0, "selected": false, "text": "function clamp(value: number, min: number, max: number) {\n // Use the '+' operator to convert all of the par...
2022/12/03
[ "https://Stackoverflow.com/questions/74665906", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15748278/" ]
74,665,909
<ul> <li>Joining 2 tables (orders, addresses)</li> <li>Orders contains columns delivery_address_id (contains NULL values) and invoice_address_id (does NOT contain NULL values)</li> <li>Addresses contains id column (does NOT contain NULL values)</li> </ul> <p>Primarily, the LEFT JOIN must be performed on orders.delivery...
[ { "answer_id": 74665979, "author": "forpas", "author_id": 10498828, "author_profile": "https://Stackoverflow.com/users/10498828", "pm_score": 2, "selected": false, "text": "OR ON SELECT ....\nFROM Orders o LEFT JOIN Addresses a\nON a.id = o.delivery_address_id \nOR (o.delivery_address_id...
2022/12/03
[ "https://Stackoverflow.com/questions/74665909", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14830125/" ]
74,665,921
<p>On input consider db-dump(from dbeaver), having this format:</p> <pre><code>{ &quot;select&quot;: [ {&lt;row1&gt;}, {&lt;row2&gt;} ], &quot;select&quot;: {} } </code></pre> <p>say that I'm debugging bigger script, and just want to see first few rows, from first statement. How to do that effectively in...
[ { "answer_id": 74665979, "author": "forpas", "author_id": 10498828, "author_profile": "https://Stackoverflow.com/users/10498828", "pm_score": 2, "selected": false, "text": "OR ON SELECT ....\nFROM Orders o LEFT JOIN Addresses a\nON a.id = o.delivery_address_id \nOR (o.delivery_address_id...
2022/12/03
[ "https://Stackoverflow.com/questions/74665921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1534084/" ]
74,665,959
<p>So i am going to have 4 questions and each question is worth 25 points and full point is 100. I am not sure how to count the answer base on my code and form score code. Thank you for helping me out. (I put 1 question to make the code shorter but in my VS there are 4 questions)</p> <pre><code>using System; using Syst...
[ { "answer_id": 74665991, "author": "ˈvɔlə", "author_id": 1865613, "author_profile": "https://Stackoverflow.com/users/1865613", "pm_score": 1, "selected": false, "text": "+= totalScore = totalScore + 25 class Program\n{\n static void Main(string[] args)\n {\n int totalScore =...
2022/12/03
[ "https://Stackoverflow.com/questions/74665959", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20598174/" ]
74,666,005
<p>I need to figure out what beers from table 'Beer' were not ordered by top 3 buyers from table 'Buyers'. Beer.BeerId is foreign key in Buyers.BeerId. Other important columns in 'Buyers' are: BuyId, PubId, StoreId and Quantity</p> <p>dbo.Beer</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th...
[ { "answer_id": 74665991, "author": "ˈvɔlə", "author_id": 1865613, "author_profile": "https://Stackoverflow.com/users/1865613", "pm_score": 1, "selected": false, "text": "+= totalScore = totalScore + 25 class Program\n{\n static void Main(string[] args)\n {\n int totalScore =...
2022/12/03
[ "https://Stackoverflow.com/questions/74666005", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20649041/" ]
74,666,017
<p>Let's say I have a dictionary called my_dic:</p> <pre><code>my_dict = {'a': {'spam': {'foo': None, 'bar': None, 'baz': None},'eggs': None}, 'b': {'ham': None}} </code></pre> <p>Then if I input <code>spam</code>, it should return <code>a</code>, and if I input <code>bar</code> it should return <code>spam</code>. If I...
[ { "answer_id": 74666140, "author": "chivalrous-nerd", "author_id": 7347835, "author_profile": "https://Stackoverflow.com/users/7347835", "pm_score": -1, "selected": false, "text": ".get() my_dict = {'a': {'spam': {'foo': None, 'bar': None, 'baz': None},'eggs'}, 'b': {'ham'}}\n\n# Check i...
2022/12/03
[ "https://Stackoverflow.com/questions/74666017", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18421761/" ]
74,666,064
<p>hi I have multiple items with different categories. I want to display all item with its Category name as a title at header. My code displaying each item but category Title repeats with each item. I want Category title only one time at the top and then its items list. MY Code is this</p> <pre class="lang-js prettypri...
[ { "answer_id": 74666140, "author": "chivalrous-nerd", "author_id": 7347835, "author_profile": "https://Stackoverflow.com/users/7347835", "pm_score": -1, "selected": false, "text": ".get() my_dict = {'a': {'spam': {'foo': None, 'bar': None, 'baz': None},'eggs'}, 'b': {'ham'}}\n\n# Check i...
2022/12/03
[ "https://Stackoverflow.com/questions/74666064", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11185806/" ]
74,666,114
<p>Each time I start the program, the message &quot;This message 2&quot; is displayed in a random order relative to other messages.</p> <pre><code>#include &lt;stdio.h&gt; int main() { fprintf(stdout,&quot;This is message 1\n&quot;); fprintf(stderr,&quot;This is message 2\n&quot;); fprintf(stdout,&quot;Thi...
[ { "answer_id": 74666429, "author": "Eric Postpischil", "author_id": 298225, "author_profile": "https://Stackoverflow.com/users/298225", "pm_score": 2, "selected": false, "text": "\"This is message 2\\n\" fflush(stdout) setvbuf(stdout, 0, _IOLBF, 0); // Must be before stdout is used.\n se...
2022/12/03
[ "https://Stackoverflow.com/questions/74666114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20673562/" ]
74,666,126
<p>I am trying to dockerize a PHP laravel app. I am using a PHP and a composer image to achieve this. However, when I run <em>composer install</em>, I get all my packages installed but then run into this error:</p> <p><code>/app/vendor does not exist and could not be created.</code></p> <p>I want composer to create the...
[ { "answer_id": 74666430, "author": "J0ker98", "author_id": 3218962, "author_profile": "https://Stackoverflow.com/users/3218962", "pm_score": 2, "selected": false, "text": "# Create the vendor directory\nRUN mkdir -p /app/vendor\n\n# Give the john user permission to write to the vendor di...
2022/12/03
[ "https://Stackoverflow.com/questions/74666126", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5637429/" ]
74,666,142
<p>I need to manipulate drawing of a SVG, so I have attribute &quot;d&quot; values like this:</p> <p><code>d = &quot;M561.5402,268.917 C635.622,268.917 304.476,565.985 379.298,565.985&quot;</code></p> <p>What I want is to &quot;purify&quot; all the values (to strip the chars from them), to calculate them (for the sake ...
[ { "answer_id": 74666182, "author": "Andrew Parks", "author_id": 5898421, "author_profile": "https://Stackoverflow.com/users/5898421", "pm_score": 3, "selected": true, "text": "const s = 'M561.5402,268.917 C635.622,268.917 304.476,565.985 379.298,565.985'\n\nconsole.log(s.replaceAll(/[\\d...
2022/12/03
[ "https://Stackoverflow.com/questions/74666142", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1738094/" ]
74,666,151
<p>Main list:</p> <pre><code>data = [ [&quot;629-2, text1, 12&quot;], [&quot;629-2, text2, 12&quot;], [&quot;407-3, text9, 6&quot;], [&quot;407-3, text4, 6&quot;], [&quot;000-5, text7, 0&quot;], [&quot;000-5, text6, 0&quot;], ] </code></pre> <p>I want to get a list comprised of unique lists like so:</p> <pre><code>data...
[ { "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/74666151", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11468748/" ]