qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,468,962 | <p>I'm a beginner in C language, and I was wondering what will happen if I write something like this:</p>
<pre><code> int *p;
int b = 4;
int a = 3;
p = &a;
printf("%d", p[1])
</code></pre>
<p>I was expecting the result is "4", however, I got an unexpected result(which is a ra... | [
{
"answer_id": 74468977,
"author": "ikegami",
"author_id": 589924,
"author_profile": "https://Stackoverflow.com/users/589924",
"pm_score": 2,
"selected": false,
"text": "p[1] p"
},
{
"answer_id": 74469008,
"author": "Eric Postpischil",
"author_id": 298225,
"author_pro... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468962",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20525099/"
] |
74,468,979 | <p>If I have a table like below, how do I create a dictionary of <code>dynamic</code> type from the 2 columns? E.g. <code>{"a":"1", "b":"2", etc}</code></p>
<pre><code>let test = datatable (
keys: string,
vals: string
) [
"a,b,c,d", "1,2,3,4"
];
<... | [
{
"answer_id": 74468977,
"author": "ikegami",
"author_id": 589924,
"author_profile": "https://Stackoverflow.com/users/589924",
"pm_score": 2,
"selected": false,
"text": "p[1] p"
},
{
"answer_id": 74469008,
"author": "Eric Postpischil",
"author_id": 298225,
"author_pro... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468979",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4092412/"
] |
74,469,005 | <p>I have a problem. I want to pull specific data from two different arrays in my Angular application and put it into a new array. Unfortunately I lack the experience how to do this exactly. Under this <a href="https://angular-ivy-z7n2w1.stackblitz.io" rel="nofollow noreferrer">Stackblitz link</a> you can see an exampl... | [
{
"answer_id": 74468977,
"author": "ikegami",
"author_id": 589924,
"author_profile": "https://Stackoverflow.com/users/589924",
"pm_score": 2,
"selected": false,
"text": "p[1] p"
},
{
"answer_id": 74469008,
"author": "Eric Postpischil",
"author_id": 298225,
"author_pro... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12440701/"
] |
74,469,039 | <p>Say I instantiated a random generator with</p>
<pre><code>import numpy as np
rng = np.random.default_rng(seed=42)
</code></pre>
<p>and I want to change its seed. Is it possible to update the seed of the generator instead of instantiating a new generator with the new seed?</p>
<p>I managed to find that you can see th... | [
{
"answer_id": 74469126,
"author": "shadowtalker",
"author_id": 2954547,
"author_profile": "https://Stackoverflow.com/users/2954547",
"pm_score": 2,
"selected": true,
"text": "import numpy as np\n\nseed = 12345\n\nrng = np.random.default_rng(seed)\nx1 = rng.normal(size=10)\n\nrng.__setst... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10842351/"
] |
74,469,073 | <p>My datatable is below.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th></th>
<th>menu_nm</th>
<th>dtl</th>
<th>rcp</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>sandwich</td>
<td>amazing sandwich!!!</td>
<td>bread 10g</td>
</tr>
<tr>
<td>1</td>
<td>hamburger</td>
<td>bread 20g, vegetab... | [
{
"answer_id": 74469123,
"author": "Naveed",
"author_id": 3494754,
"author_profile": "https://Stackoverflow.com/users/3494754",
"pm_score": 1,
"selected": false,
"text": "# create a filter where value under rcp is \"???\"\nm=df['rcp'].eq('???')\n\n# using loc, shift the values\n\ndf.loc[... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469073",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20505690/"
] |
74,469,109 | <p>I have a redis cluster created with master slave mode. I want to create a redisson client to access the cluster but I want to specify separate endpoints for reads and writes. Writes should go to master and reads should happen from the slaves. There is a config <em><strong>readMode</strong></em> that can I set to SLA... | [
{
"answer_id": 74469123,
"author": "Naveed",
"author_id": 3494754,
"author_profile": "https://Stackoverflow.com/users/3494754",
"pm_score": 1,
"selected": false,
"text": "# create a filter where value under rcp is \"???\"\nm=df['rcp'].eq('???')\n\n# using loc, shift the values\n\ndf.loc[... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3484844/"
] |
74,469,142 | <p>I need to automatically calculate a <strong>Start Date (aka QRT_START)</strong> which is 5 years of Quarters back. A Quarter is 3 months. For example, there are 4 Quarters in a Year: March 31st, June 30th, September 30th and December 31st.
</p>
<p>Since we are currently in November 16th 2022, the Start Date would b... | [
{
"answer_id": 74469123,
"author": "Naveed",
"author_id": 3494754,
"author_profile": "https://Stackoverflow.com/users/3494754",
"pm_score": 1,
"selected": false,
"text": "# create a filter where value under rcp is \"???\"\nm=df['rcp'].eq('???')\n\n# using loc, shift the values\n\ndf.loc[... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13794066/"
] |
74,469,149 | <p>I've always maintained the practice of checking if a value is undefined using</p>
<pre><code>if (typeof x === 'undefined')
</code></pre>
<p>However, a colleague is suggesting that using <code>if (x) {</code> is better.</p>
<p>Is there any difference between these two methods from a computational point of view?</p>
| [
{
"answer_id": 74469236,
"author": "code",
"author_id": 15359157,
"author_profile": "https://Stackoverflow.com/users/15359157",
"pm_score": 3,
"selected": true,
"text": "if(x) true typeof x if(x) \"use strict\";\n\nconst a = undefined;\nconst b = \"truthy value\";\n\nif(a) {\n console.l... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1224963/"
] |
74,469,164 | <p>i need your help on this please</p>
<p>I have an enormous directory with millions and millions of files and im trying to group those by year and month using the find command and then tar it to save some space.</p>
<p>I have created a bash script like the following</p>
<pre><code>#!/bin/bash
DIR=/data/historical
/u... | [
{
"answer_id": 74469236,
"author": "code",
"author_id": 15359157,
"author_profile": "https://Stackoverflow.com/users/15359157",
"pm_score": 3,
"selected": true,
"text": "if(x) true typeof x if(x) \"use strict\";\n\nconst a = undefined;\nconst b = \"truthy value\";\n\nif(a) {\n console.l... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469164",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20525173/"
] |
74,469,207 | <p>Hy guys this is my first time here.I am a beginner and i wantend to check how can i from a given string
(which is: string="5,93,14,2,33" ) make a list, after that to get the square of each number from the list and than to return that list (with a squared values) in to string?</p>
<p>input should to be:
str... | [
{
"answer_id": 74469236,
"author": "code",
"author_id": 15359157,
"author_profile": "https://Stackoverflow.com/users/15359157",
"pm_score": 3,
"selected": true,
"text": "if(x) true typeof x if(x) \"use strict\";\n\nconst a = undefined;\nconst b = \"truthy value\";\n\nif(a) {\n console.l... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20525326/"
] |
74,469,243 | <p>I want to call the data from API using horizontal_data_table on flutter. this is the code where it gets the error</p>
<pre><code> Container(
width: 200,
height: 52,
padding: const EdgeInsets.fromLTRB(5, 0, 0, 0),
alignment: Alignment.centerLeft,
child: Text(wid... | [
{
"answer_id": 74469301,
"author": "Jungwon",
"author_id": 15134376,
"author_profile": "https://Stackoverflow.com/users/15134376",
"pm_score": 1,
"selected": false,
"text": "nullSafty ? class LeaveListResult {\n int? paidLeaveId;\n String? paidLeaveEmployeeNip;\n String? paidLeaveEmpl... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13497264/"
] |
74,469,309 | <p>Spark Masters!</p>
<p>Does anyone has some tips on which is better or faster on pyspark to create a column with the max number of another column.</p>
<p>Option A:</p>
<pre><code>max_num = df.agg({"number": "max"}).collect()[0][0]
df = df.withColumn("max", f.lit(max_num))
</code></pre>
<... | [
{
"answer_id": 74475347,
"author": "Ric S",
"author_id": 7465462,
"author_profile": "https://Stackoverflow.com/users/7465462",
"pm_score": 1,
"selected": false,
"text": "Window df3.withColumn(\"max\", F.max(\"number\").over(Window.partitionBy()))\n import time\nimport numpy as np\nimport... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14188259/"
] |
74,469,310 | <p>I'm trying to implement a text that says "Try again" to appear when the player guesses incorrectly. This is an extremely bare bones "game" but I started coding yesterday and I'm trying to learn all the basic functions and methods. This is the code:</p>
<pre><code>secret_number = 9
guess_limit = 3... | [
{
"answer_id": 74469337,
"author": "GabrielBoehme",
"author_id": 11949273,
"author_profile": "https://Stackoverflow.com/users/11949273",
"pm_score": 2,
"selected": false,
"text": "secret_number = 9\nguess_limit = 3\nguess_count = 0\nwhile guess_count < guess_limit:\n won = False\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20513809/"
] |
74,469,333 | <p>so i have document for users with this structure in JSON format:</p>
<pre><code>[
{
"_id": {
"$oid": "6369aeb83ce0f8168520f42f"
},
"fullname": "Jokona",
"password": "$2b$10$MUAe7XIc/xtJTGVh/y1DeuShCARbwxCSejUbHaqIPZfjekNrn0.Yy&q... | [
{
"answer_id": 74469459,
"author": "Noel",
"author_id": 646591,
"author_profile": "https://Stackoverflow.com/users/646591",
"pm_score": 2,
"selected": true,
"text": "_id.username {\n $lookup: {\n from: \"users\",\n localField: \"_id.username\",\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16136595/"
] |
74,469,342 | <p>I have a set of actions [0,1,2,3] and a policy which is a series of probabilities for each action like [[0.5, 0.4, 0.05, 0.05]...].</p>
<p>How would it be possible to use np.random.choice (or something similar) which chooses from my actions array for each probability distribution and returns the list of choices?</p>... | [
{
"answer_id": 74469459,
"author": "Noel",
"author_id": 646591,
"author_profile": "https://Stackoverflow.com/users/646591",
"pm_score": 2,
"selected": true,
"text": "_id.username {\n $lookup: {\n from: \"users\",\n localField: \"_id.username\",\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15048596/"
] |
74,469,343 | <p>I have a <code>StatefulWidget</code> post_view that creates a <code>DataTable</code>. The data used to fill up the <code>DataTable</code> is from a static method in another class named Post:</p>
<p>`</p>
<pre><code>static generateData(){
List<Post> postList= [];
postList.add(Post(title: "Coolest Po... | [
{
"answer_id": 74469643,
"author": "Duy Tran",
"author_id": 19851394,
"author_profile": "https://Stackoverflow.com/users/19851394",
"pm_score": 0,
"selected": false,
"text": "class ManagePost extends Cubit<List<Post>> {\n List<Post> postList = [];\n void addPost(Post post) {\n postL... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18648904/"
] |
74,469,388 | <p>How do I combine those highlighted cells in one column? The highlighted cell is based one rule condition that contains a slash.</p>
<p><a href="https://i.stack.imgur.com/hZmaj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hZmaj.png" alt="enter image description here" /></a></p>
| [
{
"answer_id": 74469468,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 1,
"selected": false,
"text": "=INDEX(TRIM(FLATTEN(QUERY(TRANSPOSE(IF(REGEXMATCH(B:F; \"\\/\"); B:F; ));;9^9))))\n"
},
{
"answer_id": 74469... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5344804/"
] |
74,469,404 | <p>I have the following code that should work. I am simply trying to get all the "img" elements from a page into a list in AS so that I can work on that list.</p>
<pre><code>tell application "Safari"
set theWindow to front window
set theTab to current tab of theWindow
set theURL to URL of th... | [
{
"answer_id": 74469468,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 1,
"selected": false,
"text": "=INDEX(TRIM(FLATTEN(QUERY(TRANSPOSE(IF(REGEXMATCH(B:F; \"\\/\"); B:F; ));;9^9))))\n"
},
{
"answer_id": 74469... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2359796/"
] |
74,469,413 | <p>I need loop thought two array and return another array with different values.</p>
<p>Example of two arrays:</p>
<pre><code>let arr1 = ['one' , 'two' , 'three'];
let arr2 = ['four' , 'one' , 'two'];
</code></pre>
<p>What do I need?</p>
<p>Loop thought both array and return the same value, I expect new array like:</p>... | [
{
"answer_id": 74469487,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 2,
"selected": false,
"text": "reduce() let arr1 = ['one' , 'two' , 'three'];\nlet arr2 = ['four' , 'one' , 'two'];\n\nlet arr3 = arr1.concat(arr... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20448930/"
] |
74,469,414 | <p>I have a list of Dicts as follows</p>
<p><code>[{"Sender":"bob","Receiver":"alice","Amount":50},{"Sender":"bob","Receiver":"alice","Amount":60},{"Sender":"bob","Receiver":"alice"... | [
{
"answer_id": 74469487,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 2,
"selected": false,
"text": "reduce() let arr1 = ['one' , 'two' , 'three'];\nlet arr2 = ['four' , 'one' , 'two'];\n\nlet arr3 = arr1.concat(arr... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20525628/"
] |
74,469,423 | <p>I'm trying to write a program for an <code>__add__</code> method where you have to make each index in 2 lists correspond to each other in order to add them to one another, but I'm a little unsure about how to execute that.</p>
<p>For example, if I had the lists:</p>
<pre class="lang-py prettyprint-override"><code>a ... | [
{
"answer_id": 74469487,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 2,
"selected": false,
"text": "reduce() let arr1 = ['one' , 'two' , 'three'];\nlet arr2 = ['four' , 'one' , 'two'];\n\nlet arr3 = arr1.concat(arr... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20083473/"
] |
74,469,437 | <p>I am working through the Odin Project and am stuck on the first lesson where we must build a webapp using webpack. I followed the <a href="https://webpack.js.org/guides/asset-management/" rel="nofollow noreferrer">tutorials here</a> <a href="https://webpack.js.org/guides/asset-management/" rel="nofollow noreferrer">... | [
{
"answer_id": 74469487,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 2,
"selected": false,
"text": "reduce() let arr1 = ['one' , 'two' , 'three'];\nlet arr2 = ['four' , 'one' , 'two'];\n\nlet arr3 = arr1.concat(arr... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11309195/"
] |
74,469,460 | <p>the card counting rule is attached as below link.
<a href="https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/counting-cards" rel="nofollow noreferrer">link</a></p>
<p>And My code is below:</p>
<pre><code>let count = 0;
function cc(card) {
// Only change code below this ... | [
{
"answer_id": 74469750,
"author": "Lucas Vaz",
"author_id": 19375659,
"author_profile": "https://Stackoverflow.com/users/19375659",
"pm_score": 1,
"selected": false,
"text": "return count>0?card+\" Bet\":card+\" Hold\"\n return count>0?count+\" Bet\":count+\" Hold\"\n"
},
{
"ans... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469460",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19815830/"
] |
74,469,463 | <p>I have an array made up of data provided by a WordPress plugin, which looks something like this:</p>
<pre><code>array(
[label] => Evening,
[hour] => 15,
[minute] => 00,
[add_time] => enabled,
[zlzkrrwlwchehhtvdnmq_add_date] => 29 November 2022,
[zlzkrrwlwchehhtvdnmq_zoom_id... | [
{
"answer_id": 74469816,
"author": "mickmackusa",
"author_id": 2943403,
"author_profile": "https://Stackoverflow.com/users/2943403",
"pm_score": 2,
"selected": true,
"text": "return foreach() $whitelist = ['add_date', 'hour', 'minute'];\n\nvar_export(\n array_filter(\n $array,\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2643383/"
] |
74,469,466 | <p>I am using typescript, and suddenly all my project became white. The only thing Highlighted are the parenthesis. I have no idea if I pressed a shortcut or something.</p>
<p>Other language like css and html have proper color, but all my Typescript is now fully white.</p>
<p>Is there some setting to check ?</p>
<p>I t... | [
{
"answer_id": 74476355,
"author": "First Arachne",
"author_id": 13818676,
"author_profile": "https://Stackoverflow.com/users/13818676",
"pm_score": 2,
"selected": false,
"text": "v5.0.20221116 v5.0.20221115"
}
] | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3241192/"
] |
74,469,479 | <p>How can I use python to transfer data from the "weekday" column and multiple columns (Monday, Tuesday, Wednesday...) and vice versa</p>
<pre><code> buyer weekday
0 A Saturday
1 A Friday
2 B Monday
3 B Tuesday
4 B Thursday
5 C ... | [
{
"answer_id": 74469753,
"author": "Алексей Р",
"author_id": 15035314,
"author_profile": "https://Stackoverflow.com/users/15035314",
"pm_score": 1,
"selected": false,
"text": "df = pd.DataFrame({'buyer': ['A', 'A', 'B', 'B', 'B', 'C'],\n 'weekday': ['Saturday', 'Friday'... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12769319/"
] |
74,469,480 | <p>I want to return all the travellers who are currently travelling when I supply a <strong>From</strong> and <strong>To</strong> date. Meaning if I travel from <strong>1 Jan 2022</strong> until <strong>10 Jan 2022</strong> and I supply a <strong>From</strong> date as <strong>5 Jan 2022</strong> and a <strong>To</stron... | [
{
"answer_id": 74469753,
"author": "Алексей Р",
"author_id": 15035314,
"author_profile": "https://Stackoverflow.com/users/15035314",
"pm_score": 1,
"selected": false,
"text": "df = pd.DataFrame({'buyer': ['A', 'A', 'B', 'B', 'B', 'C'],\n 'weekday': ['Saturday', 'Friday'... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33584/"
] |
74,469,527 | <p>`</p>
<pre><code>function string2int(s) {
var arr = [];
for (let x of s) {
arr.push(x);
}
arr.map(function (x) {return x*1;});
var result = arr.reduce(function (x, y) {return x*10 + y;});
alert(result);
}
string2int('123456');
</code></pre>
<p>`</p>
<p>`</p>
<pre><code>function s... | [
{
"answer_id": 74469605,
"author": "danh",
"author_id": 294949,
"author_profile": "https://Stackoverflow.com/users/294949",
"pm_score": 0,
"selected": false,
"text": "arr + function string2int(s) {\n var arr = [];\n for (let x of s) {\n arr.push(+x); // convert to int her... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20525500/"
] |
74,469,552 | <p>I have a web with the url like this:</p>
<p><strong><a href="https://sampleweb.com" rel="nofollow noreferrer">https://sampleweb.com</a></strong></p>
<p>I display it on android using WebView. The Website have a button when I click the button the URL change to like this and go to another page:</p>
<p><strong><a href="... | [
{
"answer_id": 74469605,
"author": "danh",
"author_id": 294949,
"author_profile": "https://Stackoverflow.com/users/294949",
"pm_score": 0,
"selected": false,
"text": "arr + function string2int(s) {\n var arr = [];\n for (let x of s) {\n arr.push(+x); // convert to int her... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469552",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11961581/"
] |
74,469,591 | <ol>
<li>When I started to code I had two branches Main and PopUp.</li>
<li>I was working in the PopUp branch but I had to stop because I need to work in another feature.</li>
<li>In order to work in this new feature I create another branch called Form.</li>
<li>I finished the work in Form branch and I also merged in t... | [
{
"answer_id": 74469612,
"author": "shadowtalker",
"author_id": 2954547,
"author_profile": "https://Stackoverflow.com/users/2954547",
"pm_score": 1,
"selected": false,
"text": "git stash"
}
] | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20525738/"
] |
74,469,617 | <p>This question is similar to <a href="https://stackoverflow.com/questions/59919887/syntax-error-lastname-must-be-an-aggregate-expression-or-appear-in-group-by">another one</a>, but I'm providing a simpler example. The <a href="https://stackoverflow.com/a/59919952/9754418">other query</a> was too advanced to make sens... | [
{
"answer_id": 74469612,
"author": "shadowtalker",
"author_id": 2954547,
"author_profile": "https://Stackoverflow.com/users/2954547",
"pm_score": 1,
"selected": false,
"text": "git stash"
}
] | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9754418/"
] |
74,469,659 | <p>I have a system I am working with (Zapier!) which I am using to automate a workflow based on a google sheet which refreshes every hour. The Zap outputs raw row data in the following format:</p>
<p><code>list = [["header_1", "header_2", "header_3"], ["uuid_1", "first_times... | [
{
"answer_id": 74469937,
"author": "Iddo Sadeh",
"author_id": 3620846,
"author_profile": "https://Stackoverflow.com/users/3620846",
"pm_score": 2,
"selected": true,
"text": "output output tempdic tempdic[key] = value\n l = [[\"header_1\", \"header_2\", \"header_3\"], [\"uuid_1\", \"first... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469659",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4709889/"
] |
74,469,694 | <p>I have this string:</p>
<pre><code> seed_pattern <- "K?ED??HRDDKDKD?HE?REKE??DE?KKK"
</code></pre>
<p>given another string</p>
<pre><code>bb_seq <- "rhhhhitv"
</code></pre>
<p>What I'd like to do is to replace <code>?</code> with a character in <code>bb_seq</code> by keeping the order of <c... | [
{
"answer_id": 74469728,
"author": "Jilber Urbina",
"author_id": 1315767,
"author_profile": "https://Stackoverflow.com/users/1315767",
"pm_score": 3,
"selected": false,
"text": "> target <- strsplit(seed_pattern, \"\")[[1]]\n> replacement <- strsplit(bb_seq, \"\")[[1]]\n> target[target==... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8391698/"
] |
74,469,703 | <p>I am attempting to send two arrays to a function using pointers.</p>
<p>Next, I attempting to assign the dereferenced values from the two *arrays (sent as arguments in the function call) to the two (non-pointer) arrays where they can be manipulated with greater ease.</p>
<p>Note: there are no objects or clesses. I d... | [
{
"answer_id": 74469728,
"author": "Jilber Urbina",
"author_id": 1315767,
"author_profile": "https://Stackoverflow.com/users/1315767",
"pm_score": 3,
"selected": false,
"text": "> target <- strsplit(seed_pattern, \"\")[[1]]\n> replacement <- strsplit(bb_seq, \"\")[[1]]\n> target[target==... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20506604/"
] |
74,469,718 | <p>I have this generics where <code>Num</code> is defined in <a href="https://docs.rs/num/0.4.0/num/index.html" rel="nofollow noreferrer"><code>num</code> crate</a>:</p>
<pre class="lang-rust prettyprint-override"><code>//finds `x` where `f(x) == Equal` for `x ∈ [left, right)`
fn binary_search<T: Debug + Copy + Part... | [
{
"answer_id": 74469973,
"author": "John Kugelman",
"author_id": 68587,
"author_profile": "https://Stackoverflow.com/users/68587",
"pm_score": 2,
"selected": false,
"text": "Less Greater pub fn binary_search<\n T: Debug + Copy + PartialOrd + Num,\n F: FnMut(T) -> Ordering,\n>(\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8776746/"
] |
74,469,720 | <p>I was creating an android notification app which gives notification every 15 minutes after the alarm has been set.</p>
<p>it calls first time, and shows notification but workmanager not calling every 15 minutes.</p>
<pre><code>
val myWorkRequest = PeriodicWorkRequestBuilder<ReminderWorker>(15, TimeUnit.MINUTE... | [
{
"answer_id": 74469973,
"author": "John Kugelman",
"author_id": 68587,
"author_profile": "https://Stackoverflow.com/users/68587",
"pm_score": 2,
"selected": false,
"text": "Less Greater pub fn binary_search<\n T: Debug + Copy + PartialOrd + Num,\n F: FnMut(T) -> Ordering,\n>(\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17504674/"
] |
74,469,721 | <p>i am getting the data by fetching api.
here is after fetching data from API, i am getting data something like this:</p>
<pre><code>const info={
"suggesstion":0,
"idea":{
"prod": [
{
"group": {
"subj":... | [
{
"answer_id": 74469973,
"author": "John Kugelman",
"author_id": 68587,
"author_profile": "https://Stackoverflow.com/users/68587",
"pm_score": 2,
"selected": false,
"text": "Less Greater pub fn binary_search<\n T: Debug + Copy + PartialOrd + Num,\n F: FnMut(T) -> Ordering,\n>(\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20289307/"
] |
74,469,737 | <p>I have a list with several dataframes, each dataframe correspond to an election, say 2010, 2013, ..., 2021.</p>
<p>For each dataframe, I want to add the year to every column name except the first three columns. So I'm trying to add the year to [,4:end_column] using a for loop:</p>
<pre><code>for (i in names(SECCIONE... | [
{
"answer_id": 74469838,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 2,
"selected": false,
"text": "base R list names list Map substr substr data.frame paste substr SECCIONES_year <- Map(function(x, nm)\n {\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20525851/"
] |
74,469,793 | <div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Street</th>
<th>City</th>
<th>Hour of Registration</th>
</tr>
</thead>
<tbody>
<tr>
<td>hill st</td>
<td>bolton</td>
<td>11/16/2022 10:00</td>
</tr>
<tr>
<td>flo st</td>
<td>bolton</td>
<td>11/15/2022 10:10</td>
</tr>
</tbody>
</table>
</div>
<p>I... | [
{
"answer_id": 74469838,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 2,
"selected": false,
"text": "base R list names list Map substr substr data.frame paste substr SECCIONES_year <- Map(function(x, nm)\n {\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4717451/"
] |
74,469,808 | <p>I am writing a jQuery dblclick() method. I am trying to show a hidden menu when double clicked on a button. I am creating a button named "Menu" in my html file with href attribute.</p>
<p>The href attribute in HTML file is this:</p>
<pre><code><a href="#" id="menu_link">Menu</a... | [
{
"answer_id": 74470842,
"author": "NoobBit",
"author_id": 15585074,
"author_profile": "https://Stackoverflow.com/users/15585074",
"pm_score": 0,
"selected": false,
"text": "<a href=\"#\" id=\"menu_link\">Menu</a>\n <a id=\"menu_link\">Menu</a>\n"
},
{
"answer_id": 74471476,
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20434140/"
] |
74,469,812 | <p>I want to change the svg icon color in css, but it won't change for some reason. Please, help :
<a href="https://codepen.io/Flowersj/pen/OJExzME" rel="nofollow noreferrer">https://codepen.io/Flowersj/pen/OJExzME</a></p>
<p>I tried adding class to parent tag and trying to style it, didn't work.</p>
<p>HTML:
<code><... | [
{
"answer_id": 74469914,
"author": "AtomicUs5000",
"author_id": 17934914,
"author_profile": "https://Stackoverflow.com/users/17934914",
"pm_score": 1,
"selected": false,
"text": "body {\n background-color: black;\n}\n.nav-icon-path {\n fill: red;\n} <body>\n <svg xmlns=\"http://www.... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20343913/"
] |
74,469,814 | <p>I'm new to Nuxt3 and I've been working on the login api inside a function. The api call works when it's outside the function, but when I put it inside a function, it returns a 419 error response.</p>
<p>this is my form:</p>
<pre><code><div>
<div class="grid grid-cols-4 gap-5"></div>
... | [
{
"answer_id": 74469914,
"author": "AtomicUs5000",
"author_id": 17934914,
"author_profile": "https://Stackoverflow.com/users/17934914",
"pm_score": 1,
"selected": false,
"text": "body {\n background-color: black;\n}\n.nav-icon-path {\n fill: red;\n} <body>\n <svg xmlns=\"http://www.... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19885196/"
] |
74,469,824 | <p>I have a dependent variable name list as</p>
<pre><code>depend<-c('a', 'b', 'c')
</code></pre>
<p>And I have a formula for regression model can be defined as</p>
<pre><code>1_equ<-d~e
</code></pre>
<p>I would like to automatically switch the dependent variable of that formula by using update.</p>
<p>I have tri... | [
{
"answer_id": 74469894,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 2,
"selected": false,
"text": "\"~ .\" `1_equ` <- d ~ e\nfor ( i in seq_along(depend)) { \n nm1 <- paste0(\"1_equ_\", depend[i]) \n \n assign(nm1... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17496231/"
] |
74,469,850 | <pre><code> <div class="hero">
<div class="container">
</div>
</div>
</body>
</code></pre>
<pre><code> height: 100%;
background: hsl(212, 45%, 89%);
}
.container {
margin: auto;
height: 100%;
background-color: white;
p... | [
{
"answer_id": 74469878,
"author": "Ankit",
"author_id": 19757319,
"author_profile": "https://Stackoverflow.com/users/19757319",
"pm_score": 1,
"selected": false,
"text": "flex-box CSS CSS .hero{\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 100vh\n... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20451255/"
] |
74,469,853 | <p>Currently I'm working with a team on a project. Due to some reasons my computer needs some special settings so I want to keep a local file different from git remote, which won't be uploaded when I git push. What should I do?</p>
<p>I guess I may need to do some modifications in .gitignore, but that will have a globa... | [
{
"answer_id": 74469878,
"author": "Ankit",
"author_id": 19757319,
"author_profile": "https://Stackoverflow.com/users/19757319",
"pm_score": 1,
"selected": false,
"text": "flex-box CSS CSS .hero{\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 100vh\n... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20525919/"
] |
74,469,857 | <p>I have what I thought was a typical application with React front end and Spring boot as the backend. I'm trying to setup security to use Azure active directory to authenticate and authorize users. Authentication works but authorization doesn't</p>
<p>The UI part is simple and works, I'm using MSAL to authenticate an... | [
{
"answer_id": 74470200,
"author": "ch4mp",
"author_id": 619830,
"author_profile": "https://Stackoverflow.com/users/619830",
"pm_score": 1,
"selected": false,
"text": ".well-known/openid-configuration JWKS_URI spring.security.oauth2.resourceserver.jwt.jwk-set-uri spring.security.oauth2.r... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2402867/"
] |
74,469,866 | <blockquote>
</blockquote>
<pre><code>def formater_damier(joueurs):
joueurs = [
{"nom": "1", "pos": [5, 5]},
{"nom": "2", "pos": [8, 6]}
]
grille = (
( ' ----------------------------------- \n'
'9 | . . . . ... | [
{
"answer_id": 74470200,
"author": "ch4mp",
"author_id": 619830,
"author_profile": "https://Stackoverflow.com/users/619830",
"pm_score": 1,
"selected": false,
"text": ".well-known/openid-configuration JWKS_URI spring.security.oauth2.resourceserver.jwt.jwk-set-uri spring.security.oauth2.r... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18766563/"
] |
74,469,899 | <p>I want to send a post request using ballerina to get a access token from the Choreo Dev Portal. I am able to do it using postman. But unable to make it work in Ballerina code level. it gives 415 - unsupported media type error. Need some Help in Ballerina</p>
<pre><code>import ballerina/http;
import ballerina/io;
imp... | [
{
"answer_id": 74470279,
"author": "Chamil E",
"author_id": 6822363,
"author_profile": "https://Stackoverflow.com/users/6822363",
"pm_score": 1,
"selected": false,
"text": "Content-type addHeader() setHeader() request.setTextPayload(encodedPayload); Content-type text/plain request.addHea... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11291692/"
] |
74,469,911 | <p>I wouldl like to extract the Y-M-D information from the following html.</p>
<pre><code>Created at</th><td><span><time datetime="2001-06-01"
</code></pre>
<pre><code>date= [re.search("Created at</th><td><span><time datetime=([0-9A-Za-z\&;]*)", address)... | [
{
"answer_id": 74470279,
"author": "Chamil E",
"author_id": 6822363,
"author_profile": "https://Stackoverflow.com/users/6822363",
"pm_score": 1,
"selected": false,
"text": "Content-type addHeader() setHeader() request.setTextPayload(encodedPayload); Content-type text/plain request.addHea... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20462164/"
] |
74,469,920 | <p>How to replace all "pi" from a string by "3.14"? Example: <code>INPUT = "xpix" ___ OUTPUT = "x3.14x"</code> for a string, not character array.</p>
<p>This doesn't work:</p>
<pre><code>#include<iostream>
using namespace std;
void replacePi(string str)
{
if(str.size(... | [
{
"answer_id": 74470356,
"author": "sxu",
"author_id": 19694882,
"author_profile": "https://Stackoverflow.com/users/19694882",
"pm_score": 0,
"selected": false,
"text": "string::find string::replace size_t replace_all(std::string& str, std::string from, std::string to)\n{\n size_t cou... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16827777/"
] |
74,469,926 | <p>I wanted to show a tooltip when I tap my gesture detector and do different things when the <code>GestureDetector</code> is long pressed, How can I achieve this? I have written some code about it but on long press still shows a tooltip rather than accessing my <code>selectDate()</code> function</p>
<p>this is my curr... | [
{
"answer_id": 74470020,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 1,
"selected": false,
"text": "triggerMode: TooltipTriggerMode.manual final GlobalKey<TooltipState> tooltipkey = GlobalKey<TooltipState>()... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15529116/"
] |
74,469,962 | <p>I am trying to run this code in Oracle database but it's giving error :</p>
<blockquote>
<pre><code> ORA-00904: "vw_d"."cl_name": invalid identifier
</code></pre>
</blockquote>
<p>What's wrong with the query:</p>
<pre><code>SELECT *
FROM vw_doctrans vw_d
WHERE (SELECT COUNT(*)
FROM (... | [
{
"answer_id": 74470020,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 1,
"selected": false,
"text": "triggerMode: TooltipTriggerMode.manual final GlobalKey<TooltipState> tooltipkey = GlobalKey<TooltipState>()... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469962",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20526174/"
] |
74,469,980 | <p>In C++ you can make concepts that check for specific type equality:</p>
<pre><code>template<typename T> concept Int = std::is_same_v<T, int>;
template<typename T> concept String = std::is_same_v<T, std::string>;
</code></pre>
<p>Is it possible to make a concept that checks for type equality o... | [
{
"answer_id": 74470014,
"author": "user17732522",
"author_id": 17732522,
"author_profile": "https://Stackoverflow.com/users/17732522",
"pm_score": 0,
"selected": false,
"text": "template<typename T, typename U> concept ValidType = std::is_same_v<T, U>;\n int std::string std::same_as Val... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19333949/"
] |
74,469,982 | <p>I am using Python to create a very basic calculator. for whatever reason the numbers will only add - they will not do any of the other functions. Please help!</p>
<pre><code>equation_type = input("What kind of math do you want to do? ")
equation_type = equation_type.lower()
first_number = float(input(&quo... | [
{
"answer_id": 74470011,
"author": "DeusDev",
"author_id": 10312417,
"author_profile": "https://Stackoverflow.com/users/10312417",
"pm_score": 0,
"selected": false,
"text": "equation_type == \"add\" or equation_type == \"addition\":"
},
{
"answer_id": 74470015,
"author": "sha... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14841552/"
] |
74,469,996 | <p>Currently, I have a dropdown list and 1-25 values in the dropdown.</p>
<p>The current one is I want to make a checkbox for those values instead of choosing multiple.</p>
<p>Is there any way to add a checkbox for those?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false... | [
{
"answer_id": 74470011,
"author": "DeusDev",
"author_id": 10312417,
"author_profile": "https://Stackoverflow.com/users/10312417",
"pm_score": 0,
"selected": false,
"text": "equation_type == \"add\" or equation_type == \"addition\":"
},
{
"answer_id": 74470015,
"author": "sha... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74469996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20496420/"
] |
74,470,059 | <p>I want help to calculate the RMSE of two groups from the dataset looking like this:</p>
<pre><code>structure(list(machine = c("B", "B", "B", "B", "B", "B", "B",
"B", "B", "A", "A", "A", "A&q... | [
{
"answer_id": 74470011,
"author": "DeusDev",
"author_id": 10312417,
"author_profile": "https://Stackoverflow.com/users/10312417",
"pm_score": 0,
"selected": false,
"text": "equation_type == \"add\" or equation_type == \"addition\":"
},
{
"answer_id": 74470015,
"author": "sha... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20052956/"
] |
74,470,064 | <p>I am looking to determine the difference in days by groups across two columns and two rows. Essentially subtract from the End Day by the subsequent Start Day in the subsequent row and record the difference as new column in the data frame and start over when a new group (ID) has been identified.</p>
<pre><code>Start_... | [
{
"answer_id": 74470084,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 3,
"selected": true,
"text": "lead library(dplyr)\ndf1 <- df1 %>%\n mutate(across(ends_with(\"Date\"), as.Date)) %>%\n group_by(ID) %>% \n muta... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20526140/"
] |
74,470,083 | <p>I try every method it can be convert .text to int but I got error like this.</p>
<p>mycode</p>
<pre><code>private void button1_Click(object sender, EventArgs e)
{
SqlConnection con1 = new SqlConnection("Data Source=localhost\\SQLEXPRESS;Initial Catalog=libralyServer;Integrated Security=True&... | [
{
"answer_id": 74470084,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 3,
"selected": true,
"text": "lead library(dplyr)\ndf1 <- df1 %>%\n mutate(across(ends_with(\"Date\"), as.Date)) %>%\n group_by(ID) %>% \n muta... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19626264/"
] |
74,470,102 | <p>Why is this still returning a count of 3 ?</p>
<pre><code>$arr =
[
[
'slug' => 'products-services-pricing',
'text' => 'Products/Services and Pricing',
],
[
'slug' => 'promotions-plan',
'text' => 'Promotions Plan',
],
(1 == 2) ?
[
'slug' =>... | [
{
"answer_id": 74470334,
"author": "José Carlos PHP",
"author_id": 2826112,
"author_profile": "https://Stackoverflow.com/users/2826112",
"pm_score": 2,
"selected": true,
"text": "null <?php\n$arr = [null, null, null];\n\necho 'Count: ' . count($arr); //Will print 3\n null null $aux = [];... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/126833/"
] |
74,470,113 | <p>To briefly explain the code, we have a simple stream builder which fetches data in the Firestore Database and then we return and display the value of 'username' on the screen.</p>
<p>We also have a TextField in the same widget & I've noticed that whenever I click on it, it seems to rebuild and fetch the data aga... | [
{
"answer_id": 74477832,
"author": "jaimin rana",
"author_id": 14153321,
"author_profile": "https://Stackoverflow.com/users/14153321",
"pm_score": 2,
"selected": true,
"text": "@override\nvoid initState() {\n super.initState();\n streamData = FirebaseFirestore.instance\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20269646/"
] |
74,470,130 | <p>I have this question in my mind from past couple of days. What is the best way to capture data from an API in our redux store. I am using redux toolkit.</p>
<p>For e.g below is the code -</p>
<pre><code>const userSlice = createSlice({
name: 'user',
initialState,
reducers: {},
extraReducers: builder => {
... | [
{
"answer_id": 74477832,
"author": "jaimin rana",
"author_id": 14153321,
"author_profile": "https://Stackoverflow.com/users/14153321",
"pm_score": 2,
"selected": true,
"text": "@override\nvoid initState() {\n super.initState();\n streamData = FirebaseFirestore.instance\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19290397/"
] |
74,470,137 | <p><strong>Solved</strong></p>
<p>I have the current dataframe df:</p>
<pre><code>Farmer Good Fruit
Matt 5
Tom 10
</code></pre>
<p>which I want to change to:</p>
<pre><code>Farmer Fruit
Matt 5
Tom 10
</code></pre>
<p>I am wondering if I can convert any column name containing Fruit, such as "G... | [
{
"answer_id": 74470249,
"author": "Mohammed Jhosawa",
"author_id": 5599067,
"author_profile": "https://Stackoverflow.com/users/5599067",
"pm_score": 0,
"selected": false,
"text": "df.rename(columns = {'Good Fruit':'Fruit'}, inplace = True)\n"
},
{
"answer_id": 74470294,
"aut... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470137",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18613413/"
] |
74,470,141 | <pre><code> comp_dict = {'ap': {'val': 0.3, 'count': 3}, 'sd': {'val': 0.02, 'count': 1}, 'ao': {'val': 0.01, 'count': 1}}
avg_rate = {}
for value in comp_dict.keys():
avg_rate[value] = comp_dict[value]['val']/comp_dict[value]['count']
print(avg_rate[value])
</code></pre>
<p>It seems like the output I got only... | [
{
"answer_id": 74470218,
"author": "pomseb",
"author_id": 14825527,
"author_profile": "https://Stackoverflow.com/users/14825527",
"pm_score": 0,
"selected": false,
"text": "avg_rate = {k:comp_dict[k]['val']/comp_dict[k]['count'] for k in comp_dict for k2 in comp_dict[k]}\n"
},
{
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20526299/"
] |
74,470,156 | <p>I am using js to monitor the mouse xy and when I shrink the window, the media applies to a value that I did not ask. What can be causing this calculus error? Is it the browser-side scrollbar? I am using Brave browser to test this, and it doesn't matter if I try "min-width" or "max-width", the val... | [
{
"answer_id": 74470218,
"author": "pomseb",
"author_id": 14825527,
"author_profile": "https://Stackoverflow.com/users/14825527",
"pm_score": 0,
"selected": false,
"text": "avg_rate = {k:comp_dict[k]['val']/comp_dict[k]['count'] for k in comp_dict for k2 in comp_dict[k]}\n"
},
{
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470156",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13661572/"
] |
74,470,162 | <p>I'm trying to read lines from a file, and try to put it in html by using beautiful soup.
each line will be appended into a list, and using for loop, I appended them in the string, and '\n' in every end of the line.
for example,</p>
<pre><code>lines = [a,b,c,d]
string = ''
for line in lines:
string = string + lin... | [
{
"answer_id": 74470218,
"author": "pomseb",
"author_id": 14825527,
"author_profile": "https://Stackoverflow.com/users/14825527",
"pm_score": 0,
"selected": false,
"text": "avg_rate = {k:comp_dict[k]['val']/comp_dict[k]['count'] for k in comp_dict for k2 in comp_dict[k]}\n"
},
{
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14399629/"
] |
74,470,164 | <p>I want to determine complexity for second_max function but how do i do it, how to determine time complexity for my code and for any other code</p>
<pre><code>from random import randint
import sys
from bigO import BigO
def r_array(r_i= 0,r_e = 100,step=10):
return [randint(r_i, r_e) for i in range(r_i, r_e, step... | [
{
"answer_id": 74472217,
"author": "trincot",
"author_id": 5459839,
"author_profile": "https://Stackoverflow.com/users/5459839",
"pm_score": 3,
"selected": true,
"text": "arr if arr[i] > n_max:\n n_s_max = n_max\n n_max = arr[i]\n elif (arr[i] < n_max ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470164",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19759808/"
] |
74,470,177 | <p>I've set up a C# project that uses swashbuckler swagger. I've been able to create an Authorize button on one of my definitions successfully. But when adding a new definition, I can't Authorize that new definition, and all my endpoints return a 401 unauthorized. I can only Authorize on the default definition.</p>
<p>... | [
{
"answer_id": 74470201,
"author": "vivek nuna",
"author_id": 6527049,
"author_profile": "https://Stackoverflow.com/users/6527049",
"pm_score": 0,
"selected": false,
"text": "[AllowAnonymous]\npublic ActionResult SomeMethod()\n{\n}\n"
},
{
"answer_id": 74470567,
"author": "sk... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1449587/"
] |
74,470,202 | <p>I recently switched to Python from Java for development and is still not used to some of the implicitness of Python programming.</p>
<p>I have a class which I have defined some class variables, how can I access the class variables within a method in Python?</p>
<pre class="lang-py prettyprint-override"><code>class E... | [
{
"answer_id": 74470250,
"author": "Jongwook Choi",
"author_id": 1534182,
"author_profile": "https://Stackoverflow.com/users/1534182",
"pm_score": 3,
"selected": true,
"text": "self. cls. class Example:\n CONSTANT_A = \"A\"\n \n @classmethod\n def mymethod(cls):\n prin... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4776227/"
] |
74,470,221 | <p>I am trying to run below simple program with virtual threads on my intellij with java19 version selected.</p>
<h2>Code</h2>
<pre><code>public class VTSimple {
public static void main(String[] args) {
Runnable runnable = () -> System.out.println("Inside Runnable");
Thread.startVirtual... | [
{
"answer_id": 74470250,
"author": "Jongwook Choi",
"author_id": 1534182,
"author_profile": "https://Stackoverflow.com/users/1534182",
"pm_score": 3,
"selected": true,
"text": "self. cls. class Example:\n CONSTANT_A = \"A\"\n \n @classmethod\n def mymethod(cls):\n prin... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8017666/"
] |
74,470,232 | <p>I am trying to create a 2D array that I will use to plot a heatmap.</p>
<p>The array needs to be n by n and have the highest value be at its epicenter with diminishing values further away like in the diagram below.</p>
<p>How could I do that?</p>
<p><a href="https://i.stack.imgur.com/Fwd1t.png" rel="nofollow norefer... | [
{
"answer_id": 74470577,
"author": "aspiringroboticist",
"author_id": 4639701,
"author_profile": "https://Stackoverflow.com/users/4639701",
"pm_score": 2,
"selected": true,
"text": "\nimport numpy as np\nimport matplotlib.pyplot as plt\n# creating array using numpy\narray=np.ones((9,9),d... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16762426/"
] |
74,470,240 | <pre><code>lst1 = [
{"id": "A", "a": "one"},
{"id": "B", "b": "two"}
]
lst2 = [
{"id": "A", "a1": "Three"},
{"id": "B", "b1": "Four"},
{"... | [
{
"answer_id": 74470413,
"author": "Ben Grossmann",
"author_id": 2476977,
"author_profile": "https://Stackoverflow.com/users/2476977",
"pm_score": 2,
"selected": true,
"text": "arr = [\n {'id': 'A', 'a': 'one'},\n {'id': 'B', 'b': 'two'},\n {'id': 'A', 'a1': 'Three'},\n {... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/128618/"
] |
74,470,272 | <p>I have the following image, but i need the blue part to be inside the white div. tried with overflow:hidden but doesn't work. how can i make it not to be visible and retain the border radius of the white div.</p>
<p><a href="https://i.stack.imgur.com/B1gyd.jpg" rel="nofollow noreferrer"><img src="https://i.stack.img... | [
{
"answer_id": 74470413,
"author": "Ben Grossmann",
"author_id": 2476977,
"author_profile": "https://Stackoverflow.com/users/2476977",
"pm_score": 2,
"selected": true,
"text": "arr = [\n {'id': 'A', 'a': 'one'},\n {'id': 'B', 'b': 'two'},\n {'id': 'A', 'a1': 'Three'},\n {... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14510035/"
] |
74,470,315 | <p>I am new using .NET MAUI and my issue is very simple but I could not find a way to solve this, I am trying to get any component by its x:Name using Mvvm pattern.</p>
<p>is it possible through ViewModels? For example I have a login page after clicking button I want this button to get blocked to prevent double clicks.... | [
{
"answer_id": 74470796,
"author": "Sandman",
"author_id": 6070324,
"author_profile": "https://Stackoverflow.com/users/6070324",
"pm_score": 2,
"selected": false,
"text": "IsLoginButtonEnabled IsEnabled public partial class LoginViewModel : ObservableObject\n{\n private bool _isLoginBut... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470315",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6091709/"
] |
74,470,339 | <p>I'm trying to access string value from TempData from the script tag inside <code>.cshtml</code> file.</p>
<pre><code><script>
var FromComTaskLibType = '@TempData["FromComTaskLibType"]';
console.log(FromComTaskLibType.toString())
</script>
</code></pre>
<p>Using this, I am getting ... | [
{
"answer_id": 74470557,
"author": "Sajjad Emami",
"author_id": 9858518,
"author_profile": "https://Stackoverflow.com/users/9858518",
"pm_score": 0,
"selected": false,
"text": "ViewBag @ViewBag.nameEntity\n"
},
{
"answer_id": 74470915,
"author": "Md Farid Uddin Kiron",
"a... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470339",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17864851/"
] |
74,470,345 | <p>How to increase the Until Activity time to more than 7 days in Azure Data factory<strong>strong text</strong></p>
| [
{
"answer_id": 74485059,
"author": "HimanshuSinha-msft",
"author_id": 11137679,
"author_profile": "https://Stackoverflow.com/users/11137679",
"pm_score": 0,
"selected": false,
"text": "@range(1, maxNum)\n"
}
] | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17155606/"
] |
74,470,368 | <p>I have a .tif file about the ground temperature of a certain region on Earth and I would like to find out the coordinates of the region.</p>
<p>Here is a link to the file I am working on:
<a href="https://drive.google.com/file/d/1wG-qUjshBFQdeHaYYsUsWQToEVvDy2HM/view?usp=share_link" rel="nofollow noreferrer">2017001... | [
{
"answer_id": 74485059,
"author": "HimanshuSinha-msft",
"author_id": 11137679,
"author_profile": "https://Stackoverflow.com/users/11137679",
"pm_score": 0,
"selected": false,
"text": "@range(1, maxNum)\n"
}
] | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20526292/"
] |
74,470,410 | <p>How do you take an email_list with emails in the format first.last@domain.com and append unique names to a new update_list? I would use this update_list and convert it to CamelCase, but I'm not sure how to take only part of an index to search for duplicates. Is there some way to use regex? Keep getting TpeError: exp... | [
{
"answer_id": 74485059,
"author": "HimanshuSinha-msft",
"author_id": 11137679,
"author_profile": "https://Stackoverflow.com/users/11137679",
"pm_score": 0,
"selected": false,
"text": "@range(1, maxNum)\n"
}
] | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17416196/"
] |
74,470,419 | <p>I'm trying to click load more button several times using selenium, however I cannot click load more button (it is even not a button...)<br />
When I try to click it, it shows error <code>element click intercepted: Element is not clickable at point</code> even after I explicitly code <code>wait.until(EC.element_to_be... | [
{
"answer_id": 74472042,
"author": "Prophet",
"author_id": 3485434,
"author_profile": "https://Stackoverflow.com/users/3485434",
"pm_score": 3,
"selected": true,
"text": "style import time\n\nfrom selenium import webdriver\nfrom selenium.webdriver.chrome.service import Service\nfrom sele... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14755028/"
] |
74,470,425 | <p>I have a type like this</p>
<pre><code>type d = {
(e: 'edit', value: boolean): void;
(e: 'download', value: boolean): void;
(e: 'delete', value: boolean): void;
}
</code></pre>
<p>I want to set the type of a function, which will accept only <code>'edit' | 'download' | 'delete'</code> i.e. all the e values of t... | [
{
"answer_id": 74472042,
"author": "Prophet",
"author_id": 3485434,
"author_profile": "https://Stackoverflow.com/users/3485434",
"pm_score": 3,
"selected": true,
"text": "style import time\n\nfrom selenium import webdriver\nfrom selenium.webdriver.chrome.service import Service\nfrom sele... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470425",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/277696/"
] |
74,470,431 | <p>For example, if there is a table named paper, I execute sql with
[ select paper.user_id, paper.name, paper.score from paper where user_id in (201,205,209……) ]</p>
<p>I observed that when this statement is executed, index will only be used when the number of "in" is less than a certain number. and the certa... | [
{
"answer_id": 74472042,
"author": "Prophet",
"author_id": 3485434,
"author_profile": "https://Stackoverflow.com/users/3485434",
"pm_score": 3,
"selected": true,
"text": "style import time\n\nfrom selenium import webdriver\nfrom selenium.webdriver.chrome.service import Service\nfrom sele... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15654534/"
] |
74,470,542 | <pre><code>library(data.table)
table1 <- data.table(id1 = c(1324, 2324, 29, 29, 1010, 1010),
type = c(1, 1, 2, 1, 1, 1),
class = c("A", "A", "B", "D", "D", "A"),
number = c(1, 98, 100, 100, 70,... | [
{
"answer_id": 74472042,
"author": "Prophet",
"author_id": 3485434,
"author_profile": "https://Stackoverflow.com/users/3485434",
"pm_score": 3,
"selected": true,
"text": "style import time\n\nfrom selenium import webdriver\nfrom selenium.webdriver.chrome.service import Service\nfrom sele... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3391549/"
] |
74,470,550 | <p>You init a 2-d matrix like this</p>
<pre><code>board = [[0] * width for _ in range(height)]
</code></pre>
<p>Instead of</p>
<pre><code>board = [[0] * width] * height
</code></pre>
<p>as it creates the list once and every row references the same list.</p>
<p>Is it not the same in the first case, we still use <code>*<... | [
{
"answer_id": 74470618,
"author": "Jongwook Choi",
"author_id": 1534182,
"author_profile": "https://Stackoverflow.com/users/1534182",
"pm_score": 0,
"selected": false,
"text": "In [1]: a = object() ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470550",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3646408/"
] |
74,470,626 | <p>Enter your height in meters: t
Invalid choice. Try again
Enter your height in meters: 1.7
Enter your weight in kg: g
Invalid choice. Try again
Enter your height in meters:</p>
<p>This is my output.
The first time the user inputs an invalid choice the correct display is shown and the user is directed to re-enter thei... | [
{
"answer_id": 74470901,
"author": "unleashed gamer",
"author_id": 13794470,
"author_profile": "https://Stackoverflow.com/users/13794470",
"pm_score": 1,
"selected": false,
"text": "def BMI():\n\nwhile True:\n\n try:\n\n try:\n\n h=float(input(\"Enter your height in ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19422638/"
] |
74,470,644 | <p>at the moment our react components look something like this:</p>
<p>Parent.tsx:</p>
<pre><code>const Child1 = () => ...
const Child2 = () => ...
export const Parent = () => ...
</code></pre>
<p>Wrapper.tsx</p>
<pre><code>import { Parent } from 'Parent.tsx'
/// use parent
</code></pre>
<p>This makes it di... | [
{
"answer_id": 74470901,
"author": "unleashed gamer",
"author_id": 13794470,
"author_profile": "https://Stackoverflow.com/users/13794470",
"pm_score": 1,
"selected": false,
"text": "def BMI():\n\nwhile True:\n\n try:\n\n try:\n\n h=float(input(\"Enter your height in ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13794223/"
] |
74,470,667 | <pre><code>String value = "0001111000010000000100000100100110000000000000101010000101000000011000000010011110011001001101100011101011110110000100001101010111010011101010011001011001100001001000010000000010110001001001001011"
BigInteger bi = new BigInteger(value, 2);
// bi : 11794183182202048648710358761397377... | [
{
"answer_id": 74470901,
"author": "unleashed gamer",
"author_id": 13794470,
"author_profile": "https://Stackoverflow.com/users/13794470",
"pm_score": 1,
"selected": false,
"text": "def BMI():\n\nwhile True:\n\n try:\n\n try:\n\n h=float(input(\"Enter your height in ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14964159/"
] |
74,470,679 | <p>I've written a code that lets the user continuously input new members' names for The Beatles, and prints a new list of members' names once the user has done with inputting, but I keep getting repeated names if I enter more than one name.</p>
<p>Could somebody help me out here?</p>
<pre><code># step 1
beatles = ['Joh... | [
{
"answer_id": 74470901,
"author": "unleashed gamer",
"author_id": 13794470,
"author_profile": "https://Stackoverflow.com/users/13794470",
"pm_score": 1,
"selected": false,
"text": "def BMI():\n\nwhile True:\n\n try:\n\n try:\n\n h=float(input(\"Enter your height in ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20475880/"
] |
74,470,685 | <p>I am stuck with this problem of giving padding to all sides to a <strong>value</strong> inside NumericUpDown control in Winforms.</p>
<p>Apparently no one has asked this before.</p>
<p>Actual how control is looking: (<a href="https://i.stack.imgur.com/KIweV.png" rel="nofollow noreferrer">https://i.stack.imgur.com/KI... | [
{
"answer_id": 74470901,
"author": "unleashed gamer",
"author_id": 13794470,
"author_profile": "https://Stackoverflow.com/users/13794470",
"pm_score": 1,
"selected": false,
"text": "def BMI():\n\nwhile True:\n\n try:\n\n try:\n\n h=float(input(\"Enter your height in ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14623711/"
] |
74,470,708 | <p>This suddenly happened after I created a new file while working on a project. Almost all characters are simply white text (except for brackets, because I have <em>bracket pair colorization</em> enabled)</p>
<p><a href="https://i.stack.imgur.com/9A2HY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9A2HY.pn... | [
{
"answer_id": 74480373,
"author": "Vitalii",
"author_id": 13111228,
"author_profile": "https://Stackoverflow.com/users/13111228",
"pm_score": -1,
"selected": false,
"text": "JavaScript TypeScript"
}
] | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14649369/"
] |
74,470,781 | <p>table 1: decks</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>deckid</th>
<th>name</th>
</tr>
</thead>
<tbody>
<tr>
<td>1662490522316</td>
<td>test1</td>
</tr>
<tr>
<td>1662975567468</td>
<td>test3</td>
</tr>
<tr>
<td>1663153348829</td>
<td>test4/@/4</td>
</tr>
<tr>
<td>1664289454461</t... | [
{
"answer_id": 74480373,
"author": "Vitalii",
"author_id": 13111228,
"author_profile": "https://Stackoverflow.com/users/13111228",
"pm_score": -1,
"selected": false,
"text": "JavaScript TypeScript"
}
] | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17183867/"
] |
74,470,792 | <p>Is there a better way to write this constructor which has multiple <code>if</code> statements and multiple arguments? I'm a noob to programming so any leads would be helpful.</p>
<pre class="lang-java prettyprint-override"><code>public Latency(final double full, final double cpuOne, final double cpuTwo, final double... | [
{
"answer_id": 74471012,
"author": "Abra",
"author_id": 2164365,
"author_profile": "https://Stackoverflow.com/users/2164365",
"pm_score": 2,
"selected": false,
"text": "if cpu* public class Latency {\n private double full;\n private double cpuOne;\n private double cpuTwo;\n p... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20400359/"
] |
74,470,800 | <p>I have a table, I want to pivot the table, my desired output is @tab2.</p>
<p>My table is as follows:</p>
<pre><code>declare @tab1 table(name varchar(50),mobile varchar(10),address varchar(100))
insert into @tab1 values('Test','2612354598','CG-10')
select * from @tab1
</code></pre>
<p>My desired output is:</p>
<pre>... | [
{
"answer_id": 74471045,
"author": "RF1991",
"author_id": 14799981,
"author_profile": "https://Stackoverflow.com/users/14799981",
"pm_score": 2,
"selected": false,
"text": "Unpivot Pivot Unpivot select\n colname,\n value\nfrom @tab1\nunpivot\n(\n value\n for colname in ([name]\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470800",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7769070/"
] |
74,470,808 | <p>Recently, my text color has been of for js,jsx,ts,tsx files in VS Code.</p>
<p>I don't really know what happened but it's not working all of a sudden.</p>
<p><a href="https://i.stack.imgur.com/PA3pA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PA3pA.png" alt="enter image description here" /></a... | [
{
"answer_id": 74471045,
"author": "RF1991",
"author_id": 14799981,
"author_profile": "https://Stackoverflow.com/users/14799981",
"pm_score": 2,
"selected": false,
"text": "Unpivot Pivot Unpivot select\n colname,\n value\nfrom @tab1\nunpivot\n(\n value\n for colname in ([name]\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15377591/"
] |
74,470,819 | <p>I am trying to split a string of numbers separated by commas into a list but it it giving me this error:</p>
<p>TypeError: 'str' object cannot be interpreted as an integer</p>
<p>This is what I've tried:</p>
<pre><code>numbers = "1, 2, 3, 4, 5, 500, 600, 800"
numbers_list = numbers.split(",", &q... | [
{
"answer_id": 74470893,
"author": "creatorpravin",
"author_id": 17981270,
"author_profile": "https://Stackoverflow.com/users/17981270",
"pm_score": -1,
"selected": false,
"text": "import re\n \nnumbers = \"1, 2, 3, 4, 5, 500, 600, 800\"\n \nval = re.sub(r'[^\\w]', ' ', numbers)\nli = va... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19698970/"
] |
74,470,821 | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>function findUpper(text) {
let arr = [];
if (text.length === 0) {
return arr;
}
if (text.charAt(0) === t... | [
{
"answer_id": 74470893,
"author": "creatorpravin",
"author_id": 17981270,
"author_profile": "https://Stackoverflow.com/users/17981270",
"pm_score": -1,
"selected": false,
"text": "import re\n \nnumbers = \"1, 2, 3, 4, 5, 500, 600, 800\"\n \nval = re.sub(r'[^\\w]', ' ', numbers)\nli = va... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20526861/"
] |
74,470,878 | <p>So I have this list:</p>
<pre><code>[['chocolate', '10225.25', '9025.0', '9505.0', '8750.0'], ['cookie dough', '7901.25', '4267.0', '7056.5', '3550.25'], ['rocky road', '6700.1', '5012.45', '6011.0', '5225.15'], ['strawberry', '9285.15', '8276.1', '8705.0', '7655.1'], ['vanilla', '8580.0', '7201.25', '8900.0', '3500... | [
{
"answer_id": 74470987,
"author": "Talha Tayyab",
"author_id": 13086128,
"author_profile": "https://Stackoverflow.com/users/13086128",
"pm_score": 1,
"selected": false,
"text": "l=[['chocolate', '10225.25', '9025.0', '9505.0', '8750.0'], ['cookie dough', '7901.25', '4267.0', '7056.5', '... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20263526/"
] |
74,470,890 | <p>i have two date :
$from = 2022-11-01
$to = 2022-11-05</p>
<p>now , i wanna create a array like this :
$date = ['2022-11-01','2022-11-02','2022-11-03','2022-11-04','2022-11-05']</p>
<p>and now check '2022-11-03' is exist in $date array or not.</p>
<p>alrady use :
<code>$date = Carbon\CarbonPeriod::create($from, $to);... | [
{
"answer_id": 74471034,
"author": "Ross_102",
"author_id": 3657308,
"author_profile": "https://Stackoverflow.com/users/3657308",
"pm_score": 4,
"selected": true,
"text": "$from = '2022-11-01';\n$to = '2022-11-05';\n$date = Carbon\\CarbonPeriod::create($from, $to);\nif ($date->contains('... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11970472/"
] |
74,470,907 | <p>I'm trying to check if a certain word is mentioned in a file, then the words under it become a part of a set, which then this set would be put in a tuple.
For instance, the file would say:</p>
<pre><code>COUNTRIES
America
Canada
Russia
Poland
PEOPLE
George
John
James
Kenny
</code></pre>
<p>Which would then become a... | [
{
"answer_id": 74471034,
"author": "Ross_102",
"author_id": 3657308,
"author_profile": "https://Stackoverflow.com/users/3657308",
"pm_score": 4,
"selected": true,
"text": "$from = '2022-11-01';\n$to = '2022-11-05';\n$date = Carbon\\CarbonPeriod::create($from, $to);\nif ($date->contains('... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20526562/"
] |
74,470,928 | <pre><code>
</code></pre>
<p>private async Task DoDownloadFile(ChatMessageListRefDataModel chatMessage)
{</p>
<pre><code> var status = await Permissions.RequestAsync<Permissions.StorageWrite>();
if(status == PermissionStatus.Granted)
{
await HttpRequestHelper.DownloadFile(chatMe... | [
{
"answer_id": 74472759,
"author": "Liyun Zhang - MSFT",
"author_id": 17455524,
"author_profile": "https://Stackoverflow.com/users/17455524",
"pm_score": 1,
"selected": false,
"text": "Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), fileName); var filename1 = ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8951304/"
] |
74,470,932 | <p>I am currently working on a project and need validation for validating dummy emails like
mailinator or yopmail.
These emails should not go through but I can't get any regex for this particular issue.</p>
<p>I have tried different regex but none them worked.</p>
| [
{
"answer_id": 74470992,
"author": "MrShakila",
"author_id": 19292778,
"author_profile": "https://Stackoverflow.com/users/19292778",
"pm_score": 0,
"selected": false,
"text": "void main() {\n\n var email = \"fredrik@gmail.com\";\n\n assert(EmailValidator.validate(email));\n}\n"
}... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74470932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19245224/"
] |
74,471,008 | <p>So basically, I'm writing out statistics.</p>
<pre><code>date,students
2022-11-16,22
2022-11-17,29
</code></pre>
<p>I want to read this csv back in and pull the col2 value from "yesterdays" row and compare it to the col2 value from "todays" row and look for a threshold difference. Something like... | [
{
"answer_id": 74471334,
"author": "Chana Drori",
"author_id": 10787867,
"author_profile": "https://Stackoverflow.com/users/10787867",
"pm_score": 0,
"selected": false,
"text": "\n today = str(date.today())\n yesterday = str(date.today() - timedelta(1))\n \n print(\"today is ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74471008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11891979/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.