qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,388,741
<p>I have received a json object that shows comparison between two tags on github repo. I want to show all messages that are available inside the JSON object. The json object can be seen here: <a href="https://api.github.com/repos/git/git/compare/v2.37.4...v2.38.1" rel="nofollow noreferrer">https://api.github.com/repos...
[ { "answer_id": 74388946, "author": "Celius Stingher", "author_id": 11897007, "author_profile": "https://Stackoverflow.com/users/11897007", "pm_score": 1, "selected": false, "text": "mask['key2'] = mask['key2'].fillna(' '.join([str(x) for x in data['key2'].unique()])).astype(str).str.spli...
2022/11/10
[ "https://Stackoverflow.com/questions/74388741", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12436327/" ]
74,388,748
<p>I have a react app that uses azure ad and msal for authentication.</p> <p>Facing 2 problems in production environment: 1- When i visit the site on localhost it shows me the unauthenticated view as it should, and then i can log in to access my protected routes, but when i do the same to the application that is hosted...
[ { "answer_id": 74388946, "author": "Celius Stingher", "author_id": 11897007, "author_profile": "https://Stackoverflow.com/users/11897007", "pm_score": 1, "selected": false, "text": "mask['key2'] = mask['key2'].fillna(' '.join([str(x) for x in data['key2'].unique()])).astype(str).str.spli...
2022/11/10
[ "https://Stackoverflow.com/questions/74388748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14442167/" ]
74,388,850
<p>I have an array of numbers which can be a value of either <code>1</code> or <code>0</code>. I need to create a function that detects if there is <strong>one instance</strong> where there is a consecutive <code>1</code> and no other <code>1</code> exist outside of that instance, returns <code>true</code> else <code>f...
[ { "answer_id": 74389496, "author": "Trevor Dixon", "author_id": 711902, "author_profile": "https://Stackoverflow.com/users/711902", "pm_score": 3, "selected": true, "text": "function hasOneRun(arr) {\n let switches = 0;\n for (let i = 0; i < arr.length; i++) {\n switches += arr[i] ^...
2022/11/10
[ "https://Stackoverflow.com/questions/74388850", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9123173/" ]
74,388,884
<p>I'm trying to secure my application with Spring Security oAuth2. Is there a way to return 401 for some URL while other pages go to the login page if a user is not logged in.</p> <p>For example, return login form for /ui/*, and return 401 for /api/*</p> <p>I tried to use two <code>SecurityWebFilterChain</code>, but d...
[ { "answer_id": 74389648, "author": "Marcus Hert da Coregio", "author_id": 5454842, "author_profile": "https://Stackoverflow.com/users/5454842", "pm_score": 1, "selected": true, "text": "AuthenticationEntryPoint http\n // ... your configuration\n .exceptionHandling((ex) -> ex\n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74388884", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3770378/" ]
74,388,911
<p>I have a text file with:</p> <blockquote> <p>8-9, 12, 14-16, 19, 27-28, 33, 41, 43, 45-46, 48-49, 51,54-60, 62-74, 76-82, 84-100, 102-105, 107-108</p> </blockquote> <p>It is basically a list of integers in a text file. Using Python, I want to turn this into a list where every variable is stored separately. But the p...
[ { "answer_id": 74389578, "author": "LiiVion", "author_id": 19328707, "author_profile": "https://Stackoverflow.com/users/19328707", "pm_score": 1, "selected": false, "text": "num_list = [\"8-9\", \"12\", \"14-16\", \"19\", \"27-28\", \"33\", \"41\", \"43\", \"45-46\", \"48-49\", \"51\",\"...
2022/11/10
[ "https://Stackoverflow.com/questions/74388911", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12216993/" ]
74,388,919
<p>I'm looking for a way to extract only tags that don't have another tag in it</p> <p>For example:</p> <pre><code>from bs4 import BeautifulSoup html = &quot;&quot;&quot; &lt;p&gt;&lt;a href='XYZ'&gt;Text1&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Text2&lt;/p&gt; &lt;p&gt;&lt;a href='QWERTY'&gt;Text3&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Te...
[ { "answer_id": 74389069, "author": "Celius Stingher", "author_id": 11897007, "author_profile": "https://Stackoverflow.com/users/11897007", "pm_score": 0, "selected": false, "text": "if/else p for x in soup.find_all('p'):\n if len([x.tag for x in x.find_all()]) == 0:\n print(x)\...
2022/11/10
[ "https://Stackoverflow.com/questions/74388919", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20467659/" ]
74,388,945
<p>The PostgreSQL database is just installed directly into the linux host machine (not as docker container).</p> <p>In a docker container (built with docker compose) I have an application that needs to connect to the database.</p> <p>The client container needs to be on a docker bridge network and cannot be on the host ...
[ { "answer_id": 74389069, "author": "Celius Stingher", "author_id": 11897007, "author_profile": "https://Stackoverflow.com/users/11897007", "pm_score": 0, "selected": false, "text": "if/else p for x in soup.find_all('p'):\n if len([x.tag for x in x.find_all()]) == 0:\n print(x)\...
2022/11/10
[ "https://Stackoverflow.com/questions/74388945", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2051646/" ]
74,388,957
<p>When querying a table in Oracle Dev I need to ignore any ID that doesn't have a null date.</p> <p>An ID can be returned multiple times e.g. 5 times, 4 can have a null date but one might have 01.01.2022 in which case all of them need to be ignored.</p> <p>Here is the SQL:</p> <pre><code>SELECT ID, ACTIVATION_DATE, A...
[ { "answer_id": 74389144, "author": "Littlefoot", "author_id": 9097906, "author_profile": "https://Stackoverflow.com/users/9097906", "pm_score": 0, "selected": false, "text": "not exists SQL> WITH\n 2 table1 (id, activation_date, accepted_date)\n 3 AS\n 4 (SELECT 'AA1', ...
2022/11/10
[ "https://Stackoverflow.com/questions/74388957", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20468160/" ]
74,388,972
<p>I use oak server with Deno. But there is some problem with the response in post request. My example:</p> <pre><code>const loginEp = async (ctx, next) =&gt; {//loginEp if(!ctx.request.hasBody) {//if ctx.throw(415); }//if const reqBody = await ctx.request.body({ type: 'json' }).value; console.log(reqB...
[ { "answer_id": 74391050, "author": "zja", "author_id": 6599384, "author_profile": "https://Stackoverflow.com/users/6599384", "pm_score": 1, "selected": false, "text": "const reqBody = await (await ctx.request.body({ type: 'json' })).value; " } ]
2022/11/10
[ "https://Stackoverflow.com/questions/74388972", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5287908/" ]
74,388,973
<pre><code>public class Main { public static void main(String[] args) { String satz = &quot;Heute ist wunderbares Wetter, fahren wir doch zum Strand&quot;; System.out.println(satz); System.out.print(satz.substring(22)); } } </code></pre> <p>I tried different things, but i have always errors. i...
[ { "answer_id": 74391050, "author": "zja", "author_id": 6599384, "author_profile": "https://Stackoverflow.com/users/6599384", "pm_score": 1, "selected": false, "text": "const reqBody = await (await ctx.request.body({ type: 'json' })).value; " } ]
2022/11/10
[ "https://Stackoverflow.com/questions/74388973", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20468325/" ]
74,388,974
<p>I have a directory with several files tab-delimited (txt format). Each file is a table with a lot of rows, but I am interested in the 10th column. I want to extract all uniq values of this column and count the occurrence for all files. For this purpose, I have used the code below in bash, which works, but when the f...
[ { "answer_id": 74389503, "author": "Santiago", "author_id": 13507658, "author_profile": "https://Stackoverflow.com/users/13507658", "pm_score": 0, "selected": false, "text": "library(dplyr)\nlibrary(purrr)\nlibrary(tibble)\n files files %>%\n purrr::map_dfr(\n \\(file) {\n read....
2022/11/10
[ "https://Stackoverflow.com/questions/74388974", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9152842/" ]
74,388,979
<p>Anybody an idea how to get the offsetTop of an element in Vue3 with the composite API? Like this version of Vue2?</p> <pre><code>goto(refName) { var element = this.$refs[refName]; var top = element.offsetTop; window.scrollTo(0, top); } </code></pre> <p>i have in my setup():</p> <pre><code>const accordion...
[ { "answer_id": 74389503, "author": "Santiago", "author_id": 13507658, "author_profile": "https://Stackoverflow.com/users/13507658", "pm_score": 0, "selected": false, "text": "library(dplyr)\nlibrary(purrr)\nlibrary(tibble)\n files files %>%\n purrr::map_dfr(\n \\(file) {\n read....
2022/11/10
[ "https://Stackoverflow.com/questions/74388979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1627225/" ]
74,388,998
<p>I try to allocate the memory of the array dynamically using malloc function. The array (d) is composed of two vectors. The code is as follows:</p> <blockquote> </blockquote> <pre><code>#include &lt;stdio.h&gt; void main() { int ind; int nlfc; double x[5], y[5], z[5]; nlfc=4; double **d; double dt[3]...
[ { "answer_id": 74389063, "author": "unwind", "author_id": 28169, "author_profile": "https://Stackoverflow.com/users/28169", "pm_score": 2, "selected": false, "text": "d=malloc(4*sizeof(double));\n d double ** d = malloc(4 * sizeof *d);\n double sizeof malloc() free() malloc()" }, { ...
2022/11/10
[ "https://Stackoverflow.com/questions/74388998", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20461675/" ]
74,389,040
<p>In my program, I have a RecyclerView with an adapter, in which I'm checking which element of RecyclerView is clicked.</p> <pre><code>override fun onBindViewHolder(holder: ViewHolder, position: Int) { val currentBreakfast = breakfastList[position] holder.breakfastTitle.text = context.getText(currentBreakfast....
[ { "answer_id": 74389374, "author": "zaifrun", "author_id": 324975, "author_profile": "https://Stackoverflow.com/users/324975", "pm_score": 0, "selected": false, "text": "class ReportAdapter(var reports: List<Report>,val clickFunc : (Report) -> (Unit)) : RecyclerView.Adapter<ReportAdapte...
2022/11/10
[ "https://Stackoverflow.com/questions/74389040", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15158080/" ]
74,389,056
<p>Is there a way I can pass the iframe src into a variable without using <code>getElementById</code> ?</p> <p>I dont know the ID of the iframe as its dynamically generated - but I want to be able to check the src to see if it matches a defined string - the iframe has a class which I can target which is <strong>fancybo...
[ { "answer_id": 74389374, "author": "zaifrun", "author_id": 324975, "author_profile": "https://Stackoverflow.com/users/324975", "pm_score": 0, "selected": false, "text": "class ReportAdapter(var reports: List<Report>,val clickFunc : (Report) -> (Unit)) : RecyclerView.Adapter<ReportAdapte...
2022/11/10
[ "https://Stackoverflow.com/questions/74389056", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1197577/" ]
74,389,139
<p>I'm working on a Vue/Quasar app and what I want to do is show the following layout only once when the page is loaded:</p> <pre><code>&lt;template&gt; &lt;div v-for=&quot;(section, index) in sections&quot; :key=&quot;index&quot;&gt; &lt;div class=&quot;row q-gutter-md&quot;&gt; &lt;q-input v-model=&quot;s...
[ { "answer_id": 74389374, "author": "zaifrun", "author_id": 324975, "author_profile": "https://Stackoverflow.com/users/324975", "pm_score": 0, "selected": false, "text": "class ReportAdapter(var reports: List<Report>,val clickFunc : (Report) -> (Unit)) : RecyclerView.Adapter<ReportAdapte...
2022/11/10
[ "https://Stackoverflow.com/questions/74389139", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11672206/" ]
74,389,155
<p>I am having the following issue <strong>:</strong></p> <p>BE is returning a JSON file that has <code>keys</code> and <code>values</code> but some values are in XML format. How can I turn them into JSON as well ?</p> <p>It's the first time I am seeing this kind of structure. So any help would be appreciated. I am wor...
[ { "answer_id": 74389374, "author": "zaifrun", "author_id": 324975, "author_profile": "https://Stackoverflow.com/users/324975", "pm_score": 0, "selected": false, "text": "class ReportAdapter(var reports: List<Report>,val clickFunc : (Report) -> (Unit)) : RecyclerView.Adapter<ReportAdapte...
2022/11/10
[ "https://Stackoverflow.com/questions/74389155", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15721007/" ]
74,389,164
<p>I have car-list.component.ts with:</p> <pre><code>**export class CarListComponent implements OnInit { public cars$!: Observable&lt;CarInterface[]&gt;; constructor( private carService: CarService # ) { # } ngOnInit(): void { this.cars$ = this.carService.getAllCars(); # } # }** </code></pre> <p>car.service....
[ { "answer_id": 74389374, "author": "zaifrun", "author_id": 324975, "author_profile": "https://Stackoverflow.com/users/324975", "pm_score": 0, "selected": false, "text": "class ReportAdapter(var reports: List<Report>,val clickFunc : (Report) -> (Unit)) : RecyclerView.Adapter<ReportAdapte...
2022/11/10
[ "https://Stackoverflow.com/questions/74389164", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20468277/" ]
74,389,166
<p>I am trying to create a dumbbell chart comparing baseline to endline values along several metrics and I am <em>so close</em> to having it just how I want it. I start with this data:</p> <pre><code>&gt; dput(mydata) structure(list(category = c(&quot;food security&quot;, &quot;food security&quot;, &quot;child surviva...
[ { "answer_id": 74389310, "author": "Allan Cameron", "author_id": 12500315, "author_profile": "https://Stackoverflow.com/users/12500315", "pm_score": 1, "selected": false, "text": "geom_path segment library(glue)\nlibrary(ggthemes)\nlibrary(ggplot2)\n\nggplot(mydata, aes(percentage, metri...
2022/11/10
[ "https://Stackoverflow.com/questions/74389166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13238171/" ]
74,389,253
<p>I have questionnaire (EHP30) answers from a list of participants, where they are rating something between 0 and 4, or -9 for not relevant. The overall score is the sum of the scores scaled to 100. If there are any not relevant answers they are ignored (unless they are all not relevant, in which case the output is mi...
[ { "answer_id": 74389757, "author": "edvinsyk", "author_id": 16252296, "author_profile": "https://Stackoverflow.com/users/16252296", "pm_score": 0, "selected": false, "text": "data = tibble(data)\n\ndata |> \n mutate(across(where(is.numeric), ~ ifelse(.x == -9, NA, .x))) |> \n rowwi...
2022/11/10
[ "https://Stackoverflow.com/questions/74389253", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19414769/" ]
74,389,269
<p><a href="https://i.stack.imgur.com/o3Qne.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o3Qne.png" alt="enter image description here" /></a></p> <p>I have changed the margin in the row in the CSS file but it wont applied in small devices</p> <pre><code>&lt;body style=&quot;background-color: #3538...
[ { "answer_id": 74389757, "author": "edvinsyk", "author_id": 16252296, "author_profile": "https://Stackoverflow.com/users/16252296", "pm_score": 0, "selected": false, "text": "data = tibble(data)\n\ndata |> \n mutate(across(where(is.numeric), ~ ifelse(.x == -9, NA, .x))) |> \n rowwi...
2022/11/10
[ "https://Stackoverflow.com/questions/74389269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19966203/" ]
74,389,275
<p>I have a typedef struct with different data types in it. The number array has negative and non-negative values. How do I convert this struct in to a unint8t array in C++ on the Linux platform. Appreciate some help on this. Thank you. The reason I am trying to do the conversation is to send this uint8_t buffer as a p...
[ { "answer_id": 74389757, "author": "edvinsyk", "author_id": 16252296, "author_profile": "https://Stackoverflow.com/users/16252296", "pm_score": 0, "selected": false, "text": "data = tibble(data)\n\ndata |> \n mutate(across(where(is.numeric), ~ ifelse(.x == -9, NA, .x))) |> \n rowwi...
2022/11/10
[ "https://Stackoverflow.com/questions/74389275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19677040/" ]
74,389,299
<p>Is it possible to auto login users when they open the app after their first login?</p> <p>I'm not sure what is the best way to implement auto login. One of the best options to me is to create refresh-token after the first login. Refresh-token will have a couple of months of lifespan. So far localStorage seems like t...
[ { "answer_id": 74389757, "author": "edvinsyk", "author_id": 16252296, "author_profile": "https://Stackoverflow.com/users/16252296", "pm_score": 0, "selected": false, "text": "data = tibble(data)\n\ndata |> \n mutate(across(where(is.numeric), ~ ifelse(.x == -9, NA, .x))) |> \n rowwi...
2022/11/10
[ "https://Stackoverflow.com/questions/74389299", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5375131/" ]
74,389,314
<p>`</p> <pre><code>import requests from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.by import By from time import sleep import os login_page = &quot;https:...
[ { "answer_id": 74389771, "author": "Tal Angel", "author_id": 5359846, "author_profile": "https://Stackoverflow.com/users/5359846", "pm_score": 0, "selected": false, "text": "userAccount = driver.find_element_by_xpath(\"//*[text()='YourGoogleAccountName']\")\nuserAccount.click()\n" }, ...
2022/11/10
[ "https://Stackoverflow.com/questions/74389314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15515026/" ]
74,389,328
<p>In Azure Logic Apps, there is an action for Send Approval Email under Office 365 Outlook. I want to have multiple approval options in the same email. Is there a way to do it?</p> <p>I tried looping over and sending emails but that sends a new email every time with option to approve.</p>
[ { "answer_id": 74389771, "author": "Tal Angel", "author_id": 5359846, "author_profile": "https://Stackoverflow.com/users/5359846", "pm_score": 0, "selected": false, "text": "userAccount = driver.find_element_by_xpath(\"//*[text()='YourGoogleAccountName']\")\nuserAccount.click()\n" }, ...
2022/11/10
[ "https://Stackoverflow.com/questions/74389328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20468578/" ]
74,389,341
<p>Here's my way of calculating running count by groups in Sheets:</p> <p><code>=LAMBDA(a,INDEX(if(a=&quot;&quot;,,COUNTIFS(a,a,row(a),&quot;&lt;=&quot;&amp;row(a)))))(B4:B)</code></p> <p>The complexity of this formula is R^2 = 1000000 operations for 1K rows. I'd love to make more efficient formula, and tried combinati...
[ { "answer_id": 74389906, "author": "Martín", "author_id": 20363318, "author_profile": "https://Stackoverflow.com/users/20363318", "pm_score": 1, "selected": false, "text": "=Byrow(B4:B,lambda(each,if(each=\"\",\"\",countif(B4:each,each)))) =map(B4:B,lambda(each,if(each=\"\",\"\",countif(...
2022/11/10
[ "https://Stackoverflow.com/questions/74389341", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5372400/" ]
74,389,360
<p>I have two dataframes:</p> <p><strong>dists</strong>:</p> <pre><code>label1 label2 dist sameCol ID1 ID2 193 194 0.7219847 NA N53 &lt;NA&gt; 193 195 0.5996300 FALSE N53 N43 193 196 0.2038451 FALSE N5 N45 194 195 0.2190454 NA &lt;NA&gt; N43 194 196 ...
[ { "answer_id": 74389685, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 2, "selected": false, "text": "sameCol TRUE networkDists library(dplyr)\n\nleft_join(\n dists,\n mutate(networkDistances, sameCol = TRUE),\n b...
2022/11/10
[ "https://Stackoverflow.com/questions/74389360", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11697741/" ]
74,389,365
<p>When SAS EG creates a query in the query builder it puts &quot;work.&quot; in front of tables here is an example:</p> <pre><code>%_eg_conditional_dropds(WORK.QUERY_FOR_UNL_OBLIGATIONSBEHOLDN); PROC SQL; CREATE TABLE WORK.QUERY_FOR_UNL_OBLIGATIONSBEHOLDN AS SELECT t1.CUSTOM_1, t1.CUSTOM_2, ...
[ { "answer_id": 74389685, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 2, "selected": false, "text": "sameCol TRUE networkDists library(dplyr)\n\nleft_join(\n dists,\n mutate(networkDistances, sameCol = TRUE),\n b...
2022/11/10
[ "https://Stackoverflow.com/questions/74389365", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13340047/" ]
74,389,369
<p>There is a <code>Char.IsControl()</code> method to <em>identify</em> such characters, but I want a way to convert them to &quot;normal&quot; characters. i.e. some way to visualise a string that contains such characters. Probably similar to what Notepad++ does.</p> <p>Obviously such a visualisation will be imperfect,...
[ { "answer_id": 74389519, "author": "phuclv", "author_id": 995714, "author_profile": "https://Stackoverflow.com/users/995714", "pm_score": 2, "selected": false, "text": "controlChar controlChar + 0x2400 controlChar + '\\u2400' Console.Write((char)(i + 0x2400));\n ␀ ␁ ␂ ␃ ␄ ␅ ␆ ␇ ␈ ␉ ␊ ␋ ␌...
2022/11/10
[ "https://Stackoverflow.com/questions/74389369", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1662268/" ]
74,389,379
<p>For the problem, consider below two structures.</p> <pre><code>struct type1_A { int a; char b; char rsvd[10]; char c; int d; } struct type1_B { int d; char rsvd[12]; char c; char b; int a; } </code></pre> <p>I need to read fields <strong>a, b, c &amp; d</strong> from the stru...
[ { "answer_id": 74389519, "author": "phuclv", "author_id": 995714, "author_profile": "https://Stackoverflow.com/users/995714", "pm_score": 2, "selected": false, "text": "controlChar controlChar + 0x2400 controlChar + '\\u2400' Console.Write((char)(i + 0x2400));\n ␀ ␁ ␂ ␃ ␄ ␅ ␆ ␇ ␈ ␉ ␊ ␋ ␌...
2022/11/10
[ "https://Stackoverflow.com/questions/74389379", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1210665/" ]
74,389,381
<p>I'am trying to get the first character of each string using regex and BASH_REMATCH in shell script.</p> <p>My input text file contain :</p> <pre><code> config_text = STACK OVER FLOW </code></pre> <p>The strings <strong>STACK</strong> <strong>OVER</strong> <strong>FLOW</strong> must be uppercase like that.</p> <p>...
[ { "answer_id": 74390388, "author": "Jetchisel", "author_id": 4452265, "author_profile": "https://Stackoverflow.com/users/4452265", "pm_score": 1, "selected": false, "text": "config FLOW config_text = STACK OVER FLOW\n #!/usr/bin/env bash\n\nvalues=\"config_text = STACK OVER FLOW\"\nregex...
2022/11/10
[ "https://Stackoverflow.com/questions/74389381", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11154545/" ]
74,389,413
<p>I am trying to align icons horizontally like this in a row, with <code>mainAxisAlignment: MainAxisAlignment.spaceEvenly</code> and <code>crossAxisAlignment: CrossAxisAlignment.center</code>.</p> <p>The result I am getting is something like this <a href="https://i.stack.imgur.com/eU79J.png" rel="nofollow noreferrer">...
[ { "answer_id": 74390388, "author": "Jetchisel", "author_id": 4452265, "author_profile": "https://Stackoverflow.com/users/4452265", "pm_score": 1, "selected": false, "text": "config FLOW config_text = STACK OVER FLOW\n #!/usr/bin/env bash\n\nvalues=\"config_text = STACK OVER FLOW\"\nregex...
2022/11/10
[ "https://Stackoverflow.com/questions/74389413", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14399746/" ]
74,389,428
<p>I get stuck with writing a dict of list to a .txt file.</p> <p>I have a dict of lict like this:</p> <pre><code>product_menu_list = {&quot;Shirt&quot;: [&quot;Red&quot;, &quot;Orange&quot;, &quot;Purple&quot;], &quot;Dress&quot;: [&quot;Blue&quot;, &quot;Yellow&quot;, &quot;Green&quot;]} </code></pre> <p>To write it ...
[ { "answer_id": 74390388, "author": "Jetchisel", "author_id": 4452265, "author_profile": "https://Stackoverflow.com/users/4452265", "pm_score": 1, "selected": false, "text": "config FLOW config_text = STACK OVER FLOW\n #!/usr/bin/env bash\n\nvalues=\"config_text = STACK OVER FLOW\"\nregex...
2022/11/10
[ "https://Stackoverflow.com/questions/74389428", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20138141/" ]
74,389,508
<p>I just want to know how Queries and Connections in Excel Workbooks are connected as objects. I noticed that I can use ThisWorkbook.Connections(&quot;Name of my connection&quot;).Refresh but that is not the same as the name used in my Queries (as I have commented out in my code).</p> <pre><code>Sub EditAllWorkbookFor...
[ { "answer_id": 74390388, "author": "Jetchisel", "author_id": 4452265, "author_profile": "https://Stackoverflow.com/users/4452265", "pm_score": 1, "selected": false, "text": "config FLOW config_text = STACK OVER FLOW\n #!/usr/bin/env bash\n\nvalues=\"config_text = STACK OVER FLOW\"\nregex...
2022/11/10
[ "https://Stackoverflow.com/questions/74389508", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20416519/" ]
74,389,528
<p>my data frame is:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: left;">M1T1</th> <th style="text-align: center;">M1T2</th> <th style="text-align: right;">M1T3</th> <th style="text-align: left;">M2T1</th> <th style="text-align: center;">M2T2</th> <th style="text-align...
[ { "answer_id": 74389840, "author": "NathanLVQ", "author_id": 20419201, "author_profile": "https://Stackoverflow.com/users/20419201", "pm_score": 2, "selected": true, "text": "aggregate aggregate(x=df[,c(\"M1T1\",\"M1T2\",\"M1T3\",\"M2T1\",\"M2T2\",\"M2T3\",\"M3T1\",\"M3T2\",\"M3T3\")], #...
2022/11/10
[ "https://Stackoverflow.com/questions/74389528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18049878/" ]
74,389,562
<p>I'm new to C++ and I've been doing bubbleSort, but when I want to show the numbers in the terminal, the leading number is a problem. Sorry for my bad english btw.</p> <p>where am i doing wrong?</p> <p>this is the code:</p> <pre class="lang-cpp prettyprint-override"><code>#include &lt;iostream&gt; void printArray(in...
[ { "answer_id": 74389701, "author": "463035818_is_not_a_number", "author_id": 4117728, "author_profile": "https://Stackoverflow.com/users/4117728", "pm_score": 3, "selected": true, "text": "int bubbleSort(int *myArr, int lenght) {\n // ... not actually that important what happens here ...
2022/11/10
[ "https://Stackoverflow.com/questions/74389562", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16406821/" ]
74,389,571
<p>I'm trying to get the average employee salary for each department. I am expecting two rows because one department doesn't have any employees assigned to it.</p> <p>Can someone please tell me how to rectify this issue. Thanks in advance to all who answer and your expertise.</p> <p>Below is my test CASE and inaccurate...
[ { "answer_id": 74389701, "author": "463035818_is_not_a_number", "author_id": 4117728, "author_profile": "https://Stackoverflow.com/users/4117728", "pm_score": 3, "selected": true, "text": "int bubbleSort(int *myArr, int lenght) {\n // ... not actually that important what happens here ...
2022/11/10
[ "https://Stackoverflow.com/questions/74389571", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16771377/" ]
74,389,572
<p>I have the following case:</p> <pre><code>Test (2.00001) Test (2.000) Test 2.1 Test (2,0001) Test 2,000 Test 2,1000 test 2 </code></pre> <p>I try to use regex to find only the integers:</p> <ol> <li><code>2.000</code></li> <li><code>2,000</code></li> <li><code>2</code></li> </ol> <p>but not the other float numbers.<...
[ { "answer_id": 74389605, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 3, "selected": true, "text": "import re\n\ntext = 'Test (2.00001) Test (2.000) Test 2.1 Test (2,0001) Test 2,000 Test 2,1000'\n\nre.findall(r'(\\d...
2022/11/10
[ "https://Stackoverflow.com/questions/74389572", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3446051/" ]
74,389,599
<p>I need to turn uppercase to lowercase, lowercase to uppercase and I need to add each number +5 modulo 10. It doesn't work so could you please help me? The sentence is &quot;Hello World, 521&quot; and the output should be &quot;hELLO wORLD, 076&quot;. I need to use a function definition.</p> <p>I tried this:</p> <pre...
[ { "answer_id": 74389637, "author": "assume_irrational_is_rational", "author_id": 11622508, "author_profile": "https://Stackoverflow.com/users/11622508", "pm_score": 2, "selected": false, "text": "str.swapcase ''.join(str((int(i)+5)%10) if i.isdigit() else i.swapcase() for i in 'hello wor...
2022/11/10
[ "https://Stackoverflow.com/questions/74389599", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20347481/" ]
74,389,603
<p>I understand in the code below that I am supposed to use [i,j,k] (or a single variable) to retrieve my return values. However, I have assigned two (only i and j), instead of three to the function. This gives the error &quot;ValueError: too many values to unpack (expected 2)&quot;. I am still trying to understand the...
[ { "answer_id": 74389653, "author": "oskros", "author_id": 9490769, "author_profile": "https://Stackoverflow.com/users/9490769", "pm_score": 1, "selected": false, "text": "fn a, b, h i, j" }, { "answer_id": 74389691, "author": "puf", "author_id": 6583203, "author_profi...
2022/11/10
[ "https://Stackoverflow.com/questions/74389603", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15502001/" ]
74,389,607
<p>I have a pandas dataframe with 1 row and values in columns by separated by categories</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>car &gt; audi &gt; a4</th> <th>car &gt; bmw &gt; 3er</th> <th>moto &gt; bmw &gt; gs</th> </tr> </thead> <tbody> <tr> <td>[item1, item2, item3]</td> <td>[i...
[ { "answer_id": 74389642, "author": "Will", "author_id": 12829151, "author_profile": "https://Stackoverflow.com/users/12829151", "pm_score": -1, "selected": false, "text": "explode" }, { "answer_id": 74389734, "author": "mozway", "author_id": 16343464, "author_profile"...
2022/11/10
[ "https://Stackoverflow.com/questions/74389607", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5423285/" ]
74,389,625
<p>I am wanting to only get the SourceEndpointConfigs from the sourceEndpoints retrieved from _vwSourceEndpoints. I am not sure how to modify my where clause to get the correct results. All help appreciated. Thanks!</p> <pre class="lang-cs prettyprint-override"><code>_vwSourceEndpoints = db.vwSourceEndpoints .Where...
[ { "answer_id": 74393092, "author": "adamctifacts", "author_id": 19216264, "author_profile": "https://Stackoverflow.com/users/19216264", "pm_score": 0, "selected": false, "text": "_vwSourceEndpoints = db.vwSourceEndpoints.Where(\n e => e.StudySourceSystemId == study.Stu...
2022/11/10
[ "https://Stackoverflow.com/questions/74389625", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19216264/" ]
74,389,643
<p>Let's say I have a dataframe with 1000 rows. Is there an easy way of slicing the datframe in sucha way that the resulting datframe consisits of alternating N rows?</p> <p>For example, I want rows 1-100, 200-300, 400-500, ....and so on and skip 100 rows in between and create a new dataframe out of this.</p> <p>I can ...
[ { "answer_id": 74389759, "author": "Ric S", "author_id": 7465462, "author_profile": "https://Stackoverflow.com/users/7465462", "pm_score": 2, "selected": true, "text": "% int df N N = 100\n\ndf.loc[[i for i in range(df.shape[0]) if int(i/N) % 2 == 0]]\n" }, { "answer_id": 7438979...
2022/11/10
[ "https://Stackoverflow.com/questions/74389643", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3370354/" ]
74,389,654
<p>I need to remove part of a URL with a regex. From the words: http or https to the word .com. And it can be several times in one string. Can anyone help me with this?</p> <p>For example a string: &quot;The request is:<a href="https://stackoverflow.com/questions%22">https://stackoverflow.com/questions&quot;</a> After ...
[ { "answer_id": 74392308, "author": "Shai Vashdy", "author_id": 14747878, "author_profile": "https://Stackoverflow.com/users/14747878", "pm_score": -1, "selected": false, "text": "re.sub() urlparse" }, { "answer_id": 74424058, "author": "Y.B.L", "author_id": 19323937, ...
2022/11/10
[ "https://Stackoverflow.com/questions/74389654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19323937/" ]
74,389,721
<p>I wrote this code and received an unexpected output than I thought.</p> <pre><code>def egg(): print(a) egg() # NameError: name 'a' is not defined **As excepted** egg.a = 50 egg() # NameError: name 'a' is not defined **Not as excepted** </code></pre> <p>My hope was that after setting <code>agg.a = 50</code> t...
[ { "answer_id": 74389832, "author": "matszwecja", "author_id": 9296093, "author_profile": "https://Stackoverflow.com/users/9296093", "pm_score": 0, "selected": false, "text": "class Egg:\n def __init__(self, a):\n self.a = a\n def __call__(self):\n print(self.a)\n\negg...
2022/11/10
[ "https://Stackoverflow.com/questions/74389721", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10738662/" ]
74,389,781
<p>I have a script which generates an S3 PreSigned URL and sends it in an email. The script works fine, but when the email is sent, it adds a new-line to the URL, which breaks it and makes it unusable in the email.</p> <p><strong>The only packages installed:</strong></p> <ul> <li>boto3</li> <li>Jinja2</li> </ul> <p><st...
[ { "answer_id": 74389832, "author": "matszwecja", "author_id": 9296093, "author_profile": "https://Stackoverflow.com/users/9296093", "pm_score": 0, "selected": false, "text": "class Egg:\n def __init__(self, a):\n self.a = a\n def __call__(self):\n print(self.a)\n\negg...
2022/11/10
[ "https://Stackoverflow.com/questions/74389781", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5431283/" ]
74,389,794
<p>So i have a list of customers with name and id in a button and i will like to delete each customers by obviously targeting the id.</p> <pre><code>&lt;?php foreach ($customers as $customer) { echo '&lt;button id=&quot;btn&quot; onclick=&quot;showDelete('.$customer['id'].')&quot;&gt;'.$customer['name'].'&lt;/butt...
[ { "answer_id": 74389832, "author": "matszwecja", "author_id": 9296093, "author_profile": "https://Stackoverflow.com/users/9296093", "pm_score": 0, "selected": false, "text": "class Egg:\n def __init__(self, a):\n self.a = a\n def __call__(self):\n print(self.a)\n\negg...
2022/11/10
[ "https://Stackoverflow.com/questions/74389794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20468912/" ]
74,389,834
<p>I'm trying to set each td as a different image that I have saved as imgn.gif. (n being image number, I have 13 images, img1.gif., img2.gif... img13.gif) I have a code that generates the table now I just can't figure out how to set a background image, preferably so that the n imgn.gif changes to the next index so th...
[ { "answer_id": 74389832, "author": "matszwecja", "author_id": 9296093, "author_profile": "https://Stackoverflow.com/users/9296093", "pm_score": 0, "selected": false, "text": "class Egg:\n def __init__(self, a):\n self.a = a\n def __call__(self):\n print(self.a)\n\negg...
2022/11/10
[ "https://Stackoverflow.com/questions/74389834", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20468889/" ]
74,389,848
<p>In python tutorial(<a href="https://docs.python.org/3/tutorial/introduction.html#strings" rel="nofollow noreferrer">https://docs.python.org/3/tutorial/introduction.html#strings</a>), slicing is explained as to think of the indices as pointing between characters, with the left edge of the first character numbered 0. ...
[ { "answer_id": 74389832, "author": "matszwecja", "author_id": 9296093, "author_profile": "https://Stackoverflow.com/users/9296093", "pm_score": 0, "selected": false, "text": "class Egg:\n def __init__(self, a):\n self.a = a\n def __call__(self):\n print(self.a)\n\negg...
2022/11/10
[ "https://Stackoverflow.com/questions/74389848", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10288870/" ]
74,389,862
<p>I want to copy the string “Best School” into a new space in memory, which of these statements can I use to reserve enough space for it</p> <p>A. <code>malloc(sizeof(“Best School”))</code></p> <p>B. <code>malloc(strlen(“Best School”))</code></p> <p>C. <code>malloc(11)</code></p> <p>D. <code>malloc(12)</code></p> <p>E...
[ { "answer_id": 74389948, "author": "Some programmer dude", "author_id": 440558, "author_profile": "https://Stackoverflow.com/users/440558", "pm_score": 2, "selected": true, "text": "sizeof sizeof(\"Best School\") sizeof \"Best School\" strlen strlen strlen strlen(\"Best School\") + 1" ...
2022/11/10
[ "https://Stackoverflow.com/questions/74389862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20418936/" ]
74,389,864
<p>I have built a Web API that is connected to a database for persons. I am now trying to call this Web API from a separate MVC-application which is supposed to have full CRUD. So far i have managed to do so with the Get and Post-methods to create a new person and see a list of the persons currently in the database.</p...
[ { "answer_id": 74389948, "author": "Some programmer dude", "author_id": 440558, "author_profile": "https://Stackoverflow.com/users/440558", "pm_score": 2, "selected": true, "text": "sizeof sizeof(\"Best School\") sizeof \"Best School\" strlen strlen strlen strlen(\"Best School\") + 1" ...
2022/11/10
[ "https://Stackoverflow.com/questions/74389864", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20203816/" ]
74,389,881
<p>I have created a partial view which will show the menu with unordered list. I want to add links to each li element. I have done my research and tried different ways like giving relative path, absolute path etc. but it does not open the view page. It shows 404 error in browser. Am I missing to add something in partia...
[ { "answer_id": 74389948, "author": "Some programmer dude", "author_id": 440558, "author_profile": "https://Stackoverflow.com/users/440558", "pm_score": 2, "selected": true, "text": "sizeof sizeof(\"Best School\") sizeof \"Best School\" strlen strlen strlen strlen(\"Best School\") + 1" ...
2022/11/10
[ "https://Stackoverflow.com/questions/74389881", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15287049/" ]
74,389,891
<p>I am new in React Native and i'm trying to develop a mobile app with Expo.</p> <p>I am trying to call a function of a component class in my App.tsx. I don't want that function is static because i need to access to my variable of my state which is in my constructor of my class.</p> <p>App.tsx</p> <pre><code>const App...
[ { "answer_id": 74389948, "author": "Some programmer dude", "author_id": 440558, "author_profile": "https://Stackoverflow.com/users/440558", "pm_score": 2, "selected": true, "text": "sizeof sizeof(\"Best School\") sizeof \"Best School\" strlen strlen strlen strlen(\"Best School\") + 1" ...
2022/11/10
[ "https://Stackoverflow.com/questions/74389891", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9741308/" ]
74,389,925
<p>I am loading 10 items per page from API and storing the data in redux suppose I scroll 3 pages so in my redux there are 30 elements 10 elements on page 1 10 on page 2 10 on page 3. Now I go to the next screen and return to the pagination screen again. My page 1 is again called and in the redux, there is duplication ...
[ { "answer_id": 74390564, "author": "Gavara.Suneel", "author_id": 8988448, "author_profile": "https://Stackoverflow.com/users/8988448", "pm_score": 0, "selected": false, "text": "{lastSearchedPageIndex: 0, items: []} {lastSearchedPageIndex: 0, items: [SOME_ITEMS_OF_PAGE_0]} if(currentPage...
2022/11/10
[ "https://Stackoverflow.com/questions/74389925", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9002158/" ]
74,389,960
<p>I'd like to access the last modified time column from the metadata of a BigQuery table that acts as a source. I want to create a generic test that checks if the last modified date of the source table is equal to today.</p> <p>In BigQuery you can access this data in this way:</p> <pre><code>SELECT last_modified_time ...
[ { "answer_id": 74390564, "author": "Gavara.Suneel", "author_id": 8988448, "author_profile": "https://Stackoverflow.com/users/8988448", "pm_score": 0, "selected": false, "text": "{lastSearchedPageIndex: 0, items: []} {lastSearchedPageIndex: 0, items: [SOME_ITEMS_OF_PAGE_0]} if(currentPage...
2022/11/10
[ "https://Stackoverflow.com/questions/74389960", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11341655/" ]
74,389,968
<p>How can I convert Date.now to a string without using DateFormatter?</p>
[ { "answer_id": 74390564, "author": "Gavara.Suneel", "author_id": 8988448, "author_profile": "https://Stackoverflow.com/users/8988448", "pm_score": 0, "selected": false, "text": "{lastSearchedPageIndex: 0, items: []} {lastSearchedPageIndex: 0, items: [SOME_ITEMS_OF_PAGE_0]} if(currentPage...
2022/11/10
[ "https://Stackoverflow.com/questions/74389968", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1229350/" ]
74,389,982
<p>i'm beginner and just learning abstract classes and interfaces but really struggeling to get it right.</p> <p><strong>MY Class structure.</strong></p> <ul> <li><strong>Abstract Class</strong> Vehicle</li> <li><strong>Class</strong> Car (extends Vehicle, implements ITuning)</li> <li><strong>Class</strong> Motorcycle ...
[ { "answer_id": 74390214, "author": "Chaosfire", "author_id": 17795888, "author_profile": "https://Stackoverflow.com/users/17795888", "pm_score": 2, "selected": false, "text": "ITuning public interface ITuning<T> {\n \n void doRace(T other);\n}\n public class Car extends Vehicle impleme...
2022/11/10
[ "https://Stackoverflow.com/questions/74389982", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18906827/" ]
74,390,003
<p>So Im supposed to write a program that does the following • Read an eight-digit integer entered by the user. If less or more then eight digits are entered prompt the user again for input Ive tried the following methods yet they dont work, what do I do. Either it accepts asdfghjk as an eight digit number or it cras...
[ { "answer_id": 74390088, "author": "Alan Biju", "author_id": 20468979, "author_profile": "https://Stackoverflow.com/users/20468979", "pm_score": 1, "selected": false, "text": "continue; break" }, { "answer_id": 74390412, "author": "0x0fba", "author_id": 20339407, "aut...
2022/11/10
[ "https://Stackoverflow.com/questions/74390003", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20469024/" ]
74,390,007
<p>I have an external endpoint which I call to get some Json response. This endpoint will initiate a session to a POS device, so the device will show the request details and ask the customer to enter his credit card to complete the payment, then when the customer finishes; the POS will call the endpoint and it will ret...
[ { "answer_id": 74390088, "author": "Alan Biju", "author_id": 20468979, "author_profile": "https://Stackoverflow.com/users/20468979", "pm_score": 1, "selected": false, "text": "continue; break" }, { "answer_id": 74390412, "author": "0x0fba", "author_id": 20339407, "aut...
2022/11/10
[ "https://Stackoverflow.com/questions/74390007", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9984048/" ]
74,390,037
<p>I would like the execution of the event handler to depend on whether the property is set to true or false in applecation.yaml file. I have three yaml files (test, dev, prod) and I have set the settings in them:</p> <pre><code> for application-dev.yml page-cache: starting: false for application-test.yml pag...
[ { "answer_id": 74390088, "author": "Alan Biju", "author_id": 20468979, "author_profile": "https://Stackoverflow.com/users/20468979", "pm_score": 1, "selected": false, "text": "continue; break" }, { "answer_id": 74390412, "author": "0x0fba", "author_id": 20339407, "aut...
2022/11/10
[ "https://Stackoverflow.com/questions/74390037", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20468872/" ]
74,390,106
<p>I'm learning react bootstrap, I wrote in the terminal npm install react-bootstrap bootstrap. and I got this code: But it doesn't show it and I don't get any errors. What am I doing wrong?</p> <pre><code>import {Container, Nav} from &quot;react-bootstrap&quot;; const Navbar = () =&gt; { return( &lt;Navba...
[ { "answer_id": 74390088, "author": "Alan Biju", "author_id": 20468979, "author_profile": "https://Stackoverflow.com/users/20468979", "pm_score": 1, "selected": false, "text": "continue; break" }, { "answer_id": 74390412, "author": "0x0fba", "author_id": 20339407, "aut...
2022/11/10
[ "https://Stackoverflow.com/questions/74390106", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17716431/" ]
74,390,114
<p>I am getting a name error not defined error when entering bond into the program.</p> <p>If anyone could shed some light onto where I have gone wrong that would be great.</p> <pre><code>elif greeting == &quot;Bond&quot;: house_value = int (input('''Please enter the value of the house: ''')) monthly_rat...
[ { "answer_id": 74390157, "author": "Axeltherabbit", "author_id": 8340761, "author_profile": "https://Stackoverflow.com/users/8340761", "pm_score": 3, "selected": false, "text": "elif greeting == \"Bond\": y" }, { "answer_id": 74390690, "author": "ago", "author_id": 20422...
2022/11/10
[ "https://Stackoverflow.com/questions/74390114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20469070/" ]
74,390,141
<p>Hi guys I need some help regarding on the script that I'm doing.</p> <p>I've created a temp table to get the compared values from table1 and table2</p> <pre><code>CREATE TABLE tmp_table1 AS SELECT a.Date, a.Id, b.Customer_Id, a.Name, a.Values FROM table2 a, table1 b WHERE (a.Name like '%Red%' OR a.Name ...
[ { "answer_id": 74390157, "author": "Axeltherabbit", "author_id": 8340761, "author_profile": "https://Stackoverflow.com/users/8340761", "pm_score": 3, "selected": false, "text": "elif greeting == \"Bond\": y" }, { "answer_id": 74390690, "author": "ago", "author_id": 20422...
2022/11/10
[ "https://Stackoverflow.com/questions/74390141", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20469002/" ]
74,390,163
<p>I'm a new beginner in swiftUI and I'm trying to deal with a Class that use CoreLocation to do some places locations comparison. But I've add my structured array of place in my Class and I've got an error with the <code>override init()</code>.</p> <p>My class :</p> <pre><code>import Foundation import CoreLocation imp...
[ { "answer_id": 74390311, "author": "Allan Garcia", "author_id": 1636456, "author_profile": "https://Stackoverflow.com/users/1636456", "pm_score": 0, "selected": false, "text": "Property 'self.placeLibrary' not initialized at super.init call super.init() init() ! import Foundation\nimport...
2022/11/10
[ "https://Stackoverflow.com/questions/74390163", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10582757/" ]
74,390,165
<p>I 'm trying to parse data from website using beautifulsoap in python and finally I pulled data from website so I want to save data in json file but it saves the data as follows according to the code I wrote</p> <p><strong>json file</strong></p> <pre><code>[ { &quot;collocation&quot;: &quot;\nabove averag...
[ { "answer_id": 74390374, "author": "Mustafa KÜÇÜKDEMİRCİ", "author_id": 15833253, "author_profile": "https://Stackoverflow.com/users/15833253", "pm_score": 2, "selected": true, "text": "import requests\nfrom bs4 import BeautifulSoup\nimport pandas as pd\nimport json\n\n\nurl = \"https://...
2022/11/10
[ "https://Stackoverflow.com/questions/74390165", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18002913/" ]
74,390,188
<p>I have an ActiveRecord request:</p> <pre><code>Post.all.select { |p| Date.today &lt; p.created_at.weeks_since(2) } </code></pre> <p>And I want to be able to see what SQL request this produces using <code>.to_sql</code></p> <p>The error I get is: <code>NoMethodError: undefined method 'to_sql'</code></p> <p>TIA!</p>
[ { "answer_id": 74390364, "author": "53c", "author_id": 10630142, "author_profile": "https://Stackoverflow.com/users/10630142", "pm_score": 0, "selected": false, "text": "to_sql select to_sql" }, { "answer_id": 74408407, "author": "engineersmnky", "author_id": 1978251, ...
2022/11/10
[ "https://Stackoverflow.com/questions/74390188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17767334/" ]
74,390,204
<p>I have the following table</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Father</th> <th>Son</th> <th>Year</th> </tr> </thead> <tbody> <tr> <td>James</td> <td>Harry</td> <td>1999</td> </tr> <tr> <td>James</td> <td>Alfi</td> <td>2001</td> </tr> <tr> <td>Corey</td> <td>Kyle</td> <td>2003...
[ { "answer_id": 74390420, "author": "Dmitri Chubarov", "author_id": 1328439, "author_profile": "https://Stackoverflow.com/users/1328439", "pm_score": 0, "selected": false, "text": "groupby cumsum import pandas as pd\ndf = pd.DataFrame({'Father': ['James', 'James', 'Corey'], \n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74390204", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20346110/" ]
74,390,216
<p>If the mouse is about 20px close to the button, I want that the button should be clickable. I tried increasing the width of the button by 20px and making the opacity 0.1 so the big size won't show. Then in the <code>button:hover</code> rule I made the opacity 1.</p> <p>I did the above cause I don't really know how g...
[ { "answer_id": 74390420, "author": "Dmitri Chubarov", "author_id": 1328439, "author_profile": "https://Stackoverflow.com/users/1328439", "pm_score": 0, "selected": false, "text": "groupby cumsum import pandas as pd\ndf = pd.DataFrame({'Father': ['James', 'James', 'Corey'], \n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74390216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19519711/" ]
74,390,218
<p>I want add span in li's. I add spans but they become visible after all of them created.But I want them to be visible right after created</p> <pre><code>h.appendChild(node) console.log(node) </code></pre> <p>when I do that an empty line comes to console but all nodes created that turn this</p> <pre><code>&lt;span cla...
[ { "answer_id": 74396558, "author": "Norio Yamamoto", "author_id": 20074043, "author_profile": "https://Stackoverflow.com/users/20074043", "pm_score": -1, "selected": false, "text": "<!DOCTYPE html>\n<html>\n\n<head>\n <style type=\"text/css\">\n * {\n font-size: xx-large;\n }...
2022/11/10
[ "https://Stackoverflow.com/questions/74390218", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20469130/" ]
74,390,223
<p>So, imagine I have a (dumb) function like this:</p> <pre class="lang-js prettyprint-override"><code>function doSomething(input: number|string): boolean { if (input === 42 || input === '42') { return true; } else { return false; } } </code></pre> <p>Why am I allowed to call <code>array.some()</code> lik...
[ { "answer_id": 74390765, "author": "Matthieu Riegler", "author_id": 884123, "author_profile": "https://Stackoverflow.com/users/884123", "pm_score": 1, "selected": false, "text": "every() every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?:...
2022/11/10
[ "https://Stackoverflow.com/questions/74390223", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1934772/" ]
74,390,232
<p>I want to hook a variable called <code>test</code> using an anonymous function.</p> <pre class="lang-js prettyprint-override"><code>!function() { let test = true; return !test // it writes true to console but i need to write false }() </code></pre> <p>I except that code will show in console <code>false</code...
[ { "answer_id": 74390765, "author": "Matthieu Riegler", "author_id": 884123, "author_profile": "https://Stackoverflow.com/users/884123", "pm_score": 1, "selected": false, "text": "every() every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?:...
2022/11/10
[ "https://Stackoverflow.com/questions/74390232", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20469108/" ]
74,390,246
<p>I am learning how to use the .get() for tkinter, and trying to write this basic GUI that can store, process, and display data depending on a user input.</p> <p>Now (I am fairly new to this, so I am probably wrong) to my knowledge, I need to use the .get() and store it into a variable for future uses.</p> <p>Now here...
[ { "answer_id": 74390765, "author": "Matthieu Riegler", "author_id": 884123, "author_profile": "https://Stackoverflow.com/users/884123", "pm_score": 1, "selected": false, "text": "every() every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?:...
2022/11/10
[ "https://Stackoverflow.com/questions/74390246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20469101/" ]
74,390,263
<p>Problem appeared just today - previously it was working fine. Suddenly getting the error:</p> <pre><code>##[error]System.ArgumentNullException: Value cannot be null. (Parameter ‘input’) at System.Text.RegularExpressions.Regex.Replace(String input, String replacement) at Microsoft.VisualStudio.Services.Agent.Util.Str...
[ { "answer_id": 74390765, "author": "Matthieu Riegler", "author_id": 884123, "author_profile": "https://Stackoverflow.com/users/884123", "pm_score": 1, "selected": false, "text": "every() every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?:...
2022/11/10
[ "https://Stackoverflow.com/questions/74390263", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9403412/" ]
74,390,270
<p>I loop trough an eloquent Collection and I want to add the data to another Collection called &quot;$tagCollection&quot;. If an entry with the same tag_id already exists I only want to increase the rating-column for the existing entry. At the moment it looks like this. Has anyone an Idea?</p> <pre><code>$tagCollectio...
[ { "answer_id": 74390579, "author": "N69S", "author_id": 4369919, "author_profile": "https://Stackoverflow.com/users/4369919", "pm_score": 0, "selected": false, "text": "$entries $tagId $entryIds = $entries->where('tag_id',$tagId)->pluck('id')->toArray();\nEntry::whereIn('id', $entryIds)-...
2022/11/10
[ "https://Stackoverflow.com/questions/74390270", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9739643/" ]
74,390,272
<p>I have a CSV file with company data with 22 rows and 6500 columns. The columns have the same names and I should get the columns with the same names stacked into individual columns according to their headers.</p> <p>I have now the data in one df like this:</p> <pre><code>Y C Y C Y C 1. a 1. b. 1. c. ...
[ { "answer_id": 74390579, "author": "N69S", "author_id": 4369919, "author_profile": "https://Stackoverflow.com/users/4369919", "pm_score": 0, "selected": false, "text": "$entries $tagId $entryIds = $entries->where('tag_id',$tagId)->pluck('id')->toArray();\nEntry::whereIn('id', $entryIds)-...
2022/11/10
[ "https://Stackoverflow.com/questions/74390272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20441021/" ]
74,390,322
<p>I am trying to run a Hello World application with Spring Boot on IntelliJ IDEA. I have the following code:</p> <pre><code>package com.example.springbootexample; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public clas...
[ { "answer_id": 74390579, "author": "N69S", "author_id": 4369919, "author_profile": "https://Stackoverflow.com/users/4369919", "pm_score": 0, "selected": false, "text": "$entries $tagId $entryIds = $entries->where('tag_id',$tagId)->pluck('id')->toArray();\nEntry::whereIn('id', $entryIds)-...
2022/11/10
[ "https://Stackoverflow.com/questions/74390322", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5559342/" ]
74,390,338
<p>We have a Grafana Service with two Grafana PODs in our Kubernetes Cluster. Everytime an alert is triggered both instances will fire the alert.</p> <p>To prevent this from happening, we tried activating the HA alerting, which basically consists of the following configuration:</p> <pre><code>[unified_alerting] enabled...
[ { "answer_id": 74392620, "author": "Jan Garaj", "author_id": 3348604, "author_profile": "https://Stackoverflow.com/users/3348604", "pm_score": 1, "selected": false, "text": " unified_alerting:\n enabled: true\n ha_peers: {{ Name }}-headless:9094\n" } ]
2022/11/10
[ "https://Stackoverflow.com/questions/74390338", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6380489/" ]
74,390,340
<p>I want to display numbers in grid which should auto adjust (rows and columns) based on screen size (Mobile, Tablet, PC)</p> <p>May I know which classes to apply ? Since I have no idea which one to use to make it responsive grid.</p> <p>I tried many classes none worked.</p> <p>Please find the tailwind code here, <a h...
[ { "answer_id": 74392620, "author": "Jan Garaj", "author_id": 3348604, "author_profile": "https://Stackoverflow.com/users/3348604", "pm_score": 1, "selected": false, "text": " unified_alerting:\n enabled: true\n ha_peers: {{ Name }}-headless:9094\n" } ]
2022/11/10
[ "https://Stackoverflow.com/questions/74390340", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4968403/" ]
74,390,363
<p>In regular <code>JavaScript</code>, one can write a <code>for loop</code> using the for...of syntax. Is this possible with <code>observablehq</code>?</p> <pre><code>const array1 = [1, 2, 3]; for (const element of array1) { console.log(element); } </code></pre>
[ { "answer_id": 74390566, "author": "Gerardo Furtado", "author_id": 5768908, "author_profile": "https://Stackoverflow.com/users/5768908", "pm_score": 1, "selected": false, "text": "const array1 array1 = [1, 2, 3];\n for {\n for (const element of array1) {\n console.log(element);...
2022/11/10
[ "https://Stackoverflow.com/questions/74390363", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12347708/" ]
74,390,365
<p>I would like to obtain a cumulative sum through years and for each entity.</p> <p>Here below an example, and what I have tried so far:</p> <pre class="lang-r prettyprint-override"><code>data&lt;-data.frame(id=c(&quot;a&quot;,&quot;a&quot;,&quot;a&quot;,&quot;b&quot;,&quot;a&quot;,&quot;b&quot;,&quot;b&quot;),cars=c(...
[ { "answer_id": 74390478, "author": "Juan C", "author_id": 9462829, "author_profile": "https://Stackoverflow.com/users/9462829", "pm_score": 1, "selected": false, "text": "data %>% group_by(id, year) %>% summarise(sum_cars = sum(cars)) %>% \ngroup_by(id) %>% mutate(csum_cars = cumsum(sum...
2022/11/10
[ "https://Stackoverflow.com/questions/74390365", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16495989/" ]
74,390,370
<p>I am pretty new to Javascript. I am trying to get the sum of the grades of the 3 student properties i have declared. The problem is that i dont understand why it says undefined on my &quot;grade&quot; value. Also if there is any other easier way to find the values of the grades of each student other than writing it ...
[ { "answer_id": 74390418, "author": "David", "author_id": 328193, "author_profile": "https://Stackoverflow.com/users/328193", "pm_score": 2, "selected": false, "text": "classroom.student1.grade\n classroom student1 grade undefined classroom.student1[0].grade\n student1: {\n fullName: \"\...
2022/11/10
[ "https://Stackoverflow.com/questions/74390370", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20109299/" ]
74,390,382
<p>I am making a memory game and when I press a card it's supposed to &quot;flip&quot;. (Simple deck of cards ace-9) I've added the code below to a function &quot;addAcard&quot; but I have to convert my string into a sprite to be able to call it in the assets where I have stored pictures of all of my cards. The rank is...
[ { "answer_id": 74390418, "author": "David", "author_id": 328193, "author_profile": "https://Stackoverflow.com/users/328193", "pm_score": 2, "selected": false, "text": "classroom.student1.grade\n classroom student1 grade undefined classroom.student1[0].grade\n student1: {\n fullName: \"\...
2022/11/10
[ "https://Stackoverflow.com/questions/74390382", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20113184/" ]
74,390,430
<p>I try to send an email in c# with <strong>System.Net.Mail</strong></p> <pre><code>string MsgBody = string.Format(@&quot;Votre espace Cloud a été créé sur Patrimoine Click.&lt;br&gt;Vous pouvez vous y connecter en cliquant &lt;a href=&quot;&quot;https://patrimoine-click.netexplorer.pro&quot;&quot;&gt;ici&lt;/a&gt;&lt...
[ { "answer_id": 74390418, "author": "David", "author_id": 328193, "author_profile": "https://Stackoverflow.com/users/328193", "pm_score": 2, "selected": false, "text": "classroom.student1.grade\n classroom student1 grade undefined classroom.student1[0].grade\n student1: {\n fullName: \"\...
2022/11/10
[ "https://Stackoverflow.com/questions/74390430", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18642324/" ]
74,390,435
<p>I have an abstract class BaseEntity which contains fields I want to share with multiple objects inside my project.</p> <pre><code> @MappedSuperclass @AllArgsConstructor @NoArgsConstructor @Data public abstract class BaseEntity { @Id @Column(name = &quot;objectId&quot;, inserta...
[ { "answer_id": 74390418, "author": "David", "author_id": 328193, "author_profile": "https://Stackoverflow.com/users/328193", "pm_score": 2, "selected": false, "text": "classroom.student1.grade\n classroom student1 grade undefined classroom.student1[0].grade\n student1: {\n fullName: \"\...
2022/11/10
[ "https://Stackoverflow.com/questions/74390435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6356090/" ]
74,390,439
<pre><code> public static void main(String args[]){ extract(&quot;e:\\&quot;); } public static void extract(String p){ File f=new File(p); File l[]=f.listFiles(); int counter = 0; for(File x:l){ if(x.isDirectory()) extract(x.getPath()); else if(...
[ { "answer_id": 74390418, "author": "David", "author_id": 328193, "author_profile": "https://Stackoverflow.com/users/328193", "pm_score": 2, "selected": false, "text": "classroom.student1.grade\n classroom student1 grade undefined classroom.student1[0].grade\n student1: {\n fullName: \"\...
2022/11/10
[ "https://Stackoverflow.com/questions/74390439", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15816577/" ]
74,390,440
<p>my code is in <a href="https://codepen.io/tutsplus/pen/XWZqGgX" rel="nofollow noreferrer">codepen</a> how can i add breakline / new line between title and table ?</p> <pre><code> &lt;li class=&quot;slide&quot;&gt; &lt;H1&gt;TITLE&lt;/H1&gt; &lt;br /&gt; &lt;table border=1&gt; &lt;...
[ { "answer_id": 74390418, "author": "David", "author_id": 328193, "author_profile": "https://Stackoverflow.com/users/328193", "pm_score": 2, "selected": false, "text": "classroom.student1.grade\n classroom student1 grade undefined classroom.student1[0].grade\n student1: {\n fullName: \"\...
2022/11/10
[ "https://Stackoverflow.com/questions/74390440", "https://Stackoverflow.com", "https://Stackoverflow.com/users/609511/" ]
74,390,441
<p>Seemingly similar to <a href="https://stackoverflow.com/questions/13674031/how-to-get-the-top-10-values-in-postgresql">How to get the top 10 values in postgresql?</a>, yet somehow very different.</p> <p>We'll set it up similar to that question:</p> <p>I have a postgresql table: <code>Scores(score integer)</code>.</p...
[ { "answer_id": 74390618, "author": "a_horse_with_no_name", "author_id": 330315, "author_profile": "https://Stackoverflow.com/users/330315", "pm_score": 3, "selected": true, "text": "percent_rank() select score\nfrom (\n select score, percent_rank() over (order by score desc) as pct_rank...
2022/11/10
[ "https://Stackoverflow.com/questions/74390441", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2595659/" ]
74,390,468
<p>I'm having this strange error (sometimes works sometimes does not):</p> <blockquote> <p>no such element: Unable to locate element: {&quot;method&quot;:&quot;xpath&quot;,&quot;selector&quot;:&quot;//*[@id=&quot;card-id-oidc-i&quot;]/a&quot;}</p> </blockquote> <p>My button has this:</p> <pre><code>&lt;a href=&quot;/au...
[ { "answer_id": 74390561, "author": "Prophet", "author_id": 3485434, "author_profile": "https://Stackoverflow.com/users/3485434", "pm_score": 3, "selected": true, "text": "WebDriverWait wait = new WebDriverWait(driver, 30); \nwait.until(ExpectedConditions.elementToBeClickable(By.xpath(\"/...
2022/11/10
[ "https://Stackoverflow.com/questions/74390468", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14012751/" ]
74,390,498
<p>How can I take words from STDIN, then put them into an array I can sort later? this is the code I have for taking in STDIN.</p> <pre><code>printf(&quot;Please enter words to sort:\n&quot;); char *line = NULL; size_t len = 0; ssize_t lineSize = 0; lineSize = getline(&amp;line, &amp;len, stdin); printf(&quot;You enter...
[ { "answer_id": 74392974, "author": "Andreas Wenzel", "author_id": 12149471, "author_profile": "https://Stackoverflow.com/users/12149471", "pm_score": 1, "selected": false, "text": "char * strtok strtok_r #include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define MAX_WORDS 10...
2022/11/10
[ "https://Stackoverflow.com/questions/74390498", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20352716/" ]
74,390,551
<p>On <code>example.com</code> I have an iframe which loads <code>anotherexample.com</code>. The problem I am having though is if I load <code>anotherexample.com</code> directly (outside of the iframe) the localStorage isn't shared with the iframed <code>anotherexample.com</code>.</p> <p>Is this possible to achieve?</p...
[ { "answer_id": 74547039, "author": "L.Raudel", "author_id": 16340303, "author_profile": "https://Stackoverflow.com/users/16340303", "pm_score": -1, "selected": false, "text": "/iframe" } ]
2022/11/10
[ "https://Stackoverflow.com/questions/74390551", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9248335/" ]
74,390,581
<p>I am trying to install erlang 25 (and elixir 1.13) on my ubuntu VM, but the default version installed by apt is erlang 24. I've tried both :</p> <pre><code>sudo wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb &amp;&amp; sudo dpkg -i erlang-solutions_1.0_all.d sudo apt update </code></pre> <p>...
[ { "answer_id": 74402692, "author": "Kiko Fernandez", "author_id": 470655, "author_profile": "https://Stackoverflow.com/users/470655", "pm_score": 1, "selected": false, "text": "apt-get install erlang\n git clone https://github.com/erlang/otp.git\ncd otp\ngit checkout maint-25 # curren...
2022/11/10
[ "https://Stackoverflow.com/questions/74390581", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18446325/" ]
74,390,625
<p>I have the following code below.</p> <p>I am trying to carry out a mapping where the value 0 in the dataframe column 'caffeine' is replaced by 'no' and any other value aside 0 is replaced by 'yes'.</p> <p>However, the following command, the values that are not 0 are replaced with 'NaN' rather than 'yes'.</p> <p>Woul...
[ { "answer_id": 74390704, "author": "Celius Stingher", "author_id": 11897007, "author_profile": "https://Stackoverflow.com/users/11897007", "pm_score": 1, "selected": false, "text": "newerdf['caffeine'] = np.where(newerdf['caffeine'] == 0,'no','yes')\n" }, { "answer_id": 74390715,...
2022/11/10
[ "https://Stackoverflow.com/questions/74390625", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12985497/" ]
74,390,627
<p>working on Python script. I get a result that is list:</p> <p><code>a = [{'S_RAF': {'C_C106': {'D_1103': 'AVE', 'D_1104': '3-AB3242'}}}, {'S_RAF': {'C_C106': {'D_1103': 'OI', 'D_1104': '31503302130'}}}, {'S_RAF': {'C_C106': {'D_1103': 'PQ', 'D_1104': 'IBAN3102495934895'}}}]</code></p> <p>And I would like to get the...
[ { "answer_id": 74390704, "author": "Celius Stingher", "author_id": 11897007, "author_profile": "https://Stackoverflow.com/users/11897007", "pm_score": 1, "selected": false, "text": "newerdf['caffeine'] = np.where(newerdf['caffeine'] == 0,'no','yes')\n" }, { "answer_id": 74390715,...
2022/11/10
[ "https://Stackoverflow.com/questions/74390627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20469396/" ]
74,390,669
<p>When you run the C code below, you get a different results almost everytime(None of them are altogether correct).</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; int main() { int i,j; int s[10][4]={{202201,90,13,21},{202202,32,24,12},{202203,23,53,76},{202204,21,43,64},{202205,12,45,89},{2...
[ { "answer_id": 74390704, "author": "Celius Stingher", "author_id": 11897007, "author_profile": "https://Stackoverflow.com/users/11897007", "pm_score": 1, "selected": false, "text": "newerdf['caffeine'] = np.where(newerdf['caffeine'] == 0,'no','yes')\n" }, { "answer_id": 74390715,...
2022/11/10
[ "https://Stackoverflow.com/questions/74390669", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20469441/" ]
74,390,692
<p>I need copy pdf files between Source and Destination server, but pdf files are stored on Source server only as shortcuts to web address (FileName.pdf.url files).</p> <p>Network source/destination shares mapped as disk D: and E:</p> <pre><code>Copy-Item -Path D:\FileName.pdf.url -Destination E:\FileName.pdf </code><...
[ { "answer_id": 74391710, "author": "mklement0", "author_id": 45375, "author_profile": "https://Stackoverflow.com/users/45375", "pm_score": 1, "selected": false, "text": "WScript.Shell WshShell .CreateShortcut() .url .lnk .url WshShortcut WshUrlShortcut .TargetPath .FullPath Invoke-WebReq...
2022/11/10
[ "https://Stackoverflow.com/questions/74390692", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1952168/" ]
74,390,705
<p>In Android I often want to navigate is response to state change from a ViewModel. (for example, successful authentication triggers navigation to the user's home screen.)</p> <p>Is the best practice to trigger navigation from within the ViewModel? Is there an intentional mechanism to trigger navigation within a com...
[ { "answer_id": 74391028, "author": "z.y", "author_id": 19023745, "author_profile": "https://Stackoverflow.com/users/19023745", "pm_score": 2, "selected": false, "text": "// Does not behave correctly.\n@Composable fun AuthScreen() {\n val screenState = viewModel.screenState.observeAsSt...
2022/11/10
[ "https://Stackoverflow.com/questions/74390705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1647098/" ]
74,390,729
<p>I am a linguist by trade and use Perl to help me organize my data so I am not at all proficient and my solutions are not very streamlined :) My problem today, is that I want to tag all occurrences of the items in a wordlist in a corpus of example sentences.</p> <p>I wrote a (sloppy) script for another experiment but...
[ { "answer_id": 74391100, "author": "TLP", "author_id": 725418, "author_profile": "https://Stackoverflow.com/users/725418", "pm_score": 2, "selected": false, "text": "%words $words{$key} = $value | () \\K \\L use strict;\nuse warnings;\n\nmy %words = do { \n open my $fh, \"<\", \"words...
2022/11/10
[ "https://Stackoverflow.com/questions/74390729", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20469177/" ]
74,390,730
<p>I have a list of strings in example:</p> <pre><code>['xxx', 'xxxyy', 'ccccy'] </code></pre> <p>and a normal string i.e. <code>String example1 = &quot;xxxyyy&quot;</code></p> <p>And I want to check if any of the strings in my list matches start of my example1 I dont need to know which strings match but only if exampl...
[ { "answer_id": 74390824, "author": "Rono", "author_id": 2292457, "author_profile": "https://Stackoverflow.com/users/2292457", "pm_score": 3, "selected": true, "text": "if (yourArray.Any(a => example1.StartsWith(a))\n" }, { "answer_id": 74392129, "author": "vivek nuna", "a...
2022/11/10
[ "https://Stackoverflow.com/questions/74390730", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9441773/" ]
74,390,732
<p>I have an array of objects that contains children, There will not always be children, sometimes there will be grandchildren How can I go through it in JAVA SCRIPT and print it?</p> <pre><code>[ { &quot;id&quot;: &quot;1&quot;, &quot;name&quot;: &quot;sara&quot;, &quot;children&quot;: [ { ...
[ { "answer_id": 74390824, "author": "Rono", "author_id": 2292457, "author_profile": "https://Stackoverflow.com/users/2292457", "pm_score": 3, "selected": true, "text": "if (yourArray.Any(a => example1.StartsWith(a))\n" }, { "answer_id": 74392129, "author": "vivek nuna", "a...
2022/11/10
[ "https://Stackoverflow.com/questions/74390732", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17125497/" ]
74,390,737
<p>With loop or other, I can't see how to use the replace or inline module to achieve that.</p> <p>The orinal file contains this line</p> <pre><code>goals first_goal + second_goal </code></pre> <p>I <strong>only</strong> want to modify the line starting with <code>goals</code> (with leading spaces or not)<br /> With th...
[ { "answer_id": 74390824, "author": "Rono", "author_id": 2292457, "author_profile": "https://Stackoverflow.com/users/2292457", "pm_score": 3, "selected": true, "text": "if (yourArray.Any(a => example1.StartsWith(a))\n" }, { "answer_id": 74392129, "author": "vivek nuna", "a...
2022/11/10
[ "https://Stackoverflow.com/questions/74390737", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13575132/" ]