qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,504,540 | <p>I have a date in Pyspark dataframe in "String" format as "dd-MMM-yyyy ( eg "01-Jan-2022").
I want to convert this to date with the same format so the Output should be</p>
<pre><code>01-Jan-2022
</code></pre>
<p>The code i am using for this is as below, but the format doesn't convert properly... | [
{
"answer_id": 74504599,
"author": "kind user",
"author_id": 6695924,
"author_profile": "https://Stackoverflow.com/users/6695924",
"pm_score": 3,
"selected": true,
"text": "yes useMemo useMemo useMemo tw App className useMemo tw className App useMemo export default function App() {\n co... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74504540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18627728/"
] |
74,504,558 | <p>I want to let the user to enter three different arguments without changing the order of the output</p>
<blockquote>
</blockquote>
<pre><code>function check_status($a, $b, $c) {
Some stuff
}
// Needed Output
echo check_status("User", 38, true); // "Hello User, Your Age Is 38, You Are Available For H... | [
{
"answer_id": 74504775,
"author": "Veenz",
"author_id": 7518737,
"author_profile": "https://Stackoverflow.com/users/7518737",
"pm_score": 1,
"selected": true,
"text": "<?php\nfunction check_status($a, $b, $c) {\n $name = null;\n $age = null;\n $availability = null;\n if (is_string($... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74504558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20551041/"
] |
74,504,560 | <p>I have this dictionary, and when I code for it, I only have the answer for June, May, September. How would I code for the months that are not given in the dictionary? Obviously, I have zero for them.</p>
<pre><code>{'account': 'Amazon', 'amount': 300, 'day': 3, 'month': 'June'}
{'account': 'Facebook', 'amount': 550... | [
{
"answer_id": 74504604,
"author": "Montreal",
"author_id": 17696292,
"author_profile": "https://Stackoverflow.com/users/17696292",
"pm_score": -1,
"selected": false,
"text": "wages = {'01': 910.56, '02': 1298.68, '03': 1433.99, '04': 1050.14, '05': 877.67}\ntotal = sum(wages.values())\n... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74504560",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20544158/"
] |
74,504,566 | <p>From Windows 10 command line , Python 3.9.13, in directory:</p>
<pre><code>C:\Users\foo.bar\wks\df\data
</code></pre>
<p>when trying to run :</p>
<pre><code>python unilm\\layoutlm\\examples\\seq_labeling\\preprocess.py --data_dir FUNSD\\training_data\\annotations --data_split train --output_dir data --model_name_or_... | [
{
"answer_id": 74504604,
"author": "Montreal",
"author_id": 17696292,
"author_profile": "https://Stackoverflow.com/users/17696292",
"pm_score": -1,
"selected": false,
"text": "wages = {'01': 910.56, '02': 1298.68, '03': 1433.99, '04': 1050.14, '05': 877.67}\ntotal = sum(wages.values())\n... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74504566",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1226649/"
] |
74,504,574 | <p><a href="https://i.stack.imgur.com/n8Wax.png" rel="nofollow noreferrer">enter image description here</a>I'm trying to populate the data in the html table with jquery and all columns get undefined error</p>
<p>Html:</p>
<pre><code><table id="example" class="table table-striped" style="widt... | [
{
"answer_id": 74504604,
"author": "Montreal",
"author_id": 17696292,
"author_profile": "https://Stackoverflow.com/users/17696292",
"pm_score": -1,
"selected": false,
"text": "wages = {'01': 910.56, '02': 1298.68, '03': 1433.99, '04': 1050.14, '05': 877.67}\ntotal = sum(wages.values())\n... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74504574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20499642/"
] |
74,504,581 | <p>I need to insert data in a binary file in a way that every insertion is a block of 100 positions, for example. Since I know where it starts, I could easily use fseek/seekg to access elements 0 * 100, 1 * 100, 2 * 100,... n * 100. So how could I guarantee that every insertion ends in a position k * 100?</p>
<p>Or, al... | [
{
"answer_id": 74504675,
"author": "ANISH SAJI KUMAR",
"author_id": 12309235,
"author_profile": "https://Stackoverflow.com/users/12309235",
"pm_score": 1,
"selected": false,
"text": "i i for(int i=0;i<10;i++)\n{\n fwrite(&i,sizeof(i),1,fp);\n}\n for(int i=0;i<10;i++)\n{\n fwrite(&... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74504581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20203803/"
] |
74,504,583 | <p>My mission is: SMS Code input separately and <strong>inputs have to be just one number.</strong></p>
<p>My inputs jump from one line to the next, and while pressing backspace deletes them backwards, it also allows for multiple number entries, which I don't want.</p>
<p>I have an SMS code section, like this: <a href=... | [
{
"answer_id": 74504675,
"author": "ANISH SAJI KUMAR",
"author_id": 12309235,
"author_profile": "https://Stackoverflow.com/users/12309235",
"pm_score": 1,
"selected": false,
"text": "i i for(int i=0;i<10;i++)\n{\n fwrite(&i,sizeof(i),1,fp);\n}\n for(int i=0;i<10;i++)\n{\n fwrite(&... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74504583",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16296778/"
] |
74,504,619 | <p>My problem is that I want to take data from .json file, and initialize with it a list of objects.</p>
<p>I have my .json file:</p>
<pre class="lang-json prettyprint-override"><code>{
"Card1": {
"Name": "Kyiv",
"price": 200,
"taxes": 150
},
"Car... | [
{
"answer_id": 74506313,
"author": "Charles Han",
"author_id": 11514907,
"author_profile": "https://Stackoverflow.com/users/11514907",
"pm_score": 0,
"selected": false,
"text": " using (StreamReader r = new StreamReader(\"C:\\\\fileName.json\"))\n {\n s... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74504619",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18286506/"
] |
74,504,679 | <p>I am trying to build a simple game and I would like Python to return a message when a player enters a negative number. My issue is that negative numbers are interpreted as strings when the player tries to enter them.</p>
<p>Here is my script:</p>
<pre><code>while True:
user_guess = input("Guess a number: &q... | [
{
"answer_id": 74504718,
"author": "rada-dev",
"author_id": 14840385,
"author_profile": "https://Stackoverflow.com/users/14840385",
"pm_score": -1,
"selected": false,
"text": "def input_number(message):\n while True:\n user_guess = input(message)\n try:\n n = ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74504679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20551136/"
] |
74,504,697 | <p>I'm new in bash scripting and I'm trying to make a script which split a large file in multiple files.
I succeeded with case statement but how can I make it without case statement? For example If I have a file with 30 millions of lines (some database file).
Thank you in advance!</p>
<pre><code>echo File which one you... | [
{
"answer_id": 74505532,
"author": "Maximilian Ballard",
"author_id": 6060841,
"author_profile": "https://Stackoverflow.com/users/6060841",
"pm_score": 2,
"selected": true,
"text": "# ...\n\nz=('2' '3' '4' '5' '10' '25')\nx=$(( $(printf '%d' \"'$numberOfFiles\") -97 ))\n\nif [[ $x -lt \... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74504697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20550025/"
] |
74,504,714 | <p>GHC 9.2.4 gives a multiple declaration error for the following code:</p>
<pre><code>data X = A | B | C
data Y = A | B | C
</code></pre>
<p>There are so many new extensions in GHC nowadays. Is there one that allows me to do the above (since it is semantically appropriate for my problem domain) or is the common soluti... | [
{
"answer_id": 74505532,
"author": "Maximilian Ballard",
"author_id": 6060841,
"author_profile": "https://Stackoverflow.com/users/6060841",
"pm_score": 2,
"selected": true,
"text": "# ...\n\nz=('2' '3' '4' '5' '10' '25')\nx=$(( $(printf '%d' \"'$numberOfFiles\") -97 ))\n\nif [[ $x -lt \... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74504714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1002430/"
] |
74,504,720 | <p>I have one row of temperature data in a text file that I would like to convert to a single column and save as a CSV file using a PowerShell script. The temperatures are separated by commas and look like this:</p>
<pre><code>21,22,22,22,22,22,22,20,19,18,17,16,15,14,13,12,11,10,9,9,9,8,8,9,8,8,8,9,9,8,8,8,9,9,9,8,8,8... | [
{
"answer_id": 74505532,
"author": "Maximilian Ballard",
"author_id": 6060841,
"author_profile": "https://Stackoverflow.com/users/6060841",
"pm_score": 2,
"selected": true,
"text": "# ...\n\nz=('2' '3' '4' '5' '10' '25')\nx=$(( $(printf '%d' \"'$numberOfFiles\") -97 ))\n\nif [[ $x -lt \... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74504720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18365124/"
] |
74,504,770 | <p>My code I currently have is below, I want to put a filled in red circle where I have the plt.text below. How would I do that?</p>
<pre><code>plt.plot('Month', 'Total Profit', data=fruit_sales_df, color='g', ls='--')
plt.ylim(35000, 74999)
plt.text(11, 70476, '70476')
plt.title("Total Profit Trend by Month"... | [
{
"answer_id": 74504852,
"author": "BlacKow",
"author_id": 1416371,
"author_profile": "https://Stackoverflow.com/users/1416371",
"pm_score": 2,
"selected": false,
"text": "import matplotlib.pyplot as plt\n\nplt.plot([1, 2], [3, 4], color='g', ls='--')\nplt.text(1.5, 3.7, '70476')\nplt.pl... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74504770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20496906/"
] |
74,504,776 | <p>I'm making a shopping cart list, where the products are added and identified by their codes.</p>
<p>The system has to add, remove, show and checkout.</p>
<p>Show and checkout commands are working fine.</p>
<p>Add is working fine too, but it has a particularity: it´s mandatory to add with "Add 15", "Ad... | [
{
"answer_id": 74504802,
"author": "Veenz",
"author_id": 7518737,
"author_profile": "https://Stackoverflow.com/users/7518737",
"pm_score": 2,
"selected": false,
"text": "cart = []\nwhile True:\n command = str(input(\"Command: \")).split()\n if \"add\" in command:\n cart.appe... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74504776",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17038776/"
] |
74,504,800 | <p>I have a 2d array of values, and I want to add a 1d array to this 2d array element wise such that I would get a 3d array where each element is the original 2d array plus a respective element of the 1d array. For example:</p>
<pre><code>A = np.array([
[10, 9, 8, 7, 6],
[5, 4, 3, 2, 1]
])
B = np.array([1, 2, 3... | [
{
"answer_id": 74504802,
"author": "Veenz",
"author_id": 7518737,
"author_profile": "https://Stackoverflow.com/users/7518737",
"pm_score": 2,
"selected": false,
"text": "cart = []\nwhile True:\n command = str(input(\"Command: \")).split()\n if \"add\" in command:\n cart.appe... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74504800",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12498477/"
] |
74,504,821 | <p>I am trying to build an isomorphic React app, but for now I will just limit my question to the server side rendering portion. I want to render some React JS components on the server side of my application. I am able to do so with the method <code>ReactDomServer.renderToString</code>. However I am unable to get the C... | [
{
"answer_id": 74504802,
"author": "Veenz",
"author_id": 7518737,
"author_profile": "https://Stackoverflow.com/users/7518737",
"pm_score": 2,
"selected": false,
"text": "cart = []\nwhile True:\n command = str(input(\"Command: \")).split()\n if \"add\" in command:\n cart.appe... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74504821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8929431/"
] |
74,504,833 | <p>New to Teams (and Blazer) dev and are stumped by a seemingly simple question using the Teams Toolkit.</p>
<p>We have two Razer pages (ie. under the "Pages" folder in the project - as any asp.net core app has) and want to click from one page to the next from within our Teams Tab App (ideally using an tag) ... | [
{
"answer_id": 74504802,
"author": "Veenz",
"author_id": 7518737,
"author_profile": "https://Stackoverflow.com/users/7518737",
"pm_score": 2,
"selected": false,
"text": "cart = []\nwhile True:\n command = str(input(\"Command: \")).split()\n if \"add\" in command:\n cart.appe... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74504833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1835301/"
] |
74,504,869 | <p>I have a row of 3 inputs. One of them has label text placed above its input. I do not want this label text to interfere with the alignment of the inputs. Right now I'm using flexbox in my example. My hack/approach is to use <code>position: absolute;</code> on my optional label text to remove it from the flex flow so... | [
{
"answer_id": 74504802,
"author": "Veenz",
"author_id": 7518737,
"author_profile": "https://Stackoverflow.com/users/7518737",
"pm_score": 2,
"selected": false,
"text": "cart = []\nwhile True:\n command = str(input(\"Command: \")).split()\n if \"add\" in command:\n cart.appe... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74504869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2368033/"
] |
74,504,875 | <p>Didn't think that I'll be asking for help on stackoverflow but yeah, I'm stuck...
So after the updating of flutter_local_notifications , I've change the method to Darwin and after that I can't build the app because of an error 'The argument type 'Future Function(String)' can't be assigned to the parameter type 'void... | [
{
"answer_id": 74504802,
"author": "Veenz",
"author_id": 7518737,
"author_profile": "https://Stackoverflow.com/users/7518737",
"pm_score": 2,
"selected": false,
"text": "cart = []\nwhile True:\n command = str(input(\"Command: \")).split()\n if \"add\" in command:\n cart.appe... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74504875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20551260/"
] |
74,504,887 | <p>I am having difficulty creating a a for while loop that allows the user to enter a number and that number determines how many times the loop will execute.
I need to create this method and have it execute in Main()
feeling lost and not sure why my current code isn't working.</p>
<pre><code> public static int InputVal... | [
{
"answer_id": 74504802,
"author": "Veenz",
"author_id": 7518737,
"author_profile": "https://Stackoverflow.com/users/7518737",
"pm_score": 2,
"selected": false,
"text": "cart = []\nwhile True:\n command = str(input(\"Command: \")).split()\n if \"add\" in command:\n cart.appe... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74504887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20527253/"
] |
74,504,933 | <p>After update an change some thing I have the error "Unable to resolve moudle firebase/auth"</p>
<pre class="lang-js prettyprint-override"><code>"@firebase/auth": "^0.20.11",
"@firebase/firestore": "^3.4.12",
"firebase": "9.9.0",
</code></pre... | [
{
"answer_id": 74504802,
"author": "Veenz",
"author_id": 7518737,
"author_profile": "https://Stackoverflow.com/users/7518737",
"pm_score": 2,
"selected": false,
"text": "cart = []\nwhile True:\n command = str(input(\"Command: \")).split()\n if \"add\" in command:\n cart.appe... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74504933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16421641/"
] |
74,504,971 | <p>My question is basically the same as [1], but the challenge is to compare a nested <code>vector<vector<double>></code>.</p>
<p>As a background to the problem I'm facing: I have an n-way index based on std::set where items are sorted by time primarily, and secondarily by geometry. That is, equal polygons ... | [
{
"answer_id": 74505330,
"author": "Ranoiaetep",
"author_id": 12861639,
"author_profile": "https://Stackoverflow.com/users/12861639",
"pm_score": -1,
"selected": false,
"text": "operator< vector<vector<double>> const& bool operator< (const vector<vector<double>& l, const vector<vector<do... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74504971",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1708349/"
] |
74,504,977 | <p>How to remove an object (element) based on the property from nested obj.
For example, I need to remove all objects with type: 'green' from obj tree
if obj has children it will be also removed.</p>
<pre><code>const obj = {
id: '01',
children: [
{
id: '02',
type: 'green',
children: [
... | [
{
"answer_id": 74505037,
"author": "Kinglish",
"author_id": 1772933,
"author_profile": "https://Stackoverflow.com/users/1772933",
"pm_score": 3,
"selected": true,
"text": "map const removeByType = (data, type) => {\n data = data.filter(d => d.type !== type)\n data = data.map(d => {\n ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74504977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11020843/"
] |
74,504,999 | <p>New to java here! I'm writing a Pizza program and am stuck on how to stop printing already selected items to the menu after each loop iteration. Can someone take a look at my code and help me out? We haven't covered user defined methods yet, which seems like it could simplify this whole project. Any tips on how to i... | [
{
"answer_id": 74505100,
"author": "exoad",
"author_id": 14501343,
"author_profile": "https://Stackoverflow.com/users/14501343",
"pm_score": 2,
"selected": false,
"text": "type[] ArrayList import java.util.ArrayList;\n\nArrayList<String> myArray = new ArrayList<>();\nmyArray.add(\"hello\... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74504999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20400371/"
] |
74,505,013 | <p>I have an Ontology which have some SWRL rules (created using Protege). I am using OWL API to manipulate the ontology and using JENA API for SPARQL Queries.
I need to reason this ontology using Pellet (As pellet supports SWRL and i have sed the reasoner inside protege).
I saw some examples at <a href="https://github.... | [
{
"answer_id": 74507025,
"author": "Ignazio",
"author_id": 1197045,
"author_profile": "https://Stackoverflow.com/users/1197045",
"pm_score": 1,
"selected": false,
"text": "<dependency>\n<groupId>net.sourceforge.owlapi</groupId>\n<artifactId>pellet-owlapi-ignazio1977</artifactId>\n<versio... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20194857/"
] |
74,505,019 | <p>I have a df like this :</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">PRODUCTNUMBER</th>
<th style="text-align: center;">Jerarquía principal</th>
<th style="text-align: right;">Jerarquía secundaria marcas</th>
<th style="text-align: right;">COT</th>
<th style=... | [
{
"answer_id": 74505070,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 1,
"selected": false,
"text": "df = (\n df.set_index(\"PRODUCTNUMBER\")\n .stack()\n .reset_index()\n .rename(\n columns... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13737893/"
] |
74,505,054 | <p>i'm completely new to Kubernetes so forgive me if im asking some dumb questions :-0</p>
<p>when you deploy apps to k8s, you usually write up some yaml files for the app right?
how do you know which k8s objects you should make config file for?</p>
<p>for example, im following a tutorial that deploys mysql on k8s and ... | [
{
"answer_id": 74507396,
"author": "rok",
"author_id": 1264304,
"author_profile": "https://Stackoverflow.com/users/1264304",
"pm_score": 0,
"selected": false,
"text": "yaml files"
}
] | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505054",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20551376/"
] |
74,505,069 | <p>For this assignment, I have to write a program that removes the odd numbers from an array
and replaces them with even numbers. The array must have 10 elements and be initialized with the
following numbers: 42, 9, 23, 101, 99, 22, 13, 5, 77, 28.</p>
<p>These are the requirements:</p>
<ol>
<li>Must use the values prov... | [
{
"answer_id": 74507396,
"author": "rok",
"author_id": 1264304,
"author_profile": "https://Stackoverflow.com/users/1264304",
"pm_score": 0,
"selected": false,
"text": "yaml files"
}
] | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505069",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20551408/"
] |
74,505,077 | <p>I've started to learn python about 4 days ago. To practice, I've decided to make a program that calculates combinations.</p>
<p>Here is the code:</p>
<pre><code>print('Insert values for your combination (Cp,n)')
def combin(exemplo):
print('insert p value')
p = int(input())
print('insert n value')
n =... | [
{
"answer_id": 74505091,
"author": "White Wizard",
"author_id": 9366059,
"author_profile": "https://Stackoverflow.com/users/9366059",
"pm_score": 0,
"selected": false,
"text": "res = int(exemplo[0]/(fator(exemplo[0]-exemplo[1])*fator(exemplo[1]))\n"
},
{
"answer_id": 74505094,
... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20551441/"
] |
74,505,088 | <pre><code>Name Day 1 Day2 Day 3
John 3 2
John 2 1 4
</code></pre>
<p>Using a double Xlookup, when I'm searching for John and Day 2, I cannot get the value 1 and I'm trying Index/Xmatch/xmatch to return me 1 but no luck. Any idea to go about it?</p>
<p>@@@Updated example picture here@@@
<a href=... | [
{
"answer_id": 74505091,
"author": "White Wizard",
"author_id": 9366059,
"author_profile": "https://Stackoverflow.com/users/9366059",
"pm_score": 0,
"selected": false,
"text": "res = int(exemplo[0]/(fator(exemplo[0]-exemplo[1])*fator(exemplo[1]))\n"
},
{
"answer_id": 74505094,
... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20551467/"
] |
74,505,113 | <p>I'm trying to get a list of Vendors' names where the name starts with a character between A and E. Is there a way to do that perhaps using LINQ?</p>
<p>My current solution is just a very long if statement</p>
<pre><code>var vendors = _context.Vendors.ToList();
var sortedVendors = new List<Vendor>();
foreach (... | [
{
"answer_id": 74505091,
"author": "White Wizard",
"author_id": 9366059,
"author_profile": "https://Stackoverflow.com/users/9366059",
"pm_score": 0,
"selected": false,
"text": "res = int(exemplo[0]/(fator(exemplo[0]-exemplo[1])*fator(exemplo[1]))\n"
},
{
"answer_id": 74505094,
... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10355675/"
] |
74,505,123 | <p>I've exported into a text file all of my text messages and they are formatted as such.</p>
<pre><code>, NAME +18001112222, RECV, Text message contents.
, NAME +18001112222, RECV, Text message contents that are run over to
the line below it.
, NAME +18001112222, SENT, Text message contents that have
multiple lines ... | [
{
"answer_id": 74505273,
"author": "jhnc",
"author_id": 10971581,
"author_profile": "https://Stackoverflow.com/users/10971581",
"pm_score": 2,
"selected": false,
"text": "awk -v ORS= '\n NR>1 && /^, / { print \"\\n\" }\n 1;\n END { print \"\\n\" }\n' inputfile\n , , "
},
{
... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15079849/"
] |
74,505,124 | <p>When <code>setState</code> is called in a widget's state, the corresponding element in the element tree gets marked as dirty, and the widget gets rebuilt. However, how does it handle descendents? For example, the <code>Text</code> widget below gets rebuilt when its ancestor <code>SampleWidgetState</code> gets rebuil... | [
{
"answer_id": 74505273,
"author": "jhnc",
"author_id": 10971581,
"author_profile": "https://Stackoverflow.com/users/10971581",
"pm_score": 2,
"selected": false,
"text": "awk -v ORS= '\n NR>1 && /^, / { print \"\\n\" }\n 1;\n END { print \"\\n\" }\n' inputfile\n , , "
},
{
... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8386132/"
] |
74,505,133 | <pre><code>method1('id','name')
</code></pre>
<p>This is the method I called.</p>
<pre><code>Array.prototype.method1 = function (property) {
console.log(property) //Expect ['id','name']
)
</code></pre>
<p>I want to get result like ['id','name']</p>
<pre><code>const property = property.split(",");
console.... | [
{
"answer_id": 74505273,
"author": "jhnc",
"author_id": 10971581,
"author_profile": "https://Stackoverflow.com/users/10971581",
"pm_score": 2,
"selected": false,
"text": "awk -v ORS= '\n NR>1 && /^, / { print \"\\n\" }\n 1;\n END { print \"\\n\" }\n' inputfile\n , , "
},
{
... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20551517/"
] |
74,505,134 | <p>In a test function, there is a case where nested slices should be compared.
Say I have two varibles like the following:</p>
<pre><code>want := [][]string{{"bat"},{"nat","tan"},{"ate","eat","tea"}}
got := [][]string{{"eat","tea","ate... | [
{
"answer_id": 74505325,
"author": "2 Penny Worth",
"author_id": 20551757,
"author_profile": "https://Stackoverflow.com/users/20551757",
"pm_score": 1,
"selected": false,
"text": "for _, s := range want { sort.Strings(s) }\nfor _, s := range got { sort.Strings(s) }\n sortOuter(want)\nsor... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11211262/"
] |
74,505,160 | <p>Im reading the firestore flutter sdk documentation. It shows how to use a serializable class to automatically convert documents to objects with this example:</p>
<pre><code>class Movie {
Movie({required this.title, required this.genre});
Movie.fromJson(Map<String, Object?> json)
: this(
title:... | [
{
"answer_id": 74505325,
"author": "2 Penny Worth",
"author_id": 20551757,
"author_profile": "https://Stackoverflow.com/users/20551757",
"pm_score": 1,
"selected": false,
"text": "for _, s := range want { sort.Strings(s) }\nfor _, s := range got { sort.Strings(s) }\n sortOuter(want)\nsor... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9393761/"
] |
74,505,200 | <p>See the attached sample code. If I clear the state when changing tabs by using TabBar onTap, the updated state is not reflected in the TabBarViews.</p>
<p>In my sample code, clicking on the buttons in the TabBarViews sets state which highlights the button. When changing tabs, the buttons in the tabs should no longer... | [
{
"answer_id": 74505736,
"author": "baek",
"author_id": 1049200,
"author_profile": "https://Stackoverflow.com/users/1049200",
"pm_score": 2,
"selected": true,
"text": "flutter channel master flutter run"
},
{
"answer_id": 74505760,
"author": "Tasnuva Tavasum oshin",
"aut... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20551578/"
] |
74,505,215 | <p>Trying to create a function X(df):
replaces the values of the FIRST column of the dataframe as per the following criteria:</p>
<ol>
<li>If the value is a number between 0 and 0.5 (so 0 <= value <= 0.5),
replace this value with the sum of the values of all columns in this row.</li>
<li>If the value is between 1... | [
{
"answer_id": 74505736,
"author": "baek",
"author_id": 1049200,
"author_profile": "https://Stackoverflow.com/users/1049200",
"pm_score": 2,
"selected": true,
"text": "flutter channel master flutter run"
},
{
"answer_id": 74505760,
"author": "Tasnuva Tavasum oshin",
"aut... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20201498/"
] |
74,505,234 | <p>As the title says I would like to give my player a temporary 2x multiplier and then take it away after. So far I have a button they click that sets their current multiplier x2 and then after 10 seconds take it away, the issue is if they buy an increase to their multiplier during that time it messes things up and I a... | [
{
"answer_id": 74505282,
"author": "LydiasPost",
"author_id": 13393309,
"author_profile": "https://Stackoverflow.com/users/13393309",
"pm_score": 0,
"selected": false,
"text": "using UnityEngine;\nusing UnityEngine.UI;\nusing System.Collections;\npublic class TwoX: MonoBehaviour\n{\n ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9005366/"
] |
74,505,236 | <p>I want to make a Discord interaction that sends a picture for as often as you say in 'howmany', but with my current code it send 1 embed with a picture and the rest without one. How to fix this?</p>
<pre><code>@tree.command(name='embed', description='embed')
async def embed(interaction: discord.Interaction, seeable:... | [
{
"answer_id": 74509324,
"author": "lorenzfohl",
"author_id": 20550433,
"author_profile": "https://Stackoverflow.com/users/20550433",
"pm_score": 0,
"selected": false,
"text": "@tree.command(name='embed', description='embed')\nasync def embed(interaction: discord.Interaction, seeable: bo... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20550433/"
] |
74,505,267 | <p>I have the following entity:</p>
<pre><code>@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "USER")
public class User implements Serializable {
@Id
@Column(name = "NAME", nullable = false)
private String name;
@Column(name = "AGE", nullable = false)
... | [
{
"answer_id": 74509133,
"author": "Subha Chandra",
"author_id": 2236549,
"author_profile": "https://Stackoverflow.com/users/2236549",
"pm_score": 0,
"selected": false,
"text": "spring.jpa.show-sql: true\n"
},
{
"answer_id": 74528948,
"author": "Pierre Demeestere",
"autho... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15040818/"
] |
74,505,270 | <p>Does anyone know whether there's the equivalent of <code>dplyr::select()</code> for subsetting character vectors? Specifically, what I like about <code>dplyr::select()</code> is the how easy it is to select dataframe columns; one can input the names of the columns (with or without quotes) and similarly create ranges... | [
{
"answer_id": 74509133,
"author": "Subha Chandra",
"author_id": 2236549,
"author_profile": "https://Stackoverflow.com/users/2236549",
"pm_score": 0,
"selected": false,
"text": "spring.jpa.show-sql: true\n"
},
{
"answer_id": 74528948,
"author": "Pierre Demeestere",
"autho... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14893074/"
] |
74,505,286 | <p>Hi im a beginner in web development and i am trying to make this website where when u load it there will be a text centered in the middle that has a typing animation, eventually the words left in the div will be 'Nice Paws'. It will then have this animation that translates its Y position and goes to the top of the s... | [
{
"answer_id": 74505413,
"author": "segFault",
"author_id": 1514049,
"author_profile": "https://Stackoverflow.com/users/1514049",
"pm_score": 1,
"selected": false,
"text": "calc translateY(calc(-50vh + 22.5px)) 22.5px div.brand-name 45px const move = [\n { transform: 'translateY(calc(... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505286",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13673381/"
] |
74,505,299 | <p>This might be pretty basic, but my code seems to have a few errors or expectations that might not work for me. Some background information: My code was created so that it asks the user for an integer. Then the user's input will be analyzed and will show the user an output of numbers that multiplied together will equ... | [
{
"answer_id": 74505413,
"author": "segFault",
"author_id": 1514049,
"author_profile": "https://Stackoverflow.com/users/1514049",
"pm_score": 1,
"selected": false,
"text": "calc translateY(calc(-50vh + 22.5px)) 22.5px div.brand-name 45px const move = [\n { transform: 'translateY(calc(... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505299",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20551674/"
] |
74,505,314 | <p>So I got a super weird problem here. I spun up a new server to restore a backup (tried taking a new snapshot and restoring a backup few times since original server is doing well).</p>
<pre><code>create index on companies ((linkedin_name(company url)));
</code></pre>
<p>this works on the original server (pgsql 14). ... | [
{
"answer_id": 74505413,
"author": "segFault",
"author_id": 1514049,
"author_profile": "https://Stackoverflow.com/users/1514049",
"pm_score": 1,
"selected": false,
"text": "calc translateY(calc(-50vh + 22.5px)) 22.5px div.brand-name 45px const move = [\n { transform: 'translateY(calc(... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505314",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5759219/"
] |
74,505,322 | <p>I have run into a horrible situation on one of my cassandra clusters. The version the cluster is on is 3.0.5. I am running a 2 DC setup with close 30 nodes, 18 in one DC and the rest in the other. I did everything possible with my knowledge, but still looking for answers.</p>
<p>Of late we were having a few issues w... | [
{
"answer_id": 74505413,
"author": "segFault",
"author_id": 1514049,
"author_profile": "https://Stackoverflow.com/users/1514049",
"pm_score": 1,
"selected": false,
"text": "calc translateY(calc(-50vh + 22.5px)) 22.5px div.brand-name 45px const move = [\n { transform: 'translateY(calc(... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20549586/"
] |
74,505,323 | <p>If a remote repo's branch is only maintained by me, I never have to do a git fetch, is that a correct statement?</p>
<p>Just want to confirm my guess.</p>
| [
{
"answer_id": 74505413,
"author": "segFault",
"author_id": 1514049,
"author_profile": "https://Stackoverflow.com/users/1514049",
"pm_score": 1,
"selected": false,
"text": "calc translateY(calc(-50vh + 22.5px)) 22.5px div.brand-name 45px const move = [\n { transform: 'translateY(calc(... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505323",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20551748/"
] |
74,505,346 | <p>how to know if there is a expiring product? like if you set the expiry date of certain product of
11-25-2022 so by the 11-22-2022 it is considered as expiring product and</p>
<p>it will count the row of considered as expiring product.</p>
<p>I know my query is wrong because I didn't specify the column field</p>
<pre... | [
{
"answer_id": 74506913,
"author": "rauwitt",
"author_id": 5458987,
"author_profile": "https://Stackoverflow.com/users/5458987",
"pm_score": 2,
"selected": true,
"text": "<?php\ninclude('../connect.php');\n$today = date('Y-m-d');\n$expiring_products = array();\n$stmt = $db->prepare(\"SEL... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20517886/"
] |
74,505,365 | <pre><code>int peek()
{
if(top == -1)
{
printf("\n \t STACK UNDERFLOW");
return -1;
}
else
{
if(x != -1)
printf("\n The top most element is %d",x);
return x[top];
}
}
</code></pre>
<p>My Peek Operation is not printing the correct ou... | [
{
"answer_id": 74505538,
"author": "anna",
"author_id": 20121266,
"author_profile": "https://Stackoverflow.com/users/20121266",
"pm_score": 0,
"selected": false,
"text": "printf(\"\\n The top most element is: \");\n strcpy(x,a[top]);\n printf(\"%s\",x);\n"
},
{
... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20121266/"
] |
74,505,392 | <p>I am an excel novice, so I hope I am explaining my problem well enough:</p>
<p><a href="https://i.stack.imgur.com/Zbrs1.png" rel="nofollow noreferrer">exceltable</a></p>
<p>Field A is the District the candidate is running in, Field B is the candidate name, Field C is the percent of the vote the candidate received, a... | [
{
"answer_id": 74506087,
"author": "David Leal",
"author_id": 6237093,
"author_profile": "https://Stackoverflow.com/users/6237093",
"pm_score": 1,
"selected": true,
"text": "E2 =LET(rng, A2:C19, dists, INDEX(rng,,1), names, INDEX(rng,,2), \n pcts, INDEX(rng,,3),\n distsUx, UNIQUE(dists... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505392",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20551727/"
] |
74,505,405 | <p>I know that unicode code point for <code>Á</code> is <code>U+00C1</code>. I read on internet and many forums and articles that I can also make an <code>Á</code> by combining characters <code>´</code> (unicode: <code>U+00B4</code>) and <code>A</code> (unicode: <code>U+0041</code>).</p>
<p>My question is simple. How t... | [
{
"answer_id": 74505449,
"author": "StardustGogeta",
"author_id": 5732397,
"author_profile": "https://Stackoverflow.com/users/5732397",
"pm_score": 3,
"selected": true,
"text": "´ >>> \"A\\u00b4\"\n'A´'\n ◌́ A >>> \"A\\u0301\"\n'Á'\n"
},
{
"answer_id": 74505858,
"author": "E... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20502562/"
] |
74,505,435 | <p>After a pile of troubleshooting, I managed to get my gitlab CICD pipeline to connect to GCP without requiring my service account to use a JSON key. However, I'm unable to do anything with Terraform in my pipeline using a remote statefile because of the following error:</p>
<pre><code>Error: Failed to get existing wo... | [
{
"answer_id": 74507230,
"author": "Mazlum Tosun",
"author_id": 9261558,
"author_profile": "https://Stackoverflow.com/users/9261558",
"pm_score": 0,
"selected": false,
"text": "Gitlab pod Kubernetes tf-stuff gcp-auth Shell Gitlab Shell gcp_authentication.sh echo ${CI_JOB_JWT_V2} > .ci_jo... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20536016/"
] |
74,505,436 | <p>Using Snowflake SQL, I need to convert the following transactional data into periodic (month-end) snapshots for time series analysis in Tableau.</p>
<p>The data I have is transactional, showing the date they changed departments, and the new department they are in. I need to be able to show 36 months of snapshots (a... | [
{
"answer_id": 74507230,
"author": "Mazlum Tosun",
"author_id": 9261558,
"author_profile": "https://Stackoverflow.com/users/9261558",
"pm_score": 0,
"selected": false,
"text": "Gitlab pod Kubernetes tf-stuff gcp-auth Shell Gitlab Shell gcp_authentication.sh echo ${CI_JOB_JWT_V2} > .ci_jo... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10259871/"
] |
74,505,455 | <p>I have a dictionary like this:</p>
<pre><code>{1: ["a", "b", "c"],
2: ["d", "e", "f", "g"]}
</code></pre>
<p>that I want to turn into a dataframe like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>id</th>
<th>i... | [
{
"answer_id": 74505502,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 3,
"selected": true,
"text": "data = {1: [\"a\", \"b\", \"c\"],\n 2: [\"d\", \"e\", \"f\", \"g\"]}\n pd.Series(data).explode()\n 1 a\... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11370167/"
] |
74,505,491 | <p>I got two json objects that I need to combine together based on ID and do count and sort operations on it.</p>
<p>Here is the first object comments:</p>
<pre><code> [
{
"userId": 1,
"id": 1,
"title": "sunt aut facere repellat provident occaecati except... | [
{
"answer_id": 74505585,
"author": "Byted",
"author_id": 5032258,
"author_profile": "https://Stackoverflow.com/users/5032258",
"pm_score": 2,
"selected": false,
"text": "posts comments defaultdict posts.sort(key=...) key import json\nfrom collections import defaultdict\n\nposts = [ ... ]... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18489452/"
] |
74,505,500 | <p>I am using Node API with RENDER hosting, while I host the backend it works and when I try to connect the front end and send data I get an exception named Unhandled Exception: type 'String' is not a subtype of type 'int' of 'index' help me, please</p>
<p>note: password is in string and number is an int data type</p>
... | [
{
"answer_id": 74505585,
"author": "Byted",
"author_id": 5032258,
"author_profile": "https://Stackoverflow.com/users/5032258",
"pm_score": 2,
"selected": false,
"text": "posts comments defaultdict posts.sort(key=...) key import json\nfrom collections import defaultdict\n\nposts = [ ... ]... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17224820/"
] |
74,505,505 | <p>I'm a beginner at React.Js and I just made the following code in my App.js file:</p>
<pre><code>import React, { useState } from 'react';
import {v4 as uuidv4} from "uuid";
import {BrowserRouter as Router, Route, Routes} from "react-router-dom"
import "./App.css";
import Tasks_com... | [
{
"answer_id": 74505525,
"author": "Ankit",
"author_id": 19757319,
"author_profile": "https://Stackoverflow.com/users/19757319",
"pm_score": 0,
"selected": false,
"text": "<BrowserRouter>\n <div id='my_div' className=\"container\">\n <Header/>\n <Routes>\n <Route pa... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19642451/"
] |
74,505,519 | <p>I have a text {L U V B A G} that should appear under the image. I need the html and css for it.
This is how it looks.
<a href="https://i.stack.imgur.com/4NNTR.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>{L U V B A G} that should appear under the image.</p>
| [
{
"answer_id": 74505525,
"author": "Ankit",
"author_id": 19757319,
"author_profile": "https://Stackoverflow.com/users/19757319",
"pm_score": 0,
"selected": false,
"text": "<BrowserRouter>\n <div id='my_div' className=\"container\">\n <Header/>\n <Routes>\n <Route pa... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20526756/"
] |
74,505,539 | <p>I try to crawl data by bs4. For each page, I want to take all product id's, it's ok when I take data from first page, but starting with page 2 it always show product id's from first page. Here is my code (although I changed page = 5):</p>
<pre><code>from urllib.request import urlopen
from bs4 import BeautifulSoup
ht... | [
{
"answer_id": 74505525,
"author": "Ankit",
"author_id": 19757319,
"author_profile": "https://Stackoverflow.com/users/19757319",
"pm_score": 0,
"selected": false,
"text": "<BrowserRouter>\n <div id='my_div' className=\"container\">\n <Header/>\n <Routes>\n <Route pa... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13126111/"
] |
74,505,575 | <p>I have this coding assignment where I have to use pure pointer notation only. I am pretty much finished with it but I just realized that I used an array. I am not allowed to do so, unless I change it into a pointer somehow. That's where I am slightly stuck.</p>
<p>This is my code.</p>
<pre><code>#include <stdio.h... | [
{
"answer_id": 74505525,
"author": "Ankit",
"author_id": 19757319,
"author_profile": "https://Stackoverflow.com/users/19757319",
"pm_score": 0,
"selected": false,
"text": "<BrowserRouter>\n <div id='my_div' className=\"container\">\n <Header/>\n <Routes>\n <Route pa... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20544996/"
] |
74,505,581 | <p>I get the message : 'pygame.Surface' object has no attribute 'update'. But as you can see, i have an update function in the code. wha did i wrong? I looked around but i didn't fina a simular question.</p>
<pre><code>class Createparticle:
def __init__(self, xx, yy,img):
self.x = xx
self.y = yy
... | [
{
"answer_id": 74506701,
"author": "Rabbid76",
"author_id": 5577765,
"author_profile": "https://Stackoverflow.com/users/5577765",
"pm_score": 2,
"selected": true,
"text": "i.update() i self.particlelist self.particlelist pygame.Surface pygame.Surface method i pygame.Surface pygame.Surfac... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5132064/"
] |
74,505,586 | <p>is there a way to change the default hover background color of light blue for options for react select <a href="https://www.npmjs.com/package/react-select" rel="nofollow noreferrer">https://www.npmjs.com/package/react-select</a>? Or is it also not possible for the reasons described in this other thread <a href="http... | [
{
"answer_id": 74506701,
"author": "Rabbid76",
"author_id": 5577765,
"author_profile": "https://Stackoverflow.com/users/5577765",
"pm_score": 2,
"selected": true,
"text": "i.update() i self.particlelist self.particlelist pygame.Surface pygame.Surface method i pygame.Surface pygame.Surfac... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3226932/"
] |
74,505,592 | <p>How do I write a program that will remove all the items that are in between two duplicates in a list and it will also remove the second duplicate.</p>
<p>For example,
a = [ (0,0) , (1,0) , (2,0) , (3,0) , (1,0) ]<br />
In the list a, we see that (1,0) occurs more than once in the list. Thus I want to remove all the ... | [
{
"answer_id": 74505747,
"author": "j1-lee",
"author_id": 11450820,
"author_profile": "https://Stackoverflow.com/users/11450820",
"pm_score": 3,
"selected": true,
"text": "index lst = [(0,0), (1,0), (2,0), (3,0), (1,0), (5,0), (6,0), (7,0), (8,0), (5,0), (9,0), (10,0)]\n\noutput = []\n\n... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20194358/"
] |
74,505,607 | <p>I try to create a table with moving current three month by using subquery for only selecting current 3 months.</p>
<p>I have</p>
<pre><code>`select * from dataTable where month in
(select max(month),max(month)-1,max(month)-2 from month_table);`
</code></pre>
<p>snowflake returns me this error msg
<strong>SQL compil... | [
{
"answer_id": 74505747,
"author": "j1-lee",
"author_id": 11450820,
"author_profile": "https://Stackoverflow.com/users/11450820",
"pm_score": 3,
"selected": true,
"text": "index lst = [(0,0), (1,0), (2,0), (3,0), (1,0), (5,0), (6,0), (7,0), (8,0), (5,0), (9,0), (10,0)]\n\noutput = []\n\n... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14356969/"
] |
74,505,627 | <p>I have a Google sheet which has columns with the same name and there are different values under each column. I want to count the same value that appear under the same column name.</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>1</th>
<th>2</th>
<th>3</th>
<th>1</th>
<th>2</th>
</tr>
</t... | [
{
"answer_id": 74506175,
"author": "Nabnub",
"author_id": 9538684,
"author_profile": "https://Stackoverflow.com/users/9538684",
"pm_score": 0,
"selected": false,
"text": "= ARRAYFORMULA(\n query(\n query(\n SPLIT(TRANSPOSE(SPLIT(\n QUERY(\n ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505627",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16166428/"
] |
74,505,643 | <p>Below is my dataframe:</p>
<pre><code>df = pd.DataFrame({"ID" : [1, 1, 2, 2, 2, 3, 3],
"length" : [0.7, 0.7, 0.8, 0.6, 0.6, 0.9, 0.9],
"comment" : ["typed", "handwritten", "typed", "typed", "handwritten&quo... | [
{
"answer_id": 74505678,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": -1,
"selected": false,
"text": "np.where import numpy as np\ncond1 = df['comment'] == 'typed'\ndf.assign(Calculated_Length=np.where(cond1, df['... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505643",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19702840/"
] |
74,505,644 | <p>Is PHP able to determine if a Monday or Thursday comes next and what the date ('YYYY-MM-DD') will be if I provide it with a date to start from?</p>
| [
{
"answer_id": 74505712,
"author": "Ron Piggott",
"author_id": 3123313,
"author_profile": "https://Stackoverflow.com/users/3123313",
"pm_score": 2,
"selected": false,
"text": "$start = new DateTimeImmutable('2023-01-08');\n$monday = $start->modify(\"next monday\");\n$thursday = $start->m... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3123313/"
] |
74,505,645 | <p>I am an R user and have recently been learning how to use Python!</p>
<p>In R, I normally import CSV files like this:</p>
<pre><code>> getwd()
[1] "C:/Users/me/OneDrive/Documents"
my_file = read.csv("my_file.csv")
</code></pre>
<p>Now, I am trying to learn how to do this in Python.</p>
<p>I f... | [
{
"answer_id": 74505671,
"author": "vignesh kanakavalli",
"author_id": 19092053,
"author_profile": "https://Stackoverflow.com/users/19092053",
"pm_score": 1,
"selected": false,
"text": "pandas pip install pandas -U\n \\somealphabet \\\\somealphabet \\ / df = pd.read_csv('C:\\\\Users\\\\m... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13203841/"
] |
74,505,648 | <p>I want to create a variable called containing a 2D (nested) list of 2 rows and 3 columns literal containing the values like this:</p>
<pre><code>3 14 67
13 24 19
</code></pre>
<p>the code I have now is sth like this but the outcome doesn't give me the outcome I want:</p>
<pre class="lang-py prettyprint-ove... | [
{
"answer_id": 74505671,
"author": "vignesh kanakavalli",
"author_id": 19092053,
"author_profile": "https://Stackoverflow.com/users/19092053",
"pm_score": 1,
"selected": false,
"text": "pandas pip install pandas -U\n \\somealphabet \\\\somealphabet \\ / df = pd.read_csv('C:\\\\Users\\\\m... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20533197/"
] |
74,505,654 | <p>I am trying to access the array soc+ out the for loop.
Outside of the for loop, it gives me only last value.
How to access whole soc array out of the for loop?</p>
<p>If I used append method it gives follow error
" 'numpy.ndarray' object has no attribute 'append' "</p>
<p>Thank you.</p>
<p>Here is part of ... | [
{
"answer_id": 74505671,
"author": "vignesh kanakavalli",
"author_id": 19092053,
"author_profile": "https://Stackoverflow.com/users/19092053",
"pm_score": 1,
"selected": false,
"text": "pandas pip install pandas -U\n \\somealphabet \\\\somealphabet \\ / df = pd.read_csv('C:\\\\Users\\\\m... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20552109/"
] |
74,505,669 | <p><img src="https://i.stack.imgur.com/58D8K.png" alt="" /></p>
<pre><code>df = pd.read_csv('1410001701eng.csv')
df.head()
df['date'] = pd.to_datetime(df['Age group'])
df['year'] = pd.DatetimeIndex(df['date']).year
monthly_year_avg = df.groupby('year')['VALUE'].mean()
print(monthly_year_avg)
</code></pre>
<p>This is my... | [
{
"answer_id": 74505671,
"author": "vignesh kanakavalli",
"author_id": 19092053,
"author_profile": "https://Stackoverflow.com/users/19092053",
"pm_score": 1,
"selected": false,
"text": "pandas pip install pandas -U\n \\somealphabet \\\\somealphabet \\ / df = pd.read_csv('C:\\\\Users\\\\m... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505669",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20550604/"
] |
74,505,681 | <p>I'm creating a recursive function that creates n lines of asterisk. I do not have problems on writing code, but just am wondering why <code>None</code> appears in my output.</p>
<p>Here is my code:</p>
<pre><code>def recursive_lines(n):
for n in range(0,n):
print ('*' + ('*'*n)) # Print asterisk
pri... | [
{
"answer_id": 74505671,
"author": "vignesh kanakavalli",
"author_id": 19092053,
"author_profile": "https://Stackoverflow.com/users/19092053",
"pm_score": 1,
"selected": false,
"text": "pandas pip install pandas -U\n \\somealphabet \\\\somealphabet \\ / df = pd.read_csv('C:\\\\Users\\\\m... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16863576/"
] |
74,505,696 | <p>This is the flat object I'm working with, it has many more results, ~6800. I've been trying to convert it to a nested tree (like the one listed below) for about 13 hours now & I'm truly lost.</p>
<pre><code>[
{
"make": "Acura",
"classification": "Mid SUV",
&q... | [
{
"answer_id": 74505671,
"author": "vignesh kanakavalli",
"author_id": 19092053,
"author_profile": "https://Stackoverflow.com/users/19092053",
"pm_score": 1,
"selected": false,
"text": "pandas pip install pandas -U\n \\somealphabet \\\\somealphabet \\ / df = pd.read_csv('C:\\\\Users\\\\m... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20489309/"
] |
74,505,697 | <p>When the function is passed with a parameter an error is returned that a is not a function while without parameter it executes and gives output <code>3</code></p>
<pre><code>function one(d) {
return 1;
}
function two() {
return 2;
}
function invokeAdd(a, b) {
return a() + b();
}
console.log(invokeAdd(one(8),... | [
{
"answer_id": 74505732,
"author": "Ramsudharsan Manoharan",
"author_id": 8889782,
"author_profile": "https://Stackoverflow.com/users/8889782",
"pm_score": 0,
"selected": false,
"text": "function one(d) {\n return 1;\n}\nfunction two() {\n return 2;\n}\nfunction invokeAdd(a, b) {\n... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15204422/"
] |
74,505,753 | <p>I'm developing a chatbot project for college, and in the following code block, the first if is always going as a true value, no matter what. I really need help and don't know what to do, cause this project is due on monday.</p>
<pre><code>def registeredClient():
print('Olá, bem-vindo a WE-RJ Telecom!')
user... | [
{
"answer_id": 74505780,
"author": "Arkistarvh Kltzuonstev",
"author_id": 5770501,
"author_profile": "https://Stackoverflow.com/users/5770501",
"pm_score": 0,
"selected": false,
"text": "(if 'contratar') or ('trocar plano') or ('aumentar velocidade') or ('mudar plano') or ('velocidade') ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15206222/"
] |
74,505,791 | <p>I have a JObject that I am trying to add fields to in a way like this:</p>
<pre class="lang-cs prettyprint-override"><code>JObject dataObject = new JObject();
dataObject[currentSection][key] = val;
</code></pre>
<p><code>currentSection</code>, <code>key</code> and <code>val</code> are all strings, I want it so when ... | [
{
"answer_id": 74505780,
"author": "Arkistarvh Kltzuonstev",
"author_id": 5770501,
"author_profile": "https://Stackoverflow.com/users/5770501",
"pm_score": 0,
"selected": false,
"text": "(if 'contratar') or ('trocar plano') or ('aumentar velocidade') or ('mudar plano') or ('velocidade') ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10708473/"
] |
74,505,797 | <p>I would like to set the attributes of one triple nested list to the attributes of another triple nested list.</p>
<p>Here is a triple nested list:</p>
<pre><code>list.A <- list(a = c(1,2,5,6), b = c(2,4,6,5), c = c(2,4,2,5))
list.B <- list(a = c(7,7,7,7), b = c(8,8,8,8), c = c(9,9,9,9))
weights <- list(list... | [
{
"answer_id": 74506522,
"author": "Rui Barradas",
"author_id": 8245406,
"author_profile": "https://Stackoverflow.com/users/8245406",
"pm_score": 0,
"selected": false,
"text": "mapply(\\(x, y) {\n attributes(x[[\"list.A\"]]) <- attributes(y[[\"list.A\"]])\n x\n}, megalist, microlist)\n... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14538020/"
] |
74,505,813 | <p>I came across this solution on Leetcode for group anagrams that doesn't use sorting. I have two questions for this solution. 1. What are we trying to do in the step where we convert sArr to string in this line - <code>String test = Arrays.toString(sArr);</code>I debugged and see the test string is an array of ints w... | [
{
"answer_id": 74505868,
"author": "Jacob Malland",
"author_id": 17160379,
"author_profile": "https://Stackoverflow.com/users/17160379",
"pm_score": 0,
"selected": false,
"text": "What are we trying to do in the step where we convert sArr to string in this line - String test = Arrays.toS... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2624866/"
] |
74,505,822 | <p>Difference between package and plugin? Easy and Basic??</p>
<p>Easy Answer which we can say in the interview . If someone ask!</p>
| [
{
"answer_id": 74505868,
"author": "Jacob Malland",
"author_id": 17160379,
"author_profile": "https://Stackoverflow.com/users/17160379",
"pm_score": 0,
"selected": false,
"text": "What are we trying to do in the step where we convert sArr to string in this line - String test = Arrays.toS... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16470351/"
] |
74,505,823 | <p><a href="https://i.stack.imgur.com/kNzNH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kNzNH.png" alt="enter image description here" /></a></p>
<p>Is there a way to implement this kind of horizontal Month selector in flutter? For This I need to show the month and year and when clicked on the but... | [
{
"answer_id": 74506138,
"author": "Sayyid J",
"author_id": 15366030,
"author_profile": "https://Stackoverflow.com/users/15366030",
"pm_score": 0,
"selected": false,
"text": "import 'package:flutter/material.dart';\n\ntypedef OnHorizontalDatePickerSelected = void Function(DateTime dateTi... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505823",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17237271/"
] |
74,505,825 | <p>Say I have a command I'm running in my script whose first line in <code>stderr</code> is something I need. I'm using <code>stderr</code> because <code>stdout</code> is already being used for transferring some other data. I still need the rest of <code>stderr</code> for user feedback, so I still want to display ever... | [
{
"answer_id": 74505911,
"author": "Gordon Davisson",
"author_id": 89817,
"author_profile": "https://Stackoverflow.com/users/89817",
"pm_score": 3,
"selected": true,
"text": "read cat cmd >outputfile 2> >(read firstline; echo \"First line is: '$firstline'\"; cat -u)\n read cat { read fir... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1366368/"
] |
74,505,829 | <p>I have a Oracle container DB SID orcl and pluggabel DB named pdb1. pdb1 has a table named customers. I am able to make the connection to database but I want to connect to a database table.</p>
<p>Below is the jdbc url string I am able to construct:</p>
<pre><code>jdbc:oracle:thin:@localhost:1521/pdb1
</code></pre>
<... | [
{
"answer_id": 74505911,
"author": "Gordon Davisson",
"author_id": 89817,
"author_profile": "https://Stackoverflow.com/users/89817",
"pm_score": 3,
"selected": true,
"text": "read cat cmd >outputfile 2> >(read firstline; echo \"First line is: '$firstline'\"; cat -u)\n read cat { read fir... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4995349/"
] |
74,505,850 | <p>I wanted to render an array into a 2d grid (3 rows and 3 columns). The array itself is just a one-dimensional array.</p>
<pre class="lang-js prettyprint-override"><code>const array = Array.from({ length: 9 }, (_, i) => i + 1);
</code></pre>
<p>I have a React component that renders it into a list of <code>div</cod... | [
{
"answer_id": 74505910,
"author": "Yanick Rochon",
"author_id": 320700,
"author_profile": "https://Stackoverflow.com/users/320700",
"pm_score": 1,
"selected": false,
"text": "<!DOCTYPE html>\n<html>\n<head>\n<style>\n.grid {\n display: grid;\n grid-template-columns: auto auto auto;\n ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7624223/"
] |
74,505,863 | <p>I need to check if the value of <code>url</code> exists within the <code>path</code> property in any of the objects or nodes of the following tree.</p>
<p>Regarding the tree. The <code>children</code> property is optional but if it exists it could be expanded indefinitely</p>
<p>The tree looks similar to the followi... | [
{
"answer_id": 74505918,
"author": "Brad",
"author_id": 362536,
"author_profile": "https://Stackoverflow.com/users/362536",
"pm_score": 2,
"selected": true,
"text": "true false function isValid(url, tree) {\n return tree.some(item =>\n item.path === url || (item.children && isValid(u... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/615274/"
] |
74,505,867 | <p>I am doing a simple props drilling using typeScript. I want to pass the array from my useState hook to the component. But I couldn't pass the props as it's mentioned in the warning dialogue.</p>
<pre><code>Type '{ contactData: Props[] | null; }' is not assignable to type 'IntrinsicAttributes & Props[]'. Prop... | [
{
"answer_id": 74505918,
"author": "Brad",
"author_id": 362536,
"author_profile": "https://Stackoverflow.com/users/362536",
"pm_score": 2,
"selected": true,
"text": "true false function isValid(url, tree) {\n return tree.some(item =>\n item.path === url || (item.children && isValid(u... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19309580/"
] |
74,505,903 | <p>So I'm trying to set up a custom domain for my AWS Lambda function.</p>
<p>I went through all the instructions to buy a domain name via google domains, set up a certificate through AWS Certificate manager, and created the corresponding route 53 hosted zone.</p>
<p><a href="https://i.stack.imgur.com/jjwaL.png" rel="n... | [
{
"answer_id": 74505918,
"author": "Brad",
"author_id": 362536,
"author_profile": "https://Stackoverflow.com/users/362536",
"pm_score": 2,
"selected": true,
"text": "true false function isValid(url, tree) {\n return tree.some(item =>\n item.path === url || (item.children && isValid(u... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505903",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1947730/"
] |
74,505,924 | <p>They offer great details on setContent and commands in general. But, I've been ctrl+F looking everywhere for where "commands" should be placed in code. I'm just hoping to load in HTML that I exported earlier with this Tiptap Editor.</p>
<p><a href="https://tiptap.dev/api/commands/set-content" rel="nofollow... | [
{
"answer_id": 74505918,
"author": "Brad",
"author_id": 362536,
"author_profile": "https://Stackoverflow.com/users/362536",
"pm_score": 2,
"selected": true,
"text": "true false function isValid(url, tree) {\n return tree.some(item =>\n item.path === url || (item.children && isValid(u... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11574734/"
] |
74,505,984 | <p>How can I put a widget/compose in bottom end corner of Column?</p>
<pre><code>Column(
verticalArrangement = ,
horizontalAlignment =
) { // omitted codes }
</code></pre>
<p>I only find horizontal and vertical position to it? IS there a way to put a widget/compose in bottom end?</p>
<p>I can’t find a parameter in c... | [
{
"answer_id": 74506157,
"author": "Vahid Garousi",
"author_id": 5909910,
"author_profile": "https://Stackoverflow.com/users/5909910",
"pm_score": 2,
"selected": false,
"text": "@Composable\nfun BoxExample2() {\n Box(\n modifier = Modifier\n .background(color = Color... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20552417/"
] |
74,505,985 | <p>I am displaying the data in the list with sort order in the textbox. User can change the order and click on submit will save the changed order in the database. list will be displaying in the new order on page refresh.
Issue: How to refresh the list on form submit Without Page Refresh. Please help. Please find my sa... | [
{
"answer_id": 74506041,
"author": "fatih-erikli",
"author_id": 17805504,
"author_profile": "https://Stackoverflow.com/users/17805504",
"pm_score": 0,
"selected": false,
"text": "this.getlistofdescriptions()"
},
{
"answer_id": 74506070,
"author": "Ali Sattarzadeh",
"autho... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17037420/"
] |
74,505,993 | <p>I am trying to build my portfolio website and I dont have any prior knowledge of html. I am trying to align buttons horizontally on the webpage and was hoping I could get some help on how I can edit this piece of code to fix this alignment issue.</p>
<p><a href="https://i.stack.imgur.com/9xma9.png" rel="nofollow nor... | [
{
"answer_id": 74506041,
"author": "fatih-erikli",
"author_id": 17805504,
"author_profile": "https://Stackoverflow.com/users/17805504",
"pm_score": 0,
"selected": false,
"text": "this.getlistofdescriptions()"
},
{
"answer_id": 74506070,
"author": "Ali Sattarzadeh",
"autho... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74505993",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15229524/"
] |
74,506,004 | <p>I tried to create a tic tac toe program with python list:</p>
<pre><code>theBoard=[' '' '' ']*3
def userInput(board):
loop=True
while loop:
userInput=input("Please enter (row,column)")
row=int(userInput[0])
column=int(userInput[2])
if row<1 or row>3:
... | [
{
"answer_id": 74506041,
"author": "fatih-erikli",
"author_id": 17805504,
"author_profile": "https://Stackoverflow.com/users/17805504",
"pm_score": 0,
"selected": false,
"text": "this.getlistofdescriptions()"
},
{
"answer_id": 74506070,
"author": "Ali Sattarzadeh",
"autho... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74506004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20552475/"
] |
74,506,023 | <p>I have to select some employees from a Syncfusion Multiselect in Blazor WASM. When I use it with 5000 employee data, it works so slow or crashes. I search my employee with FullName or Personnel Number(FullInfo is FullName and Personnel Number together). I try to send my search string after 4 string to the backend an... | [
{
"answer_id": 74506082,
"author": "AlirezaK",
"author_id": 4444757,
"author_profile": "https://Stackoverflow.com/users/4444757",
"pm_score": 2,
"selected": false,
"text": "AsAsyncEnumerable public IAsyncEnumerable<Employee> GetEmployees()\n {\n return _dbContext.Employees ... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74506023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10954203/"
] |
74,506,025 | <p>I have a list with multiple dataframes say 30,000 and in each dataframe i have multiple columns. the sample list with three dataframes is as follows</p>
<pre><code>df1 <- data.frame(ID = c('a', 'a', 'a', 'a','a', 'a'), a = c('a','b','c','d','e','f'), b =
c(0,1,2,3,0,5), c= c(11,3,2,4,0,'NA'), d=c(0,2,5,7,'NA',5)... | [
{
"answer_id": 74506076,
"author": "SBMVNO",
"author_id": 16702151,
"author_profile": "https://Stackoverflow.com/users/16702151",
"pm_score": 0,
"selected": false,
"text": "for (i in 1:length(abc))\n{\n print(max( as.numeric(unlist(abc[[i]])), na.rm=TRUE))\n}\n data.frame(\n ID=sap... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74506025",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9247629/"
] |
74,506,079 | <p>I want to remove parenthesis along with all the characters inside it...</p>
<pre><code>var str = B.Tech(CSE)2020;
print(str.replaceAll(new RegExp('/([()])/g'), '');
// output => B.Tech(CSE)2020
// output required => B.Tech 2020
</code></pre>
<p>I tried with bunch of Regex but nothing is working...</p>
<p>I ... | [
{
"answer_id": 74506139,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 1,
"selected": false,
"text": "String str = \"B.Tech(CSE)2020\";\nprint(str.replaceAll(RegExp(r'\\(.*?\\)'), \" \")); // B.Tech 2020\n"
... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74506079",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15145842/"
] |
74,506,084 | <pre><code>const user = [
{name:"jonh" ,id:EAD1234},
{name:"peter" ,id:EAD1235},
{name:"matt" ,id:EAD1236},
{name:"henry" ,id:EAD1237},
]
</code></pre>
<p>I have above mentioned array of object,
I want to get selected user id dynamically based on user selection using es6 and jav... | [
{
"answer_id": 74506100,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 1,
"selected": false,
"text": "Array.filter() Array.map() mysql redis const user = [\n{name:\"jonh\" ,id:'EAD1234'},\n{name:\"peter\" ,id:'EAD123... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74506084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5729455/"
] |
74,506,117 | <p>why Null Coalescing is not working with ternary operator. I would expect to get tdy.</p>
<pre><code>const test = {
todo: {
day: 'tdy'
}
}
const filterDayRange = [{
day: 'mon'
}]
const result =
test.todo?.day ?? filterDayRange.length > 0 ? filterDayRange[0].day : 'tdy';
console.log(result)
... | [
{
"answer_id": 74506131,
"author": "Емил Цоков",
"author_id": 4264994,
"author_profile": "https://Stackoverflow.com/users/4264994",
"pm_score": 0,
"selected": false,
"text": "const test = {\n todo: { \n day: 'tdy'\n }\n}\n\nconst filterDayRange = [{\n day: 'mon'\n}]\n\n const re... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74506117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10842900/"
] |
74,506,123 | <p>When I execute this code the value of <code>ans1</code>, <code>ans2</code> is <code>50002896</code> and <code>50005000</code>.<br />
I know there is some issues with <code>ceil</code> function but was not able to figure out the exact cause.</p>
<pre><code>#include <bits/stdc++.h>
using namespace std;
int main(... | [
{
"answer_id": 74506203,
"author": "wohlstad",
"author_id": 18519921,
"author_profile": "https://Stackoverflow.com/users/18519921",
"pm_score": 3,
"selected": true,
"text": "ceil float f1 = 100000000;\nf1++;\nstd::cout << std::to_string(f1) << std::endl;\n 100000000.000000\n double float... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74506123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12474063/"
] |
74,506,124 | <p>I am doing email validation for admin registration using JavaScript and save the data to database using PHP. Supposedly, the registration is done only if the email is valid. But when the email evaluates to invalid, the PHP code still run. How do I do it so that when the email is invalid, the PHP won't run.</p>
<p>Be... | [
{
"answer_id": 74506218,
"author": "Niaho",
"author_id": 15283583,
"author_profile": "https://Stackoverflow.com/users/15283583",
"pm_score": 2,
"selected": true,
"text": "onsubmit=\"return validateEmail(this)\"\n"
},
{
"answer_id": 74506251,
"author": "Niaho",
"author_id"... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74506124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19106554/"
] |
74,506,162 | <p>anyone can teach me how to use this kind of id in the jquery or js? i was trying to make a function where in if you click a button this table data input will be enabled</p>
<pre><code><td><input type="number" disabled name="qty[]" min="0" id="qty_<?php echo $x; ?>&qu... | [
{
"answer_id": 74506218,
"author": "Niaho",
"author_id": 15283583,
"author_profile": "https://Stackoverflow.com/users/15283583",
"pm_score": 2,
"selected": true,
"text": "onsubmit=\"return validateEmail(this)\"\n"
},
{
"answer_id": 74506251,
"author": "Niaho",
"author_id"... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74506162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15028880/"
] |
74,506,193 | <p>Trying to fetch meaning of an entered text from urban dictionary. The problem is that urban dictionary shows several definitions posted by different users. I've used 'importxml' for fetching the first page that shows up when someone searches for a particular word.</p>
<p>Now I want this data to be split in different... | [
{
"answer_id": 74506218,
"author": "Niaho",
"author_id": 15283583,
"author_profile": "https://Stackoverflow.com/users/15283583",
"pm_score": 2,
"selected": true,
"text": "onsubmit=\"return validateEmail(this)\"\n"
},
{
"answer_id": 74506251,
"author": "Niaho",
"author_id"... | 2022/11/20 | [
"https://Stackoverflow.com/questions/74506193",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12141436/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.