qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,406,293 | <p>Minimal reproducable Example</p>
<pre><code>from tkinter import *
def test(event):
print(event.widget)
window = Tk()
window.geometry("600x600")
window.bind("<Motion>", test)
frame = Frame(window, bg="red", width=200, height=200)
frame.pack()
frame.bind("<Motion>&... | [
{
"answer_id": 74407487,
"author": "Jonesgamings",
"author_id": 12453265,
"author_profile": "https://Stackoverflow.com/users/12453265",
"pm_score": 0,
"selected": false,
"text": "\ndef test(event, widget):\n print(widget)\n\nwindow = Tk()\nwindow.geometry(\"600x600\")\nwindow.bind(\"<... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406293",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15544018/"
] |
74,406,316 | <p>I want to implement a switch for toggling dark mode in my application. After investigating multiple sources on how to do this correctly, I came across this one-line solution:</p>
<pre><code>AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
</code></pre>
<p>Unfortunately, in my case this only ch... | [
{
"answer_id": 74407011,
"author": "cactustictacs",
"author_id": 13598222,
"author_profile": "https://Stackoverflow.com/users/13598222",
"pm_score": 1,
"selected": false,
"text": "AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)\n // check the mode\nval isDarkMode =... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3371414/"
] |
74,406,349 | <p>I have a div for a menu which has overflow-x set to hidden. This makes the scrollbar appear when content overflows out of the div. currently the scrollbar is only on the right side, but I want to move it over to the left. Is this possible?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="tr... | [
{
"answer_id": 74406621,
"author": "Kosh",
"author_id": 5724303,
"author_profile": "https://Stackoverflow.com/users/5724303",
"pm_score": 2,
"selected": false,
"text": ".scroll-at-left {\n width: 200px;\n height: 95vh;\n overflow-y: scroll;\n transform: rotateY(180deg);\n}\n\n.scroll... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20442916/"
] |
74,406,353 | <p>I am trying to use broadcast feature of numpy on my large data. I have list columns that can have hundreds of elements in many rows. I need to filter rows based on presence of columns value in the list column. If number in <code>col_a</code> is present in <code>col_b</code>, I need to filter IN that row.</p>
<p>Samp... | [
{
"answer_id": 74406741,
"author": "Brian",
"author_id": 6567270,
"author_profile": "https://Stackoverflow.com/users/6567270",
"pm_score": 2,
"selected": false,
"text": "import pandas as pd\nimport numpy as np\nfrom itertools import product\n dt2 = pd.DataFrame([j for i in dt.values for ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406353",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10722752/"
] |
74,406,375 | <p>I need to use asammdf as part of my app to concatenate multiple .MF4 files. If you know about other ways, I will gladly try other packages.</p>
<p>Problem is that it runs on windows but once I try to build docker image (on linux) with asammdf (tried same version as I have on windows and even some other) in requireme... | [
{
"answer_id": 74432121,
"author": "Takumi Okamoto",
"author_id": 4776042,
"author_profile": "https://Stackoverflow.com/users/4776042",
"pm_score": 3,
"selected": true,
"text": "RUN apt-get install build-essential"
}
] | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5990202/"
] |
74,406,384 | <p>Hey (sorry bad english) so let me explain a little further. i want to make a function that takes in a list. let's say a list with a countries and their capital also added their population. i want to return every country-capital pair that dosen't contain the same letter.
like this:</p>
<pre><code>countries = [
[&... | [
{
"answer_id": 74432121,
"author": "Takumi Okamoto",
"author_id": 4776042,
"author_profile": "https://Stackoverflow.com/users/4776042",
"pm_score": 3,
"selected": true,
"text": "RUN apt-get install build-essential"
}
] | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406384",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20241890/"
] |
74,406,449 | <p>We use managed Airflow inside a GCP project.</p>
<p>When I used BigQueryInsertJobOperator to execute queries in a query file, it used to automatically replace user_defined_macros in those files with the set value.</p>
<pre><code>from airflow import DAG
from datetime import datetime
from airflow.providers.google.clou... | [
{
"answer_id": 74432121,
"author": "Takumi Okamoto",
"author_id": 4776042,
"author_profile": "https://Stackoverflow.com/users/4776042",
"pm_score": 3,
"selected": true,
"text": "RUN apt-get install build-essential"
}
] | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4635851/"
] |
74,406,454 | <p>I am trying to connect tot he database and extract the contents, but whenever I try, I get this error:</p>
<blockquote>
<p>System.InvalidOperationException: Invalid attempt to read when no data is present.</p>
</blockquote>
<p>I'm not sure why no data is being read from the table, it seems to work perfectly fine whe... | [
{
"answer_id": 74406497,
"author": "Indept Studios",
"author_id": 19262048,
"author_profile": "https://Stackoverflow.com/users/19262048",
"pm_score": 1,
"selected": false,
"text": "while(reader.read())\n{\n// code here\n}\n"
},
{
"answer_id": 74406568,
"author": "WandererAbov... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19529866/"
] |
74,406,480 | <p>Below is official example in <a href="https://reactjs.org/docs/hooks-faq.html#what-can-i-do-with-hooks-that-i-couldnt-with-classes" rel="nofollow noreferrer">React document</a>. The official explanation is</p>
<blockquote>
<p>The problem is that inside the setInterval callback, the value of count does not change, be... | [
{
"answer_id": 74406497,
"author": "Indept Studios",
"author_id": 19262048,
"author_profile": "https://Stackoverflow.com/users/19262048",
"pm_score": 1,
"selected": false,
"text": "while(reader.read())\n{\n// code here\n}\n"
},
{
"answer_id": 74406568,
"author": "WandererAbov... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/887103/"
] |
74,406,488 | <p>Let's say I have 3 lists of DataFrames containing different data that I want to run the same test cases on. How do I best structure my files and code so that I have one <code>conftest.py</code> (or some sort of parent class) that contains all the test cases that each list needs to run on, and 3 child classes that ha... | [
{
"answer_id": 74406497,
"author": "Indept Studios",
"author_id": 19262048,
"author_profile": "https://Stackoverflow.com/users/19262048",
"pm_score": 1,
"selected": false,
"text": "while(reader.read())\n{\n// code here\n}\n"
},
{
"answer_id": 74406568,
"author": "WandererAbov... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8431172/"
] |
74,406,506 | <p>I have the following 2 function overloads:</p>
<pre><code>template<typename F, typename T>
void func(F f, std::vector<T>& v) { ... }
template<typename F, typename T>
void func(F f, const std::vector<T>& v) { ... }
</code></pre>
<p>The body of both of them is the same.
Is there an eas... | [
{
"answer_id": 74413222,
"author": "apple apple",
"author_id": 5980430,
"author_profile": "https://Stackoverflow.com/users/5980430",
"pm_score": 1,
"selected": false,
"text": "require #include <vector>\n#include <type_traits>\n\ntemplate<typename T>\nstruct is_vector : std::false_type{};... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5341453/"
] |
74,406,536 | <p>I'm stuck, I've searched several ways and I can't get the correct output.</p>
<pre><code>string = "Hello! I have a Big!!! problem 666 is not a good number__$"
ns =''.join([i for i in string if i.isalpha()])
print(ns)
</code></pre>
<p>HelloIhaveaBigproblemisnotagoodnumber</p>
<p>I want this output:</p>
<p>H... | [
{
"answer_id": 74406629,
"author": "C-3PO",
"author_id": 4667669,
"author_profile": "https://Stackoverflow.com/users/4667669",
"pm_score": 0,
"selected": false,
"text": "re filter from string import ascii_lowercase\nns = ''.join(filter(lambda c: c.lower() in ascii_lowercase+' ', s))\nwhi... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20480225/"
] |
74,406,551 | <p>I am recoding a <code>df</code> with columns containing "yes," "no," or "N/A." I want to recode "yes" as 1, "no" as 0, and keep "N/A" as "N/A."</p>
<p>I have written the following code:</p>
<pre><code>df$first_column <-ifelse(df$first_column==&... | [
{
"answer_id": 74406629,
"author": "C-3PO",
"author_id": 4667669,
"author_profile": "https://Stackoverflow.com/users/4667669",
"pm_score": 0,
"selected": false,
"text": "re filter from string import ascii_lowercase\nns = ''.join(filter(lambda c: c.lower() in ascii_lowercase+' ', s))\nwhi... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14482089/"
] |
74,406,685 | <p><a href="https://i.stack.imgur.com/md16P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/md16P.png" alt="Image of the error" /></a></p>
<p>when installing module on NPM i get this error and i have python 3 installed and ENV path set.</p>
<p>tried to install a NPM module and expected to install</p>... | [
{
"answer_id": 74406629,
"author": "C-3PO",
"author_id": 4667669,
"author_profile": "https://Stackoverflow.com/users/4667669",
"pm_score": 0,
"selected": false,
"text": "re filter from string import ascii_lowercase\nns = ''.join(filter(lambda c: c.lower() in ascii_lowercase+' ', s))\nwhi... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18624731/"
] |
74,406,705 | <p>I have a table list:</p>
<pre class="lang-lisp prettyprint-override"><code>(defvar moo '((:name "vince" :age 35)
(:name "jess" :age 30)))
</code></pre>
<p>and I call this function on that list:</p>
<pre class="lang-lisp prettyprint-override"><code>(defun test (name)
(remove-if-not... | [
{
"answer_id": 74406853,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 1,
"selected": false,
"text": "remove-if-not remove-if-not (defun remove-if-not (func list)\n (loop for item in list\n if (not (funcall func... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16237416/"
] |
74,406,706 | <p>I'm following a Python tutorial on youtube and need to create a django website, however I am unable to start, because when I enter "python manage.py runserver" I get the "TypeError: translation() got an unexpected keyword argument 'codeset'" message. I've run back the video like 20 times to see i... | [
{
"answer_id": 74406853,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 1,
"selected": false,
"text": "remove-if-not remove-if-not (defun remove-if-not (func list)\n (loop for item in list\n if (not (funcall func... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20480319/"
] |
74,406,730 | <p>I'm trying to create a column <code>status</code> that shows if my DataFrame values are in my directory <code>test</code>. For example does folder <code>O:\Stack\Over\Flow\2010</code> exist in the <code>O:\Stack\Over\Flow</code> directory.</p>
<p>My <code>pl_dest</code> DataFrame is like so:</p>
<pre><code> Fold... | [
{
"answer_id": 74406853,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 1,
"selected": false,
"text": "remove-if-not remove-if-not (defun remove-if-not (func list)\n (loop for item in list\n if (not (funcall func... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6346514/"
] |
74,406,738 | <p>I can do this problem using a for loop, but I'm having trouble using the recursive method.</p>
<p>I want to count how many times each vowel is called and return the most frequent vowel in an array.</p>
<p>If the array does not have a vowel to return is a string.</p>
<pre class="lang-js prettyprint-override"><code>co... | [
{
"answer_id": 74406853,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 1,
"selected": false,
"text": "remove-if-not remove-if-not (defun remove-if-not (func list)\n (loop for item in list\n if (not (funcall func... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20480353/"
] |
74,406,759 | <p>I'm trying to write a script that tracks payment dates in google sheets (shows a different colour (either FontColor or Background) three days before payment, another colour on the day of payment and a totally different colour after the payment date.I'd appreciate if there's anyone with know how on how to use those v... | [
{
"answer_id": 74406853,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 1,
"selected": false,
"text": "remove-if-not remove-if-not (defun remove-if-not (func list)\n (loop for item in list\n if (not (funcall func... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17032431/"
] |
74,406,771 | <p>I am trying to convert year and quarter to date in <code>pandas</code>. In example below I am trying to get <code>1980-03-31</code> for <code>1980Q1</code> and so on.</p>
<pre><code>df=pd.DataFrame({'year':['1980','1980','1980','1980'],'qtr':
['Q1','Q2','Q3','Q4']})
scenario['date']=pd.to_datetime(... | [
{
"answer_id": 74406885,
"author": "FObersteiner",
"author_id": 10197418,
"author_profile": "https://Stackoverflow.com/users/10197418",
"pm_score": 2,
"selected": true,
"text": "QuarterEnd import pandas as pd\n\ndf=pd.DataFrame({'year':['1980','1980','1980','1980'],'qtr':\n ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406771",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8923742/"
] |
74,406,816 | <p>I tried write a code that the given numbers multiply by ten for each input, and then sum all of those values. If their summation is bigger than 100 it will stop. Furthermore I want to print the output as "Program ends because <code>10*3+10*1+10\*8 = 120</code>, which is not less than 100" while the input p... | [
{
"answer_id": 74406885,
"author": "FObersteiner",
"author_id": 10197418,
"author_profile": "https://Stackoverflow.com/users/10197418",
"pm_score": 2,
"selected": true,
"text": "QuarterEnd import pandas as pd\n\ndf=pd.DataFrame({'year':['1980','1980','1980','1980'],'qtr':\n ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20480352/"
] |
74,406,827 | <p>I am trying to pivot column values (Month_End) which I have done per a few KB's but then I also need to unpivot other columns (PAC_Contract, PAC_Projected_Cost, JTD_Actual) into row values but am getting confused and not sure if PIVOT is the right want to attack this.</p>
<p>SQL2012</p>
<p>This is the Table</p>
<p><... | [
{
"answer_id": 74406885,
"author": "FObersteiner",
"author_id": 10197418,
"author_profile": "https://Stackoverflow.com/users/10197418",
"pm_score": 2,
"selected": true,
"text": "QuarterEnd import pandas as pd\n\ndf=pd.DataFrame({'year':['1980','1980','1980','1980'],'qtr':\n ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2962869/"
] |
74,406,894 | <p>I have looked at xy answers to this problem, not a single one helped. I'm creating a simple react app for writing notes for myself. After writing a note I want it to be saved even after refreshing the page. For this I wanted to use <code>useEffect</code> hook, but it doesn't do it and yes its imported from react in ... | [
{
"answer_id": 74406885,
"author": "FObersteiner",
"author_id": 10197418,
"author_profile": "https://Stackoverflow.com/users/10197418",
"pm_score": 2,
"selected": true,
"text": "QuarterEnd import pandas as pd\n\ndf=pd.DataFrame({'year':['1980','1980','1980','1980'],'qtr':\n ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16500834/"
] |
74,406,916 | <p>i have the following Problem:
I try to pass a string with some kind of "separators" to a function:
i.e. <code>string=This.string.contains.dots.as.separators</code></p>
<p>In the case above i know by looking, that the separators are dots, but in runtime someone shall also be able to pass a string like:
<cod... | [
{
"answer_id": 74409035,
"author": "Magoo",
"author_id": 2128947,
"author_profile": "https://Stackoverflow.com/users/2128947",
"pm_score": 2,
"selected": false,
"text": "@ECHO OFF\nSETLOCAL\n\nSET \"alphabet=a b c d e f g h i j k l m n o p q r s t u v w x y z\"\n\nCALL :getsep \"This.str... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9028667/"
] |
74,406,944 | <p>I am trying to write a formula that would move the Unit sold from the previous years to the year selected in column G.
Example if I select year 2025 in column G then product should show the number that is in 2022 example 100, 2026 101,2027 102. Similarly if I select 2026 in column G then 2026 should have 100, 2027 s... | [
{
"answer_id": 74407345,
"author": "Fernando Barbosa",
"author_id": 8060081,
"author_profile": "https://Stackoverflow.com/users/8060081",
"pm_score": 0,
"selected": false,
"text": "=IF($G$6>I2,0,OFFSET(I11,0,$I$2-$G$6))"
},
{
"answer_id": 74407484,
"author": "P.b",
"autho... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6331185/"
] |
74,406,982 | <p>I need to define a function that, given a list of strings, returns a string composed by the characters that are most frequent at the i-th position of every string. If multiple characters appear at the maximum frequency, the one which comes first alphabetically is chosen. <strong>External libraries are not allowed</s... | [
{
"answer_id": 74407262,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": true,
"text": "O(n*log(n)) min def f(words: list) -> str:\n chars = {}\n for word in words:\n for i, char in enumerate... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74406982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20480001/"
] |
74,407,002 | <p>In the example below, when I run <code>y_file.py</code>, I need <code>5</code> printed and <code>Hello</code> not printed.
How to stop the execution of an imported python script <code>x_file.py</code> without exiting the python altogether? <code>sys.exit()</code> seems to exit python altogether.</p>
<p><code>x_file.... | [
{
"answer_id": 74407262,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": true,
"text": "O(n*log(n)) min def f(words: list) -> str:\n chars = {}\n for word in words:\n for i, char in enumerate... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407002",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1396516/"
] |
74,407,004 | <p>I have html that looks something like this:</p>
<pre><code> <as-split unit="pixel" #mainViewSplit class="custom-gutter" direction="horizontal" gutterSize="2">
<ng-container *ngFor="let splitItem of splitData">
<as-split-area [id]="split... | [
{
"answer_id": 74410939,
"author": "jspoh",
"author_id": 20255176,
"author_profile": "https://Stackoverflow.com/users/20255176",
"pm_score": 0,
"selected": false,
"text": "[id]=\"splitItem.id ? splitItem.id : ''\"\n"
},
{
"answer_id": 74411005,
"author": "Mr. Stash",
"aut... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/218640/"
] |
74,407,019 | <p>I have a set of NUnit tests executed on a build server. I need to see test logs (results, outputs) in ApplicationInsights in Azure.</p>
<ul>
<li>NUnit has <code>ResultWriter</code> but it seems difficult to implement.</li>
<li>I can log from my test explicitly to AppInsights but I don't see failed test logs</li>
</u... | [
{
"answer_id": 74410939,
"author": "jspoh",
"author_id": 20255176,
"author_profile": "https://Stackoverflow.com/users/20255176",
"pm_score": 0,
"selected": false,
"text": "[id]=\"splitItem.id ? splitItem.id : ''\"\n"
},
{
"answer_id": 74411005,
"author": "Mr. Stash",
"aut... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/309937/"
] |
74,407,032 | <p>Here, we initialize two associative arrays <code>arr_A</code> and <code>arr_B</code> in exactly the same way, but <code>arr_A</code> is initialized on the top-level, whereast <code>arr_B</code> is initialized inside of a function <code>foo</code>:</p>
<pre><code>#!/bin/bash
declare -A arr_A
arr_A[bar]=42
function ... | [
{
"answer_id": 74407169,
"author": "John Bollinger",
"author_id": 2402272,
"author_profile": "https://Stackoverflow.com/users/2402272",
"pm_score": 4,
"selected": true,
"text": "declare local -g -g function foo() {\n declare -A -g arr_B\n arr_B[bar]=58\n echo \"content of arr_B inside... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2707792/"
] |
74,407,038 | <p>Here is my code:</p>
<pre><code>import discord
from discord.ext import commands
bot = discord.bot(command_prefix="!", help_command=None)
@bot.event
async def on_ready():
print(f"Bot logged in as {bot.user}")
bot.run("TOKEN")
</code></pre>
<p>The err... | [
{
"answer_id": 74407166,
"author": "Clement Genninasca",
"author_id": 15810170,
"author_profile": "https://Stackoverflow.com/users/15810170",
"pm_score": 1,
"selected": true,
"text": "commands.Bot() from discord.ext import commands"
},
{
"answer_id": 74409011,
"author": "jean... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18399022/"
] |
74,407,054 | <p>I am using eSignature REST API v2.1 Java to create envelope. Document is in html format with non English language. On the signing page these non English is not displayed properly. How to handle this case? Thanks,</p>
<p><code>String htmlDoc = ".... .... <p>Signera arbetsorderavtal för anställningsnummer&l... | [
{
"answer_id": 74407314,
"author": "Inbar Gazit",
"author_id": 3255871,
"author_profile": "https://Stackoverflow.com/users/3255871",
"pm_score": 0,
"selected": false,
"text": "String htmlDoc = \".... .... <p>Signera arbetsorderavtal för anställningsnummer</p> ......\";\n\nDocument docume... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407054",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20480542/"
] |
74,407,066 | <p>Typescript 4.9 features some changes to how the <code>in</code> operator works.</p>
<p>In the code snippet below, how do I convince tsc that <code>id</code> is not a primitive value?</p>
<pre class="lang-js prettyprint-override"><code>export type KeyOrId =
| {
key: string;
}
| {
id: string;
}... | [
{
"answer_id": 74413642,
"author": "Anmol kansal",
"author_id": 11652772,
"author_profile": "https://Stackoverflow.com/users/11652772",
"pm_score": 3,
"selected": true,
"text": "K extends KeyOrId | null K extends KeyOrId | null K extends KeyOrId K extends null export type KeyOrId =\n ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1924257/"
] |
74,407,074 | <p>I have a json object</p>
<pre><code>sample_json ={
"workspaces": [
{
"wsid": "1",
"wsname": "firstworkspace",
"report":[{"reportname":"r1ws1"},{"reportname":"r2ws1"},{"reportname"... | [
{
"answer_id": 74407402,
"author": "juanpa.arrivillaga",
"author_id": 5014455,
"author_profile": "https://Stackoverflow.com/users/5014455",
"pm_score": 0,
"selected": false,
"text": "df = pd.DataFrame(\n [\n {\"wsid\": ws['wsid'], \"wsname\": ws['wsname'], **rep}\n for w... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1890364/"
] |
74,407,085 | <p>I'm having trouble understanding how to deserialize a hash with <code>retrieve()</code> in Perl (v5.30.0):</p>
<pre><code>#!/usr/bin/perl
use warnings;
use strict;
use Storable;
package main;
my %origHash = (key1 => 'data1',
key2 => 'data2',
key3 => 'data3',
key4 => 'data4');
#... | [
{
"answer_id": 74407194,
"author": "toolic",
"author_id": 197758,
"author_profile": "https://Stackoverflow.com/users/197758",
"pm_score": 3,
"selected": true,
"text": "$hashref $hashref $hashref->{key2} my $hashref = retrieve('file'); # Line 24\n\n# Ret... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4040743/"
] |
74,407,095 | <p>Thank you for any definition of what "only from the first 100 commits will be linked" means.</p>
<p>Will I lose commits if I complete the Pull request ( PR )?</p>
<blockquote>
<p>This pull request will merge over 100 commits into master. Double
check the source and target branches to make sure this is inte... | [
{
"answer_id": 74407194,
"author": "toolic",
"author_id": 197758,
"author_profile": "https://Stackoverflow.com/users/197758",
"pm_score": 3,
"selected": true,
"text": "$hashref $hashref $hashref->{key2} my $hashref = retrieve('file'); # Line 24\n\n# Ret... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/245646/"
] |
74,407,103 | <p>I want to start incorporating testing with Jest in my projects but I'm having a hard time getting this test to work. When I run it I get this error thrown.</p>
<pre><code>thrown: "Exceeded timeout of 5000 ms for a test.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running... | [
{
"answer_id": 74407194,
"author": "toolic",
"author_id": 197758,
"author_profile": "https://Stackoverflow.com/users/197758",
"pm_score": 3,
"selected": true,
"text": "$hashref $hashref $hashref->{key2} my $hashref = retrieve('file'); # Line 24\n\n# Ret... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9053029/"
] |
74,407,168 | <p>I am re-building my Laravel app and, in the process, redesigning the data model.</p>
<ol>
<li>I have a subset of my Migrations (35) I need to run to create the data model in the new app.</li>
<li>Then, I need to run some Seeders to populate the new tables.</li>
<li>Some of the new tables (12) have a column "old... | [
{
"answer_id": 74455242,
"author": "thePITman",
"author_id": 744103,
"author_profile": "https://Stackoverflow.com/users/744103",
"pm_score": 2,
"selected": true,
"text": "php artisan migrate:fresh --path=/database/migrations/batch-one --seed --seeder=DatabaseSeeder\n\nphp artisan migrate... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/744103/"
] |
74,407,172 | <p>I want to search through a pdf file and find the page that contains a specific phrase. What I have so far is:</p>
<pre><code>object = PyPDF2.PdfFileReader("20220625.pdf")
numpages = object.getNumPages()
string = "SYSTEM WIDE OUTLET SUMMARY"
for i in range(0, numpages):
page = object.getPage(i... | [
{
"answer_id": 74407265,
"author": "romain gal",
"author_id": 9612932,
"author_profile": "https://Stackoverflow.com/users/9612932",
"pm_score": 0,
"selected": false,
"text": "t = PyPDF2.PdfFileReader(\"20220625.pdf\")\nnumpages = t.getNumPages()\nstring = \"SYSTEM WIDE OUTLET SUMMARY\"\n... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10298264/"
] |
74,407,198 | <p>I have an ASP.NET Core Web application that has an interface in the application that inherits a class from the interface.
I am trying to use the interface by dependency injection in the controller constructor, but I always get the following error</p>
<blockquote>
<p>An unhandled exception occurred while processing t... | [
{
"answer_id": 74407375,
"author": "julealgon",
"author_id": 1946412,
"author_profile": "https://Stackoverflow.com/users/1946412",
"pm_score": 3,
"selected": true,
"text": "public class HomeController : Controller\n{\n private readonly IsmsSender _smsSender;\n\n public HomeControll... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15918486/"
] |
74,407,205 | <p>I have simple function where I have 3 checkboxes and trying to something like if are checkboxes unchecked, button should be disabled and if I check all (not just 1 or 2), button will activate</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-cod... | [
{
"answer_id": 74407293,
"author": "tacoshy",
"author_id": 14072420,
"author_profile": "https://Stackoverflow.com/users/14072420",
"pm_score": 3,
"selected": true,
"text": "EventListener let checkboxes = document.querySelectorAll('input[type=\"checkbox\"]');\n\ncheckboxes.forEach(el =>\n... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10087217/"
] |
74,407,242 | <p>pip install Django</p>
<p>'pip' is not recognized as an internal or external command,
operable program or batch file.</p>
| [
{
"answer_id": 74407293,
"author": "tacoshy",
"author_id": 14072420,
"author_profile": "https://Stackoverflow.com/users/14072420",
"pm_score": 3,
"selected": true,
"text": "EventListener let checkboxes = document.querySelectorAll('input[type=\"checkbox\"]');\n\ncheckboxes.forEach(el =>\n... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20480706/"
] |
74,407,249 | <p><strong>New to Bootstrap and using version 5-2-0</strong></p>
<p>In my layout I wanted to have the image of the cat take up one side and then have the content and form on the other size (content first then form underneath) but I can't get it to work.</p>
<pre><code><div class="grid">
<div class=... | [
{
"answer_id": 74407293,
"author": "tacoshy",
"author_id": 14072420,
"author_profile": "https://Stackoverflow.com/users/14072420",
"pm_score": 3,
"selected": true,
"text": "EventListener let checkboxes = document.querySelectorAll('input[type=\"checkbox\"]');\n\ncheckboxes.forEach(el =>\n... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7322572/"
] |
74,407,276 | <p>I am very new to Prometheus and have the following alert in Prometheus whose goal is to get triggered when number errors in the total number of requests is higher than 5 %:</p>
<pre><code>sum(increase(errorMetric{service_name="someservice"}[5m])) / sum(increase(http_requests_count{service_name="somes... | [
{
"answer_id": 74407293,
"author": "tacoshy",
"author_id": 14072420,
"author_profile": "https://Stackoverflow.com/users/14072420",
"pm_score": 3,
"selected": true,
"text": "EventListener let checkboxes = document.querySelectorAll('input[type=\"checkbox\"]');\n\ncheckboxes.forEach(el =>\n... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/397940/"
] |
74,407,298 | <p>I was wondering if there is any way to access the expected data type within a function similar to an event arg. I am doubtful that this is possible, though it would be an excellent feature.</p>
<p>I frequently work with (old and disorganized)Mysql databases creating interfaces through VB.Net. Often I will have an op... | [
{
"answer_id": 74407870,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 2,
"selected": false,
"text": "ncc Public Function ncc(Of T)(obj As T) As T\n If DbNull.Value.Equals(obj) Then Return Nothing\n Return Obj\nE... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11937392/"
] |
74,407,325 | <p>i am trying to make my button disappear if my textarea is empty</p>
<p>until now i have made some code for it but i still cant do it</p>
<p>in the code i am trying to make the css dynamic by having it change accoring to some ternery condition id the condition is met the css will allow the button to work and if not ... | [
{
"answer_id": 74407410,
"author": "windowsill",
"author_id": 5708566,
"author_profile": "https://Stackoverflow.com/users/5708566",
"pm_score": 2,
"selected": false,
"text": "{textAreaText && <button ... />}\n"
},
{
"answer_id": 74407625,
"author": "Mahesh Samudra",
"auth... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20181776/"
] |
74,407,353 | <p>i have a js file action.js and i want to use javaScript in angular. so when i read about it, it says that js file must be put in assets and the path must be refered in scripts array in angular.json and then using declare in ts and ngOnInit but this raises an error that the function is undefined beside that is forbid... | [
{
"answer_id": 74407410,
"author": "windowsill",
"author_id": 5708566,
"author_profile": "https://Stackoverflow.com/users/5708566",
"pm_score": 2,
"selected": false,
"text": "{textAreaText && <button ... />}\n"
},
{
"answer_id": 74407625,
"author": "Mahesh Samudra",
"auth... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407353",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19671309/"
] |
74,407,415 | <p><a href="https://i.stack.imgur.com/uUp6e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uUp6e.png" alt="nginx configuration" /></a></p>
<p>i tried to forward traffic from server 192.168.243.71 to domain that show in command "oc get routes" / "kubectl get ingress", but its not ... | [
{
"answer_id": 74407410,
"author": "windowsill",
"author_id": 5708566,
"author_profile": "https://Stackoverflow.com/users/5708566",
"pm_score": 2,
"selected": false,
"text": "{textAreaText && <button ... />}\n"
},
{
"answer_id": 74407625,
"author": "Mahesh Samudra",
"auth... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407415",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20480806/"
] |
74,407,418 | <p>I am just learning R and got to functions. I have made a function of 0 or more variables, but they always return one value. I can make a function that returns a vector of values using <code>c(x,y,z)</code>, but when I input a vector, it just returns a longer vector. For example if I make a function <code>f <- fun... | [
{
"answer_id": 74407474,
"author": "zephryl",
"author_id": 17303805,
"author_profile": "https://Stackoverflow.com/users/17303805",
"pm_score": 2,
"selected": true,
"text": "matrix() nrow f <- function(x) {\n matrix(c(x, x^2, x^3), nrow = length(x))\n} \n\nf(c(2, 3, 4))\n\n#> [,1] [... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20200813/"
] |
74,407,437 | <p><a href="https://i.stack.imgur.com/i1LdP.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i1LdP.jpg" alt="what I want" /></a></p>
<p>I want to make this - when you hover over each image, the text is different. it's for company bios. this has been driving me insane. it seems if text is in not in the... | [
{
"answer_id": 74407474,
"author": "zephryl",
"author_id": 17303805,
"author_profile": "https://Stackoverflow.com/users/17303805",
"pm_score": 2,
"selected": true,
"text": "matrix() nrow f <- function(x) {\n matrix(c(x, x^2, x^3), nrow = length(x))\n} \n\nf(c(2, 3, 4))\n\n#> [,1] [... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9105397/"
] |
74,407,506 | <p>I have an WPF User control which is is hosted in an Elementhost. I use elementhost to include an WPF user control in my classical Windows forms app.</p>
<p>Now, from Windows forms side I am trying to capture the mouseDown event that is produced in an WPF label but I don't know how to do it.</p>
<p>Any ideas?</p>
| [
{
"answer_id": 74407474,
"author": "zephryl",
"author_id": 17303805,
"author_profile": "https://Stackoverflow.com/users/17303805",
"pm_score": 2,
"selected": true,
"text": "matrix() nrow f <- function(x) {\n matrix(c(x, x^2, x^3), nrow = length(x))\n} \n\nf(c(2, 3, 4))\n\n#> [,1] [... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1624552/"
] |
74,407,523 | <p>Lately I've stuck with some project. What I want to do?
I have some number of classes. Let's say something like that:</p>
<pre class="lang-c# prettyprint-override"><code>public class ActionEventArgs : EventArgs
{
public Creature actor;
}
public class LocationEventArgs : ActionEventArgs
{
public Location loc... | [
{
"answer_id": 74407474,
"author": "zephryl",
"author_id": 17303805,
"author_profile": "https://Stackoverflow.com/users/17303805",
"pm_score": 2,
"selected": true,
"text": "matrix() nrow f <- function(x) {\n matrix(c(x, x^2, x^3), nrow = length(x))\n} \n\nf(c(2, 3, 4))\n\n#> [,1] [... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19283087/"
] |
74,407,545 | <p>I am using windows 11 and have installed python 2.7 first, and python 3.10 right after. I have set the environment path for both.</p>
<p>I have also made a copy of the python exe and renamed them to "python2" and "python3" (see below)</p>
<p><a href="https://i.imgur.com/oZlL2iS.jpeg" rel="nofollo... | [
{
"answer_id": 74407474,
"author": "zephryl",
"author_id": 17303805,
"author_profile": "https://Stackoverflow.com/users/17303805",
"pm_score": 2,
"selected": true,
"text": "matrix() nrow f <- function(x) {\n matrix(c(x, x^2, x^3), nrow = length(x))\n} \n\nf(c(2, 3, 4))\n\n#> [,1] [... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4472210/"
] |
74,407,566 | <p>My data is in decimal type eg. 1.5. I need to convert into DD: HH:MM.</p>
<p>So in my case it should display as 1 Hr and 30 min. I'm new to sql & plsql.</p>
| [
{
"answer_id": 74407474,
"author": "zephryl",
"author_id": 17303805,
"author_profile": "https://Stackoverflow.com/users/17303805",
"pm_score": 2,
"selected": true,
"text": "matrix() nrow f <- function(x) {\n matrix(c(x, x^2, x^3), nrow = length(x))\n} \n\nf(c(2, 3, 4))\n\n#> [,1] [... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407566",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20480963/"
] |
74,407,585 | <p>I am trying to update a timestamp on DB2 i Series table but it is failing.</p>
<pre><code>UPDATE table1
SET datetime1 = CURRENT TIMESTAMP
FROM table1 tbl1
INNER JOIN table2 tbl2 ON tbl1.ID = tbl2.ID
</code></pre>
<p>The error I am getting is that <code>Keyword FROM not expected</code>.</p>
<p>Thx in advance</p>
| [
{
"answer_id": 74407474,
"author": "zephryl",
"author_id": 17303805,
"author_profile": "https://Stackoverflow.com/users/17303805",
"pm_score": 2,
"selected": true,
"text": "matrix() nrow f <- function(x) {\n matrix(c(x, x^2, x^3), nrow = length(x))\n} \n\nf(c(2, 3, 4))\n\n#> [,1] [... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15357969/"
] |
74,407,595 | <p>I am reading lines from a tsv file, and then trying to delimit them by <code>words = array.split("\t")</code></p>
<p>words is an array that i have already initiated by <code>String[] words = {"0", "0", "0", "0", "0", "0"}</code> so it has a fixed ... | [
{
"answer_id": 74408428,
"author": "hayden.mumm",
"author_id": 13270701,
"author_profile": "https://Stackoverflow.com/users/13270701",
"pm_score": 2,
"selected": false,
"text": "String[] splitWithoutLimit = \"Column1,Column2,Column3\".split(\",\")\n\n// splitWithoutLimit will contain the... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7143413/"
] |
74,407,602 | <p>I want to create two items (Circle above text, centered horizontally) according to following image:</p>
<p><a href="https://i.stack.imgur.com/s68mO.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s68mO.jpg" alt="enter image description here" /></a></p>
<p>I have created following code:</p>
<pre><c... | [
{
"answer_id": 74408428,
"author": "hayden.mumm",
"author_id": 13270701,
"author_profile": "https://Stackoverflow.com/users/13270701",
"pm_score": 2,
"selected": false,
"text": "String[] splitWithoutLimit = \"Column1,Column2,Column3\".split(\",\")\n\n// splitWithoutLimit will contain the... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407602",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1619036/"
] |
74,407,603 | <p>We have a system take takes a JSON array as a parameter to define matching records. To keep things simple, we have a query:</p>
<pre><code>SELECT ai.ID
FROM association_internal ai
WHERE ai.source_object_record_id MEMBER OF('[57928,57927]');
</code></pre>
<p>Now the above call takes 380ms, which is ridiculous. Why... | [
{
"answer_id": 74408428,
"author": "hayden.mumm",
"author_id": 13270701,
"author_profile": "https://Stackoverflow.com/users/13270701",
"pm_score": 2,
"selected": false,
"text": "String[] splitWithoutLimit = \"Column1,Column2,Column3\".split(\",\")\n\n// splitWithoutLimit will contain the... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1857894/"
] |
74,407,615 | <p>I'm having this error when I try running the app with "npm run android". Everything was working perfectly until this happened. Here's the build log:</p>
<p>`</p>
<pre><code>> DriverApp@0.0.1 android
> react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it... | [
{
"answer_id": 74582534,
"author": "sabrim",
"author_id": 13347859,
"author_profile": "https://Stackoverflow.com/users/13347859",
"pm_score": 1,
"selected": true,
"text": "buildscript {\n // ...\n}\n\n\nallprojects {\n repositories {\n exclusiveContent {\n filter {\... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13347859/"
] |
74,407,626 | <p>I have tried several times to code that will display text for an hour, after the functions has occurred.</p>
<p>But the function <em>Date</em> exist on a time period of day, hour, minute, I just want to display the text for one hour.</p>
<pre><code> Fucntion() {
var Text = "Show for an hour and will d... | [
{
"answer_id": 74407763,
"author": "Carsten Massmann",
"author_id": 2610061,
"author_profile": "https://Stackoverflow.com/users/2610061",
"pm_score": 2,
"selected": false,
"text": "setTimeout() setTimeout(_=>document.querySelector(\"h2\").style.display=\"none\",10000); <h2>This will disa... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18464210/"
] |
74,407,649 | <p>I'm trying to build iOS Flutter app. It throwns me this error:</p>
<p><a href="https://pastebin.com/NG6EWWcj" rel="nofollow noreferrer">https://pastebin.com/NG6EWWcj</a></p>
<p><code>Error running pod install</code></p>
| [
{
"answer_id": 74407763,
"author": "Carsten Massmann",
"author_id": 2610061,
"author_profile": "https://Stackoverflow.com/users/2610061",
"pm_score": 2,
"selected": false,
"text": "setTimeout() setTimeout(_=>document.querySelector(\"h2\").style.display=\"none\",10000); <h2>This will disa... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407649",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19290739/"
] |
74,407,681 | <p>I'm aware of mutable parameter behavior. Why the list is not set up to None when I send and unpack **dictionary as argument? The common_header.png repeads, it means is stored in list. That is weird to me and I couldn't find answer for the question...
I'm learning, happy to hear any other suggestions to code, thank y... | [
{
"answer_id": 74407790,
"author": "Bill Lynch",
"author_id": 47453,
"author_profile": "https://Stackoverflow.com/users/47453",
"pm_score": 2,
"selected": false,
"text": "pictures = [\"holidays1.png\", \"easter_grandma.png\"]\n\ntest_data1 = {\n \"gender\": \"male\",\n \"last\": \"... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20480956/"
] |
74,407,700 | <p>I have a structure:</p>
<pre class="lang-c prettyprint-override"><code>struct Path{
int8_t maxtopy;
};
</code></pre>
<p>And I want to create an array of pointers to structure <code>Path</code>. I've tried something like that:</p>
<pre class="lang-c prettyprint-override"><code>int main(){
struct Path *paths[N... | [
{
"answer_id": 74407893,
"author": "Chris",
"author_id": 15261315,
"author_profile": "https://Stackoverflow.com/users/15261315",
"pm_score": 2,
"selected": true,
"text": "malloc struct Path{\n int8_t maxtopy;\n};\n\nint main(void) {\n struct Path *paths[NUMBER_OF_PATHS]; \n\n fo... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14340849/"
] |
74,407,701 | <p>I'm need to declare incomplete type (may it be <code>siginfo_t</code>) in header, and in source import some system header (<code>sys/signal.h</code>), that defines that type.</p>
<p>So, here is the problem:</p>
<pre class="lang-cpp prettyprint-override"><code>// a.h
struct siginfo_t;
void foo(siginfo_t*);
</code></... | [
{
"answer_id": 74407793,
"author": "Vlad from Moscow",
"author_id": 2877241,
"author_profile": "https://Stackoverflow.com/users/2877241",
"pm_score": 3,
"selected": false,
"text": "<sys/siginfo.h> siginfo_t typedef struct {\n int si_signo;\n int si_code;\n union sigval si_value;... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6872226/"
] |
74,407,705 | <p>I spent 1 week trying to upgrade Magento from version 2.2 to 2.4.
In order to proceed I have downloaded and I am using composer 1.
My PHP version is 7.1 - Perfectly compatible with Magento 2.2.
With composer 1 I was able to get a "composer require" without errors.
I then launched the "composer update&... | [
{
"answer_id": 74407793,
"author": "Vlad from Moscow",
"author_id": 2877241,
"author_profile": "https://Stackoverflow.com/users/2877241",
"pm_score": 3,
"selected": false,
"text": "<sys/siginfo.h> siginfo_t typedef struct {\n int si_signo;\n int si_code;\n union sigval si_value;... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10588235/"
] |
74,407,709 | <p>This is in discord.js. So I have three items each with a unique price (more items in the future).. Sending the name of the item for example "Item 1" should reply the price. How do I use the price variable in my code? I was thinking associative array but I think there's no associate array in JS.</p>
<ol>
<l... | [
{
"answer_id": 74408452,
"author": "Josiah",
"author_id": 20463298,
"author_profile": "https://Stackoverflow.com/users/20463298",
"pm_score": 3,
"selected": true,
"text": "Map const items = new Map()\n//create map\nitems.set(\"item 1\",100)\nitems.set(\"item 2\",300)\nitems.set(\"item 3\... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/874737/"
] |
74,407,724 | <p>I have a sales data for a couple of years in an array:
var= ['Jan-2019',325678], ['feb-2019', 456789], ['Mar-2019',-12890],.....['Dec-2021', 987460]</p>
<p>1 -want to calculate the net total amount of profit/losses over the entire period.
2- Average of the (changes) in profit/losses over the entire period - track th... | [
{
"answer_id": 74408452,
"author": "Josiah",
"author_id": 20463298,
"author_profile": "https://Stackoverflow.com/users/20463298",
"pm_score": 3,
"selected": true,
"text": "Map const items = new Map()\n//create map\nitems.set(\"item 1\",100)\nitems.set(\"item 2\",300)\nitems.set(\"item 3\... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20300644/"
] |
74,407,738 | <p>Why I continue getting the error :</p>
<blockquote>
<p>missing 1 required positional argument: 'category_id'</p>
</blockquote>
<p>when the argument is already passed within query function in <code>Backend</code> class? I also don't understand the error of unfilled <code>self</code> or missing positional argument <co... | [
{
"answer_id": 74408452,
"author": "Josiah",
"author_id": 20463298,
"author_profile": "https://Stackoverflow.com/users/20463298",
"pm_score": 3,
"selected": true,
"text": "Map const items = new Map()\n//create map\nitems.set(\"item 1\",100)\nitems.set(\"item 2\",300)\nitems.set(\"item 3\... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18666779/"
] |
74,407,755 | <p>I have an array in my python program called ageArray. It contains the same attribute from each object in a group. Here's the intitialisation code:</p>
<pre><code>ageArray = [[amoeba.age] for amoeba in amoebas]
</code></pre>
<p>Because the I want the attribute to change, I intitialise it at the start of a while state... | [
{
"answer_id": 74407801,
"author": "Rabbid76",
"author_id": 5577765,
"author_profile": "https://Stackoverflow.com/users/5577765",
"pm_score": 3,
"selected": true,
"text": "[amoeba.age] ageArray = [[amoeba.age] for amoeba in amoebas]\n ageArray = [amoeba.age for amoeba in amoebas]\n"
},... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11454595/"
] |
74,407,770 | <p>I have a data frame that has a column with the following values:</p>
<pre><code>time = [5.0, 504.0, 847.0, 11.0, 1247.0]
</code></pre>
<p>I want to convert to a time in the <code>%H%M</code> format.</p>
<p>I tried using <code>to_datetime</code> but had error codes based on <code>5.0</code> entries.</p>
| [
{
"answer_id": 74407801,
"author": "Rabbid76",
"author_id": 5577765,
"author_profile": "https://Stackoverflow.com/users/5577765",
"pm_score": 3,
"selected": true,
"text": "[amoeba.age] ageArray = [[amoeba.age] for amoeba in amoebas]\n ageArray = [amoeba.age for amoeba in amoebas]\n"
},... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14067573/"
] |
74,407,782 | <pre><code>import urllib.request
import json
from collections import Counter
def count_coauthors(author_id):
coauthors_dict = {}
url_str = ('https://api.semanticscholar.org/graph/v1/author/47490276?fields=name,papers.authors')
respons = urllib.request.urlopen(url_str)
text = respons.read().decode()
... | [
{
"answer_id": 74407801,
"author": "Rabbid76",
"author_id": 5577765,
"author_profile": "https://Stackoverflow.com/users/5577765",
"pm_score": 3,
"selected": true,
"text": "[amoeba.age] ageArray = [[amoeba.age] for amoeba in amoebas]\n ageArray = [amoeba.age for amoeba in amoebas]\n"
},... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20399033/"
] |
74,407,786 | <p>I have a big directory structure with lots of binary files (images) in it. I want to track which files were added/deleted/changed without actually storing the changes.
Is it possible to do using git?</p>
<p>Just to reiterate, I don't care about the contents of the change, just want to register the fact that the file... | [
{
"answer_id": 74416938,
"author": "GreenOak",
"author_id": 9834089,
"author_profile": "https://Stackoverflow.com/users/9834089",
"pm_score": 2,
"selected": true,
"text": " *\n !.gitignore\n !ls.txt\n find . -printf \"%c %p\\n\" -iname \"*.mov\" -o -iname \"*.jpg\" -o -iname \"*.mp4\" >... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9834089/"
] |
74,407,789 | <p>I am looking for a way to extract images from within another image. For example:
<a href="https://i.stack.imgur.com/k5s8H.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k5s8H.jpg" alt="enter image description here" /></a></p>
<p>Here is a picture taken of a paper. It includes text, an image of a ... | [
{
"answer_id": 74416938,
"author": "GreenOak",
"author_id": 9834089,
"author_profile": "https://Stackoverflow.com/users/9834089",
"pm_score": 2,
"selected": true,
"text": " *\n !.gitignore\n !ls.txt\n find . -printf \"%c %p\\n\" -iname \"*.mov\" -o -iname \"*.jpg\" -o -iname \"*.mp4\" >... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19553518/"
] |
74,407,821 | <p>I have a two dimensional array of students from different schools and countries. I want them to be grouped by name of school and country.</p>
<p>How can I create the nested key structure?</p>
<p>Example:</p>
<pre><code>$students = [
[
"country" => "japan",
"school" => &... | [
{
"answer_id": 74416938,
"author": "GreenOak",
"author_id": 9834089,
"author_profile": "https://Stackoverflow.com/users/9834089",
"pm_score": 2,
"selected": true,
"text": " *\n !.gitignore\n !ls.txt\n find . -printf \"%c %p\\n\" -iname \"*.mov\" -o -iname \"*.jpg\" -o -iname \"*.mp4\" >... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15180008/"
] |
74,407,834 | <p>Lets say I have a function like below that gets called by a button click in my component.</p>
<ol>
<li>What happens if I click my button twice to the first and second subscriptions?</li>
<li>What happens if I click my button twice and then unsubscribe <code>mySub</code> in my ngOnDestroy()?</li>
<li>If the function ... | [
{
"answer_id": 74407987,
"author": "AlanObject",
"author_id": 527470,
"author_profile": "https://Stackoverflow.com/users/527470",
"pm_score": 1,
"selected": false,
"text": "this.myService.getSomeData Observable Observable Subject BehaviorSubject HttpClient get Observable unsubscribe s: S... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20325103/"
] |
74,407,882 | <p><strong>Problem</strong></p>
<p>I want to unit test a method in my repository class that checks if a record should be updated or created new.
How do I test the main function without actually having the unit test attempt to insert or query the db?</p>
<p><strong>Code</strong></p>
<p>I have the following repository cl... | [
{
"answer_id": 74408270,
"author": "Oxymoron",
"author_id": 1215018,
"author_profile": "https://Stackoverflow.com/users/1215018",
"pm_score": 0,
"selected": false,
"text": " private IWidgetRepository GetEmptyRepository()\n {\n var repo = new Mock<IWidgetRepository >();\n ... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1078009/"
] |
74,407,941 | <pre><code>import getpass
p = getpass.getpass(prompt='What is the code you were given?? ')
if p.lower() == 'breakout':
print('Welcome..!!!')
else:
print('The answer entered by you is incorrect..!!!')
</code></pre>
<p>I tried a few things, all of them gave errors.</p>
| [
{
"answer_id": 74407988,
"author": "Bhargav",
"author_id": 15358800,
"author_profile": "https://Stackoverflow.com/users/15358800",
"pm_score": 2,
"selected": false,
"text": "while True Correct import getpass\n\nwhile 1:\n \n \n p = getpass.getpass(prompt='What is the code you w... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20481183/"
] |
74,407,946 | <p>I have a very large file (19M rows) and the data needs to be cleaned. I am using a windows 11 machine. The data is being loaded into SQL server 19. I am currently using a perl script to remove any commas that are between double quotes. I will post my script below. This is taking a very long time to run. I feel li... | [
{
"answer_id": 74408980,
"author": "zdim",
"author_id": 4653379,
"author_profile": "https://Stackoverflow.com/users/4653379",
"pm_score": 4,
"selected": true,
"text": "use warnings;\nuse strict;\nuse feature 'say';\n\nmy $file = shift // die \"Usage: $0 file\\n\";\n\nopen my $fh, $file o... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407946",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12075005/"
] |
74,407,947 | <p>I want to make/replace object from string in javascript.</p>
<pre><code>var api_response = { key: "settings.options.height", val: 500 };
keys = api_response.key.split('.');
var settings = { options: { height: 0 } };
</code></pre>
<p>i have no idea how to replace value of settings.options.height to api.va... | [
{
"answer_id": 74408980,
"author": "zdim",
"author_id": 4653379,
"author_profile": "https://Stackoverflow.com/users/4653379",
"pm_score": 4,
"selected": true,
"text": "use warnings;\nuse strict;\nuse feature 'say';\n\nmy $file = shift // die \"Usage: $0 file\\n\";\n\nopen my $fh, $file o... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74407947",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20469282/"
] |
74,408,015 | <p>I'd like to filter the choices that a user can choose in my ForeignKey Field.
I basically have a ForeignKey for the subject of the Test and the actual topic of the Test. These topics come from a different model and are linked to a subject. Now I'd like to filter the choices to only include the topics that are linked... | [
{
"answer_id": 74408115,
"author": "saro",
"author_id": 18366396,
"author_profile": "https://Stackoverflow.com/users/18366396",
"pm_score": 0,
"selected": false,
"text": "fields['your model field'].queryset = yourmodel.objects.filter(your filter parameters)\n"
},
{
"answer_id": 7... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408015",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18298825/"
] |
74,408,105 | <p>I am trying to write a function that swap two arrays in O(1) time complexity. However, when i try to write the function parameters, I get the error:</p>
<pre><code>error: cannot convert ‘int (*)[4]’ to ‘int**’
</code></pre>
<p>Here is my code:</p>
<pre><code>#include <iostream>
using namespace std;
void swap... | [
{
"answer_id": 74408218,
"author": "Quantale",
"author_id": 19883166,
"author_profile": "https://Stackoverflow.com/users/19883166",
"pm_score": -1,
"selected": false,
"text": "void swap_array_by_ptr(int* a, int* b) {\n int* temp = *a;\n *a = *b;\n *b = temp;\n}\n"
},
{
"... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20481276/"
] |
74,408,119 | <p>I have this pandas dataframe that looks like this:</p>
<pre><code>index up_walk down_walk up_avg down_avg
0 0.000000 17.827148 0.36642 9.06815
1 1.550781 0.000000 NaN NaN
2 0.957031 0.000000 NaN NaN
3 0.000000 2.878906 NaN NaN
</code></pre>
<p>I wa... | [
{
"answer_id": 74408637,
"author": "Bushmaster",
"author_id": 15415267,
"author_profile": "https://Stackoverflow.com/users/15415267",
"pm_score": 2,
"selected": true,
"text": "#keep going until there is no nan value left\nstatus=True\nwhile status:\n df['up_avg'] = np.where((np.isnan(... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408119",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20480909/"
] |
74,408,136 | <p>Hello I have a project for my studies which is to display data on a dashboard that will be more or less modifiable by the user according to his needs.</p>
<p>I'm trying to open a modal window but it doesn't work and i can't figure out where my mistake came from.</p>
<p><div class="snippet" data-lang="js" data-hide="... | [
{
"answer_id": 74408217,
"author": "Franco Gabriel",
"author_id": 19499461,
"author_profile": "https://Stackoverflow.com/users/19499461",
"pm_score": 1,
"selected": false,
"text": "querySelector() querySelectorAll() const body = document.querySelector(\"body\"),\n sidebar = body.querySe... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19930293/"
] |
74,408,145 | <p>Here's a link to my website <a href="https://faceyneck.com" rel="nofollow noreferrer">Facey's Thoughts</a> and here's a link to the <a href="https://github.com/faceyneck/faceyneck.github.io/tree/main" rel="nofollow noreferrer">GitHub Pages</a> project.</p>
<p>Cloning the (working) repository to my local machine and ... | [
{
"answer_id": 74420266,
"author": "Yshmarov",
"author_id": 5695646,
"author_profile": "https://Stackoverflow.com/users/5695646",
"pm_score": 2,
"selected": false,
"text": " social_links:\n - { platform: rss, user_url: \"/feed.xml\" }\n - { platform: github, user_url: \"https://gi... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19611975/"
] |
74,408,159 | <p>i have an unknow string, that contains several "/". I need all characters after the last "/".
Example. (Remeber the actual string will be unknown)
string= abcdefg/hijkl/123hgj-sg/diejdu/duhd3/zyxw</p>
<p>I need return "zyxw"</p>
<p>thank you all for help</p>
<p>im just really bad with ... | [
{
"answer_id": 74409203,
"author": "Shawn Bragdon",
"author_id": 19753194,
"author_profile": "https://Stackoverflow.com/users/19753194",
"pm_score": 2,
"selected": false,
"text": "local function getLastFromPath(path)\n local last = path:match(\"([^/]+)$\")\n return last\nend\n\npri... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19478592/"
] |
74,408,167 | <p>I have a simple bar chart I am using in a shiny application with some filters. I am using the following code.</p>
<pre><code>ggplot(users_by_month(), aes(x = month, y = n)) +
geom_bar(stat = "identity") +
geom_text(aes(label=n), nudge_y = 4)
</code></pre>
<p>When no filters are being used this wor... | [
{
"answer_id": 74409203,
"author": "Shawn Bragdon",
"author_id": 19753194,
"author_profile": "https://Stackoverflow.com/users/19753194",
"pm_score": 2,
"selected": false,
"text": "local function getLastFromPath(path)\n local last = path:match(\"([^/]+)$\")\n return last\nend\n\npri... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3249770/"
] |
74,408,174 | <p>Let me preface this by saying that I am new to programming.
I would like to create a new array for each iteration, not add elements to the same array.
How can I create a new array?</p>
<p>If I use E=np.array[(...)]</p>
<p>in my loop, I will be rewriting the array every single time.
I want to have a series of arrays ... | [
{
"answer_id": 74409203,
"author": "Shawn Bragdon",
"author_id": 19753194,
"author_profile": "https://Stackoverflow.com/users/19753194",
"pm_score": 2,
"selected": false,
"text": "local function getLastFromPath(path)\n local last = path:match(\"([^/]+)$\")\n return last\nend\n\npri... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20481280/"
] |
74,408,180 | <p>I'm testing a local Icecast server on Ubuntu, using Traefik 1.7 in Docker containers.</p>
<p>When manually going to a page on a subdomain, all CORS headers are set:</p>
<p><a href="https://i.stack.imgur.com/blQKg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/blQKg.png" alt="enter image descripti... | [
{
"answer_id": 74409203,
"author": "Shawn Bragdon",
"author_id": 19753194,
"author_profile": "https://Stackoverflow.com/users/19753194",
"pm_score": 2,
"selected": false,
"text": "local function getLastFromPath(path)\n local last = path:match(\"([^/]+)$\")\n return last\nend\n\npri... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/350048/"
] |
74,408,198 | <p>All the documentation I've found on Eleventy pagination has to do with a single level, and I've got that working pretty well.</p>
<ul>
<li>Take a collection (ex. of tags) and create one page each</li>
<li>Take a collection of posts and put 10 on each page
and so on.</li>
</ul>
<p>What I'd like to do now is combine t... | [
{
"answer_id": 74409203,
"author": "Shawn Bragdon",
"author_id": 19753194,
"author_profile": "https://Stackoverflow.com/users/19753194",
"pm_score": 2,
"selected": false,
"text": "local function getLastFromPath(path)\n local last = path:match(\"([^/]+)$\")\n return last\nend\n\npri... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17938513/"
] |
74,408,219 | <p>As simple as this sounds I cannot figure it out... Here's what I want to do</p>
<pre><code>df = pd.DataFrame(
[
{'first names' : ['trey', 'tagg']},
{'first names' : ['teague', 'tanner']},
]
)
</code></pre>
<p>df</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th></th>
<th>first names</th>... | [
{
"answer_id": 74409203,
"author": "Shawn Bragdon",
"author_id": 19753194,
"author_profile": "https://Stackoverflow.com/users/19753194",
"pm_score": 2,
"selected": false,
"text": "local function getLastFromPath(path)\n local last = path:match(\"([^/]+)$\")\n return last\nend\n\npri... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13972322/"
] |
74,408,224 | <p>I have a table in PostgreSQL:</p>
<pre><code>| id | country| type |
| 1 | USA | FOO |
| 2 | null | BAR |
</code></pre>
<p>I want to change the column type for the <code>country</code> column from <code>text</code> to <code>array</code> and cast to the new type only non-null values to have the table look as ... | [
{
"answer_id": 74408512,
"author": "a_horse_with_no_name",
"author_id": 330315,
"author_profile": "https://Stackoverflow.com/users/330315",
"pm_score": 0,
"selected": false,
"text": "ALTER TABLE my_table\n ALTER COLUMN country TYPE TEXT[]\n USING case \n when country is null t... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6934058/"
] |
74,408,245 | <p>How can I use data from my first fetch in the second fetch? I am getting undefined for the first search and then it's ok, how can I get it on the first search without getting "undefined"?</p>
<pre><code> const [summoner, setSummoner] = useState("");
const [playerData, setPlayerData] = useState... | [
{
"answer_id": 74408512,
"author": "a_horse_with_no_name",
"author_id": 330315,
"author_profile": "https://Stackoverflow.com/users/330315",
"pm_score": 0,
"selected": false,
"text": "ALTER TABLE my_table\n ALTER COLUMN country TYPE TEXT[]\n USING case \n when country is null t... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12533737/"
] |
74,408,260 | <p>I used a regex expression which extracted numbers from some line and this created some list which i combined using the append function how do i combine these sublists into one list</p>
<pre><code>fname=input('Enter file name:')
if len(fname)<1:
fname='regex_sum_42.txt'
fhand=open(fname)
total=0
numlist=list()... | [
{
"answer_id": 74408609,
"author": "0x0fba",
"author_id": 20339407,
"author_profile": "https://Stackoverflow.com/users/20339407",
"pm_score": 2,
"selected": true,
"text": "sum(numlist, [])\n"
},
{
"answer_id": 74409425,
"author": "Hai Vu",
"author_id": 459745,
"author... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20481350/"
] |
74,408,271 | <p>The existing code I’m working with is creating a new method with duplicate code each time because it is using @<strong>ManagedListener</strong> configured for the different Kafka Topics and diff configurations using <strong>Java Spring Boot</strong>.</p>
<pre><code>`@ManagedListener({configurations for Kafka topic-a... | [
{
"answer_id": 74408609,
"author": "0x0fba",
"author_id": 20339407,
"author_profile": "https://Stackoverflow.com/users/20339407",
"pm_score": 2,
"selected": true,
"text": "sum(numlist, [])\n"
},
{
"answer_id": 74409425,
"author": "Hai Vu",
"author_id": 459745,
"author... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20481080/"
] |
74,408,278 | <p>In my job, we needed to implement authentication because of security and we wanted the DB not to be completely open. We have implemented anonymous authentication because the app is not based on a user profile. It works well, but it is creating too many users (every time the app is uninstalled or the cache is cleared... | [
{
"answer_id": 74408897,
"author": "Tim",
"author_id": 20317091,
"author_profile": "https://Stackoverflow.com/users/20317091",
"pm_score": 0,
"selected": false,
"text": "beforeCreate beforeCreate"
},
{
"answer_id": 74428355,
"author": "Alex Mamo",
"author_id": 5246885,
... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14107943/"
] |
74,408,311 | <p>I'm wanting to correlate two variables in R but only for specific values of two other variables.
For example, I want to look at the correlation between test scores (v1) and study time (v2) for people 16 or older who are female (gender=1).</p>
<p>In STATA, I would write something like this:</p>
<p>pwcorr v1 v2 if age... | [
{
"answer_id": 74408897,
"author": "Tim",
"author_id": 20317091,
"author_profile": "https://Stackoverflow.com/users/20317091",
"pm_score": 0,
"selected": false,
"text": "beforeCreate beforeCreate"
},
{
"answer_id": 74428355,
"author": "Alex Mamo",
"author_id": 5246885,
... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20463228/"
] |
74,408,312 | <p>I have a list of strings in my program, for example:</p>
<p>[ 'home', 'dog', 'park', 'house', 'hotel', 'fire' ]</p>
<p>and I want to know which is the most first frequent letter .</p>
<p>for example in that string is the letter H because it is in hotel, house and home.</p>
<p>I tried just 2 for cycles but I didn't ... | [
{
"answer_id": 74408426,
"author": "John Shallow",
"author_id": 18195837,
"author_profile": "https://Stackoverflow.com/users/18195837",
"pm_score": 0,
"selected": false,
"text": "from collections import Counter\n\n\nlist_ = ['home', 'dog', 'park', 'house', 'hotel', 'fire']\n\n\nif __name... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16797605/"
] |
74,408,340 | <p>I have the following package file</p>
<pre class="lang-json prettyprint-override"><code>{
"version": "1.0.0",
"scripts": {
"dev": "node ./pm2.js",
},
"dependencies": {
"@nuxtjs/axios": "5.10.2",
"@nuxtjs/style-re... | [
{
"answer_id": 74408426,
"author": "John Shallow",
"author_id": 18195837,
"author_profile": "https://Stackoverflow.com/users/18195837",
"pm_score": 0,
"selected": false,
"text": "from collections import Counter\n\n\nlist_ = ['home', 'dog', 'park', 'house', 'hotel', 'fire']\n\n\nif __name... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2148090/"
] |
74,408,345 | <p>I'm new to batch and trying to format the way my file runs, so the user input following the line below is not in the same line with the "What's your name?" part, if that makes sense.</p>
<p><code>set /p "Playername=What's your name?"</code></p>
<p>I tried using:</p>
<p><code>/f "eol=\" ... | [
{
"answer_id": 74408426,
"author": "John Shallow",
"author_id": 18195837,
"author_profile": "https://Stackoverflow.com/users/18195837",
"pm_score": 0,
"selected": false,
"text": "from collections import Counter\n\n\nlist_ = ['home', 'dog', 'park', 'house', 'hotel', 'fire']\n\n\nif __name... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20481140/"
] |
74,408,356 | <p>I'm currently reading a book and I'm stuck right at the start of a particularly chapter. Because of where I'm stuck, <a href="https://www.oreilly.com/library/view/c-10-in/9781098121945/ch09.html" rel="nofollow noreferrer">the context</a> can be found online without breaching the paywall. The relevant codeblock is th... | [
{
"answer_id": 74408483,
"author": "Denis",
"author_id": 14202100,
"author_profile": "https://Stackoverflow.com/users/14202100",
"pm_score": 0,
"selected": false,
"text": "modelBuilder.Entity<Customer> Entity<TEntity>(Action<EntityTypeBuilder<TEntity>>) Entity<TEntity>() entity EntityTyp... | 2022/11/11 | [
"https://Stackoverflow.com/questions/74408356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10319707/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.