qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,377,235
<p>I am following this tutorial, <a href="https://learn.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/tutorials/how-to-write-csharp-analyzer-code-fix" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/tutorials/how-to-write-csharp-analyzer-code-fix</a></p> <p>What I really want is to d...
[ { "answer_id": 74394817, "author": "Jason Malinowski", "author_id": 972216, "author_profile": "https://Stackoverflow.com/users/972216", "pm_score": 2, "selected": false, "text": "methodDeclaration.AttributeLists.Any())" }, { "answer_id": 74413625, "author": "Youssef13", "...
2022/11/09
[ "https://Stackoverflow.com/questions/74377235", "https://Stackoverflow.com", "https://Stackoverflow.com/users/159910/" ]
74,377,247
<p>I'm trying to watch spotify packages on the emulator, but the data sent and received are corrupted. How can I solve this problem?</p> <p>İmages:</p> <p><a href="https://i.stack.imgur.com/1cIwd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1cIwd.png" alt="enter image description here" /></a> <a h...
[ { "answer_id": 74377658, "author": "Tim Perry", "author_id": 68051, "author_profile": "https://Stackoverflow.com/users/68051", "pm_score": 1, "selected": false, "text": "content-type application/protobuf protoc" } ]
2022/11/09
[ "https://Stackoverflow.com/questions/74377247", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20139460/" ]
74,377,254
<p>I need to set up a query that will split up a single record into multiple records based on values from multiple columns in a single table.</p> <p>Right now, a current parcel record would read as:</p> <pre><code>table.tax_id table.CLASS 1 table.CLASS 2 table.CLASS 3 table.CLASS 4A table.CLASS 4B 03489 ...
[ { "answer_id": 74377658, "author": "Tim Perry", "author_id": 68051, "author_profile": "https://Stackoverflow.com/users/68051", "pm_score": 1, "selected": false, "text": "content-type application/protobuf protoc" } ]
2022/11/09
[ "https://Stackoverflow.com/questions/74377254", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19684094/" ]
74,377,281
<p>I'm a beginner in Flutter, I want to use firebase in my flutter app, I run my app on chrome because the emulator does not work, I have configured the <code>build.gradle</code> file, and the <code>pubspec.yaml</code>, when I run my app I have an error saying:</p> <pre><code>/C:/flutter/.pub-cache/hosted/pub.dartlang....
[ { "answer_id": 74377658, "author": "Tim Perry", "author_id": 68051, "author_profile": "https://Stackoverflow.com/users/68051", "pm_score": 1, "selected": false, "text": "content-type application/protobuf protoc" } ]
2022/11/09
[ "https://Stackoverflow.com/questions/74377281", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20349488/" ]
74,377,287
<p>I have a table that stores the date of birth of patients in DateTime format(2022-06-22).</p> <p>How can I get the age in years for people born in July?</p> <p>I have tried the below:</p> <pre><code>select sFirstName, sLastName, dDateOfBirth, DATEDIFF(yy,dDateOfBirth,GETDATE()) as Age, ifkMedicalAidID from Patients w...
[ { "answer_id": 74377385, "author": "Kyle", "author_id": 15321226, "author_profile": "https://Stackoverflow.com/users/15321226", "pm_score": -1, "selected": false, "text": "select sFirstName,\n sLastName,\n dDateOfBirth,\n DATEDIFF(yy,dDateOfBirth,GETDATE()) as Age,\n ifkMedic...
2022/11/09
[ "https://Stackoverflow.com/questions/74377287", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15321226/" ]
74,377,314
<p>I want to get a day based on a number from 1 to 365. An integer in the range of 1 to 365 is given and I need to find the day of the week for a given day in a year (starting with Sunday).</p> <pre><code>a = int(input()) # Integer from 1 to 365 print( # day ) </code></pre> <p>Example: input <code>1</code>, output <co...
[ { "answer_id": 74377450, "author": "dangarfield", "author_id": 3265253, "author_profile": "https://Stackoverflow.com/users/3265253", "pm_score": 0, "selected": false, "text": "10 modulo 7 % 0 -> 0\n1 -> 1\n2 -> 2\n3 -> 3\n4 -> 4\n5 -> 5\n6 -> 6\n7 -> 0 <--- 7 % 7 = 0, eg 7 goes into 7 on...
2022/11/09
[ "https://Stackoverflow.com/questions/74377314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20460426/" ]
74,377,320
<p>I am having a bit of a struggle to use a dataframe that I have created. The dataframe is to keep track each day of the wake up time, 1st meal, last meal (2ndMeal here) and time when the person goes to sleep (Sleep time).</p> <p>Here attached you can see what the initial dataframe looks like:</p> <pre><code> Unnam...
[ { "answer_id": 74377450, "author": "dangarfield", "author_id": 3265253, "author_profile": "https://Stackoverflow.com/users/3265253", "pm_score": 0, "selected": false, "text": "10 modulo 7 % 0 -> 0\n1 -> 1\n2 -> 2\n3 -> 3\n4 -> 4\n5 -> 5\n6 -> 6\n7 -> 0 <--- 7 % 7 = 0, eg 7 goes into 7 on...
2022/11/09
[ "https://Stackoverflow.com/questions/74377320", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20458278/" ]
74,377,360
<p>Why can't I detect the np.nan value in data using np.isnan() in the list comprehension below? Does the list comprehension transform the type of values in some way?</p> <pre><code>data = pd.DataFrame({'col':['a', 'b', np.nan]}) [print('NaN') if np.isnan(i) else print('Not NaN') for i in data.col] </code></pre>
[ { "answer_id": 74377446, "author": "saeedghadiri", "author_id": 1988231, "author_profile": "https://Stackoverflow.com/users/1988231", "pm_score": 1, "selected": false, "text": "pd.isna [print('NaN') if pd.isna(i) else print('Not NaN') for i in data.col]\n Not NaN\nNot NaN\nNaN\n" }, ...
2022/11/09
[ "https://Stackoverflow.com/questions/74377360", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8510149/" ]
74,377,367
<p>I have a list of specific gitlab runners. I want to create a ci script, which would pick one of them to run.</p> <p>GitLab docs only tells how to run job with <a href="https://docs.gitlab.com/ee/ci/yaml/index.html#tags" rel="nofollow noreferrer">both tags</a>, bot not with one of them.</p>
[ { "answer_id": 74377446, "author": "saeedghadiri", "author_id": 1988231, "author_profile": "https://Stackoverflow.com/users/1988231", "pm_score": 1, "selected": false, "text": "pd.isna [print('NaN') if pd.isna(i) else print('Not NaN') for i in data.col]\n Not NaN\nNot NaN\nNaN\n" }, ...
2022/11/09
[ "https://Stackoverflow.com/questions/74377367", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7355324/" ]
74,377,374
<p>How to duplicate elements of an array in Java and add them to a new array in the same order of the original array?</p> <pre><code>// Pass an array of the form {4, 16, 8}, // The returned array should then contain {4, 4, 16, 16, 8, 8}. public static int[] duplicateElements(final int[] elements){ int duplicate = ...
[ { "answer_id": 74378022, "author": "chptr-one", "author_id": 13797513, "author_profile": "https://Stackoverflow.com/users/13797513", "pm_score": 0, "selected": false, "text": "public static int[] duplicateElements(final int[] origin) {\n int[] result = new int[origin.length * 2];\...
2022/11/09
[ "https://Stackoverflow.com/questions/74377374", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16854605/" ]
74,377,375
<p>Given the current example array of objects:</p> <pre><code>const data = { ...otherData, formGroups: [{roldependence: &quot;a&quot;, rol2dependence: &quot;&quot;, rol3dependence: &quot;b&quot;},{roldependence: &quot;&quot;, rol2dependence: &quot;1&quot;, rol3dependence: &quot;&quot;}] } </code></pre> <p>I nee...
[ { "answer_id": 74377965, "author": "AryaveerSR", "author_id": 20459167, "author_profile": "https://Stackoverflow.com/users/20459167", "pm_score": 0, "selected": false, "text": "data.formGroups.map((formGroup) => {\n Object.keys(formGroup).forEach((key) => {\n if (formGroup[key] !== \...
2022/11/09
[ "https://Stackoverflow.com/questions/74377375", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19632949/" ]
74,377,429
<p>I would like to use a value of a state variable in a JSX expression and cannot figure out the syntax. Here is simplified code:</p> <pre><code>function App() { const [isLoading, setIsLoading] = useState(false); const [page, setPage] = useState(1); return ( &lt;div&gt; {isLoading ? `Loading...` : ...
[ { "answer_id": 74377965, "author": "AryaveerSR", "author_id": 20459167, "author_profile": "https://Stackoverflow.com/users/20459167", "pm_score": 0, "selected": false, "text": "data.formGroups.map((formGroup) => {\n Object.keys(formGroup).forEach((key) => {\n if (formGroup[key] !== \...
2022/11/09
[ "https://Stackoverflow.com/questions/74377429", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1417658/" ]
74,377,438
<p>I am trying to make something a puzzle for a school project and for one of the puzzles, it requires me to make almost like an among-us fixing wire game. The most simple way to do that and do to get to get the best result is to use buttons. But how would I make it so when my first button is clicked, the second one ap...
[ { "answer_id": 74377965, "author": "AryaveerSR", "author_id": 20459167, "author_profile": "https://Stackoverflow.com/users/20459167", "pm_score": 0, "selected": false, "text": "data.formGroups.map((formGroup) => {\n Object.keys(formGroup).forEach((key) => {\n if (formGroup[key] !== \...
2022/11/09
[ "https://Stackoverflow.com/questions/74377438", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20460480/" ]
74,377,452
<pre><code> class PopUpCard extends StatefulWidget { final String title; const PopUpCard({super.key, required this.title}); } Container( child: Card( child: Center( child: Text( widget.title, )), ),...
[ { "answer_id": 74377600, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 1, "selected": false, "text": " Container(\n height: 80,\n width: 80,\n decoration: BoxDecoration(\n color: Color.fromARGB(255, 19, 8...
2022/11/09
[ "https://Stackoverflow.com/questions/74377452", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17906689/" ]
74,377,462
<p>How could I make a program that sums up all numbers in a txt file like this:</p> <pre><code>12 49 1 4 5 4 5 14 20 4 5 91 etc.. </code></pre> <p>I was thinking of doing for line in readline(), then checking if there are spaces in the line and splitting it if there is. How would I go about and do that?</p>
[ { "answer_id": 74377565, "author": "ShlomiF", "author_id": 5024514, "author_profile": "https://Stackoverflow.com/users/5024514", "pm_score": 0, "selected": false, "text": "int map with open('/path/to/file/numbers.txt', 'r') as f:\n full_sum = sum(map(int, f.read().split()))\nprint(ful...
2022/11/09
[ "https://Stackoverflow.com/questions/74377462", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19310613/" ]
74,377,497
<p>So I have this folder</p> <p><a href="https://i.stack.imgur.com/fhRcS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fhRcS.png" alt="img1" /></a></p> <p>In which I run (using Powershell)</p> <blockquote> <p>Get-Content Dockerfile | docker build -</p> </blockquote> <p>But I get the following error...
[ { "answer_id": 74377592, "author": "Hans Kilian", "author_id": 3924803, "author_profile": "https://Stackoverflow.com/users/3924803", "pm_score": 3, "selected": true, "text": "docker build - docker build -t myimage .\n" }, { "answer_id": 74377599, "author": "Nick ODell", "...
2022/11/09
[ "https://Stackoverflow.com/questions/74377497", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19800284/" ]
74,377,503
<p>I would like to run a shell script every time when a shell is started using <code>docker exec</code> or <code>kubectl exec</code>. I am looking for something similar to <code>.bashrc</code>/<code>.bash_profile</code>/<code>.profile</code>, but since this particular container is based on alpine linux, bash is not ava...
[ { "answer_id": 74377919, "author": "Nick ODell", "author_id": 530160, "author_profile": "https://Stackoverflow.com/users/530160", "pm_score": 1, "selected": false, "text": "/bin/sh .profile FROM alpine:latest\nRUN echo 'echo foo' >> /root/.profile\nCMD [\"/bin/sh\", \"-l\"]\n $ docker ru...
2022/11/09
[ "https://Stackoverflow.com/questions/74377503", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1167226/" ]
74,377,516
<p>I need to read the observations from this file and store them per day basis. The daily observations start with a # and below that line are the daily observations. The columns in the observations are 'LVLpTYP', 'ETIME', 'PRESSURE','GPH','TEMP','RH','DPDP','WDIR','WSPD'respectively. I don't want to skip the heading ro...
[ { "answer_id": 74377919, "author": "Nick ODell", "author_id": 530160, "author_profile": "https://Stackoverflow.com/users/530160", "pm_score": 1, "selected": false, "text": "/bin/sh .profile FROM alpine:latest\nRUN echo 'echo foo' >> /root/.profile\nCMD [\"/bin/sh\", \"-l\"]\n $ docker ru...
2022/11/09
[ "https://Stackoverflow.com/questions/74377516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17581930/" ]
74,377,526
<p>I am making a terminal app in javascript. But the problem is that I can't use innerHTML method. I tried using innerText method, but it doesnt apply multi space and &amp; nbsp; is also ignore. For example:</p> <pre><code>example.innerText = &quot;a&amp;nbsp;&amp;nbsp;b&quot;; //output is not 'a b' </code></pre> <p>I...
[ { "answer_id": 74377919, "author": "Nick ODell", "author_id": 530160, "author_profile": "https://Stackoverflow.com/users/530160", "pm_score": 1, "selected": false, "text": "/bin/sh .profile FROM alpine:latest\nRUN echo 'echo foo' >> /root/.profile\nCMD [\"/bin/sh\", \"-l\"]\n $ docker ru...
2022/11/09
[ "https://Stackoverflow.com/questions/74377526", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20449169/" ]
74,377,554
<p>enter image description here</p> <p>I'm having difficulty with taking two dates and assigning duration in secs between all half hour intervals.</p> <p>attached table data and attached expected output.</p> <p><a href="https://i.stack.imgur.com/j17YV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j...
[ { "answer_id": 74378256, "author": "Alex Poole", "author_id": 266304, "author_profile": "https://Stackoverflow.com/users/266304", "pm_score": 2, "selected": true, "text": "with p (start_time, stop_time) as (\n select cast(timestamp '2022-10-04 09:00:00' as date),\n cast(timestamp '20...
2022/11/09
[ "https://Stackoverflow.com/questions/74377554", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20459917/" ]
74,377,567
<p>I have an API from SQL server table with the following result:</p> <p><code>[[&quot;Nom1&quot;, &quot;Prénom1&quot;], [&quot;Nom2&quot;, &quot;Prenom2&quot;]]</code></p> <p>where the API is <code>http://192.168.2.220:5000/api/get_user</code></p> <p>I want to display the result in a dropdown menu dynamically.</p>
[ { "answer_id": 74378256, "author": "Alex Poole", "author_id": 266304, "author_profile": "https://Stackoverflow.com/users/266304", "pm_score": 2, "selected": true, "text": "with p (start_time, stop_time) as (\n select cast(timestamp '2022-10-04 09:00:00' as date),\n cast(timestamp '20...
2022/11/09
[ "https://Stackoverflow.com/questions/74377567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20460515/" ]
74,377,574
<p>Hi I'm learning angular and I want to make a currency converter using angular reactive form,I figured out the form itself, all the fields are readable, but after a request to the backend, the answer does not come, tell me what I'm doing wrong?</p> <p>this is my html</p> <pre><code>&lt;div class=&quot;selection-conta...
[ { "answer_id": 74377907, "author": "MoxxiManagarm", "author_id": 11011793, "author_profile": "https://Stackoverflow.com/users/11011793", "pm_score": 0, "selected": false, "text": "export class CurrencyReactiveComponent implements OnInit {\n currjson:any=\"\";\n result:number=1\n\n cre...
2022/11/09
[ "https://Stackoverflow.com/questions/74377574", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18216988/" ]
74,377,620
<p>I have in my application a shell that I need to execute once the container is started and that it remains in the background, I have seen using lifecycle but it does not work for me</p> <pre><code> ports: - name: php-port containerPort: 9000 lifecycle: postStart: exec: comm...
[ { "answer_id": 74377907, "author": "MoxxiManagarm", "author_id": 11011793, "author_profile": "https://Stackoverflow.com/users/11011793", "pm_score": 0, "selected": false, "text": "export class CurrencyReactiveComponent implements OnInit {\n currjson:any=\"\";\n result:number=1\n\n cre...
2022/11/09
[ "https://Stackoverflow.com/questions/74377620", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2928741/" ]
74,377,656
<p>After sending a REST POST request from an Angular frontend to a Java backend, the backend recieves the request and computes the answer. However, in the frontend, the request does not show up in the logs, instead a parsing error is given.</p> <p>There is a Rest-Call from an Angular endpoint, which is:</p> <pre><code>...
[ { "answer_id": 74377710, "author": "MoxxiManagarm", "author_id": 11011793, "author_profile": "https://Stackoverflow.com/users/11011793", "pm_score": 2, "selected": true, "text": "return this.http.post(this.API_URL + '/userId', nonSimpleObject, { responseType: 'text' });\n @Produces(Medi...
2022/11/09
[ "https://Stackoverflow.com/questions/74377656", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10905378/" ]
74,377,657
<p>Inputs:</p> <pre><code>group1 &lt;- c(&quot;A&quot;, &quot;B&quot;, &quot;C&quot;, &quot;D&quot;) group2 &lt;- c(&quot;B&quot;, &quot;A&quot;, &quot;D&quot;, &quot;C&quot;) count &lt;- c(1, 3, 2, 4) df &lt;- data.frame(group1, group2, count) </code></pre> <p>df:</p> <pre><code> group1 group2 count 1 A B ...
[ { "answer_id": 74377733, "author": "Gregor Thomas", "author_id": 903061, "author_profile": "https://Stackoverflow.com/users/903061", "pm_score": 1, "selected": false, "text": "library(dplyr)\ndf %>%\n mutate(g1 = pmin(group1, group2),\n g2 = pmax(group1, group2)) %>%\n group_by...
2022/11/09
[ "https://Stackoverflow.com/questions/74377657", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7816373/" ]
74,377,677
<p>The application I'm working on generates very long SQL statements as a result of very long <code>WHERE col IN (values) clauses</code>.</p> <p>A typical query would be:</p> <pre><code>SELECT userId, userAge FROM users WHERE userId IN (16,4127,51,13,17, ...{10,000 other userIds}..., 914) </code></pre> <p>This is &quo...
[ { "answer_id": 74377742, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 2, "selected": false, "text": "SELECT userId, userAge \nFROM users u\nWHERE EXISTS (SELECT 1 FROM otherTable t WHERE t.userId = u.userId);\...
2022/11/09
[ "https://Stackoverflow.com/questions/74377677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17194313/" ]
74,377,689
<p>I'd like to use an MS Word template to format emails for a mail merge. I currently use MS Access / VBA / MS Outlook to generate emails, but all of the formatting I'm looking for I hardcode (e.g. {b}, {i}, {u}, {br /}, etc.) Is there a way to use an existing MS Word template to create the body of my email, and allow ...
[ { "answer_id": 74377742, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 2, "selected": false, "text": "SELECT userId, userAge \nFROM users u\nWHERE EXISTS (SELECT 1 FROM otherTable t WHERE t.userId = u.userId);\...
2022/11/09
[ "https://Stackoverflow.com/questions/74377689", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11064315/" ]
74,377,709
<p>Trying this to replace all lowercase words is not working properly</p> <pre><code>=regexreplace(A1;&quot;\b[a-züöäß]+\b&quot;;&quot;&quot;) </code></pre> <p>Example sentence:</p> <blockquote> <p>Mit Sätzen wie Gewinne laufen lassen Verluste begrenzen können vor allem weniger erfahrene Aktienkäufer oder Börseneinstei...
[ { "answer_id": 74377805, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 2, "selected": false, "text": "=TRIM(SUBSTITUTE(REGEXREPLACE(SUBSTITUTE(A1, \" \", \" \"), \"(^| )[a-züöäß]+( |$)\", \"\"), \" \", \" \")...
2022/11/09
[ "https://Stackoverflow.com/questions/74377709", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3392296/" ]
74,377,720
<p>i got a string and a scanf that reads from input until it finds a *, which is the character i picked for the end of the text. After the * all the remaining cells get filled with random characters. I know that a string after the \0 character if not filled completly until the last cell will fill all the remaining empt...
[ { "answer_id": 74377799, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 3, "selected": true, "text": "char string1 [100];\n char string1 [100] = { 0 };\n char string1 [100] = \"\";\n scanf(\"%[^*]s\", string1);...
2022/11/09
[ "https://Stackoverflow.com/questions/74377720", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20460446/" ]
74,377,731
<p>I want to convert the following structured code into a more readable LINQ call:</p> <pre class="lang-cs prettyprint-override"><code>foreach (string line in this.HeaderTexts) { Match match = dimensionsSearcher.Match(line); if (match.Success) { // Do something return; } } </code></pre>...
[ { "answer_id": 74377799, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 3, "selected": true, "text": "char string1 [100];\n char string1 [100] = { 0 };\n char string1 [100] = \"\";\n scanf(\"%[^*]s\", string1);...
2022/11/09
[ "https://Stackoverflow.com/questions/74377731", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10406502/" ]
74,377,750
<p>I often struggle with understanding how to assign values in <code>R</code> within loops. The desired behavior seems simple to me, but I clearly don't have a good grasp on the subtleties of evaluation and assignment in <code>R</code>.</p> <p>For example, I've got a bunch of data objects that I want to add a comment ...
[ { "answer_id": 74377854, "author": "Gregor Thomas", "author_id": 903061, "author_profile": "https://Stackoverflow.com/users/903061", "pm_score": 1, "selected": false, "text": "for(i in seq_along(obj_l)) {\n comment(obj_l[[i]]) <- my_comment\n}\n\ncomment(obj_l[[i]])\n# [1] \"these objec...
2022/11/09
[ "https://Stackoverflow.com/questions/74377750", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5322644/" ]
74,377,753
<p>Short description: two computers in the same network, in the new one only those python scripts work that use native packages.</p> <p>I have Pycharm in my old computer and it has worked fine. Now I got a new computer, installed the most recent version of Python and Pycharm, then opened one of my old projects. Both th...
[ { "answer_id": 74377937, "author": "Guf", "author_id": 17444641, "author_profile": "https://Stackoverflow.com/users/17444641", "pm_score": 1, "selected": false, "text": "requirement.txt requirements.txt" } ]
2022/11/09
[ "https://Stackoverflow.com/questions/74377753", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13846831/" ]
74,377,763
<p>My case is: I have a string with HTML elements:</p> <pre><code>&lt;a href=&quot;something+specific_string&quot; title=&quot;testing&quot;&gt;This is a text and &quot;specific_string&quot;&lt;/a&gt; </code></pre> <p>I need a Regex to match only the one that is not in a HTML attribute.</p> <p>This is my current Regex,...
[ { "answer_id": 74377937, "author": "Guf", "author_id": 17444641, "author_profile": "https://Stackoverflow.com/users/17444641", "pm_score": 1, "selected": false, "text": "requirement.txt requirements.txt" } ]
2022/11/09
[ "https://Stackoverflow.com/questions/74377763", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9447434/" ]
74,377,816
<p>I am looking for a way to take an ordered vector and return the percentage of the way through the vector that each value appears for the first time.</p> <p>See below for the input vector and the expected result.</p> <pre><code>InputVector&lt;-c(1,1,1,1,1,2,2,2,3,3) ExpectedResult&lt;-data.frame(Value=c(1,2,3), Perc...
[ { "answer_id": 74377958, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 3, "selected": true, "text": "rank() unique() data.frame(\n Value = InputVector,\n Percentile = (rank(InputVector, ties.method = \"min\") -...
2022/11/09
[ "https://Stackoverflow.com/questions/74377816", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17974332/" ]
74,377,828
<p>How can I access my user activity?<br /> I want to update something on my server when my user exit from the application</p> <p>I try this way but I don't know where I make mistakes, because that way doesn't work.</p> <pre><code> class _MyHomePageState extends State&lt;MyHomePage&gt; with WidgetsBindingObserver { ...
[ { "answer_id": 74377901, "author": "aminjafari-dev", "author_id": 19699656, "author_profile": "https://Stackoverflow.com/users/19699656", "pm_score": 1, "selected": false, "text": "initState @override\n void initState() {\n WidgetsBinding.instance.addObserver(this);\n print(\"in...
2022/11/09
[ "https://Stackoverflow.com/questions/74377828", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20184483/" ]
74,377,835
<p>The goal is to build a program to report the transactions for a particular stock in a human-readable format. For example, for our test data set, the transactions on the stock VTI will be printed as:</p> <pre><code>Bought 100 units of VTI for 1104 pounds each on day 1 Bought 50 units of VTI for 1223 pounds each on d...
[ { "answer_id": 74378036, "author": "chi", "author_id": 3234959, "author_profile": "https://Stackoverflow.com/users/3234959", "pm_score": 2, "selected": true, "text": "transaction_to_string :: Transaction -> String\ntransaction_to_string (action, units, stocks, price, day) = \n ...
2022/11/09
[ "https://Stackoverflow.com/questions/74377835", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,377,888
<p>I have an application that uses Hibernate and it's running out of memory with a medium volume dataset (~3 million records). When analysing the memory dump using Eclipse's Memory Analyser I can see that <code>StatefulPersistenceContext</code> appears to be holding a copy of the record in memory in addition to the obj...
[ { "answer_id": 74378036, "author": "chi", "author_id": 3234959, "author_profile": "https://Stackoverflow.com/users/3234959", "pm_score": 2, "selected": true, "text": "transaction_to_string :: Transaction -> String\ntransaction_to_string (action, units, stocks, price, day) = \n ...
2022/11/09
[ "https://Stackoverflow.com/questions/74377888", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3107019/" ]
74,377,972
<pre><code> abstract class AbstractView { ctx : AbstractView; constructor() { this.ctx = this.constructor as typeof AbstractView; } static getStatus() : string { return 'hi'; } } class testView extends AbstractView { static getStatus() : string { return 'hi2'...
[ { "answer_id": 74378047, "author": "Ruan Mendes", "author_id": 227299, "author_profile": "https://Stackoverflow.com/users/227299", "pm_score": 1, "selected": false, "text": "abstract class AbstractView {\n ctx : typeof AbstractView;\n constructor() {\n this.ctx = this.constructor as...
2022/11/09
[ "https://Stackoverflow.com/questions/74377972", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1901035/" ]
74,377,975
<p>Below is the current code. I'm kinda new to python, but my previous bot with virtually the same code ran perfectly fine, so i don't understand why it's not running. The bot will turn on and show as &quot;online&quot; in Discord, but won't send the message.</p> <pre><code>import os import discord from dotenv import ...
[ { "answer_id": 74378047, "author": "Ruan Mendes", "author_id": 227299, "author_profile": "https://Stackoverflow.com/users/227299", "pm_score": 1, "selected": false, "text": "abstract class AbstractView {\n ctx : typeof AbstractView;\n constructor() {\n this.ctx = this.constructor as...
2022/11/09
[ "https://Stackoverflow.com/questions/74377975", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20460807/" ]
74,378,006
<p>I do host a gitea server and access git via https. The certificate is <strong>not</strong> self-signed, but from a proper CA, User Trust (<a href="https://www.tbs-certificates.co.uk/FAQ/en/racine-USERTrustRSACertificationAuthority.html" rel="nofollow noreferrer">https://www.tbs-certificates.co.uk/FAQ/en/racine-USERT...
[ { "answer_id": 74378047, "author": "Ruan Mendes", "author_id": 227299, "author_profile": "https://Stackoverflow.com/users/227299", "pm_score": 1, "selected": false, "text": "abstract class AbstractView {\n ctx : typeof AbstractView;\n constructor() {\n this.ctx = this.constructor as...
2022/11/09
[ "https://Stackoverflow.com/questions/74378006", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1155873/" ]
74,378,012
<p>This is what I am after.</p> <ol> <li>File or folder is dragged and dropped on the application shortcut</li> <li>User is prompted for an entry</li> <li>The dropped file or folder is renamed, with the text returned from the prompt as a file prefix, followed by a separator character (hyphen, underscore, space - any of...
[ { "answer_id": 74378047, "author": "Ruan Mendes", "author_id": 227299, "author_profile": "https://Stackoverflow.com/users/227299", "pm_score": 1, "selected": false, "text": "abstract class AbstractView {\n ctx : typeof AbstractView;\n constructor() {\n this.ctx = this.constructor as...
2022/11/09
[ "https://Stackoverflow.com/questions/74378012", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19701285/" ]
74,378,015
<p>I want to know if I can use match cases within Python to match within a string - that is, if a string contains the match case. Example:</p> <pre><code>mystring = &quot;xmas holidays&quot; match mystring: case &quot;holidays&quot;: return true case &quot;workday&quot;: return false ...
[ { "answer_id": 74378359, "author": "Abdul Niyas P M", "author_id": 6699447, "author_profile": "https://Stackoverflow.com/users/6699447", "pm_score": 1, "selected": false, "text": "match == case match mystring str __eq__ __contains__ >>> class MyStr(str):\n... def __eq__(self, other):...
2022/11/09
[ "https://Stackoverflow.com/questions/74378015", "https://Stackoverflow.com", "https://Stackoverflow.com/users/198974/" ]
74,378,018
<p>I am trying to get the data from an API endpoint using the following block of code.</p> <pre><code>interface IResponse{ &quot;id&quot;: number, &quot;title&quot;: string, &quot;description&quot;: string, &quot;price&quot;: number, &quot;discountPercentage&quot;: number, &quot;rating&quot;: number, &quo...
[ { "answer_id": 74378359, "author": "Abdul Niyas P M", "author_id": 6699447, "author_profile": "https://Stackoverflow.com/users/6699447", "pm_score": 1, "selected": false, "text": "match == case match mystring str __eq__ __contains__ >>> class MyStr(str):\n... def __eq__(self, other):...
2022/11/09
[ "https://Stackoverflow.com/questions/74378018", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20460765/" ]
74,378,030
<p>I have a test stand with Cartridge cluster. Stand start with docker-compose (use tarantool 2.10.3 docker-image with cartridge-cli inside).</p> <p>container-1:</p> <ul> <li>instance-1-1</li> <li>instance-1-2</li> </ul> <p>container-2:</p> <ul> <li>instance-2-1</li> <li>instance-2-2</li> </ul> <p>After starting all in...
[ { "answer_id": 74378359, "author": "Abdul Niyas P M", "author_id": 6699447, "author_profile": "https://Stackoverflow.com/users/6699447", "pm_score": 1, "selected": false, "text": "match == case match mystring str __eq__ __contains__ >>> class MyStr(str):\n... def __eq__(self, other):...
2022/11/09
[ "https://Stackoverflow.com/questions/74378030", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12066909/" ]
74,378,057
<p>I assume this is a simple task for <code>pandas</code> but I don't get it.</p> <p>I have data liket this</p> <pre><code> Group Val 0 A 0 1 A 1 2 A &lt;NA&gt; 3 A 3 4 B 4 5 B &lt;NA&gt; 6 B 6 7 B &lt;NA&gt; </code></pre> <p>And I want to know the frequency of ...
[ { "answer_id": 74378119, "author": "It_is_Chris", "author_id": 9177877, "author_profile": "https://Stackoverflow.com/users/9177877", "pm_score": 2, "selected": false, "text": "new = df.groupby(['Group', df['Val'].isna().replace({True: 'NA', False: 'Valid'})])['Group'].count().unstack(lev...
2022/11/09
[ "https://Stackoverflow.com/questions/74378057", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4865723/" ]
74,378,061
<p>I have the next dataframe:</p> <pre><code>House = rep(c('A','B','C'), each=10) Date = as.Date(c('2014-10-13','2014-10-20','2014-10-27','2014-11-03','2014-11-10','2014-10-30','2014-11-06','2014-11-13','2014-11-20','2014-11-27', '2019-11-27','2019-12-04','2019-12-11','2019-12-18','2019-12-25','2020-01...
[ { "answer_id": 74378136, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": false, "text": "house.year <- split(mock, list(mock$House, format(mock$Date, \"%Y\")), drop = TRUE)\nlst1 <- lapply(split(house.year, ...
2022/11/09
[ "https://Stackoverflow.com/questions/74378061", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14682764/" ]
74,378,065
<pre><code>a,b = map(int, input().split()) </code></pre> <p>In the above code or anything similar, we use split to separate multiple inputs on a single line, typically separated with a space, and assign the results to the variables.</p> <p>This is very convenient feature, however I am facing a problem:</p> <p>Say I wan...
[ { "answer_id": 74378199, "author": "jprebys", "author_id": 3268228, "author_profile": "https://Stackoverflow.com/users/3268228", "pm_score": 2, "selected": true, "text": "a, b, *_ = map(int, input().split())\n _" }, { "answer_id": 74378209, "author": "Franklin Pezzuti Dyer", ...
2022/11/09
[ "https://Stackoverflow.com/questions/74378065", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20460678/" ]
74,378,070
<p>I am new to Google Sheets and need some help in validating data from one sheet into another. I have a list of item on other sheets and just want to validate on my master sheet whether that item is on each of my two other sheets.</p> <p>On my master sheet (Delivered List), I have a list of approx 5k items and want to...
[ { "answer_id": 74378199, "author": "jprebys", "author_id": 3268228, "author_profile": "https://Stackoverflow.com/users/3268228", "pm_score": 2, "selected": true, "text": "a, b, *_ = map(int, input().split())\n _" }, { "answer_id": 74378209, "author": "Franklin Pezzuti Dyer", ...
2022/11/09
[ "https://Stackoverflow.com/questions/74378070", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20433661/" ]
74,378,082
<p>I have this types:</p> <pre><code>type IInputType = &quot;text&quot; | &quot;checkbox&quot; | &quot;number&quot;; type IField&lt;T extends IInputType&gt; = { name: string; value: T extends &quot;checkbox&quot; ? boolean : T extends &quot;number&quot; ? number : string; type: T; }; type IPossibleF...
[ { "answer_id": 74378199, "author": "jprebys", "author_id": 3268228, "author_profile": "https://Stackoverflow.com/users/3268228", "pm_score": 2, "selected": true, "text": "a, b, *_ = map(int, input().split())\n _" }, { "answer_id": 74378209, "author": "Franklin Pezzuti Dyer", ...
2022/11/09
[ "https://Stackoverflow.com/questions/74378082", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8903411/" ]
74,378,117
<p>I have a table with a column name HS where data is like this:</p> <pre><code>HS &lt;- c(&quot;44.01 44.12&quot;,&quot;44.1234&quot;,&quot;4561.10 4562.10 4620.1&quot;) </code></pre> <p>I would like to get a list :</p> <pre><code>listcodes = c(&quot;44.01&quot;,&quot;44.12&quot;,&quot;44.1234&quot;,&quot;4561.10&quot...
[ { "answer_id": 74378148, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": false, "text": "scan strsplit scan(text = paste(HS, collapse = \" \"), what = numeric(), quiet = TRUE)\n character scan(text = paste(H...
2022/11/09
[ "https://Stackoverflow.com/questions/74378117", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5457869/" ]
74,378,151
<p>I have a pipeline that loads multiple csv's and an xlsx file into 4 separate tables. Generally, this pipeline runs fine. However, occasionally one of the tables (always the same table) results in an invalid object. If I re-run the pipeline with no changes, all is fine. I have never had an issue with any of the other...
[ { "answer_id": 74378148, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": false, "text": "scan strsplit scan(text = paste(HS, collapse = \" \"), what = numeric(), quiet = TRUE)\n character scan(text = paste(H...
2022/11/09
[ "https://Stackoverflow.com/questions/74378151", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20460908/" ]
74,378,175
<p>The code was alright before I tried to used the setState function which is setcategory and setvalue in this code but after I did this my react page went blank. What went wrong and how should I fix it?</p> <pre><code>import Employee_card from './Employee_card' import '../styles/home.css' import { Link, useSearchP...
[ { "answer_id": 74378148, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": false, "text": "scan strsplit scan(text = paste(HS, collapse = \" \"), what = numeric(), quiet = TRUE)\n character scan(text = paste(H...
2022/11/09
[ "https://Stackoverflow.com/questions/74378175", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15913488/" ]
74,378,194
<p>I have an object which is like</p> <pre><code>[{ Date: 01/11/2022, Questionnaire: [ {Title: 'Rating', Ans: '5' }, {Title: 'Comment', Ans: 'Awesome' } ] }, { Date: 01/11/2022, Questionnaire: [ {Title: 'Rating', Ans: '2' }, {Title: 'Comment', Ans: 'Bad' } ] }, { Date: 09/12/2022, Qu...
[ { "answer_id": 74378369, "author": "dangarfield", "author_id": 3265253, "author_profile": "https://Stackoverflow.com/users/3265253", "pm_score": 0, "selected": false, "text": " Date: 01/11/2022,\n Questionnaire: [\n {Title: 'Rating', Ans: '5' },\n {Title: 'Comment', Ans: 'Awesome...
2022/11/09
[ "https://Stackoverflow.com/questions/74378194", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5447971/" ]
74,378,196
<p>I need <code>buffer</code> functionality with output size limiting. Say I have an observable stream <code>myInterval</code> which I want to gate the output of using a notifier observable <code>bufferBy</code>, but when the notifier fires I want to limit the number of items emitted. <code>buffer</code> doesn't have...
[ { "answer_id": 74378369, "author": "dangarfield", "author_id": 3265253, "author_profile": "https://Stackoverflow.com/users/3265253", "pm_score": 0, "selected": false, "text": " Date: 01/11/2022,\n Questionnaire: [\n {Title: 'Rating', Ans: '5' },\n {Title: 'Comment', Ans: 'Awesome...
2022/11/09
[ "https://Stackoverflow.com/questions/74378196", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6007429/" ]
74,378,206
<p>i decided make portfolio websites I found example, decided to copy its style etc, but I have issue at the start,i made everything good(I was thinking so),but I have a problem with its responsibility, you can see here https://olaolu.dev,that when you change window size, its automatically change size of everything, it...
[ { "answer_id": 74378369, "author": "dangarfield", "author_id": 3265253, "author_profile": "https://Stackoverflow.com/users/3265253", "pm_score": 0, "selected": false, "text": " Date: 01/11/2022,\n Questionnaire: [\n {Title: 'Rating', Ans: '5' },\n {Title: 'Comment', Ans: 'Awesome...
2022/11/09
[ "https://Stackoverflow.com/questions/74378206", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19414154/" ]
74,378,211
<p>I have created a simply function with sub functions that returns balance and you can add an amount to update your balance.</p> <pre class="lang-js prettyprint-override"><code>const bankAccount = (initialBalance) =&gt; { let balance = initialBalance; return { getBalance: function() { return balance; ...
[ { "answer_id": 74378281, "author": "Moussa Bistami", "author_id": 15628525, "author_profile": "https://Stackoverflow.com/users/15628525", "pm_score": 0, "selected": false, "text": "async function bankAccount(initialBalance) {\n return await new Promise((resolve, reject) => {\n let bala...
2022/11/09
[ "https://Stackoverflow.com/questions/74378211", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19940752/" ]
74,378,217
<p>I'd like to redirect all visitors to my WordPress website except the translations available for pages in the <code>/cy/</code> subdirectory:</p> <ul> <li><code>/cy/</code></li> </ul> <p>so for example</p> <ul> <li><code>https://myoldomain.co.uk/cy/partners/</code></li> </ul> <p>is not redirected but</p> <ul> <li><co...
[ { "answer_id": 74378281, "author": "Moussa Bistami", "author_id": 15628525, "author_profile": "https://Stackoverflow.com/users/15628525", "pm_score": 0, "selected": false, "text": "async function bankAccount(initialBalance) {\n return await new Promise((resolve, reject) => {\n let bala...
2022/11/09
[ "https://Stackoverflow.com/questions/74378217", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1782964/" ]
74,378,284
<p>Why does the code below count from 0 to 9? Does C store the variable i in test always at the same address? And when calling C initializes the variable i with its previous value? Or is that just by random chance ?</p> <p>I used Ubuntu with gcc.</p> <pre><code> #include &lt;stdio.h&gt; void test(){ int i; pr...
[ { "answer_id": 74378336, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 2, "selected": false, "text": "i void test(){\n int i; \n printf(\"%d\\n\", i);\n i++;\n}\n i" }, { "answer_id": 74378354...
2022/11/09
[ "https://Stackoverflow.com/questions/74378284", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11555394/" ]
74,378,320
<p>I was trying to run some c program on a RISCV processor and I got this:</p> <pre><code>/foss/tools/riscv-gnu-toolchain-rv32i/217e7f3debe424d61374d31e33a091a630535937/lib/gcc/riscv32-unknown-linux-gnu/11.1.0/../../../../riscv32-unknown-linux-gnu/bin/ld: test_la.elf section `.data' will not fit in region `dff' /foss/t...
[ { "answer_id": 74378336, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 2, "selected": false, "text": "i void test(){\n int i; \n printf(\"%d\\n\", i);\n i++;\n}\n i" }, { "answer_id": 74378354...
2022/11/09
[ "https://Stackoverflow.com/questions/74378320", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10566333/" ]
74,378,330
<p>This is a minor cosmetic thing, I'm just curious what's going on under the water. I'm converting MARC21 XML to some other XML dialext using Saxonica <code>transform.exe</code>.</p> <p>Here's a short sample of my output. The question is: how come <code>OCLC_number</code> has tags and content each on a separate line (...
[ { "answer_id": 74378336, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 2, "selected": false, "text": "i void test(){\n int i; \n printf(\"%d\\n\", i);\n i++;\n}\n i" }, { "answer_id": 74378354...
2022/11/09
[ "https://Stackoverflow.com/questions/74378330", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1016065/" ]
74,378,340
<p>I am new to Blazor server side app. I am currently working on creating web app for my client using Blazor Server side app. I want to understand the good practice on using Web API in Blazor server side app. I can access the data directly in Blazor Server side app using Entity Framework, but at the same time, there ar...
[ { "answer_id": 74379100, "author": "Ibrahim Timimi", "author_id": 8316900, "author_profile": "https://Stackoverflow.com/users/8316900", "pm_score": 0, "selected": false, "text": "web-assembly server-side" } ]
2022/11/09
[ "https://Stackoverflow.com/questions/74378340", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8616968/" ]
74,378,373
<p>Please refer to the Widget <code>Text(&quot;HERE&quot;)</code> and corresponding ScreenShot below. When a keyboard appears from the bottom of device, the Widget <code>Text(&quot;HERE&quot;)</code> relatively moved to upper-side, hence I should care about overflow of whole widget size as well as size of user devices....
[ { "answer_id": 74379100, "author": "Ibrahim Timimi", "author_id": 8316900, "author_profile": "https://Stackoverflow.com/users/8316900", "pm_score": 0, "selected": false, "text": "web-assembly server-side" } ]
2022/11/09
[ "https://Stackoverflow.com/questions/74378373", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6843543/" ]
74,378,388
<p>Here is my situation: I have two Datastore kind, I need to create a python query for all Data that don't are present in Kind B. In the sample those are: Data 3 and Data 4.</p> <p>The constraint here is that i need to filter for elements in KindA which have a key that is different from specific KindB property.</p> <d...
[ { "answer_id": 74388581, "author": "Girolamo", "author_id": 15488129, "author_profile": "https://Stackoverflow.com/users/15488129", "pm_score": 0, "selected": false, "text": "list_of_id = []\nentries = KindB.query()\nfor request in entries:\n list_of_id.append(request.key.id())\n\nkey...
2022/11/09
[ "https://Stackoverflow.com/questions/74378388", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15488129/" ]
74,378,404
<p>This might be difficult to explain. But Im trying to write a redshift sql query where I have want the count of organizations that fall into different market buckets. There are 50 markets. For example company x can be only be found in 1 market and company y can be found in 3 markets. I want to preface that I have ove...
[ { "answer_id": 74388581, "author": "Girolamo", "author_id": 15488129, "author_profile": "https://Stackoverflow.com/users/15488129", "pm_score": 0, "selected": false, "text": "list_of_id = []\nentries = KindB.query()\nfor request in entries:\n list_of_id.append(request.key.id())\n\nkey...
2022/11/09
[ "https://Stackoverflow.com/questions/74378404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18113224/" ]
74,378,408
<p>Say I have a library function <code>int foo( const T&amp; )</code> that can operate with some specific containers as argument:</p> <pre><code>std::vector&lt;A&gt; c1; std::list&lt;B&gt;() c2; auto a1 = foo(c1); // ok auto a2 = foo(c2); // ok too std::map&lt;int, float&gt; c3; auto a3 = foo( c3 ); // this must fai...
[ { "answer_id": 74388581, "author": "Girolamo", "author_id": 15488129, "author_profile": "https://Stackoverflow.com/users/15488129", "pm_score": 0, "selected": false, "text": "list_of_id = []\nentries = KindB.query()\nfor request in entries:\n list_of_id.append(request.key.id())\n\nkey...
2022/11/09
[ "https://Stackoverflow.com/questions/74378408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/193789/" ]
74,378,428
<p>I have data organized as lines (no columns). Lines altern between &quot;&gt;name&quot; and &quot;data&quot;, such that:</p> <pre><code> &gt;name1 textA &gt;name2 textB &gt;name3 textC </code></pre> <p>I want to remove lines with a given name and the associated data - e.g., remove the data for &gt;name3, meaning that...
[ { "answer_id": 74388581, "author": "Girolamo", "author_id": 15488129, "author_profile": "https://Stackoverflow.com/users/15488129", "pm_score": 0, "selected": false, "text": "list_of_id = []\nentries = KindB.query()\nfor request in entries:\n list_of_id.append(request.key.id())\n\nkey...
2022/11/09
[ "https://Stackoverflow.com/questions/74378428", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20461033/" ]
74,378,432
<p>I want to find my local time zone and then return the time zone name (cet, est etc.) using Python and my location so that I can just find it without entering any additional information except for the location of my pc (which I want to find using GPS and not manually adding it)</p> <pre><code>import say import dateti...
[ { "answer_id": 74378522, "author": "Kaitonee", "author_id": 9805279, "author_profile": "https://Stackoverflow.com/users/9805279", "pm_score": 1, "selected": false, "text": "import time\nprint(time.tzname)\n ('CET', 'CEST')" }, { "answer_id": 74379300, "author": "FObersteiner"...
2022/11/09
[ "https://Stackoverflow.com/questions/74378432", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15370351/" ]
74,378,433
<p>I'm trying to understand why I am getting this <code>TypeError</code> when instantiating my <code>deque</code>. I am solving the &quot;Number of Islands&quot; problem</p> <pre><code>def bfs(r,c): q = collections.deque((r,c)) while q: r_curr, c_curr = q.popleft() for dr, dc in dirs: ...
[ { "answer_id": 74378522, "author": "Kaitonee", "author_id": 9805279, "author_profile": "https://Stackoverflow.com/users/9805279", "pm_score": 1, "selected": false, "text": "import time\nprint(time.tzname)\n ('CET', 'CEST')" }, { "answer_id": 74379300, "author": "FObersteiner"...
2022/11/09
[ "https://Stackoverflow.com/questions/74378433", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14224098/" ]
74,378,463
<p>I currently have some data in the form of a nested map like the following:</p> <pre><code>Map&lt;String, Map&lt;String, List&lt;Integer&gt;&gt;&gt; data = // intializing the Map // data = {group1={grades=[a,b,c], age=[x,y,z]}, group={....}} and so on </code></pre> <p>What I want to do is essentially remove grad...
[ { "answer_id": 74378522, "author": "Kaitonee", "author_id": 9805279, "author_profile": "https://Stackoverflow.com/users/9805279", "pm_score": 1, "selected": false, "text": "import time\nprint(time.tzname)\n ('CET', 'CEST')" }, { "answer_id": 74379300, "author": "FObersteiner"...
2022/11/09
[ "https://Stackoverflow.com/questions/74378463", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8815285/" ]
74,378,466
<p>I have multiple variables to pass in if, elif and else statement. Assuming 3 variables a, b, and c. Those are simply list that contains numbers. But I need to define if, elif and else statement for each probability of the variables.</p> <p>For example:</p> <ul> <li>if one of the variables &gt;0 do something with thi...
[ { "answer_id": 74378522, "author": "Kaitonee", "author_id": 9805279, "author_profile": "https://Stackoverflow.com/users/9805279", "pm_score": 1, "selected": false, "text": "import time\nprint(time.tzname)\n ('CET', 'CEST')" }, { "answer_id": 74379300, "author": "FObersteiner"...
2022/11/09
[ "https://Stackoverflow.com/questions/74378466", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15600857/" ]
74,378,488
<p>I've this Twitter bot that tweets out info on stock trades, whenever I run the bot from VS Code it works fine and tweets the values I want. Now I need to host it on Heroku but when I do and the script executes the values that are tweeted end up as <code>undefined</code>, <a href="https://ibb.co/j8rSY1C" rel="nofollo...
[ { "answer_id": 74378522, "author": "Kaitonee", "author_id": 9805279, "author_profile": "https://Stackoverflow.com/users/9805279", "pm_score": 1, "selected": false, "text": "import time\nprint(time.tzname)\n ('CET', 'CEST')" }, { "answer_id": 74379300, "author": "FObersteiner"...
2022/11/09
[ "https://Stackoverflow.com/questions/74378488", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17164833/" ]
74,378,490
<p>I currently have the function below which works fine:</p> <pre><code>export const optionsFunc: Function = (token: string) =&gt; { const options = { headers: { &quot;Content-Type&quot;: &quot;application/json&quot;, Authorization: `Bearer ${token}`, } }; return options; }; </code></pre> <p>...
[ { "answer_id": 74378522, "author": "Kaitonee", "author_id": 9805279, "author_profile": "https://Stackoverflow.com/users/9805279", "pm_score": 1, "selected": false, "text": "import time\nprint(time.tzname)\n ('CET', 'CEST')" }, { "answer_id": 74379300, "author": "FObersteiner"...
2022/11/09
[ "https://Stackoverflow.com/questions/74378490", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19843880/" ]
74,378,495
<p>I have a dataframe with several rows and I need to assign a number (new column) according to the values of the other columns:</p> <ul> <li>If all values in the different columns are the same the new value would be 5,</li> <li>if at least 4 values are the same it would be 4,</li> <li>if at least 3 values are the same...
[ { "answer_id": 74378522, "author": "Kaitonee", "author_id": 9805279, "author_profile": "https://Stackoverflow.com/users/9805279", "pm_score": 1, "selected": false, "text": "import time\nprint(time.tzname)\n ('CET', 'CEST')" }, { "answer_id": 74379300, "author": "FObersteiner"...
2022/11/09
[ "https://Stackoverflow.com/questions/74378495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20062020/" ]
74,378,534
<p>I have a pub/sub topic in project A. I would now like to stream messages from that topic into a dataflow pipeline running in a different project B. I have followed the example at <a href="https://cloud.google.com/pubsub/docs/stream-messages-dataflow" rel="nofollow noreferrer">https://cloud.google.com/pubsub/docs/str...
[ { "answer_id": 74387292, "author": "Mazlum Tosun", "author_id": 9261558, "author_profile": "https://Stackoverflow.com/users/9261558", "pm_score": 0, "selected": false, "text": "Dataflow IAM Pub Sub IAM Dataflow Dataflow Dataflow Python --service_account_email=my-service-account-name@<pro...
2022/11/09
[ "https://Stackoverflow.com/questions/74378534", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1290055/" ]
74,378,545
<p>If I have below table</p> <pre><code>|a | id | year|m2000 | m2001 | m2002 | .... | m2015| |&quot;hello&quot;| 1 | 2001 | 0 | 0 | 0 | ... | 0 | |&quot;hello&quot;| 1 | 2015 | 0 | 0 | 0 | ... | 0 | |&quot;hello&quot;| 2 | 2002 | 0 | 0 | 0 | ... | 0 | |&quot;hello&q...
[ { "answer_id": 74382789, "author": "wwnde", "author_id": 8986975, "author_profile": "https://Stackoverflow.com/users/8986975", "pm_score": 2, "selected": true, "text": "new = df.select('a','id','year',*[when((size(F.array_distinct(F.array(F.lit(col('year').astype('string')), lit(x[1:])))...
2022/11/09
[ "https://Stackoverflow.com/questions/74378545", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9390633/" ]
74,378,551
<p>I have an input field and a button. The button should be enabled on the following simple scenarios:</p> <ul> <li>Input length is equal to 10, or</li> <li>Input length is greater than 15 (should be disabled for 11 to 14).</li> </ul> <p>I tried <code>!str.length = 10 || !str.length &gt;= 15</code>, but these condition...
[ { "answer_id": 74378602, "author": "Lima", "author_id": 17258654, "author_profile": "https://Stackoverflow.com/users/17258654", "pm_score": 0, "selected": false, "text": "!(str.length == 10 || str.length > 15)\n" }, { "answer_id": 74378646, "author": "Robert Bradley", "au...
2022/11/09
[ "https://Stackoverflow.com/questions/74378551", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4340444/" ]
74,378,553
<p><a href="https://stackoverflow.com/questions/6259515/how-can-i-split-a-string-into-segments-of-n-characters">How can I split a string into segments of n characters?</a> is similar but not exactly what we are trying to achieve:</p> <pre><code>// let splitSentence = (sentence, nChar) =&gt; {} // creating this function...
[ { "answer_id": 74378784, "author": "Mushroomator", "author_id": 17487348, "author_profile": "https://Stackoverflow.com/users/17487348", "pm_score": 1, "selected": false, "text": "nChar space string[][] join() /**\n * \n * @param {string} sentence \n * @param {number} nChar \n * @returns ...
2022/11/09
[ "https://Stackoverflow.com/questions/74378553", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5573294/" ]
74,378,562
<p>I'm new to Web Development. I'm learning <code>JavaScript</code> now(<code>JQuery</code>) and I chose Simple Chat as a project to get started. Unfortunately, I can't figure out how to prevent the page from refreshing after a message is sent.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt; &lt;h...
[ { "answer_id": 74378784, "author": "Mushroomator", "author_id": 17487348, "author_profile": "https://Stackoverflow.com/users/17487348", "pm_score": 1, "selected": false, "text": "nChar space string[][] join() /**\n * \n * @param {string} sentence \n * @param {number} nChar \n * @returns ...
2022/11/09
[ "https://Stackoverflow.com/questions/74378562", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19819759/" ]
74,378,569
<p>I have a parent element with 2 absolutely positioned children inside. I want one of the children's overflow to be visible and the other's overflow to be hidden. Like so:</p> <p><a href="https://i.stack.imgur.com/R8Zzc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R8Zzc.png" alt="What I want" /><...
[ { "answer_id": 74378784, "author": "Mushroomator", "author_id": 17487348, "author_profile": "https://Stackoverflow.com/users/17487348", "pm_score": 1, "selected": false, "text": "nChar space string[][] join() /**\n * \n * @param {string} sentence \n * @param {number} nChar \n * @returns ...
2022/11/09
[ "https://Stackoverflow.com/questions/74378569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13740590/" ]
74,378,581
<p>For Example, I am using the following code.</p> <pre><code>@app.route('/test', methods=['GET', 'POST']) def test(): if request.method == 'POST': test = request.form['test'] print(test) print('\nprinted') </code></pre> <p>If I send the post request with a value containing newline '\n' the ...
[ { "answer_id": 74378784, "author": "Mushroomator", "author_id": 17487348, "author_profile": "https://Stackoverflow.com/users/17487348", "pm_score": 1, "selected": false, "text": "nChar space string[][] join() /**\n * \n * @param {string} sentence \n * @param {number} nChar \n * @returns ...
2022/11/09
[ "https://Stackoverflow.com/questions/74378581", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13187206/" ]
74,378,584
<p>I was wondering if there was a possible way to update data of each elements in the list</p> <p>This is my initial list,</p> <pre><code>var list1 = ['image1.png', 'image2.png', 'image3.png'] </code></pre> <p>I want the final list in such a way that I could update the all the elements in the list like, (just add a str...
[ { "answer_id": 74378633, "author": "Ruble", "author_id": 17991131, "author_profile": "https://Stackoverflow.com/users/17991131", "pm_score": 3, "selected": true, "text": "List result = list1.map((e) => 'bucket/$e').toList();\n" }, { "answer_id": 74379368, "author": "Duck Prog...
2022/11/09
[ "https://Stackoverflow.com/questions/74378584", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10539761/" ]
74,378,585
<p>I have a <em>large</em> list of .txt files that I need to have a macro that does the following:</p> <ol> <li>Open Files</li> <li>Delimit the file based on &quot;|&quot;</li> <li>Select all then filter</li> <li>Sort on a specific header</li> </ol> <p>Steps 3 and 4 are easy... If these files weren't all .txt with | de...
[ { "answer_id": 74379306, "author": "Tim Williams", "author_id": 478884, "author_profile": "https://Stackoverflow.com/users/478884", "pm_score": 1, "selected": false, "text": "Workbooks.OpenText Sub Tester()\n\n Dim wb As Workbook\n \n Set wb = GetWorkbook(\"C:\\Temp\\pipes.txt\"...
2022/11/09
[ "https://Stackoverflow.com/questions/74378585", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12327038/" ]
74,378,592
<p>I have an <code>orders</code> collection where each <code>order</code> has the following shape:</p> <pre><code> { &quot;_id&quot;: &quot;5252875356f64d6d28000001&quot;, &quot;lineItems&quot;: [ { productId: 'prod_007', quantity: 3 }, { productId: 'prod_003', quantity: 2 } ] // other fie...
[ { "answer_id": 74378873, "author": "J.F.", "author_id": 13464279, "author_profile": "https://Stackoverflow.com/users/13464279", "pm_score": 1, "selected": false, "text": "$unwind $lookup $mergeObjects db.orders.aggregate([\n {\n \"$unwind\": \"$lineItems\"\n },\n {\n \"$lookup\"...
2022/11/09
[ "https://Stackoverflow.com/questions/74378592", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13169785/" ]
74,378,621
<p>I am trying to prevent users from connecting to certain pages with a script. Thus, is there any method I can use to detect if a connection to a specific web page is a client browser versus an automated script?</p> <p>I know certain headers can be spoofed, but is there another mechanism I can use; say like if unable...
[ { "answer_id": 74378753, "author": "Zak", "author_id": 1507691, "author_profile": "https://Stackoverflow.com/users/1507691", "pm_score": 0, "selected": false, "text": ".htaccess php php_value auto_prepend_file check.php\n <?php\n if( !@$_SERVER[\"HTTP_X_REQUESTED_WITH\"] ){\n h...
2022/11/09
[ "https://Stackoverflow.com/questions/74378621", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2036221/" ]
74,378,624
<p>I would like to concurrently perform an operation on the elements of a slice<br /> I am using the <a href="https://pkg.go.dev/golang.org/x/sync/errgroup" rel="nofollow noreferrer">sync/errgroup</a> package to handle concurrency</p> <p>Here is a minimal reproduction on Go Playground <a href="https://go.dev/play/p/yBC...
[ { "answer_id": 74378829, "author": "NotX", "author_id": 5767484, "author_profile": "https://Stackoverflow.com/users/5767484", "pm_score": 2, "selected": false, "text": "1 2 3 eg.Go() for 3 i=2 for i, n := range input {\n nc, ic := n, i\n eg.Go(func() (err error) {\n output1 ...
2022/11/09
[ "https://Stackoverflow.com/questions/74378624", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13210063/" ]
74,378,631
<p>I'm trying to use the <a href="https://github.com/microsoftgraph/msgraph-sdk-dotnet" rel="nofollow noreferrer">Graph SDK</a> and NuGet 5.0.0-preview16 and forwarding the example it says to use <code>Request</code> method in example</p> <pre><code>var users = await graphClient.Users.Request().GetAsync(); </code></pre...
[ { "answer_id": 74378829, "author": "NotX", "author_id": 5767484, "author_profile": "https://Stackoverflow.com/users/5767484", "pm_score": 2, "selected": false, "text": "1 2 3 eg.Go() for 3 i=2 for i, n := range input {\n nc, ic := n, i\n eg.Go(func() (err error) {\n output1 ...
2022/11/09
[ "https://Stackoverflow.com/questions/74378631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18993539/" ]
74,378,637
<p>In Octave, I am playing with signal processing primitives, attempting to reproduce the convolution theorem in multiple ways: that convolution in the time domain is equivalent to point-wise multiplication in the frequency domain.</p> <p>I consider three routes to reconstruct the original signal:</p> <ol> <li>The <cod...
[ { "answer_id": 74379209, "author": "Cris Luengo", "author_id": 7328782, "author_profile": "https://Stackoverflow.com/users/7328782", "pm_score": 3, "selected": true, "text": "conv t t-floor(N/2) h H = fft(h) fft ifftshift H = fft(ifftshift(h)) y3 = (x * W .* H) * W'/N N = 512; ...
2022/11/09
[ "https://Stackoverflow.com/questions/74378637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/729288/" ]
74,378,642
<p>I want to parent and child process read the contents of a.txt file, byte by byte. And parent process write byte by byte to the b.txt file. child process write byte by byte to the c.txt file.</p> <p>Parent and child are working on reading from the same file and writing to the same file</p> <pre><code>#include&lt;st...
[ { "answer_id": 74379209, "author": "Cris Luengo", "author_id": 7328782, "author_profile": "https://Stackoverflow.com/users/7328782", "pm_score": 3, "selected": true, "text": "conv t t-floor(N/2) h H = fft(h) fft ifftshift H = fft(ifftshift(h)) y3 = (x * W .* H) * W'/N N = 512; ...
2022/11/09
[ "https://Stackoverflow.com/questions/74378642", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18917371/" ]
74,378,681
<p>I'm having this problem where my error output says that I am missing 2 positional arguments but they are defined. if you didnt understand, this is a Cog :) btw, if you see any problems with my sqlite, please notify me because i am kind of new to sqlite</p> <p>this is my code:</p> <pre><code>import discord from disco...
[ { "answer_id": 74379198, "author": "Der Kek", "author_id": 18786679, "author_profile": "https://Stackoverflow.com/users/18786679", "pm_score": -1, "selected": false, "text": "async def setup(self, ctx):\n" }, { "answer_id": 74379249, "author": "stijndcl", "author_id": 135...
2022/11/09
[ "https://Stackoverflow.com/questions/74378681", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20177656/" ]
74,378,700
<p>I want to be able to create an error flag in a sperate column. I am not sure how to check conditions between two different DF columns.</p> <p>Example DF</p> <pre><code> Category Item Flag 0 Fruit Apple 1 Fruit Apple 2 Fruit Beef 3 Fruit Kiwi 4 Fruit Orange </code...
[ { "answer_id": 74378924, "author": "gotenks", "author_id": 17028594, "author_profile": "https://Stackoverflow.com/users/17028594", "pm_score": 1, "selected": false, "text": "temp_df = df[df['Category'] == \"Fruit\"]\ntemp_df['Flag'] = ['OK' if (x in fruits) else 'Error' for x in temp_df[...
2022/11/09
[ "https://Stackoverflow.com/questions/74378700", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13278981/" ]
74,378,702
<p>I have a dumped sql file named <strong>my_dump.sql</strong>.</p> <p>Within that dump file there are various tables. I'm interested in the table named <code>foo_bars</code> which has a bunch of records. I would like to modify this sql file by doing the following:</p> <ul> <li>keep the <code>foo_bars</code> table stru...
[ { "answer_id": 74378831, "author": "Bill Karwin", "author_id": 20860, "author_profile": "https://Stackoverflow.com/users/20860", "pm_score": 2, "selected": false, "text": "--no-data ENGINE=BLACKHOLE ALTER TABLE foo_bars ENGINE=InnoDB;" }, { "answer_id": 74378922, "author": "E...
2022/11/09
[ "https://Stackoverflow.com/questions/74378702", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4044009/" ]
74,378,703
<p>I'm writing a PowerShell script that needs to check if items in array $arrayEmail are in array $empListEmail and throw those values in another array C. Array A has 9,500+ items and array B doesn't have many. Surprisingly, I have not seen an example that performs this. I've been searching Google for two days. Here is...
[ { "answer_id": 74378831, "author": "Bill Karwin", "author_id": 20860, "author_profile": "https://Stackoverflow.com/users/20860", "pm_score": 2, "selected": false, "text": "--no-data ENGINE=BLACKHOLE ALTER TABLE foo_bars ENGINE=InnoDB;" }, { "answer_id": 74378922, "author": "E...
2022/11/09
[ "https://Stackoverflow.com/questions/74378703", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8257274/" ]
74,378,715
<p>I am looking for a way to take a vector and return the percentage that each element appears.</p> <p>See below for the input vector and the expected result.</p> <pre><code>InputVector&lt;-c(1,1,1,1,1,2,2,2,3,3) ExpectedResult&lt;-data.frame(Value=c(1,2,3), Percentile=c(0.5,0.3,0.2)) </code></pre> <p>In this case, 1 ...
[ { "answer_id": 74378727, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 3, "selected": true, "text": "table proportions data.frame stack base R stack(proportions(table(InputVector)))[2:1]\n ind values\n1 1 0.5\n2 ...
2022/11/09
[ "https://Stackoverflow.com/questions/74378715", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17974332/" ]
74,378,722
<p>[![enter image description here][1]][1]</p> <p>dears. as we know a Map can have &lt;key, Value&gt; right? then in the picture I see the first element as the key and the second one is the value which is String also. but after we do have another String and also a List as the value. I'm confused about the second part. ...
[ { "answer_id": 74378727, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 3, "selected": true, "text": "table proportions data.frame stack base R stack(proportions(table(InputVector)))[2:1]\n ind values\n1 1 0.5\n2 ...
2022/11/09
[ "https://Stackoverflow.com/questions/74378722", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20019751/" ]
74,378,754
<p><em>Is there any way to achieve this UI in flutter, images are calling by an API, Card sizes are fixed. This should be scroll horizontally same as this. My code is down below</em></p> <pre><code>StaggeredGrid.count( axisDirection: AxisDirection.right, crossAxisCount: 3, mainAxisSp...
[ { "answer_id": 74378813, "author": "Ruble", "author_id": 17991131, "author_profile": "https://Stackoverflow.com/users/17991131", "pm_score": -1, "selected": false, "text": "ListView(\n // This next line does the trick.\n scrollDirection: Axis.horizontal,\n children: <Widget>[ /* your ...
2022/11/09
[ "https://Stackoverflow.com/questions/74378754", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14214495/" ]
74,378,759
<p>I'm drawing a blank at the moment. I need to translate back and forth between &quot;signed&quot; and &quot;unsigned&quot; degrees, [-180..180] and [0..360]</p> <p>The simple way to go from [-180..180] to [0..360] is</p> <p><code>(d+360) % 360</code> // (+360 removes ambiguity about the sign in some languages).</p> <...
[ { "answer_id": 74378933, "author": "Isaí", "author_id": 20163376, "author_profile": "https://Stackoverflow.com/users/20163376", "pm_score": 0, "selected": false, "text": "float map(float n, float x1, float x2, float y1, float y2)\n{\n float m = (y2 - y1) / (x2 - x1);\n return y1 + ...
2022/11/09
[ "https://Stackoverflow.com/questions/74378759", "https://Stackoverflow.com", "https://Stackoverflow.com/users/271594/" ]
74,378,763
<p>I have a data text file(17 columns) that i want to read in R. I'm using the read.table() function.</p> <pre><code>read.table(file=&quot;data.txt&quot;, header = TRUE, sep = &quot;\t&quot;, quote = &quot;&quot;,comment.char=&quot;&quot;) </code></pre> <p>The problem is that some of the rows take multiple lines(exampl...
[ { "answer_id": 74379463, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 2, "selected": true, "text": "readr::melt_*() meltr::melt_*() melt_tsv() library(readr)\nlibrary(dplyr)\nlibrary(tidyr)\n\ndata_raw <- melt_tsv(\...
2022/11/09
[ "https://Stackoverflow.com/questions/74378763", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16082960/" ]
74,378,767
<p>Why does casting</p> <pre class="lang-sql prettyprint-override"><code>select cast(st_makepoint(-90.345929, 37.278424) as geography) </code></pre> <p>raise the following error:</p> <blockquote> <p>SQL compilation error: invalid type [CAST(ST_MAKEPOINT(TO_DOUBLE(-90.345929), TO_DOUBLE(37.278424)) AS GEOGRAPHY)] for pa...
[ { "answer_id": 74379674, "author": "tconbeer", "author_id": 10813082, "author_profile": "https://Stackoverflow.com/users/10813082", "pm_score": 3, "selected": true, "text": "union_relations macros union_relations dbt_utils.union_relations {% for col_name in ordered_column_names -%}\n\n ...
2022/11/09
[ "https://Stackoverflow.com/questions/74378767", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5015569/" ]
74,378,785
<p>I need some help in writing a query which will return the distinct count of memberid who are active YTD and by each month</p> <p>i.e.</p> <p>202201 - distinct memberid who are active in 202201</p> <p>202202 - distinct memberid who are active between 202201 - 202202</p> <p>202203 - distinct memberid who are active be...
[ { "answer_id": 74378992, "author": "DannySlor", "author_id": 19174570, "author_profile": "https://Stackoverflow.com/users/19174570", "pm_score": 0, "selected": false, "text": "row_number() count() select distinct yearmonth \n ,count(rn) over(order by yearmonth) as di...
2022/11/09
[ "https://Stackoverflow.com/questions/74378785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20461294/" ]
74,378,793
<p>The task is to delete an object from an array within another array (a touple if i'm correct). To bugproof i would need to check whether the index is actually valid. This means ranges from 0 to 4 (so input should be greater 0 smaller 4) and obviously not be a string or float of any kind.</p> <p>I have tried to do tha...
[ { "answer_id": 74379017, "author": "CryptoFool", "author_id": 7631480, "author_profile": "https://Stackoverflow.com/users/7631480", "pm_score": 2, "selected": true, "text": "valuecheck() def valuecheck(checker):\n while True:\n try:\n checker = int(checker)\n ...
2022/11/09
[ "https://Stackoverflow.com/questions/74378793", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20458305/" ]