qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,419,500 | <p>I have a list of lists and I'd like to generate the possible permutations, the first element coming from the first sub-list, the second from the second sub-list and so on.</p>
<pre><code>?- A = [[1], [a, b], [2]], magic_function(A, Ans).
Ans = [1, a, 2]
; Ans = [1, b, 2]
; false.
?- B = [[1], [a, b], [4, 5]], ... | [
{
"answer_id": 74419615,
"author": "notoria",
"author_id": 14414324,
"author_profile": "https://Stackoverflow.com/users/14414324",
"pm_score": 3,
"selected": true,
"text": "maplist/3 member/2 ?- maplist(member, Es, [[1],[a,b],[2]]).\n Es = [1,a,2]\n; Es = [1,b,2].\n"
},
{
"ans... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74419500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9038952/"
] |
74,419,514 | <p>In the book "Haskell programming from first principles" it is said that:</p>
<blockquote>
<p>If you are using GHC 7.10 or newer, you’ll see an Applicative
constraint in the definition of Monad, as it should be:</p>
<pre><code>class Applicative m => Monad m where
(>>=) :: m a -> (a -> m b)... | [
{
"answer_id": 74419615,
"author": "notoria",
"author_id": 14414324,
"author_profile": "https://Stackoverflow.com/users/14414324",
"pm_score": 3,
"selected": true,
"text": "maplist/3 member/2 ?- maplist(member, Es, [[1],[a,b],[2]]).\n Es = [1,a,2]\n; Es = [1,b,2].\n"
},
{
"ans... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74419514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1772898/"
] |
74,419,533 | <p>I have an Entity like the code down here where for every phrase I can have many translations in different languages.</p>
<p>The problem is that when I fetch the translations Hibernate makes a query to the database for every phrase.</p>
<p>So if I have 1000 translations Hibernate will automatically make 1 query for t... | [
{
"answer_id": 74419678,
"author": "birca123",
"author_id": 10231374,
"author_profile": "https://Stackoverflow.com/users/10231374",
"pm_score": 1,
"selected": false,
"text": "*ToOne FetchType.EAGER Translations Phrase Lang FetchType.Lazy Translations"
}
] | 2022/11/13 | [
"https://Stackoverflow.com/questions/74419533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1510155/"
] |
74,419,594 |
<pre><code><div class="content-home">
<div class="logo-wrap-home">
<div class="logo-homepage"></div>
</div>
<div class="search-wrap-home">
<form method="get" class="search-home" action="https://... | [
{
"answer_id": 74419678,
"author": "birca123",
"author_id": 10231374,
"author_profile": "https://Stackoverflow.com/users/10231374",
"pm_score": 1,
"selected": false,
"text": "*ToOne FetchType.EAGER Translations Phrase Lang FetchType.Lazy Translations"
}
] | 2022/11/13 | [
"https://Stackoverflow.com/questions/74419594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20491248/"
] |
74,419,626 | <p>I am using MongoDB to store data, and on retrieving them I want to get the date and convert it to something that looks like this:</p>
<pre><code>'2022-07-20T10:12:21.054Z'
</code></pre>
<p>right now my date looks like this:</p>
<pre><code>"Nov. 13, 2022 at 5:51 AM "
</code></pre>
<p>because I am getting it... | [
{
"answer_id": 74419729,
"author": "Syful Islam",
"author_id": 10710013,
"author_profile": "https://Stackoverflow.com/users/10710013",
"pm_score": 0,
"selected": false,
"text": "> Try this using moment library you can make any format you want.\n<!DOCTYPE html>\n <html lang=\"en\">... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74419626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11120306/"
] |
74,419,698 | <p>Why is the for loop appending faster than list comprehension
For Loop Time: 7.214778099999876
List Comprehension Time: 7.4003780000002735</p>
<p>Code 1:</p>
<pre><code>import timeit
mycode = '''
new_list=[]
x=[1,2,3,4,5]
for obj in x:
if obj %2==0:
new_list.append(obj)
'''
print (timeit.timeit(stmt = ... | [
{
"answer_id": 74421686,
"author": "Jérôme Richard",
"author_id": 12939557,
"author_profile": "https://Stackoverflow.com/users/12939557",
"pm_score": 1,
"selected": false,
"text": "x=list(range(15)) x=list(range(1000))"
},
{
"answer_id": 74421901,
"author": "Dimitrius",
"... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74419698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19745616/"
] |
74,419,704 | <p>I am trying to replace a string in the config file.
I would like to run something like this:</p>
<p>OS</p>
<blockquote>
<p>(docker image php:8.1-apache-buster)</p>
<blockquote>
<p>Debian GNU/Linux 10 (buster)</p>
<blockquote>
<p>sed (GNU sed) 4.7 Packaged by Debian</p>
</blockquote>
</blockquote>
</blockquote>
<p>Po... | [
{
"answer_id": 74420135,
"author": "C-nan",
"author_id": 13524500,
"author_profile": "https://Stackoverflow.com/users/13524500",
"pm_score": 2,
"selected": false,
"text": "sed -i 's/^post_max_size = .*/post_max_size = 128M/g' /usr/local/etc/php/php.ini\n"
},
{
"answer_id": 744204... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74419704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2179965/"
] |
74,419,785 | <pre><code>I have this database:
id power_count power_name type second_power second_power_type
0 001 1 fire attack nan nan
1 001 1 fire attack nan nan
2 002 2 water defense nan nan
3 002 2 sand attack na... | [
{
"answer_id": 74420135,
"author": "C-nan",
"author_id": 13524500,
"author_profile": "https://Stackoverflow.com/users/13524500",
"pm_score": 2,
"selected": false,
"text": "sed -i 's/^post_max_size = .*/post_max_size = 128M/g' /usr/local/etc/php/php.ini\n"
},
{
"answer_id": 744204... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74419785",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19844859/"
] |
74,419,812 | <p>The task was to reverse the order of words in the sentence
I was able to reverse the order of the words, but the problem is that the order of the letters in the word also changes</p>
<p>For example: cats and dogs</p>
<p>The miracle in my plan:tac dna sgod</p>
<p>The desired output: dogs and cats</p>
<p>How can I fix... | [
{
"answer_id": 74420135,
"author": "C-nan",
"author_id": 13524500,
"author_profile": "https://Stackoverflow.com/users/13524500",
"pm_score": 2,
"selected": false,
"text": "sed -i 's/^post_max_size = .*/post_max_size = 128M/g' /usr/local/etc/php/php.ini\n"
},
{
"answer_id": 744204... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74419812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20491301/"
] |
74,419,823 | <p>I'm learning to use linkedlist, I feel I already understand the concept but when coding why do I always get an error (bus error)....this code can run, but only until "SCANF the NAME" after that an error appears.</p>
<pre><code>typedef struct Student{
char name[20];
char idNum[10];
int saving;
... | [
{
"answer_id": 74420135,
"author": "C-nan",
"author_id": 13524500,
"author_profile": "https://Stackoverflow.com/users/13524500",
"pm_score": 2,
"selected": false,
"text": "sed -i 's/^post_max_size = .*/post_max_size = 128M/g' /usr/local/etc/php/php.ini\n"
},
{
"answer_id": 744204... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74419823",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20095922/"
] |
74,419,839 | <p>I have the column shown in the figure I just want to convert the datetime column from UTC to IST I am trying to add 05:30:00 to each row using google query_language but couldn't find a way
Please help me
<a href="https://i.stack.imgur.com/lb4KX.png" rel="nofollow noreferrer">enter image description here</a></p>
| [
{
"answer_id": 74420135,
"author": "C-nan",
"author_id": 13524500,
"author_profile": "https://Stackoverflow.com/users/13524500",
"pm_score": 2,
"selected": false,
"text": "sed -i 's/^post_max_size = .*/post_max_size = 128M/g' /usr/local/etc/php/php.ini\n"
},
{
"answer_id": 744204... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74419839",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19599725/"
] |
74,419,883 | <p>I am developing an app with flutter. I plan to support Android, iOS, macOS, and windows.
But I found that Firebase doesn't work for mac os.</p>
<p>In flutterfire, I chose the following platforms:<br />
✔ Which platforms should your configuration support (use arrow keys & space to select)? · android, ios, macos</... | [
{
"answer_id": 74420135,
"author": "C-nan",
"author_id": 13524500,
"author_profile": "https://Stackoverflow.com/users/13524500",
"pm_score": 2,
"selected": false,
"text": "sed -i 's/^post_max_size = .*/post_max_size = 128M/g' /usr/local/etc/php/php.ini\n"
},
{
"answer_id": 744204... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74419883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10518324/"
] |
74,419,893 | <p>I'm trying to create a histogram using ApexCharts (more specifically, React-ApexCharts, but I don't think it makes a difference).</p>
<p>Example of the output I'm after:
<a href="https://i.stack.imgur.com/gbXfi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gbXfi.png" alt="expected_output" /></a>... | [
{
"answer_id": 74420135,
"author": "C-nan",
"author_id": 13524500,
"author_profile": "https://Stackoverflow.com/users/13524500",
"pm_score": 2,
"selected": false,
"text": "sed -i 's/^post_max_size = .*/post_max_size = 128M/g' /usr/local/etc/php/php.ini\n"
},
{
"answer_id": 744204... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74419893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8929855/"
] |
74,419,894 | <p>I want to slove this problem
I can't get the result I want</p>
<pre><code>// main.cpp
#include "Point.h"
#include <iostream>
using namespace std;
int main(void) {
double x, y;
Point p{ 10.5, 20.99 };
p.info();
p.get(x, y);
cout << x << ", " << y <&... | [
{
"answer_id": 74419920,
"author": "john",
"author_id": 882003,
"author_profile": "https://Stackoverflow.com/users/882003",
"pm_score": 2,
"selected": false,
"text": "get double getx() const {\n return x;\n}\ndouble gety() const {\n return y;\n}\nvoid get(double& x, double& y) cons... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74419894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,419,902 | <pre><code>$secPassword = Read-Host "Password" -AsSecureString
New-ADUser
-Name "XYZ ABC"
-SamAccountName xyz.a
-UserPrincipalName "xyz.a@ntsh.local"
-AccountPassword $secPassword
-Path "cn=Users,dc=ntsh,dc=local"
-Enabled:$true
-PasswordNeverExpires:$... | [
{
"answer_id": 74420582,
"author": "miguelmtnezz_",
"author_id": 17387554,
"author_profile": "https://Stackoverflow.com/users/17387554",
"pm_score": 2,
"selected": true,
"text": "` $secPassword = Read-Host \"Password\" -AsSecureString\nNew-ADUser -Name \"XYZ ABC\" -SamAccountName xyz.a -... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74419902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2811532/"
] |
74,419,938 | <p>I am working on a small project. What i want to do is when sorting happens <code>@click</code> event, <code>sortcol</code> column is given asc, desc, but. The thing I want is this, I want to clear the value of other columns except the clicked column.</p>
<p>I couldn't figure out how to get this done.</p>
<pre><code>... | [
{
"answer_id": 74420582,
"author": "miguelmtnezz_",
"author_id": 17387554,
"author_profile": "https://Stackoverflow.com/users/17387554",
"pm_score": 2,
"selected": true,
"text": "` $secPassword = Read-Host \"Password\" -AsSecureString\nNew-ADUser -Name \"XYZ ABC\" -SamAccountName xyz.a -... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74419938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19329721/"
] |
74,419,964 | <pre><code>function Clothes() {
const { loading, error, data } = useQuery(GET_CLOTHES);
const [products,setProducts] = useState([]);
const [index,setIndex] = useState(0)
useEffect(() => {
if (data) {
setProducts(data.AllItem);
console.log(data.AllItem)
}
},[data,products]);
/*
... | [
{
"answer_id": 74420582,
"author": "miguelmtnezz_",
"author_id": 17387554,
"author_profile": "https://Stackoverflow.com/users/17387554",
"pm_score": 2,
"selected": true,
"text": "` $secPassword = Read-Host \"Password\" -AsSecureString\nNew-ADUser -Name \"XYZ ABC\" -SamAccountName xyz.a -... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74419964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17465034/"
] |
74,420,001 | <p>I have some trouble with creating a python class and methods, and I don't know how to resolve it.</p>
<p>I have 2 files, 1 file contains a class with multiple methods. 2 of these are:</p>
<pre><code>def get_price_of(ticker: str) -> float:
URL = 'https://api.kucoin.com/api/v1/market/orderbook/level1?symbol='
... | [
{
"answer_id": 74420024,
"author": "The Myth",
"author_id": 15042008,
"author_profile": "https://Stackoverflow.com/users/15042008",
"pm_score": 0,
"selected": false,
"text": "get_price_of() self def get_price_of(ticker: str) -> float:\n URL = 'https://api.kucoin.com/api/v1/market/orde... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420001",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17318939/"
] |
74,420,049 | <p>I am using Mac OS and since latest rails version the delete key does not work anymore.</p>
<pre><code>❯ rails -v
Rails 7.0.4
❯ ruby -v
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
</code></pre>
<p>When I hit <code>delete</code> instead of removing the char and the current cursor position it insert... | [
{
"answer_id": 74436152,
"author": "YvesR",
"author_id": 456266,
"author_profile": "https://Stackoverflow.com/users/456266",
"pm_score": 0,
"selected": false,
"text": "nano ~/.irbrc\nIRB.conf[:USE_READLINE] = true\n"
},
{
"answer_id": 74436759,
"author": "neongrau",
"auth... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420049",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/456266/"
] |
74,420,061 | <p>I am having trouble with array mappings. There is an array with data I would like to bind to my component. It looks like the following:</p>
<pre><code>export var arrayObjects: IObjects[] = [
{
name: 'First Object',
icon: 'bi bi-capsule',
subMenu: [
{
name: 'First Sub Object',
... | [
{
"answer_id": 74420150,
"author": "Ali Sattarzadeh",
"author_id": 11434567,
"author_profile": "https://Stackoverflow.com/users/11434567",
"pm_score": 2,
"selected": true,
"text": " { subMenu.map((name:any) =>(\n <a href=\"\">{name}</a>\n ))}\n { subMenu.map((sub:any)... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14801612/"
] |
74,420,083 | <p>I have the following data structure</p>
<pre><code>[
{
"id": 3,
"name" "Important Topic 3",
"questions": [array of questions],
"topics: [array of topics],
"parentTopic": {
"id": 2,
... | [
{
"answer_id": 74420295,
"author": "Lucasbk38",
"author_id": 20480528,
"author_profile": "https://Stackoverflow.com/users/20480528",
"pm_score": 0,
"selected": false,
"text": "// The json data\nconst jsonData = `[\n {\n \"id\": 3,\n \"name\": \"Important Topic 3\",\n \"qu... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2906950/"
] |
74,420,095 | <p>I'm trying to write an Outlook Add-in that deletes an email after the email has been read completely.
The problem is that the read-flag turns true the second we click on it and it doesn't give us much time to read the email.</p>
<p>I tried to delete the email after closing it:</p>
<pre><code>private void ThisAddIn_S... | [
{
"answer_id": 74420295,
"author": "Lucasbk38",
"author_id": 20480528,
"author_profile": "https://Stackoverflow.com/users/20480528",
"pm_score": 0,
"selected": false,
"text": "// The json data\nconst jsonData = `[\n {\n \"id\": 3,\n \"name\": \"Important Topic 3\",\n \"qu... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20491745/"
] |
74,420,110 | <p>I'm working on a Winforms app and I have 5 radio buttons. I need to know which one is checked. Is there a better/more compact way of doing this in C#?</p>
<p>For now I have this:</p>
<pre><code>if (rbtnArgent.Checked)
return "Silver";
else if (rbtnBleuF.Checked)
return "Dark Blue";
else i... | [
{
"answer_id": 74420295,
"author": "Lucasbk38",
"author_id": 20480528,
"author_profile": "https://Stackoverflow.com/users/20480528",
"pm_score": 0,
"selected": false,
"text": "// The json data\nconst jsonData = `[\n {\n \"id\": 3,\n \"name\": \"Important Topic 3\",\n \"qu... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9282102/"
] |
74,420,117 | <p>I have the following code.</p>
<p>I am trying to sort the values of the first column of the 'happydflist' dataframe in ascending order.</p>
<p>However, the output this gives me includes some values such as '2','3' and '8' that do not fit in with the ascending order theme.</p>
<pre><code>happydflist = happydflist[hap... | [
{
"answer_id": 74420295,
"author": "Lucasbk38",
"author_id": 20480528,
"author_profile": "https://Stackoverflow.com/users/20480528",
"pm_score": 0,
"selected": false,
"text": "// The json data\nconst jsonData = `[\n {\n \"id\": 3,\n \"name\": \"Important Topic 3\",\n \"qu... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12985497/"
] |
74,420,155 | <p>I'm going through <a href="https://learn.microsoft.com/en-us/visualstudio/get-started/csharp/tutorial-console?view=vs-2022" rel="nofollow noreferrer">this</a> C# intro tutorial by MS, and in the section "Fix the "format" error" I'm supposed to delete code in the namespace, but I'm not seeing that... | [
{
"answer_id": 74420221,
"author": "Lesiak",
"author_id": 1570854,
"author_profile": "https://Stackoverflow.com/users/1570854",
"pm_score": 1,
"selected": false,
"text": "Console.WriteLine(\"Hello World!\");\n"
},
{
"answer_id": 74420443,
"author": "Guru Stron",
"author_i... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420155",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18891753/"
] |
74,420,190 | <p>I'm trying to solve a specific error from a library (pycountry_convert) in a code with try / except, but when I use the except to avoid this case it just doesn't work. I've tried so many things to solve this.</p>
<p>Here is the code</p>
<pre><code>import pycountry_convert as pc
def pegacontinente(nomepais):
... | [
{
"answer_id": 74420221,
"author": "Lesiak",
"author_id": 1570854,
"author_profile": "https://Stackoverflow.com/users/1570854",
"pm_score": 1,
"selected": false,
"text": "Console.WriteLine(\"Hello World!\");\n"
},
{
"answer_id": 74420443,
"author": "Guru Stron",
"author_i... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20491830/"
] |
74,420,233 | <p>The string is:
<code>x = 'ABBA'</code></p>
<p>whenever I use this code:
<code>x = 'ABBA' x = ''.join(set(x)) print(x)</code></p>
<p>It results in:
<code>BA</code>
but I want it to be the first letters instead of the second letters:
<code>AB</code></p>
<p>Is there any way that I can do it without using reverse functi... | [
{
"answer_id": 74420221,
"author": "Lesiak",
"author_id": 1570854,
"author_profile": "https://Stackoverflow.com/users/1570854",
"pm_score": 1,
"selected": false,
"text": "Console.WriteLine(\"Hello World!\");\n"
},
{
"answer_id": 74420443,
"author": "Guru Stron",
"author_i... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20440485/"
] |
74,420,235 | <p>I don't really have code for this problem. But I will try my best to actually explain everything.</p>
<p><a href="https://i.stack.imgur.com/nQVBp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nQVBp.png" alt="Example" /></a>
alright, say you are scraping a website, and in the website there are 3 ... | [
{
"answer_id": 74420495,
"author": "Samurai6465",
"author_id": 20287896,
"author_profile": "https://Stackoverflow.com/users/20287896",
"pm_score": 0,
"selected": false,
"text": "<li href=“https://google.com > Site 1 </li> "
},
{
"answer_id": 74497640,
"author": "Driftr95",
... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20491929/"
] |
74,420,254 | <p>I have a sql query I'm executing that I'm passing variables into. In the current context I'm passing the parameter values in as f strings, but this query is vulnerable to sql injection. I know there is a method to use a stored procedure and restrict permissions on the user executing the query. But is there a way to ... | [
{
"answer_id": 74420495,
"author": "Samurai6465",
"author_id": 20287896,
"author_profile": "https://Stackoverflow.com/users/20287896",
"pm_score": 0,
"selected": false,
"text": "<li href=“https://google.com > Site 1 </li> "
},
{
"answer_id": 74497640,
"author": "Driftr95",
... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20152722/"
] |
74,420,276 | <p>I have a problem. I would like to use <a href="https://github.com/Fintasys/emoji_picker_flutter" rel="nofollow noreferrer">emoji_picker_flutter</a>. This should be displayed under the TextInputField but is not displayed. What is the reason for this? Do I have to implement it differently or what is the reason? I trie... | [
{
"answer_id": 74420505,
"author": "eamirho3ein",
"author_id": 10306997,
"author_profile": "https://Stackoverflow.com/users/10306997",
"pm_score": 3,
"selected": true,
"text": "height emojiSelect SizedBox(height: 300, child: emojiSelect()),\n"
},
{
"answer_id": 74420556,
"aut... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17136258/"
] |
74,420,282 | <p>I have Id, event_name, Timestamp columns.</p>
<p>I will concatenate last 5 event of every id.</p>
<p>I've used multiple WITH and JOIN to acquaire this. But BigQuery took so much time to compute.</p>
<p>Also this feels like such a bad practice. What can i use as an alternative?</p>
<p>My table looks something like th... | [
{
"answer_id": 74420553,
"author": "Samuel",
"author_id": 16529576,
"author_profile": "https://Stackoverflow.com/users/16529576",
"pm_score": 1,
"selected": false,
"text": "group by With tbl as (select * , rand() as timestamp from unnest([\"A1\",\"B2\"]) ID,unnest(split(\"a b c d e f g\"... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18296671/"
] |
74,420,314 | <p>I have a variable <code>a = [0.129, 0.369, 0.758, 0.012, 0.925]</code>. I want to transform this variable into a bucketed variable. What I mean by this is explained below.</p>
<p><code>min_bucket_value, max_bucket_value = 0, 1</code> (Can be anything, for example, 0 to 800, but the min value is always going to be 0)... | [
{
"answer_id": 74420511,
"author": "Bob",
"author_id": 12750353,
"author_profile": "https://Stackoverflow.com/users/12750353",
"pm_score": 2,
"selected": false,
"text": "0 < a1 < 1 a1 = (a - min_bucket_value) / (max_bucket_value - min_bucket_value)\n b = (a1 * num_divisions).astype(torch... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420314",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11971761/"
] |
74,420,346 | <p>I have an issue that should have a very straight forward solution but I can't seem to find it. Basically I have observations nested within district*county but their values of candidate are wrong and the information for a single candidate is spread through multiple columns. The original dataset has the same problem b... | [
{
"answer_id": 74420436,
"author": "Tom Hoel",
"author_id": 17213355,
"author_profile": "https://Stackoverflow.com/users/17213355",
"pm_score": 0,
"selected": false,
"text": "candidate library(tidyverse) \n\ndf %>% \n mutate(across(everything(), as.character)) %>% \n select(-candidate)... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13311198/"
] |
74,420,379 | <p>I'm trying to upload a CSV file to this website: <a href="https://maalaei97-test3.hf.space/?__theme=light" rel="nofollow noreferrer">https://maalaei97-test3.hf.space/?__theme=light</a> using selenium. I tried to find elements by XPath and Partial_link_text but none of them worked.</p>
<p>Here is the code I used:</p>... | [
{
"answer_id": 74420422,
"author": "Zed Wong",
"author_id": 17259882,
"author_profile": "https://Stackoverflow.com/users/17259882",
"pm_score": 0,
"selected": false,
"text": "s = driver.find_element(By.CLASS_NAME, \"css-yxxalb edgvbvh9\")\n"
},
{
"answer_id": 74421102,
"autho... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20486634/"
] |
74,420,409 | <p>I have a repayment table that looks like this below,</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>cus_id</th>
<th>due_date</th>
<th>principal</th>
<th>disbursed_date</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>01-01-2022</td>
<td>10</td>
<td>01-11-2021</td>
</tr>
<tr>
<td>1</td>
<... | [
{
"answer_id": 74420422,
"author": "Zed Wong",
"author_id": 17259882,
"author_profile": "https://Stackoverflow.com/users/17259882",
"pm_score": 0,
"selected": false,
"text": "s = driver.find_element(By.CLASS_NAME, \"css-yxxalb edgvbvh9\")\n"
},
{
"answer_id": 74421102,
"autho... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8551281/"
] |
74,420,515 | <p>Suppose the table is:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>employee_id</th>
<th>branch</th>
<th>role</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>A</td>
<td>admin</td>
</tr>
<tr>
<td>2</td>
<td>A</td>
<td>engineer</td>
</tr>
<tr>
<td>3</td>
<td>A</td>
<td>finance</td>
</tr>... | [
{
"answer_id": 74420422,
"author": "Zed Wong",
"author_id": 17259882,
"author_profile": "https://Stackoverflow.com/users/17259882",
"pm_score": 0,
"selected": false,
"text": "s = driver.find_element(By.CLASS_NAME, \"css-yxxalb edgvbvh9\")\n"
},
{
"answer_id": 74421102,
"autho... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420515",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/98267/"
] |
74,420,530 | <p>I'm writing a Kotlin Multiplatform project in Android Studio. As a result, I have multiple sourceSets configured in the project but some of them are empty. Removing them from the Gradle build is not possible as they are required for building the project. Is there a way to hide them from being displayed by the IDE?</... | [
{
"answer_id": 74470502,
"author": "Sparko Sol",
"author_id": 20407048,
"author_profile": "https://Stackoverflow.com/users/20407048",
"pm_score": 1,
"selected": false,
"text": "@Target(AnnotationTarget.CLASS)\n@Retention(AnnotationRetention.SOURCE)\nannotation class HideEmptySourceSet\n"... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420530",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2318632/"
] |
74,420,570 | <p>I have the following Github action step which by design should do semantic release and at the end update "version" field in package.json but failed with error below.</p>
<p>I tried to use all the latest version but error remains, any ideas?</p>
<pre><code>semantic-versioning:
if: inputs.infra_dir != 'prod'... | [
{
"answer_id": 74470502,
"author": "Sparko Sol",
"author_id": 20407048,
"author_profile": "https://Stackoverflow.com/users/20407048",
"pm_score": 1,
"selected": false,
"text": "@Target(AnnotationTarget.CLASS)\n@Retention(AnnotationRetention.SOURCE)\nannotation class HideEmptySourceSet\n"... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420570",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/354255/"
] |
74,420,577 | <p>similar topics have been opened, but I couldn't find exactly what I wanted and couldn't solve it myself.</p>
<p>What I want is to call my functions from an array in a loop, but the values that each function needs are different. Sending all values to all functions (they won't use what they don't need after all) o... | [
{
"answer_id": 74420639,
"author": "SadeghPouriyan",
"author_id": 15154700,
"author_profile": "https://Stackoverflow.com/users/15154700",
"pm_score": 1,
"selected": false,
"text": " def a_func(x1):\n return x1\n\n def b_func(y1):\n return y1\n\n funcs = [a_func, b_... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420577",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11598428/"
] |
74,420,592 | <p>I wonder, if there is a more straightforward solution to the following problem. I want to separate the values in numeric columns by sign and a condition related to a categorical column.</p>
<p>If this is my data frame:</p>
<pre><code>library(tidyverse)
a <- tribble(
~category , ~val ,
'A' , 1 ,
'A' , -1 ,
... | [
{
"answer_id": 74420690,
"author": "Santiago",
"author_id": 13507658,
"author_profile": "https://Stackoverflow.com/users/13507658",
"pm_score": 1,
"selected": false,
"text": "val library(tidyverse)\n\na <- tribble(\n ~category , ~val ,\n 'A' , 1 ,\n 'A' , -1 ,\n 'B' , -2 ,\n 'C' , 1... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12052802/"
] |
74,420,598 | <p>I am using GNU Make on Linux. Here is my Makefile.</p>
<pre><code>foo:
printf '\x41\n'
bar:
printf '\x41\n' | cat
</code></pre>
<p>Here is the output:</p>
<pre><code>$ make foo
printf '\x41\n'
A
$ make bar
printf '\x41\n' | cat
\x41
</code></pre>
<p>The shell being used is Dash:</p>
<pre><code># ls -l /bin/... | [
{
"answer_id": 74420824,
"author": "Arkadiusz Drabczyk",
"author_id": 3691891,
"author_profile": "https://Stackoverflow.com/users/3691891",
"pm_score": 1,
"selected": false,
"text": "$ strace -f make\n(...)\n[pid 1396] execve(\"/usr/bin/printf\", [\"printf\", \"\\\\x41\\\\n\"], 0x564536... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1175080/"
] |
74,420,629 | <p>Assume that an agent is moving from Node1 to Node3 in the following network:
Node1 - PathA - Node2 - PathB- Node3
How do I access the next node the agent will pass?</p>
<p>The actual task it for bus agents to move along the yellow paths and pickup/drop off passengers and crews at the corresponding stands (nodes) - o... | [
{
"answer_id": 74421213,
"author": "Felipe",
"author_id": 3438111,
"author_profile": "https://Stackoverflow.com/users/3438111",
"pm_score": 0,
"selected": false,
"text": "getTargetX()"
}
] | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420629",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14497660/"
] |
74,420,664 | <p>I am trying to summarize some massive tables in a way that can help me investigate further for some data issues. There are hundreds of 1000s of rows, and roughly 80+ columns of data in most of these tables.</p>
<p>From each table, I have already performed queries to throw out any columns that have all nulls or 1 val... | [
{
"answer_id": 74420869,
"author": "p3consulting",
"author_id": 4956336,
"author_profile": "https://Stackoverflow.com/users/4956336",
"pm_score": 1,
"selected": false,
"text": "select rw.colnm dis_val, count(*) cnt from tbl1 group by rw.colnm order by 2 desc select 'a_column_of_tabl1' di... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5723764/"
] |
74,420,714 | <p>I have created a genetic algorithm to create children from parents.
At the start of the algorithm a random workload(arrays of sub-arrays) is created.
Workload L=2, population size N=30, InputsNumber=3 and mutation rate m=0.05. Then I do some score calculations for the population to pick the 2 workloads(the parents) ... | [
{
"answer_id": 74420869,
"author": "p3consulting",
"author_id": 4956336,
"author_profile": "https://Stackoverflow.com/users/4956336",
"pm_score": 1,
"selected": false,
"text": "select rw.colnm dis_val, count(*) cnt from tbl1 group by rw.colnm order by 2 desc select 'a_column_of_tabl1' di... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11353686/"
] |
74,420,724 | <p>We have an <em>undirected acyclic</em> graph where there is only a <em>single path between two connected nodes</em> that may look something like <a href="https://i.stack.imgur.com/wG8vS.png" rel="nofollow noreferrer">this</a>.</p>
<p><a href="https://i.stack.imgur.com/wG8vS.png" rel="nofollow noreferrer"><img src="h... | [
{
"answer_id": 74420869,
"author": "p3consulting",
"author_id": 4956336,
"author_profile": "https://Stackoverflow.com/users/4956336",
"pm_score": 1,
"selected": false,
"text": "select rw.colnm dis_val, count(*) cnt from tbl1 group by rw.colnm order by 2 desc select 'a_column_of_tabl1' di... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20492240/"
] |
74,420,726 | <p>I am using Minikube and here is my configuration:</p>
<p><code>kubectl describe deployment mysql</code></p>
<p>the output:</p>
<pre><code>Name: mysql
Namespace: default
CreationTimestamp: Sat, 12 Nov 2022 02:20:54 +0200
Labels: <none>
Annotations: ... | [
{
"answer_id": 74420869,
"author": "p3consulting",
"author_id": 4956336,
"author_profile": "https://Stackoverflow.com/users/4956336",
"pm_score": 1,
"selected": false,
"text": "select rw.colnm dis_val, count(*) cnt from tbl1 group by rw.colnm order by 2 desc select 'a_column_of_tabl1' di... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420726",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4349565/"
] |
74,420,733 | <p>According to AIMA (Russell & Norvig, 2010) this is the BNF grammar for FOL with Equality:</p>
<p><a href="https://i.stack.imgur.com/AlkuF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AlkuF.png" alt="bnf" /></a></p>
<p>How do I convert this to a lark grammar? Specifically, how do I represent... | [
{
"answer_id": 74425961,
"author": "rici",
"author_id": 1566221,
"author_profile": "https://Stackoverflow.com/users/1566221",
"pm_score": 2,
"selected": true,
"text": "() [] AtomicSentence\n : Predicate ['(' Term (',' Term)* ')']\n | Term '=' Term\n\nTerm: Function '(' Term (',' Te... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5586359/"
] |
74,420,798 | <p>I am trying to do the following questions.</p>
<ol>
<li><p>Find the ISBN and title of books that was published in 2022.</p>
</li>
<li><p>Find the ISBN, title of book and publisher of books that have at least two authors and at most three authors.</p>
</li>
</ol>
<p><a href="https://pastebin.com/g7ySAeFD" rel="nofoll... | [
{
"answer_id": 74421170,
"author": "Yong Shun",
"author_id": 8017690,
"author_profile": "https://Stackoverflow.com/users/8017690",
"pm_score": 2,
"selected": true,
"text": "db.Subject.aggregate([\n {\n \"$unwind\": \"$subject.book\"\n },\n {\n \"$match\": {\n \"subject.book... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420798",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20492247/"
] |
74,420,856 | <pre><code>Column(
crossAxisAlignment: CrossAxisAlignment.end,
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
Row(
// crossAxisAlignment: CrossAxisAlignment.end,
main... | [
{
"answer_id": 74420973,
"author": "aminjafari-dev",
"author_id": 19699656,
"author_profile": "https://Stackoverflow.com/users/19699656",
"pm_score": 3,
"selected": true,
"text": "scaffold() Row() floatingActionButton Scaffold(\n appBar: ...\n body:...\n floatingActionButton: // your ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12933247/"
] |
74,420,922 | <p>I already know that I can postpone an Angular bootstrap until a Promise or Obseravable are resolved.</p>
<p>Example :</p>
<p><kbd>app.module.ts</kbd></p>
<pre><code>{
provide: APP_INITIALIZER,
useFactory: (configService: ConfigurationService) => ()=> configService.load(),
deps: [ConfigurationService],
... | [
{
"answer_id": 74420973,
"author": "aminjafari-dev",
"author_id": 19699656,
"author_profile": "https://Stackoverflow.com/users/19699656",
"pm_score": 3,
"selected": true,
"text": "scaffold() Row() floatingActionButton Scaffold(\n appBar: ...\n body:...\n floatingActionButton: // your ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/859154/"
] |
74,420,927 | <p>I have a string:</p>
<pre><code>string = "Hello World"
</code></pre>
<p>That needs changing to:</p>
<pre><code>"hello WORLD"
</code></pre>
<p>Using only split and join in Python.</p>
<p>Any help?</p>
<pre><code>string = "Hello World"
split_str = string.split()
</code></pre>
<p>Can't... | [
{
"answer_id": 74420958,
"author": "C-3PO",
"author_id": 4667669,
"author_profile": "https://Stackoverflow.com/users/4667669",
"pm_score": -1,
"selected": true,
"text": "string = \"Hello World\"\nwords = string.split() # works also for multiple spaces and tabs\nresult = ' '.join((w.... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18206734/"
] |
74,420,939 | <p>I'm a total noob with coding, so I'm probably going about this the wrong way.</p>
<p>For this fiveM server, we currently have an mp4 video running as the background of the loading screen, i want to randomise this with multiple videos created though.</p>
<p>This is the current HTML code we've got, where i've added th... | [
{
"answer_id": 74420958,
"author": "C-3PO",
"author_id": 4667669,
"author_profile": "https://Stackoverflow.com/users/4667669",
"pm_score": -1,
"selected": true,
"text": "string = \"Hello World\"\nwords = string.split() # works also for multiple spaces and tabs\nresult = ' '.join((w.... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20492512/"
] |
74,420,950 | <p>I am fairly new to using ggplot for data visualisation in R and I want to understand whether the following dataframe <code>df</code> needs restructuring so that there is only one metric <code>Spend</code> to create an area chart. For this area chart I want the x-axis to be Days, the y-axis to be Spend and for it to ... | [
{
"answer_id": 74420958,
"author": "C-3PO",
"author_id": 4667669,
"author_profile": "https://Stackoverflow.com/users/4667669",
"pm_score": -1,
"selected": true,
"text": "string = \"Hello World\"\nwords = string.split() # works also for multiple spaces and tabs\nresult = ' '.join((w.... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74420950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17974332/"
] |
74,421,024 | <p>I have the following data (coming from Twitter):</p>
<pre><code>structure(list(entities.urls = list(structure(list(), .Names = character(0)),
NULL, structure(list(), .Names = character(0)), structure(list(), .Names = character(0)),
structure(list(start = 245L, end = 268L, url = "https://something.com&... | [
{
"answer_id": 74421624,
"author": "AndS.",
"author_id": 9778513,
"author_profile": "https://Stackoverflow.com/users/9778513",
"pm_score": 2,
"selected": true,
"text": "library(tidyverse)\n\ntest |>\n filter( map_chr(entities.urls, class)==\"data.frame\") |>\n unnest(entities.urls)\n#>... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421024",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10483692/"
] |
74,421,043 | <p>In below File I done some coding to make a jdbc connection. And I am using a xampp server for that.</p>
<p>ConnectionProvider.java</p>
<pre><code>package com.employeerecord.helper;
import java.sql.*;
public class ConnectionProvider {
//method GetConnection
private static Connection connection;
public stati... | [
{
"answer_id": 74421730,
"author": "changuk",
"author_id": 15566000,
"author_profile": "https://Stackoverflow.com/users/15566000",
"pm_score": 0,
"selected": false,
"text": "index.jsp ConnectionManager Connection"
},
{
"answer_id": 74426840,
"author": "lavantho0508_java_dev",... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20492559/"
] |
74,421,060 | <p>Im trying to write a code, that will take colnames out of a given vector, and in each of these columns recode 1<-5,2<-4,3<-3,4<-2,5<-1
big5qflip is the vectore of columns that I need to recode out of a questionnaire,
I'm having trouble getting it to work, and writing case_when correctly</p>
<pre><cod... | [
{
"answer_id": 74421730,
"author": "changuk",
"author_id": 15566000,
"author_profile": "https://Stackoverflow.com/users/15566000",
"pm_score": 0,
"selected": false,
"text": "index.jsp ConnectionManager Connection"
},
{
"answer_id": 74426840,
"author": "lavantho0508_java_dev",... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20492573/"
] |
74,421,111 | <p>I have a JSON array with objects as items. Some of the objects have properties, some don't. How can I filter the list with jq to keep only non-empty objects in the list?</p>
<p>Input:</p>
<pre><code>[
{},
{ "x": 42 },
{},
{ "y": 21 },
{},
{ "z": 13 }
]
</code></pre>
<p>Expec... | [
{
"answer_id": 74421354,
"author": "Philippe",
"author_id": 2125671,
"author_profile": "https://Stackoverflow.com/users/2125671",
"pm_score": 2,
"selected": true,
"text": "map select jq 'map(select(. != {}))'\n"
},
{
"answer_id": 74421480,
"author": "jpseng",
"author_id":... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/112968/"
] |
74,421,127 | <p>when working in Angular, let's say we have <em>module A</em> and <em>module B</em>, if I want to use "<em>A-component</em>" inside components of <em>module B</em>, then what's the difference between importing <em>module A</em> inside <em>Module B</em>
, and adding the "<em>A-component</em>" in th... | [
{
"answer_id": 74421354,
"author": "Philippe",
"author_id": 2125671,
"author_profile": "https://Stackoverflow.com/users/2125671",
"pm_score": 2,
"selected": true,
"text": "map select jq 'map(select(. != {}))'\n"
},
{
"answer_id": 74421480,
"author": "jpseng",
"author_id":... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20225484/"
] |
74,421,129 | <p>I want to make a beginner website using HTML, CSS and JS. However, how do you highlight text using CSS tags and stuff? (is it called CSS tags??)</p>
<p>I'm stuck and nothing seems to work on the internet, whatever I find.</p>
<p>I did this:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="t... | [
{
"answer_id": 74421209,
"author": "eitzaz shah",
"author_id": 14329769,
"author_profile": "https://Stackoverflow.com/users/14329769",
"pm_score": 1,
"selected": false,
"text": "Trying out <mark>highlight my text</mark> right now!\n"
},
{
"answer_id": 74421236,
"author": "Lak... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18333951/"
] |
74,421,178 | <p>I've written the following code below and ran it without errors on both xcode and vscode. However, I wasn't able to get any output filename.txt. It wasn't in any of my folders.</p>
<p>Appreciate if anyone could help.</p>
<pre><code>#include <stdio.h>
#include <string.h>
int main() {
FILE *fp=NU... | [
{
"answer_id": 74421279,
"author": "chux - Reinstate Monica",
"author_id": 2410359,
"author_profile": "https://Stackoverflow.com/users/2410359",
"pm_score": 2,
"selected": false,
"text": "fclose(NULL) '\\n' #include <stdio.h>\n#include <string.h>\n\nint main() { \n const char *filena... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20492676/"
] |
74,421,182 | <p>I want to delete the card when we click on the delete button after adding a TODO note<br/>
I have created a website which uses localstorage to store notes and display when clicking the create TODO button and it all works but when I click the delete button after the note is created (You have to create a TODO first) i... | [
{
"answer_id": 74421463,
"author": "Greg",
"author_id": 13628163,
"author_profile": "https://Stackoverflow.com/users/13628163",
"pm_score": 3,
"selected": true,
"text": "onclick='${key}.innerHTML=\"\"' localStorage.removeItem('${key}') this.parentElement.parentElement.remove() <button ty... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19610056/"
] |
74,421,185 | <p>I have seen couple of solutions to 301 redirect non www http i.e. http://domain-name to <a href="https://www.domain-name" rel="nofollow noreferrer">https://www.domain-name</a> but all of them (in my experience) gives 2 redirects.</p>
<p>Either they first redirect from non www to www first and than http to https or i... | [
{
"answer_id": 74421501,
"author": "arkascha",
"author_id": 1248114,
"author_profile": "https://Stackoverflow.com/users/1248114",
"pm_score": 0,
"selected": false,
"text": "RewriteEngine on\nRewriteCond %{HTTP_HOST} !^www\\. [OR]\nRewriteCond %{HTTPS} off\nRewriteRule ^ https://www.examp... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3000006/"
] |
74,421,189 | <p>I have this function:</p>
<pre><code>def total_fruit_per_sort():
number_found = re.findall(total_amount_fruit_regex(), verdi50)
fruit_dict = {}
for n, f in number_found:
fruit_dict[f] = fruit_dict.get(f, 0) + int(n)
return pprint.pprint(str( {value: key for value, key in fruit_di... | [
{
"answer_id": 74421215,
"author": "C-3PO",
"author_id": 4667669,
"author_profile": "https://Stackoverflow.com/users/4667669",
"pm_score": 2,
"selected": true,
"text": "string pprint .replace(',' , '\\n') pprint D print(pprint.pformat(D,width=1)[1:-1].replace('\\n ','\\n').replace(\"'\",... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7713770/"
] |
74,421,199 | <p>first.py:</p>
<pre><code>from third import *
from second import *
while running:
off()
</code></pre>
<p>second.py:</p>
<pre><code>from third import *
def off():
running = False
</code></pre>
<p>third.py:</p>
<pre><code>running = True
</code></pre>
<p>The program still running and running variable is not ac... | [
{
"answer_id": 74421361,
"author": "quamrana",
"author_id": 4834,
"author_profile": "https://Stackoverflow.com/users/4834",
"pm_score": 2,
"selected": true,
"text": "running = False import third\nfrom second import *\n\nwhile third.running: # This now accesses the running variable in t... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421199",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20104349/"
] |
74,421,203 | <p>I have a string that looks like this :</p>
<pre><code>my_sting="AC=1;AN=249706;AF=4.00471e-06;rf_tp_probability=8.55653e-01;"
</code></pre>
<p>it is based on a column in my data :</p>
<p><a href="https://i.stack.imgur.com/0AXa3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0AXa3.png" a... | [
{
"answer_id": 74421361,
"author": "quamrana",
"author_id": 4834,
"author_profile": "https://Stackoverflow.com/users/4834",
"pm_score": 2,
"selected": true,
"text": "running = False import third\nfrom second import *\n\nwhile third.running: # This now accesses the running variable in t... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12733891/"
] |
74,421,216 | <p>It seems my question is related to this <a href="https://stackoverflow.com/questions/71478038/select-storage-blob-data-contributor-role-to-azure-storage-account-and-assign">post</a> but since there is no answer I will ask again.</p>
<p>I have an Azure Devops project which I use to deploy static content into a contai... | [
{
"answer_id": 74421361,
"author": "quamrana",
"author_id": 4834,
"author_profile": "https://Stackoverflow.com/users/4834",
"pm_score": 2,
"selected": true,
"text": "running = False import third\nfrom second import *\n\nwhile third.running: # This now accesses the running variable in t... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421216",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12624874/"
] |
74,421,217 | <p>My problem is, when I am trying to generate my Excel file
I have some cells contains the tickmark symbol.</p>
<pre><code> using (ExcelRange Rng = wsSheet.Cells[col])
{
Rng.Value = Beneficiary.IDentityOrFamilyBookCheck;// this value is ü
Rng.Style.Font.SetFromFont("Wingdings", 16);
Rng.S... | [
{
"answer_id": 74434901,
"author": "Behnam",
"author_id": 14356409,
"author_profile": "https://Stackoverflow.com/users/14356409",
"pm_score": 2,
"selected": true,
"text": "Rng.Style.Font.Charset = 2;"
},
{
"answer_id": 74456305,
"author": "Taha Babi",
"author_id": 1311858... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13118588/"
] |
74,421,230 | <p>I'm trying to convert a list to a single integer using two methods:</p>
<p><code>for</code> loop works fine and gives me the integer</p>
<pre><code>>>> a_list = "123456789"
>>> a_list = list(a_list)
>>> b_int = ""
>>> for num in a_list:
... b_int += num
... | [
{
"answer_id": 74421276,
"author": "Luke",
"author_id": 6359829,
"author_profile": "https://Stackoverflow.com/users/6359829",
"pm_score": 0,
"selected": false,
"text": "list(\"123456789\")\nOut[6]: ['1', '2', '3', '4', '5', '6', '7', '8', '9']\n[int(x) for x in list(\"123456789\")]\nOut[... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20372709/"
] |
74,421,239 | <p>I've installed ClearML test manager solution using ClearML Docker-Compose. So now the whole thing is running using 6 containers (webserver,apiserver,redis,elasticsearch,fileserver and mongodb). I'm running the default Cleanup Service - However the task is in pending state because there are no Workers configured for ... | [
{
"answer_id": 74421276,
"author": "Luke",
"author_id": 6359829,
"author_profile": "https://Stackoverflow.com/users/6359829",
"pm_score": 0,
"selected": false,
"text": "list(\"123456789\")\nOut[6]: ['1', '2', '3', '4', '5', '6', '7', '8', '9']\n[int(x) for x in list(\"123456789\")]\nOut[... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20491584/"
] |
74,421,250 | <p>I have two df's: one has a date in the first column: all dates of the last three years and the second column are names of participants, other columns are information.</p>
<p>In the second df, I have some dates on which we did tests in the first column, then second column the names again and more columns information.... | [
{
"answer_id": 74421276,
"author": "Luke",
"author_id": 6359829,
"author_profile": "https://Stackoverflow.com/users/6359829",
"pm_score": 0,
"selected": false,
"text": "list(\"123456789\")\nOut[6]: ['1', '2', '3', '4', '5', '6', '7', '8', '9']\n[int(x) for x in list(\"123456789\")]\nOut[... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20492425/"
] |
74,421,292 | <p>I have 2 simple .txt files. One file contains a person's name and pay. The second file contains a person's name and job title.</p>
<p><strong>Data from first file...</strong></p>
<p>John Doe $750.00</p>
<p>Jane Doe $450.00</p>
<p>Sammy Joe $350.00</p>
<p><strong>Data from second file...</strong></p>
<p>Joh... | [
{
"answer_id": 74421276,
"author": "Luke",
"author_id": 6359829,
"author_profile": "https://Stackoverflow.com/users/6359829",
"pm_score": 0,
"selected": false,
"text": "list(\"123456789\")\nOut[6]: ['1', '2', '3', '4', '5', '6', '7', '8', '9']\n[int(x) for x in list(\"123456789\")]\nOut[... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20492754/"
] |
74,421,315 | <p>I wanted to make a function called fillArray to set up random values to the Array.
Then i wanted the function to output all the values but i kept getting values way above 99.</p>
<p>This is what i have written so far:</p>
<pre><code>#include <ctime>
#include <iostream>
using namespace std;
void fillArr... | [
{
"answer_id": 74421459,
"author": "Robert Shepherd",
"author_id": 19970913,
"author_profile": "https://Stackoverflow.com/users/19970913",
"pm_score": 1,
"selected": true,
"text": "main int main()\n{\n void fillArray(int a[10], int random);\n}\n int main()\n{\n fillArray(int a[10], int... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421315",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20492736/"
] |
74,421,327 | <p>Using <code>import { useRouter } from "next/router";</code> as <code>import { useRouter } from "next/navigation";</code> throws "Argument of type '{ pathname: string; query: { search: string; }; }' is not assignable to parameter of type 'string'."</p>
<pre><code> const router = useR... | [
{
"answer_id": 74421398,
"author": "Elvin",
"author_id": 11743253,
"author_profile": "https://Stackoverflow.com/users/11743253",
"pm_score": 0,
"selected": false,
"text": "const router = useRouter();\n\nconst search = (e) => {\n const searchParams = {\n pathname: ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421327",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15293377/"
] |
74,421,329 | <p>I am trying to make a plot using St Louis Fed data, using the <code>fredr</code> package and the pipe (<code>%>%) command in </code>ggplot2<code>. I am struggling to use the </code>xlim()<code>or</code>lims()` command.</p>
<p>I can get the series I want to plot I with the following code.</p>
<pre><code>#libraries... | [
{
"answer_id": 74421377,
"author": "user14836563",
"author_id": 14836563,
"author_profile": "https://Stackoverflow.com/users/14836563",
"pm_score": 0,
"selected": false,
"text": "ggplot(data = ., mapping = aes(x = date, y =labour_share_of_profit)) +\ngeom_line(lwd=1.2) +\nscale_x_continu... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421329",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1519289/"
] |
74,421,352 | <p>I am developping an app to order food online. As backend service I am using firestore to store the data and files. The user can order dishes and there are limited stocks. So every time a user order a dish and <strong>create a basket</strong> I <strong>update</strong> the stock of the corresponding ordered dishes. I ... | [
{
"answer_id": 74546259,
"author": "Renaud Tarnec",
"author_id": 3371862,
"author_profile": "https://Stackoverflow.com/users/3371862",
"pm_score": 0,
"selected": false,
"text": "forEach() get() set() Promise.all() //Update the dishes quantities when a basket is created\nexports.updateDis... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421352",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13841095/"
] |
74,421,411 | <p>I want to make a custom text editing controller which will show the numbers of text in Farsi (Persian), but returns it with English numbers when you call <code>textEditingController.text</code>.</p>
<p>Here's what I have implemented but it seems like the TextField doesn't use the setter of <code>text</code>:</p>
<pr... | [
{
"answer_id": 74546259,
"author": "Renaud Tarnec",
"author_id": 3371862,
"author_profile": "https://Stackoverflow.com/users/3371862",
"pm_score": 0,
"selected": false,
"text": "forEach() get() set() Promise.all() //Update the dishes quantities when a basket is created\nexports.updateDis... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16779388/"
] |
74,421,425 | <p>I am learning React and I am trying to simulate this design here: <a href="https://www.figma.com/file/QG4cOExkdbIbhSfWJhs2gs/Travel-Journal?node-id=2%3A2&t=LV3bLPEMOLMR8ksp-0" rel="nofollow noreferrer">https://www.figma.com/file/QG4cOExkdbIbhSfWJhs2gs/Travel-Journal?node-id=2%3A2&t=LV3bLPEMOLMR8ksp-0</a></p>... | [
{
"answer_id": 74421604,
"author": "Amaan Rizvi",
"author_id": 8745223,
"author_profile": "https://Stackoverflow.com/users/8745223",
"pm_score": 1,
"selected": false,
"text": "<div> const trips = data.map(trip=>{\n return (<div>\n <Trip item={trip} />\n <hr>\n </div>)\n}) const t... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421425",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9958179/"
] |
74,421,435 | <p>The general form of the equation is</p>
<pre><code>Sector ~ Beta_0 + Beta_1*absMkt + Beta_2*sqMkt
</code></pre>
<p>where Sector are the daily stock returns of each of the 12 sectors i.e AUTO ; IT ; REALTY ; BANK ; ENERGY ; FINANCIAL SERVICES ; FMCG ; INFRASTRUCTURE ; SERVICES ; MEDIA ; METAL and PHARMA.</p>
<p>Beta_... | [
{
"answer_id": 74421604,
"author": "Amaan Rizvi",
"author_id": 8745223,
"author_profile": "https://Stackoverflow.com/users/8745223",
"pm_score": 1,
"selected": false,
"text": "<div> const trips = data.map(trip=>{\n return (<div>\n <Trip item={trip} />\n <hr>\n </div>)\n}) const t... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7011325/"
] |
74,421,471 | <p>im just a beginner and i want to find the answer to this problem.</p>
<p>This is my html code.</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<input type = "text" name = "step" id = &qu... | [
{
"answer_id": 74421604,
"author": "Amaan Rizvi",
"author_id": 8745223,
"author_profile": "https://Stackoverflow.com/users/8745223",
"pm_score": 1,
"selected": false,
"text": "<div> const trips = data.map(trip=>{\n return (<div>\n <Trip item={trip} />\n <hr>\n </div>)\n}) const t... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20492814/"
] |
74,421,477 | <p>I'm writing a sidebar which displays additional information based on selected row/cell by user. It's rendering fine on sidebar open, but if the user changes active cell, I need to update content.</p>
<p>Apparently, I can add a "refresh" button in sidebar, but I really want to avoid clicking "refresh&q... | [
{
"answer_id": 74430108,
"author": "Jacques-Guzel Heron",
"author_id": 11861954,
"author_profile": "https://Stackoverflow.com/users/11861954",
"pm_score": 1,
"selected": false,
"text": "onSelectionChange onSelectionChange"
},
{
"answer_id": 74432422,
"author": "TheWizEd",
... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1300518/"
] |
74,421,482 | <p>I've searched SO and google for a similar question, but couldn't find the exact thing I'm searching.</p>
<p>I'm developing an application that queries an API that returns the following result:</p>
<pre class="lang-json prettyprint-override"><code>{
"Ticket": {
"1": {
"... | [
{
"answer_id": 74430108,
"author": "Jacques-Guzel Heron",
"author_id": 11861954,
"author_profile": "https://Stackoverflow.com/users/11861954",
"pm_score": 1,
"selected": false,
"text": "onSelectionChange onSelectionChange"
},
{
"answer_id": 74432422,
"author": "TheWizEd",
... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4519548/"
] |
74,421,484 | <p>I have a py-spark code running in Azure databricks. I have a spark dataframe with 20 numerical columns, named column1, column2, ...column20.
I have to calculate the Zscore(<code>from scipy.stats import zscore</code>) of these 20 columns, for that I am reading these 20 columns as numpy array.</p>
<p>But this collect ... | [
{
"answer_id": 74428417,
"author": "Ric S",
"author_id": 7465462,
"author_profile": "https://Stackoverflow.com/users/7465462",
"pm_score": 2,
"selected": true,
"text": "collect import pyspark.sql.functions as F\nfrom pyspark.sql.window import Window\n\nw = Window.partitionBy()\n\nfor c i... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8229793/"
] |
74,421,500 | <p>I'm trying to visualize data where each X value has multiple Y values and I would like to distinguish each Y value visaully. This is the example code</p>
<pre><code>xLables = ['A1','A2','A3','A4','A5']
YValues = [[1,2,3,4],[1,2,3,4,5,6,7],[1,2,3],[5,6,7],[1,2,3]]
X = [xLables[i] for i, data in enumerate(YValues) fo... | [
{
"answer_id": 74421575,
"author": "1Pre",
"author_id": 20416697,
"author_profile": "https://Stackoverflow.com/users/20416697",
"pm_score": 0,
"selected": false,
"text": "plt.scatter([1, 2, 3] plt.scatter(X, Y[0], marker=1)\nplt.scatter(X, Y[1], marker=1)\nplt.scatter(X, Y[2], marker=1)\... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11578518/"
] |
74,421,538 | <p>I am trying to set 2 columns by a condition on a 3rd column. I can set 1 column conditions on another column, and I can set 2 columns on a single condition value, but when I try to set 2 columns by a condition on a column, it fails.</p>
<p>Here is the code example:</p>
<pre class="lang-py prettyprint-override"><code... | [
{
"answer_id": 74421615,
"author": "C-3PO",
"author_id": 4667669,
"author_profile": "https://Stackoverflow.com/users/4667669",
"pm_score": 1,
"selected": false,
"text": "np.where df[\"column B\"], df[\"column C\"] = [np.where( df[\"column A\"] == 2 ,true_val,'NaN') for true_val in ['4','... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20492643/"
] |
74,421,540 | <ul>
<li>Create an employee class with the following members: name, age, id, salary</li>
<li>setData() - should allow employee data to be set via user input</li>
<li>getData()- should output employee data to the console</li>
<li>create a list of 5 employees. You can create a list of objects in the following way, append... | [
{
"answer_id": 74421709,
"author": "Eloi",
"author_id": 11591599,
"author_profile": "https://Stackoverflow.com/users/11591599",
"pm_score": 0,
"selected": false,
"text": "class Employee:\n def __init__(self, uid=None, name=None, age=None, salary=None):\n self.name = name\n ... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20372089/"
] |
74,421,560 | <p>Hello i write on a rating button and i wanted to change the background color from the button after i clicked it but my code does nothing.</p>
<pre><code> <ul>
<li><button class="btn"><p id="num">1</p></button></li>
<li><butto... | [
{
"answer_id": 74421616,
"author": "The KNVB",
"author_id": 2018278,
"author_profile": "https://Stackoverflow.com/users/2018278",
"pm_score": 0,
"selected": false,
"text": "const btnList = document.querySelectorAll('.btn');\n\n btnList.forEach(btn => {\n btn.addEventListener('click... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421560",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19156627/"
] |
74,421,617 | <p>This script loops and even if it crashes it restarts.</p>
<p>Now I want it to restart the script even if it has NOT CRASHED yet.</p>
<pre><code>while True:
try:
do_main_logic()
except:
pass
</code></pre>
<p>I have the loop that restart on crash, but I want it to restart on 60 seconds.</p>
| [
{
"answer_id": 74421616,
"author": "The KNVB",
"author_id": 2018278,
"author_profile": "https://Stackoverflow.com/users/2018278",
"pm_score": 0,
"selected": false,
"text": "const btnList = document.querySelectorAll('.btn');\n\n btnList.forEach(btn => {\n btn.addEventListener('click... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20493043/"
] |
74,421,655 | <p>After merging three datasets I've got a mess. There is a unique <code>id</code> field and then there can be one or more samples associated with each <code>id</code>. So far I've got</p>
<pre><code>samples <- structure(list(id = c(1029459, 1029459, 1029459, 1029459, 1030272,
1030272, 1030272, 1032157, 1032157, 10... | [
{
"answer_id": 74421753,
"author": "JAdel",
"author_id": 16236118,
"author_profile": "https://Stackoverflow.com/users/16236118",
"pm_score": 3,
"selected": true,
"text": "1029459 853401 853693 853667 samples %>% \n pivot_longer(\n c(sample1, sample2, sample3)\n ,names_to = \"sample... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2930596/"
] |
74,421,678 | <p>I don't really know what am I supposed to do with it.</p>
<p>For each file in the /etc directory whose name starts with the o or l and the second letter and the second letter of the name is t or r, display its name, size and type ('file'/'directory'/'link'). Use: wildcard, for loop and conditional statement for the ... | [
{
"answer_id": 74421817,
"author": "Vab",
"author_id": 17600005,
"author_profile": "https://Stackoverflow.com/users/17600005",
"pm_score": 2,
"selected": false,
"text": "find #!/bin/bash\n_dir='/etc'\n\nfind \"${_dir}\" -name \"[ol][tr]*\" -exec stat -c '%s-%n' {} \\; 2>/dev/null\n -maxd... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20493053/"
] |
74,421,685 | <p>My problem is with Futures, because they should be obtained before build() method executed, as the documentation states:</p>
<blockquote>
<p>The future must be obtained earlier, because if the future is created
at the same time as the FutureBuilder, then every time the
FutureBuilder's parent is rebuilt, the asynchro... | [
{
"answer_id": 74421817,
"author": "Vab",
"author_id": 17600005,
"author_profile": "https://Stackoverflow.com/users/17600005",
"pm_score": 2,
"selected": false,
"text": "find #!/bin/bash\n_dir='/etc'\n\nfind \"${_dir}\" -name \"[ol][tr]*\" -exec stat -c '%s-%n' {} \\; 2>/dev/null\n -maxd... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13059311/"
] |
74,421,698 | <p>I've got a python package running in a container.</p>
<p>Is it best practice to install it in <code>/opt/myapp</code> within the container?</p>
<p>Should the logs go in <code>/var/opt/myapp</code>?</p>
<p>Should the config files go in <code>/etc/opt/myapp</code>?</p>
<p>Is anyone recommending writing logs and config... | [
{
"answer_id": 74421997,
"author": "JRichardsz",
"author_id": 3957754,
"author_profile": "https://Stackoverflow.com/users/3957754",
"pm_score": 0,
"selected": false,
"text": "import os\nprint(os.environ['DATABASE_PASSWORD'])\n docker run -it -p 8080:80 -e DATABASE_PASSWORD=changeme my_py... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7598461/"
] |
74,421,722 | <p>Dropdowns are useful, but they would be even more useful if the dropdown options could be formatted. For example, using bold or italic text for various selections, or changing the background color of other options on the dropdown display.</p>
<p>It's easy to have a cell formatting change according to the dropdown se... | [
{
"answer_id": 74421982,
"author": "Andrea Guerri",
"author_id": 13584834,
"author_profile": "https://Stackoverflow.com/users/13584834",
"pm_score": -1,
"selected": false,
"text": "function onEdit(e) {\nif(e.range.getRow()>1 && e.range.getColumn() ==5){\ne.source.getActiveRange()\n .setF... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421722",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10574914/"
] |
74,421,771 | <p>I have a Flutter app where users can predict the outcome of a soccer match. The problem is that if the user changes the time on their phone they can still predict even after it has ended. How do I prevent this so that it's independent of the time on each user's phone?
Thank you</p>
| [
{
"answer_id": 74421982,
"author": "Andrea Guerri",
"author_id": 13584834,
"author_profile": "https://Stackoverflow.com/users/13584834",
"pm_score": -1,
"selected": false,
"text": "function onEdit(e) {\nif(e.range.getRow()>1 && e.range.getColumn() ==5){\ne.source.getActiveRange()\n .setF... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421771",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11856923/"
] |
74,421,796 | <p>I am new to ruby and start learning ruby, and i came to this proc return concept where i completely confused how the proc is returning differently.</p>
<p>I am attaching my code here for the reference.
I did google search too but couldn't get my answer if anyone could help please.</p>
<pre><code>def call_proc
pu... | [
{
"answer_id": 74423268,
"author": "Jad",
"author_id": 2835151,
"author_profile": "https://Stackoverflow.com/users/2835151",
"pm_score": 1,
"selected": false,
"text": "Proc def call_proc\n my_proc = Proc.new { return 2 }\n\n puts \"Before proc\"\n my_proc.call\nputs \"After proc\"\nen... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20493155/"
] |
74,421,871 | <p>I am new in laravel and I try to make a it display on screen some information form my migration but it keeps giving me an error of undeclared variable in the "alunos" blade</p>
<p>this is my controller</p>
<pre><code><?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Al... | [
{
"answer_id": 74423268,
"author": "Jad",
"author_id": 2835151,
"author_profile": "https://Stackoverflow.com/users/2835151",
"pm_score": 1,
"selected": false,
"text": "Proc def call_proc\n my_proc = Proc.new { return 2 }\n\n puts \"Before proc\"\n my_proc.call\nputs \"After proc\"\nen... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20243847/"
] |
74,421,878 | <p>I am trying to deploy a blazor server template app on Nginx, but i'm stucked with this problem.
I tried everything that I could find online, but still the same error.</p>
<p>error.log
*36 upstream prematurely closed connection while reading response header from upstream, client:, server: , request: "GET / HTTP/... | [
{
"answer_id": 74423268,
"author": "Jad",
"author_id": 2835151,
"author_profile": "https://Stackoverflow.com/users/2835151",
"pm_score": 1,
"selected": false,
"text": "Proc def call_proc\n my_proc = Proc.new { return 2 }\n\n puts \"Before proc\"\n my_proc.call\nputs \"After proc\"\nen... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20493209/"
] |
74,421,884 | <p>I want to give the user an option to hide or show columns of Antd table via a group of checkboxes.
I tried different online solutions but I didn't succeed. I want something like this, as in the below picture.</p>
<p><strong>note:</strong> some columns has been checked by default, but user can also uncheck them</p>
<... | [
{
"answer_id": 74423311,
"author": "Muhammad Nouman Rafique",
"author_id": 19932999,
"author_profile": "https://Stackoverflow.com/users/19932999",
"pm_score": 0,
"selected": false,
"text": "Checkbox.Group import { useState } from 'react';\nimport { Checkbox, Table } from 'antd';\n\nconst... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8297544/"
] |
74,421,889 | <p>I have two json objects i am getting remotely and one is of this format</p>
<pre><code>{
"form": {
"mounted_language": "en",
"enctype": "multipart/form-data",
"hydration_url": "",
"post_destination": &... | [
{
"answer_id": 74422177,
"author": "Vivasvan Patel",
"author_id": 8926214,
"author_profile": "https://Stackoverflow.com/users/8926214",
"pm_score": 1,
"selected": false,
"text": "// for each object in the option's api response.\nfor (let i = 0; i < dt.data.length; ++i) {\n\n // extrac... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/492293/"
] |
74,421,892 | <p>I have two <code>ConstraintLayout</code>s split in half like this:</p>
<pre class="lang-xml prettyprint-override"><code><?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns... | [
{
"answer_id": 74422177,
"author": "Vivasvan Patel",
"author_id": 8926214,
"author_profile": "https://Stackoverflow.com/users/8926214",
"pm_score": 1,
"selected": false,
"text": "// for each object in the option's api response.\nfor (let i = 0; i < dt.data.length; ++i) {\n\n // extrac... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421892",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19576538/"
] |
74,421,894 | <p>I am very new to Kotlin and Android. I am trying to calculate the average of the values in my Array in the function "array" but i'm not very sure how to do it. I have created a function called "average" which I want to calculate the average of the array within. Any help would be very appreciated.... | [
{
"answer_id": 74422177,
"author": "Vivasvan Patel",
"author_id": 8926214,
"author_profile": "https://Stackoverflow.com/users/8926214",
"pm_score": 1,
"selected": false,
"text": "// for each object in the option's api response.\nfor (let i = 0; i < dt.data.length; ++i) {\n\n // extrac... | 2022/11/13 | [
"https://Stackoverflow.com/questions/74421894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19506039/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.