qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,615,546
<p>I have a table with strings in one column, which are actually storing other SQL Queries written before and stored to be ran at later times. They contain parameters such as '@organisationId' or '@enterDateHere'. I want to be able to extract these.</p> <p>Example:</p> <div class="s-table-container"> <table class="s-ta...
[ { "answer_id": 74616176, "author": "Arzanis", "author_id": 20517352, "author_profile": "https://Stackoverflow.com/users/20517352", "pm_score": 0, "selected": false, "text": "DECLARE @sql TABLE\n(\n id INT PRIMARY KEY IDENTITY\n, sql_query NVARCHAR(MAX)\n);\n\nINSERT INTO @sql (sql_query...
2022/11/29
[ "https://Stackoverflow.com/questions/74615546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10325913/" ]
74,615,578
<p>I have a list for example of type <code>People</code>. My list can contain only elements of type <code>Student</code> or only elements of type <code>Worker</code>:</p> <pre><code> interface People { val name: String val age: Int } data class Student( override val name: String, ...
[ { "answer_id": 74615689, "author": "MoCoding", "author_id": 11617754, "author_profile": "https://Stackoverflow.com/users/11617754", "pm_score": 2, "selected": false, "text": "List<People> List<Student> fun List<People>.isStudentList(): Boolean {\n // returns true if no element is not ...
2022/11/29
[ "https://Stackoverflow.com/questions/74615578", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15742980/" ]
74,615,585
<p>I have a CSV that's few thousand rows long. It contains data sent from various devices. They should transmit frequently (every 10 minutes) however sometimes there is a lag. I'm trying to write a program that will highlight all instances where the delay between two readings is greater than 15 minutes</p> <p>I've made...
[ { "answer_id": 74615689, "author": "MoCoding", "author_id": 11617754, "author_profile": "https://Stackoverflow.com/users/11617754", "pm_score": 2, "selected": false, "text": "List<People> List<Student> fun List<People>.isStudentList(): Boolean {\n // returns true if no element is not ...
2022/11/29
[ "https://Stackoverflow.com/questions/74615585", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20223579/" ]
74,615,588
<p>I'm trying to spawn enemies just outside the bounds of a rectangle. Here's a picture:</p> <p><a href="https://i.stack.imgur.com/0kjRE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0kjRE.png" alt="enter image description here" /></a></p> <p>That is, the grey area is the playing area that the user...
[ { "answer_id": 74615785, "author": "faraday703", "author_id": 2113474, "author_profile": "https://Stackoverflow.com/users/2113474", "pm_score": 2, "selected": false, "text": "const rollLeft = Math.random() - 0.5;\nconst rollTop = Math.random() - 0.5;\n\nif (rollLeft > 0){\n x = getRan...
2022/11/29
[ "https://Stackoverflow.com/questions/74615588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/962155/" ]
74,615,612
<p>Im new to coding and am currently in a HS class. I have been trying extremely hard to get some :hover tags to work, using the knowledge I have gained from this class. The issue is that no matter what the form is, my hover tag will not work.</p> <p>Here is my bare bones code:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;...
[ { "answer_id": 74615664, "author": "Luís P. A.", "author_id": 3613208, "author_profile": "https://Stackoverflow.com/users/3613208", "pm_score": 2, "selected": false, "text": "one:hover ~ two {\n display: block;\n }\n" }, { "answer_id": 74615889, "author"...
2022/11/29
[ "https://Stackoverflow.com/questions/74615612", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20634418/" ]
74,615,638
<p>How can I group my database by month of the year and get the value of that grouping for each column I have ? in R</p> <p>Here is a pic of my dataframe:</p> <p><img src="https://i.stack.imgur.com/6Zu7a.png" alt="enter image description here" /></p> <p>I tried to do that but it is not working:</p> <pre><code>df_public...
[ { "answer_id": 74615848, "author": "Sumant Yadav", "author_id": 20634190, "author_profile": "https://Stackoverflow.com/users/20634190", "pm_score": -1, "selected": false, "text": "SQL SELECT Year_, Month_, SUM(Counts)\nFROM (\n SELECT YEAR(DATEADD(MM,DATEDIFF(MM,0,StartTime),0))'Y...
2022/11/29
[ "https://Stackoverflow.com/questions/74615638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19291009/" ]
74,615,642
<p>I'm making a like button for a post in django. What I need is that when the like button is clicked, the function is executed, but I need the page not to be reloaded (To later use javascript). To do that I return a jsonresponse() instead of a return render. But the real problem is that it redirects me to the page tha...
[ { "answer_id": 74615848, "author": "Sumant Yadav", "author_id": 20634190, "author_profile": "https://Stackoverflow.com/users/20634190", "pm_score": -1, "selected": false, "text": "SQL SELECT Year_, Month_, SUM(Counts)\nFROM (\n SELECT YEAR(DATEADD(MM,DATEDIFF(MM,0,StartTime),0))'Y...
2022/11/29
[ "https://Stackoverflow.com/questions/74615642", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17357385/" ]
74,615,651
<p>For this question, consider I have a repository with one asset:</p> <pre class="lang-py prettyprint-override"><code>@asset def my_int(): return 1 @repository def my_repo(): return [my_int] </code></pre> <p>I want to execute it in process (with mem_io_manager), but I would like to retrieve the value returned...
[ { "answer_id": 74616303, "author": "Kay", "author_id": 4351039, "author_profile": "https://Stackoverflow.com/users/4351039", "pm_score": 2, "selected": false, "text": "mem_io_manager fs_io_manager my_int @asset\ndef my_int(context):\n return Output(my_int_value, metadata={'my_int_valu...
2022/11/29
[ "https://Stackoverflow.com/questions/74615651", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1708819/" ]
74,615,683
<p>lets say I have a <code>Table1</code> as follow:</p> <pre><code>ID | Value ________________ 1 | 0 2 | 0 1 | 1 3 | 1 1 | 0 2 | 0 1 | 0 2 | 0 3 | 0 4 | 1 1 | 0 5 | 0 </code></pre> <p>an...
[ { "answer_id": 74615917, "author": "Dominique", "author_id": 4279155, "author_profile": "https://Stackoverflow.com/users/4279155", "pm_score": 2, "selected": false, "text": "=SUMIFS(B$2:B$13,A$2:A$13,1)\n =IF(E2,1,0)\n" }, { "answer_id": 74616577, "author": "Harun24hr", "...
2022/11/29
[ "https://Stackoverflow.com/questions/74615683", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19035289/" ]
74,615,694
<p>We are working with a <code>function</code> which could draw a plot or not.<br /> I am looking for a solution to check if the function has a side effect of drawing.<br /> I hope there is some <code>dev.*</code> solution to check it out.<br /> The <code>inherits</code> could be used only for solutions which return re...
[ { "answer_id": 74615917, "author": "Dominique", "author_id": 4279155, "author_profile": "https://Stackoverflow.com/users/4279155", "pm_score": 2, "selected": false, "text": "=SUMIFS(B$2:B$13,A$2:A$13,1)\n =IF(E2,1,0)\n" }, { "answer_id": 74616577, "author": "Harun24hr", "...
2022/11/29
[ "https://Stackoverflow.com/questions/74615694", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5442527/" ]
74,615,696
<p>So i updated the values of a dictionary into percentage by multiplying by 100. Now i want to replace the initial decimal with the updated results, but instead, i am getting each value replaced by the whole new values.</p> <pre><code>job_role_overtime_att_rate = {'Healthcare Representative Overtime Rate' : 2/37, ' H...
[ { "answer_id": 74615862, "author": "Gameplay", "author_id": 15923186, "author_profile": "https://Stackoverflow.com/users/15923186", "pm_score": 0, "selected": false, "text": "for key, value in job_role_overtime_att_rate.items():\n job_role_overtime_att_rate[key]= value*100\n" }, {...
2022/11/29
[ "https://Stackoverflow.com/questions/74615696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10289706/" ]
74,615,700
<p>I'm trying to import data from a CSV file, unfortunately there is no primary key that would allow me to uniquely identify a given row. So I created a dictionary in which the key is the value that GetHashCode returns to me. I use the dictionary because its search is much faster than searching with linq and where with...
[ { "answer_id": 74615832, "author": "Batesias", "author_id": 10975965, "author_profile": "https://Stackoverflow.com/users/10975965", "pm_score": 0, "selected": false, "text": "GetHashCode Guid" }, { "answer_id": 74616005, "author": "Panagiotis Kanavos", "author_id": 134204...
2022/11/29
[ "https://Stackoverflow.com/questions/74615700", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14952105/" ]
74,615,708
<p>Good day</p> <p>I am very very new two paginated reports so forgive me if this is a silly question</p> <p>I have a report that displays values for Mondays to Fridays based on the date selected from a date picker. So basically You select a date (Example 24 Nov) and the following table is displayed based on values pul...
[ { "answer_id": 74615832, "author": "Batesias", "author_id": 10975965, "author_profile": "https://Stackoverflow.com/users/10975965", "pm_score": 0, "selected": false, "text": "GetHashCode Guid" }, { "answer_id": 74616005, "author": "Panagiotis Kanavos", "author_id": 134204...
2022/11/29
[ "https://Stackoverflow.com/questions/74615708", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6302043/" ]
74,615,760
<p>I want to put this for loop into a comprehension. Is this even possible?</p> <pre><code>for i in range(1, 11): result = len({tuple(walk) for (walk, distance) in dic[i] if distance == 0}) print(f'There are {result} different unique walks with length {i}') </code></pre> <p>I tried stuff like</p> <pre><code>pri...
[ { "answer_id": 74616011, "author": "Gameplay", "author_id": 15923186, "author_profile": "https://Stackoverflow.com/users/15923186", "pm_score": 3, "selected": true, "text": "[print(f'There are {len({tuple(walk) for (walk, distance) in dic[i] if distance == 0})} different unique walks wit...
2022/11/29
[ "https://Stackoverflow.com/questions/74615760", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20627928/" ]
74,615,763
<p>When trying to install ruby gems to enable libvirt management for vagrant, the installation fails with a undocumented message « it depends on a library which is not currently installed : libvirt ».</p> <p>Libvirt is working, I am able to compile manually « vagrant-libvirt », and even starting and configuring qemu VM...
[ { "answer_id": 74616011, "author": "Gameplay", "author_id": 15923186, "author_profile": "https://Stackoverflow.com/users/15923186", "pm_score": 3, "selected": true, "text": "[print(f'There are {len({tuple(walk) for (walk, distance) in dic[i] if distance == 0})} different unique walks wit...
2022/11/29
[ "https://Stackoverflow.com/questions/74615763", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8639606/" ]
74,615,766
<p><strong>Edit: I'm starting to suspect the problems arising below are due to the metadata, because even after correcting the issues raised regarding units mpcalc.geostrophic_wind(z) still issues warnings about the coordinates and ordering. Maybe the function is unable to identify the coordinates from the file? Perhap...
[ { "answer_id": 74617085, "author": "DopplerShift", "author_id": 119314, "author_profile": "https://Stackoverflow.com/users/119314", "pm_score": 2, "selected": false, "text": "getvar from metpy.units import units\n\ndef metpy_getvar(file, name, units_str):\n return getvar(file, name, u...
2022/11/29
[ "https://Stackoverflow.com/questions/74615766", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5100241/" ]
74,615,781
<p>Excel coding gurus, can someone help me count in Excel? :) I need a count, based on multiple, dictionaty depandant, conditions.</p> <p><strong>What I have</strong>: I have an Excel 2019. Not the 365 edition. I have an Excel sheet called, say <strong>Dicts</strong> with a table of 2 columns. I is a dictionary. Column...
[ { "answer_id": 74629941, "author": "P.b", "author_id": 12634230, "author_profile": "https://Stackoverflow.com/users/12634230", "pm_score": 1, "selected": false, "text": "=LET(condition1,FILTER(A2:A25,MMULT(--({\"Y\",\"M\"}=B2:B25),SEQUENCE(2,,1,0))),\n condition2,FILTER(Table1[C2],MM...
2022/11/29
[ "https://Stackoverflow.com/questions/74615781", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11764603/" ]
74,615,795
<p>My code is :</p> <pre><code>#!/bin/bash strversion=`apache2ctl -v | awk '{print $3}' | sed 's/(Debian)//g;s/Server//g;s/built//g;s/2022-06-09T04:26:43//g'` echo ${strversion%} exit 0 </code></pre> <p>i get this:</p> <pre><code>Apache/2.4.54 </code></pre> <p>but i will have to look</p> <pre><code>Apache version 2....
[ { "answer_id": 74615922, "author": "glenn jackman", "author_id": 7552, "author_profile": "https://Stackoverflow.com/users/7552", "pm_score": 1, "selected": false, "text": "echo \"Apache2 - ${strversion%')'}\"\n# ...^...........................^\n" } ]
2022/11/29
[ "https://Stackoverflow.com/questions/74615795", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20634538/" ]
74,615,797
<p>Let's say I have the following <code>pd.DataFrame</code></p> <pre><code>&gt;&gt;&gt; df = pd.DataFrame({ 'col_1': ['Elon', 'Jeff', 'Warren', 'Mark'], 'col_2': ['nan', 'Bezos', 'Buffet', 'nan'], 'col_3': ['nan', 'Amazon', 'Berkshire', 'Meta'], }) </code></pre> <p>which gets me</p> <pre><code> col_1 c...
[ { "answer_id": 74615909, "author": "eshirvana", "author_id": 1367454, "author_profile": "https://Stackoverflow.com/users/1367454", "pm_score": 3, "selected": true, "text": "nan df.eq(\"nan\").sum()\n col_1 0\ncol_2 2\ncol_3 1\ndtype: int64\n" }, { "answer_id": 74616009, ...
2022/11/29
[ "https://Stackoverflow.com/questions/74615797", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12052180/" ]
74,615,812
<p>I have the following lines of code:</p> <pre><code>ROUND((((SUM(VALOR_2)) - SQLTMP.VALOR_1) / SQLTMP.VALOR_1) * 100, 2) </code></pre> <p>I was hoping it would return a percentage, but it returns an ERROR instead... Any ideas on what's wrong?</p>
[ { "answer_id": 74615909, "author": "eshirvana", "author_id": 1367454, "author_profile": "https://Stackoverflow.com/users/1367454", "pm_score": 3, "selected": true, "text": "nan df.eq(\"nan\").sum()\n col_1 0\ncol_2 2\ncol_3 1\ndtype: int64\n" }, { "answer_id": 74616009, ...
2022/11/29
[ "https://Stackoverflow.com/questions/74615812", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5887716/" ]
74,615,819
<p>I have a simple .NET 6 class library <code>FooBarService.Contracts</code> that contains only one DTO class <code>FooBarRequest</code>. I want that to be available to my team in our Azure Artifacts Feed as a NuGet package.</p> <pre><code>namespace FooBarService.Contracts.Requests; public class FooBarRequest { pu...
[ { "answer_id": 74615909, "author": "eshirvana", "author_id": 1367454, "author_profile": "https://Stackoverflow.com/users/1367454", "pm_score": 3, "selected": true, "text": "nan df.eq(\"nan\").sum()\n col_1 0\ncol_2 2\ncol_3 1\ndtype: int64\n" }, { "answer_id": 74616009, ...
2022/11/29
[ "https://Stackoverflow.com/questions/74615819", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3561837/" ]
74,615,875
<p>I want the redirect back to home if the params are not passed with the url. How can I achieve this? I tried something like this, but it`s not working:</p> <pre><code>export default function Summary() { const { id } = useParams(); const navigate = useNavigate(); if (!id) { navigate(&quot;/home&quot;); } <...
[ { "answer_id": 74615909, "author": "eshirvana", "author_id": 1367454, "author_profile": "https://Stackoverflow.com/users/1367454", "pm_score": 3, "selected": true, "text": "nan df.eq(\"nan\").sum()\n col_1 0\ncol_2 2\ncol_3 1\ndtype: int64\n" }, { "answer_id": 74616009, ...
2022/11/29
[ "https://Stackoverflow.com/questions/74615875", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18151453/" ]
74,615,882
<p>I want to create multiple <code>aws_iam_policy_document</code> resources with <code>for_each</code>, to be later assumed by several roles, as follows:</p> <pre><code># Policy to allow services to assume the role data &quot;aws_iam_policy_document&quot; &quot;this&quot; { for_each = var.lambda_configurati...
[ { "answer_id": 74615975, "author": "Mark B", "author_id": 13070, "author_profile": "https://Stackoverflow.com/users/13070", "pm_score": 2, "selected": true, "text": "data.aws_iam_policy_document.this[each.key].json\n assume_role_policy_" }, { "answer_id": 74633903, "author": ...
2022/11/29
[ "https://Stackoverflow.com/questions/74615882", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2409793/" ]
74,615,885
<p>I'm trying to learn OOP but my pygame window wont update with the background I'm trying to put in. The gameObject class is in another file. Filling it with white color also isn't working and I don't know why. I was able to display a background on another project I did but I cant now and I have no idea what's differe...
[ { "answer_id": 74616340, "author": "Rabbid76", "author_id": 5577765, "author_profile": "https://Stackoverflow.com/users/5577765", "pm_score": 2, "selected": true, "text": "self.draw_objects() class Game:\n # [...]\n\n def run_game_loop(self):\n\n gameRunning = True\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74615885", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20634555/" ]
74,615,900
<p>I am learning spring boot but in the part of creating the models for the creation in mysql, but I need the id field to be auto-incremental, does anyone know how I can do it?</p> <p>`</p> <pre><code>package com.pruebas.model; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence....
[ { "answer_id": 74616340, "author": "Rabbid76", "author_id": 5577765, "author_profile": "https://Stackoverflow.com/users/5577765", "pm_score": 2, "selected": true, "text": "self.draw_objects() class Game:\n # [...]\n\n def run_game_loop(self):\n\n gameRunning = True\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74615900", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19940897/" ]
74,615,905
<p>I'm a Python beginner and would like to learn how to use it for operations on text files. I have an input txt file of 4 columns separated by TAB, and I want to search whether, row by row, the cell pairs in columns 1 and 4 simultaneously contain the pattern &quot;BBB&quot; or &quot;CCC&quot;. If true, send the whole ...
[ { "answer_id": 74616081, "author": "Pranav Hosangadi", "author_id": 843953, "author_profile": "https://Stackoverflow.com/users/843953", "pm_score": 3, "selected": true, "text": "output2 item output1 output2 item list list output2 output2 any list for item in lst item in cols[0] and item ...
2022/11/29
[ "https://Stackoverflow.com/questions/74615905", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8049502/" ]
74,615,925
<p>I done <code>npm update</code> and broke start project. Using <code>npm run start</code> returns an error:</p> <pre><code>10% building 0/1 entries 0/0 dependencies 0/0 modulesnode:internal/errors:484 ErrorCaptureStackTrace(err); ^ Error: EMFILE: too many open files, watch at FSWatcher._handle.onchange (...
[ { "answer_id": 74616081, "author": "Pranav Hosangadi", "author_id": 843953, "author_profile": "https://Stackoverflow.com/users/843953", "pm_score": 3, "selected": true, "text": "output2 item output1 output2 item list list output2 output2 any list for item in lst item in cols[0] and item ...
2022/11/29
[ "https://Stackoverflow.com/questions/74615925", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13626719/" ]
74,615,952
<p>I want to sort a character variable into two categories in a new variable based on conditions, in conditions are not met i want it to return &quot;other&quot;.</p> <p>If variable x cointains 4 character values &quot;A&quot;, &quot;B&quot;, &quot;C&quot; &amp; &quot;D&quot; I want to sort them into a 2 categories, ...
[ { "answer_id": 74616128, "author": "Aron Strandberg", "author_id": 4885169, "author_profile": "https://Stackoverflow.com/users/4885169", "pm_score": 3, "selected": true, "text": "case_when df <- data.frame(x = c(\"A\", \"B\", \"C\", \"D\"))\n \nlibrary(dplyr)\n\ndf <- df %>%\n mutate(y ...
2022/11/29
[ "https://Stackoverflow.com/questions/74615952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20454178/" ]
74,615,981
<p>Tallying which color has a greater value in each array element for data. Then push the higher valued color into an empty object, and/or increment that color by 1. Lastly sort the totals object highest to lowest in terms of the totals property values and return highest valued color</p> <p>Struggling with how to map o...
[ { "answer_id": 74616128, "author": "Aron Strandberg", "author_id": 4885169, "author_profile": "https://Stackoverflow.com/users/4885169", "pm_score": 3, "selected": true, "text": "case_when df <- data.frame(x = c(\"A\", \"B\", \"C\", \"D\"))\n \nlibrary(dplyr)\n\ndf <- df %>%\n mutate(y ...
2022/11/29
[ "https://Stackoverflow.com/questions/74615981", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20606743/" ]
74,615,995
<p>Struggling with a large dataset in my mariaDB database. I have two tables, where table A contains 57 million rows and table B contains around 500. Table B is a subset of ids related to a column in table A. I want to delete all rows from A which do not have a corresponding ID in table B.</p> <p>Example table A:</p> <...
[ { "answer_id": 74616128, "author": "Aron Strandberg", "author_id": 4885169, "author_profile": "https://Stackoverflow.com/users/4885169", "pm_score": 3, "selected": true, "text": "case_when df <- data.frame(x = c(\"A\", \"B\", \"C\", \"D\"))\n \nlibrary(dplyr)\n\ndf <- df %>%\n mutate(y ...
2022/11/29
[ "https://Stackoverflow.com/questions/74615995", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11775623/" ]
74,616,016
<p>How do I add a string/integer into an existing text file at a specific location?<br /> My sample text looks like below:</p> <pre class="lang-txt prettyprint-override"><code>No, Color, Height, age 1, blue,70, 2, white,65, 3, brown,49, 4, purple,71, 5, grey,60, </code></pre> <p>My text file has 4 columns, three column...
[ { "answer_id": 74616128, "author": "Aron Strandberg", "author_id": 4885169, "author_profile": "https://Stackoverflow.com/users/4885169", "pm_score": 3, "selected": true, "text": "case_when df <- data.frame(x = c(\"A\", \"B\", \"C\", \"D\"))\n \nlibrary(dplyr)\n\ndf <- df %>%\n mutate(y ...
2022/11/29
[ "https://Stackoverflow.com/questions/74616016", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5255512/" ]
74,616,025
<p>I'm trying to improve the following method:</p> <pre class="lang-rust prettyprint-override"><code>let output: Vec&lt;i32&gt; = stream::iter(vec![1, 2, 3]) .then(|val| { future::ok::&lt;_, ()&gt;(vec![val * 10, val * 10 + 1]) }) .try_collect::&lt;Vec&lt;Vec&lt;_&gt;&gt;&gt;() .await? .into...
[ { "answer_id": 74616128, "author": "Aron Strandberg", "author_id": 4885169, "author_profile": "https://Stackoverflow.com/users/4885169", "pm_score": 3, "selected": true, "text": "case_when df <- data.frame(x = c(\"A\", \"B\", \"C\", \"D\"))\n \nlibrary(dplyr)\n\ndf <- df %>%\n mutate(y ...
2022/11/29
[ "https://Stackoverflow.com/questions/74616025", "https://Stackoverflow.com", "https://Stackoverflow.com/users/553488/" ]
74,616,055
<p>Compiling this C code:</p> <pre><code>#include &lt;stdio.h&gt; const char code[] __attribute__((section(&quot;.mySection&quot;))) = &quot;\xb8\x0d\x00\x00\x00\xc3&quot;; int main(int argc, char **argv) { int val = ((int(*)(void))code)(); printf(&quot;val %d\n&quot;, val); } </code></pre> <p>together with t...
[ { "answer_id": 74616128, "author": "Aron Strandberg", "author_id": 4885169, "author_profile": "https://Stackoverflow.com/users/4885169", "pm_score": 3, "selected": true, "text": "case_when df <- data.frame(x = c(\"A\", \"B\", \"C\", \"D\"))\n \nlibrary(dplyr)\n\ndf <- df %>%\n mutate(y ...
2022/11/29
[ "https://Stackoverflow.com/questions/74616055", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1778275/" ]
74,616,062
<p>I have a decorator that is supposed to use a parameter that's passed in from the commandline e.g</p> <pre><code>@deco(name) def handle(self, *_args, **options): name = options[&quot;name&quot;] </code></pre> <pre><code>def deco(name): // The name should come from commandline pass </code></pre> <pre><code...
[ { "answer_id": 74616131, "author": "Willem Van Onsem", "author_id": 67579, "author_profile": "https://Stackoverflow.com/users/67579", "pm_score": 3, "selected": true, "text": "from functool import wraps\n\ndef metadeco(function):\n @wraps(function)\n def func(*args, **kwargs):\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74616062", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5562041/" ]
74,616,068
<p>If we create a 2d/3d list by this way:</p> <pre><code> List recipes = List.generate( 999, (i) =&gt; List.generate( 999, (i) =&gt; List&lt;Ingredient&gt;.filled( 0, Ingredient( name: '', carbohydrates: 0, ...
[ { "answer_id": 74616232, "author": "Emc2Theory", "author_id": 4651768, "author_profile": "https://Stackoverflow.com/users/4651768", "pm_score": 0, "selected": false, "text": " List<List<List<Ingredient>>> ingredient = (List.generate(\n 999,\n (i) => List.generate(\n 9...
2022/11/29
[ "https://Stackoverflow.com/questions/74616068", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4651768/" ]
74,616,074
<p>I am trying to create a docker-compose.yml file from 0 following this <a href="https://www.smarthomebeginner.com/docker-media-server-2022/#4_Docker_and_Docker_Compose_Usage" rel="nofollow noreferrer">guide.</a></p> <p>When I try to run the container I get the following error: <code>yaml: line 29: could not find expe...
[ { "answer_id": 74616232, "author": "Emc2Theory", "author_id": 4651768, "author_profile": "https://Stackoverflow.com/users/4651768", "pm_score": 0, "selected": false, "text": " List<List<List<Ingredient>>> ingredient = (List.generate(\n 999,\n (i) => List.generate(\n 9...
2022/11/29
[ "https://Stackoverflow.com/questions/74616074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20469761/" ]
74,616,076
<p>when I open the app, white screen appears with icon. Then only the splash screen appears. I have already tried changing the background colour.</p>
[ { "answer_id": 74616134, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 0, "selected": false, "text": "flutter_native_splash:\n # This package generates native code to customize Flutter's default white native s...
2022/11/29
[ "https://Stackoverflow.com/questions/74616076", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19588129/" ]
74,616,112
<p>Web page have element with structure like:</p> <pre><code>&lt;label&gt; &lt;input type=&quot;checkbox&quot; name=&quot;storage_locations&quot; value=&quot;3&quot; style=&quot;vertical-align: middle;&quot;&gt; &lt;span style=&quot;padding-left: 6px;&quot;&gt;example.domain.com: [Text] Text_1 (Sometext)&lt;/sp...
[ { "answer_id": 74616134, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 0, "selected": false, "text": "flutter_native_splash:\n # This package generates native code to customize Flutter's default white native s...
2022/11/29
[ "https://Stackoverflow.com/questions/74616112", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20634622/" ]
74,616,138
<p>I am a C++ noob.</p> <p>What I am trying to do is sum the values of a vector of doubles (let's call it <code>x</code>) and ignore any values that are NaN. I tried to look this up, but I couldn't find anything specifically referencing what would happen if a vector contains any NaN values.</p> <p>E.g.:</p> <pre class=...
[ { "answer_id": 74616418, "author": "Stack Danny", "author_id": 6039995, "author_profile": "https://Stackoverflow.com/users/6039995", "pm_score": 2, "selected": false, "text": "std::isnan true sum constexpr auto sum(auto list) {\n typename decltype(list)::value_type result = 0;\n\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74616138", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9123489/" ]
74,616,165
<p>I have data that arrives as so in a sheet from a google form. It's to manage pieces of our product that we send to a painter.</p> <pre><code>in/out model_1 model_2 ------------------------- in 10 0 out 5 0 in 10 10 in 2 5 out 2 12 </code></...
[ { "answer_id": 74616418, "author": "Stack Danny", "author_id": 6039995, "author_profile": "https://Stackoverflow.com/users/6039995", "pm_score": 2, "selected": false, "text": "std::isnan true sum constexpr auto sum(auto list) {\n typename decltype(list)::value_type result = 0;\n\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74616165", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10729553/" ]
74,616,185
<p>Suppose you create a Spark DataFrame with a precise schema:</p> <pre><code>import pyspark.sql.functions as sf from pyspark.sql.types import * dfschema = StructType([ StructField(&quot;_1&quot;, ArrayType(IntegerType())), StructField(&quot;_2&quot;, ArrayType(IntegerType())), ]) df = spark.createDataFrame([[...
[ { "answer_id": 74619099, "author": "Bartosz Gajda", "author_id": 6870955, "author_profile": "https://Stackoverflow.com/users/6870955", "pm_score": 1, "selected": false, "text": "omap exploded_df = df.select(\"*\", sf.explode(\"omap\"))\nagg_df = exploded_df.groupBy(\"id\", \"key\").sum(\...
2022/11/29
[ "https://Stackoverflow.com/questions/74616185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5617858/" ]
74,616,207
<p>I made a login form and I put an icon next to each input. But those icons are overlapping the text zone. How can I make the input start next to the icon.</p> <p><a href="https://i.stack.imgur.com/tERq3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tERq3.png" alt="enter image description here" />...
[ { "answer_id": 74616328, "author": "Jack", "author_id": 20633571, "author_profile": "https://Stackoverflow.com/users/20633571", "pm_score": 1, "selected": false, "text": "input {\n padding-left: 20px;\n} <div id=\"centered\">\n <div id=\"form\">\n <h2>Connexion</h2>\n <form>\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74616207", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20152199/" ]
74,616,213
<p>I need to write a function named older_people(people: list, year: int), which selects all those people on the list who were born before the year given as an argument. The function should return the names of these people in a new list.</p> <p>An example of its use:</p> <pre><code>p1 = (&quot;Adam&quot;, 1977) p2 = (&...
[ { "answer_id": 74616323, "author": "robinood", "author_id": 8814229, "author_profile": "https://Stackoverflow.com/users/8814229", "pm_score": 3, "selected": true, "text": "def older_people(people: list, year: int):\n result = []\n for person in people:\n if person[1] < year:...
2022/11/29
[ "https://Stackoverflow.com/questions/74616213", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20633646/" ]
74,616,247
<p>I have a table with a column having timestamp as it's value. I need to add a new column &amp; calculate the time difference between 2 rows. How to do this?</p> <p><img src="https://i.stack.imgur.com/5P4HJ.jpg" alt="enter image description here" /></p> <p>I'm new to this &amp; want to know how to do it please</p>
[ { "answer_id": 74616368, "author": "horseyride", "author_id": 9264230, "author_profile": "https://Stackoverflow.com/users/9264230", "pm_score": 2, "selected": false, "text": "= try [Timestamp] - #\"Added Index\"{[Index]-1}[Timestamp] otherwise null\n #\"Added Index\" = Table.AddIndexCol...
2022/11/29
[ "https://Stackoverflow.com/questions/74616247", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20634815/" ]
74,616,276
<p>I'm trying to access to a nested object property.</p> <pre><code>&lt;th data-toggle=&quot;tooltip&quot; data-placement=&quot;bottom&quot; v-for=&quot;schedule in employee.daily_schedules&quot;&gt;{{schedule.start}}-{{schedule.end}}-{{schedule.employee_function.name}}&lt;/th&gt; </code></pre> <p>When I try to get th...
[ { "answer_id": 74616368, "author": "horseyride", "author_id": 9264230, "author_profile": "https://Stackoverflow.com/users/9264230", "pm_score": 2, "selected": false, "text": "= try [Timestamp] - #\"Added Index\"{[Index]-1}[Timestamp] otherwise null\n #\"Added Index\" = Table.AddIndexCol...
2022/11/29
[ "https://Stackoverflow.com/questions/74616276", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1295853/" ]
74,616,281
<p>very simple, android kotlin. i have a file in the project assest folder with sentence in each line. what i wants, is when i open dialog, it will select random line and put it as the dialog message. i couldn't find any proper solution. dialog's code:</p> <pre><code>class JokeFragment : DialogFragment() { overrid...
[ { "answer_id": 74618407, "author": "bylazy", "author_id": 17787605, "author_profile": "https://Stackoverflow.com/users/17787605", "pm_score": 1, "selected": false, "text": "fun readRandomLineFromAsset(context: Context, fileName: String): String =\n context\n .assets\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74616281", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20568970/" ]
74,616,363
<p>I have the data in the following format: <a href="https://i.stack.imgur.com/9mTBR.png" rel="nofollow noreferrer">enter image description here</a></p> <p>I want to convert the year column to intervals (decade), so that I have the decade column in the format 1950-1959, 1960-1969 and so on (without removing the company...
[ { "answer_id": 74617317, "author": "Baron Legendre", "author_id": 14527886, "author_profile": "https://Stackoverflow.com/users/14527886", "pm_score": 2, "selected": true, "text": "\nimport pandas as pd\nimport numpy as np\n# create a dataframe with 100 rows random with column year random...
2022/11/29
[ "https://Stackoverflow.com/questions/74616363", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11970261/" ]
74,616,402
<p>I've seen some Jetpack Compose projects and I've seen two types of managing states, not realizing which one is better.</p> <p>For example, let's assume: the input state. I've seen people manage this state in the UI, using remember to save the state of the value.</p> <p>Another way I've seen is to create this mutable...
[ { "answer_id": 74616609, "author": "Thracian", "author_id": 5457853, "author_profile": "https://Stackoverflow.com/users/5457853", "pm_score": 2, "selected": false, "text": "@Composable\nfun rememberScrollState(initial: Int = 0): ScrollState {\n return rememberSaveable(saver = ScrollSt...
2022/11/29
[ "https://Stackoverflow.com/questions/74616402", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18215416/" ]
74,616,410
<p>In my react component, once the component loads, I am trying to repeat a task every 100ms and after 3 repetitions pause for 1 second. Then repeat this pattern indefinitely.</p> <p>I want to achieve this output:</p> <pre><code>1 // pause 100ms 2 // pause 100ms 3 // pause 100ms // pause 1second ... repeat </code></pre...
[ { "answer_id": 74616771, "author": "Oktay Yuzcan", "author_id": 13311273, "author_profile": "https://Stackoverflow.com/users/13311273", "pm_score": 0, "selected": false, "text": "useEffect(() => {\n let i = 0\n let incrementTimer\n function increment() {\n if (i === 3) {\n // ...
2022/11/29
[ "https://Stackoverflow.com/questions/74616410", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2135210/" ]
74,616,420
<p>I have a simple data set. The row names are a meaningful index and column 1 has a list of values. What I eventually want is the average of that list for each row name.</p> <p>What it looks like now:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>row name</th> <th>years</th> </tr> </thea...
[ { "answer_id": 74616508, "author": "jpsmith", "author_id": 12109788, "author_profile": "https://Stackoverflow.com/users/12109788", "pm_score": 1, "selected": true, "text": "ColumnA df <- read.table(text = \"ColumnA ColumnB\n108457 1200\n108457 1200\n108457 1540\n237021 1600\n10845...
2022/11/29
[ "https://Stackoverflow.com/questions/74616420", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20628348/" ]
74,616,421
<p>When we have multiple terms to locate an element we can use a single predicate with logical <strong>and</strong> operator inside it or to use multiple predicates with single term inside each predicate.<br /> For example on <a href="https://stackoverflow.com/questions/tagged/selenium%2Bor%2Bwebdriver%2Bor%2Bxpath%2Bo...
[ { "answer_id": 74616837, "author": "Heiko Theißen", "author_id": 16462950, "author_profile": "https://Stackoverflow.com/users/16462950", "pm_score": 1, "selected": false, "text": "position() last() //a[@class='s-link'][position() > 1] s-link position() //a[@class='s-link'] //a[@class='s-...
2022/11/29
[ "https://Stackoverflow.com/questions/74616421", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3485434/" ]
74,616,528
<p>The following is the given html code and I am not allowed to alter it by any means</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>#exceriseHead { font-family: Arial, ...
[ { "answer_id": 74616625, "author": "Wolfeur", "author_id": 6201111, "author_profile": "https://Stackoverflow.com/users/6201111", "pm_score": 0, "selected": false, "text": ".exercisePart <div> display: block .exercisePart .exercisePart {\n display: flex;\n}\n" }, { "answer_id":...
2022/11/29
[ "https://Stackoverflow.com/questions/74616528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20635021/" ]
74,616,555
<p>I am trying to create a proper relationship on Hibernate and I have the following relationship between Recipe and Ingredients entities:</p> <p><a href="https://i.stack.imgur.com/2ZZud.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2ZZud.png" alt="enter image description here" /></a></p> <p>I thou...
[ { "answer_id": 74616625, "author": "Wolfeur", "author_id": 6201111, "author_profile": "https://Stackoverflow.com/users/6201111", "pm_score": 0, "selected": false, "text": ".exercisePart <div> display: block .exercisePart .exercisePart {\n display: flex;\n}\n" }, { "answer_id":...
2022/11/29
[ "https://Stackoverflow.com/questions/74616555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20609042/" ]
74,616,597
<pre><code>var navbody: some View { NavigationView { ZStack { somedarkcolorhere List(searchModel.suggestions ?? [], rowContent: { text in NavigationLink(destination: MediaSearchResultsView(searchText: text)) { Text(text) } ...
[ { "answer_id": 74616625, "author": "Wolfeur", "author_id": 6201111, "author_profile": "https://Stackoverflow.com/users/6201111", "pm_score": 0, "selected": false, "text": ".exercisePart <div> display: block .exercisePart .exercisePart {\n display: flex;\n}\n" }, { "answer_id":...
2022/11/29
[ "https://Stackoverflow.com/questions/74616597", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3544438/" ]
74,616,599
<pre><code>import random #yes or no yrn = input(&quot;R u going to play black jack? (Y/N): &quot;).upper() if yrn == &quot;Y&quot;: player1 = random.randint(1,19) player2 = random.randint(1,19) print(player1,player2) while True: player1_yrn = input(&quot;Player 1, Do you want more numbers? (Y/...
[ { "answer_id": 74616625, "author": "Wolfeur", "author_id": 6201111, "author_profile": "https://Stackoverflow.com/users/6201111", "pm_score": 0, "selected": false, "text": ".exercisePart <div> display: block .exercisePart .exercisePart {\n display: flex;\n}\n" }, { "answer_id":...
2022/11/29
[ "https://Stackoverflow.com/questions/74616599", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20634715/" ]
74,616,600
<p>I'm playing with drawing on html canvas and I'm little confused of how different coordinate systems actually works. What I have learned so far is that there are more coordinate systems:</p> <ul> <li>canvas coordinate system</li> <li>css coordinate system</li> <li>physical (display) coordinate system</li> </ul> <p>So...
[ { "answer_id": 74616625, "author": "Wolfeur", "author_id": 6201111, "author_profile": "https://Stackoverflow.com/users/6201111", "pm_score": 0, "selected": false, "text": ".exercisePart <div> display: block .exercisePart .exercisePart {\n display: flex;\n}\n" }, { "answer_id":...
2022/11/29
[ "https://Stackoverflow.com/questions/74616600", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1894204/" ]
74,616,602
<p>I want to get the rownumber of each row from a MySQL Table. I already read this <a href="https://stackoverflow.com/questions/8509996/is-there-a-way-to-get-the-row-number-in-mysql-like-the-rownum-in-oracle">article</a> and tried the suggested select statement as below,</p> <pre><code>SELECT @rownum:=@rownum + 1 as ro...
[ { "answer_id": 74616684, "author": "drdalle", "author_id": 20207622, "author_profile": "https://Stackoverflow.com/users/20207622", "pm_score": 0, "selected": false, "text": " SELECT *, \n ROW_NUMBER() OVER(PARTITION BY 'some column' ) AS row_num \n FROM my_table\n" }, { ...
2022/11/29
[ "https://Stackoverflow.com/questions/74616602", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9008023/" ]
74,616,617
<p>I'm trying to come up with a system where visual components like <code>foo</code> or <code>faa</code> would be stored in the <code>/components</code> folder, and each component would be in its folder with that components files, say <code>/foo</code>, and the component files <code>foo.component.css</code> and <code>f...
[ { "answer_id": 74617204, "author": "Salketer", "author_id": 1620194, "author_profile": "https://Stackoverflow.com/users/1620194", "pm_score": 2, "selected": true, "text": "// File foo.manifest.php\nclass FooComponent implements Component{\n public $stylesheets = ['foo.component.css'];...
2022/11/29
[ "https://Stackoverflow.com/questions/74616617", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18703252/" ]
74,616,668
<p>I saw following hibernate validator code</p> <pre><code>package org.hibernate.validator.constraints; ... public @interface CreditCardNumber { String message() default &quot;{org.hibernate.validator.constraints.CreditCardNumber.message}&quot;; ... } </code></pre> <p>and in the properties files has key value the cr...
[ { "answer_id": 74617204, "author": "Salketer", "author_id": 1620194, "author_profile": "https://Stackoverflow.com/users/1620194", "pm_score": 2, "selected": true, "text": "// File foo.manifest.php\nclass FooComponent implements Component{\n public $stylesheets = ['foo.component.css'];...
2022/11/29
[ "https://Stackoverflow.com/questions/74616668", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4478578/" ]
74,616,671
<p>I have join table between t_table and s_table.<br /> there are many to many relationships between them.</p> <p>s_table</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>id</th> <th>s_value</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>1</td> </tr> <tr> <td>2</td> <td>2</td> </tr> <tr> <t...
[ { "answer_id": 74617204, "author": "Salketer", "author_id": 1620194, "author_profile": "https://Stackoverflow.com/users/1620194", "pm_score": 2, "selected": true, "text": "// File foo.manifest.php\nclass FooComponent implements Component{\n public $stylesheets = ['foo.component.css'];...
2022/11/29
[ "https://Stackoverflow.com/questions/74616671", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11768681/" ]
74,616,754
<p>I've recently discovered that redis has a <a href="https://github.com/opencypher/openCypher/blob/master/docs/property-graph-model.adoc" rel="nofollow noreferrer">property graph model</a> implementation called <a href="https://github.com/RedisGraph/RedisGraph#loading-redisgraph-into-redis" rel="nofollow noreferrer">r...
[ { "answer_id": 74617204, "author": "Salketer", "author_id": 1620194, "author_profile": "https://Stackoverflow.com/users/1620194", "pm_score": 2, "selected": true, "text": "// File foo.manifest.php\nclass FooComponent implements Component{\n public $stylesheets = ['foo.component.css'];...
2022/11/29
[ "https://Stackoverflow.com/questions/74616754", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4224575/" ]
74,616,758
<p>I have the following in Call.xlsm, A2 contains the path to a second Workbook, Data.xlsm. A3 holds the sheetname I'm trying to copy from Data.xlsm to Call.xlsm.</p> <p><a href="https://i.stack.imgur.com/z53DN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z53DN.png" alt="enter image description he...
[ { "answer_id": 74616906, "author": "Tim Williams", "author_id": 478884, "author_profile": "https://Stackoverflow.com/users/478884", "pm_score": 2, "selected": true, "text": "Sub GetData()\n Dim filenameIS As String, wb As Workbook, wsInfo As Worksheet\n \n Set wsInfo = ThisWorkb...
2022/11/29
[ "https://Stackoverflow.com/questions/74616758", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15316309/" ]
74,616,782
<p>In the <code>.git/objects/</code> folder there are many folders with files within such as <code>ab/cde...</code>. I understand that these are actually blobs <code>abcde...</code></p> <p>Is there a way to obtain a flat file listing of all blobs under <code>.git/objects/</code> with no <code>/</code> being used a deli...
[ { "answer_id": 74616906, "author": "Tim Williams", "author_id": 478884, "author_profile": "https://Stackoverflow.com/users/478884", "pm_score": 2, "selected": true, "text": "Sub GetData()\n Dim filenameIS As String, wb As Workbook, wsInfo As Worksheet\n \n Set wsInfo = ThisWorkb...
2022/11/29
[ "https://Stackoverflow.com/questions/74616782", "https://Stackoverflow.com", "https://Stackoverflow.com/users/492307/" ]
74,616,805
<p>Is it possible to set type of <code>filterIsInstance</code> extension at runtime. For example I have list of <code>Item</code> and I nee to cast my list by specific condition:</p> <pre><code>fun (items: List&lt;Item&gt;) { items.filterIsInstance&lt;if(someCondition) OldItem else NewItem&gt;() } </code></pre> <p>I u...
[ { "answer_id": 74616906, "author": "Tim Williams", "author_id": 478884, "author_profile": "https://Stackoverflow.com/users/478884", "pm_score": 2, "selected": true, "text": "Sub GetData()\n Dim filenameIS As String, wb As Workbook, wsInfo As Worksheet\n \n Set wsInfo = ThisWorkb...
2022/11/29
[ "https://Stackoverflow.com/questions/74616805", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15742980/" ]
74,616,824
<p>In ms doc <a href="https://learn.microsoft.com/en-us/dotnet/api/system.text.encoding" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/dotnet/api/system.text.encoding</a>, in <strong>Listing of encodings</strong> section, in the encodings table, at the <strong>gb2312</strong> row, there is a mark in <stro...
[ { "answer_id": 74616906, "author": "Tim Williams", "author_id": 478884, "author_profile": "https://Stackoverflow.com/users/478884", "pm_score": 2, "selected": true, "text": "Sub GetData()\n Dim filenameIS As String, wb As Workbook, wsInfo As Worksheet\n \n Set wsInfo = ThisWorkb...
2022/11/29
[ "https://Stackoverflow.com/questions/74616824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2319206/" ]
74,616,829
<p>I want to print below code.</p> <p>!!!!** !!!**** !!****** !********</p> <p>So I use while loop with i, j. But, in some parts, the output of ! becomes weird. I tried some case, there is no problem if the i and j are in ascending order, but there is a problem if they are in descending order. Below my code, print(i, j...
[ { "answer_id": 74617037, "author": "Gameplay", "author_id": 15923186, "author_profile": "https://Stackoverflow.com/users/15923186", "pm_score": 0, "selected": false, "text": "def print_pattern(bangs: int, stars: int)->None:\n output = f\"{'!'*bangs}{'*'*stars}\"\n print(output)\n i...
2022/11/29
[ "https://Stackoverflow.com/questions/74616829", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20635205/" ]
74,616,852
<p>so i have to make an snakecase program</p> <pre><code>camelcase = input(&quot;camelCase: &quot;) snakecase = camelcase.lower() for c in camelcase: if c.isupper(): snakecase += &quot;_&quot; snakecase += c.lower() print(snakecase) </code></pre> <p>with the for im going through each lett...
[ { "answer_id": 74616952, "author": "Loïc Robert", "author_id": 19033618, "author_profile": "https://Stackoverflow.com/users/19033618", "pm_score": -1, "selected": false, "text": "snakecase snakecase = str()" }, { "answer_id": 74617004, "author": "Cpt.Hook", "author_id": 2...
2022/11/29
[ "https://Stackoverflow.com/questions/74616852", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20574466/" ]
74,616,896
<p>I think this is a basic question, but it seems to be frustrating me...</p> <p>I am using R and have data in long format; a data.frame with each value a string. I want to produce a summary table of the counts of each value. So for the data:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>...
[ { "answer_id": 74616973, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 2, "selected": false, "text": "dplyr::count() library(dplyr)\nlibrary(tidyr)\n\ndat %>% \n count(Location, Colour) %>% \n pivot_wider(names_fro...
2022/11/29
[ "https://Stackoverflow.com/questions/74616896", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14327060/" ]
74,616,911
<p>I have the following plot made with some data points,<a href="https://i.stack.imgur.com/dsAbn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dsAbn.png" alt="Plot" /></a>. What is the best Pythonic way to find the point through which the curve intersects the X-axis? Thanks for any help.</p> <pre><...
[ { "answer_id": 74617410, "author": "sandcountyfrank", "author_id": 9541277, "author_profile": "https://Stackoverflow.com/users/9541277", "pm_score": 4, "selected": true, "text": "from intersect import intersection\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nx1 = np.linspace(-...
2022/11/29
[ "https://Stackoverflow.com/questions/74616911", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10755782/" ]
74,616,972
<p>I found this script that creates dependent drop down lists on a sheet (mainWsName = &quot;Sheet1&quot;) based on a reference table that's on another sheet (optionsWsName = &quot;ReferenceData&quot;) where firstLevelColumn is the first drop down list on Sheet1, secondLevelColumn drop down list is created when the val...
[ { "answer_id": 74617410, "author": "sandcountyfrank", "author_id": 9541277, "author_profile": "https://Stackoverflow.com/users/9541277", "pm_score": 4, "selected": true, "text": "from intersect import intersection\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nx1 = np.linspace(-...
2022/11/29
[ "https://Stackoverflow.com/questions/74616972", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20635175/" ]
74,616,997
<p>I want to return my nested array in a foreach loop. In this foreach loop I need to add a foreach, because it is variable how many accordions exist.</p> <p>But I can't get it to load the data from the &quot;accordion&quot; array into the frontend. There is always an error somewhere.</p> <p>I can't describe it any bet...
[ { "answer_id": 74617410, "author": "sandcountyfrank", "author_id": 9541277, "author_profile": "https://Stackoverflow.com/users/9541277", "pm_score": 4, "selected": true, "text": "from intersect import intersection\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nx1 = np.linspace(-...
2022/11/29
[ "https://Stackoverflow.com/questions/74616997", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18712347/" ]
74,617,013
<p>I am working on an angular project that needs to load up pages and then display them one by one / two by two.</p> <p>As per <a href="https://indepth.dev/posts/1279/rxjs-in-angular-when-to-subscribe-rarely#:%7E:text=So%20far%20as%20I%20can%20tell%2C%20you%20never%20have%20to%20subscribe%20to%20Observables%20inside%20...
[ { "answer_id": 74617410, "author": "sandcountyfrank", "author_id": 9541277, "author_profile": "https://Stackoverflow.com/users/9541277", "pm_score": 4, "selected": true, "text": "from intersect import intersection\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nx1 = np.linspace(-...
2022/11/29
[ "https://Stackoverflow.com/questions/74617013", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9397419/" ]
74,617,038
<p>I have a console application built into an .exe, and a WriteLog module built into a .dll. The WriteLog module is referenced within the console app project. The module is using Directory.GetCurrentDirectory() for creating a Log folder and writing .log files in the same folder next to the executable. This all works as...
[ { "answer_id": 74651194, "author": "Lundt", "author_id": 19564057, "author_profile": "https://Stackoverflow.com/users/19564057", "pm_score": 0, "selected": false, "text": "Imports System\nImports System.Runtime.InteropServices\nPublic Module AnythingYouWantToCallIt\n\n\n Sub Main\n ...
2022/11/29
[ "https://Stackoverflow.com/questions/74617038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4186464/" ]
74,617,132
<p>I'm self-learning SML and am currently am stuck with the concept of recursion between two lists of varying sizes.</p> <p>Suppose you have two int lists of varying size, and a function that multiplies two numbers, like so:</p> <pre><code>val mul = fn(a, b) =&gt; a * b; </code></pre> <p>I want to use this function to ...
[ { "answer_id": 74617827, "author": "Chris", "author_id": 15261315, "author_profile": "https://Stackoverflow.com/users/15261315", "pm_score": 2, "selected": true, "text": "fun mulAndSum acc ([], []) = ...\n | mulAndSum acc ([], _) = ...\n | mulAndSum acc (_, []) = ...\n | mulAndSum acc...
2022/11/29
[ "https://Stackoverflow.com/questions/74617132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14587195/" ]
74,617,154
<p>I can't seem to get my delete, edit and add review functionality working. The errors come as soon as I try to navigate to the urls I have set up. When I try and add a new review using my link on the reviews page I get the below message:</p> <p>TemplateDoesNotExist at /reviews/add</p> <p>I don't understand why becaus...
[ { "answer_id": 74617827, "author": "Chris", "author_id": 15261315, "author_profile": "https://Stackoverflow.com/users/15261315", "pm_score": 2, "selected": true, "text": "fun mulAndSum acc ([], []) = ...\n | mulAndSum acc ([], _) = ...\n | mulAndSum acc (_, []) = ...\n | mulAndSum acc...
2022/11/29
[ "https://Stackoverflow.com/questions/74617154", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19053957/" ]
74,617,156
<p>I'm trying to write a script that will check if the first line of a text file has changed and print the value once. It needs to be an infinite loop so It will always keep checking for a change. The problem I'm having is when the value is changed it will keep constantly printing and it does not detect the new change....
[ { "answer_id": 74617827, "author": "Chris", "author_id": 15261315, "author_profile": "https://Stackoverflow.com/users/15261315", "pm_score": 2, "selected": true, "text": "fun mulAndSum acc ([], []) = ...\n | mulAndSum acc ([], _) = ...\n | mulAndSum acc (_, []) = ...\n | mulAndSum acc...
2022/11/29
[ "https://Stackoverflow.com/questions/74617156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18368599/" ]
74,617,179
<p>I want to select the value of the &quot;data&quot; attribute where the &quot;key&quot; attribute matches a specific search.</p> <p>The XML file will look like this.</p> <pre><code>&lt;connections&gt; &lt;production&gt; &lt;connection key=&quot;KEY1&quot; data=&quot;value1&quot; /&gt; &lt;connection key=&qu...
[ { "answer_id": 74617535, "author": "Ethan Shannon", "author_id": 18621413, "author_profile": "https://Stackoverflow.com/users/18621413", "pm_score": 2, "selected": true, "text": "using System.Xml.Linq;\n\nvar xmlStr = File.ReadAllText(\"Testfile.xml\");\nXElement root = XElement.Parse(xm...
2022/11/29
[ "https://Stackoverflow.com/questions/74617179", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18337808/" ]
74,617,192
<p>I have a website that I am making with bootstrap, firebase and JQuery. I have a button that when clicked is supposed to display a modal so the user can enter data. The data will be saved in my firebase database and then displayed on a table on the website. However, no matter what I do nothing happens when I click th...
[ { "answer_id": 74617535, "author": "Ethan Shannon", "author_id": 18621413, "author_profile": "https://Stackoverflow.com/users/18621413", "pm_score": 2, "selected": true, "text": "using System.Xml.Linq;\n\nvar xmlStr = File.ReadAllText(\"Testfile.xml\");\nXElement root = XElement.Parse(xm...
2022/11/29
[ "https://Stackoverflow.com/questions/74617192", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13911746/" ]
74,617,210
<p>Say I have multiple lists of lists. Something like this:</p> <pre><code>list1 = [[1,2],[56,32],[34,244]] list2 = [[43,21],[30,1],[19,3]] list3 = [[1,3],[8,21],[9,57]] </code></pre> <p>I want to create two new lists:</p> <pre><code>right_side = [2,32,244,21,1,3,3,21,57] left_side = [1,56,34,43,30,19,1,8,9] </code></p...
[ { "answer_id": 74617308, "author": "Jonathan Dauwe", "author_id": 17229877, "author_profile": "https://Stackoverflow.com/users/17229877", "pm_score": 3, "selected": true, "text": "left_side, right_side = zip(*list1, *list2, *list3)\n left_side, right_side = map(list, zip(*list1, *list2, ...
2022/11/29
[ "https://Stackoverflow.com/questions/74617210", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17945841/" ]
74,617,219
<p>I have this list in R:</p> <pre><code>my_list = list(&quot;word&quot;,c(&quot;word&quot;, &quot;word&quot;), &quot;word&quot;, c(&quot;word&quot;, &quot;word&quot;,&quot;word&quot;), &quot;word&quot;) [[1]] [1] &quot;word&quot; [[2]] [1] &quot;word&quot; &quot;word&quot; [[3]] [1] &quot;word&quot; [[4]] [1] &quo...
[ { "answer_id": 74617324, "author": "jpsmith", "author_id": 12109788, "author_profile": "https://Stackoverflow.com/users/12109788", "pm_score": 3, "selected": true, "text": "lapply do.call rbind do.call(rbind, lapply(my_list, `length<-`, max(lengths(my_list))))\n # [,1] [,2] [,3]...
2022/11/29
[ "https://Stackoverflow.com/questions/74617219", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13203841/" ]
74,617,304
<p>Good afternoon Powershell wizards!</p> <p>I am hoping someone can explain to me how I can fix this issue, and more importantly what the issue actually is!</p> <p>I'm attempting to fix an old script I wrote years ago that searches for several dates on a files properties and picks one to use for renaming that file.</p...
[ { "answer_id": 74617791, "author": "Ravendarksky", "author_id": 1021864, "author_profile": "https://Stackoverflow.com/users/1021864", "pm_score": 1, "selected": false, "text": "$photoDate = $directoryObject.GetDetailsOf($fileObject, $index)\n$utfFree = $photoDate -replace \"\\u200e|\\u20...
2022/11/29
[ "https://Stackoverflow.com/questions/74617304", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1021864/" ]
74,617,339
<p>I need help with creating a trial balance report for a specific tenure, from beginning of fiscal year to a selected period. I need this in Crystal Reports.</p> <p>I am unable to formulate how can I get debit and credit amounts totalling from beginning of the fiscal year till the end of selected period (not YTD).</p>...
[ { "answer_id": 74617791, "author": "Ravendarksky", "author_id": 1021864, "author_profile": "https://Stackoverflow.com/users/1021864", "pm_score": 1, "selected": false, "text": "$photoDate = $directoryObject.GetDetailsOf($fileObject, $index)\n$utfFree = $photoDate -replace \"\\u200e|\\u20...
2022/11/29
[ "https://Stackoverflow.com/questions/74617339", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20635574/" ]
74,617,343
<p>The out put of the script after initial parsing data is like this at this point</p> <pre><code> - hostname: lfpm9001 - id: 700 addr: 100.241.50.118/28 - id: 800 addr: 10.241.50.161/28 - hostname: lfpm9002 - id: 355 addr: 100.243.52.129/25 - id: 228 ...
[ { "answer_id": 74617791, "author": "Ravendarksky", "author_id": 1021864, "author_profile": "https://Stackoverflow.com/users/1021864", "pm_score": 1, "selected": false, "text": "$photoDate = $directoryObject.GetDetailsOf($fileObject, $index)\n$utfFree = $photoDate -replace \"\\u200e|\\u20...
2022/11/29
[ "https://Stackoverflow.com/questions/74617343", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20626676/" ]
74,617,358
<p>I'm trying to use an extension of UIImage to convert image download URLs to UIImage, but I'm getting this error: <code>'self.init' isn't called on all paths before returning from initializer</code></p> <p>Here is my whole extension:</p> <p>(<a href="https://i.stack.imgur.com/oZGJu.png" rel="nofollow noreferrer">http...
[ { "answer_id": 74618316, "author": "Rob", "author_id": 1271826, "author_profile": "https://Stackoverflow.com/users/1271826", "pm_score": 2, "selected": false, "text": "async await static extension UIImage {\n enum ImageError: Error {\n case notImage\n case unknownError\n...
2022/11/29
[ "https://Stackoverflow.com/questions/74617358", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20215370/" ]
74,617,360
<p>i have python 3.11 downloaded, and i installed pip with it. however, i can't install discord py with</p> <pre><code>py -3 -m pip install -U discord.py </code></pre> <p>i've tried a few other ways, still didn't work.</p> <p>in the end it says:</p> <pre><code> note: This error originates from a subprocess, and is like...
[ { "answer_id": 74617492, "author": "M.K", "author_id": 7396613, "author_profile": "https://Stackoverflow.com/users/7396613", "pm_score": 1, "selected": false, "text": "pip3 install --upgrade pip\n" }, { "answer_id": 74617527, "author": "JesterIsHere", "author_id": 1887261...
2022/11/29
[ "https://Stackoverflow.com/questions/74617360", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20635667/" ]
74,617,416
<p>I use Google App Engine standard environemment with Flask Python3 for a current project. This project use as cache the App Engine Memcache (google.appengine.api.memcache).</p> <p>Currently the cache doesn't work and I think that it's probably because of the dependency on App Engine APIs that need to be enable becaus...
[ { "answer_id": 74617492, "author": "M.K", "author_id": 7396613, "author_profile": "https://Stackoverflow.com/users/7396613", "pm_score": 1, "selected": false, "text": "pip3 install --upgrade pip\n" }, { "answer_id": 74617527, "author": "JesterIsHere", "author_id": 1887261...
2022/11/29
[ "https://Stackoverflow.com/questions/74617416", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20635585/" ]
74,617,447
<p>Let's say I have MySQL database records with this structure</p> <pre><code>{ &quot;id&quot;: 44207, &quot;actors&quot;: [ { &quot;id&quot;: &quot;9c88bd9c-f41b-59fa-bfb6-427b1755ea64&quot;, &quot;name&quot;: &quot;APT41&quot;, ...
[ { "answer_id": 74617492, "author": "M.K", "author_id": 7396613, "author_profile": "https://Stackoverflow.com/users/7396613", "pm_score": 1, "selected": false, "text": "pip3 install --upgrade pip\n" }, { "answer_id": 74617527, "author": "JesterIsHere", "author_id": 1887261...
2022/11/29
[ "https://Stackoverflow.com/questions/74617447", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4943446/" ]
74,617,449
<p>I need to fill missing date values in orders table. DDL:</p> <pre><code>create table orders(order_date date, order_value int) insert into orders values('2022-11-01',100),('2022-11-04 ',200),('2022-11-08',300) </code></pre> <p>Expected output is as:</p> <pre><code>order_date | order_value ----------------------- 202...
[ { "answer_id": 74617492, "author": "M.K", "author_id": 7396613, "author_profile": "https://Stackoverflow.com/users/7396613", "pm_score": 1, "selected": false, "text": "pip3 install --upgrade pip\n" }, { "answer_id": 74617527, "author": "JesterIsHere", "author_id": 1887261...
2022/11/29
[ "https://Stackoverflow.com/questions/74617449", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16640543/" ]
74,617,493
<p>I want to redirect to route with name doug-test, but I want to preserve the url parameter. I saw a webpage that says use $request-&gt;query('url') to get the url parameter, but that doesn't seem to work. I want to know the value of the <em>get</em> parameter &quot;url&quot;.</p> <p>For example, if someone goes /lo...
[ { "answer_id": 74617591, "author": "msmahon", "author_id": 3704398, "author_profile": "https://Stackoverflow.com/users/3704398", "pm_score": -1, "selected": false, "text": "url()->previous();" }, { "answer_id": 74617694, "author": "dougd_in_nc", "author_id": 1228463, ...
2022/11/29
[ "https://Stackoverflow.com/questions/74617493", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1228463/" ]
74,617,510
<p>how can i change the button color(for highlight it) after i press my keyboard keys? like the label said &quot;Type some text using your keyboard.The keys you press will be <strong>highlighted</strong> and text will be displayed.&quot;</p> <p>here is my code, what should i add in the code so when i press key on my ke...
[ { "answer_id": 74617591, "author": "msmahon", "author_id": 3704398, "author_profile": "https://Stackoverflow.com/users/3704398", "pm_score": -1, "selected": false, "text": "url()->previous();" }, { "answer_id": 74617694, "author": "dougd_in_nc", "author_id": 1228463, ...
2022/11/29
[ "https://Stackoverflow.com/questions/74617510", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20635511/" ]
74,617,559
<p>This is the code where I'm trying to use the insert query:</p> <pre><code>int insertItems(String name,double amt,String exp)throws Exception{ Connection con=getConnection(); PreparedStatement ps=con.prepareStatement(&quot;insert into itemsList (null,name,amt,expire) values (?,?,?,?);&quot;);//when I use the 4?s ...
[ { "answer_id": 74618246, "author": "Ajay J", "author_id": 14520572, "author_profile": "https://Stackoverflow.com/users/14520572", "pm_score": 0, "selected": false, "text": "PreparedStatement ps=con.prepareStatement(\"insert into itemsList (name,amt,expire) values (?,?,?);\")\n\nps.setStr...
2022/11/29
[ "https://Stackoverflow.com/questions/74617559", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17282548/" ]
74,617,563
<p>I am trying to get the last alphabet from an input and then gives a particular response from that. like input &quot;morning&quot; have G at end and i want output as &quot;G-Text&quot;. so any input letter having last letter at end gives the output as &quot;_ - TEXT&quot;. I tried with REGEX_LIKE but nothing. Also in...
[ { "answer_id": 74618295, "author": "d r", "author_id": 19023353, "author_profile": "https://Stackoverflow.com/users/19023353", "pm_score": 3, "selected": true, "text": "create or replace Function Last_Char(p_input_char VarChar2) RETURN VarChar2 Is\nBEGIN\n Declare\n mChar Var...
2022/11/29
[ "https://Stackoverflow.com/questions/74617563", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20633834/" ]
74,617,610
<p>I have a dictionary dt which consists of cost price, selling price and the inventory. The purpose of the code is to calculate the Profit. Profit and can be calculated by <strong>Profit = Total selling price - Total Cost price.</strong> For example following is the input <strong>profit({ &quot;cost_price&quot;: 32.67...
[ { "answer_id": 74618295, "author": "d r", "author_id": 19023353, "author_profile": "https://Stackoverflow.com/users/19023353", "pm_score": 3, "selected": true, "text": "create or replace Function Last_Char(p_input_char VarChar2) RETURN VarChar2 Is\nBEGIN\n Declare\n mChar Var...
2022/11/29
[ "https://Stackoverflow.com/questions/74617610", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20502753/" ]
74,617,627
<p><a href="https://i.stack.imgur.com/dNOYm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dNOYm.jpg" alt="anyone help me.how to design like below image. any sample. i am new for flutter developement" /></a></p> <p><strong>how to create design look like below image. any sample please send</strong></...
[ { "answer_id": 74618295, "author": "d r", "author_id": 19023353, "author_profile": "https://Stackoverflow.com/users/19023353", "pm_score": 3, "selected": true, "text": "create or replace Function Last_Char(p_input_char VarChar2) RETURN VarChar2 Is\nBEGIN\n Declare\n mChar Var...
2022/11/29
[ "https://Stackoverflow.com/questions/74617627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2270200/" ]
74,617,632
<p>I have a class called person and a dictionary of people. I want to loop through each person in the People dictionary and check for errors. Is there a way of referencing the item in the library using similar to the below example. e.g. looping through the errors array and appending it to the item name instead of havin...
[ { "answer_id": 74618295, "author": "d r", "author_id": 19023353, "author_profile": "https://Stackoverflow.com/users/19023353", "pm_score": 3, "selected": true, "text": "create or replace Function Last_Char(p_input_char VarChar2) RETURN VarChar2 Is\nBEGIN\n Declare\n mChar Var...
2022/11/29
[ "https://Stackoverflow.com/questions/74617632", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10358185/" ]
74,617,689
<p>I have 6 data in database record but I want to get last 3 data</p> <p>this is my data :</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>criteria_id</th> <th>criteria_name</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>A</td> </tr> <tr> <td>2</td> <td>B</td> </tr> <tr> <td>3</td> <td>C</...
[ { "answer_id": 74617748, "author": "msmahon", "author_id": 3704398, "author_profile": "https://Stackoverflow.com/users/3704398", "pm_score": 3, "selected": true, "text": "created_at latest() criteria_id Criteria::orderBy('criteria_id', 'desc')->take(3)->get();\n Criteria::orderBy('criter...
2022/11/29
[ "https://Stackoverflow.com/questions/74617689", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20365171/" ]
74,617,711
<p>I am using Kibana to view an Opensearch index with objects like:</p> <pre><code>timestamp:&quot;November 3rd 2022, 23:50:51.253&quot; client_id:&quot;61c9aebdd01d&quot; event:&quot;login&quot; </code></pre> <pre><code>timestamp:&quot;November 3rd 2022, 23:51:11.553&quot; client_id:&quot;61c9aebdd01d&quot; event:&quo...
[ { "answer_id": 74617748, "author": "msmahon", "author_id": 3704398, "author_profile": "https://Stackoverflow.com/users/3704398", "pm_score": 3, "selected": true, "text": "created_at latest() criteria_id Criteria::orderBy('criteria_id', 'desc')->take(3)->get();\n Criteria::orderBy('criter...
2022/11/29
[ "https://Stackoverflow.com/questions/74617711", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2308190/" ]
74,617,717
<p>I have a list of dictionaries and a separate dictionary having the same keys and only the values are different. For example the list of dictionaries look like this:</p> <pre><code>[{'A': 0.102, 'B': 0.568, 'C': 0.33}, {'A': 0.026, 'B': 0.590, 'C': 0.382}, {'A': 0.005, 'B': 0.857, 'C': 0.137}, {'A': 0.0, 'B': 0.962, ...
[ { "answer_id": 74617748, "author": "msmahon", "author_id": 3704398, "author_profile": "https://Stackoverflow.com/users/3704398", "pm_score": 3, "selected": true, "text": "created_at latest() criteria_id Criteria::orderBy('criteria_id', 'desc')->take(3)->get();\n Criteria::orderBy('criter...
2022/11/29
[ "https://Stackoverflow.com/questions/74617717", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13469713/" ]
74,617,766
<p>Consider I have dataframe which the first column is the datetime, and the other columns are data in the specified datetime (Data is collected hourly, so first column of every row is one hour after the previous row). In this dateframe data for some datetimes are missed. I want to make a new dataframe in which missing...
[ { "answer_id": 74618088, "author": "Matt", "author_id": 5125264, "author_profile": "https://Stackoverflow.com/users/5125264", "pm_score": 3, "selected": true, "text": "pd.date_range Index.difference NaN import pandas as pd\nimport numpy as np\n\n# name of your datetime column\ndatetime_c...
2022/11/29
[ "https://Stackoverflow.com/questions/74617766", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13812421/" ]
74,617,804
<p>I have followed a few different tutorials on how to get <code>Signup by invite</code> working and I am very close to getting it working in blazor server side but I am having issues with the final returned token.</p> <p>I have 2 authentications setup, one which is the default Microsoft Identity and my custom one whic...
[ { "answer_id": 74629506, "author": "Gaz83", "author_id": 1255136, "author_profile": "https://Stackoverflow.com/users/1255136", "pm_score": 0, "selected": false, "text": "string invite_policy = builder.Configuration.GetSection(\"AzureAdB2C\")[\"SignUpSignInPolicyId\"];\nbuilder.Services.A...
2022/11/29
[ "https://Stackoverflow.com/questions/74617804", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1255136/" ]