qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,320,904 | <p>JavaScript is known to only check the first variable in a <code>&&</code> comparison in case the first variable returns false. Is there a way to 'ask' JavaScript to check both variables i.e. when they are methods?</p>
<p>For example: Suppose you have 2 methods that validate 2 separate user inputs:</p>
<pre><... | [
{
"answer_id": 74320983,
"author": "Mina",
"author_id": 11887902,
"author_profile": "https://Stackoverflow.com/users/11887902",
"pm_score": 3,
"selected": true,
"text": "&& reduce const validateEmail = value => {\n if(value.includes('@')){\n //setShowEmailError(false);\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10784244/"
] |
74,320,939 | <p>I have such a program</p>
<pre><code>#include <stdio.h>
#include <ctype.h>
#include <string.h>
int main() {
float x, k;
int choose;
_Bool valid;
do {
valid = 1;
printf("\nChoose variant: \n1 - count of nums\n2 - float number\n3 - e:\nYour choose: &qu... | [
{
"answer_id": 74320983,
"author": "Mina",
"author_id": 11887902,
"author_profile": "https://Stackoverflow.com/users/11887902",
"pm_score": 3,
"selected": true,
"text": "&& reduce const validateEmail = value => {\n if(value.includes('@')){\n //setShowEmailError(false);\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20168083/"
] |
74,320,949 | <p>I have <code>Filterable</code> module that creates scopes usesd by various models,</p>
<pre class="lang-rb prettyprint-override"><code>module Filterable
extend ActiveSupport::Concern
included do
# References
scope :filter_eq_reference, ->(val){ where(reference: val) }
scope :filter_eq_description... | [
{
"answer_id": 74320983,
"author": "Mina",
"author_id": 11887902,
"author_profile": "https://Stackoverflow.com/users/11887902",
"pm_score": 3,
"selected": true,
"text": "&& reduce const validateEmail = value => {\n if(value.includes('@')){\n //setShowEmailError(false);\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320949",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6347040/"
] |
74,320,978 | <p>I am trying to find a way to insert a curved (or even better a wavy) vertical bar. I have found a <a href="https://fireship.io/lessons/wavy-backgrounds/" rel="nofollow noreferrer">nice bubble pattern</a> I'm trying to replicate. The problem I have is that I don't know how to rotate this 90 degrees so that it's a col... | [
{
"answer_id": 74321283,
"author": "Johannes",
"author_id": 5641669,
"author_profile": "https://Stackoverflow.com/users/5641669",
"pm_score": 1,
"selected": false,
"text": ".bubble::after {\n content: '';\n border-top-right-radius: 80% 50%;\n border-bottom-right-radius: 80% 50%;\n po... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74320978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1344579/"
] |
74,321,021 | <p>I'm a CS student and learning Java. For my assignment, I've created the below UML diagram for the code below. This diagram should contain class name, variables and methods.</p>
<p>However, I am not sure if I created a correct UML diagram. I think class name and variables are correct, they are all public data members... | [
{
"answer_id": 74321593,
"author": "hfontanez",
"author_id": 2851311,
"author_profile": "https://Stackoverflow.com/users/2851311",
"pm_score": 0,
"selected": false,
"text": "+ - # ~ + myMethod(name : String, value : int) + myMethod(String, int) : void"
},
{
"answer_id": 74322997,... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20065644/"
] |
74,321,040 | <p>I am Trying to make a program in Python to reverse the vowels in a string and return the string like this:</p>
<pre><code>vow = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
vowin = []
place = []
def string(string):
for ch in string:
if ch in vow:
vowin.append(ch)
else:
... | [
{
"answer_id": 74321593,
"author": "hfontanez",
"author_id": 2851311,
"author_profile": "https://Stackoverflow.com/users/2851311",
"pm_score": 0,
"selected": false,
"text": "+ - # ~ + myMethod(name : String, value : int) + myMethod(String, int) : void"
},
{
"answer_id": 74322997,... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17442150/"
] |
74,321,042 | <p>Why does calling clear on the iterator here shorten the size of the batches array?</p>
<pre><code>ArrayList<String> numbers = new ArrayList<>(Arrays.asList("1", "2", "3", "4", "5", "6", "7", "8", "9", "10"... | [
{
"answer_id": 74321204,
"author": "Rogue",
"author_id": 1786065,
"author_profile": "https://Stackoverflow.com/users/1786065",
"pm_score": 2,
"selected": false,
"text": "List#clear numbers Output Index numbers List\n1 0 [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\n2 1 ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/995514/"
] |
74,321,069 | <pre><code>import React, { useState } from "react";
import Input from "./components/Input";
import Keep from './components/Keep'
export default function App() {
const [keeps, setKeeps] = useState(['go','do','make','sleep',])
let keepsList = keeps.map((keep, id)=>{return <Keep value={keep}... | [
{
"answer_id": 74321204,
"author": "Rogue",
"author_id": 1786065,
"author_profile": "https://Stackoverflow.com/users/1786065",
"pm_score": 2,
"selected": false,
"text": "List#clear numbers Output Index numbers List\n1 0 [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\n2 1 ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321069",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20415871/"
] |
74,321,082 | <p>Working with <code>antd</code> components, if you have an <code>Alert</code> component, inside there is a tooltip that is given the styling through <code>ant-alert-icon</code> class. So, if we need to override the Tooltip color, you can have in your stylesheet a class to override the values. For example:</p>
<pre>... | [
{
"answer_id": 74321191,
"author": "yousoumar",
"author_id": 15288641,
"author_profile": "https://Stackoverflow.com/users/15288641",
"pm_score": 2,
"selected": true,
"text": "ant-alert-info-custom <Alert\n description={}\n type=\"info\"\n showIcon\n className=\"ant-alert-info-cus... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4538768/"
] |
74,321,117 | <p>Can someone let me know if its possible to pass a parameter and an activity to a For Each in Azure Data Factory.</p>
<p>From the image I want to pass the parmater 'relativeURLs' into a For Each.</p>
<p><a href="https://i.stack.imgur.com/1xBp4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1xBp4.p... | [
{
"answer_id": 74321191,
"author": "yousoumar",
"author_id": 15288641,
"author_profile": "https://Stackoverflow.com/users/15288641",
"pm_score": 2,
"selected": true,
"text": "ant-alert-info-custom <Alert\n description={}\n type=\"info\"\n showIcon\n className=\"ant-alert-info-cus... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15520615/"
] |
74,321,151 | <p>I have to use the assembly code to find the value of P. How do I read this?
I am not quite sure how to begin. If anyone could help me by either going through it step by step or just explaining it to me. Either way would be a big help</p>
<p>in C:</p>
<pre><code>#define P ?
#define Q ?
int mat1[P][Q];
int mat2[Q][P];... | [
{
"answer_id": 74321389,
"author": "Erik Eidt",
"author_id": 471129,
"author_profile": "https://Stackoverflow.com/users/471129",
"pm_score": 1,
"selected": false,
"text": "mat1 = mat2 mat1 mat2 mat2 (j×P+i)×4 mat1 (i×Q+j)×4 i edi j esi P Q"
},
{
"answer_id": 74321965,
"author... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20168647/"
] |
74,321,155 | <p>I want to "surround" all characters in a string with pipes:</p>
<pre><code>'abc' => '|a|b|c|'
'abcde' => '|a|b|c|d|e|'
'x' => '|x|'
'' => '|'
</code></pre>
<p>What's a good way to do it, preferably as a one-line expression? Here's a way with a loop:</p>
<pre><code>s = 'abcde'
t = '|... | [
{
"answer_id": 74321199,
"author": "Larry Panozzo",
"author_id": 7760981,
"author_profile": "https://Stackoverflow.com/users/7760981",
"pm_score": 1,
"selected": false,
"text": "join ''.join('|'+e for e in s) + '|'\n"
},
{
"answer_id": 74321200,
"author": "wjandrea",
"aut... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321155",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16759116/"
] |
74,321,159 | <p>I have a dictionary as follow:</p>
<pre><code>d1 = {1:"Peter", 2:"Teddy"}
</code></pre>
<p>I want to make it to:</p>
<pre><code>d1 = {1:"Peter", 2:"Teddy", 3:{"Oliver" : "Big"}}
</code></pre>
<p>I have tried but it doesn't work:</p>
<pre><code>d1[3]["O... | [
{
"answer_id": 74321181,
"author": "Jedi",
"author_id": 6382901,
"author_profile": "https://Stackoverflow.com/users/6382901",
"pm_score": 2,
"selected": false,
"text": "d1[3] = {\"Oliver\": \"Big\"}\n"
},
{
"answer_id": 74321203,
"author": "Andromeda",
"author_id": 100596... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17217064/"
] |
74,321,190 | <p>Is there a way to force the zoom from the function <code>facet_zoom()</code> from the package <code>ggforce</code> on the lateral side of the graph instead of the bottom ?</p>
<p>I have this code</p>
<pre><code>require(dplyr)
require(tidyverse)
require(ggforce)
g + facet_zoom(xlim = c(x1,x2)))
</code></pre>
<p>How ... | [
{
"answer_id": 74321483,
"author": "Isaiah",
"author_id": 1738003,
"author_profile": "https://Stackoverflow.com/users/1738003",
"pm_score": 0,
"selected": false,
"text": "ggplot(iris, aes(Petal.Length, Petal.Width, colour = Species)) +\n geom_point() +\n facet_zoom(y = Species == 'vers... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10370962/"
] |
74,321,227 | <p>This question arose, while working on this question <a href="https://stackoverflow.com/questions/74320274/replace-list-names-if-they-exist">Replace list names if they exist</a></p>
<p><strong>I have this manipulated iris dataset with two vectors:</strong></p>
<pre><code>new_name <- c("new_setoas", "... | [
{
"answer_id": 74321483,
"author": "Isaiah",
"author_id": 1738003,
"author_profile": "https://Stackoverflow.com/users/1738003",
"pm_score": 0,
"selected": false,
"text": "ggplot(iris, aes(Petal.Length, Petal.Width, colour = Species)) +\n geom_point() +\n facet_zoom(y = Species == 'vers... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13321647/"
] |
74,321,230 | <p>I have a .Net project includes <strong>Chart.yaml</strong><br />
I want to set a version in the file when running pipeline.</p>
<p><strong>Powershell</strong></p>
<pre><code>$newversion = "v5.0.0-a"
$chartyaml = "Chart.yaml"
$yamlText = (Get-Content $chartyaml)
$yamlText.replace('appVersion: .*... | [
{
"answer_id": 74341748,
"author": "RoyWang-MSFT",
"author_id": 18359635,
"author_profile": "https://Stackoverflow.com/users/18359635",
"pm_score": 2,
"selected": true,
"text": " def change_yaml_content(file_path, key, value):\n \n with open(file_path, 'r') as f:\n \n da... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10767161/"
] |
74,321,259 | <p>I have a very large dataset about twitter. I want to be able to compute the mean tweets per hour published by the user. I was able to groupby the tweets per hour per user but now how can I compute the mean per hour?</p>
<p>I'm not able to write all the code since the dataset has been heavily preprocessed. In the dat... | [
{
"answer_id": 74321436,
"author": "Vincent Rupp",
"author_id": 4024409,
"author_profile": "https://Stackoverflow.com/users/4024409",
"pm_score": 1,
"selected": false,
"text": "grouped_df.reset_index().groupby(\"user_id\").agg(avgTweetsPerHour = ('created_at','mean'))\n .agg() .groupby()... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10181236/"
] |
74,321,265 | <p>I have task with JSONObject, and exactly two JSONArray to retrieve some key and value values and return them as JSONArray:</p>
<p>the first JSONArray consists of two objects as below:</p>
<pre><code>[{"name": "John", "id": "1"}, {"name": "Adam", "id&qu... | [
{
"answer_id": 74321436,
"author": "Vincent Rupp",
"author_id": 4024409,
"author_profile": "https://Stackoverflow.com/users/4024409",
"pm_score": 1,
"selected": false,
"text": "grouped_df.reset_index().groupby(\"user_id\").agg(avgTweetsPerHour = ('created_at','mean'))\n .agg() .groupby()... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15004871/"
] |
74,321,272 | <p>I want to send auto messge on whatsapp, i am creating a news app i need when created a news from admin panel then autometically send news details in whatsapp groups and contacts without any confirmaion. just news creating and auto sending news on whatsapp.....???</p>
<p>send auto news on whatsapp groups and contacts... | [
{
"answer_id": 74321436,
"author": "Vincent Rupp",
"author_id": 4024409,
"author_profile": "https://Stackoverflow.com/users/4024409",
"pm_score": 1,
"selected": false,
"text": "grouped_df.reset_index().groupby(\"user_id\").agg(avgTweetsPerHour = ('created_at','mean'))\n .agg() .groupby()... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16264806/"
] |
74,321,310 | <p>I am performing tests in karate framework, where I must send a payload that contains a security certificate, in postman the response is satisfactory, but when performing the same operation in karate, it returns error 400, according to what I have investigated, karate changes the format of my payload (example: beautu... | [
{
"answer_id": 74321436,
"author": "Vincent Rupp",
"author_id": 4024409,
"author_profile": "https://Stackoverflow.com/users/4024409",
"pm_score": 1,
"selected": false,
"text": "grouped_df.reset_index().groupby(\"user_id\").agg(avgTweetsPerHour = ('created_at','mean'))\n .agg() .groupby()... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11575190/"
] |
74,321,430 | <p>Using this formula returns values in two separate columns:</p>
<p><code>=ARRAYFORMULA(REGEXEXTRACT(A2:A, "(.+)\?|(.+)\"""))</code></p>
<p>How can I modify this to return everything in the same column? It works if I remove the parentheses (), but then the last character ? or " will appear at ... | [
{
"answer_id": 74321436,
"author": "Vincent Rupp",
"author_id": 4024409,
"author_profile": "https://Stackoverflow.com/users/4024409",
"pm_score": 1,
"selected": false,
"text": "grouped_df.reset_index().groupby(\"user_id\").agg(avgTweetsPerHour = ('created_at','mean'))\n .agg() .groupby()... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19120926/"
] |
74,321,457 | <p>I am trying to create a Library and add information that is entered into my form (form is in popup window) to appear in a div (bookCard) within my grid. I was able to create an eventListener for the submit button and make my div (bookCard) appear. However, I am unable to display the input from my form on the bookCar... | [
{
"answer_id": 74321436,
"author": "Vincent Rupp",
"author_id": 4024409,
"author_profile": "https://Stackoverflow.com/users/4024409",
"pm_score": 1,
"selected": false,
"text": "grouped_df.reset_index().groupby(\"user_id\").agg(avgTweetsPerHour = ('created_at','mean'))\n .agg() .groupby()... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18013003/"
] |
74,321,496 | <p>LeetCode: longest consecutive sequence</p>
<p>Question:Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence.</p>
<p>You must write an algorithm that runs in O(n) time.</p>
<p>Example 1:</p>
<p>Input: nums = [100,4,200,1,3,2]
Output: 4
Explanation: The longest conse... | [
{
"answer_id": 74321436,
"author": "Vincent Rupp",
"author_id": 4024409,
"author_profile": "https://Stackoverflow.com/users/4024409",
"pm_score": 1,
"selected": false,
"text": "grouped_df.reset_index().groupby(\"user_id\").agg(avgTweetsPerHour = ('created_at','mean'))\n .agg() .groupby()... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321496",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19362230/"
] |
74,321,500 | <p><a href="https://i.stack.imgur.com/JExlK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JExlK.png" alt="enter image description here" /></a></p>
<p>I am trying some julia code as shown here:</p>
<p><a href="https://i.stack.imgur.com/7jUu2.png" rel="nofollow noreferrer"><img src="https://i.stack.i... | [
{
"answer_id": 74322859,
"author": "Oscar Smith",
"author_id": 5141328,
"author_profile": "https://Stackoverflow.com/users/5141328",
"pm_score": 1,
"selected": false,
"text": "1 1.0 1 Integer 1.0 x y"
},
{
"answer_id": 74326485,
"author": "Przemyslaw Szufel",
"author_id":... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15510950/"
] |
74,321,512 | <p>My class have been tasked with making a simple web based kids game using basic JQuery. I've been told JQuery is becoming more old school, but never the less, that's what we've to use along with HTML/CSS and JS to make the game.</p>
<p>I've been googling for a while now and can't quite find what I'm looking for.</p>
... | [
{
"answer_id": 74322023,
"author": "jyoung37",
"author_id": 20408463,
"author_profile": "https://Stackoverflow.com/users/20408463",
"pm_score": 0,
"selected": false,
"text": "<input type=\"radio\" name=\"test\" value=\"Elements/images/Avatar2.png\" checked />\n"
},
{
"answer_id":... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20420199/"
] |
74,321,572 | <pre><code>def biggestWithPos(A):
answer = 0
for i in A:
if i > answer:
answer = i
return (answer)
</code></pre>
<p>Why is it that when I change <code>answer = i</code> to <code>answer = A[i]</code> I get the error: <code>list index out of range</code>?</p>
| [
{
"answer_id": 74321634,
"author": "Chris",
"author_id": 15261315,
"author_profile": "https://Stackoverflow.com/users/15261315",
"pm_score": 1,
"selected": false,
"text": "for i in A:\n i A A [4, 5, 6] A[4]"
},
{
"answer_id": 74321663,
"author": "CFV",
"author_id": 855131... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17282081/"
] |
74,321,592 | <p>Data (I've incorporated some extra steps because I receive the data in a particular form):</p>
<pre><code> import numpy as np
import pandas as pd
d1 = pd.DataFrame({"Date" : ['1/1/2022', '12/15/2010', '6/1/2015', '1/31/2022', '12/31/2010', '3/10/2009', '1/7/2022', '12/9/2010','12/20/2010','1/13... | [
{
"answer_id": 74321634,
"author": "Chris",
"author_id": 15261315,
"author_profile": "https://Stackoverflow.com/users/15261315",
"pm_score": 1,
"selected": false,
"text": "for i in A:\n i A A [4, 5, 6] A[4]"
},
{
"answer_id": 74321663,
"author": "CFV",
"author_id": 855131... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20188834/"
] |
74,321,661 | <p>I am trying to push a string into an array, I have multiple arrays inside properties. I want to choose what property I am pushing it into using a function call but I can't seem to do it.</p>
<pre><code>var aObj = {
prop5: ["nameA5.1", "nameA5.2"],
prop6: ["nameA6.1", "nameA6.2&qu... | [
{
"answer_id": 74321708,
"author": "Axekan",
"author_id": 12519793,
"author_profile": "https://Stackoverflow.com/users/12519793",
"pm_score": 3,
"selected": true,
"text": "[] aObj.propX.push(namn) aObj[propX].push(namn) var aObj = {\n prop5: [\"nameA5.1\", \"nameA5.2\"],\n prop6: [\"na... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20419896/"
] |
74,321,671 | <p>I have the following code adapted to check if a range overlaps:</p>
<pre><code>function isOverlapping(prevHighLow, currentHighLow) {
const a = prevHighLow[0];
const b = prevHighLow[1];
const c = currentHighLow[0];
const d = currentHighLow[1];
if (a < d && b > c) {
return tru... | [
{
"answer_id": 74321708,
"author": "Axekan",
"author_id": 12519793,
"author_profile": "https://Stackoverflow.com/users/12519793",
"pm_score": 3,
"selected": true,
"text": "[] aObj.propX.push(namn) aObj[propX].push(namn) var aObj = {\n prop5: [\"nameA5.1\", \"nameA5.2\"],\n prop6: [\"na... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11353477/"
] |
74,321,674 | <p>I would like to reverse this:
A solution taken from here <a href="https://stackoverflow.com/questions/72278230/one-liner-to-concatenate-two-data-frames-with-a-distinguishing-column#72278388">One-liner to concatenate two data frames with a distinguishing column?</a></p>
<pre><code>library(dplyr)
bind_rows(list(A = df... | [
{
"answer_id": 74321708,
"author": "Axekan",
"author_id": 12519793,
"author_profile": "https://Stackoverflow.com/users/12519793",
"pm_score": 3,
"selected": true,
"text": "[] aObj.propX.push(namn) aObj[propX].push(namn) var aObj = {\n prop5: [\"nameA5.1\", \"nameA5.2\"],\n prop6: [\"na... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13321647/"
] |
74,321,741 | <p>I was able to run a docker container but if I do <code>sudo docker-compose up -d</code> but how to reopen/watch the screen again if I need and close again. I am using ubuntu.
Thanks</p>
| [
{
"answer_id": 74321708,
"author": "Axekan",
"author_id": 12519793,
"author_profile": "https://Stackoverflow.com/users/12519793",
"pm_score": 3,
"selected": true,
"text": "[] aObj.propX.push(namn) aObj[propX].push(namn) var aObj = {\n prop5: [\"nameA5.1\", \"nameA5.2\"],\n prop6: [\"na... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15801078/"
] |
74,321,764 | <p>The code is required to take addresses from a csv file and then use a function to compute the corresponding Latitudes and Longitudes. While I get the correct Latitudes and Longitudes but I am unable to save them to a new csv file.</p>
<p>import requests
import urllib.parse
import pandas as pd</p>
<p>#function to get... | [
{
"answer_id": 74321708,
"author": "Axekan",
"author_id": 12519793,
"author_profile": "https://Stackoverflow.com/users/12519793",
"pm_score": 3,
"selected": true,
"text": "[] aObj.propX.push(namn) aObj[propX].push(namn) var aObj = {\n prop5: [\"nameA5.1\", \"nameA5.2\"],\n prop6: [\"na... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321764",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19911267/"
] |
74,321,768 | <p>I am working on my first dynamic website using HTML, Express & node.js. Reading through the Stripe documentation and other sources I've come across various examples but my main goal is to use my Stripe API key and each item price ID's in my server and not in my front end code so no one can temper with them. I've... | [
{
"answer_id": 74322185,
"author": "Corey Clavette",
"author_id": 18637382,
"author_profile": "https://Stackoverflow.com/users/18637382",
"pm_score": 1,
"selected": false,
"text": "document.querySelector() document.querySelector(\"#price-id\").value = somePriceID; price-id somePriceID"
... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16226804/"
] |
74,321,781 | <p>I'm trying to make a program that randomly moves the mouse only when the right mouse button is held to prank a friend.</p>
<p>I found some code online to detect right-clicks with Win32 API. When I added my own <code>while</code> loop, it didn't stop after it started. I tried adding an <code>if</code> statement with ... | [
{
"answer_id": 74322185,
"author": "Corey Clavette",
"author_id": 18637382,
"author_profile": "https://Stackoverflow.com/users/18637382",
"pm_score": 1,
"selected": false,
"text": "document.querySelector() document.querySelector(\"#price-id\").value = somePriceID; price-id somePriceID"
... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20420416/"
] |
74,321,795 | <p><strong>Input :</strong>
['A', 'B', 'C', 'A', 'D', 'B', 'B', 'A', 'D']</p>
<p><strong>Expected output :</strong>
'B'</p>
<p>The output should be the element with higher occurrence. If there are two or more elements which shares the same number of occurrence, then the element which reaches the maximum count earlier i... | [
{
"answer_id": 74321863,
"author": "Dr. Vortex",
"author_id": 17637456,
"author_profile": "https://Stackoverflow.com/users/17637456",
"pm_score": 1,
"selected": false,
"text": "const findWinner = ary => {\n const occurrences = Object.fromEntries(ary.map(e => [e, 0]));\n for(let el of a... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321795",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12139325/"
] |
74,321,808 | <p>What does the <code>22 :: Int</code> mean here?</p>
<pre><code>rotor3=("BDFHJLCPRTXVZNYEIWGAKMUSQO",22::Int)
</code></pre>
| [
{
"answer_id": 74321937,
"author": "chi",
"author_id": 3234959,
"author_profile": "https://Stackoverflow.com/users/3234959",
"pm_score": 2,
"selected": false,
"text": "22 Int,Integer,Float,Double,.... 22::Int rotor3 Int rotor3 rotor3 :: (String, Int)\nrotor3 = (\"BDFHJLCPRTXVZNYEIWGAKMUS... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,321,813 | <p>(Just for fun) I figured out a way to represent this:</p>
<pre><code>250 : 8 = 31 + 2
31 : 8 = 3 + 7
∴ (372)8
</code></pre>
<p>in the following procedure:</p>
<pre><code>(defun dec->opns (n base)
(do* ((lst nil (append lst (list pos))) ; this is also not so nice
(m n (truncate m base))
(pos ... | [
{
"answer_id": 74322182,
"author": "Gwang-Jin Kim",
"author_id": 9690090,
"author_profile": "https://Stackoverflow.com/users/9690090",
"pm_score": 3,
"selected": true,
"text": "cons (rem m base) (rem m base) (rem m base) let (<variable> <initial-value> <progression-for-each-round>) (defu... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17814577/"
] |
74,321,858 | <pre><code>students = {'palii':('male','170'),
'Minckach':('male','176'),
'ddl':('male','180'),
'Red1ska':('male','188'),
'Sargeras':('male','185'),
'Gerus':('female','160'),
'Liah':('male','183'),
'Chhekan':('female','182'),
... | [
{
"answer_id": 74321897,
"author": "I'mahdi",
"author_id": 1740577,
"author_profile": "https://Stackoverflow.com/users/1740577",
"pm_score": 2,
"selected": true,
"text": "dict gender =='male' height_lst = [int(height) for name, (gender, height) in students.items() if gender == 'male']\np... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20420514/"
] |
74,321,873 | <p>I have a popup in my app:</p>
<pre><code><div id="modal"></div>
let modal = document.getElementById('modal')
modal.innerHTML = `
<button class="close-button" onclick="close_modal()">Close</button>
`
#modal{
width: 30em;
heigh... | [
{
"answer_id": 74321900,
"author": "Dr. Vortex",
"author_id": 17637456,
"author_profile": "https://Stackoverflow.com/users/17637456",
"pm_score": 0,
"selected": false,
"text": "<dialog> HTMLDialogElement"
},
{
"answer_id": 74322003,
"author": "Mehmet Eren Çelik",
"author_... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19433346/"
] |
74,321,893 | <p>I use to have my website hosted on 1and1 server for years and it was working fine (php 7.4).</p>
<p>Since, i decided to switch to a dedicated server w/Linux ubuntu OS for my webserver (php 8.1.2).</p>
<p>All is working fine after the migration but I have a weird issue:
when I get a redirection from an Ajax/php query... | [
{
"answer_id": 74322001,
"author": "Valeriu Ciuca",
"author_id": 4527645,
"author_profile": "https://Stackoverflow.com/users/4527645",
"pm_score": 0,
"selected": false,
"text": "session_start(); <?php\n session_start();\n // code\n PHPSESSID /var/lib/php/sessions"
},
{
"answe... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4157691/"
] |
74,321,914 | <p>I am perhaps misunderstanding Pundit policies but I am facing an issue where the <code>UserPolicy</code> is clashing with the <code>SongPolicy</code>.</p>
<p>What happens if that a statement in <code>UserPolicy</code> is being asserted ignoring what's written in <code>SongPolicy</code>:</p>
<pre><code>Pundit::NotAut... | [
{
"answer_id": 74322001,
"author": "Valeriu Ciuca",
"author_id": 4527645,
"author_profile": "https://Stackoverflow.com/users/4527645",
"pm_score": 0,
"selected": false,
"text": "session_start(); <?php\n session_start();\n // code\n PHPSESSID /var/lib/php/sessions"
},
{
"answe... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4032810/"
] |
74,321,926 | <p>Can anyone please let me know how to correctly click on the button using Selenium webdriver?</p>
<p>I have the following html element I want to click:</p>
<pre><code><button type="button" class="btn button_primary" data-bind="click: $parent.handleSsoLogin.bind($parent)"> Sign In
... | [
{
"answer_id": 74322001,
"author": "Valeriu Ciuca",
"author_id": 4527645,
"author_profile": "https://Stackoverflow.com/users/4527645",
"pm_score": 0,
"selected": false,
"text": "session_start(); <?php\n session_start();\n // code\n PHPSESSID /var/lib/php/sessions"
},
{
"answe... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18211958/"
] |
74,321,930 | <p>So, I am trying to create a DNA to RNA sequence converter, but it isn't really displaying when I try to get the values and change them sequentially. I.E., when you type certain letters like ATG they will convert into UAC but in that specific order. Is there a way to? I've already tried an array but it isn't working.... | [
{
"answer_id": 74321981,
"author": "Dr. Vortex",
"author_id": 17637456,
"author_profile": "https://Stackoverflow.com/users/17637456",
"pm_score": 1,
"selected": true,
"text": "const input = document.querySelector('#input1').value,\n total = document.querySelector('#total');\n\nlet r... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20273807/"
] |
74,321,945 | <p>I'm stuck with a classic <strong>greatest-n-per-group</strong> problem, where a cat can have many kittens, but I'm usually just interested in the youngest.</p>
<p>I <em>already do know</em> how to build a <code>scope</code> and a <code>has_one</code> relation for the <code>Cat</code>.</p>
<p>My question: Is there a ... | [
{
"answer_id": 74326517,
"author": "localarrow",
"author_id": 20318864,
"author_profile": "https://Stackoverflow.com/users/20318864",
"pm_score": 2,
"selected": true,
"text": ":with_youngest_kittens scope :with_youngest_kittens, lambda {\n includes(:youngest_kitten)\n .joins(:k... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/757254/"
] |
74,321,948 | <p>I'm trying to publish a sheet using Google Apps script and get its (published) URL.</p>
<p>The only solution I've found is <a href="https://stackoverflow.com/questions/49755421/create-a-google-sheet-then-publishing-it-via-google-apps-script">this thread</a>, however the proposed script publishes entire spreadsheet, ... | [
{
"answer_id": 74326517,
"author": "localarrow",
"author_id": 20318864,
"author_profile": "https://Stackoverflow.com/users/20318864",
"pm_score": 2,
"selected": true,
"text": ":with_youngest_kittens scope :with_youngest_kittens, lambda {\n includes(:youngest_kitten)\n .joins(:k... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20420512/"
] |
74,321,957 | <p>Hello I am trying to use selenium to automatically scrape the products titles and prices, i am using ActionChains and move_to_element, but somehow it gave me timeout exception, Is there a better way to do it?
<a href="https://i.stack.imgur.com/TeVtt.png" rel="nofollow noreferrer">titles in the tab</a></p>
<p><a href... | [
{
"answer_id": 74322694,
"author": "Eugeny Okulik",
"author_id": 12023661,
"author_profile": "https://Stackoverflow.com/users/12023661",
"pm_score": 2,
"selected": true,
"text": "options.add_argument('window-size=1200,1980') driver.find_element(By.ID, 'CybotCookiebotDialogBodyLevelButton... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19854159/"
] |
74,321,963 | <p>I inserted two background images to a div and gave them the top and bottom positions. However, the issue is that I want the images to have an equal top and bottom margin. I'm not sure how to accomplish it.</p>
<p><a href="https://i.stack.imgur.com/yNXkI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.... | [
{
"answer_id": 74322979,
"author": "Giorgi Shalamberidze",
"author_id": 20248276,
"author_profile": "https://Stackoverflow.com/users/20248276",
"pm_score": 0,
"selected": false,
"text": "<div class=\"license-info\">\n <img class=\"first-img\" src=\"./first/path\"></img>\n <img class=... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11961514/"
] |
74,321,999 | <p>I want to create a new map every time the button is pressed.
I want the names of the maps to be regular.
I tried using ${} in the map name but it doesn't seem to work.
is there any solution?</p>
| [
{
"answer_id": 74322035,
"author": "ANISH SAJI KUMAR",
"author_id": 12309235,
"author_profile": "https://Stackoverflow.com/users/12309235",
"pm_score": 0,
"selected": false,
"text": "map_${mapNumber}"
}
] | 2022/11/04 | [
"https://Stackoverflow.com/questions/74321999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20004246/"
] |
74,322,008 | <p>So I am asked to write a program that reads a sentence from the user, reports and removes wrong repetitions if any. By wrong repetitions I mean that a word (or more) is repeated (two occurrences or more) and that these repetition are consecutive.</p>
<p>`</p>
<pre><code>public class checker {
private String... | [
{
"answer_id": 74322035,
"author": "ANISH SAJI KUMAR",
"author_id": 12309235,
"author_profile": "https://Stackoverflow.com/users/12309235",
"pm_score": 0,
"selected": false,
"text": "map_${mapNumber}"
}
] | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20401110/"
] |
74,322,020 | <p>I log the daily produced energy of my solar panels. Now I want to create a SQL statement to get the sum of produced energy for each month but separate columns for each year.</p>
<p>I came up with the following SQL statement:</p>
<pre class="lang-sql prettyprint-override"><code>SELECT LPAD(extract (month from inverte... | [
{
"answer_id": 74322069,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 3,
"selected": true,
"text": "select extract(month from bucket) bucket_month,\n sum(\"EnergyProduced\") filter(where extract(year from bucket) = 2... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8587966/"
] |
74,322,080 | <pre><code> Button("Login") {
authenticateUser(username: username, password: password)
}
.foregroundColor(Color.black)
.frame(width: 300, height: 50)
.background(Color.blue)
... | [
{
"answer_id": 74322069,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 3,
"selected": true,
"text": "select extract(month from bucket) bucket_month,\n sum(\"EnergyProduced\") filter(where extract(year from bucket) = 2... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20420683/"
] |
74,322,117 | <p>I have created a <strong>Blazor Server</strong> Project in <strong>.NET6</strong>. In my project I need to upload files mostly exe files to the azure container. Here is the code:</p>
<pre><code>// Get the file from file picker
var file = e.Files.FirstOrDefault();
BlobServiceClient blobServiceClient = new BlobSe... | [
{
"answer_id": 74330616,
"author": "mnu-nasir",
"author_id": 2975931,
"author_profile": "https://Stackoverflow.com/users/2975931",
"pm_score": 2,
"selected": false,
"text": "var container = new BlobContainerClient(connectionString, \"uploadfiles\");\nvar createResponse = await container.... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2975931/"
] |
74,322,127 | <p>I am cleaning data using regex and there are matches that are a substring of the other alternative matches, and when you extract the matches, the one with the substring <strong>DIMM</strong> is extracted but the one that is intended to be extracted from the cell. <strong>SO-DIMM</strong> is extracted as intended exc... | [
{
"answer_id": 74322481,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 0,
"selected": false,
"text": "=IFERROR(IFERROR(REGEXEXTRACT(B75, \"(?:SO-DIMM)\"), \n REGEXEXTRACT(B75, \"(?:SODIMM)\")),\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19356517/"
] |
74,322,129 | <p>I have two lists <code>list1</code> and <code>list2</code> with a filename on each line. I want a <code>result</code> with all filenames that are only in <code>list2</code> and not in <code>list1</code>, regardless of specific file extensions (but not all). Using Linux bash, any commands that do not require any extr... | [
{
"answer_id": 74322389,
"author": "Shawn",
"author_id": 9952196,
"author_profile": "https://Stackoverflow.com/users/9952196",
"pm_score": 2,
"selected": false,
"text": "join $ join -t. -j1 -v2 -o 2.1,2.2 <(sort list1.txt) <(sort list2.txt) | sed 's/\\.$//'\nrainbow.z\nsunshine\n sed sun... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19017877/"
] |
74,322,141 | <p>I have this code and it works. But I want to get two different files.</p>
<p><code>file_type</code> returns either <code>NP</code> or <code>KL</code>. So I want to get the NP file with the max value and I want to get the KL file with the max value.</p>
<p>The dict looks like</p>
<pre><code>{"Blah_Blah_NP_2022-1... | [
{
"answer_id": 74322232,
"author": "Artem Ermakov",
"author_id": 17801973,
"author_profile": "https://Stackoverflow.com/users/17801973",
"pm_score": 0,
"selected": false,
"text": "dict file_dict_NP = {key:value for key, value in file_dict.items() if 'NP' in key} newest_NP = max(file_dict... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20334665/"
] |
74,322,148 | <p>I am trying to package some videos on an ubuntu-ec2 machine using <a href="https://github.com/shaka-project/shaka-packager" rel="nofollow noreferrer">shaka packager</a> and following <a href="https://shaka-project.github.io/shaka-packager/html/tutorials/tutorials.html" rel="nofollow noreferrer">official tutorial</a>... | [
{
"answer_id": 74322524,
"author": "chrslg",
"author_id": 20037042,
"author_profile": "https://Stackoverflow.com/users/20037042",
"pm_score": 1,
"selected": false,
"text": "in=... packager \"$input\" in=... in=... $input sudo packager $input in=... in=vid 720.mp4,output=packaged/vid 720.... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17402986/"
] |
74,322,151 | <pre class="lang-java prettyprint-override"><code>class Base {
Base() {
System.out.println("Base Constructor");
}
}
class Derived1 extends Base {
private static String pattern = "a+b+";
Derived1() {
super();
System.out.println("Derived 1 Constructor"... | [
{
"answer_id": 74322524,
"author": "chrslg",
"author_id": 20037042,
"author_profile": "https://Stackoverflow.com/users/20037042",
"pm_score": 1,
"selected": false,
"text": "in=... packager \"$input\" in=... in=... $input sudo packager $input in=... in=vid 720.mp4,output=packaged/vid 720.... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3543696/"
] |
74,322,167 | <p>I’m writing a query that returns data in XML format and I need to add a header that contains some static data, and a footer that contains a count of all of the records in the file. is there a way to do that so that the header and footer only appear once in the file?</p>
<p>my example query is as follows:</p>
<pre><c... | [
{
"answer_id": 74322524,
"author": "chrslg",
"author_id": 20037042,
"author_profile": "https://Stackoverflow.com/users/20037042",
"pm_score": 1,
"selected": false,
"text": "in=... packager \"$input\" in=... in=... $input sudo packager $input in=... in=vid 720.mp4,output=packaged/vid 720.... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4160279/"
] |
74,322,168 | <p>I use in my app a JscrollPane with a BoxLayout panel inside. I it to never change value after repainting. How can I do this?</p>
<p>I tried
<code>pane.getHorizontalScrollBar().setValue()</code>
but it doesn't change anything.</p>
| [
{
"answer_id": 74322524,
"author": "chrslg",
"author_id": 20037042,
"author_profile": "https://Stackoverflow.com/users/20037042",
"pm_score": 1,
"selected": false,
"text": "in=... packager \"$input\" in=... in=... $input sudo packager $input in=... in=vid 720.mp4,output=packaged/vid 720.... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20420711/"
] |
74,322,183 | <p>I assume this is a good task for Python's <code>itertools</code>. But I don't get it which one of it's magic methods I should use here.</p>
<p>The input data</p>
<pre><code>kill = ['err A', 'err B', 'err C']
lines = ['keep A', 'err B foo', 'err A bar', 'keep B', 'err C foobar']
</code></pre>
<p>The expected output<... | [
{
"answer_id": 74322524,
"author": "chrslg",
"author_id": 20037042,
"author_profile": "https://Stackoverflow.com/users/20037042",
"pm_score": 1,
"selected": false,
"text": "in=... packager \"$input\" in=... in=... $input sudo packager $input in=... in=vid 720.mp4,output=packaged/vid 720.... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4865723/"
] |
74,322,204 | <p>I have combined 2 dataframes and I want to make sure that the user id is not repeated and all values are written in 1 line, and not duplicated.
This is a ready-made dataframe, but I need to edit it and remove repetitions.
I attach the input data:</p>
<pre><code>rzd = pd.DataFrame({
'client_id': [111, 112, 113, 1... | [
{
"answer_id": 74322524,
"author": "chrslg",
"author_id": 20037042,
"author_profile": "https://Stackoverflow.com/users/20037042",
"pm_score": 1,
"selected": false,
"text": "in=... packager \"$input\" in=... in=... $input sudo packager $input in=... in=vid 720.mp4,output=packaged/vid 720.... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20217375/"
] |
74,322,259 | <p>objective: save emails as PDF files in a folder
problem: Outlook folder has over 1000 emails. Code runs for 26 emails then stops/freezes.<br />
attempts: tried different Outlook email folders with different content all stop at 26/27.
I suspect its creating some type of memory issue? Not closing something? Thanks... | [
{
"answer_id": 74322524,
"author": "chrslg",
"author_id": 20037042,
"author_profile": "https://Stackoverflow.com/users/20037042",
"pm_score": 1,
"selected": false,
"text": "in=... packager \"$input\" in=... in=... $input sudo packager $input in=... in=vid 720.mp4,output=packaged/vid 720.... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20420660/"
] |
74,322,284 | <p>The question includes that you need to have a main class consisting of fields, these fields are hours minutes, and seconds. I have to use this format and I can't import anything like datetime. the question is that I need to add 2 methods first to count full minutes in our time for example let's say we have a time of... | [
{
"answer_id": 74322524,
"author": "chrslg",
"author_id": 20037042,
"author_profile": "https://Stackoverflow.com/users/20037042",
"pm_score": 1,
"selected": false,
"text": "in=... packager \"$input\" in=... in=... $input sudo packager $input in=... in=vid 720.mp4,output=packaged/vid 720.... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19399005/"
] |
74,322,304 | <p>I am trying to add values to a 2D array in Google Apps Script. The following code runs, but is not the desired output for the array.</p>
<pre><code>function fruitList() {
var fruitArray = [['apple'], ['banana'], ['cherry']];
var newArray = [];
fruitArray.forEach(function(value) {
newArray.push([value, &qu... | [
{
"answer_id": 74322337,
"author": "TheMaster",
"author_id": 8404453,
"author_profile": "https://Stackoverflow.com/users/8404453",
"pm_score": 3,
"selected": true,
"text": "value fruitArray.forEach(function([/*destructure 1D array*/value]) {\n newArray.push([value, \"name\"]);\n});\n /*... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19286901/"
] |
74,322,307 | <p>Right now my Django + Gunicorn app is printing only this info:</p>
<pre><code>[03.10.2022 19:43:14] INFO [django.request:middleware] GET /analyse/v2/ping - 200
</code></pre>
<p>If request is authorized, I would like to show also user (username/email) behind the status code, something like:</p>
<pre><code>[03.10.2022... | [
{
"answer_id": 74575273,
"author": "Sam",
"author_id": 10708446,
"author_profile": "https://Stackoverflow.com/users/10708446",
"pm_score": 1,
"selected": false,
"text": "import logging\n\nfrom loguru import logger # optional if you are not using it already.\n\nfrom django.utils import t... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2052105/"
] |
74,322,309 | <p>I got a dataframe where some rows contains almost duplicate values. I'd like to combine these rows as much as possible to reduce the row numbers. Let's say I got following dataframe:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">One</th>
<th style="text-align:... | [
{
"answer_id": 74575273,
"author": "Sam",
"author_id": 10708446,
"author_profile": "https://Stackoverflow.com/users/10708446",
"pm_score": 1,
"selected": false,
"text": "import logging\n\nfrom loguru import logger # optional if you are not using it already.\n\nfrom django.utils import t... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15905006/"
] |
74,322,310 | <p>Here is a reproducable stackblitz -
<a href="https://stackblitz.com/edit/nuxt-starter-jlzzah?file=components/users.vue" rel="nofollow noreferrer">https://stackblitz.com/edit/nuxt-starter-jlzzah?file=components/users.vue</a></p>
<p><strong>What's wrong? -</strong>
My code fetches 15 items, and with the bottom scroll ... | [
{
"answer_id": 74322834,
"author": "cDI",
"author_id": 17882299,
"author_profile": "https://Stackoverflow.com/users/17882299",
"pm_score": 2,
"selected": true,
"text": "useFetch initialCache: false const getUsers = async (limit, skip) => {\n const { data: users } = await useFetch(\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17817556/"
] |
74,322,324 | <p>I'm trying to build a script that opens all of the web dev programs I use. I want the <code>print("Opened all apps")</code> to only run once all 3 programs have opened and fully loaded (rather than currently printing after just opening the programs and not waiting for them to load) because I want to do som... | [
{
"answer_id": 74322346,
"author": "chepner",
"author_id": 1126841,
"author_profile": "https://Stackoverflow.com/users/1126841",
"pm_score": 2,
"selected": false,
"text": "wait"
},
{
"answer_id": 74322558,
"author": "Remzinho",
"author_id": 2484591,
"author_profile": ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8758206/"
] |
74,322,377 | <p>How do I let the following code know that <code>u</code> is a string?</p>
<p>I am currently getting</p>
<blockquote>
<p><code>Argument of type 'string | number | symbol' is not assignable to parameter of type 'string'</code></p>
</blockquote>
<pre><code>interface MyDef {
a: "a",
}
export class Route... | [
{
"answer_id": 74322424,
"author": "Lesiak",
"author_id": 1570854,
"author_profile": "https://Stackoverflow.com/users/1570854",
"pm_score": 2,
"selected": true,
"text": "test class Router<T>{\n\n public generate(path: keyof T) {\n this.test(path)\n }\n\n public test(s: ke... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/345350/"
] |
74,322,378 | <p>Does anyone know how I can extract the end 6 characters in a absoloute URL e.g</p>
<pre><code>/es/ideas-de-trading-y-noticias/el-ibex-35-insiste-en-buscar-los-7900-puntos-a-la-espera-de-las--221104
</code></pre>
<p>This is not a typical URL sometimetimes it ends -221104</p>
<p>Also, is there a way to turn <code>2211... | [
{
"answer_id": 74322419,
"author": "some_programmer",
"author_id": 11135962,
"author_profile": "https://Stackoverflow.com/users/11135962",
"pm_score": 1,
"selected": false,
"text": "-- -- a = 'https://www.ig.com/es/ideas-de-trading-y-noticias/el-ibex-35-insiste-en-buscar-los-7900-puntos-... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20401143/"
] |
74,322,463 | <p>If I have an object parent like this, and an object with every field name is the ID which include the array like childs. How can I do to have clone the parent become children with different attritube as the result I mention below?</p>
<pre><code>var parent = {
'Name': 'Product ABC',
}
var attributes = {
// ... | [
{
"answer_id": 74322419,
"author": "some_programmer",
"author_id": 11135962,
"author_profile": "https://Stackoverflow.com/users/11135962",
"pm_score": 1,
"selected": false,
"text": "-- -- a = 'https://www.ig.com/es/ideas-de-trading-y-noticias/el-ibex-35-insiste-en-buscar-los-7900-puntos-... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2622760/"
] |
74,322,510 | <p>I want to make data subset with logical expression i have stored in string, like this:</p>
<pre><code>logical_var = paste0("input_dataset$","heigth >= 1.60")
</code></pre>
<p>but i cant use it as</p>
<pre><code>subset_data <- input_dataset[ which(logical_var), ]
</code></pre>
<p>or</p>
<pre... | [
{
"answer_id": 74322419,
"author": "some_programmer",
"author_id": 11135962,
"author_profile": "https://Stackoverflow.com/users/11135962",
"pm_score": 1,
"selected": false,
"text": "-- -- a = 'https://www.ig.com/es/ideas-de-trading-y-noticias/el-ibex-35-insiste-en-buscar-los-7900-puntos-... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7751099/"
] |
74,322,511 | <p>my column names are 22abcd123, 33sdfjsdh77, 45hgvjh77, 44vhsfgdhd88
i need my column name as 22,33,45,44.</p>
<p>I tried:
res = int(re.findall('(\d+)',df.columns[5])[0])
i got the answer for 1 column name . but I need it for every column name in a Dataframe</p>
| [
{
"answer_id": 74322573,
"author": "TheDataScienceNinja",
"author_id": 10929995,
"author_profile": "https://Stackoverflow.com/users/10929995",
"pm_score": 0,
"selected": false,
"text": "myArray = pandas.columns(df)\n newArray = []\nfor i in myArray:\n newColName = myArray[i][0:2]\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322511",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20418639/"
] |
74,322,513 | <p>Has anyone figured out how to extract the numbers 4.25%-4.5% and 4%-4.5% from the cell?</p>
<p><a href="https://i.stack.imgur.com/tjNd9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tjNd9.png" alt="enter image description here" /></a><br>
<a href="https://i.stack.imgur.com/bcUT6.png" rel="nofoll... | [
{
"answer_id": 74322573,
"author": "TheDataScienceNinja",
"author_id": 10929995,
"author_profile": "https://Stackoverflow.com/users/10929995",
"pm_score": 0,
"selected": false,
"text": "myArray = pandas.columns(df)\n newArray = []\nfor i in myArray:\n newColName = myArray[i][0:2]\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322513",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17271656/"
] |
74,322,557 | <p>I using to jsf for web app learn. But not showing value in index.xhtml . My class name is JsfBean and Named value is cdiBean. I want to call patika variable . How can I solve this problem? Is have info anyone</p>
<p>index.xhtml file</p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN... | [
{
"answer_id": 74322573,
"author": "TheDataScienceNinja",
"author_id": 10929995,
"author_profile": "https://Stackoverflow.com/users/10929995",
"pm_score": 0,
"selected": false,
"text": "myArray = pandas.columns(df)\n newArray = []\nfor i in myArray:\n newColName = myArray[i][0:2]\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12785216/"
] |
74,322,570 | <p>I have a stock dataset which for the sake of simplicity of this question only has a 'close' column and looks like this:</p>
<pre><code>import pandas as pd
df = pd.DataFrame({'close': [1, 1.01, 1.015, 1.0, 0.98]})
print(df)
close
0 1.000
1 1.010
2 1.015
3 1.000
4 0.980
</code></pre>
<p>Now I want to classi... | [
{
"answer_id": 74322573,
"author": "TheDataScienceNinja",
"author_id": 10929995,
"author_profile": "https://Stackoverflow.com/users/10929995",
"pm_score": 0,
"selected": false,
"text": "myArray = pandas.columns(df)\n newArray = []\nfor i in myArray:\n newColName = myArray[i][0:2]\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322570",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17101330/"
] |
74,322,577 | <p>As title says, my latest attempt will compare a column to the other column and iterate through each row. However, I am stuck on how to go to the next columns to iterate through.</p>
<pre><code> Dim i As Long
Dim s1, s2 As Worksheet
Set s1 = Worksheets("sheet1")
Set s2= Worksheets("... | [
{
"answer_id": 74322573,
"author": "TheDataScienceNinja",
"author_id": 10929995,
"author_profile": "https://Stackoverflow.com/users/10929995",
"pm_score": 0,
"selected": false,
"text": "myArray = pandas.columns(df)\n newArray = []\nfor i in myArray:\n newColName = myArray[i][0:2]\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322577",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17205679/"
] |
74,322,588 | <h3>Sample data:</h3>
<pre class="lang-none prettyprint-override"><code>Apple iPhone 14
Samsung Galaxy S22
Xiaomi Redmi 9
John Doe
</code></pre>
<h3>Desired output:</h3>
<pre class="lang-none prettyprint-override"><code>iPhone 14
Galaxy S22
Redmi 9
Doe
</code></pre>
<p>I'd like open a .txt file. How do I remove every f... | [
{
"answer_id": 74322573,
"author": "TheDataScienceNinja",
"author_id": 10929995,
"author_profile": "https://Stackoverflow.com/users/10929995",
"pm_score": 0,
"selected": false,
"text": "myArray = pandas.columns(df)\n newArray = []\nfor i in myArray:\n newColName = myArray[i][0:2]\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322588",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20275480/"
] |
74,322,591 | <p>Here's code</p>
<pre><code>const prompt = require('prompt-sync')({ sigInt: true})
/* It's generating a random number from 0 to 100. */
let wylosowanaLiczba = Math.random() * 100
/* It's converting the number to an integer. */
wylosowanaLiczba = wylosowanaLiczba.toFixed(0)
/* It's asking the user to input a number... | [
{
"answer_id": 74322573,
"author": "TheDataScienceNinja",
"author_id": 10929995,
"author_profile": "https://Stackoverflow.com/users/10929995",
"pm_score": 0,
"selected": false,
"text": "myArray = pandas.columns(df)\n newArray = []\nfor i in myArray:\n newColName = myArray[i][0:2]\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15842662/"
] |
74,322,614 | <p>I have a pandas data frame <code>data</code> with several columns. One of these columns is <code>GEN</code>. This column contains german cities as strings. Some of these cities are in a bad format, meaning that they have values like <code>"Frankfurt a.Main"</code>. For every element in <code>data['GEN']</c... | [
{
"answer_id": 74322573,
"author": "TheDataScienceNinja",
"author_id": 10929995,
"author_profile": "https://Stackoverflow.com/users/10929995",
"pm_score": 0,
"selected": false,
"text": "myArray = pandas.columns(df)\n newArray = []\nfor i in myArray:\n newColName = myArray[i][0:2]\n ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4471935/"
] |
74,322,623 | <p>I have a dataframe like this:</p>
<pre><code>df
name A B C D
0 name1 11 12 13 14
1 name2 21 22 23 24
</code></pre>
<p>And there is this dictionary:</p>
<pre><code>d = {'name1': {'1': {'0': 9, '1': 0, '2': 0},
'2': {'0': 14, '1': 8, '2': 10},
... | [
{
"answer_id": 74322968,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": false,
"text": "df = df.merge(\n pd.DataFrame(d).T.reset_index().rename(columns={\"index\": \"name\"}), on=\"name\"\n).se... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18048089/"
] |
74,322,628 | <p>I would like to use a parent function that creates two additional plot functions, and when I call the parent function, I would like both plots to be returned. Ideally, I would like the plots to be returned as two separate objects instead of using something like <code>par()</code> to combine the two plots into a sing... | [
{
"answer_id": 74322855,
"author": "M.Viking",
"author_id": 10276092,
"author_profile": "https://Stackoverflow.com/users/10276092",
"pm_score": 2,
"selected": false,
"text": "return() multi-argument returns are not permitted test_fx <- function() {\n \n # Define the first plot\n plot1... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4716625/"
] |
74,322,631 | <p>I tried running my game on a html website, but it didn't work.
can i use html or css or javascript to open and application or .exe</p>
<p>i tried using iframe but it just shows me the parent directory [This is the image i receive] (<a href="https://i.stack.imgur.com/kUChj.png" rel="nofollow noreferrer">https://i.sta... | [
{
"answer_id": 74322865,
"author": "loretoparisi",
"author_id": 758836,
"author_profile": "https://Stackoverflow.com/users/758836",
"pm_score": 2,
"selected": false,
"text": "<py-script> <py-script>\n from datetime import datetime\n now = datetime.now()\n now.strftime(\"%m/%d/%Y, ... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20420993/"
] |
74,322,632 | <p>I want to start a celery process that always runs in the background. I want these running process to be able to track system resource (CPU, RAM, etc) usage of all other processes that will be started when a new task is needed to be executed in parallel. And then I want the tracking process to log the data to file at... | [
{
"answer_id": 74322813,
"author": "J_H",
"author_id": 8431111,
"author_profile": "https://Stackoverflow.com/users/8431111",
"pm_score": 1,
"selected": false,
"text": "$ ps axup ${PID} wait4() getrusage()"
},
{
"answer_id": 74324150,
"author": "chrslg",
"author_id": 20037... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8862275/"
] |
74,322,635 | <p>I have a dataframe df with column time as a string.</p>
<p><a href="https://i.stack.imgur.com/oNW5e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oNW5e.png" alt="enter image description here" /></a></p>
<p>I want to get a count of these entries grouped hourly.</p>
<p>for example how many time en... | [
{
"answer_id": 74322813,
"author": "J_H",
"author_id": 8431111,
"author_profile": "https://Stackoverflow.com/users/8431111",
"pm_score": 1,
"selected": false,
"text": "$ ps axup ${PID} wait4() getrusage()"
},
{
"answer_id": 74324150,
"author": "chrslg",
"author_id": 20037... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14915169/"
] |
74,322,676 | <p>I would like to simulate typing of huge text. I've tried to use pyautogui to do that, but I't didn't worked properly since the computer was not detecting the keys being pressed:</p>
<pre><code>pyautogui.typewrite('I love python! It is such an amazing language.')
</code></pre>
<p>I couldn't think of another way to do... | [
{
"answer_id": 74322717,
"author": "The Myth",
"author_id": 15042008,
"author_profile": "https://Stackoverflow.com/users/15042008",
"pm_score": 2,
"selected": false,
"text": "keyboard import keyboard as kbd # importing keyboard module\nimport time\nstring = \"I love python! It is such an... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16663325/"
] |
74,322,683 | <p>I have the following list of dictionaries and I'm trying to come up with a single connected sentence based on whether the fact that the dictionary of the child sentences have the "ref" attribute connecting it to the father sentence.</p>
<pre><code>clause_list = [
{"id": "T1", "... | [
{
"answer_id": 74322829,
"author": "Zach J.",
"author_id": 20276330,
"author_profile": "https://Stackoverflow.com/users/20276330",
"pm_score": 0,
"selected": false,
"text": "clause_list = {\n # ID's are the keys\n 'T1':{'text':\"hi \", 'child':'T2','parent':True}, \n 'T2':{'text':\"I'... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14442152/"
] |
74,322,730 | <p>Can someone help me with checkboxes and image</p>
<p>i need the do a college homework with java</p>
<p>i want to create logic gates with gui</p>
<p>example</p>
<p>and gate</p>
<p>2 checkbox</p>
<p>and one image</p>
<p>if both checked image turn green</p>
<p>if 1 or 0 checked image turn red Can Someone help me to do ... | [
{
"answer_id": 74322829,
"author": "Zach J.",
"author_id": 20276330,
"author_profile": "https://Stackoverflow.com/users/20276330",
"pm_score": 0,
"selected": false,
"text": "clause_list = {\n # ID's are the keys\n 'T1':{'text':\"hi \", 'child':'T2','parent':True}, \n 'T2':{'text':\"I'... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19323597/"
] |
74,322,745 | <p>I am trying to position a div over another by using <code>position: relative;</code> & <code>position: absolute;</code>. I have made use of this successfully previously in the project, however it isn't given the desired outcome/working on the second use of it. All it is doing is displaying the second div under t... | [
{
"answer_id": 74322933,
"author": "kimia shahbaghi",
"author_id": 20275256,
"author_profile": "https://Stackoverflow.com/users/20275256",
"pm_score": 2,
"selected": true,
"text": " <header>\n <img\n class=\"header-img\"\n src=\"https://i.pinimg.com/222x/ec/c6/f2/ecc6f... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322745",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19619999/"
] |
74,322,756 | <p>I'm trying to get a single parameter from csv file loaded into python.
I created rows and appended into row variable
File is saved like Column : Fruit, Amount, Price
Apple, 30, 0.5
<a href="https://i.stack.imgur.com/fhBaz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fhBaz.png" alt="enter image ... | [
{
"answer_id": 74322933,
"author": "kimia shahbaghi",
"author_id": 20275256,
"author_profile": "https://Stackoverflow.com/users/20275256",
"pm_score": 2,
"selected": true,
"text": " <header>\n <img\n class=\"header-img\"\n src=\"https://i.pinimg.com/222x/ec/c6/f2/ecc6f... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15186937/"
] |
74,322,757 | <p>I am scraping some data from GitHub. The RESTful URL to this particular PR shows that it has a <code>merge_commit_sha</code> value: <a href="https://api.github.com/repos/ansible/ansible/pulls/15088" rel="nofollow noreferrer">https://api.github.com/repos/ansible/ansible/pulls/15088</a></p>
<p>However, when I try to g... | [
{
"answer_id": 74322933,
"author": "kimia shahbaghi",
"author_id": 20275256,
"author_profile": "https://Stackoverflow.com/users/20275256",
"pm_score": 2,
"selected": true,
"text": " <header>\n <img\n class=\"header-img\"\n src=\"https://i.pinimg.com/222x/ec/c6/f2/ecc6f... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5420257/"
] |
74,322,827 | <p>I am trying to convert a date column (ie. 2012-10-02) to the first day of the year with time (ie. 2012-01-01T00:00:00) in sql.</p>
<p>Is there a way to do so in the SELECT query?</p>
| [
{
"answer_id": 74322866,
"author": "Guss",
"author_id": 53538,
"author_profile": "https://Stackoverflow.com/users/53538",
"pm_score": 0,
"selected": false,
"text": "YEAR()"
},
{
"answer_id": 74323007,
"author": "Mikhail Berlyant",
"author_id": 5221944,
"author_profile... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20421146/"
] |
74,322,839 | <p>Is there a way to specify the connection method when using a proxy?
I'm using the below code which sends an HTTP CONNECT. That is not supported by my load balancer. A GET request would terminate the TLS connection between the proxy and the website. The CONNECT method creates a TLS connection end to end between the e... | [
{
"answer_id": 74322866,
"author": "Guss",
"author_id": 53538,
"author_profile": "https://Stackoverflow.com/users/53538",
"pm_score": 0,
"selected": false,
"text": "YEAR()"
},
{
"answer_id": 74323007,
"author": "Mikhail Berlyant",
"author_id": 5221944,
"author_profile... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322839",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13676224/"
] |
74,322,857 | <p>I am using pandas to convert dict to html table, but not able to figure out, how to convert row to column in this case?</p>
<pre><code>import pandas as pd
c = {'result': 'FAIL', "LinkA": "https:// example.com/dwdewdbeuwwuvdwudwufdqwdqqdqdqdqwedeuq.txt",
"NDT": "https://exampl... | [
{
"answer_id": 74322976,
"author": "Ian Thompson",
"author_id": 6509519,
"author_profile": "https://Stackoverflow.com/users/6509519",
"pm_score": 2,
"selected": true,
"text": "df pd.DataFrame.from_dict \nimport pandas as pd\n\nc = {'result': 'FAIL', \"LinkA\": \"https:// example.com/dwde... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1025140/"
] |
74,322,860 | <p>I currently have a project that has grown quite a bit and I wonder if it is possible to break it down into small elements without the need to destroy everything that has been deployed in the cloud, I have worked with modules for lambda, event bridge, api gateway for example.</p>
<p>im using terraform Terraform v1.2.... | [
{
"answer_id": 74322936,
"author": "YCF_L",
"author_id": 5558072,
"author_profile": "https://Stackoverflow.com/users/5558072",
"pm_score": 0,
"selected": false,
"text": "terraform.tfstate terraform state list terraform state mv -state-out=../child/terraform.tfstate module.xxxx module.xxx... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2152241/"
] |
74,322,864 | <p>In the process of refactoring some legacy code at work and part of it is to convert an instance of <code>List<Action></code> to <code>List<Func<Task>></code>. Elsewhere in the codebase, there are several instances of something along the lines of this:</p>
<pre><code>entity.Tasks.Add(() =>
{
... | [
{
"answer_id": 74323164,
"author": "Metro Smurf",
"author_id": 9664,
"author_profile": "https://Stackoverflow.com/users/9664",
"pm_score": 0,
"selected": false,
"text": "List<Action> void List<Func<Task>> Task entity.Tasks List<Action> List<Func<Task>> Action static Task Shim( Action act... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9647366/"
] |
74,322,878 | <p>Practicing some regex.
Trying to only get <code>Regular</code>, <code>Expressions,</code> and <code>abbreviated</code>
from the below data</p>
<pre><code>Regular Expressions, abbreviated as Regex or Regexp, are a string of characters created within the framework of Regex syntax rules.
</code></pre>
<p>With <code>(\... | [
{
"answer_id": 74323164,
"author": "Metro Smurf",
"author_id": 9664,
"author_profile": "https://Stackoverflow.com/users/9664",
"pm_score": 0,
"selected": false,
"text": "List<Action> void List<Func<Task>> Task entity.Tasks List<Action> List<Func<Task>> Action static Task Shim( Action act... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19132706/"
] |
74,322,890 | <p>I have to add a JavaScript function on a button click inside a plugin, i've tried but every time i update the plugin the function get removed how can i add permanently the function?</p>
| [
{
"answer_id": 74324756,
"author": "zillionera_dev",
"author_id": 15306153,
"author_profile": "https://Stackoverflow.com/users/15306153",
"pm_score": 0,
"selected": false,
"text": "add_filter('site_transient_update_plugins', 'remove_update_notification');\nfunction remove_update_notifica... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20044335/"
] |
74,322,894 | <p>I have a set which contains objects which I have the <code>__eq__</code> and <code>__hash__</code> functions defined for.</p>
<p>I would like to be able to check if an object with the same hash is in the set and if it is in the set to return the object from the set as I need the reference to the object.</p>
<pre><co... | [
{
"answer_id": 74323018,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 4,
"selected": true,
"text": "x = SetObject(1,2,3)\ny = SetObject(4,5,6)\n\nobject_set = dict([(x, x),(y, y)])\n\nprint(f\"{object_set=}\")\n\nz = S... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5691573/"
] |
74,322,931 | <p>Looks like this:</p>
<p>A | B | C
True | databasename.abc.flag | ??
IF(AND(A1"True",B1="flag"),"Success")</p>
| [
{
"answer_id": 74323018,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 4,
"selected": true,
"text": "x = SetObject(1,2,3)\ny = SetObject(4,5,6)\n\nobject_set = dict([(x, x),(y, y)])\n\nprint(f\"{object_set=}\")\n\nz = S... | 2022/11/04 | [
"https://Stackoverflow.com/questions/74322931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15700014/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.