qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,678,678 | <p>i want to remove duplicates from array, here is input json</p>
<pre class="lang-json prettyprint-override"><code>{
"abc": [
"five"
],
"pqr": [
"one",
"one",
"two",
"two",
"three",
"three",
... | [
{
"answer_id": 74678932,
"author": "pmf",
"author_id": 2158479,
"author_profile": "https://Stackoverflow.com/users/2158479",
"pm_score": 1,
"selected": false,
"text": "unique jq '.[] |= unique'\n {\n \"abc\": [\n \"five\"\n ],\n \"pqr\": [\n \"four\",\n \"one\",\n \"three\... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74678678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3397719/"
] |
74,678,694 | <p>Hello guys I build a react application using Django as the backend and having many keys at.env file. Now when I build the react app with the ‘npm run build’ command it builds the index file with CSS in the build folder. But where it stores all the keys of the .env file which were used in some components. Or its gets... | [
{
"answer_id": 74678932,
"author": "pmf",
"author_id": 2158479,
"author_profile": "https://Stackoverflow.com/users/2158479",
"pm_score": 1,
"selected": false,
"text": "unique jq '.[] |= unique'\n {\n \"abc\": [\n \"five\"\n ],\n \"pqr\": [\n \"four\",\n \"one\",\n \"three\... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74678694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9417631/"
] |
74,678,703 | <p>After installing <a href="https://docs.neptune.ai/" rel="nofollow noreferrer">Neptune.ai</a> for occasional ML experiments logging, it became included by default into the list of callbacks in all transformers.trainer runs. As a result, it requires proper initialisation with token or else throws <code>NeptuneMissingC... | [
{
"answer_id": 74678932,
"author": "pmf",
"author_id": 2158479,
"author_profile": "https://Stackoverflow.com/users/2158479",
"pm_score": 1,
"selected": false,
"text": "unique jq '.[] |= unique'\n {\n \"abc\": [\n \"five\"\n ],\n \"pqr\": [\n \"four\",\n \"one\",\n \"three\... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74678703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10396469/"
] |
74,678,720 | <p>When I put npm start, it freezes in the loading section, attached pic:<a href="https://i.stack.imgur.com/eXyYQ.png" rel="nofollow noreferrer">loading image frozen link</a></p>
<p>For me to write in the VS code terminal, I will need to trash or kill terminal and start another one. [i have a macos]</p>
<p>I tried clos... | [
{
"answer_id": 74678932,
"author": "pmf",
"author_id": 2158479,
"author_profile": "https://Stackoverflow.com/users/2158479",
"pm_score": 1,
"selected": false,
"text": "unique jq '.[] |= unique'\n {\n \"abc\": [\n \"five\"\n ],\n \"pqr\": [\n \"four\",\n \"one\",\n \"three\... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74678720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14013728/"
] |
74,678,747 | <p>I'm working with times and meridiems.</p>
<p>I could have <code>'2:0 a. m.'</code> or <code>'2:0 am'</code> or <code>'3:0 p. m.'</code> or <code>'3:0 pm'</code>
Basically what I'm trying to do is transform the <strong>first in the second</strong> when it happens.</p>
<p>My attempts:</p>
<pre class="lang-js prettypri... | [
{
"answer_id": 74678783,
"author": "Necati Turan",
"author_id": 4335325,
"author_profile": "https://Stackoverflow.com/users/4335325",
"pm_score": -1,
"selected": false,
"text": "const regex = /^([^\\s]\\s)([^aAmMpP])/;\nconst string = '2:0 a. m.';\nconst result = string.replace(regex, '$... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74678747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3872998/"
] |
74,678,749 | <p>I have a task like this:
Using the HR.EMPLOYEES table, build a list of employees whose work experience in the company is below the average.</p>
<p>I tried to do this, but an error occurs, how can I rewrite the request correctly?</p>
<pre><code>select first_name, last_name from hr.empolyees
where MONTHS_BETWEEN(sysd... | [
{
"answer_id": 74679206,
"author": "Dimi",
"author_id": 19173885,
"author_profile": "https://Stackoverflow.com/users/19173885",
"pm_score": 0,
"selected": false,
"text": "AVG SELECT first_name, \n last_name \nFROM hr.empolyees \nWHERE MONTHS_BETWEEN(sysdate, hire_date) < (SELECT AV... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74678749",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20304501/"
] |
74,678,769 | <p>Given the following glsl declarations (this is just an example):</p>
<pre class="lang-c prettyprint-override"><code>struct S{
f16vec3 a;
float16_t b;
f16vec3_t c;
float16_t d;
};
shared float16_t my_float_array[100];
shared S my_S_array[100];
</code></pre>
<p>I have the following questions:</p>
<ul>
... | [
{
"answer_id": 74678922,
"author": "Nicol Bolas",
"author_id": 734069,
"author_profile": "https://Stackoverflow.com/users/734069",
"pm_score": 1,
"selected": false,
"text": "shared shared"
}
] | 2022/12/04 | [
"https://Stackoverflow.com/questions/74678769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20044053/"
] |
74,678,784 | <pre><code>TABLE1
STUDENT SUBJECT DATE WANT
1 HISTORY 1/1/2020 11/3/2019
1 HISTORY 11/3/2019 11/3/2019
1 HISTORY 12/1/2021 11/3/2019
2 HISTORY 3/4/2019 3/4/2019
2 HISTORY 2/6/2021 3/4/2019
3 HISTORY 1/8/2022 1/8/2022
</code></pre>
<p>I Have TABLE1 which has STUDENT SUBJECT and DATE and I ... | [
{
"answer_id": 74678955,
"author": "Sean Anglim",
"author_id": 17843144,
"author_profile": "https://Stackoverflow.com/users/17843144",
"pm_score": 1,
"selected": false,
"text": "UPDATE TABLE1 t1\nJOIN (\n SELECT STUDENT, SUBJECT, MIN(DATE) AS WANT\n FROM TABLE1\n GROUP BY STUDEN... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74678784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5619171/"
] |
74,678,816 | <p><a href="https://i.stack.imgur.com/OSG8z.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>it must be like this. the icon<a href="https://i.stack.imgur.com/NECuD.png" rel="nofollow noreferrer">enter image description here</a></p>
| [
{
"answer_id": 74678955,
"author": "Sean Anglim",
"author_id": 17843144,
"author_profile": "https://Stackoverflow.com/users/17843144",
"pm_score": 1,
"selected": false,
"text": "UPDATE TABLE1 t1\nJOIN (\n SELECT STUDENT, SUBJECT, MIN(DATE) AS WANT\n FROM TABLE1\n GROUP BY STUDEN... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74678816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20191149/"
] |
74,678,918 | <p>I'm trying to change values in a JSON file from strings to integers, my issue is that the keys are row numbers so I can't call by key name (as they will change consistently). The values that need changing are within the "sharesTraded" object. Below is my JSON file:</p>
<pre><code>{
"lastDate"... | [
{
"answer_id": 74678964,
"author": "newbie",
"author_id": 10671274,
"author_profile": "https://Stackoverflow.com/users/10671274",
"pm_score": 1,
"selected": false,
"text": "shares_traded = data['sharesTraded']\n\nfor key, value in shares_traded.items():\n shares_traded[key] = int(valu... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74678918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18823431/"
] |
74,678,927 | <p>I have a query that finds a word in a string, but its only a single word, is it possible to search for list of words?</p>
<p>this is my current regex: <code>(?i)(?<=\b|\\n)cat\b</code></p>
| [
{
"answer_id": 74678964,
"author": "newbie",
"author_id": 10671274,
"author_profile": "https://Stackoverflow.com/users/10671274",
"pm_score": 1,
"selected": false,
"text": "shares_traded = data['sharesTraded']\n\nfor key, value in shares_traded.items():\n shares_traded[key] = int(valu... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74678927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/827251/"
] |
74,678,931 | <p>I have been playing with JAX (automatic differentiation library in Python) and Zygote (the automatic differentiation library in Julia) to implement Gauss-Newton minimisation method.
I came upon the <code>@jit</code> macro in Jax that runs my Python code in around 0.6 seconds compared to ~60 seconds for the version t... | [
{
"answer_id": 74679408,
"author": "Oscar Smith",
"author_id": 5141328,
"author_profile": "https://Stackoverflow.com/users/5141328",
"pm_score": 2,
"selected": false,
"text": "params Vector Tuple gaussian Vector x function gaussian(x::Number, params::NTuple{3, Float64})\n amp, mu, sig... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74678931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1381340/"
] |
74,678,996 | <p>I want to pass a value which I am receiving in a function like this:</p>
<pre class="lang-js prettyprint-override"><code>const ViewDetails = item => () => {
console.log(item);
toggleModal();
}
</code></pre>
<p>I want to pass the item to Modal component <strong>like open,onclose</strong> which is called i... | [
{
"answer_id": 74680024,
"author": "IntFooBar",
"author_id": 3103754,
"author_profile": "https://Stackoverflow.com/users/3103754",
"pm_score": 0,
"selected": false,
"text": "App.js index.js import React from 'react';\nimport ReactDOM from 'react-dom/client';\n\nimport App from './App'\ni... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74678996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18840208/"
] |
74,679,008 | <p>I have multiple forms (e.g. Form1, Form2) that both contains a button that opens another form (Form3). In Form3 (pop-up form), the user is prompted to pick among the options, and once these were submitted through a button in Form3, the selected options will be transferred to the previous form where it was opened (ei... | [
{
"answer_id": 74680024,
"author": "IntFooBar",
"author_id": 3103754,
"author_profile": "https://Stackoverflow.com/users/3103754",
"pm_score": 0,
"selected": false,
"text": "App.js index.js import React from 'react';\nimport ReactDOM from 'react-dom/client';\n\nimport App from './App'\ni... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20683790/"
] |
74,679,009 | <p>I recently updated some npm packages and now it throws an error whenever I try to install a package with npm. I am new to npm and JS packages.
Attatched is a image of the error.
<a href="https://i.stack.imgur.com/jb8oM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jb8oM.png" alt="here is a image... | [
{
"answer_id": 74680024,
"author": "IntFooBar",
"author_id": 3103754,
"author_profile": "https://Stackoverflow.com/users/3103754",
"pm_score": 0,
"selected": false,
"text": "App.js index.js import React from 'react';\nimport ReactDOM from 'react-dom/client';\n\nimport App from './App'\ni... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18909607/"
] |
74,679,016 | <p>I am trying to use Flex Boxes in order to style a nav bar on my website. I'm not sure what I'm doing wrong, but there's default properties being applied on my UL. I have attached screenshots and code snippets below.
<a href="https://i.stack.imgur.com/Tkqfh.png" rel="nofollow noreferrer">Image of Issue (spacing)</a>
... | [
{
"answer_id": 74680024,
"author": "IntFooBar",
"author_id": 3103754,
"author_profile": "https://Stackoverflow.com/users/3103754",
"pm_score": 0,
"selected": false,
"text": "App.js index.js import React from 'react';\nimport ReactDOM from 'react-dom/client';\n\nimport App from './App'\ni... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679016",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20684231/"
] |
74,679,033 | <pre><code>import discord
import os
client = discord.Client(intents=discord.Intents.default())
@client.event
async def on_ready():
print("We have logged in as {0.user}".format(client))
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.st... | [
{
"answer_id": 74680024,
"author": "IntFooBar",
"author_id": 3103754,
"author_profile": "https://Stackoverflow.com/users/3103754",
"pm_score": 0,
"selected": false,
"text": "App.js index.js import React from 'react';\nimport ReactDOM from 'react-dom/client';\n\nimport App from './App'\ni... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20684230/"
] |
74,679,052 | <p>So, I have this data frame about Super Store Sales. I have 2 sheets:</p>
<ul>
<li>First is named "Orders"</li>
<li>Second one is named "Returns"
In both sheets we have a matching column called "Order ID", but in the Return sheet we have less rows in "Order ID" of returned pur... | [
{
"answer_id": 74680024,
"author": "IntFooBar",
"author_id": 3103754,
"author_profile": "https://Stackoverflow.com/users/3103754",
"pm_score": 0,
"selected": false,
"text": "App.js index.js import React from 'react';\nimport ReactDOM from 'react-dom/client';\n\nimport App from './App'\ni... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12112430/"
] |
74,679,053 | <p>I'm trying to make my Python read only the first 3 digits of a string and print an answer based on the first three digits of the string.</p>
<p>I tried:</p>
<pre><code>if str[1,2,3] = 080:
print(...)
elif str[123] =090:
print(,,,)
</code></pre>
| [
{
"answer_id": 74680024,
"author": "IntFooBar",
"author_id": 3103754,
"author_profile": "https://Stackoverflow.com/users/3103754",
"pm_score": 0,
"selected": false,
"text": "App.js index.js import React from 'react';\nimport ReactDOM from 'react-dom/client';\n\nimport App from './App'\ni... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20684221/"
] |
74,679,067 | <p>I have a two pages, in one page, i open Hive box but when I navigate to second page, the dispose() method runs and closes the Hive box. but the problem is, when i click on 'Back' button, the initState doesnt rerun on the first page, so I couldn't open the box again through initState.</p>
<p>here is the code on First... | [
{
"answer_id": 74680024,
"author": "IntFooBar",
"author_id": 3103754,
"author_profile": "https://Stackoverflow.com/users/3103754",
"pm_score": 0,
"selected": false,
"text": "App.js index.js import React from 'react';\nimport ReactDOM from 'react-dom/client';\n\nimport App from './App'\ni... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9702001/"
] |
74,679,121 | <p>I have a column of a pandas dataframe with 25 thousand images, and I want to convert the color of all of them to grayscale.
What would be the simplest way to do this?</p>
<p>I know how to convert the color, which I must use a loop and do the conversion with numpy or opencv, but I don't know how to do this loop with ... | [
{
"answer_id": 74679145,
"author": "Dileep",
"author_id": 3786004,
"author_profile": "https://Stackoverflow.com/users/3786004",
"pm_score": 0,
"selected": false,
"text": "import numpy as np\nimport cv2\n\n# Convert an image to grayscale\ndef to_grayscale(image):\n return cv2.cvtColor(im... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20684136/"
] |
74,679,122 | <p>I am looping loop over a <code>Vec<&str></code>, each time reassigning a variable that holds the intersection of the last two checked. This is resulting in "expected <code>char</code>, found <code>&char</code>". I think this is happening because the <code>loop</code> is a new block scope, whi... | [
{
"answer_id": 74679145,
"author": "Dileep",
"author_id": 3786004,
"author_profile": "https://Stackoverflow.com/users/3786004",
"pm_score": 0,
"selected": false,
"text": "import numpy as np\nimport cv2\n\n# Convert an image to grayscale\ndef to_grayscale(image):\n return cv2.cvtColor(im... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679122",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/617243/"
] |
74,679,181 | <p>Below code finds the desired key in array and prints it but when key is not found, I expect the search return -1 and print "Key not found." But this is not printed. Is there a mistake?</p>
<pre><code>#include<stdio.h>
int binarySearch(int* arr, int size, int key){
int low=0;
int high=size-1... | [
{
"answer_id": 74679145,
"author": "Dileep",
"author_id": 3786004,
"author_profile": "https://Stackoverflow.com/users/3786004",
"pm_score": 0,
"selected": false,
"text": "import numpy as np\nimport cv2\n\n# Convert an image to grayscale\ndef to_grayscale(image):\n return cv2.cvtColor(im... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1939432/"
] |
74,679,189 | <p>i have a 15000+ lines log and i want to remove a part of every line</p>
<h3>This a what my log looks like</h3>
<pre><code>15 {"level":"warn","message":"warn: Player: 819631980014075905 | Track has been started playing [\u001b[34m34mSomethingElse2\u001b[39m]"}
12 {"level&q... | [
{
"answer_id": 74679145,
"author": "Dileep",
"author_id": 3786004,
"author_profile": "https://Stackoverflow.com/users/3786004",
"pm_score": 0,
"selected": false,
"text": "import numpy as np\nimport cv2\n\n# Convert an image to grayscale\ndef to_grayscale(image):\n return cv2.cvtColor(im... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16568795/"
] |
74,679,216 | <p>I want to extract multiple ISINs out of a output.json file in python.</p>
<p>The output.json file looks like the following:</p>
<p>{'A1J780': {'ter': '0.20%', 'wkn': 'A1J780', 'isin': 'IE00B88DZ566'}, 'A1J7W9': {' 'ter': '0.20%', 'isin': 'IE00B8KMSQ34'}, 'LYX0VQ': {'isin': 'LU1302703878'}, 'A2AMYP': {'ter': '0.22%',... | [
{
"answer_id": 74679145,
"author": "Dileep",
"author_id": 3786004,
"author_profile": "https://Stackoverflow.com/users/3786004",
"pm_score": 0,
"selected": false,
"text": "import numpy as np\nimport cv2\n\n# Convert an image to grayscale\ndef to_grayscale(image):\n return cv2.cvtColor(im... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679216",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20682822/"
] |
74,679,220 | <p>i am having a simple controller /hello which internally calls Repository layer for a transaction using the default propagation level i.e Propagation.REQUIRED.</p>
<pre><code>@Controller
public void hello(data) -> doTransaction(data)
@Repository
@Transactional
public void doTransaction(data){
jdbcTemplateInsert... | [
{
"answer_id": 74679145,
"author": "Dileep",
"author_id": 3786004,
"author_profile": "https://Stackoverflow.com/users/3786004",
"pm_score": 0,
"selected": false,
"text": "import numpy as np\nimport cv2\n\n# Convert an image to grayscale\ndef to_grayscale(image):\n return cv2.cvtColor(im... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10117360/"
] |
74,679,231 | <p>Issue in setting an image as the background a of a scene in Manim Community v0.17.0</p>
<pre><code>from manim import *
class ImageFromArray(Scene):
def construct(self):
self.background_image =r"C:\Users\Shobhan\Desktop\program\bb.jpg"
</code></pre>
<p>is not working...what to do?</p>
| [
{
"answer_id": 74679145,
"author": "Dileep",
"author_id": 3786004,
"author_profile": "https://Stackoverflow.com/users/3786004",
"pm_score": 0,
"selected": false,
"text": "import numpy as np\nimport cv2\n\n# Convert an image to grayscale\ndef to_grayscale(image):\n return cv2.cvtColor(im... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20684428/"
] |
74,679,274 | <p>First, the user inputs a number. Then I want to print a word for each digit in the number. Which word is determined by a dictionary. <strong>When a digit is not in the dictionary, then I want the program to print "!".</strong></p>
<p><strong>Here is an example of how the code should work:</strong></p>
<pre... | [
{
"answer_id": 74679331,
"author": "gerrel93",
"author_id": 14436548,
"author_profile": "https://Stackoverflow.com/users/14436548",
"pm_score": 0,
"selected": false,
"text": "dict # the alphabetical letters are the keys, and the numbers are the values which belong to the keys\na = {'a': ... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20684451/"
] |
74,679,290 | <p>i have this method inside a class</p>
<pre><code>
Map<String, String> value = {};
bool isReady = false;
void getData() async {
try {
Map<String, String> data = await CustomerData().getService(selectedService);
isReady = true;
setState(() {
value = data;
}... | [
{
"answer_id": 74679328,
"author": "haris",
"author_id": 20684476,
"author_profile": "https://Stackoverflow.com/users/20684476",
"pm_score": 1,
"selected": false,
"text": "@override\nWidget build(BuildContext context) {\n return Scaffold(\n appBar: AppBar(\n title: Text('Custome... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679290",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20684258/"
] |
74,679,310 | <p>Here I have an excel file whose first column has ID's i.e:
ID
12
32
45
12
..
There are other columns as well but I only want to read the data present in first column i.e. ID.</p>
<p>Here is my code which throws exception. I don't know why?</p>
<pre><code>#include <iostream>
#include <string>
#include <... | [
{
"answer_id": 74679688,
"author": "john",
"author_id": 882003,
"author_profile": "https://Stackoverflow.com/users/882003",
"pm_score": 1,
"selected": false,
"text": "std::vector<std::string> data;\nifstream fin(\"1.csv\");\nstring line;\nwhile (getline(fin, line)) //for every line in in... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20684498/"
] |
74,679,311 | <p>I am having problems getting assembling this Json in Powershell</p>
<pre><code>{
"totalCount": 1,
"list": [
{
"type": "ToggleLightingState",
"order": 1,
"delay": null,
"postDelay": null,
"name": &quo... | [
{
"answer_id": 74679688,
"author": "john",
"author_id": 882003,
"author_profile": "https://Stackoverflow.com/users/882003",
"pm_score": 1,
"selected": false,
"text": "std::vector<std::string> data;\nifstream fin(\"1.csv\");\nstring line;\nwhile (getline(fin, line)) //for every line in in... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7133197/"
] |
74,679,337 | <p>Hi I copied the following code from my linux machine with clion running. But in VS on Windows it seems to cause problems</p>
<pre><code>entry_t* find_entry( char* n )
{
// TODO (2)
int x = strlen(n);
char str[x];
for (size_t i = 0; i < strlen(str); i++)
{
str[i] = toupper(n[i]);
... | [
{
"answer_id": 74679688,
"author": "john",
"author_id": 882003,
"author_profile": "https://Stackoverflow.com/users/882003",
"pm_score": 1,
"selected": false,
"text": "std::vector<std::string> data;\nifstream fin(\"1.csv\");\nstring line;\nwhile (getline(fin, line)) //for every line in in... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679337",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14230653/"
] |
74,679,349 | <p>I have a situation where I am doing WebAPI calls to a service which sometimes cannot keep up with the load. I'm keeping track of how long the WebAPI takes to respond and how many active threads I have, and when the WebAPI is taking long to respond I want to limit the number of concurrent calls to a specific number (... | [
{
"answer_id": 74679431,
"author": "Mark Cilia Vincenti",
"author_id": 9945524,
"author_profile": "https://Stackoverflow.com/users/9945524",
"pm_score": 3,
"selected": true,
"text": "SemaphoreSlimThrottling SemaphoreSlim initialCount SemaphoreSlimThrottle var mySemaphore = new SemaphoreS... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20684374/"
] |
74,679,356 | <p>I have been trying to make a python file that will copy contents from one folder to another. I would like it to work on any Windows system that I run it on. It must copy ALL things ...</p>
<p>i need solution to this problem.</p>
| [
{
"answer_id": 74679431,
"author": "Mark Cilia Vincenti",
"author_id": 9945524,
"author_profile": "https://Stackoverflow.com/users/9945524",
"pm_score": 3,
"selected": true,
"text": "SemaphoreSlimThrottling SemaphoreSlim initialCount SemaphoreSlimThrottle var mySemaphore = new SemaphoreS... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20601486/"
] |
74,679,365 | <p>I tried with the following code but when I run it the function is not shown reversed although the number I chose is even:</p>
<pre><code>const myArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
const number = 32;
const myReversedArray = number => {
if (number % 2 === 0) {
return myArray.reverse();
} else {
... | [
{
"answer_id": 74679436,
"author": "Talha Khadim",
"author_id": 19263841,
"author_profile": "https://Stackoverflow.com/users/19263841",
"pm_score": 0,
"selected": false,
"text": "const myArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\n\nconst number = 32;\n\nconst myReversedArray = number => {... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20548368/"
] |
74,679,368 | <p>I have a data frame like this:</p>
<pre><code>data.frame(x = c(">Seq1", ">Seq2"), y = c("AAAA", "BBBB"))
</code></pre>
<p>Wished output:</p>
<pre><code>data.frame(x = c(">Seq1", "AAAA", ">Seq2", "BBBB"))
</code></pre>
<p>Than... | [
{
"answer_id": 74679385,
"author": "Vinícius Félix",
"author_id": 9696037,
"author_profile": "https://Stackoverflow.com/users/9696037",
"pm_score": 2,
"selected": false,
"text": "library(dplyr)\n\ndata.frame(x = c(\">Seq1\", \">Seq2\"), y = c(\"AAAA\", \"BBBB\")) %>% \n rowwise() %>% \n... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14819623/"
] |
74,679,398 | <p>I have to create a calculator but i have to use separate functions for add , subtract , division and multiply</p>
<p>there should be an equal to (=) button which upon clicking should display the result</p>
<p>operators should be selected using the dropdown box</p>
<pre><code><!DOCTYPE html>
<html>
<he... | [
{
"answer_id": 74679385,
"author": "Vinícius Félix",
"author_id": 9696037,
"author_profile": "https://Stackoverflow.com/users/9696037",
"pm_score": 2,
"selected": false,
"text": "library(dplyr)\n\ndata.frame(x = c(\">Seq1\", \">Seq2\"), y = c(\"AAAA\", \"BBBB\")) %>% \n rowwise() %>% \n... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20684540/"
] |
74,679,403 | <p>This is my data frame.</p>
<pre><code>borrow date borrow time
2020-01-01 0
2020-01-01 0
2020-01-01 1
2020-01-01 1
2020-01-01 1
2020-01-01 2
2020-01-01 2
2020-01-01 2
2020-01-01 2
2020-01-01 2
2020-01-02 0
2020-01-02 1
2020-01-02 2
2020-01-02 2
2020-01-03 ... | [
{
"answer_id": 74679437,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 2,
"selected": false,
"text": "df1$`borrow date` <- with(df1, as.POSIXct(paste(`borrow date`,\n `borrow time`), format = \"%Y-%d-%d %H\"))\n"
}... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679403",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20277785/"
] |
74,679,452 | <p>A minimized example of my code showing the problem:</p>
<pre><code>#include <cassert>
#include <iostream>
#include <map>
#include <string>
template <typename T>
const std::map<std::string, T> smap;
template <>
const std::map<std::string, bool> smap<bool>{{"... | [
{
"answer_id": 74679437,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 2,
"selected": false,
"text": "df1$`borrow date` <- with(df1, as.POSIXct(paste(`borrow date`,\n `borrow time`), format = \"%Y-%d-%d %H\"))\n"
}... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11722/"
] |
74,679,465 | <p>First question ever here, I am the newbiest newbie..</p>
<p>So.. what I am trying to get is:</p>
<p>to find if in sheet1 and sheet2 there are cells with the same value on column E from sheet1 and column F from sheet2. if there are, then copy the value from sheet2 column A row x to sheet2 column P row y.</p>
<p>rows ... | [
{
"answer_id": 74679437,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 2,
"selected": false,
"text": "df1$`borrow date` <- with(df1, as.POSIXct(paste(`borrow date`,\n `borrow time`), format = \"%Y-%d-%d %H\"))\n"
}... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20684576/"
] |
74,679,467 | <p>I have an array of 83 arrays (an array that I have a chunk in 83). I'm trying to keep only the three highest values of each array. All the numbers in each array are included between -1 and 1. There is necessarily a 1 in each array that I don't want to count in my three highest values.</p>
<pre><code> Array
... | [
{
"answer_id": 74679437,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 2,
"selected": false,
"text": "df1$`borrow date` <- with(df1, as.POSIXct(paste(`borrow date`,\n `borrow time`), format = \"%Y-%d-%d %H\"))\n"
}... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17616161/"
] |
74,679,538 | <p>I am trying to make my website responsive. I'm currently using setTimeout every 100ms to check for screen width and to check layouts accordingly instead of media query. Is this a bad approach or can javascript handle this since it's a small website?</p>
<pre><code>function screen() {
var screenWidth = window.inn... | [
{
"answer_id": 74679573,
"author": "Felix G",
"author_id": 7845355,
"author_profile": "https://Stackoverflow.com/users/7845355",
"pm_score": 1,
"selected": false,
"text": "setTimeout"
},
{
"answer_id": 74679737,
"author": "Konrad",
"author_id": 5089567,
"author_profil... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16835030/"
] |
74,679,565 | <p>I was trying to make a code that moves a rect object (gotten with the get_rect function) but I need its coordinates to make it move 1 pixel away (if there are any other ways to do this, let me know.)</p>
<p>Here is the code:</p>
<pre><code>import sys, pygame
pygame.init()
size = width, height = 1920, 1080
black = 0,... | [
{
"answer_id": 74679573,
"author": "Felix G",
"author_id": 7845355,
"author_profile": "https://Stackoverflow.com/users/7845355",
"pm_score": 1,
"selected": false,
"text": "setTimeout"
},
{
"answer_id": 74679737,
"author": "Konrad",
"author_id": 5089567,
"author_profil... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16177469/"
] |
74,679,595 | <p>I try to have a top banner that <strong>matches the screen size</strong>. This banner contains the title + a wave SVG.<br>
I have <strong>exactly the result I want with these CSS rules</strong>, the SVG matches well in responsive, <strong>except for a scrollbar</strong> that navigates over a few pixels (I tried many... | [
{
"answer_id": 74679573,
"author": "Felix G",
"author_id": 7845355,
"author_profile": "https://Stackoverflow.com/users/7845355",
"pm_score": 1,
"selected": false,
"text": "setTimeout"
},
{
"answer_id": 74679737,
"author": "Konrad",
"author_id": 5089567,
"author_profil... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12519805/"
] |
74,679,637 | <p>Can anyone develop this program?
Develop a program in c language that collect a positive number from the keyboard repeatedly, if the user inputs a negative number, it should ignore it and continue collecting the number until the user input zero. program then display the list of all even and odd numerous from the col... | [
{
"answer_id": 74679573,
"author": "Felix G",
"author_id": 7845355,
"author_profile": "https://Stackoverflow.com/users/7845355",
"pm_score": 1,
"selected": false,
"text": "setTimeout"
},
{
"answer_id": 74679737,
"author": "Konrad",
"author_id": 5089567,
"author_profil... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10848821/"
] |
74,679,679 | <p>when I tried to use jQuery it changes every span with the same class but I don't want to add an id for each span</p>
<pre><code>$(".pay-btn").click(function (e) {
e.preventDefault();
$(".bay-btn").addClass('bay-btn-clicked');
});
</code></pre>
<p>I want to add a class to the ... | [
{
"answer_id": 74679573,
"author": "Felix G",
"author_id": 7845355,
"author_profile": "https://Stackoverflow.com/users/7845355",
"pm_score": 1,
"selected": false,
"text": "setTimeout"
},
{
"answer_id": 74679737,
"author": "Konrad",
"author_id": 5089567,
"author_profil... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20684541/"
] |
74,679,681 | <p>I am trying to create a scraper, and for accessing the page I need to click on the Accept Cookies button.
The HTML referring to the button is:</p>
<pre><code><div class="qc-cmp2-summary-buttons">
<button mode="secondary" size="large" class=" css-1hy2vtq">
... | [
{
"answer_id": 74679759,
"author": "Prophet",
"author_id": 3485434,
"author_profile": "https://Stackoverflow.com/users/3485434",
"pm_score": 2,
"selected": true,
"text": " driver.find_element(By.CLASS_NAME, \"css-47sehv\").click()\n css-47sehv driver.find_element(By.XPATH, \"//button[co... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20684733/"
] |
74,679,760 | <p>I have to find all the duplicates and return them using collections. For example, if list = {1,1,2,2,2} it will return {1,2,2}. So in other words, the pattern is you return -1 of the number of duplicates.</p>
<p>Here is the method:</p>
<pre><code>public static Integer[] returnDuplicate (Integer[] list ){
// ... | [
{
"answer_id": 74679836,
"author": "Leno",
"author_id": 11153525,
"author_profile": "https://Stackoverflow.com/users/11153525",
"pm_score": 0,
"selected": false,
"text": " public static List<Integer> returnDuplicate (Integer[] list ){\n List<Integer> uniqueList = new ArrayList... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20683299/"
] |
74,679,802 | <p>I have a data frame <code>results_df</code> with models and their respective performance metrics.</p>
<p>There are 9 models shown on the bar plot below. I would like to remove the <code>AR(1)</code> model (First bar) and add labels over each bar to count the y-axis (MAPE) values. Is there a way to do this?</p>
<p><s... | [
{
"answer_id": 74679890,
"author": "Vinícius Félix",
"author_id": 9696037,
"author_profile": "https://Stackoverflow.com/users/9696037",
"pm_score": 3,
"selected": true,
"text": "library(dplyr)\nlibrary(ggplot2)\n\nresults_df_reshape <-\n reshape2::melt(results_df, c(\"MAPE\", \"Model\")... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18469498/"
] |
74,679,803 | <p>I want to ask how can How to read excel line by line in pandas. I want it to be in a loop that will get line by line information for facebook login with selenium. Hope everyone is easygoing because I'm a newbie</p>
<pre><code>import pandas as pd
pd.options.display.max_rows = 28
data = pd.read_excel(r'file.xlsx')
#... | [
{
"answer_id": 74679890,
"author": "Vinícius Félix",
"author_id": 9696037,
"author_profile": "https://Stackoverflow.com/users/9696037",
"pm_score": 3,
"selected": true,
"text": "library(dplyr)\nlibrary(ggplot2)\n\nresults_df_reshape <-\n reshape2::melt(results_df, c(\"MAPE\", \"Model\")... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18043564/"
] |
74,679,825 | <p>I have a DB where the dates are stored as varchar mm/dd/yyy (12/10/2022) But I can't figure out how to convert them to yyyy-mm-dd (2022-12-10 or 2022/12/10)</p>
<p>This doesn't work
SELECT DATE_FORMAT("06/15/2022", "%Y-%m-%d");</p>
<p>P.S. I also want to issue a SQL command to change all the date... | [
{
"answer_id": 74679890,
"author": "Vinícius Félix",
"author_id": 9696037,
"author_profile": "https://Stackoverflow.com/users/9696037",
"pm_score": 3,
"selected": true,
"text": "library(dplyr)\nlibrary(ggplot2)\n\nresults_df_reshape <-\n reshape2::melt(results_df, c(\"MAPE\", \"Model\")... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1572905/"
] |
74,679,857 | <p>A Table Sample like bellows-</p>
<pre><code>Product Price
P1,Luxary product 2000
P2: Cosmetics product 1700
P1::Plastic product 600
P3/P1,Mobile phone 3300
P2:headphones 200
P3,Trimmer 150
P2,Camera ... | [
{
"answer_id": 74679890,
"author": "Vinícius Félix",
"author_id": 9696037,
"author_profile": "https://Stackoverflow.com/users/9696037",
"pm_score": 3,
"selected": true,
"text": "library(dplyr)\nlibrary(ggplot2)\n\nresults_df_reshape <-\n reshape2::melt(results_df, c(\"MAPE\", \"Model\")... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20658907/"
] |
74,679,884 | <p>I have a button which when clicked, prints out response.</p>
<p>This is how the response is</p>
<pre><code>{
"status": "success",
"user": "Worked well"
}
</code></pre>
<p>when I test it with postman it works fine, but when I try it from my flutter project, I get this e... | [
{
"answer_id": 74679890,
"author": "Vinícius Félix",
"author_id": 9696037,
"author_profile": "https://Stackoverflow.com/users/9696037",
"pm_score": 3,
"selected": true,
"text": "library(dplyr)\nlibrary(ggplot2)\n\nresults_df_reshape <-\n reshape2::melt(results_df, c(\"MAPE\", \"Model\")... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14802753/"
] |
74,679,904 | <p>so I have basic formulas setup to recive numbers and then covert them but when running the program the converted formulas aren't calculating</p>
<pre><code>dollars = 0
pounds = 0
tempF = 0
tempC = 0
globe = "\U0001F30D"
euros = dollars*.95
kilograms = pounds/2.2
tempF = tempC* 9/5+32
print ("How ... | [
{
"answer_id": 74679936,
"author": "Antony Hatchkins",
"author_id": 237105,
"author_profile": "https://Stackoverflow.com/users/237105",
"pm_score": 1,
"selected": false,
"text": "input"
},
{
"answer_id": 74680031,
"author": "heiheihang",
"author_id": 14733388,
"author... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20452964/"
] |
74,679,908 | <p>This might be a silly question; for all of you who have been in this field for a while, nevertheless, I would still appreciate your insight on the matter - why does an array need to be sorted, and in what scenario would we need to sort an array?</p>
<p>So far it is clear to me that the whole purpose of sorting is to... | [
{
"answer_id": 74679930,
"author": "Bhaskar13",
"author_id": 11930483,
"author_profile": "https://Stackoverflow.com/users/11930483",
"pm_score": -1,
"selected": false,
"text": "kth largest kth smallest O(nlgn + qlgn)"
}
] | 2022/12/04 | [
"https://Stackoverflow.com/questions/74679908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20607495/"
] |
74,680,016 | <p>I'm very new to Kotlin and have to implement a data class TreeNode that resembles a generic tree of nodes. I'm trying to declare a secondary constructor that initializes the member children to be an empty list. Here's what I tried; but I'm not understanding the syntax quite well so not sure how to go about solving t... | [
{
"answer_id": 74679930,
"author": "Bhaskar13",
"author_id": 11930483,
"author_profile": "https://Stackoverflow.com/users/11930483",
"pm_score": -1,
"selected": false,
"text": "kth largest kth smallest O(nlgn + qlgn)"
}
] | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680016",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18648904/"
] |
74,680,018 | <p>I have a table where I store timeseries data:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>customer_id</th>
<th>transaction_type</th>
<th>transaction_date</th>
<th>transaction_value</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>buy</td>
<td>2022-12-04</td>
<td>100.0</td>
</tr>
<tr>
... | [
{
"answer_id": 74679930,
"author": "Bhaskar13",
"author_id": 11930483,
"author_profile": "https://Stackoverflow.com/users/11930483",
"pm_score": -1,
"selected": false,
"text": "kth largest kth smallest O(nlgn + qlgn)"
}
] | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/593769/"
] |
74,680,051 | <p>my question is that the I am accessing an array from another class but continuously this error is showing after making so many changes this error is still showing. Array is updating but not accessible from another class</p>
<pre><code>window.addEventListener('load',function(){
const canvas = document.getElementB... | [
{
"answer_id": 74679930,
"author": "Bhaskar13",
"author_id": 11930483,
"author_profile": "https://Stackoverflow.com/users/11930483",
"pm_score": -1,
"selected": false,
"text": "kth largest kth smallest O(nlgn + qlgn)"
}
] | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15800545/"
] |
74,680,088 | <p>I have problems with fixed nav, its showing little more down on section links. I need nav on the top to see clearly the title text at the sections. I have tried to add margin-top to section, but these gaps are so big and its awful so I need another solution for that.
Pictures are there:
<a href="https://i.stack.imgu... | [
{
"answer_id": 74679930,
"author": "Bhaskar13",
"author_id": 11930483,
"author_profile": "https://Stackoverflow.com/users/11930483",
"pm_score": -1,
"selected": false,
"text": "kth largest kth smallest O(nlgn + qlgn)"
}
] | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19633637/"
] |
74,680,120 | <p>I'm building a Django web-app which has page create and edit functionality. I create the page and edit the pages using 2 arguments: page title and page contents.</p>
<p>Since the edit and create code is very similar except that the edit code doesn't let you change the title of the page I want to make some code that ... | [
{
"answer_id": 74679930,
"author": "Bhaskar13",
"author_id": 11930483,
"author_profile": "https://Stackoverflow.com/users/11930483",
"pm_score": -1,
"selected": false,
"text": "kth largest kth smallest O(nlgn + qlgn)"
}
] | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680120",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14263318/"
] |
74,680,138 | <p>Is it a possibility to setup something like the API Gateway CORS Access-Control-Allow-Origin to only allow a Firefox extension that I am writing to call it? Setting Access-Control-Allow-Origin to '*' is what I did for testing, but does not seem like a good policy for when it is released.</p>
<p>I wondered if there w... | [
{
"answer_id": 74681497,
"author": "Kernel",
"author_id": 4804285,
"author_profile": "https://Stackoverflow.com/users/4804285",
"pm_score": 0,
"selected": false,
"text": "Access-Control-Allow-Origin: https://my-firefox-extension.com\n"
}
] | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680138",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6900973/"
] |
74,680,140 | <p>There is a use case to filter key/value pairs that have a value of zero out of the following dataset. If all the values are zero for the given key then the key/value pair is to be filtered out entirely (as is the case for keys 41521, 41530).</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console=... | [
{
"answer_id": 74680511,
"author": "ths",
"author_id": 6388552,
"author_profile": "https://Stackoverflow.com/users/6388552",
"pm_score": 0,
"selected": false,
"text": "filter count probability 0 count probability 0 const simpleData = {\n \"41511\": {\n \"count\": 0,\n \"prob... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2493921/"
] |
74,680,152 | <p>I'm trying to make my school project's website mobile-friendly, but I don't want the user to scroll left or right to see images. I want the value of max-width of an image to be the same as the width of the users screen. (When on mobile)</p>
<p>CSS</p>
<pre><code>html, body {
height: 100%;
width: 100%;
margin: ... | [
{
"answer_id": 74680165,
"author": "Davi Oliveira",
"author_id": 19464177,
"author_profile": "https://Stackoverflow.com/users/19464177",
"pm_score": 3,
"selected": true,
"text": "img {\n width: 100%;\n height: 100%;\n}\n @media screen and (min-width: 992px) {\n img {\n width: ... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680152",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19612400/"
] |
74,680,159 | <p>Given a dataframe:</p>
<pre><code>id text
1 {'txt': 'en', 'longit': 0, 'latit': 0}
2 {'txt': 'fr', 'longit': 10, 'latit': 101, 'gross': 120.1}
</code></pre>
<p>I want to get this as output:</p>
<pre><code>id txt longit latit gross
1 en 0 0 NaN
2 fr... | [
{
"answer_id": 74680197,
"author": "abokey",
"author_id": 16120011,
"author_profile": "https://Stackoverflow.com/users/16120011",
"pm_score": 1,
"selected": false,
"text": "pandas.concat axis=1 id out = pd.concat([df[\"id\"], c], axis=1)\n out = pd.concat((df[\"id\"], pd.DataFrame(df[\"t... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18333836/"
] |
74,680,172 | <p>The data I selected on the 1st screen is gone when I come back to the 1st screen from the 2nd screen. I want this data to still show up. How can I do that. There was a way to do this, but I don't remember exactly, so I have to ask.</p>
<p>I'm doing this in Kotlin by the way.</p>
<p><strong>for example</strong></p>
<... | [
{
"answer_id": 74680197,
"author": "abokey",
"author_id": 16120011,
"author_profile": "https://Stackoverflow.com/users/16120011",
"pm_score": 1,
"selected": false,
"text": "pandas.concat axis=1 id out = pd.concat([df[\"id\"], c], axis=1)\n out = pd.concat((df[\"id\"], pd.DataFrame(df[\"t... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18002913/"
] |
74,680,201 | <p>My current issue is filtering through a array of "lessons" with a search input. When a user first goes to the lessons components all the lessons are loaded if the search input text is nothing. When i type something though(if if it matches it) it will not show up and everything will just not show.</p>
<p... | [
{
"answer_id": 74680197,
"author": "abokey",
"author_id": 16120011,
"author_profile": "https://Stackoverflow.com/users/16120011",
"pm_score": 1,
"selected": false,
"text": "pandas.concat axis=1 id out = pd.concat([df[\"id\"], c], axis=1)\n out = pd.concat((df[\"id\"], pd.DataFrame(df[\"t... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680201",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15875108/"
] |
74,680,239 | <p>I have a problem. In my home setup, I have a portal server, which controls all the HTTP/HTTPS traffic of all hosted domains and then forwards it to the right server using proxy. One of the sites where I am having this current trouble has the following apache config:</p>
<pre><code><VirtualHost *:80>
Serve... | [
{
"answer_id": 74680197,
"author": "abokey",
"author_id": 16120011,
"author_profile": "https://Stackoverflow.com/users/16120011",
"pm_score": 1,
"selected": false,
"text": "pandas.concat axis=1 id out = pd.concat([df[\"id\"], c], axis=1)\n out = pd.concat((df[\"id\"], pd.DataFrame(df[\"t... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10673107/"
] |
74,680,264 | <p>I am trying to make a program that allows you to select a day, and then store a value for the day with a separate file. However, I can't find a way to store the selected day in a variable that I can use.</p>
<pre><code>from tkinter import *
from tkcalendar import *
main = Tk()
main.title('Calendar')
main.geometry('... | [
{
"answer_id": 74680321,
"author": "tygzy",
"author_id": 6635590,
"author_profile": "https://Stackoverflow.com/users/6635590",
"pm_score": 2,
"selected": true,
"text": "def set_date():\n my_label.config(text=cal.get_date())\n today = cal.get_date()\n return today\n selected_date... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20685120/"
] |
74,680,357 | <p>it may looks some stupid but i stopped coding for a while.
I have a class 'employee' looks like this:</p>
<pre><code> public class Employee
{
public string Name { get; set; }
public List<task> tasks {get; set;}
public Employee(string name, List<task> ListTasks)
{
... | [
{
"answer_id": 74680398,
"author": "knittl",
"author_id": 112968,
"author_profile": "https://Stackoverflow.com/users/112968",
"pm_score": 1,
"selected": false,
"text": " Employee bla1 = new Employee(\"werner\", taskList);\n Employee bla2 = new Employee(\"ecki\", taskList);\n va... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14154195/"
] |
74,680,380 | <p>I am having a problem with typescript return types.
I have written the following function as a wrapper around <code>process.env</code>:</p>
<pre class="lang-js prettyprint-override"><code>function env<
RequiredType = undefined | boolean,
FallbackType = undefined | string,
>(
name: string,
required?: Re... | [
{
"answer_id": 74680398,
"author": "knittl",
"author_id": 112968,
"author_profile": "https://Stackoverflow.com/users/112968",
"pm_score": 1,
"selected": false,
"text": " Employee bla1 = new Employee(\"werner\", taskList);\n Employee bla2 = new Employee(\"ecki\", taskList);\n va... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15086273/"
] |
74,680,397 | <p>Greeting all,</p>
<p>I'm a newbie here and I just started my carrier as junior web developer. Can some help me with below situation,</p>
<p>I have a WordPress theme, there's some contents doesn't want to be appear so I'm trying to hide those contents by adding some coding to Additional CSS and the div element that I... | [
{
"answer_id": 74680437,
"author": "tobimori",
"author_id": 12168767,
"author_profile": "https://Stackoverflow.com/users/12168767",
"pm_score": 0,
"selected": false,
"text": "div .summary-bottom .summary-bottom div:nth-child(2) .summary-bottom div[style=\"color: red;\"]"
},
{
"an... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680397",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16740848/"
] |
74,680,489 | <p>I am trying to make an accurate program that tells you the time, but I can't get the current Unix timestamp. Is there any way I can get the timestamp?</p>
<p>I tried using <code>int time = std::chrono::steady_clock::now();</code> but that gives me an error, saying that 'std::chrono' has not been declared. By the way... | [
{
"answer_id": 74680437,
"author": "tobimori",
"author_id": 12168767,
"author_profile": "https://Stackoverflow.com/users/12168767",
"pm_score": 0,
"selected": false,
"text": "div .summary-bottom .summary-bottom div:nth-child(2) .summary-bottom div[style=\"color: red;\"]"
},
{
"an... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680489",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20656034/"
] |
74,680,491 | <p>I'm trying to spawn child processes based on this API example: <a href="https://nodejs.org/api/child_process.html#spawning-bat-and-cmd-files-on-windows" rel="nofollow noreferrer">https://nodejs.org/api/child_process.html#spawning-bat-and-cmd-files-on-windows</a></p>
<p>I simply want to run 3 commands (from NPM, like... | [
{
"answer_id": 74680541,
"author": "Zac Anger",
"author_id": 5774952,
"author_profile": "https://Stackoverflow.com/users/5774952",
"pm_score": 1,
"selected": false,
"text": "spawn function runInParallel(cmd) {\n const [ command, ...argumentsList ] = cmd.split(' ')\n let childProces... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19692949/"
] |
74,680,507 | <p>I need to show an image from an api, But it wont show. Im using this.state but it goes directly to the alt image.</p>
<p>I tried with this.state.image it supposed to go to the url_img but it´s not working.</p>
<p>the first_name and last_name are working correctly, it´s renedering in the view ok. so the information f... | [
{
"answer_id": 74680541,
"author": "Zac Anger",
"author_id": 5774952,
"author_profile": "https://Stackoverflow.com/users/5774952",
"pm_score": 1,
"selected": false,
"text": "spawn function runInParallel(cmd) {\n const [ command, ...argumentsList ] = cmd.split(' ')\n let childProces... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19211034/"
] |
74,680,519 | <p>as you can see in my code i want to unhide span when input type checked is checked, but it doesnt work. Could you please help me?</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-css lang-css prettyprint-overrid... | [
{
"answer_id": 74680541,
"author": "Zac Anger",
"author_id": 5774952,
"author_profile": "https://Stackoverflow.com/users/5774952",
"pm_score": 1,
"selected": false,
"text": "spawn function runInParallel(cmd) {\n const [ command, ...argumentsList ] = cmd.split(' ')\n let childProces... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18476684/"
] |
74,680,645 | <p>I have a string when it's printed in my terminal, it looks the way I want, but when I use the variable to send it via email, it looses all its formatting. Is there anyway I can fix this?</p>
<p><a href="https://i.stack.imgur.com/o5BJo.png" rel="nofollow noreferrer">This is how it looks on the terminal</a>
<a href="h... | [
{
"answer_id": 74680687,
"author": "dsillman2000",
"author_id": 3925758,
"author_profile": "https://Stackoverflow.com/users/3925758",
"pm_score": 0,
"selected": false,
"text": "ticket_medio to_csv # Import the pandas library\nimport pandas as pd\n\n# Save the dataframe to a CSV file\ntic... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17147465/"
] |
74,680,652 | <p>I am attempting to get data in the form of an image sent from elsewhere using multipartform, however when trying to understand this via the great sanctuary(stack overflow) there are missing elements I don't quite understand.</p>
<pre><code>const options = {
method: "POST",
url: "https://api.LI... | [
{
"answer_id": 74680687,
"author": "dsillman2000",
"author_id": 3925758,
"author_profile": "https://Stackoverflow.com/users/3925758",
"pm_score": 0,
"selected": false,
"text": "ticket_medio to_csv # Import the pandas library\nimport pandas as pd\n\n# Save the dataframe to a CSV file\ntic... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19553518/"
] |
74,680,683 | <p>When I try to use <code>npm create svelte@latest</code> to create a SvelteKit app it won't work when using VS Code with SSH.</p>
<p>The SSH server I'm connected to runs Ubuntu 20.04.2 on 64 bit Intel hardware.</p>
<p>When I try to use <code>npm create svelte@latest .</code> to initialize a SvelteKit project it outpu... | [
{
"answer_id": 74680706,
"author": "Necati Turan",
"author_id": 4335325,
"author_profile": "https://Stackoverflow.com/users/4335325",
"pm_score": -1,
"selected": false,
"text": "npm install -g @sveltejs/kit\n node --version\nnpm --version\n npm install -g npm\nnode --version\n"
},
{
... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19669490/"
] |
74,680,717 | <p>Need help with making a encryption python program that encrypts with use of ascii values. I have 1-127 random number generator with no repeats and need to basically assign a value to each one.
Example:
list 1 is (1,2,3...127)
list 2 is (54,60,27...)
I need to get a list or dictionary of (1 : 54 , 2 : 60 , 3 : 27...)... | [
{
"answer_id": 74680706,
"author": "Necati Turan",
"author_id": 4335325,
"author_profile": "https://Stackoverflow.com/users/4335325",
"pm_score": -1,
"selected": false,
"text": "npm install -g @sveltejs/kit\n node --version\nnpm --version\n npm install -g npm\nnode --version\n"
},
{
... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20685479/"
] |
74,680,730 | <p><code>0x638d0490000000004b7cdeca2fe41a1b6411000000158fb5610df6aa553bfedb</code> of type <code>H256</code></p>
<p><a href="https://docs.rs/ethers/0.17.0/ethers/types/struct.H256.html#" rel="nofollow noreferrer">https://docs.rs/ethers/0.17.0/ethers/types/struct.H256.html#</a></p>
<p>It is a storage slot on EVM. A sing... | [
{
"answer_id": 74680706,
"author": "Necati Turan",
"author_id": 4335325,
"author_profile": "https://Stackoverflow.com/users/4335325",
"pm_score": -1,
"selected": false,
"text": "npm install -g @sveltejs/kit\n node --version\nnpm --version\n npm install -g npm\nnode --version\n"
},
{
... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13290561/"
] |
74,680,750 | <p>Two arguments will be entered. One of these arguments will be the name of the file and the other will be the number to be generated.</p>
<pre><code>$./Project1.sh ./One.dic 4
</code></pre>
<p>-- Created: One-1.dic One-2.dic One-3.dic One-4.dic</p>
<pre><code>#!/bin/bash
echo "name": $1";
echo &quo... | [
{
"answer_id": 74680836,
"author": "zeefxd",
"author_id": 20683957,
"author_profile": "https://Stackoverflow.com/users/20683957",
"pm_score": 0,
"selected": false,
"text": "#To create multiple files using a bash script, you can use a loop and the touch command. The touch command is used ... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20376608/"
] |
74,680,808 | <p>I have a <strong>dimensional array</strong>, and I would like to add an element in my lessons array</p>
<p>this is my array</p>
<pre><code>$array = [
'id' => 1,
'lessons' => [
[
'name' => 'PHP',
],
[
'name' => 'Python',
]
]
];
</code></pre>
<p>I wo... | [
{
"answer_id": 74680920,
"author": "Ibrahim Hammed",
"author_id": 9077347,
"author_profile": "https://Stackoverflow.com/users/9077347",
"pm_score": 1,
"selected": false,
"text": "$array['lessons'] = array_map(function($lesson) {\n $lesson['flag'] = true;\n return $lesson;\n}, $arra... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15187482/"
] |
74,680,816 | <p>I need to transform the data using SQL but I'm struggling with one thing currently.</p>
<p>I have a table <code>Person</code> with these columns:</p>
<pre><code>phone_number; name_1; name_2; name3; name4.
</code></pre>
<p>I need to transform this table to table like this:</p>
<pre><code>phone_number; name
</code></p... | [
{
"answer_id": 74680830,
"author": "Necati Turan",
"author_id": 4335325,
"author_profile": "https://Stackoverflow.com/users/4335325",
"pm_score": 3,
"selected": true,
"text": "SELECT phone_number, name_1 as name FROM Person\nUNION ALL\nSELECT phone_number, name_2 as name FROM Person\nUNI... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20685550/"
] |
74,680,817 | <p>I am working on a project where I need to multiply 2 tensors which look like this. The first tensor has 5 matrices and the second one has 5 column vectors. I need to multiply these two to get the resultant tensor such that each element of that tensor is the column vector I get after multiplying the corresponding mat... | [
{
"answer_id": 74680830,
"author": "Necati Turan",
"author_id": 4335325,
"author_profile": "https://Stackoverflow.com/users/4335325",
"pm_score": 3,
"selected": true,
"text": "SELECT phone_number, name_1 as name FROM Person\nUNION ALL\nSELECT phone_number, name_2 as name FROM Person\nUNI... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9194800/"
] |
74,680,835 | <p>I need to access an API but I dont want to shoot with 100 requests at the same time so I want to make 1 request per second so I write:</p>
<pre><code>$.each(added_collections, function(index, collection) {
$.each(collection, function(index1, page) {
$.each(page, function(index2, product) {
... | [
{
"answer_id": 74680830,
"author": "Necati Turan",
"author_id": 4335325,
"author_profile": "https://Stackoverflow.com/users/4335325",
"pm_score": 3,
"selected": true,
"text": "SELECT phone_number, name_1 as name FROM Person\nUNION ALL\nSELECT phone_number, name_2 as name FROM Person\nUNI... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680835",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6310798/"
] |
74,680,911 | <p>How can I easily create this matrix using clever commands:</p>
<pre><code>1 0 0
1 0 0
1 0 0
1 0 0
0 1 0
0 1 0
0 1 0
0 1 0
0 0 1
0 0 1
0 0 1
0 0 1
</code></pre>
| [
{
"answer_id": 74680924,
"author": "Vinícius Félix",
"author_id": 9696037,
"author_profile": "https://Stackoverflow.com/users/9696037",
"pm_score": 2,
"selected": false,
"text": "matrix(rep(c(1,0,0,0,1,0,0,0,1), each = 4),ncol = 3)\n\n [,1] [,2] [,3]\n [1,] 1 0 0\n [2,] ... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2303235/"
] |
74,680,948 | <p>I have two pandas dataframes, data1 and data2. They each have album and artist columns along with other columns that are different attributes. For the sake of what I'm trying to do, I want to delete all of the rows in data2 that DO NOT exist in data1. So, essentially I want all of the album and artists in data2 to m... | [
{
"answer_id": 74680968,
"author": "A.S",
"author_id": 20684429,
"author_profile": "https://Stackoverflow.com/users/20684429",
"pm_score": 0,
"selected": false,
"text": "# Merge data1 and data2 on the 'album' and 'artist' columns\nmerged_data = data1.merge(data2, on=['album', 'artist'], ... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20218232/"
] |
74,680,977 | <p>I'm doing an extensive word search. How do I do a find that keeps leading and trailing spaces.
the word is imported from a list.</p>
<p>An example:</p>
<p>find " oil " in "Use Cooking Oil"</p>
<p>but
do not find with "Sally spoiled the food."</p>
<p>.find() strips the leading and traili... | [
{
"answer_id": 74680968,
"author": "A.S",
"author_id": 20684429,
"author_profile": "https://Stackoverflow.com/users/20684429",
"pm_score": 0,
"selected": false,
"text": "# Merge data1 and data2 on the 'album' and 'artist' columns\nmerged_data = data1.merge(data2, on=['album', 'artist'], ... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19693596/"
] |
74,680,982 | <p>I am attempting to scrape the artists' Spotify streaming rankings from Kworb.net into a CSV file and I've nearly succeeded except I'm running into a weird issue.</p>
<p>The code below successfully scrapes all 10,000 of the listed artists into the console:</p>
<pre><code>import requests
from bs4 import BeautifulSoup
... | [
{
"answer_id": 74681099,
"author": "Boatti",
"author_id": 19192614,
"author_profile": "https://Stackoverflow.com/users/19192614",
"pm_score": 0,
"selected": false,
"text": "import requests\nfrom bs4 import BeautifulSoup\nimport csv\n\nURL = \"https://kworb.net/spotify/artists.html\"\nres... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74680982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1425581/"
] |
74,681,051 | <p>My code so far is:</p>
<pre><code>def to_pig(string):
words = string.split()
for i, word in enumerate(words):
'''
if first letter is a vowel
'''
if word[0] in 'aeiou':
words[i] = words[i]+ "yay"
elif word[0] in 'AEIOU':
words... | [
{
"answer_id": 74681099,
"author": "Boatti",
"author_id": 19192614,
"author_profile": "https://Stackoverflow.com/users/19192614",
"pm_score": 0,
"selected": false,
"text": "import requests\nfrom bs4 import BeautifulSoup\nimport csv\n\nURL = \"https://kworb.net/spotify/artists.html\"\nres... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74681051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20559638/"
] |
74,681,080 | <p>For example:</p>
<pre><code>FILE* file_name;
file_name = fopen("some.txt", "r"); // some.txt isn't exist
if (file_name !=NULL)
printf("nice");
fclose(file_name);
</code></pre>
<p>What happens in fclose?</p>
| [
{
"answer_id": 74681131,
"author": "Eric Postpischil",
"author_id": 298225,
"author_profile": "https://Stackoverflow.com/users/298225",
"pm_score": 2,
"selected": false,
"text": "fclose fclose"
},
{
"answer_id": 74681157,
"author": "dbush",
"author_id": 1687119,
"auth... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74681080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16752750/"
] |
74,681,081 | <p>I am trying to pass project version and compilation time to my Quarkus project via build.gradle and GradleExtraProperties.</p>
<p>I have in my gradle.build file:</p>
<pre><code>version '0.0.0-SNAPSHOT'
ext {
buildTime = new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date())
}
<... | [
{
"answer_id": 74681106,
"author": "DotNetRussell",
"author_id": 2051392,
"author_profile": "https://Stackoverflow.com/users/2051392",
"pm_score": 1,
"selected": false,
"text": "@ConfigProperty(name = \"buildTime\", defaultValue=\"defaultValue\")\nString buildTime;\n"
},
{
"answe... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74681081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1382814/"
] |
74,681,100 | <p>Is it possible to print a dictionnary using a generator using a pattern ?</p>
<p>Exemple : giving this dictionnary</p>
<pre><code>people =
[
{ 'name' : 'AAA', 'date_birth': '12/08/1990', 'class': '1st'},
{ 'name' : 'BB', 'date_birth': '12/08/1992', 'class': '2nd'},
{ 'name' : 'CC', 'date_birth': '12/08... | [
{
"answer_id": 74681126,
"author": "Boatti",
"author_id": 19192614,
"author_profile": "https://Stackoverflow.com/users/19192614",
"pm_score": 0,
"selected": false,
"text": "people = [\n {'name': 'AAA', 'date_birth': '12/08/1990', 'class': '1st'},\n {'name': 'BB', 'date_birth': '12/... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74681100",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20139720/"
] |
74,681,133 | <p>For example, If I input 9a8,4 I want 984 output from it. I am not sure how I would do this or if I can. Thank you.</p>
<p>I have not been able to try anything because i do not know where to start.</p>
| [
{
"answer_id": 74681172,
"author": "T1G3R-DEV",
"author_id": 16911172,
"author_profile": "https://Stackoverflow.com/users/16911172",
"pm_score": 0,
"selected": false,
"text": "#include <stdio.h>\n#include <string.h>\n\nint main(void) {\n // create an empty string to hold the extracted... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74681133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20671658/"
] |
74,681,137 | <p>I try to open browser using Selenium in Python and after the browser opens, it exits from it, I tried several ways to write my code but every possible way works this way.
Thank you in advance for help</p>
<pre><code>`from selenium import webdriver
from selenium.webdriver import Chrome
from selenium.webdriver.chrome.... | [
{
"answer_id": 74681172,
"author": "T1G3R-DEV",
"author_id": 16911172,
"author_profile": "https://Stackoverflow.com/users/16911172",
"pm_score": 0,
"selected": false,
"text": "#include <stdio.h>\n#include <string.h>\n\nint main(void) {\n // create an empty string to hold the extracted... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74681137",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16096237/"
] |
74,681,195 | <pre><code>rate, cashflows = 0.05,[-1100,300,450,800]
def npv_for_loop(rate,cashflows):
NPV=0
for i in range(len(cashflows)):
NPV+=cashflows[i]/(1+rate)**i
print(round(NPV,3))
</code></pre>
<p>i generally have no idea how a recursion works and would really appreciate if anybody can help me.</p>
| [
{
"answer_id": 74681230,
"author": "A.S",
"author_id": 20684429,
"author_profile": "https://Stackoverflow.com/users/20684429",
"pm_score": 2,
"selected": true,
"text": "def npv(rate, cashflows, i=0, NPV=0):\n # Stop the recursion when we reach the end of the cash flows\n if i == le... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74681195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9110693/"
] |
74,681,417 | <p>I'm very new to python, and I'd like to know how I can use the info in a text file to create variables. For example, if the txt file looked like this:</p>
<p>vin_brand_type_year_price</p>
<p>2132_BMW_330xi_2016_67000</p>
<p>1234_audi_a4_2019_92000</p>
<p>9876_mclaren_720s_2022_327000</p>
<p>How do I then, for exampl... | [
{
"answer_id": 74681485,
"author": "A.S",
"author_id": 20684429,
"author_profile": "https://Stackoverflow.com/users/20684429",
"pm_score": 1,
"selected": false,
"text": "# Create an empty list to store the VIN numbers.\nvin = []\n\n# Open the text file and read its contents.\nwith open('... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74681417",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20133236/"
] |
74,681,448 | <p>How do I create a coin toss using def and return and using random int 0 and 1. I have never used python before. So I'm wondering how to make a function.</p>
<pre><code>from random import randint
num = input('Number of times to flip coin: ')
flips = [randint(0,1) for r in range(num)]
results = []
for object in flips:... | [
{
"answer_id": 74681485,
"author": "A.S",
"author_id": 20684429,
"author_profile": "https://Stackoverflow.com/users/20684429",
"pm_score": 1,
"selected": false,
"text": "# Create an empty list to store the VIN numbers.\nvin = []\n\n# Open the text file and read its contents.\nwith open('... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74681448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20685981/"
] |
74,681,503 | <p>I am making a simple application in which the user uploads files using 2 HTML input:file fields and a zip archive is created from them. Is there any way I can let the user choose where this zip can go? (Something like a "Save As" window).</p>
<p>This is my current solution, which saves archive only to defa... | [
{
"answer_id": 74681485,
"author": "A.S",
"author_id": 20684429,
"author_profile": "https://Stackoverflow.com/users/20684429",
"pm_score": 1,
"selected": false,
"text": "# Create an empty list to store the VIN numbers.\nvin = []\n\n# Open the text file and read its contents.\nwith open('... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74681503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12995037/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.