qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,617,819 | <p>This is a code that prompts the user for the amount of months they want to budget analyze, prompts for the budget the user has, prompts for how much the user spent that month, and then calculates if the user is over or under their budget. When code is run, it prompts user one twice, and then creates errors:</p>
<pre... | [
{
"answer_id": 74629506,
"author": "Gaz83",
"author_id": 1255136,
"author_profile": "https://Stackoverflow.com/users/1255136",
"pm_score": 0,
"selected": false,
"text": "string invite_policy = builder.Configuration.GetSection(\"AzureAdB2C\")[\"SignUpSignInPolicyId\"];\nbuilder.Services.A... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74617819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20391565/"
] |
74,617,836 | <p>I am getting the following warning:</p>
<p>warning: incompatible pointer types passing 'char (<em>)' to parameter of type 'char (</em>)[5]' [-Wincompatible-pointer-types]
printField(field[5]);</p>
<p>The printField function looks like this:</p>
<pre><code>void printField(char (*field)[5])
{
...
}
</code></pre>
<p>an... | [
{
"answer_id": 74617945,
"author": "Some programmer dude",
"author_id": 440558,
"author_profile": "https://Stackoverflow.com/users/440558",
"pm_score": 1,
"selected": false,
"text": "get_field char s[5];\n &a[0] &s &s[0] char * &s char (*)[5] field printField char * void printField(char ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74617836",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10795491/"
] |
74,617,838 | <p>I have a CSV file like this</p>
<pre><code>>cat test.in
1|aaa|bbb
1|ccc|ddd
2|xxx|yyy
2|www|zzz
2|www|ttt
</code></pre>
<p>and I want to split it in separate files:</p>
<ul>
<li>the naming convention should be <code>prefix.FIELD1.FIELD2.out</code></li>
<li>FIELD1 should not be in the output file</li>
<li>every ou... | [
{
"answer_id": 74619508,
"author": "Paul Hodges",
"author_id": 8656552,
"author_profile": "https://Stackoverflow.com/users/8656552",
"pm_score": 1,
"selected": false,
"text": "for filename in $(ls prefix.*.out 2>/dev/null)\n for filename in prefix.*.out\n awk $: awk -v sep='|' 'BEGIN{FS... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74617838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12479265/"
] |
74,617,865 | <p>I am trying to upload a file to S3 using apps script.</p>
<p>I have been trying to use <a href="https://github.com/viuinsight/google-apps-script-for-aws" rel="nofollow noreferrer">https://github.com/viuinsight/google-apps-script-for-aws</a></p>
<pre><code>S3.init();
S3.putObject("bucket123", 'Tacofile.txt'... | [
{
"answer_id": 74619508,
"author": "Paul Hodges",
"author_id": 8656552,
"author_profile": "https://Stackoverflow.com/users/8656552",
"pm_score": 1,
"selected": false,
"text": "for filename in $(ls prefix.*.out 2>/dev/null)\n for filename in prefix.*.out\n awk $: awk -v sep='|' 'BEGIN{FS... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74617865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10409118/"
] |
74,617,957 | <p>If I have two different JavaScript files in the HTML document. Is it possible to toggle between them according to the screen size?</p>
<p>This means script1 is turned off in desktop, script2 is on. On the smartphone, at for example 850px, script2 turns on and script1 off.</p>
<pre><code>script src="script1"... | [
{
"answer_id": 74617999,
"author": "haduki",
"author_id": 18229792,
"author_profile": "https://Stackoverflow.com/users/18229792",
"pm_score": 1,
"selected": false,
"text": "<script>\nif (screen.width > 500) {\n var head = document.getElementsByTagName('head')[0];\n var script = doc... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74617957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20554918/"
] |
74,617,963 | <p>I'm trying to make a logo portfolio carousel that scrolls horizontally in an infinite way.</p>
<p>I almost have it done, but it will break the animation and not be seamless. I need it to be really an infinite animation with no breaks.</p>
<p><a href="https://jsfiddle.net/nha3grjL/#&togetherjs=sy1LFN4qOJ" rel="no... | [
{
"answer_id": 74618135,
"author": "A Haworth",
"author_id": 10867454,
"author_profile": "https://Stackoverflow.com/users/10867454",
"pm_score": 3,
"selected": true,
"text": "body {\n margin: 0;\n}\n\n.scroll {\n position: relative;\n width: 100vw;\n background-color: $boxify-bg-ligh... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74617963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3074558/"
] |
74,617,982 | <p>This is my code:</p>
<pre><code>mapping = {"ISTJ":1, "ISTP":2, "ISFJ":3, "ISFP":4, "INFP":6, "INTJ":7, "INTP":8, "ESTP":9, "ESTJ":10, "ESFP":11, "ESFJ":12, "ENFP":13, "ENFJ":14, "ENT... | [
{
"answer_id": 74618135,
"author": "A Haworth",
"author_id": 10867454,
"author_profile": "https://Stackoverflow.com/users/10867454",
"pm_score": 3,
"selected": true,
"text": "body {\n margin: 0;\n}\n\n.scroll {\n position: relative;\n width: 100vw;\n background-color: $boxify-bg-ligh... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74617982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17113383/"
] |
74,618,024 | <p>Initially, I have this dataframe:</p>
<p><a href="https://i.stack.imgur.com/HcU9q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HcU9q.png" alt="dataframe 1" /></a></p>
<p>I save this as a csv file by using:</p>
<p><code>df.to_csv('Frequency.csv')</code></p>
<p>The problem lies with when I try to... | [
{
"answer_id": 74618130,
"author": "unltd_J",
"author_id": 13063755,
"author_profile": "https://Stackoverflow.com/users/13063755",
"pm_score": 0,
"selected": false,
"text": "df.to_csv('Frequency.csv', index=False)\n"
},
{
"answer_id": 74618170,
"author": "Ayush Raj",
"aut... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618024",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7081354/"
] |
74,618,038 | <p>Im expecting to get the value of the pointer that pp is pointing to</p>
<p>this is my struct</p>
<pre><code>struct game
{
int rank;
int year;
char *name;
char *platform;
char *genre;
char *publisher;
// sales below represented in millions
float NA_sales;
float EU_sales;
float... | [
{
"answer_id": 74618130,
"author": "unltd_J",
"author_id": 13063755,
"author_profile": "https://Stackoverflow.com/users/13063755",
"pm_score": 0,
"selected": false,
"text": "df.to_csv('Frequency.csv', index=False)\n"
},
{
"answer_id": 74618170,
"author": "Ayush Raj",
"aut... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20636016/"
] |
74,618,047 | <p>I am modifying some JSP files, and every time I upload a new version, if people don't update the cache, the styles are not rendered as they should be; it is looking not good and without styles applied.</p>
<p>To solve this problem, I have followed an example from Stack Overflow that adds a numeric value to the CSS f... | [
{
"answer_id": 74618130,
"author": "unltd_J",
"author_id": 13063755,
"author_profile": "https://Stackoverflow.com/users/13063755",
"pm_score": 0,
"selected": false,
"text": "df.to_csv('Frequency.csv', index=False)\n"
},
{
"answer_id": 74618170,
"author": "Ayush Raj",
"aut... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13594702/"
] |
74,618,054 | <p>I'm trying to create a grouping using multiple window function on SQL, the objective is to discern between different groups if there are some other groups in the middle. see below table</p>
<pre><code>Part | time | expected result |
a | 11-29-2022 00:05:00.000 | 1 |
a | 11-29-... | [
{
"answer_id": 74618154,
"author": "Learn Hadoop",
"author_id": 8726488,
"author_profile": "https://Stackoverflow.com/users/8726488",
"pm_score": 0,
"selected": false,
"text": "Select part, time, dense_rank() over(Partition by Part ) \n Select part, time, dense_rank() over(Partition by P... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618054",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7293251/"
] |
74,618,062 | <p>Is there a way to execute SQL Query on Databricks SQL Warehouse using Rest API?</p>
<p>I can see in the documentation that there are APIs to create a qery but don't see any api to run an query.</p>
| [
{
"answer_id": 74618154,
"author": "Learn Hadoop",
"author_id": 8726488,
"author_profile": "https://Stackoverflow.com/users/8726488",
"pm_score": 0,
"selected": false,
"text": "Select part, time, dense_rank() over(Partition by Part ) \n Select part, time, dense_rank() over(Partition by P... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14430564/"
] |
74,618,069 | <p>I have an application that runs fine in AWS App Runner and can be found here: <a href="https://iyarles.net" rel="nofollow noreferrer">https://iyarles.net</a></p>
<p>However, it's not accessible via the naked domain name iyarles.net.
Clarification comment: If I goto iyarles.net in my browser (edge), the request times... | [
{
"answer_id": 74618228,
"author": "Quentin",
"author_id": 19068,
"author_profile": "https://Stackoverflow.com/users/19068",
"pm_score": 2,
"selected": true,
"text": "https: http://iyarles.net"
}
] | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618069",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13101880/"
] |
74,618,104 | <p>So I have the following tables (simplified here):</p>
<p>this is Ost_data</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Raumeinheit</th>
<th>Langzeitarbeitslose</th>
</tr>
</thead>
<tbody>
<tr>
<td>Hamburg</td>
<td>22</td>
</tr>
<tr>
<td>Koln</td>
<td>45</td>
</tr>
</tbody>
</table>
</... | [
{
"answer_id": 74618228,
"author": "Quentin",
"author_id": 19068,
"author_profile": "https://Stackoverflow.com/users/19068",
"pm_score": 2,
"selected": true,
"text": "https: http://iyarles.net"
}
] | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618104",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20575692/"
] |
74,618,111 | <p>I have a pipeline in Azure Data Factory to take in incoming CSV files and save them to SQL server database, and I use a copy activity to take the wrangled CSV file and call a stored procedure to save it the data base table.</p>
<p>However, it is not unusual that some records in the CSV file have missing value at som... | [
{
"answer_id": 74618228,
"author": "Quentin",
"author_id": 19068,
"author_profile": "https://Stackoverflow.com/users/19068",
"pm_score": 2,
"selected": true,
"text": "https: http://iyarles.net"
}
] | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7734596/"
] |
74,618,115 | <p>I have a date/time string variable that looks like this:</p>
<pre><code>> dput(df$starttime)
c("12/16/20 7:24", "6/21/21 13:20", "1/22/20 9:03", "1/07/20 17:19",
"11/8/21 10:14", NA, NA, "10/26/21 7:19", "3/14/22 9:48", "5/12/22 13:29&quo... | [
{
"answer_id": 74618228,
"author": "Quentin",
"author_id": 19068,
"author_profile": "https://Stackoverflow.com/users/19068",
"pm_score": 2,
"selected": true,
"text": "https: http://iyarles.net"
}
] | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20152268/"
] |
74,618,168 | <p>I have just starting learning python and as I creating this program, which asks user to input two numbers, which then adds them to together using a simple <code>if-elif-else </code> statement, however the else part of the code just seems to not work if, an user types out the six, for example, in words instead of t... | [
{
"answer_id": 74618422,
"author": "He1senberg_10",
"author_id": 16262060,
"author_profile": "https://Stackoverflow.com/users/16262060",
"pm_score": 1,
"selected": false,
"text": "try:\n num_1 = int(input(\"Enter the first number: \"))\n num_2 = int(input(\"Enter the second number:... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17851996/"
] |
74,618,182 | <p>I learnt, the <strong>parquet file format</strong> stores a bunch of metadata and uses various compressions to store data in an efficient way, when it comes to size and query-speed.</p>
<p>And it possibly generates multiple files out of, let's say: one input, like from a Panda dataframe.</p>
<p>Now, I have a <strong... | [
{
"answer_id": 74645490,
"author": "Michael Delgado",
"author_id": 3888719,
"author_profile": "https://Stackoverflow.com/users/3888719",
"pm_score": 1,
"selected": false,
"text": "dask.dataframe dask.dataframe.read_csv import dask.dataframe\n\n# here, the block size will determine the pa... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/132396/"
] |
74,618,192 | <p>I'm making a method called fillList. The method will require an arrayList in order to work and the output will be void.
What the method is supposed to do is to fill the gaps between the numbers of the List.</p>
<p>Example:</p>
<p>Input:</p>
<pre><code>4 8 5 9
</code></pre>
<p>Output:</p>
<pre><code>4 5 6 7 8 7 6 5 6... | [
{
"answer_id": 74618385,
"author": "Alexander Ivanchenko",
"author_id": 17949945,
"author_profile": "https://Stackoverflow.com/users/17949945",
"pm_score": 3,
"selected": true,
"text": "List.add(int index, E element) 1 left + 1 1 left - 1 public static void fillList(List<Integer> list) {... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20187389/"
] |
74,618,194 | <p>So this is in german, but I have to write a function in C but it does not work out. Can you tell me where my mistake is?</p>
<p>The task is the one Iam writing down now.</p>
<p>Write a function "time_converter( )" which converts the time from one unit to another. The function is passed the case (i.e. which... | [
{
"answer_id": 74618385,
"author": "Alexander Ivanchenko",
"author_id": 17949945,
"author_profile": "https://Stackoverflow.com/users/17949945",
"pm_score": 3,
"selected": true,
"text": "List.add(int index, E element) 1 left + 1 1 left - 1 public static void fillList(List<Integer> list) {... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20636420/"
] |
74,618,203 | <p>I am trying to execute my databricks note book and linked service as execution Pool type of connection, also I have upload the Append libraries option for wheel format library in ADF but unable to execute our notebook via ADF and getting below error.</p>
<p>Run result unavailable: job failed with error message Libra... | [
{
"answer_id": 74618385,
"author": "Alexander Ivanchenko",
"author_id": 17949945,
"author_profile": "https://Stackoverflow.com/users/17949945",
"pm_score": 3,
"selected": true,
"text": "List.add(int index, E element) 1 left + 1 1 left - 1 public static void fillList(List<Integer> list) {... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2878290/"
] |
74,618,241 | <p>I have seen a lot of posts suggesting that private fields ought to be accessible from outside via properties (or at least get/set methods).
I wonder are there any cases in which we should access our private fields inside the class by properties as well? Or should we just interact with our private fields directly thi... | [
{
"answer_id": 74618385,
"author": "Alexander Ivanchenko",
"author_id": 17949945,
"author_profile": "https://Stackoverflow.com/users/17949945",
"pm_score": 3,
"selected": true,
"text": "List.add(int index, E element) 1 left + 1 1 left - 1 public static void fillList(List<Integer> list) {... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618241",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19830764/"
] |
74,618,270 | <p>I'm trying to make an object with a property that depends of another property.</p>
<p>This is a very simplified example of what i tried so far.<br />
I expected <code>T</code> to be infered from <code>name</code>. <code>value</code> should then be limited to the valid value in <code>TypeA</code>.</p>
<pre><code>type... | [
{
"answer_id": 74618385,
"author": "Alexander Ivanchenko",
"author_id": 17949945,
"author_profile": "https://Stackoverflow.com/users/17949945",
"pm_score": 3,
"selected": true,
"text": "List.add(int index, E element) 1 left + 1 1 left - 1 public static void fillList(List<Integer> list) {... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1163673/"
] |
74,618,271 | <pre><code><body>
<h1>Insert here:</h1>
<button>Try</button>
<input name='myName' type="text">
<h2>No one here</h2>
<script>
let button = document.querySelector('button');
let h2 = document.querySelector('h2');
... | [
{
"answer_id": 74618327,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": " button.addEventListener('click', ()=>{\n sayHi(myName.value);\n sayHi();//this will invoke default p... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8272374/"
] |
74,618,291 | <p>I'd like to create a namespace in c# that can be found in any project. Not just the one that it is located in. like the system namespace. Is that possible and if yes I'd like to know how.
I already googled and didn't find anything</p>
| [
{
"answer_id": 74618470,
"author": "StriplingWarrior",
"author_id": 120955,
"author_profile": "https://Stackoverflow.com/users/120955",
"pm_score": 0,
"selected": false,
"text": "System System.String IObservable<> using"
}
] | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19217076/"
] |
74,618,312 | <p>When converting from double to a string using [string], strange rounding behavior seems to occur in PowerShell 5.1.</p>
<p>Converting 0.114338713266919499 to a string becomes 0.11433871326919, indicating that it rounds the ...499 down to zero and truncates. This behavior doesn't seem to match rounding in C# , so I a... | [
{
"answer_id": 74618545,
"author": "MD Zand",
"author_id": 5118861,
"author_profile": "https://Stackoverflow.com/users/5118861",
"pm_score": 1,
"selected": true,
"text": "double myVar = 22.3;\nConsole.WriteLine((myVar + .1) == 22.4);\n 22.3"
},
{
"answer_id": 74622402,
"autho... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19034611/"
] |
74,618,335 | <p>I am looking for a regex or a regex flag in python/BigQuery that enables me to find overlapping occurrences.</p>
<p>For example, I have the string <code>1.2.5.6.8.10.12</code></p>
<p>and I would like to extract:
<code>[1., 1.2., 1.2.5., 1.2.5.6., ..., 1.2.5.6.8.10.12]</code></p>
<p>I tried running the python code
<c... | [
{
"answer_id": 74618545,
"author": "MD Zand",
"author_id": 5118861,
"author_profile": "https://Stackoverflow.com/users/5118861",
"pm_score": 1,
"selected": true,
"text": "double myVar = 22.3;\nConsole.WriteLine((myVar + .1) == 22.4);\n 22.3"
},
{
"answer_id": 74622402,
"autho... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11946953/"
] |
74,618,349 | <pre><code>let f x =
match x with
((2, 4)::xr) -> 42
| [(1, y); (_, 3); (_, 4)] -> 5
| [(x, _); (u, w)] -> u + x
| [(44, 11); (12, 3)] -> 42
| (x::xr) -> fst (hd xr)
</code></pre>
<p>I've tried running <code>f[(2, 4)]</code> for example.</p>
<p... | [
{
"answer_id": 74618479,
"author": "Jeffrey Scofield",
"author_id": 821679,
"author_profile": "https://Stackoverflow.com/users/821679",
"pm_score": 2,
"selected": false,
"text": "hd List List.hd hd # hd;;\nError: Unbound value hd\n# List.hd;;\n- : 'a list -> 'a = <fun>\n# \n"
},
{
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15131002/"
] |
74,618,389 | <p>I would like to assign each unique combination of variables a value and list those values in a new column called ID, as shown below. For example I would like patients who are Ta cancer, N0 lymph, and 1 immunotherapy ID'd as 1. Patients who are TA, NX, and 1 as ID 2 and so on... Below is a table of what the data look... | [
{
"answer_id": 74618462,
"author": "Jon Spring",
"author_id": 6851825,
"author_profile": "https://Stackoverflow.com/users/6851825",
"pm_score": 0,
"selected": false,
"text": "library(dplyr)\ndf %>%\n group_by(Cancer, Lymph, Immunotherapy) %>%\n mutate(ID = cur_group_id()) %>%\n ungrou... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20636182/"
] |
74,618,396 | <p>I'm trying to write this in C#. The requirement is very straightforward - check if a string input is a value within the range from 0 to 100.</p>
<ol>
<li>I want to make sure the string is either an integer value in the range of 0 to 100 or</li>
<li>a double that's within the same range as well.</li>
</ol>
<p>So for ... | [
{
"answer_id": 74618581,
"author": "Charles Yang",
"author_id": 13101880,
"author_profile": "https://Stackoverflow.com/users/13101880",
"pm_score": 3,
"selected": true,
"text": "// C# function to check if string is a percentage between 0 and 100\npublic static bool IsPercentage(string s)... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9010054/"
] |
74,618,404 | <p>script will need to check if aaa-new-ui-dev and bbb-java-new-ui-dev namespace exist - and if it exists - it needs to delete them and wait until delete operation is complete</p>
<p>I am trying to create a shell script which check if namespace is exist and if it exists then it should delete the kubectl namespace.</p>
| [
{
"answer_id": 74619191,
"author": "Justin Pierce",
"author_id": 6431503,
"author_profile": "https://Stackoverflow.com/users/6431503",
"pm_score": 3,
"selected": true,
"text": "# For each namespace to delete.\nfor ns in aaa-new-ui-dev bbb-java-new-ui-dev ; do \n # If 'get' returns 0, th... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5232420/"
] |
74,618,408 | <p>How can set the filename to today's date?</p>
<pre class="lang-js prettyprint-override"><code>$("#download").on("click", function() {
html2canvas(document.querySelector("#to_save")).then(canvas => {
canvas.toBlob(function(blob) {
window.saveAs(blob, #);
});
});
});
... | [
{
"answer_id": 74619191,
"author": "Justin Pierce",
"author_id": 6431503,
"author_profile": "https://Stackoverflow.com/users/6431503",
"pm_score": 3,
"selected": true,
"text": "# For each namespace to delete.\nfor ns in aaa-new-ui-dev bbb-java-new-ui-dev ; do \n # If 'get' returns 0, th... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618408",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20636416/"
] |
74,618,424 | <p>I am a beginner, and I was working on a simple credit program. I want it to work so every time I add an input of a number it gets stored in a variable that shows my total balance. The problem right now is that the program is only a one use program so the input i enter does not get saved into a variable so that when ... | [
{
"answer_id": 74618496,
"author": "Charles Yang",
"author_id": 13101880,
"author_profile": "https://Stackoverflow.com/users/13101880",
"pm_score": 0,
"selected": false,
"text": "credit_balance = 0\ncredit_limit = 2000\n\nwhile True:\n purchase = int(input(\"How much was your purchase... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16467204/"
] |
74,618,430 | <p>I keep getting this error when I try to create new react app:</p>
<p><a href="https://i.stack.imgur.com/gjRQE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gjRQE.png" alt="enter image description here" /></a></p>
<p>Although I have latest Node and NPM I keep getting this error when I try to inst... | [
{
"answer_id": 74618674,
"author": "DᴀʀᴛʜVᴀᴅᴇʀ",
"author_id": 1952287,
"author_profile": "https://Stackoverflow.com/users/1952287",
"pm_score": 0,
"selected": false,
"text": "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash\n export NVM_DIR=\"$([ -z \"${XDG... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8331346/"
] |
74,618,456 | <p>Can I use tuples when writing to a csv file?</p>
<p>I am trying to reduce memory footprint by using tuple instead of a class instance.</p>
<p>The documentation does mention dynamic and anonymous types; but I don't see for value tuple. Also, how do I handle headers and custom formatting?</p>
| [
{
"answer_id": 74618674,
"author": "DᴀʀᴛʜVᴀᴅᴇʀ",
"author_id": 1952287,
"author_profile": "https://Stackoverflow.com/users/1952287",
"pm_score": 0,
"selected": false,
"text": "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash\n export NVM_DIR=\"$([ -z \"${XDG... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2896780/"
] |
74,618,474 | <p>I want to describe a network graph of vertices and edges with JSON Schema.</p>
<p>An example JSON could look like this:</p>
<pre class="lang-json prettyprint-override"><code>{
"V": [
"1",
"2",
"3"
],
"E": [
{
"v1": "1",... | [
{
"answer_id": 74618674,
"author": "DᴀʀᴛʜVᴀᴅᴇʀ",
"author_id": 1952287,
"author_profile": "https://Stackoverflow.com/users/1952287",
"pm_score": 0,
"selected": false,
"text": "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash\n export NVM_DIR=\"$([ -z \"${XDG... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6843456/"
] |
74,618,487 | <ol>
<li>Why pointer to custom struct doesn't work in that code?</li>
<li>Why I'm getting warning in that line with p->x = x?</li>
<li>Why I'm getting second warning in line with strcpy_s?</li>
</ol>
<pre><code>#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
ty... | [
{
"answer_id": 74618869,
"author": "Oka",
"author_id": 2505965,
"author_profile": "https://Stackoverflow.com/users/2505965",
"pm_score": 2,
"selected": true,
"text": "add p add malloc p main int int * void change(int *val)\n{ \n *val = 10;\n} \n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12726204/"
] |
74,618,512 | <p>I have a dataframe with stores and its invoices numbers and I need to find the missing consecutive invoices numbers per Store, for example:</p>
<pre><code>df1 = pd.DataFrame()
df1['Store'] = ['A','A','A','A','A','B','B','B','B','C','C','C','D','D']
df1['Invoice'] = ['1','2','5','6','8','20','23','24','30','200','202... | [
{
"answer_id": 74618770,
"author": "Ben Grossmann",
"author_id": 2476977,
"author_profile": "https://Stackoverflow.com/users/2476977",
"pm_score": 1,
"selected": false,
"text": "import pandas as pd\nimport numpy as np\n\ndf1 = pd.DataFrame()\ndf1['Store'] = ['A','A','A','A','A','B','B','... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15887213/"
] |
74,618,535 | <p>I have a form that takes file uploads and it currently has a limit of 10 files per upload. There are PHP validations in the backend for this too.</p>
<p>When more than 10 files are attached, I currently have a JavaScript <code>slice(0, 10)</code> method inside a <code>change</code> event for the file input element, ... | [
{
"answer_id": 74618770,
"author": "Ben Grossmann",
"author_id": 2476977,
"author_profile": "https://Stackoverflow.com/users/2476977",
"pm_score": 1,
"selected": false,
"text": "import pandas as pd\nimport numpy as np\n\ndf1 = pd.DataFrame()\ndf1['Store'] = ['A','A','A','A','A','B','B','... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19208136/"
] |
74,618,551 | <p>I want to apply a custom function to every column of <code>df</code> and assign the value that function returns to a new column in that dataframe.
My function takes a vector of values from chosen columns (in my case values from columns 12:17 will be used), and returns a calculated value (diversity index).
The functi... | [
{
"answer_id": 74618770,
"author": "Ben Grossmann",
"author_id": 2476977,
"author_profile": "https://Stackoverflow.com/users/2476977",
"pm_score": 1,
"selected": false,
"text": "import pandas as pd\nimport numpy as np\n\ndf1 = pd.DataFrame()\ndf1['Store'] = ['A','A','A','A','A','B','B','... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13221062/"
] |
74,618,594 | <p>I am new to ReactJS and pairing it with Material UI is really causing me some roadblocks. I have created a reusable search filter component for my data tables and it worked exactly the way I wanted, but now I want to add a button to clear the field and show the unfiltered results, as well as return the InputSearch ... | [
{
"answer_id": 74618770,
"author": "Ben Grossmann",
"author_id": 2476977,
"author_profile": "https://Stackoverflow.com/users/2476977",
"pm_score": 1,
"selected": false,
"text": "import pandas as pd\nimport numpy as np\n\ndf1 = pd.DataFrame()\ndf1['Store'] = ['A','A','A','A','A','B','B','... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10982789/"
] |
74,618,601 | <p>I have a probem with typing this line of code initialState[a][b].</p>
<p>I got this error:</p>
<p>Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ food: { pizza: boolean; chicken: boolean; }; transport: { bus: boolean; car: boolean; }; }'</p>
<pre><code>function... | [
{
"answer_id": 74618653,
"author": "OTMANƏ EL",
"author_id": 15025720,
"author_profile": "https://Stackoverflow.com/users/15025720",
"pm_score": 1,
"selected": false,
"text": "function testTypescript(a: string, b: string) {\n const initialState: { [a: string]: { [b: string]: boolean; ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17194532/"
] |
74,618,655 | <p>I'm using a while to try to show all the rows in the database table that contain the card number equal to the one entered, it's not working, it's just reading the first line.</p>
<pre><code>private static string getExtrato(string query)
{
using (var cn = new SqlConnection("Data Source=MAD-PC-023\\SQLEXPRESS... | [
{
"answer_id": 74618768,
"author": "David",
"author_id": 328193,
"author_profile": "https://Stackoverflow.com/users/328193",
"pm_score": 3,
"selected": true,
"text": "private static string getExtrato(string query)\n private static IEnumerable<string> getExtrato(string query)\n var result... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20571251/"
] |
74,618,656 | <p>I'm trying to handle CORS issue and add necessary strings to respond's headers:
`</p>
<pre><code>var express = require('express');
const app = express();
var router = express.Router();
router.options('/*', function(req, res, next){
app.use(function(req, res, next) {
res.header("Access-Control-Allow-Origi... | [
{
"answer_id": 74618768,
"author": "David",
"author_id": 328193,
"author_profile": "https://Stackoverflow.com/users/328193",
"pm_score": 3,
"selected": true,
"text": "private static string getExtrato(string query)\n private static IEnumerable<string> getExtrato(string query)\n var result... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20242821/"
] |
74,618,661 | <p>I want to add and remove items in MutableLiveData<ArrayList<String>>. Adding items to the list is working fine and UI is also updating. But removal from array list is not working properly.</p>
<pre><code>@HiltViewModel
class SecondViewModel @Inject constructor() : ViewModel() {
private var _language... | [
{
"answer_id": 74618768,
"author": "David",
"author_id": 328193,
"author_profile": "https://Stackoverflow.com/users/328193",
"pm_score": 3,
"selected": true,
"text": "private static string getExtrato(string query)\n private static IEnumerable<string> getExtrato(string query)\n var result... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14861313/"
] |
74,618,694 | <p>I am hiding and showing forms through Form Collection as a user timeout feature and need to call a public method in each form as I am showing it again to update the form with the logged in user (in the event it changes).</p>
<p>I am, however, having issue with this as it does not seem that I am able to do this direc... | [
{
"answer_id": 74620991,
"author": "Jonathan Barraone",
"author_id": 17957703,
"author_profile": "https://Stackoverflow.com/users/17957703",
"pm_score": -1,
"selected": false,
"text": "UpdateUser FormCollection fc = Application.OpenForms;\n\nforeach (dynamic frm in fc)\n{\n if (frm.Na... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10609304/"
] |
74,618,698 | <p>According to <a href="https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/using-statement#remarks" rel="nofollow noreferrer">MSDN</a> and <a href="https://stackoverflow.com/a/278924">this accepted answer</a>,</p>
<pre><code>using (T resource = expression)
embedded-statement
</code></pre>
... | [
{
"answer_id": 74618739,
"author": "Olivier Jacot-Descombes",
"author_id": 880990,
"author_profile": "https://Stackoverflow.com/users/880990",
"pm_score": 0,
"selected": false,
"text": "class Resource : IDisposable\n{\n public void Dispose()\n {\n Console.WriteLine(\"disposi... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2930744/"
] |
74,618,712 | <p>I want to read the data on an excel file within a F drive. I am using python on Visual Studio Code to try achieve this however I am getting an error as seen in the pictures below. I installed pandas but I still get an error. How can I fix this issue?</p>
<p><a href="https://i.stack.imgur.com/XFyH4.png" rel="nofollow... | [
{
"answer_id": 74618732,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "pip freeze pip3 freeze"
}
] | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618712",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20636206/"
] |
74,618,714 | <p>I'm trying to create a program that reads some string, but when I test a very long string, an overflow occurs, and all the solutions I've already seen do not work. The following code is:</p>
<pre><code>#include <stdio.h>
int main()
{
char nome[201] = {0};
char cpf[15] = {0};
char senha[101] = {0};... | [
{
"answer_id": 74618812,
"author": "Silvio Mayolo",
"author_id": 2288659,
"author_profile": "https://Stackoverflow.com/users/2288659",
"pm_score": 2,
"selected": false,
"text": "std::getline scanf(\"%200s%*[^\\n]\", nome);\n * [^\\n]"
},
{
"answer_id": 74619351,
"author": "An... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10912555/"
] |
74,618,724 | <p>I'm trying to define an array and add elements to it, but there's a problem with that</p>
<pre><code> $prodectsum = array();
</code></pre>
<pre><code> $prodectsum->push((object)['name' => 'mmm', 'color' => 'red']);
</code></pre>
<p>Define an array in Laravel</p>
| [
{
"answer_id": 74619779,
"author": "Christopher Furman",
"author_id": 10287952,
"author_profile": "https://Stackoverflow.com/users/10287952",
"pm_score": 0,
"selected": false,
"text": "$newArray = array()\n$newArray[] = $someObject;\n"
}
] | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18505964/"
] |
74,618,748 | <p>So basically when I try to log a user in and I type the password or username wrong and then I try to log in with correct credentials I get this error.</p>
<pre><code>Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at new NodeError (node:internal/errors:371:5)
at ServerResp... | [
{
"answer_id": 74618808,
"author": "Guss",
"author_id": 53538,
"author_profile": "https://Stackoverflow.com/users/53538",
"pm_score": 1,
"selected": false,
"text": "res.status(code).json(content)"
},
{
"answer_id": 74619008,
"author": "derpirscher",
"author_id": 3776927,
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17933699/"
] |
74,618,753 | <pre><code>builder: (context, state) {
if(state.status == RecievingState.success && state.userData != null){
return Column(
children: [ Vibration.vibrate(); //error
],)
},
}
</code></pre>
<p>as soon as the data is changed from API. I want t... | [
{
"answer_id": 74618844,
"author": "sasikumar",
"author_id": 3710865,
"author_profile": "https://Stackoverflow.com/users/3710865",
"pm_score": 0,
"selected": false,
"text": "Column(\nchildren: <Widget>[\nconst Text('hello'),\nconst Text('world'),\n] )\n"
},
{
"answer_id": 7461891... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20637078/"
] |
74,618,779 | <p>I have two arrays as follows,</p>
<p><strong>columnNames</strong> = ['KEY_ID', 'SOURCE_ID', 'MTNAME', 'MTNO', 'PLANTS']</p>
<p><strong>columnValues</strong> = [{col0:"719801", col1: "4198", col2: "010", col3: "200887", col4: "6LLA"},
{col0:"719901", col1: &... | [
{
"answer_id": 74618916,
"author": "mplungjan",
"author_id": 295783,
"author_profile": "https://Stackoverflow.com/users/295783",
"pm_score": 0,
"selected": false,
"text": "const columnNames = ['KEY_ID', 'SOURCE_ID', 'MTNAME', 'MTNO', 'PLANTS'],\ncolumnValues = {col0:\"719801\", col1: \"4... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1367592/"
] |
74,618,800 | <p>For each variable in var1, I want its interaction with each variable in var2. In Stata, I can simply use a nested foreach loop to do this but I am not able to replicate the logic in R.</p>
<p>Stata code:</p>
<pre><code>foreach var1 in
gdp_g gdp_g_l GPCP_g GPCP_g_l
{;
foreach var2 in
polity2l y_0 ethfrac Oil ... | [
{
"answer_id": 74618916,
"author": "mplungjan",
"author_id": 295783,
"author_profile": "https://Stackoverflow.com/users/295783",
"pm_score": 0,
"selected": false,
"text": "const columnNames = ['KEY_ID', 'SOURCE_ID', 'MTNAME', 'MTNO', 'PLANTS'],\ncolumnValues = {col0:\"719801\", col1: \"4... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618800",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13416745/"
] |
74,618,838 | <p>So I admit, I am a complete noob with bash scripting and this assignment is completely dominating me. It is stated above. I believe I managed to figure out the first part in regard to the user input, printing out the amount of terms, and carrying out the correct operation. However, feel free to make suggestions if y... | [
{
"answer_id": 74620056,
"author": "Eric Marceau",
"author_id": 9716110,
"author_profile": "https://Stackoverflow.com/users/9716110",
"pm_score": 1,
"selected": false,
"text": "a=\"\"\nwhile [ -z \"${a}\" ]\ndo\n echo \"\"\n read -p \"Please provide value to a => \" a\n if [ -n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20392134/"
] |
74,618,850 | <p>It has been a ling time since i have had to code.</p>
<p>My situation is, i need to make a button that open an HTML file that I have located on my website. The HTML file is a interactive course that will open in a new window.</p>
<p>I have tried <code><a href="home/file.html" target="_blank"&g... | [
{
"answer_id": 74620056,
"author": "Eric Marceau",
"author_id": 9716110,
"author_profile": "https://Stackoverflow.com/users/9716110",
"pm_score": 1,
"selected": false,
"text": "a=\"\"\nwhile [ -z \"${a}\" ]\ndo\n echo \"\"\n read -p \"Please provide value to a => \" a\n if [ -n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20637193/"
] |
74,618,862 | <p>the content of the table is this
<a href="https://i.stack.imgur.com/dGZI8.jpg" rel="nofollow noreferrer">enter image description here</a></p>
<pre><code>@section scripts{
<script>
function adddata() {
$.ajax({
type: "POST",
... | [
{
"answer_id": 74620056,
"author": "Eric Marceau",
"author_id": 9716110,
"author_profile": "https://Stackoverflow.com/users/9716110",
"pm_score": 1,
"selected": false,
"text": "a=\"\"\nwhile [ -z \"${a}\" ]\ndo\n echo \"\"\n read -p \"Please provide value to a => \" a\n if [ -n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20007897/"
] |
74,618,868 | <p>I have an application, in which the Frontend is through Vue and the backend is FastAPI, the communication is done through websocket.</p>
<p>Currently, the frontend allows the user to enter a term, which is sent to the backend to generate the autocomplete and also perform a search on a URL that returns a json. In whi... | [
{
"answer_id": 74619411,
"author": "Charles Yang",
"author_id": 13101880,
"author_profile": "https://Stackoverflow.com/users/13101880",
"pm_score": 0,
"selected": false,
"text": "json.dumps(mydata)"
},
{
"answer_id": 74639030,
"author": "Chris",
"author_id": 17865804,
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13728565/"
] |
74,618,895 | <p>Is it possible to loop 1, 4, 7, 10 sequence directly in ngFor from an array?</p>
<p>I tried in ts like regular for loop with i+=3. But need 1,4,7,10 pattern directly in ngFor without a loop in ts file.</p>
| [
{
"answer_id": 74619084,
"author": "Crystal Campbell",
"author_id": 19246117,
"author_profile": "https://Stackoverflow.com/users/19246117",
"pm_score": 1,
"selected": false,
"text": " <div *ngFor=\"item in itemlist, let i = index\">\n <div *ngIf=\"i % 3 === 0\">\n{{item}}\n </di... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20637255/"
] |
74,618,899 | <p>The following object contains a list of recipients and subscriptions, I wish to create a new array with a different structure such as below.</p>
<blockquote>
<p>[{"recipientId":"13251376",
"services":"3218143,15656200,3721"},{"recipientId":"13251316",
"... | [
{
"answer_id": 74619084,
"author": "Crystal Campbell",
"author_id": 19246117,
"author_profile": "https://Stackoverflow.com/users/19246117",
"pm_score": 1,
"selected": false,
"text": " <div *ngFor=\"item in itemlist, let i = index\">\n <div *ngIf=\"i % 3 === 0\">\n{{item}}\n </di... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1206087/"
] |
74,618,920 | <p>I have been trying all day to change the color but it's not working properly.
The color change but the icon is replaced with a square with an X in it.</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-cs... | [
{
"answer_id": 74619084,
"author": "Crystal Campbell",
"author_id": 19246117,
"author_profile": "https://Stackoverflow.com/users/19246117",
"pm_score": 1,
"selected": false,
"text": " <div *ngFor=\"item in itemlist, let i = index\">\n <div *ngIf=\"i % 3 === 0\">\n{{item}}\n </di... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20637200/"
] |
74,618,937 | <p>Im interested in replacing all of my rows in an MxN matrix with values from 1 to N.</p>
<p>For example:
[[4,6,8,9,3],[5,1,2,5,6],[1,9,4,5,7],[3,8,8,2,5],[1,4,2,2,7]]</p>
<p>To:
[[1,2,3,4,5],[1,2,3,4,5],[1,2,3,4,5],[1,2,3,4,5],[1,2,3,4,5]]</p>
<p>I've tried using loops going through each row individually but struggle... | [
{
"answer_id": 74619084,
"author": "Crystal Campbell",
"author_id": 19246117,
"author_profile": "https://Stackoverflow.com/users/19246117",
"pm_score": 1,
"selected": false,
"text": " <div *ngFor=\"item in itemlist, let i = index\">\n <div *ngIf=\"i % 3 === 0\">\n{{item}}\n </di... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20637261/"
] |
74,618,968 | <p>I am performing a http call and subscribing to it.
If I close that component, the subscription is not destroyed, and it runs once.
Shouldn't the http subscriptions be removed automatically once I destroy a component?</p>
<p>Here's the method that is being called</p>
<pre><code>getCubes() {
this.loading_cubes = t... | [
{
"answer_id": 74619044,
"author": "Mathew Berg",
"author_id": 973651,
"author_profile": "https://Stackoverflow.com/users/973651",
"pm_score": 2,
"selected": false,
"text": "\nexport MyComponent extends OnDestroy {\n mySubscription = null\n ...\n\n getCubes() {\n this.myS... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74618968",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20012119/"
] |
74,619,007 | <pre class="lang-py prettyprint-override"><code>total_task=float(input("Enter the assigned total task length(in half-hour(s)):"))
total_len=total_task*2
leng=int(total_len)
payments=[]
hours=[]
for i in range(leng):
print("Enter the payment value( in TL) for task portion ID ",(i+1)," having... | [
{
"answer_id": 74619229,
"author": "Rodrigo Rodrigues",
"author_id": 2938526,
"author_profile": "https://Stackoverflow.com/users/2938526",
"pm_score": 2,
"selected": false,
"text": "paymentsTable[i][k] paymentsTable[k+1][j] paymentsTable leng 0 leng-1 paymentsTable[i] leng 0 leng-1 i ran... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16814178/"
] |
74,619,038 | <p>So I am scraping a website and the code gives me all the information I want however when scraping it also gives me the "€" symbol with the price. So I want to be able to have the price as a int and remove the "€" symbol so I can Calculate the average car price per year. It does give me the ValueE... | [
{
"answer_id": 74619229,
"author": "Rodrigo Rodrigues",
"author_id": 2938526,
"author_profile": "https://Stackoverflow.com/users/2938526",
"pm_score": 2,
"selected": false,
"text": "paymentsTable[i][k] paymentsTable[k+1][j] paymentsTable leng 0 leng-1 paymentsTable[i] leng 0 leng-1 i ran... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20637309/"
] |
74,619,051 | <p>I am deploying a Django project on AWS. I am running Postgres, Redis, Nginx as well as my project on Docker there.</p>
<p>Everything is working fine, but when I change something on my local machine, push changes to git and then pull them on the AWS instance, the code is changing, files are updated but they are not s... | [
{
"answer_id": 74619229,
"author": "Rodrigo Rodrigues",
"author_id": 2938526,
"author_profile": "https://Stackoverflow.com/users/2938526",
"pm_score": 2,
"selected": false,
"text": "paymentsTable[i][k] paymentsTable[k+1][j] paymentsTable leng 0 leng-1 paymentsTable[i] leng 0 leng-1 i ran... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20637393/"
] |
74,619,057 | <p>I have the following task statement:</p>
<p>In this task we want to simulate random variables with density</p>
<p><a href="https://i.stack.imgur.com/knKi1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/knKi1.png" alt="enter image description here" /></a></p>
<p>To do this, write a function r_dens... | [
{
"answer_id": 74619612,
"author": "Vons",
"author_id": 2303235,
"author_profile": "https://Stackoverflow.com/users/2303235",
"pm_score": 3,
"selected": true,
"text": "library(tidyverse)\n\nN <- 1000\n\nr_density <- function(n){\n exp(-abs(n))/2\n}\n\nx = c()\nwhile (length(x) < N) {\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20433442/"
] |
74,619,098 | <p>I am having an issue when trying to run JavaScript inside an Ajax loaded content on a webpage. I keep getting an error "Cannot set properties of null". If I move the output of the script to the footer for example which is outside of the Ajax loaded content, the script works fine.</p>
<p>This is the piece o... | [
{
"answer_id": 74619123,
"author": "David",
"author_id": 328193,
"author_profile": "https://Stackoverflow.com/users/328193",
"pm_score": 3,
"selected": true,
"text": "let shopOutput = document.getElementById(\"shopOutput\");\n #shopOutput shopOutput null null function addElements(selectE... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619098",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20637346/"
] |
74,619,140 | <p>I am trying to fix these photos to be a tiny more centered. Maybe shift down a little and to the left. I am using all bootstrap and do not have any css attached to this. It is all working within the ul tags. Any help appreciated.</p>
<p><a href="https://i.stack.imgur.com/BpoJq.png" rel="nofollow noreferrer">Page Scr... | [
{
"answer_id": 74619123,
"author": "David",
"author_id": 328193,
"author_profile": "https://Stackoverflow.com/users/328193",
"pm_score": 3,
"selected": true,
"text": "let shopOutput = document.getElementById(\"shopOutput\");\n #shopOutput shopOutput null null function addElements(selectE... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20626872/"
] |
74,619,161 | <p>I just want to use the instantiated GameObject in another function but it always says
The name 'newObject' does not exist in the current context</p>
<pre><code>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Deletenow : MonoBehaviour
{
public Transform Player;
pub... | [
{
"answer_id": 74619123,
"author": "David",
"author_id": 328193,
"author_profile": "https://Stackoverflow.com/users/328193",
"pm_score": 3,
"selected": true,
"text": "let shopOutput = document.getElementById(\"shopOutput\");\n #shopOutput shopOutput null null function addElements(selectE... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20504646/"
] |
74,619,167 | <p>I have two elements, a circle and a square (2 different div). The square is on top of the circle, but it <strong>blocks the hover effect of the element underneath</strong> (the circle turns blue, for example).
Applying the hover effect to the square doesn't work, because the hover effect applies to every part of the... | [
{
"answer_id": 74619123,
"author": "David",
"author_id": 328193,
"author_profile": "https://Stackoverflow.com/users/328193",
"pm_score": 3,
"selected": true,
"text": "let shopOutput = document.getElementById(\"shopOutput\");\n #shopOutput shopOutput null null function addElements(selectE... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18250923/"
] |
74,619,175 | <p>I want to convert my datetime object into seconds</p>
<pre><code>0 49:36.5
1 50:13.7
2 50:35.8
3 50:37.4
4 50:39.3
...
92 1:00:47.8
93 1:01:07.7
94 1:02:15.3
95 1:05:03.0
96 1:05:29.6
Name: Finish, Length: 97, dtype: object
</code></pre>
<p>the problem is that... | [
{
"answer_id": 74619635,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": false,
"text": "str.replace pd.to_timedelta(df['Finish'].str.replace('^(\\d+:\\d+\\.\\d+)', r'0:\\1', regex=True))\n str.count map ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19225090/"
] |
74,619,184 | <p>Data</p>
<pre><code>pcadata <- structure(list(sample = c("1-1", "1-2", "1-3", "2-1", "2-2",
"2-3", "3-1", "3-2", "3-3", "4-1", "4-2", "4-3", "1-1", "1-2",
"1-3", ... | [
{
"answer_id": 74619236,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 2,
"selected": false,
"text": "code integer color library(dplyr)\nlibrary(tidyr)\npcadata %>%\n ungroup %>%\n mutate(code = codes_vector[as.integ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16085883/"
] |
74,619,187 | <p>The CSV file contains name and Values</p>
<p>i want any value more than 1000 converted to 1000 in same file or in differentt file. mostly using shell script. what is the best way to it?</p>
<p>for example the values are as follows</p>
<pre><code>Name Value
ABV 1200
CCD 1000
CAD 500
DDD 1800
</code></pre>
<p>and i wa... | [
{
"answer_id": 74619399,
"author": "James Brown",
"author_id": 4162356,
"author_profile": "https://Stackoverflow.com/users/4162356",
"pm_score": 2,
"selected": false,
"text": "$ awk '{print $1,($2+0>1000?1000:$2)}' file\n Name Value\nABV 1000\nCCD 1000\nCAD 500\nDDD 1000\n"
},
{
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20637171/"
] |
74,619,193 | <p>I want to have some input boxes which contain an text for the user to know what is required to enter. This text should disappear when the user clicks on it. How do i know which box the user clicked?</p>
<pre><code>class window():
def handleEvent(self,event):
self.text.set("")
def handleEven... | [
{
"answer_id": 74619217,
"author": "JRiggles",
"author_id": 8512262,
"author_profile": "https://Stackoverflow.com/users/8512262",
"pm_score": 2,
"selected": true,
"text": "event.widget"
},
{
"answer_id": 74619223,
"author": "Bryan Oakley",
"author_id": 7432,
"author_p... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619193",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19542770/"
] |
74,619,214 | <p>I have a set of patents that I have titles and abstracts on and would like to search in such a way that their final search algorithm requires the keyword “software” to be present, and none of the keywords “chip”, “semiconductor”, “bus”, “circuit” or “circuit” to be present.
i did This:</p>
<pre class="lang-sql prett... | [
{
"answer_id": 74619217,
"author": "JRiggles",
"author_id": 8512262,
"author_profile": "https://Stackoverflow.com/users/8512262",
"pm_score": 2,
"selected": true,
"text": "event.widget"
},
{
"answer_id": 74619223,
"author": "Bryan Oakley",
"author_id": 7432,
"author_p... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19971208/"
] |
74,619,215 | <p><code>xtabs</code> can make a summary table, combined with <code>cbind</code> to summarize over multiple variables, and grouped by the remaining variable:</p>
<pre><code>df<-data.frame(publication_date=c("2015 Jul","2015 Jul","2015 Aug","2015 Aug"),
Asym=c(3,... | [
{
"answer_id": 74619217,
"author": "JRiggles",
"author_id": 8512262,
"author_profile": "https://Stackoverflow.com/users/8512262",
"pm_score": 2,
"selected": true,
"text": "event.widget"
},
{
"answer_id": 74619223,
"author": "Bryan Oakley",
"author_id": 7432,
"author_p... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10276092/"
] |
74,619,234 | <p>I'm quite 'green' into WPF and I appreciate if you could share some starting point example or help me fixing my own code.
I have tree UserControl (Component, ComponentTop, ComponentBottom) that share the same ViewModel class 'ComponentViewModel'.
Instead of using this tree UserControl I would like to use just 'Compo... | [
{
"answer_id": 74619217,
"author": "JRiggles",
"author_id": 8512262,
"author_profile": "https://Stackoverflow.com/users/8512262",
"pm_score": 2,
"selected": true,
"text": "event.widget"
},
{
"answer_id": 74619223,
"author": "Bryan Oakley",
"author_id": 7432,
"author_p... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13103927/"
] |
74,619,251 | <p>I want to use a formula to find the highest N values in each group in a Google Spread Sheets.</p>
<p>I tried this formula from <a href="https://infoinspired.com/google-docs/spreadsheet/find-the-highest-n-values-in-each-group/" rel="nofollow noreferrer">infoinspired.com</a> (credit to Prashanth):</p>
<blockquote>
<p>... | [
{
"answer_id": 74619557,
"author": "Martín",
"author_id": 20363318,
"author_profile": "https://Stackoverflow.com/users/20363318",
"pm_score": 2,
"selected": true,
"text": "=ArrayFormula(QUERY({SORT(A2:B,1,true,2,false),IFERROR(row(A2:A)-match(query(SORT(A2:B,1,true,2,false),\"Select Col1... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17988705/"
] |
74,619,261 | <p>I am unable to connect my index.js file with Django and index.html
Django is connected to index.html fine but not to index.js. I have attached my settings.py, urls.py, index.html, webpack.config.js, and index.js files below.</p>
<p>settings.py:</p>
<pre><code>from pathlib import Path
import os
# Build paths inside ... | [
{
"answer_id": 74619557,
"author": "Martín",
"author_id": 20363318,
"author_profile": "https://Stackoverflow.com/users/20363318",
"pm_score": 2,
"selected": true,
"text": "=ArrayFormula(QUERY({SORT(A2:B,1,true,2,false),IFERROR(row(A2:A)-match(query(SORT(A2:B,1,true,2,false),\"Select Col1... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619261",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9931072/"
] |
74,619,297 | <p>I have a parant that contains a child and a function within the parent that I wish to run form the child. However with the current code what is happening is the function is ran instantly instead of when the button is pressed on the child component. any ideas? Here is the code:</p>
<pre><code>const Parent = () =>... | [
{
"answer_id": 74619605,
"author": "LiquiD.S1nn3r",
"author_id": 15175112,
"author_profile": "https://Stackoverflow.com/users/15175112",
"pm_score": 0,
"selected": false,
"text": "const Button = ({onClick as fn}) => {\n\n/// your code here.....\n\nreturn (\n<button onClick={fn}>YOUR BUTT... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3827252/"
] |
74,619,303 | <p>So I have a dictionary that looks something like the following:</p>
<pre class="lang-py prettyprint-override"><code>{
"tigj09j32f0j2": {
"car": {
"lead": {
"version": "1.1"
}
},
"bike": {
... | [
{
"answer_id": 74619428,
"author": "CrabBucket",
"author_id": 19730434,
"author_profile": "https://Stackoverflow.com/users/19730434",
"pm_score": 1,
"selected": false,
"text": "def is_version_issue(vehicle_type: str, object_json: dict):\n current_object = object_json[object_id]\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12057138/"
] |
74,619,340 | <p>I am having trouble at the end of the test. The test is to login in a user and the screen on successful login should refresh and a list appears on the screen. The login is successful, but the list is not showing. Do I need to do a rerender or something? The screen.debug() at the bottom is what I am using to veri... | [
{
"answer_id": 74619428,
"author": "CrabBucket",
"author_id": 19730434,
"author_profile": "https://Stackoverflow.com/users/19730434",
"pm_score": 1,
"selected": false,
"text": "def is_version_issue(vehicle_type: str, object_json: dict):\n current_object = object_json[object_id]\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1730289/"
] |
74,619,352 | <p>I want to get the <code>name</code> of the user, using the <strong>Reserves</strong> model, because that's the one I can display. The **User ** model is referenced in the **Reserve ** model. and the only thing I can get is the Object ID.</p>
<p>How can I get other field values from the User model through the referen... | [
{
"answer_id": 74619428,
"author": "CrabBucket",
"author_id": 19730434,
"author_profile": "https://Stackoverflow.com/users/19730434",
"pm_score": 1,
"selected": false,
"text": "def is_version_issue(vehicle_type: str, object_json: dict):\n current_object = object_json[object_id]\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619352",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20637623/"
] |
74,619,360 | <p>I am trying to create a formula that totals the number of tardies for a student in column b when I insert a new column each day between column b and c (see example sheet <a href="https://docs.google.com/spreadsheets/d/1axI2nI7IgCDViEi_ZHKlz_h1N8kGBb4j-gXtp9bRyGQ/edit?usp=sharing" rel="nofollow noreferrer">here</a>)<... | [
{
"answer_id": 74619428,
"author": "CrabBucket",
"author_id": 19730434,
"author_profile": "https://Stackoverflow.com/users/19730434",
"pm_score": 1,
"selected": false,
"text": "def is_version_issue(vehicle_type: str, object_json: dict):\n current_object = object_json[object_id]\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20637647/"
] |
74,619,361 | <p>I have this function that is supposed to return an array of prime numbers from 2 to <em>n</em>, but sometimes it doesn't return anything and just says "exited with code=3221225477", specificaly, if I enter a value over 3 or 4. When it does work, it skips over the number 5 and prints "2 3 29541 7 11 ..... | [
{
"answer_id": 74619438,
"author": "Nelfeal",
"author_id": 3854570,
"author_profile": "https://Stackoverflow.com/users/3854570",
"pm_score": 2,
"selected": false,
"text": "array_primes = realloc(array_primes, sizeof(int)*size);\narray_primes[size] = number;\nsize += 1;\n size += 1; // fi... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19163263/"
] |
74,619,432 | <p>The following script is working fine. But need to add one more item in array without built-in function. Is it possible to do without <code>Resize()</code> ?</p>
<pre><code>string[] data = {"item-1", "item-2"};
Array.Resize(ref data, 3);
data[2] = "item-3";
foreach(string i in data) {
... | [
{
"answer_id": 74619469,
"author": "julealgon",
"author_id": 1946412,
"author_profile": "https://Stackoverflow.com/users/1946412",
"pm_score": 2,
"selected": false,
"text": "List<T>"
},
{
"answer_id": 74619491,
"author": "Charles Yang",
"author_id": 13101880,
"author_... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7186739/"
] |
74,619,458 | <p>Let's say I have a class <code>Bitmap</code> that has a static cache map <code>textures</code> that holds pointers to all images that have been registered.</p>
<pre class="lang-cpp prettyprint-override"><code>class Bitmap {
public:
Bitmap(const std::string &filename);
// ... functionality ...
private:
... | [
{
"answer_id": 74619536,
"author": "HolyBlackCat",
"author_id": 2752075,
"author_profile": "https://Stackoverflow.com/users/2752075",
"pm_score": 1,
"selected": false,
"text": "std::shared_ptr Bitmap"
},
{
"answer_id": 74619683,
"author": "paddy",
"author_id": 1553090,
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10640346/"
] |
74,619,494 | <p>I have a filter applied to a sheet. I want to return just the data from the filter and not the entire range of the sheet.</p>
<pre><code> const sheet = SpreadsheetApp.openById(SHEET_ID).getSheetByName(SHEET_NAME)
const filter = sheet.getFilter();
// This returns the entire sheet's range rather than the filter... | [
{
"answer_id": 74619536,
"author": "HolyBlackCat",
"author_id": 2752075,
"author_profile": "https://Stackoverflow.com/users/2752075",
"pm_score": 1,
"selected": false,
"text": "std::shared_ptr Bitmap"
},
{
"answer_id": 74619683,
"author": "paddy",
"author_id": 1553090,
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619494",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20637783/"
] |
74,619,499 | <p>I've been wanting to make a custom calculator for finding odds in a game but I'm running into a problem with having the denominator printing</p>
<p>`</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<title>Roaming Odds</title>
<meta charset=utf-8>
<m... | [
{
"answer_id": 74619536,
"author": "HolyBlackCat",
"author_id": 2752075,
"author_profile": "https://Stackoverflow.com/users/2752075",
"pm_score": 1,
"selected": false,
"text": "std::shared_ptr Bitmap"
},
{
"answer_id": 74619683,
"author": "paddy",
"author_id": 1553090,
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20575774/"
] |
74,619,500 | <p>How can I calculate the average value of the properties of an object?</p>
<p>I have this object:</p>
<pre class="lang-js prettyprint-override"><code>let components = {
co: [235, 465, 78],
no: [409, 589, 98],
nh3: [54, 76, 39]
};
</code></pre>
<p>I need to separately calculate the average for <code>co</code>, <... | [
{
"answer_id": 74619682,
"author": "mplungjan",
"author_id": 295783,
"author_profile": "https://Stackoverflow.com/users/295783",
"pm_score": 0,
"selected": false,
"text": "... const components = {\n \"co\": [235, 465, 78],\n \"no\": [409, 589, 98],\n \"nh3\": [54, 76, 39]\n}\n\nconst ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20624416/"
] |
74,619,517 | <p>There are probably multiple ways to do this or frame this question</p>
<p>I have two tables I would like to join.</p>
<p>Table A</p>
<pre><code>ID Column1A Column2A
56ade9.mobile.app. 1A_data 2A_data
ko9j77:web.source. 1A_data 2A_dat... | [
{
"answer_id": 74619653,
"author": "dougp",
"author_id": 9937026,
"author_profile": "https://Stackoverflow.com/users/9937026",
"pm_score": 3,
"selected": true,
"text": "select b.ID\n, a.ColumnA1\n, a.ColumnA1\n, b.ColumnB1\n, b.ColumnB2\nfrom TableB b\n inner join TableA a\n on case ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9840684/"
] |
74,619,524 | <p>I am struggling with what is hopefully a simple problem. Haven't been able to find a clear cut answer online.</p>
<p>The program given, asks for a user input (n) and then produces an n-sized square matrix. The matrix will only be made of 0s and 1s. I am attempting to count the arrays (I have called this x) that cont... | [
{
"answer_id": 74619739,
"author": "thicchead",
"author_id": 19815385,
"author_profile": "https://Stackoverflow.com/users/19815385",
"pm_score": 0,
"selected": false,
"text": "def xArrayCount(MX):\n x = 0\n count = 0\n\n for i in matrix:\n if MX[count][count] == 0:\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20555664/"
] |
74,619,549 | <p>I am planning a .NET application that will be used in different countries. This application contains a web API and a single page front end. The application will also use a database table with a datetime column. The values in the table will be for the UTC timezone.</p>
<p>I am confused about handling these values. My... | [
{
"answer_id": 74620366,
"author": "Matt Johnson-Pint",
"author_id": 634824,
"author_profile": "https://Stackoverflow.com/users/634824",
"pm_score": 2,
"selected": false,
"text": "{\n \"id\": 123\n \"timestamp\": \"2022-12-31T23:59:59.9999999Z\"\n}\n timestamp Z new Date(timestamp).toS... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/694716/"
] |
74,619,577 | <p>I have written a program that extracts data from an SQL table:</p>
<pre><code>String url = "jdbc:mysql://localhost/petcare";
String password = "ParkSideRoad161997";
String username = "root";
// Step 2: Making connection using
// Connection type and inbuil... | [
{
"answer_id": 74620366,
"author": "Matt Johnson-Pint",
"author_id": 634824,
"author_profile": "https://Stackoverflow.com/users/634824",
"pm_score": 2,
"selected": false,
"text": "{\n \"id\": 123\n \"timestamp\": \"2022-12-31T23:59:59.9999999Z\"\n}\n timestamp Z new Date(timestamp).toS... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619577",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20286317/"
] |
74,619,586 | <p>I have an eventEmitter that I'm using to show a Child Component and also pass information. I have a parent class that contains uses two components, and , and the parent class will take the value from 's eventemitter and use that as a sign to show and pass in information. Unfortunately, the method to update the boo... | [
{
"answer_id": 74620366,
"author": "Matt Johnson-Pint",
"author_id": 634824,
"author_profile": "https://Stackoverflow.com/users/634824",
"pm_score": 2,
"selected": false,
"text": "{\n \"id\": 123\n \"timestamp\": \"2022-12-31T23:59:59.9999999Z\"\n}\n timestamp Z new Date(timestamp).toS... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11489736/"
] |
74,619,587 | <p>I have been wondering how is it possible to scrap Wikipedia information. For example, I have a list of world cities and want to obtain their approximate latitude and longitude. Take Miami as an example. When I type <code>curl https://en.wikipedia.org/wiki/Miami | grep -E '(latitude|longitude)'</code>, somewhere in t... | [
{
"answer_id": 74620366,
"author": "Matt Johnson-Pint",
"author_id": 634824,
"author_profile": "https://Stackoverflow.com/users/634824",
"pm_score": 2,
"selected": false,
"text": "{\n \"id\": 123\n \"timestamp\": \"2022-12-31T23:59:59.9999999Z\"\n}\n timestamp Z new Date(timestamp).toS... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16251726/"
] |
74,619,610 | <p>Below code converts all values text to number except values with prefix 0 I.E. 002A.
Problem: This code works great on small data files but crashes excel on every large file even though I turn off calculation before code runs.
Please suggest a method which I can use?</p>
<pre><code>Sub Text2Number()
On Error GoT... | [
{
"answer_id": 74626762,
"author": "usmanhaq",
"author_id": 10498111,
"author_profile": "https://Stackoverflow.com/users/10498111",
"pm_score": 1,
"selected": false,
"text": "Sub Text2Number_v2()\n\nApplication.Calculation = xlCalculationManual\nlast_col = ActiveSheet.UsedRange.Columns.C... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619610",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10442755/"
] |
74,619,615 | <p>I have a Flask web application running as a Docker image that is deployed to a Kubernetes pod running on GKE. There are a few environment variables necessary for the application which are included in the docker-compose.yaml like so:</p>
<pre class="lang-yaml prettyprint-override"><code>...
services:
my-app:
bu... | [
{
"answer_id": 74620335,
"author": "David Maze",
"author_id": 10008173,
"author_profile": "https://Stackoverflow.com/users/10008173",
"pm_score": 0,
"selected": false,
"text": "docker-compose.yml docker-compose ENV VAR_1=foo\nENV VAR_2=bar\n# and don't mention either variable in either C... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20637746/"
] |
74,619,620 | <p>I have a data frame that looks like this:</p>
<pre><code> x
A B
0 0 1
1 2 3
2 4 5
3 6 7
4 8 9
</code></pre>
<p>When I want to add another level to the multi-level columns using the following code</p>
<pre><code>x.columns = pd.MultiIndex.from_product([['D'], x.columns])
</code></pre>
<p>it gives me... | [
{
"answer_id": 74619824,
"author": "SomeDude",
"author_id": 1410303,
"author_profile": "https://Stackoverflow.com/users/1410303",
"pm_score": 3,
"selected": true,
"text": " x.columns = pd.MultiIndex.from_product([['D'], *x.columns.levels])\n x.columns.levels * from_product"
},
{
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12260015/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.