qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,565,837 | <p>I have a <strong>React-Typescript</strong> application and had recently configured <strong>i18next</strong> setup for multi-language support. I believe all of the setups have been done correctly by following the guidelines of the official documentation. However, when I run the app, it gives me a bunch of compilation... | [
{
"answer_id": 74654930,
"author": "e382df99a7950919789725ceeec126",
"author_id": 237209,
"author_profile": "https://Stackoverflow.com/users/237209",
"pm_score": 0,
"selected": false,
"text": "i18next changeLanguage i18next import * as i18n from 'i18next' changeLanguage i18n.changeLangua... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10721563/"
] |
74,565,844 | <p>all!
I am trying to generate results of this repo</p>
<blockquote>
<p><a href="https://github.com/ArnaudBu/stock-returns-prediction" rel="nofollow noreferrer">https://github.com/ArnaudBu/stock-returns-prediction</a></p>
</blockquote>
<p>for stocks price prediction based on financial analysis. Running the very first ... | [
{
"answer_id": 74654930,
"author": "e382df99a7950919789725ceeec126",
"author_id": 237209,
"author_profile": "https://Stackoverflow.com/users/237209",
"pm_score": 0,
"selected": false,
"text": "i18next changeLanguage i18next import * as i18n from 'i18next' changeLanguage i18n.changeLangua... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565844",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12078322/"
] |
74,565,861 | <p>I want to make sure, that one of the arguments, passed when class creation is of certain type. Here is an example:</p>
<pre class="lang-py prettyprint-override"><code>from __future__ import annotations
from dataclasses import dataclass
@dataclass(frozen=True, order=True)
class ListItems:
items: list | str | in... | [
{
"answer_id": 74565929,
"author": "Nate",
"author_id": 19924402,
"author_profile": "https://Stackoverflow.com/users/19924402",
"pm_score": 0,
"selected": false,
"text": " def __init__(self, name: str, items: ListItems): items: ListItems items ListItems ListItems items: list[str|int] ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16732680/"
] |
74,565,895 | <p>I have a problem in this recursive function that basically takes two numbers and returns the biggest one of them without using comparison (> || < ) operators, thing is, it returns dicremented values even though I held the starting values in a variable.</p>
<p>Here's my code:</p>
<pre><code>#include <stdio.h... | [
{
"answer_id": 74565929,
"author": "Nate",
"author_id": 19924402,
"author_profile": "https://Stackoverflow.com/users/19924402",
"pm_score": 0,
"selected": false,
"text": " def __init__(self, name: str, items: ListItems): items: ListItems items ListItems ListItems items: list[str|int] ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20361438/"
] |
74,565,896 | <p>I want to create a simple input component in Vue, <br> which if the <code>IsPassword</code> condition was true, set its <code>type="password"</code> and if it is not, set it to <code>type="text"</code>.<br>
<em>I'm probably making a mistake somewhere in the syntax because I'm getting <code>parsin... | [
{
"answer_id": 74565929,
"author": "Nate",
"author_id": 19924402,
"author_profile": "https://Stackoverflow.com/users/19924402",
"pm_score": 0,
"selected": false,
"text": " def __init__(self, name: str, items: ListItems): items: ListItems items ListItems ListItems items: list[str|int] ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19338216/"
] |
74,565,928 | <p>I would like to send a post request. But I have to change the key.</p>
<pre><code>function call(obj) {
console.log("Call " + obj.value);
if (obj.value == 1)
{
$.post( "index.htm", { '"webdata".web[1].Taster': '1'} );
}
</code></pre>
<p>I would like to change [1]... | [
{
"answer_id": 74565929,
"author": "Nate",
"author_id": 19924402,
"author_profile": "https://Stackoverflow.com/users/19924402",
"pm_score": 0,
"selected": false,
"text": " def __init__(self, name: str, items: ListItems): items: ListItems items ListItems ListItems items: list[str|int] ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20593986/"
] |
74,565,931 | <p>Whenever i add or update an object it goes straight to the local storage and it works fine. However when i refresh a page the data stored in LS is being replaced with an empty array. What am i doing wrong?</p>
<pre><code> const [data, setData] = useState<NoteType[]>([]);
useEffect(() => {
setData(J... | [
{
"answer_id": 74565929,
"author": "Nate",
"author_id": 19924402,
"author_profile": "https://Stackoverflow.com/users/19924402",
"pm_score": 0,
"selected": false,
"text": " def __init__(self, name: str, items: ListItems): items: ListItems items ListItems ListItems items: list[str|int] ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18367514/"
] |
74,565,948 | <p>We would like to filter SKU's List which has <code>verificationData</code> data and <code>differenceInStock</code> difference greater than or Less than 0</p>
<p>Here is an example Data Set.</p>
<pre><code>[
{
"_id": "636e0beaa13ef73324e613f0",
"status": "ACTIVE... | [
{
"answer_id": 74565929,
"author": "Nate",
"author_id": 19924402,
"author_profile": "https://Stackoverflow.com/users/19924402",
"pm_score": 0,
"selected": false,
"text": " def __init__(self, name: str, items: ListItems): items: ListItems items ListItems ListItems items: list[str|int] ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9919277/"
] |
74,565,953 | <p>I have a column in my pandas dataframe with the following values that represent hours worked in a week.</p>
<pre><code>0 40
1 40h / week
2 46.25h/week on average
3 11
</code></pre>
<p>I would like to check every row, and if the length of t... | [
{
"answer_id": 74566027,
"author": "Bill",
"author_id": 1609514,
"author_profile": "https://Stackoverflow.com/users/1609514",
"pm_score": 0,
"selected": false,
"text": "df['Hours_per_week'].str.extract('(\\d+)')\n"
},
{
"answer_id": 74566048,
"author": "Grzegorz Skibinski",
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19685776/"
] |
74,565,989 | <p>I am trying it iterate through an array with the map function. I have the key property on the children. I am still getting the error ```Warning: Each child in a list should have a unique "key" prop.'''.
When I comment out the rating property in the objects, in my array, the error goes away. The rating prop... | [
{
"answer_id": 74566027,
"author": "Bill",
"author_id": 1609514,
"author_profile": "https://Stackoverflow.com/users/1609514",
"pm_score": 0,
"selected": false,
"text": "df['Hours_per_week'].str.extract('(\\d+)')\n"
},
{
"answer_id": 74566048,
"author": "Grzegorz Skibinski",
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15611155/"
] |
74,565,992 | <p>I want to create a dockerfile which contains 2 stages.
The first stage is to set up a MySQL server and the second stage is to start a backend service that accesses the server.
The problem is that the backend service stops when no MySQL server is available. Is there a way to make the stage dependent on the first stag... | [
{
"answer_id": 74566027,
"author": "Bill",
"author_id": 1609514,
"author_profile": "https://Stackoverflow.com/users/1609514",
"pm_score": 0,
"selected": false,
"text": "df['Hours_per_week'].str.extract('(\\d+)')\n"
},
{
"answer_id": 74566048,
"author": "Grzegorz Skibinski",
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74565992",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15783873/"
] |
74,566,024 | <p>I have an express app with a simple GET with axios (1.2.0):</p>
<pre><code>const result: AxiosResponse = await axios.get('https://jsonplaceholder.typicode.com/posts')
</code></pre>
<p>The result.data ends up a cryptic, badly encoded string:</p>
<pre><code>k�H���>������T��N.���r�H�v �_"9'?1���J��\���LA. ��H�... | [
{
"answer_id": 74566313,
"author": "Amal",
"author_id": 3520225,
"author_profile": "https://Stackoverflow.com/users/3520225",
"pm_score": 0,
"selected": false,
"text": "resp = await fetch(\"https://jsonplaceholder.typicode.com/posts\").then(res=> res.json())\n axios.default.get(\"https:/... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566024",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/494659/"
] |
74,566,043 | <p>I have a strange issue with <code>SourceTree</code>. I merged my feature branch with the <code>development</code> branch and it was ok. No problem.</p>
<p>Then I merged the <code>development</code> to the <code>main</code> branch. It says conflicts, but it doesn't show any conflicted files whatsoever. When I do cont... | [
{
"answer_id": 74566313,
"author": "Amal",
"author_id": 3520225,
"author_profile": "https://Stackoverflow.com/users/3520225",
"pm_score": 0,
"selected": false,
"text": "resp = await fetch(\"https://jsonplaceholder.typicode.com/posts\").then(res=> res.json())\n axios.default.get(\"https:/... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1137814/"
] |
74,566,071 | <p>I am trying to create a recipe handler using arrays and read CSV files, and i am trying from the HMI to create a dialog browser to open a specific folder and then select any <code>.csv</code> file and load it to the array, but I can not find ANY information about it. Does anyone have any info if its possible to do?<... | [
{
"answer_id": 74569736,
"author": "Roald",
"author_id": 6329629,
"author_profile": "https://Stackoverflow.com/users/6329629",
"pm_score": 1,
"selected": false,
"text": ".txtrecipe"
}
] | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15596972/"
] |
74,566,076 | <p>I've got a load of imported data but the main id keys of the object aren't surrounded in quotation marks and so aren't valid javascript.</p>
<p>Here's a sample of some of the data I have:</p>
<pre><code>
8ae3fcef-d1f5-43e4-9df0-b1861117c2f2: {
id: "8ae3fcef-d1f5-43e4-9df0-b1861117c2f2",
randomN... | [
{
"answer_id": 74571036,
"author": "The fourth bird",
"author_id": 5424988,
"author_profile": "https://Stackoverflow.com/users/5424988",
"pm_score": 1,
"selected": false,
"text": "(?<!\\S)(?=[a-f0-9-]{36}:)[a-f0-9]+(?:-[a-f0-9]+){2,}\n (?<!\\S) (?=[a-f0-9-]{36}:) [a-f0-9]+(?:-[a-f0-9]+){... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13039295/"
] |
74,566,105 | <p>I've got stuck with automatical closing of the <code>MessageBox</code> after expiration of the timer. I use <code>static</code> variable of type <code>Timer</code>(not <code>System.Windows.Forms.Timer</code>) which is defined in the special <code>class</code>(definition of the <code>class</code> is not <code>static<... | [
{
"answer_id": 74567622,
"author": "eloiz",
"author_id": 16756296,
"author_profile": "https://Stackoverflow.com/users/16756296",
"pm_score": 0,
"selected": false,
"text": "public partial class Form1 : Form\n{\n public Form1()\n {\n InitializeComponent();\n }\n\n privat... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19870246/"
] |
74,566,108 | <p>I'm trying to get the growth (in %) between two values at different period. Here is how my DataFrame looks like:</p>
<pre><code> sessionSource dateRange activeUsers
0 instagram.com current 5
1 instagram.com previous 0
2 l.instagram.com current 83
3 l.instagram.com previ... | [
{
"answer_id": 74566184,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 0,
"selected": false,
"text": "(df.sort_values(by=['sessionSource', 'dateRange'],\n ascending=[True, False])\n .groupby('sessionS... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566108",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4300586/"
] |
74,566,111 | <p>Currently struggling to center two columns that contain text, specifically two lists.</p>
<p>The idea is to have two columns on the same row with the two lists centered, and their respecitve list items aligned like normal bullet points.</p>
<p>Any advice would be appreciated.</p>
<p>Code here:</p>
<pre><code>
</code... | [
{
"answer_id": 74567627,
"author": "Alexandra Batrak",
"author_id": 8870249,
"author_profile": "https://Stackoverflow.com/users/8870249",
"pm_score": 1,
"selected": true,
"text": "row <div class=\"container d-none d-md-block\" style=\"height: 400px;\">\n <div class=\"row\">\n <... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19001164/"
] |
74,566,125 | <p>Every time i am geting else condition as true. If i pass input string as "ama" then code should give input string is palindrom. But i am getting string is not palindrom.
Input: ami
output: ami
Expected:string is palindrom</p>
<p>Input: amit
output: tima
Expected:string is n palindrom</p>
<pre><code>def str... | [
{
"answer_id": 74566153,
"author": "Trimonu",
"author_id": 15324906,
"author_profile": "https://Stackoverflow.com/users/15324906",
"pm_score": 1,
"selected": false,
"text": "ami"
},
{
"answer_id": 74566173,
"author": "GaryMBloom",
"author_id": 3159059,
"author_profile... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566125",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20594077/"
] |
74,566,130 | <pre><code>const obj = {A: 2}
module.exports = obj
</code></pre>
<p>If another module imports from the above module, will it get a deep copy of <code>obj</code> or just a reference?</p>
| [
{
"answer_id": 74566152,
"author": "Quentin",
"author_id": 19068,
"author_profile": "https://Stackoverflow.com/users/19068",
"pm_score": 3,
"selected": true,
"text": "obj exports require"
}
] | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5432156/"
] |
74,566,140 | <p>I like to reshape a time series data from long to wide format , with columns such as <code>StartTime</code> and <code>StopTime</code>. All variables measured during the same time interval (<code>StartTime</code>, <code>StopTime</code>) to be in the same line.</p>
<p>For example if this is my dataset</p>
<pre><code> ... | [
{
"answer_id": 74566152,
"author": "Quentin",
"author_id": 19068,
"author_profile": "https://Stackoverflow.com/users/19068",
"pm_score": 3,
"selected": true,
"text": "obj exports require"
}
] | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18795729/"
] |
74,566,143 | <pre><code>
count = defaultdict(int, sum(map(Counter, board), Counter()))
</code></pre>
<p>board is a 2d array: <code>List[List[str]]</code></p>
<p>I can understand that this one-line code is to count the frequency of the board,
and we can write this way:</p>
<pre><code>count = defaultdict(int)
for i in range(len(boar... | [
{
"answer_id": 74566214,
"author": "Chris",
"author_id": 15261315,
"author_profile": "https://Stackoverflow.com/users/15261315",
"pm_score": 2,
"selected": false,
"text": "board board = [[\"hello\", \"hello\"], [\"world\", \"hello\"]]\n map >>> list(map(Counter, board))\n[Counter({'hello... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11286731/"
] |
74,566,145 | <p>At the moment my method only prints a random number.</p>
<p>Heres the method.</p>
<pre><code> public void printMultiRandom(int howMany){
Random rand = new Random();
System.out.println(rand.nextInt(howMany));
</code></pre>
| [
{
"answer_id": 74566222,
"author": "Christoph Dahlen",
"author_id": 20370596,
"author_profile": "https://Stackoverflow.com/users/20370596",
"pm_score": 1,
"selected": false,
"text": "\npublic void printMultiRandom(int howMany){\n new Random().ints(howMany)\n .forEach(System.out:... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20555484/"
] |
74,566,157 | <p>Is there an easier way to do this?
<a href="https://i.stack.imgur.com/RbkKa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RbkKa.png" alt="Example" /></a></p>
| [
{
"answer_id": 74566222,
"author": "Christoph Dahlen",
"author_id": 20370596,
"author_profile": "https://Stackoverflow.com/users/20370596",
"pm_score": 1,
"selected": false,
"text": "\npublic void printMultiRandom(int howMany){\n new Random().ints(howMany)\n .forEach(System.out:... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15547413/"
] |
74,566,172 | <p>I am trying to use jquery to get a random fact. However I got alot of errors whilst trying to use ajax, after changing the way i defined $ or jquery alot of times it still hasn't solved it. I found another post with a similar problem and told me to use this:</p>
<pre><code>var jsdom = require("jsdom");
con... | [
{
"answer_id": 74566222,
"author": "Christoph Dahlen",
"author_id": 20370596,
"author_profile": "https://Stackoverflow.com/users/20370596",
"pm_score": 1,
"selected": false,
"text": "\npublic void printMultiRandom(int howMany){\n new Random().ints(howMany)\n .forEach(System.out:... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19617459/"
] |
74,566,181 | <p>I have an array spread between 2 components using the context api.</p>
<p>Adding objects to the array works fine, however I seem to be having trouble returning the modified array when removing an object from the array. Essentially it doesn't remove in the UI.</p>
<p>Here is my onClickHandler and a link to the <a hre... | [
{
"answer_id": 74566231,
"author": "Zac Anger",
"author_id": 5774952,
"author_profile": "https://Stackoverflow.com/users/5774952",
"pm_score": 2,
"selected": true,
"text": "onClickHandlerDelete filter const onClickHandlerDelete = (user) =>\n favourites.filter((fav) => fav.id !== user.id... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19932692/"
] |
74,566,182 | <p>so I'm trying to make this bot with selenium but when I'm trying to use the send keys func it doesn't work
I'm stuck on it for hours and I cant seem to find to solve the problem please if anyone has any idea I beg you to help me thanks.</p>
<pre><code>print(driver.title)
tos = driver.find_element("xpath", ... | [
{
"answer_id": 74566231,
"author": "Zac Anger",
"author_id": 5774952,
"author_profile": "https://Stackoverflow.com/users/5774952",
"pm_score": 2,
"selected": true,
"text": "onClickHandlerDelete filter const onClickHandlerDelete = (user) =>\n favourites.filter((fav) => fav.id !== user.id... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19358532/"
] |
74,566,194 | <p>In this program, I have the user input their username into a login entry. Once they click the login button, the login_user() function is called to verify that their username exists in a .txt file.</p>
<p>I am trying to access the user's username in a later part of the program, more specifically in this line:</p>
<pr... | [
{
"answer_id": 74566299,
"author": "Ahwar Khan",
"author_id": 14231880,
"author_profile": "https://Stackoverflow.com/users/14231880",
"pm_score": 0,
"selected": false,
"text": ".txt"
},
{
"answer_id": 74566430,
"author": "Bryan Oakley",
"author_id": 7432,
"author_prof... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20594104/"
] |
74,566,195 | <p>I need to get a PIN code through an API but I can't get the Body of an End-Point response.
The process is very simple and requires no authentication.
Just send the email in the MAILTO field and the webservice returns the pin, or says that the email was not found. In my case below, I just want to receive the Json. Bu... | [
{
"answer_id": 74568579,
"author": "Marcin Orlowski",
"author_id": 1235698,
"author_profile": "https://Stackoverflow.com/users/1235698",
"pm_score": -1,
"selected": false,
"text": "GET POST GET POST curl_setopt($curl, CURLOPT_POST, true);\n <?php\n$curl = curl_init();\ncurl_setopt($curl,... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5567784/"
] |
74,566,243 | <p>html</p>
<pre><code><body>
<header>
<div class="indexHeaderWall" id="headerLeftWall">
</div>
<img id="profilePic" src="icons/myPicture.jpg" alt="Picture of Daniel Campos">
<div class="index... | [
{
"answer_id": 74566562,
"author": "Morgan Feeney",
"author_id": 1793962,
"author_profile": "https://Stackoverflow.com/users/1793962",
"pm_score": 1,
"selected": false,
"text": "calc() :root {\n --left-wall: 30%;\n}\n\nbody {\n background-color: aqua;\n margin: 0%;\n}\n\nheader {\... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20593466/"
] |
74,566,249 | <p>I'm building an angular 14 application with a backend using spring cloud gateway. I have configured CORS in the gateway. I run the application on http://localhost:4200.
The first call to the backend is to get user information. I defined a method :</p>
<pre><code>getUserInfo() {
const httpOptions = {
header... | [
{
"answer_id": 74566562,
"author": "Morgan Feeney",
"author_id": 1793962,
"author_profile": "https://Stackoverflow.com/users/1793962",
"pm_score": 1,
"selected": false,
"text": "calc() :root {\n --left-wall: 30%;\n}\n\nbody {\n background-color: aqua;\n margin: 0%;\n}\n\nheader {\... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597444/"
] |
74,566,264 | <p>I am trying to get a list of SMB shares on a remote file server. Unfortunately because of the type of server I am querying WMI and CIM won't work. The only thing I can get to work is net view (which I believe uses netbios).</p>
<p>I am running the following code which gets the shares:</p>
<pre><code>$shares = net vi... | [
{
"answer_id": 74566418,
"author": "mklement0",
"author_id": 45375,
"author_profile": "https://Stackoverflow.com/users/45375",
"pm_score": 2,
"selected": true,
"text": "@(...) $logdirs = @($logdir1) # WRONG: same as $logDirs = $logdir1 in this case.\n $logdirs = , $logdir1\n $logDir , fo... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/535432/"
] |
74,566,265 | <p>I'm learning 'modern' C++ and I'm having a really hard time discerning the issue with this code.</p>
<p>Ball.h:</p>
<pre><code>#ifndef BALL_H
#define BALL_H
#include <string>
#include <string_view>
namespace ball
{
class Ball
{
std::string _color{};
double _radius{};
public:... | [
{
"answer_id": 74566290,
"author": "The Dreams Wind",
"author_id": 5690248,
"author_profile": "https://Stackoverflow.com/users/5690248",
"pm_score": 3,
"selected": false,
"text": "Ball(std::string_view, double) Ball() Ball a; // Ball() or Ball(std::string_view, double) with default argum... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20594161/"
] |
74,566,273 | <p><strong>Context</strong>
I am using: Windows 11, VSCode and node v18.12.1</p>
<p>I am trying to filter a JSON object, using an array variable, as I have more than one value I want to filter against.</p>
<p><strong>Question</strong>
I have the following code working which filters based on a single user's name. What I... | [
{
"answer_id": 74566290,
"author": "The Dreams Wind",
"author_id": 5690248,
"author_profile": "https://Stackoverflow.com/users/5690248",
"pm_score": 3,
"selected": false,
"text": "Ball(std::string_view, double) Ball() Ball a; // Ball() or Ball(std::string_view, double) with default argum... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20331138/"
] |
74,566,279 | <p>I've a middleware to validate a user <code>quota</code> and I need to inject the service that call the database into it to check this quota.</p>
<p>This is the middleware:</p>
<pre class="lang-js prettyprint-override"><code>export class PointMaxStorageMiddleware implements NestMiddleware {
constructor(private r... | [
{
"answer_id": 74566666,
"author": "Micael Levi",
"author_id": 5290447,
"author_profile": "https://Stackoverflow.com/users/5290447",
"pm_score": 1,
"selected": false,
"text": "@Injectable() PointsService PointMaxStorageMiddleware PointMaxStorageMiddleware @Inject(PointsService) private r... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2336081/"
] |
74,566,282 | <p>I am currently editing multiple CSVs to add 2 columns ORIGIN_FILE and WRITE_DATE. The problem is that the string is always added after a new line for some reason.</p>
<p>Here is an example of my input csv:</p>
<pre><code>PRODUCT, QUANTITY, PRICE
ITEM1, 4.8, 380.33
ITEM2, 2.3, 120.50
ITEM3, 1.5, 210.11
</code></pre>
... | [
{
"answer_id": 74566666,
"author": "Micael Levi",
"author_id": 5290447,
"author_profile": "https://Stackoverflow.com/users/5290447",
"pm_score": 1,
"selected": false,
"text": "@Injectable() PointsService PointMaxStorageMiddleware PointMaxStorageMiddleware @Inject(PointsService) private r... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11721871/"
] |
74,566,293 | <p>Limiting to a line would be simple using <code>white-space:nowrap</code> but I have a specific problem where I would like to force my header text to fit in a specific width.</p>
<p>I had success adding individual style on the element to force them to the specific 2 lines I want but it does not seem like a long term... | [
{
"answer_id": 74566666,
"author": "Micael Levi",
"author_id": 5290447,
"author_profile": "https://Stackoverflow.com/users/5290447",
"pm_score": 1,
"selected": false,
"text": "@Injectable() PointsService PointMaxStorageMiddleware PointMaxStorageMiddleware @Inject(PointsService) private r... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566293",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10638194/"
] |
74,566,302 | <p>After using <code>.groupby(['match_id', 'team']).sum()</code> I'm left with this multi-index dataframe:</p>
<pre><code> visionScore
match_id team
EUW1_5671848066 blue 212
red 127
EUW1_5671858853 blue 146
red ... | [
{
"answer_id": 74566708,
"author": "Chrysophylaxs",
"author_id": 9499196,
"author_profile": "https://Stackoverflow.com/users/9499196",
"pm_score": 3,
"selected": true,
"text": "import pandas as pd\n\ndf = pd.DataFrame(\n {\"visionScore\": [212, 127, 146, 170, 82, 82]},\n index=pd.M... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7190595/"
] |
74,566,341 | <p>I've got a Svelte (with Sveltekit) app which I just containerized. It builds correctly and there are no errors when running, but I cannot access it from the browser. I tried accessing <code>http://localhost:5050/</code> and also <code>http://0.0.0.0:5050/</code> but I'm getting:</p>
<pre><code>This page isn’t workin... | [
{
"answer_id": 74566534,
"author": "2pha",
"author_id": 1550696,
"author_profile": "https://Stackoverflow.com/users/1550696",
"pm_score": 1,
"selected": false,
"text": "npm install --global http-server && http-server ./app -p 5050"
},
{
"answer_id": 74662242,
"author": "akdev... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2882913/"
] |
74,566,348 | <p>Method in model User</p>
<pre><code>public function news()
{
return $this->hasMany(News::class);
}
</code></pre>
<p>Method in model News</p>
<pre><code>public function user()
{
return $this->belongsTo(User::class);
};
</code></pre>
<p>Work</p>
<pre><code>$user=User::all();
dd($user[0]->news... | [
{
"answer_id": 74566460,
"author": "Alfredo Osorio",
"author_id": 14342247,
"author_profile": "https://Stackoverflow.com/users/14342247",
"pm_score": 0,
"selected": false,
"text": "<div class=\"container\">\n@foreach ($users as $user)\n {{ $user->name }}\n@endforeach\n</div>\n \n{{ $u... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19912943/"
] |
74,566,349 | <p>This is for WebDriverWait issue</p>
<p><a href="https://i.stack.imgur.com/nQZiL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nQZiL.png" alt="enter image description here" /></a></p>
<p>I am unable to import it despite the dependeny in my pom file.</p>
<p>This is for the error I am seeing my Int... | [
{
"answer_id": 74566460,
"author": "Alfredo Osorio",
"author_id": 14342247,
"author_profile": "https://Stackoverflow.com/users/14342247",
"pm_score": 0,
"selected": false,
"text": "<div class=\"container\">\n@foreach ($users as $user)\n {{ $user->name }}\n@endforeach\n</div>\n \n{{ $u... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20179124/"
] |
74,566,354 | <p>I need to sort the hashmap based on value List size and its' not working. I've written my custom comparator. For example hashmap is as follow:</p>
<pre><code>Test1-a,b
Test2-c,d,e
Test3-f
Test4-d,g,h,i
Test5-p,b
</code></pre>
<p>After sorting it should look like this:</p>
<pre><code>Test3-f
Test1-a,b
Test5-p,b
Test2... | [
{
"answer_id": 74566447,
"author": "xerx593",
"author_id": 592355,
"author_profile": "https://Stackoverflow.com/users/592355",
"pm_score": 1,
"selected": false,
"text": "List.size() int Collections.sort( \n list,\n // when java >= 8, we can save all the \"decoration\" (anonymous class)... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19191974/"
] |
74,566,379 | <p>When I run from TestNG or Maven test from locally all the test cases are working fine but in pipeline it gives me this "cannot access org.testng.Assert".
I am attaching the error screenshot of Azure Pipeline:
<a href="https://i.stack.imgur.com/k7EI5.png" rel="nofollow noreferrer">enter image description he... | [
{
"answer_id": 74566447,
"author": "xerx593",
"author_id": 592355,
"author_profile": "https://Stackoverflow.com/users/592355",
"pm_score": 1,
"selected": false,
"text": "List.size() int Collections.sort( \n list,\n // when java >= 8, we can save all the \"decoration\" (anonymous class)... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9855896/"
] |
74,566,388 | <p>I have a string which is like that "00100101 10010011 01010100". Every 8 bits there is a space and the string might be bigger. I want to convert it to plaintext with python3.</p>
<p>I am new in python and I tried some solutions I found here but without success.</p>
| [
{
"answer_id": 74566447,
"author": "xerx593",
"author_id": 592355,
"author_profile": "https://Stackoverflow.com/users/592355",
"pm_score": 1,
"selected": false,
"text": "List.size() int Collections.sort( \n list,\n // when java >= 8, we can save all the \"decoration\" (anonymous class)... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20594243/"
] |
74,566,404 | <p>The Object Lookup method is very popular in JS and used as a better replacement for Switch-case statements e.g.</p>
<pre><code>function phoneticLookup(val) {
var result = "";
switch(val) {
case "alpha":
result = "Adams";
break;
case "bravo":
resu... | [
{
"answer_id": 74566503,
"author": "Zac Anger",
"author_id": 5774952,
"author_profile": "https://Stackoverflow.com/users/5774952",
"pm_score": 1,
"selected": false,
"text": "const continents = {\n \"Africa\": [\"Egypt\", \"Ghana\"], // etc\n \"Asia\": [\"China\", \"Bhutan\"], // etc\n}... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4916855/"
] |
74,566,421 | <p>I collect Free disk space metrics at regular intervals and would like to predict when the disk will be full.</p>
<p>I thought I could use <a href="https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/series-decompose-forecastfunction" rel="nofollow noreferrer">series_decompose_forecast</a></p>
<p>Here's... | [
{
"answer_id": 74567466,
"author": "ChrisWue",
"author_id": 220986,
"author_profile": "https://Stackoverflow.com/users/220986",
"pm_score": 1,
"selected": false,
"text": "let DiskSpace = \nrange Timestamp from ago(60d) to now() step 1d\n| order by Timestamp desc\n| serialize rn=row_numbe... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4609186/"
] |
74,566,472 | <p>I am using Blazor and I am a beginner.</p>
<p>Currently I have several Blazor components that all need the same JSON data (data fetched from one URL, e.g., http://localhost/todo)</p>
<p>Instead of fetching the same URL inside all my components and duplicating my code, I decided to create a Service that fetchs the UR... | [
{
"answer_id": 74576462,
"author": "Vikram Reddy",
"author_id": 20552709,
"author_profile": "https://Stackoverflow.com/users/20552709",
"pm_score": 0,
"selected": false,
"text": "await builder.Build().RunAsync(); ...\nusing Microsoft.AspNetCore.Components.Web;\nusing Microsoft.AspNetCore... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13502536/"
] |
74,566,491 | <p>I am trying to get a substring between two markers using <code>re</code> in Python, for example:</p>
<pre><code>import re
test_str = "#$ -N model_simulation 2022"
# these two lines work
# the output is: model_simulation
print(re.search("-N(.*)2022",test_str).group(1))
print(re.search(" -N(.... | [
{
"answer_id": 74576462,
"author": "Vikram Reddy",
"author_id": 20552709,
"author_profile": "https://Stackoverflow.com/users/20552709",
"pm_score": 0,
"selected": false,
"text": "await builder.Build().RunAsync(); ...\nusing Microsoft.AspNetCore.Components.Web;\nusing Microsoft.AspNetCore... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9851307/"
] |
74,566,509 | <p>I'm pretty new to neovim and vim in general and I tried to use the localleader key (default: \) and nothing happened.</p>
<p>Then I tried to set the localleader key in the config (lua) in various ways I could find online, none of which worked.</p>
<p>However when I type <code>:echo maplocalleader</code> in neovim it... | [
{
"answer_id": 74569575,
"author": "LoneExile",
"author_id": 20253319,
"author_profile": "https://Stackoverflow.com/users/20253319",
"pm_score": 0,
"selected": false,
"text": "local opts = { noremap = true, silent = true }\nlocal keymap = vim.api.nvim_set_keymap\n\n--Remap '\\\\' as lead... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566509",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17037350/"
] |
74,566,535 | <p>I am trying to download a zip file that is stored here:</p>
<pre><code>http://e4ftl01.cr.usgs.gov/MEASURES/SRTMGL1.003/2000.02.11/N45W074.SRTMGL1.hgt.zip
</code></pre>
<p>If you paste this into the browser and hit enter, it will download the .zip folder.</p>
<p>If you inspect the browser while this is happening, you... | [
{
"answer_id": 74566654,
"author": "cnemri",
"author_id": 3892280,
"author_profile": "https://Stackoverflow.com/users/3892280",
"pm_score": 1,
"selected": false,
"text": "import requests\n\n# download zip file from url\nurl = \"https://e4ftl01.cr.usgs.gov/MEASURES/SRTMGL1.003/2000.02.11/... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10818128/"
] |
74,566,537 | <p>I'm parsing a CSV file using python. I've two problem:</p>
<ol>
<li>My list is being treated as string</li>
<li>Is there a way to make my parsing more "elegant"</li>
</ol>
<p>Example CSV file</p>
<pre><code>Name, Address
host1,['192.168.x.10', '127.0.0.1']
host2,['192.168.x.12', '127.0.0.1']
host3,['192.16... | [
{
"answer_id": 74566814,
"author": "npetrov937",
"author_id": 13078832,
"author_profile": "https://Stackoverflow.com/users/13078832",
"pm_score": 1,
"selected": false,
"text": "padnas pandas ast.literal_eval import ast\nimport pandas as pd\n\ndf = pd.read_csv('test.csv')\ndf['Address'] =... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17487397/"
] |
74,566,563 | <p>In the code below when I return a class object in the function <code>getServerSideProps</code> through props, in the page function the variable is undefined, just like in the code below.</p>
<pre><code>export default function cars(obj){
return <h1>counter: {obj.counter}</h1> // obj is undefined, why?... | [
{
"answer_id": 74566814,
"author": "npetrov937",
"author_id": 13078832,
"author_profile": "https://Stackoverflow.com/users/13078832",
"pm_score": 1,
"selected": false,
"text": "padnas pandas ast.literal_eval import ast\nimport pandas as pd\n\ndf = pd.read_csv('test.csv')\ndf['Address'] =... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11783235/"
] |
74,566,583 | <p>I have created a function to calculate my weekly profit and loss. It worked as per below and I would to break it down to have the only per symbols/pairs. I have been stucked on this aggregation. Any hints are appreciated.</p>
<pre><code>string WeeklyProfit()
{
string msg_WeeklyProfit="";
int i,hstTotal=Ord... | [
{
"answer_id": 74566814,
"author": "npetrov937",
"author_id": 13078832,
"author_profile": "https://Stackoverflow.com/users/13078832",
"pm_score": 1,
"selected": false,
"text": "padnas pandas ast.literal_eval import ast\nimport pandas as pd\n\ndf = pd.read_csv('test.csv')\ndf['Address'] =... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566583",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19471232/"
] |
74,566,615 | <p>Is it possible to declare multiple variable bindings in one line in SML? For example, I have the following:</p>
<pre class="lang-ml prettyprint-override"><code>let
val m1 = [1]
val m2 = [2]
val m3 = [3]
in
{...}
end
</code></pre>
<p>I would like to condense this down to something like</p>
<pre class=... | [
{
"answer_id": 74566814,
"author": "npetrov937",
"author_id": 13078832,
"author_profile": "https://Stackoverflow.com/users/13078832",
"pm_score": 1,
"selected": false,
"text": "padnas pandas ast.literal_eval import ast\nimport pandas as pd\n\ndf = pd.read_csv('test.csv')\ndf['Address'] =... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4537850/"
] |
74,566,634 | <p>Is it possible to solve the following problem without a cycle? By using a math formula. It could make my app much faster.</p>
<p>How many times can 43920 be subtracted in 189503, while each subtraction result is greater than 79920</p>
<p>Example:</p>
<pre><code>189503 > 79920 so 189503-43920=145583 (1 time)
14558... | [
{
"answer_id": 74566663,
"author": "manuelmhtr",
"author_id": 1628009,
"author_profile": "https://Stackoverflow.com/users/1628009",
"pm_score": 2,
"selected": false,
"text": "Math.floor((189503 - 79920) / 43920) 2 79920 43920 floor"
},
{
"answer_id": 74566711,
"author": "user... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566634",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13720928/"
] |
74,566,635 | <p>Here is the code:</p>
<pre><code>#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
int* cut(int* x, int n);
int main() {
int *x= NULL,n;
x = malloc(sizeof(int));
printf("Amount of elements: ");
scanf("%d", x);
x = realloc(x, (*x+1) * sizeo... | [
{
"answer_id": 74566663,
"author": "manuelmhtr",
"author_id": 1628009,
"author_profile": "https://Stackoverflow.com/users/1628009",
"pm_score": 2,
"selected": false,
"text": "Math.floor((189503 - 79920) / 43920) 2 79920 43920 floor"
},
{
"answer_id": 74566711,
"author": "user... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20594382/"
] |
74,566,641 | <p>I am trying to work out how to create a dot notation component and everything I've found on SO and Google doesn't appear to work in the way that I am expecting.</p>
<p>I have the following code for two components; at the moment, it's all in one file:</p>
<pre><code>const ThreeDotMenu : any = ({children}) => {
... | [
{
"answer_id": 74566663,
"author": "manuelmhtr",
"author_id": 1628009,
"author_profile": "https://Stackoverflow.com/users/1628009",
"pm_score": 2,
"selected": false,
"text": "Math.floor((189503 - 79920) / 43920) 2 79920 43920 floor"
},
{
"answer_id": 74566711,
"author": "user... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566641",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/499448/"
] |
74,566,644 | <p>I'm looking for regex expression to take the below string and get the selected data between <code>/* start */</code> and <code>/* end */</code>.</p>
<pre><code>import {str}from'envalid';import {buildEnv}from'@leno/core';const { cleanEnv, envalidConfig } = buildEnv(process['APP_ENV'] || process.env, /* start */ {
... | [
{
"answer_id": 74566663,
"author": "manuelmhtr",
"author_id": 1628009,
"author_profile": "https://Stackoverflow.com/users/1628009",
"pm_score": 2,
"selected": false,
"text": "Math.floor((189503 - 79920) / 43920) 2 79920 43920 floor"
},
{
"answer_id": 74566711,
"author": "user... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1595858/"
] |
74,566,651 | <p><img src="https://i.stack.imgur.com/4he3R.jpg" alt="VS screengrab" /></p>
<p>This is my full script</p>
<p>I get an error on line 15, beginning at the "PlayerControls" word.</p>
<blockquote>
<p>error CS0246: The type or namespace name 'PlayerControls' could not be found (are you missing a using directive o... | [
{
"answer_id": 74566663,
"author": "manuelmhtr",
"author_id": 1628009,
"author_profile": "https://Stackoverflow.com/users/1628009",
"pm_score": 2,
"selected": false,
"text": "Math.floor((189503 - 79920) / 43920) 2 79920 43920 floor"
},
{
"answer_id": 74566711,
"author": "user... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566651",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20594385/"
] |
74,566,677 | <p>I want to loop through a list and find all the numbers that are prime</p>
<pre><code>arr = [1,2,3]
for i in range(len(arr)):
if arr[i] > 1:
for j in range(2, int(arr[i]/2)+1):
if (arr[i] % j) == 0:
print(arr[i], "is not prime")
else:
prin... | [
{
"answer_id": 74566695,
"author": "cnemri",
"author_id": 3892280,
"author_profile": "https://Stackoverflow.com/users/3892280",
"pm_score": -1,
"selected": false,
"text": "arr = list(range(20))\n\ndef is_prime(n):\n if n < 2:\n return False\n for i in range(2, int(n**0.5)+1)... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10929741/"
] |
74,566,687 | <p>I am a beginner in Python so kindly do not use complex or advanced code.</p>
<pre><code>contact = {}
def display_contact():
for name, number in sorted((k,v) for k, v in contact.items()):
print(f'Name: {name}, Number: {number}')
#def display_contact():
# print("Name\t\tContact Number")
# for... | [
{
"answer_id": 74566738,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 3,
"selected": true,
"text": "re.fullmatch import re\n\nwhile True:\n name = input(\"Enter the contact name \")\n if re.fullmatch(r'[a-zA-Z]... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16429052/"
] |
74,566,707 | <p>I am creating a reusable app, which requires some configurations stored in <code>config.php</code>. This configuration file does not have any function, but the configuration are returned as an array, eg</p>
<pre><code><?php
return [
'db_name' => 'db_name',
'password' => 'password',
........
];... | [
{
"answer_id": 74566786,
"author": "user3425506",
"author_id": 3425506,
"author_profile": "https://Stackoverflow.com/users/3425506",
"pm_score": 0,
"selected": false,
"text": "return return <?php\n$config = [\n 'db_name' => 'db_name',\n 'password' => 'password',\n ........\n];... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19638294/"
] |
74,566,718 | <p>I am trying to server static files with express and them dont work, i think its express problem or something but i dont realize why it dont works.
my folders look like this:</p>
<p>app.js
public
--css
--js
--images</p>
<p>and the code i trying to run like this:</p>
<pre><code>app.use(express.static(path.join(__dirna... | [
{
"answer_id": 74566786,
"author": "user3425506",
"author_id": 3425506,
"author_profile": "https://Stackoverflow.com/users/3425506",
"pm_score": 0,
"selected": false,
"text": "return return <?php\n$config = [\n 'db_name' => 'db_name',\n 'password' => 'password',\n ........\n];... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20264570/"
] |
74,566,727 | <p>The problem is that the loop is working the first time but it stops after and I want it to continue like this until the input is different than 1 to 9.</p>
<pre><code>do
{
Show-Menu
$selection = Read-Host "Please choose an option"
switch ($selection)
{
'1' {
Get-ChildIte... | [
{
"answer_id": 74566790,
"author": "Ralph Sch",
"author_id": 20551048,
"author_profile": "https://Stackoverflow.com/users/20551048",
"pm_score": -1,
"selected": false,
"text": "switch(...)\n{\n<# switch options #>\ndefault {break}\n}\n"
},
{
"answer_id": 74566851,
"author": "... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11223645/"
] |
74,566,733 | <p>I would like to make a script to check whether or not files are still being created inside a folder. We can consider for our problem that there are no more files being created if let's say for 5 sec the list of files present in that folder remains unchanged. Can anyone help me with this issue?</p>
| [
{
"answer_id": 74566813,
"author": "Trimonu",
"author_id": 15324906,
"author_profile": "https://Stackoverflow.com/users/15324906",
"pm_score": 0,
"selected": false,
"text": "import os\nentries = os.listdir('my_directory/')\n len(entries)"
},
{
"answer_id": 74567125,
"author":... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12627762/"
] |
74,566,826 | <p>I have implemented a class that handles 2-way communication between processes, and while trying to add type-safety to the API's I have run into an issue that I cannot seem to crack.</p>
<p>I am trying to essentially create a type-safe interface that allows me to use the same class in multiple process where I can def... | [
{
"answer_id": 74566813,
"author": "Trimonu",
"author_id": 15324906,
"author_profile": "https://Stackoverflow.com/users/15324906",
"pm_score": 0,
"selected": false,
"text": "import os\nentries = os.listdir('my_directory/')\n len(entries)"
},
{
"answer_id": 74567125,
"author":... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20594422/"
] |
74,566,842 | <p>I have a table with a unique constraint</p>
<pre class="lang-sql prettyprint-override"><code>CREATE temp TABLE tmp (
c1 int,
c2 text,
c3 int,
UNIQUE (c2, c3)
);
insert into tmp (c1, c2, c3)
values (1, 'a', 2),
(2, 'a', 1)
</code></pre>
<p>Is it possible to run the update below without getti... | [
{
"answer_id": 74567027,
"author": "SebDieBln",
"author_id": 10171966,
"author_profile": "https://Stackoverflow.com/users/10171966",
"pm_score": 1,
"selected": false,
"text": "UNIQUE DEFERRABLE ...\n UNIQUE (c2, c3) DEFERRABLE\n ...\n SET CONSTRAINTS tmp_c2_c3_key DEFERRED;\n S... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4665335/"
] |
74,566,856 | <p>I always see</p>
<pre><code> (function (e){
console.log("hi")
})
</code></pre>
<p>in libraries Like jQuery but when I try and make something like it in NodeJS it doesn't Log "hi" to the console. What does it mean?</p>
<p>I've tried searching for multiple different solutions online to see ... | [
{
"answer_id": 74567027,
"author": "SebDieBln",
"author_id": 10171966,
"author_profile": "https://Stackoverflow.com/users/10171966",
"pm_score": 1,
"selected": false,
"text": "UNIQUE DEFERRABLE ...\n UNIQUE (c2, c3) DEFERRABLE\n ...\n SET CONSTRAINTS tmp_c2_c3_key DEFERRED;\n S... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18498182/"
] |
74,566,861 | <p>This file, <code>file.txt</code>:</p>
<pre><code>checking
open something
connected
open something
connected
open something
checking
open something
checking
open something
connected
open something
</code></pre>
<p>Needs to be like this, <code>file.txt</code>:</p>
<pre><code>checking
open something
connected
open s... | [
{
"answer_id": 74567027,
"author": "SebDieBln",
"author_id": 10171966,
"author_profile": "https://Stackoverflow.com/users/10171966",
"pm_score": 1,
"selected": false,
"text": "UNIQUE DEFERRABLE ...\n UNIQUE (c2, c3) DEFERRABLE\n ...\n SET CONSTRAINTS tmp_c2_c3_key DEFERRED;\n S... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20460608/"
] |
74,566,897 | <p>Hello I have a variable
myvar: "123,2344,567,3334"
I need to extract the value after second comma and put this on another varivle that will be used to write in file:
my code:</p>
<pre><code>myvar: "123,2344,567,3334"
var items = myvar.Split( ',');
var val=items[3]
// Add on file
string row = Con... | [
{
"answer_id": 74566958,
"author": "Jonathan Barraone",
"author_id": 17957703,
"author_profile": "https://Stackoverflow.com/users/17957703",
"pm_score": 0,
"selected": false,
"text": "var myvar = \"123,2344,567,3334\";\nvar items = myvar.Split(',');\nvar val = items[2];\n\n//Write to the... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20576670/"
] |
74,566,899 | <pre><code>var first_img = new Image();
first_img.src = 'https://avatars.mds.yandex.net/i?id=1bb1862085f1bc99c8eff04a674864838f1c53cb-4772764-images-thumbs&n=13';
var first_width;
var first_height;
first_img.onload = function(){
first_width = first_img.width;
first_height = first_img.hei... | [
{
"answer_id": 74566958,
"author": "Jonathan Barraone",
"author_id": 17957703,
"author_profile": "https://Stackoverflow.com/users/17957703",
"pm_score": 0,
"selected": false,
"text": "var myvar = \"123,2344,567,3334\";\nvar items = myvar.Split(',');\nvar val = items[2];\n\n//Write to the... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14483289/"
] |
74,566,903 | <p>i'm just practicing scraping with selenium</p>
<p><a href="https://i.stack.imgur.com/12mhd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/12mhd.png" alt="inspect element image" /></a></p>
<p>What i would like to do is go through each item in the unordered list</p>
<p><a href="https://i.stack.imgu... | [
{
"answer_id": 74566958,
"author": "Jonathan Barraone",
"author_id": 17957703,
"author_profile": "https://Stackoverflow.com/users/17957703",
"pm_score": 0,
"selected": false,
"text": "var myvar = \"123,2344,567,3334\";\nvar items = myvar.Split(',');\nvar val = items[2];\n\n//Write to the... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566903",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10872352/"
] |
74,566,924 | <p>I am working with a df similar to this:</p>
<pre><code>df <- data.frame(p1 = c("Tom", "Tom", "Tom", "Tom", "Tom", "Tom", "Brad", "Brad", "Brad", "Brad", "Brad", "Brad", "Brad","Br... | [
{
"answer_id": 74567122,
"author": "Martin Gal",
"author_id": 12505251,
"author_profile": "https://Stackoverflow.com/users/12505251",
"pm_score": 1,
"selected": false,
"text": "dplyr tidyr timesscored library(tidyr)\nlibrary(dplyr)\n\ndf_score <- df %>% \n group_by(grp = cumsum(timesinc... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19128163/"
] |
74,566,968 | <p>I try to get images from Instagram and build a gallery on my site.</p>
<p>myCode:</p>
<pre class="lang-js prettyprint-override"><code>function Instagram() {
const instagramData = async () => {
const url = `https:/site.com/...`;
const data = await fetch(url);
const feed = await data.json();
conso... | [
{
"answer_id": 74566995,
"author": "Muhammad Allak",
"author_id": 15409495,
"author_profile": "https://Stackoverflow.com/users/15409495",
"pm_score": 2,
"selected": false,
"text": "instagramData() useEffect import {useEffect} from 'react';\n\nuseEffect(() => \n instagramData();\n},[])\n... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566968",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19749827/"
] |
74,566,977 | <p>A user makes a booking. They enter their name, the Pickup address and a Dropoff address and a time of pickup.</p>
<p>If, the user has an internet problem and their form doesn't seem to send, they press the submit button a second time, I often end up with 2 entries both the same in the database. Sometimes, Date_add... | [
{
"answer_id": 74567355,
"author": "Donnan31",
"author_id": 19910876,
"author_profile": "https://Stackoverflow.com/users/19910876",
"pm_score": -1,
"selected": false,
"text": "if (!$_session['booked']){\n //Insert entry into database//\n\n $_session['booked'] = 1;\n}\n"
}
] | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19910876/"
] |
74,566,994 | <p>Every HTML page has a stacking context at the root element (<code>html</code>tag).</p>
<p>In the following example the <code>html</code> tag is the (only) stacking context</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="sni... | [
{
"answer_id": 74576273,
"author": "Alohci",
"author_id": 42585,
"author_profile": "https://Stackoverflow.com/users/42585",
"pm_score": 2,
"selected": true,
"text": "body {\n background: #222;\n color: white;\n box-sizing: border-box;\n border:3px solid yellow;\n}\n.box {\n width: 2... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74566994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9938317/"
] |
74,567,007 | <p>I am creating a food menu layout, the menu has categories with items.
at the top is a list of category names like drinks, sushi, etc, which is a recyclerview that scrolls horizontally, at the bottom are the category items for example under drinks there is cocacola Fanta, etc which is a recyclerview that scrolls vert... | [
{
"answer_id": 74576273,
"author": "Alohci",
"author_id": 42585,
"author_profile": "https://Stackoverflow.com/users/42585",
"pm_score": 2,
"selected": true,
"text": "body {\n background: #222;\n color: white;\n box-sizing: border-box;\n border:3px solid yellow;\n}\n.box {\n width: 2... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74567007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9140491/"
] |
74,567,051 | <p>How can i match a series of expressions with OR's? This is for scrubbing plain text data which may contain imbedded spaces or tabs at the front of each row. This is in preparation for a <code>.split</code> at newlines.</p>
<pre><code>const oldStr = `abc
abc
abc`;
</code></pre>
<p>I want to replace:</p>
<pre><... | [
{
"answer_id": 74567130,
"author": "gog",
"author_id": 3494774,
"author_profile": "https://Stackoverflow.com/users/3494774",
"pm_score": 3,
"selected": true,
"text": "\\n text = ` How razorback-jumping \n frogs \ncan\n \\t level six \\t\n \\t piqued gymnasts!` \n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74567051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/209942/"
] |
74,567,052 | <p>I am not sure what is wrong:</p>
<p>I have an enum like the following:</p>
<pre><code>#[derive(Debug,PartialEq)]
pub enum Tree {
Leaf,
Node(Box<Tree>,i32,Box<Tree>)
}
</code></pre>
<p>Now for some reason when I try to find the sum of all of the leaves in this tree:</p>
<pre><code>pub fn tree_sum(... | [
{
"answer_id": 74567163,
"author": "Allan J.",
"author_id": 9680087,
"author_profile": "https://Stackoverflow.com/users/9680087",
"pm_score": 0,
"selected": false,
"text": "pub fn tree_sum(t:&Tree) -> i32 {\n match t {\n Tree::Leaf => 0,\n Tree::Node(Leaf, x, Leaf2) => *... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74567052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20064859/"
] |
74,567,066 | <p>"Sets can be declared using instances of the Set and RangeSet classes or by assigning set expressions. The simplest set declaration creates a set and postpones creation of its members."</p>
<p>That isn't a definition, what should a set be used for?</p>
| [
{
"answer_id": 74567163,
"author": "Allan J.",
"author_id": 9680087,
"author_profile": "https://Stackoverflow.com/users/9680087",
"pm_score": 0,
"selected": false,
"text": "pub fn tree_sum(t:&Tree) -> i32 {\n match t {\n Tree::Leaf => 0,\n Tree::Node(Leaf, x, Leaf2) => *... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74567066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13635877/"
] |
74,567,073 | <p>Hope I'm phrasing this question correctly... I have begun working through some coding examples for a <a href="https://github.com/raspberrypi/pico-examples" rel="nofollow noreferrer"><em>micrcontroller device</em></a>, and I see many expressions similar to the following:</p>
<pre><code>#define REG_CONFIG _u(0xF5)
</c... | [
{
"answer_id": 74567114,
"author": "user17732522",
"author_id": 17732522,
"author_profile": "https://Stackoverflow.com/users/17732522",
"pm_score": 3,
"selected": true,
"text": "u u platform_defs.h #ifndef _u\n#ifdef __ASSEMBLER__\n#define _u(x) x\n#else\n#define _u(x) x ## u\n#endif\n#e... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74567073",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5395338/"
] |
74,567,078 | <p>I am new to programming and today I wanted to try out the LeetCode problem <a href="https://leetcode.com/problems/palindrome-linked-list/" rel="nofollow noreferrer">234. Palindrome Linked List</a>:</p>
<blockquote>
<p>Given the <code>head</code> of a singly linked list, return <code>true</code> if it is a palindrome... | [
{
"answer_id": 74567573,
"author": "Soliev",
"author_id": 19945688,
"author_profile": "https://Stackoverflow.com/users/19945688",
"pm_score": 0,
"selected": false,
"text": "\n\n // Definition for singly-linked list.\n// class ListNode {\n// int val;\n// ListNode? next;\n// ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74567078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14999171/"
] |
74,567,106 | <p>I'm currently attempting a do very specific kind of navigation bar for my website. The main 'feature' of it is that on hover over each menu item, the item itself grows, while both the item before and the item after moves <em>x</em> pixels away from the item.</p>
<p>The styling of these elements is what would perfor... | [
{
"answer_id": 74567573,
"author": "Soliev",
"author_id": 19945688,
"author_profile": "https://Stackoverflow.com/users/19945688",
"pm_score": 0,
"selected": false,
"text": "\n\n // Definition for singly-linked list.\n// class ListNode {\n// int val;\n// ListNode? next;\n// ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74567106",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11155733/"
] |
74,567,119 | <p>I have the following line of code which run when I send {"key":"1234"} to the server.</p>
<pre><code>if (
(req.path === '/start' || req.path === '/start/') &&
(req.method === 'PUT') && (req.body.key === '1234')
)
</code></pre>
<p>However the app I am using sen... | [
{
"answer_id": 74567573,
"author": "Soliev",
"author_id": 19945688,
"author_profile": "https://Stackoverflow.com/users/19945688",
"pm_score": 0,
"selected": false,
"text": "\n\n // Definition for singly-linked list.\n// class ListNode {\n// int val;\n// ListNode? next;\n// ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74567119",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18535938/"
] |
74,567,128 | <p>I have a problem and I am new to SQL so I am not sure how to solve it. I have a table with two columns and I want to start at the earliest date and take the next occurrence (of the name column) as the end date.</p>
<p>I know I want to group by Name, but I am not sure what to do after that:</p>
<pre><code> Name D... | [
{
"answer_id": 74567183,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": false,
"text": "WITH cte AS (\n SELECT *, ROW_NUMBER() OVER (ORDER BY Date) rn1,\n ROW_NUMBER() OVER (PARTIT... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74567128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17892584/"
] |
74,567,180 | <p>I have two interfaces:</p>
<pre><code>interface Project {
...
CurrentProjectPhase : number
...
}
</code></pre>
<p>and</p>
<pre><code>interface Phase {
PhaseId : number
Projects$ : Observable<Project[]>
...
}
</code></pre>
<p>both are returned from individual http services as oberservables.</p>
<p>I'm trying to... | [
{
"answer_id": 74567183,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": false,
"text": "WITH cte AS (\n SELECT *, ROW_NUMBER() OVER (ORDER BY Date) rn1,\n ROW_NUMBER() OVER (PARTIT... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74567180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/613849/"
] |
74,567,197 | <blockquote>
<p>This is a follow-up to <a href="https://stackoverflow.com/q/74566316/4756173">this question</a>, asking if all this was even possible.</p>
</blockquote>
<p>The <a href="https://pub.dev/packages/webview_flutter/install" rel="nofollow noreferrer"><code>WebView</code> package</a> seems really dope. But so ... | [
{
"answer_id": 74568365,
"author": "Alifa Al Farizi",
"author_id": 16363643,
"author_profile": "https://Stackoverflow.com/users/16363643",
"pm_score": -1,
"selected": false,
"text": " const WebView({\n Key? key,\n this.onWebViewCreated,\n this.initialUrl,\n this.initialCo... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74567197",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4756173/"
] |
74,567,208 | <p>I have a task to accomplish in Python with only one sentence:
I need to return lines of my txt-file that include words which have more than 6 characters and start with the letter "A".</p>
<p>My code is the following:</p>
<pre><code>[line for line in open('test.txt') if line.split().count('A') > 6]
</cod... | [
{
"answer_id": 74568365,
"author": "Alifa Al Farizi",
"author_id": 16363643,
"author_profile": "https://Stackoverflow.com/users/16363643",
"pm_score": -1,
"selected": false,
"text": " const WebView({\n Key? key,\n this.onWebViewCreated,\n this.initialUrl,\n this.initialCo... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74567208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20594803/"
] |
74,567,217 | <p>My Oracle table define with date type for one of the date column requestedDate.</p>
<p>While persisting, I am setting the value like below</p>
<pre><code>.setRequestedDate(Date.valueOf(LocalDate.now())))
</code></pre>
<p>And JPA entity defined like below,</p>
<pre><code>@Column(name = "REQ_DT")
@Temporal(T... | [
{
"answer_id": 74567663,
"author": "pmdba",
"author_id": 12913491,
"author_profile": "https://Stackoverflow.com/users/12913491",
"pm_score": 2,
"selected": false,
"text": "DATE to_char select to_char(sysdate,'YYYY-MM-DD') from dual;\n\nTO_CHAR(SY\n----------\n2022-11-24 \n"
},
{
... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74567217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/957359/"
] |
74,567,219 | <p>I'm trying to send HTTPS requests as quickly as possible. I know this would have to be concurrent requests due to my <strong>goal being 150 to 500+ requests a second</strong>. I've searched everywhere, but get no Python 3.11+ answer or one that doesn't give me errors. I'm trying to avoid AIOHTTP as the rigmarole of ... | [
{
"answer_id": 74567446,
"author": "atl",
"author_id": 2162861,
"author_profile": "https://Stackoverflow.com/users/2162861",
"pm_score": 0,
"selected": false,
"text": "GET from treq import get\nfrom twisted.internet import reactor\n\ndef done(response):\n if response.code == 200:\n ... | 2022/11/24 | [
"https://Stackoverflow.com/questions/74567219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12950945/"
] |
74,567,254 | <p>I am trying to make two fetch requests. The second one cannot be completed until MemberId is retrieved from the first one. I have tried putting them in separate async functions but keep getting the below error.</p>
<p>Any insights on the best way to do this would be much appreciated.</p>
<p>Error message:
<em>Uncaug... | [
{
"answer_id": 74567446,
"author": "atl",
"author_id": 2162861,
"author_profile": "https://Stackoverflow.com/users/2162861",
"pm_score": 0,
"selected": false,
"text": "GET from treq import get\nfrom twisted.internet import reactor\n\ndef done(response):\n if response.code == 200:\n ... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74567254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19813094/"
] |
74,567,273 | <p>According to <a href="https://peps.python.org/pep-0585/#id6" rel="nofollow noreferrer">pep-0585</a> for the latest versions of Python, it appears we can use <code>List</code> and <code>list</code> interchangeably for type declarations. So which should I use?</p>
<p>Assume:</p>
<ol>
<li>no requirement for backward co... | [
{
"answer_id": 74567345,
"author": "Stephen C",
"author_id": 139985,
"author_profile": "https://Stackoverflow.com/users/139985",
"pm_score": 1,
"selected": false,
"text": "typing.List list typing.List"
},
{
"answer_id": 74567396,
"author": "benjimin",
"author_id": 5104777... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74567273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/833960/"
] |
74,567,311 | <p>In my XML file [studentinfo.xml] is there a way to loop through the xml file and change specific tags (and specific child tags) [there will be multiple ones that need to change] and add a number on the end?</p>
<p>**The file is significantly larger</p>
<pre><code><?xml version="1.0" encoding="UTF-8... | [
{
"answer_id": 74570024,
"author": "Charles Han",
"author_id": 11514907,
"author_profile": "https://Stackoverflow.com/users/11514907",
"pm_score": 0,
"selected": false,
"text": "import lxml.etree as ET\n\nXSL = '''\n<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/T... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74567311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18696224/"
] |
74,567,332 | <p>I wanted to solve my Oprimization model in Python by Cplex so I installed Cplex in my system (Windows 11) and based on Cplex help insttall setup.py with this command:
python C:\Program Files\IBM\ILOG\CPLEX_Studio221\python\setup.py install</p>
<p>There are two examples in IBM "Docplex.cp" and "Docplex... | [
{
"answer_id": 74570024,
"author": "Charles Han",
"author_id": 11514907,
"author_profile": "https://Stackoverflow.com/users/11514907",
"pm_score": 0,
"selected": false,
"text": "import lxml.etree as ET\n\nXSL = '''\n<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/T... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74567332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11663096/"
] |
74,567,333 | <p>I'm trying to join a new column to my current query that uses aggregate functions. I create this column with a new query that also uses an aggregate function from a different table but I'm not sure if a <code>JOIN</code> will work for me since I need to join it to its respective row.</p>
<p><strong>TABLE A</strong> ... | [
{
"answer_id": 74570024,
"author": "Charles Han",
"author_id": 11514907,
"author_profile": "https://Stackoverflow.com/users/11514907",
"pm_score": 0,
"selected": false,
"text": "import lxml.etree as ET\n\nXSL = '''\n<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/T... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74567333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20594481/"
] |
74,567,334 | <p>I have two columns. The first one is longer and has multiple values such as:</p>
<pre><code>0 'A'
1 'B'
2 'B'
3 'C'
4 'A'
5 'A'
</code></pre>
<p>All the values in the first column are listed in the second column:</p>
<pre><code>0 'A'
1 'B'
2 'C'
</code></pre>
<p>The result I want is to have a list/series/column what... | [
{
"answer_id": 74570024,
"author": "Charles Han",
"author_id": 11514907,
"author_profile": "https://Stackoverflow.com/users/11514907",
"pm_score": 0,
"selected": false,
"text": "import lxml.etree as ET\n\nXSL = '''\n<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/T... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74567334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10843767/"
] |
74,567,340 | <p>Datepicker has <a href="https://jqueryui.com/datepicker/#alt-field" rel="nofollow noreferrer">this function</a> which allows you to ship the date into an alternative input with an alternate date format. In my program, I'm hiding the datepicker input and trigger open the calendar with a button. How do I get the date ... | [
{
"answer_id": 74567481,
"author": "anhnt",
"author_id": 14292069,
"author_profile": "https://Stackoverflow.com/users/14292069",
"pm_score": 0,
"selected": false,
"text": "altField onSelect $(\"#popupDatepicker\").datepicker({\n onSelect: function(dateText) {\n console.log(\"Se... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74567340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12687061/"
] |
74,567,354 | <p>So I have the following code:</p>
<pre><code>private var googleButton: some View {
Button {
// Empty
} label: {
HStack(alignment: .firstTextBaseline) {
Image(systemName: "globe")
Text("Continue with Google")
.font(.headline)
... | [
{
"answer_id": 74568088,
"author": "azamsharp",
"author_id": 3797,
"author_profile": "https://Stackoverflow.com/users/3797",
"pm_score": 1,
"selected": false,
"text": " Label(\"Continue with Google\", systemImage: \"heart\")\n .padding()\n .background {\n ... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74567354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19566858/"
] |
74,567,426 | <pre class="lang-none prettyprint-override"><code>docker build -t max-audio-embedding-generator .
[+] Building 1.9s (6/10)
=> [internal] load build definition from Dockerfile 0.0s
... | [
{
"answer_id": 74567731,
"author": "Artem Kotelevych",
"author_id": 20595254,
"author_profile": "https://Stackoverflow.com/users/20595254",
"pm_score": 0,
"selected": false,
"text": "hosts"
},
{
"answer_id": 74567737,
"author": "Dash",
"author_id": 11542834,
"author_p... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74567426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19225532/"
] |
74,567,437 | <p>I have been stuck trying to figure out this one part of my introduction to coding assignment. I know what it is asking but have no idea what the code is supposed to look like.</p>
<p>Define a function named Rotate that takes a string as input and returns a copy of that string in which all characters are rotated one ... | [
{
"answer_id": 74567501,
"author": "Đạt Huỳnh",
"author_id": 20595083,
"author_profile": "https://Stackoverflow.com/users/20595083",
"pm_score": 2,
"selected": false,
"text": "function Rotate(str){\n return str.substring(1)+str[0]\n}\n"
},
{
"answer_id": 74567509,
"author"... | 2022/11/25 | [
"https://Stackoverflow.com/questions/74567437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20006845/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.