qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,619,638 | <p>I have a pandas dataframe <code>df</code> which looks as follows:</p>
<pre><code>A B C D E F G H I J
Values
A NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
B NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
C yes NaN NaN NaN NaN NaN NaN NaN NaN NaN
D NaN yes NaN NaN N... | [
{
"answer_id": 74619756,
"author": "Mustafa Aydın",
"author_id": 9332187,
"author_profile": "https://Stackoverflow.com/users/9332187",
"pm_score": 3,
"selected": true,
"text": "In [242]: df.notna().dot(df.columns + \", \").str[:-2]\nOut[242]:\nA\nB\nC A\nD B\nE B, C\nF\nG ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12276279/"
] |
74,619,659 | <p>I think I might have found a bug in the <code>strtotime()</code> function.</p>
<p>My application uses unix timestamps to set events for certain days. I use relative time format string in conjunction with these timestamps.</p>
<p>I made this minimal code to reproduce the bug:</p>
<pre><code><?php
echo "Last d... | [
{
"answer_id": 74619768,
"author": "gaetan-hexadog",
"author_id": 20637850,
"author_profile": "https://Stackoverflow.com/users/20637850",
"pm_score": 2,
"selected": true,
"text": "<?php\necho \"Last day of \".date('M-Y', 1677628800).\" is: \".date('M-d-Y', strtotime('last day of this mo... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619659",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16781639/"
] |
74,619,661 | <p>In Xamarin.Forms we want to add a new button using</p>
<pre><code> f001content = new Xamarin.Forms.AbsoluteLayout;
f001content.Children.Add(new Button
{
Text = "Button",
AutomationId = "MyButton",
}, new Rectangle(0,0,100,40));
</code></pre>
<p>How c... | [
{
"answer_id": 74619713,
"author": "Andrew",
"author_id": 8395242,
"author_profile": "https://Stackoverflow.com/users/8395242",
"pm_score": 1,
"selected": false,
"text": "var coolButton = new Button { Text = \"Button\", AutomationId = \"MyButton\" };\nf001content.Children.Add(coolButton,... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1252790/"
] |
74,619,663 | <p>I'm trying to redirect to the created page after I've filled out and submitted a form. I have gotten it to work on the update form but not the create form. How do i do this?</p>
<p>Here's what I have so far. Let me know if you need more details and code</p>
<p>views.py</p>
<pre><code>@login_required(login_url='logi... | [
{
"answer_id": 74620228,
"author": "SamSparx",
"author_id": 18799377,
"author_profile": "https://Stackoverflow.com/users/18799377",
"pm_score": 2,
"selected": true,
"text": "Room room room = Room.objects.create(\n"
},
{
"answer_id": 74620708,
"author": "Olasubomi",
"autho... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619663",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17998744/"
] |
74,619,796 | <p>I have a webpage with multiple thumbnails all positioned side-by-side. When an image is clicked, a modal window pops up displaying a larger version of the image and a close button. I want the window to change its image src when one of the image "buttons" is clicked. So i have attempted to put an attribute ... | [
{
"answer_id": 74620228,
"author": "SamSparx",
"author_id": 18799377,
"author_profile": "https://Stackoverflow.com/users/18799377",
"pm_score": 2,
"selected": true,
"text": "Room room room = Room.objects.create(\n"
},
{
"answer_id": 74620708,
"author": "Olasubomi",
"autho... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17172160/"
] |
74,619,807 | <p>I have a simple CSV file with 4 columns. I am trying to use the OwnerEmail column and Azure AD (or On-Prem Active Directory) to populate the employee ID column using PowerShell.</p>
<p>Original:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Employee ID</th>
<th>DepartmentNumber</th>
<t... | [
{
"answer_id": 74620228,
"author": "SamSparx",
"author_id": 18799377,
"author_profile": "https://Stackoverflow.com/users/18799377",
"pm_score": 2,
"selected": true,
"text": "Room room room = Room.objects.create(\n"
},
{
"answer_id": 74620708,
"author": "Olasubomi",
"autho... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11110921/"
] |
74,619,812 | <p>How to make downward triangle from 5 to 1</p>
<pre><code>function segitiga(baris) {
let pola = '';
for (let i = 1; i <= baris; i++) {
for (let j = baris; j >= i; j--) {
pola += i;
}
pola += '\n';
} return pola;
} console.log(segitiga(5));
</code></pre>
<p>Output</p>
<pre><code>11111
222... | [
{
"answer_id": 74620228,
"author": "SamSparx",
"author_id": 18799377,
"author_profile": "https://Stackoverflow.com/users/18799377",
"pm_score": 2,
"selected": true,
"text": "Room room room = Room.objects.create(\n"
},
{
"answer_id": 74620708,
"author": "Olasubomi",
"autho... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9797797/"
] |
74,619,823 | <p>I have an array of objects with an array that contains other objects. I'm trying to work out how I can filter the first objects based on data inside the array of second objects</p>
<pre><code>[{
object1Name: "test",
secondaryObjects: [
{
second2Name: "test-again"
data: &qu... | [
{
"answer_id": 74620228,
"author": "SamSparx",
"author_id": 18799377,
"author_profile": "https://Stackoverflow.com/users/18799377",
"pm_score": 2,
"selected": true,
"text": "Room room room = Room.objects.create(\n"
},
{
"answer_id": 74620708,
"author": "Olasubomi",
"autho... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619823",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18030965/"
] |
74,619,838 | <p>I am trying to convert some html files to json.
From the beginning: I downloaded a kind of old dataset called <code>SarcasmAmazonReviewsCorpus</code>. It has several txt files, all with comments, reactions, name of product and so on, as it follows in the image:</p>
<p><a href="https://i.stack.imgur.com/yFEhZ.png" re... | [
{
"answer_id": 74620228,
"author": "SamSparx",
"author_id": 18799377,
"author_profile": "https://Stackoverflow.com/users/18799377",
"pm_score": 2,
"selected": true,
"text": "Room room room = Room.objects.create(\n"
},
{
"answer_id": 74620708,
"author": "Olasubomi",
"autho... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19522687/"
] |
74,619,847 | <p>I have a Cloud SQL instance with hundreds of databases, one for each customer. Each database has the same tables in it, but data only for the specific customer.</p>
<p>What I want to do with it, is transform in various ways so to get an overview table with all of the customers. Unfortunately, I cannot seem to find a... | [
{
"answer_id": 74620228,
"author": "SamSparx",
"author_id": 18799377,
"author_profile": "https://Stackoverflow.com/users/18799377",
"pm_score": 2,
"selected": true,
"text": "Room room room = Room.objects.create(\n"
},
{
"answer_id": 74620708,
"author": "Olasubomi",
"autho... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20637442/"
] |
74,619,885 | <p>I was wondering how to find elements that end in <code>%</code> and remove the <code>%</code> sign from those elements?</p>
<pre><code>data <- read.table(text="
COURSE CLASE GROUP_A GROUP_B
algebra 1 25% 8%
algebra 2 35% 9%
number_theory 3 1... | [
{
"answer_id": 74619945,
"author": "Vida",
"author_id": 9620304,
"author_profile": "https://Stackoverflow.com/users/9620304",
"pm_score": 1,
"selected": false,
"text": "mydata <- read.table(text=\"\n COURSE CLASE GROUP_A GROUP_B\n algebra 1 25% ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16760971/"
] |
74,619,887 | <p>Im trying to generate a password in Bash that matches MacOS password requirements and one of them is that it can't have repeated characters (aa, bb, 44, 00, etc).</p>
<p>I know i can use <code>openssl rand -base64</code> or <code>/dev/urandom</code> and use <code>tr -d</code> to manipulate the output string. I use <... | [
{
"answer_id": 74619945,
"author": "Vida",
"author_id": 9620304,
"author_profile": "https://Stackoverflow.com/users/9620304",
"pm_score": 1,
"selected": false,
"text": "mydata <- read.table(text=\"\n COURSE CLASE GROUP_A GROUP_B\n algebra 1 25% ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20637970/"
] |
74,619,926 | <p>I want to fit the video to the screen and scrolling needs to be disabled.</p>
<p><strong>Problem:</strong> <br>
Instead of being full screen it is overflowing from the screen.</p>
<p>What am I doing wrong here?</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<style>
.videosize {
position... | [
{
"answer_id": 74619945,
"author": "Vida",
"author_id": 9620304,
"author_profile": "https://Stackoverflow.com/users/9620304",
"pm_score": 1,
"selected": false,
"text": "mydata <- read.table(text=\"\n COURSE CLASE GROUP_A GROUP_B\n algebra 1 25% ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74619926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20638017/"
] |
74,620,046 | <p>I have a connect and disconnect table. I need to find out how many people disconnected and reconnected have at least one matching phone number. Both tables have columns Telephone_Number, Primrary_Number and Alternate_phone_number.</p>
<pre><code>FROM CONN_UNIVERSE CU
LEFT JOIN DISC_UNIVERSE DU
ON (
D... | [
{
"answer_id": 74620363,
"author": "Thorsten Kettner",
"author_id": 2270762,
"author_profile": "https://Stackoverflow.com/users/2270762",
"pm_score": 1,
"selected": false,
"text": "COALESCE SELECT\n cu.some_column,\n COALESCE(du1.colx, du2.colx, du3.colx, du4.colx, du5.colx, du6.colx, ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620046",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10273357/"
] |
74,620,049 | <p>I need to invalidate some queries in the <code>onSuccess</code> of an <code>useMutation</code>.</p>
<p>I have a <code>queryKey</code> schema like this:</p>
<pre><code>.....
1-["questions", "by_vendor" , "{vendor_code}" , "by_status", "{status}"]
2-["questions&qu... | [
{
"answer_id": 74621753,
"author": "Chad S.",
"author_id": 5274205,
"author_profile": "https://Stackoverflow.com/users/5274205",
"pm_score": 2,
"selected": false,
"text": "return useQuery(\n ['questions', { by_vendor: vendor, by_status: status }],\n async ({queryKey}) => {\n // Stuf... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620049",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17200950/"
] |
74,620,092 | <p><em>So I'm trying to combine the output of these two statements:</em></p>
<pre><code>SELECT COUNT (CUSTOMER_ID) FROM CUSTOMER WHERE MILES BETWEEN 3 AND 5;
</code></pre>
<p><em>This total gives me 8</em></p>
<pre><code>SELECT COUNT (CUSTOMER_ID) FROM CUSTOMER;
</code></pre>
<p>*This total gives me 20 (total number of... | [
{
"answer_id": 74621753,
"author": "Chad S.",
"author_id": 5274205,
"author_profile": "https://Stackoverflow.com/users/5274205",
"pm_score": 2,
"selected": false,
"text": "return useQuery(\n ['questions', { by_vendor: vendor, by_status: status }],\n async ({queryKey}) => {\n // Stuf... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620092",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20638149/"
] |
74,620,099 | <p>I need to capture the aggregated number of items in each subcategories and categories. Each category has the same finite set of subcategories.There is a finite set of category as well. I intend to capture the aggregation using this schema:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>... | [
{
"answer_id": 74620562,
"author": "ChrisWue",
"author_id": 220986,
"author_profile": "https://Stackoverflow.com/users/220986",
"pm_score": 1,
"selected": false,
"text": "narrow() datatable(Timestamp: datetime, CatA_Sub1: int, CatA_Sub2: int, CatB_Sub1: int) [\n datetime(2022-11-28 11... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4092412/"
] |
74,620,121 | <p>How and where is the head list implemented in task 83 on leetcode? Where is it initialized? Can you please write the code for this in what it would look like in a regular editor?</p>
<p>Here is the solution:</p>
<pre><code>public ListNode deleteDuplicates(ListNode head) {
if(head==null || head.next==null)return ... | [
{
"answer_id": 74620202,
"author": "Thomas Kläger",
"author_id": 5646962,
"author_profile": "https://Stackoverflow.com/users/5646962",
"pm_score": 0,
"selected": false,
"text": "ListNode source = new ListNode(1, new ListNode(1, new ListNode(2)));\n\nListNode result = new Solution().delet... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17274825/"
] |
74,620,123 | <p>I'm working in BigQuery and I have some URLs, let's say they looks like this:</p>
<pre><code>URL
https://www.newssite.com/news/biden-rail-strike/12345/UTM=company-Library/
https://www.newssite.com/news/news-about-today-exiting/55690/
https://www.nytimes.com/2022/11/29/us/politics/biden-rail-strike.html
https://www.d... | [
{
"answer_id": 74620972,
"author": "Ricco D",
"author_id": 14733669,
"author_profile": "https://Stackoverflow.com/users/14733669",
"pm_score": 0,
"selected": false,
"text": "with sample_data as (\nselect 'https://www.newssite.com/news/biden-rail-strike/12345/UTM=company-Library/' as url\... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10778372/"
] |
74,620,126 | <p>Trying to make a button event onMouseDown, a function should run at the end of the set amount of time. The function runs onMouseDown and clears the interval onMouseUp, but the interval still runs after releasing the button.</p>
<p>This is the code currently. I have the interval global and set it in the planting func... | [
{
"answer_id": 74620188,
"author": "Martinez",
"author_id": 19027584,
"author_profile": "https://Stackoverflow.com/users/19027584",
"pm_score": 3,
"selected": true,
"text": "useRef ref import { useRef } from \"react\";\n\nconst PlantDefuser = () => {\n const interval = useRef();\n\n fu... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620126",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14030389/"
] |
74,620,166 | <p>I want to get the information about the people followed by the Twitter account "POTUS" in a dictionary. My code:</p>
<pre><code>import tweepy, json
client = tweepy.Client(bearer_token=x)
id = client.get_user(username="POTUS").data.id
users = client.get_users_following(id=id, user_fields=['crea... | [
{
"answer_id": 74620188,
"author": "Martinez",
"author_id": 19027584,
"author_profile": "https://Stackoverflow.com/users/19027584",
"pm_score": 3,
"selected": true,
"text": "useRef ref import { useRef } from \"react\";\n\nconst PlantDefuser = () => {\n const interval = useRef();\n\n fu... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20638190/"
] |
74,620,173 | <p>I would like to know if it is the optimal way to set values on a array</p>
<pre><code>fun setParameters(myArray: MutableList<Symbol>, instance: MutationData){
myArray.forEachIndexed { index, valArr ->
myArray[index] = setValues(valArr, members?.settings)
myArray[index] = setVal... | [
{
"answer_id": 74620358,
"author": "Jiya",
"author_id": 12017533,
"author_profile": "https://Stackoverflow.com/users/12017533",
"pm_score": 2,
"selected": false,
"text": "mapIndexed myArray.mapIndexed { index, valArr ->\n setValues(valArr, members?.settings)\n setValueForBy... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19898656/"
] |
74,620,193 | <p>A want to check if input string is in right format</p>
<pre><code>"%d/%d"
</code></pre>
<p>For example, when the input will be</p>
<pre><code>"3/5"
return 1;
</code></pre>
<p>And when the input will be</p>
<pre><code>"3/5f"
return 0;
</code></pre>
<p>I have idea to do this using regex,... | [
{
"answer_id": 74620358,
"author": "Jiya",
"author_id": 12017533,
"author_profile": "https://Stackoverflow.com/users/12017533",
"pm_score": 2,
"selected": false,
"text": "mapIndexed myArray.mapIndexed { index, valArr ->\n setValues(valArr, members?.settings)\n setValueForBy... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620193",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18905898/"
] |
74,620,209 | <p>I have a dictionary with lists (with strings inside) and I need I need to check if a string appears anywhere among those lists.
Here is an example</p>
<pre><code>classes = {
"class_A" : ["Mike","Alice","Peter"],
"class_B" : ["Sam","Robert",&qu... | [
{
"answer_id": 74620253,
"author": "trincot",
"author_id": 5459839,
"author_profile": "https://Stackoverflow.com/users/5459839",
"pm_score": 2,
"selected": false,
"text": "def check(student, classes):\n return any(student in value for value in classes.values())\n def checkall(students, ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620209",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20199109/"
] |
74,620,214 | <p>I have seen names within square brackets in a site's CSS:</p>
<pre class="lang-css prettyprint-override"><code>/* simplified example */
body {
grid-template-columns:
[main-menu]
20%
[content]
40%
[asides]
20%
[ads]
20%
;
}
</code></pre>
<p>... | [
{
"answer_id": 74620506,
"author": "Temani Afif",
"author_id": 8620333,
"author_profile": "https://Stackoverflow.com/users/8620333",
"pm_score": 2,
"selected": false,
"text": "body {\n display: grid;\n grid-template-columns: \n [main-menu] \n 20%\n [content] \n... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1658543/"
] |
74,620,231 | <p>I'm a university student. and the teacher wants me to pass multiple strings to function. The answer output is correct but I wonder what the warning is why it shows and how to fix it in my case.</p>
<p>I try to figure it out but so many times I search. It just contains the other case and no one this like my case (usi... | [
{
"answer_id": 74620266,
"author": "Ted Lyngmo",
"author_id": 7582247,
"author_profile": "https://Stackoverflow.com/users/7582247",
"pm_score": 0,
"selected": false,
"text": "int hydroxide(char (*message)[100], int size);\n char[100] if(hydroxide(&message[i], size) == 1)\n// ^\... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20079730/"
] |
74,620,239 | <p>I need to write a report in SSRS</p>
<p>I need the numbers to display as listed below</p>
<p>0.3555 is displayed as 0.35</p>
<p>0 is displayed as 0 Instead I get 0.00</p>
<p>So far I have =FormatNumber(Fields!Day3.Value, 2) to only have two decimal but now I need it to be 0 when there is no decimal How do I do that?... | [
{
"answer_id": 74620266,
"author": "Ted Lyngmo",
"author_id": 7582247,
"author_profile": "https://Stackoverflow.com/users/7582247",
"pm_score": 0,
"selected": false,
"text": "int hydroxide(char (*message)[100], int size);\n char[100] if(hydroxide(&message[i], size) == 1)\n// ^\... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18356622/"
] |
74,620,273 | <p>I have application with drawing option using jQuery. On Desktop everything works well but lines are not drawn on mobile devices. On touchmove and touchstart I can trigger console logs but line is not show. Here is my code so far:</p>
<pre><code><script src="https://code.jquery.com/jquery-3.5.1.min.js"&g... | [
{
"answer_id": 74620266,
"author": "Ted Lyngmo",
"author_id": 7582247,
"author_profile": "https://Stackoverflow.com/users/7582247",
"pm_score": 0,
"selected": false,
"text": "int hydroxide(char (*message)[100], int size);\n char[100] if(hydroxide(&message[i], size) == 1)\n// ^\... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7202135/"
] |
74,620,284 | <p>I faced a problem with com.netflix.eureka:eureka-client:2.0.0-rc.4 <a href="https://i.stack.imgur.com/qqkAC.png" rel="nofollow noreferrer">build</a></p>
<p>(Sorry for pom screenshots, was too much code here)</p>
<p><a href="https://i.stack.imgur.com/ts2SZ.png" rel="nofollow noreferrer">pom1</a></p>
<p><a href="https... | [
{
"answer_id": 74620266,
"author": "Ted Lyngmo",
"author_id": 7582247,
"author_profile": "https://Stackoverflow.com/users/7582247",
"pm_score": 0,
"selected": false,
"text": "int hydroxide(char (*message)[100], int size);\n char[100] if(hydroxide(&message[i], size) == 1)\n// ^\... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14375179/"
] |
74,620,285 | <p>I have a dataframe and I need to find the most acess hour from the day. I think i need to do some for loops to store the values and after find the most acess hour.</p>
<p>My code until now is:</p>
<p><code>df['date_time'] = pd.to_datetime(df['date_time']) </code></p>
<p>This me return:</p>
<pre><code>0 2022-11-2... | [
{
"answer_id": 74620266,
"author": "Ted Lyngmo",
"author_id": 7582247,
"author_profile": "https://Stackoverflow.com/users/7582247",
"pm_score": 0,
"selected": false,
"text": "int hydroxide(char (*message)[100], int size);\n char[100] if(hydroxide(&message[i], size) == 1)\n// ^\... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18334056/"
] |
74,620,324 | <p>using <code>Getx</code>, when I have a <code>GetxController</code> and I want to use it inside my view UI, it required removing <code>const</code> on the widget constructor :</p>
<p>Controller :</p>
<pre><code>class TestController extends GetxController {
// ...
}
</code></pre>
<p>View :</p>
<pre><code> class TextWi... | [
{
"answer_id": 74620325,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 1,
"selected": true,
"text": "build() Get.put() final controller = Get.put(TestController());\n const getter GetxController TestController get con... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18670641/"
] |
74,620,364 | <p>I am trying to understand chain assignment in Python.</p>
<p>If I run <code>x = x[1] = [1, 2]</code>, I get an infinite list <code>[1, [...]]</code>.</p>
<p>But if I run <code>x = x[1:] = [1, 2]</code>, I will get a normal list <code>[1, 1, 2]</code>.</p>
<p>How does it work in the background to make these two diffe... | [
{
"answer_id": 74620393,
"author": "John Gordon",
"author_id": 494134,
"author_profile": "https://Stackoverflow.com/users/494134",
"pm_score": 0,
"selected": false,
"text": "x = x[1] = [1, 2]\n x x[1] ... x = x[1:] = [1, 2]\n x"
},
{
"answer_id": 74620523,
"author": "Jiya",
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20638160/"
] |
74,620,380 | <p>The idea is that there are two models: Group and Player. My objective is that there are different Groups and each group has players. Each player can belong to one or more groups. Inside a group, each player has some points accumulated, but the same player can have different points accumulated in another group.</p>
<... | [
{
"answer_id": 74620393,
"author": "John Gordon",
"author_id": 494134,
"author_profile": "https://Stackoverflow.com/users/494134",
"pm_score": 0,
"selected": false,
"text": "x = x[1] = [1, 2]\n x x[1] ... x = x[1:] = [1, 2]\n x"
},
{
"answer_id": 74620523,
"author": "Jiya",
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20637100/"
] |
74,620,396 | <p>I have recently learned how to read ppm3(P3) images in C++. I just read RGB pixels written in a plain format. I want to convert some certain jpg pictures to ppm3 and then experiment with different things, like identifying numbers there, the circled answers in exam papers, etc.</p>
<p>I have tried this website: <a hr... | [
{
"answer_id": 74620447,
"author": "Mark Setchell",
"author_id": 2836621,
"author_profile": "https://Stackoverflow.com/users/2836621",
"pm_score": 1,
"selected": false,
"text": "magick INPUT.JPG -compress none OUTPUT.PPM\n -compress none convert INPUT.JPG -compress none OUTPUT.PPM\n magi... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8576092/"
] |
74,620,401 | <p>I am working on what i thought is a simple algorithm:</p>
<blockquote>
<p>Task: Look at the given array, take only the even numbers and multiply them by 2. The catch is to modify the array in its place and NOT create a new array.</p>
</blockquote>
<p>I can loop/map through an array and figure out what numbers are e... | [
{
"answer_id": 74620496,
"author": "Carsten Massmann",
"author_id": 2610061,
"author_profile": "https://Stackoverflow.com/users/2610061",
"pm_score": 0,
"selected": false,
"text": "const arr=[1,2,3,4,5,6,7,8,9,10];\n\nfor (let i=arr.length-1;i>=0;i--)\n if(arr[i]%2>0) arr.splice(i,1)\na... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18992987/"
] |
74,620,449 | <p>I have dialog fragment and i set my custom view to it. I want to make it with round corners and im using CardView for it, but the shape of dialog is still rectangle. Here is my view:</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android=&... | [
{
"answer_id": 74620496,
"author": "Carsten Massmann",
"author_id": 2610061,
"author_profile": "https://Stackoverflow.com/users/2610061",
"pm_score": 0,
"selected": false,
"text": "const arr=[1,2,3,4,5,6,7,8,9,10];\n\nfor (let i=arr.length-1;i>=0;i--)\n if(arr[i]%2>0) arr.splice(i,1)\na... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19971105/"
] |
74,620,455 | <p>I can't seem to find a ready answer to this, or even if the question has ever been asked before, but I want functionality similar to the SQL STRING_SPLIT functions floating around, where each item in a comma separated list is identified by its ordinal in the string.</p>
<p>Given the string "abc,xyz,def,tuv"... | [
{
"answer_id": 74620586,
"author": "Vic F",
"author_id": 4054386,
"author_profile": "https://Stackoverflow.com/users/4054386",
"pm_score": 0,
"selected": false,
"text": "string[] vals = new[] { \"abc\", \"xyz\", \"dev\", \"tuv\"};\n\nstring[] results = new string[vals.Length];\n\nint ind... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/594448/"
] |
74,620,471 | <p>I have 2 dict objects with the same key but different elements.I would like to merge them into one dict.</p>
<p>First, I used append and it works but append is deprecated so that I prefer to use concat.</p>
<p>here is the code :</p>
<pre><code>data1 = {'a':1, 'b':2}
data2 = {'a':3, 'b':4}
list = [data1, data2]
df ... | [
{
"answer_id": 74620586,
"author": "Vic F",
"author_id": 4054386,
"author_profile": "https://Stackoverflow.com/users/4054386",
"pm_score": 0,
"selected": false,
"text": "string[] vals = new[] { \"abc\", \"xyz\", \"dev\", \"tuv\"};\n\nstring[] results = new string[vals.Length];\n\nint ind... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11779489/"
] |
74,620,474 | <p>I am having trouble with some basic IO operations using Clojure. I have a text file which I need to read, split with the "|" character, and enter into a list for later processing. Here are the contents of my text file:</p>
<pre><code>1|John Smith|123 Here Street|456-4567
2|Sue Jones|43 Rose Court Street|3... | [
{
"answer_id": 74620709,
"author": "Alan Thompson",
"author_id": 1822379,
"author_profile": "https://Stackoverflow.com/users/1822379",
"pm_score": 0,
"selected": false,
"text": "((defn ... (ns tst.demo.core\n (:use demo.core tupelo.core tupelo.test)\n (:require\n [tupelo.csv :as csv... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17360950/"
] |
74,620,478 | <p>Working on a project for my bootcamp course, I was using my MacBook when writing the code for the index and it looked great. I have now switched over to my desktop and realized the footer is not at the bottom of my page. I have tried googling a solution but thus far nothing has worked to fix this. I also would have ... | [
{
"answer_id": 74620709,
"author": "Alan Thompson",
"author_id": 1822379,
"author_profile": "https://Stackoverflow.com/users/1822379",
"pm_score": 0,
"selected": false,
"text": "((defn ... (ns tst.demo.core\n (:use demo.core tupelo.core tupelo.test)\n (:require\n [tupelo.csv :as csv... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20550590/"
] |
74,620,494 | <p>So I have a list of tuples which looks like:</p>
<pre><code>[(1, 60),
(1, 93),
(1, 104),
(1, 145),
(1, 159),
(4, 20),
(4, 30),
(4, 103),
(8, 8),
(9, 35),
(9, 172),
(9, 191),
(10, 33),
(10, 164),
(10, 185)]
</code></pre>
<p>However, the numbers on the left side of the tuple should all be unique. So I wo... | [
{
"answer_id": 74620531,
"author": "Ricardo",
"author_id": 16353662,
"author_profile": "https://Stackoverflow.com/users/16353662",
"pm_score": 2,
"selected": true,
"text": "test = [(1, 60),\n (1, 93),\n (1, 104),\n (1, 145),\n (1, 159),\n (4, 20),\n (4, 30),\n (4, 103),\n (8, 8),\n (9, 3... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620494",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20142969/"
] |
74,620,538 | <p>I cannot send data of <code><textarea></code> to node js, Node js don't see the my sent data.</p>
<p>For Fetch data to Node Js</p>
<pre><code>
continueBtn.addEventListener("click", async () => {
console.log(myMsg.value)
console.log(typeof(myMsg.value))
... | [
{
"answer_id": 74620583,
"author": "Quentin",
"author_id": 19068,
"author_profile": "https://Stackoverflow.com/users/19068",
"pm_score": 2,
"selected": false,
"text": "body text/plain req.body text/plain body Content-Type"
},
{
"answer_id": 74620609,
"author": "c0d3ster",
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20540520/"
] |
74,620,602 | <p>I'd like to calculate a lagged rolling average on a complicated time-series dataset. Consider the toy example as follows:</p>
<pre class="lang-py prettyprint-override"><code>import numpy as np
import pandas as pd
np.random.seed(101)
fruit = ['apples', 'apples', 'apples', 'oranges', 'apples', 'oranges', 'oranges',... | [
{
"answer_id": 74620583,
"author": "Quentin",
"author_id": 19068,
"author_profile": "https://Stackoverflow.com/users/19068",
"pm_score": 2,
"selected": false,
"text": "body text/plain req.body text/plain body Content-Type"
},
{
"answer_id": 74620609,
"author": "c0d3ster",
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620602",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4942417/"
] |
74,620,623 | <p>So I struggle only with part of task included in the title but my WHOLE task is to write linux bash script which is supposed to:</p>
<ol>
<li>read user name
if user found, print their UID, default shell, print home directory and groups they belong to
if user not found - create one with given $name</li>
<li>for each ... | [
{
"answer_id": 74622285,
"author": "Eric Marceau",
"author_id": 9716110,
"author_profile": "https://Stackoverflow.com/users/9716110",
"pm_score": 1,
"selected": false,
"text": "find . -mindepth 1 -maxdepth 1 -user ${owner} \\( ! -name 'summary.txt' \\) -print0 | sed 's+^\\./++' | xargs -... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20435110/"
] |
74,620,653 | <p>Example data:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>some_parent_id</th>
<th>some_parent_name</th>
<th>some_subset_name</th>
<th>some_subset_id</th>
<th>address</th>
</tr>
</thead>
<tbody>
<tr>
<td>123456</td>
<td>SPECIAL</td>
<td>special_shop</td>
<td>9876</td>
<td>1234 road st... | [
{
"answer_id": 74622285,
"author": "Eric Marceau",
"author_id": 9716110,
"author_profile": "https://Stackoverflow.com/users/9716110",
"pm_score": 1,
"selected": false,
"text": "find . -mindepth 1 -maxdepth 1 -user ${owner} \\( ! -name 'summary.txt' \\) -print0 | sed 's+^\\./++' | xargs -... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20576980/"
] |
74,620,655 | <p>Suppose I have a <code>numpy</code> array (or <code>pandas</code> <code>Series</code> if it makes it any easier), which looks like this:</p>
<pre><code>foo = np.array([1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0])
</code></pre>
<p>I want to transform into an array</p>
<pre><code>bar = np.array([0, 1, 2, 3, 4,0, 1, 2, 0, 1, 2... | [
{
"answer_id": 74620808,
"author": "BENY",
"author_id": 7964527,
"author_profile": "https://Stackoverflow.com/users/7964527",
"pm_score": 3,
"selected": false,
"text": "cumcount pandas s = pd.Series(foo)\nbar = s.groupby(s.cumsum()).cumcount().to_numpy()\nOut[13]: array([0, 1, 2, 3, 4, 0... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2977256/"
] |
74,620,662 | <p>So, I'm working on this project and I added the following trigger to check age eligibility.</p>
<pre><code>create or replace TRIGGER AGEVALIDATION
BEFORE INSERT OR UPDATE ON RECIPIENT
FOR EACH ROW
BEGIN
IF (EXTRACT (YEAR FROM SYSDATE) - EXTRACT (YEAR FROM :NEW.DATE_OF_BIRTH)) < 12 THEN
raise_application_err... | [
{
"answer_id": 74620832,
"author": "MT0",
"author_id": 1509264,
"author_profile": "https://Stackoverflow.com/users/1509264",
"pm_score": 1,
"selected": false,
"text": "2022-01-01 2010-12-31 MONTHS_BETWEEN create or replace TRIGGER AGEVALIDATION \n BEFORE INSERT OR UPDATE ON RECIPIENT \n... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620662",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10828315/"
] |
74,620,671 | <p>I'm creating a dynamic sidebar in a Document with a Google Apps Scripts sidebar served by HTMLService.</p>
<p>In the client-side sidebar template script, I can find my container via a jQuery selector and dynamically append DOM buttons to it, but I cannot remove any button elements from the same container (which is b... | [
{
"answer_id": 74620832,
"author": "MT0",
"author_id": 1509264,
"author_profile": "https://Stackoverflow.com/users/1509264",
"pm_score": 1,
"selected": false,
"text": "2022-01-01 2010-12-31 MONTHS_BETWEEN create or replace TRIGGER AGEVALIDATION \n BEFORE INSERT OR UPDATE ON RECIPIENT \n... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3138756/"
] |
74,620,682 | <pre class="lang-html prettyprint-override"><code>
<div class="inputs">
<input type="text" id="title" placeholder="tilte">
<div class="price">
<input type="number" id="price" placeholder="price&qu... | [
{
"answer_id": 74620832,
"author": "MT0",
"author_id": 1509264,
"author_profile": "https://Stackoverflow.com/users/1509264",
"pm_score": 1,
"selected": false,
"text": "2022-01-01 2010-12-31 MONTHS_BETWEEN create or replace TRIGGER AGEVALIDATION \n BEFORE INSERT OR UPDATE ON RECIPIENT \n... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20638607/"
] |
74,620,728 | <p>I have a table that looks like the following:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Type</th>
<th>Number</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
<td>1</td>
</tr>
<tr>
<td>B</td>
<td>2</td>
</tr>
<tr>
<td>E</td>
<td>3</td>
</tr>
<tr>
<td>C</td>
<td>4</td>
</tr>
<tr>
<td>D</t... | [
{
"answer_id": 74620832,
"author": "MT0",
"author_id": 1509264,
"author_profile": "https://Stackoverflow.com/users/1509264",
"pm_score": 1,
"selected": false,
"text": "2022-01-01 2010-12-31 MONTHS_BETWEEN create or replace TRIGGER AGEVALIDATION \n BEFORE INSERT OR UPDATE ON RECIPIENT \n... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620728",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20636182/"
] |
74,620,762 | <p>I want to remove icons from my website using CSS</p>
<p><a href="https://i.stack.imgur.com/O2eb4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O2eb4.png" alt="enter image description here" /></a></p>
<p>You can see it here <a href="https://www.stormyark.de/hksv" rel="nofollow noreferrer">https:/... | [
{
"answer_id": 74620785,
"author": "Charles Yang",
"author_id": 13101880,
"author_profile": "https://Stackoverflow.com/users/13101880",
"pm_score": 1,
"selected": false,
"text": "display: none;"
},
{
"answer_id": 74620831,
"author": "Dark ShadoW",
"author_id": 20637210,
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17790109/"
] |
74,620,768 | <p>I have tried to combine the two files into 1 common <code>manifestAB.txt</code> file. This is a snippet of my <code>assembly.xml</code> file.</p>
<pre><code><files>
<file>
<source>src/resources/manifestA</source>
<outputDirectory>./</outputDirectory>
&l... | [
{
"answer_id": 74620785,
"author": "Charles Yang",
"author_id": 13101880,
"author_profile": "https://Stackoverflow.com/users/13101880",
"pm_score": 1,
"selected": false,
"text": "display: none;"
},
{
"answer_id": 74620831,
"author": "Dark ShadoW",
"author_id": 20637210,
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1265077/"
] |
74,620,774 | <p>I want to allocate memory for a two-dimensional array (matrix) and write the sums of the diagonals in a separate one-dimensional array. So my code has an array of pointers to pointers,</p>
<pre><code>int N, ** matrix = NULL;
matrix = (int**) malloc(sizeof(int*) * N);
</code></pre>
<p>I fill it and then I create an a... | [
{
"answer_id": 74620866,
"author": "tstanisl",
"author_id": 4989451,
"author_profile": "https://Stackoverflow.com/users/4989451",
"pm_score": 3,
"selected": true,
"text": "diagonals malloc() calloc() diagonals = calloc(diag, sizeof *diagonals);\n"
},
{
"answer_id": 74620868,
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20276903/"
] |
74,620,828 | <p>I have the following dataframe <strong><code>df</code></strong>:</p>
<pre><code> topic num
0 a01 1
1 a01 1
2 a01 2
3 a02 1
4 a02 3
5 a02 2
6 a02 3
7 a03 2
8 a03 1
</code></pre>
<p>And I need to create a new dataframe <strong><code>newdf</code></strong>, wher... | [
{
"answer_id": 74620866,
"author": "tstanisl",
"author_id": 4989451,
"author_profile": "https://Stackoverflow.com/users/4989451",
"pm_score": 3,
"selected": true,
"text": "diagonals malloc() calloc() diagonals = calloc(diag, sizeof *diagonals);\n"
},
{
"answer_id": 74620868,
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20638561/"
] |
74,620,829 | <p>i have problem with translated query, ToList(), AsEnumerable etc.</p>
<p>I need construct or create query which is shared.</p>
<p>Branches -> Customer -> some collection -> some collection
Customer -> some collection -> some collection.</p>
<p>Do you help me how is the best thingh how to do it and sha... | [
{
"answer_id": 74620866,
"author": "tstanisl",
"author_id": 4989451,
"author_profile": "https://Stackoverflow.com/users/4989451",
"pm_score": 3,
"selected": true,
"text": "diagonals malloc() calloc() diagonals = calloc(diag, sizeof *diagonals);\n"
},
{
"answer_id": 74620868,
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11352680/"
] |
74,620,846 | <p>I have two solutions in Visual Studio. Solution A is my website and Solution B is just a reference in Solution A. However a function from Solution B is throwing an error when I call it in Solution A. However since it is complied code I can't actually step through the function.</p>
<p>My question, since I have access... | [
{
"answer_id": 74620866,
"author": "tstanisl",
"author_id": 4989451,
"author_profile": "https://Stackoverflow.com/users/4989451",
"pm_score": 3,
"selected": true,
"text": "diagonals malloc() calloc() diagonals = calloc(diag, sizeof *diagonals);\n"
},
{
"answer_id": 74620868,
... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18224693/"
] |
74,620,852 | <p>I am writing a function that works as follows it receives list of numbers e.g [0.5,-0.5,1]
then it returns a list with this in each index[(-0.5-0.5) + (1-0.5)]. In other words, it adds the difference between the current value and the other values. So the output should be [-0.5,2.5,-2]</p>
<pre><code>def Calculate(i... | [
{
"answer_id": 74621038,
"author": "joanis",
"author_id": 3216427,
"author_profile": "https://Stackoverflow.com/users/3216427",
"pm_score": 0,
"selected": false,
"text": "Calculate() initial_opinion Calculate(np.array([0.5, -0.5, 1]), 5)\n"
},
{
"answer_id": 74621085,
"author... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20232879/"
] |
74,620,854 | <p>I have an array called "data" which contains the following information.</p>
<pre><code>[['amazon',
'phone',
'serious',
'mind',
'blown',
'serious',
'enjoy',
'use',
'applic',
'full',
'blown',
'websit',
'allow',
'quick',
'track',
'packag',
'descript',
'say'],
['would',
'sa... | [
{
"answer_id": 74621038,
"author": "joanis",
"author_id": 3216427,
"author_profile": "https://Stackoverflow.com/users/3216427",
"pm_score": 0,
"selected": false,
"text": "Calculate() initial_opinion Calculate(np.array([0.5, -0.5, 1]), 5)\n"
},
{
"answer_id": 74621085,
"author... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620854",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20503504/"
] |
74,620,855 | <p>So I am trying to make a custom component that inserts a icon.svg from a specific directory in my assets. The component loads in fine and custom attributes work too, however when they try to look for the image I get a 404 error.</p>
<p><img src="https://i.stack.imgur.com/J4SOG.png" alt="enter image description here"... | [
{
"answer_id": 74621038,
"author": "joanis",
"author_id": 3216427,
"author_profile": "https://Stackoverflow.com/users/3216427",
"pm_score": 0,
"selected": false,
"text": "Calculate() initial_opinion Calculate(np.array([0.5, -0.5, 1]), 5)\n"
},
{
"answer_id": 74621085,
"author... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20638676/"
] |
74,620,898 | <p>How to Write a program that receive a number from the input at each step and continue to work until zero is entered. After the zero digit is entered, this program should print the sum of the entered numbers. I want to get n different numbers in n different lines and it stops when it reaches Zero</p>
<p><strong>For ... | [
{
"answer_id": 74621038,
"author": "joanis",
"author_id": 3216427,
"author_profile": "https://Stackoverflow.com/users/3216427",
"pm_score": 0,
"selected": false,
"text": "Calculate() initial_opinion Calculate(np.array([0.5, -0.5, 1]), 5)\n"
},
{
"answer_id": 74621085,
"author... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620898",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17721501/"
] |
74,620,908 | <p>I have a React project written in JS that I am converting to TS. Using JS, this works:</p>
<pre><code>import { ReactComponent as IconPerson } from '../../../icons/person.svg';
</code></pre>
<p>Using TS, I get this error:</p>
<blockquote>
<p>Cannot find module '../../../icons/person.svg' or its corresponding type dec... | [
{
"answer_id": 74621038,
"author": "joanis",
"author_id": 3216427,
"author_profile": "https://Stackoverflow.com/users/3216427",
"pm_score": 0,
"selected": false,
"text": "Calculate() initial_opinion Calculate(np.array([0.5, -0.5, 1]), 5)\n"
},
{
"answer_id": 74621085,
"author... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2262604/"
] |
74,620,909 | <p>If I use Row() instead of Center(), it will not be displayed,just blank.</p>
<p>I expect a music player like layout.
Make 2 Row, the 1st Row contain "LeftMenu" and "Expanded Container" for content .</p>
| [
{
"answer_id": 74621038,
"author": "joanis",
"author_id": 3216427,
"author_profile": "https://Stackoverflow.com/users/3216427",
"pm_score": 0,
"selected": false,
"text": "Calculate() initial_opinion Calculate(np.array([0.5, -0.5, 1]), 5)\n"
},
{
"answer_id": 74621085,
"author... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19583956/"
] |
74,620,911 | <p>The scenario is to mimic rolling 3 six-sided die in Prolog while trying to obey the recursive nature of prolog. This is easily done with the <a href="https://www.youtube.com/watch?v=sHo6-hk21L8" rel="nofollow noreferrer">Fibonacci series</a></p>
<pre><code>n_factorial(N, F) :-
N #> 0,
F #= N*F1,
N1 #= N-1... | [
{
"answer_id": 74621038,
"author": "joanis",
"author_id": 3216427,
"author_profile": "https://Stackoverflow.com/users/3216427",
"pm_score": 0,
"selected": false,
"text": "Calculate() initial_opinion Calculate(np.array([0.5, -0.5, 1]), 5)\n"
},
{
"answer_id": 74621085,
"author... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2035811/"
] |
74,620,931 | <p>I have a spreadsheet that my company uses to submit and track orders. There is a submit button on the order form and it uses the code below to execute. The problem is that it does not work on mobile. Instead of launching the code it just selects the image. I have read I may be able to do a work around with a checkbo... | [
{
"answer_id": 74621038,
"author": "joanis",
"author_id": 3216427,
"author_profile": "https://Stackoverflow.com/users/3216427",
"pm_score": 0,
"selected": false,
"text": "Calculate() initial_opinion Calculate(np.array([0.5, -0.5, 1]), 5)\n"
},
{
"answer_id": 74621085,
"author... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19047952/"
] |
74,620,938 | <p>I'm developing an Android app with Kotlin.</p>
<p>For example I have an access token which I get on my LoginActivity and I need this access token on each activity to call API. I know that I could use putExtra() and getExtra(), but it doesn't make sense to write this code for each new activity.</p>
<p>Is there a way ... | [
{
"answer_id": 74621038,
"author": "joanis",
"author_id": 3216427,
"author_profile": "https://Stackoverflow.com/users/3216427",
"pm_score": 0,
"selected": false,
"text": "Calculate() initial_opinion Calculate(np.array([0.5, -0.5, 1]), 5)\n"
},
{
"answer_id": 74621085,
"author... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3484533/"
] |
74,620,973 | <p>I have a <code>.txt</code> file that I am attempting to read in pandas. When I open the <code>.txt</code> file, I see it has the content and data I expect. However, when I read the file in pandas, the data is missing and I only <code>NaNs</code>.</p>
<p>here's sample content from <code>.txt</code> file:</p>
<pre><co... | [
{
"answer_id": 74621038,
"author": "joanis",
"author_id": 3216427,
"author_profile": "https://Stackoverflow.com/users/3216427",
"pm_score": 0,
"selected": false,
"text": "Calculate() initial_opinion Calculate(np.array([0.5, -0.5, 1]), 5)\n"
},
{
"answer_id": 74621085,
"author... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74620973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3380902/"
] |
74,621,055 | <p>I'm trying to get all the possible combinations of a 3d array.
I found a lot of answers for one- or two-dimensional arrays with recursive functions but no solution works for a deeper nested array.</p>
<p>The array structure is always the same (three levels), but the length of each level can change.</p>
<p>example co... | [
{
"answer_id": 74630804,
"author": "Scott Sauyet",
"author_id": 1243641,
"author_profile": "https://Stackoverflow.com/users/1243641",
"pm_score": 0,
"selected": false,
"text": "cartesian const cartesian = ([xs, ...xss]) =>\n xs == undefined ? [[]] : xs .flatMap (x => cartesian (xss) .ma... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20638199/"
] |
74,621,056 | <p>I need to know that what is the error in my code because everything is correct but form data could not be submitted and in php file the error popups that undefined index lname while submiting the form that means form is submitting through jquery but data is not going in backend. so please resolve this error or help ... | [
{
"answer_id": 74621208,
"author": "Phil",
"author_id": 283366,
"author_profile": "https://Stackoverflow.com/users/283366",
"pm_score": 1,
"selected": false,
"text": "id=\"subButton\" formSubmit $('#contact-form').submit() jQuery onClick <button type=\"submit\" class=\"btn btn-primary\">... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19117931/"
] |
74,621,070 | <p>I have a problem in calculating the shortest path through BFS algorithm in Java.</p>
<p>When I tried to define a path from Node 0 to Node 7 , I got this result. <code>(0 -> 2 -> 3 -> 4 -> 5)</code></p>
<p>How can I fix the issue?</p>
<p>Here is my Node Class</p>
<pre><code>public class Node {
private f... | [
{
"answer_id": 74621509,
"author": "Alexander Ivanchenko",
"author_id": 17949945,
"author_profile": "https://Stackoverflow.com/users/17949945",
"pm_score": 3,
"selected": true,
"text": "Map 4 -> 6 4 -> 5 destination destination source HashSet public static List<Node> getDirections(Node s... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5719229/"
] |
74,621,107 | <p>How can I fill the area between two curves (Kaplan-Meier) limited to a especific time, in the figure (by example, x=40) where the length of "x" and "y" differ.
x1= km<a href="https://i.stack.imgur.com/jI1nV.jpg" rel="nofollow noreferrer">1</a>$time y1=km<a href="https://i.stack.imgur.com/jI1nV.j... | [
{
"answer_id": 74621509,
"author": "Alexander Ivanchenko",
"author_id": 17949945,
"author_profile": "https://Stackoverflow.com/users/17949945",
"pm_score": 3,
"selected": true,
"text": "Map 4 -> 6 4 -> 5 destination destination source HashSet public static List<Node> getDirections(Node s... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621107",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18017716/"
] |
74,621,129 | <p>In the <a href="https://doc.rust-lang.org/book/ch10-00-generics.html" rel="nofollow noreferrer">Rust official doc</a>, there is a code sample as:</p>
<pre><code>fn main() {
let number_list = vec![34, 50, 25, 100, 65];
let result = largest(&number_list);
println!("The largest number is {}",... | [
{
"answer_id": 74621276,
"author": "Matias Bertoni",
"author_id": 19272564,
"author_profile": "https://Stackoverflow.com/users/19272564",
"pm_score": 0,
"selected": false,
"text": "ref"
},
{
"answer_id": 74621284,
"author": "9bO3av5fw5",
"author_id": 6712861,
"author_... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7062272/"
] |
74,621,143 | <p>I have a method in my Interface that retrieves all records from my Room Database as a LiveData List. My method is as follows:</p>
<pre><code> @Query("SELECT *FROM task_table ORDER BY taskId DESC")
fun getAll():LiveData<List<Task>>
</code></pre>
<p>I have the following code in my ViewModel c... | [
{
"answer_id": 74621276,
"author": "Matias Bertoni",
"author_id": 19272564,
"author_profile": "https://Stackoverflow.com/users/19272564",
"pm_score": 0,
"selected": false,
"text": "ref"
},
{
"answer_id": 74621284,
"author": "9bO3av5fw5",
"author_id": 6712861,
"author_... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6998445/"
] |
74,621,213 | <p>I am writing a program in Angular which displays short texts. In these texts I want to blur a certain substring, EACH time it occurs.</p>
<p>E.g. Tomorrow I will have to go to London. Tomorrow is the day it will happen. My only hope is tomorrow.</p>
<p>Here I would want to blur the text 'tomorrow', three times.
Some... | [
{
"answer_id": 74622008,
"author": "Leonid Shvab",
"author_id": 20639512,
"author_profile": "https://Stackoverflow.com/users/20639512",
"pm_score": 2,
"selected": false,
"text": ".highlighted {\n opacity: .3;\n}\n\n<p id=\"text\">Tomorrow I will have to go to London. Tomorrow is the day... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10936870/"
] |
74,621,217 | <p>I have a df (reference image) that I create that shows an aggregation of all the combinations each publisher has to another and then does calculations based on said pair(s). <a href="https://i.stack.imgur.com/IVDiV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IVDiV.jpg" alt="enter image descrip... | [
{
"answer_id": 74621270,
"author": "G5W",
"author_id": 4752675,
"author_profile": "https://Stackoverflow.com/users/4752675",
"pm_score": 3,
"selected": true,
"text": "df[grep('^[^,]+,[^,]+$', df$publishers),]\n"
},
{
"answer_id": 74621278,
"author": "Andy Baxter",
"author... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11692944/"
] |
74,621,267 | <pre><code>import pygame
import os
WIDTH, HEIGHT = 900, 500
WIN = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("First Game!")
WHITE = (255, 255, 255)
FPS = 60
SPACESHIP_WIDTH, SPACESHIP_HEIGHT = 55, 40
YELLOW_SPACESHIP_IMAGE = pygame.image.load(
os.path.join('Assets', 'spaceship_... | [
{
"answer_id": 74621270,
"author": "G5W",
"author_id": 4752675,
"author_profile": "https://Stackoverflow.com/users/4752675",
"pm_score": 3,
"selected": true,
"text": "df[grep('^[^,]+,[^,]+$', df$publishers),]\n"
},
{
"answer_id": 74621278,
"author": "Andy Baxter",
"author... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20636522/"
] |
74,621,283 | <p>I have been trying to find a solution to this problem for a little while now and all the answers don't seem to be quite what I'm looking for.</p>
<p>I'm sure the answer to this is probably simple and I'm overthinking it.</p>
<p>I've been trying to have a table next to a barplot which corresponds to the same observat... | [
{
"answer_id": 74621375,
"author": "Andy Baxter",
"author_id": 10744082,
"author_profile": "https://Stackoverflow.com/users/10744082",
"pm_score": 2,
"selected": false,
"text": "patchwork library(tidyverse)\nlibrary(patchwork)\n\ndata <- mtcars %>% select(mpg, disp, cyl, qsec) %>% rownam... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621283",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20638922/"
] |
74,621,288 | <p><a href="https://i.stack.imgur.com/VJNrn.png" rel="nofollow noreferrer">Dataframe</a>Basically, Im trying to give the team in the snitchCatcher variable + 5 goals in their specific homeGoals/awayGoals variable.
`</p>
<pre><code>ifelse(Df$snitchCatcher == "home",
Df$homeGoals + 5,
Df$awayGoa... | [
{
"answer_id": 74621375,
"author": "Andy Baxter",
"author_id": 10744082,
"author_profile": "https://Stackoverflow.com/users/10744082",
"pm_score": 2,
"selected": false,
"text": "patchwork library(tidyverse)\nlibrary(patchwork)\n\ndata <- mtcars %>% select(mpg, disp, cyl, qsec) %>% rownam... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20616820/"
] |
74,621,306 | <p>I am hoping to find the winning percentage for the NBA only (cell F18). Here is the formula for winning percentage: sum(wins)/(sum(losses)+sum(wins)).</p>
<p>In the example I use below there are 4 games that have been played. 3 of these games are for the NBA, the other is for the NHL (which I do not need).</p>
<p>Th... | [
{
"answer_id": 74621375,
"author": "Andy Baxter",
"author_id": 10744082,
"author_profile": "https://Stackoverflow.com/users/10744082",
"pm_score": 2,
"selected": false,
"text": "patchwork library(tidyverse)\nlibrary(patchwork)\n\ndata <- mtcars %>% select(mpg, disp, cyl, qsec) %>% rownam... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10244126/"
] |
74,621,340 | <p>I am trying to implement redis using the packages : "CacheModule" and "cache-manager-redis-store". The latter brings me a type error when assigning it to the store property of the register method of CacheModule.</p>
<p>code where the error occurs:</p>
<p>`</p>
<pre><code>import { Module, CacheMod... | [
{
"answer_id": 74621375,
"author": "Andy Baxter",
"author_id": 10744082,
"author_profile": "https://Stackoverflow.com/users/10744082",
"pm_score": 2,
"selected": false,
"text": "patchwork library(tidyverse)\nlibrary(patchwork)\n\ndata <- mtcars %>% select(mpg, disp, cyl, qsec) %>% rownam... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10402159/"
] |
74,621,353 | <p>I am not sure how to gather the values of each input from the while loop to find product of 4 numbers, I am gathering 4 number inputs. cannot use array list</p>
<pre><code> int numbers =0;
int a;
while (numbers <= 3) {
Scanner in = new Scanner(System.in);
System.out.println("Enter ... | [
{
"answer_id": 74621375,
"author": "Andy Baxter",
"author_id": 10744082,
"author_profile": "https://Stackoverflow.com/users/10744082",
"pm_score": 2,
"selected": false,
"text": "patchwork library(tidyverse)\nlibrary(patchwork)\n\ndata <- mtcars %>% select(mpg, disp, cyl, qsec) %>% rownam... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621353",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20639122/"
] |
74,621,354 | <p>I have a client that wants to have a checkbox that says "Mark as Compete" and once marked it makes the div with content fade. They basically want a step by step list like a recipe where users can check the box when they are done with a step and have it fade out.</p>
<p>I have been able to do so but not in ... | [
{
"answer_id": 74621375,
"author": "Andy Baxter",
"author_id": 10744082,
"author_profile": "https://Stackoverflow.com/users/10744082",
"pm_score": 2,
"selected": false,
"text": "patchwork library(tidyverse)\nlibrary(patchwork)\n\ndata <- mtcars %>% select(mpg, disp, cyl, qsec) %>% rownam... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15652286/"
] |
74,621,357 | <p>I'd like to have button in excel that insert a row and then merge the first three columns as well.</p>
<p>below is my code. It makes the row but it doesn not merge the columns. I just started VBA today so I assume it might be a syntax error.</p>
<p>Can someone assist pls?
Cheers</p>
<p>my vba code:</p>
<pre><code>Su... | [
{
"answer_id": 74621870,
"author": "Tim Williams",
"author_id": 478884,
"author_profile": "https://Stackoverflow.com/users/478884",
"pm_score": 0,
"selected": false,
"text": "Sub AddRow()\n Dim ws As Worksheet, rowNum As Long 'use Long instead of Integer\n On Error Resume Next 'ign... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20639118/"
] |
74,621,360 | <p>I want to create a new column <code>diff</code> aqualing the differenciation of a series in a nother column.</p>
<p>The following is my dataframe:</p>
<pre><code>df=pd.DataFrame({
'series_1' : [10.1, 15.3, 16, 12, 14.5, 11.8, 2.3, 7.7,5,10],
'series_2' : [9.6,10.4, 11.2, 3.3, 6, 4, 1.94, 15.44, 6.17, 8.16]
}... | [
{
"answer_id": 74621373,
"author": "Naveed",
"author_id": 3494754,
"author_profile": "https://Stackoverflow.com/users/3494754",
"pm_score": 3,
"selected": true,
"text": "\n# create a new col by taking difference b/w consecutive rows of DF using diff\ndf['diff_2']=df['series_2'].diff()\nd... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15852600/"
] |
74,621,387 | <p>I'm looking to validate a chess <a href="https://en.wikipedia.org/wiki/Forsyth%E2%80%93Edwards_Notation" rel="nofollow noreferrer">FEN</a> string and I'm working on the Regex for it. I'm looking to implement only very simple validation. Here are the rules I'm looking to match with my regex:</p>
<ul>
<li>Exactly 7 &q... | [
{
"answer_id": 74621373,
"author": "Naveed",
"author_id": 3494754,
"author_profile": "https://Stackoverflow.com/users/3494754",
"pm_score": 3,
"selected": true,
"text": "\n# create a new col by taking difference b/w consecutive rows of DF using diff\ndf['diff_2']=df['series_2'].diff()\nd... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14538687/"
] |
74,621,388 | <p>I have a dataframe like so:</p>
<pre><code>ID <- c('A','A','A','A','A','A','A','A','A','A','A','A','A','A','A','A' )
BRR <- c(62,57,66,53,54,50,55,65,71,53,51,50,58,54,55,57)
val1 <- c(1,1,1,1,1,1,1,2,2,2,3,3,3,3,3,3)
val2 <- c(0,0,0,0,0,0,0,1,1,1,2,2,2,2,2,2)
df <- data.frame(ID, BRR, val1, val2)
</... | [
{
"answer_id": 74621502,
"author": "ncraig",
"author_id": 13110995,
"author_profile": "https://Stackoverflow.com/users/13110995",
"pm_score": 1,
"selected": false,
"text": "val2 val1 val1 == val2 mutate() dplyr library(dplyr)\n df |> group_by(val1, val2) |> \n mutate(Max_val_KP = max(BR... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13932170/"
] |
74,621,424 | <p>I built a javascript gallery (no libraries) for presentation slides as images. prev/next buttons should cycle through the array regardless of its size.
Desired bevavior
Next button: 1,2,3,4,5,0,1,2...
Prev button: 5,4,3,2,1,0,5,4...</p>
<p>Issues</p>
<ol>
<li>change in count doesn't always change the image</li>
<li>... | [
{
"answer_id": 74621502,
"author": "ncraig",
"author_id": 13110995,
"author_profile": "https://Stackoverflow.com/users/13110995",
"pm_score": 1,
"selected": false,
"text": "val2 val1 val1 == val2 mutate() dplyr library(dplyr)\n df |> group_by(val1, val2) |> \n mutate(Max_val_KP = max(BR... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20638943/"
] |
74,621,464 | <p>Imagine the model Event like this</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>name</th>
<th>email</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
<td>u1@example.org</td>
</tr>
<tr>
<td>B</td>
<td>u1@example.org</td>
</tr>
<tr>
<td>B</td>
<td>u1@example.org</td>
</tr>
<tr>
<td>C</td>
<td>... | [
{
"answer_id": 74621976,
"author": "Niko",
"author_id": 7100120,
"author_profile": "https://Stackoverflow.com/users/7100120",
"pm_score": 0,
"selected": false,
"text": "from django.db import connection\n\ndef get_random_events(request):\n cursor = connection.cursor()\n cursor.execu... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/866886/"
] |
74,621,465 | <p>I have a process that create a quote divided in different test cases:</p>
<p><a href="https://i.stack.imgur.com/34l4W.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>in the first IT I have the cy.visit which visit the login page of my page filling it with user and password
"the issue appe... | [
{
"answer_id": 74621676,
"author": "Graciella",
"author_id": 20639409,
"author_profile": "https://Stackoverflow.com/users/20639409",
"pm_score": 2,
"selected": false,
"text": "describe('before logged in', () => {\n it(\"Login into the system\", function () {\n cy.visit(Cypress.env(\"... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20638973/"
] |
74,621,475 | <p>Given a ring, together with a bijection to another set (n.b. set not type), it ought to be "trivial" to define the (unique) induced ring structure on the "other set" that makes the bijection an isomorphism. But my proof that tries to use this takes 101 lines (plus definitions and lemmas). Is ther... | [
{
"answer_id": 74643437,
"author": "Charles Staats",
"author_id": 2318074,
"author_profile": "https://Stackoverflow.com/users/2318074",
"pm_score": 0,
"selected": false,
"text": "ring_iso_imp_img_ring theory InducedRing\n imports \"HOL-Algebra.QuotRing\"\nbegin\n\nlemma induced_ring:\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2318074/"
] |
74,621,497 | <p>I am new to PowerBi.
I would like to get a table on PowerIb, from this <a href="https://hptrial.pythonanywhere.com/rest_api_data" rel="nofollow noreferrer">JSON API</a></p>
<p>Sample of data:</p>
<pre><code>{"data": [{"user_id": 54710, "hp_user_id": 5806514, "username": "... | [
{
"answer_id": 74622318,
"author": "Je Je",
"author_id": 1536343,
"author_profile": "https://Stackoverflow.com/users/1536343",
"pm_score": -1,
"selected": false,
"text": "= let\n Source = Json.Document(Web.Contents(\"https://hptrial.pythonanywhere.com/rest_api_data\")),\n data = So... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1536343/"
] |
74,621,515 | <p>I'm a django developer and I'm new to htmx.
I was wondering if there was an easy way to implement the onselect event in htmx.</p>
<p>I have the following dropdown:</p>
<p><a href="https://i.stack.imgur.com/vMPJo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vMPJo.png" alt="Change user role on se... | [
{
"answer_id": 74622318,
"author": "Je Je",
"author_id": 1536343,
"author_profile": "https://Stackoverflow.com/users/1536343",
"pm_score": -1,
"selected": false,
"text": "= let\n Source = Json.Document(Web.Contents(\"https://hptrial.pythonanywhere.com/rest_api_data\")),\n data = So... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621515",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14580830/"
] |
74,621,520 | <p>I have a list containing tuples and I would like to remove tuples that contain words in the first position of the tuple based on words from a second list.</p>
<pre><code>list_of_tuples = [
("apple",2),
("banana",54),
("flower", 5),
("apple",4),
("fruit", 3)
]
lis... | [
{
"answer_id": 74621584,
"author": "Nimrod Shanny",
"author_id": 20631164,
"author_profile": "https://Stackoverflow.com/users/20631164",
"pm_score": 2,
"selected": true,
"text": "list_of_tuples = [\n (\"apple\", 2),\n (\"banana\", 54),\n (\"flower\", 5),\n (\"apple\", 4),\n ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74621520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14916069/"
] |
74,621,552 | <p>I can't understand the behaviour of <code>pandas.rolling.apply</code> with <code>np.prod</code> and NaNs. E.g.</p>
<pre><code>import pandas as pd
import numpy as np
df = pd.DataFrame({'B': [1, 1, 2, np.nan, 4], 'C': [1, 2, 3, 4, 5]}, index=pd.date_range('2013-01-01', '2013-01-05'))
</code></pre>
<p>Gives this datafr... | [
{
"answer_id": 74623958,
"author": "padu",
"author_id": 16591526,
"author_profile": "https://Stackoverflow.com/users/16591526",
"pm_score": 1,
"selected": false,
"text": "import pandas as pd\nimport numpy as np\n\n\ndef foo(x):\n return np.prod(x, where=~np.isnan(x))\n\n\nif __name__ ... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74621552",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1588847/"
] |
74,621,578 | <h2>This is a jshint warning question.How can I solve this problem?</h2>
<pre><code>var comment_btn=document.querySelector('.comment_button');
var comment_ul=document.querySelector('.comment_ul');
var comment_text=document.querySelector('#comment');
comment_btn.onclick = function(){
var comment_li = document.creat... | [
{
"answer_id": 74623958,
"author": "padu",
"author_id": 16591526,
"author_profile": "https://Stackoverflow.com/users/16591526",
"pm_score": 1,
"selected": false,
"text": "import pandas as pd\nimport numpy as np\n\n\ndef foo(x):\n return np.prod(x, where=~np.isnan(x))\n\n\nif __name__ ... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74621578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20639300/"
] |
74,621,586 | <p>I have an xml file with multiple elements with the same key elements with the same name. I'm trying to concatonate the sub elements but can only get the first occurrence.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<FOLDER JOBNAME="some Job" MAXWAIT="5">... | [
{
"answer_id": 74623958,
"author": "padu",
"author_id": 16591526,
"author_profile": "https://Stackoverflow.com/users/16591526",
"pm_score": 1,
"selected": false,
"text": "import pandas as pd\nimport numpy as np\n\n\ndef foo(x):\n return np.prod(x, where=~np.isnan(x))\n\n\nif __name__ ... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74621586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7583449/"
] |
74,621,598 | <p>I am trying to redirect the user after entering the correct credentials, but my frontend is putting out this Error "Uncaught (in promise) TypeError: navigator is undefined". I couldn't really find any solution so I was hoping to get some help here.</p>
<p>This is is the part of my code which throws the err... | [
{
"answer_id": 74621673,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 0,
"selected": false,
"text": " const redirect = useNavigate();\n async function handleLogin() {\n try {\n const success = await Api.log... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74621598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19478799/"
] |
74,621,618 | <p>I have a stored procedure <code>GetVideo</code> in a SQL Server 2019 database that does this:</p>
<pre><code>select
[video.id] = vid,
[video.title] = title
from
videos
for json path, root('x');
</code></pre>
<p>Which returns this JSON:</p>
<pre><code>{
"x":
[
{
"vide... | [
{
"answer_id": 74621673,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 0,
"selected": false,
"text": " const redirect = useNavigate();\n async function handleLogin() {\n try {\n const success = await Api.log... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74621618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5063031/"
] |
74,621,633 | <p>I have a state array of object and i want to concat each URL of an object with all the URLs of the previous objects of it:</p>
<pre><code> navigation:[
{
"type": "LINK",
"uri": "arbress"
},
{
"type": "LINK",
... | [
{
"answer_id": 74621673,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 0,
"selected": false,
"text": " const redirect = useNavigate();\n async function handleLogin() {\n try {\n const success = await Api.log... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74621633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19567750/"
] |
74,621,761 | <p>I am working on a multi-language book, and I need to find and replace all hyphens with en-dashes that occur between numbers in the citations section. I need to avoid all hyphens that exist between roman letters.</p>
<p>If I use a GREP [0-9]-[0-9] it selects the numbers before and after the hyphen and I have to manua... | [
{
"answer_id": 74631333,
"author": "cybernetic.nomad",
"author_id": 8260484,
"author_profile": "https://Stackoverflow.com/users/8260484",
"pm_score": 2,
"selected": true,
"text": "(?<=[0-9])-(?=[0-9])\n"
},
{
"answer_id": 74634579,
"author": "The fourth bird",
"author_id"... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74621761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20639478/"
] |
74,621,810 | <p>I have a regex in JS</p>
<p>const messageArray = message.split(/(?<!\r)\n/gm)</p>
<p>Below is my 'message'.</p>
<pre><code>'Hello, please can you send &#163;100.00 to MNBVCXZLSTERIA1 on 04/08/21 \n\nhttps://www.co-operativebank.co.uk/help-and-support/faqs/accounts/savings/isas/ \r\nwhat-happens-if-i-put-to... | [
{
"answer_id": 74631333,
"author": "cybernetic.nomad",
"author_id": 8260484,
"author_profile": "https://Stackoverflow.com/users/8260484",
"pm_score": 2,
"selected": true,
"text": "(?<=[0-9])-(?=[0-9])\n"
},
{
"answer_id": 74634579,
"author": "The fourth bird",
"author_id"... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74621810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9581091/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.