qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,465,662
<p>I am having a problem that my brain cannot figure out.</p> <p>I have a script that I copied and modified that will Randomly select a cell that is not blank from reassign!A1:A10</p> <p>in reassign Tab I have a Query that will filter another sheet if a checkbox is ticked</p> <p>so in reassign!A1:A10 it will depend if ...
[ { "answer_id": 74465679, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 4, "selected": true, "text": "add_count dplyr name library(dplyr)\n\ndf %>% \n add_count(answer, name = \"freq\")\n id answer freq\n1 1 c...
2022/11/16
[ "https://Stackoverflow.com/questions/74465662", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20138028/" ]
74,465,664
<p>I am trying to get live exchange rates for my java exchange currency program. I saw that this could be done using API from the internet and import the website URL in the java program to get live exchange rates. However I am having trouble working with JSON and getting a few more errors that prevent me from running t...
[ { "answer_id": 74465679, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 4, "selected": true, "text": "add_count dplyr name library(dplyr)\n\ndf %>% \n add_count(answer, name = \"freq\")\n id answer freq\n1 1 c...
2022/11/16
[ "https://Stackoverflow.com/questions/74465664", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20406430/" ]
74,465,726
<p>I have two dataframes, one that looks like this:</p> <pre><code>&gt;df1 SNP Symbols 1 rs11807834 GRIN1,SETD1A 2 rs3729986 MADD,STAC3,SPI1 3 rs61937595 NDUFA4L2,STAC3,CAMK2N1 </code></pre> <p>and another that looks like this</p> <pre><code>&gt;df2 Symbol S...
[ { "answer_id": 74465870, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 3, "selected": true, "text": "separate_rows left_join slice_max library(dplyr)\nlibrary(tidyr)\n\ndf1 %>% \n separate_rows(Symbols, sep = \",\") ...
2022/11/16
[ "https://Stackoverflow.com/questions/74465726", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1871399/" ]
74,465,732
<p>(Using loops or recursion), I'm trying to write a python function where the user enters an amount of dollars (say:1.25) and number of coins (say:6), then the function decides whether, or not, it is possible to form the exact amount of dollars using the exact given number of coins, assuming that the coins are quarter...
[ { "answer_id": 74465870, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 3, "selected": true, "text": "separate_rows left_join slice_max library(dplyr)\nlibrary(tidyr)\n\ndf1 %>% \n separate_rows(Symbols, sep = \",\") ...
2022/11/16
[ "https://Stackoverflow.com/questions/74465732", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17805177/" ]
74,465,735
<p>I've seen some other questions about comparing multiple columns, but I'm not sure they fit this exact need.</p> <p>I'm trying to ensure an exact pair of columns in one table exists as the exact same pair of columns in another table. The goal is to check and mark a bit column as true false if it exists.</p> <p>The la...
[ { "answer_id": 74465870, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 3, "selected": true, "text": "separate_rows left_join slice_max library(dplyr)\nlibrary(tidyr)\n\ndf1 %>% \n separate_rows(Symbols, sep = \",\") ...
2022/11/16
[ "https://Stackoverflow.com/questions/74465735", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3729714/" ]
74,465,768
<p>I have a data set that looks like this:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Timestamp</th> <th>Cumulative Energy (kWh)</th> <th>Charging?</th> </tr> </thead> <tbody> <tr> <td>2022-08-19 05:45:00</td> <td>24.9</td> <td>1</td> </tr> <tr> <td>2022-08-19 06:00:00</td> <td>44.7</t...
[ { "answer_id": 74465870, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 3, "selected": true, "text": "separate_rows left_join slice_max library(dplyr)\nlibrary(tidyr)\n\ndf1 %>% \n separate_rows(Symbols, sep = \",\") ...
2022/11/16
[ "https://Stackoverflow.com/questions/74465768", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12991219/" ]
74,465,770
<p>I've created a pirate speak program.</p> <p>It asks the user for their name and date of birth and calculates the years from the input and added 100 years for fun. I also need to calculate the number of days left until their birthday using user input but I don't know what to do. I've tried some methods and stuff but ...
[ { "answer_id": 74466256, "author": "Rhett Harrison", "author_id": 14839305, "author_profile": "https://Stackoverflow.com/users/14839305", "pm_score": 1, "selected": false, "text": "var name = prompt('What\\'s yer name?');\n\nvar birthDateString = prompt('What\\'s yer date o\\' birth? (mm...
2022/11/16
[ "https://Stackoverflow.com/questions/74465770", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20400133/" ]
74,465,780
<p>I can't seem to understand how to continue to another IF statement. What I'm trying to do is:</p> <ul> <li>IF Action 1 succeed then do X AND go to Action 2, else log it and RETURN to the next loop</li> <li>If Action 2 succeed then do X AND go to Action 3, else log it and RETURN to the next loop</li> </ul> <p>I am ha...
[ { "answer_id": 74479772, "author": "emanresu", "author_id": 5066540, "author_profile": "https://Stackoverflow.com/users/5066540", "pm_score": 2, "selected": true, "text": "Foreach-Object % return else If (Success Condition){\n Actions to do on success\n}\nelse{\n Actions to do on fai...
2022/11/16
[ "https://Stackoverflow.com/questions/74465780", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6466972/" ]
74,465,782
<p>I'd like to write a <code>asnprintf</code> function -- which is a wrapper around snprintf, but it mallocs the string according to its output size. Unfortunately when I compile I get a warning (promoted to error on my system) <code>format string is not a string literal [-Werror,-Wformat-nonliteral]</code>.</p> <p>I ...
[ { "answer_id": 74465914, "author": "Marco Bonelli", "author_id": 3889449, "author_profile": "https://Stackoverflow.com/users/3889449", "pm_score": 2, "selected": false, "text": "#pragma GCC diagnostic push\n#pragma GCC diagnostic ignored \"-Wformat-nonliteral\"\n#pragma GCC diagnostic ig...
2022/11/16
[ "https://Stackoverflow.com/questions/74465782", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8710344/" ]
74,465,794
<p>I'm totally new to Python and I'm sure I'm missing something simple, I want to remove all Strings.</p> <pre><code>def filter_list(l): for f in l: if isinstance(f, str): l.remove(f) return l print(filter_list([1,2,'a','b'])) </code></pre> <p>The output I get is:</p> <p>[1,2,'b']</p>
[ { "answer_id": 74465831, "author": "Jamie.Sgro", "author_id": 11550733, "author_profile": "https://Stackoverflow.com/users/11550733", "pm_score": 2, "selected": false, "text": "a = [1,2,'a','b']\nb = [x for x in a if not isinstance(x, str)]\nprint(b) # [1, 2]\n" }, { "answer_id"...
2022/11/16
[ "https://Stackoverflow.com/questions/74465794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18714330/" ]
74,465,802
<p>I am looking for a function that takes two input arguments, <code>boardtype</code> and <code>subsysnum</code> and then finds the row index that has that specific combination. However, if subsysnum column is blank then continue on. Only some cases will have a <code>subsysnum</code> value. <code>boardtype</code> will ...
[ { "answer_id": 74465831, "author": "Jamie.Sgro", "author_id": 11550733, "author_profile": "https://Stackoverflow.com/users/11550733", "pm_score": 2, "selected": false, "text": "a = [1,2,'a','b']\nb = [x for x in a if not isinstance(x, str)]\nprint(b) # [1, 2]\n" }, { "answer_id"...
2022/11/16
[ "https://Stackoverflow.com/questions/74465802", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20114520/" ]
74,465,822
<p>So I have a script that is designed to search through specific folders in google drive for files with specific dates and get their respective FileId. The problem is lately this script has been confusing files that have the same numbers in the date, for instance it will confuse 11/2/2022 with 2/11/2022 and thus give ...
[ { "answer_id": 74465831, "author": "Jamie.Sgro", "author_id": 11550733, "author_profile": "https://Stackoverflow.com/users/11550733", "pm_score": 2, "selected": false, "text": "a = [1,2,'a','b']\nb = [x for x in a if not isinstance(x, str)]\nprint(b) # [1, 2]\n" }, { "answer_id"...
2022/11/16
[ "https://Stackoverflow.com/questions/74465822", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12286771/" ]
74,465,862
<p>How can I combine queries like this so I dont repeat css code? Every query works on its own but not together.</p> <p>I want media to be used as fallback if container queries dont work. I know media is applied to whole page width, while container queries only to element width.</p> <p><div class="snippet" data-lang="j...
[ { "answer_id": 74465831, "author": "Jamie.Sgro", "author_id": 11550733, "author_profile": "https://Stackoverflow.com/users/11550733", "pm_score": 2, "selected": false, "text": "a = [1,2,'a','b']\nb = [x for x in a if not isinstance(x, str)]\nprint(b) # [1, 2]\n" }, { "answer_id"...
2022/11/16
[ "https://Stackoverflow.com/questions/74465862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1009466/" ]
74,465,878
<p>I have this walker that’s spawn some nodes which works fine locally. On the server it’s running and reporting fine but the nodes are not there.</p> <p>[<a href="https://i.stack.imgur.com/o5zTi.png" rel="nofollow noreferrer">server</a>] [<a href="https://i.stack.imgur.com/CGVnA.png" rel="nofollow noreferrer">locally<...
[ { "answer_id": 74465831, "author": "Jamie.Sgro", "author_id": 11550733, "author_profile": "https://Stackoverflow.com/users/11550733", "pm_score": 2, "selected": false, "text": "a = [1,2,'a','b']\nb = [x for x in a if not isinstance(x, str)]\nprint(b) # [1, 2]\n" }, { "answer_id"...
2022/11/16
[ "https://Stackoverflow.com/questions/74465878", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20523166/" ]
74,465,890
<p>My React Native App crashes after update target Sdk version and compileSdkVersion 31. It was working version 30. Google play forced us this update. The app crashes on Android 12 version devices. It works on android 10 or 11.</p> <p>My package.json file:</p> <pre><code>{ &quot;name&quot;: &quot;app&quot;, &quot;v...
[ { "answer_id": 74549190, "author": "Mohammad Goldast", "author_id": 5040101, "author_profile": "https://Stackoverflow.com/users/5040101", "pm_score": 0, "selected": false, "text": "buildscript {\next {\n buildToolsVersion = \"31.0.0\"\n minSdkVersion = 21\n compileSdkVersion = 3...
2022/11/16
[ "https://Stackoverflow.com/questions/74465890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13446730/" ]
74,465,899
<p>Let say I have a date range that has a specified start and end date. I want to loop through each day, and each loop I will add the date to an empty object(2) and once the length of object(2) has reach a specific length I want to push obj(2) to the main object(1) and continue with the loop.</p> <pre><code>var startDa...
[ { "answer_id": 74549190, "author": "Mohammad Goldast", "author_id": 5040101, "author_profile": "https://Stackoverflow.com/users/5040101", "pm_score": 0, "selected": false, "text": "buildscript {\next {\n buildToolsVersion = \"31.0.0\"\n minSdkVersion = 21\n compileSdkVersion = 3...
2022/11/16
[ "https://Stackoverflow.com/questions/74465899", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13594821/" ]
74,465,904
<p>I have this problem, it seems silly but I can't find the solution.</p> <p>In short I want to simulate something like this:</p> <p><a href="https://i.stack.imgur.com/JP7ED.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JP7ED.png" alt="enter image description here" /></a></p> <p>I have a boostrap c...
[ { "answer_id": 74465998, "author": "Емил Цоков", "author_id": 4264994, "author_profile": "https://Stackoverflow.com/users/4264994", "pm_score": 1, "selected": false, "text": "body {\n background-color: aqua;\n }\n .card-body {\n position: relative;\n padding-top: 80px;\n}\n \n .div-img-u...
2022/11/16
[ "https://Stackoverflow.com/questions/74465904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11513437/" ]
74,465,946
<p>I have learned the java basics and am now trying to make an android app for my phone. I was doing fine up until I started using variables in android studio. Im fairly sure variables are meant to be declared like</p> <pre><code>var/val varName:Boolean false; </code></pre> <p>But whenever I do this I get an error sayi...
[ { "answer_id": 74466012, "author": "JustSightseeing", "author_id": 15749574, "author_profile": "https://Stackoverflow.com/users/15749574", "pm_score": 1, "selected": true, "text": "val a: Int = 1 // this is a VALUE, you cannot change the value of \"val\"\nval b = 2 // this is also a val...
2022/11/16
[ "https://Stackoverflow.com/questions/74465946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20523271/" ]
74,465,958
<p>Assume that I've a complex json file that is used to configurate my project.</p> <p>Like the json below:</p> <pre class="lang-json prettyprint-override"><code>{ &quot;apis&quot;: { &quot;payment&quot;: { &quot;base_url&quot;: &quot;https://example.com/&quot; }, &quot;order&quo...
[ { "answer_id": 74466012, "author": "JustSightseeing", "author_id": 15749574, "author_profile": "https://Stackoverflow.com/users/15749574", "pm_score": 1, "selected": true, "text": "val a: Int = 1 // this is a VALUE, you cannot change the value of \"val\"\nval b = 2 // this is also a val...
2022/11/16
[ "https://Stackoverflow.com/questions/74465958", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9114389/" ]
74,466,039
<p>Array 1 is called 'students', with 'Alex', 'Rich', 'Anthony', 'Len', 'Mark' as values. Array 2 is called 'grades' with [85, 44], [63, 19], [47, 95], [30, 67], [33, 16] as values.</p> <p>I need to select all rows from 'grades' where 'students' is either 'Alex' or 'Mark'</p> <p>Do I need to combine the arrays? I am ne...
[ { "answer_id": 74466012, "author": "JustSightseeing", "author_id": 15749574, "author_profile": "https://Stackoverflow.com/users/15749574", "pm_score": 1, "selected": true, "text": "val a: Int = 1 // this is a VALUE, you cannot change the value of \"val\"\nval b = 2 // this is also a val...
2022/11/16
[ "https://Stackoverflow.com/questions/74466039", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20297021/" ]
74,466,074
<p>I try to develop a simple input form to save a deposit for a fishing vessel. The vessel and the net are tables in the database. There is no error when the form is submitted but there is nothing happening in the background. I use a PostgreSQL database with PgAdmin for insights.I am a little bit stuck since it's my fi...
[ { "answer_id": 74466012, "author": "JustSightseeing", "author_id": 15749574, "author_profile": "https://Stackoverflow.com/users/15749574", "pm_score": 1, "selected": true, "text": "val a: Int = 1 // this is a VALUE, you cannot change the value of \"val\"\nval b = 2 // this is also a val...
2022/11/16
[ "https://Stackoverflow.com/questions/74466074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20523327/" ]
74,466,086
<p>example dictionary:</p> <pre><code>sample_dict = {'doctor': {'docter_a': 26, 'docter_b': 40, 'docter_c': 42}, 'teacher': {'teacher_x': 21, 'teacher_y': 45, 'teacher_z': 33}} </code></pre> <p>output dataframe:</p> <pre><code>job person age doctor |doctor_a | 26 doctor |doctor_b | 40 doctor |do...
[ { "answer_id": 74466322, "author": "Nuri Taş", "author_id": 19255749, "author_profile": "https://Stackoverflow.com/users/19255749", "pm_score": 1, "selected": false, "text": "zip pd.DataFrame zip_list = [list(zip([key]*len(sample_dict['doctor']), \n sample_dict[key], \n ...
2022/11/16
[ "https://Stackoverflow.com/questions/74466086", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18976874/" ]
74,466,125
<p>Pyhton is new to me and i'm having a little problem with the for loops,<br /> Im used to for loop in java where you can set integers as you like in the loops but can't get it right in python.<br /> the task i was given is to make a function that return True of False.<br /> the function get 3 integers: short rope amo...
[ { "answer_id": 74466322, "author": "Nuri Taş", "author_id": 19255749, "author_profile": "https://Stackoverflow.com/users/19255749", "pm_score": 1, "selected": false, "text": "zip pd.DataFrame zip_list = [list(zip([key]*len(sample_dict['doctor']), \n sample_dict[key], \n ...
2022/11/16
[ "https://Stackoverflow.com/questions/74466125", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20523368/" ]
74,466,141
<p>I have a database with workers and their names. How can I get a list of the workers whose name contains only 5 characters</p>
[ { "answer_id": 74466184, "author": "Mehedi Hasan", "author_id": 19207212, "author_profile": "https://Stackoverflow.com/users/19207212", "pm_score": 1, "selected": true, "text": "SELECT * FROM table_name WHERE island_name LIKE '_____'\n" }, { "answer_id": 74466355, "author": "...
2022/11/16
[ "https://Stackoverflow.com/questions/74466141", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,466,153
<p>I have a .csv where each row corresponds to a person (first column) and attributes with values that are available for that person. I want to extract the names and values a particular attribute for persons where the attribute is available. The doc is structured as follows:</p> <pre><code>name,attribute1,value1,attrib...
[ { "answer_id": 74466268, "author": "markp-fuso", "author_id": 7366100, "author_profile": "https://Stackoverflow.com/users/7366100", "pm_score": 2, "selected": false, "text": "awk awk -v attr=\"height\" '\nBEGIN { FS=OFS=\",\" }\nFNR==1 { print \"name\", \"attribute\", \"value\"; next }\...
2022/11/16
[ "https://Stackoverflow.com/questions/74466153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6878762/" ]
74,466,196
<p>For my job I have large amount of excel files in which I have to replace certain values. I just started with openpyxl and tried the following code:</p> <pre><code>import openpyxl from openpyxl import load_workbook wb1 = load_workbook(filename = 'testfile.xlsx') ws1 = wb1.active i = 0 for r in range(1,ws1.max_row+1...
[ { "answer_id": 74466358, "author": "MwBakker", "author_id": 4895256, "author_profile": "https://Stackoverflow.com/users/4895256", "pm_score": 1, "selected": false, "text": "or 'NM181841' in s:\n TypeError: argument of type 'NoneType' is not iterable\n" }, { "answer_id": 74466404,...
2022/11/16
[ "https://Stackoverflow.com/questions/74466196", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20368453/" ]
74,466,209
<p>I'm trying to only return array values that contain a specific phrase in the string of 'Corp'</p> <p>This returns all the values, but I only need the ones that contain &quot;Corp&quot;</p> <pre><code>var url = &quot;/iaas/api/image-profiles&quot;; System.debug(&quot;getImageProfiles url: &quot;+url); var response=S...
[ { "answer_id": 74466358, "author": "MwBakker", "author_id": 4895256, "author_profile": "https://Stackoverflow.com/users/4895256", "pm_score": 1, "selected": false, "text": "or 'NM181841' in s:\n TypeError: argument of type 'NoneType' is not iterable\n" }, { "answer_id": 74466404,...
2022/11/16
[ "https://Stackoverflow.com/questions/74466209", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12815216/" ]
74,466,233
<p>I am able to check for a specific column if it exists using '<code>contains</code>' in <code>dplyr</code> . I struggle with evaluating the summary of the expression if it does not exist.</p> <p>Here is my code snippet:</p> <pre><code> df &lt;- Prod%&gt;% group_by(Entity)%&gt;% select(Entity,`Cum.Oil`,`C...
[ { "answer_id": 74466326, "author": "Juan C", "author_id": 9462829, "author_profile": "https://Stackoverflow.com/users/9462829", "pm_score": 3, "selected": true, "text": "df <- Prod%>%\n group_by(Entity)%>%\n summarise(across(any_of(c('Cum.Oil', 'Cum.Gas', 'Eur')), ~mean(.x), \n...
2022/11/16
[ "https://Stackoverflow.com/questions/74466233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11397513/" ]
74,466,303
<pre><code>for(x=0; x&lt;100; x++); printf(“%d”,x); </code></pre> <p>why it gives 100</p> <p>(i) Identify bug/bugs in this program segment (ii) Write a correct version of this program segment</p> <p>I tried</p> <pre><code>for(x=0; x&lt;100; x++){ printf(“%d”,x);} </code></pre> <p>ı can see all numbers 0 to 100 but</p...
[ { "answer_id": 74466366, "author": "David", "author_id": 328193, "author_profile": "https://Stackoverflow.com/users/328193", "pm_score": 2, "selected": false, "text": "for(x=0; x<100; x++);\nprintf(\"%d\",x);\n for(x=0; x<100; x++) {\n printf(\"%d\",x);\n}\n" }, { "answer_id": 7...
2022/11/16
[ "https://Stackoverflow.com/questions/74466303", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19653652/" ]
74,466,374
<p>I'm not totally sure if I'm using the correct terminology or not, I'm relatively new to node.</p> <p>I have two JSON objects</p> <pre class="lang-js prettyprint-override"><code>const objA = { key1: value1 ... } const objB = { key2: value2 ... } </code></pre> <p>that I want to combine into one while keeping t...
[ { "answer_id": 74466423, "author": "Shawn", "author_id": 14361465, "author_profile": "https://Stackoverflow.com/users/14361465", "pm_score": 2, "selected": true, "text": "const newObj = {objA, objB};\n" }, { "answer_id": 74466573, "author": "DᴀʀᴛʜVᴀᴅᴇʀ", "author_id": 1952...
2022/11/16
[ "https://Stackoverflow.com/questions/74466374", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3413122/" ]
74,466,385
<p>As posted in this question: <a href="https://stackoverflow.com/questions/71661838/hide-dropdown-menu-on-click-in-css">Hide dropdown menu on click in CSS</a>, I'm looking for a CSS-only way to hide a popup/dropdown menu when one of the links is clicked. An <a href="https://stackoverflow.com/a/71663358/17247581">answe...
[ { "answer_id": 74466423, "author": "Shawn", "author_id": 14361465, "author_profile": "https://Stackoverflow.com/users/14361465", "pm_score": 2, "selected": true, "text": "const newObj = {objA, objB};\n" }, { "answer_id": 74466573, "author": "DᴀʀᴛʜVᴀᴅᴇʀ", "author_id": 1952...
2022/11/16
[ "https://Stackoverflow.com/questions/74466385", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17247581/" ]
74,466,396
<p>If I have a list of names in a sheet for example:</p> <pre><code>First Name|Last Name|Something else| Maria|Miller|...| John|Doe|...| Maria|Smith|...| Marc|Meier|...| Marc|Park|...| Maria|Muster|...| Selene|Mills|...| Adam|Broker|...| </code></pre> <p>And then I want a second sheet which then shows the list of non-...
[ { "answer_id": 74466423, "author": "Shawn", "author_id": 14361465, "author_profile": "https://Stackoverflow.com/users/14361465", "pm_score": 2, "selected": true, "text": "const newObj = {objA, objB};\n" }, { "answer_id": 74466573, "author": "DᴀʀᴛʜVᴀᴅᴇʀ", "author_id": 1952...
2022/11/16
[ "https://Stackoverflow.com/questions/74466396", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1777566/" ]
74,466,401
<p>I got more of a general question today. I am a self-taught programmer and do it on a hobby-base for small private projects. What is hard to learn from tutorials and documentation is how to properly structure code.</p> <p>In case of React.js I often find myself with hundreds of lines of code within a single page or c...
[ { "answer_id": 74466570, "author": "ray", "author_id": 636077, "author_profile": "https://Stackoverflow.com/users/636077", "pm_score": 3, "selected": true, "text": "useState function reducer( state, action ) {\n const newState = ... // figure out the new state\n return newState;\n}\n i...
2022/11/16
[ "https://Stackoverflow.com/questions/74466401", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11702317/" ]
74,466,407
<p>Using the above code, I have created 5 five subplots:</p> <pre><code>values = {&quot;x_values&quot; : [&quot;ENN&quot;, &quot;CNN&quot;, &quot;ENN-CNN&quot;], &quot;eu&quot; : [11, 79.97, 91], &quot;man&quot; : [11, 80, 90], &quot;min3&quot; : [11, 79.70, 90], &quot;min4&quot; : [11, 79.50, 90], &quot;che&quot; : [1...
[ { "answer_id": 74466554, "author": "Scott Boston", "author_id": 6361531, "author_profile": "https://Stackoverflow.com/users/6361531", "pm_score": 3, "selected": true, "text": "values = {\"x_values\" : [\"ENN\", \"CNN\", \"ENN-CNN\"],\n\"eu\" : [11, 79.97, 91],\n\"man\" : [11, 80, 90],\n\...
2022/11/16
[ "https://Stackoverflow.com/questions/74466407", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17343927/" ]
74,466,422
<p>My goal is to get the previous 3 Mondays in date format <code>2022-01-31</code> based off a date.</p> <p>I know I can use the following to get 1 monday.</p> <p>So for example today is 2022-11-16 and monday was 2022-11-14</p> <pre><code>library(lubridate) todays_date &lt;- as.Date('2022-11-16') floor_date(todays_date...
[ { "answer_id": 74466554, "author": "Scott Boston", "author_id": 6361531, "author_profile": "https://Stackoverflow.com/users/6361531", "pm_score": 3, "selected": true, "text": "values = {\"x_values\" : [\"ENN\", \"CNN\", \"ENN-CNN\"],\n\"eu\" : [11, 79.97, 91],\n\"man\" : [11, 80, 90],\n\...
2022/11/16
[ "https://Stackoverflow.com/questions/74466422", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12512712/" ]
74,466,453
<p>I need to filter my model data with a search bar. I added the <code>.searchable()</code> property and when the search text changes I filter my objects with fuzzy matching. This takes too much time and the app lags when writing into the search box. So I want to do the searching asynchronously so that the app doesn't ...
[ { "answer_id": 74467409, "author": "Volkan Sonmez", "author_id": 4888710, "author_profile": "https://Stackoverflow.com/users/4888710", "pm_score": 3, "selected": true, "text": " struct Example: View {\n\n @State var searchText = \"\"\n let searchTextPublisher = PassthroughSubjec...
2022/11/16
[ "https://Stackoverflow.com/questions/74466453", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15550053/" ]
74,466,481
<p>I have two data tables <code>vehicles</code> and <code>trips</code>, which have a one to many relationship and allow for multiple trips per vehicle. <code>route</code> is a column in the <code>trips</code> table. I want to see the vehicle list for a specific route, so I ran the following query.</p> <pre><code>$trips...
[ { "answer_id": 74467409, "author": "Volkan Sonmez", "author_id": 4888710, "author_profile": "https://Stackoverflow.com/users/4888710", "pm_score": 3, "selected": true, "text": " struct Example: View {\n\n @State var searchText = \"\"\n let searchTextPublisher = PassthroughSubjec...
2022/11/16
[ "https://Stackoverflow.com/questions/74466481", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20242711/" ]
74,466,503
<p>I use Manjaro Linux, DISTRIB_RELEASE=22.0.0, GNOME 43.1, Kernel 5.19.17-2, and I used zsh.</p> <p>I decided to learn C++, but I ran into a problem. If I didn't add <code>std::endl</code> when outputting to the console, the symbol &quot;%&quot; is added.</p> <p>See the screenshots attached.</p> <p>Code1:</p> <pre><co...
[ { "answer_id": 74473693, "author": "user1934428", "author_id": 1934428, "author_profile": "https://Stackoverflow.com/users/1934428", "pm_score": 1, "selected": false, "text": "% #" } ]
2022/11/16
[ "https://Stackoverflow.com/questions/74466503", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20523467/" ]
74,466,504
<p>New to Python I'm struggling with the problem to assign some random IDs to &quot;related&quot; rows where the relation is simply their proximity (within 14 days) in consecutive days grouped by user. In that example I chose <code>uuid</code>without any specific intention. It could be any other random IDs uniquely ind...
[ { "answer_id": 74466825, "author": "Luise", "author_id": 11214568, "author_profile": "https://Stackoverflow.com/users/11214568", "pm_score": 0, "selected": false, "text": "uuid.uuid4() np.where() df.loc[ROW_CONDITIONs, COLUMNS] = VECTORIZED_ID_GENERATOR\n dummy_df.loc[(dummy_df['timediff...
2022/11/16
[ "https://Stackoverflow.com/questions/74466504", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3407636/" ]
74,466,510
<p>I have a binary search tree in C, the goal currently is to find the Nth element in the tree. I am attempting to do this recursively, however this is not paramount. I have access to the amount of nodes under any given node (inclusive).</p> <p>I tried this block of code:</p> <pre><code>TreeNode* findNthElement(int N, ...
[ { "answer_id": 74466567, "author": "emetsipe", "author_id": 18198735, "author_profile": "https://Stackoverflow.com/users/18198735", "pm_score": -1, "selected": false, "text": "count++ if (count <= N) {\n count++;\n findNthElement(N, tree->left);\n" }, { "answer_id": 7446666...
2022/11/16
[ "https://Stackoverflow.com/questions/74466510", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20523596/" ]
74,466,542
<p>So I'm working with the google sheets api in an android app and I'm trying to get the credentials in a separate thread. This is what I have:</p> <p><code>GoogleSheets</code> is a class I created to get credentials and cell values of my spreadsheet</p> <p><code>private lateinit var sheets: GoogleSheets</code> is a in...
[ { "answer_id": 74466684, "author": "cactustictacs", "author_id": 13598222, "author_profile": "https://Stackoverflow.com/users/13598222", "pm_score": 1, "selected": false, "text": "Thread {\n sheets = GoogleSheets(requireContext(), \"1fs1U9-LMmkmQbQ2Kn-rNVHIQwh6_frAbwaTp7MSyDIA\")\n}.s...
2022/11/16
[ "https://Stackoverflow.com/questions/74466542", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17792511/" ]
74,466,550
<p>I'm trying to parse AWS instance metadata to take two values and combine them into one string (a name and an id). The name is sometimes empty, and jq doesn't want to append to null. How do I tell jq to just assume the null value is an empty string? I've seen mentions of a &quot;destructuring&quot; operator, or a ...
[ { "answer_id": 74466828, "author": "pmf", "author_id": 2158479, "author_profile": "https://Stackoverflow.com/users/2158479", "pm_score": 1, "selected": false, "text": ".InstanceId \" \" + … {together: (.InstanceId + ((.Tags[] | \" \" + select(.Key == \"Name\").Value)? // \"\"))}\n {\n \...
2022/11/16
[ "https://Stackoverflow.com/questions/74466550", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1647396/" ]
74,466,564
<p>This is how I do get all version tags of an image in a custom docker registry:</p> <pre><code>r=`curl -sS &quot;$registry/v2/&quot; \ -o /dev/null \ -w '%{http_code}:%header{www-authenticate}'` http_code=`echo &quot;$r&quot; | cut -d: -f1` curl_args=(-sS -H 'Accept: application/vnd.docker.distribution.manife...
[ { "answer_id": 74466621, "author": "pmf", "author_id": 2158479, "author_profile": "https://Stackoverflow.com/users/2158479", "pm_score": 2, "selected": true, "text": "sort : jq -r '.tags | sort[:-3][]'\n jq -r '.tags | sort_by(./\".\" | map(tonumber))[:-3][]'\n 1.0.0\n1.0.1\n1.1.0\n1.1.1...
2022/11/16
[ "https://Stackoverflow.com/questions/74466564", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3142695/" ]
74,466,592
<p>I'm trying to divide Custom Codes 200-940 with their respective sales while custom codes &quot;100 Cashiers&quot; and &quot;950 Front Office Admin&quot; with the total of all sales. Please we image as I'm sure it will make a lot more sense when one sees it. Custom Codes is a column, Total Labor and Total Sales are b...
[ { "answer_id": 74466621, "author": "pmf", "author_id": 2158479, "author_profile": "https://Stackoverflow.com/users/2158479", "pm_score": 2, "selected": true, "text": "sort : jq -r '.tags | sort[:-3][]'\n jq -r '.tags | sort_by(./\".\" | map(tonumber))[:-3][]'\n 1.0.0\n1.0.1\n1.1.0\n1.1.1...
2022/11/16
[ "https://Stackoverflow.com/questions/74466592", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20053349/" ]
74,466,601
<p>Table E :</p> <ul> <li>Unique ID <code>Entry_Number</code>.</li> <li>Group key <code>Group</code> (to associate records together, not unique, corresponds to foreign table G where it is unique key).</li> <li>Status <code>Entry_Status</code> (character indicators of a real-life process: A, R, C, I).</li> </ul> <p>Tabl...
[ { "answer_id": 74466621, "author": "pmf", "author_id": 2158479, "author_profile": "https://Stackoverflow.com/users/2158479", "pm_score": 2, "selected": true, "text": "sort : jq -r '.tags | sort[:-3][]'\n jq -r '.tags | sort_by(./\".\" | map(tonumber))[:-3][]'\n 1.0.0\n1.0.1\n1.1.0\n1.1.1...
2022/11/16
[ "https://Stackoverflow.com/questions/74466601", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20523521/" ]
74,466,613
<p>I have a table that has [Order], [Yield], [Scrap], [OpAc] columns. I need to pull the yield based on the max value of [OpAc].</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Order</th> <th>Yield</th> <th>Scrap</th> <th>OpAc</th> </tr> </thead> <tbody> <tr> <td>1234</td> <td>140</td> <td>...
[ { "answer_id": 74466755, "author": "Philip P.", "author_id": 2486874, "author_profile": "https://Stackoverflow.com/users/2486874", "pm_score": 2, "selected": true, "text": "WITH Orders_By_OpAc_Desc AS (\n SELECT\n [Order],\n [Yield].\n ROW_NUMBER() OVER (PARTITION...
2022/11/16
[ "https://Stackoverflow.com/questions/74466613", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11656189/" ]
74,466,618
<p>I have a list of objects:</p> <pre><code>listings = [{ title: &quot;Place 1&quot;, price: &quot;100&quot;, availability: [ { startDate: &quot;2022-11-15T13:00:00.000Z&quot;, endDate: &quot;2022-11-23T13:00:00.000Z&quot;, key: &quot;selection&quot; }, ...
[ { "answer_id": 74466755, "author": "Philip P.", "author_id": 2486874, "author_profile": "https://Stackoverflow.com/users/2486874", "pm_score": 2, "selected": true, "text": "WITH Orders_By_OpAc_Desc AS (\n SELECT\n [Order],\n [Yield].\n ROW_NUMBER() OVER (PARTITION...
2022/11/16
[ "https://Stackoverflow.com/questions/74466618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11724288/" ]
74,466,619
<p>This is the error I get when request data from api - Performing hot restart... Syncing files to device sdk gphone x86 64 arm64... Restarted application in 777ms. E/flutter (21101): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: NoSuchMethodError: The method '[]' was called on null. E/flutter...
[ { "answer_id": 74466755, "author": "Philip P.", "author_id": 2486874, "author_profile": "https://Stackoverflow.com/users/2486874", "pm_score": 2, "selected": true, "text": "WITH Orders_By_OpAc_Desc AS (\n SELECT\n [Order],\n [Yield].\n ROW_NUMBER() OVER (PARTITION...
2022/11/16
[ "https://Stackoverflow.com/questions/74466619", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20523695/" ]
74,466,625
<p>I'm having trouble pulling just the price for these sites onto a google sehet. Instead, I'm pulling multiple rows/currencies, etc. and I don't know how to fix it =/</p> <p>Thank you all in advance!!</p> <p>1----&gt; <a href="https://www.discountfilters.com/refrigerator-water-filters/models/ukf8001/" rel="nofollow no...
[ { "answer_id": 74466710, "author": "player0", "author_id": 5632629, "author_profile": "https://Stackoverflow.com/users/5632629", "pm_score": 1, "selected": false, "text": "=INDEX(IMPORTXML(A1, \"//div[@class='price mt-2 mt-md-0 mb-0 mb-md-3']\"),,2)\n" }, { "answer_id": 74528024,...
2022/11/16
[ "https://Stackoverflow.com/questions/74466625", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19362373/" ]
74,466,629
<p>I'm working on a graphical listing of Roman emperors and ran into the following problem: The birth and death dates are stored in a JSON as a string. e.g. Julius Caesar:</p> <pre><code>&quot;start&quot;:&quot;-000100-07-12&quot; </code></pre> <p>If I use the Date object</p> <p><code>console.log(new Date(caesar.start)...
[ { "answer_id": 74466710, "author": "player0", "author_id": 5632629, "author_profile": "https://Stackoverflow.com/users/5632629", "pm_score": 1, "selected": false, "text": "=INDEX(IMPORTXML(A1, \"//div[@class='price mt-2 mt-md-0 mb-0 mb-md-3']\"),,2)\n" }, { "answer_id": 74528024,...
2022/11/16
[ "https://Stackoverflow.com/questions/74466629", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12347129/" ]
74,466,654
<p>I have a dataframe like so:</p> <pre><code> RANK COUNT '2020-01-01' 100 -1 '2020-01-02' 50 -1 '2020-01-03' -1 75 </code></pre> <p>How can I replace all occurrences of <code>-1</code> with <code>None</code> and still preserve both the <code>RANK</code> and <code>C...
[ { "answer_id": 74466689, "author": "Naveed", "author_id": 3494754, "author_profile": "https://Stackoverflow.com/users/3494754", "pm_score": 2, "selected": true, "text": "replace -1 \"\" out = df.replace(-1, \"\")\n RANK COUNT\n'2020-01-01' 100 \n'2020-01-02' ...
2022/11/16
[ "https://Stackoverflow.com/questions/74466654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12821675/" ]
74,466,658
<p>I am trying to read a string from the user using the following code</p> <pre><code>char array[4]; fgets(array , 5, stdin); </code></pre> <p>I am using the fgets command because with the scanf it reads the entire string regardless of the size of the array and if it doesn't fit inside the array it automatically change...
[ { "answer_id": 74466741, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 1, "selected": false, "text": "'\\0' char array[4];\n '\\0' char array[5];\n fgets(array , sizeof( array ), stdin);\n '\\n' fgets '\\n' '\...
2022/11/16
[ "https://Stackoverflow.com/questions/74466658", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13082652/" ]
74,466,659
<p>I have already seen a response from <a href="https://stackoverflow.com/questions/51174075/how-to-save-request-body-in-jmeter">How to save request body in Jmeter?</a> but it doesnt solve.</p> <p>I want to save to csv a dynamic request body constructed e.g. {&quot;transfer&quot;:${id},&quot;amount&quot;:${amount}}. I...
[ { "answer_id": 74466741, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 1, "selected": false, "text": "'\\0' char array[4];\n '\\0' char array[5];\n fgets(array , sizeof( array ), stdin);\n '\\n' fgets '\\n' '\...
2022/11/16
[ "https://Stackoverflow.com/questions/74466659", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15199010/" ]
74,466,673
<p>I have been a lot of time trying to create my project, but, Im having a lot of errors. I fix some ones but, when I thought everything was okay, IT WASN'T. Im learning this ionic and app development stuff and I didn't thoght &quot;oh, maybe any video on youtube shows aaaaall that&quot; it looked easy!</p> <p>Okay, th...
[ { "answer_id": 74466741, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 1, "selected": false, "text": "'\\0' char array[4];\n '\\0' char array[5];\n fgets(array , sizeof( array ), stdin);\n '\\n' fgets '\\n' '\...
2022/11/16
[ "https://Stackoverflow.com/questions/74466673", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20512491/" ]
74,466,702
<p>I want to make button, which pressed will show us random textfield (from 3 textfields: username, username2 or username3). Currently I have something like this, but don't know how to make it possible.</p> <pre><code>struct Test: View { /// @State private var names : ??? - I don't know what should be there @State...
[ { "answer_id": 74467151, "author": "Volkan Sonmez", "author_id": 4888710, "author_profile": "https://Stackoverflow.com/users/4888710", "pm_score": 2, "selected": true, "text": "struct Example: View {\n\n @State private var username: String = \"\"\n @State var username2: String = \"...
2022/11/16
[ "https://Stackoverflow.com/questions/74466702", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20275377/" ]
74,466,708
<p>I have a set of CSV data to convert to XML file using Java.</p> <p>My issue is that I need to convert it in special format like this (XML properties format):</p> <pre><code>?xml version=&quot;1.0&quot;?&gt; &lt;root&gt; &lt;row col1=&quot;All&quot; Col2=&quot;0&quot; Col3=&quot;&quot; Col4=&quot;0&quot; Col5=&qu...
[ { "answer_id": 74467151, "author": "Volkan Sonmez", "author_id": 4888710, "author_profile": "https://Stackoverflow.com/users/4888710", "pm_score": 2, "selected": true, "text": "struct Example: View {\n\n @State private var username: String = \"\"\n @State var username2: String = \"...
2022/11/16
[ "https://Stackoverflow.com/questions/74466708", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9640204/" ]
74,466,735
<p>First of all I want to thank the community for helping me and many others, and apologies for my bad English.</p> <p>In the screenshots, I want to count number of signal to enter the trade. The problem is when I got first signal, I want to reset counting to zero if signal passed 100 bars and want to count from Zero a...
[ { "answer_id": 74467151, "author": "Volkan Sonmez", "author_id": 4888710, "author_profile": "https://Stackoverflow.com/users/4888710", "pm_score": 2, "selected": true, "text": "struct Example: View {\n\n @State private var username: String = \"\"\n @State var username2: String = \"...
2022/11/16
[ "https://Stackoverflow.com/questions/74466735", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20523394/" ]
74,466,736
<p>I have a Postgres DB, In which I am storing some analytical data in a table like a user id, city, country, source(referer), device_type(web, ios, android), etc.</p> <p>I wanted to show insights based on the data in the above table i.e</p> <ul> <li>all distinct cities, countries, or sources or device_type within a da...
[ { "answer_id": 74467151, "author": "Volkan Sonmez", "author_id": 4888710, "author_profile": "https://Stackoverflow.com/users/4888710", "pm_score": 2, "selected": true, "text": "struct Example: View {\n\n @State private var username: String = \"\"\n @State var username2: String = \"...
2022/11/16
[ "https://Stackoverflow.com/questions/74466736", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5137731/" ]
74,466,762
<p>When adding the option to open only one sub-menu at a time, it generates the error that only one sub-menu should always be open and I do not understand the reason, I attach a test image.</p> <p><a href="https://i.stack.imgur.com/Rlff2.png" rel="nofollow noreferrer">enter image description here</a> <a href="https://i...
[ { "answer_id": 74467151, "author": "Volkan Sonmez", "author_id": 4888710, "author_profile": "https://Stackoverflow.com/users/4888710", "pm_score": 2, "selected": true, "text": "struct Example: View {\n\n @State private var username: String = \"\"\n @State var username2: String = \"...
2022/11/16
[ "https://Stackoverflow.com/questions/74466762", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479287/" ]
74,466,765
<p>How can I use sed to duplicate part of a string?</p> <pre><code>hello foo(ignore this); hello bar(or that); hello func(or anything really); </code></pre> <p>with</p> <pre><code>hello foo(x) foo(y) hello bar(x) bar(y) hello func(x) func(y) </code></pre> <p>I know I can use &amp; multiple times in the replace stateme...
[ { "answer_id": 74478428, "author": "Lolo", "author_id": 91208, "author_profile": "https://Stackoverflow.com/users/91208", "pm_score": 1, "selected": false, "text": "$ more test.txt\nhello foo(ignore this);\nhello bar(or that);\nhello func(or anything really);\n\n$ more test.txt | sed 's...
2022/11/16
[ "https://Stackoverflow.com/questions/74466765", "https://Stackoverflow.com", "https://Stackoverflow.com/users/91208/" ]
74,466,785
<p>So I have this date object</p> <pre><code>const today = new Date() </code></pre> <p>but it's giving me a time with 3 hours ahead of my timezone how do I change it to my TZ without transforming the final result into a string? My database accepts only date objects not strings I have tried with moment() and localeStrin...
[ { "answer_id": 74478428, "author": "Lolo", "author_id": 91208, "author_profile": "https://Stackoverflow.com/users/91208", "pm_score": 1, "selected": false, "text": "$ more test.txt\nhello foo(ignore this);\nhello bar(or that);\nhello func(or anything really);\n\n$ more test.txt | sed 's...
2022/11/16
[ "https://Stackoverflow.com/questions/74466785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18545081/" ]
74,466,791
<p>I just bought a new MacBook Pro with M1 Pro I installed python 3.11 and Pycharm as IDE. I tried to create a new project using virtualenv but it continues to show an error (see below)...</p> <p>I tried using Python 3.10, I tried installing it from Homebrew, reinstalling it.. nothing changes...</p> <p><strong>Steps to...
[ { "answer_id": 74466951, "author": "micromoses", "author_id": 2840436, "author_profile": "https://Stackoverflow.com/users/2840436", "pm_score": 2, "selected": false, "text": "/Users/test Location /Users/antonellobarbone/" } ]
2022/11/16
[ "https://Stackoverflow.com/questions/74466791", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10781209/" ]
74,466,816
<p>I am completely new to Socket.IO and generally to Back-end technologies. However, I have experience with Vue and I am trying to create a simple multiplayer game.</p> <p>But I am stuck on the first step... connecting vueJS and SocketIO.</p> <p>Here is the server:</p> <pre><code>const app = express() const http = requ...
[ { "answer_id": 74474114, "author": "Davidsamuel", "author_id": 2918907, "author_profile": "https://Stackoverflow.com/users/2918907", "pm_score": 1, "selected": false, "text": "app.use(function (req, res, next) {\n res.header('Access-Control-Allow-Origin', '*');\n next()\n})\n" } ]
2022/11/16
[ "https://Stackoverflow.com/questions/74466816", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8679570/" ]
74,466,852
<p>I pass a list (called a) of characters. The characters could be either letters or emojis. Ex: a=['a','b','f','a','g', ''] Then I count the occurrences of each character in the list. This function return just the most frequent character by alphabetical order. ex_n.2: if the most frequents characters are 'b' and 'a', ...
[ { "answer_id": 74466920, "author": "Faisal Nazik", "author_id": 13959139, "author_profile": "https://Stackoverflow.com/users/13959139", "pm_score": 0, "selected": false, "text": "def most_frequent(a):\n return sorted(a, key=a.count, reverse=True)[0]\n count()" }, { "answer_id"...
2022/11/16
[ "https://Stackoverflow.com/questions/74466852", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16797605/" ]
74,466,869
<p>I want to create a new Nuxt project and followed their instructions here: <a href="https://nuxtjs.org/docs/get-started/installation" rel="nofollow noreferrer">https://nuxtjs.org/docs/get-started/installation</a>. Basically just running <code>npm init nuxt-app@latest &lt;project-name&gt;</code>.</p> <p>After going th...
[ { "answer_id": 74504337, "author": "vstollen", "author_id": 7373663, "author_profile": "https://Stackoverflow.com/users/7373663", "pm_score": 1, "selected": false, "text": "npx nuxi init <project-name>\ncd <project-name>\nnpm install\nnpm install @nuxtjs/tailwindcss --save-dev\n npm run ...
2022/11/16
[ "https://Stackoverflow.com/questions/74466869", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15911966/" ]
74,466,877
<p>I am using an image for an input (button) within a form on my website, and would like to swap the image on hover.</p> <p>The following code works fine in a stand alone demo. The images swap nicely.</p> <p>However... when I integrate this code into the rest of the form code, it fails.</p> <p>I am guessing it is becau...
[ { "answer_id": 74467109, "author": "muka.gergely", "author_id": 2316540, "author_profile": "https://Stackoverflow.com/users/2316540", "pm_score": 3, "selected": true, "text": "querySelectorAll querySelectorAll input type class data-alt-image for...i++ inputs.forEach const ORIG_URL_ATTR =...
2022/11/16
[ "https://Stackoverflow.com/questions/74466877", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8322896/" ]
74,466,878
<p>Hello I am using a switch statement to serve particular components to a page In my next js project. The switch statement receives a payload which it loops through in order to derive what component to serve. These components have been imported dynamically and I now wish to use this dynamic importing along with the In...
[ { "answer_id": 74467109, "author": "muka.gergely", "author_id": 2316540, "author_profile": "https://Stackoverflow.com/users/2316540", "pm_score": 3, "selected": true, "text": "querySelectorAll querySelectorAll input type class data-alt-image for...i++ inputs.forEach const ORIG_URL_ATTR =...
2022/11/16
[ "https://Stackoverflow.com/questions/74466878", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7767267/" ]
74,466,883
<p>I have a categories table. every category has some posts. I want to get categories with their last 10 posts. So I tried this:</p> <pre><code>Category::query()-&gt;with(['posts' =&gt; function($q) { $q-&gt;take(10); }])-&gt;get(); </code></pre> <p>The problem is instead of putting 10 posts in each category recor...
[ { "answer_id": 74467109, "author": "muka.gergely", "author_id": 2316540, "author_profile": "https://Stackoverflow.com/users/2316540", "pm_score": 3, "selected": true, "text": "querySelectorAll querySelectorAll input type class data-alt-image for...i++ inputs.forEach const ORIG_URL_ATTR =...
2022/11/16
[ "https://Stackoverflow.com/questions/74466883", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4728447/" ]
74,466,914
<p>Every time I add content to the MUI Textfield it outputs it without any line breaks.</p> <p>Is there a better solution to use?</p> <pre><code>&lt;Stack direction=&quot;row&quot; alignItems=&quot;start&quot; justifyContent=&quot;start&quot; mb={5}&gt; &lt;TextField name=&quot;Content&quot; placeholde...
[ { "answer_id": 74467109, "author": "muka.gergely", "author_id": 2316540, "author_profile": "https://Stackoverflow.com/users/2316540", "pm_score": 3, "selected": true, "text": "querySelectorAll querySelectorAll input type class data-alt-image for...i++ inputs.forEach const ORIG_URL_ATTR =...
2022/11/16
[ "https://Stackoverflow.com/questions/74466914", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16034511/" ]
74,466,939
<p>Let's say I run a command in Bash like:</p> <pre><code>ls -l | grep filename </code></pre> <p>How can I save output of both command to a variable? In another words output of &quot;ls -l&quot; and &quot;grep filename&quot; to the same variable? The command must use a pipe.</p> <p>Thank you in advance!</p> <pre><cod...
[ { "answer_id": 74467109, "author": "muka.gergely", "author_id": 2316540, "author_profile": "https://Stackoverflow.com/users/2316540", "pm_score": 3, "selected": true, "text": "querySelectorAll querySelectorAll input type class data-alt-image for...i++ inputs.forEach const ORIG_URL_ATTR =...
2022/11/16
[ "https://Stackoverflow.com/questions/74466939", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8563668/" ]
74,466,964
<p>I have a bunch of data for different devices in a file and it's set up like this:</p> <pre><code>device: thing1 data1 data2 data3 data4 data1 data2 data3 data4 ... device: thing2 data1 data2 data3 data4 data1 data2 data3 data4 ... </code></pre> <p>I need to format it like this:</p> <pre><code>thing1 data1 dat...
[ { "answer_id": 74467190, "author": "George Geo", "author_id": 9895955, "author_profile": "https://Stackoverflow.com/users/9895955", "pm_score": 0, "selected": false, "text": "sed -e \"s/^\\(.*\\)/constant_fieldname \\1/\" filename\n" }, { "answer_id": 74467810, "author": "mar...
2022/11/16
[ "https://Stackoverflow.com/questions/74466964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20463282/" ]
74,466,969
<p>The aim of the exercise is to allocate n-lines of the triangle of tartar. My idea was to use pointers to pointers to allocate it. However when runned the process ends in this way: Process finished with</p> <p>here is the code:</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; int somma (int x) { int ...
[ { "answer_id": 74467190, "author": "George Geo", "author_id": 9895955, "author_profile": "https://Stackoverflow.com/users/9895955", "pm_score": 0, "selected": false, "text": "sed -e \"s/^\\(.*\\)/constant_fieldname \\1/\" filename\n" }, { "answer_id": 74467810, "author": "mar...
2022/11/16
[ "https://Stackoverflow.com/questions/74466969", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20523849/" ]
74,466,974
<p>I am using an iDP that provides the username in the 'sub' claim which inside abp does not mark the <code>CurrentUser.IsAuthenticated</code> to true and the <code>id</code> for the user is also null because it is not a GUID. From the documentation I found that you can inherit <code>AbpUserClaimsPrincipalFactory</code...
[ { "answer_id": 74467190, "author": "George Geo", "author_id": 9895955, "author_profile": "https://Stackoverflow.com/users/9895955", "pm_score": 0, "selected": false, "text": "sed -e \"s/^\\(.*\\)/constant_fieldname \\1/\" filename\n" }, { "answer_id": 74467810, "author": "mar...
2022/11/16
[ "https://Stackoverflow.com/questions/74466974", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18729464/" ]
74,466,998
<p>I want to pass the data of this string: <code> String pathPDF = &quot;assets/borst-oei.pdf&quot;;</code> to an other dart file named arbo.dart</p> <p>The problem is that is don't know how I can do this with this: <code>GestureDetector( onTap: () =&gt; Navigator.of(context).push(PageTransition( child: PDFScreen(), ty...
[ { "answer_id": 74467200, "author": "Robert Sandberg", "author_id": 13263384, "author_profile": "https://Stackoverflow.com/users/13263384", "pm_score": 2, "selected": true, "text": "PDFScreen class PDFScreen extends StatelessWidget {\n const PDFScreen({Key? key, required this.pathPdf}) :...
2022/11/16
[ "https://Stackoverflow.com/questions/74466998", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18400997/" ]
74,467,007
<p>I am trying to splice a 2D array in Google Apps Script. I have the following code, but it only works with a 1D array:</p> <pre><code>function trimArray() { var myArray = ['1', '2', '3', '4', '5', '6,', '7', '8', '9', '10']; myArray.splice(3, myArray.length); console.log(myArray); } </code></pre> <p>How do I mo...
[ { "answer_id": 74467298, "author": "Cooper", "author_id": 7215091, "author_profile": "https://Stackoverflow.com/users/7215091", "pm_score": 0, "selected": false, "text": "function splicearray() {\n let arr = [[1,2,3],[7,8,9]];\n arr.splice(1,0,[4,5,6]);\n Logger.log(arr);\n}\n\nExecut...
2022/11/16
[ "https://Stackoverflow.com/questions/74467007", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19286901/" ]
74,467,019
<p>With java regex i want to find the word &quot;C++&quot; and it should not be positive with only &quot;C&quot;.</p> <p>The below code should explain the rest, see <a href="https://jdoodle.com/ia/zvQ" rel="nofollow noreferrer">here</a></p> <pre><code>import java.util.*; import java.util.regex.*; public class MyClass {...
[ { "answer_id": 74467122, "author": "E-Riz", "author_id": 639520, "author_profile": "https://Stackoverflow.com/users/639520", "pm_score": 0, "selected": false, "text": "String regex = \".*[cC]\\\\+\\\\+.*\";\njava.util.regex.Pattern.matches(regex, \"This is NOT c++ !\");\n true java.util....
2022/11/16
[ "https://Stackoverflow.com/questions/74467019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/245858/" ]
74,467,054
<p>I am currently learning C and I came across this question I can't find an answer to.</p> <p>Can I jump out of a #ifdef without going through the #endif?<br /> For example can I do this:</p> <pre><code> char getOS( void ) { /* Returns the user Operating System */ #ifdef _WIN32 retur...
[ { "answer_id": 74467174, "author": "Jason", "author_id": 635822, "author_profile": "https://Stackoverflow.com/users/635822", "pm_score": 3, "selected": true, "text": "char getOS( void ) {\n return 'w';\n}\n char getOS( void ) {\n return 'm';\n}\n char getOS( void ) {\n ...
2022/11/16
[ "https://Stackoverflow.com/questions/74467054", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13580320/" ]
74,467,065
<p>This program should calculate the sum of all numbers whose digits are in descending order. It stops you from inputting if the number isn't a whole number. I think that the problem might be because of the sum variable, but I don't know how to fix it. Edit: Per @user3386109 request, here is the output I get: 4321 75 5...
[ { "answer_id": 74467174, "author": "Jason", "author_id": 635822, "author_profile": "https://Stackoverflow.com/users/635822", "pm_score": 3, "selected": true, "text": "char getOS( void ) {\n return 'w';\n}\n char getOS( void ) {\n return 'm';\n}\n char getOS( void ) {\n ...
2022/11/16
[ "https://Stackoverflow.com/questions/74467065", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20520542/" ]
74,467,067
<p>Consider a list of simple functions with different arguments:</p> <pre><code>const fns = { isValidDate: (input: string, min?: Date, max?: Date): boolean =&gt; { // ... return true; }, isValidOption: (input: string, options: string[]): boolean =&gt; { // ... return true; }, }; </code></p...
[ { "answer_id": 74467562, "author": "iddar", "author_id": 10660145, "author_profile": "https://Stackoverflow.com/users/10660145", "pm_score": 0, "selected": false, "text": "function validateField<key extends keyof typeof fns>(where: string, fn: key, ...options: Parameters<typeof fns[key]>...
2022/11/16
[ "https://Stackoverflow.com/questions/74467067", "https://Stackoverflow.com", "https://Stackoverflow.com/users/376947/" ]
74,467,106
<p>I was wondering if there was any way to check if, in a column, there were all values between a range. Example: i have an INTEGER column with values</p> <pre><code>0 1 2 3 5 6 </code></pre> <p>i want to check if between 0 and 6 i have all values. (false in this example)</p> <p>I think a solution might be: MAX(Column)...
[ { "answer_id": 74467562, "author": "iddar", "author_id": 10660145, "author_profile": "https://Stackoverflow.com/users/10660145", "pm_score": 0, "selected": false, "text": "function validateField<key extends keyof typeof fns>(where: string, fn: key, ...options: Parameters<typeof fns[key]>...
2022/11/16
[ "https://Stackoverflow.com/questions/74467106", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18235122/" ]
74,467,111
<p>I need to write a function that calculates the age category, so this is the function :</p> <pre><code>def age_category(dob_years): if dob_years &lt; 0 or pd.isna(dob_years): return 'NA' elif dob_years &lt; 20: return '10-19' elif dob_years &lt; 30: return '20-29' elif dob_year...
[ { "answer_id": 74467562, "author": "iddar", "author_id": 10660145, "author_profile": "https://Stackoverflow.com/users/10660145", "pm_score": 0, "selected": false, "text": "function validateField<key extends keyof typeof fns>(where: string, fn: key, ...options: Parameters<typeof fns[key]>...
2022/11/16
[ "https://Stackoverflow.com/questions/74467111", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20523728/" ]
74,467,118
<p>I have two lists :</p> <pre><code>a = [3, 8, 5, 1, 4, 7, 1, 3, 6, 8, 2, 1, 3, 5, 7, 0] key = [1, 2, 4, 6] </code></pre> <p>I want to check if all elements in the <code>key</code> have atleast once appeared in the list <code>a</code> and remove the ones after that.</p> <p>desired output :</p> <pre><code>a = [3, 8, 5,...
[ { "answer_id": 74467562, "author": "iddar", "author_id": 10660145, "author_profile": "https://Stackoverflow.com/users/10660145", "pm_score": 0, "selected": false, "text": "function validateField<key extends keyof typeof fns>(where: string, fn: key, ...options: Parameters<typeof fns[key]>...
2022/11/16
[ "https://Stackoverflow.com/questions/74467118", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15874123/" ]
74,467,137
<p>I have been taking this class for a bit with python for a bit and I have stumbled into a problem where any time I try to &quot;def&quot; a function, it says that it is not defined, I have no idea what I am doing wrong and this has become so frustrating.</p> <pre><code># Define main def main(): MIN = -100 MAX...
[ { "answer_id": 74467187, "author": "Trooper Z", "author_id": 9190768, "author_profile": "https://Stackoverflow.com/users/9190768", "pm_score": 3, "selected": true, "text": "MIN MAX LIST_SIZE def main(): def main():\n MIN = -100\n MAX = 100\n LIST_SIZE = 10\n\n #Create empty l...
2022/11/16
[ "https://Stackoverflow.com/questions/74467137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20523979/" ]
74,467,169
<p>I construct the below query to display data from Json. Assume this query returns 50 rows. But I want only first 10 rows to be displayed.<br /> What is the equivalent of <code>select top 10</code> or <code>limit 10</code> in this scenario. Thank you.</p> <pre><code>List&lt;Item&gt; result = items.GroupBy(x =&gt; x.It...
[ { "answer_id": 74467187, "author": "Trooper Z", "author_id": 9190768, "author_profile": "https://Stackoverflow.com/users/9190768", "pm_score": 3, "selected": true, "text": "MIN MAX LIST_SIZE def main(): def main():\n MIN = -100\n MAX = 100\n LIST_SIZE = 10\n\n #Create empty l...
2022/11/16
[ "https://Stackoverflow.com/questions/74467169", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16732381/" ]
74,467,178
<p>I'm analyzing club participation. Getting data as json through url request. This is the json I get and load with <code>json_loads</code>:</p> <pre><code>df = [{&quot;club_id&quot;:&quot;1234&quot;, &quot;sum_totalparticipation&quot;:227, &quot;level&quot;:1, &quot;idsubdatatable&quot;:1229, &quot;segment&quot;: &quo...
[ { "answer_id": 74467630, "author": "Guillaume BEDOYA", "author_id": 20522241, "author_profile": "https://Stackoverflow.com/users/20522241", "pm_score": -1, "selected": false, "text": "\"segment\":\"club_id==1234 ; dict import pandas as pd\n\ndata = [{\"club_id\":\"1234\", \"sum_totalpart...
2022/11/16
[ "https://Stackoverflow.com/questions/74467178", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18352649/" ]
74,467,193
<p>Like if I have a string &quot;123456,852369,7852159,1596357&quot; The out put looking for &quot;1234,8523,7852,1596&quot;</p> <p>Requirement is....we want to collect 4 char after every ',' separator</p> <p>like split, substring and again concat</p> <pre><code>select REGEXP_REPLACE('MEDA,MEDA,MEDA,MEDA,MEDA,MEDA,ME...
[ { "answer_id": 74467300, "author": "GMB", "author_id": 10676716, "author_profile": "https://Stackoverflow.com/users/10676716", "pm_score": 1, "selected": false, "text": "regexp_replace select regexp_replace(\n '123456,852369,7852159,1596357',\n '([^,]{4})[^,]*(,|$)',\n '\\1\\2'\...
2022/11/16
[ "https://Stackoverflow.com/questions/74467193", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6081356/" ]
74,467,196
<p>Hey I was wondering if there is a way that you can make the user choose a colour/color with the options that you give them? I know there is a way to let user select a color/colour of thier choices but is there a way that you give the user only three options that change the background colour/color? for instance let s...
[ { "answer_id": 74467300, "author": "GMB", "author_id": 10676716, "author_profile": "https://Stackoverflow.com/users/10676716", "pm_score": 1, "selected": false, "text": "regexp_replace select regexp_replace(\n '123456,852369,7852159,1596357',\n '([^,]{4})[^,]*(,|$)',\n '\\1\\2'\...
2022/11/16
[ "https://Stackoverflow.com/questions/74467196", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20401157/" ]
74,467,215
<p>Does Docker alpine image support openjdk19. If yes how do we install openjdk19 using Docker alpine image 3.16.2. I am able to install openjdk11 but not openjdk19.</p>
[ { "answer_id": 74467300, "author": "GMB", "author_id": 10676716, "author_profile": "https://Stackoverflow.com/users/10676716", "pm_score": 1, "selected": false, "text": "regexp_replace select regexp_replace(\n '123456,852369,7852159,1596357',\n '([^,]{4})[^,]*(,|$)',\n '\\1\\2'\...
2022/11/16
[ "https://Stackoverflow.com/questions/74467215", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5568989/" ]
74,467,220
<p>I have a simple <code>posts</code> collection in Firestore with a <code>created</code> field set as a <code>Firestore Timestamp</code> at the time of document creation. Id like to query these documents and display them in descending order, i.e., <code>orderBy(&quot;created&quot;,&quot;desc&quot;)</code></p> <p>Howev...
[ { "answer_id": 74467416, "author": "Frank van Puffelen", "author_id": 209103, "author_profile": "https://Stackoverflow.com/users/209103", "pm_score": 3, "selected": true, "text": "post querySnapshot.forEach( async (postDoc) => {\n var post = postDoc.data();\n console.log(post) //logged...
2022/11/16
[ "https://Stackoverflow.com/questions/74467220", "https://Stackoverflow.com", "https://Stackoverflow.com/users/394422/" ]
74,467,226
<p>I have the following pandas DataFrame (without the last column):</p> <pre><code> name day show-in-appointment previous-missed-appointments 0 Jack 2020/01/01 show 0 1 Jack 2020/01/02 no-show 0 2 Jill 2020/01/02 no-show ...
[ { "answer_id": 74467599, "author": "PTQuoc", "author_id": 11850322, "author_profile": "https://Stackoverflow.com/users/11850322", "pm_score": 0, "selected": false, "text": "groupby cumsum df.sort_values(by=['name', 'date'], inplace=True, ignore_index=True)\ndf['check'] = np.where(df['sho...
2022/11/16
[ "https://Stackoverflow.com/questions/74467226", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20523456/" ]
74,467,236
<p>I am converting this to a Typescript Service for our React web application. Below is the Original API in Java. What is the Typescript Response data type? Blob?</p> <pre><code>@GET @Path(&quot;/{vendorId}/Photo}&quot;) @Produces(&quot;image/png&quot;) byte[] getVendorPhoto(@PathVariable long vendorId); </code></pre>
[ { "answer_id": 74467599, "author": "PTQuoc", "author_id": 11850322, "author_profile": "https://Stackoverflow.com/users/11850322", "pm_score": 0, "selected": false, "text": "groupby cumsum df.sort_values(by=['name', 'date'], inplace=True, ignore_index=True)\ndf['check'] = np.where(df['sho...
2022/11/16
[ "https://Stackoverflow.com/questions/74467236", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15435022/" ]
74,467,267
<pre class="lang-vb prettyprint-override"><code>Option Explicit Sub CompareValues() Dim ws1 As Worksheet, ws2 As Worksheet Dim ws1EndRow As Long, ws2EndRow As Long, i As Long Dim dbAMarca As String, dbASubGrupo As String Dim dbAQtddVendas As Range, dbAValorVendas As Range Dim dbAQtddEstoque As Rang...
[ { "answer_id": 74467617, "author": "SaintSnowmad", "author_id": 19998014, "author_profile": "https://Stackoverflow.com/users/19998014", "pm_score": 1, "selected": false, "text": "If dbAMarca<>dbBMarca and dbASubGrupo<>dbBSubGrupo Then\n" }, { "answer_id": 74479419, "author": ...
2022/11/16
[ "https://Stackoverflow.com/questions/74467267", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19098317/" ]
74,467,277
<p>==&gt; user.application.2020-01-16-00-00.csv</p> <pre><code>user1,app1 user1,app2 user2,app1 user3,app1 </code></pre> <p>==&gt; user.application.2020-01-16-00-30.csv</p> <pre><code>user1,app1 user2,app1 user2,app4 user10,app2 user10,app1 user4,app5 </code></pre> <p>I want output like as follows, app followed by dist...
[ { "answer_id": 74468101, "author": "Walter A", "author_id": 3220113, "author_profile": "https://Stackoverflow.com/users/3220113", "pm_score": 2, "selected": true, "text": "awk -F, '{a[$2][$1]} END { for (i in a) { print i \",\" length(a[i]) } }' *.csv" }, { "answer_id": 74469532,...
2022/11/16
[ "https://Stackoverflow.com/questions/74467277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4234352/" ]
74,467,316
<pre><code>from bs4 import BeautifulSoup import fake_useragent import requests ua = fake_useragent.UserAgent() import soupsieve as sv url = &quot;https://search-maps.yandex.ru/v1/?text=%D0%9F%D0%BE%D1%87%D1%82%D0%B0%20%D0%A0%D0%BE%D1%81%D1%81%D0%B8%D0%B8,%20%D0%9A%D1%80%D0%B0%D1%81%D0%BD%D0%BE%D0%B4%D0%B0%D1%80&amp;r...
[ { "answer_id": 74468101, "author": "Walter A", "author_id": 3220113, "author_profile": "https://Stackoverflow.com/users/3220113", "pm_score": 2, "selected": true, "text": "awk -F, '{a[$2][$1]} END { for (i in a) { print i \",\" length(a[i]) } }' *.csv" }, { "answer_id": 74469532,...
2022/11/16
[ "https://Stackoverflow.com/questions/74467316", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20514949/" ]
74,467,324
<p>I'm building a version of battleship where the ships are worms and the player is the bird...if that explains the naming of things.</p> <p>I'm having a moment. I need to iterate through the values of a nested array of coordinates but I simply cannot figure it out.</p> <p>Here is what array looks like:</p> <pre><code...
[ { "answer_id": 74468101, "author": "Walter A", "author_id": 3220113, "author_profile": "https://Stackoverflow.com/users/3220113", "pm_score": 2, "selected": true, "text": "awk -F, '{a[$2][$1]} END { for (i in a) { print i \",\" length(a[i]) } }' *.csv" }, { "answer_id": 74469532,...
2022/11/16
[ "https://Stackoverflow.com/questions/74467324", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19959139/" ]
74,467,334
<p>I am building Bootstrap’s form, where I want users only submit once the checkbok is ticked (checked).<a href="https://i.stack.imgur.com/piBRA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/piBRA.png" alt="enter image description here" /></a></p> <pre><code>&lt;form&gt; &lt;div class=&quot;form-...
[ { "answer_id": 74468101, "author": "Walter A", "author_id": 3220113, "author_profile": "https://Stackoverflow.com/users/3220113", "pm_score": 2, "selected": true, "text": "awk -F, '{a[$2][$1]} END { for (i in a) { print i \",\" length(a[i]) } }' *.csv" }, { "answer_id": 74469532,...
2022/11/16
[ "https://Stackoverflow.com/questions/74467334", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17648300/" ]
74,467,339
<p>Scanning my site with pagespeed, it shows that my site is loading malicious files in the background.</p> <p><strong>The problem happens occasionally</strong>, it doesn't happen all the time. Sometimes the site doesn't load the malicious script, other times it does. I don't know what it depends on.</p> <p>In particul...
[ { "answer_id": 74467501, "author": "Samuel Krempasky", "author_id": 11510589, "author_profile": "https://Stackoverflow.com/users/11510589", "pm_score": 1, "selected": false, "text": "Ctrl+Shift+I Ctrl+F" } ]
2022/11/16
[ "https://Stackoverflow.com/questions/74467339", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14686582/" ]
74,467,349
<p>I have two Excel list indicating the path of PDF files that I need to merge- Is there anyway to do this using code? As the manual process takes hours to process.</p> <p>I've tried using VBA but IO don't have access to adobe API, so that's been stuck down. I am thinking python, any thoughts?</p>
[ { "answer_id": 74467694, "author": "Kristian K", "author_id": 13505403, "author_profile": "https://Stackoverflow.com/users/13505403", "pm_score": 0, "selected": false, "text": "# pip install PyMuPDF\nimport pandas as pd\nimport fitz\n\nPDFs = pd.read_excel(«pdfs.xlsx»)\nnew_pdf = fitz.op...
2022/11/16
[ "https://Stackoverflow.com/questions/74467349", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20062210/" ]
74,467,403
<p>[EDIT]: I would like to use countif to count the last 30 results with criteria &quot;Jogador Casa&quot; or &quot;Jogador Fora&quot;. That is, take the last 30 results of the &quot;Jogador Casa&quot; or &quot;Jogador Fora&quot;</p> <p>I would like to use countif to count the last 30 results in a database.The column t...
[ { "answer_id": 74467694, "author": "Kristian K", "author_id": 13505403, "author_profile": "https://Stackoverflow.com/users/13505403", "pm_score": 0, "selected": false, "text": "# pip install PyMuPDF\nimport pandas as pd\nimport fitz\n\nPDFs = pd.read_excel(«pdfs.xlsx»)\nnew_pdf = fitz.op...
2022/11/16
[ "https://Stackoverflow.com/questions/74467403", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20520480/" ]
74,467,410
<p>I'm quite new to Prolog so im not sure how this can be done.</p> <p>I'm trying to create a nested for loop that outputs the three variables on each line.</p> <p>I'm trying to get an output that loops like the following:</p> <p>SWI-Prolog</p> <pre><code>?- out(A, B, C). </code></pre> <pre><code>A = 1, B = 1, C = 1 (N...
[ { "answer_id": 74467539, "author": "brebs", "author_id": 17628336, "author_profile": "https://Stackoverflow.com/users/17628336", "pm_score": 3, "selected": true, "text": "out(A, B, C) :-\n maplist(between(1, 2), [A, B, C]).\n ?- out(A, B, C).\nA = B, B = C, C = 1 ;\nA = B, B = 1,\nC =...
2022/11/16
[ "https://Stackoverflow.com/questions/74467410", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18458689/" ]