qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,421,905
<p>I am trying to create Post API, which has following Model as request</p> <pre><code>public partial class Employee { public Employee() { EmployeeDetails = new HashSet&lt;EmployeeDetail&gt;(); } public int Id { get; set; } public string? Name { get; set; } ...
[ { "answer_id": 74422177, "author": "Vivasvan Patel", "author_id": 8926214, "author_profile": "https://Stackoverflow.com/users/8926214", "pm_score": 1, "selected": false, "text": "// for each object in the option's api response.\nfor (let i = 0; i < dt.data.length; ++i) {\n\n // extrac...
2022/11/13
[ "https://Stackoverflow.com/questions/74421905", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17992860/" ]
74,421,940
<p>I'm learning <code>css</code> and want to code small calendar. I tried some templates and ended up with this:</p> <p>Somehow I can't <strong>change the width of days block</strong> to correspond with headers width and can only <strong>regulate weeks by percent</strong>. How can it be done properly?</p> <p><div class...
[ { "answer_id": 74422247, "author": "Matias Bertoni", "author_id": 19272564, "author_profile": "https://Stackoverflow.com/users/19272564", "pm_score": 0, "selected": false, "text": "/*add*/\n.wrap {\n width: 320px;\n}\n\n/*changes */\nul {\n list-style-type: none;\n display: grid;\n g...
2022/11/13
[ "https://Stackoverflow.com/questions/74421940", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9137206/" ]
74,421,961
<p>My goal is to minimize the code using the Angular translate pipe. Currently, I have to use 8 curly brackets and write &quot;translate&quot; twice... a better way must exist.</p> <p>My current code looks like:</p> <pre><code>&lt;span *ngIf=&quot;checkoutForm.get('email')?.errors?.['email']&quot;&gt; {{ 'eMail' | ...
[ { "answer_id": 74422153, "author": "Dennis", "author_id": 11646662, "author_profile": "https://Stackoverflow.com/users/11646662", "pm_score": 2, "selected": true, "text": "<span\n *ngIf=\"checkoutForm.get('email')?.errors?.['email']\"> \n {{ 'eMail' | error:'isInvalid' }}\n</span>\...
2022/11/13
[ "https://Stackoverflow.com/questions/74421961", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15791792/" ]
74,422,009
<p>How can I write a function that takes a two-dimensional sequence as an argument and returns which team earned the most wins? when multiple teams earn the same amount of wins, it should return the first team's serial number.</p> <p>It should return something like this:</p> <pre><code>who_won([['W', 'W', 'W'], ['L', '...
[ { "answer_id": 74422153, "author": "Dennis", "author_id": 11646662, "author_profile": "https://Stackoverflow.com/users/11646662", "pm_score": 2, "selected": true, "text": "<span\n *ngIf=\"checkoutForm.get('email')?.errors?.['email']\"> \n {{ 'eMail' | error:'isInvalid' }}\n</span>\...
2022/11/13
[ "https://Stackoverflow.com/questions/74422009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20425228/" ]
74,422,028
<p>I'm using Cypress for my tests:</p> <p><a href="https://i.stack.imgur.com/zUL4B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zUL4B.png" alt="enter image description here" /></a></p> <p>This is my display. On this display I have 3 classes which have the same name. And in this class all the ben l...
[ { "answer_id": 74423852, "author": "PeaceAndQuiet", "author_id": 9947826, "author_profile": "https://Stackoverflow.com/users/9947826", "pm_score": 0, "selected": false, "text": "cy.contains() <div> <p> Menu Test Menu Test cy.contains('p', 'Menu Test').parent('div').find('button').click()...
2022/11/13
[ "https://Stackoverflow.com/questions/74422028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13934941/" ]
74,422,052
<p>Here I have attached an API response parsing model. Which I need do more refactoring by dividing the category , country and apikey. I have created a variable as apikey and assigned near to the apikey string. but the error shown as:</p> <p><em><strong>code</strong></em></p> <pre><code>class ApiServiceBusiness { fi...
[ { "answer_id": 74423852, "author": "PeaceAndQuiet", "author_id": 9947826, "author_profile": "https://Stackoverflow.com/users/9947826", "pm_score": 0, "selected": false, "text": "cy.contains() <div> <p> Menu Test Menu Test cy.contains('p', 'Menu Test').parent('div').find('button').click()...
2022/11/13
[ "https://Stackoverflow.com/questions/74422052", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14402934/" ]
74,422,065
<p>None of the following filters worked when I tried to update a document, in JS/Node.js filtered by &quot;_id&quot;, where the value is the generic ObjectId (<code>ObjectId('6365050650c6be6d5d090135')</code>) :</p> <pre><code>{_id : ObjectId(123....7890)} {_id : ObjectId('123....7890')} {_id : &quot;ObjectId('123....7...
[ { "answer_id": 74423852, "author": "PeaceAndQuiet", "author_id": 9947826, "author_profile": "https://Stackoverflow.com/users/9947826", "pm_score": 0, "selected": false, "text": "cy.contains() <div> <p> Menu Test Menu Test cy.contains('p', 'Menu Test').parent('div').find('button').click()...
2022/11/13
[ "https://Stackoverflow.com/questions/74422065", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6280857/" ]
74,422,074
<p>My task in VB.NET is as follows: Sum a number until it becomes a whole number and count how many times it was summed</p> <p>Sorry, I know that is not that hard but I am new to coding</p> <p>example: I have this number 4.25</p> <p>sum until he gets a whole number: 4.25 + 4.25 + 4.25 + 4.25 = 17 and count how many tim...
[ { "answer_id": 74422394, "author": "Lajos Arpad", "author_id": 436560, "author_profile": "https://Stackoverflow.com/users/436560", "pm_score": 1, "selected": false, "text": "sum sum Dim cnt As Integer = 1\nWhile sum <> Int(sum)\n cnt = cnt + 1\n sum = sum + original\nEnd While\n" ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20493390/" ]
74,422,079
<p>hello everyone I just want to know here suppose we have three tables student table, course table, and teacher table something like this 'student' table</p> <pre><code>std_id std_name course_id teacher_id 1 Ramesh 1 1 2 Ganesh 1 3 3 Aadesh 3 3 4 ...
[ { "answer_id": 74422394, "author": "Lajos Arpad", "author_id": 436560, "author_profile": "https://Stackoverflow.com/users/436560", "pm_score": 1, "selected": false, "text": "sum sum Dim cnt As Integer = 1\nWhile sum <> Int(sum)\n cnt = cnt + 1\n sum = sum + original\nEnd While\n" ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422079", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20491801/" ]
74,422,080
<p>Tried this but it shows <code>DECADE</code> column and every row is <code>NULL</code>.</p> <pre class="lang-sql prettyprint-override"><code>SELECT ReleaseDate, COUNT (Title), CASE WHEN ReleaseDate BETWEEN 2010 AND 2019 THEN '2010 - 2019' WHEN ReleaseDate BETWEEN 2000 AND 2009 THEN '2000 - 2009' ...
[ { "answer_id": 74422202, "author": "Destroyer", "author_id": 15073036, "author_profile": "https://Stackoverflow.com/users/15073036", "pm_score": -1, "selected": false, "text": "CASE \n WHEN YEAR(ReleaseDate) BETWEEN 2010 AND 2019 THEN '2010 - 2019' \n ...\n ...\nEND\n" }, { ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422080", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18965196/" ]
74,422,087
<p>Let's say we have these 2 functions</p> <pre><code>f1 :: Int -&gt; [Int] -&gt; Int -&gt; [Int] f1 _ [] _ = [] f1 x (h:t) y = (x * h + y):(f1 x t y) f2 :: [Int] -&gt; Int f2 (h:t) = h </code></pre> <p>Why does <code>(f2 . f1 1 [1..10]) 1</code> work, but <code>(f2 . f1 1) [1..10] 1</code> doesn't work?</p>
[ { "answer_id": 74422577, "author": "chepner", "author_id": 1126841, "author_profile": "https://Stackoverflow.com/users/1126841", "pm_score": 4, "selected": true, "text": "f1 Int [Int] -> Int -> [Int] (->) f1 :: Int -> ([Int] -> (Int -> [Int]))\n (->) :k > :k (->)\n(->) :: TYPE q -> TYPE ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422087", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17360903/" ]
74,422,090
<p>I am setting up an Azure pipeline and need to get a specific step to run multiple times based on the defined environments. I also need to replace a placeholder in a file with variable values and I need to have different value for each environment. What is the most straight forward way to achieve that?</p>
[ { "answer_id": 74422577, "author": "chepner", "author_id": 1126841, "author_profile": "https://Stackoverflow.com/users/1126841", "pm_score": 4, "selected": true, "text": "f1 Int [Int] -> Int -> [Int] (->) f1 :: Int -> ([Int] -> (Int -> [Int]))\n (->) :k > :k (->)\n(->) :: TYPE q -> TYPE ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9683478/" ]
74,422,092
<p>If I have</p> <pre><code>map&lt;int, map&lt;int, int&gt;&gt; m; </code></pre> <p>And when I need to insert, I could use</p> <pre><code>m[1] = { {1, 1} }; </code></pre> <p>But now I want to use emplace/insert_or_assign to replace it, I may use</p> <pre><code>m.emplace(1, map&lt;int, int&gt;{ {1, 1} }); </code></pre> ...
[ { "answer_id": 74422743, "author": "azhen7", "author_id": 20341797, "author_profile": "https://Stackoverflow.com/users/20341797", "pm_score": 0, "selected": false, "text": "typedef map<int, int> mp;\n m.emplace(1, mp{ {1, 1} });\n template <typename T>\nusing nest_mp = std::map<int, T>;\...
2022/11/13
[ "https://Stackoverflow.com/questions/74422092", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16748945/" ]
74,422,106
<p>I have an application in which I am getting Shopify orders via Shopify webhooks. Now I have an issue is when I have only one client I mapped Shopify to receive an order via the traditional way with object properties and save it into the database.</p> <p>Now I got two more clients and all clients want to map class fi...
[ { "answer_id": 74422546, "author": "Mohm Zanaty", "author_id": 1609232, "author_profile": "https://Stackoverflow.com/users/1609232", "pm_score": 0, "selected": false, "text": "if (Customer.CustomerGroupId == 1)\n{\n // do mapping like Order.Note = shopify.Note\n}\nelse if (Customer.Custo...
2022/11/13
[ "https://Stackoverflow.com/questions/74422106", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18195314/" ]
74,422,127
<p>What is the best approach to display an array in a the cell of vaadin grid?</p> <p>I model a list of values like this in springboot.</p> <pre><code>private List&lt;String&gt; responsibilities; </code></pre> <p>If responsibilities contains [&quot;Cut grass&quot;, &quot;Wash dishes&quot;, &quot;Clean floor&quot;] I w...
[ { "answer_id": 74425969, "author": "Marcus Hellberg", "author_id": 5705554, "author_profile": "https://Stackoverflow.com/users/5705554", "pm_score": 1, "selected": false, "text": "responsibilityRenderer: GridColumnBodyLitRenderer<Person> = (person) => {\n return html`\n <ul>\n ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422127", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479500/" ]
74,422,135
<p>I don't understand how does my component Word will rerender. I have a redux state keeping my {history: {letters}} state. So the question is: If {<strong>letters</strong>} are passed into useEffect deps array, will my component Word rerender if {<strong>words</strong>} property is changed?</p> <p>`</p> <pre><code>fun...
[ { "answer_id": 74422412, "author": "Sennen Randika", "author_id": 11489268, "author_profile": "https://Stackoverflow.com/users/11489268", "pm_score": 1, "selected": false, "text": "Word letters words useEffect letters letters useMemo useCallback" }, { "answer_id": 74424358, "...
2022/11/13
[ "https://Stackoverflow.com/questions/74422135", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18050815/" ]
74,422,157
<pre><code> @if (items != null) { &lt;select required class=&quot;col-sm-10&quot; bind=&quot;searchByLocation&quot; @onchange=&quot;LocationOnChange&quot;&gt; &lt;option value=&quot;&quot; disabled selected hidden&gt;Search By Location&lt;/option&gt; @foreach (var r in items) { &...
[ { "answer_id": 74422283, "author": "Olivier Jacot-Descombes", "author_id": 880990, "author_profile": "https://Stackoverflow.com/users/880990", "pm_score": 3, "selected": true, "text": "@foreach (var l in items.Select(x => x.location).Distinct())\n{\n <option value=\"@r.location\">@l</...
2022/11/13
[ "https://Stackoverflow.com/questions/74422157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16732381/" ]
74,422,180
<p>I have all the GitHub repositories that I work on in a local folder in my computer in this way:</p> <pre><code>all_repos/ ├── repo_1 ├── repo_2 ├── repo_3 ├── ... ├── repo_n </code></pre> <p>How can I keep them all updated with the version on GitHub automatically?</p>
[ { "answer_id": 74422201, "author": "Caridorc", "author_id": 3105485, "author_profile": "https://Stackoverflow.com/users/3105485", "pm_score": -1, "selected": false, "text": "pull_all.py all_repos/\n├── pull_all.py\n├── repo_1\n├── repo_2\n├── repo_3\n├── ...\n├── repo_n\n pull_all.py imp...
2022/11/13
[ "https://Stackoverflow.com/questions/74422180", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3105485/" ]
74,422,195
<p>I am new to pandas and I need help. I have a set of data as given:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Index</th> <th>sensor</th> <th>timestamp</th> </tr> </thead> <tbody> <tr> <td>0</td> <td>temperature</td> <td>10/09/2019 10:49:00</td> </tr> <tr> <td>1</td> <td>humidity</td...
[ { "answer_id": 74422201, "author": "Caridorc", "author_id": 3105485, "author_profile": "https://Stackoverflow.com/users/3105485", "pm_score": -1, "selected": false, "text": "pull_all.py all_repos/\n├── pull_all.py\n├── repo_1\n├── repo_2\n├── repo_3\n├── ...\n├── repo_n\n pull_all.py imp...
2022/11/13
[ "https://Stackoverflow.com/questions/74422195", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19430917/" ]
74,422,203
<p>I have these 2 unknown equations problem(technically 4, two pairs)</p> <p><a href="https://i.stack.imgur.com/jnqrH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jnqrH.png" alt="first pair of equations" /></a> <a href="https://i.stack.imgur.com/CPCEF.png" rel="nofollow noreferrer"><img src="https...
[ { "answer_id": 74423755, "author": "Reinderien", "author_id": 313768, "author_profile": "https://Stackoverflow.com/users/313768", "pm_score": 2, "selected": true, "text": "slsqp powell import numpy as np\nfrom scipy.optimize import minimize\n\na1, a2, a3, a4 = 0.043, 0.115, 0.242, 0.600\...
2022/11/13
[ "https://Stackoverflow.com/questions/74422203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18449751/" ]
74,422,210
<p>Is it possible to create C preprocessor macro that would allow me to call methods on strings(char[]).</p> <p>e.g.:</p> <pre><code>char myStr[10]; int len = strlen(myStr); </code></pre> <p>Would become:</p> <pre><code>char myStr[10]; int len = myStr.len; </code></pre> <p>or:</p> <pre><code>char myStr[10]; int len = ...
[ { "answer_id": 74428629, "author": "0___________", "author_id": 6110094, "author_profile": "https://Stackoverflow.com/users/6110094", "pm_score": 0, "selected": false, "text": "#define strlen(str) str.len\n\nint foo(char *str)\n{\n size_t x = strlen(str);\n}\n" } ]
2022/11/13
[ "https://Stackoverflow.com/questions/74422210", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5264331/" ]
74,422,217
<p>So I'm having a very confusing issue where I'm attempting to print a string from a vector of arrays of structs to the console. Integers print just fine however strings stored within these structs get set to &quot;&quot;. I have no idea what's going on here but after setting up a test as shown bellow this issue is st...
[ { "answer_id": 74422260, "author": "john", "author_id": 882003, "author_profile": "https://Stackoverflow.com/users/882003", "pm_score": 3, "selected": true, "text": "testStruct testArray[1] = {\n testArray[0] = {\"String works\", 69}\n};\n testStruct testArray[1] = {\n {\"String wo...
2022/11/13
[ "https://Stackoverflow.com/questions/74422217", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20493511/" ]
74,422,233
<p>I have a python dataset that has the following structure:</p> <pre><code>cluster pts lon lat 0 5 45 24 1 6 47 23 2 10 45 20 </code></pre> <p>As you can see, I have a column that refers to a cluster, the number of points within a cluster, the representative latitude ...
[ { "answer_id": 74422260, "author": "john", "author_id": 882003, "author_profile": "https://Stackoverflow.com/users/882003", "pm_score": 3, "selected": true, "text": "testStruct testArray[1] = {\n testArray[0] = {\"String works\", 69}\n};\n testStruct testArray[1] = {\n {\"String wo...
2022/11/13
[ "https://Stackoverflow.com/questions/74422233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20149210/" ]
74,422,238
<p>Difference between rounding using Decimal library and rounding using round() function in Python 3. I don't know whether to use the round() function or use the Decimal library to round numbers</p> <p>Decimal</p> <pre><code>from decimal import* getcontext().prec = 3 print(Decimal(10)/3) 3,33 </code></pre> <p>round()<...
[ { "answer_id": 74422260, "author": "john", "author_id": 882003, "author_profile": "https://Stackoverflow.com/users/882003", "pm_score": 3, "selected": true, "text": "testStruct testArray[1] = {\n testArray[0] = {\"String works\", 69}\n};\n testStruct testArray[1] = {\n {\"String wo...
2022/11/13
[ "https://Stackoverflow.com/questions/74422238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20493520/" ]
74,422,254
<p>I have a list[(position,id)] from the user based on the ids it chooses which I collect in <strong>data</strong></p> <pre><code>data[(position,id)] = [(1,0),(2,0),(7,3),(8,6),(3,11),(3,11),(4,0),(5,1),(5,1),(6,2),(9,5),(10,7),(15,0),(16,10),(11,0),(11,1),(12,15),(13,8),(13,8),(13,9),(14,9)] </code></pre> <p>There are...
[ { "answer_id": 74427007, "author": "Xi Gou", "author_id": 10871150, "author_profile": "https://Stackoverflow.com/users/10871150", "pm_score": -1, "selected": true, "text": "data = [(1,0),(2,0),(7,3),(8,6),(3,11),(3,11),(4,0),(5,1),(5,1),(6,2),(9,5),(10,7),(15,0),(16,10),(11,0),(11,1),(12...
2022/11/13
[ "https://Stackoverflow.com/questions/74422254", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17673025/" ]
74,422,263
<p>I am reading data from multiple tables using JOIN, CONCAT, GROUP_CONCAT, JSON_OBJECT. The data is read into the below mentioned model using gorm.</p> <pre><code>type OrgUserDisPublisherData struct { Disciplines datatypes.JSON `json:&quot;disciplines&quot; example:&quot;[]&quot;` User datatypes.JSON `j...
[ { "answer_id": 74425641, "author": "Deltics", "author_id": 123487, "author_profile": "https://Stackoverflow.com/users/123487", "pm_score": 2, "selected": true, "text": "T Discipline T map[string]any gorm Z T json.Marshaller gorm time.Time gorm" }, { "answer_id": 74429065, "au...
2022/11/13
[ "https://Stackoverflow.com/questions/74422263", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6509305/" ]
74,422,275
<p>In React, I'm unable to use a URL string in my Tailwind background image class:</p> <p>1: Not working, getting error &quot;can't resolve ${link}&quot;</p> <pre><code>const link = &quot;https://cdn.test.net/test.jpg&quot;; &lt;div className={`px-4 py-1 h-[22rem] lg:h-[28vw] bg-cover bg-center bg-[url('${link}')]`}&g...
[ { "answer_id": 74425641, "author": "Deltics", "author_id": 123487, "author_profile": "https://Stackoverflow.com/users/123487", "pm_score": 2, "selected": true, "text": "T Discipline T map[string]any gorm Z T json.Marshaller gorm time.Time gorm" }, { "answer_id": 74429065, "au...
2022/11/13
[ "https://Stackoverflow.com/questions/74422275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20493580/" ]
74,422,286
<p>I need access div in a page.</p> <h2>page.aspx</h2> <pre><code>&lt;asp:Content ID=&quot;Content&quot; ContentPlaceHolderID=&quot;ContentPlaceHolderBody1&quot; runat=&quot;server&quot;&gt; &lt;div class=&quot;table-responsive&quot;&gt; &lt;div class=&quot;card card-authentication1 mx-auto my-5&quot; id=&quot;div_P...
[ { "answer_id": 74425641, "author": "Deltics", "author_id": 123487, "author_profile": "https://Stackoverflow.com/users/123487", "pm_score": 2, "selected": true, "text": "T Discipline T map[string]any gorm Z T json.Marshaller gorm time.Time gorm" }, { "answer_id": 74429065, "au...
2022/11/13
[ "https://Stackoverflow.com/questions/74422286", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20412749/" ]
74,422,305
<p>I am writing a test, using @pytest.mark.parametrize. The test looks like this:</p> <pre><code>@pytest.mark.parametrize( &quot;device_type,first_command,second_command&quot;, [ pytest.param( &lt;device_type&gt;, &lt;first_command&gt;, &lt;second_command&gt;, ...
[ { "answer_id": 74423607, "author": "Ilya", "author_id": 1139541, "author_profile": "https://Stackoverflow.com/users/1139541", "pm_score": 1, "selected": false, "text": "@pytest.mark.parametrize from typing import List\n\nimport pytest\n\n\ndevice_types = ['cpu', 'gpu']\nfirst_commands = ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422305", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4053840/" ]
74,422,325
<p>I have a DF:</p> <pre><code>df = pd.DataFrame({&quot;A&quot;:[0,1,3,5,6], &quot;B&quot;:['B0','B1','B3','B5','B6'], &quot;C&quot;:['C0','C1','C3','C5','C6']}) </code></pre> <p>I’m trying to insert 10 empty rows at the position where the number is missed from the continuous sequence of column A. For the 10 rows, valu...
[ { "answer_id": 74423607, "author": "Ilya", "author_id": 1139541, "author_profile": "https://Stackoverflow.com/users/1139541", "pm_score": 1, "selected": false, "text": "@pytest.mark.parametrize from typing import List\n\nimport pytest\n\n\ndevice_types = ['cpu', 'gpu']\nfirst_commands = ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422325", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18813174/" ]
74,422,326
<p>`</p> <pre><code>const data = [{'name': 'Apip'}, {'name': 'Rohmat'}, {'name': 'ujang'}] data.forEach(function (response) { res.json(response) }) </code></pre> <p>`</p> <p>I did the code above it doesn't work and then it throws an error &quot;Cannot set headers after they are sent to the client&quot;</p>
[ { "answer_id": 74423607, "author": "Ilya", "author_id": 1139541, "author_profile": "https://Stackoverflow.com/users/1139541", "pm_score": 1, "selected": false, "text": "@pytest.mark.parametrize from typing import List\n\nimport pytest\n\n\ndevice_types = ['cpu', 'gpu']\nfirst_commands = ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422326", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20451182/" ]
74,422,347
<p>On specific, given website I want to:</p> <ol> <li>Check if specific service (provided by string) is available</li> <li>If available I want to get its price</li> </ol> <p>Let's assume that pricing is stored in <code>table</code> which name I don't know. <br> I've used <code>beautifulsoup</code> to find this service ...
[ { "answer_id": 74448719, "author": "HedgeHog", "author_id": 14460824, "author_profile": "https://Stackoverflow.com/users/14460824", "pm_score": 0, "selected": false, "text": "for e in soup.select('td:-soup-contains(\"Kompleksowe badanie\")'):\n print(e.text,e.find_next_sibling('td').t...
2022/11/13
[ "https://Stackoverflow.com/questions/74422347", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10234524/" ]
74,422,396
<p>I am trying to create a group that has the right to create databases and roles. And then inherit these privileges with the next role. But the error constantly pops up that I don't have rights</p> <p>Edited: (mistake between 'gg' and 'ggc', but steel doesn't work)</p> <pre><code>create role ggc with createdb createro...
[ { "answer_id": 74448719, "author": "HedgeHog", "author_id": 14460824, "author_profile": "https://Stackoverflow.com/users/14460824", "pm_score": 0, "selected": false, "text": "for e in soup.select('td:-soup-contains(\"Kompleksowe badanie\")'):\n print(e.text,e.find_next_sibling('td').t...
2022/11/13
[ "https://Stackoverflow.com/questions/74422396", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17932782/" ]
74,422,421
<p>Sorry if the title makes no sense.. let me explain</p> <p>Say I have the following 2d array.. the first array representing ice cream and the second representing milkshakes</p> <pre><code>menu = [ ['vanilla', 'chocolate', 'almond'], ['vanilla', 'pineapple', 'strawberry'] ] </code></pre> <p>Now I create a cl...
[ { "answer_id": 74422460, "author": "Mina", "author_id": 11887902, "author_profile": "https://Stackoverflow.com/users/11887902", "pm_score": 0, "selected": false, "text": "milkshakes object menu = [ ['vanilla', 'chocolate', 'almond'],\n [{ flavor: 'vanilla' }, { flavor: 'pineapple...
2022/11/13
[ "https://Stackoverflow.com/questions/74422421", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20398764/" ]
74,422,468
<p>self.room_group_name = &quot;chat_%s&quot; % self.room_name This is the line of code that defines the room group name from the room_name in the official tutorial on the channels website. (<a href="https://channels.readthedocs.io/en/stable/tutorial/part_2.html" rel="nofollow noreferrer">https://channels.readthedocs.i...
[ { "answer_id": 74422527, "author": "Mark", "author_id": 2203038, "author_profile": "https://Stackoverflow.com/users/2203038", "pm_score": 3, "selected": true, "text": "\"chat_%s\" % self.room_name\n %s f\"chat_{self.room_name}\"\n f\"chat_{self.room_name}\" \"chat_{room_name}\".format( r...
2022/11/13
[ "https://Stackoverflow.com/questions/74422468", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13540111/" ]
74,422,502
<p>I've run into a problem trying to start a game with some additional parameters. Normally you enter them in the &quot;target line&quot; on <strong>Windows</strong>, such as:</p> <pre><code>&quot;C:\Path\To\game.exe&quot; --arg --arg2 --arg3 abc --arg4 xyz </code></pre> <p>There are both arguments that are simply the ...
[ { "answer_id": 74481549, "author": "Wahlmat", "author_id": 3412539, "author_profile": "https://Stackoverflow.com/users/3412539", "pm_score": -1, "selected": true, "text": "argslist = [\"--arg1\", \"--arg2\", \"--arg3\"]\nexecuteString = 'subprocess.run([localconfig_data[\"exe\"]'\n\nfor ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422502", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3412539/" ]
74,422,532
<p>I am creating a sports database and am trying to add a trigger to my DDL. The aim of the trigger is to insert values into a table (commitment) whenever another table (player) has a college commitment (col_commit) change from FALSE to TRUE. Whenever this happens I want to insert the player's id and the date of the up...
[ { "answer_id": 74422644, "author": "Zegarek", "author_id": 5298879, "author_profile": "https://Stackoverflow.com/users/5298879", "pm_score": 1, "selected": false, "text": "old.col_commit=TRUE new.col_commit=TRUE and old.col_commit=FALSE CREATE OR REPLACE FUNCTION commitment_log()\nRETURN...
2022/11/13
[ "https://Stackoverflow.com/questions/74422532", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17421506/" ]
74,422,538
<p>I have a SingleChildScrollView inside of a Sized box. I thought this would make my page scrollable but it does not. I get this when I run it <a href="https://i.stack.imgur.com/9sB68.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9sB68.jpg" alt="Overflow" /></a></p> <p>I have the code</p> <pre><co...
[ { "answer_id": 74422574, "author": "Abdalla Tawfik", "author_id": 11601491, "author_profile": "https://Stackoverflow.com/users/11601491", "pm_score": 0, "selected": false, "text": "Expanded(\nchild :SizedBox(\nchild :...\n)\n)\n SizedBox.expand(\n\n)\n var screenWidth = MediaQuery.of(con...
2022/11/13
[ "https://Stackoverflow.com/questions/74422538", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14568913/" ]
74,422,555
<p>I'm trying to create shopping cart page. From controller I'm getting an array of order items. Order item has foreign key &quot;meal_id&quot; - relationship with table meals. I need to access to connected meal object, to display information. How should I do it correctly? I tried to include php key inside blade templa...
[ { "answer_id": 74422574, "author": "Abdalla Tawfik", "author_id": 11601491, "author_profile": "https://Stackoverflow.com/users/11601491", "pm_score": 0, "selected": false, "text": "Expanded(\nchild :SizedBox(\nchild :...\n)\n)\n SizedBox.expand(\n\n)\n var screenWidth = MediaQuery.of(con...
2022/11/13
[ "https://Stackoverflow.com/questions/74422555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15493934/" ]
74,422,597
<p>This is a branch from my main code of a lottery ticket generator. The purpose of these two functions: (1) drawButton(length) to create rectangular buttons. (2) createMenu() to call drawButton(length) and to fill the buttons with labels.</p> <p>My issue is when the main code attempts to return to the main menu, it ru...
[ { "answer_id": 74422574, "author": "Abdalla Tawfik", "author_id": 11601491, "author_profile": "https://Stackoverflow.com/users/11601491", "pm_score": 0, "selected": false, "text": "Expanded(\nchild :SizedBox(\nchild :...\n)\n)\n SizedBox.expand(\n\n)\n var screenWidth = MediaQuery.of(con...
2022/11/13
[ "https://Stackoverflow.com/questions/74422597", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20478942/" ]
74,422,605
<p>New learner here...</p> <p>i just trying to find word in a string. can i search multiple words in one string using .find/.index or any other method?</p> <pre><code>ex = &quot;welcome to my question. you are welcome to be here&quot; print(ex.find(&quot;welcome&quot;)) result = 0 </code></pre> <p>and if i try get the ...
[ { "answer_id": 74422741, "author": "mintyCoder", "author_id": 20493833, "author_profile": "https://Stackoverflow.com/users/20493833", "pm_score": 0, "selected": false, "text": "# very important\nimport re\n\nexample = \"Hello, in this string we will extract 2 numbers, number 1 and \nnumb...
2022/11/13
[ "https://Stackoverflow.com/questions/74422605", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20344875/" ]
74,422,628
<p>I'm trying to create a data frame from other data, my current data includes 20 countries, 10 years from 2020-2030. I wish to now create a new df containing each country and each year separately which would look something like this;</p> <p>desired df:</p> <pre><code>Albania 2021 Albania 2022 ...... continued to 2030,...
[ { "answer_id": 74422709, "author": "AndS.", "author_id": 9778513, "author_profile": "https://Stackoverflow.com/users/9778513", "pm_score": 3, "selected": true, "text": "expand.grid all_df <- expand.grid(future_years = c(2021, 2022, 2023, 2024, 2025, 2025, 2026, 2027, 2028, 2029, 2030),\n...
2022/11/13
[ "https://Stackoverflow.com/questions/74422628", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18338223/" ]
74,422,630
<p>I have a problem converting string to float. For example, I want to get an input like <code>10**2</code> and I want the program to save the result of <code>10**2</code> in the variable.</p> <p>like this :</p> <pre class="lang-py prettyprint-override"><code>Number = float(input(&quot;Enter the number : &quot;)) print...
[ { "answer_id": 74422663, "author": "C-3PO", "author_id": 4667669, "author_profile": "https://Stackoverflow.com/users/4667669", "pm_score": 2, "selected": false, "text": "eval Number = eval(input(\"Enter the number : \"))\nprint(Number * 2)\n 10**2 + 5" }, { "answer_id": 74423068,...
2022/11/13
[ "https://Stackoverflow.com/questions/74422630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19578300/" ]
74,422,635
<p>Like I said in the title, I am having a hard time writing this particular regular expression. Any help would be much appreciated.</p> <p>My best attempt in trying to solve this problem was writing this:</p> <pre><code>^([0-9]*[1-9][0-9]*)*[02468]$ </code></pre> <p>But this regular expression can't recognize a number...
[ { "answer_id": 74422702, "author": "Ted Lyngmo", "author_id": 7582247, "author_profile": "https://Stackoverflow.com/users/7582247", "pm_score": 3, "selected": true, "text": "0 ^(?=.*[1-9])[0-9]*[02468]$\n (?=.*[1-9]) 0 [0-9]* [02468]" }, { "answer_id": 74422858, "author": "Th...
2022/11/13
[ "https://Stackoverflow.com/questions/74422635", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20266178/" ]
74,422,677
<p>I have 3 lists</p> <pre class="lang-py prettyprint-override"><code>a = [&quot;1&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;, &quot;5&quot;, &quot;6&quot;] b = ['a', 'b', 'c'] c = [&quot;13&quot;, &quot;14&quot;] </code></pre> <p>and the format is:</p> <pre><code>1 3 a 2 13 b 3 13 c 4 14 a 5 14 b 6 14 c <...
[ { "answer_id": 74422770, "author": "Vrishab Sharma", "author_id": 14190971, "author_profile": "https://Stackoverflow.com/users/14190971", "pm_score": -1, "selected": false, "text": "for i in c:\n for j in b:\n for k in a:\n print(k,i,j,sep='\\n')\n" }, { "ans...
2022/11/13
[ "https://Stackoverflow.com/questions/74422677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20493849/" ]
74,422,720
<p>Edit: the dummy dataframe is edited</p> <p>I have a pandas data frame with the below kind of column with 200 rows.</p> <p>Let's say the name of df is data.</p> <pre><code>-----------------------------------| B -----------------------------------| {'animal':'cat', 'bird':'peacock'...} </code></pre> <p>I want to extr...
[ { "answer_id": 74422770, "author": "Vrishab Sharma", "author_id": 14190971, "author_profile": "https://Stackoverflow.com/users/14190971", "pm_score": -1, "selected": false, "text": "for i in c:\n for j in b:\n for k in a:\n print(k,i,j,sep='\\n')\n" }, { "ans...
2022/11/13
[ "https://Stackoverflow.com/questions/74422720", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14656814/" ]
74,422,731
<p>why when we use chaining bind we get first context (why not last)?</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 prettyprint-override"><code>function showName() { console.log(this.name); } let u...
[ { "answer_id": 74422770, "author": "Vrishab Sharma", "author_id": 14190971, "author_profile": "https://Stackoverflow.com/users/14190971", "pm_score": -1, "selected": false, "text": "for i in c:\n for j in b:\n for k in a:\n print(k,i,j,sep='\\n')\n" }, { "ans...
2022/11/13
[ "https://Stackoverflow.com/questions/74422731", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15748499/" ]
74,422,737
<p>I would need a help with reviewing of below nested conditional where for the life of me I am not able to find a syntax error which is causing the logic to be broken. Problem is not within the logic itself although I admit that it's bit messy but within the syntax how I am connecting one conditional branch to another...
[ { "answer_id": 74422918, "author": "codermarcos", "author_id": 9021478, "author_profile": "https://Stackoverflow.com/users/9021478", "pm_score": 3, "selected": true, "text": "\"(${\nlength(regexall(\"(?i)READ$\", \"${trimspace(each.value.access_type)}\" )) > 0 \n ? \"_AR_${substr(\"${sp...
2022/11/13
[ "https://Stackoverflow.com/questions/74422737", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3368322/" ]
74,422,749
<p>I have a file with the following content:</p> <pre><code>{ &quot;Youtube tutorial bot test&quot;: { &quot;ivan4o assistant&quot;: 0, &quot;kurwa qvor&quot;: 1 } } </code></pre> <p>And I want it to read only the number.</p> <p>I've tried with this code:</p> <pre><code>def warns_check(member: d...
[ { "answer_id": 74422918, "author": "codermarcos", "author_id": 9021478, "author_profile": "https://Stackoverflow.com/users/9021478", "pm_score": 3, "selected": true, "text": "\"(${\nlength(regexall(\"(?i)READ$\", \"${trimspace(each.value.access_type)}\" )) > 0 \n ? \"_AR_${substr(\"${sp...
2022/11/13
[ "https://Stackoverflow.com/questions/74422749", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20488690/" ]
74,422,751
<p>I want to move to the next page without clicking on button with flutter. Juste after changing the value of a button, I have to redirect to the next page after some delay without any self interaction. this is the code :</p> <pre><code> initialData: BluetoothDeviceState.disconnected, builder: (...
[ { "answer_id": 74422918, "author": "codermarcos", "author_id": 9021478, "author_profile": "https://Stackoverflow.com/users/9021478", "pm_score": 3, "selected": true, "text": "\"(${\nlength(regexall(\"(?i)READ$\", \"${trimspace(each.value.access_type)}\" )) > 0 \n ? \"_AR_${substr(\"${sp...
2022/11/13
[ "https://Stackoverflow.com/questions/74422751", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20285309/" ]
74,422,756
<p>In Delphi 10.4, I was able to get a listing of files in an Android device's shared storage. In Delphi 11, with necessary permission set (either programmatically or on the device), <code>TDirectory.GetFiles()</code> is returning an empty list (ie. zero entries).</p> <p><code>TDirectory.GetDirectories()</code> is wor...
[ { "answer_id": 74423219, "author": "Winston", "author_id": 12063888, "author_profile": "https://Stackoverflow.com/users/12063888", "pm_score": -1, "selected": false, "text": "var\n FileList: TStringDynArray;\n myfileList: Tstringlist;\n s: string;\n DocDir: string; \nbegin\n DocDir ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422756", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20492839/" ]
74,422,776
<p>I am facing an issue with having my res value (array) from the <em>getLogs</em> function to be populated to the DataGrid.</p> <p><strong>UPDATED CODES:</strong></p> <p><em>LogDetails.jsx</em></p> <pre><code>const columns = [ { field: &quot;id&quot;, headerName: &quot;ID&quot;, width: 30 }, { field: &quot;na...
[ { "answer_id": 74423219, "author": "Winston", "author_id": 12063888, "author_profile": "https://Stackoverflow.com/users/12063888", "pm_score": -1, "selected": false, "text": "var\n FileList: TStringDynArray;\n myfileList: Tstringlist;\n s: string;\n DocDir: string; \nbegin\n DocDir ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422776", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19406817/" ]
74,422,788
<pre><code>block = [(1, 2), (6, 6), (8, 10), (13, 14)] def add_line(block, y): added_line = [] for (x1, x2) in block: added_line += zip((x1, x2), y) return added_line </code></pre> <p>It is supposed to add y to (x1, x2) tuple. Instead it produces TypeError: 'int' object is not iterable. What did I...
[ { "answer_id": 74423219, "author": "Winston", "author_id": 12063888, "author_profile": "https://Stackoverflow.com/users/12063888", "pm_score": -1, "selected": false, "text": "var\n FileList: TStringDynArray;\n myfileList: Tstringlist;\n s: string;\n DocDir: string; \nbegin\n DocDir ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422788", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20468549/" ]
74,422,796
<p>Suppose I've got a table <code>node</code> with two fields : <code>id</code>, and <code>child_id</code> :</p> <pre class="lang-none prettyprint-override"><code>id | name | child_id | ---------------------------- 1 | node1 | NULL | 2 | node2 | 3 | 3 | node3 | NULL | </c...
[ { "answer_id": 74423246, "author": "The Impaler", "author_id": 6436191, "author_profile": "https://Stackoverflow.com/users/6436191", "pm_score": 3, "selected": true, "text": "select c.*\nfrom node c\nleft join node p on c.id = p.child_id\nwhere p.id is null\n" }, { "answer_id": 7...
2022/11/13
[ "https://Stackoverflow.com/questions/74422796", "https://Stackoverflow.com", "https://Stackoverflow.com/users/521070/" ]
74,422,848
<p>I have a table holding transaction dates and counter like this</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>NO CARD</th> <th>DATE</th> <th>COUNTER</th> </tr> </thead> <tbody> <tr> <td>1377370849</td> <td>2022/11/13 11:14:12</td> <td>76</td> </tr> <tr> <td>1377370849</td> <td>2022/11/1...
[ { "answer_id": 74423386, "author": "p3consulting", "author_id": 4956336, "author_profile": "https://Stackoverflow.com/users/4956336", "pm_score": 0, "selected": false, "text": "WHERE counter NOT BETWEEN \n CASE WHEN 250 = LAG(counter) OVER(PARTITION BY no_card ORDER BY dat) THEN 0...
2022/11/13
[ "https://Stackoverflow.com/questions/74422848", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20493921/" ]
74,422,849
<pre><code> Stack( children: [ Container( height: MediaQuery.of(context).size.height * 0.5, decoration: BoxDecoration( borderRadius: BorderRadius.only( bottomLeft: Radius.circular(100.0), bottomRight: Radius.circular(100.0)), co...
[ { "answer_id": 74423386, "author": "p3consulting", "author_id": 4956336, "author_profile": "https://Stackoverflow.com/users/4956336", "pm_score": 0, "selected": false, "text": "WHERE counter NOT BETWEEN \n CASE WHEN 250 = LAG(counter) OVER(PARTITION BY no_card ORDER BY dat) THEN 0...
2022/11/13
[ "https://Stackoverflow.com/questions/74422849", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17906689/" ]
74,422,854
<p>I have some HTML/CSS where I am trying to make use of Bootstrap 5.2 and <code>justify-content-between</code> to push 2 buttons out to the edges of the container.</p> <pre><code>&lt;div class=&quot;container&quot;&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-12&quot;&gt; &lt;u...
[ { "answer_id": 74423386, "author": "p3consulting", "author_id": 4956336, "author_profile": "https://Stackoverflow.com/users/4956336", "pm_score": 0, "selected": false, "text": "WHERE counter NOT BETWEEN \n CASE WHEN 250 = LAG(counter) OVER(PARTITION BY no_card ORDER BY dat) THEN 0...
2022/11/13
[ "https://Stackoverflow.com/questions/74422854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/860539/" ]
74,422,859
<p>I just can play the animation once, and I want to play it every time when I click on it.<br /> I'm doing a game like dinosaur of google.<br /> The animation is on paused, and the onClick function from JavaScript does put it on the play.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true"...
[ { "answer_id": 74423386, "author": "p3consulting", "author_id": 4956336, "author_profile": "https://Stackoverflow.com/users/4956336", "pm_score": 0, "selected": false, "text": "WHERE counter NOT BETWEEN \n CASE WHEN 250 = LAG(counter) OVER(PARTITION BY no_card ORDER BY dat) THEN 0...
2022/11/13
[ "https://Stackoverflow.com/questions/74422859", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19764008/" ]
74,422,880
<p>I am making a user profile page for our group app, I want to know that how I can make the size of the picture and the size of the text shrink when I shrink the size of the browser.</p> <p>below are the scss code for classes:</p> <pre><code> .show-picture{ width: 200px; height: 150px; borde...
[ { "answer_id": 74423460, "author": "macrodev", "author_id": 20494515, "author_profile": "https://Stackoverflow.com/users/20494515", "pm_score": 0, "selected": false, "text": " body{\n margin: 0;\n padding: 0;\n background-color: grey;\n ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422880", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20493933/" ]
74,422,895
<p>I don't understand something in react-redux. I have created a slice called Introduction look below:</p> <pre><code>import { createSlice } from &quot;@reduxjs/toolkit&quot;; import { IntroductionFields } from &quot;../helpers/interface&quot;; const initialState: IntroductionFields = { fullName:'', subtitle:'', ...
[ { "answer_id": 74423460, "author": "macrodev", "author_id": 20494515, "author_profile": "https://Stackoverflow.com/users/20494515", "pm_score": 0, "selected": false, "text": " body{\n margin: 0;\n padding: 0;\n background-color: grey;\n ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422895", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14892098/" ]
74,422,929
<p>I want to create new dataframe with using pandas. The table has value name and how many row that value appear</p> <p>In SQL I can create the table that I want like this</p> <pre class="lang-sql prettyprint-override"><code>SELECT start_station_name, COUNT(*) as total_number FROM table GROUP BY start_station_name; </c...
[ { "answer_id": 74423460, "author": "macrodev", "author_id": 20494515, "author_profile": "https://Stackoverflow.com/users/20494515", "pm_score": 0, "selected": false, "text": " body{\n margin: 0;\n padding: 0;\n background-color: grey;\n ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422929", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19998696/" ]
74,422,973
<p>I was wondering how to get the max value from every key from a dictionary. Let's say I have this:</p> <p><code>dict={(1,1,True):[-1, 0.26], (2,1,True):[0.1, 0],(1,2,True):[0.01, -1],(2,2,True):[1, -0.11],}</code></p> <p>And this is the expected output:</p> <p><code>new_dict={(1,1,True):0, (2,1,True):0,(1,2,True):1,(...
[ { "answer_id": 74423460, "author": "macrodev", "author_id": 20494515, "author_profile": "https://Stackoverflow.com/users/20494515", "pm_score": 0, "selected": false, "text": " body{\n margin: 0;\n padding: 0;\n background-color: grey;\n ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422973", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17792314/" ]
74,422,975
<p>I just encountered a problem. I am dockerizing a springboot application with MySQL as a database it is perfectly working in a local setup. But when I try to dockerize the application using <code>docker-compose</code>, MySQL container is working fine and is accessible in my workbench but my application is not able to...
[ { "answer_id": 74423460, "author": "macrodev", "author_id": 20494515, "author_profile": "https://Stackoverflow.com/users/20494515", "pm_score": 0, "selected": false, "text": " body{\n margin: 0;\n padding: 0;\n background-color: grey;\n ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422975", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20494010/" ]
74,422,983
<p>I want to do correlations for each unique combination and grouped by another variable. My solutions works for a very small dataset buy imagine more columns it's getting very tedious.</p> <pre><code>set.seed((13)) df &lt;- data.frame(group = rep(LETTERS[1:3], 3), var1 = rnorm(9, 1), ...
[ { "answer_id": 74423460, "author": "macrodev", "author_id": 20494515, "author_profile": "https://Stackoverflow.com/users/20494515", "pm_score": 0, "selected": false, "text": " body{\n margin: 0;\n padding: 0;\n background-color: grey;\n ...
2022/11/13
[ "https://Stackoverflow.com/questions/74422983", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12367858/" ]
74,422,998
<p>I know i can do it with preventDefault, but i don't know where to set the preventDefault on the code...</p> <pre><code>let navbar = document.querySelector(&quot;.navbar&quot;); document.querySelector(&quot;#menu-btn&quot;).onclick = () =&gt; { navbar.classList.toggle('active'); } window.onscroll = () =&gt; { ...
[ { "answer_id": 74423034, "author": "Bruno Farias", "author_id": 6105926, "author_profile": "https://Stackoverflow.com/users/6105926", "pm_score": 2, "selected": false, "text": "hearts.forEach(a => {\n a.addEventListener(\"click\", (event) => {\n event.preventDefault(); \n a...
2022/11/13
[ "https://Stackoverflow.com/questions/74422998", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19341851/" ]
74,423,033
<p>Assume we have the following graph under R :</p> <pre><code>library(tidyverse) library(&quot;igraph&quot;) library(&quot;rmutil&quot;) library(&quot;cubature&quot;) cities &lt;- data.frame(name=c(&quot;Site A&quot;, &quot;Stantsiya port&quot;, &quot;Sahaidachnoha island&quot;, &quot;Ulyanivka&quot;, ...
[ { "answer_id": 74423096, "author": "Tou Mou", "author_id": 10945401, "author_profile": "https://Stackoverflow.com/users/10945401", "pm_score": 0, "selected": false, "text": "igraph.options(plot.layout=layout.graphopt, vertex.size=7)\nplot(g)\n" }, { "answer_id": 74423536, "au...
2022/11/13
[ "https://Stackoverflow.com/questions/74423033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10945401/" ]
74,423,070
<p>I have a plot which have 3 subplots and one dropdown. I want to change the yaxis subplot text when I select one from drowdown. <code>yaxis.title or yaxis2.title</code> is not working.</p> <p><strong>Note: without using dash</strong></p> <p>Is is possible if i can change only 3rd subplot yaxis title text (not 1st and...
[ { "answer_id": 74424068, "author": "Hamzah", "author_id": 16733101, "author_profile": "https://Stackoverflow.com/users/16733101", "pm_score": 2, "selected": true, "text": "update relayout text yaxis3.title yaxis3.title.text args import plotly.graph_objs as go\n from plotly import subplo...
2022/11/13
[ "https://Stackoverflow.com/questions/74423070", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14266997/" ]
74,423,074
<p>I need to make a trolleybus number, which won't repeat for game. For example, there is a number &quot;101&quot; and there musn't be more &quot;101&quot;. How to do that? I have a code, but I know, he won't work and I won't test it lol</p> <pre><code>function giveNumber() local number = math.random(100, 199) local ta...
[ { "answer_id": 74424068, "author": "Hamzah", "author_id": 16733101, "author_profile": "https://Stackoverflow.com/users/16733101", "pm_score": 2, "selected": true, "text": "update relayout text yaxis3.title yaxis3.title.text args import plotly.graph_objs as go\n from plotly import subplo...
2022/11/13
[ "https://Stackoverflow.com/questions/74423074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20494211/" ]
74,423,113
<p><a href="https://i.stack.imgur.com/9pMkT.png" rel="nofollow noreferrer">categories name</a></p> <p><a href="https://i.stack.imgur.com/pDCmZ.png" rel="nofollow noreferrer">pic of datas</a></p> <pre><code>import {useState, useEffect,useMemo} from 'react'; import { gql, useQuery } from '@apollo/client'; import {GET_CLO...
[ { "answer_id": 74423684, "author": "Michel Floyd", "author_id": 2805154, "author_profile": "https://Stackoverflow.com/users/2805154", "pm_score": 1, "selected": false, "text": "data data loading console.log function Clothes() {\n const { loading, error, data } = useQuery(GET_CLOTHES);\n...
2022/11/13
[ "https://Stackoverflow.com/questions/74423113", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17465034/" ]
74,423,128
<p>It is possible to modify a function argument in-place with the following code snippet:</p> <pre class="lang-rust prettyprint-override"><code>let mut foo = 1; let mut fun: Box&lt;dyn FnMut(&amp;mut i32) -&gt; _&gt; = Box::new(|f| { *f += 1; }); fun(&amp;mut foo); assert_eq!(foo, 2); </code></pre> <p>However, I ha...
[ { "answer_id": 74423684, "author": "Michel Floyd", "author_id": 2805154, "author_profile": "https://Stackoverflow.com/users/2805154", "pm_score": 1, "selected": false, "text": "data data loading console.log function Clothes() {\n const { loading, error, data } = useQuery(GET_CLOTHES);\n...
2022/11/13
[ "https://Stackoverflow.com/questions/74423128", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14923227/" ]
74,423,147
<p>I need to create a program in Java that finds all the occurrences of a 4-letter string, in this case <code>&quot;lane&quot;</code>, within the given String.</p> <p>Comparison should be case-insensitive, and the second letter of the matching substring should not be taken into account while evaluating whether a substr...
[ { "answer_id": 74423684, "author": "Michel Floyd", "author_id": 2805154, "author_profile": "https://Stackoverflow.com/users/2805154", "pm_score": 1, "selected": false, "text": "data data loading console.log function Clothes() {\n const { loading, error, data } = useQuery(GET_CLOTHES);\n...
2022/11/13
[ "https://Stackoverflow.com/questions/74423147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13893138/" ]
74,423,153
<p>I receive some data in excel files and I would like to process it in pandas in order to have the proper format and then insert it into a table in sql developer.</p> <p>I found several tutorials in the internet and I tried the following code but I can't understand why is not working.</p> <pre><code>import cx_Oracle i...
[ { "answer_id": 74423684, "author": "Michel Floyd", "author_id": 2805154, "author_profile": "https://Stackoverflow.com/users/2805154", "pm_score": 1, "selected": false, "text": "data data loading console.log function Clothes() {\n const { loading, error, data } = useQuery(GET_CLOTHES);\n...
2022/11/13
[ "https://Stackoverflow.com/questions/74423153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15212664/" ]
74,423,168
<p>As title states, after <a href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_excel.html" rel="nofollow noreferrer">reviewing docs</a></p> <p>I am reading an .xlsx file, with a column 'HOUR' which has many values, when an instance has value 99, i want to convert to None</p> <p>I have tried t...
[ { "answer_id": 74423684, "author": "Michel Floyd", "author_id": 2805154, "author_profile": "https://Stackoverflow.com/users/2805154", "pm_score": 1, "selected": false, "text": "data data loading console.log function Clothes() {\n const { loading, error, data } = useQuery(GET_CLOTHES);\n...
2022/11/13
[ "https://Stackoverflow.com/questions/74423168", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20494239/" ]
74,423,171
<p>This was also on streamlit <a href="https://discuss.streamlit.io/t/upload-image-to-drive-from-numpy-ndarray/27363/4?u=srinu" rel="nofollow noreferrer">discussion</a></p> <p>I want to help others who are facing the same problem!</p>
[ { "answer_id": 74423226, "author": "NAGA VENKATA SRINIVAS MENTA", "author_id": 14964109, "author_profile": "https://Stackoverflow.com/users/14964109", "pm_score": 1, "selected": false, "text": "st.file_uploader() st.camera_input() st.file_uploader() st.image() drive.put() st.set_option('...
2022/11/13
[ "https://Stackoverflow.com/questions/74423171", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14964109/" ]
74,423,229
<p>I'm stuck with the below scenarios. This is working fine on the local computer, however with GCP+NodeJs is not working.</p> <p>Problem - I have an API that generates QR-Images using <a href="https://www.npmjs.com/package/qr-image" rel="nofollow noreferrer">https://www.npmjs.com/package/qr-image</a>, then it creates ...
[ { "answer_id": 74460333, "author": "Ysr Shk", "author_id": 3402693, "author_profile": "https://Stackoverflow.com/users/3402693", "pm_score": 1, "selected": true, "text": "runtime: nodejs\nenv: flex\n\nenv_variables:\n # The following environment variables are set for all instances\n # ...
2022/11/13
[ "https://Stackoverflow.com/questions/74423229", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3402693/" ]
74,423,248
<p>I am trying to iterate through all the letters in the list, although i am not making much progress.</p> <p>EX:</p> <pre><code>L = [&quot;pizza&quot;,&quot;burger&quot;,&quot;shawarma&quot;,&quot;nuggets&quot;] </code></pre> <p>the program should output</p> <pre class="lang-none prettyprint-override"><code>p b s n i ...
[ { "answer_id": 74460333, "author": "Ysr Shk", "author_id": 3402693, "author_profile": "https://Stackoverflow.com/users/3402693", "pm_score": 1, "selected": true, "text": "runtime: nodejs\nenv: flex\n\nenv_variables:\n # The following environment variables are set for all instances\n # ...
2022/11/13
[ "https://Stackoverflow.com/questions/74423248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20487116/" ]
74,423,270
<p>I would like to take the word &quot;buy&quot;</p> <pre><code>browser.find_element_by_xpath(&quot;//*[@id='js-commentaire']&quot;) print(commentaire) </code></pre> <p>and i also did</p> <pre><code>browser.find_element_by_id(&quot;js-commentaire&quot;) print(commentaire) </code></pre> <p>This the source code</p> <pr...
[ { "answer_id": 74460333, "author": "Ysr Shk", "author_id": 3402693, "author_profile": "https://Stackoverflow.com/users/3402693", "pm_score": 1, "selected": true, "text": "runtime: nodejs\nenv: flex\n\nenv_variables:\n # The following environment variables are set for all instances\n # ...
2022/11/13
[ "https://Stackoverflow.com/questions/74423270", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20460828/" ]
74,423,272
<p>I have such code that can't be compiled:</p> <pre><code>fn my_cool_replace&lt;T: Copy&gt;(arr: &amp;mut [T]) { swap(&amp;mut arr[2], &amp;mut arr[5]); } fn swap&lt;T: Copy&gt;(a: &amp;mut T, b: &amp;mut T) { let c: T = *a; *a = *b; *b = c; } </code></pre> <p>The error is:</p> <pre><code>error[E0499]...
[ { "answer_id": 74423423, "author": "Pandemonium", "author_id": 1965774, "author_profile": "https://Stackoverflow.com/users/1965774", "pm_score": 3, "selected": true, "text": "swap fn swap<T: Copy>(arr: &mut [T], p1: usize, p2: usize) {\n let tmp = arr[p1];\n arr[p1] = arr[p2];\n ...
2022/11/13
[ "https://Stackoverflow.com/questions/74423272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3467698/" ]
74,423,293
<p>If you have two classes, class a and class b, could you create a variable in class a from class b? <strong>main.cpp</strong></p> <pre class="lang-cpp prettyprint-override"><code>class A { public: A() {} }; class B { public: B() { test = A(); test.&lt;variable name&gt;...
[ { "answer_id": 74423423, "author": "Pandemonium", "author_id": 1965774, "author_profile": "https://Stackoverflow.com/users/1965774", "pm_score": 3, "selected": true, "text": "swap fn swap<T: Copy>(arr: &mut [T], p1: usize, p2: usize) {\n let tmp = arr[p1];\n arr[p1] = arr[p2];\n ...
2022/11/13
[ "https://Stackoverflow.com/questions/74423293", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18131236/" ]
74,423,308
<p>I take it from the database and send it via ajax (wordpress). Everything works fine, except that I don't get the <strong>first row</strong> from the database. As I read on the Internet, a similar problem is in the array, maybe. Can someone explain and help me fix it so that all rows are displayed?</p> <p>Code:</p> <...
[ { "answer_id": 74425143, "author": "mickmackusa", "author_id": 2943403, "author_profile": "https://Stackoverflow.com/users/2943403", "pm_score": 3, "selected": true, "text": "prepare() get_results() ARRAY_A return wp_send_json($wpdb->get_results('SELECT * FROM users', ARRAY_A));\n" },...
2022/11/13
[ "https://Stackoverflow.com/questions/74423308", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11593555/" ]
74,423,320
<p>How can I use sys.argv to ask for user input instead of input? I started this program using input but I want the program to use sys.argv instead.</p> <p>here is my code:</p> <pre><code>import turtle import random import statistics name=input(&quot;Please enter Pa,Mi-Ma,Reg, or All: &quot;) stepper=int(input(&quot;P...
[ { "answer_id": 74425143, "author": "mickmackusa", "author_id": 2943403, "author_profile": "https://Stackoverflow.com/users/2943403", "pm_score": 3, "selected": true, "text": "prepare() get_results() ARRAY_A return wp_send_json($wpdb->get_results('SELECT * FROM users', ARRAY_A));\n" },...
2022/11/13
[ "https://Stackoverflow.com/questions/74423320", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20352630/" ]
74,423,348
<p>I'm learning React (v18) and I've tried implementing some similar solutions that I've found here, but so far no success. I have been trying display &quot;cards&quot; with names and pictures from a list of authors; the url for the each picture is remote (for example from wikipedia):</p> <pre><code>export const Autho...
[ { "answer_id": 74423434, "author": "John Li", "author_id": 20436957, "author_profile": "https://Stackoverflow.com/users/20436957", "pm_score": 2, "selected": true, "text": "{props.children} Card img children React.cloneElement() props.children // Replaces Card component\n\nexport const C...
2022/11/13
[ "https://Stackoverflow.com/questions/74423348", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2417587/" ]
74,423,356
<p>I have been learning Flutter for some time trying to understand from existing Flutter projects, so the code that will follow is not mine.</p> <p>Currently I am testing a project but I am facing an error that I had never seen.</p> <pre><code>The getter 'length' was called on null. Receiver: null Tried calling: length...
[ { "answer_id": 74423434, "author": "John Li", "author_id": 20436957, "author_profile": "https://Stackoverflow.com/users/20436957", "pm_score": 2, "selected": true, "text": "{props.children} Card img children React.cloneElement() props.children // Replaces Card component\n\nexport const C...
2022/11/13
[ "https://Stackoverflow.com/questions/74423356", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20494351/" ]
74,423,368
<p>I have created a VSTO excel plug-in, which is supposed to store a comment text in a database each time the comment has been changed.</p> <p>(I'm giving you the code example in VBA since usually this is where I test initial ideas first)</p> <p>When a comment is selected TypeName(Selection) returns “TextBox” <a href="...
[ { "answer_id": 74423505, "author": "user3598756", "author_id": 3598756, "author_profile": "https://Stackoverflow.com/users/3598756", "pm_score": 2, "selected": false, "text": "Option Explicit\n\nDim lastAddress As String\nDim cmtAddress As String\nDim cmtText As String\n\nPrivate Sub Wor...
2022/11/13
[ "https://Stackoverflow.com/questions/74423368", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4021971/" ]
74,423,373
<p>I have attached a screenshot of the original table and the desired result.</p> <p>What I want is basically to return records from an excel table based on a single criterion (CustomerID), sort the results on another criterion (Date), attach discontiguous columns from an original table, and return only n-rows from tha...
[ { "answer_id": 74423736, "author": "David Leal", "author_id": 6237093, "author_profile": "https://Stackoverflow.com/users/6237093", "pm_score": 1, "selected": false, "text": "J2 =LET(input, TB_Inv, customerId, I2, customers, TB_Inv[Customer],\n TAKE(CHOOSECOLS(SORT(FILTER(TB_Inv, custom...
2022/11/13
[ "https://Stackoverflow.com/questions/74423373", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9178508/" ]
74,423,399
<p>I have a POJO.</p> <pre><code>@Data @AllArgsConstructor @Builder public class Emp { private String name; private String position; } </code></pre> <p>Suppose, we have created an object</p> <pre><code>Emp emp = new Emp(&quot;Manager&quot;, &quot;Bob&quot;); </code></pre> <p>How can I convert it to a list and s...
[ { "answer_id": 74423512, "author": "KunalVarpe", "author_id": 3649352, "author_profile": "https://Stackoverflow.com/users/3649352", "pm_score": -1, "selected": false, "text": "ObjectMapper" }, { "answer_id": 74424173, "author": "Alexander Ivanchenko", "author_id": 1794994...
2022/11/13
[ "https://Stackoverflow.com/questions/74423399", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16793182/" ]
74,423,401
<p>I have an array within an array with dates and an amount <code>var finances = [ ['jan', 25000], ['feb', 22000], ['mars', 21000] ] </code> I want to find out by how much the number changes each month. Then I want to find the difference between this change each month and add it up. I thought I had it but it is not wor...
[ { "answer_id": 74423512, "author": "KunalVarpe", "author_id": 3649352, "author_profile": "https://Stackoverflow.com/users/3649352", "pm_score": -1, "selected": false, "text": "ObjectMapper" }, { "answer_id": 74424173, "author": "Alexander Ivanchenko", "author_id": 1794994...
2022/11/13
[ "https://Stackoverflow.com/questions/74423401", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19604754/" ]
74,423,412
<p>I wanted to create a python program with user defined function which should read a year entered by user and return True/False by checking whether the entered year is a leap year or not.</p> <p>This is what I tried</p> <pre><code>def is_leap(year): leap = False if(year%4==0): if(year%100!=0): ...
[ { "answer_id": 74423426, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 0, "selected": false, "text": "def is_leap(year):\n if (year%4==0) and (year%100!=0) or (year%400==0):\n return True\n return False\n...
2022/11/13
[ "https://Stackoverflow.com/questions/74423412", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16779642/" ]
74,423,435
<p>I'm studying NestJS with a sample app.</p> <p><a href="https://github.com/nestjs/nest/tree/master/sample/12-graphql-schema-first" rel="nofollow noreferrer">https://github.com/nestjs/nest/tree/master/sample/12-graphql-schema-first</a></p> <p>However, what I am curious about is that even if the service does not have a...
[ { "answer_id": 74423495, "author": "Jay McDoniel", "author_id": 9576186, "author_profile": "https://Stackoverflow.com/users/9576186", "pm_score": 1, "selected": true, "text": "@Injectable() @Injectable() @Injectable()\nexport class Foo {\n constructor(private readonly foo: string) {}\n}...
2022/11/13
[ "https://Stackoverflow.com/questions/74423435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7973784/" ]
74,423,446
<p>I am trying to find the minimum of a variable input of the scanner class. I have as many inputs as the user wants but I cannot seem to find out how to find the minimum of multiple inputs. Any help would be appreciated.</p> <pre><code>public static void minimum(int count) { double input; boolean lessThan; ...
[ { "answer_id": 74423495, "author": "Jay McDoniel", "author_id": 9576186, "author_profile": "https://Stackoverflow.com/users/9576186", "pm_score": 1, "selected": true, "text": "@Injectable() @Injectable() @Injectable()\nexport class Foo {\n constructor(private readonly foo: string) {}\n}...
2022/11/13
[ "https://Stackoverflow.com/questions/74423446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20429066/" ]
74,423,473
<p>I have data stored in the list. Below you can see my data.</p> <pre><code>listName = ['column1','column2','column3','column4'] </code></pre> <p>Now I want to drop elements with titles <code>'column2'</code> and <code>'column3'</code></p> <p>I tried this command but is not work.</p> <pre><code>listName=listName.drop...
[ { "answer_id": 74423516, "author": "Celius Stingher", "author_id": 11897007, "author_profile": "https://Stackoverflow.com/users/11897007", "pm_score": 3, "selected": true, "text": "to_remove = ['column2','column3']\n\nfiltered = [x for x in listName if x not in to_remove]\n ['column1','c...
2022/11/13
[ "https://Stackoverflow.com/questions/74423473", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10924836/" ]
74,423,476
<p>Suppose I have a tensor 2D tensor <code>x</code> of shape <code>(n,m)</code>. How can I extend the first dimension of the tensor by appending zero rows in <code>x</code> by specifying the indices of where the zero rows will be located in the resulting tensor? For a concrete example:</p> <pre><code>x = torch.tensor([...
[ { "answer_id": 74423516, "author": "Celius Stingher", "author_id": 11897007, "author_profile": "https://Stackoverflow.com/users/11897007", "pm_score": 3, "selected": true, "text": "to_remove = ['column2','column3']\n\nfiltered = [x for x in listName if x not in to_remove]\n ['column1','c...
2022/11/13
[ "https://Stackoverflow.com/questions/74423476", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9213648/" ]
74,423,478
<p>I have a set of five images which are in a grid like setting. For visual, here is what I'm trying to achieve:</p> <p><a href="https://i.stack.imgur.com/sl1B6.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sl1B6.jpg" alt="enter image description here" /></a></p> <p>To my knowledge, such as design ...
[ { "answer_id": 74424092, "author": "Sigma", "author_id": 15289789, "author_profile": "https://Stackoverflow.com/users/15289789", "pm_score": 1, "selected": false, "text": ".img {\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.grid-conta...
2022/11/13
[ "https://Stackoverflow.com/questions/74423478", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4329847/" ]
74,423,547
<p>I am new to C#. This is my code. When I run this code, I input the car name, mileage, year, make, model, color, and bodytype to a list that looks like this</p> <pre class="lang-none prettyprint-override"><code> Name of Car: Car 1 Enter Mileage: 4000 (my input) Enter year: 2022 (my input) Enter make: ford (my inpu...
[ { "answer_id": 74424092, "author": "Sigma", "author_id": 15289789, "author_profile": "https://Stackoverflow.com/users/15289789", "pm_score": 1, "selected": false, "text": ".img {\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.grid-conta...
2022/11/13
[ "https://Stackoverflow.com/questions/74423547", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20101467/" ]
74,423,596
<p>If <code>formattedDate</code> is declared as a global variable and <code>formattedDate</code> is output in startScreenRecord, the output is good. However, if <code>formattedDate</code> is output again in stopScreenRecord, it is output as null. how can I solve this?</p> <pre><code> class _HomePageState extends Sta...
[ { "answer_id": 74424092, "author": "Sigma", "author_id": 15289789, "author_profile": "https://Stackoverflow.com/users/15289789", "pm_score": 1, "selected": false, "text": ".img {\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.grid-conta...
2022/11/13
[ "https://Stackoverflow.com/questions/74423596", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12769152/" ]
74,423,605
<p>I am coding a Battleships game in Python and can use some help regarding the while loop to check whether a user has not input any data.</p> <pre class="lang-py prettyprint-override"><code> def getUserInput(self): try: x_row = input(&quot;Please Select the row coorinate (1-8)&quot;) wh...
[ { "answer_id": 74424092, "author": "Sigma", "author_id": 15289789, "author_profile": "https://Stackoverflow.com/users/15289789", "pm_score": 1, "selected": false, "text": ".img {\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.grid-conta...
2022/11/13
[ "https://Stackoverflow.com/questions/74423605", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20494609/" ]
74,423,610
<p>I'm trying to do this code, and I split it up into <code>.c</code> files (lets say <code>file1.c</code> and <code>file2.c</code>) and <code>file1.h</code> file. I'm not allowed to change which parameters I can send to the function, so I need to find another way to &quot;send&quot;/access another variable. I tried to...
[ { "answer_id": 74423655, "author": "0___________", "author_id": 6110094, "author_profile": "https://Stackoverflow.com/users/6110094", "pm_score": 2, "selected": true, "text": "#ifndef ALGORITHM_H\n#define ALGORITHM_H\n\n#include <stdbool.h> // bool\nextern int global_variable;\n\n#endif\...
2022/11/13
[ "https://Stackoverflow.com/questions/74423610", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17701708/" ]
74,423,680
<p>I got <code>FutureBuilder</code> snapshot error when I parsing my JSON i got the:</p> <p>type 'List' is not a subtype of type 'FutureOr&lt;List&gt;' is it my Product model error or a parsing error?</p> <p>my code</p> <pre><code> late Future&lt;List&lt;Product&gt;&gt; productFuture = getProducts(); static Future&l...
[ { "answer_id": 74423805, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 2, "selected": true, "text": "return List.from(body['data'].map((e)=>Product.fromJson(e)));\n static Future<List<Product>> getProducts() as...
2022/11/13
[ "https://Stackoverflow.com/questions/74423680", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20320364/" ]
74,423,690
<p>So I'm trying to make a section under each appointment details that shows their payment transactions of the appointment specifically. all my tries so far didn't work, i can only show all payment updates which is not the wanted result obviously. this is the code:</p> <p>views.py the view for updating payments</p> <pr...
[ { "answer_id": 74425717, "author": "Sunderam Dubey", "author_id": 17562044, "author_profile": "https://Stackoverflow.com/users/17562044", "pm_score": 2, "selected": false, "text": "PaymentUpDate.objects.filter(appointment=appointment)\n PaymentUpDate.objects.filter(appointment_id=id)\n ....
2022/11/13
[ "https://Stackoverflow.com/questions/74423690", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20256273/" ]
74,423,694
<p>Hi guys I have a problem with some sites from my university and at my localhost. We started with web developement and learned html and css. The thing is I found a very weird CSS Tag in my Head with very weird and scammy looking refs. I looked at some of the links and maybe it sounds weird but some links are P*rn sit...
[ { "answer_id": 74424951, "author": "Shaman Technology", "author_id": 15475207, "author_profile": "https://Stackoverflow.com/users/15475207", "pm_score": -1, "selected": false, "text": "<link rel=\"stylesheet\" type=\"text/css\" href=\"mystyle.css\">\n <style>\nh1 {\n\n color: orange;\n"...
2022/11/13
[ "https://Stackoverflow.com/questions/74423694", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17603934/" ]