qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,459,682 | <p>I have a component that i loop through using v-for and props. I want every rendered component to have a different on click event but i can't figure out how to pass a function as a prop.</p>
<p>Code:</p>
<p>Component:</p>
<pre><code><template>
<div v-on:click="cardProperties.scrollFunction" :id... | [
{
"answer_id": 74459657,
"author": "Rory",
"author_id": 3611989,
"author_profile": "https://Stackoverflow.com/users/3611989",
"pm_score": 3,
"selected": true,
"text": "ws For Each Dim ws As Worksheet\n\n\n For Each ws in Activeworkbook.worksheets\n If ws.Name <> \"BoQ\" And ws.Name <... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74459682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19677755/"
] |
74,459,686 | <p>Not sure about which one to use when and their differences</p>
<p>I tried browsing the internet but didn't get any answer</p>
| [
{
"answer_id": 74459657,
"author": "Rory",
"author_id": 3611989,
"author_profile": "https://Stackoverflow.com/users/3611989",
"pm_score": 3,
"selected": true,
"text": "ws For Each Dim ws As Worksheet\n\n\n For Each ws in Activeworkbook.worksheets\n If ws.Name <> \"BoQ\" And ws.Name <... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74459686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11864960/"
] |
74,459,715 | <p>Is there a better / smarter way to do this?</p>
<pre><code>theTitle = responsesToUse[i]["Title"];
if(theTitle == null)
theTitle = "";
</code></pre>
| [
{
"answer_id": 74459743,
"author": "Zeephyros",
"author_id": 19626122,
"author_profile": "https://Stackoverflow.com/users/19626122",
"pm_score": -1,
"selected": false,
"text": "theTitle = responsesToUse[i][\"Title\"] ?? \"\";\n"
},
{
"answer_id": 74459761,
"author": "ask4you"... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74459715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6773512/"
] |
74,459,722 | <p>I have a file containing logs for months and I want to store only the logs for a specific data into a csv file.</p>
<p>sample log data:</p>
<p>2022-06-21 09:06:09 15SS1B Equip = Z39 Text -0003254 Equipment has been added on-line</p>
<p>2022-07-21 09:06:09 15SS2B Equip = Z40 Text -0003254 Equipment has been added on-... | [
{
"answer_id": 74460222,
"author": "Dilly B",
"author_id": 2670623,
"author_profile": "https://Stackoverflow.com/users/2670623",
"pm_score": 0,
"selected": false,
"text": "$line = \"2022-06-21 09:06:09 15SS1B Equip = Z39 Text -0003254 Equipment has been added on-line\"\n$data = $line.Spl... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74459722",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20519262/"
] |
74,459,752 | <p><a href="https://i.stack.imgur.com/wZfB5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wZfB5.png" alt="This is the blue color border I mean" /></a></p>
<p>I tried bunch of settings, but I can't find how to disable it.</p>
| [
{
"answer_id": 74460222,
"author": "Dilly B",
"author_id": 2670623,
"author_profile": "https://Stackoverflow.com/users/2670623",
"pm_score": 0,
"selected": false,
"text": "$line = \"2022-06-21 09:06:09 15SS1B Equip = Z39 Text -0003254 Equipment has been added on-line\"\n$data = $line.Spl... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74459752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20519401/"
] |
74,459,806 | <p>I have a nested array of objects , so i am trying to display in table row only first 3 elements in array and after i am displaying remaining elements in array as a count (i.e +2).Now if i click on remain count i need to display all the elements in array on particular row click.</p>
<p>I am attaching the stack blitz... | [
{
"answer_id": 74460222,
"author": "Dilly B",
"author_id": 2670623,
"author_profile": "https://Stackoverflow.com/users/2670623",
"pm_score": 0,
"selected": false,
"text": "$line = \"2022-06-21 09:06:09 15SS1B Equip = Z39 Text -0003254 Equipment has been added on-line\"\n$data = $line.Spl... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74459806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20519369/"
] |
74,459,828 | <p>I have created a two screen ,expense screen and incomescreen with toogle button to switching expense screen to income screen and visa versa..</p>
<p>here I have a textfield for amount..and it's value should be not changed while shifting to another screen...</p>
<p>(I mean if change expense screen to income screen, ... | [
{
"answer_id": 74460222,
"author": "Dilly B",
"author_id": 2670623,
"author_profile": "https://Stackoverflow.com/users/2670623",
"pm_score": 0,
"selected": false,
"text": "$line = \"2022-06-21 09:06:09 15SS1B Equip = Z39 Text -0003254 Equipment has been added on-line\"\n$data = $line.Spl... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74459828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18817235/"
] |
74,459,873 | <p>I have an object as you have seen below, I want to get the data called measurementPointName from the measurement tables contained in this object, how can I print it to the screen using angular.</p>
<p><a href="https://i.stack.imgur.com/2XXxx.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>I tr... | [
{
"answer_id": 74460139,
"author": "user2403735",
"author_id": 2403735,
"author_profile": "https://Stackoverflow.com/users/2403735",
"pm_score": 0,
"selected": false,
"text": "// your data\napiResult = [\n {\n workOderId: 1234\n ...\n },\n {\n measurementTableList: [\n .... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74459873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20519481/"
] |
74,459,886 | <p>When I Try to download WSO2 Process Server, It redirects me to API Manager.</p>
<p>The link is <a href="http://wso2.com/products/business-process-server" rel="nofollow noreferrer">http://wso2.com/products/business-process-server</a></p>
<p>Is the WSO2 Process Server deprecated?</p>
| [
{
"answer_id": 74461528,
"author": "ycr",
"author_id": 2627018,
"author_profile": "https://Stackoverflow.com/users/2627018",
"pm_score": 1,
"selected": false,
"text": "Business Process Server Enterprise Integrator"
}
] | 2022/11/16 | [
"https://Stackoverflow.com/questions/74459886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13091222/"
] |
74,459,919 | <p>how to remove duplicate through some value in object array?</p>
<pre class="lang-kotlin prettyprint-override"><code>
data class Person(
val id: Int,
val name: String,
val gender: String
)
val person1 = Person(1, "Lonnie", "female")
val person2 = Person(2, "Noah", "ma... | [
{
"answer_id": 74461528,
"author": "ycr",
"author_id": 2627018,
"author_profile": "https://Stackoverflow.com/users/2627018",
"pm_score": 1,
"selected": false,
"text": "Business Process Server Enterprise Integrator"
}
] | 2022/11/16 | [
"https://Stackoverflow.com/questions/74459919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11680852/"
] |
74,459,952 | <p>I am using Python in CoLab and I am trying to find something that will allow me to move any cells from a subset of a data frame into a new/different column in the same data frame OR sort the cells of the dataframe into the correct columns.</p>
<p><a href="https://i.stack.imgur.com/UEEXS.png" rel="nofollow noreferrer... | [
{
"answer_id": 74461528,
"author": "ycr",
"author_id": 2627018,
"author_profile": "https://Stackoverflow.com/users/2627018",
"pm_score": 1,
"selected": false,
"text": "Business Process Server Enterprise Integrator"
}
] | 2022/11/16 | [
"https://Stackoverflow.com/questions/74459952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20519409/"
] |
74,459,958 | <p>I tried to write a funtion, which can be inserted in any expresion, in order to log the value:</p>
<pre class="lang-kotlin prettyprint-override"><code>val x = (2.debug() + 3.debug()).debug("2+3")
</code></pre>
<p>But instead I wrote the following endless loop:</p>
<pre class="lang-kotlin prettyprint-overri... | [
{
"answer_id": 74460075,
"author": "Gustavo",
"author_id": 1401164,
"author_profile": "https://Stackoverflow.com/users/1401164",
"pm_score": 4,
"selected": true,
"text": "fun <T> T.debug (tag: String = \"value\"): T {\n debug (message = \"$tag: $this\")\n return this\n}\n"
},
{... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74459958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/402322/"
] |
74,459,977 | <p>I have this line</p>
<pre><code>a[link], a[link] a [link] text text text a [link] text a[link] text
</code></pre>
<p>So I want to find the first links before the text and do one operation with them and highlight them in a special style (in this example, there may be three of them more or less) and find other links t... | [
{
"answer_id": 74460530,
"author": "user3783243",
"author_id": 3783243,
"author_profile": "https://Stackoverflow.com/users/3783243",
"pm_score": 1,
"selected": false,
"text": "preg_match_all preg_replace_callback a\\[(\\w+)\\]\n [\\s+]? +"
},
{
"answer_id": 74463603,
"author"... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74459977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20519495/"
] |
74,460,012 | <p>while I am running the script in j meter some http requests show 409 error.</p>
<p>I've recorded a website while executing the script in view results tree it shows 409 conflict error in some http requests.</p>
| [
{
"answer_id": 74460530,
"author": "user3783243",
"author_id": 3783243,
"author_profile": "https://Stackoverflow.com/users/3783243",
"pm_score": 1,
"selected": false,
"text": "preg_match_all preg_replace_callback a\\[(\\w+)\\]\n [\\s+]? +"
},
{
"answer_id": 74463603,
"author"... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460012",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20519440/"
] |
74,460,032 | <p>I have a batch of images thus the shape <code>[None, 256, 256, 3]</code> (the batch is set to none for practical purposes on use).</p>
<p>I am trying to implement a layer that calculates the average of each of the of images or frames in the batch to result the shape <code>[None, 1]</code> or <code>[None, 1, 1, 1]</c... | [
{
"answer_id": 74460214,
"author": "AloneTogether",
"author_id": 9657861,
"author_profile": "https://Stackoverflow.com/users/9657861",
"pm_score": 2,
"selected": true,
"text": "import tensorflow as tf\n\nclass ElementMean(tf.keras.layers.Layer):\n def __init__(self, **kwargs):\n ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11505421/"
] |
74,460,051 | <p>I am getting traffic network from a website. I want to getting the json file of a location on google maps because of that i need to take a json website link from traffic network. This traffic network I receive is recorded as a list. This list contains words. And every time I refresh the web page, the places in the l... | [
{
"answer_id": 74460214,
"author": "AloneTogether",
"author_id": 9657861,
"author_profile": "https://Stackoverflow.com/users/9657861",
"pm_score": 2,
"selected": true,
"text": "import tensorflow as tf\n\nclass ElementMean(tf.keras.layers.Layer):\n def __init__(self, **kwargs):\n ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14938794/"
] |
74,460,056 | <p>I am given this as a string:</p>
<pre><code>Orville Wright 21 July 1988 \n
Rogelio Holloway 13 September 1988 \n
Marjorie Figueroa 9 October 1988 \n
</code></pre>
<p>I need to separate the names from the dates and print it like this:</p>
<pre><code>Birthdate:
21 July 1988 \n
13 September 1988 \n
9 October 1988 \n
et... | [
{
"answer_id": 74460189,
"author": "3dSpatialUser",
"author_id": 5775358,
"author_profile": "https://Stackoverflow.com/users/5775358",
"pm_score": 1,
"selected": false,
"text": "import re\nstr = 'Orville Wright 21 July 1988 \\n Rogelio Holloway 13 September 1988 \\n Marjorie Figueroa 9 O... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19698970/"
] |
74,460,062 | <p>The following works:</p>
<pre><code>awk '
NR==FNR { sub(/\.(png|txt|jpg|json)$/,""); a[$0]; next }
{ f=$0; sub(/\.(png|txt|jpg|json)$/,"", f) }
!(f in a)
' comp1.txt comp2.txt > result.txt
</code></pre>
<p>and now I want it to take the file endings that shall be ignored in ... | [
{
"answer_id": 74461117,
"author": "Daweo",
"author_id": 10785975,
"author_profile": "https://Stackoverflow.com/users/10785975",
"pm_score": 2,
"selected": false,
"text": "AWK ~ !~ .txt .json file.txt file1.txt\nfile2.bmp\nfile3.json\n awk 'BEGIN{s=\"\\\\.(txt|json)$\"}sub(s,\"\"){print}... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19017877/"
] |
74,460,067 | <p>I want to change the behavior of the editor such that when the user presses enter on an empty list bullet, their cursor position is reset to the start of the line (rather than leaving them at the indented amount).</p>
<p>I've tried:</p>
<p><code>aceEdit.moveCursorTo(rowToUpdate, 0)</code></p>
<p><code>aceEdit.getSes... | [
{
"answer_id": 74461117,
"author": "Daweo",
"author_id": 10785975,
"author_profile": "https://Stackoverflow.com/users/10785975",
"pm_score": 2,
"selected": false,
"text": "AWK ~ !~ .txt .json file.txt file1.txt\nfile2.bmp\nfile3.json\n awk 'BEGIN{s=\"\\\\.(txt|json)$\"}sub(s,\"\"){print}... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/717847/"
] |
74,460,090 | <p>My current time format is in "Wednesday, November 16, 2022 4:21:33.082 PM GMT+05:30" format.</p>
<p>How can I convert this to epoch time using python?</p>
<p>Here in this case the epoch time should be "1668595893082"</p>
<p><strong>Note: I always want to get my current time format in the above fo... | [
{
"answer_id": 74461117,
"author": "Daweo",
"author_id": 10785975,
"author_profile": "https://Stackoverflow.com/users/10785975",
"pm_score": 2,
"selected": false,
"text": "AWK ~ !~ .txt .json file.txt file1.txt\nfile2.bmp\nfile3.json\n awk 'BEGIN{s=\"\\\\.(txt|json)$\"}sub(s,\"\"){print}... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15183895/"
] |
74,460,120 | <p>On my host system (Ubuntu, 64Bit) I use <code>gcc/g++</code> compilers to crosscompile my library for my Android app (arm64-v8a). On calling functions from my App I receive messages that libraries like <code>libc.so.6</code> or <code>libstdc++.so.6</code> cannot be found.</p>
<p>Within my <code>/usr</code> directory... | [
{
"answer_id": 74461117,
"author": "Daweo",
"author_id": 10785975,
"author_profile": "https://Stackoverflow.com/users/10785975",
"pm_score": 2,
"selected": false,
"text": "AWK ~ !~ .txt .json file.txt file1.txt\nfile2.bmp\nfile3.json\n awk 'BEGIN{s=\"\\\\.(txt|json)$\"}sub(s,\"\"){print}... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460120",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5773498/"
] |
74,460,130 | <p>I have this string</p>
<pre><code>$s = "red2 blue5 black4 green1 gold3";
</code></pre>
<p>I need to order by the number, but can show the numbers.
Numbers will always appears at the end of the word.
the result should be like:</p>
<pre><code>$s = "green red gold black blue";
</code></pre>
<p>Thank... | [
{
"answer_id": 74460517,
"author": "Foobar",
"author_id": 19625365,
"author_profile": "https://Stackoverflow.com/users/19625365",
"pm_score": 2,
"selected": true,
"text": "$s = \"red2 blue5 black4 green1 gold3\";\n$a=[];\npreg_replace_callback('/[a-z0-9]+/',function($m) use (&$a){\n $... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15435343/"
] |
74,460,135 | <p>is there a way in SAS to order columns (variables) of a data set based on the order of another data set? The names are perfectly equal.</p>
<p>And is there also a way to append them (vertically) based on the same column names?</p>
<p>Thank you in advance</p>
<blockquote>
<pre><code> ID YEAR DAYS WORK ... | [
{
"answer_id": 74460517,
"author": "Foobar",
"author_id": 19625365,
"author_profile": "https://Stackoverflow.com/users/19625365",
"pm_score": 2,
"selected": true,
"text": "$s = \"red2 blue5 black4 green1 gold3\";\n$a=[];\npreg_replace_callback('/[a-z0-9]+/',function($m) use (&$a){\n $... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460135",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19938845/"
] |
74,460,162 | <p>I'm studying JavaScript combining functions. Supposed I have <code>firstname</code>
and <code>lastName</code> as two arguments of my function. I want the console to display <code>Doe</code> when <code>lastname</code> is <code>undefinded</code> . Here is my code but it printed out undefined. Any idea? Thank you!</p>
... | [
{
"answer_id": 74460199,
"author": "R4ncid",
"author_id": 14326899,
"author_profile": "https://Stackoverflow.com/users/14326899",
"pm_score": 3,
"selected": false,
"text": "let name = 'John'\n\nfunction greetByDefault(firstname,lastname = 'Doe'){\n return 'Hi ' + firstname +' '+ last... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20519432/"
] |
74,460,170 | <p>I have a DataFrame with duplicate row in column A that has difference value in column B</p>
<p>Example for my data:</p>
<pre><code>| Column A | Column B |
| -------- | -------- |
| APPLE | RED |
| APPLE | GREEN |
| GRAPE | BLACK |
| BANANA | RED |
| BANANA | BLUE |
| BANANA | GREEN... | [
{
"answer_id": 74460199,
"author": "R4ncid",
"author_id": 14326899,
"author_profile": "https://Stackoverflow.com/users/14326899",
"pm_score": 3,
"selected": false,
"text": "let name = 'John'\n\nfunction greetByDefault(firstname,lastname = 'Doe'){\n return 'Hi ' + firstname +' '+ last... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20519402/"
] |
74,460,171 | <p>Here's the situation: registration.php with inputs (like firstname, lastname, password) and registrationErrors.php - having self-written error-checks and returning the type of error to the initial registration.php, where it is shown to the user.</p>
<p>In case one of my self-written error occurs, I'd like to save th... | [
{
"answer_id": 74460199,
"author": "R4ncid",
"author_id": 14326899,
"author_profile": "https://Stackoverflow.com/users/14326899",
"pm_score": 3,
"selected": false,
"text": "let name = 'John'\n\nfunction greetByDefault(firstname,lastname = 'Doe'){\n return 'Hi ' + firstname +' '+ last... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10858923/"
] |
74,460,177 | <p>There is a table <em>Shops</em> with <em>Shop_number</em> and <em>Shop Address</em> columns.
Also a table called <em>Properties</em> with two columns:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Shop_number</th>
<th>Property_ID</th>
</tr>
</thead>
<tbody>
<tr>
<td>222222</td>
<td>113... | [
{
"answer_id": 74460199,
"author": "R4ncid",
"author_id": 14326899,
"author_profile": "https://Stackoverflow.com/users/14326899",
"pm_score": 3,
"selected": false,
"text": "let name = 'John'\n\nfunction greetByDefault(firstname,lastname = 'Doe'){\n return 'Hi ' + firstname +' '+ last... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14172808/"
] |
74,460,191 | <p>I have a model called <code>Purchase</code>, with two fields, <code>User</code> and <code>amount_spent</code>.</p>
<p>This is <code>models.py</code>:</p>
<pre><code>class Purchase(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
amount_spent = models.IntegerField()
created_at = mod... | [
{
"answer_id": 74460476,
"author": "Hemal Patel",
"author_id": 16250404,
"author_profile": "https://Stackoverflow.com/users/16250404",
"pm_score": 2,
"selected": false,
"text": "Purchase.objects.filter(user__in=list_of_users).values(\"user_id\", \"amount_spent\").order_by(\"-id\").distin... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460191",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13071340/"
] |
74,460,207 | <p>After solving the heat equation with analytical procedures, I'm trying to solve it numerically by the explicit Euler method. I'm given the <a href="https://i.stack.imgur.com/lpoXF.png" rel="nofollow noreferrer">following discretization</a>, where T is the temperature. My code is:</p>
<pre><code>#include <string.h... | [
{
"answer_id": 74460476,
"author": "Hemal Patel",
"author_id": 16250404,
"author_profile": "https://Stackoverflow.com/users/16250404",
"pm_score": 2,
"selected": false,
"text": "Purchase.objects.filter(user__in=list_of_users).values(\"user_id\", \"amount_spent\").order_by(\"-id\").distin... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19307750/"
] |
74,460,253 | <p>Here's what I have :
<a href="https://stackblitz.com/edit/duplicates-aas5zs?file=app%2Fapp.component.ts,app%2Fapp.component.html" rel="nofollow noreferrer">https://stackblitz.com/edit/duplicates-aas5zs?file=app%2Fapp.component.ts,app%2Fapp.component.html</a>
I have little problem. It has to find duplicate values and... | [
{
"answer_id": 74460476,
"author": "Hemal Patel",
"author_id": 16250404,
"author_profile": "https://Stackoverflow.com/users/16250404",
"pm_score": 2,
"selected": false,
"text": "Purchase.objects.filter(user__in=list_of_users).values(\"user_id\", \"amount_spent\").order_by(\"-id\").distin... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20298778/"
] |
74,460,268 | <p>I am trying to rename columns in a dataframe:</p>
<pre><code>data work.baseline;
set work.ehp30 (keep = Pat_TNO AssNo pain -- family sexual -- infertile);
where AssNo = 1;
run;
</code></pre>
<p>Which returns a dataframe to <code>work.baseline</code> with columns <code>Pat_TNO</code>, <code>AssNo</code>, and ... | [
{
"answer_id": 74460485,
"author": "PeterClemmensen",
"author_id": 4044936,
"author_profile": "https://Stackoverflow.com/users/4044936",
"pm_score": 3,
"selected": true,
"text": "data class;\n set sashelp.class;\nrun;\n\ndata test;\n set sashelp.vcolumn end = z;\n where libname='WO... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19414769/"
] |
74,460,282 | <p>I had an issue with body overflow being ignored and playing around I found out it happens because someone did:</p>
<pre><code>html{
overflow-x: hidden;
}
</code></pre>
<p>I would never do this because styling the html element directly seems like a sauvage act to me. But since someone did, I want to understand this s... | [
{
"answer_id": 74460485,
"author": "PeterClemmensen",
"author_id": 4044936,
"author_profile": "https://Stackoverflow.com/users/4044936",
"pm_score": 3,
"selected": true,
"text": "data class;\n set sashelp.class;\nrun;\n\ndata test;\n set sashelp.vcolumn end = z;\n where libname='WO... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10716664/"
] |
74,460,294 | <p>I have the following DataFrame, with over 3 million rows:</p>
<pre><code>VALID_FROM VALID_TO VALUE
0 2022-01-01 2022-01-02 5
1 2022-01-01 2022-01-03 2
2 2022-01-02 2022-01-04 7
3 2022-01-03 2022-01-06 3
</code></pre>
<p>I want to create one large date_range with a sum of the values for each ti... | [
{
"answer_id": 74460385,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 3,
"selected": true,
"text": "Index.repeat DataFrame.loc date GroupBy.cumcount sum df['VALID_FROM'] = pd.to_datetime(df['VALID_FROM'])\ndf['VALID_T... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20519589/"
] |
74,460,312 | <p>I'm writing to ask you help me with the following issue.</p>
<p>The output of "timedatectl" on my Debian system is:</p>
<pre><code>Local time: Wed 2022-11-16 13:02:00 CET
Universal time: Wed 2022-11-16 12:02:00 UTC
RTC time: Wed 2022-11-16 12:02:01
Time zone: Eur... | [
{
"answer_id": 74460385,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 3,
"selected": true,
"text": "Index.repeat DataFrame.loc date GroupBy.cumcount sum df['VALID_FROM'] = pd.to_datetime(df['VALID_FROM'])\ndf['VALID_T... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19136791/"
] |
74,460,317 | <p>I'm trying to pass a number of options for a bolean function and I wrote it like this:</p>
<pre><code>s = 'https://www.youtube.com/watch?v=nVNG8jjZN7k'
s.startswith('http://') or s.startswith('https://')
</code></pre>
<p>But I was wondering if there's a more efficient way to write it,
something like:</p>
<pre><code>... | [
{
"answer_id": 74460374,
"author": "chepner",
"author_id": 1126841,
"author_profile": "https://Stackoverflow.com/users/1126841",
"pm_score": 2,
"selected": true,
"text": "str.startswith s.startswith(('http://', 'https://'))\n s bool(re.match('https?://', s))\n re.Match None"
},
{
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18571867/"
] |
74,460,320 | <p>I'm using Hardhat framewrok and doing some testing with an erc20 contract:
I used that tutorial to fork <a href="https://hardhat.org/hardhat-network/docs/guides/forking-other-networks" rel="nofollow noreferrer">https://hardhat.org/hardhat-network/docs/guides/forking-other-networks</a>.
I'm trying to swap two ERC20 t... | [
{
"answer_id": 74460374,
"author": "chepner",
"author_id": 1126841,
"author_profile": "https://Stackoverflow.com/users/1126841",
"pm_score": 2,
"selected": true,
"text": "str.startswith s.startswith(('http://', 'https://'))\n s bool(re.match('https?://', s))\n re.Match None"
},
{
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14707606/"
] |
74,460,346 | <p>My current dataframe looks like this</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>A header</th>
<th>Another header</th>
</tr>
</thead>
<tbody>
<tr>
<td>First</td>
<td>i like apple</td>
</tr>
<tr>
<td>Second</td>
<td>alex is friends with jack</td>
</tr>
</tbody>
</table>
</div>
<p>I am... | [
{
"answer_id": 74460357,
"author": "Matt",
"author_id": 5125264,
"author_profile": "https://Stackoverflow.com/users/5125264",
"pm_score": 2,
"selected": false,
"text": "df['Another header'] = df['Another header'].str.split()\n"
},
{
"answer_id": 74460358,
"author": "jezrael",... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18313588/"
] |
74,460,362 | <p>I have a file with a lot of data, I want to search for specific word and when found it, grep it and two other words after it, then keep searching the file to find this specific word again and do the same as I did previously.</p>
<p>Example:</p>
<pre><code>Test::All 123
Availability: Available
State: Enable
**Test... | [
{
"answer_id": 74460655,
"author": "Apex",
"author_id": 12799032,
"author_profile": "https://Stackoverflow.com/users/12799032",
"pm_score": 0,
"selected": false,
"text": "grep 'Test::Member' -A2\n"
},
{
"answer_id": 74460760,
"author": "Gilles Quenot",
"author_id": 465183... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20519762/"
] |
74,460,376 | <p>I'm reading a json and want to get the label field with a specific id. What I currently have is:</p>
<pre><code>with open("local_en.json") as json_file:
parsed_dict = json.load(json_file)
print(parsed_dict) # works
print(parsed_dict["interface"]) # w... | [
{
"answer_id": 74460655,
"author": "Apex",
"author_id": 12799032,
"author_profile": "https://Stackoverflow.com/users/12799032",
"pm_score": 0,
"selected": false,
"text": "grep 'Test::Member' -A2\n"
},
{
"answer_id": 74460760,
"author": "Gilles Quenot",
"author_id": 465183... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15489558/"
] |
74,460,396 | <p>I try to get the square root of negative number. I got the absolute value of data and, for the positive number, I use the squart root of absolute number directly, otherwive add an negaitve sign to the result. However all numbers I got are negaitve...</p>
<p><a href="https://i.stack.imgur.com/k68sG.png" rel="nofollow... | [
{
"answer_id": 74460512,
"author": "Shawn Hemelstrand",
"author_id": 16631565,
"author_profile": "https://Stackoverflow.com/users/16631565",
"pm_score": 2,
"selected": false,
"text": "tidyverse #### Load Library ####\nlibrary(tidyverse)\n\n#### Set Random Seed ####\nset.seed(123)\n #### ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20519773/"
] |
74,460,419 | <p>I want to create a Quartz job which reads .csv files and moves them when file is processed. I tried this:</p>
<pre><code>@Override
public void execute(JobExecutionContext context) {
File directoryPath = new File("C:\\csv\\nov");
// Create a new subfolder called "processed" into source d... | [
{
"answer_id": 74460552,
"author": "rzwitserloot",
"author_id": 768644,
"author_profile": "https://Stackoverflow.com/users/768644",
"pm_score": 2,
"selected": false,
"text": "new FileReader(file.getAbsolutePath(), StandardCharsets.UTF_16)\n AutoClosable try (var br = new FileReader(file,... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1103606/"
] |
74,460,424 | <p>I have this schematic:</p>
<pre><code><div class="fila">
<div class="dos_tercios">
<article>
......
</article>
</div>
<div class="un_tercios">
<article>
......
</article>
... | [
{
"answer_id": 74460552,
"author": "rzwitserloot",
"author_id": 768644,
"author_profile": "https://Stackoverflow.com/users/768644",
"pm_score": 2,
"selected": false,
"text": "new FileReader(file.getAbsolutePath(), StandardCharsets.UTF_16)\n AutoClosable try (var br = new FileReader(file,... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20519810/"
] |
74,460,431 | <p>I have a method to set a BigDecimal number that is given as String:</p>
<pre class="lang-java prettyprint-override"><code>private Client mapClient(Client client){
ClientRequest clientRequest = new ClientRequest();
// Code
clientRequest.setCashAmount(castStringToBigDecimal(client.getCashAmount()));
// Mor... | [
{
"answer_id": 74460707,
"author": "rzwitserloot",
"author_id": 768644,
"author_profile": "https://Stackoverflow.com/users/768644",
"pm_score": 2,
"selected": true,
"text": ".replaceAll .replace(\".\", \",\") toString() String.format(\"%f\") (Type) expr; convertTo long"
}
] | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16862042/"
] |
74,460,454 | <p>I'm trying to run some asynchronous functions in her asynchronous function, the problem is, how did I understand that functions don't run like that, then how do I do it? I don't want to make the maze_move function asynchronous.</p>
<pre><code>async def no_stop():
#some logic
await asyncio.sleep(4)
async def... | [
{
"answer_id": 74460618,
"author": "Booboo",
"author_id": 2823719,
"author_profile": "https://Stackoverflow.com/users/2823719",
"pm_score": 1,
"selected": false,
"text": "def maze_move():\n loop = asyncio.get_event_loop()\n loop.run_until_complete(no_stop())\n loop.run_until_com... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16853299/"
] |
74,460,509 | <p>I implemented a new feature to our CRM and everything works as it should on Safari (macOS), but it throws <code>Uncaught TypeError: X is not a function</code> on every other browser we tested it on (Chrome, Firefox, Edge). This is the piece of code that is the culprit:</p>
<pre class="lang-js prettyprint-override"><... | [
{
"answer_id": 74460563,
"author": "Cerbrus",
"author_id": 1835379,
"author_profile": "https://Stackoverflow.com/users/1835379",
"pm_score": 2,
"selected": false,
"text": "if (window.changeLabel === 'undefined') {\n window.changeLabel = function() {\n // Do something\n }\n}\n\nchang... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460509",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13604898/"
] |
74,460,510 | <p>Hello stackoverflow community! I've been creating my own fullstack application for a while now, on the NEXTjs framework. This is going pretty well!! Unfortunately, I got stuck on a JSON import object for a treeview component. The treeview component must be populated using a specific nested structure, along with whic... | [
{
"answer_id": 74460563,
"author": "Cerbrus",
"author_id": 1835379,
"author_profile": "https://Stackoverflow.com/users/1835379",
"pm_score": 2,
"selected": false,
"text": "if (window.changeLabel === 'undefined') {\n window.changeLabel = function() {\n // Do something\n }\n}\n\nchang... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11874568/"
] |
74,460,520 | <p>I have a XML with many records as nodes in it. I need to save each record in xml format a SQL server table in column of XML datatype .</p>
<p>I can perform this task in SSIS using "XML Task Editor" to count all the nodes and using "For Loop Container" and read Node value using "XML Task Edit... | [
{
"answer_id": 74461938,
"author": "Gerballi",
"author_id": 20358885,
"author_profile": "https://Stackoverflow.com/users/20358885",
"pm_score": 0,
"selected": false,
"text": "select node_table.xml_node_column.query('.') node \nfrom xmldocument\ncross apply xmldocument.nodes('/root/RECORD... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7368821/"
] |
74,460,531 | <p>I have to select only the characters contained from <code>></code> to the last dot (not the first dot).</p>
<p>I tried this pattern</p>
<pre><code>^>[a-zA-Z]+$
</code></pre>
<p>but something doesn't work. Can I get some help? Thank you.</p>
<pre><code>Lorem ipsum dolor sit amet, consectetuer adipiscing elit,
s... | [
{
"answer_id": 74461938,
"author": "Gerballi",
"author_id": 20358885,
"author_profile": "https://Stackoverflow.com/users/20358885",
"pm_score": 0,
"selected": false,
"text": "select node_table.xml_node_column.query('.') node \nfrom xmldocument\ncross apply xmldocument.nodes('/root/RECORD... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460531",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20483494/"
] |
74,460,575 | <p>I was learning python as a beginner through YouTube. In the video I was following the output was shown in terminal, but not in my case. It doesn't even accept taking in data for the variable. What am I doing wrong?</p>
<p>the code was simply :</p>
<pre><code>a = input("Enter name")
print(a)
</code></pre>
<... | [
{
"answer_id": 74461938,
"author": "Gerballi",
"author_id": 20358885,
"author_profile": "https://Stackoverflow.com/users/20358885",
"pm_score": 0,
"selected": false,
"text": "select node_table.xml_node_column.query('.') node \nfrom xmldocument\ncross apply xmldocument.nodes('/root/RECORD... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19583963/"
] |
74,460,587 | <p>I have collection in my Child view.</p>
<pre><code> <CollectionView SelectionMode="Single" SelectedItem="{Binding Source={Reference sideview}, Path=myViewModel.SelectedItem.FileName}"
ItemsSource="{Binding Source={x:Reference sideview}, Path=myViewModel.Items }"... | [
{
"answer_id": 74461938,
"author": "Gerballi",
"author_id": 20358885,
"author_profile": "https://Stackoverflow.com/users/20358885",
"pm_score": 0,
"selected": false,
"text": "select node_table.xml_node_column.query('.') node \nfrom xmldocument\ncross apply xmldocument.nodes('/root/RECORD... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19836184/"
] |
74,460,589 | <p>I have two tables</p>
<p><strong>trade_table</strong> as</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>id</th>
<th>start_date</th>
<th>transacted_date</th>
</tr>
</thead>
<tbody>
<tr>
<td>A1</td>
<td>2022-02-14</td>
<td>2022-02-17</td>
</tr>
<tr>
<td>A1</td>
<td>2022-02-17</td>
<td>202... | [
{
"answer_id": 74461938,
"author": "Gerballi",
"author_id": 20358885,
"author_profile": "https://Stackoverflow.com/users/20358885",
"pm_score": 0,
"selected": false,
"text": "select node_table.xml_node_column.query('.') node \nfrom xmldocument\ncross apply xmldocument.nodes('/root/RECORD... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6463651/"
] |
74,460,596 | <p>Im doing a notes APP in react that every note contains title and text and another functions that is not relevant for the question
The problem I am facing is that every time I change the title input its changes the title of all my previous results . My text input its working as expected . Can anyone give me a help in... | [
{
"answer_id": 74461938,
"author": "Gerballi",
"author_id": 20358885,
"author_profile": "https://Stackoverflow.com/users/20358885",
"pm_score": 0,
"selected": false,
"text": "select node_table.xml_node_column.query('.') node \nfrom xmldocument\ncross apply xmldocument.nodes('/root/RECORD... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20003970/"
] |
74,460,633 | <p>While trying to import a OWL-file into Stardog using Stardog Studio, I receive the following error message</p>
<blockquote>
<p>The parser has encountered more than "100,000" entity expansions in
this document; this is the limit imposed by the application.</p>
</blockquote>
<p>According to the Stardog forum... | [
{
"answer_id": 74461938,
"author": "Gerballi",
"author_id": 20358885,
"author_profile": "https://Stackoverflow.com/users/20358885",
"pm_score": 0,
"selected": false,
"text": "select node_table.xml_node_column.query('.') node \nfrom xmldocument\ncross apply xmldocument.nodes('/root/RECORD... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5585819/"
] |
74,460,676 | <p>I have JSON as follows</p>
<pre><code>dict =[
{'name':'Test01-Serial01'
},
{'name':'Tests04-Serial04'
}
]
</code></pre>
<p>First I wanted to separate the name with <code>-</code> and then with the index 0 that is <code>Test01</code>
I wanted to delete the dictionary which don't follow the rule in <code>name</code>
R... | [
{
"answer_id": 74461938,
"author": "Gerballi",
"author_id": 20358885,
"author_profile": "https://Stackoverflow.com/users/20358885",
"pm_score": 0,
"selected": false,
"text": "select node_table.xml_node_column.query('.') node \nfrom xmldocument\ncross apply xmldocument.nodes('/root/RECORD... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14831308/"
] |
74,460,679 | <p>I I have a pandas dataframe, (df) that has three columns (user, values, and group name), the values column with multiple comma-separated values in each row.</p>
<pre><code>df = pd.DataFrame({'user': ['user_1', 'user_2', 'user_3', 'user_4', 'user_5', 'user_6'],
'values': [[1, 0, 2, 0], [1, 8, 0, 2... | [
{
"answer_id": 74460882,
"author": "Nuri Taş",
"author_id": 19255749,
"author_profile": "https://Stackoverflow.com/users/19255749",
"pm_score": 2,
"selected": false,
"text": "apply df['distance_values'] = [[5.0, 3.8439042651970405, 5.744562646538029],\n[4.58257569495584, 6.00463154573201... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17289012/"
] |
74,460,682 | <p>I have the following xml.</p>
<pre><code><root>
<!-- E, F, G, H-->
<node1>E</node1>
<!-- J, K, M ,L-->
<node2>J</node2>
</root>
</code></pre>
<p>Node 1 can have E,F,G,H values and node 2 can have J,K,M,L.</p>
<p>I would like to choose a single node base... | [
{
"answer_id": 74461062,
"author": "MJG",
"author_id": 20283130,
"author_profile": "https://Stackoverflow.com/users/20283130",
"pm_score": -1,
"selected": false,
"text": "takeOrderedString(node1, node2) <xsl:value-of select=\"takeOrderedString(root/node1,root/node2)\" />\n"
},
{
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1466580/"
] |
74,460,736 | <p>How to create a list with a given length? I want my list to take only 3 variables, it should not expand.</p>
<p>How to do that in Dart / Flutter?</p>
| [
{
"answer_id": 74461062,
"author": "MJG",
"author_id": 20283130,
"author_profile": "https://Stackoverflow.com/users/20283130",
"pm_score": -1,
"selected": false,
"text": "takeOrderedString(node1, node2) <xsl:value-of select=\"takeOrderedString(root/node1,root/node2)\" />\n"
},
{
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460736",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16968554/"
] |
74,460,752 | <pre><code>import java.io. {FileInputStream, FileOutputStream, ObjectInputStream, ObjectOutputStream}
object SymbolSerializeDemo {
def main(args: Array[String]): Unit = {
val fileName = "file.ser"
val symbolCheck: Symbol = Symbol("someSymbol")
//serializeToFile(symbolCheck, fileName)
... | [
{
"answer_id": 74471051,
"author": "Dmytro Mitin",
"author_id": 5249621,
"author_profile": "https://Stackoverflow.com/users/5249621",
"pm_score": 0,
"selected": false,
"text": "// Scala 2.12\nimport sys.process._\n\nSymbol(\"scala-2.11.12/bin/scala path_to_deserializer/Deserializer.scala... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3771712/"
] |
74,460,766 | <p>I have two datatypes called <code>DragonVector</code> and <code>UnbiasedDragon</code> and I am using visitor pattern for dynamic type inference.</p>
<p>I want to extend a <code>DragonVector</code> only by a <code>DragonVector</code> and similarly for <code>UnbiasedDragon</code>.</p>
<p>I have the following code for ... | [
{
"answer_id": 74471051,
"author": "Dmytro Mitin",
"author_id": 5249621,
"author_profile": "https://Stackoverflow.com/users/5249621",
"pm_score": 0,
"selected": false,
"text": "// Scala 2.12\nimport sys.process._\n\nSymbol(\"scala-2.11.12/bin/scala path_to_deserializer/Deserializer.scala... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460766",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9222360/"
] |
74,460,778 | <p><strong>How to solve (TypeError: must be a real number, not a tuple) error</strong></p>
<pre><code>class Vehicle:
name = ""
kind = "car"
color = ""
value = 100.00
def description(self):
desc_str = "%s is a %s %s worth $%.2f." % (self.name, self.colo... | [
{
"answer_id": 74471051,
"author": "Dmytro Mitin",
"author_id": 5249621,
"author_profile": "https://Stackoverflow.com/users/5249621",
"pm_score": 0,
"selected": false,
"text": "// Scala 2.12\nimport sys.process._\n\nSymbol(\"scala-2.11.12/bin/scala path_to_deserializer/Deserializer.scala... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460778",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15412130/"
] |
74,460,789 | <p>I have 5 tables in a row, all have 100% height which works correctly in the browser, the elements are stretched to fill all the available space but they wont stretch in print view.</p>
<p><a href="https://i.stack.imgur.com/9d1cg.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9d1cg.png" alt="The table's pr... | [
{
"answer_id": 74539782,
"author": "Anton",
"author_id": 15545116,
"author_profile": "https://Stackoverflow.com/users/15545116",
"pm_score": 2,
"selected": false,
"text": "td {\n height: 2rem;\n line-height: 1;\n}\n .flex {\n display: flex;\n gap: 1rem;\n /* add some top margin to s... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10581265/"
] |
74,460,828 | <p>I am trying to pass a text string to a PHP Variable using AJAX, but I keep getting this error when POST fires:</p>
<blockquote>
<p>Warning: Undefined array key "mydata"</p>
</blockquote>
<p>the alert fires and displays the value correctly, but then the PHP page displays the mentioned error. What's wrong he... | [
{
"answer_id": 74461176,
"author": "José Carlos PHP",
"author_id": 2826112,
"author_profile": "https://Stackoverflow.com/users/2826112",
"pm_score": 0,
"selected": false,
"text": "$_POST['mydata'] if (!empty($_POST)) {\n $taskname = $_POST['mydata'];\n echo $taskname;\n}\n $_POST['... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12124168/"
] |
74,460,862 | <p>I have a simple dash app containing a data table.Two user inputs make it possible to add a row or a column. Juste like when I add a row I get default values (here 0 hours) for every column, I would also like to have default values for all rows when adding a new column. Here is the code:</p>
<pre><code>import pathlib... | [
{
"answer_id": 74461176,
"author": "José Carlos PHP",
"author_id": 2826112,
"author_profile": "https://Stackoverflow.com/users/2826112",
"pm_score": 0,
"selected": false,
"text": "$_POST['mydata'] if (!empty($_POST)) {\n $taskname = $_POST['mydata'];\n echo $taskname;\n}\n $_POST['... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10811647/"
] |
74,460,884 | <p>I have this function right here:</p>
<pre class="lang-js prettyprint-override"><code>const uploadedFiles: string[] = [];
await Promise.all(
selectedImageUrls.map(async (selectedUrl) => {
const fileName = selectedUrl.startsWith("data:image/png")
? `${id}-${Date.now()}.png`
:... | [
{
"answer_id": 74461176,
"author": "José Carlos PHP",
"author_id": 2826112,
"author_profile": "https://Stackoverflow.com/users/2826112",
"pm_score": 0,
"selected": false,
"text": "$_POST['mydata'] if (!empty($_POST)) {\n $taskname = $_POST['mydata'];\n echo $taskname;\n}\n $_POST['... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16170683/"
] |
74,460,908 | <p>i am trying to render the sub array as an individual item, but it keeps rendering all the sub array items inside one list
`</p>
<pre><code> const items = [
{ id: 1, header: "Global", lst: "All Fruits" },
{
id: 2,
header: "By Taste",
lst: ["sweet", &qu... | [
{
"answer_id": 74461176,
"author": "José Carlos PHP",
"author_id": 2826112,
"author_profile": "https://Stackoverflow.com/users/2826112",
"pm_score": 0,
"selected": false,
"text": "$_POST['mydata'] if (!empty($_POST)) {\n $taskname = $_POST['mydata'];\n echo $taskname;\n}\n $_POST['... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13429853/"
] |
74,460,910 | <p>I have ran into a problem. I have a website and some buttons to the right.
using JS, I want to change the style of the button we click on.
When you land on the page, the home button will have a <code>background-color: green</code>. But when you click another button, the home button <code>background-color</code> beco... | [
{
"answer_id": 74461520,
"author": "Ankit",
"author_id": 19757319,
"author_profile": "https://Stackoverflow.com/users/19757319",
"pm_score": 2,
"selected": false,
"text": "this.className += 'active-btn'; this.className += ' active-btn'; const sections = document.querySelectorAll('.sectio... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19603779/"
] |
74,460,931 | <p>I have JSON stored in a table. The JSON is nested and has the following structure</p>
<pre class="lang-json prettyprint-override"><code>[
{
"name": "abc",
"ques": [
{
"qId": 100
},
{
"qId": 200
}
]
},{
"... | [
{
"answer_id": 74461228,
"author": "bitifet",
"author_id": 4243912,
"author_profile": "https://Stackoverflow.com/users/4243912",
"pm_score": 1,
"selected": false,
"text": "jsonb_set(\n jsonb_set(\n COLUMN_NAME\n , '{0,ques,qId}'\n , '101'\n )\n , '{1,ques,qI... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9945033/"
] |
74,460,956 | <p>I cannot find how to swap two words in a string using <strong>Python</strong>, without using any external/imported functions.</p>
<hr />
<p>What I have is a string that I get from a text document.
For example the string is:</p>
<p><em><strong>line</strong> = "Welcome to your personal dashboard, where you can fi... | [
{
"answer_id": 74461025,
"author": "Ridhwan Saal",
"author_id": 19698570,
"author_profile": "https://Stackoverflow.com/users/19698570",
"pm_score": 0,
"selected": false,
"text": "{word1} {word2} line = line.replace(longest, \"{word1}\").replace(shortest, \"{word2}\")\nline = line.format(... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20520080/"
] |
74,460,972 | <p>my problem is when I send an object of Order to my function, it comes Null without updating my values, how can I edit them?</p>
<p>I try to update my Object. I expecting get in my function Object of Order with the value and not null</p>
<p>here is my function that needs to get the Object.</p>
<pre><code> [Rel... | [
{
"answer_id": 74461025,
"author": "Ridhwan Saal",
"author_id": 19698570,
"author_profile": "https://Stackoverflow.com/users/19698570",
"pm_score": 0,
"selected": false,
"text": "{word1} {word2} line = line.replace(longest, \"{word1}\").replace(shortest, \"{word2}\")\nline = line.format(... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74460972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13622774/"
] |
74,461,040 | <p>I have my table like this:</p>
<pre><code>WITH my_table (event_date, coordinates) AS (
values
('2021-10-01','{"x":"1.0","y":"0.049"}'),
('2021-10-01','{"x":"0.0","y":"0.865"}'),
('2021-10-02','{"y":"0.5&qu... | [
{
"answer_id": 74461174,
"author": "Elie M",
"author_id": 1951045,
"author_profile": "https://Stackoverflow.com/users/1951045",
"pm_score": 2,
"selected": false,
"text": "select event_date,json_extract_scalar(coordinates,'$.attributes[\"x\"]') as x, json_extract_scalar(coordinates,'$.att... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5011113/"
] |
74,461,105 | <p>I want to get user data from the return of creating a user, as below:</p>
<pre><code>const newUserRes = await db.collection('users').add(userData);
</code></pre>
<p>Do you have any suggestions for me to get the new user document straight away from <code>newUserRes</code>?</p>
<p>I don't feel right to call a new read... | [
{
"answer_id": 74461174,
"author": "Elie M",
"author_id": 1951045,
"author_profile": "https://Stackoverflow.com/users/1951045",
"pm_score": 2,
"selected": false,
"text": "select event_date,json_extract_scalar(coordinates,'$.attributes[\"x\"]') as x, json_extract_scalar(coordinates,'$.att... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10434805/"
] |
74,461,144 | <p>Say I have folders named <code>user/john/john1</code>, <code>john2</code> and <code>john3</code> and I have one file called <code>dog.txt</code> inside each of them. I want to create a separate folder called <code>johns_dogs</code> and copy all the <code>dog.txt</code> from each folder into this new folder, but with... | [
{
"answer_id": 74462246,
"author": "j_b",
"author_id": 16482938,
"author_profile": "https://Stackoverflow.com/users/16482938",
"pm_score": 3,
"selected": true,
"text": "for f in ./user/john/*/dog.txt ; do \n new=\"${f//\\//_}\"\n new=\"${new/._user_john_/./johns_dogs/}\"\n cp \"... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18801691/"
] |
74,461,153 | <p>I want to create a Quartz job that reads .csv files and moves them when the file is processed. I tried this:</p>
<pre><code>@Override
public void execute(JobExecutionContext context) {
File directoryPath = new File("C:\\csv\\nov");
// Create a new subfolder called "processed" into source... | [
{
"answer_id": 74461254,
"author": "YCF_L",
"author_id": 5558072,
"author_profile": "https://Stackoverflow.com/users/5558072",
"pm_score": 3,
"selected": true,
"text": "try {\n Path path = Path.of(directoryPath.getAbsolutePath() + \"/processed\");\n\n // Check first if the file not... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461153",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1103606/"
] |
74,461,161 | <p>I want to make my own dataset so I can use it for training and testing purposes. The problem is that I can handpick the points for training and testing to be a certain number of points (4096 in my case) but for new data it is not possible as I want to go for a real-time scenario and handpicking points is not an opti... | [
{
"answer_id": 74461254,
"author": "YCF_L",
"author_id": 5558072,
"author_profile": "https://Stackoverflow.com/users/5558072",
"pm_score": 3,
"selected": true,
"text": "try {\n Path path = Path.of(directoryPath.getAbsolutePath() + \"/processed\");\n\n // Check first if the file not... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20519351/"
] |
74,461,168 | <p>let's assume I have big data frame X (around 500,000 rows), and small data frame y (around 3000 rows).
I need to do join between those df's, and then I need to filter on the result df.
I recently realized I can do the filtering on X and that will give me the same result as filtering on the result joined df.
the filt... | [
{
"answer_id": 74461254,
"author": "YCF_L",
"author_id": 5558072,
"author_profile": "https://Stackoverflow.com/users/5558072",
"pm_score": 3,
"selected": true,
"text": "try {\n Path path = Path.of(directoryPath.getAbsolutePath() + \"/processed\");\n\n // Check first if the file not... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17593430/"
] |
74,461,185 | <p>I want to convert a list with numbers to a matrix. This is my code:</p>
<pre><code> def converttomtx(mylist, rows, columns):
mtx = []
for r in range(rows):
lrow = []
for c in range(columns):
lrow.append(mylist[rows * r + c])
mtx.append(lrow)
retu... | [
{
"answer_id": 74461285,
"author": "Yevhen Kuzmovych",
"author_id": 4727702,
"author_profile": "https://Stackoverflow.com/users/4727702",
"pm_score": 0,
"selected": false,
"text": "mylist[rows * r + c] mylist[columns * r + c] columns mylist"
},
{
"answer_id": 74461289,
"autho... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10448570/"
] |
74,461,187 | <p>I have a controller class in a JavaFX program which is handling numerous Nodes. I created a method <code>addEventListeners</code> which looks like:</p>
<pre><code> cleanButton.setOnAction(e -> {
...
});
advSett.setOnAction(e -> {
...
});
imageLoaderItem.setOnAction(e -> ... | [
{
"answer_id": 74461788,
"author": "Vinz",
"author_id": 17173476,
"author_profile": "https://Stackoverflow.com/users/17173476",
"pm_score": 1,
"selected": false,
"text": "private void addEventListener(final ButtonBase element) {\n element.setOnAction(e -> {\n //do the thing\n ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10276248/"
] |
74,461,209 | <ol start="4">
<li>Write an SP that given input an integer n prints in the message window the first n numbers of the Fibonacci sequence, where each number f in the series is defined as follows: f0 = 0 f1 = 1 fn = fn-1</li>
</ol>
<ul>
<li>fn-2 (with n>1) For example, the first 10 numbers in the Fibonacci series are: ... | [
{
"answer_id": 74462009,
"author": "Stu",
"author_id": 15332650,
"author_profile": "https://Stackoverflow.com/users/15332650",
"pm_score": 2,
"selected": false,
"text": "create or alter procedure dbo.pyramid(@i int) as\nwith n as (select * from (values(1),(2),(3),(4),(5),(6),(7),(8),(9))... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461209",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20426481/"
] |
74,461,258 | <p>This one's been giving me problems for a week, cross my fingers one of you can help me here...</p>
<p>This application was built on Laravel and the front scaffolded using Vue.</p>
<p>Thing is I have an array of objects that is supposed to be sent to the backend in order for it to be stored in a database. Thing is th... | [
{
"answer_id": 74462009,
"author": "Stu",
"author_id": 15332650,
"author_profile": "https://Stackoverflow.com/users/15332650",
"pm_score": 2,
"selected": false,
"text": "create or alter procedure dbo.pyramid(@i int) as\nwith n as (select * from (values(1),(2),(3),(4),(5),(6),(7),(8),(9))... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16549000/"
] |
74,461,265 | <pre><code> S1 S2 S3 S4
Cohort 1 2 1 1
G1 23 44 67 13
G2 11 78 88 30
G3 45 46 56 66
G4 67 77 22 45
</code></pre>
<p>This is a demo dataset that I am using where S1, S2... are samples, cohort is the cohort variable which is 1 or 2, and G1, G2... are genes. The values ar... | [
{
"answer_id": 74461557,
"author": "Gregor Thomas",
"author_id": 903061,
"author_profile": "https://Stackoverflow.com/users/903061",
"pm_score": 2,
"selected": false,
"text": "library(tidyr)\nlibrary(dplyr)\nlibrary(tibble)\ndf = t(data) |> \n as.data.frame() |> \n rownames_to_column(v... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20511527/"
] |
74,461,272 | <p>I have a txt.file that looks like this:</p>
<pre><code>data1 data2 data3
data4 data5 data6
data7 data8 data9
data10 data11 data12
data13 data14 data15
data16 data17 data18
data19 data20 data21
data22 data23 data24
.
.
.
</code></pre>
<p>and I want to rearrange my txt file so that from data1 to data12... | [
{
"answer_id": 74461418,
"author": "berkelem",
"author_id": 4844311,
"author_profile": "https://Stackoverflow.com/users/4844311",
"pm_score": 1,
"selected": false,
"text": "with open(\"text.txt\" \"r\") as f: # load data\n lines = f.readlines()\n\nnewlines = []\nfor i in range(0, len... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20520264/"
] |
74,461,301 | <p>I'm having an introductory course in python right now and i get into some troubles with the task.</p>
<p>I have two strings in format:</p>
<pre><code>a b c d e
f g h i l
</code></pre>
<p>I need to get this strings from .txt file,convert them as matrix to vertical format like this:</p>
<pre><code>a f
b g
c h
d i
e ... | [
{
"answer_id": 74461418,
"author": "berkelem",
"author_id": 4844311,
"author_profile": "https://Stackoverflow.com/users/4844311",
"pm_score": 1,
"selected": false,
"text": "with open(\"text.txt\" \"r\") as f: # load data\n lines = f.readlines()\n\nnewlines = []\nfor i in range(0, len... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20520103/"
] |
74,461,310 | <p>during my internship, I have to launch a build on kubernetes. My setup is with K3s.</p>
<p>I must have an error in my deployment file, do you have an explanation please?</p>
<p>Thank you.</p>
<p>deployment.yml</p>
<pre><code>---
kind: Namespace
apiVersion: v1
metadata:
name: demo
labels:
name: demo
---
kind:... | [
{
"answer_id": 74461418,
"author": "berkelem",
"author_id": 4844311,
"author_profile": "https://Stackoverflow.com/users/4844311",
"pm_score": 1,
"selected": false,
"text": "with open(\"text.txt\" \"r\") as f: # load data\n lines = f.readlines()\n\nnewlines = []\nfor i in range(0, len... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20280195/"
] |
74,461,327 | <pre><code>[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status404NotFound)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status303SeeOther)]
[HttpPost]
[Route("Register... | [
{
"answer_id": 74461840,
"author": "Lonli-Lokli",
"author_id": 462669,
"author_profile": "https://Stackoverflow.com/users/462669",
"pm_score": 3,
"selected": true,
"text": " if (!ModelState.IsValid)\n {\n return BadRequest(ModelState);\n }\n builder.Services.AddController... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461327",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1383383/"
] |
74,461,361 | <p>I have one array like below</p>
<p><code>[["GJ","MP"],["HR","MH"],["MP","KL"],["KL","HR"]]</code></p>
<p>And I want result like below</p>
<p><code>"GJ, MP, KL, HR, MH"</code></p>
<p>First element of array <code>["GJ",... | [
{
"answer_id": 74461434,
"author": "dangarfield",
"author_id": 3265253,
"author_profile": "https://Stackoverflow.com/users/3265253",
"pm_score": 1,
"selected": false,
"text": "d = [[\"GJ\",\"MP\"],[\"HR\",\"MH\"],[\"MP\",\"KL\"],[\"KL\",\"HR\"]]\no = [] # List for output\nc = d[0][0] # S... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4265308/"
] |
74,461,398 | <p>I am making a survey in Spyder. I need to make it so the output does not allow for anyone under 18 to complete the survey.... I can get it to print the error message but the survey still continues...</p>
<p>As you can probably tell, I am a beginner.</p>
<pre><code>excluded_ages= '17''16''15''14''13''12''11''10''9''8... | [
{
"answer_id": 74461434,
"author": "dangarfield",
"author_id": 3265253,
"author_profile": "https://Stackoverflow.com/users/3265253",
"pm_score": 1,
"selected": false,
"text": "d = [[\"GJ\",\"MP\"],[\"HR\",\"MH\"],[\"MP\",\"KL\"],[\"KL\",\"HR\"]]\no = [] # List for output\nc = d[0][0] # S... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20520426/"
] |
74,461,402 | <p>Input CSV as below:</p>
<p><a href="https://i.stack.imgur.com/tOcp9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tOcp9.png" alt="enter image description here" /></a></p>
<p>Expected new CSV file :</p>
<p><a href="https://i.stack.imgur.com/oSWOf.png" rel="nofollow noreferrer"><img src="https://i... | [
{
"answer_id": 74461434,
"author": "dangarfield",
"author_id": 3265253,
"author_profile": "https://Stackoverflow.com/users/3265253",
"pm_score": 1,
"selected": false,
"text": "d = [[\"GJ\",\"MP\"],[\"HR\",\"MH\"],[\"MP\",\"KL\"],[\"KL\",\"HR\"]]\no = [] # List for output\nc = d[0][0] # S... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14917783/"
] |
74,461,411 | <p>I've made a container and there is text and a background image in the container. The text is in h3 tags. I want the text to stay hidden showing only image. When user hover over the container I want to display the text and background image has to little transparent.
How can I do that??
this is my CSS code so far... ... | [
{
"answer_id": 74461434,
"author": "dangarfield",
"author_id": 3265253,
"author_profile": "https://Stackoverflow.com/users/3265253",
"pm_score": 1,
"selected": false,
"text": "d = [[\"GJ\",\"MP\"],[\"HR\",\"MH\"],[\"MP\",\"KL\"],[\"KL\",\"HR\"]]\no = [] # List for output\nc = d[0][0] # S... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20520316/"
] |
74,461,429 | <p>I have my application.properties file in src/main/resources and i have my different active profile (application-dev.properties and application-prod.properties) in differenent directory as src/main/resources/properties.</p>
<p><strong>I'm using springboot version 2.7.5</strong></p>
<p>I tried to configure it in appli... | [
{
"answer_id": 74461434,
"author": "dangarfield",
"author_id": 3265253,
"author_profile": "https://Stackoverflow.com/users/3265253",
"pm_score": 1,
"selected": false,
"text": "d = [[\"GJ\",\"MP\"],[\"HR\",\"MH\"],[\"MP\",\"KL\"],[\"KL\",\"HR\"]]\no = [] # List for output\nc = d[0][0] # S... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461429",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18405240/"
] |
74,461,438 | <p>I am trying to create a table where each cell consists of a letter and a number. see an image of the target table:</p>
<p><img src="https://i.stack.imgur.com/HOuJY.jpg" alt="target table" /></p>
<p>Here is the HTML code that I am using. It's a simple button that when clicked, should call the <code>populateTable()</c... | [
{
"answer_id": 74461566,
"author": "aloisdg",
"author_id": 1248177,
"author_profile": "https://Stackoverflow.com/users/1248177",
"pm_score": 2,
"selected": false,
"text": "creatElement InnerHtml const letters = [\"a\", \"b\", \"c\", \"d\", \"e\"]\nconst numbers = [\"1\", \"2\", \"3\", \"... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20145017/"
] |
74,461,445 | <p>I have dataframe</p>
<pre><code>0 г. Санкт-Петербург, ул. Карпинского,
1 г. Челябинск, проспект Комсомольский,
2 г. Екатеринбург, ул. Щербакова,
3 г. Санкт-Петербург, ул. Латышских Стрелков,
4 г. Москва, вн.тер.г. муниципальный округ Изма... | [
{
"answer_id": 74461476,
"author": "Celius Stingher",
"author_id": 11897007,
"author_profile": "https://Stackoverflow.com/users/11897007",
"pm_score": 0,
"selected": false,
"text": "split() data['col'] = [x.split()[1][:-1] for x in data['address']]\n col\n... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20407815/"
] |
74,461,446 | <p>I'm trying to teach myself React and I have a 'Bop it' button function that changes the text on each click.</p>
<pre><code> function BopButton() {
const [action, setAction] = React.useState('');
const actions = ['Bop', 'Twist', 'Spin', 'Pull'];
function handleClick() {
const ... | [
{
"answer_id": 74461471,
"author": "kind user",
"author_id": 6695924,
"author_profile": "https://Stackoverflow.com/users/6695924",
"pm_score": 3,
"selected": true,
"text": "actions .text setAction(actions[Math.floor(Math.random() * len)]);\n"
},
{
"answer_id": 74461546,
"auth... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20034635/"
] |
74,461,448 | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>let pppp = {
name: "duanxiao",
age: 1,
job: {
title: "~~~"
}
};
let ppppCopy = {};
({
name: ppppCopy.... | [
{
"answer_id": 74461555,
"author": "Evgeni Dikerman",
"author_id": 1761692,
"author_profile": "https://Stackoverflow.com/users/1761692",
"pm_score": 2,
"selected": false,
"text": "pppp job job pppp ppppCopy let pppp = {\n name: \"duanxiao\",\n age: 1,\n job: {\n title: \"... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16033355/"
] |
74,461,463 | <p>Using the <code>.resample()</code> method yields a DataFrame with a DatetimeIndex and a frequency.</p>
<p>Does anyone have an idea on how to iterate through the values of that DatetimeIndex ?</p>
<pre class="lang-py prettyprint-override"><code>df = pd.DataFrame(
data=np.random.randint(0, 10, 100),
index=pd.d... | [
{
"answer_id": 74462253,
"author": "skillsmuggler",
"author_id": 11523400,
"author_profile": "https://Stackoverflow.com/users/11523400",
"pm_score": 1,
"selected": false,
"text": "Datetime .date .tolist() >>> df.resample('M').mean().index.date.tolist()\n[datetime.date(2022, 1, 31), datet... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14825527/"
] |
74,461,468 | <p>It's 2022 and sadly I'm learning AngularJS (already past end of life!)</p>
<p>I need need to use what might be called a dynamic element/component. Pseudocode example:</p>
<p>In controller:</p>
<pre><code> this.theElementName = 'b';
</code></pre>
<p>In the template:</p>
<pre><code> <{{$ctrl.theElementName}}>... | [
{
"answer_id": 74473243,
"author": "artfulrobot",
"author_id": 623519,
"author_profile": "https://Stackoverflow.com/users/623519",
"pm_score": 0,
"selected": false,
"text": "ng-include <ng-include src=\"'/path/to/' + theElementName + '.html'\"></ng-include>\n"
},
{
"answer_id": 7... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/623519/"
] |
74,461,512 | <p>i Download 2 files from instgram</p>
<pre><code>504273856298686966_186593000.mp4
1445150401635783037_186593000.jpg
</code></pre>
<p>This part (_186593000) is dedicated to the user ID from which I downloaded the two files.
What I'm interested in is the part before (Underscore _) that specifies the date of the file</p... | [
{
"answer_id": 74461745,
"author": "Spomky-Labs",
"author_id": 2157818,
"author_profile": "https://Stackoverflow.com/users/2157818",
"pm_score": 1,
"selected": false,
"text": "exif_read_data"
}
] | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15119287/"
] |
74,461,516 | <p>All, I have a spreadsheet where I'm exporting a set of numbers. The spreadsheet tracks missing numbers and looks like this:</p>
<p>[NOTE: this spreadsheet can have 'X' number of columns so I never know the A1:XX range -- I may need to do Range.Find?]</p>
<pre><code>A1 |B1 |C1 |D1 |E1 ... | [
{
"answer_id": 74462431,
"author": "Ike",
"author_id": 16578424,
"author_profile": "https://Stackoverflow.com/users/16578424",
"pm_score": 2,
"selected": false,
"text": "findMissing Public Function findMissing(rgToCheck) As Variant\n\nDim arrSource As Variant\narrSource = rgToCheck.Value... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20007308/"
] |
74,461,578 | <p>I am trying this :</p>
<p>print " Enter Value "
num = gets.chomp</p>
<h1>also tried .kind_of? but didn't work</h1>
<p>if num.is_a? Float<br />
print " Number is in float "</p>
<h1>also tried .kind_of? but didn't work</h1>
<p>else num.is_a? Integer<br />
print " Number is in integer "</p... | [
{
"answer_id": 74461930,
"author": "BenFenner",
"author_id": 14837782,
"author_profile": "https://Stackoverflow.com/users/14837782",
"pm_score": 0,
"selected": false,
"text": "num = 6.6\nnum.is_a?(Integer)\n=> false\nnum.is_a?(Float)\n=> true\n num = 6\nnum.is_a?(Integer)\n=> true\nnum.i... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12018669/"
] |
74,461,586 | <p>Suppose I have this table:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Image</th>
<th>Perimeter</th>
</tr>
</thead>
<tbody>
<tr>
<td>a</td>
<td>1</td>
</tr>
<tr>
<td>b</td>
<td>1</td>
</tr>
<tr>
<td>b</td>
<td>2</td>
</tr>
<tr>
<td>d</td>
<td>3</td>
</tr>
<tr>
<td>e</td>
<td>1</td>
<... | [
{
"answer_id": 74461930,
"author": "BenFenner",
"author_id": 14837782,
"author_profile": "https://Stackoverflow.com/users/14837782",
"pm_score": 0,
"selected": false,
"text": "num = 6.6\nnum.is_a?(Integer)\n=> false\nnum.is_a?(Float)\n=> true\n num = 6\nnum.is_a?(Integer)\n=> true\nnum.i... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19943087/"
] |
74,461,587 | <p>I'm using the <code>cypress-fail-fast</code> plugin > <a href="https://github.com/javierbrea/cypress-fail-fast" rel="nofollow noreferrer">https://github.com/javierbrea/cypress-fail-fast</a> in my Typescript Cypress config, but it doesn't seem to be working.</p>
<pre><code>// cypress.config.ts
import { defineConfi... | [
{
"answer_id": 74461930,
"author": "BenFenner",
"author_id": 14837782,
"author_profile": "https://Stackoverflow.com/users/14837782",
"pm_score": 0,
"selected": false,
"text": "num = 6.6\nnum.is_a?(Integer)\n=> false\nnum.is_a?(Float)\n=> true\n num = 6\nnum.is_a?(Integer)\n=> true\nnum.i... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/848706/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.