qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,363,421 | <p>I have a number of text entries (municipalities) from which I need to remove the s at the end.</p>
<pre><code>Data test;
input city $;
datalines;
arjepogs
askers
Londons
;
run;
data cities;
set test;
if prxmatch("/^(.*?)s$/",city)
then city=prxchange("s/^(.*?)s$/$1/",-1,city);
run;
</code></pre... | [
{
"answer_id": 74363539,
"author": "Tom",
"author_id": 4965549,
"author_profile": "https://Stackoverflow.com/users/4965549",
"pm_score": 3,
"selected": true,
"text": "data have;\n input city $20.;\ndatalines;\narjepogs\nKent\naskers\nLondons\n;\n\ndata want;\n set have;\n length new_c... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5428469/"
] |
74,363,423 | <p>My code implemented so far is:</p>
<pre><code>const date = new Date();
const currentTime = `${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`;
const getDay = `${date.getDay()} ${date.getMonth()} ${date.getDate()}`;
return (
<Box>
<Typography>{currentTime}</Typography>
... | [
{
"answer_id": 74363539,
"author": "Tom",
"author_id": 4965549,
"author_profile": "https://Stackoverflow.com/users/4965549",
"pm_score": 3,
"selected": true,
"text": "data have;\n input city $20.;\ndatalines;\narjepogs\nKent\naskers\nLondons\n;\n\ndata want;\n set have;\n length new_c... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14215598/"
] |
74,363,449 | <p>I have a JSON response here,</p>
<pre class="lang-json prettyprint-override"><code>{
"Items": [
{
"Key": {
"timestamp": "2022-11-06T20",
"value": 100.80
}
},
{
"Key": {
"timestamp": "202... | [
{
"answer_id": 74363539,
"author": "Tom",
"author_id": 4965549,
"author_profile": "https://Stackoverflow.com/users/4965549",
"pm_score": 3,
"selected": true,
"text": "data have;\n input city $20.;\ndatalines;\narjepogs\nKent\naskers\nLondons\n;\n\ndata want;\n set have;\n length new_c... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19685408/"
] |
74,363,466 | <p>I have a table as following:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>id</th>
<th>a</th>
<th>b</th>
<th>a</th>
<th>b</th>
<th>c</th>
<th>color</th>
</tr>
</thead>
<tbody>
<tr>
<td>123</td>
<td>1</td>
<td>6</td>
<td>7</td>
<td>3</td>
<td>4</td>
<td>blue</td>
</tr>
<tr>
<td>456</td>... | [
{
"answer_id": 74363540,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 1,
"selected": false,
"text": "groupby.cumcount stack groupby.ffill (df.set_axis(pd.MultiIndex.from_arrays([df.columns,\n ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18374702/"
] |
74,363,467 | <p>I am currently making password strength checker and I want to check the length of the password and determine the strength of the password. But I do not know how to check the length of the password so that it is like "between 5 and 10 words" or "between 20 to 30 words"</p>
<pre><code>import React ... | [
{
"answer_id": 74363540,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 1,
"selected": false,
"text": "groupby.cumcount stack groupby.ffill (df.set_axis(pd.MultiIndex.from_arrays([df.columns,\n ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20159329/"
] |
74,363,491 | <p>I have a nested list shaped like
<code>mylist = [[a, b, c, d], [e, f, g, h], [i, j, k, l]]</code>
And i need to split the nested lists so that every two items are grouped together like this:
<code>Nested_list = [[[a, b], [c, d], [[e, f], [g, h]], [[i, j], [k, l]]</code></p>
<p>I tried splitting them by them by using... | [
{
"answer_id": 74363609,
"author": "Aymen",
"author_id": 5165980,
"author_profile": "https://Stackoverflow.com/users/5165980",
"pm_score": 2,
"selected": false,
"text": "mylist = [['a', 'b', 'c', 'd'], ['e', 'f', 'g', 'h'], ['i', 'j', 'k', 'l']]\n\nnested_list = [ [i[:2], i[2:]] for i in... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,363,494 | <p>I'm trying to make a menu like this picture:</p>
<p><a href="https://i.stack.imgur.com/yN6T0.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yN6T0.jpg" alt="enter image description here" /></a></p>
<p>I did it like this:</p>
<p><a href="https://i.stack.imgur.com/UaLJQ.jpg" rel="nofollow noreferrer... | [
{
"answer_id": 74363609,
"author": "Aymen",
"author_id": 5165980,
"author_profile": "https://Stackoverflow.com/users/5165980",
"pm_score": 2,
"selected": false,
"text": "mylist = [['a', 'b', 'c', 'd'], ['e', 'f', 'g', 'h'], ['i', 'j', 'k', 'l']]\n\nnested_list = [ [i[:2], i[2:]] for i in... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363494",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18003111/"
] |
74,363,496 | <pre><code> public function doctorToday(Request $request){
$doctors = Appointment::with('doctor')->whereDate('date',date('Y-m-d'))->get();
return $doctors;
</code></pre>
<p>May I know how to implement one more day to the code? I want to get the tommorow's date instead of today's.</p>
| [
{
"answer_id": 74363548,
"author": "Delano van londen",
"author_id": 19923550,
"author_profile": "https://Stackoverflow.com/users/19923550",
"pm_score": 0,
"selected": false,
"text": "public function doctorToday(Request $request){\n $doctors = Appointment::with('doctor')->whereDat... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363496",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20381850/"
] |
74,363,532 | <p>I need to extract the year from vote_data and save it into another column to finally sort the dataframe by year. <a href="https://i.stack.imgur.com/LUcJo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LUcJo.png" alt="R dataframe" /></a></p>
<p>Anyone with an idea? If it is possible to sort it wit... | [
{
"answer_id": 74363670,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 1,
"selected": false,
"text": "library(dplyr)\nlibrary(lubridate)\ndf1 <- df1 %>% \n mutate(year = year(ymd(vote_date))) %>%\n arrange(year)\n"... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20346322/"
] |
74,363,568 | <p>I would like to add 1 to each element of a bash array. Say I have an array:</p>
<pre><code>array1=(5 1 7 9 4)
</code></pre>
<p>What I would like is to do ideally is this:</p>
<pre><code>echo ${array2[@]}
5 6 1 2 7 8 9 10 4 5
</code></pre>
<p>So that each number is followed by its consecutive number. But I wasn't su... | [
{
"answer_id": 74363670,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 1,
"selected": false,
"text": "library(dplyr)\nlibrary(lubridate)\ndf1 <- df1 %>% \n mutate(year = year(ymd(vote_date))) %>%\n arrange(year)\n"... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363568",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18160418/"
] |
74,363,631 | <p>I'm trying to use a ListTile widget inside a ListView that will change depending on some information received elsewhere in the app. In order to practice, I tried to make a little Dartpad example.</p>
<p>The problem is as follows: I have been able to change the booleans and data behind the items, but they don't updat... | [
{
"answer_id": 74363786,
"author": "krumpli",
"author_id": 6904430,
"author_profile": "https://Stackoverflow.com/users/6904430",
"pm_score": 0,
"selected": false,
"text": "_getCorrectTextState() String _status; void _getCorrectTextState(UserTileState userTileState) {\n St... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11703954/"
] |
74,363,699 | <p>I have seen the Page speed for the web <a href="https://pagespeed.web.dev/" rel="nofollow noreferrer">https://pagespeed.web.dev/</a>
I want to calculate the amount of time taken between the user lands on the screen until the app completes processing and rendering the content.
Have tried some analytics tools such as ... | [
{
"answer_id": 74363786,
"author": "krumpli",
"author_id": 6904430,
"author_profile": "https://Stackoverflow.com/users/6904430",
"pm_score": 0,
"selected": false,
"text": "_getCorrectTextState() String _status; void _getCorrectTextState(UserTileState userTileState) {\n St... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4917736/"
] |
74,363,728 | <p>The following code searches a text file for a name and displays the related number in a tkinter entry box in Python.</p>
<p>so original text file includes:</p>
<pre><code>bob 19
dan 20
shayne 17
</code></pre>
<p>I would like add another nested loop so that if there are two names the same then two numbers are returne... | [
{
"answer_id": 74364370,
"author": "chikibamboni",
"author_id": 19427338,
"author_profile": "https://Stackoverflow.com/users/19427338",
"pm_score": 1,
"selected": false,
"text": "name = input('who do you want to find: ') + \" \"\n\n\nwith open(\"number_list.txt\", \"r\") as file:\n A ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363728",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18059806/"
] |
74,363,737 | <p>Guys I need your help with an issue. I am recently learning how to use React. The question is this: I have three h2 elements, each with a different id attribute. What I am trying to do is create a list consisting of as many "a" elements as there are h2 elements. Each "a" element should have the h... | [
{
"answer_id": 74363966,
"author": "Mehul Thakkar",
"author_id": 6888239,
"author_profile": "https://Stackoverflow.com/users/6888239",
"pm_score": 2,
"selected": true,
"text": "# a import { useEffect, useState } from \"react\";\nimport \"./styles.css\";\n\nexport default function App() {... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17664715/"
] |
74,363,756 | <p><strong>Here's the code i wrote to solve the problem:</strong></p>
<pre><code>let isPrime = function(n) {
for (let i = 2; i < n; i++) {
if (n % i === 0) {
return false;
}
}
return true;
};
function nextPrime(num) {
let newNum = num;
for (let i = 0; i... | [
{
"answer_id": 74363966,
"author": "Mehul Thakkar",
"author_id": 6888239,
"author_profile": "https://Stackoverflow.com/users/6888239",
"pm_score": 2,
"selected": true,
"text": "# a import { useEffect, useState } from \"react\";\nimport \"./styles.css\";\n\nexport default function App() {... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16400935/"
] |
74,363,811 | <p>I read through a lot of the answers but can't figure out how to execute a command which I currently execute using <code>cron</code> from <code>subprocess</code> or something better?</p>
<pre><code># cron command
00 16 * * 1-5 DISPLAY=:10 /path/to/shell/script.sh > log/file.log 2>&1
</code></pre>
<p>The <co... | [
{
"answer_id": 74364132,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 1,
"selected": false,
"text": "os.environ subprocess import subprocess\nimport os\n\nos.environ['DISPLAY'] = ':10'\nwith open('log/file.log') as out... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6387095/"
] |
74,363,818 | <p>I have a column A with service name, and a column B with the state of these services.
I have the same services deployed on multiple hosts but with different states.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Service</th>
<th>state</th>
</tr>
</thead>
<tbody>
<tr>
<td>ServiceA</td>
<... | [
{
"answer_id": 74364132,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 1,
"selected": false,
"text": "os.environ subprocess import subprocess\nimport os\n\nos.environ['DISPLAY'] = ':10'\nwith open('log/file.log') as out... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363818",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20451279/"
] |
74,363,831 | <p>I'am very confused to get someone's birthday date by changing Y-m-d to m-d in the date_birth field. How should I do? This is my current code:</p>
<pre><code>$getBirthday = Karyawan::where('date_birth', Carbon::now()->format('m-d'))->get();
</code></pre>
<p>Thanks, I want to get someone's birthday by taking m-d... | [
{
"answer_id": 74363894,
"author": "N69S",
"author_id": 4369919,
"author_profile": "https://Stackoverflow.com/users/4369919",
"pm_score": 3,
"selected": true,
"text": "whereRaw $getBirthday = Karyawan::whereRaw(\"DATE_FORMAT(birthdate, '%m-%d') = ?\", [Carbon::now()->format('m-d')])->get... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18294688/"
] |
74,363,837 | <p>I'm attempting to declare a function component in React, so that I could use my custom hook for making API calls. I'm getting a <code>rules-of-hooks</code> that my hook <code>useGet</code> cannot be called inside a callback. In my eyes I am declaring a function component, I must be missing something?</p>
<p>Example:... | [
{
"answer_id": 74363916,
"author": "Simon Löfquist",
"author_id": 19748662,
"author_profile": "https://Stackoverflow.com/users/19748662",
"pm_score": 1,
"selected": false,
"text": "const {getData} = useGet(\"myUrl\");"
},
{
"answer_id": 74364069,
"author": "soanks",
"auth... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4942596/"
] |
74,363,886 | <p>I have the following peace of code:</p>
<pre class="lang-kotlin prettyprint-override"><code>class JiraCredentials(applicationContext: Context)
{
private val preferences = applicationContext.getSharedPreferences(
"jira",
ComponentActivity.MODE_PRIVATE
)
private val username_key ... | [
{
"answer_id": 74364113,
"author": "Sweeper",
"author_id": 5133585,
"author_profile": "https://Stackoverflow.com/users/5133585",
"pm_score": 3,
"selected": true,
"text": "class PreferenceDelegate(\n val key: String,\n val preferences: SharedPreferences\n) {\n operator fun getVal... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/402322/"
] |
74,363,889 | <p>React Hook useEffect has a missing dependency.</p>
<p>Line 92:4: React Hook useEffect has a missing dependency: 'getMoviesData'. Either include it or remove the dependency array react-hooks/exhaustive-deps</p>
<p>Can someone tell me how to fix this error? I'm sure it's something very simple but any help would be g... | [
{
"answer_id": 74363921,
"author": "Dulaj Ariyaratne",
"author_id": 13368318,
"author_profile": "https://Stackoverflow.com/users/13368318",
"pm_score": 1,
"selected": false,
"text": "useCallback getMoviesData useEffect const getMoviesData = useCallback(async () => {\n await fetch(ur... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20165435/"
] |
74,363,899 | <p>I am working with a data frame which has date in the first row as given below:</p>
<p><a href="https://i.stack.imgur.com/JPb1h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JPb1h.png" alt="enter image description here" /></a></p>
<p>However, when I input them these dates get converted to numbers... | [
{
"answer_id": 74363921,
"author": "Dulaj Ariyaratne",
"author_id": 13368318,
"author_profile": "https://Stackoverflow.com/users/13368318",
"pm_score": 1,
"selected": false,
"text": "useCallback getMoviesData useEffect const getMoviesData = useCallback(async () => {\n await fetch(ur... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20203146/"
] |
74,363,907 | <p>I am developing a telegram bot in the Python programming language using the telebot library (pyTelegramBotApi). At the moment when I'm making buttons, I decided to use InlineKeyboardMarkup. The following questions arise, how to get the name of this button by clicking on the button. I need to get the index of an item... | [
{
"answer_id": 74363921,
"author": "Dulaj Ariyaratne",
"author_id": 13368318,
"author_profile": "https://Stackoverflow.com/users/13368318",
"pm_score": 1,
"selected": false,
"text": "useCallback getMoviesData useEffect const getMoviesData = useCallback(async () => {\n await fetch(ur... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20451464/"
] |
74,363,926 | <p>I am using the following button snip:</p>
<pre><code> Widget _formTextButton(onPressed, buttonText) => TextButton(
style: TextButton.styleFrom(
foregroundColor: Colors.white,
backgroundColor: Colors.blue,
padding: const EdgeInsets.all(16.0),
textStyle: const TextSt... | [
{
"answer_id": 74363921,
"author": "Dulaj Ariyaratne",
"author_id": 13368318,
"author_profile": "https://Stackoverflow.com/users/13368318",
"pm_score": 1,
"selected": false,
"text": "useCallback getMoviesData useEffect const getMoviesData = useCallback(async () => {\n await fetch(ur... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17281101/"
] |
74,363,957 | <p>So I'm building registration page type of thing in android studio kotlin and in it password length has to be over 8 symbols and it must contain at least one number otherwise it should not let me press register button</p>
<p>I managed to make it so that jts necessary for password lenght to be over 8 symbols but I ca... | [
{
"answer_id": 74364193,
"author": "Xəyal Şərifli",
"author_id": 20432696,
"author_profile": "https://Stackoverflow.com/users/20432696",
"pm_score": 1,
"selected": false,
"text": " if (password.contains(\"[0-9]\".toRegex())) {\n //Write code here\n }\n"
},
{
"answer_... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20263059/"
] |
74,363,965 | <p>I'm designing a simple image-guessing game where the user is shown an image of a flag and then must guess the name of the flag. I have the images set to show up randomly using a random number generator in javascript, however, I do not know how to assign a name to each flag so that I can compare it with the user inpu... | [
{
"answer_id": 74364014,
"author": "Ben Aston",
"author_id": 38522,
"author_profile": "https://Stackoverflow.com/users/38522",
"pm_score": 0,
"selected": false,
"text": "const countries = [{ \n name: 'United Kingdom', \n flagImagePath: '../assets/flagImages/uk.png'\n}, { \n name... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20451594/"
] |
74,363,972 | <p>I'm practicing ViewPager in JetPack compose which is experimental right now.</p>
<p>I was able to successfully make a basic view pager, but when trying to add an indicator, I get an error:
<code>Cannot access 'ColumnScopeInstance': it is internal in 'androidx.compose.foundation.layout'</code></p>
<p>Indicator code; ... | [
{
"answer_id": 74364497,
"author": "Mohammad Derakhshan",
"author_id": 9470643,
"author_profile": "https://Stackoverflow.com/users/9470643",
"pm_score": 3,
"selected": true,
"text": "Box(contentAlignment = Alignment.Center) {....}\n Column(\n modifier = ....,\n horizontalA... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15976878/"
] |
74,363,978 | <p>I'm trying to switch to MariaDB from mysql 8. I downloaded latest MariaDb 10.10.1 RC version, trying to import backup created from mysql using mysqldump and I get the following error
<code>Unknown collation 'utf8mb4_0900_as_cs'</code></p>
<p>What is the equivalent collation in MariaDB. Since this question has been c... | [
{
"answer_id": 74370921,
"author": "danblack",
"author_id": 10195153,
"author_profile": "https://Stackoverflow.com/users/10195153",
"pm_score": 3,
"selected": true,
"text": "uca1400_as_cs"
}
] | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1173307/"
] |
74,363,992 | <p>How to ignore a field in a Quarkus Rest Client request body? I see in the dependency tree, this is listed:</p>
<pre><code>io.quarkus:quarkus-resteasy-reactive-jsonb:jar:2.7.5.Final:compile
</code></pre>
<p>And using <code>@JsonIgnore</code> or <code>JsonProperty(access = JsonProperty.Access.WRITE_ONLY)</code> from <... | [
{
"answer_id": 74363993,
"author": "WesternGun",
"author_id": 4537090,
"author_profile": "https://Stackoverflow.com/users/4537090",
"pm_score": 0,
"selected": false,
"text": "\nimport java.lang.reflect.Field;\nimport java.lang.reflect.Method;\n\nimport javax.json.bind.Jsonb;\nimport java... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74363992",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4537090/"
] |
74,364,047 | <p>Suppose I have a simple dataframe like this one:</p>
<pre><code>mydata <- data.frame(Name = c(rep("A",4),rep("B",3),rep("C",2),rep("D",2),"E"),
Value = c(5,2,3,6,1,3,8,13,3,5,3,3)
</code></pre>
<p>I want to find which is the minimum <code>Value</code> t... | [
{
"answer_id": 74363993,
"author": "WesternGun",
"author_id": 4537090,
"author_profile": "https://Stackoverflow.com/users/4537090",
"pm_score": 0,
"selected": false,
"text": "\nimport java.lang.reflect.Field;\nimport java.lang.reflect.Method;\n\nimport javax.json.bind.Jsonb;\nimport java... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11068947/"
] |
74,364,061 | <p>Once I run the below code, I get the following error:</p>
<pre><code> Line 19:5: React Hook useEffect has missing dependencies: 'departureDate', 'from', and 'to'. Either include them or remove the dependency array react-hooks/exhaustive-deps
</code></pre>
<p>This is my Code</p>
<pre><code>import axios from 'axios... | [
{
"answer_id": 74364073,
"author": "twharmon",
"author_id": 5808504,
"author_profile": "https://Stackoverflow.com/users/5808504",
"pm_score": 0,
"selected": false,
"text": "from to departureDate useEffect(()=>{\n // consider adding this so that the UI shows if new data is being fetched.... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18176483/"
] |
74,364,090 | <p>How can I check if any date is between two dates?
For instance I want to check if current date is between 15 December and 15 January.</p>
<p>This can be any year so my current date could be 15 December 2023 and it should return true. If it's 14 of December or 16 January any year it should return false. 31 December s... | [
{
"answer_id": 74364681,
"author": "vadian",
"author_id": 5044042,
"author_profile": "https://Stackoverflow.com/users/5044042",
"pm_score": 0,
"selected": false,
"text": "let currentDate = Date.now\nlet year = Calendar.current.component(.year, from: currentDate)\nlet startComponents = Da... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1898829/"
] |
74,364,115 | <p>Please I'm new to react and I'm trying to set a value on session storage the get it on another page. The problem is, I'm forced to refresh the page to get the updated value stored in the session storage.</p>
<p>I tried setting this way :</p>
<pre><code>sessionStorage.setItem("annee", JSON.stringify(annees)... | [
{
"answer_id": 74364681,
"author": "vadian",
"author_id": 5044042,
"author_profile": "https://Stackoverflow.com/users/5044042",
"pm_score": 0,
"selected": false,
"text": "let currentDate = Date.now\nlet year = Calendar.current.component(.year, from: currentDate)\nlet startComponents = Da... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15384145/"
] |
74,364,118 | <p>I have this mechanism of checking the logged-in user role in a blade page so that I can give him/ her the selected pages but I find after a user has logged in and stayed idle for a long time and when he is back and wants to continue in the page he is getting an error</p>
<p><em>ErrorException
Trying to get property ... | [
{
"answer_id": 74365412,
"author": "SillasSoares",
"author_id": 3498511,
"author_profile": "https://Stackoverflow.com/users/3498511",
"pm_score": 0,
"selected": false,
"text": "Auth::check()"
},
{
"answer_id": 74366331,
"author": "Engr Talha",
"author_id": 12135529,
"... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11966370/"
] |
74,364,127 | <p>I try to used TRUNC in SQL Oracle but doens't work . I make a mistake ?</p>
<p>select
TRUNC(cal.DAY_DATE - BIRTHDATE)/ 365 AS EMP_AGE,</p>
<p>from dual</p>
| [
{
"answer_id": 74365412,
"author": "SillasSoares",
"author_id": 3498511,
"author_profile": "https://Stackoverflow.com/users/3498511",
"pm_score": 0,
"selected": false,
"text": "Auth::check()"
},
{
"answer_id": 74366331,
"author": "Engr Talha",
"author_id": 12135529,
"... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15476415/"
] |
74,364,146 | <p>I am trying to write an Ageing Report on SQL Server which shows the total amount of overdue invoices (later on I will have to deduct Credit Notes) that fall in the different columns depending on how many days the have been overdued. I.e (>0), (0-30), (31-60), (61-90), etc.</p>
<p>This is the part of the query I h... | [
{
"answer_id": 74364547,
"author": "John Cappelletti",
"author_id": 1570000,
"author_profile": "https://Stackoverflow.com/users/1570000",
"pm_score": 2,
"selected": true,
"text": " Select O.cardcode\n ,O.cardname \n ,[Credit Limit] = max(O.u_creditlimit)\n ,[On H... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20449468/"
] |
74,364,188 | <p>I have a nested dictionary with three layers, the bottom layer being a mixture of dictionaries and values and want to convert it into a dataframe with keys from the last layer as column names and keys from the first layer as ids.</p>
<pre><code>dict = {"id1": {"att_1": 1,
"at... | [
{
"answer_id": 74364547,
"author": "John Cappelletti",
"author_id": 1570000,
"author_profile": "https://Stackoverflow.com/users/1570000",
"pm_score": 2,
"selected": true,
"text": " Select O.cardcode\n ,O.cardname \n ,[Credit Limit] = max(O.u_creditlimit)\n ,[On H... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20451623/"
] |
74,364,214 | <p>I just wanted to make a proof of concept that based on the person's search text and the option they select from the dropdown it will redirect them to the search engine of their choice.</p>
<pre><code>const options = [
{ value: 'http://www.google.com/search?q=', label: 'Google' },
{ value: 'http://search.yahoo.co... | [
{
"answer_id": 74364547,
"author": "John Cappelletti",
"author_id": 1570000,
"author_profile": "https://Stackoverflow.com/users/1570000",
"pm_score": 2,
"selected": true,
"text": " Select O.cardcode\n ,O.cardname \n ,[Credit Limit] = max(O.u_creditlimit)\n ,[On H... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20153976/"
] |
74,364,216 | <p><strong>Objective:</strong>
I'm working with a service. The objective is to create a service that will serve as a creation for confirmation dialog and will return whether confirm or cancel was clicked in the popup.</p>
<p><strong>Code:</strong></p>
<blockquote>
<p>product.component.html</p>
</blockquote>
<pre><code>... | [
{
"answer_id": 74364387,
"author": "Parth M. Dave",
"author_id": 12119351,
"author_profile": "https://Stackoverflow.com/users/12119351",
"pm_score": -1,
"selected": false,
"text": "this._popupDialogService.confirmationPopup(message) subscription!: Subscription\n\nconfirmFeatureProductDia... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364216",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3573145/"
] |
74,364,219 | <p>I would like to create a container component in my application. I don't know if this is possible or if it's a good idea at all. I would be so very comfortable.</p>
<pre><code>From this:
export default function App(){
return(
<div className={styles.CardsContainer}>
<CardPrice ... | [
{
"answer_id": 74364265,
"author": "Luis Paulo",
"author_id": 19730992,
"author_profile": "https://Stackoverflow.com/users/19730992",
"pm_score": 2,
"selected": true,
"text": "export default function CardsContainer({children}){\n return(\n <div className={styles.CardsContainer}... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20023944/"
] |
74,364,266 | <p>I got a list which contains approx. 10.000 strings and I want to use a regex pattern to detect this in this list. When I use re.compile it takes a lot of time to only apply one regex pattern. Is there any way with Python to make it faster?</p>
<p>Here my code:</p>
<pre><code>
import re
list_of_strings = ["I li... | [
{
"answer_id": 74364327,
"author": "0x0fba",
"author_id": 20339407,
"author_profile": "https://Stackoverflow.com/users/20339407",
"pm_score": 1,
"selected": false,
"text": "re.compile import re\n\npattern = re.compile(r\"I like to eat (.*?)\")\nlist_of_strings = [\"I like to eat meat\", ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13527251/"
] |
74,364,267 | <p>I have a json file I am trying to read via a <code>StreamReader</code>. The json is in the same directory as my code. However, any method for loading the file (<code>GetFullPath()</code>, <code>GetDirectoryName()</code>, etc) is always looking in the <code>\bin\Debug\netcoreapp3.1</code> directory, where it obvious... | [
{
"answer_id": 74364327,
"author": "0x0fba",
"author_id": 20339407,
"author_profile": "https://Stackoverflow.com/users/20339407",
"pm_score": 1,
"selected": false,
"text": "re.compile import re\n\npattern = re.compile(r\"I like to eat (.*?)\")\nlist_of_strings = [\"I like to eat meat\", ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/285409/"
] |
74,364,281 | <p>So i'm making this app, that captures an image, and that image is used further to extract text from it. I found this code, to access the camera and capture image (in a fragment):</p>
<pre><code>class HomeFragment : Fragment() {
private var _binding: FragmentHomeBinding? = null
private val binding get() = _b... | [
{
"answer_id": 74373361,
"author": "Asaf",
"author_id": 15505732,
"author_profile": "https://Stackoverflow.com/users/15505732",
"pm_score": 1,
"selected": false,
"text": "onActivityResult onCreateView onDestroyView fun onActivityResult()"
},
{
"answer_id": 74376785,
"author":... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20451667/"
] |
74,364,288 | <p>I have the following array:</p>
<pre><code>const foodMenu = [
{id: 1, name: 'pasta', nutritionalInfo: ['ve', 'veg', 'gf']},
{id: 2, name: 'pizza', nutritionalInfo: ['gf', 'veg']},
{id: 3, name: 'applePie', nutritionalInfo: ['nuts']}
]
</code></pre>
<p>I want to display a count on my page of how many of each ... | [
{
"answer_id": 74364489,
"author": "Mr. Polywhirl",
"author_id": 1762224,
"author_profile": "https://Stackoverflow.com/users/1762224",
"pm_score": 0,
"selected": false,
"text": "const descriptors = {\n ve: 'Vegan',\n veg: 'Vegetarian',\n gf: 'Gluten Free',\n nuts: 'Nuts',\n};\n\ncons... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12145038/"
] |
74,364,301 | <pre><code> crsr.execute("SELECT * FROM tblmob")
res = crsr.fetchall()
for i in res:
nopol = i [2]
print(nopol)
</code></pre>
<p>and the ouput is row formating like this without the bullet</p>
<ul>
<li>B 9020 BCS</li>
<li>B 9243 BQB</li>
<li>B 9244 BQB</li>
<li>B 9307 KXR</li>
<li>B 9552... | [
{
"answer_id": 74364489,
"author": "Mr. Polywhirl",
"author_id": 1762224,
"author_profile": "https://Stackoverflow.com/users/1762224",
"pm_score": 0,
"selected": false,
"text": "const descriptors = {\n ve: 'Vegan',\n veg: 'Vegetarian',\n gf: 'Gluten Free',\n nuts: 'Nuts',\n};\n\ncons... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5111917/"
] |
74,364,315 | <p>I am working on a mathematics project with a persistent need of extracting a canonical "basis" out of a type, so I defined the following type class.</p>
<pre class="lang-hs prettyprint-override"><code>class Basis a where
getBasis :: Int -> [a]
</code></pre>
<p>And I want to use this basis in a separ... | [
{
"answer_id": 74364479,
"author": "lsmor",
"author_id": 9271266,
"author_profile": "https://Stackoverflow.com/users/9271266",
"pm_score": 0,
"selected": false,
"text": "ScopedTypeVariables a f {-# LANGUAGE ScopedTypeVariables #-}\n\nclass Basis a where\n getBasis :: Int -> [a]\n\n\nf... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364315",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9302269/"
] |
74,364,316 | <p>I am trying to create unit test for configuration class for connection class. Here is my config class for connection:</p>
<pre><code>@Configuration
public class JmsMessageGatewayConnectionConfig {
@Bean
public JmsMessageGatewayConnection jmsMessageGatewayConnection (final JmsMessageGatewayProperties jmsConf... | [
{
"answer_id": 74364479,
"author": "lsmor",
"author_id": 9271266,
"author_profile": "https://Stackoverflow.com/users/9271266",
"pm_score": 0,
"selected": false,
"text": "ScopedTypeVariables a f {-# LANGUAGE ScopedTypeVariables #-}\n\nclass Basis a where\n getBasis :: Int -> [a]\n\n\nf... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7259705/"
] |
74,364,334 | <p>I need to change a variable each time the function is called.
My function counts the number of time this function has been called:</p>
<pre><code>def score_chart():
num_of_charts=+ 1
return num_of_charts
</code></pre>
<p>At the beginning <code>num_of_charts</code> equals 0. Then I call the function and re-sa... | [
{
"answer_id": 74364385,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 1,
"selected": false,
"text": "def score_chart(num):\n return num + 1\n\nnum_of_charts = 0\nnum_of_charts = score_chart(num_of_charts)\nprint(num... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18775708/"
] |
74,364,357 | <p>I have a data.table <code>x</code> with approx. 2M rows and 2 columns: <code>entry</code> and <code>code</code>. <code>entry</code> contains character values that <em>might</em> be repeated elsewhere in <code>entry</code> in lowered form. Also, all-lower entries exist, that do not have a non-lowered form. Each row i... | [
{
"answer_id": 74364578,
"author": "sindri_baldur",
"author_id": 4552295,
"author_profile": "https://Stackoverflow.com/users/4552295",
"pm_score": 3,
"selected": true,
"text": "rows = grep(\"^[A-Z]\", x$entry)\nx[(rows), lentry := tolower(entry)]\nx[(rows), low_code := x[(-rows)][.SD, on... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2433233/"
] |
74,364,362 | <p>It is possible to make ONLY the first character set to uppercase with css? (e.g: :first-char selector)</p>
<p>in short: if the <strong>text start with a number, do not apply the conversion (capitalize)</strong> afterwards</p>
<pre><code>table.evenOdd tr td::first-letter{
text-transform:capitalize;
}
</co... | [
{
"answer_id": 74364433,
"author": "cameronErasmus",
"author_id": 19525398,
"author_profile": "https://Stackoverflow.com/users/19525398",
"pm_score": 0,
"selected": false,
"text": "span::first-letter {\n text-transform: uppercase;\n}\n"
},
{
"answer_id": 74364498,
"author"... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7461847/"
] |
74,364,455 | <p><a href="https://i.stack.imgur.com/D5asK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D5asK.png" alt="enter image description here" /></a></p>
<p><strong>html page</strong></p>
<pre class="lang-html prettyprint-override"><code> <div class="card pos-card col-6">
... | [
{
"answer_id": 74365054,
"author": "Arleigh Hix",
"author_id": 6127393,
"author_profile": "https://Stackoverflow.com/users/6127393",
"pm_score": 1,
"selected": false,
"text": ".h-100 <link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css\" rel=\"stylesheet\"... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20355754/"
] |
74,364,465 | <p>Using flask, I'm trying to send a file to the user on clicking a button in UI using send_from_directory function. It used to work fine. I wanted to change the repo and since changing it, I'm no more able to download the file. On looking at the supervisor log, I see this:</p>
<pre><code>[9617] [ERROR] Error handling ... | [
{
"answer_id": 74365054,
"author": "Arleigh Hix",
"author_id": 6127393,
"author_profile": "https://Stackoverflow.com/users/6127393",
"pm_score": 1,
"selected": false,
"text": ".h-100 <link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css\" rel=\"stylesheet\"... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5304538/"
] |
74,364,470 | <p>If we look at <a href="https://docs.python.org/3/library/contextlib.html#single-use-reusable-and-reentrant-context-managers" rel="nofollow noreferrer">python docs</a> it states:</p>
<blockquote>
<p>Most context managers are written in a way that means they can only be used effectively in a with statement once. These... | [
{
"answer_id": 74365050,
"author": "S.B",
"author_id": 13944524,
"author_profile": "https://Stackoverflow.com/users/13944524",
"pm_score": 1,
"selected": false,
"text": "from functools import wraps\n\n\nclass MultipleCallToCM(Exception):\n pass\n\n\ndef single_use(cls):\n if not (\... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364470",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4263284/"
] |
74,364,487 | <p>in order to programmatically retrive some <strong>AppTraces</strong> and <strong>AppExceptions</strong> info from an Azure <strong>Application Insights</strong> Logs resource, we followed the instructions included in the following article advicing to adopt the new <strong>Azure Monitor Query</strong> client library ... | [
{
"answer_id": 74365050,
"author": "S.B",
"author_id": 13944524,
"author_profile": "https://Stackoverflow.com/users/13944524",
"pm_score": 1,
"selected": false,
"text": "from functools import wraps\n\n\nclass MultipleCallToCM(Exception):\n pass\n\n\ndef single_use(cls):\n if not (\... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10734697/"
] |
74,364,507 | <p>I have two Nginx servers acting as reverse proxies for nodejs servers running on ports 5000 and 5001.
The one that is running on port 5000 is for normal form upload
The other one that is running on port 5001 is for uploading images
On the client side, what I've done is after filling out the form (title, description,... | [
{
"answer_id": 74365050,
"author": "S.B",
"author_id": 13944524,
"author_profile": "https://Stackoverflow.com/users/13944524",
"pm_score": 1,
"selected": false,
"text": "from functools import wraps\n\n\nclass MultipleCallToCM(Exception):\n pass\n\n\ndef single_use(cls):\n if not (\... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18832663/"
] |
74,364,551 | <p>I'm getting a response from an API and decoding the response like this:</p>
<pre><code>struct MyStuff: Codable {
let name: String
let quantity: Int
let location: String
}
</code></pre>
<p>And I have instance an Entity to map <code>MyStuff</code>:</p>
<pre><code>@objc(Stuff)
public class Stuff: NSManagedO... | [
{
"answer_id": 74365004,
"author": "vadian",
"author_id": 5044042,
"author_profile": "https://Stackoverflow.com/users/5044042",
"pm_score": 3,
"selected": true,
"text": "Decodable Stuff CodingUserInfoKey JSONDecoder extension CodingUserInfoKey {\n static let context = CodingUserInfoKe... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2924482/"
] |
74,364,558 | <p>I have a pandas dataframe in the following format.</p>
<pre><code>| id | name | last_name | address | x | y | x_list | y_list|
| -- | ------- | --------- | ------- | ------- | - | --------- | ----- |
| 1 | 'John' | 'Smith' | 'add_1' | 'one' | 1 | ['one'] | [1] |
| 2 | 'Tom' | 'Davis' | 'ad... | [
{
"answer_id": 74365004,
"author": "vadian",
"author_id": 5044042,
"author_profile": "https://Stackoverflow.com/users/5044042",
"pm_score": 3,
"selected": true,
"text": "Decodable Stuff CodingUserInfoKey JSONDecoder extension CodingUserInfoKey {\n static let context = CodingUserInfoKe... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20451022/"
] |
74,364,569 | <p>I am trying to refactor my api into a minimal api. Previously I've been using ControllerBase.HttpContext to get the user like this:</p>
<pre><code>var emial = HttpContext.User.FindFirstValue(ClaimTypes.Email);
</code></pre>
<p>The method that I want to use for my endpoint mapping should be something like this:</p>
<... | [
{
"answer_id": 74364615,
"author": "Daniel A. White",
"author_id": 23528,
"author_profile": "https://Stackoverflow.com/users/23528",
"pm_score": 2,
"selected": false,
"text": "HttpContext public static async Task<Survey> AddSurveysAsync(\n HttpContext context,\n ISurveyRepository r... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11317067/"
] |
74,364,593 | <pre><code>function message()
{
if (isset($_SESSION['message'])) {
if ($_SESSION['message'] == "signup_err_password") {
echo " <div class='alert alert-danger' role='alert'>
please enter the password in correct form !!!
</div>";
unset($_... | [
{
"answer_id": 74365046,
"author": "Roman",
"author_id": 3895734,
"author_profile": "https://Stackoverflow.com/users/3895734",
"pm_score": -1,
"selected": false,
"text": "<?php\n\nfunction message()\n{\n $messageMap = [\n \"signup_err_password\" => \"lease enter the password in... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20451953/"
] |
74,364,606 | <p>From <a href="https://stackoverflow.com/questions/11659134">this question</a>, given that I don't want to specify any context, hence, passing <code>null</code> to <code>thisArg</code> in <code>call()</code>.</p>
<p>What would be the difference between line 2 and line 3 in the following code? Is there any benefit fro... | [
{
"answer_id": 74365046,
"author": "Roman",
"author_id": 3895734,
"author_profile": "https://Stackoverflow.com/users/3895734",
"pm_score": -1,
"selected": false,
"text": "<?php\n\nfunction message()\n{\n $messageMap = [\n \"signup_err_password\" => \"lease enter the password in... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364606",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10666066/"
] |
74,364,607 | <p>I have Embedded Qt applicaiton runing on my HMI screen.
I am trying to execute some commands to execute in cmd.
I am calling this c++ function simply from QML.
Everytime I call it it hangs on process.start().
Do anyone have any experience for such issue? please help.
I have ceated a simple function to print out date... | [
{
"answer_id": 74365046,
"author": "Roman",
"author_id": 3895734,
"author_profile": "https://Stackoverflow.com/users/3895734",
"pm_score": -1,
"selected": false,
"text": "<?php\n\nfunction message()\n{\n $messageMap = [\n \"signup_err_password\" => \"lease enter the password in... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6200195/"
] |
74,364,631 | <p>I have the following query with high execution time, where current indexes are created on individual columns ENTER_TIME and EXIT_TIME and location_id is primary_key on both the tables.</p>
<p>Database server: Oracle Database 19c Standard Edition 2</p>
<p>Version : 19.11.0.0.0</p>
<pre><code>SELECT
trp.location,... | [
{
"answer_id": 74365046,
"author": "Roman",
"author_id": 3895734,
"author_profile": "https://Stackoverflow.com/users/3895734",
"pm_score": -1,
"selected": false,
"text": "<?php\n\nfunction message()\n{\n $messageMap = [\n \"signup_err_password\" => \"lease enter the password in... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4562784/"
] |
74,364,637 | <p>I'm working through some self guided coding curriculum and currently doing a small project building a holy grail layout with flexbox. Here is my codepen <a href="https://codepen.io/clayco/pen/KKeNjrm" rel="nofollow noreferrer">https://codepen.io/clayco/pen/KKeNjrm</a></p>
<p>Currently, all of the cards are displayed... | [
{
"answer_id": 74365046,
"author": "Roman",
"author_id": 3895734,
"author_profile": "https://Stackoverflow.com/users/3895734",
"pm_score": -1,
"selected": false,
"text": "<?php\n\nfunction message()\n{\n $messageMap = [\n \"signup_err_password\" => \"lease enter the password in... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20451920/"
] |
74,364,652 | <p>I'm trying to remove some strings from filenames i have in a directory using bash. I've tried the following with no success.</p>
<p><code>rename --version</code></p>
<p><code>rename from util-linux 2.23.2</code></p>
<p><code>rename -v 's/[.].*//' *</code></p>
<p><code>rename -v 's/\.vesta-01:2,//' *</code></p>
<p>Or... | [
{
"answer_id": 74364969,
"author": "j_b",
"author_id": 16482938,
"author_profile": "https://Stackoverflow.com/users/16482938",
"pm_score": 0,
"selected": false,
"text": "mv $ ls 166*\n1667874526.M308257P1693.vesta-01:2 1667883117.M371701P32232.vesta-01:2\n$ f1=\"1667874526.M308257P1693.... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10161051/"
] |
74,364,666 | <p>I have a Redmine project that is a container for subprojects. This top level project does not have issues (Issue tracking is not enabled in the project settings).</p>
<p>I am trying to figure out a way for the Python api to detect this. Right now, when my code (which is scanning for issue counts) is going through th... | [
{
"answer_id": 74364969,
"author": "j_b",
"author_id": 16482938,
"author_profile": "https://Stackoverflow.com/users/16482938",
"pm_score": 0,
"selected": false,
"text": "mv $ ls 166*\n1667874526.M308257P1693.vesta-01:2 1667883117.M371701P32232.vesta-01:2\n$ f1=\"1667874526.M308257P1693.... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2019315/"
] |
74,364,675 | <p>I'm sowewhat new to rx and currently I am using it to schedule a cron job which is continuously polling a server via grpc (found that solution a time ago here on Stackoverflow).</p>
<p>The polling function with rx:</p>
<pre><code>Observable.Interval(Timespan)
.Select(l => Observable.FromAsync(() => Job(m_C... | [
{
"answer_id": 74364969,
"author": "j_b",
"author_id": 16482938,
"author_profile": "https://Stackoverflow.com/users/16482938",
"pm_score": 0,
"selected": false,
"text": "mv $ ls 166*\n1667874526.M308257P1693.vesta-01:2 1667883117.M371701P32232.vesta-01:2\n$ f1=\"1667874526.M308257P1693.... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11957956/"
] |
74,364,693 | <p>I have following string in text file:</p>
<pre><code>^25555555~BIG^20200629^20022222^20200629^55555555^^^DI^00~CUR^ZZ^USD
</code></pre>
<p>and want to fetch string between <code>BIG^</code> and <code>^00</code> i.e.
<code>20200629^20022222^20200629^25523652^^^DI</code>. I tried to use following command but it is not... | [
{
"answer_id": 74364785,
"author": "WilliamHarding",
"author_id": 19284008,
"author_profile": "https://Stackoverflow.com/users/19284008",
"pm_score": 2,
"selected": false,
"text": "BIG\\^(.*)\\^00 BIG^20200629^20022222^20200629^55555555^^^DI^00\n (1) 20200629^20022222^20200629^55555555^^... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16855164/"
] |
74,364,698 | <p>Suppose I have this code:</p>
<pre><code>#!/usr/bin/perl
use warnings;
use strict;
package Guy;
sub new {
my $type = shift;
my %params = @_;
my $self = {};
$self->{'First'} = $params{'First'};
$self->{'Middle'} = $params{'Middle'};
$self->{'Last'} = $params{'... | [
{
"answer_id": 74364815,
"author": "choroba",
"author_id": 1030675,
"author_profile": "https://Stackoverflow.com/users/1030675",
"pm_score": 3,
"selected": true,
"text": "sub printMe\n{\n my ($self) = @_;\n ...\n $self->{type} ref $self blessed($self) printf printf \"First :: %s\... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4040743/"
] |
74,364,714 | <p>I want to add a new column names (title_holder) to my dataset (image), based on the column "title". All NAs in the column title should have the value "no" in the new column "title_holder", else the value should be "yes".</p>
<p>Thanks.<a href="https://i.stack.imgur.com/4qaN5.... | [
{
"answer_id": 74364722,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 2,
"selected": false,
"text": "~ library(dplyr)\nage_average <- age %>% \n mutate(title_holder = case_when(!is.na(title)~ \"no\", TRUE ~ \"yes\"))\... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20451876/"
] |
74,364,719 | <p>Basically, I want to create a loop that will continue getting string inputs from users until the user types only a "#" on a line.</p>
<p>I am coming from C++ so I am a bit lost in this Python project I have in mind.</p>
| [
{
"answer_id": 74364778,
"author": "Zach J.",
"author_id": 20276330,
"author_profile": "https://Stackoverflow.com/users/20276330",
"pm_score": 1,
"selected": false,
"text": "last_input = ''\nwhile (last_input != '#'):\n last_input = input()\n # last_input = ''\nall_input = [] # list to... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20451866/"
] |
74,364,771 | <p>I am trying to add a file renaming step in my current workflow to make it easier on some of the other users. What I want to do is take the <code>contigs.fasta</code> file from a spades assembly directory and rename it to include the sample name. (i.e <code>foo_de_novo/contigs.fasta</code> to <code>foo_de_novo/foo.fa... | [
{
"answer_id": 74364778,
"author": "Zach J.",
"author_id": 20276330,
"author_profile": "https://Stackoverflow.com/users/20276330",
"pm_score": 1,
"selected": false,
"text": "last_input = ''\nwhile (last_input != '#'):\n last_input = input()\n # last_input = ''\nall_input = [] # list to... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364771",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9074333/"
] |
74,364,791 | <p>I tried to run codes in my hyper-terminal (deleted nodemon and then reinstalled it) but at the end I still can NOT get the version of my nodemon, it says:
"C:\Users\azadk\AppData\Roaming\npm/node_modules/node/bin/node: line 1: This: command not found"</p>
<p>Here’s what I tried to do:</p>
<p><a href="https... | [
{
"answer_id": 74364778,
"author": "Zach J.",
"author_id": 20276330,
"author_profile": "https://Stackoverflow.com/users/20276330",
"pm_score": 1,
"selected": false,
"text": "last_input = ''\nwhile (last_input != '#'):\n last_input = input()\n # last_input = ''\nall_input = [] # list to... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19401680/"
] |
74,364,798 | <p>Few weeks ago i changed the primary email of my github account a since than my contribution graph is empty , after that i read that this is due to mismatch of my github account email and my local git email from which i am commiting. I changed the local user.email to the correct one but still my activity doesen't sho... | [
{
"answer_id": 74364778,
"author": "Zach J.",
"author_id": 20276330,
"author_profile": "https://Stackoverflow.com/users/20276330",
"pm_score": 1,
"selected": false,
"text": "last_input = ''\nwhile (last_input != '#'):\n last_input = input()\n # last_input = ''\nall_input = [] # list to... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364798",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15118061/"
] |
74,364,813 | <p>consider two dataframes</p>
<pre><code>df1 <- data.frame(a=LETTERS[1:6],
b=c("apple", "apple","dog", "red", "red","red"))
df2 <- data.frame(col1=c("apple", "golf", "dog", "red"),
... | [
{
"answer_id": 74364826,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 3,
"selected": true,
"text": "library(dplyr)\nleft_join(df1, df2, by = c(\"b\" = \"col1\")) %>%\n select(a, b = col2)\n a b\n1 A fruit\n2 B ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16354132/"
] |
74,364,827 | <p>I am currently trying to implement a login to Shopify over the <a href="https://shopify.dev/api/storefront/2022-10/mutations/customerAccessTokenCreateWithMultipass" rel="nofollow noreferrer">Storefront API</a> via <a href="https://shopify.dev/api/multipass" rel="nofollow noreferrer">Multipass</a>.</p>
<p>However, wh... | [
{
"answer_id": 74366368,
"author": "Fabio Filippi",
"author_id": 343794,
"author_profile": "https://Stackoverflow.com/users/343794",
"pm_score": 2,
"selected": true,
"text": "class Multipass:\n def __init__(self, secret):\n key = SHA256.new(secret.encode('utf-8')).digest()\n ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14771706/"
] |
74,364,841 | <p>I have a series of signals, sample data looks like this:
<a href="https://i.stack.imgur.com/cWHFN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cWHFN.png" alt="enter image description here" /></a></p>
<p>We can see that there are 5 peaks there. I can assume that there won't be more than 1 pick e... | [
{
"answer_id": 74366596,
"author": "Ulises Bussi",
"author_id": 17194418,
"author_profile": "https://Stackoverflow.com/users/17194418",
"pm_score": 1,
"selected": false,
"text": "import numpy as np\nimport matplotlib.pyplot as plt\n\narr = np.array([254256., 254390., 251546., 250561., 25... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15282464/"
] |
74,364,871 | <p>I need to specialized numpy arrays. Assume I have a function:</p>
<pre><code> def gen_array(start, end, n_cols):
</code></pre>
<p>It should behave like this, generating three columns where each column goes from start (inclusive) to end (exclusive):</p>
<pre><code>>>> gen_array(20, 25, 3)
array([[20, 20,... | [
{
"answer_id": 74365053,
"author": "ILS",
"author_id": 10017662,
"author_profile": "https://Stackoverflow.com/users/10017662",
"pm_score": 3,
"selected": true,
"text": "numpy.arange numpy.reshape numpy.repeat import numpy as np\n\ndef gen_array(start, end, n_cols):\n return np.arange(... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/558639/"
] |
74,364,879 | <p>the program is supposed to ask for another input if the name input already has been entered before by checking if that name exists in the list. but the problem is the elements of the list are tuples how can a fix that?</p>
<pre><code>from datetime import datetime
ToDoList = []
time = datetime.now()
date_format = &qu... | [
{
"answer_id": 74365053,
"author": "ILS",
"author_id": 10017662,
"author_profile": "https://Stackoverflow.com/users/10017662",
"pm_score": 3,
"selected": true,
"text": "numpy.arange numpy.reshape numpy.repeat import numpy as np\n\ndef gen_array(start, end, n_cols):\n return np.arange(... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,364,924 | <p>I have a table like this:</p>
<pre><code>Id email Active
---------------------
1 aaa 1
2 aaa 1
3 aaa 0
4 aaa 0
</code></pre>
<p>I want to delete duplicate row but if Active have 1/0 value keep 1 value and delete 0 value.</p>
<p>I tried this que... | [
{
"answer_id": 74365053,
"author": "ILS",
"author_id": 10017662,
"author_profile": "https://Stackoverflow.com/users/10017662",
"pm_score": 3,
"selected": true,
"text": "numpy.arange numpy.reshape numpy.repeat import numpy as np\n\ndef gen_array(start, end, n_cols):\n return np.arange(... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20446355/"
] |
74,364,929 | <p>I'm trying to do this by convert the response to json and then find the filed form it.</p>
<p>But I don't know neither how to convert it to json, nor how to traverse the json.</p>
<pre><code>@POST
@Path("/custoemrs")
@Produces({ MediaType.APPLICATION_JSON })
Response createCustomer(Customer cus... | [
{
"answer_id": 74365053,
"author": "ILS",
"author_id": 10017662,
"author_profile": "https://Stackoverflow.com/users/10017662",
"pm_score": 3,
"selected": true,
"text": "numpy.arange numpy.reshape numpy.repeat import numpy as np\n\ndef gen_array(start, end, n_cols):\n return np.arange(... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20410560/"
] |
74,364,934 | <p>When trying to start postgresql</p>
<pre><code>➜ ~ brew services start postgresql
Warning: Use postgresql@14 instead of deprecated postgresql
Bootstrap failed: 5: Input/output error
Try re-running the command as root for richer errors.
Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/josh/Li... | [
{
"answer_id": 74365053,
"author": "ILS",
"author_id": 10017662,
"author_profile": "https://Stackoverflow.com/users/10017662",
"pm_score": 3,
"selected": true,
"text": "numpy.arange numpy.reshape numpy.repeat import numpy as np\n\ndef gen_array(start, end, n_cols):\n return np.arange(... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364934",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19111700/"
] |
74,364,964 | <p>I have multiple csv files present in hadoop folder. each csv files will have the header present with it. the header will remain the same in each file.</p>
<p>I am writing these csv files with the help of spark dataset like this in java</p>
<p><code>df.write().csv(somePath)</code></p>
<p>I was also thinking of using ... | [
{
"answer_id": 74365281,
"author": "viniciusfelipe",
"author_id": 20452202,
"author_profile": "https://Stackoverflow.com/users/20452202",
"pm_score": 0,
"selected": false,
"text": "# importing libraries\nimport pandas as pd\nimport glob\nimport os\n \n# merging the files\njoined_files =... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15170477/"
] |
74,364,987 | <p>I was tasked with writing code that would convert strings into their initials via a function. For example, running "Dog" and "Cat" through the function would yield an output of "D. C.". However, another component of the task is that the code must require at least 2 strings to run. This ... | [
{
"answer_id": 74365281,
"author": "viniciusfelipe",
"author_id": 20452202,
"author_profile": "https://Stackoverflow.com/users/20452202",
"pm_score": 0,
"selected": false,
"text": "# importing libraries\nimport pandas as pd\nimport glob\nimport os\n \n# merging the files\njoined_files =... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74364987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20344353/"
] |
74,365,066 | <p>How can I make a program in C# that gets 3 digits from the user and outputs the smallest one? It's gonna be as a Console App.</p>
<p>I tried this and gave me an error (I may be stupid):</p>
<pre><code>if (a<b<c)
{
min=a;
Console.WriteLine("Min: " + min);
</code></pre>
<p>I don't now what else should ... | [
{
"answer_id": 74365155,
"author": "Austin",
"author_id": 12571241,
"author_profile": "https://Stackoverflow.com/users/12571241",
"pm_score": 2,
"selected": false,
"text": "int min;\n if (a < b)\n min = a;\nelse\n min = b;\n if (c < min)\n min = c;\n c min c int a = 4;\nint b = ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74365066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16516830/"
] |
74,365,073 | <p>I am trying to change my source image of UI.Image with script. You can see below that there are two versions with the former (the one commented) working but the latter not. I have tried to change the texture type from Default to Sprite (2D and UI) but it still not working. Can someone explain why?</p>
<pre><code>//v... | [
{
"answer_id": 74369587,
"author": "fp Van",
"author_id": 20415202,
"author_profile": "https://Stackoverflow.com/users/20415202",
"pm_score": 0,
"selected": false,
"text": "Resources.Load(\"candy_110/candy1_green_01\") Object null"
},
{
"answer_id": 74375336,
"author": "Andri... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74365073",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9508705/"
] |
74,365,095 | <p>Automating small business reporting from my Quickbooks P&L. I'm trying to get the net income value for the current month from a specific cell in a dataframe, but that cell moves one column to the right every month when I update the csv file.</p>
<p>For example, for the code below, this month I want the value fro... | [
{
"answer_id": 74369587,
"author": "fp Van",
"author_id": 20415202,
"author_profile": "https://Stackoverflow.com/users/20415202",
"pm_score": 0,
"selected": false,
"text": "Resources.Load(\"candy_110/candy1_green_01\") Object null"
},
{
"answer_id": 74375336,
"author": "Andri... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74365095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19453328/"
] |
74,365,103 | <p>I have a small code created in python and from an api I would like to go through all the
<code>code = url.json()["data"][0]["name"]</code></p>
<p>But I do not know how to do it</p>
<p>this is my little code:</p>
<pre><code>import requests
swf = input("write: ")
url = requests.get(f&... | [
{
"answer_id": 74365170,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 1,
"selected": false,
"text": "data['data'][0]['code'] data['data'] for d in data['data']:\n print(d['code'])\n"
},
{
"answer_id": 743651... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74365103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20452313/"
] |
74,365,112 | <p>my React Webapp has some strange behaivior, I have implemented a global edit mode, which can be activated and deactivated, the state variable which controls this gets passed by a ContextProvider. When activated, a button gets inserted into the DOM, which can open up a form.</p>
<pre><code>{edit ?
<button
onClick=... | [
{
"answer_id": 74365160,
"author": "sumowrestler",
"author_id": 4504046,
"author_profile": "https://Stackoverflow.com/users/4504046",
"pm_score": 1,
"selected": false,
"text": "onClick onClick={setShowLinkForm(true)} onClick={() => setShowLinkForm(true)}"
},
{
"answer_id": 743652... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74365112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9212944/"
] |
74,365,129 | <p>When I try to run <code>!pip install google-cloud-vision</code> and <code>from google.cloud import vision</code>on google colab</p>
<p>I get the following error:</p>
<blockquote>
<p>ContextualVersionConflict (protobuf 3.17.3 (/usr/local/lib/python3.7/dist-packages), Requirement.parse('protobuf!=3.20.0,!=3.20.1,!=4.2... | [
{
"answer_id": 74365160,
"author": "sumowrestler",
"author_id": 4504046,
"author_profile": "https://Stackoverflow.com/users/4504046",
"pm_score": 1,
"selected": false,
"text": "onClick onClick={setShowLinkForm(true)} onClick={() => setShowLinkForm(true)}"
},
{
"answer_id": 743652... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74365129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20452149/"
] |
74,365,144 | <p>I am practicing React now and I have a task that I am not sure how to do
The main idea is to filter tasks in todos list when you type user ID
I created another button and when you type user's id it will show exact user's tasks
I did filter tasks as well just for practice, but don't know how to filter user's tasks wh... | [
{
"answer_id": 74365814,
"author": "twharmon",
"author_id": 5808504,
"author_profile": "https://Stackoverflow.com/users/5808504",
"pm_score": 2,
"selected": true,
"text": "parseInt const onUserChange = (event) => {\n setUserId(parseInt(event.target.value))\n}\n"
}
] | 2022/11/08 | [
"https://Stackoverflow.com/questions/74365144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19501234/"
] |
74,365,266 | <p>I have a model with some fields with a verbose_name. This verbose name is suitable for the admin edit page, but definitively too long for the list page.</p>
<p>How to set the label to be used in the <code>list_display</code> admin page ?</p>
| [
{
"answer_id": 74365388,
"author": "Willem Van Onsem",
"author_id": 67579,
"author_profile": "https://Stackoverflow.com/users/67579",
"pm_score": 1,
"selected": false,
"text": "verbose_name help_text=… from django.db import models\n\n\nclass MyModel(models.Model):\n name = models.Char... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74365266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1745291/"
] |
74,365,331 | <p>I am working on a mobile application and I want to create a list of images like in this example\</p>
<p><a href="https://i.stack.imgur.com/jP8TY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jP8TY.png" alt="enter image description here" /></a></p>
<p>I searched about it but didn't know what it w... | [
{
"answer_id": 74365899,
"author": "user18309290",
"author_id": 18309290,
"author_profile": "https://Stackoverflow.com/users/18309290",
"pm_score": 3,
"selected": true,
"text": "flexDirection row left zIndex"
},
{
"answer_id": 74366905,
"author": "Michael Bahl",
"author_i... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74365331",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13546478/"
] |
74,365,340 | <p>This is my App.js. I'm trying to add bottom tabs for my app.</p>
<p>`</p>
<pre><code>import React from 'react';
import { View, Text, StyleSheet } from 'react-native';
import Home from './components/Home';
import Details from './components/Details';
import Liked from './components/Liked';
import Profile from './compo... | [
{
"answer_id": 74365899,
"author": "user18309290",
"author_id": 18309290,
"author_profile": "https://Stackoverflow.com/users/18309290",
"pm_score": 3,
"selected": true,
"text": "flexDirection row left zIndex"
},
{
"answer_id": 74366905,
"author": "Michael Bahl",
"author_i... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74365340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12310859/"
] |
74,365,375 | <p>I would like to create a tuple dictionary of a dataframe. Currently, I have a dataframe looking like this:</p>
<hr />
<pre><code>xxxxxxxxx | Period 1 | Period 2 |
Customer | -------- | -------- |
Customer 1| 31 | 222 |
Customer 2| 46 | 187 |
</code></pre>
<hr />
<p>I would like to get a tuple ... | [
{
"answer_id": 74365899,
"author": "user18309290",
"author_id": 18309290,
"author_profile": "https://Stackoverflow.com/users/18309290",
"pm_score": 3,
"selected": true,
"text": "flexDirection row left zIndex"
},
{
"answer_id": 74366905,
"author": "Michael Bahl",
"author_i... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74365375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20110815/"
] |
74,365,381 | <p>I am in Unity 2D and I need to delay the jump, because right now you can just spam jump, which shouldn't happen, it is not good for a platformer. Here is my whole movement script:</p>
<pre><code>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMove : MonoBehaviour
{
... | [
{
"answer_id": 74365899,
"author": "user18309290",
"author_id": 18309290,
"author_profile": "https://Stackoverflow.com/users/18309290",
"pm_score": 3,
"selected": true,
"text": "flexDirection row left zIndex"
},
{
"answer_id": 74366905,
"author": "Michael Bahl",
"author_i... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74365381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19097364/"
] |
74,365,399 | <p>I am learning the php code.
I'm in a situation where it has to be done as soon as possible.
Please help me reorganize my xml duplicate data.</p>
<p>original .xml file</p>
<pre><code><products>
<product>
<ID>ID1</ID>
<SKU_parent>SKU1</SKU_parent>
<SKU>MA</SKU&g... | [
{
"answer_id": 74365874,
"author": "Valeriu Ciuca",
"author_id": 4527645,
"author_profile": "https://Stackoverflow.com/users/4527645",
"pm_score": 1,
"selected": false,
"text": "SKU_parent product $xml_string = '<products>\n <product>\n <ID>ID1</ID>\n <SKU_parent>SKU1</S... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74365399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14302722/"
] |
74,365,410 | <p>I want to get the duplicates between two lists. Something like this:</p>
<pre><code>list1 = [1,2,3,4,5]
list2 = [1,2,8,4,6]
duplicates = getDuplicates(list1, list2)
print(duplicates) # => = [1,2,4]
</code></pre>
<p>I tried to search for an answer, but I only found how to remove the duplicates.</p>
| [
{
"answer_id": 74365442,
"author": "jsbueno",
"author_id": 108205,
"author_profile": "https://Stackoverflow.com/users/108205",
"pm_score": 0,
"selected": false,
"text": "set1 = set(list1)\nduplicates = [item for item in list2 if item in set1]\n duplicates = [item for item in list2 if ite... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74365410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20452467/"
] |
74,365,423 | <pre><code>import statistics
def main():
with open('Grades.txt', mode='w') as Grades:
Grade = input("Please enter student grades. " ) #Gets Input from User
Grades.write(str(Grade) + '\n') #Has the student grades written into the Grades text file and has each of them on a new line.
with open('Gr... | [
{
"answer_id": 74365442,
"author": "jsbueno",
"author_id": 108205,
"author_profile": "https://Stackoverflow.com/users/108205",
"pm_score": 0,
"selected": false,
"text": "set1 = set(list1)\nduplicates = [item for item in list2 if item in set1]\n duplicates = [item for item in list2 if ite... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74365423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20452513/"
] |
74,365,441 | <p>Just downloaded and installed SDK Net 7.0.100 and it broke existing applications and they won't load any more in VS 2022 or Rider.</p>
<p>Copied the follwing error:</p>
<pre><code>error : SDK Resolver Failure: "The SDK resolver "Microsoft.DotNet.MSBuildSdkResolver"
failed while attempting to resolve... | [
{
"answer_id": 74379486,
"author": "nagilson",
"author_id": 20461346,
"author_profile": "https://Stackoverflow.com/users/20461346",
"pm_score": 5,
"selected": false,
"text": "TargetFramework TargetFramework dotnet workload clean"
},
{
"answer_id": 74450313,
"author": "breadsw... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74365441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9586015/"
] |
74,365,464 | <p>I'm trying to make a simple hyper casual. I couldn't understand what's wrong with my codes.</p>
<p>My code:</p>
<pre><code>public class CameraFollow : MonoBehaviour
{
public Transform Target;
public Vector3 offset;
void LateUptade()
{
transform.position = Vector3.Lerp(transform.position, Target.posit... | [
{
"answer_id": 74365574,
"author": "Voidsay",
"author_id": 19151717,
"author_profile": "https://Stackoverflow.com/users/19151717",
"pm_score": -1,
"selected": false,
"text": "Time.deltaTime Lerp LateUpdate LateUptade transform.position = Vector3.Lerp(transform.position, Target.position +... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74365464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9819483/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.