qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,573,235 | <p>I'm importing my plain HTML/CSS website to MODX. I made all of the Elements static, so I can edit them from VS Code + SFTP plugin. But I still have to use MODX Manager to create or delete new Elements.</p>
<p>Is there a convenient way to manage Resources and Elements not switching to the web browser with MODX Manage... | [
{
"answer_id": 74601479,
"author": "Bram Verstraten",
"author_id": 369143,
"author_profile": "https://Stackoverflow.com/users/369143",
"pm_score": 2,
"selected": true,
"text": "<?php\ntry {\n $modxBasePath = '/full/path/to/modx';\n $templatesPath = '/full/path/to/templates';\n $... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9282831/"
] |
74,573,236 | <p>How do you pass props to the the page.jsx of layout? (NEXT 13)</p>
<pre><code>//app/blog/layout.jsx
export default function RootLayout({ children }) {
return (
<div>
<Navbar />
<Sidebar />
{/*How do I pass any props from this root layout to this {children... | [
{
"answer_id": 74573344,
"author": "Mayank Gupta",
"author_id": 17691526,
"author_profile": "https://Stackoverflow.com/users/17691526",
"pm_score": 0,
"selected": false,
"text": "<Navbar children = {children} />\n"
},
{
"answer_id": 74584771,
"author": "Yilmaz",
"author_i... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19644223/"
] |
74,573,238 | <p>I've got a problem with a program which finds all substring in a given string.
I've tried to make variable "found", which would contain a position of a previously found substring and then start searching from the position.
Here's my code:</p>
<pre><code>#include <iostream>
#include <string>
... | [
{
"answer_id": 74574443,
"author": "Monogeon",
"author_id": 17861720,
"author_profile": "https://Stackoverflow.com/users/17861720",
"pm_score": 1,
"selected": false,
"text": "substr(a,b) find(a) #include <iostream>\n#include <string> //not really needed here. string should already be usa... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573238",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16208262/"
] |
74,573,266 | <p>I have a malformed JSON with <code>"key":True</code> instead of <code>"key":true</code></p>
<p>So I'm getting the following error :</p>
<pre><code>"com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'True': was expecting (JSON String, Number, Array, Object or token 'null', 'tr... | [
{
"answer_id": 74576186,
"author": "Alexander Ivanchenko",
"author_id": 17949945,
"author_profile": "https://Stackoverflow.com/users/17949945",
"pm_score": 1,
"selected": false,
"text": "boolean true false null false boolean boolean boolean"
},
{
"answer_id": 74594378,
"autho... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10974166/"
] |
74,573,267 | <p>I'm trying to write a function that will backfill columns in a dataframe adhearing to a condition. The upfill should only be done within groups. I am however having a hard time getting the group object to ungroup. I have tried reset_index as in the example bellow but that gets an AttributeError.</p>
<p>Accessing the... | [
{
"answer_id": 74576186,
"author": "Alexander Ivanchenko",
"author_id": 17949945,
"author_profile": "https://Stackoverflow.com/users/17949945",
"pm_score": 1,
"selected": false,
"text": "boolean true false null false boolean boolean boolean"
},
{
"answer_id": 74594378,
"autho... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1320619/"
] |
74,573,268 | <p>I am running an Ubuntu self-hosted build agent for Azure DevOps in Container Instances and container outputs only: <code>Determining matching Azure Pipelines agent.</code> and that's it.</p>
<p>It has PAT with full access to whole organization, given agent pool really exists and the URL is correct as well. THe only ... | [
{
"answer_id": 74576186,
"author": "Alexander Ivanchenko",
"author_id": 17949945,
"author_profile": "https://Stackoverflow.com/users/17949945",
"pm_score": 1,
"selected": false,
"text": "boolean true false null false boolean boolean boolean"
},
{
"answer_id": 74594378,
"autho... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6156353/"
] |
74,573,270 | <p>I've been using <code>caret::createDataPartition()</code> in order to split the data in a stratified way. Now I'm trying another approach that I found here in stack, which is <code>splitstackshape::stratified()</code>, and the reason I'm intrested in this is that it allows to stratifiy based on features that I choos... | [
{
"answer_id": 74573434,
"author": "Len Greski",
"author_id": 8471931,
"author_profile": "https://Stackoverflow.com/users/8471931",
"pm_score": 2,
"selected": false,
"text": "mtcars library(splitstackshape)\nset.seed(19108379) # for reproducibility\n\n# add a unique sequential ID to trac... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17945841/"
] |
74,573,309 | <p>i have 2 array of objects like so,</p>
<pre><code>const initial = [
{
id: '1',
value: '1',
},
{
id: '2',
value: '2',
}
]
const current = [
{
id: '1',
value: '3',
},
{
id: '2',
value: '2',
},
]
</code></pre>
<p>these two ... | [
{
"answer_id": 74573434,
"author": "Len Greski",
"author_id": 8471931,
"author_profile": "https://Stackoverflow.com/users/8471931",
"pm_score": 2,
"selected": false,
"text": "mtcars library(splitstackshape)\nset.seed(19108379) # for reproducibility\n\n# add a unique sequential ID to trac... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18234477/"
] |
74,573,310 | <p>I want to manipulate with background-color of Component "MyBox" using Tabs. Background of Component has to be filled with the color, named in Tabs.
One condition: you're not allowed to delete <code>@bind-ActivePanelIndex="activeIndex"</code> from code (it's used for other purposes).
I have a meth... | [
{
"answer_id": 74573434,
"author": "Len Greski",
"author_id": 8471931,
"author_profile": "https://Stackoverflow.com/users/8471931",
"pm_score": 2,
"selected": false,
"text": "mtcars library(splitstackshape)\nset.seed(19108379) # for reproducibility\n\n# add a unique sequential ID to trac... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19248032/"
] |
74,573,319 | <p>I want to do fscanf on a .txt file, here's how it looks</p>
<pre><code>7 6
[1,2]="english"
[1,4]="linear"
[2,4]="calculus"
[3,1]="pe"
[3,3]="Programming"
</code></pre>
<p>I want to take only the 2 numbers in the brackets, the first is day, and the second is session,... | [
{
"answer_id": 74573486,
"author": "jvx8ss",
"author_id": 11107859,
"author_profile": "https://Stackoverflow.com/users/11107859",
"pm_score": 1,
"selected": false,
"text": "sscanf #include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\n#define LINEBUFSIZE 500\n\nint main(){\n ... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20388275/"
] |
74,573,336 | <p>my component livewire</p>
<pre><code> public $images = [];
public function rules()
{
return [
'images.*.name' => 'required|max:255',
];
}
</code></pre>
<p>blade.php</p>
<pre><code> <div id="images">
@foreach($images as $index =&g... | [
{
"answer_id": 74573486,
"author": "jvx8ss",
"author_id": 11107859,
"author_profile": "https://Stackoverflow.com/users/11107859",
"pm_score": 1,
"selected": false,
"text": "sscanf #include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\n#define LINEBUFSIZE 500\n\nint main(){\n ... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5717984/"
] |
74,573,345 | <p>This line of code is getting document count from firestore database it works fine when i call the variable inside the function but outside its undefine.</p>
<pre><code> var LM35TOTALRES; // I WANT TO STORE HERE
db.collection("LM35").get().then(function(querySnapshot) {
LM35TOTALRES ... | [
{
"answer_id": 74573389,
"author": "N Hilmi",
"author_id": 11943184,
"author_profile": "https://Stackoverflow.com/users/11943184",
"pm_score": -1,
"selected": false,
"text": "let LM35TOTALRES;\n"
},
{
"answer_id": 74573436,
"author": "Ali Osman",
"author_id": 10760289,
... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20599594/"
] |
74,573,346 | <p>So I already did this basically 1 year ago but I forgot how to do it, and its not working now though. Here is the <a href="https://blog.logrocket.com/adding-emojis-react-app/#:%7E:text=To%20include%20it%20in%20your,use%20React%2016.8%20or%20higher!" rel="nofollow noreferrer">LINK</a>
basically I have a like a <stron... | [
{
"answer_id": 74573686,
"author": "Marios",
"author_id": 20229075,
"author_profile": "https://Stackoverflow.com/users/20229075",
"pm_score": 2,
"selected": true,
"text": "emoji-picker-react MaterialUI <div className=\"chat_footer\">\n {!emojiPicker ? (\n <InsertEmoticonI... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17900052/"
] |
74,573,355 | <p>I am trying to generate a list of 12 random weights for a stock portfolio in order to determine how the portfolio would have performed in the past given different weights assigned to each stock. The sum of the weights must of course be 1 and there is an additional restriction: each stock must have a weight between 1... | [
{
"answer_id": 74573686,
"author": "Marios",
"author_id": 20229075,
"author_profile": "https://Stackoverflow.com/users/20229075",
"pm_score": 2,
"selected": true,
"text": "emoji-picker-react MaterialUI <div className=\"chat_footer\">\n {!emojiPicker ? (\n <InsertEmoticonI... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19567665/"
] |
74,573,372 | <p>I am trying to create a view using the following source code:</p>
<pre><code>SQLiteDatabase db = mManagerDbHelper.getWritableDatabase();
String sql = "SELECT * FROM users WHERE name = ?";
String[] selectionArgs = new String[] {"Bob"};
db.execSQL("CREATE VIEW bob_user AS " + sql, select... | [
{
"answer_id": 74573373,
"author": "user1506104",
"author_id": 1506104,
"author_profile": "https://Stackoverflow.com/users/1506104",
"pm_score": 0,
"selected": false,
"text": "SQLiteDatabase db = mManagerDbHelper.getWritableDatabase();\n\nString sql = \"SELECT * FROM users WHERE name = '... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1506104/"
] |
74,573,382 | <p>I'm trying to get min and max values from query</p>
<pre><code>SELECT TABLE_NAME , COLUMN_NAME
FROM ALL_TAB_COLUMNS
WHERE TABLE_NAME IN ('TABLE_A','TABLE_B')
and DATA_TYPE='NUMBER'
AND (DATA_PRECISION IS NULL OR DATA_SCALE IS NULL)
</code></pre>
<p>here what I get so far, but it shows nothing:</p>
<pre><code>BEGIN D... | [
{
"answer_id": 74573484,
"author": "Roland",
"author_id": 1845672,
"author_profile": "https://Stackoverflow.com/users/1845672",
"pm_score": -1,
"selected": false,
"text": "select max(x), min(x)\nfrom t\n"
},
{
"answer_id": 74573623,
"author": "Littlefoot",
"author_id": 90... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573382",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20599563/"
] |
74,573,386 | <p>I am appending a column in data-frame column name = 'Name' which is a string comprising of a few different columns concatenation.</p>
<p>Now, I want to replace certain characters with certain values. Lets say</p>
<p>& -> and
< -> less than</p>
<blockquote>
<p>-> greater than
' -> this is an apost... | [
{
"answer_id": 74573445,
"author": "Gonçalo Peres",
"author_id": 7109869,
"author_profile": "https://Stackoverflow.com/users/7109869",
"pm_score": 2,
"selected": false,
"text": "pandas.DataFrame.apply pandas.Series.str.replace regex = r'(<|>|&)'\n\ndf_new = df.apply(lambda x: x.str.repla... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12953677/"
] |
74,573,393 | <p>I've got a map:</p>
<pre><code>const dataMap: {
KEY01: { label: 'some string', details: {....}},
KEY02: { label: 'some other string', details: {...}},
}
const copy = {
title: dataMap[keyVariable].label,
info: dataMap[keyVariable].details,
}
</code></pre>
<p>so the <code>keyVariable</code> comes from a 3rd... | [
{
"answer_id": 74573702,
"author": "jsejcksn",
"author_id": 438273,
"author_profile": "https://Stackoverflow.com/users/438273",
"pm_score": 3,
"selected": true,
"text": "declare const keyVariable: 'KEY01' | 'KEY02' | 'KEY03' | 'KEY04' /* etc. */;\n\nconst dataMap = {\n KEY01: { label: '... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1945363/"
] |
74,573,398 | <p>I am currently struggling with woo-commerce and the availability status on product pages. I am trying to display various texts (translated) on the product pages, whether the product is available and how many we have, then whether it is unavailable, whether it is available to backorder, and what I can't do is display... | [
{
"answer_id": 74573702,
"author": "jsejcksn",
"author_id": 438273,
"author_profile": "https://Stackoverflow.com/users/438273",
"pm_score": 3,
"selected": true,
"text": "declare const keyVariable: 'KEY01' | 'KEY02' | 'KEY03' | 'KEY04' /* etc. */;\n\nconst dataMap = {\n KEY01: { label: '... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20572835/"
] |
74,573,411 | <p><strong>I removed some code so it will become easier to read</strong></p>
<blockquote>
<p>But everthing is imported correctly and working correctly but i can't figure out this error
<strong>i got this error but i saw a tutorial and even reactRouter site have same way but it's not working with my code</strong></p>
</... | [
{
"answer_id": 74573702,
"author": "jsejcksn",
"author_id": 438273,
"author_profile": "https://Stackoverflow.com/users/438273",
"pm_score": 3,
"selected": true,
"text": "declare const keyVariable: 'KEY01' | 'KEY02' | 'KEY03' | 'KEY04' /* etc. */;\n\nconst dataMap = {\n KEY01: { label: '... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20393875/"
] |
74,573,412 | <p>let's assume an input string has given, for a particular character like '$' you want to add dynamically in the text field , so I want to find the index of a current character like <strong>'$'</strong> then it's not working properly like initially if I give '$'in any position, its reflection the position, example if ... | [
{
"answer_id": 74573702,
"author": "jsejcksn",
"author_id": 438273,
"author_profile": "https://Stackoverflow.com/users/438273",
"pm_score": 3,
"selected": true,
"text": "declare const keyVariable: 'KEY01' | 'KEY02' | 'KEY03' | 'KEY04' /* etc. */;\n\nconst dataMap = {\n KEY01: { label: '... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17227120/"
] |
74,573,439 | <p>I want to change the paragraph text when the next arrow is clicked. I can change it once but if I want to change it to a third option, it's not working. Can someone explain why this is the case?</p>
<p>I have made a Codepen with the issue: <a href="https://codepen.io/harrync92/pen/WNyJybM" rel="nofollow noreferrer">... | [
{
"answer_id": 74573647,
"author": "exphoenee",
"author_id": 13804256,
"author_profile": "https://Stackoverflow.com/users/13804256",
"pm_score": 0,
"selected": false,
"text": "const text = document.querySelector(\"p\");\nconst possiblities = [\"text1\", \"text2\", \"text3\", \"text4\"];\... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573439",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17736785/"
] |
74,573,468 | <p>I have the following table:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Day</th>
<th>Category</th>
<th>Count</th>
</tr>
</thead>
<tbody>
<tr>
<td>D1</td>
<td>A</td>
<td>10</td>
</tr>
<tr>
<td>D1</td>
<td>B</td>
<td>20</td>
</tr>
<tr>
<td>D2</td>
<td>A</td>
<td>8</td>
</tr>
<tr>
<td>D... | [
{
"answer_id": 74573836,
"author": "lonfo",
"author_id": 20042380,
"author_profile": "https://Stackoverflow.com/users/20042380",
"pm_score": 0,
"selected": false,
"text": "SELECT\n day,\n category,\n count,\n count/(SELECT count \n FROM table a... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20599587/"
] |
74,573,518 | <p>Say i have elements</p>
<pre><code> <div id="Test1">
<p text="One"> One </p>
</div>
<div id="Test2">
<p text="One"> One </p>
</div>
<div id="Test3">
<p text="One"> One <... | [
{
"answer_id": 74575459,
"author": "Bouke",
"author_id": 6864688,
"author_profile": "https://Stackoverflow.com/users/6864688",
"pm_score": 2,
"selected": false,
"text": "getElementById(id) {\n const selector = \"#\" + id;\n return cy.get(selector);\n}\n"
},
{
"answer_id": 7... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8069046/"
] |
74,573,540 | <pre><code>class AAA
{
int m_Int;
public:
AAA() : m_Int{12} {}
};
class BBB
{
int m_Int1;
public:
BBB() : m_Int1{12} {}
};
class CCC : public AAA, public BBB {};
AAA a;
BBB b;
CCC c{ a, b };
</code></pre>
<p>Why can object <code>c</code> be constructed by parent class object?</p>
<p>I tried to find ... | [
{
"answer_id": 74575459,
"author": "Bouke",
"author_id": 6864688,
"author_profile": "https://Stackoverflow.com/users/6864688",
"pm_score": 2,
"selected": false,
"text": "getElementById(id) {\n const selector = \"#\" + id;\n return cy.get(selector);\n}\n"
},
{
"answer_id": 7... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16889740/"
] |
74,573,541 | <p>I am trying to put the white container at the bottom of the page how I can do that, I don't want to give a padding top because this will affect other screens' sizes. Is there a way to put the whole white container at the bottom of the page it at the bottom of the screen?</p>
<p>here is an image :<a href="https://i.s... | [
{
"answer_id": 74573862,
"author": "Abdalla Tawfik",
"author_id": 11601491,
"author_profile": "https://Stackoverflow.com/users/11601491",
"pm_score": 0,
"selected": false,
"text": "Column(\n children: [\n mainAxisAlignment: MainAxisAlignment.end... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20059879/"
] |
74,573,581 | <p>I have an n x m array and a function 'switch(A,J)' that takes array (A) and integer(J) input and outputs an array of size n x m. I wish to split my n x m array into arrays of dimension c x c and apply the function with a fixed J to each c x c array and output the resulting array.c may not be a factor of n or m. Woul... | [
{
"answer_id": 74573862,
"author": "Abdalla Tawfik",
"author_id": 11601491,
"author_profile": "https://Stackoverflow.com/users/11601491",
"pm_score": 0,
"selected": false,
"text": "Column(\n children: [\n mainAxisAlignment: MainAxisAlignment.end... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18850013/"
] |
74,573,622 | <p>Working on a demo I switched to using Combine, but just cannot seem to find a way to assign the values that I get from json decoding in sink to point to an array , below is my code , as you can see in the commented out code using URLSession it was much easier …thanks</p>
<p>Currently I just see the default record</p... | [
{
"answer_id": 74573904,
"author": "burnsi",
"author_id": 6950415,
"author_profile": "https://Stackoverflow.com/users/6950415",
"pm_score": 2,
"selected": true,
"text": "func fetchData() async {\n //create custom decoder and apply dateDecodingStrategy\n let decoder = JSONDecoder()\... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3151281/"
] |
74,573,656 | <p>I am using FastAPI to upload a csv file, perform some modifications on it and then return it to the HTML page. I am using Jinja2 as the template engine and HTML in frontend.</p>
<p>How can I upload the csv file using Jinja2 template, modify it and then return it to the client?</p>
<h2>Python code</h2>
<pre class="la... | [
{
"answer_id": 74573882,
"author": "rtoth",
"author_id": 20589189,
"author_profile": "https://Stackoverflow.com/users/20589189",
"pm_score": 0,
"selected": false,
"text": "@app.post(\"/\")\ndef upload(file: UploadFile):\n\n with open(\"temp.csv\", \"wb\") as f:\n for row in fil... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17158028/"
] |
74,573,698 | <p>I have a query</p>
<pre><code> INSERT INTO FCC_CS_WL_SOURCE_REQUEST_ID_MAP
(
"N_WL_SOURCE_REQUEST_ID",
"V_SOURCE_REQUEST_ID",
"V_TARGET_KEY",
"V_TARGET_INDEXNAME"
)
SELECT
MAP_SEQ_TEST.nextval,
FCC_CUST_DIM.V_ALT_CUST_ID AS "V_SOURCE_REQUEST_ID",
FCC_CS_MATCHED_... | [
{
"answer_id": 74573882,
"author": "rtoth",
"author_id": 20589189,
"author_profile": "https://Stackoverflow.com/users/20589189",
"pm_score": 0,
"selected": false,
"text": "@app.post(\"/\")\ndef upload(file: UploadFile):\n\n with open(\"temp.csv\", \"wb\") as f:\n for row in fil... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2675190/"
] |
74,573,751 | <p>I need help with my Next.js project. I take the token in the cookie from the <code>serverSideProps</code> of each page and bring the profile information. The appearance of the profile information means that the user is logged in. I am using this code on every page. that didn't feel right. How will I check if the pro... | [
{
"answer_id": 74574037,
"author": "msabic22",
"author_id": 8925990,
"author_profile": "https://Stackoverflow.com/users/8925990",
"pm_score": 0,
"selected": false,
"text": "getServerSideProps app.js"
},
{
"answer_id": 74650820,
"author": "Yilmaz",
"author_id": 10262805,
... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573751",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19600004/"
] |
74,573,773 | <p>I have this code:</p>
<pre><code>const database = client.db("Cluster0");
const collection = database.collection("people");
let data = { ...req.body}
let doc = collection.updateOne(
{ id: req.body.id },
{$set: {}}
)
</code></pre>
<p>what I am trying to do is update the entire document wi... | [
{
"answer_id": 74574037,
"author": "msabic22",
"author_id": 8925990,
"author_profile": "https://Stackoverflow.com/users/8925990",
"pm_score": 0,
"selected": false,
"text": "getServerSideProps app.js"
},
{
"answer_id": 74650820,
"author": "Yilmaz",
"author_id": 10262805,
... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573773",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15576194/"
] |
74,573,803 | <p>I want to get the list of <strong>last n number</strong> of table names present in a schema in a particular database. The problem is there are lots of tables and is not convenient to scroll through all of them to reach the end. Is there a way I can use something equivalent of <strong>tail -f</strong> command which... | [
{
"answer_id": 74574037,
"author": "msabic22",
"author_id": 8925990,
"author_profile": "https://Stackoverflow.com/users/8925990",
"pm_score": 0,
"selected": false,
"text": "getServerSideProps app.js"
},
{
"answer_id": 74650820,
"author": "Yilmaz",
"author_id": 10262805,
... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16906311/"
] |
74,573,830 | <p>How can I check response status code when using NuxtJs <code>useFetch</code>?</p>
<p>Currently I'm handling response as follows, but I cannot find anywhere how to get the exact response status code, only an error message e.g. <code>FetchError: 403 Forbidden</code>.</p>
<pre class="lang-js prettyprint-override"><code... | [
{
"answer_id": 74574037,
"author": "msabic22",
"author_id": 8925990,
"author_profile": "https://Stackoverflow.com/users/8925990",
"pm_score": 0,
"selected": false,
"text": "getServerSideProps app.js"
},
{
"answer_id": 74650820,
"author": "Yilmaz",
"author_id": 10262805,
... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573830",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3030926/"
] |
74,573,857 | <p>How can I run kubectl apply commands from go via client-go?
e.g.:
I'm having a file called crds.yaml and I want to run it via client-go</p>
<p>I can't find any examples about how to do so can someone please help?</p>
| [
{
"answer_id": 74591683,
"author": "Astin Gengo",
"author_id": 8443804,
"author_profile": "https://Stackoverflow.com/users/8443804",
"pm_score": 1,
"selected": false,
"text": " yamlFile, err := ioutil.ReadFile(\"custom.yaml\")\n if err != nil {\n log.Printf(\"yamlFile.Get er... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8443804/"
] |
74,573,866 | <p>I'm getting the error when transpiling Typescript with npm run build:</p>
<pre><code>Type 'number | null' is not assignable to type 'number'.
Type 'null' is not assignable to type 'number'.
</code></pre>
<p>Index.ts</p>
<pre><code>public init(context: ComponentFramework.Context<IInputs>, notifyOutputChanged:... | [
{
"answer_id": 74591683,
"author": "Astin Gengo",
"author_id": 8443804,
"author_profile": "https://Stackoverflow.com/users/8443804",
"pm_score": 1,
"selected": false,
"text": " yamlFile, err := ioutil.ReadFile(\"custom.yaml\")\n if err != nil {\n log.Printf(\"yamlFile.Get er... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15235239/"
] |
74,573,878 | <p>I suppose both the pandas value_counts() and histogram gives the frequency of an item. I have a case where this is different. When I plot a histogram, I get two peaks as shown below,</p>
<pre><code>d = pd.read_csv('sample.csv')
d.hist()
d['value'].value_counts().nlargest(3)
200000000.0 906
20.0 219
10... | [
{
"answer_id": 74573993,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 1,
"selected": false,
"text": "df['value'].plot.hist()\n pandas.cut pd.cut(df['value'], bins=10).value_counts(sort=False).plot.bar()\n pd.cut(df['... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13440925/"
] |
74,573,880 | <p>I have the following form with custom validators:</p>
<pre><code>this.Form = this.fb.group({
cruiseId: new FormControl(this.leg.cruiseId),
startDate: new FormControl(this.leg.startDate, [Validators.required]),
endDate: new FormControl(this.leg.endDate)
}, { validators: [this.checkDuplicates, th... | [
{
"answer_id": 74573993,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 1,
"selected": false,
"text": "df['value'].plot.hist()\n pandas.cut pd.cut(df['value'], bins=10).value_counts(sort=False).plot.bar()\n pd.cut(df['... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573880",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3439959/"
] |
74,573,907 | <p>In EXCEL, I would like to change the array of a two columns table (A1:A91;B1:B91) to a 13 X 7 table as follows, by removing the "Turnover" text and replacing the cells with the turnover quantity.
<a href="https://i.stack.imgur.com/sovUn.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sov... | [
{
"answer_id": 74575077,
"author": "Ike",
"author_id": 16578424,
"author_profile": "https://Stackoverflow.com/users/16578424",
"pm_score": 1,
"selected": false,
"text": "=LET(d,A1:B26,\ndOnly,FILTER(d,INDEX(d,,2)<>\"Turnover\"),\nyears,UNIQUE(FILTER(INDEX(d,,1),INDEX(d,,2) = \"Turnover\"... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12267517/"
] |
74,573,955 | <p>Hi I am hoping you could help me in this python error that i could not solve</p>
<pre><code>def remove_dots(string):
lst = []
for i in range(len(string)):
lst.append(string[i])
for i in range(len(lst)):
if i <= len(lst):
if lst[i] == ".":
lst.... | [
{
"answer_id": 74574036,
"author": "Bhargav",
"author_id": 15358800,
"author_profile": "https://Stackoverflow.com/users/15358800",
"pm_score": 2,
"selected": false,
"text": "def remove_dots(string):\n lst = []\n\n for i in range(len(string)):\n lst.append(string[i])\n\n f... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14315689/"
] |
74,573,998 | <p>Below are two arrays, <code>user_array</code> and <code>company_array</code>.</p>
<p>The <code>user_list</code> is grouped by <code>vendor_id</code>. I want to create bottom <code>group_list</code> array by adding a new <code>user_list</code> key to <code>company_list</code>.</p>
<p>I would like to know how to imple... | [
{
"answer_id": 74574036,
"author": "Bhargav",
"author_id": 15358800,
"author_profile": "https://Stackoverflow.com/users/15358800",
"pm_score": 2,
"selected": false,
"text": "def remove_dots(string):\n lst = []\n\n for i in range(len(string)):\n lst.append(string[i])\n\n f... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74573998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18703133/"
] |
74,574,016 | <p>I have a set of files (FILE1.txt, FILE2.txt ...) of the form:</p>
<pre><code>foo 123
bar 456
start
foo 321
bar 654
</code></pre>
<p>And I want to ignore everything before <code>start</code> and only read lines containing <code>foo</code> in each file.</p>
<p>My attempt is this command :</p>
<pre><code>awk '/start/,/... | [
{
"answer_id": 74574164,
"author": "markp-fuso",
"author_id": 7366100,
"author_profile": "https://Stackoverflow.com/users/7366100",
"pm_score": 3,
"selected": true,
"text": "awk awk awk '\nFNR==1 { found=0 } # FNR==1st record of new file, reset flag\n/start/ ... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574016",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14480564/"
] |
74,574,017 | <p>I am deploying, on 3 different environments (test, stage & production) an API.
I am used to deploy with docker-compose so I wrote 2 services (1 for my API and 1 for a database) like following:</p>
<pre><code># file docker-compose.yml
version: '3.3'
services:
api:
build:
context: ..
dockerfile... | [
{
"answer_id": 74574164,
"author": "markp-fuso",
"author_id": 7366100,
"author_profile": "https://Stackoverflow.com/users/7366100",
"pm_score": 3,
"selected": true,
"text": "awk awk awk '\nFNR==1 { found=0 } # FNR==1st record of new file, reset flag\n/start/ ... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9947412/"
] |
74,574,022 | <p>I am using Tailwind css with my react application. I am creating a form using tailwind and want to change focus border color of my input text box in teal which is blue.</p>
<pre><code>
function App() {
return (
<div className="App">
<main className="h-screen flex items-center ju... | [
{
"answer_id": 74574156,
"author": "AlexThyCoolest",
"author_id": 20599745,
"author_profile": "https://Stackoverflow.com/users/20599745",
"pm_score": -1,
"selected": false,
"text": "p:hover{\n color: red;\n}\n"
},
{
"answer_id": 74574197,
"author": "godofclash",
"author_i... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20517610/"
] |
74,574,027 | <pre><code>
type Tuple = [];
const tup: Tuple = [
((a, b) = {
// a: number; tup 2th item
// b: boolean; tup 3th item
}),
1,
false,
// more item enble.
];
</code></pre>
<p>First item is a function, parameter type are rest of the tulpe.</p>
<p>i try defined the Tuple, but code error "Type alias ... | [
{
"answer_id": 74574070,
"author": "Pedro A",
"author_id": 4135063,
"author_profile": "https://Stackoverflow.com/users/4135063",
"pm_score": 0,
"selected": false,
"text": "type MyFunction = (a: number, b: boolean) => void;\ntype MyTuple = [MyFunction, ...Parameters<MyFunction>];\n"
},
... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20599964/"
] |
74,574,072 | <p>I am trying to decompose my program on <code>python</code>. I have read a lot of information and other answers about how <code>import</code> works, but still cant understand how exactly.</p>
<p>I want to use my module <code>Graph.Graph2D</code> for implementation in <code>InteractiveGraph2D</code>. Before importing ... | [
{
"answer_id": 74574283,
"author": "Lenn Lewis",
"author_id": 20593333,
"author_profile": "https://Stackoverflow.com/users/20593333",
"pm_score": 0,
"selected": false,
"text": "setup.py"
},
{
"answer_id": 74574358,
"author": "Ulisse Rubizzo",
"author_id": 4412510,
"au... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574072",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19646723/"
] |
74,574,126 | <p>I have a table where I am trying to concatenate merged cell with other column values</p>
<p><a href="https://i.stack.imgur.com/rp1Ki.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rp1Ki.png" alt="enter image description here" /></a>
I used this formula to get the concatenation done,</p>
<pre><cod... | [
{
"answer_id": 74574908,
"author": "pgSystemTester",
"author_id": 11732320,
"author_profile": "https://Stackoverflow.com/users/11732320",
"pm_score": 3,
"selected": true,
"text": "byRow =ArrayFormula(query(byrow(\n{lookup(row(A3:A),row(A3:A)/(A3:A<>\"\"),A3:A),D3:D,F3:G},\nlambda(r,textj... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574126",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20357303/"
] |
74,574,131 | <pre><code>int main(){
int limit_x;
int limit_y;
scanf("%d", &limit_x);
scanf("%d", &limit_y);
char map[limit_x][limit_y];
for (int index_x=0;index_x<limit_x;index_x++)
{
for (int index_y = 0; index_y < limit_y; index_y++)
{
scanf("%c", &am... | [
{
"answer_id": 74574908,
"author": "pgSystemTester",
"author_id": 11732320,
"author_profile": "https://Stackoverflow.com/users/11732320",
"pm_score": 3,
"selected": true,
"text": "byRow =ArrayFormula(query(byrow(\n{lookup(row(A3:A),row(A3:A)/(A3:A<>\"\"),A3:A),D3:D,F3:G},\nlambda(r,textj... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20591238/"
] |
74,574,133 | <p>I'm stuck at work with a code problem in R that I can't solve. I have the following XML Data:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<Votacion xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="... | [
{
"answer_id": 74574776,
"author": "Ric Villalba",
"author_id": 6912817,
"author_profile": "https://Stackoverflow.com/users/6912817",
"pm_score": 1,
"selected": false,
"text": "library(xml2)\nlibrary(purrr)\n\nxml <- read_xml('<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Votacion xmlns:x... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13282579/"
] |
74,574,135 | <p>I want this string:</p>
<pre><code>{"creationtime":"2022-11-25T09:12:44Z","data":[{"id":"78cb7b69-bbfa-4d6c-8156-ada66201bf73","id_v1":"/sensors/22","motion":{"motion":true,"motion_valid":true},"owner":{&quo... | [
{
"answer_id": 74574776,
"author": "Ric Villalba",
"author_id": 6912817,
"author_profile": "https://Stackoverflow.com/users/6912817",
"pm_score": 1,
"selected": false,
"text": "library(xml2)\nlibrary(purrr)\n\nxml <- read_xml('<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Votacion xmlns:x... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574135",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2018105/"
] |
74,574,138 | <p>When trying to install the npm packages using <strong>npm i</strong> command, I am getting the following exception:</p>
<p><a href="https://i.stack.imgur.com/QXmje.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QXmje.png" alt="" /></a></p>
<p>My angular versions</p>
<blockquote>
<p>Angular CLI: 1... | [
{
"answer_id": 74574776,
"author": "Ric Villalba",
"author_id": 6912817,
"author_profile": "https://Stackoverflow.com/users/6912817",
"pm_score": 1,
"selected": false,
"text": "library(xml2)\nlibrary(purrr)\n\nxml <- read_xml('<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Votacion xmlns:x... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574138",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1624396/"
] |
74,574,159 | <p>I am trying to write a piece of code that would pull from my SQL column and create one button per value in that column. For example, if I have column A with "test 1", "test 2", and "test 3", the code should produce three buttons which also hold the text from that value.</p>
<p><img src=... | [
{
"answer_id": 74574776,
"author": "Ric Villalba",
"author_id": 6912817,
"author_profile": "https://Stackoverflow.com/users/6912817",
"pm_score": 1,
"selected": false,
"text": "library(xml2)\nlibrary(purrr)\n\nxml <- read_xml('<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Votacion xmlns:x... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20575215/"
] |
74,574,168 | <p>I have a list called marbles of 10.000 items (5000 blue and 5000 red)</p>
<p>I want to do a test. To pick 4 random items from the list I do this</p>
<pre class="lang-py prettyprint-override"><code>import random
marbles = ["RED" for _ in range(5000)] + ["BLUE" for _ in range(5000)]
A = random.cho... | [
{
"answer_id": 74574776,
"author": "Ric Villalba",
"author_id": 6912817,
"author_profile": "https://Stackoverflow.com/users/6912817",
"pm_score": 1,
"selected": false,
"text": "library(xml2)\nlibrary(purrr)\n\nxml <- read_xml('<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Votacion xmlns:x... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19575159/"
] |
74,574,170 | <p>I have one endpoint, I have been testing with comand ubuntu, the endpoint require username and password, I run this:</p>
<pre><code>curl --digest -u username:pass --location --request POST 'http://url' \
--header 'Content-Type: application/json'
</code></pre>
<p>so I just want run in node js usign <a href="https://w... | [
{
"answer_id": 74574776,
"author": "Ric Villalba",
"author_id": 6912817,
"author_profile": "https://Stackoverflow.com/users/6912817",
"pm_score": 1,
"selected": false,
"text": "library(xml2)\nlibrary(purrr)\n\nxml <- read_xml('<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Votacion xmlns:x... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19950248/"
] |
74,574,176 | <p>I have a really weird issue:</p>
<pre><code>TS2322: Type '(arg0: Person[]) => void' is not assignable to type '(arg0: Person | Person[]) => void'.
</code></pre>
<p>Wtf is going on here? Function parameter union type tells that it can be a array or not, but doesn't work. Looks like <strong>typescript bug</stron... | [
{
"answer_id": 74574466,
"author": "Nicholas Tower",
"author_id": 3794812,
"author_profile": "https://Stackoverflow.com/users/3794812",
"pm_score": 2,
"selected": false,
"text": "onAdd?: (entity: Person| Person[]) => void;\n Person Person[] onAdd onAdd={(item: Person[]) => {\n const per... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16536899/"
] |
74,574,207 | <p>Let's consider multiple objects with overlapping keys, where each key indicates a week of the year and the values are objects of integer test results, like</p>
<pre><code>const ab_tests = { week1: { a: 4, b: 6 }, week2: { a: 0, b: 9 } };
const cd_tests = { week2: { c: 2, d: 5 }, week3: { c: 6, d: 7 } };
const xy_tes... | [
{
"answer_id": 74574284,
"author": "Majed Badawi",
"author_id": 7486313,
"author_profile": "https://Stackoverflow.com/users/7486313",
"pm_score": 2,
"selected": false,
"text": "Array#reduce Object#entries Array#forEach const ab_tests = { week1: { a: 4, b: 6 }, week2: { a: 0, b: 9 } };\nc... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3879901/"
] |
74,574,232 | <p>Hello I have laravel project that store data created_at as a timestamp, I would call it from database, but it still show timestamp format, how can I convert it to date format without changing my column type? <a href="https://i.stack.imgur.com/CiTFR.png" rel="nofollow noreferrer">image</a></p>
<p>here is my model:</p... | [
{
"answer_id": 74574284,
"author": "Majed Badawi",
"author_id": 7486313,
"author_profile": "https://Stackoverflow.com/users/7486313",
"pm_score": 2,
"selected": false,
"text": "Array#reduce Object#entries Array#forEach const ab_tests = { week1: { a: 4, b: 6 }, week2: { a: 0, b: 9 } };\nc... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16390014/"
] |
74,574,269 | <p>The following code</p>
<pre><code>macro_rules! test {
( $( $x1:expr ),*; blub $( $x2:expr ),* ) => {
$(
println!("{} * {} = {}", $x1, $x2, $x1 * $x2);
)*
}
}
fn main() {
test!{1, 2, 3; blub 4, 5, 6};
}
</code></pre>
<p>prints:</p>
<pre><code>1 * 4 = 4
2 * 5 = 10
... | [
{
"answer_id": 74574564,
"author": "Jeremy Meadows",
"author_id": 13843935,
"author_profile": "https://Stackoverflow.com/users/13843935",
"pm_score": 2,
"selected": true,
"text": "x2 macro_rules! test {\n ( $($x1:expr ),*; blub $($x2:expr ),* ) => {\n for x1 in [$($x1),*] {\n ... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6235363/"
] |
74,574,276 | <p>The purpose of inheritance is to inherit and extend.</p>
<p>So my question is that if child class have more method that will it break the LSP ?
So in my example I have 2 classes Rectangle and Square. Square is child of Rectangle. Now both have 2 different methods HelloRectangle and HelloSquare. So will it breack LSP... | [
{
"answer_id": 74574564,
"author": "Jeremy Meadows",
"author_id": 13843935,
"author_profile": "https://Stackoverflow.com/users/13843935",
"pm_score": 2,
"selected": true,
"text": "x2 macro_rules! test {\n ( $($x1:expr ),*; blub $($x2:expr ),* ) => {\n for x1 in [$($x1),*] {\n ... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1466261/"
] |
74,574,306 | <p>I am trying to capture (S3) logs in a structured way. I am capturing the access-related elements with this type of tuple:</p>
<pre class="lang-py prettyprint-override"><code>class _Access(NamedTuple):
time: datetime
ip: str
actor: str
request_id: str
action: str
key: str
request_uri: str... | [
{
"answer_id": 74622433,
"author": "blhsing",
"author_id": 6890912,
"author_profile": "https://Stackoverflow.com/users/6890912",
"pm_score": 3,
"selected": true,
"text": "NamedTuple __new__ ip action from typing import NamedTuple\n\nclass Logs(NamedTuple):\n ip: str\n action: str\n... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/534238/"
] |
74,574,333 | <p>I've developed a simple game where I have an array of values and you need to guess it. When the value match, I show on a list using insertAdjacentHTML and appendChild. This is working very well. For example: Guess which countries already played a World Cup final.</p>
<p>But in this case, the list is filled in order ... | [
{
"answer_id": 74622433,
"author": "blhsing",
"author_id": 6890912,
"author_profile": "https://Stackoverflow.com/users/6890912",
"pm_score": 3,
"selected": true,
"text": "NamedTuple __new__ ip action from typing import NamedTuple\n\nclass Logs(NamedTuple):\n ip: str\n action: str\n... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14868813/"
] |
74,574,349 | <p>Every time I need to train a 'large' deep learning model I do it from Google Collab, as it allows you to use GPU acceleration.</p>
<p>My pc has a dedicated GPU, I was wondering if it is possible to use it to run my notebooks locally in a fast way. Is it possible to train models using my pc GPU? In that case, how?</p... | [
{
"answer_id": 74622433,
"author": "blhsing",
"author_id": 6890912,
"author_profile": "https://Stackoverflow.com/users/6890912",
"pm_score": 3,
"selected": true,
"text": "NamedTuple __new__ ip action from typing import NamedTuple\n\nclass Logs(NamedTuple):\n ip: str\n action: str\n... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14973688/"
] |
74,574,356 | <p>I have multiple txt files and I would like to convert them to a dataframe by creating a new column using header. My data looks like:</p>
<pre><code>Person:?,?;F dob. ? MT: ? Z:C NewYork Mon.:S St.?
144 cm/35 Kg/5 YearsOld
45,34,22,26,0
78,74,82,11,0
</code></pre>
<p>I use the following code to create a dataf... | [
{
"answer_id": 74578306,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 0,
"selected": false,
"text": "import re\nimport pandas as pd\n\n\ntext = \"\"\"\\\nPerson:?,?;F dob. ? MT: ? Z:C NewYork Mon.:S St.?\n\n1... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19948301/"
] |
74,574,371 | <p>I am a noobie programmer, using MAC OS and Visual Studio Code trying to build a responsive fitness routine in HTML for personal use, as a personal project.</p>
<p>I am trying to get all my buttons to turn green on click, the first one is turning green fine, but the rest are not. I have uploaded a code pen here: <a h... | [
{
"answer_id": 74574490,
"author": "Rory McCrossan",
"author_id": 519413,
"author_profile": "https://Stackoverflow.com/users/519413",
"pm_score": 1,
"selected": false,
"text": "#done id class querySelectorAll('.done') toggle() removeClickHandler() document.querySelectorAll('.done').forEa... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574371",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20549509/"
] |
74,574,377 | <p><strong>Environment:</strong> I'm using Databricks with spark 3.3.0 and Python 3.</p>
<p><strong>Problem trying to solve:</strong> I'm trying to replace some of the attribute values of a json struct column. I have a dataframe that contains a struct type column that has the following json content structure:</p>
<div ... | [
{
"answer_id": 74585772,
"author": "Kombajn zbożowy",
"author_id": 2890093,
"author_profile": "https://Stackoverflow.com/users/2890093",
"pm_score": 3,
"selected": true,
"text": "(?<=..). df.withColumn(\"myCol\", col(\"myCol\").withField(\"att1\", regexp_replace(col(\"myCol.att1\"), \"(?... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1994202/"
] |
74,574,381 | <p>I am trying to create a view to fetch data from a bucket by excluding certain folders inside S3 on Hive. I was able to successfully create view on Athena, but couldn't do the same on Hive.</p>
<p><strong>Athena View:</strong></p>
<pre><code>CREATE VIEW test
as
SELECT *
FROM TABLE_A
WHERE NOT ("$PATH LIKE '%PASS... | [
{
"answer_id": 74585772,
"author": "Kombajn zbożowy",
"author_id": 2890093,
"author_profile": "https://Stackoverflow.com/users/2890093",
"pm_score": 3,
"selected": true,
"text": "(?<=..). df.withColumn(\"myCol\", col(\"myCol\").withField(\"att1\", regexp_replace(col(\"myCol.att1\"), \"(?... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11252662/"
] |
74,574,390 | <p>Im writting a simple python application where the user selects a file from their local file manager and tries to upload using strealit</p>
<p>Im able to succesfully take the file the user had given using streamlit.uploader and stored the file in a temp directory from the stramlit app folder but the issue is i cant ... | [
{
"answer_id": 74575900,
"author": "Jamiu Shaibu",
"author_id": 19290081,
"author_profile": "https://Stackoverflow.com/users/19290081",
"pm_score": 0,
"selected": false,
"text": "def main():\n file = st.file_uploader(\"Upload file\")\n if file is not None:\n file_details = {... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18098873/"
] |
74,574,422 | <p>by mistake I pushed to main branch my code, it was an empty project so main branch didn't have any commit</p>
<p>I need move the pushed commits to the main branch to another branch and keep the main branch as empty or at least with just a new readme file (the initial main branch was totally empty so no readme nor an... | [
{
"answer_id": 74574571,
"author": "j6t",
"author_id": 6868543,
"author_profile": "https://Stackoverflow.com/users/6868543",
"pm_score": 2,
"selected": true,
"text": "git checkout --orphan new-branch\n new-branch git add README.txt\ngit commit\n new-branch git branch -m main old-main\ngi... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1050817/"
] |
74,574,438 | <p>I have a list of 0s, named "variables". One of the 0s will become -1 spontaneously, and I'm trying to print the element which does. For example, this is my code:</p>
<pre><code>while True:
if any(variables):
print(variables[i])
</code></pre>
<p>Now, obviously "i" doesn't correlate t... | [
{
"answer_id": 74574571,
"author": "j6t",
"author_id": 6868543,
"author_profile": "https://Stackoverflow.com/users/6868543",
"pm_score": 2,
"selected": true,
"text": "git checkout --orphan new-branch\n new-branch git add README.txt\ngit commit\n new-branch git branch -m main old-main\ngi... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8840978/"
] |
74,574,442 | <p>I have a function D(x,y,z) in which I want to evaluate (via interpolation) planes within the z, y, and z axis. i.e. I want the output of my interpolations to be a 2D plane holding one of the values fixed, D(x,y,0) for example.</p>
<p>I have created an interpolating function via scipy using some given values of D, D_... | [
{
"answer_id": 74621024,
"author": "Markus",
"author_id": 18667225,
"author_profile": "https://Stackoverflow.com/users/18667225",
"pm_score": 0,
"selected": false,
"text": "x_positions = np.arange(0, 355)\ny_positions = np.arange(0, 155)\nz_positions = np.arange(0, 303)\n\nz_mesh, x_mesh... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574442",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13423905/"
] |
74,574,484 | <p>I am trying to synchronize access to external memory across 2 processes on android vulkan, my system is telling me that it is only supporting</p>
<pre><code>VK_EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD_BIT
</code></pre>
<p>which can be exported as as copy, not as a reference.</p>
<p>What I am doing is this in process A ( e... | [
{
"answer_id": 74621024,
"author": "Markus",
"author_id": 18667225,
"author_profile": "https://Stackoverflow.com/users/18667225",
"pm_score": 0,
"selected": false,
"text": "x_positions = np.arange(0, 355)\ny_positions = np.arange(0, 155)\nz_positions = np.arange(0, 303)\n\nz_mesh, x_mesh... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8908561/"
] |
74,574,492 | <p>i want to be able to add, subtract, divide, multiply etc with integers in a list and in order.</p>
<p>I know you can use sum() to add, but i also want to be able to subtract, etc in order... so i tried making a for loop idk if thats the right thing to do, but it doesn't give me the right output and it really confuse... | [
{
"answer_id": 74621024,
"author": "Markus",
"author_id": 18667225,
"author_profile": "https://Stackoverflow.com/users/18667225",
"pm_score": 0,
"selected": false,
"text": "x_positions = np.arange(0, 355)\ny_positions = np.arange(0, 155)\nz_positions = np.arange(0, 303)\n\nz_mesh, x_mesh... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20600218/"
] |
74,574,508 | <p>I am making a drawing app with React and Canvas. However, if I set the <code>isMouseDown</code> variable as <code>useState</code> instead of <code>useRef</code>, the canvas is not drawing and I cannot seem to find why. Here is the component:</p>
<pre class="lang-js prettyprint-override"><code>function App() {
cons... | [
{
"answer_id": 74621024,
"author": "Markus",
"author_id": 18667225,
"author_profile": "https://Stackoverflow.com/users/18667225",
"pm_score": 0,
"selected": false,
"text": "x_positions = np.arange(0, 355)\ny_positions = np.arange(0, 155)\nz_positions = np.arange(0, 303)\n\nz_mesh, x_mesh... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15338366/"
] |
74,574,527 | <p>I'm struggling in creating multiple ranges using hugo.</p>
<pre><code> {{ range (.Paginate (where site.RegularPages "Section" "research")).Pages }}
{{ partial "research-card" .}}
{{ end }}
{{ range (.Paginate (where site.RegularPages "Section" "services")).P... | [
{
"answer_id": 74621024,
"author": "Markus",
"author_id": 18667225,
"author_profile": "https://Stackoverflow.com/users/18667225",
"pm_score": 0,
"selected": false,
"text": "x_positions = np.arange(0, 355)\ny_positions = np.arange(0, 155)\nz_positions = np.arange(0, 303)\n\nz_mesh, x_mesh... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12398800/"
] |
74,574,539 | <p>I am trying to work with sympy and work with manipulation of expressions.</p>
<pre><code>import sympy as sym
from sympy.abc import t
x0,v0 = sym.symbols("x0 v0 ", real=True)
wn = sym.symbols("omega_n", positive = True, real=True)
z = sym.symbols("zeta", positive = True, real=True)
... | [
{
"answer_id": 74575296,
"author": "Davide_sd",
"author_id": 2329968,
"author_profile": "https://Stackoverflow.com/users/2329968",
"pm_score": 2,
"selected": false,
"text": "z**2 # search the expression tree and select all multiplications\n# containing a power with exponent 2\nw = sym.Wi... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1940485/"
] |
74,574,544 | <p>With my dataframe that looks like this (I have in total 1322 rows) :</p>
<p><img src="https://i.stack.imgur.com/RDZeP.png" alt="My dataframe" /></p>
<p>I'd like to make a bar plot with the percentage of rating of the CFS score. It should look similar to this :</p>
<p><img src="https://i.stack.imgur.com/iQ6H4.png" al... | [
{
"answer_id": 74575296,
"author": "Davide_sd",
"author_id": 2329968,
"author_profile": "https://Stackoverflow.com/users/2329968",
"pm_score": 2,
"selected": false,
"text": "z**2 # search the expression tree and select all multiplications\n# containing a power with exponent 2\nw = sym.Wi... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20600300/"
] |
74,574,551 | <p>I noticed that there are several polygons overlaid when I plot the Netherlands map using ggplot and mapdata in R. I attached the plot. Could anyone help me understand why this happens? Is it possible to have only one layer? I attached the code.</p>
<p>Thanks very much!</p>
<pre><code>we=map_data(map = "world&qu... | [
{
"answer_id": 74575296,
"author": "Davide_sd",
"author_id": 2329968,
"author_profile": "https://Stackoverflow.com/users/2329968",
"pm_score": 2,
"selected": false,
"text": "z**2 # search the expression tree and select all multiplications\n# containing a power with exponent 2\nw = sym.Wi... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15112746/"
] |
74,574,627 | <p>I've a django application with waitress (gunicorn doesn't work on windows) to serve it. Because its production code and its based on windows 2012 server. But I want the django application to run in daemon mode is it possible?</p>
<p>Daemon mode - app running without command prompt visible also I'll be helpful to ope... | [
{
"answer_id": 74574671,
"author": "Artem Milosevic",
"author_id": 15077686,
"author_profile": "https://Stackoverflow.com/users/15077686",
"pm_score": 0,
"selected": false,
"text": "&"
},
{
"answer_id": 74599712,
"author": "Shen",
"author_id": 16037571,
"author_profil... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574627",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12201407/"
] |
74,574,637 | <p>I have a task where I have to iterate thru a string and return a predefined number of chars in a row. So f.i. the string is "Thisisatest" and I have to start on the first position and return two characters. Have to proof them for som uniques (outside that scope) and if not proofed I have to shift the start... | [
{
"answer_id": 74574671,
"author": "Artem Milosevic",
"author_id": 15077686,
"author_profile": "https://Stackoverflow.com/users/15077686",
"pm_score": 0,
"selected": false,
"text": "&"
},
{
"answer_id": 74599712,
"author": "Shen",
"author_id": 16037571,
"author_profil... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5549661/"
] |
74,574,647 | <p>I want to build a dashboard where I can select a year and a application and want to have the top 5 clients shown up.</p>
<p>I build a example Sheet ofr showing:
<a href="https://docs.google.com/spreadsheets/d/13yk_SIsv52bZbskOkEzkz4f1aOMnb5yLDk2oo5BawXs/edit?usp=sharing" rel="nofollow noreferrer">https://docs.google... | [
{
"answer_id": 74575100,
"author": "Nabnub",
"author_id": 9538684,
"author_profile": "https://Stackoverflow.com/users/9538684",
"pm_score": 0,
"selected": false,
"text": "= Query(A1:E; \"Select C,D,E \n where A contains '\"&I3&\"'\n and B contains '\"&I4&\"'\n Order ... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19893042/"
] |
74,574,664 | <p>there is a different structure to show projects
Project 1 and 2 are in the same Project 3 is in a different
Project 4 and 5 are in the same Project 6 is in a different
it goes on like this</p>
<p>div will open if $i == 1</p>
<p>If $i == 2 the div will be closed</p>
<p>If $i == 3 the div will be opened and closed... | [
{
"answer_id": 74580528,
"author": "Mayuresh",
"author_id": 2598305,
"author_profile": "https://Stackoverflow.com/users/2598305",
"pm_score": 0,
"selected": false,
"text": "@foreach($projects as $project)\n@if($loop->first)\n <div class=\"project\"> @endif\n \n\n @if($lo... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18751480/"
] |
74,574,694 | <p>I'm currently working on a .net 4.6.2 application.</p>
<p>I need to serialize an OData Api call and it works perfectly fine.</p>
<p>Unfortunately I'm getting a Sonar Qube Error:</p>
<p><strong>Update this implementation of 'ISerializable' to conform to the recommended serialization pattern.</strong></p>
<p><a href="... | [
{
"answer_id": 74574836,
"author": "vivek nuna",
"author_id": 6527049,
"author_profile": "https://Stackoverflow.com/users/6527049",
"pm_score": 1,
"selected": false,
"text": "#pragma warning disable S3925 // \"ISerializable\" should be implemented correctly\n public class Record : Dic... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16841473/"
] |
74,574,699 | <p>a dataframe as list:</p>
<pre><code>dfcheck <- data.frame(status = c("open/close", "close", "open"), stock = c("company energy","goods and books","other"), name = c("amazon1;google1","google3;yahoo1","yahoo2;amazon2;google2"... | [
{
"answer_id": 74575047,
"author": "Santiago",
"author_id": 13507658,
"author_profile": "https://Stackoverflow.com/users/13507658",
"pm_score": 3,
"selected": true,
"text": "library(dplyr)\nlibrary(stringr)\nlibrary(tidyr)\n dfcheck dfcheck_tidy <- dfcheck %>%\n mutate(name = str_split(... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20224217/"
] |
74,574,705 | <p>Be the following python pandas DataFrame:</p>
<pre><code>| date | column_1 | column_2 |
| ---------- | -------- | -------- |
| 2022-02-01 | val | val2 |
| 2022-02-03 | val1 | val |
| 2022-02-01 | val | val3 |
| 2022-02-04 | val2 | val |
| 2022-02-27 | val2 | val4 |
<... | [
{
"answer_id": 74575064,
"author": "Bhargav",
"author_id": 15358800,
"author_profile": "https://Stackoverflow.com/users/15358800",
"pm_score": 2,
"selected": false,
"text": "df['counts'] = df['date'].map(df['date'].value_counts())\ndf = df.drop_duplicates(subset='date', keep=\"first\")\n... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18396935/"
] |
74,574,715 | <p>I tried with XPath but selenium can't click this image/button.</p>
<p><a href="https://i.stack.imgur.com/LBJiu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LBJiu.png" alt="enter image description here" /></a></p>
<pre><code>from undetected_chromedriver.v2 import Chrome
def test():
driver ... | [
{
"answer_id": 74575064,
"author": "Bhargav",
"author_id": 15358800,
"author_profile": "https://Stackoverflow.com/users/15358800",
"pm_score": 2,
"selected": false,
"text": "df['counts'] = df['date'].map(df['date'].value_counts())\ndf = df.drop_duplicates(subset='date', keep=\"first\")\n... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16071785/"
] |
74,574,723 | <p>The objective is simple: I'm building a car rental platform where customers can place an order for a car. The simple 'order' contains the car, start, and end-dates. The form should automatically save the authenticated user as the creator.</p>
<p>It uses a CreateView with this code:</p>
<pre><code>class BookingCreate... | [
{
"answer_id": 74575064,
"author": "Bhargav",
"author_id": 15358800,
"author_profile": "https://Stackoverflow.com/users/15358800",
"pm_score": 2,
"selected": false,
"text": "df['counts'] = df['date'].map(df['date'].value_counts())\ndf = df.drop_duplicates(subset='date', keep=\"first\")\n... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7032374/"
] |
74,574,814 | <p>I just found that we can use this attribute to specify which case the letters should be entered in, but that doesn't work for me.</p>
<p>Example:</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 p... | [
{
"answer_id": 74621013,
"author": "Daniel Cruz",
"author_id": 17537072,
"author_profile": "https://Stackoverflow.com/users/17537072",
"pm_score": 2,
"selected": true,
"text": "$(\".autocapitalize\").keyup(function () {\n const originalValue = $(this).val();\n const capitalizedValue = ... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15464003/"
] |
74,574,820 | <p>Hello I try to refresh <code>_currentValue</code> when I open a modal bottom sheet and I change the value from state full widget <code>depense()</code>.</p>
<p>Here is my code</p>
<pre><code>new RaisedButton(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)),
elevation: 5,
highlightElevation: 10... | [
{
"answer_id": 74575115,
"author": "Sanketh B. K",
"author_id": 10553747,
"author_profile": "https://Stackoverflow.com/users/10553747",
"pm_score": 0,
"selected": false,
"text": "class depense extends StatefulWidget {\n Function changeCurrentValue(int val);\n\n const depense({Key? key... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9611719/"
] |
74,574,827 | <p>I have a file that has such a structure:</p>
<pre><code>section "first_section" {
parameter1 = value1
parameter2 = value2
parameter3 = value3
}
section "second_section" {
parameter1 = value1
parameter2 = value2
parameter3 = value3
}
...
</code></pre>
<p>And I have a variable that con... | [
{
"answer_id": 74575115,
"author": "Sanketh B. K",
"author_id": 10553747,
"author_profile": "https://Stackoverflow.com/users/10553747",
"pm_score": 0,
"selected": false,
"text": "class depense extends StatefulWidget {\n Function changeCurrentValue(int val);\n\n const depense({Key? key... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20600493/"
] |
74,574,860 | <p>I made a code for Blackjack in Python and whenever I run blackjack_game(deck) saying no to the 'Play Again' input should quit the game but it doesn't. Funds going zero and below should also trigger the game to quit but it doesn't.</p>
<p>This is what it looks like:</p>
<pre><code>import random
import os
# The Ca... | [
{
"answer_id": 74575115,
"author": "Sanketh B. K",
"author_id": 10553747,
"author_profile": "https://Stackoverflow.com/users/10553747",
"pm_score": 0,
"selected": false,
"text": "class depense extends StatefulWidget {\n Function changeCurrentValue(int val);\n\n const depense({Key? key... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20599868/"
] |
74,574,866 | <p>from snowflake.connector import connect as snowflake_connector</p>
<pre class="lang-py prettyprint-override"><code>
from snowflake.connector import connect
SNOWFLAKE_ACCOUNT = r'my_account'
SNOWFLAKE_USERNAME = r'my_username'
SNOWFLAKE_PASSWORD = r'my_password'
try:
conn = connect(
user=SNOWFLAKE... | [
{
"answer_id": 74575115,
"author": "Sanketh B. K",
"author_id": 10553747,
"author_profile": "https://Stackoverflow.com/users/10553747",
"pm_score": 0,
"selected": false,
"text": "class depense extends StatefulWidget {\n Function changeCurrentValue(int val);\n\n const depense({Key? key... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17194313/"
] |
74,574,877 | <p>I have a list of names in a column e.g.:</p>
<p>Bob Adam Smith, Steve Jobs, Stacy Jones</p>
<p>I’d like to use these names for a case study presentation, but they have to be anonymized.</p>
<p>I imagine something like:
B@b A@@m S@@@h, S@@@e J@@s, S@@@y J@@@s</p>
<p>(But with asterisks instead of @)</p>
<p>The proble... | [
{
"answer_id": 74575115,
"author": "Sanketh B. K",
"author_id": 10553747,
"author_profile": "https://Stackoverflow.com/users/10553747",
"pm_score": 0,
"selected": false,
"text": "class depense extends StatefulWidget {\n Function changeCurrentValue(int val);\n\n const depense({Key? key... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574877",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20600500/"
] |
74,574,894 | <h4>Goal:</h4>
<p>I have a sneaking suspicion that I'm globbing incorrectly due to not being able to find a satisfactory explanation with multiple clear examples of advanced string-and-var mixing.</p>
<p>The operation I am trying to perform is on the last line, and the goal is to output the outputdirectory + filebasena... | [
{
"answer_id": 74575115,
"author": "Sanketh B. K",
"author_id": 10553747,
"author_profile": "https://Stackoverflow.com/users/10553747",
"pm_score": 0,
"selected": false,
"text": "class depense extends StatefulWidget {\n Function changeCurrentValue(int val);\n\n const depense({Key? key... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/445651/"
] |
74,574,895 | <p>I'm trying to build an estimator to compare the asymptotics of the GLS and OLS estimators.
My idea is to try and see what happens at large samples, and with many of them.</p>
<p>Ideally, I would like to create a loop that would generate 6000 different random samples, of sizes 50 and 100 each, for different parameter... | [
{
"answer_id": 74575115,
"author": "Sanketh B. K",
"author_id": 10553747,
"author_profile": "https://Stackoverflow.com/users/10553747",
"pm_score": 0,
"selected": false,
"text": "class depense extends StatefulWidget {\n Function changeCurrentValue(int val);\n\n const depense({Key? key... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18029734/"
] |
74,574,913 | <p><a href="https://i.stack.imgur.com/k8IBX.png" rel="nofollow noreferrer">Design preview Not visible in Android Studio</a></p>
<p>The design preview for all other activities are visible, but for this specific activity(quiz_page.xml) the design preview is not visible.</p>
<p>I have tried all the things on the Internet... | [
{
"answer_id": 74575115,
"author": "Sanketh B. K",
"author_id": 10553747,
"author_profile": "https://Stackoverflow.com/users/10553747",
"pm_score": 0,
"selected": false,
"text": "class depense extends StatefulWidget {\n Function changeCurrentValue(int val);\n\n const depense({Key? key... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20600451/"
] |
74,574,914 | <p>I have an SVG image that uses masking to cut out a hole in another shape. I've simplified the complex shapes involved down to this representative example:</p>
<pre><code><?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<svg xmlns="http://www.w3.org/2000/svg" xm... | [
{
"answer_id": 74584915,
"author": "skelley",
"author_id": 3736239,
"author_profile": "https://Stackoverflow.com/users/3736239",
"pm_score": 3,
"selected": true,
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3736239/"
] |
74,574,921 | <p>I am trying to import many excel files (around 400) into one dataframe from a folder but I seem to be running into an error.</p>
<p>The files I want from my folder are names filename followed by a date - "filename_yyyy_mm_dd.xlsx".</p>
<p>I want to keep the header as the files have all same columns for dif... | [
{
"answer_id": 74584915,
"author": "skelley",
"author_id": 3736239,
"author_profile": "https://Stackoverflow.com/users/3736239",
"pm_score": 3,
"selected": true,
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574921",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19631653/"
] |
74,574,928 | <p>I've made a function to create a figure with N subplots in Plotly. To hide the x-axis labels of these subplots I want to execute, inside this function, for example for N=5</p>
<pre><code>relayout!(p, xaxis_showticklabels=false)
relayout!(p, xaxis2_showticklabels=false)
relayout!(p, xaxis3_showticklabels=false)
relay... | [
{
"answer_id": 74594855,
"author": "Przemyslaw Szufel",
"author_id": 9957710,
"author_profile": "https://Stackoverflow.com/users/9957710",
"pm_score": 1,
"selected": false,
"text": "f(a; a1=0,a2=0,a3=0) = a+a1+2a2+3a3\n f(100, a1=1) f(100, a2=2) f(100, a3=3) julia> [f(100; Symbol(\"a$i\"... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20600602/"
] |
74,574,946 | <p>I have a diagram like below picture and I use entity framework.
<a href="https://i.stack.imgur.com/QqJpn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QqJpn.png" alt="enter image description here" /></a>
I want to retrieve OutOfServices items based on the Id of Calenders table.
I used this synta... | [
{
"answer_id": 74575021,
"author": "Jegan Maria",
"author_id": 20600273,
"author_profile": "https://Stackoverflow.com/users/20600273",
"pm_score": -1,
"selected": false,
"text": " public IList<OutOfService> GetRoomOutOfServiceDatesByCalendarId(int calendarId)\n{\n var outOfService=_my... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574946",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10997800/"
] |
74,574,952 | <p>I am trying to connect web api made in asp.net to sql server database provided by aws rds. I have never used aws before so I am not really sure if I am missing something there. I have tried to do it but i get following message when I added migration and trying to update database (using EF core):</p>
<blockquote>
<p>... | [
{
"answer_id": 74575136,
"author": "smac2020",
"author_id": 1435543,
"author_profile": "https://Stackoverflow.com/users/1435543",
"pm_score": 1,
"selected": false,
"text": "static void Main(string[] args)\n {\n try \n { \n SqlConnectionStringBu... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74574952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20600638/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.