qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,580,710
<p>In Dart, when two or more tasks are waiting on the same Future, when the Future completes, do the tasks get notified/run in the order that they did the await i.e. the first to do an await is the first to run.</p> <p>Is this code guaranteed to output 2</p> <pre><code>int res = 0; Future&lt;void&gt; foo1 () async { ...
[ { "answer_id": 74580757, "author": "Ska Lee", "author_id": 14695961, "author_profile": "https://Stackoverflow.com/users/14695961", "pm_score": 0, "selected": false, "text": "int res = 0;\n\nFuture<void> foo1() async {\n await Future.delayed(const Duration(seconds: 2));\n print('foo1 me...
2022/11/26
[ "https://Stackoverflow.com/questions/74580710", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10818491/" ]
74,580,716
<p>My code is fine, but there is an outstanding exception.</p> <pre><code>#include &lt;iostream&gt; using namespace std; class Book { public: string title; string ISBN; double price; Book(string title_B, string ISBN_B, double price_B ) : title{title_B}, ISBN{ISBN_B}, price{price_B} {} void ShowBook...
[ { "answer_id": 74580757, "author": "Ska Lee", "author_id": 14695961, "author_profile": "https://Stackoverflow.com/users/14695961", "pm_score": 0, "selected": false, "text": "int res = 0;\n\nFuture<void> foo1() async {\n await Future.delayed(const Duration(seconds: 2));\n print('foo1 me...
2022/11/26
[ "https://Stackoverflow.com/questions/74580716", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,580,745
<p>I have a class with list of class members (variabls), each assigned to its own value.</p> <pre><code>class PacketType: HEARTBEAT = 0xF0 DEBUG = 0xFC ECHO = 0xFF @staticmethod def get_name(value): # Get variable name from value # Print the variable in strin...
[ { "answer_id": 74580784, "author": "Aiq0", "author_id": 19880397, "author_profile": "https://Stackoverflow.com/users/19880397", "pm_score": 1, "selected": false, "text": "class PacketType:\n packets = {\n 0xF0: 'HEARTHBEAT',\n 0XFC: 'DEBUG',\n 0XFF: 'ECHO'\n }\...
2022/11/26
[ "https://Stackoverflow.com/questions/74580745", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3716664/" ]
74,580,747
<p>I have three lists as follows.</p> <p><code>A = [1, 2, 3]; B = [[3, 4, 5], [4, 5, 6], [4, 5, 7], [7, 4, 3]]; C = [[2, 3, 1], [2, 3, 3], [2, 4, 5], [4, 5, 6], [7, 3, 1]]</code></p> <p>I want to create another list containing all the above inner lists starting from A to C.</p> <p>Desired = [elements of A, elements of ...
[ { "answer_id": 74580932, "author": "ScottC", "author_id": 20174226, "author_profile": "https://Stackoverflow.com/users/20174226", "pm_score": 2, "selected": false, "text": "inner_list A = [1, 2, 3]; \nB = [[3, 4, 5], [4, 5, 6], [4, 5, 7], [7, 4, 3]]; \nC = [[2, 3, 1], [2, 3, 3], [2, 4, 5...
2022/11/26
[ "https://Stackoverflow.com/questions/74580747", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16079133/" ]
74,580,752
<p>I'm using python3.8 and have a variable which can be <code>True</code>, <code>False</code> or <code>None</code>. For type-hinting this variable I know I can use <code>Union</code> for variables where they may have divergent types. But personally I don't prefer using <code>Union</code>. I think it's easier to use the...
[ { "answer_id": 74580932, "author": "ScottC", "author_id": 20174226, "author_profile": "https://Stackoverflow.com/users/20174226", "pm_score": 2, "selected": false, "text": "inner_list A = [1, 2, 3]; \nB = [[3, 4, 5], [4, 5, 6], [4, 5, 7], [7, 4, 3]]; \nC = [[2, 3, 1], [2, 3, 3], [2, 4, 5...
2022/11/26
[ "https://Stackoverflow.com/questions/74580752", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12016688/" ]
74,580,787
<p>I am trying to update one table based on another in the most efficient way.</p> <p>Here is the table DDL of what I am trying to update</p> <p>Table1</p> <pre><code>CREATE TABLE `customersPrimary` ( `id` int NOT NULL AUTO_INCREMENT, `groupID` int NOT NULL, `IDInGroup` int NOT NULL, `name` varchar(200) COLLATE...
[ { "answer_id": 74582351, "author": "nnichols", "author_id": 1191247, "author_profile": "https://Stackoverflow.com/users/1191247", "pm_score": 2, "selected": true, "text": "customersSecondary updatedAt ALTER TABLE `customersPrimary`\n ADD COLUMN `updatedAt` DATETIME NOT NULL DEFAULT '2...
2022/11/26
[ "https://Stackoverflow.com/questions/74580787", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14746212/" ]
74,580,799
<p>I have two objects.</p> <pre><code>object_1 = [{January:50},{February:20},{April:10}, {May:22}] object_2 = [{January:40},{March:10},{April:5}] </code></pre> <p>I want the following result</p> <pre><code>object_result = [{January:90},{February:20},{March:10},{April:15},{May:22}] </code></pre> <p>Which means, if same ...
[ { "answer_id": 74581251, "author": "Daniel", "author_id": 20605350, "author_profile": "https://Stackoverflow.com/users/20605350", "pm_score": 0, "selected": false, "text": "function overlyComplicatedFunction(){\n //I renamed these because they're arrays, not objects\n let array_1 = [{J...
2022/11/26
[ "https://Stackoverflow.com/questions/74580799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17257702/" ]
74,580,848
<p>I created a DynamoDB table and was running the following command in the CLI</p> <pre><code>aws dynamodb put-item \ --table-name NBATeams \ --item '{&quot;Team&quot;: {&quot;S&quot;: &quot;Team Name&quot;},&quot;Title&quot;: {&quot;S&quot;: &quot;Suns&quot;}}' \ --region us-east-1 </code></pre> <p>but I keep getting ...
[ { "answer_id": 74581251, "author": "Daniel", "author_id": 20605350, "author_profile": "https://Stackoverflow.com/users/20605350", "pm_score": 0, "selected": false, "text": "function overlyComplicatedFunction(){\n //I renamed these because they're arrays, not objects\n let array_1 = [{J...
2022/11/26
[ "https://Stackoverflow.com/questions/74580848", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20605307/" ]
74,580,871
<p>I'm trying to launch <strong>Tor</strong> browser via <code>puppeteer-sharp</code>. I am using <code>.net core 3.1</code> console application and latest version of <code>puppeteer-sharp</code>. So far the given the executable path console application launches the Tor Browser with an exception.</p> <pre><code>using ...
[ { "answer_id": 74581251, "author": "Daniel", "author_id": 20605350, "author_profile": "https://Stackoverflow.com/users/20605350", "pm_score": 0, "selected": false, "text": "function overlyComplicatedFunction(){\n //I renamed these because they're arrays, not objects\n let array_1 = [{J...
2022/11/26
[ "https://Stackoverflow.com/questions/74580871", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4672460/" ]
74,580,875
<p>I am processing a list to output its items in chunks separated by blank rows as follows. But the result is not working when there are similar items, as shown with the arrows.</p> <p><a href="https://i.stack.imgur.com/8sAuA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8sAuA.jpg" alt="enter image...
[ { "answer_id": 74581251, "author": "Daniel", "author_id": 20605350, "author_profile": "https://Stackoverflow.com/users/20605350", "pm_score": 0, "selected": false, "text": "function overlyComplicatedFunction(){\n //I renamed these because they're arrays, not objects\n let array_1 = [{J...
2022/11/26
[ "https://Stackoverflow.com/questions/74580875", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10735100/" ]
74,580,876
<p>There are 2 strings in groovy files :1) 01xx01xx01 and 2) 0101010111 and I want to compare only non-x elements. eg only compare 010101 with 010111 (ignore &quot;x&quot;). The following scripts were created by me (written in groovy). It works but needs many lines of code. Are there any other ways to do it?</p> <pre><...
[ { "answer_id": 74581150, "author": "Yash Mehta", "author_id": 20172954, "author_profile": "https://Stackoverflow.com/users/20172954", "pm_score": 1, "selected": false, "text": "def compare_strings(string1,string2):\n # Edge case:- When both strings have different length\n if len(st...
2022/11/26
[ "https://Stackoverflow.com/questions/74580876", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9960443/" ]
74,580,903
<p>I'm working with Laravel 9 and I have used this column at <code>users</code> table for storing user mobile phone number:</p> <pre><code>$table-&gt;integer('usr_mobile_phone'); </code></pre> <p>And at the factor, I tried this to fill out this column:</p> <pre><code>public function definition() { $fs = '09...
[ { "answer_id": 74581150, "author": "Yash Mehta", "author_id": 20172954, "author_profile": "https://Stackoverflow.com/users/20172954", "pm_score": 1, "selected": false, "text": "def compare_strings(string1,string2):\n # Edge case:- When both strings have different length\n if len(st...
2022/11/26
[ "https://Stackoverflow.com/questions/74580903", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17730693/" ]
74,580,958
<p><em>First of all, this is the first time I create a Bukkit plugin.</em></p> <p>Basically, when someone does a certain action with a block and checks certain conditions, I would like it to <strong>emit a redstone signal</strong> (the block). The code is executed in the Bukkit <strong>PlayerInteractEvent</strong>. Exc...
[ { "answer_id": 74581150, "author": "Yash Mehta", "author_id": 20172954, "author_profile": "https://Stackoverflow.com/users/20172954", "pm_score": 1, "selected": false, "text": "def compare_strings(string1,string2):\n # Edge case:- When both strings have different length\n if len(st...
2022/11/26
[ "https://Stackoverflow.com/questions/74580958", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12554903/" ]
74,580,988
<p>I was using a yes/no loop to make an infinite loop which would end when user enters no or No but the program was not working properly. I know the what the error is but i don't know why is it occuring like this. Can anyone tell how to fix the error without changing my initial program</p> <p>when i use this code it wo...
[ { "answer_id": 74581150, "author": "Yash Mehta", "author_id": 20172954, "author_profile": "https://Stackoverflow.com/users/20172954", "pm_score": 1, "selected": false, "text": "def compare_strings(string1,string2):\n # Edge case:- When both strings have different length\n if len(st...
2022/11/26
[ "https://Stackoverflow.com/questions/74580988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20605317/" ]
74,581,016
<p>I view my git logs in CMD which has a custom format,</p> <pre><code>git log --date=format:'%d %b %I:%M%p' --pretty=format:&quot;%C(Yellow)%h%Creset %cd%Cgreen%d %Creset%s&quot; -10 </code></pre> <p>now I have to copy this command every time from my notepad so I was thinking if I can create a custom cmd command that ...
[ { "answer_id": 74581385, "author": "Anders", "author_id": 3501, "author_profile": "https://Stackoverflow.com/users/3501", "pm_score": 3, "selected": true, "text": "start cmd @echo off\nmy command and parameters here\n @echo off\ngit log --date=format:'%d %b %I:%M%p' --pretty=format:\"%C(...
2022/11/26
[ "https://Stackoverflow.com/questions/74581016", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11933249/" ]
74,581,024
<p>I have a lot of namespaces and I want to get all pods from a sub-list of namespaces.</p> <p>For getting all the pods from all namespace the command is:</p> <pre><code>kubectl get pods --all-namespaces </code></pre> <p>To get all pods from a spesific namespace the command is:</p> <pre><code>kubectl get pods -n nam...
[ { "answer_id": 74581117, "author": "user2311578", "author_id": 2311578, "author_profile": "https://Stackoverflow.com/users/2311578", "pm_score": 2, "selected": false, "text": "kubectl get pods -A | egrep '^(namespace-name1|namespace-name2|namespace-name3)'\n kubectl ^" }, { "answ...
2022/11/26
[ "https://Stackoverflow.com/questions/74581024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12557235/" ]
74,581,042
<p>complete bash noob here. Had the following command (1.) and it worked as expected but it seemed a bit naive for what I needed:</p> <ol> <li>Essentially generating a wordlist from a messy input file with tab delimiters</li> </ol> <pre class="lang-bash prettyprint-override"><code>cat users.txt | tee &gt;(cut -f 1 &gt;...
[ { "answer_id": 74581117, "author": "user2311578", "author_id": 2311578, "author_profile": "https://Stackoverflow.com/users/2311578", "pm_score": 2, "selected": false, "text": "kubectl get pods -A | egrep '^(namespace-name1|namespace-name2|namespace-name3)'\n kubectl ^" }, { "answ...
2022/11/26
[ "https://Stackoverflow.com/questions/74581042", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20605433/" ]
74,581,060
<p>C++23 adds some &quot;monadic-style&quot; functionality regarding optionals, as methods of <code>optional&lt;T&gt;</code>:</p> <p><a href="https://en.cppreference.com/w/cpp/utility/optional/and_then" rel="noreferrer"><code>optional&lt;T&gt;::and_then()</code></a> (and ignoring qualifiers of <code>this</code>):</p> <...
[ { "answer_id": 74581061, "author": "einpoklum", "author_id": 1593077, "author_profile": "https://Stackoverflow.com/users/1593077", "pm_score": 2, "selected": false, "text": "transform() and_then() transform() T2 foo(T1 x) and_then() optional<T2> bar(T1 x) my_optional.transform(foo) my_op...
2022/11/26
[ "https://Stackoverflow.com/questions/74581060", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1593077/" ]
74,581,136
<p>I would like to do the same in python pandas as shown on the picture.</p> <p><a href="https://i.stack.imgur.com/ZsHLT.png" rel="nofollow noreferrer">pandas image</a></p> <p>This is sum function where the first cell is fixed and the formula calculates &quot;<strong>continuous sum</strong>&quot;.</p> <p>I tried to cre...
[ { "answer_id": 74581061, "author": "einpoklum", "author_id": 1593077, "author_profile": "https://Stackoverflow.com/users/1593077", "pm_score": 2, "selected": false, "text": "transform() and_then() transform() T2 foo(T1 x) and_then() optional<T2> bar(T1 x) my_optional.transform(foo) my_op...
2022/11/26
[ "https://Stackoverflow.com/questions/74581136", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20557036/" ]
74,581,153
<p>I have the following (working) function in JavaScript:</p> <pre class="lang-js prettyprint-override"><code>function solve(strArr) { return strArr.reduce(function ([x, y], curr) { switch (curr) { case 'up': return [x, y + 1] case 'down': return [x, y - 1] case 'left': return [x - 1, y] ...
[ { "answer_id": 74581228, "author": "TmTron", "author_id": 1041641, "author_profile": "https://Stackoverflow.com/users/1041641", "pm_score": 1, "selected": false, "text": "function solve(strArr:string[]) {\n return strArr.reduce(([x, y], curr) => {\n switch (curr) {\n case 'up':...
2022/11/26
[ "https://Stackoverflow.com/questions/74581153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2140071/" ]
74,581,239
<p>I'm trying to make a neural network (using YT guide, but I had to change data input code) and I need the batched dataset for the train function to work properly (idk why, not event sure on it). But when I try to convert a train data list to Dataset using tensorflow.data.Dataset.from_tensor_slices(train_data)) I rece...
[ { "answer_id": 74581285, "author": "Mohammad Ahmed", "author_id": 7746219, "author_profile": "https://Stackoverflow.com/users/7746219", "pm_score": 1, "selected": true, "text": "x1 = tf.random.normal((105, 105, 3))\nx2 = tf.random.normal((105, 105, 3))\ny = tf.random.normal((1,))\n\ntrai...
2022/11/26
[ "https://Stackoverflow.com/questions/74581239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17579568/" ]
74,581,247
<p>Suppose I have 3 buttons:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>.all-buttons{ display:flex; width: 100% } .bttn{ width: 33% border: none; backgroun...
[ { "answer_id": 74581263, "author": "Emre", "author_id": 6468955, "author_profile": "https://Stackoverflow.com/users/6468955", "pm_score": 1, "selected": false, "text": "const buttons = document.querySelectorAll('.bttn'); // You must declare element's type; class (.) or id (#).\n\nArray.f...
2022/11/26
[ "https://Stackoverflow.com/questions/74581247", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19217750/" ]
74,581,249
<p>When deserializing a string, the curly braces are duplicating and this is disturbing the reading of some fields. I've tried everything, but I can't serialize correctly, without duplicate curly braces.</p> <p>I already tried to do it like this:</p> <pre><code>dynamic values = JsonConvert.DeserializeObject&lt;dynamic&...
[ { "answer_id": 74581263, "author": "Emre", "author_id": 6468955, "author_profile": "https://Stackoverflow.com/users/6468955", "pm_score": 1, "selected": false, "text": "const buttons = document.querySelectorAll('.bttn'); // You must declare element's type; class (.) or id (#).\n\nArray.f...
2022/11/26
[ "https://Stackoverflow.com/questions/74581249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15291518/" ]
74,581,270
<p>I'm trying to make a card with some elements. However it is hard to locate elements in right place with multiple rows and columns. I tried with mainAxisAlignment, crossAxisAlignment, SizedBox, Expanded and so on. Especially using Expanded make my widget disappear unlike my expectation. How can I locate element to ri...
[ { "answer_id": 74581263, "author": "Emre", "author_id": 6468955, "author_profile": "https://Stackoverflow.com/users/6468955", "pm_score": 1, "selected": false, "text": "const buttons = document.querySelectorAll('.bttn'); // You must declare element's type; class (.) or id (#).\n\nArray.f...
2022/11/26
[ "https://Stackoverflow.com/questions/74581270", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19358943/" ]
74,581,276
<p>We have a kubebuilder controller which is working as expected, now we need to create a webhooks ,</p> <p>I follow the tutorial <a href="https://book.kubebuilder.io/reference/markers/webhook.html" rel="nofollow noreferrer">https://book.kubebuilder.io/reference/markers/webhook.html</a> and now I want to run &amp; debu...
[ { "answer_id": 74581263, "author": "Emre", "author_id": 6468955, "author_profile": "https://Stackoverflow.com/users/6468955", "pm_score": 1, "selected": false, "text": "const buttons = document.querySelectorAll('.bttn'); // You must declare element's type; class (.) or id (#).\n\nArray.f...
2022/11/26
[ "https://Stackoverflow.com/questions/74581276", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11154975/" ]
74,581,314
<p>I have mapped a field <strong><code>userEmailid</code></strong> in JOLT but that field is not showing put in the output.</p> <p>Main Snippet :</p> <pre class="lang-json prettyprint-override"><code>&quot;WG_REQUESTOR_EMAIL&quot;: &quot;integration-inbound:IntegrationDetails.integrationEntities. integrationEntity.inte...
[ { "answer_id": 74581263, "author": "Emre", "author_id": 6468955, "author_profile": "https://Stackoverflow.com/users/6468955", "pm_score": 1, "selected": false, "text": "const buttons = document.querySelectorAll('.bttn'); // You must declare element's type; class (.) or id (#).\n\nArray.f...
2022/11/26
[ "https://Stackoverflow.com/questions/74581314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20530341/" ]
74,581,325
<p>I do not know where to put the function</p> <pre><code>setTimeout('history.go(0);', 10000) </code></pre> <p>how do I code on a page?</p>
[ { "answer_id": 74581500, "author": "tacoshy", "author_id": 14072420, "author_profile": "https://Stackoverflow.com/users/14072420", "pm_score": 0, "selected": false, "text": "window.location.reload() setTimeout(function () {\n window.location.reload();\n}, 10000);\n" }, { "answer...
2022/11/26
[ "https://Stackoverflow.com/questions/74581325", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20605811/" ]
74,581,337
<p>I have two array of objects in which if property <code>grp</code> from arrobj1 is</p> <p>same as <code>SERVICE</code> and <code>ISACTIVE is true</code> from arrobj2, then return array of object using</p> <p>javascript</p> <pre><code>Tried let result = arrobj1.filter(e=&gt; arrobj2.some(i=&gt; i.ISACTIVE===true &a...
[ { "answer_id": 74581446, "author": "Mina", "author_id": 11887902, "author_profile": "https://Stackoverflow.com/users/11887902", "pm_score": 1, "selected": false, "text": "filter index arrobj1 grp SERVICE arrobj2 var arrobj1=[\n {\n id:\"SetupFS\",\n grp:\"fs\",\n title: \"xxx\"...
2022/11/26
[ "https://Stackoverflow.com/questions/74581337", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20605073/" ]
74,581,355
<p>I am trying to read the a particular csv (plane-data.csv) but the entire df is in object type. I require 'year' to be in integer type so that I can perform calculations.</p> <p>Please take look at my <a href="https://i.stack.imgur.com/onDYM.png" rel="nofollow noreferrer">screenshot</a></p> <p>My dataset is from <a h...
[ { "answer_id": 74581446, "author": "Mina", "author_id": 11887902, "author_profile": "https://Stackoverflow.com/users/11887902", "pm_score": 1, "selected": false, "text": "filter index arrobj1 grp SERVICE arrobj2 var arrobj1=[\n {\n id:\"SetupFS\",\n grp:\"fs\",\n title: \"xxx\"...
2022/11/26
[ "https://Stackoverflow.com/questions/74581355", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20517034/" ]
74,581,359
<p>I have the following <code>df</code>:</p> <pre><code>df = pd.DataFrame({ 'Q0_0': [&quot;India&quot;, &quot;Algeria&quot;, &quot;India&quot;, &quot;U.S.A&quot;, &quot;Morocco&quot;, &quot;Tunisia&quot;, &quot;U.S.A&quot;, &quot;France&quot;, &quot;Russia&quot;, &quot;Algeria&quot;], 'Q1_1': [np.random.randint...
[ { "answer_id": 74581394, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": 2, "selected": true, "text": "pandas.Series.mask pandas.Series.fillna df[\"Q0_0\"]= df[\"Q0_0\"].mask(~df[\"Q0_0\"].isin([\"India\", \"U.S.A\"]))....
2022/11/26
[ "https://Stackoverflow.com/questions/74581359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15852600/" ]
74,581,367
<p>In the example below pine script converts str.tonumber('15min') correctly to 15.00 as it should. However if we provide the argument as a function parameter it fails to convert. Bug has been reported.</p> <pre><code>//@version=5 indicator(&quot;My script&quot;, &quot;m&quot;, true) convert() =&gt; foo = '15min' ...
[ { "answer_id": 74581394, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": 2, "selected": true, "text": "pandas.Series.mask pandas.Series.fillna df[\"Q0_0\"]= df[\"Q0_0\"].mask(~df[\"Q0_0\"].isin([\"India\", \"U.S.A\"]))....
2022/11/26
[ "https://Stackoverflow.com/questions/74581367", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15348203/" ]
74,581,383
<p>I'm new to rust and trying to understand the borrowing principle.</p> <p>I have the following code:</p> <pre class="lang-rs prettyprint-override"><code>fn main() { let number_list = vec![34, 50, 25, 100, 65]; let largest_nbr = &amp;number_list[0]; println!(&quot;The largest number is {}&quot;, largest_...
[ { "answer_id": 74581475, "author": "Finomnis", "author_id": 2902833, "author_profile": "https://Stackoverflow.com/users/2902833", "pm_score": 4, "selected": true, "text": "let number_list = vec![102, 34, 6000, 89, 54, 2, 43, 8];\n number_list number_list largest_nbr let number_list = vec...
2022/11/26
[ "https://Stackoverflow.com/questions/74581383", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9229256/" ]
74,581,411
<p>Could someone tell me how I can solve this problem? I have two arrays in array 1 change values, array 2 has to synchronize with the first one, but without losing the value positions. I have tried with <code>difference(from:)</code> but it reorders the values of array 2. Here as it should be, thank you very much for ...
[ { "answer_id": 74581475, "author": "Finomnis", "author_id": 2902833, "author_profile": "https://Stackoverflow.com/users/2902833", "pm_score": 4, "selected": true, "text": "let number_list = vec![102, 34, 6000, 89, 54, 2, 43, 8];\n number_list number_list largest_nbr let number_list = vec...
2022/11/26
[ "https://Stackoverflow.com/questions/74581411", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8563421/" ]
74,581,448
<p>I'm wondering if it is possible to target the last element of a particular type in CSS, knowing that there is no hierarchy so I can't use: the last-child CSS selector.</p> <p>I want to apply a red font color to the last <code>&lt;p&gt;</code> tag following each <code>&lt;h1&gt;</code> tag.</p> <p>The HTML is compose...
[ { "answer_id": 74581475, "author": "Finomnis", "author_id": 2902833, "author_profile": "https://Stackoverflow.com/users/2902833", "pm_score": 4, "selected": true, "text": "let number_list = vec![102, 34, 6000, 89, 54, 2, 43, 8];\n number_list number_list largest_nbr let number_list = vec...
2022/11/26
[ "https://Stackoverflow.com/questions/74581448", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18153178/" ]
74,581,464
<p>I am trying to create a simple java program for a chess tournament, which will save game results in an array. Results will be stored according to users choice, they may be input from keyboard, or using results that are already in the array, OR generate random sequence of numbers 1.0, 0.0, 0.5. (win, loss, draw)</p> ...
[ { "answer_id": 74581541, "author": "azro", "author_id": 7212686, "author_profile": "https://Stackoverflow.com/users/7212686", "pm_score": 2, "selected": true, "text": "nextInt(bound) 0, 1, 2 case 2 -> {\n for (i = 0; i < a.length; i++) {\n for (j = 0; j < a[i].length; j++) {\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74581464", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20222483/" ]
74,581,468
<p>I downloaded a laravel project online from <a href="https://itsourcecode.com/free-projects/laravel/online-crime-reporting-system-project-in-laravel-with-source-code/" rel="nofollow noreferrer">link</a> I ran the command is <em><strong>composer update</strong></em> and <em><strong>composer install</strong></em>. The ...
[ { "answer_id": 74581541, "author": "azro", "author_id": 7212686, "author_profile": "https://Stackoverflow.com/users/7212686", "pm_score": 2, "selected": true, "text": "nextInt(bound) 0, 1, 2 case 2 -> {\n for (i = 0; i < a.length; i++) {\n for (j = 0; j < a[i].length; j++) {\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74581468", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19846182/" ]
74,581,492
<p>I have a string like,</p> <pre><code>const string = &quot;DEVICE_SIZE IN ('036','048','060','070') AND DEVICE_VOLTAGE IN ('1','3') AND NOT DEVICE_DISCHARGE_AIR IN ('S') AND NOT DEVICE_REFRIGERANT_CIRCUIT IN ('H','C')&quot;; </code></pre> <p>From this, I need to map the respective key and value like, <code>DEVICE...
[ { "answer_id": 74581629, "author": "Cedric", "author_id": 5618266, "author_profile": "https://Stackoverflow.com/users/5618266", "pm_score": 0, "selected": false, "text": "Object.fromEntries [string, any] const data = Object.fromEntries(res.map((item) => {\n if (regExp.exec(item)) {\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74581492", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15916627/" ]
74,581,496
<p>I'm trying to get data of an authenticated user using the token, I'm using postman to send a get request and get the data I need but I'm receiving a response</p> <blockquote> <p>&quot;detail&quot;: &quot;Authentication credentials were not provided.&quot;</p> </blockquote> <p>this is the view `</p> <pre><code>class ...
[ { "answer_id": 74581629, "author": "Cedric", "author_id": 5618266, "author_profile": "https://Stackoverflow.com/users/5618266", "pm_score": 0, "selected": false, "text": "Object.fromEntries [string, any] const data = Object.fromEntries(res.map((item) => {\n if (regExp.exec(item)) {\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74581496", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15784054/" ]
74,581,568
<pre><code>Trade Date Options Class Underlying Product Type Volume 0 2022-01-03 A A S 14 1 2022-01-03 A A S 3 2 2022-01-03 A A S 42 3 2022-01-03 A A S 10 4 2022-01-03 AA AA S 1924 print(df.groupby('Trade Date','Underlying').sum()) </code></pre> <p>How do combine all t...
[ { "answer_id": 74581629, "author": "Cedric", "author_id": 5618266, "author_profile": "https://Stackoverflow.com/users/5618266", "pm_score": 0, "selected": false, "text": "Object.fromEntries [string, any] const data = Object.fromEntries(res.map((item) => {\n if (regExp.exec(item)) {\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74581568", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4387555/" ]
74,581,601
<p>When a virtual thread is blocked due to synchronized call, it's yielding, so the scheduler will unmount it from related Carrier thread.</p> <p>I was wondering, how does a virtual thread know that it's currently at wait state and it's time to yield?</p>
[ { "answer_id": 74582850, "author": "pveentjer", "author_id": 2245707, "author_profile": "https://Stackoverflow.com/users/2245707", "pm_score": 0, "selected": false, "text": " public static void parkNanos(Object blocker, long nanos) {\n if (nanos > 0) {\n Thread t = Thr...
2022/11/26
[ "https://Stackoverflow.com/questions/74581601", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20606075/" ]
74,581,623
<pre><code>var transporter = nodemailer.createTransport({ name:&quot;www.rolester.com&quot;, service:&quot;smtp&quot;, port: 27017, auth: { user: &quot;aladi09@rolester.com&quot;, pass: &quot;alandiv09&quot; } </code></pre> <p>when i try this code i get his error</p> <pre><code>Error: Greeting never receiv...
[ { "answer_id": 74582850, "author": "pveentjer", "author_id": 2245707, "author_profile": "https://Stackoverflow.com/users/2245707", "pm_score": 0, "selected": false, "text": " public static void parkNanos(Object blocker, long nanos) {\n if (nanos > 0) {\n Thread t = Thr...
2022/11/26
[ "https://Stackoverflow.com/questions/74581623", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11911399/" ]
74,581,664
<p>I have created a <code>System.Timers.Timer</code> and im quite new to it. So I have used the Windows Forms Timer before and now I want to use this timer for a console application.<br /> My problem is that my timer is not stopping after one <code>OnTimeEvent()</code> and I don't know why.</p> <pre><code>class Sorting...
[ { "answer_id": 74581799, "author": "wohlstad", "author_id": 18519921, "author_profile": "https://Stackoverflow.com/users/18519921", "pm_score": 3, "selected": true, "text": "Main System.Timers.Timer aTimer = new System.Timers.Timer();\n Timer aTimer OnTimedEvent aTimer.Stop() aTimer null...
2022/11/26
[ "https://Stackoverflow.com/questions/74581664", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14170108/" ]
74,581,666
<p>I have two entities-</p> <ol> <li>User</li> <li>Category<br /> There is a <strong>@ManyToMany relationship</strong> between the two entities. My code, to create this relationship is-<br /> 1.<strong>User.java</strong></li> </ol> <pre><code>@ManyToMany(cascade = { CascadeType.DETACH, CascadeType.MERGE, ...
[ { "answer_id": 74582529, "author": "muhammed ozbilici", "author_id": 2165146, "author_profile": "https://Stackoverflow.com/users/2165146", "pm_score": 1, "selected": false, "text": "cascade = CascadeType.REMOVE @ManyToMany SET FOREIGN_KEY_CHECKS=0; /* disable */ \n\nSET FOREIGN_KEY_CHE...
2022/11/26
[ "https://Stackoverflow.com/questions/74581666", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19580540/" ]
74,581,669
<p>I have successfully used recursion to find a key to a variable I want to change in an API reponse json.</p> <p>The recursion returns the key the equivilant is like this:</p> <pre><code>obj_key = &quot;obj['key1']['key2'][1]['key3'][4]['key4'][0]&quot; </code></pre> <p>if I eval this:</p> <pre><code>eval(obj_key) </c...
[ { "answer_id": 74581737, "author": "Oguz Hanoglu", "author_id": 12579308, "author_profile": "https://Stackoverflow.com/users/12579308", "pm_score": 1, "selected": false, "text": "eval(\"y=12\") #SyntaxError: invalid syntax\n exec(\"y=12\")\nprint(y) #12\n" }, { "answer_id": 74581...
2022/11/26
[ "https://Stackoverflow.com/questions/74581669", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20606129/" ]
74,581,672
<p>I have two files one is file1.csv and another one is file2.csv I have put file1 data in one dataframe and when second file file2.csv will arrive then I have to write a code in such a way that if second file data matches in first file data on basis of year and month columns then delete the data from file1 dataframe a...
[ { "answer_id": 74581937, "author": "Bartosz Gajda", "author_id": 6870955, "author_profile": "https://Stackoverflow.com/users/6870955", "pm_score": 0, "selected": false, "text": "LEFT file2.csv file1.csv when-otherwise year-month file2.csv file1.csv when-otherwise" }, { "answer_id...
2022/11/26
[ "https://Stackoverflow.com/questions/74581672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13060536/" ]
74,581,673
<p>It is visible if i comment part where i set my ViewControllers.<br /> It is like been superimposed by other ViewControllers. Cause it works but i can't see it. When i tap bottom parts of screen color of screen changes to colors which i assign to controllers.</p> <p><a href="https://i.stack.imgur.com/e4qCl.png" rel="...
[ { "answer_id": 74581937, "author": "Bartosz Gajda", "author_id": 6870955, "author_profile": "https://Stackoverflow.com/users/6870955", "pm_score": 0, "selected": false, "text": "LEFT file2.csv file1.csv when-otherwise year-month file2.csv file1.csv when-otherwise" }, { "answer_id...
2022/11/26
[ "https://Stackoverflow.com/questions/74581673", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20606095/" ]
74,581,693
<p>Suppose, we've below demo datasets:</p> <pre><code>var demoDatasets = new DataTable { Columns = { { &quot;ID&quot;, typeof(int) }, { &quot;Name&quot;, typeof(string) }, { &quot;Address&quot;, typeof(string) } }, Rows = { { 1, &quot;A&quot;, &quot;AddressA1&q...
[ { "answer_id": 74581937, "author": "Bartosz Gajda", "author_id": 6870955, "author_profile": "https://Stackoverflow.com/users/6870955", "pm_score": 0, "selected": false, "text": "LEFT file2.csv file1.csv when-otherwise year-month file2.csv file1.csv when-otherwise" }, { "answer_id...
2022/11/26
[ "https://Stackoverflow.com/questions/74581693", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13861641/" ]
74,581,748
<p>How to express the below in typescript?</p> <pre><code>type LanguageName = &quot;javascript&quot; | &quot;typescript&quot; | &quot;java&quot; | &quot;csharp&quot; type LanguageToWasmMap = { [key in LanguageName]: Exclude&lt;LanguageName, key&gt; } //I want the below to not throw error const languageNameToWasmNam...
[ { "answer_id": 74581766, "author": "nullptr", "author_id": 9549012, "author_profile": "https://Stackoverflow.com/users/9549012", "pm_score": 2, "selected": true, "text": "Partial type LanguageName = \"javascript\" | \"typescript\" | \"java\" | \"csharp\"\n \n type LanguageToWas...
2022/11/26
[ "https://Stackoverflow.com/questions/74581748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30594/" ]
74,581,767
<p>Hi I am getting two array of objects from APi and trying to render in a table, using spread operator i am combining the two arrays and binding but the problem is in table it is rendering two times how to combine the two arrays and print as one value in table for one email Id as emailid is unique in both the arrays....
[ { "answer_id": 74582488, "author": "Shayaan Farooqi", "author_id": 10905161, "author_profile": "https://Stackoverflow.com/users/10905161", "pm_score": 0, "selected": false, "text": "Keys useEffect(() => {\n function merge(arrayOne, arrayTwo, key) {\n let result = [...arrayOne];\n...
2022/11/26
[ "https://Stackoverflow.com/questions/74581767", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19614803/" ]
74,581,857
<p>I'm trying to fetch data from an api.</p> <p>So far I have tried to fetch data using an api. I have been using this website: <a href="https://www.geeksforgeeks.org/how-to-use-the-javascript-fetch-api-to-get-data/" rel="nofollow noreferrer">https://www.geeksforgeeks.org/how-to-use-the-javascript-fetch-api-to-get-data...
[ { "answer_id": 74583303, "author": "DataFace", "author_id": 10761390, "author_profile": "https://Stackoverflow.com/users/10761390", "pm_score": 2, "selected": false, "text": "// api url\nconst api_url = 'https://jsonplaceholder.typicode.com/comments';\n\n// Defining async function\nasync...
2022/11/26
[ "https://Stackoverflow.com/questions/74581857", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20088801/" ]
74,581,861
<ul> <li>I have a variable which contains a map of widget in initState.</li> <li>One of this widget inside my variable is a gestureDetector who onTap change the value of a variable to change the animation of his child AnimatedAlign.</li> </ul> <p>My problem is that when I active the onTap my animatedAlign stay static.<...
[ { "answer_id": 74582358, "author": "Shahood ul Hassan", "author_id": 7983864, "author_profile": "https://Stackoverflow.com/users/7983864", "pm_score": 2, "selected": true, "text": "setState() build() initState() StatefulWidget HomeScreen AnimatedAlign initState() setState() AnimatedAlign...
2022/11/26
[ "https://Stackoverflow.com/questions/74581861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20605896/" ]
74,581,868
<p>So, I started making a program and now I require it to print anything I like if the number is between 1-100, How to I make the program realize that it needs to print it if the number's between 90 and 100?</p> <pre><code>#This is a sample code F2 = int(input()) if F2 == range(90 , 100): print(&quot;A&quot;) else:...
[ { "answer_id": 74581965, "author": "solac34", "author_id": 20554831, "author_profile": "https://Stackoverflow.com/users/20554831", "pm_score": 2, "selected": false, "text": "if F2 in range(90,101): #last number is not included in range(101 won't be included)\n print('A')\n f2 = range(...
2022/11/26
[ "https://Stackoverflow.com/questions/74581868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20042225/" ]
74,581,875
<p>I'm looking to add the Firestore ID to the DocumentData, so that I can easily utilize the ID when referring to rows in a table, without having to use document.data().property everytime I call a property of a document. Instead, I want to be able to call document.id.... document.property... and so on.</p> <p>Is there ...
[ { "answer_id": 74581965, "author": "solac34", "author_id": 20554831, "author_profile": "https://Stackoverflow.com/users/20554831", "pm_score": 2, "selected": false, "text": "if F2 in range(90,101): #last number is not included in range(101 won't be included)\n print('A')\n f2 = range(...
2022/11/26
[ "https://Stackoverflow.com/questions/74581875", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16479677/" ]
74,581,879
<p>I want to insert data from the database into an array that can be increased in number. So maybe you can use a loop but the data is stacked, not added and returns the last data</p> <p>i am trying to use for with $i++ to generate $variable.$i. that's what I was expecting but I don't understand how to run it</p> <pre><...
[ { "answer_id": 74581965, "author": "solac34", "author_id": 20554831, "author_profile": "https://Stackoverflow.com/users/20554831", "pm_score": 2, "selected": false, "text": "if F2 in range(90,101): #last number is not included in range(101 won't be included)\n print('A')\n f2 = range(...
2022/11/26
[ "https://Stackoverflow.com/questions/74581879", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19822838/" ]
74,581,893
<p>I am testing <code>React.useEffect</code> and noticed an interesting behavior that I can't explain. When I run the code below and click on the button a few times, I see the following output which is missing the useEffect console for count = 1</p> <pre><code>import React from 'react'; export function App(props) { ...
[ { "answer_id": 74581965, "author": "solac34", "author_id": 20554831, "author_profile": "https://Stackoverflow.com/users/20554831", "pm_score": 2, "selected": false, "text": "if F2 in range(90,101): #last number is not included in range(101 won't be included)\n print('A')\n f2 = range(...
2022/11/26
[ "https://Stackoverflow.com/questions/74581893", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5601401/" ]
74,581,902
<p>How can I create a keybinding in Dr Racket to duplicate selected lines?</p> <pre><code>#lang s-exp framework/keybinding-lang (keybinding &quot;m:d&quot; (λ (editor evt) ...)) </code></pre>
[ { "answer_id": 74581965, "author": "solac34", "author_id": 20554831, "author_profile": "https://Stackoverflow.com/users/20554831", "pm_score": 2, "selected": false, "text": "if F2 in range(90,101): #last number is not included in range(101 won't be included)\n print('A')\n f2 = range(...
2022/11/26
[ "https://Stackoverflow.com/questions/74581902", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3575062/" ]
74,581,911
<p>I would like to call HTTP request with method GET to get an ID. I call the request from Angular 14 and i take 200 response, but it's red color.</p> <p><a href="https://i.stack.imgur.com/P8irf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P8irf.png" alt="Response for GET request" /></a></p> <p>I ...
[ { "answer_id": 74581977, "author": "Quentin", "author_id": 19068, "author_profile": "https://Stackoverflow.com/users/19068", "pm_score": 1, "selected": false, "text": "Access-Control-Allow-Origin: *, * Access-Control-Allow-Origin: * * * Access-Control-Allow-Origin" }, { "answer_i...
2022/11/26
[ "https://Stackoverflow.com/questions/74581911", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12627958/" ]
74,581,912
<p>I have the following list:</p> <p><code>lst = ['L38A', '38', 'L', 'A', '-6.7742', '-3.5671', '0.00226028', '0.4888', 'L38C', '38', 'L', 'C', '-7.7904', '-6.6306', '0.0', '0.4888', 'L38D', '38', 'L', 'D', '-6.3475', '-3.0068', '0.00398551', '0.4888', 'L38E', '38', 'L', 'E', '-6.4752', '-3.4645', '0.00250913', '0.4888...
[ { "answer_id": 74581977, "author": "Quentin", "author_id": 19068, "author_profile": "https://Stackoverflow.com/users/19068", "pm_score": 1, "selected": false, "text": "Access-Control-Allow-Origin: *, * Access-Control-Allow-Origin: * * * Access-Control-Allow-Origin" }, { "answer_i...
2022/11/26
[ "https://Stackoverflow.com/questions/74581912", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11586653/" ]
74,581,914
<p>I am new at coding but it feels like I am stuck on some stupid level thing!!! I want my dynamic text on center of my page and slightly top of my button. But long text just overlapping my button. I want both of them to adjust in screen and stay in completely center of page no matter how long the text is. <strong>See ...
[ { "answer_id": 74582029, "author": "pier farrugia", "author_id": 19996700, "author_profile": "https://Stackoverflow.com/users/19996700", "pm_score": 0, "selected": false, "text": "const arr = [{\n title: \"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lore...
2022/11/26
[ "https://Stackoverflow.com/questions/74581914", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14466362/" ]
74,582,063
<p>I have this data (original data has more rows) below :</p> <pre><code>structure(list(ID = 1:41, X1 = c(1921498, 2519663, 2519663, 107388, 2519663, 52211, 2519663, 62831, 62831, 62831, 62831, 62831, 62831, 62831, 4225203351, 4225203351, 4225203351, 4225203351, 4225203351, 4225203351, 4225203351, 171231, 171231, 17...
[ { "answer_id": 74582241, "author": "Vinícius Félix", "author_id": 9696037, "author_profile": "https://Stackoverflow.com/users/9696037", "pm_score": 0, "selected": false, "text": "library(dplyr)\ndf %>% \n mutate(\n var2 = c(0,diff(X1)),\n var2 = if_else(var2 == 0, \"No-change\",\"...
2022/11/26
[ "https://Stackoverflow.com/questions/74582063", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12322285/" ]
74,582,094
<p>In a website having a &quot;Comment&quot; and &quot;reply to a comment&quot; system.<br> After each comment in the template, There's a &quot;Add a reply&quot; form which have a hidden input to carry the comment pk on its value attribute.</p> <ul> <li>How to prevent the end user from editing that hidden input value ?...
[ { "answer_id": 74582241, "author": "Vinícius Félix", "author_id": 9696037, "author_profile": "https://Stackoverflow.com/users/9696037", "pm_score": 0, "selected": false, "text": "library(dplyr)\ndf %>% \n mutate(\n var2 = c(0,diff(X1)),\n var2 = if_else(var2 == 0, \"No-change\",\"...
2022/11/26
[ "https://Stackoverflow.com/questions/74582094", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15941405/" ]
74,582,097
<p>I am trying to calculate the number of digits in a random number, for example for number 5675, I am expecting a count value 4 as an output but instead of that , it's returning 1. I have tried to write the logic in a while loop until the condition satisfied. Below is my code.</p> <pre><code>class Solution(object): ...
[ { "answer_id": 74582115, "author": "Mehrdad Pedramfar", "author_id": 3744747, "author_profile": "https://Stackoverflow.com/users/3744747", "pm_score": 2, "selected": false, "text": "return count_no def calculate(self, num):\n count_no = 0\n while num > 0:\n num = num // 10\n...
2022/11/26
[ "https://Stackoverflow.com/questions/74582097", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20502753/" ]
74,582,100
<p>I want to find all prime numbers in a certain range. I do this with looping through the array with numbers. If a multiplier of the current number is found, then it will be removed from the array with the splice method. But some numbers will be removed like 7 and 11 which are actually prime number and some not like 8...
[ { "answer_id": 74582433, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 2, "selected": false, "text": "splice list list[multiplier] list[prim] let list = [];\nfor (let i = 2; i <= 30; i++) {\n list.push(i);\n}\n\nfor (let prim...
2022/11/26
[ "https://Stackoverflow.com/questions/74582100", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20036187/" ]
74,582,130
<p>Is it possible to create at JTree without hardcoding every tree node but rather reading in from a xml file and getting the same output as following code will give:</p> <pre><code>import javax.swing.JFrame; import javax.swing.JTree; import javax.swing.tree.DefaultMutableTreeNode; public class test { test() { JF...
[ { "answer_id": 74582433, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 2, "selected": false, "text": "splice list list[multiplier] list[prim] let list = [];\nfor (let i = 2; i <= 30; i++) {\n list.push(i);\n}\n\nfor (let prim...
2022/11/26
[ "https://Stackoverflow.com/questions/74582130", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19952753/" ]
74,582,134
<p>I am trying to make something that uses the same concept as the image below;</p> <p><a href="https://i.stack.imgur.com/l7j0m.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l7j0m.jpg" alt="enter image description here" /></a></p> <p>An image like background with text overlaying it.</p> <p>I tried ...
[ { "answer_id": 74582193, "author": "z.y", "author_id": 19023745, "author_profile": "https://Stackoverflow.com/users/19023745", "pm_score": 2, "selected": false, "text": "Box Child Card Image Text contentAlignment Alignment.Center Image Color @Composable\nfun ImageWithTextInMiddle() {\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74582134", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15976878/" ]
74,582,137
<p>Trying to get all the branches under a project using GitLab API, but I can see only 20 branches are returned. How can I get the complete list of all the branches? I am using the following API.</p> <pre><code>curl --header &quot;PRIVATE-TOKEN: &lt;token&gt;&quot; &quot;https://gitlab.com/api/v4/projects/1521/reposito...
[ { "answer_id": 74583939, "author": "Ashish Pratap", "author_id": 6172022, "author_profile": "https://Stackoverflow.com/users/6172022", "pm_score": 2, "selected": true, "text": "per_page https://gitlab.com/api/v4/projects/<Project_id>/repository/branches?per_page=50\n" }, { "answe...
2022/11/26
[ "https://Stackoverflow.com/questions/74582137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6172022/" ]
74,582,149
<p>I want to add username before each route..</p> <p>ex:</p> <pre><code>sam/productDashboard james/productDashboard </code></pre> <p>note - Username is getting from session.</p> <p>i tried like this. it doesn't work</p> <blockquote> <p>Route::get( session()-&gt;get('name').'/productDashboard',[ProductController::class...
[ { "answer_id": 74582211, "author": "Hosein Shendabadi", "author_id": 9671516, "author_profile": "https://Stackoverflow.com/users/9671516", "pm_score": 2, "selected": true, "text": "Route::get('{username}/productDashboard',[ProductController::class,'ProductDashboard'])->name('productDashb...
2022/11/26
[ "https://Stackoverflow.com/questions/74582149", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13139569/" ]
74,582,161
<blockquote> <p>Write a recursive function to find the smallest element in a vector. We can not use loops but can use if statements. Using RECURSION is a must.</p> </blockquote> <p>I Could Not think of any solution, the main problem was if I define a function then I have to give it some value and if I do so then whenev...
[ { "answer_id": 74582211, "author": "Hosein Shendabadi", "author_id": 9671516, "author_profile": "https://Stackoverflow.com/users/9671516", "pm_score": 2, "selected": true, "text": "Route::get('{username}/productDashboard',[ProductController::class,'ProductDashboard'])->name('productDashb...
2022/11/26
[ "https://Stackoverflow.com/questions/74582161", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20248205/" ]
74,582,168
<p>below file is named index.ts</p> <pre><code>import { serve } from &quot;https://deno.land/std@0.166.0/http/server.ts&quot;; function handler(_req: Request): Response { return new Response(&quot;Hello, World!&quot;); } console.log(&quot;Listening on http://localhost:8000&quot;); serve(handler); </code></pre> <p>a...
[ { "answer_id": 74582211, "author": "Hosein Shendabadi", "author_id": 9671516, "author_profile": "https://Stackoverflow.com/users/9671516", "pm_score": 2, "selected": true, "text": "Route::get('{username}/productDashboard',[ProductController::class,'ProductDashboard'])->name('productDashb...
2022/11/26
[ "https://Stackoverflow.com/questions/74582168", "https://Stackoverflow.com", "https://Stackoverflow.com/users/340999/" ]
74,582,180
<p>I'm in trouble with maven projects inerithed.</p> <p>The projects should be built with:</p> <pre><code>mvn install -D module </code></pre> <p>and/or</p> <pre><code>mvn intall -D config </code></pre> <p>I've no more precise info about how to built the projects but these are the knowledge transfered.</p> <p>If i try t...
[ { "answer_id": 74582211, "author": "Hosein Shendabadi", "author_id": 9671516, "author_profile": "https://Stackoverflow.com/users/9671516", "pm_score": 2, "selected": true, "text": "Route::get('{username}/productDashboard',[ProductController::class,'ProductDashboard'])->name('productDashb...
2022/11/26
[ "https://Stackoverflow.com/questions/74582180", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5422569/" ]
74,582,230
<p>I need to copy values on a crossing way , as on the below pictures:<br> I arranged my data as two rows (with values) and then <strong>a one blank row</strong> and so on.<br> I tried the below code , but the output result is incorrect. <br> In advance, thanks for your help. <br></p> <pre><code>Sub Copy_by_crossing() ...
[ { "answer_id": 74582660, "author": "Ron Rosenfeld", "author_id": 2872922, "author_profile": "https://Stackoverflow.com/users/2872922", "pm_score": 3, "selected": true, "text": "Option Explicit\nSub Copy_By_Crossing()\n Dim WS As Worksheet, rSrc As Range, rRes As Range\n Dim vSrc, v...
2022/11/26
[ "https://Stackoverflow.com/questions/74582230", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17797849/" ]
74,582,233
<p>I get this error when I run my flutter App. I've not been able to figure out why this error keeps occurring.</p> <p>Error:</p> <blockquote> <p>══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ The following _CastError was thrown building RawGestureDetector-[LabeledG...
[ { "answer_id": 74582278, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 0, "selected": false, "text": "! setState(() {\n text = quotes[randomNumber][\"text\"];\n author = quotes[randomNumber][\"aut...
2022/11/26
[ "https://Stackoverflow.com/questions/74582233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12912157/" ]
74,582,238
<p>In Python and Selenium, how do I find numeric characters in a text and put them in a variable? for example :</p> <p>text = Your verification code is: 5674</p> <p>I need to find the number 5674 from the text and put it in a variable.</p> <p>Result »» x = 5674</p> <hr /> <p>import re txt = &quot;Your verification code...
[ { "answer_id": 74582278, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 0, "selected": false, "text": "! setState(() {\n text = quotes[randomNumber][\"text\"];\n author = quotes[randomNumber][\"aut...
2022/11/26
[ "https://Stackoverflow.com/questions/74582238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20606690/" ]
74,582,253
<p>When I hover over bigger blocks (the blue ones) all the small block change to black at once.</p> <p>I want only to change the color of the small block inside the hovered blue block not all of them.</p> <p>Also, I know with CSS (pseudo-selector, <code>:hover</code>) can do the same but I want to do it with JS as I sa...
[ { "answer_id": 74582278, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 0, "selected": false, "text": "! setState(() {\n text = quotes[randomNumber][\"text\"];\n author = quotes[randomNumber][\"aut...
2022/11/26
[ "https://Stackoverflow.com/questions/74582253", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17620112/" ]
74,582,309
<pre><code>#Create a program that allows 2 players to throw a 6 sided dice and record the roll value 10 times. #The winner is the player with the highest total #This task must store the results in a 2D array #Extra: #Work out the average roll across the 10 throws per player and display the result #Frequency analy...
[ { "answer_id": 74582348, "author": "solac34", "author_id": 20554831, "author_profile": "https://Stackoverflow.com/users/20554831", "pm_score": -1, "selected": false, "text": "diff = abs(len(results[2][0]) - len(results[3][0])) #abs = absolute value\n if len(results[2][0] ) > len(results[...
2022/11/26
[ "https://Stackoverflow.com/questions/74582309", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20307080/" ]
74,582,335
<p>I have the following pandas dataframe <code>df</code></p> <pre><code> time animal 0 0 cat 1 0 dog 2 1 hedgehog 3 1 cat 4 1 cat </code></pre> <p>I would like to</p> <ul> <li>group by time while counting how often an animal is withing the new gr...
[ { "answer_id": 74582359, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 2, "selected": false, "text": "pd.crosstab print(pd.crosstab(df.time, df.animal))\n animal cat dog hedgehog\ntime \...
2022/11/26
[ "https://Stackoverflow.com/questions/74582335", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2974685/" ]
74,582,355
<p>I am modeling below problem in Z3. The aim is to find the path for Agent to reach the coin avoiding obstacles.</p> <pre><code>Initial_grid =[['T' 'T' 'T' 'T' 'T' 'T' 'T'] ['T' ' ' ' ' ' ' ' ' ' ' 'T'] ['T' ' ' 'A' 'O' ' ' 'O' 'T'] ['T' 'O' ' ' ' ' ' ' ' ' 'T'] ...
[ { "answer_id": 74586050, "author": "alias", "author_id": 936310, "author_profile": "https://Stackoverflow.com/users/936310", "pm_score": 2, "selected": true, "text": "from z3 import *\n\nGrid = [ ['T', 'T', 'T', 'T', 'T', 'T', 'T']\n , ['T', ' ', ' ', ' ', ' ', ' ', 'T']\n , ...
2022/11/26
[ "https://Stackoverflow.com/questions/74582355", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20592571/" ]
74,582,356
<p>This is my Program.cs:</p> <pre><code>int currentHp = 100; Potion potion = new Potion(10); Console.WriteLine(potion.ToString(currentHp)); </code></pre> <p>This is my class called Potion.cs</p> <pre><code>private int hpHeal; public Potion(int hpHeal) { HpHeal = hpHeal; } public int HpHeal { get { return hpHe...
[ { "answer_id": 74582430, "author": "Jan Joneš", "author_id": 9080566, "author_profile": "https://Stackoverflow.com/users/9080566", "pm_score": 3, "selected": true, "text": "ToString Stringify override" }, { "answer_id": 74583712, "author": "vivek nuna", "author_id": 65270...
2022/11/26
[ "https://Stackoverflow.com/questions/74582356", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20252236/" ]
74,582,360
<p>I'm developing a discord bot using nextcord. When i'm registering slash command and deleting it later, it's also staying at discord command list.</p> <p>What can I do to delete non-existent slash commands or sync actual bot's command list with discord? P.S. All of my commands are in different cogs</p> <p>I was waiti...
[ { "answer_id": 74582430, "author": "Jan Joneš", "author_id": 9080566, "author_profile": "https://Stackoverflow.com/users/9080566", "pm_score": 3, "selected": true, "text": "ToString Stringify override" }, { "answer_id": 74583712, "author": "vivek nuna", "author_id": 65270...
2022/11/26
[ "https://Stackoverflow.com/questions/74582360", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14655540/" ]
74,582,376
<p><strong>Context</strong></p> <p>Say that I have a <code>df</code> which includes multiple columns (<code>a1</code>,<code>a2</code>,<code>a3</code>,<code>a4</code>,<code>b1</code>,<code>b2</code>,<code>b3</code>,<code>b4</code>).</p> <p>I want to generate some new columns (<code>c1</code>,<code>c2</code>,<code>c3</co...
[ { "answer_id": 74582419, "author": "Vinícius Félix", "author_id": 9696037, "author_profile": "https://Stackoverflow.com/users/9696037", "pm_score": 2, "selected": false, "text": "across df <-\n data.frame(\n a1 = 1:2, a2 = 3:4, a3 = 5:6, a4 = 7:8,\n b1 = 1:2, b2 = 1:2, b3 = 5:6, b...
2022/11/26
[ "https://Stackoverflow.com/questions/74582376", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11636376/" ]
74,582,403
<p>I am trying to develop a rest API for a school project, my question is how can I find the correct version for the dialect? I don't really know a lot about the topic but i can understand that hibernate is included with the JPA dependency?? If not do I have to install it separately somehow? I can see that the compiler...
[ { "answer_id": 74582515, "author": "Mark Rotteveel", "author_id": 466862, "author_profile": "https://Stackoverflow.com/users/466862", "pm_score": 2, "selected": true, "text": "org.hibernate.dialect.MySQLDialect InnoDB org.hibernate.dialect.MySQL8Dialect" }, { "answer_id": 7458252...
2022/11/26
[ "https://Stackoverflow.com/questions/74582403", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18763441/" ]
74,582,411
<p>I get Null Pointer Exception when running the code below:</p> <pre class="lang-java prettyprint-override"><code>public class Engine{ private String name = null; private Mercedes m = null; private Engine() { } public String getName() { return name; } public void setName(String...
[ { "answer_id": 74582515, "author": "Mark Rotteveel", "author_id": 466862, "author_profile": "https://Stackoverflow.com/users/466862", "pm_score": 2, "selected": true, "text": "org.hibernate.dialect.MySQLDialect InnoDB org.hibernate.dialect.MySQL8Dialect" }, { "answer_id": 7458252...
2022/11/26
[ "https://Stackoverflow.com/questions/74582411", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16560060/" ]
74,582,418
<p>I'm building social network app using nodejs and mongodb. Now in my user schema i have an array of ids of users who are following certain user and ids of users who are followed by certain user. When i delete the user i want to delete his id from all arrays inside of users who are following him. So that if he deletes...
[ { "answer_id": 74582515, "author": "Mark Rotteveel", "author_id": 466862, "author_profile": "https://Stackoverflow.com/users/466862", "pm_score": 2, "selected": true, "text": "org.hibernate.dialect.MySQLDialect InnoDB org.hibernate.dialect.MySQL8Dialect" }, { "answer_id": 7458252...
2022/11/26
[ "https://Stackoverflow.com/questions/74582418", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19419004/" ]
74,582,427
<p>I want to know how to rearrange values in JOLT. I want poDesciption field before poType.</p> <p>I tried the below but didn't worked.-</p> <pre class="lang-json prettyprint-override"><code>&quot;poDescription&quot;: &quot;&amp;5.&amp;4.&amp;3.&amp;2.&amp;1.&amp;&quot;, &quot;poType&quot;: &quot;&amp;5.&amp;4.&amp;3.&...
[ { "answer_id": 74582515, "author": "Mark Rotteveel", "author_id": 466862, "author_profile": "https://Stackoverflow.com/users/466862", "pm_score": 2, "selected": true, "text": "org.hibernate.dialect.MySQLDialect InnoDB org.hibernate.dialect.MySQL8Dialect" }, { "answer_id": 7458252...
2022/11/26
[ "https://Stackoverflow.com/questions/74582427", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20530341/" ]
74,582,432
<p>I come to this <a href="https://leetcode.com/problems/maximum-product-of-splitted-binary-tree/solutions/496549/java-c-python-easy-and-concise/https://leetcode.com/problems/maximum-product-of-splitted-binary-tree/solutions/496549/java-c-python-easy-and-concise/" rel="nofollow noreferrer">code</a> in a LeetCode proble...
[ { "answer_id": 74582515, "author": "Mark Rotteveel", "author_id": 466862, "author_profile": "https://Stackoverflow.com/users/466862", "pm_score": 2, "selected": true, "text": "org.hibernate.dialect.MySQLDialect InnoDB org.hibernate.dialect.MySQL8Dialect" }, { "answer_id": 7458252...
2022/11/26
[ "https://Stackoverflow.com/questions/74582432", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8926191/" ]
74,582,446
<p>I have such structure:</p> <pre><code>class Category(models.Model): name = models.CharField(max_length=255, validators=[MinLengthValidator(3)]) parent = models.ForeignKey('self', blank=True, null=True, related_name='children', on_delete=models.CAS...
[ { "answer_id": 74582502, "author": "Alexander Schillemans", "author_id": 9625038, "author_profile": "https://Stackoverflow.com/users/9625038", "pm_score": 2, "selected": false, "text": "def is_slug_unique(slug):\n product_exists = Product.objects.filter(slug=slug).exists()\n catego...
2022/11/26
[ "https://Stackoverflow.com/questions/74582446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20590534/" ]
74,582,472
<p>What does the <code>&lt;stdbool.h&gt;</code> do when using it in a C code?</p> <p>I searched for it on the Wikipedia and didn't get answers in my language, i would love that someone will explain to me what it means.</p>
[ { "answer_id": 74582925, "author": "chqrlie", "author_id": 4593267, "author_profile": "https://Stackoverflow.com/users/4593267", "pm_score": 2, "selected": true, "text": "bool true false _Bool <stdbool.h> <stdbool.h> <stdbool.h> bool\n _Bool #if true\n ((_Bool)+1u) false\n ((_Bool)+0u...
2022/11/26
[ "https://Stackoverflow.com/questions/74582472", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20606902/" ]
74,582,505
<p>Hi to all kivy/python experts. I am looking for an advice/solution, after trying everything I found for the last week.</p> <h1>Here's my scenario:</h1> <ol> <li>I have a kivy app with 2 screens, therefore I am using a Screen manager, with each screen (1 and 2) defined in my .kv file</li> <li>after clicking log-in on...
[ { "answer_id": 74582925, "author": "chqrlie", "author_id": 4593267, "author_profile": "https://Stackoverflow.com/users/4593267", "pm_score": 2, "selected": true, "text": "bool true false _Bool <stdbool.h> <stdbool.h> <stdbool.h> bool\n _Bool #if true\n ((_Bool)+1u) false\n ((_Bool)+0u...
2022/11/26
[ "https://Stackoverflow.com/questions/74582505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20606508/" ]
74,582,510
<p>In a data set I have the following variables:</p> <p>• freehms: opinion if gays and lesbians free to live as they wish</p> <p>• prtvtcie: Party participant voted for</p> <p>• trstplt: Trust in politicians</p> <p>• agea: Calculated age of the participant</p> <p>• gndr_dummy: Dummy variable for gender</p> <p>I want to...
[ { "answer_id": 74582541, "author": "DaveArmstrong", "author_id": 8206434, "author_profile": "https://Stackoverflow.com/users/8206434", "pm_score": 1, "selected": false, "text": "model_without_interaction <- multinom(prtvtcie ~ freehms + \n agea + gndr_dummy, data = ie)\n\nmodel_with_inte...
2022/11/26
[ "https://Stackoverflow.com/questions/74582510", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20373595/" ]
74,582,532
<p>I want to create an array which elements look like this &quot;1A 2A 3A... etc&quot;. My problem that every time, the program set all of the elements the value of the last added value. So my final output is &quot;25F 25F 25F...&quot;</p> <p>Here is my code:</p> <pre><code>void func() { char c[10]; char s[10];...
[ { "answer_id": 74582562, "author": "john", "author_id": 882003, "author_profile": "https://Stackoverflow.com/users/882003", "pm_score": 0, "selected": false, "text": "arr s s arr" }, { "answer_id": 74613365, "author": "Luis Colorado", "author_id": 3899431, "author_pro...
2022/11/26
[ "https://Stackoverflow.com/questions/74582532", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17885051/" ]
74,582,551
<p>Here are some string items:</p> <pre><code>string[] r = {&quot;item1&quot;,&quot;item2&quot;, &quot;item3&quot;} </code></pre> <p>I want to loop through GridView and add each string items to the GridView rows</p> <pre><code>for (int i = 0; i &lt; GridView1.Rows.Count; i++) { GridView1.Rows[i].Cells[0].T...
[ { "answer_id": 74582562, "author": "john", "author_id": 882003, "author_profile": "https://Stackoverflow.com/users/882003", "pm_score": 0, "selected": false, "text": "arr s s arr" }, { "answer_id": 74613365, "author": "Luis Colorado", "author_id": 3899431, "author_pro...
2022/11/26
[ "https://Stackoverflow.com/questions/74582551", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20465780/" ]
74,582,552
<p>I am trying to solve this challenge, but my code doesn't seem to work, is there a fix? Here is the question:</p> <p>In this kata you are required to, given a string, replace every letter with its position in the alphabet.</p> <p>If anything in the text isn't a letter, ignore it and don't return it.</p> <p>&quot;a&qu...
[ { "answer_id": 74582693, "author": "Daniel Hao", "author_id": 10760768, "author_profile": "https://Stackoverflow.com/users/10760768", "pm_score": 2, "selected": false, "text": "\ndef alphabet_position(s):\n return \" \".join(str(ord(c)-ord(\"a\")+1) for c in s.lower() if c.isalpha())\n\...
2022/11/26
[ "https://Stackoverflow.com/questions/74582552", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19905146/" ]
74,582,565
<pre class="lang-cpp prettyprint-override"><code>int dfs(int idx, int mv, char gest){ if (idx &gt; n || mv &gt; k){ return 0; } int tmp1 = 0; if(mv&lt;k){ if(fj[idx]=='H'){ if(gest!='P'){ tmp1=1+dfs(idx+1,mv+1, gest='P'); } else{ ...
[ { "answer_id": 74582687, "author": "skybaks", "author_id": 19788693, "author_profile": "https://Stackoverflow.com/users/19788693", "pm_score": 1, "selected": false, "text": "gest='P';\ntmp1=1+dfs(idx+1,mv+1, gest);\n" }, { "answer_id": 74582698, "author": "fabian", "autho...
2022/11/26
[ "https://Stackoverflow.com/questions/74582565", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20606983/" ]
74,582,595
<p>For the following DOM, only child3 should be having a 100% width ignoring/overriding the padding of the parent container, and the rest child elements should have 100% width while also respecting the padding</p> <pre><code>&lt;div class=&quot;container&quot;&gt; &lt;div class=&quot;child1&quot;&gt;&lt;/div&gt; &l...
[ { "answer_id": 74583088, "author": "Neptotech -vishnu", "author_id": 14862885, "author_profile": "https://Stackoverflow.com/users/14862885", "pm_score": 1, "selected": false, "text": "--padding :root total possible length when not parent padding is ignored + twice the padding(becuase pad...
2022/11/26
[ "https://Stackoverflow.com/questions/74582595", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11837710/" ]
74,582,606
<pre><code>#include&lt;stdio.h&gt; int *arr; int main() { arr = calloc(1, sizeof(int)); free(arr); return 0; } </code></pre> <p>As far as I understand, this warning occurs because I did not declare the function in header (In this case I should've included <code>stdlib.h</code>). My questions are:</p> <ol> <...
[ { "answer_id": 74582726, "author": "Kompetenzbolzen", "author_id": 10986134, "author_profile": "https://Stackoverflow.com/users/10986134", "pm_score": 1, "selected": false, "text": "stdlib.h libc.so // a.c\nint asdf(int b){\n return b+1;\n}\n\n// main.c\nint main(void) {\n asdf();\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74582606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17481360/" ]
74,582,638
<p>I am using fetch() to call a url as follow:</p> <pre><code> const context = useContext(AuthContext); const navigate = useNavigate(); const handleSubmit = (event) =&gt; { event.preventDefault(); const data = new FormData(event.currentTarget); // console.log({ // email: data.get(&quot;email&quot;...
[ { "answer_id": 74582726, "author": "Kompetenzbolzen", "author_id": 10986134, "author_profile": "https://Stackoverflow.com/users/10986134", "pm_score": 1, "selected": false, "text": "stdlib.h libc.so // a.c\nint asdf(int b){\n return b+1;\n}\n\n// main.c\nint main(void) {\n asdf();\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74582638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17559906/" ]
74,582,640
<p>I am using a script to go up and down a level (different tabs) based on the score of the tab you are on. So the script sets the active sheet to the correct sheet, then runs hideAllTabs script which sometimes works and other times will throw the error</p> <blockquote> <p>Exception: You can't hide all the sheets in a ...
[ { "answer_id": 74582726, "author": "Kompetenzbolzen", "author_id": 10986134, "author_profile": "https://Stackoverflow.com/users/10986134", "pm_score": 1, "selected": false, "text": "stdlib.h libc.so // a.c\nint asdf(int b){\n return b+1;\n}\n\n// main.c\nint main(void) {\n asdf();\n ...
2022/11/26
[ "https://Stackoverflow.com/questions/74582640", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16202242/" ]
74,582,658
<p>How to filter the row which contains all vowels in the column value. for example, the table letters contains list of column value.</p> <pre><code>str ---- apple orange education </code></pre> <p>I tried the sql with like command.</p> <pre><code>select str from letters where str like '%a%' and str like '%e...
[ { "answer_id": 74582966, "author": "a_horse_with_no_name", "author_id": 330315, "author_profile": "https://Stackoverflow.com/users/330315", "pm_score": 2, "selected": false, "text": "ilike all() select str \nfrom letters \nwhere str ilike all (array['%a%', '%e%' , '%i%', '%o%', '%u%'])\n...
2022/11/26
[ "https://Stackoverflow.com/questions/74582658", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8726488/" ]
74,582,679
<p>I am having difficulties reducing the size of my css button. The margins are long, I keep trying to reduce it but it is not working</p>
[ { "answer_id": 74582966, "author": "a_horse_with_no_name", "author_id": 330315, "author_profile": "https://Stackoverflow.com/users/330315", "pm_score": 2, "selected": false, "text": "ilike all() select str \nfrom letters \nwhere str ilike all (array['%a%', '%e%' , '%i%', '%o%', '%u%'])\n...
2022/11/26
[ "https://Stackoverflow.com/questions/74582679", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20607085/" ]
74,582,699
<p>I'm adding rewrite rules to my PHP script which is included in a WordPress page with the permalink <strong>kb</strong></p> <p>So I can visit domain.com/kb and the page is displayed.</p> <pre><code>function wdm_add_rewrite_rules() { add_rewrite_rule( '^kb/([^/]+)/?$', 'kb?kb_cat=$matches[1]&amp;kb_seq=1', 'top');...
[ { "answer_id": 74583329, "author": "Roby Raju Oommen", "author_id": 14399782, "author_profile": "https://Stackoverflow.com/users/14399782", "pm_score": 0, "selected": false, "text": "function wdm_add_rewrite_rules() {\n add_rewrite_rule( '^kb\\/([^\\/]+)\\/?([^\\/]+)$', 'kb?kb_cat=$ma...
2022/11/26
[ "https://Stackoverflow.com/questions/74582699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4838253/" ]