qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,475,016 | <p>When I make an input button and add a label, the label appears on the side of the input field. How can I make it appear inside the input field?</p>
<p>I have tried to put the label inside the input field with CSS, but when I write in the input, the label and the text overlap, and the text becomes unreadable. How can... | [
{
"answer_id": 74475038,
"author": "sindri_baldur",
"author_id": 4552295,
"author_profile": "https://Stackoverflow.com/users/4552295",
"pm_score": 3,
"selected": true,
"text": "do.call(pmax, df)\n\n[1] \"2020-11-30 22:09:29 GMT\" \"2026-06-14 20:00:05 GMT\"\n[3] \"2008-02-08 01:32:23 GMT... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475016",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20136506/"
] |
74,475,090 | <p>I have the following pandas column1 and I want to create a column2 displaying the count of the value in each row in the column1.</p>
<p>I do not want to use pandas value_counts as I do not want to group by the values of the column.
Column1 :</p>
<pre><code>COL 1
VALUE1
VALUE2
VALUE1
VALUE1
VALUE1
VALUE3
VALUE2
... | [
{
"answer_id": 74475038,
"author": "sindri_baldur",
"author_id": 4552295,
"author_profile": "https://Stackoverflow.com/users/4552295",
"pm_score": 3,
"selected": true,
"text": "do.call(pmax, df)\n\n[1] \"2020-11-30 22:09:29 GMT\" \"2026-06-14 20:00:05 GMT\"\n[3] \"2008-02-08 01:32:23 GMT... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19076108/"
] |
74,475,129 | <p>I've a two columns in a file, like this</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Column A</th>
<th>Column B</th>
</tr>
</thead>
<tbody>
<tr>
<td>Apple</td>
<td>2</td>
</tr>
<tr>
<td>Bat</td>
<td>2</td>
</tr>
<tr>
<td>Cat</td>
<td>4</td>
</tr>
<tr>
<td>Bat</td>
<td>2.5</td>
</tr>
<... | [
{
"answer_id": 74475038,
"author": "sindri_baldur",
"author_id": 4552295,
"author_profile": "https://Stackoverflow.com/users/4552295",
"pm_score": 3,
"selected": true,
"text": "do.call(pmax, df)\n\n[1] \"2020-11-30 22:09:29 GMT\" \"2026-06-14 20:00:05 GMT\"\n[3] \"2008-02-08 01:32:23 GMT... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8484526/"
] |
74,475,169 | <h3>Summary</h3>
<p>I would like to check that a cell contains the identical number of each letter from a-z and number from 0-9, as the cell next to it. The order does not matter, but the number of characters does. For example, if a cell contained "flat 1, 32 test road", and the cell next to it contained &quo... | [
{
"answer_id": 74475382,
"author": "JvdV",
"author_id": 9758194,
"author_profile": "https://Stackoverflow.com/users/9758194",
"pm_score": 2,
"selected": false,
"text": "C2 =BYROW(A2:B6,LAMBDA(x,COUNTA(UNIQUE(MAP(x,LAMBDA(a,CONCAT(LET(b,MID(a,SEQUENCE(LEN(a)),1),c,CODE(UPPER(b)),SORT(IFER... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17901329/"
] |
74,475,216 | <p>Lets say we have component called Main, iam trying to set up condtion inside of it if user is signed it would have diffent styles, i know it seems easy but iam stuck on it for quit some time.
thanks for any ideas
i had code like this: <a href="https://i.stack.imgur.com/NuKdb.jpg" rel="nofollow noreferrer"><img src="... | [
{
"answer_id": 74475441,
"author": "Tjeu Foolen",
"author_id": 11023639,
"author_profile": "https://Stackoverflow.com/users/11023639",
"pm_score": 0,
"selected": false,
"text": "export function App(props) {\n const sign = true;\n return (\n <div className=\"container\">\n { sig... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475216",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9786566/"
] |
74,475,247 | <p>I have this <code>isData</code> variable declared in my ts file</p>
<pre><code>isData:boolean=false;
</code></pre>
<p>i have this button on my component</p>
<pre><code><button
class="btn btn-primary"
type="button"
(click)="save()"
*ngIf="isData===... | [
{
"answer_id": 74475441,
"author": "Tjeu Foolen",
"author_id": 11023639,
"author_profile": "https://Stackoverflow.com/users/11023639",
"pm_score": 0,
"selected": false,
"text": "export function App(props) {\n const sign = true;\n return (\n <div className=\"container\">\n { sig... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3653474/"
] |
74,475,271 | <p>So for a project, I gotta make a web-site that fills a shape with circles that wont intersact at any point.The user is going to upload a shape, and also choose the radius of the circles, and the code is going to place as many circles(with the chosen radius) as it can into the shape.</p>
<p>For example, if the user u... | [
{
"answer_id": 74475441,
"author": "Tjeu Foolen",
"author_id": 11023639,
"author_profile": "https://Stackoverflow.com/users/11023639",
"pm_score": 0,
"selected": false,
"text": "export function App(props) {\n const sign = true;\n return (\n <div className=\"container\">\n { sig... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20529785/"
] |
74,475,294 | <p>I want to replace all forward slashes with a backward slash followed by a forward slash.
Example:</p>
<pre><code>../src/services/resource_mgmt/
</code></pre>
<p>Should be converted to</p>
<pre><code>..\/src\/services\/resource_mgmt\/
</code></pre>
<p>I don't know hot use <code>replaceAll(...)</code> with the correct... | [
{
"answer_id": 74475450,
"author": "Jay Vaghasiya",
"author_id": 10562084,
"author_profile": "https://Stackoverflow.com/users/10562084",
"pm_score": 1,
"selected": true,
"text": "const url = '../src/services/resource_mgmt/';\nconst newUrl = url.replaceAll(/\\//g, '\\\\/');\nconsole.log(n... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/951614/"
] |
74,475,304 | <p>I have a String field in a Dataset in (mmddyyyy) format.</p>
<p>I am trying to convert it into a Date field in SSRS.</p>
<p>I already tried using the below command but I am getting error.</p>
<pre class="lang-vb prettyprint-override"><code>CDate(Fields!LocalTXNDate.Value)
</code></pre>
<p>Can anyone please suggest.<... | [
{
"answer_id": 74475599,
"author": "Larnu",
"author_id": 2029983,
"author_profile": "https://Stackoverflow.com/users/2029983",
"pm_score": 1,
"selected": false,
"text": "MMddyyyy SET DATEFORMAT SET DATEFORMAT MDY; SELECT CONVERT(date,'11172022'); yyyyMMdd UPDATE YT\nSET YourDateColumn = ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4860775/"
] |
74,475,332 | <p>I've been fighting to go from a nested dictionary of depth <em>D</em> to a pandas DataFrame.</p>
<p>I've tried with recursive function, like the following one, but my problem is that when I'm iterating over a KEY, I don't know what was the pervious key.</p>
<p>I've also tried with json.normalize, pandas from dict bu... | [
{
"answer_id": 74475599,
"author": "Larnu",
"author_id": 2029983,
"author_profile": "https://Stackoverflow.com/users/2029983",
"pm_score": 1,
"selected": false,
"text": "MMddyyyy SET DATEFORMAT SET DATEFORMAT MDY; SELECT CONVERT(date,'11172022'); yyyyMMdd UPDATE YT\nSET YourDateColumn = ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9274940/"
] |
74,475,341 | <p>I am using <code>react-bootstrap</code> components. I have a <code>table</code> covered by a <code>div</code>. The table has six rows. I have added <code>height</code> to my div, but <code>table</code> is not sized according to <code>height</code>.</p>
<p><strong>I need the table to fit inside the div, and the table... | [
{
"answer_id": 74475559,
"author": "erecodes",
"author_id": 18703252,
"author_profile": "https://Stackoverflow.com/users/18703252",
"pm_score": 2,
"selected": true,
"text": "overflow-y: scroll div overflowY: \"scroll\" position: sticky top:0 overflowY: scroll overflowY: auto import \"./s... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19576691/"
] |
74,475,360 | <p>I have my model called Restaurant:
realm object on kotlin:</p>
<pre><code>class Restaurant : RealmObject {
@PrimaryKey
var _id: ObjectId = ObjectId.create()
var name: String = ""
var adress: String? = null
}
</code></pre>
<p>I want to use the _id property. But for that I need to convert to ... | [
{
"answer_id": 74480085,
"author": "Jay",
"author_id": 2851937,
"author_profile": "https://Stackoverflow.com/users/2851937",
"pm_score": 0,
"selected": false,
"text": "let idAsAsString = someRealmObject._id.stringValue\n let x = someRealmObject._id.stringValue\nlet y = String(stringLiter... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20468094/"
] |
74,475,381 | <p>I am sending HTML to my back-end and back-end is using Send-Grid to send that HTML to provided email address in body of Email.</p>
<p><strong>C# Code</strong></p>
<pre><code>public async Task SendEmail(string toAddress, string html)
{
var email = new SendGridMessage
{
... | [
{
"answer_id": 74480085,
"author": "Jay",
"author_id": 2851937,
"author_profile": "https://Stackoverflow.com/users/2851937",
"pm_score": 0,
"selected": false,
"text": "let idAsAsString = someRealmObject._id.stringValue\n let x = someRealmObject._id.stringValue\nlet y = String(stringLiter... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10569355/"
] |
74,475,386 | <p>How do I add extra rows for all columns (except the grouping variable) for each group <code>id</code> in the data frame?</p>
<p>Data:</p>
<pre><code>> library(tidyverse)
> df <- tibble(id = c("A", "B", "C"), day = c(3, 1, 2), station = c(10, 9, 2))
> df
# A tibble: 3 × 3
i... | [
{
"answer_id": 74475488,
"author": "Juan C",
"author_id": 9462829,
"author_profile": "https://Stackoverflow.com/users/9462829",
"pm_score": 3,
"selected": true,
"text": "df %>% \nbind_rows(df %>% mutate(across(c('day', 'station'), ~.x - 1 ))) %>% \narrange(id)\n\n# A tibble: 6 × 3\n# id ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7789963/"
] |
74,475,404 | <p>i have declared an array globally so that i can modify that inside a function. but after i try and modify the array. the array is showing showing any data and the array is alwayes becomes 0.</p>
<p>this is where the function is been callled from:</p>
<pre><code>var vehicleTypesArr = []; //globally accessable.
funct... | [
{
"answer_id": 74475488,
"author": "Juan C",
"author_id": 9462829,
"author_profile": "https://Stackoverflow.com/users/9462829",
"pm_score": 3,
"selected": true,
"text": "df %>% \nbind_rows(df %>% mutate(across(c('day', 'station'), ~.x - 1 ))) %>% \narrange(id)\n\n# A tibble: 6 × 3\n# id ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20414146/"
] |
74,475,405 | <p>I need to get the first occurrence from duplicate column headers as follows:</p>
<p><a href="https://i.stack.imgur.com/2YQyh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2YQyh.png" alt="enter image description here" /></a></p>
<p>A workaround was to group all the same columns and use an <code>I... | [
{
"answer_id": 74475569,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 3,
"selected": true,
"text": "=INDEX(FILTER(A1:E5, A1:E1=\"name\"),,1)\n =INDEX(IFERROR(SPLIT(TRIM(FLATTEN(QUERY(TRANSPOSE(\n FILTER(A1:E5, A1:E1=\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1781041/"
] |
74,475,444 | <p>I am trying to model the following strict constraint in python with docplex:</p>
<pre><code>mdl.add_constraint(sum(a[i] * mdl.variable[i] for i in range(nrItems)) > b)
</code></pre>
<p>but I keep getting the error:
docplex.mp.utils.DOcplexException: Unsupported relational operator: only <=, ==, >= are allow... | [
{
"answer_id": 74475569,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 3,
"selected": true,
"text": "=INDEX(FILTER(A1:E5, A1:E1=\"name\"),,1)\n =INDEX(IFERROR(SPLIT(TRIM(FLATTEN(QUERY(TRANSPOSE(\n FILTER(A1:E5, A1:E1=\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20529940/"
] |
74,475,500 | <p>I am implementing a custom side panel that opens up from the right. I am able to achieve show and hide of the panel on a click of a button. But I want the same thing to be hidden when i click outside. I am attaching the outside click handler, And when I do that it is not even showing up. Can someone help</p>
<p><a h... | [
{
"answer_id": 74475574,
"author": "torquan",
"author_id": 10882109,
"author_profile": "https://Stackoverflow.com/users/10882109",
"pm_score": 2,
"selected": true,
"text": "drawerOpen React.useEffect(() => {\n console.log(drawerOpen)\n }, [drawerOpen])\n <button id=\"openPane... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16860065/"
] |
74,475,510 | <p>I have an array of object and there is a field which is an array and I want to sort the result based on its length.</p>
<p>I have tried with lodash orderBy but its showing in asc to desc instead of desc to asc.</p>
<p>Code --></p>
<pre><code>const arr = [{answer: "don't knoweee",
questionT... | [
{
"answer_id": 74475547,
"author": "Andrew Parks",
"author_id": 5898421,
"author_profile": "https://Stackoverflow.com/users/5898421",
"pm_score": 2,
"selected": true,
"text": "const upvoteLength = ({upvote:x})=>x?.length??0;\nconst descending = f=>(a,b)=>f(b)-f(a);\nconsole.log([...arr].... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11957027/"
] |
74,475,561 | <p>This is pretty easy to replicate but also code here:</p>
<p><a href="https://github.com/dominicshaw/dotnet-publish-error" rel="nofollow noreferrer">https://github.com/dominicshaw/dotnet-publish-error</a></p>
<ul>
<li>create an empty wpf project using .NET7</li>
<li>create a publish profile for ClickOnce</li>
<li>pub... | [
{
"answer_id": 74475547,
"author": "Andrew Parks",
"author_id": 5898421,
"author_profile": "https://Stackoverflow.com/users/5898421",
"pm_score": 2,
"selected": true,
"text": "const upvoteLength = ({upvote:x})=>x?.length??0;\nconst descending = f=>(a,b)=>f(b)-f(a);\nconsole.log([...arr].... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4324180/"
] |
74,475,576 | <p>let's assume the following code in c:</p>
<pre><code>#include <stdio.h>
#include <cs50.h>
int test (int a, int b);
int main(void)
{
test(2,3);
}
int test (int a, int b)
{
int c = a+b;
printf("%d \n", test(a,b));
return c;
}
</code></pre>
<p>why is it not possible to print the value o... | [
{
"answer_id": 74475620,
"author": "abelenky",
"author_id": 34824,
"author_profile": "https://Stackoverflow.com/users/34824",
"pm_score": 1,
"selected": false,
"text": "#include <stdio.h>\n#include <cs50.h>\n\nint test (int a, int b);\n\nint main(void)\n{\n test(2,3);\n}\n\nint test (i... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475576",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20529705/"
] |
74,475,586 | <p>I try to convert CSV from Clash Royale.</p>
<p>I wanna push number in rows to array</p>
<p>real csv data header or property is over 40 properties</p>
<p>example data:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">name</th>
<th style="text-align: left;">level c... | [
{
"answer_id": 74475707,
"author": "Mohit Singh",
"author_id": 15832446,
"author_profile": "https://Stackoverflow.com/users/15832446",
"pm_score": 1,
"selected": false,
"text": "convert-csv-to-json npm i convert-csv-to-json\n rarities.csv rarities_output.csv csvToJson.generateJsonFileFro... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18403575/"
] |
74,475,644 | <p>We have an application on java springboot which would interact with IoT devices via HTTP Rest API. However, there is an IoT device that communicates with the LWM2M protocol. So, I need to set up an LWM2M server and make the application an LWM2M client.
First I wanted to make a prototype on my local machine running a... | [
{
"answer_id": 74492273,
"author": "eliasw",
"author_id": 851896,
"author_profile": "https://Stackoverflow.com/users/851896",
"pm_score": 2,
"selected": true,
"text": " <dependency>\n <groupId>org.eclipse.leshan</groupId>\n <artifactId>leshan-core</artifactId>\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5804899/"
] |
74,475,656 |
<p>I want to change a specific part of a tuple. Is it possible to use pattern matching?</p>
<pre class="lang-elixir prettyprint-override"><code>{1, [{:reach, [:s, :d]}, [link: [:s, :d]]]}
</code></pre>
<p>I want to change reach to <code>:reach_1</code>. I can fetch the reach field but cannot modify the whole tuple.</... | [
{
"answer_id": 74492273,
"author": "eliasw",
"author_id": 851896,
"author_profile": "https://Stackoverflow.com/users/851896",
"pm_score": 2,
"selected": true,
"text": " <dependency>\n <groupId>org.eclipse.leshan</groupId>\n <artifactId>leshan-core</artifactId>\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6487751/"
] |
74,475,746 | <p>I have built a Python package according to the documentation: <a href="https://packaging.python.org/en/latest/tutorials/packaging-projects/" rel="nofollow noreferrer">https://packaging.python.org/en/latest/tutorials/packaging-projects/</a></p>
<p>Everything works, but when I call pip install my_package.whl, the depe... | [
{
"answer_id": 74477414,
"author": "The Lazy Graybeard",
"author_id": 9608497,
"author_profile": "https://Stackoverflow.com/users/9608497",
"pm_score": 2,
"selected": true,
"text": "require dependencies dependencies = [\"package1\", \"package2\"]\n"
},
{
"answer_id": 74477451,
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3975218/"
] |
74,475,753 | <p>I am getting syntax errors when trying to run or sometimes it runs but does not execute the way I am intending it to.</p>
<p>I have been playing around with the formatting but still no solution.</p>
<pre><code>def checkVowelsConsonants(s):
vowels=0
consonants=0
for ch in s:
#convert character into its AS... | [
{
"answer_id": 74477414,
"author": "The Lazy Graybeard",
"author_id": 9608497,
"author_profile": "https://Stackoverflow.com/users/9608497",
"pm_score": 2,
"selected": true,
"text": "require dependencies dependencies = [\"package1\", \"package2\"]\n"
},
{
"answer_id": 74477451,
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20530075/"
] |
74,475,823 | <p>I've defined a function <code>obtainToken</code>. This function, send a request to a specific URL and return a token:</p>
<pre><code>async function obtainToken () {
const config = { headers: { 'Content-Type': 'multipart/form-data' } };
await axios
.post('***',{
client_id: '***',
... | [
{
"answer_id": 74477414,
"author": "The Lazy Graybeard",
"author_id": 9608497,
"author_profile": "https://Stackoverflow.com/users/9608497",
"pm_score": 2,
"selected": true,
"text": "require dependencies dependencies = [\"package1\", \"package2\"]\n"
},
{
"answer_id": 74477451,
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475823",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20089535/"
] |
74,475,829 | <p>Hi masters i need to find the best way to convert this:</p>
<pre><code> [
{ "id": 1, "animal": "cat", "age": 6, "name": "loky" },
{ "id": 2, "animal": "cat", "age": 3, "name": "michu", "pa... | [
{
"answer_id": 74476360,
"author": "Shawn",
"author_id": 14361465,
"author_profile": "https://Stackoverflow.com/users/14361465",
"pm_score": 2,
"selected": true,
"text": "const rows = [\n { id: 1, animal: 'cat', age: 6, name: 'loky' },\n { id: 2, animal: 'cat', age: 3, name: 'michu', p... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4781000/"
] |
74,475,833 | <p>I have a dataframe with 2 columns. How can I create a third column which:</p>
<ol>
<li>Takes either col1 or col2 value if either exists</li>
<li>Takes mean if both exists</li>
<li>Keeps NaN if neither exists</li>
</ol>
<p>And finally I want to store it in df['col3']. I tried this, but the values are wrong.</p>
<pre>... | [
{
"answer_id": 74475879,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": true,
"text": "df['col3'] = df[['col1', 'col2']].mean(axis=1)\n mean skipna=True time col1 col2 col3\n0 200... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3942806/"
] |
74,475,837 | <p>I have a DF that contains sources from the traffic of a webpage. the column <code>source</code> contains the detailed source, while <code>global_sources</code> is a handmade categorization that doesn't change. What I'm trying to do is, if <code>global_sources</code> is NA, string detect the unique values of <code>gl... | [
{
"answer_id": 74476122,
"author": "Juan C",
"author_id": 9462829,
"author_profile": "https://Stackoverflow.com/users/9462829",
"pm_score": 0,
"selected": false,
"text": "regex df %>% mutate(global_sources = if_else(is.na(global_sources), \n str_extract(source, 'facebook|goo... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14396599/"
] |
74,475,850 | <p>I have a data frame like this.</p>
<pre><code>document_group
A12J3/381
A02J3/40
B12P4/2536
C10P234/3569
</code></pre>
<p>and I would like to get like this</p>
<pre><code> document_group
A12J3/38
A02J3/40
B12P4/25
C10P234/35
</code></pre>
<p>I have tried to adapt a function for single string like this... | [
{
"answer_id": 74475891,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": false,
"text": "str.replace df[\"document_group\"] = df[\"document_group\"].str.replace(r'/(\\d{2})\\d+$', r'\\1', regex=Tru... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10367947/"
] |
74,475,883 | <p>I have a dataframe with data per day</p>
<pre><code>df = A. B. date
1. 2. 2016-12-31
7. 2. 2016-12-22
4. 3. 2016-12-12
6. 8. 2017-02-03
8. 3. 2017-01-31
1. 0. 2016-12-11
</code></pre>
<p>And so on. I have around 100 rows per month, from Dec-2016 to now.
I want to create a sns.boxplot, w... | [
{
"answer_id": 74475891,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": false,
"text": "str.replace df[\"document_group\"] = df[\"document_group\"].str.replace(r'/(\\d{2})\\d+$', r'\\1', regex=Tru... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6057371/"
] |
74,475,887 | <p>I want to convert the below statement result to list of my object.</p>
<pre><code>import com.amazonaws.services.dynamodbv2.model.ExecuteStatementResult;
ExecuteStatementResult executeStatementResult = dynamoDB.executeStatement(executeStatementRequest);
System.out.println( executeStatementResult.getItems() );
</code... | [
{
"answer_id": 74476086,
"author": "Holloway",
"author_id": 1916917,
"author_profile": "https://Stackoverflow.com/users/1916917",
"pm_score": 1,
"selected": false,
"text": "PricingRule::fromMap class PricingRule {\n // everything you already have\n public static PricingRule fromMap... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7472239/"
] |
74,475,892 | <p>I try to wrap long text on new line (including all titles main and additional) to new line if this text longer then image width. How can i do this?
I also provide example of my code in codepen
<a href="https://codepen.io/myacat339/pen/OJEjWEZ" rel="nofollow noreferrer">https://codepen.io/myacat339/pen/OJEjWEZ</a>.</... | [
{
"answer_id": 74476086,
"author": "Holloway",
"author_id": 1916917,
"author_profile": "https://Stackoverflow.com/users/1916917",
"pm_score": 1,
"selected": false,
"text": "PricingRule::fromMap class PricingRule {\n // everything you already have\n public static PricingRule fromMap... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475892",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17695221/"
] |
74,475,899 | <p>Trying to format the number as per the given format and culture.</p>
<p>Given:</p>
<pre><code>-4059587.225000, --Value
'#,##0.00;(#,##0.00)' --Format
'en-US' --Culture
</code></pre>
<p>Will have many patterns, the given one is for example.</p>
<p>Expected output: <code>(4,059,587.23)</code></p>
<p>In SQL Server we h... | [
{
"answer_id": 74476308,
"author": "Laurenz Albe",
"author_id": 6464308,
"author_profile": "https://Stackoverflow.com/users/6464308",
"pm_score": 3,
"selected": true,
"text": "to_char SET lc_numeric = 'en_US';\n\nSELECT translate(to_char(-4059587.225000, '9G999G999D99PRFM'), '<>', '()');... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4268241/"
] |
74,475,912 | <p>I have this function</p>
<pre><code>A=[(1,2,3),(2,3,4)]
B=[(2,4,3),(1,8,1),(2,3,5),(1,5,3)]
def closestNew(A,B):
C = {}
for bp in B:
closestDist = -1
for ap in A:
dist = sum(((bp[0]-ap[0])**2, (bp[1]-ap[1])**2, (bp[2]-ap[2])**2))
if(closestDist > dist or closestDist == -1... | [
{
"answer_id": 74476308,
"author": "Laurenz Albe",
"author_id": 6464308,
"author_profile": "https://Stackoverflow.com/users/6464308",
"pm_score": 3,
"selected": true,
"text": "to_char SET lc_numeric = 'en_US';\n\nSELECT translate(to_char(-4059587.225000, '9G999G999D99PRFM'), '<>', '()');... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20514383/"
] |
74,475,947 | <p>I've made a database with a table called item, im trying to insert some new items with the help of but it wont show on my html page in the browser.</p>
<p>The code looks like this and i have no clue what the most of it does, but it looks almost exactly like the code in the video im following.</p>
<pre><code>@page &... | [
{
"answer_id": 74476308,
"author": "Laurenz Albe",
"author_id": 6464308,
"author_profile": "https://Stackoverflow.com/users/6464308",
"pm_score": 3,
"selected": true,
"text": "to_char SET lc_numeric = 'en_US';\n\nSELECT translate(to_char(-4059587.225000, '9G999G999D99PRFM'), '<>', '()');... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475947",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10781487/"
] |
74,475,991 | <p>I am trying to run my django application using docker which involves celery. I am able to set everything on local and it works perfectly fine. However, when I run it docker, and my task gets executed, it throws me the following error:</p>
<p><code>myapp.models.mymodel.DoesNotExist: mymodel matching query does not ex... | [
{
"answer_id": 74476308,
"author": "Laurenz Albe",
"author_id": 6464308,
"author_profile": "https://Stackoverflow.com/users/6464308",
"pm_score": 3,
"selected": true,
"text": "to_char SET lc_numeric = 'en_US';\n\nSELECT translate(to_char(-4059587.225000, '9G999G999D99PRFM'), '<>', '()');... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74475991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19250175/"
] |
74,476,001 | <p>I am trying to use <code>PageNumberPagination</code> and <code>FilterSet</code> in <code>APIView</code>.
But I have an error below in my code.</p>
<blockquote>
<p>object of type 'ListSerializer' has no len()</p>
</blockquote>
<p>How to implement this?</p>
<hr />
<p>Here are the code:</p>
<pre><code>class MySerialize... | [
{
"answer_id": 74476404,
"author": "Mahammadhusain kadiwala",
"author_id": 19205926,
"author_profile": "https://Stackoverflow.com/users/19205926",
"pm_score": 0,
"selected": false,
"text": "from rest_framework.pagination import PageNumberPagination\nclass EventNewsItems(APIView, PageNumb... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476001",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12611330/"
] |
74,476,005 | <p>can anyone teach me how to plot a csv</p>
| [
{
"answer_id": 74476196,
"author": "Lokeshwar G",
"author_id": 12588118,
"author_profile": "https://Stackoverflow.com/users/12588118",
"pm_score": 1,
"selected": false,
"text": "import matplotlib.pyplot as plt\nimport csv\n\nx = []\ny = []\n\nwith open('data_file.csv','r') as csvfile:\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,476,010 | <p>I want to iterate through an array of words, look up the definition and delete the word if no definition is found.</p>
<p>my code looks as follows;</p>
<pre><code>var words = ["word1", "word2", "word3",]
function Meaning(words){
const getMeaning = async () => {
const re... | [
{
"answer_id": 74476196,
"author": "Lokeshwar G",
"author_id": 12588118,
"author_profile": "https://Stackoverflow.com/users/12588118",
"pm_score": 1,
"selected": false,
"text": "import matplotlib.pyplot as plt\nimport csv\n\nx = []\ny = []\n\nwith open('data_file.csv','r') as csvfile:\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4377207/"
] |
74,476,087 | <p>I have found ExecuteDeleteAsync and ExecuteUpdateAsync in EF Core 7 with great enthusiasm. They help to make my code much simpler and faster. There is no need to use self-made procedures for batch delete or update of 1-2 fields.
Anyway I have situations when the exact table and field of database for update should be... | [
{
"answer_id": 74476196,
"author": "Lokeshwar G",
"author_id": 12588118,
"author_profile": "https://Stackoverflow.com/users/12588118",
"pm_score": 1,
"selected": false,
"text": "import matplotlib.pyplot as plt\nimport csv\n\nx = []\ny = []\n\nwith open('data_file.csv','r') as csvfile:\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476087",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15863202/"
] |
74,476,129 | <p>I have written a simple program to test "vector.erase" feature. There is a simple class (MyClass0) which writes some related message in it's constructor and another in it's destructor. And then there is a vector which contains 4 objects of type MyClass0. As I erase the second element of the vector:</p>
<pr... | [
{
"answer_id": 74476223,
"author": "NathanOliver",
"author_id": 4342498,
"author_profile": "https://Stackoverflow.com/users/4342498",
"pm_score": 3,
"selected": false,
"text": "//start with\n1 2 3 4\n\n// erase 2, so move 3 into 2 and 4 into 3\n1 3 4 *\n\n// * is old 4 and we don't need ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20530129/"
] |
74,476,141 | <p>I need a SQL query for Oracle that select groups that contains the elements "ABC" and "ANQ"</p>
<pre><code>group X Column Q
-------- ---------
123 ABC
123 AAA
123 ANQ
456 ANQ
456 PKR
579 AAA
579 XYZ
886 ABC
</code></pre>
<p>The desir... | [
{
"answer_id": 74476244,
"author": "MT0",
"author_id": 1509264,
"author_profile": "https://Stackoverflow.com/users/1509264",
"pm_score": 2,
"selected": false,
"text": "COUNT SELECT x,\n q\nFROM (\n SELECT x,\n q,\n COUNT(CASE q WHEN 'ABC' THEN 1 END) OVER (PARTIT... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2319747/"
] |
74,476,146 | <p>I want to sum across undefined amount of columns that start with the same string pattern. I would like for each column of my new data frame to have the column name of the string that was used in column name search. However, I am not sure, how to automatically assign column names that it would result in a given forma... | [
{
"answer_id": 74476711,
"author": "Martin Gal",
"author_id": 12505251,
"author_profile": "https://Stackoverflow.com/users/12505251",
"pm_score": 3,
"selected": true,
"text": "# letter_SomethingElse search_pattern <- unique(gsub(\"(?<=^[a-z]).*\", \"\\\\1\", names(df), perl = TRUE))[-1]\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10346592/"
] |
74,476,171 | <p>this is my layer and i have assigned it to a button, but the zoom is not working when I click the layer button. i tried adding the zoom inside the layer but its not working.</p>
<pre class="lang-js prettyprint-override"><code>rainfall1 = new ol.layer.Vector({
//title: 'CA_DEVELOPMENT_PLAN',
// extent: [-180... | [
{
"answer_id": 74476711,
"author": "Martin Gal",
"author_id": 12505251,
"author_profile": "https://Stackoverflow.com/users/12505251",
"pm_score": 3,
"selected": true,
"text": "# letter_SomethingElse search_pattern <- unique(gsub(\"(?<=^[a-z]).*\", \"\\\\1\", names(df), perl = TRUE))[-1]\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20390024/"
] |
74,476,182 | <p>The application I use generates data in a dataframe which I need to use upon request.</p>
<p>It looks similar to this.</p>
<pre><code><class 'pandas.core.frame.DataFrame'>
E Gg gnx2 J chs lwave J_ID
0 27.572025 82.308581 7.078391 3.0 1 [0] 1
1 46.387728 77.0295... | [
{
"answer_id": 74476711,
"author": "Martin Gal",
"author_id": 12505251,
"author_profile": "https://Stackoverflow.com/users/12505251",
"pm_score": 3,
"selected": true,
"text": "# letter_SomethingElse search_pattern <- unique(gsub(\"(?<=^[a-z]).*\", \"\\\\1\", names(df), perl = TRUE))[-1]\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7267480/"
] |
74,476,206 | <pre><code># Initialising list of dictionary
ini_dict = [{'a':5, 'b':10, 'c':90},
{'a':45, 'b':78},
{'a':90, 'c':10}]
# printing initial dictionary
print ("initial dictionary", (ini_dict))
# sum the values with same keys
result = {}
for d in ini_dict:
for k in d.keys():
result[k] ... | [
{
"answer_id": 74476349,
"author": "Stjonal",
"author_id": 20530420,
"author_profile": "https://Stackoverflow.com/users/20530420",
"pm_score": 0,
"selected": false,
"text": "ini_dict = [{'a':5, 'b':10, 'c':90},\n {'a':45, 'b':78},\n {'a':90, 'c':10}]\n prin... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476206",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20530403/"
] |
74,476,259 | <p>I have 3 python dictionaries as below:</p>
<pre><code>gender = {'Female': 241, 'Male': 240}
marital_status = {'Divorced': 245, 'Engaged': 243, 'Married': 244, 'Partnered': 246, 'Single': 242}
family_type = {'Extended': 234, 'Joint': 235, 'Nuclear': 233, 'Single Parent': 236}
</code></pre>
<p>I add them to a list:</p... | [
{
"answer_id": 74476337,
"author": "StonedTensor",
"author_id": 6023918,
"author_profile": "https://Stackoverflow.com/users/6023918",
"pm_score": 3,
"selected": true,
"text": "my_data = {'gender': gender, 'marital_status':marital_status, 'family_type': family_type}\n json.dump with open(... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10722752/"
] |
74,476,364 | <p>Taking a file with DHCP host definitions as input I need to transform entries like:</p>
<pre><code>host mx {
fixed-address 10.0.1.161;
</code></pre>
<p>into entries like this:</p>
<pre><code>host mx - fixed-address 10.0.1.161;
</code></pre>
<p>(obviously I need to output this to <code>stdout</code>, not replace tho... | [
{
"answer_id": 74476657,
"author": "William Pursell",
"author_id": 140750,
"author_profile": "https://Stackoverflow.com/users/140750",
"pm_score": 2,
"selected": false,
"text": "sed $ printf 'host mx {\\n fixed-address 10.0.1.161;\\n' | sed '/{$/{N; s/{\\n */- /; }' \nhost mx - fixed-ad... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2022518/"
] |
74,476,399 | <p>First, I would like to say I have already spent the due time and diligence on my part by watching videos, using other sources, and reading other posts and answers on SOF before asking this and have been unable to find a solution.</p>
<p>The issue I am running into, in a particular case, is a certain type is being pa... | [
{
"answer_id": 74476488,
"author": "Winston",
"author_id": 12063888,
"author_profile": "https://Stackoverflow.com/users/12063888",
"pm_score": -1,
"selected": false,
"text": " LIKE '%'+type+'%' \n"
},
{
"answer_id": 74476795,
"author": "Larnu",
"author_id": 2029983,
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14078880/"
] |
74,476,421 | <p>I have a timeline and would like a box to be drawn next to a particular number of years</p>
<pre><code>digraph timeline {
node [fontsize=24, shape = plaintext];
1940 -> 1950;
1950 -> 1955;
1955 -> 1960;
node [fontsize=20, shape = box];
{ rank=same; 1940 test; }
}
</code></pre... | [
{
"answer_id": 74530432,
"author": "kirogasa",
"author_id": 14928633,
"author_profile": "https://Stackoverflow.com/users/14928633",
"pm_score": 3,
"selected": true,
"text": "style=invis newrank digraph timeline {\n newrank=true;\n\n node [fontsize=24, shape = plaintext];\n\n 194... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/254694/"
] |
74,476,437 | <p>When creating a WPF window with <code>AllowsTransparency="True" WindowStyle="None"</code> and maximizing it via</p>
<pre><code>private void btnMaximize_Click(object sender, RoutedEventArgs e)
{
if (Application.Current.MainWindow.WindowState != WindowState.Maximized)
... | [
{
"answer_id": 74476910,
"author": "Kavya Kommuri",
"author_id": 18726537,
"author_profile": "https://Stackoverflow.com/users/18726537",
"pm_score": 0,
"selected": false,
"text": "public MainWindow()\n{\n InitializeComponent();\n this.MaxHeight = SystemParameters.MaximizedPrimarySc... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19928474/"
] |
74,476,440 | <p>I have a a strange question to ask. I started working on a project and I need to integrate flyway to make it execute any new migrations on application start-up. The flyway dependency and config exists, pointing at a batch of migration scripts, but these were previously executed against the target 'by hand' without f... | [
{
"answer_id": 74476910,
"author": "Kavya Kommuri",
"author_id": 18726537,
"author_profile": "https://Stackoverflow.com/users/18726537",
"pm_score": 0,
"selected": false,
"text": "public MainWindow()\n{\n InitializeComponent();\n this.MaxHeight = SystemParameters.MaximizedPrimarySc... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8336836/"
] |
74,476,524 | <p>I am having a docker application which is running a python flask rest api.
I would like the user to input (<code>getpass()</code>) the database password instead of having it in any open readable config file.
Since I am also using docker network to resolve the dns names I would like to use <code>docker compose up</co... | [
{
"answer_id": 74476910,
"author": "Kavya Kommuri",
"author_id": 18726537,
"author_profile": "https://Stackoverflow.com/users/18726537",
"pm_score": 0,
"selected": false,
"text": "public MainWindow()\n{\n InitializeComponent();\n this.MaxHeight = SystemParameters.MaximizedPrimarySc... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15487103/"
] |
74,476,556 | <p>I want to convert a string to a hash table, whose keys are the characters in the string, and values are are the list of index of this character in the string. Is there some elegant way to do this?</p>
<p>For example:</p>
<pre><code>String: "abcaad"
Hash table: { a: [0 3 4] , b: [1] , c: [2] , d: [5] }
</c... | [
{
"answer_id": 74476910,
"author": "Kavya Kommuri",
"author_id": 18726537,
"author_profile": "https://Stackoverflow.com/users/18726537",
"pm_score": 0,
"selected": false,
"text": "public MainWindow()\n{\n InitializeComponent();\n this.MaxHeight = SystemParameters.MaximizedPrimarySc... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13150528/"
] |
74,476,573 | <p>I'm quite stuck with this problem in Python and I'm pretty sure it should be pretty easy to solve.</p>
<p>Please find this dict example:</p>
<pre><code>d = {
"a": "abc1",
"b": "abc1",
"c": "abc2",
"d": "abc3",
"e... | [
{
"answer_id": 74476854,
"author": "Nineteendo",
"author_id": 13454049,
"author_profile": "https://Stackoverflow.com/users/13454049",
"pm_score": 1,
"selected": false,
"text": "d = {\n \"a\": \"abc1\",\n \"b\": \"abc1\",\n \"c\": \"abc2\",\n \"d\": \"abc3\",\n \"e\": \"abc... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476573",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20530428/"
] |
74,476,574 | <p>I would like to change so <code>True = False</code> or more exact change so <code>True = 0</code> and <code>False = 1</code> is there a way to do this?</p>
<p>I have a <code>dataframe</code> and would like to <code>df.groupby('country',as_index=False).sum()</code> and see how many <code>False</code> values there is ... | [
{
"answer_id": 74476854,
"author": "Nineteendo",
"author_id": 13454049,
"author_profile": "https://Stackoverflow.com/users/13454049",
"pm_score": 1,
"selected": false,
"text": "d = {\n \"a\": \"abc1\",\n \"b\": \"abc1\",\n \"c\": \"abc2\",\n \"d\": \"abc3\",\n \"e\": \"abc... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20470841/"
] |
74,476,585 | <p>I want to use custom company colors in my shiny app. Below is a mock version of my app which shows the issue I face. The issue is I cannot set the background color (#f2f0eb) properly, as you see there is a white bar above the chart which does not get the background color #f2f0eb. The navigation bar, selection box an... | [
{
"answer_id": 74476854,
"author": "Nineteendo",
"author_id": 13454049,
"author_profile": "https://Stackoverflow.com/users/13454049",
"pm_score": 1,
"selected": false,
"text": "d = {\n \"a\": \"abc1\",\n \"b\": \"abc1\",\n \"c\": \"abc2\",\n \"d\": \"abc3\",\n \"e\": \"abc... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8449782/"
] |
74,476,588 | <p>I have 3 arguments in a move function those are list,source and destination.
List is here :</p>
<pre><code>const list = [
{
id: '1',
name: 'Folder 1',
files: [
{ id: '2', name: 'File 1' },
{ id: '3', name: 'File 2' },
{ id: '4', name: 'File 3' },
... | [
{
"answer_id": 74476694,
"author": "Mina",
"author_id": 11887902,
"author_profile": "https://Stackoverflow.com/users/11887902",
"pm_score": -1,
"selected": true,
"text": "splice filter const move = (list, source, dest) => {\n let copyList = list.slice();\n const filteredVal = copyList[... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476588",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14818449/"
] |
74,476,591 | <p>People I need make a funtion where return true or false. My code has a mistake
I don´t know how to do it.</p>
<pre><code>public bool Existe()
{
if (cbocarpeta.Text == "FORMULARIO N1 - DDJJ")
{
var exist = db.Ficha_Escribanos.SingleOrDefault(f => f.ApeyNom == txtapeynom.Text && f... | [
{
"answer_id": 74476865,
"author": "DonMiguelSanchez",
"author_id": 13337616,
"author_profile": "https://Stackoverflow.com/users/13337616",
"pm_score": 1,
"selected": false,
"text": " public bool Existe()\n{\n if (cbocarpeta.Text == \"FORMULARIO N1 - DDJJ\")\n {\n var ex... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19495598/"
] |
74,476,605 | <p>Using Beautiful Soup, I'd like to detect porn keywords (that i get by concatening two lists of porn-keywords (one in french, the other in english) in a web page.</p>
<p>Here's my code (from <a href="https://stackoverflow.com/questions/49779905/beautifulsoup-find-two-different-strings">BeautifulSoup find two differen... | [
{
"answer_id": 74476865,
"author": "DonMiguelSanchez",
"author_id": 13337616,
"author_profile": "https://Stackoverflow.com/users/13337616",
"pm_score": 1,
"selected": false,
"text": " public bool Existe()\n{\n if (cbocarpeta.Text == \"FORMULARIO N1 - DDJJ\")\n {\n var ex... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11894831/"
] |
74,476,623 | <p>I have a table that is meant to act as a configurable base class. In that class I want to be able to pass a menu with actions for each row:</p>
<pre><code> <table mat-table [dataSource]="tableDataSource" matSort (matSortChange)="sortTable($event)" class="mat-elevation-z8">
... | [
{
"answer_id": 74476865,
"author": "DonMiguelSanchez",
"author_id": 13337616,
"author_profile": "https://Stackoverflow.com/users/13337616",
"pm_score": 1,
"selected": false,
"text": " public bool Existe()\n{\n if (cbocarpeta.Text == \"FORMULARIO N1 - DDJJ\")\n {\n var ex... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1230911/"
] |
74,476,626 | <p>When trying to define helper functions to build up associative lists, I get an error, I cannot resolve myself (BASH 4.4):</p>
<blockquote>
<p>/tmp/foo.sh: line 18: 'key': syntax error: operand expected (error token is "'key'")</p>
</blockquote>
<p>For BASH 4.3 I got:</p>
<blockquote>
<p>/tmp/foo.sh: line 1... | [
{
"answer_id": 74476865,
"author": "DonMiguelSanchez",
"author_id": 13337616,
"author_profile": "https://Stackoverflow.com/users/13337616",
"pm_score": 1,
"selected": false,
"text": " public bool Existe()\n{\n if (cbocarpeta.Text == \"FORMULARIO N1 - DDJJ\")\n {\n var ex... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6607497/"
] |
74,476,640 | <p>I want to find the relational Formula between X and Z this below :</p>
<pre><code>X Z
8949430070120254001 24307547
8949430070120254019 64939975
8949430070120254027 62651206
8949430070120254035 42288628
8949430070120254043 09065578
</code></pre>
<p... | [
{
"answer_id": 74476865,
"author": "DonMiguelSanchez",
"author_id": 13337616,
"author_profile": "https://Stackoverflow.com/users/13337616",
"pm_score": 1,
"selected": false,
"text": " public bool Existe()\n{\n if (cbocarpeta.Text == \"FORMULARIO N1 - DDJJ\")\n {\n var ex... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20530642/"
] |
74,476,652 | <p>I have two separate data frames named df1 and df2 as shown below:</p>
<pre><code> Scaffold Position Ref_Allele_Count Alt_Allele_Count Coverage_Depth Alt_Allele_Frequency
0 1 11 7 51 58 0.879310
1 1 16 20 ... | [
{
"answer_id": 74476865,
"author": "DonMiguelSanchez",
"author_id": 13337616,
"author_profile": "https://Stackoverflow.com/users/13337616",
"pm_score": 1,
"selected": false,
"text": " public bool Existe()\n{\n if (cbocarpeta.Text == \"FORMULARIO N1 - DDJJ\")\n {\n var ex... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20513017/"
] |
74,476,659 | <p>I have a pdf stored in Cloud Storage and I'm trying to take this file to send it through email.</p>
<p>I'm trying to recover it but I receive back an error about access deniend:</p>
<blockquote>
<p>Uncaught (in promise): FirebaseError: Firebase Storage: User does not
have permission to access</p>
</blockquote>
<p>My... | [
{
"answer_id": 74476865,
"author": "DonMiguelSanchez",
"author_id": 13337616,
"author_profile": "https://Stackoverflow.com/users/13337616",
"pm_score": 1,
"selected": false,
"text": " public bool Existe()\n{\n if (cbocarpeta.Text == \"FORMULARIO N1 - DDJJ\")\n {\n var ex... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476659",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11604252/"
] |
74,476,665 | <p>The statement after return (Where I am sending props to ProList , in the mapping section) is showing unreachable. I am still learning react. Can anyone help me in this regard?</p>
<pre><code>import "./Workcard.css"
import React from 'react'
import ProList from "./ProList"
import projcarddata fr... | [
{
"answer_id": 74476705,
"author": "KcH",
"author_id": 11737596,
"author_profile": "https://Stackoverflow.com/users/11737596",
"pm_score": 0,
"selected": false,
"text": "return; return(\n ....\n)\n"
},
{
"answer_id": 74476797,
"author": "SKR Sama",
"author_id": 17621694,... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15620055/"
] |
74,476,733 | <p>I am trying to execute the same SQL but with different values for the where clause. One query is taking significantly longer time to process than the other. I have also observed that the execution plan for the two queries is different too,</p>
<p>Query1 and Execution Plan:</p>
<pre><code>explain analyze
select t.&qu... | [
{
"answer_id": 74477276,
"author": "histocrat",
"author_id": 1747583,
"author_profile": "https://Stackoverflow.com/users/1747583",
"pm_score": 1,
"selected": false,
"text": "EXPLAIN ANALYZE ANALYZE dev.\"postal_master\" GROUP BY select distinct t.postal_code"
},
{
"answer_id": 74... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12971556/"
] |
74,476,748 | <p>I have a loop which uses <a href="https://automapper.org/" rel="nofollow noreferrer">AutoMapper</a> to map two different instances of objects <code>A</code> & <code>B</code> into a new instance of a third object, <code>C</code>. The object <code>C</code> contains all the fields of <code>A</code> & <code>B</c... | [
{
"answer_id": 74477276,
"author": "histocrat",
"author_id": 1747583,
"author_profile": "https://Stackoverflow.com/users/1747583",
"pm_score": 1,
"selected": false,
"text": "EXPLAIN ANALYZE ANALYZE dev.\"postal_master\" GROUP BY select distinct t.postal_code"
},
{
"answer_id": 74... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2445415/"
] |
74,476,766 | <p>I want to create a phone-like stopwatch using HTML, CSS, and vanilla JavaScript. The one I have already done does the task, but I don't want a separate button for stopping and starting. How could I make a button that changes from start to stop and stop to start?</p>
<p>Here is my HTML Code:</p>
<pre><code><!DOCTY... | [
{
"answer_id": 74476914,
"author": "becauseimbored",
"author_id": 20524149,
"author_profile": "https://Stackoverflow.com/users/20524149",
"pm_score": 2,
"selected": false,
"text": "var clockStarted = false;\n\nbuttonStart.onclick = function() {\n clearInterval(Interval);\n if (!clockSt... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476766",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20530641/"
] |
74,476,770 | <p>currently working on a following function:</p>
<pre><code>public function boldText($searchSuggestions)
{
$search = $this->getRequestParameter('search');
$pattern = "/".$search."/u";
$searchSuggestions = preg_replace($pattern, '<b>'.$search.'</b>', $searchSuggestions);
... | [
{
"answer_id": 74476914,
"author": "becauseimbored",
"author_id": 20524149,
"author_profile": "https://Stackoverflow.com/users/20524149",
"pm_score": 2,
"selected": false,
"text": "var clockStarted = false;\n\nbuttonStart.onclick = function() {\n clearInterval(Interval);\n if (!clockSt... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20530691/"
] |
74,476,772 | <p>Can you please help me with the following. I am trying to catch two exceptions: 1) <code>TypeError</code> and 2)<code>NameError</code>. I use the following code below that estimates the average:</p>
<pre><code>def calculate_average(number_list):
try:
if type(number_list) is not list:
raise Va... | [
{
"answer_id": 74476914,
"author": "becauseimbored",
"author_id": 20524149,
"author_profile": "https://Stackoverflow.com/users/20524149",
"pm_score": 2,
"selected": false,
"text": "var clockStarted = false;\n\nbuttonStart.onclick = function() {\n clearInterval(Interval);\n if (!clockSt... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8260088/"
] |
74,476,781 | <p>I am new to spring boot.
I have a class Comment which has a oneToMany relationship to the class User.
Now I want to create a Comment with a post request. But how can I pass only the userId of the user who writes the comment? So I can save this Object to the database.</p>
<p>I hope somebody could help me with this. I... | [
{
"answer_id": 74477354,
"author": "Manir Mahamat",
"author_id": 11185081,
"author_profile": "https://Stackoverflow.com/users/11185081",
"pm_score": 3,
"selected": true,
"text": "public class User {\n /**\n other attributes\n **/\n\n //relation with comment\n @OneToMany(cascade = Ca... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16909865/"
] |
74,476,784 | <p>Using get-adgroupmember to find the immediate members of a group is well-known. Likewise, adding the -recursive parameter is a well-known way to find all users that are members of a group. Is there a way to find all <em>groups</em> that are members of a group?</p>
<p>Background: One of my customers have had a nasty ... | [
{
"answer_id": 74478184,
"author": "Theo",
"author_id": 9898643,
"author_profile": "https://Stackoverflow.com/users/9898643",
"pm_score": 2,
"selected": false,
"text": "Get-ADGroupMember -Recursive function Get-NestedADGroup {\n Param (\n [Parameter(Mandatory = $true, ValueFrom... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1252439/"
] |
74,476,789 | <p>I have these two lists:</p>
<pre class="lang-cs prettyprint-override"><code>List<image> ImagesByPerimeterId
List<PerimeterTile> ImagesWithMorePerimeters
</code></pre>
<p>The context is the following:
I want to remove images that contain the id found in the <code>ImagesWithMorePerimeters</code> list from ... | [
{
"answer_id": 74478184,
"author": "Theo",
"author_id": 9898643,
"author_profile": "https://Stackoverflow.com/users/9898643",
"pm_score": 2,
"selected": false,
"text": "Get-ADGroupMember -Recursive function Get-NestedADGroup {\n Param (\n [Parameter(Mandatory = $true, ValueFrom... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19943087/"
] |
74,476,804 | <p>I am doing a course on SQL on MYSQL workbench. In the course I had an exercise in which I had to take an IN parameter value and save as an OUT parameter value for further use.</p>
<p>I came up with this query:-</p>
<pre><code>DROP PROCEDURE IF EXISTS avg_employee_sal_out;
DELIMITER $$
CREATE PROCEDURE avg_employee... | [
{
"answer_id": 74478184,
"author": "Theo",
"author_id": 9898643,
"author_profile": "https://Stackoverflow.com/users/9898643",
"pm_score": 2,
"selected": false,
"text": "Get-ADGroupMember -Recursive function Get-NestedADGroup {\n Param (\n [Parameter(Mandatory = $true, ValueFrom... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20530643/"
] |
74,476,810 | <p>Can someone please point me to the CSS precedence rules regarding "concatenated classes" vs "separated classes"?</p>
<p>Also, what are the correct terms for "concatenated classes" vs "separated classes" (I suspect that's why I can't find the documentation I'm looking for.)</p>... | [
{
"answer_id": 74478184,
"author": "Theo",
"author_id": 9898643,
"author_profile": "https://Stackoverflow.com/users/9898643",
"pm_score": 2,
"selected": false,
"text": "Get-ADGroupMember -Recursive function Get-NestedADGroup {\n Param (\n [Parameter(Mandatory = $true, ValueFrom... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/920599/"
] |
74,476,812 | <p>I am a beginner on Symfony 6 and I am blocked because I have an error message: "Undefined method getDoctrine" with Intelephense</p>
<p>Here is my code:</p>
<pre><code> #[Route('/recettes', name: 'app_recettes')]
public function index(int $id): Response
{
$em = $this->getDoctrine()->g... | [
{
"answer_id": 74477068,
"author": "Dylan KAS",
"author_id": 11350193,
"author_profile": "https://Stackoverflow.com/users/11350193",
"pm_score": 2,
"selected": true,
"text": "AbstractController use Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController; getDoctrine()->getManage... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20530690/"
] |
74,476,830 | <p>I have an SQL data table called sales that records product, quantity sold, unit price, and the date of the sale. I would like to create a view with monthly sales for chairs from 2000-2010. That is, for every unique month and year pair I would like to sum up quantity * unit_price where the product = "CHAIR"... | [
{
"answer_id": 74477068,
"author": "Dylan KAS",
"author_id": 11350193,
"author_profile": "https://Stackoverflow.com/users/11350193",
"pm_score": 2,
"selected": true,
"text": "AbstractController use Symfony\\Bundle\\FrameworkBundle\\Controller\\AbstractController; getDoctrine()->getManage... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476830",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13630719/"
] |
74,476,834 | <p>I have a fs2 Stream <code>Stream[F, C</code>] where <code>C <: Coproduct</code>. And I want to transform it into a <code>Stream[F, H]</code> where <code>H <: HList</code>. This HList should contain all members that the coproduct <code>C</code> had.</p>
<p>So, essentially, a <code>Pipe[F, C, H]</code> .</p>
<p... | [
{
"answer_id": 74521555,
"author": "Mateusz Kubuszok",
"author_id": 1305121,
"author_profile": "https://Stackoverflow.com/users/1305121",
"pm_score": 3,
"selected": true,
"text": "A :+: B :+: C :+: CNil A B A :: B :: C :: HNil HList Option[A] :: Option[B] :: Option[C] :: HNil import shap... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19703316/"
] |
74,476,845 | <p>With dplyr you can group by columns like this:</p>
<pre><code>library(dplyr)
df <- data.frame(a=c(1,2,1,3,1,4,1,5), b=c(2,3,4,1,2,3,4,5))
df %>%
group_by(a) %>%
summarise(count = n())
</code></pre>
<p>If I want to group by two columns all the guides say:</p>
<pre><code>df %>%
group_by(a,b) %>%
... | [
{
"answer_id": 74476887,
"author": "Juan C",
"author_id": 9462829,
"author_profile": "https://Stackoverflow.com/users/9462829",
"pm_score": 3,
"selected": true,
"text": "across group_by cols = colnames(df)\ndf %>%\n group_by(across({{cols}}) %>%\n summarise(count = n())\n"
},
{
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1652219/"
] |
74,476,862 | <p>Knowing that drools work with in memory data. Is there a way to distribute horizontally on different drools instances to enhance performance when performing CRUD operations on rules, fact types, etc? I guess the instances would need to be on sync with each other in some way, so they all have the same data in memory ... | [
{
"answer_id": 74476887,
"author": "Juan C",
"author_id": 9462829,
"author_profile": "https://Stackoverflow.com/users/9462829",
"pm_score": 3,
"selected": true,
"text": "across group_by cols = colnames(df)\ndf %>%\n group_by(across({{cols}}) %>%\n summarise(count = n())\n"
},
{
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19840953/"
] |
74,476,873 | <p>I am using cloud firestore + cloud functions + firestore auth to support my game.</p>
<p>I developed the main part of the app with unit tests in the app plus typescript tests for cloud functions. Now I want to add security rules to secure the data.</p>
<p>When I do so, requiring the calls to be authenticated, all my... | [
{
"answer_id": 74476887,
"author": "Juan C",
"author_id": 9462829,
"author_profile": "https://Stackoverflow.com/users/9462829",
"pm_score": 3,
"selected": true,
"text": "across group_by cols = colnames(df)\ndf %>%\n group_by(across({{cols}}) %>%\n summarise(count = n())\n"
},
{
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8618797/"
] |
74,476,929 | <p>How can I use <code>distinctUntilChanged()</code> but also add an expiry to it, which means if the same value is in the flow we still collect it because it was longer than <code>expiry</code> milliseconds after the previous duplicated value was emitted.</p>
<pre><code>flow {
emit("A") // printed
em... | [
{
"answer_id": 74477280,
"author": "Tenfour04",
"author_id": 506796,
"author_profile": "https://Stackoverflow.com/users/506796",
"pm_score": 3,
"selected": true,
"text": "havePreviousValue T null fun <T> Flow<T>.distinctUntilChanged(expiry: Long) = flow {\n var havePreviousValue = fal... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1502079/"
] |
74,476,930 | <p>I have a dictionary called <code>cc_dict</code> and am trying to use list comprehension to iterate over each key to find a match in a string called <code>new_string</code>. The line below works but it also matches keys that are part of whole words. I want to match whole words only.</p>
<p>So, for example, the key &q... | [
{
"answer_id": 74477280,
"author": "Tenfour04",
"author_id": 506796,
"author_profile": "https://Stackoverflow.com/users/506796",
"pm_score": 3,
"selected": true,
"text": "havePreviousValue T null fun <T> Flow<T>.distinctUntilChanged(expiry: Long) = flow {\n var havePreviousValue = fal... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16027663/"
] |
74,476,963 | <p>I have 2 arrays: I need to sort them in foreach to modify 1 file.</p>
<p>1 array with dbs name like:</p>
<pre><code>$dbs = ['Honda', 'Toyota', 'BMW', 'Opel']
</code></pre>
<p>2nd array with their size like:</p>
<pre><code>$dbsSize = ['123', '300', '222', '143']
</code></pre>
<p>and I can sort names in foreach like</... | [
{
"answer_id": 74477280,
"author": "Tenfour04",
"author_id": 506796,
"author_profile": "https://Stackoverflow.com/users/506796",
"pm_score": 3,
"selected": true,
"text": "havePreviousValue T null fun <T> Flow<T>.distinctUntilChanged(expiry: Long) = flow {\n var havePreviousValue = fal... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18644650/"
] |
74,476,981 | <p>in antd Form component there is validateTrigger property that can get a string or array of strings as value.when and why we should use array of strings?</p>
<p><a href="https://ant.design/components/form/#Form" rel="nofollow noreferrer">antd form api</a></p>
| [
{
"answer_id": 74477280,
"author": "Tenfour04",
"author_id": 506796,
"author_profile": "https://Stackoverflow.com/users/506796",
"pm_score": 3,
"selected": true,
"text": "havePreviousValue T null fun <T> Flow<T>.distinctUntilChanged(expiry: Long) = flow {\n var havePreviousValue = fal... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12510464/"
] |
74,476,987 | <p>I am developing an app on Visual Studio for Mac with Xcode. I have a Window Controller with Sidebar that gives you a split view controller that is split into a sidebar controller and a view controller.</p>
<p>Right now it looks like this:</p>
<p><a href="https://i.stack.imgur.com/tpDIN.png" rel="nofollow noreferrer"... | [
{
"answer_id": 74477280,
"author": "Tenfour04",
"author_id": 506796,
"author_profile": "https://Stackoverflow.com/users/506796",
"pm_score": 3,
"selected": true,
"text": "havePreviousValue T null fun <T> Flow<T>.distinctUntilChanged(expiry: Long) = flow {\n var havePreviousValue = fal... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20340982/"
] |
74,476,995 | <p>I have a text which need to be animated to show and hide with the value is null or not. it would have been straight forward if the visibility is separately handle, but this is what I got.
In the bellow code the enter animation works but the exit animation dont as the text value is null.
I can think of something with... | [
{
"answer_id": 74478074,
"author": "z.y",
"author_id": 19023745,
"author_profile": "https://Stackoverflow.com/users/19023745",
"pm_score": 2,
"selected": false,
"text": "text: String? ShowAnimatedText Text AnimatedVisibility(\n ...\n) {\n text?.let { // your'e directly observing a ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74476995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1608975/"
] |
74,477,009 | <p>I have a single table with ~ 1.5 mio entries and this query:</p>
<pre class="lang-sql prettyprint-override"><code>SELECT id
FROM abc.items as I
where revisit < '2022-11-17T00:00:00Z'
AND type = 10
AND firstdelivery = (
select min(firstdelivery)
from abc.items
... | [
{
"answer_id": 74478074,
"author": "z.y",
"author_id": 19023745,
"author_profile": "https://Stackoverflow.com/users/19023745",
"pm_score": 2,
"selected": false,
"text": "text: String? ShowAnimatedText Text AnimatedVisibility(\n ...\n) {\n text?.let { // your'e directly observing a ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1966723/"
] |
74,477,013 | <p>I need to POST a script by using BigCommerce API.
Here is the body</p>
<pre><code>{
"name": "string",
"description": "string",
"html": "string",
"src": "(function (sCDN, sCDNProject, sCDNWorkspace, sCDNVers) {
if (
window.lo... | [
{
"answer_id": 74478074,
"author": "z.y",
"author_id": 19023745,
"author_profile": "https://Stackoverflow.com/users/19023745",
"pm_score": 2,
"selected": false,
"text": "text: String? ShowAnimatedText Text AnimatedVisibility(\n ...\n) {\n text?.let { // your'e directly observing a ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19923865/"
] |
74,477,019 | <p>What I am thinking might be naive. But I want to split the rows [1:3] of df based on the second "_", using <code>tidyr::extract()</code></p>
<pre><code>library(tidyr)
library(dplyr)
extract(col1, into = c("col1", "col2"), "^(.*?_.*?)_(.*)$")
</code></pre>
<p>and the rows of d... | [
{
"answer_id": 74478074,
"author": "z.y",
"author_id": 19023745,
"author_profile": "https://Stackoverflow.com/users/19023745",
"pm_score": 2,
"selected": false,
"text": "text: String? ShowAnimatedText Text AnimatedVisibility(\n ...\n) {\n text?.let { // your'e directly observing a ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7179299/"
] |
74,477,028 | <p>I have written a C program in which I output the lowest and highest temperature with day of the week and time in the lower function. However, sometimes values are duplicated. How can I implement this in my function so that both times are displayed?</p>
<pre><code>
#include <stdio.h>
#include <ctype.h>
#i... | [
{
"answer_id": 74478074,
"author": "z.y",
"author_id": 19023745,
"author_profile": "https://Stackoverflow.com/users/19023745",
"pm_score": 2,
"selected": false,
"text": "text: String? ShowAnimatedText Text AnimatedVisibility(\n ...\n) {\n text?.let { // your'e directly observing a ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20401148/"
] |
74,477,082 | <p>I'm working on a script that checks (with If statements) if a variable contains a specific character. If a character is found the script executes some code. If a certain character cannot be found, the script will go into another If Statement to check if the variable contains another specific character, and so on.</p... | [
{
"answer_id": 74477197,
"author": "mju",
"author_id": 9197527,
"author_profile": "https://Stackoverflow.com/users/9197527",
"pm_score": 0,
"selected": false,
"text": "...\n\nif [[ \"$results\" == *\"specific character\"* ]]; then\n foundsmth=1\nfi\n\nif [[ -z ${foundsmth} ]] ; then\n... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14323669/"
] |
74,477,092 | <p>React newbie here.</p>
<p>I'm trying to make a multi-step form to get some details from the user and for some of the nested views, there are only radio buttons. The <code>handleChange</code> works fine on text type but how can I handle radio buttons?</p>
<p>React does not render the radio button that is used to rend... | [
{
"answer_id": 74477197,
"author": "mju",
"author_id": 9197527,
"author_profile": "https://Stackoverflow.com/users/9197527",
"pm_score": 0,
"selected": false,
"text": "...\n\nif [[ \"$results\" == *\"specific character\"* ]]; then\n foundsmth=1\nfi\n\nif [[ -z ${foundsmth} ]] ; then\n... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477092",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20054954/"
] |
74,477,100 | <p>in the Mbed OS System there is a library called RTX_Config.h . I need to change the value of this define in the lib.</p>
<pre><code>#ifndef OS_ISR_FIFO_QUEUE
#define OS_ISR_FIFO_QUEUE 16
#endif
</code></pre>
<p>could someone give me a hint, how the Mbed Configuring System works and if I'm able to overide t... | [
{
"answer_id": 74619623,
"author": "Jib",
"author_id": 20124358,
"author_profile": "https://Stackoverflow.com/users/20124358",
"pm_score": 0,
"selected": false,
"text": "// <o>ISR FIFO Queue \n// <4=> 4 entries <8=> 8 entries <12=> 12 entries <16=> 16 entries\n// <... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477100",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8078298/"
] |
74,477,108 | <p>So I have a list (shown below) and I need to randomly access one of the dictionaries in a list, and print it out:</p>
<p>e.g. Instagram, 346, Social media platform, United States</p>
<p>I've tried to google and search for it, but whatever I tried it didn't work. I know how to print out the whole list, but I don't kn... | [
{
"answer_id": 74619623,
"author": "Jib",
"author_id": 20124358,
"author_profile": "https://Stackoverflow.com/users/20124358",
"pm_score": 0,
"selected": false,
"text": "// <o>ISR FIFO Queue \n// <4=> 4 entries <8=> 8 entries <12=> 12 entries <16=> 16 entries\n// <... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477108",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17442745/"
] |
74,477,154 | <p>I have an output of a dataframe below, into a dictionary.</p>
<pre><code>{0: ['RevitCategory', 'Door'],
1: ['DesignModelID', 'ModelA_Rev1'],
2: ['DesignObjectID', 'ModelA_Rev1_Object1'],
3: ['TypeName', 'ARC_DOR_INTERNAL'],
4: ['Function', 'Internal'],
5: ['Uniclass2015_Ss', 'Ss_25_30_20_25 : Doorset systems'],... | [
{
"answer_id": 74619623,
"author": "Jib",
"author_id": 20124358,
"author_profile": "https://Stackoverflow.com/users/20124358",
"pm_score": 0,
"selected": false,
"text": "// <o>ISR FIFO Queue \n// <4=> 4 entries <8=> 8 entries <12=> 12 entries <16=> 16 entries\n// <... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477154",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20479479/"
] |
74,477,182 | <p>I have a list of names like below</p>
<p><code>100m LJ SP HJ 400m </code></p>
<p>I would like to have this in the following format:</p>
<p><code>"100m", "LJ", "SP", "HJ", "400m"</code></p>
<p>Is there any function that preexisted in R?</p>
| [
{
"answer_id": 74619623,
"author": "Jib",
"author_id": 20124358,
"author_profile": "https://Stackoverflow.com/users/20124358",
"pm_score": 0,
"selected": false,
"text": "// <o>ISR FIFO Queue \n// <4=> 4 entries <8=> 8 entries <12=> 12 entries <16=> 16 entries\n// <... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2890129/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.