qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,461,593 | <h2>Background</h2>
<p>I am trying to create an embedded schema that needs to save information about orders.
Sometimes orders have no <code>customer_id</code> and that is fine (for the application).</p>
<pre><code>defmodule Order do
use Ecto.Schema
embedded_schema do
field(:customer_id, :integer | nil)
fie... | [
{
"answer_id": 74461930,
"author": "BenFenner",
"author_id": 14837782,
"author_profile": "https://Stackoverflow.com/users/14837782",
"pm_score": 0,
"selected": false,
"text": "num = 6.6\nnum.is_a?(Integer)\n=> false\nnum.is_a?(Float)\n=> true\n num = 6\nnum.is_a?(Integer)\n=> true\nnum.i... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1337392/"
] |
74,461,607 | <p>I am working with <code>jira</code> api and in one of request I get the response with date field in format like this: <code>2022-10-26T09:34:00.000+0000</code>. I need to convert this to <code>LocalDate</code> but I do not know how to to this with this strange format.
Here are some of formats I already tried:</p>
<p... | [
{
"answer_id": 74461930,
"author": "BenFenner",
"author_id": 14837782,
"author_profile": "https://Stackoverflow.com/users/14837782",
"pm_score": 0,
"selected": false,
"text": "num = 6.6\nnum.is_a?(Integer)\n=> false\nnum.is_a?(Float)\n=> true\n num = 6\nnum.is_a?(Integer)\n=> true\nnum.i... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20036372/"
] |
74,461,698 | <p>I receive input data like that into a web service developed using a Genexus Procedure:
<code>SmsMessageSid=SM7e1ab417617176ec9936788235aaf020&NumMedia=0&ProfileName=Checho&SmsSid=SM7e1ab417617176ec9936788235aaf045&WaId=5699999999&SmsStatus=received&Body=**Este+es+un+texto+lago+que+incluye+%3A... | [
{
"answer_id": 74464895,
"author": "ealmeida",
"author_id": 320646,
"author_profile": "https://Stackoverflow.com/users/320646",
"pm_score": 1,
"selected": false,
"text": "&pattern = '&Body=\\w*&' //CHECK THIS!!\n&rslt = &url.Matches(&pattern)\n"
}
] | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20358404/"
] |
74,461,707 | <p>Let's say I have a DataFrame <code>df=pd.DataFrame({'a':[1,2,np.nan,3,4,5,3], 'b':[11,22,22,11,22,22,22]})</code></p>
<pre><code> a b
0 1.0 11
1 2.0 22
2 NaN 22
3 3.0 11
4 4.0 22
5 5.0 22
6 3.0 22
</code></pre>
<p>I want compute a reduced dataframe where I group by <code>b</code>, and where my co... | [
{
"answer_id": 74464895,
"author": "ealmeida",
"author_id": 320646,
"author_profile": "https://Stackoverflow.com/users/320646",
"pm_score": 1,
"selected": false,
"text": "&pattern = '&Body=\\w*&' //CHECK THIS!!\n&rslt = &url.Matches(&pattern)\n"
}
] | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20520568/"
] |
74,461,737 | <p>I am trying to load an HTML form in a webview that has some callbacks on button clicks which I am trying to handle in a javascript handler but are not getting invoked.</p>
<p>Library used</p>
<pre><code>flutter_inappwebview: ^5.7.1
</code></pre>
<p>This is how I defined the webview.</p>
<pre><code>InAppWebView(
... | [
{
"answer_id": 74464895,
"author": "ealmeida",
"author_id": 320646,
"author_profile": "https://Stackoverflow.com/users/320646",
"pm_score": 1,
"selected": false,
"text": "&pattern = '&Body=\\w*&' //CHECK THIS!!\n&rslt = &url.Matches(&pattern)\n"
}
] | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10488726/"
] |
74,461,758 | <p>I am trying to write down a CSV using python with multiple lines inside the same cell. For example i want the next result:</p>
<p><a href="https://i.stack.imgur.com/LN3YC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LN3YC.png" alt="enter image description here" /></a></p>
<p>But I am getting th... | [
{
"answer_id": 74464895,
"author": "ealmeida",
"author_id": 320646,
"author_profile": "https://Stackoverflow.com/users/320646",
"pm_score": 1,
"selected": false,
"text": "&pattern = '&Body=\\w*&' //CHECK THIS!!\n&rslt = &url.Matches(&pattern)\n"
}
] | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10640450/"
] |
74,461,782 | <p>I'm pretty new to c# (and fwiw, moq) and I'm trying learn our product by writing unit tests. We have the following method in a database repository class:</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using Dapper;
using Newtonsoft.Json;
using Serilog;... | [
{
"answer_id": 74461871,
"author": "Jeanot Zubler",
"author_id": 14906662,
"author_profile": "https://Stackoverflow.com/users/14906662",
"pm_score": 1,
"selected": false,
"text": "public bool UpdateInactiveWidgets(List<Widgets> widgets, IDbConnection connection)\n{\n int rowsUpdated;\... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1078009/"
] |
74,461,838 | <p>Image on the left, text on the right. Image size is unknown. I want to display the image in its original size. I want the text at least 10-character wide (i.e., not too narrow).</p>
<p>If I resize the browser window to make it narrow, when the text cannot become narrower, the page shows horizontal scroll bar. Can I ... | [
{
"answer_id": 74461871,
"author": "Jeanot Zubler",
"author_id": 14906662,
"author_profile": "https://Stackoverflow.com/users/14906662",
"pm_score": 1,
"selected": false,
"text": "public bool UpdateInactiveWidgets(List<Widgets> widgets, IDbConnection connection)\n{\n int rowsUpdated;\... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/455796/"
] |
74,461,909 | <p>I have <code>items</code> object as below. And I would like to find the object whose <code>created</code> is the newest.</p>
<pre><code>const items = [
{ id: 'djw8701', created: '2019-10-05T11:06:20.208Z', url: 'url1' },
{ id: 'djw8702', created: '2019-10-15T12:06:21.208Z', url: 'url2' },
{ i... | [
{
"answer_id": 74462008,
"author": "c_thane",
"author_id": 10832339,
"author_profile": "https://Stackoverflow.com/users/10832339",
"pm_score": 1,
"selected": false,
"text": "if (new Date(curr.deliveryDate) < new Date(acc.deliveryDate))\n"
},
{
"answer_id": 74462013,
"author":... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12343741/"
] |
74,461,916 | <p>I have data coming from an API that provides an object with a year. I'm creating headings with possible years, and then I'd like to display the data of the object if it matches that year. There can be multiple objects that match the same year.</p>
<p>What I'm doing currently, but with no avail:</p>
<p>Simplified exa... | [
{
"answer_id": 74462573,
"author": "mahdikmg",
"author_id": 11590227,
"author_profile": "https://Stackoverflow.com/users/11590227",
"pm_score": 2,
"selected": false,
"text": "<div>\n {years.map((year) => <>\n <h1>{year}</h1>\n {data.map(d => (\n <div>{d.year}</div>\n ))}\n... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4942596/"
] |
74,461,918 | <p>how to round BottomAppBar in flutter I want to Circle top left and top right like this</p>
<p><img src="https://i.stack.imgur.com/8pdnQ.png" alt="enter image description here" /></p>
<pre><code> bottomNavigationBar: BottomAppBar(
color: Colors.green[200]?.withOpacity(0.8),
child: Container(
... | [
{
"answer_id": 74462041,
"author": "manhtuan21",
"author_id": 8921450,
"author_profile": "https://Stackoverflow.com/users/8921450",
"pm_score": 1,
"selected": false,
"text": " bottomNavigationBar: ClipRRect(\n borderRadius: BorderRadius.only(\n topLeft: Radius.circular(30... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16559390/"
] |
74,461,923 | <p>the problem is I want to change the src of img tag by using the button which executes if, else function. but I think my code is unprofessional and there is a better way to do the same job.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">... | [
{
"answer_id": 74462486,
"author": "Mazen Alhrazi",
"author_id": 6798139,
"author_profile": "https://Stackoverflow.com/users/6798139",
"pm_score": 0,
"selected": false,
"text": "img.onclick = () => { ... } let img = document.getElementById('img');\nlet isSmile\nimg.onclick = () => { \n ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461923",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17620112/"
] |
74,461,952 | <p>Why can't I save ArrayList size as a variable?</p>
<pre><code>public static ArrayList <Integer > merge(ArrayList <Integer > list1,
ArrayList <Integer > list2 ) {
if (list1.size() >= list2.size()) {
int maxSize = list1.size();
} else {
... | [
{
"answer_id": 74462030,
"author": "Reg",
"author_id": 1169349,
"author_profile": "https://Stackoverflow.com/users/1169349",
"pm_score": 4,
"selected": true,
"text": "int maxSize = 0;\nif (list1.size() >= list2.size()) {\n maxSize = list1.size(); \n} else {\n maxSize = list2.size()... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20071783/"
] |
74,461,973 | <p>I am passing the data from parent to child component and the normal text input is populated which the data received from the parent but this isn't working with the dropdowns.</p>
<p>Code block where I pass data to the variable <strong>enteredName</strong> is working just as I want it to work.</p>
<pre><code> ... | [
{
"answer_id": 74462030,
"author": "Reg",
"author_id": 1169349,
"author_profile": "https://Stackoverflow.com/users/1169349",
"pm_score": 4,
"selected": true,
"text": "int maxSize = 0;\nif (list1.size() >= list2.size()) {\n maxSize = list1.size(); \n} else {\n maxSize = list2.size()... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74461973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20328812/"
] |
74,462,028 | <p>Environment: .NET 6 WebAPI app</p>
<p>I have two classes, base an derived, that both can be used to serialize the output of a certain method as JSON and send it to client. They look like this:</p>
<pre><code>public class Base
{
public int? Prop1 { get; set; }
public string? Prop2 { get; set; }
public long? Pro... | [
{
"answer_id": 74462030,
"author": "Reg",
"author_id": 1169349,
"author_profile": "https://Stackoverflow.com/users/1169349",
"pm_score": 4,
"selected": true,
"text": "int maxSize = 0;\nif (list1.size() >= list2.size()) {\n maxSize = list1.size(); \n} else {\n maxSize = list2.size()... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/625594/"
] |
74,462,031 | <p>I am trying to create a function which takes in 2 strings:</p>
<p>-
title: "Lorem ipsum dolor sit amet",</p>
<p>-
itle_highlighted: "ipsum amet",</p>
<p>and returns one string or array containing the all words in <code>title</code> in addition words defined in the string <code>title_highlighted</... | [
{
"answer_id": 74462204,
"author": "gog",
"author_id": 3494774,
"author_profile": "https://Stackoverflow.com/users/3494774",
"pm_score": -1,
"selected": false,
"text": "Lorem ipsum? Dolor amet! \\b title = \"Lorem ipsum dolor sit amet\"\n\nkeywords = [\"ipsum\", \"amet\"]\n\nregex = new ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19293202/"
] |
74,462,057 | <p>I wrote a sql query but as you noticed there are two identical records with the same name and id number. I need to show them all somehow without using Distinct. The middleware I'm using fills in values โโbased on UserTableID. If we use DISTINCT, the query will not work while UserTableID is present. Can you help me?<... | [
{
"answer_id": 74462364,
"author": "Nenad Zivkovic",
"author_id": 612181,
"author_profile": "https://Stackoverflow.com/users/612181",
"pm_score": 0,
"selected": false,
"text": "WITH CTE_OtelRezervasyon AS\n(\n SELECT UserTableID AS [ID]\n , Ad_Soyad AS [NAME SURNAME]\n , Kimlik_No ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20519851/"
] |
74,462,061 | <p>I have a list of tuples with the pattern "id", "text", "language" like this:</p>
<pre><code>a = [('1', 'hello', 'en'), ...]
</code></pre>
<p>I would like to increase number of tuple members to "id", "text", "language", "color":</p>
<pre><code>b = ... | [
{
"answer_id": 74462129,
"author": "Matthias",
"author_id": 1209921,
"author_profile": "https://Stackoverflow.com/users/1209921",
"pm_score": 3,
"selected": true,
"text": "a = [('1', 'hello', 'en'), ('2', 'hi', 'en')]\ncolor = 'red'\n\na = [(x + (color,)) for x in a]\nprint(a)\n [('1', '... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3449908/"
] |
74,462,066 | <p>my Python code has a circle which moves from the right of the screen to the left but it stops. I would like it to bounce off the left edge and continue moving to the right and then bounce off the right edge to the left and so on. I think I'm missing a line. I have tried several things but it doesn't seem to be worki... | [
{
"answer_id": 74462129,
"author": "Matthias",
"author_id": 1209921,
"author_profile": "https://Stackoverflow.com/users/1209921",
"pm_score": 3,
"selected": true,
"text": "a = [('1', 'hello', 'en'), ('2', 'hi', 'en')]\ncolor = 'red'\n\na = [(x + (color,)) for x in a]\nprint(a)\n [('1', '... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20520793/"
] |
74,462,076 | <p>im currently having trouble to split a column in pentaho that has the item ID at the begining. The main idea is to split the current column into "ItemID" and "ItemName" by "space" delimiter. I split the column with the space delimiter and get the "ItemID" correctly, but i can'... | [
{
"answer_id": 74515785,
"author": "nsousa",
"author_id": 3593498,
"author_profile": "https://Stackoverflow.com/users/3593498",
"pm_score": 1,
"selected": false,
"text": "([^ ]*) (.*)"
}
] | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12538763/"
] |
74,462,116 | <p>Is it possible to make all interface fields required but only array type? The Required operator makes all fields mandatory, but I only need those fields that are an array ???</p>
<p>`</p>
<pre><code>interface IExample {
a: number,
b?: string,
c?: number[]
}
function getTest(data: IExample): Required<... | [
{
"answer_id": 74462305,
"author": "acrazing",
"author_id": 4380247,
"author_profile": "https://Stackoverflow.com/users/4380247",
"pm_score": 2,
"selected": false,
"text": "type ArrayKeyof<T> = {\n [P in keyof T]-?: any[] extends T[P] ? P : never;\n}[keyof T];\n\nexport type ArrayRequir... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15253473/"
] |
74,462,148 | <p>I'm trying to process the json data I get from a server but when I try to do a .forEach, on it it says that the data I'm trying to work with is undefined while the console.log displays the correct values.</p>
<p>What could be the problem, am I missing an async/await from somewhere? Am I calling the data processing f... | [
{
"answer_id": 74462305,
"author": "acrazing",
"author_id": 4380247,
"author_profile": "https://Stackoverflow.com/users/4380247",
"pm_score": 2,
"selected": false,
"text": "type ArrayKeyof<T> = {\n [P in keyof T]-?: any[] extends T[P] ? P : never;\n}[keyof T];\n\nexport type ArrayRequir... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11605800/"
] |
74,462,186 | <p>It takes m iterations to transform the array according to the rule: a[i]=(a[i-1]+a[i+1])/2 Also, according to the assignment, I must use Thread and Phaser. Using of Thread and Phaser is mandatory, and there is no way I can refuse to use them.</p>
<p>For transforming I use this code:</p>
<pre><code>package lab3;
ย
im... | [
{
"answer_id": 74462305,
"author": "acrazing",
"author_id": 4380247,
"author_profile": "https://Stackoverflow.com/users/4380247",
"pm_score": 2,
"selected": false,
"text": "type ArrayKeyof<T> = {\n [P in keyof T]-?: any[] extends T[P] ? P : never;\n}[keyof T];\n\nexport type ArrayRequir... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13589297/"
] |
74,462,187 | <p>I'm sure I'm missing something, but I can't find a clear anwser here. I'm trying to minimize re-renderings, at least avoid useless renderings like in this case.</p>
<ol>
<li>The <code>state</code> is an object, because I'd like to set both <code>loading</code> and <code>products</code> properties with a <strong>sing... | [
{
"answer_id": 74462382,
"author": "CertainPerformance",
"author_id": 9515207,
"author_profile": "https://Stackoverflow.com/users/9515207",
"pm_score": 3,
"selected": true,
"text": "useEffect(() => {\n console.log('[ProductsIndex] useEffect');\n if (!state.loading) {\n setSt... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/220180/"
] |
74,462,191 | <p>Hello I have a query in plsql.
What I am looking for is that when input comes from the server as a parameter in the insert_date_time, I just want to take YYYYMMDD parts.
For example: input 20221116105703603 what I look for is 20221116</p>
<p>I tried this query but couldnt succed I hope you can correct me, thank you.... | [
{
"answer_id": 74462382,
"author": "CertainPerformance",
"author_id": 9515207,
"author_profile": "https://Stackoverflow.com/users/9515207",
"pm_score": 3,
"selected": true,
"text": "useEffect(() => {\n console.log('[ProductsIndex] useEffect');\n if (!state.loading) {\n setSt... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462191",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19336013/"
] |
74,462,238 | <p>How can I remove existing and future pycahce files from git repository in Windows? The commands I found online are not working for example when I send the command "<code>git rm -r --cached __pycache__</code>" I get the command "<code>pathspec '__pycache__' did not match any files</code>".</p>
| [
{
"answer_id": 74462382,
"author": "CertainPerformance",
"author_id": 9515207,
"author_profile": "https://Stackoverflow.com/users/9515207",
"pm_score": 3,
"selected": true,
"text": "useEffect(() => {\n console.log('[ProductsIndex] useEffect');\n if (!state.loading) {\n setSt... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462238",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17517402/"
] |
74,462,343 | <p>I am trying to make a constructor that creates an array of empty homework scores (6 per student) and an array of empty exam scores (3 per student).</p>
<p>The getHomeworkAverage() method returns the average score on the studentโs homework. The getFinalScore() method returns the final grade for each student using the... | [
{
"answer_id": 74462650,
"author": "Eduardo Neres",
"author_id": 20521080,
"author_profile": "https://Stackoverflow.com/users/20521080",
"pm_score": -1,
"selected": false,
"text": " int[] homeworks = new int[]{ 1,2,3,4,5,6,7,8,9,10 };\n int[] exams = new int[]{ 1,2,3,4,5,6,7,8,9,10... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12428572/"
] |
74,462,360 | <p>Consider this generic function:</p>
<pre><code> public getData<T>(url: string): Observable<T> {
return this.httpClient.get<T>(url);
}
</code></pre>
<p>How can I return a <strong>hardcoded mock object array</strong> in order to test the function (for example because the remote API has not bee... | [
{
"answer_id": 74462650,
"author": "Eduardo Neres",
"author_id": 20521080,
"author_profile": "https://Stackoverflow.com/users/20521080",
"pm_score": -1,
"selected": false,
"text": " int[] homeworks = new int[]{ 1,2,3,4,5,6,7,8,9,10 };\n int[] exams = new int[]{ 1,2,3,4,5,6,7,8,9,10... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/884319/"
] |
74,462,398 | <p>I have a dataframe <strong>df</strong> structured as well:</p>
<pre><code>Name Surname Nationality
Joe Tippy Italian
Adam Wesker American
</code></pre>
<p>I would like to create a new record based on a dictionary whose keys corresponds to the column names:</p>
<pre><code>new_record = {'N... | [
{
"answer_id": 74462477,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 3,
"selected": true,
"text": "new_record = {'Surname': 'Turner', 'Nationality': 'Australian'}\ndf = pd.concat([df, pd.DataFrame([new_record])], ign... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10886071/"
] |
74,462,420 | <p>I'm setting up a GitHub App for ArgoCD authentication. The GitHub App setup is completed. But in ArgoCD it asks for GitHub App ID and GitHub App Installation ID. I could find the App ID from the GitHub App section itself. But I couldn't find the GitHub App Installation ID.</p>
<p>Is there a way to directly find GitH... | [
{
"answer_id": 74462496,
"author": "HeadinCloud",
"author_id": 7450826,
"author_profile": "https://Stackoverflow.com/users/7450826",
"pm_score": 1,
"selected": true,
"text": "InstallationID https://github.com/settings/installations/<ID>"
},
{
"answer_id": 74474953,
"author": ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4082114/"
] |
74,462,442 | <p>I want to print the value between 2 to 5 from 1first columns.</p>
<pre><code>df5 = pd.DataFrame({
'colA': ['C4GSP3JOIHJ2', 'CAGPS3JOIHJ2','CALCG3EST2','CLCCV3JOIHJ2','CLCNF3JOIHJ2','CLCQU3JOIHJ2','CLSMS3JOIHJ2','CMICO3JOIHJ2'],
})
</code></pre>
<p><strong>output look like this</strong></p>
<p><a href="https:... | [
{
"answer_id": 74462496,
"author": "HeadinCloud",
"author_id": 7450826,
"author_profile": "https://Stackoverflow.com/users/7450826",
"pm_score": 1,
"selected": true,
"text": "InstallationID https://github.com/settings/installations/<ID>"
},
{
"answer_id": 74474953,
"author": ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462442",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16609351/"
] |
74,462,445 | <p>I've tried several ways to do this including through javascript but I cannot figure it out.
I have a table, and the header contains a "select all" checkbox with a checkbox attached to each entry.</p>
<p>applicable html:</p>
<pre><code><table>
<thread>
<tr>
<th class="b... | [
{
"answer_id": 74463445,
"author": "Ruby Newb",
"author_id": 15054139,
"author_profile": "https://Stackoverflow.com/users/15054139",
"pm_score": 0,
"selected": false,
"text": " document.addEventListener('change', function() {\n arr = [];\n checkboxes = document.querySelectorAll('... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15054139/"
] |
74,462,480 | <p>I'm trying to create a Unit Test for a RestController in Spring Boot.</p>
<p>The Controller looks something like this:</p>
<pre><code>@RestController()
@RequestMapping("/endpoint")
public class MyRestController {
@Autowired
private MyService service;
@GetMapping(value = "/{id}", pro... | [
{
"answer_id": 74479936,
"author": "Rohit Agarwal",
"author_id": 7871511,
"author_profile": "https://Stackoverflow.com/users/7871511",
"pm_score": 2,
"selected": true,
"text": "@Test org.junit.Test @Test org.junit.jupiter.api.Test pom.xml <dependency>\n <groupId>junit</group... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4334953/"
] |
74,462,512 | <p>I am currently trying to get a List with unique values.</p>
<p>Technically, it should be really simple, and the obvious choice would be a HashSet.
However, I want the properties of my "points" to be the uniqueness criteria and not their "IDs".</p>
<p>After that, I wanted to use the stream().disti... | [
{
"answer_id": 74462635,
"author": "Matteo NNZ",
"author_id": 3111149,
"author_profile": "https://Stackoverflow.com/users/3111149",
"pm_score": 3,
"selected": true,
"text": "equals @Override\npublic boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClas... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9469666/"
] |
74,462,526 | <p>Here is my structure:</p>
<pre><code><div class="list">
<div class="list-item">
<span class="item-title">St</span>
<button class="item-button">click</button>
</div>
<div class="list-item">
... | [
{
"answer_id": 74462635,
"author": "Matteo NNZ",
"author_id": 3111149,
"author_profile": "https://Stackoverflow.com/users/3111149",
"pm_score": 3,
"selected": true,
"text": "equals @Override\npublic boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClas... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16974979/"
] |
74,462,555 | <p>I'm trying to scrape some titles of the videos and to do so I'm using Selenium, but I've encountered a problem. <code>driver.find_element().text</code> returns empty string, but title is for sure located in given XPATH. Here is the fragment of the page source returned by driver.page_source:</p>
<pre><code><div cl... | [
{
"answer_id": 74462682,
"author": "Prophet",
"author_id": 3485434,
"author_profile": "https://Stackoverflow.com/users/3485434",
"pm_score": 2,
"selected": true,
"text": "WebDriverWait expected_conditions from selenium.webdriver.support.ui import WebDriverWait\nfrom selenium.webdriver.co... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12606999/"
] |
74,462,613 | <p>Checkmarx complains that "the file utilizes <strong>"format"</strong> that is accessed by other concurrent functionality in a way that is not thread-safe, which may result in a Race Condition over this resource. It highlights the format method. How do we resolve this?</p>
<pre><code> String endDate =
... | [
{
"answer_id": 74462682,
"author": "Prophet",
"author_id": 3485434,
"author_profile": "https://Stackoverflow.com/users/3485434",
"pm_score": 2,
"selected": true,
"text": "WebDriverWait expected_conditions from selenium.webdriver.support.ui import WebDriverWait\nfrom selenium.webdriver.co... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462613",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19673046/"
] |
74,462,622 | <p>I have used time.sleep(5) to see if the changes are reflected in the window.
The window opens in blue color. After I click on the 'Go' button it changes to yellow. But why does it not change to green when it enters the function 'func2'?</p>
<pre><code>import time
import tkinter
global win
def func1():
global win... | [
{
"answer_id": 74462682,
"author": "Prophet",
"author_id": 3485434,
"author_profile": "https://Stackoverflow.com/users/3485434",
"pm_score": 2,
"selected": true,
"text": "WebDriverWait expected_conditions from selenium.webdriver.support.ui import WebDriverWait\nfrom selenium.webdriver.co... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13993793/"
] |
74,462,623 | <p>What is the easiest/most optimal way of finding the exponential of a number, say <code>x</code>, in Python? i.e. how can I implement <code>e^x</code>?</p>
| [
{
"answer_id": 74462624,
"author": "Marioanzas",
"author_id": 14367279,
"author_profile": "https://Stackoverflow.com/users/14367279",
"pm_score": 0,
"selected": false,
"text": "math.exp() math >>> import math\n>>> x = 4\n>>> print(math.exp(x))\n54.598150033144236\n"
},
{
"answer_... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14367279/"
] |
74,462,629 | <p>I get this error when trying to boot right after create-next-app. Im choosing typescript with eslint.</p>
<p>Tried without typescript, tried updating create-next-app, trying reinstalling dependencies - still not helping
<a href="https://i.stack.imgur.com/ZlFQf.png" rel="nofollow noreferrer"><img src="https://i.stack... | [
{
"answer_id": 74462624,
"author": "Marioanzas",
"author_id": 14367279,
"author_profile": "https://Stackoverflow.com/users/14367279",
"pm_score": 0,
"selected": false,
"text": "math.exp() math >>> import math\n>>> x = 4\n>>> print(math.exp(x))\n54.598150033144236\n"
},
{
"answer_... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462629",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20480318/"
] |
74,462,641 | <p>I am trying to write a useEffect hook which will update the DOM once when the page loads. For some reason that I cannot fathom, the useEffect runs but the function does not get called. The <code>console.log()</code> on the other hand does get called.</p>
<p>There is no problem with the function itself, it works when... | [
{
"answer_id": 74657770,
"author": "Freja",
"author_id": 12237904,
"author_profile": "https://Stackoverflow.com/users/12237904",
"pm_score": 1,
"selected": true,
"text": " window.onload = function() {\n setID()\n }\n\n function setID() {\n const H2List = document.getElementsByTa... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462641",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12237904/"
] |
74,462,661 | <p>I have a pipeline that uses variables from Library. For the IN, QA, and STAGE environments, I use a variable from shared variables. But now I need to create a PROD environment and deploy to PROD. And only for the PROD environment I have to use the same variable, but with a different value. How to do it?</p>
<p>Becau... | [
{
"answer_id": 74657770,
"author": "Freja",
"author_id": 12237904,
"author_profile": "https://Stackoverflow.com/users/12237904",
"pm_score": 1,
"selected": true,
"text": " window.onload = function() {\n setID()\n }\n\n function setID() {\n const H2List = document.getElementsByTa... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14751570/"
] |
74,462,666 | <p>I already checked many questions and I don't seem to find the suitable answer.</p>
<p>I have this df</p>
<pre><code>df = data.frame(x = 1:10,y=11:20)
</code></pre>
<p>the output</p>
<pre><code> x y
1 1 11
2 2 12
3 3 13
4 4 14
5 5 15
6 6 16
7 7 17
8 8 18
9 9 19
10 10 20
</code></pre>
<p>I just ... | [
{
"answer_id": 74462761,
"author": "ThomasIsCoding",
"author_id": 12158757,
"author_profile": "https://Stackoverflow.com/users/12158757",
"pm_score": 3,
"selected": true,
"text": "t() > data.frame(t(df), check.names = FALSE)\n 1 2 3 4 5 6 7 8 9 10\nx 1 2 3 4 5 6 7 8 9 ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19720935/"
] |
74,462,683 | <p>I have two <code>torch</code> tensors <code>a</code> and <code>b</code>:</p>
<pre><code>import torch
torch.manual_seed(0) # for reproducibility
a = torch.rand(size = (5, 10, 1))
b = torch.tensor([3, 3, 1, 5, 3, 1, 0, 2, 1, 2])
</code></pre>
<p>I want to split the 2nd dimension of <code>a</code> (which is dim = 1 in... | [
{
"answer_id": 74463624,
"author": "guibs35",
"author_id": 10680282,
"author_profile": "https://Stackoverflow.com/users/10680282",
"pm_score": 1,
"selected": false,
"text": "index_select unique_values l = a.index_select(1, unique_values)\n"
},
{
"answer_id": 74463667,
"author... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14802285/"
] |
74,462,708 | <p><a href="https://i.stack.imgur.com/M5MNi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M5MNi.png" alt="enter image description here" /></a></p>
<p>I want to move the icons to the top right just EXACTLY EXACTLY to the right of textbox. I have added float and also tried with top:30% but this is no... | [
{
"answer_id": 74462904,
"author": "DreamTeK",
"author_id": 2120261,
"author_profile": "https://Stackoverflow.com/users/2120261",
"pm_score": 3,
"selected": true,
"text": "flex <div class=\"flx-row\"> \n <div>\n <input type=\"textbox\"/>\n </div>\n <div>\n <span>content... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5549354/"
] |
74,462,724 | <p>I created the following dictionary below (<code>mean_task_dict</code>). This dictionary includes three keys associated with three lists. Each lists includes 48 numeric values.</p>
<pre><code>mean_task_dict = {
"Interoception": task_mean_intero,
"Exteroception": task_mean_e... | [
{
"answer_id": 74463060,
"author": "Trooper Z",
"author_id": 9190768,
"author_profile": "https://Stackoverflow.com/users/9190768",
"pm_score": 0,
"selected": false,
"text": "for value in mean_task_dict.values():\n for item in value:\n #do stuff here\n"
},
{
"answer_id":... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17530552/"
] |
74,462,735 | <p>In the sidebar, I have 4 rubrics (Administration, Marchรฉ, Portefeuille, Dรฉconnexion ).</p>
<p><a href="https://i.stack.imgur.com/O8zpH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O8zpH.png" alt="enter image description here" /></a></p>
<p>When the user logs in, I would like the <code>Portefeui... | [
{
"answer_id": 74463060,
"author": "Trooper Z",
"author_id": 9190768,
"author_profile": "https://Stackoverflow.com/users/9190768",
"pm_score": 0,
"selected": false,
"text": "for value in mean_task_dict.values():\n for item in value:\n #do stuff here\n"
},
{
"answer_id":... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18427717/"
] |
74,462,750 | <p>I am using swift version 5.7.1 and Xcode 14.1 . I am creating Map Application with user location and it working fine .. But here is the problem , it giving warning ..
<strong>This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the <code>-locationManagerDidChangeAuth... | [
{
"answer_id": 74462874,
"author": "DarkDust",
"author_id": 400056,
"author_profile": "https://Stackoverflow.com/users/400056",
"pm_score": 2,
"selected": false,
"text": "CLLocationManager.locationServicesEnabled() locationManagerDidChangeAuthorization(_:) authorizationStatus if"
},
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8705895/"
] |
74,462,757 | <p>Can anyone help me with formula to compare two strings in excel using excel formulae or vba macros</p>
<p>Example :-</p>
<pre><code>str 1 : abcd def
str 2 : def abcd
</code></pre>
<p>If we compare str 1 and str 2 then it should return true</p>
<p>Thanks in advance</p>
<pre><code>str 1 : abcd def
str 2 : def abcd
=s... | [
{
"answer_id": 74462874,
"author": "DarkDust",
"author_id": 400056,
"author_profile": "https://Stackoverflow.com/users/400056",
"pm_score": 2,
"selected": false,
"text": "CLLocationManager.locationServicesEnabled() locationManagerDidChangeAuthorization(_:) authorizationStatus if"
},
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20521242/"
] |
74,462,771 | <h3>Problem</h3>
<p>I'm trying to get the command inside the docker-compose.yml to use the internal environment variables of the container, rather than the ones of the host system. However, docker compose tries to substitute environment variables in the command with the ones of my own shell, outside the container.</p>
... | [
{
"answer_id": 74462874,
"author": "DarkDust",
"author_id": 400056,
"author_profile": "https://Stackoverflow.com/users/400056",
"pm_score": 2,
"selected": false,
"text": "CLLocationManager.locationServicesEnabled() locationManagerDidChangeAuthorization(_:) authorizationStatus if"
},
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462771",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7690374/"
] |
74,462,791 | <p>I am new in jupyter notebook and python. Recently I'm working in this code but I can't find out the problem. I want to rename <code>"Tesla Quarterly Revenue(Millions of US $)" and "Tesla Quarterly Revenue(Millions of US $).1"</code> into <code>"Data" and "Revenue"</code> but ... | [
{
"answer_id": 74462874,
"author": "DarkDust",
"author_id": 400056,
"author_profile": "https://Stackoverflow.com/users/400056",
"pm_score": 2,
"selected": false,
"text": "CLLocationManager.locationServicesEnabled() locationManagerDidChangeAuthorization(_:) authorizationStatus if"
},
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12904389/"
] |
74,462,797 | <p>I created a datatable from primevue, but I only get empty rows.</p>
<p>I looked where it could come from and I think it comes from my Json, whose fields have no key. What corrections should be made so that this Json becomes standard again and my data can be displayed? Thanks in advance.</p>
<p><strong>A short exempl... | [
{
"answer_id": 74462874,
"author": "DarkDust",
"author_id": 400056,
"author_profile": "https://Stackoverflow.com/users/400056",
"pm_score": 2,
"selected": false,
"text": "CLLocationManager.locationServicesEnabled() locationManagerDidChangeAuthorization(_:) authorizationStatus if"
},
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14756852/"
] |
74,462,805 | <p>I have a set of normalized tables with one-to-many and many-to-many relationships.</p>
<p>For most queries I am really interested in a highly denormalized view which shows:</p>
<ol>
<li>Entity-per-row for one specific table</li>
<li>Aggregated information about related entities from other tables</li>
</ol>
<p>Here i... | [
{
"answer_id": 74462939,
"author": "Austin",
"author_id": 12571241,
"author_profile": "https://Stackoverflow.com/users/12571241",
"pm_score": 1,
"selected": false,
"text": "likes inner join Orange SELECT likes.person, string_agg(DISTINCT likes.fruit, ', ' ORDER BY likes.fruit) AS fruit\n... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19357965/"
] |
74,462,832 | <p>I have an array of objects which bassically are sidebar items. Every object has a MUI 5 icon. In a sidebar component I render it in a map function. I'd like to have a selected item to be highlighted...I managed to change the font color but don't know how to change icon color.</p>
<p>So the question is how to change ... | [
{
"answer_id": 74462909,
"author": "kind user",
"author_id": 6695924,
"author_profile": "https://Stackoverflow.com/users/6695924",
"pm_score": 3,
"selected": true,
"text": "icon JSX FC selected export const SIDEBAR_PATHS = [\n {\n id: 1,\n path: PATHS.projects,\n name: 'Project... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16555202/"
] |
74,462,836 | <p>I have a json file that has some parmeters with a nested object in it. And I'm trying to save this json file to the database. Altough I keep reciving this error:</p>
<p>" query did not return a unique result: 2; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result... | [
{
"answer_id": 74462909,
"author": "kind user",
"author_id": 6695924,
"author_profile": "https://Stackoverflow.com/users/6695924",
"pm_score": 3,
"selected": true,
"text": "icon JSX FC selected export const SIDEBAR_PATHS = [\n {\n id: 1,\n path: PATHS.projects,\n name: 'Project... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462836",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20521229/"
] |
74,462,846 | <p>I'm trying to make it seem like the scroll bar is on the outside of a div that has rounded corners.</p>
<p>My approach was to place a div within the div where the inner div contains the content but the outer div has the overflow set to scroll.</p>
<p>This gets me pretty close to my desired result, except that...</p>... | [
{
"answer_id": 74462909,
"author": "kind user",
"author_id": 6695924,
"author_profile": "https://Stackoverflow.com/users/6695924",
"pm_score": 3,
"selected": true,
"text": "icon JSX FC selected export const SIDEBAR_PATHS = [\n {\n id: 1,\n path: PATHS.projects,\n name: 'Project... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14789957/"
] |
74,462,848 | <p>my predicament is that I have to deserialize some JSON files provided by my company's software eng department, for me to use in a production environment, however some revisions of the JSON files have objects or keys where the name had been modified (E.g. <strong>"EngineTemp"</strong>:400 to <strong>"E... | [
{
"answer_id": 74463105,
"author": "Cosmin Sontu",
"author_id": 2841855,
"author_profile": "https://Stackoverflow.com/users/2841855",
"pm_score": -1,
"selected": false,
"text": "Newtonsoft System.Text.Json dynamic result = JsonConvert.DeserializeObject<dynamic>(inputString)!;\n result.En... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20521198/"
] |
74,462,860 | <p>I have created a roll-up Master Project using a VBA macro that grabs all MS project files in a given directory and adds them to my Master Project file. Everything works well but the title these subtasks get added as uses the Project Title (found in File->Info->Project Information->Advanced Properties->Ti... | [
{
"answer_id": 74463105,
"author": "Cosmin Sontu",
"author_id": 2841855,
"author_profile": "https://Stackoverflow.com/users/2841855",
"pm_score": -1,
"selected": false,
"text": "Newtonsoft System.Text.Json dynamic result = JsonConvert.DeserializeObject<dynamic>(inputString)!;\n result.En... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1788496/"
] |
74,462,861 | <p>I have a dataframe with various numbers. What I want, is to subset rows using all column values.</p>
<p>One could use dplyr to write the following code:</p>
<pre><code>library(dplyr)
set.seed(1)
df <- data.frame (matrix (round (runif(500, 0, 1), digits = 1), 10, 5))
dfn <- df |> dplyr::filter_all (dplyr:... | [
{
"answer_id": 74462944,
"author": "Ben Bolker",
"author_id": 190277,
"author_profile": "https://Stackoverflow.com/users/190277",
"pm_score": 3,
"selected": true,
"text": "has_0.5 <- apply(df, 1, function(x) any(grepl(0.5, x)))\ndf[has_0.5, ]\n"
},
{
"answer_id": 74462985,
"a... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17984720/"
] |
74,462,882 | <p>I have this problem, I want to change the value of column Q based on what word is in Column U. But here comes the tricky part, in column U I could have different words which actually will mean the same, here is the index: (left side are the words of column U and right side their meaning)</p>
<pre class="lang-none pr... | [
{
"answer_id": 74479184,
"author": "Martรญn",
"author_id": 20363318,
"author_profile": "https://Stackoverflow.com/users/20363318",
"pm_score": 0,
"selected": false,
"text": "=ArrayFormula(IF(V2:V<>\"\",V2:V,IF(U2:U=\"\",\"\",ifs(REGEXMATCH(U2:U,\"(?i)REOK\"),\"CONCLUSIVE RESOLVED\",REGEXM... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20521157/"
] |
74,462,926 | <p>Having this node.js app which is going to be quite huge.
First I created a file named</p>
<pre><code>user.account.test.js
</code></pre>
<p>In that I begun putting all the possible tests (positive and negative tests) for the usuale flow: signup, singin, activation, restore password etc.</p>
<p>At the end I have this ... | [
{
"answer_id": 74479184,
"author": "Martรญn",
"author_id": 20363318,
"author_profile": "https://Stackoverflow.com/users/20363318",
"pm_score": 0,
"selected": false,
"text": "=ArrayFormula(IF(V2:V<>\"\",V2:V,IF(U2:U=\"\",\"\",ifs(REGEXMATCH(U2:U,\"(?i)REOK\"),\"CONCLUSIVE RESOLVED\",REGEXM... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5668102/"
] |
74,462,937 | <p>I am pretty new to React, and the only CRUD functionality I have done has been in MVC.net, so I am pretty lost here and none of the tutorials I am finding seem to be the situation I have going on...or maybe I am just misunderstanding them. The tips I got with my initial question helped, but I am still no getting it... | [
{
"answer_id": 74479184,
"author": "Martรญn",
"author_id": 20363318,
"author_profile": "https://Stackoverflow.com/users/20363318",
"pm_score": 0,
"selected": false,
"text": "=ArrayFormula(IF(V2:V<>\"\",V2:V,IF(U2:U=\"\",\"\",ifs(REGEXMATCH(U2:U,\"(?i)REOK\"),\"CONCLUSIVE RESOLVED\",REGEXM... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10982789/"
] |
74,462,966 | <p>I have a table below , I will like to group and concatenate into a new field based on the siteid using pandas/python</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&l... | [
{
"answer_id": 74479184,
"author": "Martรญn",
"author_id": 20363318,
"author_profile": "https://Stackoverflow.com/users/20363318",
"pm_score": 0,
"selected": false,
"text": "=ArrayFormula(IF(V2:V<>\"\",V2:V,IF(U2:U=\"\",\"\",ifs(REGEXMATCH(U2:U,\"(?i)REOK\"),\"CONCLUSIVE RESOLVED\",REGEXM... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74462966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6768849/"
] |
74,463,028 | <p>I have an input image where I have drawn the green boundaries which I need to mask.
I am able to identify the boundary, but my mask is all black with baground is black. how can I fill the boundary region with different color. May be keep the background white and mask region as black</p>
<p>Input image
<a href="https... | [
{
"answer_id": 74479184,
"author": "Martรญn",
"author_id": 20363318,
"author_profile": "https://Stackoverflow.com/users/20363318",
"pm_score": 0,
"selected": false,
"text": "=ArrayFormula(IF(V2:V<>\"\",V2:V,IF(U2:U=\"\",\"\",ifs(REGEXMATCH(U2:U,\"(?i)REOK\"),\"CONCLUSIVE RESOLVED\",REGEXM... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1631306/"
] |
74,463,032 | <p>I have a simple socket server, how do I shut it down when I enter "shutdown" in the terminal on the server side?</p>
<pre><code>import socket
SERVER = "xxxx"
PORT = 1234
ADDR = (SERVER, PORT)
FORMAT = "utf-8"
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind(ADDR... | [
{
"answer_id": 74479184,
"author": "Martรญn",
"author_id": 20363318,
"author_profile": "https://Stackoverflow.com/users/20363318",
"pm_score": 0,
"selected": false,
"text": "=ArrayFormula(IF(V2:V<>\"\",V2:V,IF(U2:U=\"\",\"\",ifs(REGEXMATCH(U2:U,\"(?i)REOK\"),\"CONCLUSIVE RESOLVED\",REGEXM... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19366064/"
] |
74,463,108 | <p><a href="https://i.stack.imgur.com/VBIiT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VBIiT.png" alt="enter image description here" /></a>I am working on a price sheet that has products with variations to that product underneath.
It has 15,000 rows and I would like to sort in alphabetical order... | [
{
"answer_id": 74463549,
"author": "Notus_Panda",
"author_id": 19353309,
"author_profile": "https://Stackoverflow.com/users/19353309",
"pm_score": 0,
"selected": false,
"text": "=If(B2 = \"Product\"; C2; A1+1)\n"
},
{
"answer_id": 74464133,
"author": "David Leal",
"author... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463108",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9688187/"
] |
74,463,151 | <p>You are given an array of integers nums and a sliding window of size <code>k</code> which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the sliding window moves right by one position. You have to compute the maximum inside the window.</p>
<pre><c... | [
{
"answer_id": 74463549,
"author": "Notus_Panda",
"author_id": 19353309,
"author_profile": "https://Stackoverflow.com/users/19353309",
"pm_score": 0,
"selected": false,
"text": "=If(B2 = \"Product\"; C2; A1+1)\n"
},
{
"answer_id": 74464133,
"author": "David Leal",
"author... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20333579/"
] |
74,463,189 | <p>I am trying the following code to drop a table in Azure Synapse</p>
<p>drop dbo.tablename</p>
<p>drop tablename</p>
<p><a href="https://i.stack.imgur.com/Q27w8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q27w8.png" alt="enter image description here" /></a></p>
<p>But I keep on getting errors s... | [
{
"answer_id": 74467716,
"author": "HimanshuSinha-msft",
"author_id": 11137679,
"author_profile": "https://Stackoverflow.com/users/11137679",
"pm_score": 0,
"selected": false,
"text": "use [your DatabaseName] \nGO \ndrop EXTERNAL table schemaname.tablename\n"
},
{
"answer_id": 74... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15520615/"
] |
74,463,208 | <p>I've set up a service and some pods in an AWS Elastic Kubernetes Service (EKS) cluster which access a RabbitMQ message service and PostgreSQL database hosted externally to the cluster. At the moment, I've opened up via AWS security groups access from all IPs (0.0.0.0/0) to these services as kubernetes assigns an IP ... | [
{
"answer_id": 74467716,
"author": "HimanshuSinha-msft",
"author_id": 11137679,
"author_profile": "https://Stackoverflow.com/users/11137679",
"pm_score": 0,
"selected": false,
"text": "use [your DatabaseName] \nGO \ndrop EXTERNAL table schemaname.tablename\n"
},
{
"answer_id": 74... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8200410/"
] |
74,463,220 | <pre><code>import time
from multiprocessing import Process
def possible_error_causer(a, b):
time.sleep(5)
c = a / b
print(c)
time.sleep(100)
for i in range(3):
p = Process(target=possible_error_causer, args=(i, i))
p.start()
</code></pre>
<p>The code above will execute after an exception occ... | [
{
"answer_id": 74467716,
"author": "HimanshuSinha-msft",
"author_id": 11137679,
"author_profile": "https://Stackoverflow.com/users/11137679",
"pm_score": 0,
"selected": false,
"text": "use [your DatabaseName] \nGO \ndrop EXTERNAL table schemaname.tablename\n"
},
{
"answer_id": 74... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9016861/"
] |
74,463,255 | <p>I'm learning about unit test for Flutter. I have a Sign In with Google functionality in my app as a package and I want to unit test it.</p>
<p>I'm half way there but I kinda stuck about what to do with this error.</p>
<pre><code>'package:firebase_auth_platform_interface/src/providers/google_auth.dart': Failed assert... | [
{
"answer_id": 74467716,
"author": "HimanshuSinha-msft",
"author_id": 11137679,
"author_profile": "https://Stackoverflow.com/users/11137679",
"pm_score": 0,
"selected": false,
"text": "use [your DatabaseName] \nGO \ndrop EXTERNAL table schemaname.tablename\n"
},
{
"answer_id": 74... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11080170/"
] |
74,463,259 | <p>I am making a file manager app in android studio, everything seems to work but when I open the app in the emulator it closes and says: "App keeps stopping".
The logcat is giving an error like this:</p>
<pre><code>Caused by: java.lang.NullPointerException
at java.io.File.<init>(File.java:283)
... | [
{
"answer_id": 74467716,
"author": "HimanshuSinha-msft",
"author_id": 11137679,
"author_profile": "https://Stackoverflow.com/users/11137679",
"pm_score": 0,
"selected": false,
"text": "use [your DatabaseName] \nGO \ndrop EXTERNAL table schemaname.tablename\n"
},
{
"answer_id": 74... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20512332/"
] |
74,463,322 | <p>Why output of below C code gives number when int datatype value is assigned as character</p>
<pre><code>#include<stdio.h>
int main()
{
int i= '5';
printf("%d",i);
return 0;
}
</code></pre>
<p>How its output is 53</p>
| [
{
"answer_id": 74463409,
"author": "abelenky",
"author_id": 34824,
"author_profile": "https://Stackoverflow.com/users/34824",
"pm_score": 1,
"selected": false,
"text": "i = '5';\n i 53 int i = 5; // Note the lack of quotes.\n"
},
{
"answer_id": 74463437,
"author": "0________... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20521563/"
] |
74,463,342 | <p>Please I would like to have unique black lines for my 2D contour.</p>
<pre><code>
set terminal png size 800,800 font 'Times New Roman, 12'
set output 'TH1.png'
set view map
set pm3d map
unset surface
set cont base
set cntrparam levels 50
set isosamples 10
unset key
set xrange[0:180]
set yrange[0:180]
set xlabel '{/... | [
{
"answer_id": 74463409,
"author": "abelenky",
"author_id": 34824,
"author_profile": "https://Stackoverflow.com/users/34824",
"pm_score": 1,
"selected": false,
"text": "i = '5';\n i 53 int i = 5; // Note the lack of quotes.\n"
},
{
"answer_id": 74463437,
"author": "0________... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14008907/"
] |
74,463,353 | <p>Is it possible to emplace some void* pointer into variant with a runtime generated index.</p>
<p>Can this nice solution (from here <a href="https://stackoverflow.com/a/69674233">link</a>), be updated to get index and pointer to emplace?</p>
<pre><code>#include <variant>
template <typename... Ts, std::size_... | [
{
"answer_id": 74463409,
"author": "abelenky",
"author_id": 34824,
"author_profile": "https://Stackoverflow.com/users/34824",
"pm_score": 1,
"selected": false,
"text": "i = '5';\n i 53 int i = 5; // Note the lack of quotes.\n"
},
{
"answer_id": 74463437,
"author": "0________... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463353",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20521411/"
] |
74,463,388 | <p>I have created a custom function to create custom username in a class Inheriting DefaultSocialAccountAdapter. The code is as follows.</p>
<pre><code>def _build_username(self,data):
from allauth.utils import generate_unique_username
if(not data.get('username')):
first_name=data.get('fir... | [
{
"answer_id": 74463435,
"author": "Willem Van Onsem",
"author_id": 67579,
"author_profile": "https://Stackoverflow.com/users/67579",
"pm_score": 2,
"selected": false,
"text": "'first_name' data None {'first_name': None} or def _build_username(self,data):\n from allauth.utils import g... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14612843/"
] |
74,463,475 | <p>This seems like a really basic question but I can't find a solution that will do what I want for all columns of a dataframe.</p>
<p>I have a dataframe:</p>
<pre><code>df = data.frame(cats = c("A", "B", "C", NA, NA), dogs = c(-99, "F", NA, -99, "H"))
</code></pre>
<p>... | [
{
"answer_id": 74463435,
"author": "Willem Van Onsem",
"author_id": 67579,
"author_profile": "https://Stackoverflow.com/users/67579",
"pm_score": 2,
"selected": false,
"text": "'first_name' data None {'first_name': None} or def _build_username(self,data):\n from allauth.utils import g... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7128414/"
] |
74,463,479 | <p>I want to change the label color in my interface when the input is disabled with Typescript or CSS</p>
<p>Here is my interface :</p>
<p><a href="https://i.stack.imgur.com/KybCP.png" rel="nofollow noreferrer">my interface</a></p>
<p>Here is my code :</p>
<pre><code><tr>
<td className="name"&g... | [
{
"answer_id": 74463435,
"author": "Willem Van Onsem",
"author_id": 67579,
"author_profile": "https://Stackoverflow.com/users/67579",
"pm_score": 2,
"selected": false,
"text": "'first_name' data None {'first_name': None} or def _build_username(self,data):\n from allauth.utils import g... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16230569/"
] |
74,463,480 | <p>What is the best way to apply condition on each element in a series, and store the result on a new [0, 1]^n series?</p>
<p>For example:</p>
<p>Apply condition : >= 10 on series : [4, 10, 100, 5]</p>
<p>will return:
[0, 1, 1, 0]</p>
| [
{
"answer_id": 74463435,
"author": "Willem Van Onsem",
"author_id": 67579,
"author_profile": "https://Stackoverflow.com/users/67579",
"pm_score": 2,
"selected": false,
"text": "'first_name' data None {'first_name': None} or def _build_username(self,data):\n from allauth.utils import g... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9652134/"
] |
74,463,487 | <p>I have a dataframe <code>df</code> such that <code>df.columns</code> returns</p>
<pre><code> MultiIndex([( 'a', 's1', 'm/s'),
( 'a', 's2', '%'),
( 'a', 's3', 'ยฐC'),
('b', 'z3', 'ยฐC'),
('b', 'z4', 'kPa')],
names=['kind', 'names', 'units'])
</code></pre>... | [
{
"answer_id": 74463435,
"author": "Willem Van Onsem",
"author_id": 67579,
"author_profile": "https://Stackoverflow.com/users/67579",
"pm_score": 2,
"selected": false,
"text": "'first_name' data None {'first_name': None} or def _build_username(self,data):\n from allauth.utils import g... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2562058/"
] |
74,463,517 | <p>I am trying to create a trigger that reads from table 2 and updates a column in table 1.
I tried with this method but an exception occurred: ORA-04091:table table1 is mutating .</p>
<pre><code>CREATE OR REPLACE TRIGGER "TRG1"
AFTER INSERT OR UPDATE ON table1
FOR EACH ROW
BEGIN
UPDATE table1 SET name =(SE... | [
{
"answer_id": 74463435,
"author": "Willem Van Onsem",
"author_id": 67579,
"author_profile": "https://Stackoverflow.com/users/67579",
"pm_score": 2,
"selected": false,
"text": "'first_name' data None {'first_name': None} or def _build_username(self,data):\n from allauth.utils import g... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5773661/"
] |
74,463,522 | <p><a href="https://i.stack.imgur.com/mKmIW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mKmIW.png" alt="Here is what my website looks like:" /></a>
As you can see, there is a white background covering the background image. I tried adding <code>background-color: transparent;</code> to the text, bu... | [
{
"answer_id": 74463435,
"author": "Willem Van Onsem",
"author_id": 67579,
"author_profile": "https://Stackoverflow.com/users/67579",
"pm_score": 2,
"selected": false,
"text": "'first_name' data None {'first_name': None} or def _build_username(self,data):\n from allauth.utils import g... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18884489/"
] |
74,463,597 | <p>The terra package has the aggregate function that allows to create a new SpatRaster with a lower resolution (larger cells) but needs the fact parameter.</p>
<p>When converting many rasters, fact needs to be calculated each time, is there a way to pass the fact parameter based on the target resolution of another rast... | [
{
"answer_id": 74463435,
"author": "Willem Van Onsem",
"author_id": 67579,
"author_profile": "https://Stackoverflow.com/users/67579",
"pm_score": 2,
"selected": false,
"text": "'first_name' data None {'first_name': None} or def _build_username(self,data):\n from allauth.utils import g... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2319308/"
] |
74,463,599 | <p>I was asked to implement a queue using a linked list without a header node. My teacher gave us this snippet for referring to the enqueue function. I'm familiar with how to use queue operations. But I keep getting confused when double-pointers are used along with functions. I'm not sure which variable the double-poin... | [
{
"answer_id": 74463435,
"author": "Willem Van Onsem",
"author_id": 67579,
"author_profile": "https://Stackoverflow.com/users/67579",
"pm_score": 2,
"selected": false,
"text": "'first_name' data None {'first_name': None} or def _build_username(self,data):\n from allauth.utils import g... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16918445/"
] |
74,463,618 | <p>I have this json file and i have tried to filter the data keep only the user:'11111', but its not working.</p>
<pre><code>var data= [
{
id: {
server: 'xxxxx',
user: '123456',
_serialized: '64566'
},
name: 'Doe',
isCalled: false,
isReceived: false,
unreadCount: 1,
},
{
... | [
{
"answer_id": 74463689,
"author": "Elie",
"author_id": 17987026,
"author_profile": "https://Stackoverflow.com/users/17987026",
"pm_score": 1,
"selected": false,
"text": "array.map( x => f(x) ) f(x) const data = [\n {\n \"id\": { \"server\": \"xxxxx\", \"user\": \"123456\", \"_serial... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13657813/"
] |
74,463,644 | <p>I have a method for handling an update on this object. In this method I want to accept any field value that the object has, such as name, age, weight, eyeColor etc. If that field exists within that object, I'd like to be able to update the object dynamically for any field they pass in.</p>
<p>I am currently doing it... | [
{
"answer_id": 74463689,
"author": "Elie",
"author_id": 17987026,
"author_profile": "https://Stackoverflow.com/users/17987026",
"pm_score": 1,
"selected": false,
"text": "array.map( x => f(x) ) f(x) const data = [\n {\n \"id\": { \"server\": \"xxxxx\", \"user\": \"123456\", \"_serial... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20514758/"
] |
74,463,657 | <p>The thing is have a lot of these TextEditingControllers in many screens, Login, Forms, etc.
Do I have to implement a dispose method to each of these controllers do to memory leak or it doesn't matter?</p>
<p>Thank you!!</p>
<p>I tried in some screens but I don't know if is recommended.</p>
| [
{
"answer_id": 74463689,
"author": "Elie",
"author_id": 17987026,
"author_profile": "https://Stackoverflow.com/users/17987026",
"pm_score": 1,
"selected": false,
"text": "array.map( x => f(x) ) f(x) const data = [\n {\n \"id\": { \"server\": \"xxxxx\", \"user\": \"123456\", \"_serial... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19997747/"
] |
74,463,690 | <p>There's a ton of threads there already I know but I still can't get it to work. I'm building an embed with a button. The embed appears using command $test. The error happens when I trigger the embed for the second time (2nd $test) and click the button after clicking the button on the first trigger.</p>
<p>This flow ... | [
{
"answer_id": 74463689,
"author": "Elie",
"author_id": 17987026,
"author_profile": "https://Stackoverflow.com/users/17987026",
"pm_score": 1,
"selected": false,
"text": "array.map( x => f(x) ) f(x) const data = [\n {\n \"id\": { \"server\": \"xxxxx\", \"user\": \"123456\", \"_serial... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/874737/"
] |
74,463,713 | <p>I'm trying to learn to react online and I understood everything except this line code</p>
<pre><code>const removeItem = (id) => {
let newPeople = people.filter((person) => person.id !== id);
setPeople(newPeople);
};
</code></pre>
<p>especially how <code>person.id !== id</code>removes the item from ... | [
{
"answer_id": 74463817,
"author": "Kamran Davar",
"author_id": 12510464,
"author_profile": "https://Stackoverflow.com/users/12510464",
"pm_score": 1,
"selected": false,
"text": "person.id !== id"
},
{
"answer_id": 74463912,
"author": "Oscar Daniel Pรฉrez Otero",
"author_i... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12146779/"
] |
74,463,717 | <p>I'm currently working with:</p>
<ul>
<li>Micronaut 3.7.3</li>
<li>RabbitMQ 3.11.2</li>
<li>Spock</li>
<li>Groovy / Java 17</li>
</ul>
<p>I'm implementing a rabbitmq consumer for a simple demo project following the guidelines from micronaut project (<a href="https://micronaut-projects.github.io/micronaut-rabbitmq/3.1... | [
{
"answer_id": 74463817,
"author": "Kamran Davar",
"author_id": 12510464,
"author_profile": "https://Stackoverflow.com/users/12510464",
"pm_score": 1,
"selected": false,
"text": "person.id !== id"
},
{
"answer_id": 74463912,
"author": "Oscar Daniel Pรฉrez Otero",
"author_i... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20521129/"
] |
74,463,792 | <p>I have a select option like this:</p>
<pre><code><label>Choose One:</label>
<select id="choose1">
<option value="val1">Value 1</option>
<option value="val2">Value 2</option>
<option value="val3">Value 3</option>... | [
{
"answer_id": 74464162,
"author": "yeya",
"author_id": 3107689,
"author_profile": "https://Stackoverflow.com/users/3107689",
"pm_score": 0,
"selected": false,
"text": "val2 const action = () => {\n let optionText = '';\n const optionElements = document\n .querySelectorAll('#choose1... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3990953/"
] |
74,463,813 | <p>I'll divide this into three parts:</p>
<p>What I have:</p>
<p>I have two tables <code>Table1</code> and <code>Table2</code>.</p>
<p><strong>Table1</strong></p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>ObjectName</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
<td>Active</t... | [
{
"answer_id": 74465236,
"author": "Anel Hodลพiฤ",
"author_id": 4018834,
"author_profile": "https://Stackoverflow.com/users/4018834",
"pm_score": 2,
"selected": true,
"text": "WHERE ChildObjectType table2.[ChildObjectName] SELECT \n ObjectName,\n Status,\n STUFF((SELECT '; ' + ta... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2508346/"
] |
74,463,822 | <p>I have a couple of tables that are joined:
Table A ([Id], [Name], [Active])
Table B ([Id], [Name], [A_Id])</p>
<p>I would like to insert into Table A first, then use the Id of the new row to insert into Table B.</p>
<pre><code>DECLARE @NEWID table(NewID Numeric(19, 0));
INSERT [dbo].[TableA] ([Name], [Active])
OUT... | [
{
"answer_id": 74465236,
"author": "Anel Hodลพiฤ",
"author_id": 4018834,
"author_profile": "https://Stackoverflow.com/users/4018834",
"pm_score": 2,
"selected": true,
"text": "WHERE ChildObjectType table2.[ChildObjectName] SELECT \n ObjectName,\n Status,\n STUFF((SELECT '; ' + ta... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1094553/"
] |
74,463,833 | <p>I need to rotate table by 90,180,270 degrees and reset it to start at last option I must do it in switch but i have no idea how to do that because table must be in char. I found a lot of question about table in int but no one in char. I had this at this moment and no idea how to rotate it in char</p>
<pre><code>usin... | [
{
"answer_id": 74464228,
"author": "hossein sabziani",
"author_id": 4301195,
"author_profile": "https://Stackoverflow.com/users/4301195",
"pm_score": 2,
"selected": false,
"text": "char[,] a = new char[6, 6]\n {\n {'#', '#', '#', '%', '%', '%'},\n {'#', '#', ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20512350/"
] |
74,463,840 | <p>im trying to array.push in a for loop in my Typescript code:</p>
<pre><code>var rows = [
{
id: '1',
category: 'Snow',
value: 'Jon',
cheapSource: '35',
cheapPrice: '35',
amazonSource: '233'
}
];
var newRow = {
id: productName,
category: category,
value: _v... | [
{
"answer_id": 74464228,
"author": "hossein sabziani",
"author_id": 4301195,
"author_profile": "https://Stackoverflow.com/users/4301195",
"pm_score": 2,
"selected": false,
"text": "char[,] a = new char[6, 6]\n {\n {'#', '#', '#', '%', '%', '%'},\n {'#', '#', ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15828620/"
] |
74,463,847 | <p>I have a very simple method that receives a number and returns a text based on the range.
This is it:</p>
<pre><code>getBoardLocation(num) {
switch (num) {
case (6 >= num >= 1):
return 'bl';
case (12 >= num >= 7):
return 'br';
case (18 >= n... | [
{
"answer_id": 74463927,
"author": "spender",
"author_id": 14357,
"author_profile": "https://Stackoverflow.com/users/14357",
"pm_score": 0,
"selected": false,
"text": "case switch true false"
},
{
"answer_id": 74463932,
"author": "Daniel",
"author_id": 11952668,
"auth... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14794409/"
] |
74,463,863 | <p>I am attempting to combine two regex operators when querying my MongoDB, the second of which (id) being a number field, hence the weird conversions.</p>
<p>Both of these work individually, and if I replace the <code>$where</code> regex with a more traditional one, it also works, however when run as is, it only looks... | [
{
"answer_id": 74463927,
"author": "spender",
"author_id": 14357,
"author_profile": "https://Stackoverflow.com/users/14357",
"pm_score": 0,
"selected": false,
"text": "case switch true false"
},
{
"answer_id": 74463932,
"author": "Daniel",
"author_id": 11952668,
"auth... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10755384/"
] |
74,463,875 | <p>How can I continuously copy one S3 bucket to another? I want to copy the files every time a new file has been added.</p>
<p>I've tried using the boto3 copy_object however I require the key each time which won't work if I'm getting a new file each time.</p>
| [
{
"answer_id": 74467644,
"author": "John Rotenstein",
"author_id": 174777,
"author_profile": "https://Stackoverflow.com/users/174777",
"pm_score": 1,
"selected": false,
"text": "CopyObject()"
}
] | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20281720/"
] |
74,463,894 | <pre><code>mytype = "int"
myvalue = "35"
my_int_val = mytype(myvalue)
</code></pre>
<p>This throws up -</p>
<p><code>TypeError: 'str' object is not callable</code></p>
<p>I can't seem to remember the way to do so. Any ideas?</p>
<p>Please note that I have to use "str", "int" ins... | [
{
"answer_id": 74463986,
"author": "Priyatham",
"author_id": 2542516,
"author_profile": "https://Stackoverflow.com/users/2542516",
"pm_score": 0,
"selected": false,
"text": "my_int_val = int(myvalue)\nmy_str_val = str(myvalue)\n t = \"int\"\nmy_int_val = eval(f\"{t}({myvalue})\")\n"
},... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20470583/"
] |
74,463,899 | <p>How can I change the value of a variable using dictionary? Right now I have to check every key of the dictionary and then change the corresponding variable's value.</p>
<p>`</p>
<pre><code>list1 = [1, 2, 3]
list2 = [4, 5, 6]
list3 = [7, 8, 9]
dictionary = {
"dog": list1,
"cat": list2,
... | [
{
"answer_id": 74463986,
"author": "Priyatham",
"author_id": 2542516,
"author_profile": "https://Stackoverflow.com/users/2542516",
"pm_score": 0,
"selected": false,
"text": "my_int_val = int(myvalue)\nmy_str_val = str(myvalue)\n t = \"int\"\nmy_int_val = eval(f\"{t}({myvalue})\")\n"
},... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74463899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20521653/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.