qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,434,147 | <p>I tried convert 2018-08-22 11:13:00 (datetime64[ns]) to only 20180822 (object).</p>
<p>I have this code:</p>
<pre><code>df_ICF_news['date'] = df_ICF_news['date'].apply(lambda x: pd.to_datetime(str(x), format='%Y%m%d'))
</code></pre>
<p>but don`t work:</p>
<pre><code>ValueError: time data '2022-10-28 11:09:00' does n... | [
{
"answer_id": 74434176,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 3,
"selected": true,
"text": "zip() result = list(zip(newl, newl[1:]))\n"
},
{
"answer_id": 74434194,
"author": "KillerRebooted",
"a... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434147",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20390958/"
] |
74,434,150 | <p>So i have a class exercice that i have to make a program that gives me all the information about the youngest person of a group, i could do the age, it gives me the youngest age but with the names and citizen cards could not get what i've wanted.</p>
<p>thats the code the way i tried do make it.</p>
<pre><code>perso... | [
{
"answer_id": 74434253,
"author": "Kraigolas",
"author_id": 11659881,
"author_profile": "https://Stackoverflow.com/users/11659881",
"pm_score": 2,
"selected": false,
"text": "min name i persons[i] numbers_of_citizen_card[i] min_person = None\nmin_age = float('inf')\nmin_card_number = No... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20502058/"
] |
74,434,160 | <pre><code>#include<stdio.h>
int main()
{
int a=10,b=4,c=2;
b != !a;
c =! !a;
printf("b = %d\t c = %d",b,c);
}
</code></pre>
<p><strong>I need output of this question explain me the outcome??</strong></p>
| [
{
"answer_id": 74434370,
"author": "Lundin",
"author_id": 584518,
"author_profile": "https://Stackoverflow.com/users/584518",
"pm_score": 1,
"selected": false,
"text": "i+++ (i++)+ != ! = =! = ! (b) != (!a); // b not equal to (not a)\n(c) = (!!a); // assign (not not a) to c\n !="
},
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20502118/"
] |
74,434,162 | <p>I want to convert a nested JSON like this</p>
<pre><code>{
"dateSession": "14/11/2022",
"HRdata": {
"1": 86,
"2": 88,
"3": 86,
"4": 85
},
"SPO2data": {
"1": 98,
&q... | [
{
"answer_id": 74434392,
"author": "Jonathon Hibbard",
"author_id": 1244184,
"author_profile": "https://Stackoverflow.com/users/1244184",
"pm_score": 0,
"selected": false,
"text": "typeof key === 'object' && !Array.isArray(key) let result = {};\nconst keysToMap = ['HRdata', 'SPO2data'];\... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16786547/"
] |
74,434,168 | <p>I have a dataset with a categorical variable that is not nicely coded. The same category appears sometimes with upper case letters and sometimes with lower case (and several variations of it). Since I have a large dataset, I would like to harmonize the categories taking advantage of the categorical dtype - therefore... | [
{
"answer_id": 74434392,
"author": "Jonathon Hibbard",
"author_id": 1244184,
"author_profile": "https://Stackoverflow.com/users/1244184",
"pm_score": 0,
"selected": false,
"text": "typeof key === 'object' && !Array.isArray(key) let result = {};\nconst keysToMap = ['HRdata', 'SPO2data'];\... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20501720/"
] |
74,434,203 | <p>Below is a simplified example of a larger piece of code. Basically I'm calling one or more API endpoints and downloading a CSV file that gets written to an Azure Blob Container. If there's multiple files, the blob is appended for every new csv file loaded.</p>
<p>The issue is when I append the target blob I ended up... | [
{
"answer_id": 74434392,
"author": "Jonathon Hibbard",
"author_id": 1244184,
"author_profile": "https://Stackoverflow.com/users/1244184",
"pm_score": 0,
"selected": false,
"text": "typeof key === 'object' && !Array.isArray(key) let result = {};\nconst keysToMap = ['HRdata', 'SPO2data'];\... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4599104/"
] |
74,434,227 | <p>I have multiple select fields as star rating field for the users to select while giving a review like the below 2 select fields ( Though I have 5 in my code, adding only 2 here ). Now I am trying to get the values of each selections and attach the average of the selection in the hidden field with the name rating. Ho... | [
{
"answer_id": 74434392,
"author": "Jonathon Hibbard",
"author_id": 1244184,
"author_profile": "https://Stackoverflow.com/users/1244184",
"pm_score": 0,
"selected": false,
"text": "typeof key === 'object' && !Array.isArray(key) let result = {};\nconst keysToMap = ['HRdata', 'SPO2data'];\... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6021828/"
] |
74,434,240 | <p>I am trying to send an email with html code. In it I place my image. But when receiving a letter in the mail, the image is not displayed.</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-html lang-html prettypri... | [
{
"answer_id": 74434924,
"author": "Eugene Astafiev",
"author_id": 1603351,
"author_profile": "https://Stackoverflow.com/users/1603351",
"pm_score": 3,
"selected": true,
"text": "Content-ID <img src=\"cid:MyContenttId\">\n"
},
{
"answer_id": 74436460,
"author": "Sherlock_201"... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18680342/"
] |
74,434,242 | <p>I'm trying to install the package 'semPlot' in RStudio, and keep getting errors:</p>
<pre><code>** testing if installed package can be loaded from temporary location
*** arch - i386
Error: package or namespace load failed for 'rockchalk' in library.dynam(lib, package, package.lib):
DLL 'zip' not found: maybe not in... | [
{
"answer_id": 74434924,
"author": "Eugene Astafiev",
"author_id": 1603351,
"author_profile": "https://Stackoverflow.com/users/1603351",
"pm_score": 3,
"selected": true,
"text": "Content-ID <img src=\"cid:MyContenttId\">\n"
},
{
"answer_id": 74436460,
"author": "Sherlock_201"... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20502023/"
] |
74,434,245 | <p>I found there is <a href="https://docs.python.org/3/library/functions.html#object" rel="nofollow noreferrer"><strong>object()</strong></a> which is a built-in function in Python. *You can find <a href="https://docs.python.org/3/library/functions.html#object" rel="nofollow noreferrer"><strong>object()</strong></a> in... | [
{
"answer_id": 74434336,
"author": "jthulhu",
"author_id": 5956261,
"author_profile": "https://Stackoverflow.com/users/5956261",
"pm_score": 2,
"selected": false,
"text": "object object() object"
},
{
"answer_id": 74564485,
"author": "Kai - Kazuya Ito",
"author_id": 81724... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8172439/"
] |
74,434,247 | <p>I am trying to download a report that is generated daily on the first request to the report's endpoint.</p>
<p>When the report is being created, the endpoint returns a <code>HTTP 202</code>.</p>
<p>I have the following code to handle some errors and redirects, as well as trying to "sleep" for 60 seconds be... | [
{
"answer_id": 74434866,
"author": "Heiko Theißen",
"author_id": 16462950,
"author_profile": "https://Stackoverflow.com/users/16462950",
"pm_score": 3,
"selected": true,
"text": "await downloadFile(url, reportFileName) await sleep(timeToSleepMs)\nreturn downloadFile(url, targetFile)\n aw... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7242101/"
] |
74,434,255 | <p>It is possible to create a QR code which contains both some text and photo (which is small logo) in python?</p>
<p>I mean text, which is not part of the photo. But I will have separately text (string variable) and photo (e.g. *.png).</p>
<p>So far I saw only the examples where it was possible to create a QR code fro... | [
{
"answer_id": 74437527,
"author": "JNevill",
"author_id": 2221001,
"author_profile": "https://Stackoverflow.com/users/2221001",
"pm_score": 2,
"selected": true,
"text": "import base64\n\n#open image and convert to b64 string\nwith open(\"small.png\", \"rb\") as img_file:\n my_string ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18582965/"
] |
74,434,278 | <p><strong>This is my sonar.properties file</strong></p>
<pre><code>sonar.host.url=https://sonar.cloud.health.ge.com/
sonar.projectKey=ils
sonar.projectName=ILS
sonar.projectVersion=1.0.0
sonar.sources=library/core
sonar.java.binaries=library/core/target/classes
sonar.exclusions=library/core/target/**/*, library/core/s... | [
{
"answer_id": 74437527,
"author": "JNevill",
"author_id": 2221001,
"author_profile": "https://Stackoverflow.com/users/2221001",
"pm_score": 2,
"selected": true,
"text": "import base64\n\n#open image and convert to b64 string\nwith open(\"small.png\", \"rb\") as img_file:\n my_string ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14458837/"
] |
74,434,311 | <p>I am trying to write down unit test for my repository which is interacting with MongoDb but facing a problem/exception in mocking the objects. This is what I have tried so far;</p>
<p>This is how my class looks like i.e. I have create a repository class and extend it from interface;</p>
<pre><code>public class UserM... | [
{
"answer_id": 74434745,
"author": "Caveman74",
"author_id": 2032864,
"author_profile": "https://Stackoverflow.com/users/2032864",
"pm_score": 0,
"selected": false,
"text": " IApplicationSettings applicationSettings = new ApplicationSettings() { UserCollectionName = \"users\" };\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7167486/"
] |
74,434,334 | <p><strong>Background</strong></p>
<p>I wrote an exact, short yet complete example of a Parent component with a nested Child component which simply attempts:</p>
<ol>
<li>Alter a string in the Parent's state</li>
<li>See the Child component updated when the Parent's state value is altered (<code>this.state.name</code>)... | [
{
"answer_id": 74434406,
"author": "David",
"author_id": 328193,
"author_profile": "https://Stackoverflow.com/users/328193",
"pm_score": 2,
"selected": false,
"text": "export class Grid extends React.Component<PropsParams, {}> {\n render() {\n const { childName } = this.props; // <--... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/255243/"
] |
74,434,368 | <p>I have this code:</p>
<pre><code>string.replace(/[~!@#$%^&*()_\-+={}[\]|"':;?,/><,\\]/g,'');
</code></pre>
<p>I want to remove all invalid characters from domain. It's working fine, but additionally I want to remove <code>-</code> character from the end if it is here.</p>
<p>So, <code>te-!#$#@$@#st-.c... | [
{
"answer_id": 74434489,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 3,
"selected": true,
"text": "string.replace(/[~!@#$%^&`*()_\\+={}[\\]|\"':;?,\\/><,\\\\]|-+(?=\\.)/g, '')\n [~!@#$%^&*()_\\+={}[\\]|\"':;?... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20499064/"
] |
74,434,404 | <p>I'm struggling a little bit to find a solution for a specific problem where I've been trying to solve by using HTML grid or flex-box.
I want to build a two columns layout container where the row item height should be dynamic and if there's a gap, fill it with a new row item which is not part of the original list.</p... | [
{
"answer_id": 74434489,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 3,
"selected": true,
"text": "string.replace(/[~!@#$%^&`*()_\\+={}[\\]|\"':;?,\\/><,\\\\]|-+(?=\\.)/g, '')\n [~!@#$%^&*()_\\+={}[\\]|\"':;?... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3444041/"
] |
74,434,407 | <p>I am using the standard <code>collections.deque</code> to write a LIFO stack where each object may occur multiple times, but now I am cornered around the use case for removing the <strong>last occurrence of a given object</strong> (but not whatever is the rightmost object of the stack!).</p>
<p>While <code>appendlef... | [
{
"answer_id": 74434489,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 3,
"selected": true,
"text": "string.replace(/[~!@#$%^&`*()_\\+={}[\\]|\"':;?,\\/><,\\\\]|-+(?=\\.)/g, '')\n [~!@#$%^&*()_\\+={}[\\]|\"':;?... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11715259/"
] |
74,434,418 | <p>I have two dataframes and a function, which works when I use it on a single variable.</p>
<pre><code>library(tidyverse)
iris1<-iris
iris2<-iris
iris_fn<-function(df,species_type){
df1<-df%>%
filter((Species==species_type))
return(df1)}
new_df<-iris_fn(df=iris1, species_type="setosa&... | [
{
"answer_id": 74434489,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 3,
"selected": true,
"text": "string.replace(/[~!@#$%^&`*()_\\+={}[\\]|\"':;?,\\/><,\\\\]|-+(?=\\.)/g, '')\n [~!@#$%^&*()_\\+={}[\\]|\"':;?... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10107805/"
] |
74,434,503 | <p>As the title says, when I pass over a quoted URL to background-image or cursor, it simply doesn't load the file. <br/>
I work with Vue and have the <strong>following libraries installed</strong>: Vuetify, SASS, SASS-Loader, Node-SASS. <br/>
I cannot uninstall Node-SASS as my project fails to run without it.</p>
<p>H... | [
{
"answer_id": 74434550,
"author": "Ben Borchard",
"author_id": 4054720,
"author_profile": "https://Stackoverflow.com/users/4054720",
"pm_score": -1,
"selected": false,
"text": "\\ \" document.getElementById(\"app\").style.cursor = \"url(\\\"../public/graphics/Nights_Edge.png\\\"), auto\... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20011501/"
] |
74,434,507 | <p>I am running the examples at this <a href="https://r-graph-gallery.com/308-interactive-circle-packing.html" rel="nofollow noreferrer">link</a>. After re-installing ggiraph, the same code that was working before, returns this error</p>
<pre><code>Error:
! Problem while converting geom to grob.
ℹ Error occurred in the... | [
{
"answer_id": 74434550,
"author": "Ben Borchard",
"author_id": 4054720,
"author_profile": "https://Stackoverflow.com/users/4054720",
"pm_score": -1,
"selected": false,
"text": "\\ \" document.getElementById(\"app\").style.cursor = \"url(\\\"../public/graphics/Nights_Edge.png\\\"), auto\... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11662862/"
] |
74,434,516 | <p>I have a task that is configured to retry 3 times. I would like to perform some logic if the exception of the original failure is of a certain type. Is it possible from run 2 of the task for example, to extract the exception from the first attempt?</p>
| [
{
"answer_id": 74434550,
"author": "Ben Borchard",
"author_id": 4054720,
"author_profile": "https://Stackoverflow.com/users/4054720",
"pm_score": -1,
"selected": false,
"text": "\\ \" document.getElementById(\"app\").style.cursor = \"url(\\\"../public/graphics/Nights_Edge.png\\\"), auto\... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3517647/"
] |
74,434,520 | <pre><code><li class="menu pbar">Rank: <?php echo createBalk($rank['procenten']); ?></li>
<li class="menu pbar">leven: <?php echo createBalk($leven); ?></li>
</code></pre>
<pre><code>function createBalk($score) {
if($score >= 100) {
return "&l... | [
{
"answer_id": 74434550,
"author": "Ben Borchard",
"author_id": 4054720,
"author_profile": "https://Stackoverflow.com/users/4054720",
"pm_score": -1,
"selected": false,
"text": "\\ \" document.getElementById(\"app\").style.cursor = \"url(\\\"../public/graphics/Nights_Edge.png\\\"), auto\... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16828751/"
] |
74,434,535 | <p>I'm trying to display a very simple array in the template. I can't get my head around why this does not work.</p>
<p>I get the data with a try/catch statement. The data is JSON and it has an array inside, so I guess that clarifies as multilevel array.</p>
<p>The constant displays correctly in <code>console.log</code... | [
{
"answer_id": 74453173,
"author": "Nikola Gava",
"author_id": 19656174,
"author_profile": "https://Stackoverflow.com/users/19656174",
"pm_score": 0,
"selected": false,
"text": "const modules console.log(modules) undefined script setup setup() {} modules.value = data[0].app_modules\n let... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2385394/"
] |
74,434,542 | <p>I am using a panel data set and intent to model this as a dynamic affiliation network using SAOMs. The data is unfortunately very messy and a pain to deal with.</p>
<p>I have managed to create adjacency matrices for each panel wave. However, over time the panel grew in size / people left. I need the number of rows i... | [
{
"answer_id": 74453173,
"author": "Nikola Gava",
"author_id": 19656174,
"author_profile": "https://Stackoverflow.com/users/19656174",
"pm_score": 0,
"selected": false,
"text": "const modules console.log(modules) undefined script setup setup() {} modules.value = data[0].app_modules\n let... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7471427/"
] |
74,434,544 | <p>I am working on angular app and I have a progress bar and code is as follows :</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-css prettyprint-override"><code>.bar {
--d: 1rem;
/* arrow depth */
... | [
{
"answer_id": 74434622,
"author": "Harrison",
"author_id": 15291770,
"author_profile": "https://Stackoverflow.com/users/15291770",
"pm_score": 1,
"selected": false,
"text": "clip-path last child .bar {\n --d: 1rem;\n /* arrow depth */\n --gap: 0.3rem;\n /* arrow thickness, gap */\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17800542/"
] |
74,434,557 | <pre><code>public static double readNumber(String prompt,double min, double max){
Scanner scanner = new Scanner(System.in);
double value;
while (true){
System.out.print(prompt);
value = scanner.nextFloat();
if (value >= min && value <= max) {
break;
... | [
{
"answer_id": 74434706,
"author": "wallbloggerbeing",
"author_id": 16581025,
"author_profile": "https://Stackoverflow.com/users/16581025",
"pm_score": 0,
"selected": false,
"text": "print(readnumber(\"input a number: \", 2, 4))\n"
},
{
"answer_id": 74435024,
"author": "diliG... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20502344/"
] |
74,434,572 | <p>I searched the whole web, but was not able to find the reason <em>why</em> <code>strftime</code> is being removed from php. From my point of view it was the perfect function for easy access to custom date formats. The "alternative" <code>IntlDateFormatter::format()</code> feels so cumbersome.</p>
<p>Can an... | [
{
"answer_id": 74434640,
"author": "Alexander Santos",
"author_id": 10473393,
"author_profile": "https://Stackoverflow.com/users/10473393",
"pm_score": 2,
"selected": false,
"text": "IntlDateFormatter::format setlocale(LC_TIME, \"en_US\");\n echo strftime('%x', time());\n $formatter = n... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1635166/"
] |
74,434,592 | <p>I want to to display this reversed pyramid next to each other but the problem is the right side of my pyramid is different in the left side of my pyramid. How can I fix this? <img src="https://i.stack.imgur.com/jmakq.png" alt="Here is the lopsided image" /> and
<img src="https://i.stack.imgur.com/A2iJd.png" alt="thi... | [
{
"answer_id": 74434750,
"author": "Maarten Bodewes",
"author_id": 589259,
"author_profile": "https://Stackoverflow.com/users/589259",
"pm_score": 0,
"selected": false,
"text": "for for (int y = 0; y < 22; y++) {\n for (int x = 0; x < 7; x++) {\n if (inPyramid(0, 0, x, y) || in... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20422766/"
] |
74,434,593 | <p>Is it possible to filter null values from a map?</p>
<pre><code>const myMap = new Map<string, string|undefined>([
['id1', 'value1'],
['id2', null],
['id3', 'value3'],
['id4', null],
]);
</code></pre>
<p>I would like my map with id1 and id4 only because the other ids have null values.</p>
<p>Thanks</p>
| [
{
"answer_id": 74434660,
"author": "Yarden Buzaglo",
"author_id": 19441159,
"author_profile": "https://Stackoverflow.com/users/19441159",
"pm_score": 2,
"selected": true,
"text": "const myMap = new Map([\n ['id1', 'value1'],\n ['id2', null],\n ['id3', 'value3'],\n ['id4', null],\n]);... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11068392/"
] |
74,434,603 | <p>Okay, I am new to coding so please bear with me. I appreciate all the help.</p>
<p>I want to create my own Twitter Scraper using Edge as my browser.
My fist problem is that some words arent coloured. For example .webdriver.common.keys should be blue like in the video. (I put a link to the video in the file at the bo... | [
{
"answer_id": 74434660,
"author": "Yarden Buzaglo",
"author_id": 19441159,
"author_profile": "https://Stackoverflow.com/users/19441159",
"pm_score": 2,
"selected": true,
"text": "const myMap = new Map([\n ['id1', 'value1'],\n ['id2', null],\n ['id3', 'value3'],\n ['id4', null],\n]);... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20085742/"
] |
74,434,608 | <p>I am trying to find a way to find the closest value in a vector, from elements in the SAME vector, but excluding the row in question. For example, suppose I have dataframe A with one column (column_1):</p>
<pre><code>column_1
1
5
6
2
3
0
5
2
1
9
</code></pre>
<p>I want to add a second column which, for every element... | [
{
"answer_id": 74435172,
"author": "Gregor Thomas",
"author_id": 903061,
"author_profile": "https://Stackoverflow.com/users/903061",
"pm_score": 2,
"selected": false,
"text": "# sample data\nx = c(1, 5, 6, 2, 3, 0, 5, 2, 1, 9)\n\n# make a distance matrix and set diagonal to Inf\ndist = o... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434608",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17706204/"
] |
74,434,650 | <p>I am trying to set the iOS UIDatePicker to have a blank default date instead of the current date. is this possible?</p>
| [
{
"answer_id": 74435172,
"author": "Gregor Thomas",
"author_id": 903061,
"author_profile": "https://Stackoverflow.com/users/903061",
"pm_score": 2,
"selected": false,
"text": "# sample data\nx = c(1, 5, 6, 2, 3, 0, 5, 2, 1, 9)\n\n# make a distance matrix and set diagonal to Inf\ndist = o... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9525218/"
] |
74,434,683 | <p>I wanted to list all the products in the database and all the images, today each product can have several images and this way I did it, it returns 1 product object for each image</p>
<p>I tried to do this, but I didn't get what I expected as I said above</p>
<pre><code>async getAllProductAndImages() {
const prod... | [
{
"answer_id": 74435172,
"author": "Gregor Thomas",
"author_id": 903061,
"author_profile": "https://Stackoverflow.com/users/903061",
"pm_score": 2,
"selected": false,
"text": "# sample data\nx = c(1, 5, 6, 2, 3, 0, 5, 2, 1, 9)\n\n# make a distance matrix and set diagonal to Inf\ndist = o... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20502425/"
] |
74,434,710 | <p>First of all, some data similar to what I am working with.</p>
<pre><code>rawdata <- data.frame(Score = rnorm(1000, seq(1, 0, length.out = 10), sd = 1),
Group = rep(LETTERS[1:3], 10000))
rawdata$Score <- ifelse(rawdata$Group == "A", rawdata$Score+2,rawdata$Score)
rawdata$Score ... | [
{
"answer_id": 74435117,
"author": "Ottie",
"author_id": 17732851,
"author_profile": "https://Stackoverflow.com/users/17732851",
"pm_score": 1,
"selected": false,
"text": "ggplot(rawdata, aes(x = Score, y = Group)) +\n scale_y_discrete() +\n geom_density_ridges(scale = -0.5, size = 1, ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434710",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7453444/"
] |
74,434,788 | <p>Let's say I have</p>
<pre><code>val asd = mutableListOf("lulu","bubu","gugu","bubu")
</code></pre>
<p>If I use <code>asd.remove("bubu")</code>, it only removes the first bubu.</p>
<p>How to remove all bubu in asd without a loop?</p>
| [
{
"answer_id": 74434996,
"author": "Tenfour04",
"author_id": 506796,
"author_profile": "https://Stackoverflow.com/users/506796",
"pm_score": 2,
"selected": false,
"text": "remove() removeAll { it == \"bubu\" }"
},
{
"answer_id": 74435145,
"author": "abhishekrajak",
"autho... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20222240/"
] |
74,434,797 | <p>I want to validate that all <code>values</code> in a dictionary adhere to a schema while the <code>keys</code> can be whatever. Is there a better way to do this than just using a pattern that matches everything:</p>
<pre class="lang-json prettyprint-override"><code>"foo": {
"type": "obje... | [
{
"answer_id": 74435458,
"author": "Clemens",
"author_id": 227785,
"author_profile": "https://Stackoverflow.com/users/227785",
"pm_score": 1,
"selected": false,
"text": "additionalProperties patternProperties"
},
{
"answer_id": 74435479,
"author": "Jason Desrosiers",
"aut... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16543731/"
] |
74,434,800 | <pre><code>import React, { useEffect, useState } from "react";
import Loading from "./Loading";
function App() {
const url = "https://course-api.com/react-tabs-project";
const [loading, setLoading] = useState(true);
const [data, setData] = useState([]);
async function... | [
{
"answer_id": 74435458,
"author": "Clemens",
"author_id": 227785,
"author_profile": "https://Stackoverflow.com/users/227785",
"pm_score": 1,
"selected": false,
"text": "additionalProperties patternProperties"
},
{
"answer_id": 74435479,
"author": "Jason Desrosiers",
"aut... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434800",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20302920/"
] |
74,434,850 | <p>I have</p>
<pre><code>var x: Int
var invert: Boolean
</code></pre>
<p>and I need the value of the expression</p>
<pre><code>if (invert) -x else x
</code></pre>
<p>Is there any more succinct way to write that expression in Kotlin?</p>
| [
{
"answer_id": 74436949,
"author": "aSemy",
"author_id": 4161471,
"author_profile": "https://Stackoverflow.com/users/4161471",
"pm_score": 0,
"selected": false,
"text": "invert invert invert() fun main() {\n val x = 1\n val y = 2\n val z = 3\n\n var invert = false\n\n // t... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2452723/"
] |
74,434,862 | <p>I am kind of a beginner in python and stuck with the part where I have to access methods from a class which reside in a different file.
Here, in File1 i am trying to access find_method from file2 to and do some operation and return values. But somehow its not accessing "find_method" from file2.</p>
<pre><c... | [
{
"answer_id": 74436949,
"author": "aSemy",
"author_id": 4161471,
"author_profile": "https://Stackoverflow.com/users/4161471",
"pm_score": 0,
"selected": false,
"text": "invert invert invert() fun main() {\n val x = 1\n val y = 2\n val z = 3\n\n var invert = false\n\n // t... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6433588/"
] |
74,434,879 | <p>Even though it is odd and non-canonical, I would like to concatenate two <code>__m256d</code> and a <code>double</code> in a single <code>__m512d</code>. Specifically, I have</p>
<pre><code>__m256d a = _mm256_set_pd(1, 2, 3, 0);
__m256d b = _mm256_set_pd(4, 5, 6, 0);
double c = 7;
</code></pre>
<p>At the end, I woul... | [
{
"answer_id": 74435230,
"author": "Sven Nilsson",
"author_id": 4847311,
"author_profile": "https://Stackoverflow.com/users/4847311",
"pm_score": 1,
"selected": false,
"text": "__m256d a;\n__m256d b;\n__m512d c = _mm512_insertf64x4(_mm512_castpd256_pd512(a), b, 1);\n"
},
{
"answe... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11769441/"
] |
74,434,927 | <p>split dataframe character into small set of character list in dataframe?</p>
<p>This is a dataframe, I need to split into as 10 10 character in a list of dataframe.</p>
<pre><code>| contact_num |
| -------------------------------|
| 01111784885788634878 |
| 24778278886977517888978542788... | [
{
"answer_id": 74435230,
"author": "Sven Nilsson",
"author_id": 4847311,
"author_profile": "https://Stackoverflow.com/users/4847311",
"pm_score": 1,
"selected": false,
"text": "__m256d a;\n__m256d b;\n__m512d c = _mm512_insertf64x4(_mm512_castpd256_pd512(a), b, 1);\n"
},
{
"answe... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20502506/"
] |
74,434,935 | <pre><code>public static void main(String[] args){
boolean year = isLeapYear(9999);
System.out.println("Is Leap Year: " + year);
}
public static boolean isLeapYear(int year){
int rem4 = year % 4;
int rem100 = year % 100;
int rem400 = year % 400;
if ((year >= 1 && year <= ... | [
{
"answer_id": 74435006,
"author": "thicchead",
"author_id": 19815385,
"author_profile": "https://Stackoverflow.com/users/19815385",
"pm_score": 2,
"selected": true,
"text": "|| (rem100 != 0) && (rem4 == 0)) true true"
},
{
"answer_id": 74435791,
"author": "Alejandro Rojas",
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20501559/"
] |
74,434,980 | <p>I am fairly new to <code>React</code> and still wrapping my head around <code>custom-hooks</code>. I cam across a code where a custom hook was created to handle the component imports.</p>
<p><code>useComponentPalette.js</code></p>
<pre><code>import {TodoEditor} from './components/TodoEditor'
import {TodoItem} from '... | [
{
"answer_id": 74537931,
"author": "Moufeed Juboqji",
"author_id": 4399730,
"author_profile": "https://Stackoverflow.com/users/4399730",
"pm_score": 1,
"selected": false,
"text": "// first file name.js\nimport {TodoEditor} from './components/TodoEditor'\nimport {TodoItem} from './compone... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74434980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17393772/"
] |
74,435,045 | <p>For the below table is it possible to replace the date in 'DL_INC' column for 'PEN' in 'PEN_TYPE' column to the date in 'DL_INC' for 'PIP' in 'PEN_TYPE'? e.g. for MEM_REF 304852 for PEN_TYPE PEN the date should be updated from 06/04/2020 to 11/06/2020. The table is much larger but I've added a small section.</p>
<p>... | [
{
"answer_id": 74537931,
"author": "Moufeed Juboqji",
"author_id": 4399730,
"author_profile": "https://Stackoverflow.com/users/4399730",
"pm_score": 1,
"selected": false,
"text": "// first file name.js\nimport {TodoEditor} from './components/TodoEditor'\nimport {TodoItem} from './compone... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19084672/"
] |
74,435,080 | <p>I have a Parent component which two child components. All three components use accordion-group. My styles have a class as below and I want this class to apply only to the parent component. For some reason :not is not working for me. The class gets applied to the whole page so child components also get it</p>
<p>Clas... | [
{
"answer_id": 74435978,
"author": "Lord-JulianXLII",
"author_id": 19529102,
"author_profile": "https://Stackoverflow.com/users/19529102",
"pm_score": 0,
"selected": false,
"text": ".acc:not(span) {\n border: solid black;\n } <div class=\"acc\">\n <span class=\"acc\"> Span1 </span> <b... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2837961/"
] |
74,435,136 | <p>I have an Java web application which had an internal identity and access management. It was now suspended with the integration of Keycloak.</p>
<p>Next to its web interface, my application has also a REST endpoint like <code>/api/authentication/login</code> (among others but this is the starting point) which could b... | [
{
"answer_id": 74435523,
"author": "Dhaval Gajjar",
"author_id": 20142156,
"author_profile": "https://Stackoverflow.com/users/20142156",
"pm_score": 1,
"selected": false,
"text": "Direct Grant Flow"
}
] | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5985343/"
] |
74,435,159 | <p>this is the <code>BehaviorSubject</code> getting value:</p>
<p><code> private searchClinicByParams$: BehaviorSubject<SearchClinicByParamsProps> = new BehaviorSubject(initialSearchParams);</code></p>
<p>here is my method needs to compose the vaues:</p>
<pre><code>getParams() {
const values = this.search... | [
{
"answer_id": 74435862,
"author": "Andres2142",
"author_id": 2841091,
"author_profile": "https://Stackoverflow.com/users/2841091",
"pm_score": 2,
"selected": false,
"text": "getParams() get Observable SearchClinicByParamsProps getParams(): Observable<SearchClinicByParamsProps> {\n retu... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/218349/"
] |
74,435,161 | <p>I've been working with Python for a while, but now I got curious if there is a way to see the code inside the built-in functions or methods of Python. I know that is not really necessary to know this, but some time I'm a curious person.</p>
<p>Thanks for your help.</p>
| [
{
"answer_id": 74435862,
"author": "Andres2142",
"author_id": 2841091,
"author_profile": "https://Stackoverflow.com/users/2841091",
"pm_score": 2,
"selected": false,
"text": "getParams() get Observable SearchClinicByParamsProps getParams(): Observable<SearchClinicByParamsProps> {\n retu... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17719806/"
] |
74,435,173 | <p>Input data:</p>
<pre class="lang-py prettyprint-override"><code>data = [
['0039384', [{'A': 415}, {'A': 228}, {'B': 360}, {'B': 198}, {'C': 300}, {'C': 165}]],
['0035584', [{'A': 345}, {'A': 117}, {'B': 223}, {'B': 554}, {'C': 443}, {'C': 143}]]
]
df = pd.DataFrame(data=data, columns=['id', 'prices'])
</cod... | [
{
"answer_id": 74435862,
"author": "Andres2142",
"author_id": 2841091,
"author_profile": "https://Stackoverflow.com/users/2841091",
"pm_score": 2,
"selected": false,
"text": "getParams() get Observable SearchClinicByParamsProps getParams(): Observable<SearchClinicByParamsProps> {\n retu... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19846285/"
] |
74,435,179 | <p>I created a service account: <code>name@project.iam.gserviceaccount.com</code> and a custom role <code>mycustomrole</code>.</p>
<p>How with <code>gcloud</code> command can I add the custom role to this service account?</p>
<p>When I try</p>
<pre><code>gcloud projects add-iam-policy-binding my-project \
--member=&q... | [
{
"answer_id": 74435410,
"author": "Mazlum Tosun",
"author_id": 9261558,
"author_profile": "https://Stackoverflow.com/users/9261558",
"pm_score": 2,
"selected": false,
"text": "gcloud projects add-iam-policy-binding my-project \\\n --member=\"serviceAccount:my-sa@my-project.iam.gservice... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435179",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8552543/"
] |
74,435,189 | <p>I am using wxWebView in my application. Since this widget consumes all keyboard events internally, I have to create a synthetic keyboard event and process it. This is the code that I am using for creating a synthetic keyboard event:</p>
<pre><code> // create a synthetic keyboard event and handle it
wx... | [
{
"answer_id": 74435410,
"author": "Mazlum Tosun",
"author_id": 9261558,
"author_profile": "https://Stackoverflow.com/users/9261558",
"pm_score": 2,
"selected": false,
"text": "gcloud projects add-iam-policy-binding my-project \\\n --member=\"serviceAccount:my-sa@my-project.iam.gservice... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3235404/"
] |
74,435,191 | <p>The first csv file contains a list of hostnames. The second csv file contains hostnames and logs. I would like to compare if the list of hostname exist in the second csv file using a batch file.</p>
<p>I am working on a batch file using fc command but no luck yet to get my desired results.</p>
| [
{
"answer_id": 74436280,
"author": "MVPxCoder",
"author_id": 5114136,
"author_profile": "https://Stackoverflow.com/users/5114136",
"pm_score": -1,
"selected": false,
"text": "foreach($line in Get-Content .\\Hosts.csv) {\n if(Get-Content .\\Logs.csv | Select-String $line){\n ech... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435191",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20502632/"
] |
74,435,194 | <p>is there any method that can return the fileID and corresponding guid of m_Mesh property in a prefab file? The m_Mesh is the mesh that used by the meshfilter component.</p>
<p>How can i get the two values, 4300000 and 8b73e8872ca76104bbca4ee2b704a1b4 via script?</p>
<p><a href="https://i.stack.imgur.com/Spkva.png" r... | [
{
"answer_id": 74436280,
"author": "MVPxCoder",
"author_id": 5114136,
"author_profile": "https://Stackoverflow.com/users/5114136",
"pm_score": -1,
"selected": false,
"text": "foreach($line in Get-Content .\\Hosts.csv) {\n if(Get-Content .\\Logs.csv | Select-String $line){\n ech... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10999049/"
] |
74,435,209 | <p>I have a variable that contains dates and data on each line, and wanted to know how to sort by date? I've tried lsort after splitting the variable, but that only sorts by the day (date format DD/MM/YYYY).</p>
<p>eg the variable has the following:</p>
<pre><code>01/11/2020,$239,Sandy
05/12/2019,$19,Boe
14/09/2022,$... | [
{
"answer_id": 74436042,
"author": "Chris Heithoff",
"author_id": 16350882,
"author_profile": "https://Stackoverflow.com/users/16350882",
"pm_score": 2,
"selected": false,
"text": "lsort -command clock scan proc sort_by_date {a b} {\n set date_a [lindex [split $a \",\"] 0]\n set da... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435209",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6400605/"
] |
74,435,228 | <p>I am trying to pass a boolean value from one service to other service file , in that I am getting boolean value is undefined and I do not find any examples and documents related to it in angular, can anyone guide me to this</p>
<p>need to pass a boolean value from this file:</p>
<pre><code>Auth.service.ts
public Da... | [
{
"answer_id": 74436042,
"author": "Chris Heithoff",
"author_id": 16350882,
"author_profile": "https://Stackoverflow.com/users/16350882",
"pm_score": 2,
"selected": false,
"text": "lsort -command clock scan proc sort_by_date {a b} {\n set date_a [lindex [split $a \",\"] 0]\n set da... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435228",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19716192/"
] |
74,435,251 | <p>I made a shortcode in order to display the loop on my custom homepage :</p>
<pre><code>function home_loop_shortcode() {
$args = array(
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => '8',
'cat' => '3, 6',
... | [
{
"answer_id": 74435457,
"author": "Moishy",
"author_id": 1810810,
"author_profile": "https://Stackoverflow.com/users/1810810",
"pm_score": 3,
"selected": true,
"text": "$html $html = ''; function home_loop_shortcode() { \n $args = array(\n 'post_type' => 'post', \n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2734491/"
] |
74,435,255 | <p>I am very new to Flutter.</p>
<p>I am currently writing a simple memo app, with a list of titles shown like this:
<a href="https://i.stack.imgur.com/jAM9U.png" rel="nofollow noreferrer">titles</a></p>
<p>Those Text widgets should be separate, but I have no idea how to break text line.
Being specific, which widget sh... | [
{
"answer_id": 74435457,
"author": "Moishy",
"author_id": 1810810,
"author_profile": "https://Stackoverflow.com/users/1810810",
"pm_score": 3,
"selected": true,
"text": "$html $html = ''; function home_loop_shortcode() { \n $args = array(\n 'post_type' => 'post', \n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6744240/"
] |
74,435,276 | <p>In GitHub issue <a href="https://github.com/primefaces/primefaces/issues/5840" rel="nofollow noreferrer">PanelGrid: No way to manage style or identifiers of panelgrid cells except for tabular mode #5840</a>, says it is possible to do it but doesn't say how.</p>
<p>I want to "hide" some cells. I have partia... | [
{
"answer_id": 74450160,
"author": "Jasper de Vries",
"author_id": 880619,
"author_profile": "https://Stackoverflow.com/users/880619",
"pm_score": 3,
"selected": true,
"text": ":empty body .ui-panelgrid .ui-panelgrid-cell html body .ui-panelgrid .ui-panelgrid-cell:empty {\n // your pr... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2734938/"
] |
74,435,358 | <p>Null check operator used on a null value</p>
<p>When the exception was thrown, this was the stack:</p>
<pre><code>#0 StatefulElement.state (package:flutter/src/widgets/framework.dart:4999:44)
#1 Navigator.of (package:flutter/src/widgets/navigator.dart:2543:47)
#2 Navigator.pushReplacement (package:flu... | [
{
"answer_id": 74450160,
"author": "Jasper de Vries",
"author_id": 880619,
"author_profile": "https://Stackoverflow.com/users/880619",
"pm_score": 3,
"selected": true,
"text": ":empty body .ui-panelgrid .ui-panelgrid-cell html body .ui-panelgrid .ui-panelgrid-cell:empty {\n // your pr... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435358",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20484339/"
] |
74,435,400 | <p>Suppose that I work with an external company that sends me folios for an invoice every time they are due. For example, we started from folio 1 to 999. As we were very successful, we reached invoice 999, for which the entity gave me new billing codes ranging from 1000 to 10000. This is the base, so for this I have cr... | [
{
"answer_id": 74450160,
"author": "Jasper de Vries",
"author_id": 880619,
"author_profile": "https://Stackoverflow.com/users/880619",
"pm_score": 3,
"selected": true,
"text": ":empty body .ui-panelgrid .ui-panelgrid-cell html body .ui-panelgrid .ui-panelgrid-cell:empty {\n // your pr... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14141630/"
] |
74,435,414 | <p>hi im having this problem this is my code rn but it wont do anything or just say its a int or a str</p>
<pre class="lang-py prettyprint-override"><code>b=['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
c=['&','!','@','#','$','%']
... | [
{
"answer_id": 74450160,
"author": "Jasper de Vries",
"author_id": 880619,
"author_profile": "https://Stackoverflow.com/users/880619",
"pm_score": 3,
"selected": true,
"text": ":empty body .ui-panelgrid .ui-panelgrid-cell html body .ui-panelgrid .ui-panelgrid-cell:empty {\n // your pr... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20502817/"
] |
74,435,423 | <p>I am wondering if there was an efficient <a href="/questions/tagged/data.table" class="post-tag" title="show questions tagged 'data.table'" aria-label="show questions tagged 'data.table'" rel="tag" aria-labelledby="data.table-container">data.table</a> solution for the following problem.</p>
<p>Suppos... | [
{
"answer_id": 74450160,
"author": "Jasper de Vries",
"author_id": 880619,
"author_profile": "https://Stackoverflow.com/users/880619",
"pm_score": 3,
"selected": true,
"text": ":empty body .ui-panelgrid .ui-panelgrid-cell html body .ui-panelgrid .ui-panelgrid-cell:empty {\n // your pr... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9684184/"
] |
74,435,435 | <p>Table 1:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Column C</th>
<th>Column D</th>
</tr>
</thead>
<tbody>
<tr>
<td>1234hj</td>
<td>Bob</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>nkj234</td>
<td>Joe</td>
<td>2</td>
<td>2</td>
</tr>
<tr>
<td>ji3251</td>
<td>S... | [
{
"answer_id": 74450160,
"author": "Jasper de Vries",
"author_id": 880619,
"author_profile": "https://Stackoverflow.com/users/880619",
"pm_score": 3,
"selected": true,
"text": ":empty body .ui-panelgrid .ui-panelgrid-cell html body .ui-panelgrid .ui-panelgrid-cell:empty {\n // your pr... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20480003/"
] |
74,435,452 | <p>I want to be able to start a timer when the space bar is released and to stop it when the space bar is pressed. The code I am using right now initially achieves this. However it does not work on subsequent attempts. I am using a boolean to store whether the key has been pressed in the last .5 seconds (in order to no... | [
{
"answer_id": 74435736,
"author": "Mohammed Shahed",
"author_id": 19067773,
"author_profile": "https://Stackoverflow.com/users/19067773",
"pm_score": 1,
"selected": false,
"text": "const timer = document.querySelector(\"#timer\");\nconst playArea = document.querySelector(\"#play-area\")... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14144772/"
] |
74,435,453 | <p>I pull a row out of the database and I want to access it via a dynamic var</p>
<pre><code>$prop = "theProp";
$test0 = $row["theProp"]; // Works fine
$test1 = $row->{$prop}; // Doesn't work
$test2 = $row->$prop; // Doesn't work
</code></pre>
<p>I've looked all over the place, obviously doin... | [
{
"answer_id": 74435736,
"author": "Mohammed Shahed",
"author_id": 19067773,
"author_profile": "https://Stackoverflow.com/users/19067773",
"pm_score": 1,
"selected": false,
"text": "const timer = document.querySelector(\"#timer\");\nconst playArea = document.querySelector(\"#play-area\")... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435453",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2846531/"
] |
74,435,484 | <p>I have a User control and I bind the tooltip of that control into some object's property</p>
<pre><code> <usercontrols:ucButton x:Name="xSaveCurrentBtn" ButtonType="ImageButton" ButtonFontImageSize="16" ButtonImageWidth="18" ButtonImageHeight="18... | [
{
"answer_id": 74435671,
"author": "EldHasp",
"author_id": 13349759,
"author_profile": "https://Stackoverflow.com/users/13349759",
"pm_score": 3,
"selected": true,
"text": " xSaveCurrentBtn.Tooltip = new ToolTip() {.....};\n <ToolTip Content=\"{Binding ItemName,\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8855066/"
] |
74,435,488 | <p>I am quite new to programming so if this question is really silly please don't laugh at me :(</p>
<p>I am looking for a function to ask for (yes or no) questions, just like the below:</p>
<pre><code>if input("Question (y/n)") == "y":
print("y")
if input("Question (y/n)") == &... | [
{
"answer_id": 74435573,
"author": "Code-Apprentice",
"author_id": 1440565,
"author_profile": "https://Stackoverflow.com/users/1440565",
"pm_score": 3,
"selected": true,
"text": "input() input() answer = input(\"Question (y/n)\")\n\nif answer == \"y\":\n # do something\nelif answer ==... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20502833/"
] |
74,435,538 | <p>i have JSON value as below :</p>
<pre class="lang-json prettyprint-override"><code>{
"table": "table_name",
"op_type": "U",
"before": {
"AAAA": "1-1111",
"BBBB": "2022-08-31 03:57:01",
"CCCC": "... | [
{
"answer_id": 74437171,
"author": "Barbaros Özhan",
"author_id": 5841306,
"author_profile": "https://Stackoverflow.com/users/5841306",
"pm_score": 1,
"selected": false,
"text": "\"after|before\" \"changed_columns\" [\n {\n // multiplex the attributes in order to generate three indep... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8052213/"
] |
74,435,562 | <p>I have a school project where I have to make my structures and functions in a .h header file.</p>
<p>I've created my structure but cannot use any of the variables within it as whenever I call it it highlights the structure name and tells me its not defined even though it clearly is in my structure and doesn't highli... | [
{
"answer_id": 74437171,
"author": "Barbaros Özhan",
"author_id": 5841306,
"author_profile": "https://Stackoverflow.com/users/5841306",
"pm_score": 1,
"selected": false,
"text": "\"after|before\" \"changed_columns\" [\n {\n // multiplex the attributes in order to generate three indep... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435562",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19987658/"
] |
74,435,565 | <p>My chat bubble looks like this:</p>
<p><a href="https://i.stack.imgur.com/6HKM0.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6HKM0.jpg" alt="enter image description here" /></a></p>
<p>I want its timestamp to <strong>stick to the right side</strong> like the following:</p>
<p><a href="https://i... | [
{
"answer_id": 74435659,
"author": "Yeasin Sheikh",
"author_id": 10157127,
"author_profile": "https://Stackoverflow.com/users/10157127",
"pm_score": 0,
"selected": false,
"text": "crossAxisAlignment: CrossAxisAlignment.end, Column child: Column(\n crossAxisAlignment: CrossAxisA... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12695188/"
] |
74,435,589 | <p>I have a question regarding how to craft a variable depending on two other variables. I need to create a dummy variable that will take the value of 1 if
<code>Parameter1</code> is either A or B (but not C) and <code>Parameter2</code> has a positive value. The variable needs both assumptions to upheld, otherwise will... | [
{
"answer_id": 74435637,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 4,
"selected": true,
"text": "%in% & as.integer + df1$Result <- with(df1, +(Parameter1 %in% c(\"A\", \"B\") & Parameter2 > 0))\ndf1$Result\n[1] 1 1 0... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13227414/"
] |
74,435,609 | <p>What is the need of showing different URL path in react application, I can display all the react component conditionally on same URL path</p>
| [
{
"answer_id": 74435669,
"author": "Gollasso",
"author_id": 20412483,
"author_profile": "https://Stackoverflow.com/users/20412483",
"pm_score": 0,
"selected": false,
"text": "npm install react-router-dom"
},
{
"answer_id": 74435675,
"author": "Drew Reese",
"author_id": 86... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19370059/"
] |
74,435,633 | <p>I would like to solve the following problem:</p>
<p>In Worksheet1 I have a range in text form from O3 to O4500. If the cells in this range contain certain words, I want an "x" to be put in the range U3:U4500 (in the same row). The words to be tested are in range B4:B15 in another Worksheet (Worksheet2).</p... | [
{
"answer_id": 74435669,
"author": "Gollasso",
"author_id": 20412483,
"author_profile": "https://Stackoverflow.com/users/20412483",
"pm_score": 0,
"selected": false,
"text": "npm install react-router-dom"
},
{
"answer_id": 74435675,
"author": "Drew Reese",
"author_id": 86... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20502973/"
] |
74,435,634 | <p>I have this code:</p>
<pre><code>type X struct {
y *X
}
func main() {
x1 := &X{y: nil}
x2 := &X{y: x1}
fmt.Println(x1 == x2.y)
// true
x1 = nil
fmt.Println(x1 == nil)
fmt.Println(x2.y == nil)
// true
// false
}
</code></pre>
<p>As you can see <code>x.y</code> is a... | [
{
"answer_id": 74435715,
"author": "Burak Serdar",
"author_id": 11923999,
"author_profile": "https://Stackoverflow.com/users/11923999",
"pm_score": 3,
"selected": true,
"text": "x1 {y:nil} X x2.y {y:nil x1=nil x1 x2.y {y:nil}"
},
{
"answer_id": 74435900,
"author": "Elias Van ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435634",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11487872/"
] |
74,435,636 | <p>I have a dictionary <code>"A"</code>:</p>
<pre class="lang-py prettyprint-override"><code>A = {
"Industry1": 1,
"Industry2": 1,
"Industry3": 1,
"Customer1": 1,
"Customer2": 1,
"LocalShop1": 1,
"LocalShop2": 1,... | [
{
"answer_id": 74435850,
"author": "Raddude",
"author_id": 4551587,
"author_profile": "https://Stackoverflow.com/users/4551587",
"pm_score": 0,
"selected": false,
"text": "industries = {}\ncustomers = {}\nshops = {}\n\nfor key, value in A.items():\n if \"Industry\" in key:\n in... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20502886/"
] |
74,435,638 | <p>So, I have enums:</p>
<pre><code>export enum FilterName {
Date = 'date',
State = 'state',
}
export enum FilterField {
CreatedAtStartDate = 'createdAtStartDate',
CreatedAtEndDate = 'createdAtEndDate'
State = 'state',
}
export type TDateFields = {
min: FilterField.CreatedAtStartDate;
max: FilterField.C... | [
{
"answer_id": 74435850,
"author": "Raddude",
"author_id": 4551587,
"author_profile": "https://Stackoverflow.com/users/4551587",
"pm_score": 0,
"selected": false,
"text": "industries = {}\ncustomers = {}\nshops = {}\n\nfor key, value in A.items():\n if \"Industry\" in key:\n in... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2692863/"
] |
74,435,644 | <p>New to React here. Might be a n00b q but doing a project where I'm trying to build a recipe app and the api I'm using retrieves an object with this value:</p>
<pre class="lang-html prettyprint-override"><code><ol>
<li>Place ingredients in a high speed blender like Blendtec for super smooth texture, ble... | [
{
"answer_id": 74436117,
"author": "codinn.dev",
"author_id": 15755662,
"author_profile": "https://Stackoverflow.com/users/15755662",
"pm_score": 2,
"selected": false,
"text": "const yourString = `<ol><li>Place ingredients in a high speed blender like Blendtec for super smooth texture, b... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19731470/"
] |
74,435,653 | <p>I have a html-element, that has the following attribute:
<code>ng-reflect-name="arrow-down-circle"</code></p>
<p>How can I check with cypress, if this attribute has the text "arrow-down-circle"?</p>
<p>Below is the whole html-element:
<code><ion-icon _ngcontent-wyk-c151="" slot="... | [
{
"answer_id": 74436020,
"author": "artiomi",
"author_id": 14394219,
"author_profile": "https://Stackoverflow.com/users/14394219",
"pm_score": 1,
"selected": false,
"text": "have.attr cy.get('ion-icon').should('have.attr', 'ng-reflect-name', 'arrow-down-circle')\n"
},
{
"answer_i... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20206386/"
] |
74,435,661 | <p>Consider the following setup:</p>
<pre><code>using System;
class Shelf : ScriptableObject // << IS A SCRIPTABLE OBJECT
{
[SerializeField] List<Jars> jars = new();
public AddUniqueJar(Type typeOfJar)
{
//need to add a new object of type typeOfJar to jars. I currently do something lik... | [
{
"answer_id": 74446813,
"author": "derHugo",
"author_id": 7111561,
"author_profile": "https://Stackoverflow.com/users/7111561",
"pm_score": 1,
"selected": false,
"text": "abstract abstract Jar Jar Jar ScriptableObject class Shelf : ScriptableObject\n{\n [SerializeField] List<Jar> jar... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20142415/"
] |
74,435,664 | <p>Before performing some statistical analysis I would like to add weights to my sample as a function of a variable (the population size for each areal unit) so that the higher the population size within each unit, the greater the weight it will get and the opposite. Do you have any suggestion on how to do this in R? T... | [
{
"answer_id": 74435776,
"author": "SamR",
"author_id": 12545041,
"author_profile": "https://Stackoverflow.com/users/12545041",
"pm_score": 2,
"selected": false,
"text": "weighted.mean() dat <- data.frame(\n country = c(\"UK\", \"US\", \"France\", \"Zimbabwe\"),\n pop = c(6.7e4, 3.... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15969268/"
] |
74,435,709 | <p>I am made a CMD batch file to generate the barcode numbers. Batch script generate the last ninth number of barcode by doing the calculation and generate the file named "barcode.txt". The code is working fine. Only the problem is when the "fn" number "Barcode Eight Digit " start with zer... | [
{
"answer_id": 74435776,
"author": "SamR",
"author_id": 12545041,
"author_profile": "https://Stackoverflow.com/users/12545041",
"pm_score": 2,
"selected": false,
"text": "weighted.mean() dat <- data.frame(\n country = c(\"UK\", \"US\", \"France\", \"Zimbabwe\"),\n pop = c(6.7e4, 3.... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16325253/"
] |
74,435,734 | <p>For example:</p>
<pre><code>def title(a,b):
...
def movie( c = title, d):
...
</code></pre>
<p>But I get : NameError: name 'title' is not defined</p>
<p>How can I use function 'title' in function 'movie' ?</p>
<p>I have try:</p>
<pre><code>def movie(title(a, b), c):
</code></pre>
<p>But SyntaxError: inval... | [
{
"answer_id": 74435781,
"author": "thicchead",
"author_id": 19815385,
"author_profile": "https://Stackoverflow.com/users/19815385",
"pm_score": -1,
"selected": false,
"text": "movie(title(a, b), c)"
},
{
"answer_id": 74435872,
"author": "Bourbon",
"author_id": 19384213,
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435734",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18980860/"
] |
74,435,773 | <p>I have this HTML example:</p>
<pre><code><d>
<d>
<t>0</t>
<p>1. Question 1</p>
<d>12111</d>
<r>
<o>A. aaa</o>
<o>B. Sol B</o>
<o>C. ccc</o>
<... | [
{
"answer_id": 74435781,
"author": "thicchead",
"author_id": 19815385,
"author_profile": "https://Stackoverflow.com/users/19815385",
"pm_score": -1,
"selected": false,
"text": "movie(title(a, b), c)"
},
{
"answer_id": 74435872,
"author": "Bourbon",
"author_id": 19384213,
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435773",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2314448/"
] |
74,435,774 | <p>I have a <code>.csv</code> file with 4 fields.</p>
<p>Field 1, 2, and 3 are text boxes</p>
<p>Field 4 is a number such as 1, 2, 3, etc.</p>
<p>There are multiple instances of field 1, 2, and 3 being the exact same for multiple records. In these instances I want to remove all but one of these records and add the numb... | [
{
"answer_id": 74435781,
"author": "thicchead",
"author_id": 19815385,
"author_profile": "https://Stackoverflow.com/users/19815385",
"pm_score": -1,
"selected": false,
"text": "movie(title(a, b), c)"
},
{
"answer_id": 74435872,
"author": "Bourbon",
"author_id": 19384213,
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20502988/"
] |
74,435,782 | <p>I have table with 3 columns:</p>
<pre><code>ID,
Cancellation_Policy_Type
Cancellation_Policy_Hours.
</code></pre>
<p>The query I would like to get to will allow me to select:</p>
<ul>
<li>the min Cancellation_Policy_Hours which correspond to the Free Cancellation (if exists)</li>
<li>if the above doesn't exist for... | [
{
"answer_id": 74436290,
"author": "nnichols",
"author_id": 1191247,
"author_profile": "https://Stackoverflow.com/users/1191247",
"pm_score": 0,
"selected": false,
"text": "SELECT\n ID,\n MIN(IF(Cancellation_Policy_Type = 'Free Cancellation', Cancellation_Policy_Hours, NULL)) AS mi... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4716032/"
] |
74,435,801 | <p>How can we know the no. of tasks that are waiting for processing on task server/app server in Marklogic.
I can only see the max limit and no. of requests are processing right now. But I didn't find any option to know the no. of tasks that are waiting.</p>
<p>Anyone please help.</p>
<p>I tried with different manage A... | [
{
"answer_id": 74436290,
"author": "nnichols",
"author_id": 1191247,
"author_profile": "https://Stackoverflow.com/users/1191247",
"pm_score": 0,
"selected": false,
"text": "SELECT\n ID,\n MIN(IF(Cancellation_Policy_Type = 'Free Cancellation', Cancellation_Policy_Hours, NULL)) AS mi... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2493317/"
] |
74,435,809 | <p>I have tried to make a discord bot using python but thing is that the bot does not respond...
So I just restarted from 0 and made this little code :</p>
<pre><code>import discord
bot = discord.Bot()
@bot.event
async def on_ready():
print(" -----------------")
print(" H2H - Here 2 Help"... | [
{
"answer_id": 74437416,
"author": "McBrincie212",
"author_id": 20503634,
"author_profile": "https://Stackoverflow.com/users/20503634",
"pm_score": 0,
"selected": false,
"text": "discord.Bot commands.Bot import discord\nfrom discord.ext import commands\n\nbot = commands.bot()\n\n@bot.eve... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20502941/"
] |
74,435,831 | <p>I got this error. Any idea?</p>
<p>Thank you.</p>
<p>Error:</p>
<pre><code>PHP Fatal error: Uncaught Error: Undefined constant "CURLOPT_TCP_FASTOPEN"
</code></pre>
<p>OS:</p>
<pre><code>CentOs 7.x
</code></pre>
<p>Version:</p>
<pre><code>3.10.0-1160.76.1.el7.x86_64
</code></pre>
<p>$curl --tcp-fastopen -O... | [
{
"answer_id": 74444445,
"author": "hanshenrik",
"author_id": 1067003,
"author_profile": "https://Stackoverflow.com/users/1067003",
"pm_score": 0,
"selected": false,
"text": "git clone -b 'OpenSSL_1_1_1k' --single-branch --depth 1 https://github.com/openssl/openssl\ncd openssl\n./config\... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8500616/"
] |
74,435,838 | <p>For a research project, I am building a web tool to track users' interactions with specific elements that I need for later analysis.</p>
<p>Often, I have interactable containers that contain graphics or text elements, sometimes both. For instance:</p>
<pre><code><div class="interaction-field trackable" ... | [
{
"answer_id": 74435987,
"author": "imvain2",
"author_id": 3684265,
"author_profile": "https://Stackoverflow.com/users/3684265",
"pm_score": 2,
"selected": true,
"text": "document.addEventListener(\"click\",(e)=>{\n let trackedEl = e.target.closest(\".trackable\");\n if(trackedEl){\n... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5915076/"
] |
74,435,859 | <p>I know this question is a repeated one. But what I am trying to do is, I want to iterate through a date range and for each iteration i need to set the fromDate and toDate.</p>
<p>for ex:
If I give the date range as startDate = '2022-10-31'
and endDate = '2022-11-04'</p>
<p>and for each iteration fromDate = '2022-10-... | [
{
"answer_id": 74435930,
"author": "Sreeram TP",
"author_id": 7896849,
"author_profile": "https://Stackoverflow.com/users/7896849",
"pm_score": 1,
"selected": false,
"text": "import datetime\n\nstart_date = datetime.date(2022, 10, 31)\nend_date = datetime.date(2022, 11, 4)\n\ndates_201... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3222718/"
] |
74,435,861 | <p>Is there a known Java String with hashCode exactly equal to Integer.MIN_VALUE ? It would be helpful for writing a test for a hash table to help avoid a common mistake of running Math.Abs on the hashcode before performing the remainder operation.</p>
<p>Ideally the string would include only ASCII characters, but I'm... | [
{
"answer_id": 74437111,
"author": "knittl",
"author_id": 112968,
"author_profile": "https://Stackoverflow.com/users/112968",
"pm_score": 1,
"selected": false,
"text": "String#hashCode() s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]\n -2147483648 public class HashFinder {\n private sta... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2295812/"
] |
74,435,870 | <p>I know how I would do this using a temp table, but I want to know how to do this using both <code>ROW_NUMBER()</code> and <code>RANK()</code> for my own learning.</p>
<p>Data:</p>
<pre><code>Item Desc Qty Row
ItemA ItemDescA 10 1
ItemA ItemDescA 20 2
ItemB ItemDescB 30 3
ItemB ItemDescB 4... | [
{
"answer_id": 74437111,
"author": "knittl",
"author_id": 112968,
"author_profile": "https://Stackoverflow.com/users/112968",
"pm_score": 1,
"selected": false,
"text": "String#hashCode() s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]\n -2147483648 public class HashFinder {\n private sta... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4838216/"
] |
74,435,879 | <p>I would like to create type from <code>key</code> in my code:</p>
<pre><code>const arr = [{ key: "a", nnumber: 11 }, { key: "b", nnumber: 1 }];
function test<Keys['key'] extends keyof string>(keys: Keys): Keys[] {
return arr.map((item) => item.key);
}
// should return "a"... | [
{
"answer_id": 74435960,
"author": "Matthieu Riegler",
"author_id": 884123,
"author_profile": "https://Stackoverflow.com/users/884123",
"pm_score": 1,
"selected": false,
"text": "as const const arr = [{ key: \"a\", nnumber: 11 }, { key: \"b\", nnumber: 1 }] as const;\n\n\ntype foo = type... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16768298/"
] |
74,435,885 | <p>I'm trying to query and correctly format an address made up of multiple values in Oracle when some of those values are NULL. Coalesce() works well for this but not when I add spacing/punctuation.</p>
<p>Examples</p>
<pre><code>address 1: 123 Main St
address 2: Apt 1
City: New York
State: NY
Postal Code: 10001
Countr... | [
{
"answer_id": 74435960,
"author": "Matthieu Riegler",
"author_id": 884123,
"author_profile": "https://Stackoverflow.com/users/884123",
"pm_score": 1,
"selected": false,
"text": "as const const arr = [{ key: \"a\", nnumber: 11 }, { key: \"b\", nnumber: 1 }] as const;\n\n\ntype foo = type... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7999394/"
] |
74,435,902 | <p>I am trying to replace the "o " with "• " in this text:</p>
<blockquote>
<p>• Direct the Department’s technical</p>
<p>• Perform supervisory and managerial responsibilities as leader of the program</p>
<p>o Set direction to ensure goals and objectives</p>
<p>o Select management and other key pers... | [
{
"answer_id": 74435960,
"author": "Matthieu Riegler",
"author_id": 884123,
"author_profile": "https://Stackoverflow.com/users/884123",
"pm_score": 1,
"selected": false,
"text": "as const const arr = [{ key: \"a\", nnumber: 11 }, { key: \"b\", nnumber: 1 }] as const;\n\n\ntype foo = type... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3482393/"
] |
74,435,910 | <p>Using <a href="https://www.jfrog.com/confluence/display/CLI/CLI+for+JFrog+Artifactory#CLIforJFrogArtifactory-Download,CopyandMoveCommandsSpecSchema" rel="nofollow noreferrer">JFrog CLI</a> (v1.48.1) I want to download the contents of a folder from an on-premise Artifactory instance (EnterpriseX license 7.41.7). The ... | [
{
"answer_id": 74435960,
"author": "Matthieu Riegler",
"author_id": 884123,
"author_profile": "https://Stackoverflow.com/users/884123",
"pm_score": 1,
"selected": false,
"text": "as const const arr = [{ key: \"a\", nnumber: 11 }, { key: \"b\", nnumber: 1 }] as const;\n\n\ntype foo = type... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11289327/"
] |
74,435,915 | <p>I have a file that contains somehting like this:</p>
<pre><code>[project]
name = "sinntelligence"
version = "1.1.dev12"
dependencies = [
"opencv-python",
"matplotlib",
"PySide6",
"numpy",
"numba"
]
</code></pre>
<p>Now I want to find the... | [
{
"answer_id": 74436007,
"author": "Wiktor Stribiżew",
"author_id": 3832970,
"author_profile": "https://Stackoverflow.com/users/3832970",
"pm_score": 2,
"selected": true,
"text": "grep -P sed perl perl -i -pe 's/^version.*dev\\K(\\d+)/$1 + 1/e' sed-test.txt\n #!/bin/bash\ns='[project]\nn... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/514149/"
] |
74,435,936 | <p>My XML input looks like:</p>
<pre><code><?xml version="1.0" ?>
<input>
<record>
<name>James Smith</name>
<country>United Kingdom</country>
<opt>
good social skills,
<qualification>MSc</qualification>,
10 years of ex... | [
{
"answer_id": 74436337,
"author": "michael.hor257k",
"author_id": 3016153,
"author_profile": "https://Stackoverflow.com/users/3016153",
"pm_score": 2,
"selected": true,
"text": "<xsl:stylesheet version=\"1.0\"\nxmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n<xsl:output method=\"te... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1782782/"
] |
74,435,979 | <p>So, I've got this view of animal cards called like this:</p>
<pre><code> <AnimalsCard {...elephant}/>
<AnimalsCard {...hippo}/>
<AnimalsCard {...sugar_glider}/>
</code></pre>
<p><a href="https://i.stack.imgur.com/fLwmh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fL... | [
{
"answer_id": 74436105,
"author": "DevAra",
"author_id": 4122324,
"author_profile": "https://Stackoverflow.com/users/4122324",
"pm_score": 0,
"selected": false,
"text": "<Route path=\"/:id\" render={()=> <AnimalsDetails item={...animaldata} />} />\n import React, { useEffect } from... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74435979",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17767762/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.