qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,594,671 | <p>Whenever I try to draw an SFML sprite with a negative position, the sprite will not be drawn to the screen. I have tried with and without a view applied to the window, but the sprite is not rendered either time.</p>
<p>I have a sprite with a texture on it (size 32*64). I try drawing in at position (-1,-1) but it wil... | [
{
"answer_id": 74638847,
"author": "domon41c",
"author_id": 20140270,
"author_profile": "https://Stackoverflow.com/users/20140270",
"pm_score": 1,
"selected": false,
"text": "sf::Texture texture;\nif (!texture.loadFromFile(\"texture.png\")) {\n std::cout << \"Error rendering Object\";... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74594671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19737708/"
] |
74,594,738 | <p>I've been trying to create a connection between two hosts with a POST request sent as JSON using cURL in PHP. My primary objective is to send data from Host A to Host B (labelled for clarity).</p>
<p>First, looking at network tools in the sender browser, the request type is always GET instead of POST, despite using ... | [
{
"answer_id": 74594812,
"author": "Phil",
"author_id": 283366,
"author_profile": "https://Stackoverflow.com/users/283366",
"pm_score": 1,
"selected": false,
"text": "print($result);\n $json = file_get_contents('php://input');\n$data = json_decode($json);\n\n// ...do whatever but no `ech... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74594738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20592762/"
] |
74,594,739 | <p>I'm trying to import SVG icons for each item in a v-for loop, with the filename changing depending on the item's id. The icons are loading, but I get the following error for each icon imported.</p>
<p>Is there a better way to approach this?</p>
<blockquote>
<p>Uncaught (in promise) TypeError: Failed to resolve modul... | [
{
"answer_id": 74594878,
"author": "principal kelvin",
"author_id": 15610959,
"author_profile": "https://Stackoverflow.com/users/15610959",
"pm_score": 0,
"selected": false,
"text": "<template>\n <ul>\n <!-- list rendering -->\n <li v-for=\"item in items\">\n ... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74594739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7087551/"
] |
74,594,760 | <p>I have a list that is filled with a request body. I expect 400 BAD Request response status when No value or Null is passed in request.
is working as expected when No value is being passed. But for Null, it does not throw 400. How can I make it work?</p>
<pre><code>class data{
@NotEmpty
private List<@Vali... | [
{
"answer_id": 74594878,
"author": "principal kelvin",
"author_id": 15610959,
"author_profile": "https://Stackoverflow.com/users/15610959",
"pm_score": 0,
"selected": false,
"text": "<template>\n <ul>\n <!-- list rendering -->\n <li v-for=\"item in items\">\n ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74594760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13809107/"
] |
74,594,798 | <p>I have <code>ggplot2</code> 3.4.0 installed on Ubuntu 22.04, but for some reasons I would like to use older version <code>ggplot2</code> 3.3.6.</p>
<pre><code>library(ggplot2, lib.loc="~/R/ggplot336/")
</code></pre>
<p>I worked fine when I started with a clean script file. However, when I use an existing ... | [
{
"answer_id": 74607303,
"author": "Dave2e",
"author_id": 5792244,
"author_profile": "https://Stackoverflow.com/users/5792244",
"pm_score": 1,
"selected": false,
"text": "sessionInfo()\nR version 4.2.2 (2022-10-31)\nPlatform: x86_64-apple-darwin17.0 (64-bit)\nRunning under: macOS Montere... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74594798",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11741943/"
] |
74,594,806 | <p>I'm trying to webscrape multiple webpages of similar HTML code. I can already get the HTML of each page and I can manually find the part of the code's string where the information I need is placed - I just don't know how to properly extract it. I believe my problem might be solved with REGEX, actually, but I don't ... | [
{
"answer_id": 74594827,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 1,
"selected": false,
"text": "beautifulsoup json import json\nimport requests\nfrom bs4 import BeautifulSoup\n\nresp = requests.get(\n ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74594806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9803483/"
] |
74,594,809 | <p>im trying to let the user input a number for each person. the console then outputs the maximum value in the array. everything works fine but the max always outputs as -858993460. i tried multiple combinations but i cant seem to figure it out</p>
<p>im new to arrays so any help would be appreciated as well as an feed... | [
{
"answer_id": 74594856,
"author": "Sam Varshavchik",
"author_id": 3943312,
"author_profile": "https://Stackoverflow.com/users/3943312",
"pm_score": 3,
"selected": true,
"text": "int people[10];\n int int max = people[0];\n max people people max max"
},
{
"answer_id": 74594857,
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74594809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20410786/"
] |
74,594,830 | <p>In a weather application on which I'm working I have three components, one <code>App.js</code> component which holds the other two components (<code>search.js</code> and <code>Main.js</code>). User searches the city, and <code>main.js</code> components display the relevant weather data.</p>
<p>Now I want to change t... | [
{
"answer_id": 74594860,
"author": "m_wb",
"author_id": 20617744,
"author_profile": "https://Stackoverflow.com/users/20617744",
"pm_score": 0,
"selected": false,
"text": "useDispatch"
},
{
"answer_id": 74595148,
"author": "George",
"author_id": 4375751,
"author_profil... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74594830",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16762504/"
] |
74,594,834 | <p>I have a design where I have 3 items. 2 items should be placed vertically and 1 item has to be in it's own cell. So, 2 items should be placed in 1 cell vertically and 1 item takes it's own whole cell. To demonstrate, below is the image</p>
<p><a href="https://i.stack.imgur.com/n9i7X.png" rel="nofollow noreferrer"><i... | [
{
"answer_id": 74594956,
"author": "ChenBr",
"author_id": 17718587,
"author_profile": "https://Stackoverflow.com/users/17718587",
"pm_score": 1,
"selected": false,
"text": "grid flex grid-cols-3 grid-rows-2 col-span-n row-span-n grid-cols grid-row <div class=\"border-2 grid grid-cols-3 g... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74594834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19313557/"
] |
74,594,844 | <p>I have read multiple posts about how to instantiate one object of the type of the inner class after instantiating one from the outer class; for example: <a href="https://stackoverflow.com/questions/29530354/how-to-instantiate-multiple-nested-non-static-inner-classes-java">here</a> and <a href="https://stackoverflow.... | [
{
"answer_id": 74595134,
"author": "WJS",
"author_id": 1552534,
"author_profile": "https://Stackoverflow.com/users/1552534",
"pm_score": 0,
"selected": false,
"text": "interator Iterable public class MyDataDemo {\n public static void main(String[] args) {\n MyDataStructure<Intege... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74594844",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7334828/"
] |
74,594,909 | <p>I'm sorry if the tittle is a bit confusing.</p>
<p>I have an array-sorting webapp in Blazor.</p>
<p>This is the important piece of code:</p>
<pre><code><MudButton OnClick="Sort" Disabled="Sorting" Variant="Variant.Outlined" >Sort</MudButton>
<MudButton OnClick="Accel... | [
{
"answer_id": 74595008,
"author": "Jim G.",
"author_id": 109941,
"author_profile": "https://Stackoverflow.com/users/109941",
"pm_score": 0,
"selected": false,
"text": "Accelerating = false;\n"
},
{
"answer_id": 74595166,
"author": "Gabriel Luci",
"author_id": 1202807,
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74594909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16032218/"
] |
74,595,012 | <p>I have the following two dataframes. I'm trying to combine the two using a <code>left_join</code> by <code>Key</code>, however I'm getting an error</p>
<pre><code>df <- structure(list(Key = structure(c(1L, 1L, 1L, 1L, 2L, 2L, 2L,
2L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 5L, 5L, 5L, 5L, 6L, 6L, 6L,
6L, 7L, 7L, 7L, 7L... | [
{
"answer_id": 74595008,
"author": "Jim G.",
"author_id": 109941,
"author_profile": "https://Stackoverflow.com/users/109941",
"pm_score": 0,
"selected": false,
"text": "Accelerating = false;\n"
},
{
"answer_id": 74595166,
"author": "Gabriel Luci",
"author_id": 1202807,
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595012",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12388534/"
] |
74,595,039 | <p>I have a nested list like this: datelist = [["2019/04/12", 7.0], ["2019/02/09", 7.3], ["2018/08/14", 6.1]]
I need to change the date format from yyyy/mm/dd/ to yyyy.mm.dd and then return the list as it is.
So the result should be [["12.04.2019", 7.0], ["09.02.2019", ... | [
{
"answer_id": 74595008,
"author": "Jim G.",
"author_id": 109941,
"author_profile": "https://Stackoverflow.com/users/109941",
"pm_score": 0,
"selected": false,
"text": "Accelerating = false;\n"
},
{
"answer_id": 74595166,
"author": "Gabriel Luci",
"author_id": 1202807,
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20618564/"
] |
74,595,074 | <p>My code looks like this</p>
<pre><code>let! statementData = page.EvaluateAsync("() => this.window._StatementLinesData")
let sValue =
JObject.Parse(statementData.Value.GetRawText()).Last.Last
|> (fun item -> item.Children() )
|> Seq.map(fun item -> item.ToObject<StatementLine&... | [
{
"answer_id": 74595142,
"author": "Abel",
"author_id": 111575,
"author_profile": "https://Stackoverflow.com/users/111575",
"pm_score": 0,
"selected": false,
"text": "page.EvaluateAsync(\"() => this.window._StatementLinesData\").Result\n|> fun x -> JObject.Parse(x.Value.GetRawText()).Las... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4537346/"
] |
74,595,102 | <p>Getting multiple errors while archiving the project but app build/run fine. Tried many solutions related to cleaning derived data, deintegrate/integrate/install pods, pod clean etc.(<a href="https://stackoverflow.com/questions/66809424/googleutilities-gulurlsessiondataresponse-h-file-not-found">'GoogleUtilities/... | [
{
"answer_id": 74595142,
"author": "Abel",
"author_id": 111575,
"author_profile": "https://Stackoverflow.com/users/111575",
"pm_score": 0,
"selected": false,
"text": "page.EvaluateAsync(\"() => this.window._StatementLinesData\").Result\n|> fun x -> JObject.Parse(x.Value.GetRawText()).Las... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6488746/"
] |
74,595,103 | <p>I'm new to Flutter and I have to make a list of rules where every item in the list is green and if you break a rule you can press it and change the color to red. I also have to have extensible.
I also have to have extensible. In my implementation from the YouTube tutorial, I saw that I used <code>.map()</code> to ma... | [
{
"answer_id": 74595142,
"author": "Abel",
"author_id": 111575,
"author_profile": "https://Stackoverflow.com/users/111575",
"pm_score": 0,
"selected": false,
"text": "page.EvaluateAsync(\"() => this.window._StatementLinesData\").Result\n|> fun x -> JObject.Parse(x.Value.GetRawText()).Las... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20618742/"
] |
74,595,105 | <p>I need to find the first 16 multiples of 2 starting with 2. Then find the product in the next line like this. I need to use for loops only.</p>
<p>Sample output: 2 4 6 8 10 12 ...</p>
<p>The product is ______</p>
<p>I tried this. For loops only.</p>
<pre><code>import java.util.Scanner;
public class Program30
{
p... | [
{
"answer_id": 74595209,
"author": "Anon",
"author_id": 20460294,
"author_profile": "https://Stackoverflow.com/users/20460294",
"pm_score": 2,
"selected": false,
"text": " public static void main(String[] args) {\n long a;\n long b = 1L;\n for (int x = 1; x <= 16; x++) {\n ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20618720/"
] |
74,595,146 | <p>Ok, so I want to return the elements that are present in both provided arrays having the same index location.</p>
<pre><code>exe1 = [A,B,C,D,N]
exe2 = [B,D,C,A,T]
</code></pre>
<p>it should return only C</p>
<p>I've tried looping them by nested loops but doesn't work, here is what I've tried:</p>
<pre><code> let tes... | [
{
"answer_id": 74595174,
"author": "Phil",
"author_id": 283366,
"author_profile": "https://Stackoverflow.com/users/283366",
"pm_score": 3,
"selected": true,
"text": "exe1 exe2 const exe1 = ['A','B','C','D','N'];\nconst exe2 = ['B','D','C','A','T'];\n\nconst testing = exe1.filter((val, i)... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20409564/"
] |
74,595,178 | <p>I'm trying to learn Laravel, but ran into an issue I hope you can help resolve. Recently, while working to learn php programming I installed XAMPP, without problem and used it with both php and MYSql. It uses the localhost IP of <a href="http://127.0.0.1" rel="nofollow noreferrer">http://127.0.0.1</a>. In the new... | [
{
"answer_id": 74595496,
"author": "Mr. Kenneth",
"author_id": 13933721,
"author_profile": "https://Stackoverflow.com/users/13933721",
"pm_score": 1,
"selected": false,
"text": "php artisan serve httpd-vhosts.conf C:\\wamp64\\bin\\apache\\apache2.4.51\\conf\\extra C:\\xampp\\apache\\conf... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2283892/"
] |
74,595,182 | <p>Hi,</p>
<p>I have these 2 arrays of objects:</p>
<pre><code>const arr1 = [{"id":"pear","qty":2},{"id":"apple","qty":2}];
const arr2 = [{"id":"pear","qty":5},{"id":"lemon","qty":1}];
</code></pre>
<... | [
{
"answer_id": 74595196,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 1,
"selected": false,
"text": "Array.map() arr1 arr2 Array.reduce() Array.filter() const arr1 = [{\"id\":\"pear\",\"qty\":2},{\"id\":\"apple\",\"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2230939/"
] |
74,595,185 | <p>I have written code that should do as the title says but im getting "TypeError: can only join an iterable"
on line 12, in reverse_words d.append(''.join(c))</p>
<p>here is my following code-</p>
<pre><code>def reverse_words(text):
#makes 'apple TEST' into ['apple', 'TEST']
a = text.split(' ')
d... | [
{
"answer_id": 74595206,
"author": "Atticus Reeves",
"author_id": 13696100,
"author_profile": "https://Stackoverflow.com/users/13696100",
"pm_score": -1,
"selected": false,
"text": "d.append('').join(d)\n"
},
{
"answer_id": 74595257,
"author": "Sash Sinha",
"author_id": 6... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20618879/"
] |
74,595,187 | <p>I'm having trouble fully wiring on my Django applications submit button, it seems that the JS function does not understand which checked boxes to look for
all the console returns are "cannot read properties of null, reading "checked" I'm assuming its something with the function defining but I cannot s... | [
{
"answer_id": 74595229,
"author": "Dennis Hackethal",
"author_id": 1371131,
"author_profile": "https://Stackoverflow.com/users/1371131",
"pm_score": 1,
"selected": false,
"text": "document.getElementById(this.id).checked\n document.getElementById(this.id) null null.checked this window t... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20618810/"
] |
74,595,213 | <p>I have a simple Javascript function that calculates the weeks between two dates, every seven days equals one week:</p>
<pre><code>function getWeeksDiff(startDate, endDate) {
const msInWeek = 1000 * 60 * 60 * 24 * 7;
return Math.round(Math.abs(endDate - startDate) / msInWeek);
}
</code></pre>
<p>It works correct... | [
{
"answer_id": 74595839,
"author": "Jeff Vdovjak",
"author_id": 1937507,
"author_profile": "https://Stackoverflow.com/users/1937507",
"pm_score": 3,
"selected": true,
"text": "function countWeeks(startDate, endDate) {\n // Calculate the next Sunday from the startDate \n // Change t... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16090212/"
] |
74,595,246 | <p>I'm using Bootstrap in my app where I've got a multiple filters above my table. How to add some space between <code>Date Min</code> line and <code>Payment Method</code> line? Here is screenshot which better describes my issue:</p>
<p><a href="https://i.stack.imgur.com/jsqv1.png" rel="nofollow noreferrer"><img src="h... | [
{
"answer_id": 74595474,
"author": "Dexter",
"author_id": 5413283,
"author_profile": "https://Stackoverflow.com/users/5413283",
"pm_score": 2,
"selected": true,
"text": "mb-2 <form method=\"get\">\n <div class=\"mb-2\">\n <label for=\"\">Order Id</label>\n <input type=\"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595246",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19143199/"
] |
74,595,253 | <p>I have a csv file called csv1.csv that looks like:</p>
<pre><code> name|surname|grade
Maier|Hans,|A
Huber|Anna|B
Weißbäck|Werner|C
</code></pre>
<p>(So my csv is a table with 4 rows and 3 columns. There are tabular lines and not "|" in my csv file - like a spreadsheet.)
My actual file is a .csv ... | [
{
"answer_id": 74595356,
"author": "rral",
"author_id": 2857542,
"author_profile": "https://Stackoverflow.com/users/2857542",
"pm_score": 2,
"selected": false,
"text": "\\documentclass{beamer}\n\n\\usepackage{csvsimple}\n \n% file content grade.csv\n\n% name,givenname,matriculation,ge... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20383481/"
] |
74,595,259 | <p>I have a warehouses dictionary (shown below) and I need to get the sum of 'tons'. The values can be at various depths in the dictionary.</p>
<pre><code>warehouses = {
"Warehouse Lisboa": [
{ "name": "apples", "tons": 4},
{ "name": "oranges&q... | [
{
"answer_id": 74595374,
"author": "Sash Sinha",
"author_id": 6328256,
"author_profile": "https://Stackoverflow.com/users/6328256",
"pm_score": 1,
"selected": false,
"text": "from typing import Union\n\ndef stock_fruits(curr: Union[dict, list]) -> int:\n if isinstance(curr, dict):\n ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20275245/"
] |
74,595,261 | <p>I have a button navigation and when you click on a button, the active class is added. My goal is for the active class to be added to the button clicked, but remove that class of active on all other buttons if present. The 'About' button will have a class of active on page load.</p>
<p>Not sure how to translate this ... | [
{
"answer_id": 74595374,
"author": "Sash Sinha",
"author_id": 6328256,
"author_profile": "https://Stackoverflow.com/users/6328256",
"pm_score": 1,
"selected": false,
"text": "from typing import Union\n\ndef stock_fruits(curr: Union[dict, list]) -> int:\n if isinstance(curr, dict):\n ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595261",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11091321/"
] |
74,595,275 | <p>I have a API post method in my react app. I need to add or remove a parameter inside the body conditionally</p>
<p>If the variable 'locale' value is 'all'.I don't need locale inside body of post method. If the 'locale' is not 'all' then I need to attach locale inside the post method.</p>
<p>I used if else..just want... | [
{
"answer_id": 74595374,
"author": "Sash Sinha",
"author_id": 6328256,
"author_profile": "https://Stackoverflow.com/users/6328256",
"pm_score": 1,
"selected": false,
"text": "from typing import Union\n\ndef stock_fruits(curr: Union[dict, list]) -> int:\n if isinstance(curr, dict):\n ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15464620/"
] |
74,595,302 | <p>I have a CSS style for a button. I don’t know how to do it. I think it’s a bit too complicated and it’s not easy to make responsive adjustments. I would like to ask everyone how to write a button like this in CSS? thanks</p>
<p><a href="https://i.stack.imgur.com/hFiKo.jpg" rel="nofollow noreferrer"><img src="https:/... | [
{
"answer_id": 74595374,
"author": "Sash Sinha",
"author_id": 6328256,
"author_profile": "https://Stackoverflow.com/users/6328256",
"pm_score": 1,
"selected": false,
"text": "from typing import Union\n\ndef stock_fruits(curr: Union[dict, list]) -> int:\n if isinstance(curr, dict):\n ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11241725/"
] |
74,595,340 | <p>I am trying to call this <code>GetProductStatus()</code> method on a page button click event, but it's loading before the button click. Means when the ViewModel is loading, this is also load automatically.</p>
<p>I would like to declared this VM method "<code>GetProductStatus()</code>" to be called only wh... | [
{
"answer_id": 74595424,
"author": "ToolmakerSteve",
"author_id": 199364,
"author_profile": "https://Stackoverflow.com/users/199364",
"pm_score": 0,
"selected": false,
"text": "class class A public ProductViewModel(..., bool doGetProductStatus)... new ProductViewModel(..., true); A.DoSom... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12399310/"
] |
74,595,348 | <p>So I have a program for this class where I'm supposed to allow the user to select a data type like byte, int, short, long, and etc. And then I am supposed to validate and make sure that the numbers they enter for the math problem aren't outside of the bounds of the data type they selected. Right now I'm using a bunc... | [
{
"answer_id": 74595696,
"author": "Gabriel Luci",
"author_id": 1202807,
"author_profile": "https://Stackoverflow.com/users/1202807",
"pm_score": 1,
"selected": false,
"text": "TryParse MinValue MaxValue public static readonly Dictionary<string, Type> aliases = new() {\n { \"byte\", t... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20618980/"
] |
74,595,359 | <pre><code>Range("TableIR000[Deductions in Month]").Copy
Range("TableIR000[Previous Deductions]").PasteSpecial xlPasteValues, Operation:=xlAdd
Range("TableIR001[Deductions in Month]").Copy
Range("TableIR001[Previous Deductions]").PasteSpecial xlPasteValues, Operation:=xlAdd
Range... | [
{
"answer_id": 74595838,
"author": "Domenic",
"author_id": 6585761,
"author_profile": "https://Stackoverflow.com/users/6585761",
"pm_score": 1,
"selected": false,
"text": "Dim listObj As ListObject\nFor Each listObj In Worksheets(\"Sheet1\").ListObjects 'change the sheet name accordingly... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20619036/"
] |
74,595,375 | <p><a href="https://i.stack.imgur.com/SxlPJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SxlPJ.png" alt="Dataframe" /></a></p>
<p>I have a dataframe as shown. I need 4 new columns [['PriceSpread_ATL', 'PriceSpread_CHI', 'PriceSpread_LA', 'PriceSpread_NY']] that are the price spreads for each marke... | [
{
"answer_id": 74595838,
"author": "Domenic",
"author_id": 6585761,
"author_profile": "https://Stackoverflow.com/users/6585761",
"pm_score": 1,
"selected": false,
"text": "Dim listObj As ListObject\nFor Each listObj In Worksheets(\"Sheet1\").ListObjects 'change the sheet name accordingly... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13127909/"
] |
74,595,376 | <p>I have a given dataframe:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>id</th>
<th>list<em>ofnumbers</em></th>
</tr>
</thead>
<tbody>
<tr>
<td>2</td>
<td>[1, 2, 5, 6, 7]</td>
</tr>
<tr>
<td>5</td>
<td>[1, 2, 13, 51, 12]</td>
</tr>
</tbody>
</table>
</div>
<p>Where one column is just i... | [
{
"answer_id": 74595638,
"author": "Learn Hadoop",
"author_id": 8726488,
"author_profile": "https://Stackoverflow.com/users/8726488",
"pm_score": 0,
"selected": false,
"text": "select \nid,regexp_split_to_table(listofnumbers,',')\nfrom test\n"
},
{
"answer_id": 74596011,
"aut... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20566782/"
] |
74,595,378 | <p>I have an issue with keeping a division active after submitting a form using AJAX. My scenario is that I have a search bar, which can take multiple types of input (Name, ID, category, etc.). Then, I have a filter bar which is basically an advanced search, it practically does the same thing but has more options like ... | [
{
"answer_id": 74597054,
"author": "Bhavik",
"author_id": 20529186,
"author_profile": "https://Stackoverflow.com/users/20529186",
"pm_score": 3,
"selected": true,
"text": "window.localStorage.setItem(\"variable\", variable);\n\nvar getItem = window.localStorage.getItem(\"variable\");\n w... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15890212/"
] |
74,595,390 | <p><strong>Edited to add solution at bottom</strong></p>
<p>I have a project created with React and Typescript.</p>
<p>There is a parent component (Home) that displays a child component depending on the value of the state variable 'currentDemo'. The goal is to have a navigation component that will display whatever item... | [
{
"answer_id": 74595649,
"author": "Muhammad Nouman Rafique",
"author_id": 19932999,
"author_profile": "https://Stackoverflow.com/users/19932999",
"pm_score": 2,
"selected": true,
"text": "{ setCurrentDemo } :any setCurrentDemo:any SidebarNav import { SetStateAction } from \"react\";\n\n... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16613979/"
] |
74,595,418 | <p>I hope my title makes sense. Basically, I want to stack an H1 on top of an H3 that I have within the same flex box. This is for an assessment for App Academy. I'm not asking for a solution. Just a bit of guidance on how to do this concept.</p>
<p>Here is the image of reference:</p>
<p><img src="https://assets.aaonli... | [
{
"answer_id": 74595649,
"author": "Muhammad Nouman Rafique",
"author_id": 19932999,
"author_profile": "https://Stackoverflow.com/users/19932999",
"pm_score": 2,
"selected": true,
"text": "{ setCurrentDemo } :any setCurrentDemo:any SidebarNav import { SetStateAction } from \"react\";\n\n... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7531876/"
] |
74,595,440 | <p>I have this form:</p>
<p><code><input type="file" name="CAR_Logo"></code><br />
<code><button data-action="save" data-name="Africa">Save</></code></p>
<p>How I can update my code to be able to upload the file ?</p>
<p>This is what I have tried:</p>
<p><code>$... | [
{
"answer_id": 74596012,
"author": "Ahmadreza Sadafi",
"author_id": 9336947,
"author_profile": "https://Stackoverflow.com/users/9336947",
"pm_score": 0,
"selected": false,
"text": "<input id=\"file\" type=\"file\" name=\"CAR_Logo\">\n $('#form').submit(function(e) {\n e.preventDefault... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20531591/"
] |
74,595,458 | <p>I am trying to implement a B-tree and from what I understand this is how you split a node:</p>
<ol>
<li>Attempt to insert a new value V at a leaf node N</li>
<li>If the leaf node has no space, create a new node and pick a middle value of N and anything right of it move to the new node and anything to the left of the... | [
{
"answer_id": 74596012,
"author": "Ahmadreza Sadafi",
"author_id": 9336947,
"author_profile": "https://Stackoverflow.com/users/9336947",
"pm_score": 0,
"selected": false,
"text": "<input id=\"file\" type=\"file\" name=\"CAR_Logo\">\n $('#form').submit(function(e) {\n e.preventDefault... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1906587/"
] |
74,595,498 | <p>I have a many2many field that represents a list of student. I want to only add student to that list but not remove any students from that list (in form view). Is it possible to implement that?</p>
| [
{
"answer_id": 74596012,
"author": "Ahmadreza Sadafi",
"author_id": 9336947,
"author_profile": "https://Stackoverflow.com/users/9336947",
"pm_score": 0,
"selected": false,
"text": "<input id=\"file\" type=\"file\" name=\"CAR_Logo\">\n $('#form').submit(function(e) {\n e.preventDefault... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9301149/"
] |
74,595,507 | <p>I am trying to add some text to an input element using a button. I have so far tried modifying .textContent - which does actually appear to modify the textContent, but this does not show up in the image box. Adjusting the .value does not seem to work.</p>
<p>My code:</p>
<pre><code>const buttons = document.querySele... | [
{
"answer_id": 74596012,
"author": "Ahmadreza Sadafi",
"author_id": 9336947,
"author_profile": "https://Stackoverflow.com/users/9336947",
"pm_score": 0,
"selected": false,
"text": "<input id=\"file\" type=\"file\" name=\"CAR_Logo\">\n $('#form').submit(function(e) {\n e.preventDefault... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20619204/"
] |
74,595,532 | <p>I'm having trouble with what seems like a very simple problem. Yet, I don't know how to fix it.</p>
<p>I am trying to clear cell A2 if and only if A1 is empty. I'm sure there is an easy solution but I don't seem to notice it. I'll share a sample spreadsheet for all of you to visualize my objective.</p>
<p><a href="h... | [
{
"answer_id": 74596012,
"author": "Ahmadreza Sadafi",
"author_id": 9336947,
"author_profile": "https://Stackoverflow.com/users/9336947",
"pm_score": 0,
"selected": false,
"text": "<input id=\"file\" type=\"file\" name=\"CAR_Logo\">\n $('#form').submit(function(e) {\n e.preventDefault... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20403203/"
] |
74,595,543 | <p>So every cell that has a value of 0, that row will be hidden. And any value that is outside the minimum and maximum values will be red.</p>
<p>How to identify red color but active (not hidden) with macro? because I used "range. displayformat. interior. color = vbred", the cells are red but hidden are a... | [
{
"answer_id": 74596107,
"author": "Thavisack VRCHDV",
"author_id": 19422735,
"author_profile": "https://Stackoverflow.com/users/19422735",
"pm_score": 1,
"selected": false,
"text": "Set rng = Range(\"Your range\").SpecialCells(xlCellTypeVisible)\n rng = ActiveCell.DisplayFormat.I... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595543",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20619259/"
] |
74,595,552 | <p>I have been struggling for hours and couldn't figuring out how to increment <code>i</code> using <code>useState([])</code>. I know <code>useState([])</code> is an asynchronous function, and I don't know how to increment <code>i</code> properly to give unique keys to each <code>Text</code></p>
<p>Here is my code -</p... | [
{
"answer_id": 74596107,
"author": "Thavisack VRCHDV",
"author_id": 19422735,
"author_profile": "https://Stackoverflow.com/users/19422735",
"pm_score": 1,
"selected": false,
"text": "Set rng = Range(\"Your range\").SpecialCells(xlCellTypeVisible)\n rng = ActiveCell.DisplayFormat.I... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595552",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18284412/"
] |
74,595,554 | <p>When writing a nested function in Go, how does the compiler treat it? Is it turned into another function and put outside the code, or does it get re-created anytime the parent function is called?</p>
<p>For example:</p>
<pre><code>func FuncA() int {
a := 0
funcB := func(_a int) int {
return _a
}
... | [
{
"answer_id": 74596030,
"author": "Burak Serdar",
"author_id": 11923999,
"author_profile": "https://Stackoverflow.com/users/11923999",
"pm_score": 2,
"selected": false,
"text": " func FuncA() int {\n a := 0\n funcB := func() int {\n return a\n }\n return funcB()\n}\n ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4701022/"
] |
74,595,570 | <p>Given a <code>sorted list</code>, and a variable <code>n</code>, I want to break up the <code>list</code> into <code>n</code> parts. With <code>n = 3,</code> I expect three <code>lists</code>, with the last one taking on the <code>overflow</code>.</p>
<p>I expect: <code>0,1,2,3,4,5</code>, <code>6,7,8,9,10,11</code>... | [
{
"answer_id": 74597198,
"author": "Rufus L",
"author_id": 2052655,
"author_profile": "https://Stackoverflow.com/users/2052655",
"pm_score": 1,
"selected": false,
"text": "Console.Write Console.WriteLine() PadRight static void Main(string[] args)\n{\n var numItems = 18;\n var split... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595570",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/817659/"
] |
74,595,617 | <p>I am using the MauiCommunityToolkit and builder.ConfigureLifeCycleEvents in MauiProgram.cs like this:</p>
<pre><code> // Initialise the toolkit
builder.UseMauiApp<App>().UseMauiCommunityToolkit();
// the rest of the logic...
builder.ConfigureLifecycleEvents(events =>
... | [
{
"answer_id": 74595734,
"author": "Jason",
"author_id": 1338,
"author_profile": "https://Stackoverflow.com/users/1338",
"pm_score": 0,
"selected": false,
"text": "App.Current.OnStart += MyEventHandler;\n"
},
{
"answer_id": 74610088,
"author": "Liyun Zhang - MSFT",
"autho... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1374091/"
] |
74,595,618 | <p>I want to make tokens available for only 30 minutes to users. This is doable if we configure token lifetime policy but it's not working as I still get tokens valid for 1 hour.</p>
<p>Followed this suggested documentation <a href="https://learn.microsoft.com/en-us/azure/active-directory/develop/configure-token-lifeti... | [
{
"answer_id": 74595734,
"author": "Jason",
"author_id": 1338,
"author_profile": "https://Stackoverflow.com/users/1338",
"pm_score": 0,
"selected": false,
"text": "App.Current.OnStart += MyEventHandler;\n"
},
{
"answer_id": 74610088,
"author": "Liyun Zhang - MSFT",
"autho... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20045451/"
] |
74,595,636 | <p>Suppose I have a Player Struct inside list</p>
<pre class="lang-elixir prettyprint-override"><code>[
%Player{name: "John", role: "nil"},
%Player{name: "Sansa", role: "nil"},
%Player{name: "Barry", role: "nil"},
%Player{name: "Edward", role... | [
{
"answer_id": 74595666,
"author": "sabiwara",
"author_id": 13979518,
"author_profile": "https://Stackoverflow.com/users/13979518",
"pm_score": 3,
"selected": true,
"text": "Enum.zip/2 Enum.zip_with/3 Enum.zip_with(players, roles, fn player, role -> Map.put(player, :role, role) end)\n"
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11817809/"
] |
74,595,637 | <p>I am building a Django application (run in local) and I am having headaches about uploading files/pictures. I have read tons of questions/answers everywhere as well as followed the official doc, but somehow I still have problems.</p>
<p>In my models.py:</p>
<pre><code>FuncionarioPathFoto = models.FileField(
... | [
{
"answer_id": 74595666,
"author": "sabiwara",
"author_id": 13979518,
"author_profile": "https://Stackoverflow.com/users/13979518",
"pm_score": 3,
"selected": true,
"text": "Enum.zip/2 Enum.zip_with/3 Enum.zip_with(players, roles, fn player, role -> Map.put(player, :role, role) end)\n"
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20557228/"
] |
74,595,648 | <p>Why can't I use boolean?</p>
<p>I want to check whether I am an admin or not.
and hide the button or disable the button</p>
<pre><code> const Authenticate = useSelector(userSelector)
let check :boolean = true;
<Link href="/stock" passHref className={Authenticate.level != 'admin' ? check=false:check=t... | [
{
"answer_id": 74595666,
"author": "sabiwara",
"author_id": 13979518,
"author_profile": "https://Stackoverflow.com/users/13979518",
"pm_score": 3,
"selected": true,
"text": "Enum.zip/2 Enum.zip_with/3 Enum.zip_with(players, roles, fn player, role -> Map.put(player, :role, role) end)\n"
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19032198/"
] |
74,595,653 | <p>I want my <code>App</code> component to display keys every time <code>keys</code> changes. I'm doing this by passed keys as a <code>prop</code> of <code>App</code>:</p>
<pre><code>import * as React from "react";
import { render } from "react-dom";
import { useState, useEffect } from "react&q... | [
{
"answer_id": 74595666,
"author": "sabiwara",
"author_id": 13979518,
"author_profile": "https://Stackoverflow.com/users/13979518",
"pm_score": 3,
"selected": true,
"text": "Enum.zip/2 Enum.zip_with/3 Enum.zip_with(players, roles, fn player, role -> Map.put(player, :role, role) end)\n"
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/122536/"
] |
74,595,656 | <p>I'm really struggling with alignment here; I've spent hours looking online but to no avail. The circle, "Welcome to" text and rectangle are too far apart from each other like in the image below
<a href="https://i.stack.imgur.com/BuZTA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BuZTA... | [
{
"answer_id": 74595666,
"author": "sabiwara",
"author_id": 13979518,
"author_profile": "https://Stackoverflow.com/users/13979518",
"pm_score": 3,
"selected": true,
"text": "Enum.zip/2 Enum.zip_with/3 Enum.zip_with(players, roles, fn player, role -> Map.put(player, :role, role) end)\n"
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14597497/"
] |
74,595,679 | <p>I'm trying to capture words in a string such that the first word starts with an s, and the regex stops matching if the next word also starts with an s.</p>
<p>For example. I have the string " Stack, Code and StackOverflow". I want to capture only " Stack, Code and " and not include "StackOve... | [
{
"answer_id": 74595666,
"author": "sabiwara",
"author_id": 13979518,
"author_profile": "https://Stackoverflow.com/users/13979518",
"pm_score": 3,
"selected": true,
"text": "Enum.zip/2 Enum.zip_with/3 Enum.zip_with(players, roles, fn player, role -> Map.put(player, :role, role) end)\n"
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20619368/"
] |
74,595,685 | <p>I am working on a piece of code that is supposed to randomly display a view count on my site. It all works fine, except that it only runs once on page load. Its supposed to change the view count every 10 seconds after the initial first run. E.g. run this code snippet every 10 seconds after page load. I have tried mu... | [
{
"answer_id": 74595718,
"author": "brk",
"author_id": 2181397,
"author_profile": "https://Stackoverflow.com/users/2181397",
"pm_score": 1,
"selected": false,
"text": "setInterval DOMContentLoaded function elementDisplay() {\n // Minimum view count\n var minViews = 2;\n // Maximum vie... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9075184/"
] |
74,595,687 | <p>I want to save my process definition. But so far, I only know that my process files will be saved when deploying.</p>
<p>But I just want to save without deploying.</p>
<p>How can I do this ?</p>
| [
{
"answer_id": 74595718,
"author": "brk",
"author_id": 2181397,
"author_profile": "https://Stackoverflow.com/users/2181397",
"pm_score": 1,
"selected": false,
"text": "setInterval DOMContentLoaded function elementDisplay() {\n // Minimum view count\n var minViews = 2;\n // Maximum vie... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20376176/"
] |
74,595,703 | <p>After submission for review, I got this from Apple review:</p>
<blockquote>
<p>We noticed that your app requests the user’s consent to access the camera and photos, but doesn’t sufficiently explain the use of the camera and photos in the purpose string.</p>
</blockquote>
<p>In my app, camera and gallery access is ne... | [
{
"answer_id": 74595778,
"author": "Kamlendra Pandey",
"author_id": 5340621,
"author_profile": "https://Stackoverflow.com/users/5340621",
"pm_score": 1,
"selected": false,
"text": "<key>NSCameraUsageDescription</key>\n <string>Access to your camera is required to capture photos requir... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16146701/"
] |
74,595,711 | <p>I am using <code>.cshtml</code> to send a <code>POST</code> request to my controller. The following is my <code>.cshtml</code> form.</p>
<pre class="lang-cs prettyprint-override"><code>@using (Html.BeginForm("PostTest, "Test", FormMethod.Post))
{
<input type="number" name="test&q... | [
{
"answer_id": 74596238,
"author": "hossein sabziani",
"author_id": 4301195,
"author_profile": "https://Stackoverflow.com/users/4301195",
"pm_score": 1,
"selected": false,
"text": "check if it convert into a int is in the desired range [HttpPost]\n public ActionResult PostTest(str... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595711",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19561210/"
] |
74,595,712 | <p>I have tried to run a pretty simple code</p>
<pre><code>x = input("What's x? ")
y = input("What's y? ")
z= int(x) + int(y)
print (z)
</code></pre>
<p>But, when I try to run that code from the terminal writing "name_of_the_file.py", I find this error:</p>
<p>"The term "name_... | [
{
"answer_id": 74596732,
"author": "JialeDu",
"author_id": 19133920,
"author_profile": "https://Stackoverflow.com/users/19133920",
"pm_score": 1,
"selected": false,
"text": "& c:/WorkSpace/pytest11/.venv/Scripts/python.exe c:/WorkSpace/pytest11/main.py python main.py\n main.py"
}
] | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595712",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20619489/"
] |
74,595,714 | <p>I have an infinite loop thread that sets an event when a sensor is high/true</p>
<pre><code>event = threading.Event()
def eventSetter():
while True:
if sensor:
event.set()
else:
event.clear()
th1 = threading.thread(target=eventSetter)
th1.start
</code></pre>
<p>and I ha... | [
{
"answer_id": 74596732,
"author": "JialeDu",
"author_id": 19133920,
"author_profile": "https://Stackoverflow.com/users/19133920",
"pm_score": 1,
"selected": false,
"text": "& c:/WorkSpace/pytest11/.venv/Scripts/python.exe c:/WorkSpace/pytest11/main.py python main.py\n main.py"
}
] | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12171816/"
] |
74,595,716 | <p>I want Odoo to show an Xpath or not, depending on a condition</p>
<p>I have this 3 fields</p>
<pre><code>lots_id = fields.Many2one('stock.production.lot', 'Lot/Serial Number')
q_auth = fields.Boolean(related='lot_id.q_auth', string="Quality Auth.")
needs_auth= fields.Boolean("Needs Auth")
</code>... | [
{
"answer_id": 74596732,
"author": "JialeDu",
"author_id": 19133920,
"author_profile": "https://Stackoverflow.com/users/19133920",
"pm_score": 1,
"selected": false,
"text": "& c:/WorkSpace/pytest11/.venv/Scripts/python.exe c:/WorkSpace/pytest11/main.py python main.py\n main.py"
}
] | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595716",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19883757/"
] |
74,595,730 | <p>Hi How would I be able to convert millisecond to HH:MM:SS format in mongodb? Below is my sample data.</p>
<pre><code>{
"Item":"Test1",
"millisecond" : 188760000
},
{
"Item":"Test2",
"millisecond" : 23280000
},
{
"Item":"Te... | [
{
"answer_id": 74595782,
"author": "Victor Lagunas",
"author_id": 10038617,
"author_profile": "https://Stackoverflow.com/users/10038617",
"pm_score": 0,
"selected": false,
"text": "{$toDate: 120000000000.5}. \n//result ISODate(\"1973-10-20T21:20:00Z\")\n"
},
{
"answer_id": 745973... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16478523/"
] |
74,595,732 | <p>When I customize the theme to set a font...</p>
<ol>
<li>some text gets properly styled (e.g. <code><mat-card-title> <mat-card-action></code> etc)</li>
<li>but some other does not (e.g. <code><p> <span> <mat-card-content></code>) and default to Roboto... <strong>Shouldn't those take the... | [
{
"answer_id": 74614277,
"author": "rexsuecia",
"author_id": 1007013,
"author_profile": "https://Stackoverflow.com/users/1007013",
"pm_score": 2,
"selected": false,
"text": "@include mat.all-component-typographies($typography); @include mat.all-component-themes($my-theme); $typography"
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/850438/"
] |
74,595,772 | <p>I have a dataframe <code>df</code> where one column <code>'Images'</code> contains a bunch of HTML strings in each row from which I would like to extract URLs, that have a specific <code>Start</code> and <code>End</code> characters. Ideally they would then be turned into columns for each URL extracted.</p>
<p><code>... | [
{
"answer_id": 74614277,
"author": "rexsuecia",
"author_id": 1007013,
"author_profile": "https://Stackoverflow.com/users/1007013",
"pm_score": 2,
"selected": false,
"text": "@include mat.all-component-typographies($typography); @include mat.all-component-themes($my-theme); $typography"
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11332149/"
] |
74,595,784 | <p>In addition to pointers, C++ also provides references that behave similarly. In addition to these built-in types, it also gives the option to construct custom types that mimic this behavior.</p>
<p>Take these two custom types:</p>
<pre class="lang-cpp prettyprint-override"><code>class Ptr
{
private:
int inner_;
... | [
{
"answer_id": 74596984,
"author": "Ayxan Haqverdili",
"author_id": 10147399,
"author_profile": "https://Stackoverflow.com/users/10147399",
"pm_score": 2,
"selected": false,
"text": "operator. ref.foo() std::reference_wrapper ref.get().foo()"
},
{
"answer_id": 74621453,
"auth... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3560202/"
] |
74,595,788 | <p>I would like to add new inputs using jQuery, however, after clicking the add input which uses jQuery to add another of such element below, it removes the inputs before.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippe... | [
{
"answer_id": 74595840,
"author": "Ali Sheikhpour",
"author_id": 4700922,
"author_profile": "https://Stackoverflow.com/users/4700922",
"pm_score": -1,
"selected": false,
"text": "document.getElementById('demo').innerHTML innerHTML append"
},
{
"answer_id": 74596104,
"author"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16806358/"
] |
74,595,789 | <p>In my backend, which is nodejs for information only, the data is returned fine</p>
<p>But I had to populate the data returned in the response</p>
<p>To show the name of the user, not his ID</p>
<p>The response returns in the following form</p>
<p><a href="https://i.stack.imgur.com/4m2AL.png" rel="nofollow noreferrer... | [
{
"answer_id": 74596392,
"author": "Tehila",
"author_id": 16142839,
"author_profile": "https://Stackoverflow.com/users/16142839",
"pm_score": 1,
"selected": false,
"text": "Section item.data?.addedBy.realName ? isTicketCreated item Section const [item] = TicketsDetailsHook(id); data cons... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10598318/"
] |
74,595,796 | <p>check_df has two column one with code and other is blank
in_df has 2 column one is merged column and other is V_ORG_UNIT_NAME_LEVEL14.</p>
<p>I want to check each code of "V_ORG_UNIT_CODE" from check_df inside "merged column from in_df.
If it matches(it may contain that value may not be exact match) i... | [
{
"answer_id": 74596392,
"author": "Tehila",
"author_id": 16142839,
"author_profile": "https://Stackoverflow.com/users/16142839",
"pm_score": 1,
"selected": false,
"text": "Section item.data?.addedBy.realName ? isTicketCreated item Section const [item] = TicketsDetailsHook(id); data cons... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11344916/"
] |
74,595,808 | <p>I have an array like this</p>
<pre><code>[
123456 => 'John Doe'
654321 => 'Doe John'
]
</code></pre>
<p>I want to change the array key (123456 and 654321) into an index (0,1,2,3,....,n) and save it into value, the expected result looks like this</p>
<pre><code>array(
0 => array(
'name' =... | [
{
"answer_id": 74596392,
"author": "Tehila",
"author_id": 16142839,
"author_profile": "https://Stackoverflow.com/users/16142839",
"pm_score": 1,
"selected": false,
"text": "Section item.data?.addedBy.realName ? isTicketCreated item Section const [item] = TicketsDetailsHook(id); data cons... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19591044/"
] |
74,595,810 | <p>I'm trying to create 3 arrays of type int using malloc, then initialize all 3 arrays to the same value (10) in a for look, like this:</p>
<pre><code>#include <stdio.h>
#include <stdlib.h>
int main() {
int* arr1;
int* arr2;
int* arr3;
arr1 =(int*) malloc(5* sizeof(int));
arr2 = (int*)... | [
{
"answer_id": 74596392,
"author": "Tehila",
"author_id": 16142839,
"author_profile": "https://Stackoverflow.com/users/16142839",
"pm_score": 1,
"selected": false,
"text": "Section item.data?.addedBy.realName ? isTicketCreated item Section const [item] = TicketsDetailsHook(id); data cons... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20619544/"
] |
74,595,824 | <p>This is my Object:</p>
<pre><code>{
"title": "Student Details",
"education": "under graduate",
"courses": [
{
"courseCode": "101",
"course": "Physics"
},
{
... | [
{
"answer_id": 74595830,
"author": "Sachila Ranawaka",
"author_id": 6428638,
"author_profile": "https://Stackoverflow.com/users/6428638",
"pm_score": 2,
"selected": false,
"text": "find map let ans = temp.courses.find(obj => obj.course === 'Math' )\n\nconsole.log(ans?.courseCode)\n"
},... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10419901/"
] |
74,595,848 | <p>The following code:</p>
<pre><code>{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
class C (f :: Type -> Type) where
g :: String -> f a
class D a where
h :: C f => a -> f a
instance C Maybe where
g _ = Nothing
instance C (Either String) where
g = Left
instanc... | [
{
"answer_id": 74602016,
"author": "Noughtmare",
"author_id": 15207568,
"author_profile": "https://Stackoverflow.com/users/15207568",
"pm_score": 1,
"selected": false,
"text": "f data E (f :: Type -> Type) a = MkE (f a)\n\nfoo :: E Maybe Int\nfoo = MkE Nothing\n\nbar :: E Maybe NewInt\nb... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/525980/"
] |
74,595,866 | <p>I'm developing a TicTacToe game and faced with a some problem.<br />
After put the "X" I need to change <code>changeMove</code> to <code>true</code> in <code>ChangeMove()</code> function to put next move as "O" in another place.
I need to check <code>place.sprite == null</code> too, because I don... | [
{
"answer_id": 74602016,
"author": "Noughtmare",
"author_id": 15207568,
"author_profile": "https://Stackoverflow.com/users/15207568",
"pm_score": 1,
"selected": false,
"text": "f data E (f :: Type -> Type) a = MkE (f a)\n\nfoo :: E Maybe Int\nfoo = MkE Nothing\n\nbar :: E Maybe NewInt\nb... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18006503/"
] |
74,595,889 | <p>I have a select field populated from the database table 'Grade'. It displays Grade objects instead of 'Grade 1', 'Grade 2', 'Grade 3' etc. How can I populate the select to display the texts.
<a href="https://i.stack.imgur.com/e8pgv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e8pgv.png" alt="Cu... | [
{
"answer_id": 74595949,
"author": "Mahammadhusain kadiwala",
"author_id": 19205926,
"author_profile": "https://Stackoverflow.com/users/19205926",
"pm_score": 2,
"selected": false,
"text": "class Grade(models.Model):\n grade_id = models.AutoField(primary_key=True)\n grade_name = mo... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19313505/"
] |
74,595,908 | <p>I am starting my first VB project and need to connect to SQL Server. The type <code>SqlConnection</code> is unknown even though the namespace <code>System.Data.SqlClient</code> is present.</p>
<p>I'm unable to move beyond this.</p>
<p>I have stripped the code back to essential lines that demonstrate.</p>
<p>I have d... | [
{
"answer_id": 74595949,
"author": "Mahammadhusain kadiwala",
"author_id": 19205926,
"author_profile": "https://Stackoverflow.com/users/19205926",
"pm_score": 2,
"selected": false,
"text": "class Grade(models.Model):\n grade_id = models.AutoField(primary_key=True)\n grade_name = mo... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20619494/"
] |
74,595,928 | <p>i want to call data api based on the selected parameters, but i'm having a bit of trouble and this has been going on for a few days and it's still not done.</p>
<blockquote>
<p>this is the api you want to fetch data from. and also I marked the
parameters.</p>
</blockquote>
<p><a href="https://i.stack.imgur.com/yuMKm... | [
{
"answer_id": 74595949,
"author": "Mahammadhusain kadiwala",
"author_id": 19205926,
"author_profile": "https://Stackoverflow.com/users/19205926",
"pm_score": 2,
"selected": false,
"text": "class Grade(models.Model):\n grade_id = models.AutoField(primary_key=True)\n grade_name = mo... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19132574/"
] |
74,595,932 | <p>I'm building a word-game in React that, previously, would send user-made words to an online dictionary API as a fetch request, in order to validate the words. However, the servers for the API have been down recently and I no longer want to rely on a third-party in order for my game to work. I had the idea previously... | [
{
"answer_id": 74596003,
"author": "Chris Hamilton",
"author_id": 12914833,
"author_profile": "https://Stackoverflow.com/users/12914833",
"pm_score": 2,
"selected": false,
"text": "includes if (data[orderedInput.toLowerCase()]) {\n dispatch(actions)\nelse {\n dispatch(other actions)\n}... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17844571/"
] |
74,595,933 | <p>How do I change the text of p element to "Congratulations" when the "Start chaining" button is clicked. I want to add another chaining method to do that.</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title... | [
{
"answer_id": 74595953,
"author": "Thulitha Gurusinghe",
"author_id": 18212224,
"author_profile": "https://Stackoverflow.com/users/18212224",
"pm_score": 0,
"selected": false,
"text": ".text('Congratulations');"
},
{
"answer_id": 74595973,
"author": "Shashank Malviya",
"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18212224/"
] |
74,595,943 | <pre><code><?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" package="com.xam.mobileapp" xmlns:tools="http://schemas.android.com/tools" android:versionName="... | [
{
"answer_id": 74595953,
"author": "Thulitha Gurusinghe",
"author_id": 18212224,
"author_profile": "https://Stackoverflow.com/users/18212224",
"pm_score": 0,
"selected": false,
"text": ".text('Congratulations');"
},
{
"answer_id": 74595973,
"author": "Shashank Malviya",
"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595943",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20601909/"
] |
74,595,947 | <p>I produced 119 logistic regression models with lapply. I then used lapply again to get the coefficients and p-values in a summary format</p>
<pre><code>#Model 1
#looping through the different metabolites to produce over 100 logistic
regression models. For hpresponse1. Minimally adjusted
response1minadj<-lapply(m... | [
{
"answer_id": 74595953,
"author": "Thulitha Gurusinghe",
"author_id": 18212224,
"author_profile": "https://Stackoverflow.com/users/18212224",
"pm_score": 0,
"selected": false,
"text": ".text('Congratulations');"
},
{
"answer_id": 74595973,
"author": "Shashank Malviya",
"... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595947",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20302818/"
] |
74,595,996 | <p>I'm brand new to python and am using the "Job Ready for Python" as a first text and ran across this chapter 4 problem that I can't get my head around:</p>
<p><em>Create a program that prompts the user to a number and then displays the type of number entered(e.g., complex, integer, or a float).</em></p>
<p>... | [
{
"answer_id": 74596032,
"author": "Shrirang Mahajan",
"author_id": 17353907,
"author_profile": "https://Stackoverflow.com/users/17353907",
"pm_score": 1,
"selected": false,
"text": "age = input(\"Enter your age :\")\nprint(type(age))\n str age = int(input(\"Enter your age :\"))\nprint(t... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74595996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20619807/"
] |
74,596,023 | <p>Models:</p>
<pre><code>class Employee(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE, default=1,related_name='Employee')
eid = models.IntegerField(primary_key=True)
salary = models.IntegerField(null=True, blank=True)
gender = models.CharField(max_length=6, choices=GENDER_CH... | [
{
"answer_id": 74596456,
"author": "Naser Fazal khan",
"author_id": 19313399,
"author_profile": "https://Stackoverflow.com/users/19313399",
"pm_score": 0,
"selected": false,
"text": "Breaks.objects.filter(date__range=[\"2011-01-01\", \"2011-01-31\"])\n Breaks.objects.filter(date__year='2... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20173041/"
] |
74,596,027 | <p>I’m getting the error:</p>
<p>ModuleNotFoundError: No module named ‘webdriver_manager.Edge’. My Code is:</p>
<pre><code>from selenium import webdriver
from selenium.webdriver.edge.options import Options
from selenium.webdriver.edge.service import Service
from webdriver_manager.Edge import ChromeDriverManager
def Mo... | [
{
"answer_id": 74596456,
"author": "Naser Fazal khan",
"author_id": 19313399,
"author_profile": "https://Stackoverflow.com/users/19313399",
"pm_score": 0,
"selected": false,
"text": "Breaks.objects.filter(date__range=[\"2011-01-01\", \"2011-01-31\"])\n Breaks.objects.filter(date__year='2... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17054993/"
] |
74,596,046 | <p>I want to make a dataframe from web scrapping this page : <a href="https://www.airlinequality.com/airline-reviews/british-airways" rel="nofollow noreferrer">https://www.airlinequality.com/airline-reviews/british-airways</a>.</p>
<p>The value i have is reviews from passenger and rating that passenger give, but i dont... | [
{
"answer_id": 74596094,
"author": "Kris",
"author_id": 995052,
"author_profile": "https://Stackoverflow.com/users/995052",
"pm_score": 0,
"selected": false,
"text": "DataFrame from pandas import DataFrame\n\ncategory = [\"Aircraft\", 'Type of Traveller', 'Seat Type']\nrating = ['A320', ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596046",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18388803/"
] |
74,596,050 | <p>Trying to implement user authorization through Firebase in a new React project.</p>
<pre class="lang-js prettyprint-override"><code> import { User } from '@firebase/auth-types';
// ...
const [user, setUser] = useState<User | null>(null);
const auth = getAuth();
onAuthStateChanged(auth, (newUser) =... | [
{
"answer_id": 74597780,
"author": "Tigran Petrosyan",
"author_id": 10422933,
"author_profile": "https://Stackoverflow.com/users/10422933",
"pm_score": 0,
"selected": false,
"text": "useEffect(() =>{\n const unlisten = onAuthStateChanged(\n authUser => {\n authU... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19379011/"
] |
74,596,066 | <p>I want to perform a fill-down activity in PgSQL</p>
<p>DDL:</p>
<pre><code>create table brands
(
id int,
category varchar(20),
brand_name varchar(20)
);
insert into brands values
(1,'chocolates','5-star')
,(2,null,'dairy milk')
,(3,null,'perk')
,(4,null,'eclair')
,(5,'Biscuits','britannia')
,(6,null,'good day')
,(7... | [
{
"answer_id": 74596260,
"author": "JHH",
"author_id": 20127235,
"author_profile": "https://Stackoverflow.com/users/20127235",
"pm_score": 3,
"selected": true,
"text": "with cte as (\nselect id,\n category,\n count(category) over (order by id) as category_id,\n brand_na... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16640543/"
] |
74,596,071 | <p>I was writing a code to append a card with a new header every time a button is pressed also the header is dynamically providing by user. the problem is i cant make the function work properly for more than one card. I know the problem is that every card has the same class hence the new header will be appended to each... | [
{
"answer_id": 74596260,
"author": "JHH",
"author_id": 20127235,
"author_profile": "https://Stackoverflow.com/users/20127235",
"pm_score": 3,
"selected": true,
"text": "with cte as (\nselect id,\n category,\n count(category) over (order by id) as category_id,\n brand_na... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20619829/"
] |
74,596,098 | <p>Some time ago I <code>git fetch</code> a branch from a remote repo.
Let's call it <code>origin/thebranch</code>
So I had that and also my local <code>thebranch</code>
I checkout a new branch on top of that and did my work
Later I push that new branch into the remote after rebasing it to the latest master</p>
<p>The ... | [
{
"answer_id": 74596260,
"author": "JHH",
"author_id": 20127235,
"author_profile": "https://Stackoverflow.com/users/20127235",
"pm_score": 3,
"selected": true,
"text": "with cte as (\nselect id,\n category,\n count(category) over (order by id) as category_id,\n brand_na... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596098",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4451521/"
] |
74,596,124 | <p>I think this problem is to use Popup or eventHandler. But when i used Popup, The circle is created but not removed.
And I have no idea how to make a circle using eventHandlers.
This First Code is use popup about this porblem.</p>
<pre><code> <MapContainer
center={[48.864716, 2.349]}
... | [
{
"answer_id": 74596260,
"author": "JHH",
"author_id": 20127235,
"author_profile": "https://Stackoverflow.com/users/20127235",
"pm_score": 3,
"selected": true,
"text": "with cte as (\nselect id,\n category,\n count(category) over (order by id) as category_id,\n brand_na... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20619840/"
] |
74,596,125 | <p>I have this dataframe</p>
<pre><code>d = {
'geoid': ['13085970205'],
'FIPS': ['13085'],
'Year': [2024],
'parameters': [{"Year": 2024, "hpi_prediction": 304.32205}],
'geometry':[
{
"coordinates": [[[[-84.126456, 34.389734], [-84.12641, 34.39026], [... | [
{
"answer_id": 74596214,
"author": "Michael Delgado",
"author_id": 3888719,
"author_profile": "https://Stackoverflow.com/users/3888719",
"pm_score": 1,
"selected": false,
"text": "shapely shapely.geometry.shape In [10]: shape = shapely.geometry.shape(\n ...: {\n ...: ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596125",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7700802/"
] |
74,596,129 | <p>I'm trying to use typing with a function that has conditional parameters, that works like this:</p>
<pre><code>from typing import Optional, Union
class Foo:
some_param_to_check: str = 'foo_name'
one_param_exclusive_to_foo: int
class Bar:
some_param_to_check: str = 'bar_name'
another_param_exclusi... | [
{
"answer_id": 74596218,
"author": "Azer",
"author_id": 9246344,
"author_profile": "https://Stackoverflow.com/users/9246344",
"pm_score": 1,
"selected": false,
"text": "some_process_that_returns_a_bool some_param_to_check None None some_process_that_returns_a_bool None f_or_b None def so... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/795433/"
] |
74,596,149 | <p>I tried to display snackBar at the bottom when an error occurs by using the try ... catch syntax as shown below, but for some reason, it is not displayed. Does anyone have a solution for this?</p>
<pre><code> Widget _confirmButton() {
return SizedBox(
height: 54,
width: double.infinity,
chil... | [
{
"answer_id": 74596870,
"author": "Paulo",
"author_id": 15649348,
"author_profile": "https://Stackoverflow.com/users/15649348",
"pm_score": 3,
"selected": true,
"text": "_tryValidation resetPassword throw 500;\n try {\n throw 500;\n} catch (e) {\n const snackBar = SnackBar(\n conten... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19443112/"
] |
74,596,166 | <p>I have a forum system where user A refers user B. Then user B refers user C. Only then it should be allowed to view. And I want to list user C under user A as well. Here is the code I tried to use. It generated uid of B successfully. But I am unable to get to C part. Here is the code.</p>
<pre><code>
// Create conn... | [
{
"answer_id": 74596870,
"author": "Paulo",
"author_id": 15649348,
"author_profile": "https://Stackoverflow.com/users/15649348",
"pm_score": 3,
"selected": true,
"text": "_tryValidation resetPassword throw 500;\n try {\n throw 500;\n} catch (e) {\n const snackBar = SnackBar(\n conten... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20619949/"
] |
74,596,280 | <p>i have this parrent <strong>baby_login</strong> file
it has a google sign up button which is a componet with file name <strong>Sign</strong>
when i click on the button i want <strong>userInfo</strong> to pass from <strong>sign.js</strong> to <strong>Signupfor.js</strong> how can i achive this ?</p>
<pre><code>exp... | [
{
"answer_id": 74596516,
"author": "Asmeeta Rathod",
"author_id": 14990516,
"author_profile": "https://Stackoverflow.com/users/14990516",
"pm_score": -1,
"selected": false,
"text": "Sign export default function Baby_login(props) {\n return (\n <View style={styles.prheight}>\n <I... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596280",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17814678/"
] |
74,596,303 | <p>Table headings through the table are being converted into single column headings.</p>
<pre><code>url = "https://www.environment.nsw.gov.au/topics/animals-and-plants/threatened-species/programs-legislation-and-framework/nsw-koala-strategy/local-government-resources-for-koala-conservation/north-coast-koala-manage... | [
{
"answer_id": 74596556,
"author": "DYZ",
"author_id": 4492932,
"author_profile": "https://Stackoverflow.com/users/4492932",
"pm_score": 2,
"selected": false,
"text": "read_html <thead> BeautifulSoup import bs4\nimport urllib.request\n\nsoup = bs4.BeautifulSoup(urllib.request.urlopen(url... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20008689/"
] |
74,596,373 | <p>I wrote a code in C to find the odd numbers from a given interval of min and max number. The function works well when it is inside the int main() but not well when outside the program as a function.</p>
<p>What's more is that it also prints the incremented number outside the max number given.</p>
<p>This is the code... | [
{
"answer_id": 74596490,
"author": "user8811698",
"author_id": 8811698,
"author_profile": "https://Stackoverflow.com/users/8811698",
"pm_score": 1,
"selected": false,
"text": "int odd_numbers #include <stdio.h>\n\n// My Function\nvoid odd_numbers(int x, int y) \n{\n int i = 0;\n fo... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19355117/"
] |
74,596,381 | <p>How do I get the column name of two tables in a single query ?</p>
<pre><code>SELECT column_name
FROM INFORMATION_SCHEMA.COLUMNS
where table_name = 'table_name';
</code></pre>
<p>This works for single table. But if I try</p>
<pre><code>SELECT column_name
FROM INFORMATION_SCHEMA.COLUMNS
where table_name = 'table1... | [
{
"answer_id": 74596490,
"author": "user8811698",
"author_id": 8811698,
"author_profile": "https://Stackoverflow.com/users/8811698",
"pm_score": 1,
"selected": false,
"text": "int odd_numbers #include <stdio.h>\n\n// My Function\nvoid odd_numbers(int x, int y) \n{\n int i = 0;\n fo... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18743683/"
] |
74,596,393 | <p>I have 2 lists which each have 10 value and i want to multiply the values.</p>
<pre><code>import random
n1_r = random.sample(range(1, 100), 10)
n2_r = random.sample(range(1, 100), 10)
n1 = n1_r
n2 = n2_r
</code></pre>
<p>for example I want to multiply the first value from <code>n1</code> with the first value in <c... | [
{
"answer_id": 74596433,
"author": "Krishnan Suresh",
"author_id": 19590758,
"author_profile": "https://Stackoverflow.com/users/19590758",
"pm_score": 3,
"selected": true,
"text": "n3 = [a * b for a, b in zip(n1, n2)]\n"
},
{
"answer_id": 74596434,
"author": "tijko",
"aut... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20434466/"
] |
74,596,396 | <p>I'm new to Python coming from a JavaScript background. I'm trying to find a solution for the following. I want to build a dictionary from list data on the fly. I only want to add the list entries that are unique, with a count of 1. Any repeats thereafter I want to keep a count of. Hence from a list containing <code>... | [
{
"answer_id": 74596878,
"author": "Chuck",
"author_id": 1187650,
"author_profile": "https://Stackoverflow.com/users/1187650",
"pm_score": -1,
"selected": false,
"text": "data = [\"one\", \"two\", \"three\", \"one\"]\nnew_dict = {}\n\n\nfor x in data:\n if x in new_dict:\n new_dict[x... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1187650/"
] |
74,596,399 | <p>lets say I have a dataframe like below</p>
<pre><code>+------+------+------+-------------+
| A | B | C | devisor_col |
+------+------+------+-------------+
| 2 | 4 | 10 | 2 |
| 3 | 3 | 9 | 3 |
| 10 | 25 | 40 | 10 |
+------+------+------+-------------+
</co... | [
{
"answer_id": 74596878,
"author": "Chuck",
"author_id": 1187650,
"author_profile": "https://Stackoverflow.com/users/1187650",
"pm_score": -1,
"selected": false,
"text": "data = [\"one\", \"two\", \"three\", \"one\"]\nnew_dict = {}\n\n\nfor x in data:\n if x in new_dict:\n new_dict[x... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74596399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4377095/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.