qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,555,970 | <p>Currently I'm getting data from some sensors with voltage(V) and current(C) values which is decoded into text as <code>V040038038039C125067</code> to be stored in MYSQL DB table. The voltage contains 4 different voltage values combined while the current contains 2 different current values combined where each value r... | [
{
"answer_id": 74556164,
"author": "PRADDYUMN YADAV",
"author_id": 15584394,
"author_profile": "https://Stackoverflow.com/users/15584394",
"pm_score": -1,
"selected": false,
"text": "a = int(input(\"Enter a random number: \"))\nprint(float(a/10))\n volt_1 = float(int(v1)/10)\nvolt_2 = fl... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74555970",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7234087/"
] |
74,556,020 | <p>I am creating widget which displays the current path in a filesystem to the user.</p>
<p>For example, here is windows file path.
<a href="https://i.stack.imgur.com/mL8il.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mL8il.png" alt="enter image description here" /></a></p>
<p>With each folder ope... | [
{
"answer_id": 74556164,
"author": "PRADDYUMN YADAV",
"author_id": 15584394,
"author_profile": "https://Stackoverflow.com/users/15584394",
"pm_score": -1,
"selected": false,
"text": "a = int(input(\"Enter a random number: \"))\nprint(float(a/10))\n volt_1 = float(int(v1)/10)\nvolt_2 = fl... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14556195/"
] |
74,556,021 | <p>I have an array of Objects `filteredG`, Every single object contains some Json data about route. Objects inside <strong>filteredG</strong> can change frequently. The url I want to fetch from is changing based on <strong>route.id</strong>. If I try to map this data it isn't getting mapped inside a single array, sinc... | [
{
"answer_id": 74556154,
"author": "Dmytro Kudryk",
"author_id": 19069336,
"author_profile": "https://Stackoverflow.com/users/19069336",
"pm_score": 0,
"selected": false,
"text": "Promise.all(filteredG.map(route =>\n fetch(`/api/stoppages?routeId=${route.id}`)\n .then(response => res... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19905399/"
] |
74,556,063 | <p>I want to store the information of multiple inputs entered into <a href="https://ant.design/components/select" rel="nofollow noreferrer">antd Select</a> components in a single state variable but am having trouble getting the below to work.</p>
<p>This example is solved <a href="https://stackoverflow.com/questions/63... | [
{
"answer_id": 74556154,
"author": "Dmytro Kudryk",
"author_id": 19069336,
"author_profile": "https://Stackoverflow.com/users/19069336",
"pm_score": 0,
"selected": false,
"text": "Promise.all(filteredG.map(route =>\n fetch(`/api/stoppages?routeId=${route.id}`)\n .then(response => res... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2260079/"
] |
74,556,075 | <p>I am trying below array to display</p>
<pre><code> myData = {
"data": {
"ZSLatencies": {
"Recharging API Latency": [
[
"<200ms",
2320
],
[
">200ms",
4
],
... | [
{
"answer_id": 74556345,
"author": "GouriSankar",
"author_id": 7235140,
"author_profile": "https://Stackoverflow.com/users/7235140",
"pm_score": 1,
"selected": false,
"text": " <div *ngFor=\"let i of myData.data.ZSLatencies.Recharging API Latency\">\n {{i | json}}\n </div>\n"
},
{... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11649905/"
] |
74,556,090 | <p>I am reading a table to a dataframe which has a column "day_dt" which is in date format "2022/01/08". I want the format to be in "1/8/2022" (M/d/yyyy) Is it possible in pyspark? I have tried using date_format() but resulting in null.</p>
| [
{
"answer_id": 74556345,
"author": "GouriSankar",
"author_id": 7235140,
"author_profile": "https://Stackoverflow.com/users/7235140",
"pm_score": 1,
"selected": false,
"text": " <div *ngFor=\"let i of myData.data.ZSLatencies.Recharging API Latency\">\n {{i | json}}\n </div>\n"
},
{... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20587622/"
] |
74,556,099 | <p>I have a json file which looks like this</p>
<pre><code>[
{
path1:"xyz",
path2: "xyz2",
file1: "filea",
file2: "fileb",
state: "equal"
},
{
path1:"xyz",
path2: "xyz2",
file1: "filec",
file2: "fil... | [
{
"answer_id": 74556254,
"author": "Sunil Nagre",
"author_id": 2739512,
"author_profile": "https://Stackoverflow.com/users/2739512",
"pm_score": 0,
"selected": false,
"text": "enter code here\nvar data = [\n{\n path1:\"xyz\",\n path2: \"xyz2\",\n file1: \"filea\",\n file2: \"... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9257578/"
] |
74,556,100 | <p>I'm learning react for the first time, I have an app where it fetches some data from a public API. I currently have it show 10 cards with random items from the API, and I have added a button to fetch a random item from the API and add it to the array, I managed to get the new item added to the array using push() but... | [
{
"answer_id": 74592701,
"author": "Zehan Khan",
"author_id": 16884475,
"author_profile": "https://Stackoverflow.com/users/16884475",
"pm_score": 0,
"selected": false,
"text": " const handleAddAnimal = () => {\n fetch('https://zoo-animal-api.herokuapp.com/animals/rand/')\n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556100",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18139951/"
] |
74,556,129 | <p>My npm version is 8.11.0.</p>
<p>When I create react package, but it gives me a Warn.</p>
<p>How can I uninstall it?</p>
| [
{
"answer_id": 74556169,
"author": "EWW",
"author_id": 20587602,
"author_profile": "https://Stackoverflow.com/users/20587602",
"pm_score": 0,
"selected": false,
"text": "npm uninstall <package_name_which_you_want_to_uninstall>\n"
},
{
"answer_id": 74556185,
"author": "S M Sam... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17848207/"
] |
74,556,138 | <p>This code doesn't seem to work</p>
<pre><code>function ScrollToBottom(int listCount){
this.FindByName<CollectionView>
("MyCollectioNView").ScrollTo(listCount- 1, animate: false);
}
</code></pre>
<p>Note: The function will be called inside <code>MessagingCenter.Subscribe()</code>
What co... | [
{
"answer_id": 74556169,
"author": "EWW",
"author_id": 20587602,
"author_profile": "https://Stackoverflow.com/users/20587602",
"pm_score": 0,
"selected": false,
"text": "npm uninstall <package_name_which_you_want_to_uninstall>\n"
},
{
"answer_id": 74556185,
"author": "S M Sam... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556138",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8951304/"
] |
74,556,157 | <p>I ad trying to pass parameters to call the following C# method</p>
<pre><code>public ActionResult GenerateInvoicePDFByInvoiceNum(string id,string apikey)
{
IInvoiceRepository rep = db.GetInvoiceRepository();
//
var api = Guid.Parse(apikey);
Invoice invoice = rep.GetByExpression(i => i.InvoiceNo.Eq... | [
{
"answer_id": 74556304,
"author": "hossein sabziani",
"author_id": 4301195,
"author_profile": "https://Stackoverflow.com/users/4301195",
"pm_score": 1,
"selected": false,
"text": "\"?param1=value1¶m2=value2\" http://foobar.n.co.za/Newlook/PrintInvoice/GenerateInvoicePDFByInvoiceNum?... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1688277/"
] |
74,556,210 | <p>I am working with a dataframe which is similar to this:</p>
<pre><code>df1 <- data.frame(p1 = c("John", "John", "John", "John", "John", "John", "Jim", "Jim", "Jim", "Jim", "Jim", "Jim", "Ji... | [
{
"answer_id": 74556412,
"author": "onyambu",
"author_id": 8380272,
"author_profile": "https://Stackoverflow.com/users/8380272",
"pm_score": 3,
"selected": false,
"text": "df1 %>%\n group_by(p1, elps = cumsum(event_type != 'play'))%>%\n mutate(elps = elapsed_time - elapsed_time[1])\n\n... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556210",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19128163/"
] |
74,556,221 | <p>I would like populate the blue area with random numbers.</p>
<p>sum of C3 to R3 should be equal to B3 value: 124
also;
sum of C3 to C26 should be equal to C2 value: 705</p>
<p>I tried to achieve it with the following code:
(this code was originally posted here: <a href="https://stackoverflow.com/questions/60637394/h... | [
{
"answer_id": 74598631,
"author": "Notus_Panda",
"author_id": 19353309,
"author_profile": "https://Stackoverflow.com/users/19353309",
"pm_score": 0,
"selected": false,
"text": "Sub RandomNumbersArray()\n Dim lRow As Long, lColumn As Long, remainingValue As Long\n Dim wb As Workboo... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4441676/"
] |
74,556,243 | <p>I'm starting to code on Javascript and practicing on codewars, I got this problem where I have to find the amount of times the most recurring number is repeated and I do get the correct answer but I also get an "undefined" below the answer and I can't seem to find the reason why... It may be something real... | [
{
"answer_id": 74556288,
"author": "walieeldin",
"author_id": 14979656,
"author_profile": "https://Stackoverflow.com/users/14979656",
"pm_score": -1,
"selected": false,
"text": "function mostFrequentItemCount(collection){\n \ncollection.sort((a,b) => a - b)\n let a, b, c , d = 0; \n... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20587652/"
] |
74,556,281 | <p>I was Wondering how to give style to two tags in react without using the className(as not using className is the main challenge).</p>
<pre><code><a href="">Menu Here</a>
<a href="">Click Me </a>
</code></pre>
<p><a href="https://i.stack.imgur.com/OHgvC.png" rel="nofollow ... | [
{
"answer_id": 74556288,
"author": "walieeldin",
"author_id": 14979656,
"author_profile": "https://Stackoverflow.com/users/14979656",
"pm_score": -1,
"selected": false,
"text": "function mostFrequentItemCount(collection){\n \ncollection.sort((a,b) => a - b)\n let a, b, c , d = 0; \n... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7518534/"
] |
74,556,293 | <p><strong>Output what I got</strong></p>
<pre><code>{
0:{modifierId: 4, modifierName: 'Garlic', modifierPrice: 60 }
1:{modifierId: 1, modifierName: 'Tartar ', modifierPrice: 60}
2:{modifierId: 3, modifierName: 'Herb ', modifierPrice: 60}
itemId:387
itemName:"BUFFALO WINGS"
itemPrice:500
itemQuantity:0
}
<... | [
{
"answer_id": 74556288,
"author": "walieeldin",
"author_id": 14979656,
"author_profile": "https://Stackoverflow.com/users/14979656",
"pm_score": -1,
"selected": false,
"text": "function mostFrequentItemCount(collection){\n \ncollection.sort((a,b) => a - b)\n let a, b, c , d = 0; \n... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556293",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14418119/"
] |
74,556,330 | <p>In the <code>home_screen.dart</code>, I added 5 of <em>bottomNavigationBar</em> to move easily to other pages. At the second tab(<code>Icons.directions_boat_filled</code>), when I tab this It shows the <em>AppBar</em> and <em>bottomNavigationBar</em> also.</p>
<p>However, the <em>GestureDetector</em> which moves to ... | [
{
"answer_id": 74556288,
"author": "walieeldin",
"author_id": 14979656,
"author_profile": "https://Stackoverflow.com/users/14979656",
"pm_score": -1,
"selected": false,
"text": "function mostFrequentItemCount(collection){\n \ncollection.sort((a,b) => a - b)\n let a, b, c , d = 0; \n... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19443112/"
] |
74,556,391 | <p>I have a column named data and I have to update its content from something like <code>{}</code> to <code>[{}]</code> for each record in table <em><strong>A</strong></em>, I tried to use <strong>JSON_ARRAY()</strong> but it gives me a quoted</p>
<pre class="lang-json prettyprint-override"><code>["{\"somethi... | [
{
"answer_id": 74556440,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 1,
"selected": false,
"text": "$ update A \nSET data = CASE\n WHEN data IS NULL THEN '[]' -- NULL becomes empty array\n WHEN LEFT(data, 1) = '... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20587905/"
] |
74,556,392 | <p>I have an abstract class that looks like this:</p>
<pre class="lang-java prettyprint-override"><code>abstract class Handler<T> {
Handler(Class<T> clazz) {
// ...
}
abstract void handle(T object);
}
</code></pre>
<p>I'm trying to extent it, where <code>T</code> is a type with a wild... | [
{
"answer_id": 74556440,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 1,
"selected": false,
"text": "$ update A \nSET data = CASE\n WHEN data IS NULL THEN '[]' -- NULL becomes empty array\n WHEN LEFT(data, 1) = '... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556392",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8448397/"
] |
74,556,434 | <p>If i send messages locally from the same system than the boost server receives messages properly.</p>
<p>When the client is a remote application on other system and sending messages through TCP\IP than randomly some messages break(Line Enter).</p>
<p>Like if the client has sent "THIS IS A MESSAGE" the ser... | [
{
"answer_id": 74556440,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 1,
"selected": false,
"text": "$ update A \nSET data = CASE\n WHEN data IS NULL THEN '[]' -- NULL becomes empty array\n WHEN LEFT(data, 1) = '... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12651320/"
] |
74,556,437 | <p>The question is how to sort the letter in alphabetic order based on the input in a HTML input tag, then clicks a button to sort it, after click the button the input will move to a text area and is already sorted when button is click, so that button need to have the insert function and sorting function, now the input... | [
{
"answer_id": 74556440,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 1,
"selected": false,
"text": "$ update A \nSET data = CASE\n WHEN data IS NULL THEN '[]' -- NULL becomes empty array\n WHEN LEFT(data, 1) = '... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18908496/"
] |
74,556,477 | <p>Need to get record of current month but query return the wrong result.There is only one record in db.but i get wrong count for the current month</p>
<pre><code>$data = UserData::select(
DB::raw("count(phone) as total")
)
->whereMonth('creation_date', Carbon::now()->month)
->get();
retu... | [
{
"answer_id": 74556580,
"author": "Heroherm",
"author_id": 20461089,
"author_profile": "https://Stackoverflow.com/users/20461089",
"pm_score": 1,
"selected": false,
"text": "UserData:select(DB::raw(\"count(phone) as total\"))\n ->whereBetween('creation_date', \n [\n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19124962/"
] |
74,556,481 | <p>In the following C++ code, a template placeholder in argument of function <code>fun1</code>, and in the return type of function <code>ret1</code>, does not compile:</p>
<pre><code>template <typename T = int>
class type {
T data;
};
void fun1(type arg); // Error: template placeholder not permitted in ... | [
{
"answer_id": 74556567,
"author": "bitmask",
"author_id": 430766,
"author_profile": "https://Stackoverflow.com/users/430766",
"pm_score": 4,
"selected": true,
"text": "var1"
},
{
"answer_id": 74556568,
"author": "user17732522",
"author_id": 17732522,
"author_profile"... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556481",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5688911/"
] |
74,556,487 | <p>I am trying to automate the azure resource deployment using powershell.</p>
<p>Requirments : In a particular resource group(RG), there are multiple VMs. the naming convention are like,</p>
<p>XXX-XX-X-XXXXXX-VM-01,</p>
<p>XXX-XX-X-XXXXXX-VM-02,</p>
<p>XXX-XX-X-XXXXXX-VM-03.</p>
<p>I am trying to create a script whic... | [
{
"answer_id": 74556567,
"author": "bitmask",
"author_id": 430766,
"author_profile": "https://Stackoverflow.com/users/430766",
"pm_score": 4,
"selected": true,
"text": "var1"
},
{
"answer_id": 74556568,
"author": "user17732522",
"author_id": 17732522,
"author_profile"... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20587917/"
] |
74,556,503 | <p>This is my table structure:</p>
<pre><code>PERSON (4.1 M rows)
id : UUID
notes: string
...
---
ATTRIBUTES (21 M rows)
id: UUID
person_id: <persons id> non null
name: ENUM : full_name | birthday | email | phone | photo
value: JSONB : {value:""} | { first_name:"... | [
{
"answer_id": 74557008,
"author": "a_horse_with_no_name",
"author_id": 330315,
"author_profile": "https://Stackoverflow.com/users/330315",
"pm_score": 1,
"selected": false,
"text": "jsonb[] birthday SELECT p.id,\n a.attributes\nFROM person p\n LEFT JOIN ( \n select person_id, ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11897377/"
] |
74,556,507 | <p>I would like to ask for your help...</p>
<p>I have this string where I have to get the <strong>4.75</strong>. I've tried many regex expression but I could not get it to work and been through browsing lots of examples as well.</p>
<p><a href="https://i.stack.imgur.com/HsdCQ.png" rel="nofollow noreferrer">Regexr Image... | [
{
"answer_id": 74556645,
"author": "Rusty cole",
"author_id": 3636626,
"author_profile": "https://Stackoverflow.com/users/3636626",
"pm_score": 0,
"selected": false,
"text": "(?<=Interest Rate\\n\\n\\$\\d{3},\\d{3}\\s)(\\d{1,5}\\.\\d{1,5}\\s%)\n"
},
{
"answer_id": 74556658,
"... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8665920/"
] |
74,556,522 | <p>I want the function to return the string that follows the below condition.</p>
<ol>
<li>after "def"</li>
<li>in the parentheses right before the first %ile after "def"</li>
</ol>
<p>So the desirable output is "4", not "5". So far, I was able to extract "2)(3)(4". If ... | [
{
"answer_id": 74556784,
"author": "Josh White",
"author_id": 20289207,
"author_profile": "https://Stackoverflow.com/users/20289207",
"pm_score": 3,
"selected": true,
"text": "gsub() gsub(\".*def.*(\\\\d+)\\\\)%ile.*%ile\", \"\\\\1\", x, perl = TRUE)\n str_split() x <- \"abc(0)(1)%ile, d... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17237764/"
] |
74,556,539 | <p>I have an excel workbook with 100s of sheets with tab named as strings (sheet1, R Import, etc.) and numeric (123, 456, etc.). But I want to import all the sheets for which the tab names are in numeric only. I have the following code to import all sheets but not sure how to import just the sheets with numeric tab nam... | [
{
"answer_id": 74556784,
"author": "Josh White",
"author_id": 20289207,
"author_profile": "https://Stackoverflow.com/users/20289207",
"pm_score": 3,
"selected": true,
"text": "gsub() gsub(\".*def.*(\\\\d+)\\\\)%ile.*%ile\", \"\\\\1\", x, perl = TRUE)\n str_split() x <- \"abc(0)(1)%ile, d... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19305713/"
] |
74,556,541 | <p>i am not experienced working with docker and docker-compose, but atleast i know how to get a container running, below is my compose file of a simple react app boiler plate. my intention was to assign an IP to it so that i can ping it from the external network, and also to access it without any port mapping to the h... | [
{
"answer_id": 74556784,
"author": "Josh White",
"author_id": 20289207,
"author_profile": "https://Stackoverflow.com/users/20289207",
"pm_score": 3,
"selected": true,
"text": "gsub() gsub(\".*def.*(\\\\d+)\\\\)%ile.*%ile\", \"\\\\1\", x, perl = TRUE)\n str_split() x <- \"abc(0)(1)%ile, d... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20569584/"
] |
74,556,543 | <p>Am displaying list haviing</p>
<pre><code>Date
News Heading
Short Descrption
</code></pre>
<p>The list is spread to around 100 pages, having 20 news in each page</p>
<p>Issue is: This is working absolute fine in php 7.3, 7.4 in joomla 3.10 where on clicking url - list is shown spread over multiple pages having sor... | [
{
"answer_id": 74656911,
"author": "cyberpunk_unicorn",
"author_id": 20666543,
"author_profile": "https://Stackoverflow.com/users/20666543",
"pm_score": 0,
"selected": false,
"text": "$query->order('a.n_date DESC');\n $query->order('a.n_date DESC, a.id DESC');\n"
},
{
"answer_id"... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556543",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2259881/"
] |
74,556,545 | <p>When I use JAVA 8,String is saved with char[],so if i write like follow
String test = "a";
i think <code>a</code> is one element in char[],
as we know,char occupied 2byte in JAVA,so i think test.getBytes().length may be 2 but 1</p>
<pre><code>String test = "a";
System.out.println(test.getBytes().... | [
{
"answer_id": 74557449,
"author": "Joop Eggen",
"author_id": 984823,
"author_profile": "https://Stackoverflow.com/users/984823",
"pm_score": 3,
"selected": true,
"text": "String char char char String byte]} Charset Charset charset = Charset.defaultCharset();\nbyte[] b = s.getBytes(cjar... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16632481/"
] |
74,556,598 | <p><strong>Code</strong></p>
<pre><code> public class main {
public static void main(String[] args) {
System.out.println(1101101101*10);
}
}
</code></pre>
<p><strong>OUTPUT</strong></p>
<pre><code>-1873890878
</code></pre>
<p><a href="https://i.stack.imgur.com/IpxpT.png" rel... | [
{
"answer_id": 74556673,
"author": "Abirami Balasubramaniyan",
"author_id": 5755531,
"author_profile": "https://Stackoverflow.com/users/5755531",
"pm_score": 1,
"selected": false,
"text": " public static void main(String[] args) {\n\n Long longVal = 1101101101l;\n System.out.printl... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10870644/"
] |
74,556,605 | <p>I have a data set as below</p>
<pre><code>
tmp_dict = {
'a': ?,
'b': ?,
'c': ?,
}
</code></pre>
<p>and I have a data is a list of dictionaries like</p>
<pre><code>tmp_list = [tmp_dict1, tmp_dict2, tmp_dict3....]
</code></pre>
<p>and I found some of dictionaries are not perfectly have keys about 'a','b','c'.</p>
... | [
{
"answer_id": 74556725,
"author": "ScottC",
"author_id": 20174226,
"author_profile": "https://Stackoverflow.com/users/20174226",
"pm_score": 1,
"selected": false,
"text": "# List of keys to look for in each dictionary\ndict_keys = ['a','b','c']\n\n# Generate the dictionaries for demonst... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11684420/"
] |
74,556,614 | <p>I was trying to use getline for user input and I manage to do so but each time I try to print everything after %s (like .) it gets put to the next line and I am also trying to get rid of trailing space characters input so I use the function below but for some reason this isn't working, any help, sorry for anything i... | [
{
"answer_id": 74556920,
"author": "P.P",
"author_id": 1275169,
"author_profile": "https://Stackoverflow.com/users/1275169",
"pm_score": 0,
"selected": false,
"text": "getline \\n isspace trim int trim (char *s)\n{\n size_t i = strlen(s);\n if (i == 0) return 0;\n while(isspace(... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20550841/"
] |
74,556,632 | <pre><code><textarea class="form-control quiz"{item.title}"" id="exampleFormControlTextarea1" rows="3"></textarea>
</code></pre>
<p>in this example i want to add item.title prop with quiz class</p>
<p>I want to add prop with quiz class so how should I concatenate this... | [
{
"answer_id": 74556716,
"author": "Mohammed Raoof",
"author_id": 6568129,
"author_profile": "https://Stackoverflow.com/users/6568129",
"pm_score": 1,
"selected": false,
"text": "<textarea className={`form-control quiz${item.title}`} id=\"exampleFormControlTextarea1\" rows=\"3\">"
},
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20588092/"
] |
74,556,638 | <p>If I have a list like this</p>
<pre><code>lista=[(0.11838, 0.1926, 0.12071, 0.27438, -0.0253, -0.18799, 0.01544, 0.24514, 0.19905, 0.18563, 0.19999, 0.25336, 783, 783, 783, 783), (nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan), (nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, ... | [
{
"answer_id": 74556674,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 3,
"selected": true,
"text": "np.nan float Dtype Dtypes DataFrame.convert_dtypes df = pd.DataFrame(lista).convert_dtypes()\nprint (df)\n 0 ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4451521/"
] |
74,556,646 | <p>I have <code>object</code> as following :</p>
<pre><code>0 : {rYear: '1Y', rType: 'TypeA', rVal: 41}
1 : {rYear: '2Y', rType: 'TypeA', rVal: 11}
2 : {rYear: '3Y', rType: 'TypeA', rVal: 32}
3 : {rYear: '1Y', rType: 'TypeB', rVal: 12}
4 : {rYear: '2Y', rType: 'TypeB', rVal: 21}
5 : {rYear: '3Y', rType: 'TypeB', rVal: ... | [
{
"answer_id": 74556740,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 1,
"selected": false,
"text": "Array.reduce() let data = [ \n {rYear: '1Y', rType: 'TypeA', rVal: 41},\n {rYear: '2Y', rType: 'TypeA', rVal: 11},... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556646",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6681701/"
] |
74,556,655 | <pre><code>def execute():
d = read_input_file_mock()
lst = []
for in in d:
if in.get("Message"):
message = in.get("Message")
message = json.loads(message)
in_string = message.get("in")
lst.append(in_string)
data = jso... | [
{
"answer_id": 74557479,
"author": "abokey",
"author_id": 16120011,
"author_profile": "https://Stackoverflow.com/users/16120011",
"pm_score": 1,
"selected": false,
"text": "csvwriter.writerows import csv\n\nwith open(\"path_to_the_outputfile.csv\", \"w\", newline=\"\") as f:\n writer=... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13607593/"
] |
74,556,657 | <p>I'm pretty new to Java and I am trying to implement prefix sum</p>
<pre><code>package Arrays;
public class prefixSum {
static void sumArray(int arr[]) {
int n = arr.length;
int aux[] = new int[n];
int curr = arr[0];
aux[0] = curr;
for (int i = 1; i < n; i++) {
... | [
{
"answer_id": 74556834,
"author": "Joshgun",
"author_id": 7061312,
"author_profile": "https://Stackoverflow.com/users/7061312",
"pm_score": 0,
"selected": false,
"text": "aux[] main public class prefixSum {\n static int[] aux;\n\n...\n public static void main(String[] args) {\n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20588048/"
] |
74,556,770 | <p>After Two weeks I opened my project. My coworker made some big changes. But when I update the project from GitHub, This Error occurred. it doesn't generate Internationalize files.</p>
<p><a href="https://i.stack.imgur.com/3KaHh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3KaHh.png" alt="enter ... | [
{
"answer_id": 74556834,
"author": "Joshgun",
"author_id": 7061312,
"author_profile": "https://Stackoverflow.com/users/7061312",
"pm_score": 0,
"selected": false,
"text": "aux[] main public class prefixSum {\n static int[] aux;\n\n...\n public static void main(String[] args) {\n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14029095/"
] |
74,556,771 | <p>Table</p>
<pre><code>CREATE TABLE users
(
username VARCHAR(128) PRIMARY KEY,
info JSONB
);
INSERT INTO users (username, info)
VALUES
('Lana', '[
{
"id": "first"
},
{
"id": "second"
}
]'),
('Andy', '[
{
"id": "first"
... | [
{
"answer_id": 74556834,
"author": "Joshgun",
"author_id": 7061312,
"author_profile": "https://Stackoverflow.com/users/7061312",
"pm_score": 0,
"selected": false,
"text": "aux[] main public class prefixSum {\n static int[] aux;\n\n...\n public static void main(String[] args) {\n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556771",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12966384/"
] |
74,556,778 | <p>I'm beginner, i have homework that requires the user to input a number and it convert it to words.For example:</p>
<pre><code>15342
</code></pre>
<p>to</p>
<pre><code>one five three four two
</code></pre>
<p>this's my code, but it only work with a number:</p>
<pre><code>def convert_text():
arr = ['zero','one','t... | [
{
"answer_id": 74556834,
"author": "Joshgun",
"author_id": 7061312,
"author_profile": "https://Stackoverflow.com/users/7061312",
"pm_score": 0,
"selected": false,
"text": "aux[] main public class prefixSum {\n static int[] aux;\n\n...\n public static void main(String[] args) {\n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556778",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20025193/"
] |
74,556,789 | <pre><code>int main() {
string getEmail;
string email, firstName, lastName;
char dot = '.';
cout << "What is your email?" << endl;
getline(cin, email);
double pos = email.find(dot);
firstName = //store every letter before the dot;
cout << firstName &... | [
{
"answer_id": 74556853,
"author": "john",
"author_id": 882003,
"author_profile": "https://Stackoverflow.com/users/882003",
"pm_score": 2,
"selected": false,
"text": "pos double size_t size_t pos = email.find(dot);\n substr firstName = email.substr(0, pos);\n email firstName size_t pos =... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20289819/"
] |
74,556,794 | <p>running monit 5.30 on Rocky 8.7</p>
<p>Linux vpn-uk2 4.18.0-372.9.1.el8.x86_64</p>
<p>monit control file syntax is valid,</p>
<p>heres control file</p>
<pre><code>set daemon 5 # Poll at 5-second intervals
set logfile /var/log/monit.log
set eventqueue basedir /home/monit/tmp slots 1000
set mmonit http://monit:monit@s... | [
{
"answer_id": 74556853,
"author": "john",
"author_id": 882003,
"author_profile": "https://Stackoverflow.com/users/882003",
"pm_score": 2,
"selected": false,
"text": "pos double size_t size_t pos = email.find(dot);\n substr firstName = email.substr(0, pos);\n email firstName size_t pos =... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7327476/"
] |
74,556,804 | <p>I'm trying to deploy the following Django-rest api on gcp ubuntu 22.0.4 using python 3.9.</p>
<p><a href="https://github.com/OkunaOrg/okuna-api" rel="nofollow noreferrer">https://github.com/OkunaOrg/okuna-api</a></p>
<p>The entire setup is supposed to be done and get setup using a single command :</p>
<p>python3.9 o... | [
{
"answer_id": 74556853,
"author": "john",
"author_id": 882003,
"author_profile": "https://Stackoverflow.com/users/882003",
"pm_score": 2,
"selected": false,
"text": "pos double size_t size_t pos = email.find(dot);\n substr firstName = email.substr(0, pos);\n email firstName size_t pos =... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9359102/"
] |
74,556,810 | <p>I have searched for available questions but didn't get my solution.</p>
<p>I am trying to set the height of all the elements of a horizontally overflowed container equal as that of the longest one.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snipp... | [
{
"answer_id": 74556853,
"author": "john",
"author_id": 882003,
"author_profile": "https://Stackoverflow.com/users/882003",
"pm_score": 2,
"selected": false,
"text": "pos double size_t size_t pos = email.find(dot);\n substr firstName = email.substr(0, pos);\n email firstName size_t pos =... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19199587/"
] |
74,556,812 | <p>I tried to program this code on an STM8 Controller:</p>
<pre><code>#include "Imagedata.h"
void main(void)
{
unsigned char *pArray;
pArray=IMAGE_DATA;
while(pArray<=(IMAGE_DATA+(sizeof(IMAGE_DATA)/sizeof(pArray))))
{
SPI_SendData(SPI1,*pArray++ );
}
}
</code></pre>
<p>Actu... | [
{
"answer_id": 74557882,
"author": "hyde",
"author_id": 1717300,
"author_profile": "https://Stackoverflow.com/users/1717300",
"pm_score": 0,
"selected": false,
"text": "const unsigned char *pArray = IMAGE_DATA;\nconst unsigned char * const pEnd = pArray + sizeof(IMAGE_DATA) / sizeof(*pAr... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20560622/"
] |
74,556,828 | <p>how do I get the sum of money and spent from a list of dictionaries where</p>
<p>sum of money = (sum of money of shirt color blue and red) and (sum of money of shirt color yellow and green)</p>
<p>sum of spent = (sum of spent of shirt color blue and red) and (sum of spent of shirt color yellow and green)</p>
<p>shou... | [
{
"answer_id": 74557061,
"author": "Johs",
"author_id": 14993329,
"author_profile": "https://Stackoverflow.com/users/14993329",
"pm_score": 0,
"selected": false,
"text": "money_blue = 0\nfor i in range(len(people)):\n if people[i]['shirtcolor'] == \"blue\":\n money += int(peopl... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20196165/"
] |
74,556,859 | <p>I need to break monthly membership data by single complete month and it looked simple, but then I found that there are not complete month segments in different flavors so it became more complex.<br />
Do you think it's possible to achieve in single step (without breaking input by complete/non complete month ) ?
I tr... | [
{
"answer_id": 74557061,
"author": "Johs",
"author_id": 14993329,
"author_profile": "https://Stackoverflow.com/users/14993329",
"pm_score": 0,
"selected": false,
"text": "money_blue = 0\nfor i in range(len(people)):\n if people[i]['shirtcolor'] == \"blue\":\n money += int(peopl... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10242281/"
] |
74,556,864 | <p>I just want to clear out that I am new to coding.
I am trying to solve a problem set that counts the occurrence of characters in a string and prints out the 3 most reoccurring characters</p>
<p>Heres the code I wrote</p>
<pre><code> s = input().lower()
b = []
for i in s:
templst = []
temp... | [
{
"answer_id": 74556973,
"author": "Ahmed Aredah",
"author_id": 5800005,
"author_profile": "https://Stackoverflow.com/users/5800005",
"pm_score": 2,
"selected": true,
"text": "final= Sorted(b, key = lambda e: (-e[1], e[0]))\n"
},
{
"answer_id": 74557221,
"author": "cafce25",
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20501260/"
] |
74,556,882 | <p>I'm writing java selenium. Everything is ok, but when the new tab is opened, the scrool code I added does not open in the new tab? How can I include the codes I wrote in the new tab?</p>
<p>I want the page to go down in the new tab and click on the image I want</p>
| [
{
"answer_id": 74557026,
"author": "wowcode",
"author_id": 20588290,
"author_profile": "https://Stackoverflow.com/users/20588290",
"pm_score": 1,
"selected": false,
"text": " System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\*\\\\Desktop\\\\driver\\\\chromedriver_win32... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20588290/"
] |
74,556,929 | <p>I am trying to run a PowerShell script via SMB connection, but it does not run the script:</p>
<pre><code>smbclient hostname -U username%password -c "Powershell -File run.ps1"
</code></pre>
<p>It fails saying:</p>
<pre><code>Powershell: command not found
</code></pre>
<p>I want to run a PowerShell script v... | [
{
"answer_id": 74557949,
"author": "stackprotector",
"author_id": 11942268,
"author_profile": "https://Stackoverflow.com/users/11942268",
"pm_score": 0,
"selected": false,
"text": "-c --command smbclient smb: \\> ?\n? allinfo altname archive backup ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20469205/"
] |
74,556,936 | <p>I was trying to get all pdf files from device storage and it's done now I want to show the size of that file in listview. builder trailing.</p>
<p><strong>path of my file</strong></p>
<pre><code>files[index].path
</code></pre>
<p><strong>print of files[index].path is</strong>
/storage/emulated/0/android/data/.......... | [
{
"answer_id": 74557039,
"author": "eamirho3ein",
"author_id": 10306997,
"author_profile": "https://Stackoverflow.com/users/10306997",
"pm_score": 2,
"selected": true,
"text": "File length() var size = await files[index].length();\nprint(size);\n var size = await File(files[index].path).... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20378705/"
] |
74,556,948 | <p>So, I'm getting the following error:</p>
<p><strong>SwiftUI/EnvironmentObject.swift:70: Fatal error: No ObservableObject of type AppViewModel found. A View.environmentObject(_:) for AppViewModel may be missing as an ancestor of this view.</strong></p>
<p>However, I <em>do actually in fact</em> have <code>.environmen... | [
{
"answer_id": 74557039,
"author": "eamirho3ein",
"author_id": 10306997,
"author_profile": "https://Stackoverflow.com/users/10306997",
"pm_score": 2,
"selected": true,
"text": "File length() var size = await files[index].length();\nprint(size);\n var size = await File(files[index].path).... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2596591/"
] |
74,556,969 | <p>Say I had an input of:</p>
<pre><code>john bob alex liam # names
15 17 16 19 # age
70 92 70 100 # iq
</code></pre>
<p>How do I make it so that john is assigned to age 15 and iq of 70, bob is assigned to age 17 and iq of 92, alex is assigned to age 16 and iq of 70, and liam is assigned to age 19 and iq of 100?</p>
<... | [
{
"answer_id": 74557014,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 3,
"selected": true,
"text": "names = \"john bob alex liam\"\nages = \"15 17 16 19\"\niq = \"70 92 70 100\"\nlist_a = names.split()\nlist_b... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20066884/"
] |
74,556,998 | <p><strong>Requirement:</strong></p>
<p>In a BASH script,</p>
<p>...iterate over an array of environment variable names as shown below:</p>
<p><code>arr = ('env_var1' 'env_var2' 'env_var3')</code></p>
<p>and, using <a href="https://stedolan.github.io/jq/" rel="nofollow noreferrer">jq</a> generate a JSON of environment ... | [
{
"answer_id": 74557113,
"author": "hobbs",
"author_id": 152948,
"author_profile": "https://Stackoverflow.com/users/152948",
"pm_score": 3,
"selected": true,
"text": "jq -n '$ARGS.positional | map({ (.): env[.] }) | add' --args \"${arr[@]}\"\n $ARGS.positional --args env"
},
{
"a... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74556998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9197213/"
] |
74,557,013 | <p>Asking for help:</p>
<pre><code>Data: map (nullable = true)
|-- key: string
|-- value: map (valueContainsNull = true)
| |-- key : string
| |-- value : string (valueContainsNull = true) reffer you
</code></pre>
<p>I reffer you below link
<a href="https://stackoverflow.com/questions/41806914/... | [
{
"answer_id": 74557113,
"author": "hobbs",
"author_id": 152948,
"author_profile": "https://Stackoverflow.com/users/152948",
"pm_score": 3,
"selected": true,
"text": "jq -n '$ARGS.positional | map({ (.): env[.] }) | add' --args \"${arr[@]}\"\n $ARGS.positional --args env"
},
{
"a... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20587599/"
] |
74,557,022 | <p>I'm wondering how to clear a timeout, which is set in an onclick event in React.
I'm aware you can easily cancel timeouts, when they are set in 'useEffect', but how about this use case?</p>
<pre><code>export default function SomeComponent() {
const onClick = () => {
setTimeout(() => {
/... | [
{
"answer_id": 74557180,
"author": "Amirhossein",
"author_id": 11342834,
"author_profile": "https://Stackoverflow.com/users/11342834",
"pm_score": 0,
"selected": false,
"text": "export default function SomeComponent() {\n const [timeoutInstance, setTimeoutInstance] = useState(null);\n... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12039643/"
] |
74,557,045 | <p>I have this function</p>
<pre><code> export const getColor = (color: string): string => colors[color] || colors.white;
</code></pre>
<p>but I get warning line under <code>colors[color] || colors.white</code> saying that <code>Unsafe return of an any typed value</code>
I made sure that this method accepts string a... | [
{
"answer_id": 74557107,
"author": "lpizzinidev",
"author_id": 13211263,
"author_profile": "https://Stackoverflow.com/users/13211263",
"pm_score": 2,
"selected": false,
"text": "colors export const colors: { [key: string]: string; } = {\n 'dark-grey': '#606060',\n 'light-grey': '#90909... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10692884/"
] |
74,557,050 | <p>wanted to traverse in json body and get values from list using powershell.</p>
<p>json file</p>
<pre><code>{
"TopicPropProfiles": [
{
"TP1":{
"enable-duplicate-detection": true,
"enable-batched-operations": true, ... | [
{
"answer_id": 74557107,
"author": "lpizzinidev",
"author_id": 13211263,
"author_profile": "https://Stackoverflow.com/users/13211263",
"pm_score": 2,
"selected": false,
"text": "colors export const colors: { [key: string]: string; } = {\n 'dark-grey': '#606060',\n 'light-grey': '#90909... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3347456/"
] |
74,557,069 | <p>I want to subtract the next number in the sequence from the previous number so 2 from 1, 4 from 3 and so on. Ideally, it would find those "pairs" and then subtract the time from that row so I also need a way to do that</p>
<p><a href="https://i.stack.imgur.com/gCR0u.png" rel="nofollow noreferrer"><img src=... | [
{
"answer_id": 74557203,
"author": "Dominique",
"author_id": 4279155,
"author_profile": "https://Stackoverflow.com/users/4279155",
"pm_score": 1,
"selected": false,
"text": "=IF(AND(D2=\"START\",D3=\"STOP\"),B3-B2,\"\")\n Difference\n<BLANK>\n9.8\n<BLANK>\n21.3\n<BLANK>\n12.8\n...\n"
}... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557069",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6380393/"
] |
74,557,131 | <p>First of all, I want to describe that there are more than five thousand records. Please let me know the best method for best performance from the following:</p>
<pre><code>String hmVALUE = "";
try
{
hmVALUE = hashmapRECORDS.get(key).toString();
}
catch(Exception ex)
{
hmVALUE = "";
}
// Second ... | [
{
"answer_id": 74557157,
"author": "Yonatan Karp-Rudin",
"author_id": 3899765,
"author_profile": "https://Stackoverflow.com/users/3899765",
"pm_score": 0,
"selected": false,
"text": "condition ? if true : if false String hmVALUE = Module.hmQUEUED_REQUESTS.containsKey(key) ? hashmapRECORD... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3591863/"
] |
74,557,176 | <pre><code>print("Welcome to Agurds. Before we begin can you tell me your name?")
Name = input("name: ")
print("Hello " + Name + " When were you born " + Name + "?")
year = int(input("Born year:"))
age = str(2022 - year)
print("You must be " + age + ... | [
{
"answer_id": 74557157,
"author": "Yonatan Karp-Rudin",
"author_id": 3899765,
"author_profile": "https://Stackoverflow.com/users/3899765",
"pm_score": 0,
"selected": false,
"text": "condition ? if true : if false String hmVALUE = Module.hmQUEUED_REQUESTS.containsKey(key) ? hashmapRECORD... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20588406/"
] |
74,557,207 | <p>I have a list where I have all the index of values to be replaced. I have to change them in 8 diferent columns with 8 diferent lists. The replacement could be a simple string.
How can I do it?
I have more than 20 diferent columns in this df</p>
<p>Eg:</p>
<pre><code>list1 = [0,1,2]
list2 =[2,4]
list8 = ...
</code></... | [
{
"answer_id": 74557243,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 2,
"selected": true,
"text": "DataFrame.loc list1 = [0,1,2]\nlist2 =[2,4]\n\nL = [list1,list2]\ncols = ['Column A','Column B']\n\nsustitution = 'no... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20588451/"
] |
74,557,249 | <p>I am trying to calculate every lowercase letter from a mixed uppercase and lowercase string and form a new string of only lowercase. For example I have a string named st="ABcASFatBD" and I expect an output of low= "cat" but I am getting only "c" as the output. Below is my code.</p>
<pre... | [
{
"answer_id": 74557243,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 2,
"selected": true,
"text": "DataFrame.loc list1 = [0,1,2]\nlist2 =[2,4]\n\nL = [list1,list2]\ncols = ['Column A','Column B']\n\nsustitution = 'no... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20502753/"
] |
74,557,255 | <p>For example if a use <code>ma</code> <code>mb</code> etc to create some markers in buffer. Then i record a macro, then i want to execute macro to all these markers, how can i do to accomplish this goal</p>
<p>Maybe it can be completed by writing a function by <code>lua</code> or <code>viml</code>, or use some plugin... | [
{
"answer_id": 74558726,
"author": "LoneExile",
"author_id": 20253319,
"author_profile": "https://Stackoverflow.com/users/20253319",
"pm_score": 0,
"selected": false,
"text": "local keymap = vim.api.nvim_set_keymap\nkeymap('n', '<leader>xx', '<Plug>(Marks-next)', { noremap = true, silent... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20588551/"
] |
74,557,285 | <p>I was working on admin registration and admin data retrieving react app. The registration works fine but retrieving admin data is crushing my backend. I have encountered this error when call the given endpoint from my react app. But when I call it from Postman it works very fine. And when I see the console on my bro... | [
{
"answer_id": 74557367,
"author": "Reinier68",
"author_id": 11225065,
"author_profile": "https://Stackoverflow.com/users/11225065",
"pm_score": 0,
"selected": false,
"text": "router.get(\"/admin/get_all_admins\" makeHttpRequest Cannot remove headers after they are sent to the client"
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18360726/"
] |
74,557,287 | <p>I make a draft implementation for my reusable <strong>input</strong> component.
The code below obviously throws an error.</p>
<p>Question is how to pass the <code>$event</code> back to <strong>register</strong> blade to get or log the value of the input?</p>
<p><strong>register.blade.php</strong></p>
<pre><code><... | [
{
"answer_id": 74557367,
"author": "Reinier68",
"author_id": 11225065,
"author_profile": "https://Stackoverflow.com/users/11225065",
"pm_score": 0,
"selected": false,
"text": "router.get(\"/admin/get_all_admins\" makeHttpRequest Cannot remove headers after they are sent to the client"
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557287",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12010133/"
] |
74,557,295 | <p>When creating a custom package that contains font as a .ttf file. I try to download the font file also in the example app that is contained in the package.</p>
<p>The font is downloaded successfully on iOS and macOS apps but not on Linux or Web.</p>
<p>The web console is giving me an error
<code>Failed to load font ... | [
{
"answer_id": 74557367,
"author": "Reinier68",
"author_id": 11225065,
"author_profile": "https://Stackoverflow.com/users/11225065",
"pm_score": 0,
"selected": false,
"text": "router.get(\"/admin/get_all_admins\" makeHttpRequest Cannot remove headers after they are sent to the client"
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557295",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12067877/"
] |
74,557,312 | <p>i have fields named "Date of Payment" and "Type of Application". i have also unbound textbox with a name "txtCount". i want to display in "txtCount" the total count of records if "Date of Payment" = year 2022 AND "Type of Application" = "New Transactio... | [
{
"answer_id": 74557367,
"author": "Reinier68",
"author_id": 11225065,
"author_profile": "https://Stackoverflow.com/users/11225065",
"pm_score": 0,
"selected": false,
"text": "router.get(\"/admin/get_all_admins\" makeHttpRequest Cannot remove headers after they are sent to the client"
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20588242/"
] |
74,557,319 | <p>Inside my React function component, I have a code that looks like this:</p>
<p><a href="https://i.stack.imgur.com/wwB1T.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wwB1T.png" alt="enter image description here" /></a></p>
<p>How to pass the FontAwesomeIcon element as a parameter into markATaskA... | [
{
"answer_id": 74557430,
"author": "Šimon Slabý",
"author_id": 13647969,
"author_profile": "https://Stackoverflow.com/users/13647969",
"pm_score": 2,
"selected": true,
"text": "<FontAwesomeIcon icon=(faCircleCheck} onClick={()=>{markATaskAsDone }} /> <FontAwesomeIcon icon=(faCircleCheck}... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16235524/"
] |
74,557,348 | <p><a href="https://i.stack.imgur.com/SnQr5.png" rel="nofollow noreferrer">constant variables and functions in the same program cpp</a></p>
<pre><code>#include<bits/stdc++.h>
using namespace std;
class student
{
public:
const int roll;
const string name;
student (int r,string n)
:roll(r),na... | [
{
"answer_id": 74557430,
"author": "Šimon Slabý",
"author_id": 13647969,
"author_profile": "https://Stackoverflow.com/users/13647969",
"pm_score": 2,
"selected": true,
"text": "<FontAwesomeIcon icon=(faCircleCheck} onClick={()=>{markATaskAsDone }} /> <FontAwesomeIcon icon=(faCircleCheck}... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19661888/"
] |
74,557,350 | <p>I was reading about chained ternary operators in JavaScript and MDN says that they are right associative. This means that they will be evaluated from right to left.</p>
<blockquote>
<p>The ternary operator is right-associative, which means it can be "chained" in the following way, similar to an if … else i... | [
{
"answer_id": 74557407,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 1,
"selected": false,
"text": "var result =\n AQI > 300 //if condition\n ?\n \"Air Quality is BAD\" //if first condition satisfies\n :\n (AQI >... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10449848/"
] |
74,557,354 | <p>I have data in Column A in excel..I am iterating through column and i need to find if a cell value has hyperlink init.</p>
<pre><code>LR=Activeworkbook.Worksheets("Emp").Range("A65000").End(xlup).Row
for j=1 to LR
if Thisworkbooks.Worksheets("Emp").cells(j,1)="" then 'Logic ... | [
{
"answer_id": 74557539,
"author": "Troy",
"author_id": 4697251,
"author_profile": "https://Stackoverflow.com/users/4697251",
"pm_score": 0,
"selected": false,
"text": "Private Sub cmdFollowLink_Click() \n"
},
{
"answer_id": 74558013,
"author": "VBasic2008",
"author_id": ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19742621/"
] |
74,557,378 | <p>So I was used to use this bot about one year ago, now I wanted to launch it again but after discord.py 2.0 update it seems doesn't work propery</p>
<pre><code>import discord
from keep_alive import keep_alive
class MyClient(discord.Client):
async def on_ready(self):
print('bot is online now', self.user)
... | [
{
"answer_id": 74558850,
"author": "MrHDumpty",
"author_id": 18867363,
"author_profile": "https://Stackoverflow.com/users/18867363",
"pm_score": -1,
"selected": false,
"text": "import discord\nfrom discord.ext import commands # you need to import this to be able to use commands and event... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20588585/"
] |
74,557,423 | <p>I looked at some articles on the internet but I couldn't find what I wanted. After the site loads for the first time, when I scroll and scroll to a paragraph, I want the text to scroll from the bottom and come after 1 second.Like on this site:<a href="https://www.armoli.com/" rel="nofollow noreferrer">https://www.ar... | [
{
"answer_id": 74557811,
"author": "Graham",
"author_id": 15224555,
"author_profile": "https://Stackoverflow.com/users/15224555",
"pm_score": 1,
"selected": false,
"text": "const intersectionCallback = (entries) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20107962/"
] |
74,557,437 | <p>I have a list of URLs that are linked to the user. Currently, once the user adds those URLs to the app, I'm saving each URL as an individual document and then read any document that matches their UID.</p>
<p>Is this the right way to do it?</p>
<p>And with Firestore, is it cost per read per document or read per item ... | [
{
"answer_id": 74557811,
"author": "Graham",
"author_id": 15224555,
"author_profile": "https://Stackoverflow.com/users/15224555",
"pm_score": 1,
"selected": false,
"text": "const intersectionCallback = (entries) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16034511/"
] |
74,557,512 | <p>I've a simple DIV-Container for the main-content of the webpage. I.E</p>
<pre><code>#main { width: 50%; margin: 0 auto; }
</code></pre>
<p>Now I would like to fix another container, right and fixed at the top of the #main-Container. See Screenshot:</p>
<p><a href="https://i.stack.imgur.com/U3DKl.png" rel="nofollow n... | [
{
"answer_id": 74557568,
"author": "Rajilesh Panoli",
"author_id": 1581095,
"author_profile": "https://Stackoverflow.com/users/1581095",
"pm_score": 0,
"selected": false,
"text": "<div id=\"main\" style=\"position:relative;\">\n <div id=\"green_div\" style=\"position:absolute; left:100... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1736442/"
] |
74,557,546 | <p>I need to clean a dataset filtering only modified rows (compared to the previous one) based on certain fields (in the example below we only consider cities and sports, for each id), keeping only the first occurrence.
If a row goes back to a previous state (but not for the immediately preceding), I still want to keep... | [
{
"answer_id": 74559649,
"author": "Azhar Khan",
"author_id": 2847330,
"author_profile": "https://Stackoverflow.com/users/2847330",
"pm_score": -1,
"selected": false,
"text": "from pyspark.sql.window import Window\n\ndf = spark.createDataFrame(data=[[\"abc\",\"london\",\"football\",\"202... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14820295/"
] |
74,557,559 | <p>I want to find the find the highest value that is less than a given number to a specified number in a sorted list of integers.</p>
<p>I have the following code</p>
<pre><code>List<int> list = new List<int> { 2, 5, 7, 10 };
int number = 9;
</code></pre>
<p>In the above example the expected outcome is 7.
I... | [
{
"answer_id": 74557807,
"author": "Klaus Gütter",
"author_id": 2142950,
"author_profile": "https://Stackoverflow.com/users/2142950",
"pm_score": 3,
"selected": false,
"text": "List<int> list = new List<int> { 2, 5, 7, 10 };\nint number = 1;\n\nvar index = Array.BinarySearch(list.ToArray... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1173307/"
] |
74,557,590 | <p>My problem is as follows. I am generating a random bitstring of size n, and need to iterate over the indices for which the random bit is 1. For example, if my random bitstring ends up being 00101, I want to retrieve [2, 4] (on which I will iterate over). The goal is to do so in the fastest way possible with Python/N... | [
{
"answer_id": 74557874,
"author": "Armin",
"author_id": 8055760,
"author_profile": "https://Stackoverflow.com/users/8055760",
"pm_score": 0,
"selected": false,
"text": "n = 10\nl = np.random.bit_generator.randbits(n) # gives you the int 616\nl_string = f'{l:0{n}b}' # gives you a string ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13725755/"
] |
74,557,620 | <p>I want to affect element's display,color or something when i hover a element.Class names can be different. Will not always contain sub.</p>
<p>Example:</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-c... | [
{
"answer_id": 74557760,
"author": "André",
"author_id": 13970434,
"author_profile": "https://Stackoverflow.com/users/13970434",
"pm_score": 3,
"selected": true,
"text": ".main:hover .sub, .main:hover .sub2{\n opacity:1;\n}\n"
},
{
"answer_id": 74557845,
"author": "Sfili_81"... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17619616/"
] |
74,557,625 | <p>The task is to add 10 buttons (0...9) with labels using for in loop.
I created buttons based on class ButtonPrototype. I assigned label to each button via counter inside for in loop.</p>
<p>It works, but there is incorrect labels order:</p>
<p><a href="https://i.stack.imgur.com/ZXjt1.jpg" rel="nofollow noreferrer"><... | [
{
"answer_id": 74557760,
"author": "André",
"author_id": 13970434,
"author_profile": "https://Stackoverflow.com/users/13970434",
"pm_score": 3,
"selected": true,
"text": ".main:hover .sub, .main:hover .sub2{\n opacity:1;\n}\n"
},
{
"answer_id": 74557845,
"author": "Sfili_81"... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557625",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19277065/"
] |
74,557,640 | <p>If you toggle <code>display:flex</code> on a shadow root child it also affects the element outside. (All big browsers behave like this.) Why?</p>
<p>There is a web component with a shadow root:</p>
<pre><code><web-comp style="display: inline-block;"></web-comp>
</code></pre>
<p>Inside the shado... | [
{
"answer_id": 74559117,
"author": "Krokomot",
"author_id": 19980636,
"author_profile": "https://Stackoverflow.com/users/19980636",
"pm_score": 0,
"selected": false,
"text": "body <p style=\"display:flex;align-items:center;height:50px;background:lightgreen\">And I am not.</p>"
},
{
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3526448/"
] |
74,557,664 | <p>I want to see how the containers of an application are distributed/spread in the cluster. Which command can be used to find it out? I want to check if the containers are all running in the same AZ.</p>
| [
{
"answer_id": 74559117,
"author": "Krokomot",
"author_id": 19980636,
"author_profile": "https://Stackoverflow.com/users/19980636",
"pm_score": 0,
"selected": false,
"text": "body <p style=\"display:flex;align-items:center;height:50px;background:lightgreen\">And I am not.</p>"
},
{
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/825920/"
] |
74,557,673 | <p>I am learning <code>LazyColum</code> in <a href="https://developer.android.com/jetpack/compose/lists#lazylistscope" rel="nofollow noreferrer">jetpack compose</a>. I want to add <code>Separator</code> in my each item in some condition, please have a look on below <code>MessageList()</code> function. Also I'll add a s... | [
{
"answer_id": 74557777,
"author": "Stephan",
"author_id": 1031556,
"author_profile": "https://Stackoverflow.com/users/1031556",
"pm_score": 1,
"selected": false,
"text": "LazyColumn {\n\n items(messages) { message ->\n MessageRow(message)\n Box(Modifier.fillMaxWidth().h... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557673",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11560810/"
] |
74,557,686 | <p>I am creating a header for a chrome extension, but upon implementing the icons an unknow space is added as shown below</p>
<p><a href="https://i.stack.imgur.com/Ug0j5.png" rel="nofollow noreferrer">You can see that the space is only present on buttons with an icon</a></p>
<p>Here is the css for the button element, b... | [
{
"answer_id": 74557777,
"author": "Stephan",
"author_id": 1031556,
"author_profile": "https://Stackoverflow.com/users/1031556",
"pm_score": 1,
"selected": false,
"text": "LazyColumn {\n\n items(messages) { message ->\n MessageRow(message)\n Box(Modifier.fillMaxWidth().h... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20580361/"
] |
74,557,704 | <p>I want the text written on my banner image to come down from the top, but when I do that with margin-top the banner portion from the top is coming down with it and the text is stuck on the top.</p>
<p><a href="https://i.stack.imgur.com/9AeUQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9AeUQ.pn... | [
{
"answer_id": 74557777,
"author": "Stephan",
"author_id": 1031556,
"author_profile": "https://Stackoverflow.com/users/1031556",
"pm_score": 1,
"selected": false,
"text": "LazyColumn {\n\n items(messages) { message ->\n MessageRow(message)\n Box(Modifier.fillMaxWidth().h... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20588760/"
] |
74,557,749 | <p>I wrote this code to check if something is a prime number or not.</p>
<pre><code> .data
is_prime: .asciiz "--Prime--"
not_prime: .asciiz "--No prime--"
element: .word 2
.text
main:
#importeer prime messages
la $t3, is_prime
la $t4, not_prime
lw $t1, element
# inp... | [
{
"answer_id": 74557777,
"author": "Stephan",
"author_id": 1031556,
"author_profile": "https://Stackoverflow.com/users/1031556",
"pm_score": 1,
"selected": false,
"text": "LazyColumn {\n\n items(messages) { message ->\n MessageRow(message)\n Box(Modifier.fillMaxWidth().h... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557749",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20588909/"
] |
74,557,751 | <pre class="lang-sql prettyprint-override"><code>select
regexp_substr('a-b--->d--->e f','[^--->]+',1,1) col1
,regexp_substr('a-b--->d--->e f','[^--->]+',1,2) col2
,regexp_substr('a-b--->d--->e f','[^--->]+',1,3) col3
,regexp_substr('a-b--->d--->e f','[^--->]+',1,4) col4
from dual
... | [
{
"answer_id": 74557846,
"author": "p3consulting",
"author_id": 4956336,
"author_profile": "https://Stackoverflow.com/users/4956336",
"pm_score": 0,
"selected": false,
"text": "select \n regexp_substr('a-b--->d--->e f','[a-z]+([ \\-][a-z]+){0,1}',1,1) col1\n,regexp_substr('a-b--->d--->e... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557751",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10378076/"
] |
74,557,763 | <p>I have a bash script that sets a directory as a lock, and if the lock is in place then it send a message to the user who attempted to run it.</p>
<p>I'm wondering if its possible to somehow suppress the "directory already exists" message, but still run the other function (warning_run_in_place). Because if ... | [
{
"answer_id": 74558148,
"author": "Antonio Petricca",
"author_id": 418599,
"author_profile": "https://Stackoverflow.com/users/418599",
"pm_score": 2,
"selected": true,
"text": "mkdir MYLOCK mkdir MYLOCK 2>/dev/null"
},
{
"answer_id": 74558907,
"author": "Dudi Boy",
"auth... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18965152/"
] |
74,557,796 | <p>I have the below data in an excel spreadsheet</p>
<p><a href="https://i.stack.imgur.com/ZFXeX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZFXeX.png" alt="Initial Data" /></a></p>
<p>I want to cycle through column B and capture consecutive Paid Leaves for each employee and generate a another ag... | [
{
"answer_id": 74558329,
"author": "Notus_Panda",
"author_id": 19353309,
"author_profile": "https://Stackoverflow.com/users/19353309",
"pm_score": 3,
"selected": true,
"text": "Sub paid_leave()\n Dim wb As Workbook 'declare all your variables upfront and go through your code with F8 f... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20588704/"
] |
74,557,859 | <p>In python, I am able to get intersection of multiple lists:</p>
<pre><code>arr = [[1, 2, 3], [2, 3, 4], [3, 4, 5]]
result = set.intersection(*map(set, arr))
</code></pre>
<p>Output:</p>
<pre><code>result = {3}
</code></pre>
<p>Now, I want the result as intersection of all 3 nested lists taken 2 at a time:</p>
<pre><... | [
{
"answer_id": 74557895,
"author": "Epsi95",
"author_id": 6660638,
"author_profile": "https://Stackoverflow.com/users/6660638",
"pm_score": 0,
"selected": false,
"text": "itertools.combinations from itertools import combinations\narr = [[1, 2, 3], [2, 3, 4], [3, 4, 5]]\nresult = [set.int... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15324584/"
] |
74,557,873 | <p>I have a file that has a large list of Countries, years, and ages of living expectancies. I cannot figure out how to make sure the user is only allowed to input a year that actually exists. After figuring this out, I will need to call only those years (with corresponding country name, code, and living expectancies. ... | [
{
"answer_id": 74557895,
"author": "Epsi95",
"author_id": 6660638,
"author_profile": "https://Stackoverflow.com/users/6660638",
"pm_score": 0,
"selected": false,
"text": "itertools.combinations from itertools import combinations\narr = [[1, 2, 3], [2, 3, 4], [3, 4, 5]]\nresult = [set.int... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14018457/"
] |
74,557,877 | <p>I am creating an android application to save the passwords.
On the main screen i am using recycler view to show all the passwords.
I have 2 two buttons one to add new password and second to update the password, when the user clicks on add new password, new activity (add new password activity) will be open. how shoul... | [
{
"answer_id": 74557895,
"author": "Epsi95",
"author_id": 6660638,
"author_profile": "https://Stackoverflow.com/users/6660638",
"pm_score": 0,
"selected": false,
"text": "itertools.combinations from itertools import combinations\narr = [[1, 2, 3], [2, 3, 4], [3, 4, 5]]\nresult = [set.int... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557877",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20530242/"
] |
74,557,900 | <p>The dataframe is as follows:</p>
<p>df1:</p>
<pre><code>name | age | state | number | score
------------------------------------------------------
A 23 AZ 5434567 92.1
B 54 AZ 1234543 87.6
C 32 AZ 7654344... | [
{
"answer_id": 74557935,
"author": "anon01",
"author_id": 5032941,
"author_profile": "https://Stackoverflow.com/users/5032941",
"pm_score": 1,
"selected": false,
"text": "df1.eq(df2).astype(int)\n# or (df1 == df2).astype(int)\n name age state number\n0 1 1 0 1\n1 ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20346798/"
] |
74,557,942 | <p>I want to get an individual row from the QueryJob in BQ. My query: <code>select count(*) from ...</code> returns a single row & I want to read the count value which is its first column. So if I can get the first row then I can do <code>row[0]</code> for the first column. I can iterate: <code>row in queryJob</cod... | [
{
"answer_id": 74557935,
"author": "anon01",
"author_id": 5032941,
"author_profile": "https://Stackoverflow.com/users/5032941",
"pm_score": 1,
"selected": false,
"text": "df1.eq(df2).astype(int)\n# or (df1 == df2).astype(int)\n name age state number\n0 1 1 0 1\n1 ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557942",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20220756/"
] |
74,557,958 | <p>I wanted to select / delete all duplicate rows on multiple table. I have searched the internet for clues but all I see are queries that selects duplicate rows <strong>based one or more column</strong>. Like this:
<code>SELECT col1 count(*) from table_name group by col1 having count(*) > 1</code></p>
<p>What I wan... | [
{
"answer_id": 74558465,
"author": "MT0",
"author_id": 1509264,
"author_profile": "https://Stackoverflow.com/users/1509264",
"pm_score": 1,
"selected": false,
"text": "ROWID ROW_NUMBER DELETE FROM table_name\nWHERE ROWID IN (\n SELECT ROWID\n FROM (\n SELECT ROW_NUMBER() OVER (\n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14745431/"
] |
74,557,996 | <blockquote>
<p>`views.py</p>
<pre><code>from allauth.account.views import SignupView
from .forms import HODSignUpForm
class HodSignUp(SignupView):
template_name = 'account/signup.html'
form_class = HODSignUpForm
redirect_field_name = ''
view_name = 'hod_sign_up'
def get_context_data(self, **... | [
{
"answer_id": 74558465,
"author": "MT0",
"author_id": 1509264,
"author_profile": "https://Stackoverflow.com/users/1509264",
"pm_score": 1,
"selected": false,
"text": "ROWID ROW_NUMBER DELETE FROM table_name\nWHERE ROWID IN (\n SELECT ROWID\n FROM (\n SELECT ROW_NUMBER() OVER (\n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74557996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16965714/"
] |
74,558,008 | <p>I'm after a more elegant tidyverse equivalent for <code>[()</code> that works for piping and in chains of pipes. I'm tempted to just wrap around it with my own function, because I ideally want all the functionality for it (working for different datatypes, matrices, vectors, dataframes etc).</p>
<pre><code>piped_subs... | [
{
"answer_id": 74558465,
"author": "MT0",
"author_id": 1509264,
"author_profile": "https://Stackoverflow.com/users/1509264",
"pm_score": 1,
"selected": false,
"text": "ROWID ROW_NUMBER DELETE FROM table_name\nWHERE ROWID IN (\n SELECT ROWID\n FROM (\n SELECT ROW_NUMBER() OVER (\n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74558008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20289207/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.