qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,584,806 | <p>i have an assignment coming up in which i have to code a dice game . its multiplayer random luck with gambling points and etc</p>
<p>one of the things its asking for though is to save the winning players name and their score into a text file and at the end print the five highest scores in the text file with the five... | [
{
"answer_id": 74584961,
"author": "Ni3dzwi3dz",
"author_id": 12768056,
"author_profile": "https://Stackoverflow.com/users/12768056",
"pm_score": 0,
"selected": false,
"text": "\"Rick wins with 98 points\" scores.sort(key= lambda x : int(x.split(\" \")[3]))"
},
{
"answer_id": 745... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74584806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20301938/"
] |
74,584,816 | <p>I have a list of columns in a dataframe that either contains a hashmark followed by a string or two hashmarks followed by a string. I wanted to eliminate the rows that contain only one hashmark.</p>
<p><code>df[df["column name"].str.contains("#") == False]</code></p>
<p>I've tried using the code ... | [
{
"answer_id": 74584961,
"author": "Ni3dzwi3dz",
"author_id": 12768056,
"author_profile": "https://Stackoverflow.com/users/12768056",
"pm_score": 0,
"selected": false,
"text": "\"Rick wins with 98 points\" scores.sort(key= lambda x : int(x.split(\" \")[3]))"
},
{
"answer_id": 745... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74584816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20586193/"
] |
74,584,824 | <p>I am trying to load a '|' delimited file, but it fails because some columns have crlf values.</p>
<p>I converted the text files to xlsx and imported them successfully using SQL Developer.</p>
<p>I noticed that SQL Developer using a Line Terminator option set to "standard: CR LF, CR or LF".</p>
<p>I suspect... | [
{
"answer_id": 74585517,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 1,
"selected": false,
"text": "SQL> create table test\n 2 (id number,\n 3 description varchar2(50));\n\nTable created.\n load ... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74584824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5606717/"
] |
74,584,836 | <p>the goal is to increase the dictionary key by 1 so all values generated by for loop are stored in a dictionary</p>
<p>code</p>
<pre><code>counting = {}
numbers = 1
for i in range(1, 11):
counting[numbers] = (i)
numbers + 1
print(counting)
</code></pre>
<p>but in the final result the dictionary only has on... | [
{
"answer_id": 74585517,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 1,
"selected": false,
"text": "SQL> create table test\n 2 (id number,\n 3 description varchar2(50));\n\nTable created.\n load ... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74584836",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14811053/"
] |
74,584,840 | <p>I have a function inside a class method that is unread when being called into a forEach loop.</p>
<pre><code>class Mazefinder {
constructor() {
}
// class method
Graph() {
// This is an arrayList of Objects
this.vertices = this.mazeArray;
// function I want to use in my forEach loop
fu... | [
{
"answer_id": 74585517,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 1,
"selected": false,
"text": "SQL> create table test\n 2 (id number,\n 3 description varchar2(50));\n\nTable created.\n load ... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74584840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19756134/"
] |
74,584,876 | <p>I am a beginner in R, and I need to learn how to perform code. As you can see in my data frame, I want to check whether the egg in column commodity has the same unit in all rows.</p>
<p>data frame:</p>
<pre><code>df <- structure(list(commodity = c("eggs", "lentils (green)", "oil (vegetabl... | [
{
"answer_id": 74585517,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 1,
"selected": false,
"text": "SQL> create table test\n 2 (id number,\n 3 description varchar2(50));\n\nTable created.\n load ... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74584876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20608930/"
] |
74,584,885 | <p>When I try to update Windows features; When I update UseShellExecute to "true"; "The Process object must have the UseShellExecute property set to false in order to redirect IO streams." I get an error. When I set it to False; Unable to update. How can I do it ? Do you have any other suggestions... | [
{
"answer_id": 74585517,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 1,
"selected": false,
"text": "SQL> create table test\n 2 (id number,\n 3 description varchar2(50));\n\nTable created.\n load ... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74584885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19299143/"
] |
74,584,886 | <p>I am trying to do something like the following in NumPy:</p>
<pre class="lang-py prettyprint-override"><code>import numpy as np
def f(x):
return x[0] + x[1]
X1 = np.array([0, 1, 2])
X2 = np.array([0, 1, 2])
X = np.meshgrid(X1, X2)
result = np.vectorize(f)(X)
</code></pre>
<p>with the expected result being <code... | [
{
"answer_id": 74584985,
"author": "I'mahdi",
"author_id": 1740577,
"author_profile": "https://Stackoverflow.com/users/1740577",
"pm_score": 1,
"selected": false,
"text": "numpy.vectorize signature import numpy as np\n\ndef f(x):\n return x[0] + x[1]\n # Or\n # return np.add.red... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74584886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10425289/"
] |
74,584,889 | <p>I will try to explain this as good as possible, because I am unfortunately quiet new to polars. I have a large time series dataset where each separate timeseries is identified with a <code>group_id</code>. Additionally, there is a <code>time_idx</code> column that identifies which of the possible time series step is... | [
{
"answer_id": 74586627,
"author": "jqurious",
"author_id": 19355181,
"author_profile": "https://Stackoverflow.com/users/19355181",
"pm_score": 1,
"selected": false,
"text": ">>> max_time_step = 3\n>>> sequence_length = 3\n>>> (\n... min_df\n... .with_columns([\n... pl.arange... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74584889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12386797/"
] |
74,584,917 | <p>I'm trying been more simlicity but i still learn the power of custom hook.
i'm trully not understand whats wrong with my hook.</p>
<pre><code>const UseMessage = (msg: string, delay: number, cb?: () => void): [setCB: () => void] => {
const [message, setMessage] = useState("");
const setCB = ()... | [
{
"answer_id": 74586627,
"author": "jqurious",
"author_id": 19355181,
"author_profile": "https://Stackoverflow.com/users/19355181",
"pm_score": 1,
"selected": false,
"text": ">>> max_time_step = 3\n>>> sequence_length = 3\n>>> (\n... min_df\n... .with_columns([\n... pl.arange... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74584917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19529973/"
] |
74,584,926 | <p>When I click on the checkboxes, the filter works, but when I click again, the filter does not work and the checkbox flags also seem to work separately. I want to make that when clicked, when the checkbox was worked, filter this. Booleans need to be created for individual checkboxes?</p>
<pre><code>const App = () =&g... | [
{
"answer_id": 74586627,
"author": "jqurious",
"author_id": 19355181,
"author_profile": "https://Stackoverflow.com/users/19355181",
"pm_score": 1,
"selected": false,
"text": ">>> max_time_step = 3\n>>> sequence_length = 3\n>>> (\n... min_df\n... .with_columns([\n... pl.arange... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74584926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20324382/"
] |
74,584,967 | <p>The senario is that some people apply for some positions.<br />
So there are <code>tApplicant</code>, <code>tPosition</code> and a join table <code>tPreferences</code> for a many-to-many relationship between them.</p>
<p>I need to build a SQL expression where these should happen:</p>
<ol>
<li>get some fields from a ... | [
{
"answer_id": 74585193,
"author": "Erik A",
"author_id": 7296893,
"author_profile": "https://Stackoverflow.com/users/7296893",
"pm_score": 2,
"selected": false,
"text": "Nz Access.Application CurrentDb.Execute Nz IIF((SELECT 1 FROM tInfo WHERE tInfo.applicationID = tApplicant.applicatio... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74584967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4037170/"
] |
74,585,082 | <p>I need to make a textfield that only accepts up to 100 (as string) maximum, if they type 101 or more it should turn red, can you do this in flutter with or without an outside package?</p>
<p>I have no idea where to even start, is the first time i do something this kind.</p>
| [
{
"answer_id": 74585131,
"author": "eamirho3ein",
"author_id": 10306997,
"author_profile": "https://Stackoverflow.com/users/10306997",
"pm_score": 3,
"selected": true,
"text": "limit class CustomInput extends StatefulWidget {\n const CustomInput({Key? key}) : super(key: key);\n\n @over... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19702304/"
] |
74,585,110 | <p>I have well over 100,000 GPS locations of 35 animals. I have removed the 'NA' and '0' GPS latitude-longitude locations but noticed that there was one latitude and longitude location that was incorrect and that needs to be removed (in this subset of data, the 4th line that has -78.6917357 17.5506138 as LAT and LON... | [
{
"answer_id": 74585131,
"author": "eamirho3ein",
"author_id": 10306997,
"author_profile": "https://Stackoverflow.com/users/10306997",
"pm_score": 3,
"selected": true,
"text": "limit class CustomInput extends StatefulWidget {\n const CustomInput({Key? key}) : super(key: key);\n\n @over... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11763351/"
] |
74,585,139 | <p>Problem - I want to keep the 4th box in 2nd row like in the current code, but the width of the 4th box should be similar to 1/2/5/6 box i.e. 100px.</p>
<p>But currently 4th box is taking full width in 2nd row, I want it to take only 100px space and rest empty space in row 2. 5 and 6 ox should come on 3rd row.</p>
<p... | [
{
"answer_id": 74585231,
"author": "dangarfield",
"author_id": 3265253,
"author_profile": "https://Stackoverflow.com/users/3265253",
"pm_score": 3,
"selected": true,
"text": ".one { background: red; }\n.two { background: green; }\n.three { background: blue; }\n.four { background: pink; }... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4818458/"
] |
74,585,148 | <p>First of all, sorry if this was asked before, but I simply could not find anything related to it.</p>
<pre class="lang-cs prettyprint-override"><code>string anElement = "World";
string[] col = new string[2] { "Hello", anElement };
anElement = "Jupiter";
Array.ForEach(col, Console.WriteL... | [
{
"answer_id": 74585231,
"author": "dangarfield",
"author_id": 3265253,
"author_profile": "https://Stackoverflow.com/users/3265253",
"pm_score": 3,
"selected": true,
"text": ".one { background: red; }\n.two { background: green; }\n.three { background: blue; }\n.four { background: pink; }... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14040062/"
] |
74,585,157 | <p>I have the following <code>CodeBehind</code> and <code>XAML</code> which I used to get all data from an <code>SQLite</code> table and populate a <code>CollectionView</code>:</p>
<p><strong>.cs</strong></p>
<pre><code>protected override void OnAppearing()
{
base.OnAppearing();
List<Record> records = Ap... | [
{
"answer_id": 74609211,
"author": "ToolmakerSteve",
"author_id": 199364,
"author_profile": "https://Stackoverflow.com/users/199364",
"pm_score": 0,
"selected": false,
"text": "<CollectionView.ItemTemplate>\n <DataTemplate>\n <mynamespace:MyItemView ... />\n </DataTemplate>\... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/364312/"
] |
74,585,167 | <p>I have a file of recipes</p>
<pre><code>banana pancake
1 cups of flour
2 tablespoons of sugar
1 eggs
1 cups of milk
3 teaspoons of cinnamon
2 teaspoons of baking powder
0 slices of bread
2 bananas
0 apples
0 peaches
</code></pre>
<p>And I need to create a dictionary, where the key is the name of the ingredient and t... | [
{
"answer_id": 74609211,
"author": "ToolmakerSteve",
"author_id": 199364,
"author_profile": "https://Stackoverflow.com/users/199364",
"pm_score": 0,
"selected": false,
"text": "<CollectionView.ItemTemplate>\n <DataTemplate>\n <mynamespace:MyItemView ... />\n </DataTemplate>\... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20609183/"
] |
74,585,200 | <p>I have an array of objects.
I need to:</p>
<ul>
<li>check if the object has a specific key:value combination</li>
<li>if yes, replace a different value of this object</li>
<li>return both the objects</li>
</ul>
<p>This is how I am trying to achieve it:</p>
<pre><code>list.map(item => {
return {
... | [
{
"answer_id": 74585232,
"author": "Majed Badawi",
"author_id": 7486313,
"author_profile": "https://Stackoverflow.com/users/7486313",
"pm_score": 1,
"selected": true,
"text": "const list = [ { orderId: \"xyz\", transactionNumber: \"1\" }, { orderId: \"abc\", transactionNumber: \"2\" } ];... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1580094/"
] |
74,585,203 | <p>Using <code>SendMessage</code> I can pass a <code>CString</code> up to the parent easily enough (simplified):</p>
<pre><code>CString strText = L"The text";
GetParent()->SendMessage(theApp.UWM_LOADED_SRR_FILE_MSG,
reinterpret_cast<WPARAM>(strText.GetString()));
</code></pre... | [
{
"answer_id": 74585445,
"author": "Constantine Georgiou",
"author_id": 1372577,
"author_profile": "https://Stackoverflow.com/users/1372577",
"pm_score": 3,
"selected": true,
"text": "wParam lParam WM_GETTEXT GetClipboardData() CString* new delete CString GetString()"
},
{
"answe... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2287576/"
] |
74,585,212 | <p>During installation of a Nest Application node modules, I have the following error:</p>
<pre><code>npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: ticket-be@0.1.3
npm ERR! Found: typeorm@0.2.45
npm ERR! node_modules/typeorm
npm ERR! typeorm@"^0.2.... | [
{
"answer_id": 74585445,
"author": "Constantine Georgiou",
"author_id": 1372577,
"author_profile": "https://Stackoverflow.com/users/1372577",
"pm_score": 3,
"selected": true,
"text": "wParam lParam WM_GETTEXT GetClipboardData() CString* new delete CString GetString()"
},
{
"answe... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585212",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5665574/"
] |
74,585,233 | <p>I am a backend developer so I need help with this front end part.</p>
<pre><code><input id="entered_value" type="number" name="entered_value">
<input id="entered_valuetwo" type="text" name="entered_valuetwo">
<select id="selected_value&q... | [
{
"answer_id": 74585297,
"author": "DCR",
"author_id": 4398966,
"author_profile": "https://Stackoverflow.com/users/4398966",
"pm_score": 2,
"selected": true,
"text": "document.getElementById('send-data').addEventListener('click',buttonFunction)\nfunction buttonFunction(){\n\nlet enteredV... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19222846/"
] |
74,585,238 | <p>I am trying to replicate the following graph from the paper, <a href="https://pubmed.ncbi.nlm.nih.gov/32834653/" rel="nofollow noreferrer">https://pubmed.ncbi.nlm.nih.gov/32834653/</a>.</p>
<p><a href="https://i.stack.imgur.com/Jdp0e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Jdp0e.png" alt="... | [
{
"answer_id": 74585297,
"author": "DCR",
"author_id": 4398966,
"author_profile": "https://Stackoverflow.com/users/4398966",
"pm_score": 2,
"selected": true,
"text": "document.getElementById('send-data').addEventListener('click',buttonFunction)\nfunction buttonFunction(){\n\nlet enteredV... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585238",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20557703/"
] |
74,585,257 | <p>I am exporting a MySQL database on a windows machine (running XAMPP) to then import into a Linux server (using cmdline or phpMyAdmin IMPORT "filename.sql")
The dbdump file has mixed LF/CRLF line endings, and I know Linux uses LF for line endings.
Will this cause a problem?
Thanks</p>
| [
{
"answer_id": 74585297,
"author": "DCR",
"author_id": 4398966,
"author_profile": "https://Stackoverflow.com/users/4398966",
"pm_score": 2,
"selected": true,
"text": "document.getElementById('send-data').addEventListener('click',buttonFunction)\nfunction buttonFunction(){\n\nlet enteredV... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585257",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1210149/"
] |
74,585,284 | <p>Given a dataframe of types and values like so:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>topic</th>
<th>keyword</th>
</tr>
</thead>
<tbody>
<tr>
<td>cheese</td>
<td>cheddar</td>
</tr>
<tr>
<td>meat</td>
<td>beef</td>
</tr>
<tr>
<td>meat</td>
<td>chicken</td>
</tr>
<tr>
<td>cheese</... | [
{
"answer_id": 74585297,
"author": "DCR",
"author_id": 4398966,
"author_profile": "https://Stackoverflow.com/users/4398966",
"pm_score": 2,
"selected": true,
"text": "document.getElementById('send-data').addEventListener('click',buttonFunction)\nfunction buttonFunction(){\n\nlet enteredV... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4337654/"
] |
74,585,292 | <p>thanks ahead of time for your help... I'm relatively new to coding (especially JSON/JavaScript/jQuery) so forgive my imprecise terminologies and references.</p>
<p>I have a JSON/JavaScript enabled footer with the relevant JSON code below:</p>
<pre><code> footerOptions : {
'Old Website' : 'http://Link1.com... | [
{
"answer_id": 74585451,
"author": "Satsangpriyadas Swami",
"author_id": 9677279,
"author_profile": "https://Stackoverflow.com/users/9677279",
"pm_score": 1,
"selected": false,
"text": "footerOptionsHtml += \"<a href='\"+config.footerOptions[key]+\"' target='_blank'>\"+key+\"</a>\"\n"
... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20213961/"
] |
74,585,321 | <p>For the commands:</p>
<pre><code>z=bye
z=hello echo $z
echo $z
</code></pre>
<p>I'm expecting to see:</p>
<pre><code>hello
bye
</code></pre>
<p>Instead, I'm seeing:</p>
<pre><code>bye
bye
</code></pre>
<p>According to the <a href="https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Simple-Command-Expans... | [
{
"answer_id": 74585345,
"author": "Adrian",
"author_id": 1366368,
"author_profile": "https://Stackoverflow.com/users/1366368",
"pm_score": 1,
"selected": false,
"text": "fn() { echo $z; }\nz=bye\nz=hello fn\necho $z\n"
},
{
"answer_id": 74585491,
"author": "KamilCuk",
"a... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1366368/"
] |
74,585,386 | <p>Im doing a project in javascript with API from restCountries <a href="https://restcountries.com/#rest-countries-v3-vs-v31" rel="nofollow noreferrer">https://restcountries.com/#rest-countries-v3-vs-v31</a>
I want to create a forEach loop where I can loop through the result and create whats in the function showCountry... | [
{
"answer_id": 74585407,
"author": "codinn.dev",
"author_id": 15755662,
"author_profile": "https://Stackoverflow.com/users/15755662",
"pm_score": 2,
"selected": true,
"text": "async function getCountries(){\n const search = document.querySelector('.search').value;\n const response ... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19224482/"
] |
74,585,390 | <p>I have three tables:</p>
<ul>
<li><code>customer</code> (id, name, email)</li>
<li><code>product</code> (id, product_category, material, price, purchase_id)</li>
<li><code>purchase</code> (id, purchase_date, customer_id)</li>
</ul>
<p><strong>My task</strong>: show the name of the customer and the number of purchase... | [
{
"answer_id": 74585407,
"author": "codinn.dev",
"author_id": 15755662,
"author_profile": "https://Stackoverflow.com/users/15755662",
"pm_score": 2,
"selected": true,
"text": "async function getCountries(){\n const search = document.querySelector('.search').value;\n const response ... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20609076/"
] |
74,585,414 | <p>I am getting this problem, any help will be appreciated, Im getting an arror trying to sign-in or sign-up.Error bellow.
AttributeError at /sign-up
'WSGIRequest' object has no attribute 'is_ajax' I know that function is depreciated now, but i can't seem to fix the issue.</p>
<p>mixins.py</p>
<pre><code>class AjaxForm... | [
{
"answer_id": 74585495,
"author": "Willem Van Onsem",
"author_id": 67579,
"author_profile": "https://Stackoverflow.com/users/67579",
"pm_score": 1,
"selected": false,
"text": ".is_ajax() HttpRequest.is_ajax() HttpRequest.accepts() def is_ajax():\n return request.headers.get('x-reque... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18923388/"
] |
74,585,438 | <p>Hello and thank you for reading. I have written a program to reverse the words in a string using a stack. I am to use 3 sentences and reverse each sentence separately. I have been able to reverse the entire string, which wasn't an issue. Then I changed my program so I am reading to the period and reversing the first... | [
{
"answer_id": 74585464,
"author": "S. Miller",
"author_id": 3681614,
"author_profile": "https://Stackoverflow.com/users/3681614",
"pm_score": 0,
"selected": false,
"text": "Stack<String> wordStack = new Stack<String>(); wordStack,"
},
{
"answer_id": 74585595,
"author": "Alex... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20400438/"
] |
74,585,441 | <pre class="lang-none prettyprint-override"><code>ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property 'org.apache.logging.log4j.simplelog.StatusLogger.level' to TRACE to show Log4j2 internal initialization logging.
01:16:25.288 [Cli... | [
{
"answer_id": 74585457,
"author": "SwagiWagi",
"author_id": 9545837,
"author_profile": "https://Stackoverflow.com/users/9545837",
"pm_score": 1,
"selected": false,
"text": "StatusLogger.level Trace"
},
{
"answer_id": 74585532,
"author": "Hiran Chaudhuri",
"author_id": 42... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20609472/"
] |
74,585,481 | <p>I'm making exploding barrels in Unity and using Physics.OverlapSphere to detect nearby rigidbodies and other exploding barrels. This is to move and trigger other exploding barrels to explode. The issue is when I'm using OverlapSphere in the triggered barrels it's accessing the previous barrel that triggered it which... | [
{
"answer_id": 74586169,
"author": "Deleted",
"author_id": 585968,
"author_profile": "https://Stackoverflow.com/users/585968",
"pm_score": 1,
"selected": false,
"text": "explode alreadyExploded existingBarrels if (hit.GetComponent<explosiveBarrel>().alreadyExploded == true) \n{\n .\n ... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585481",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8264461/"
] |
74,585,507 | <p>I've started using react native with expo not long ago so I am a bit lost.</p>
<p>When trying to build the application with the command:</p>
<pre><code>eas build --profile development --platform android
</code></pre>
<p>The build fails when it reaches the install dependencies part</p>
<pre><code>Running "npm in... | [
{
"answer_id": 74590302,
"author": "Kaosc",
"author_id": 14104131,
"author_profile": "https://Stackoverflow.com/users/14104131",
"pm_score": 1,
"selected": false,
"text": "yarn install"
},
{
"answer_id": 74603893,
"author": "Sapir",
"author_id": 19353780,
"author_prof... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19353780/"
] |
74,585,512 | <p>I am trying to solve the following problem using Scipy. However, it doesn't produce the correct result.</p>
<p><a href="https://i.stack.imgur.com/Wjdy0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wjdy0.png" alt="Problem formulation" /></a></p>
<p><code>r</code> is the only decision variable th... | [
{
"answer_id": 74585934,
"author": "Selknam_CL",
"author_id": 13652570,
"author_profile": "https://Stackoverflow.com/users/13652570",
"pm_score": 0,
"selected": false,
"text": "res = linprog(obj_fn, A_ub=a_up, b_ub=b_up, bounds=bounds())\n obj_fn Objetc()"
},
{
"answer_id": 74590... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15816775/"
] |
74,585,521 | <pre><code>const myElement = document.createElement("div");
let selectItems = data.map((select, i) => (
`<div class="select">
<div aria-required="true" class="selectBtn" data-type="">${select.placeholder}</div>
<div cl... | [
{
"answer_id": 74585934,
"author": "Selknam_CL",
"author_id": 13652570,
"author_profile": "https://Stackoverflow.com/users/13652570",
"pm_score": 0,
"selected": false,
"text": "res = linprog(obj_fn, A_ub=a_up, b_ub=b_up, bounds=bounds())\n obj_fn Objetc()"
},
{
"answer_id": 74590... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20606965/"
] |
74,585,524 | <p>I have a long array and a long string</p>
<p>I want to find out if part of that string exists in that array</p>
<p>ex:-</p>
<pre><code>String[] array = [.....];
String url="https://stackoverflow.com/ques........ ";
//find if url contain any string elements of array
</code></pre>
<p>tried bunch of thin... | [
{
"answer_id": 74585934,
"author": "Selknam_CL",
"author_id": 13652570,
"author_profile": "https://Stackoverflow.com/users/13652570",
"pm_score": 0,
"selected": false,
"text": "res = linprog(obj_fn, A_ub=a_up, b_ub=b_up, bounds=bounds())\n obj_fn Objetc()"
},
{
"answer_id": 74590... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20578525/"
] |
74,585,534 | <p>I'm trying to get the result below running 2 threads alternately. *Thread <code>A</code> prints <code>Step 1</code> and <code>Step 3</code> and thread <code>B</code> prints <code>Step 2</code> and <code>Step 4</code> (I use <strong>Python 3.8.5</strong>):</p>
<pre class="lang-none prettyprint-override"><code>Step 1
... | [
{
"answer_id": 74585934,
"author": "Selknam_CL",
"author_id": 13652570,
"author_profile": "https://Stackoverflow.com/users/13652570",
"pm_score": 0,
"selected": false,
"text": "res = linprog(obj_fn, A_ub=a_up, b_ub=b_up, bounds=bounds())\n obj_fn Objetc()"
},
{
"answer_id": 74590... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8172439/"
] |
74,585,579 | <p>i have a txt file which i got from zoom api. I want to transform it to a dataframe for later cleaning. But there is a column that comes with curly braces, it doesn't read it like a dictionary</p>
<pre><code>open = pd.read_csv("registrados111.txt", sep = " ")
open.columns = ["page_size",... | [
{
"answer_id": 74585934,
"author": "Selknam_CL",
"author_id": 13652570,
"author_profile": "https://Stackoverflow.com/users/13652570",
"pm_score": 0,
"selected": false,
"text": "res = linprog(obj_fn, A_ub=a_up, b_ub=b_up, bounds=bounds())\n obj_fn Objetc()"
},
{
"answer_id": 74590... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20608547/"
] |
74,585,614 | <pre><code>tests.map((test) => {
format(test.Hour, `yyyy-MM-dd'T'HH`)
console.log(format(test.Hour, `yyyy-MM-dd'T'HH`));
})
console.log(tests);
</code></pre>
<p>I am trying to convert some data i pulled from an API to a better date format for my purpose by using date-fns' format function. When i ... | [
{
"answer_id": 74585702,
"author": "Melih Bağçeli",
"author_id": 19463436,
"author_profile": "https://Stackoverflow.com/users/19463436",
"pm_score": 0,
"selected": false,
"text": "const numbers = [1, 4, 9];\nconst roots = numbers.map((num) => Math.sqrt(num));\n// roots is now [1, 2, ... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14786888/"
] |
74,585,622 | <p>I'm trying to use <a href="https://pypi.org/project/pyFirmata/" rel="nofollow noreferrer">pyFirmata</a>, but I can't get it to work. Even the most basic of the library does not work. I guess there is something wrong with the library code.</p>
<pre class="lang-py prettyprint-override"><code>from pyfirmata import Ardu... | [
{
"answer_id": 74585666,
"author": "Le Minaw",
"author_id": 7021223,
"author_profile": "https://Stackoverflow.com/users/7021223",
"pm_score": 1,
"selected": true,
"text": "inspect"
},
{
"answer_id": 74586109,
"author": "wovano",
"author_id": 10669875,
"author_profile"... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20609610/"
] |
74,585,643 | <p>I am using visual studio code as my code editor for my angular application. Everything was perfectly fine and suddenly out of no where I am facing the following 2 issues.</p>
<blockquote>
<ol>
<li>When Command <code>ng serve </code>is run in the terminal I am getting <code>√ Compiled successfully.</code> message. Th... | [
{
"answer_id": 74585666,
"author": "Le Minaw",
"author_id": 7021223,
"author_profile": "https://Stackoverflow.com/users/7021223",
"pm_score": 1,
"selected": true,
"text": "inspect"
},
{
"answer_id": 74586109,
"author": "wovano",
"author_id": 10669875,
"author_profile"... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585643",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6676148/"
] |
74,585,652 | <p>I want to emulate the Iphone Gallery, I am stacking div's correctly with flexbox, but with different widths and heights, and they don’t stack properly. Here is a screenshot since the code is so big:</p>
<p><img src="https://i.stack.imgur.com/ohgbd.png" alt="Image" /></p>
<p>I tried as shown in the photo, I can't get... | [
{
"answer_id": 74586079,
"author": "Skin_phil",
"author_id": 13258195,
"author_profile": "https://Stackoverflow.com/users/13258195",
"pm_score": 2,
"selected": true,
"text": "#container {\n display: grid;\n \n grid-template-columns: 1fr 1fr 1fr;\n grid-template-rows:auto;\n ... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19444460/"
] |
74,585,664 | <p>new true value that meets the condition = v</p>
<p>previous true value = vprev</p>
<p>I am trying to look for a v so that hash of str(((power(v,2))+(power(vprev, 3))) begins with ee</p>
<p>I tried this</p>
<pre><code>import hashlib
values_list = []# a list where v and prev will be
solved = False
v = 1 # to start loo... | [
{
"answer_id": 74586079,
"author": "Skin_phil",
"author_id": 13258195,
"author_profile": "https://Stackoverflow.com/users/13258195",
"pm_score": 2,
"selected": true,
"text": "#container {\n display: grid;\n \n grid-template-columns: 1fr 1fr 1fr;\n grid-template-rows:auto;\n ... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20609251/"
] |
74,585,703 | <p>I'm trying to create a <code>JSON</code> array that contains list of weekdays.</p>
<p>I'm testing this in a console app but it keeps giving me an error i.e. exited with code 0.</p>
<p>Here's what I'm doing:</p>
<pre><code>using Newtonsoft.Json;
var days = new List<DayOfWeek>();
days.Add(DayOfWeek.Monday);
day... | [
{
"answer_id": 74585796,
"author": "Avrohom Yisroel",
"author_id": 706346,
"author_profile": "https://Stackoverflow.com/users/706346",
"pm_score": 2,
"selected": true,
"text": "System.Text.Json var days = JsonSerializer.Serialize(Enum.GetValues(typeof(DayOfWeek))\n .Cast<DayOfWeek>().To... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1705266/"
] |
74,585,752 | <p>Here's a simple example:</p>
<pre><code>def separateFloatInt(L):
l1=list()
l2=list()
for x in L:
if type(x)==int:
l1.append(x)
else:
l2.append(x)
return l1,l2
L=['2', '3.5', '6', '5.1', '9.8', '7.8', '5', '3.3', '0.5', '9']
integer,reel=separat... | [
{
"answer_id": 74585849,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 1,
"selected": false,
"text": "def separateFloatInt(L):\n l1, l2 = [], []\n for v in L:\n try:\n l1.append(int(v))\... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5738528/"
] |
74,585,782 | <p>I have this custom dropDown button and I want to get two values when I select one value from the list.</p>
<p>Here is the custom dropdown button</p>
<pre><code>Widget customJsonDropDown(List? jsonList, String? value, void onChange(val)) {
return Container(
decoration: BoxDecoration(
borderRadius: Bor... | [
{
"answer_id": 74589367,
"author": "Peter Koltai",
"author_id": 14726230,
"author_profile": "https://Stackoverflow.com/users/14726230",
"pm_score": 0,
"selected": false,
"text": "DropdownButton String <Map<String, dynamic>> DropdownButton DropdownMenuItem Map name conversion import 'pack... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585782",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9702001/"
] |
74,585,842 | <p>I have two groups of data I'm working with, which I'd like to show in a bar plot using plotly (example for data is shown below).</p>
<pre><code>import numpy as np
import plotly.express as px
import plotly.graph_objects as go
</code></pre>
<pre><code>values1 = abs(np.random.normal(0.5, 0.3, 13)) # random data and nam... | [
{
"answer_id": 74587158,
"author": "r-beginners",
"author_id": 13107804,
"author_profile": "https://Stackoverflow.com/users/13107804",
"pm_score": 2,
"selected": true,
"text": "fig.update_layout(barmode='group', bargroupgap=0.2)\n fig = go.Figure()\n\nfig.add_trace(go.Bar(\n x = names... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14531338/"
] |
74,585,854 | <p>Is there any fundamental difference between assigning a value to a variable before or inside the <code>Start()</code> method?</p>
<p>For clarity, I'm not talking about declaring variables but really just giving them values like, in this simple example:</p>
<pre><code>public class test : MonoBehaviour
{
private f... | [
{
"answer_id": 74585894,
"author": "gunr2171",
"author_id": 1043380,
"author_profile": "https://Stackoverflow.com/users/1043380",
"pm_score": 2,
"selected": false,
"text": "exampleFloat Start() Start() 12.34"
},
{
"answer_id": 74585895,
"author": "Avrohom Yisroel",
"autho... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585854",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20314934/"
] |
74,585,875 | <p>This might be a really obvious solution to some, but, being pretty new to python, I'm unsure how to do it - In short, I want to take a user's input, and find the corresponding element on a 2D array, i.e. an input of '1' would print 'a', '2' would print 'b', and so on. Is there a way to do this?
The code I've written... | [
{
"answer_id": 74585894,
"author": "gunr2171",
"author_id": 1043380,
"author_profile": "https://Stackoverflow.com/users/1043380",
"pm_score": 2,
"selected": false,
"text": "exampleFloat Start() Start() 12.34"
},
{
"answer_id": 74585895,
"author": "Avrohom Yisroel",
"autho... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20609766/"
] |
74,585,893 | <p>I like to use <code>SMS Spam Collection Data Set</code> which can be found on <a href="https://archive.ics.uci.edu/ml/datasets/SMS+Spam+Collection#" rel="nofollow noreferrer">UCI Machine Learning Repository</a>, to build a classification model. The data file that is shared on the repository has no file extension. Th... | [
{
"answer_id": 74585962,
"author": "abokey",
"author_id": 16120011,
"author_profile": "https://Stackoverflow.com/users/16120011",
"pm_score": 2,
"selected": true,
"text": ".txt pandas.read_csv import pandas as pd\n\ndf = pd.read_csv(filepath_or_buffer= \"SMSSpamCollection\",\n ... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9357484/"
] |
74,585,920 | <p>I see some similar questions have been posted, but I am stuck with my issue considering it's a bit different. My question is that how can I add counting (like 1,2) for each list in the same line?</p>
<p>`</p>
<pre><code>
class AttendeeListPage extends Component<any,any> {
...
render(){
... | [
{
"answer_id": 74586175,
"author": "dkunrath",
"author_id": 19480959,
"author_profile": "https://Stackoverflow.com/users/19480959",
"pm_score": 1,
"selected": true,
"text": ".map class AttendeeListPage extends Component<any,any> {\n ...\n render(){\n let attendarr: a... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19249893/"
] |
74,585,987 | <p>My ultimate goal is to add the decimal value associated with the drop down item selected to any other number the user inputs (so they might input 1 and then choose 1/8 and I want it to spit out 1.125.) - it's a web app for me to keep track of the food and spices I have in the kitchen.</p>
<p>I can't get it to grab t... | [
{
"answer_id": 74586175,
"author": "dkunrath",
"author_id": 19480959,
"author_profile": "https://Stackoverflow.com/users/19480959",
"pm_score": 1,
"selected": true,
"text": ".map class AttendeeListPage extends Component<any,any> {\n ...\n render(){\n let attendarr: a... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19369950/"
] |
74,585,992 | <p>How can I collect data from all the sheets of the table?</p>
<p>Through apps script, I get all the unprotected sheets on the book, and the width of the range with data on sheets with the same structure.</p>
<pre><code>function GetRangeArray() {
var sheets = SpreadsheetApp.getActive().getSheets();
var counter = ... | [
{
"answer_id": 74586175,
"author": "dkunrath",
"author_id": 19480959,
"author_profile": "https://Stackoverflow.com/users/19480959",
"pm_score": 1,
"selected": true,
"text": ".map class AttendeeListPage extends Component<any,any> {\n ...\n render(){\n let attendarr: a... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585992",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20609847/"
] |
74,585,996 | <p>I have a 5000 lines file consisting of blocks of lines, with an END string between blocks, as follows</p>
<pre><code>ATOM 1
ATOM 3
ATOM 25
END
ATOM 2
ATOM 36
ATOM 22
ATOM 12
END
ATOM 1
ATOM 87
END
</code></pre>
<p>I want to find a way to split the file into several files, each containing a single block of lines ... | [
{
"answer_id": 74586027,
"author": "KamilCuk",
"author_id": 9072753,
"author_profile": "https://Stackoverflow.com/users/9072753",
"pm_score": 2,
"selected": false,
"text": "awk 'BEGIN{flag=0} /END/{flag++} {print $0 > flag \".txt\"}' file\n flag=0\nwhile IFS= read -r line; do\n if [[ \... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74585996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19619903/"
] |
74,586,017 | <p>Is there a way for me to dynamically multiply columns together based on a value in another column in Python? I'm using Polars if that makes a difference. For example, if <code>calendar_year</code> is 2018, I'd want to multiply columns <code>2018</code>, <code>2019</code>, <code>2020</code>, and <code>2021</code> tog... | [
{
"answer_id": 74586036,
"author": "Selknam_CL",
"author_id": 13652570,
"author_profile": "https://Stackoverflow.com/users/13652570",
"pm_score": -1,
"selected": false,
"text": "np.where(condition,then,else) df['2018_result'] = np.where(df.calendar_year.isin(['2019','2020','2021']),df.20... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10760940/"
] |
74,586,028 | <p>So I have this piece of code which I think can be improved but I don't know how</p>
<pre><code>IList<User> users = await _unitOfWork.UserRepository.SelectAllAsync();
users = users.Where(x => x.Field == MyField).ToList();
foreach (var user in users)
{
user.Active = IsActive;
await _unitOfWork.UserRepos... | [
{
"answer_id": 74586073,
"author": "Avrohom Yisroel",
"author_id": 706346,
"author_profile": "https://Stackoverflow.com/users/706346",
"pm_score": 4,
"selected": true,
"text": "_unitOfWork DbContext IList<User> users = await _ctx.Users\n .Where(x => x.Field =... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17274803/"
] |
74,586,032 | <p>If I import an external module I can reference items in that module via the module variable from the import.</p>
<pre class="lang-js prettyprint-override"><code>import * as foo from 'foo';
foo.fn()
foo['fn']()
</code></pre>
<p>But how do I get a reference to the current module context if I want to do something simi... | [
{
"answer_id": 74586083,
"author": "Nikolay",
"author_id": 929187,
"author_profile": "https://Stackoverflow.com/users/929187",
"pm_score": 1,
"selected": false,
"text": "foo.ts export function foo() {\n console.log('foo');\n}\n\nimport * as self from './foo';\n\nself.foo();\n"
},
... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2281159/"
] |
74,586,033 | <p>I am on codewars, here is the challenge:</p>
<blockquote>
<p>Given a month as an integer from 1 to 12, return to which quarter of the year it belongs as an integer number.<br />
For example: month 2 (February), is part of the first quarter; month 6 (June), is part of the second quarter; and month 11 (November), is p... | [
{
"answer_id": 74586083,
"author": "Nikolay",
"author_id": 929187,
"author_profile": "https://Stackoverflow.com/users/929187",
"pm_score": 1,
"selected": false,
"text": "foo.ts export function foo() {\n console.log('foo');\n}\n\nimport * as self from './foo';\n\nself.foo();\n"
},
... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20193212/"
] |
74,586,046 | <p>Hi,</p>
<p>I have one array of objects with all items and their respective price like this:</p>
<pre><code>var items = [
{
"id": "001",
"name": "apple",
"price": 500
},
{
"id": "002",
"name": "banana",
"price&... | [
{
"answer_id": 74586203,
"author": "Christian Vincenzo Traina",
"author_id": 1850851,
"author_profile": "https://Stackoverflow.com/users/1850851",
"pm_score": 2,
"selected": false,
"text": "const joined = items.map(item => ({...item, ...cart.find(c => c.id === item.id)}));\n find null ..... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586046",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2230939/"
] |
74,586,075 | <p>I've been trying to debug it but couldn't get anywhere I'm sure problem lies in rendering the value. otherwise it would be something else. I think its the screen component that is making problems or button component. I'm still a beginner in react that's why I cant clearly express where I'm going wrong</p>
<pre><code... | [
{
"answer_id": 74586203,
"author": "Christian Vincenzo Traina",
"author_id": 1850851,
"author_profile": "https://Stackoverflow.com/users/1850851",
"pm_score": 2,
"selected": false,
"text": "const joined = items.map(item => ({...item, ...cart.find(c => c.id === item.id)}));\n find null ..... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15780750/"
] |
74,586,081 | <p>I am creating a custom JsonConverterto parse datetimeoffset, to fix utc issue with offset. I am following <a href="https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/converters-how-to?pivots=dotnet-6-0" rel="nofollow noreferrer">MS doc</a></p>
<pre><code>using System.Globalization;
usin... | [
{
"answer_id": 74586112,
"author": "Poul Bak",
"author_id": 5741643,
"author_profile": "https://Stackoverflow.com/users/5741643",
"pm_score": 2,
"selected": false,
"text": "JsonConverter [JsonConverter(typeof(DateTimeOffsetJsonConverter))]\npublic DateTimeOffset TravelTime { get; set; }\... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1600943/"
] |
74,586,098 | <p>Implement a program to multiply two numbers, with the mention that the first can have a maximum of 2048 digits, and the second number is less than 100. HINT: multiplication can be done using repeated additions.</p>
<p>Up to a certain point, the program works using long double, but when working with larger numbers, o... | [
{
"answer_id": 74586112,
"author": "Poul Bak",
"author_id": 5741643,
"author_profile": "https://Stackoverflow.com/users/5741643",
"pm_score": 2,
"selected": false,
"text": "JsonConverter [JsonConverter(typeof(DateTimeOffsetJsonConverter))]\npublic DateTimeOffset TravelTime { get; set; }\... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586098",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20609921/"
] |
74,586,124 | <p>I need to calculate euclidian distance for every point in matrix and store it into the List. But it works too slow. How can I get it faster?</p>
<pre><code>public static char[,] fields = new char[10000, 10000]; // it contains different count of 't' and 'r' symbols
List<Tuple<int, int, double>> tuples = n... | [
{
"answer_id": 74586869,
"author": "Severin Pappadeux",
"author_id": 4044696,
"author_profile": "https://Stackoverflow.com/users/4044696",
"pm_score": 2,
"selected": false,
"text": "double Squared(int x) => (double)(x*x);\n Math.Sqrt(Squared(i - x) + Squared(r - y))\n int Squared(int x) ... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13858488/"
] |
74,586,171 | <p>I am exploring .tga files.</p>
<p>I have fully working code that looks like this:</p>
<pre class="lang-c prettyprint-override"><code>#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
const int letterHeight = 34... | [
{
"answer_id": 74586207,
"author": "Joshua",
"author_id": 14768,
"author_profile": "https://Stackoverflow.com/users/14768",
"pm_score": -1,
"selected": false,
"text": "memmove memmove void *memmove(void *sm, const void *tm, size_t n)\n{\n char *s = (char *)sm;\n const char *t = (co... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19121298/"
] |
74,586,200 | <p>I did some Googling and figured out how to generate all Friday dates in a year.</p>
<pre><code># get all Fridays in a year
from datetime import date, timedelta
def allfridays(year):
d = date(year, 1, 1) # January 1st
d += timedelta(days = 8 - 2) # Friday
while d.year == ... | [
{
"answer_id": 74586269,
"author": "Selknam_CL",
"author_id": 13652570,
"author_profile": "https://Stackoverflow.com/users/13652570",
"pm_score": 0,
"selected": false,
"text": "from datetime import date, timedelta\n def allfridays(year):\n d = date(year, 1, 1) # Ja... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5212614/"
] |
74,586,208 | <p>I want to be able to retain the margin between the boxes and have a single line of these squares with 3 maximum on screen, but no matter what command I put in they do not center. I have tried everything I can think of and I am at a loss. If someone could help me with this and explain why it was not working, I would ... | [
{
"answer_id": 74586269,
"author": "Selknam_CL",
"author_id": 13652570,
"author_profile": "https://Stackoverflow.com/users/13652570",
"pm_score": 0,
"selected": false,
"text": "from datetime import date, timedelta\n def allfridays(year):\n d = date(year, 1, 1) # Ja... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20596146/"
] |
74,586,215 | <p>I have a data of 199 test subjects (125 exposed subjects & 74 unexposed subjects).
Each subject has 3 different points attached to them.
I need to:</p>
<ol>
<li>Split the data into 2 groups (the exposed group & the unexposed group).</li>
<li>Find the average of the 3 points for each subject</li>
<li>Find the... | [
{
"answer_id": 74586269,
"author": "Selknam_CL",
"author_id": 13652570,
"author_profile": "https://Stackoverflow.com/users/13652570",
"pm_score": 0,
"selected": false,
"text": "from datetime import date, timedelta\n def allfridays(year):\n d = date(year, 1, 1) # Ja... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20610033/"
] |
74,586,272 | <p>How to create 2 pull requests with different changes but in the same fork and at the same time?</p>
<p>I have tried to use the same branch, but the changes of the second PR are committed in the first one</p>
| [
{
"answer_id": 74586269,
"author": "Selknam_CL",
"author_id": 13652570,
"author_profile": "https://Stackoverflow.com/users/13652570",
"pm_score": 0,
"selected": false,
"text": "from datetime import date, timedelta\n def allfridays(year):\n d = date(year, 1, 1) # Ja... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14650130/"
] |
74,586,281 | <p>I am having a problem downloading monthly data for any ticker (or list of tickers). The dates in the index of the result show more than just the beginning of the month.</p>
<p>Example :</p>
<pre><code>import yfinance as yf
y_params = {
'tickers': 'AAPL',
'start': '2020-01-01',
'end': '2022-11-01',
'i... | [
{
"answer_id": 74586269,
"author": "Selknam_CL",
"author_id": 13652570,
"author_profile": "https://Stackoverflow.com/users/13652570",
"pm_score": 0,
"selected": false,
"text": "from datetime import date, timedelta\n def allfridays(year):\n d = date(year, 1, 1) # Ja... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13595548/"
] |
74,586,292 | <p>I'm making an FPS game, but the bullets are not hitting in the right spot sometimes the bullets are below the crosshair but the next time it will be way off to the left.</p>
<p>I tried moving the gun tip (aka the thing that spawned the bullets) to aim at the center of the screen but then the bullets just went way of... | [
{
"answer_id": 74586269,
"author": "Selknam_CL",
"author_id": 13652570,
"author_profile": "https://Stackoverflow.com/users/13652570",
"pm_score": 0,
"selected": false,
"text": "from datetime import date, timedelta\n def allfridays(year):\n d = date(year, 1, 1) # Ja... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19607501/"
] |
74,586,307 | <p>I’m pretty new to PowerApps and need to migrate an Access database over to PowerApps, first of all it’s tables to Dataverse. It’s a typical use case for a model-driven app, with many relationships between the tables. All Access tables had an autogenerated ID field as their primary key.</p>
<p>I transferred all table... | [
{
"answer_id": 74586269,
"author": "Selknam_CL",
"author_id": 13652570,
"author_profile": "https://Stackoverflow.com/users/13652570",
"pm_score": 0,
"selected": false,
"text": "from datetime import date, timedelta\n def allfridays(year):\n d = date(year, 1, 1) # Ja... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10600241/"
] |
74,586,318 | <p>I'm trying to add items from the console input and scanner input to arraylists in java.
(To run the program user types Program ID)</p>
<p>The problem is that each time I run the program the contents of the arraylists update to only what has been entered that time. I would like the arraylists to contain all of the in... | [
{
"answer_id": 74586269,
"author": "Selknam_CL",
"author_id": 13652570,
"author_profile": "https://Stackoverflow.com/users/13652570",
"pm_score": 0,
"selected": false,
"text": "from datetime import date, timedelta\n def allfridays(year):\n d = date(year, 1, 1) # Ja... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586318",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20564816/"
] |
74,586,320 | <p>I'm quite an infrequent coder, I hope my question won't be too obvious.</p>
<p>I have this very simple code to open some websites based on string (open website for a specific word) which works on Windows but somehow doesn't on my new computer with Mac OS. The tricky part is that I'm using Korean alphabet (I learn th... | [
{
"answer_id": 74586269,
"author": "Selknam_CL",
"author_id": 13652570,
"author_profile": "https://Stackoverflow.com/users/13652570",
"pm_score": 0,
"selected": false,
"text": "from datetime import date, timedelta\n def allfridays(year):\n d = date(year, 1, 1) # Ja... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6330675/"
] |
74,586,332 | <p>I am trying to make put command line arguments by the user into an array but I am unsure how to approach it.</p>
<p>For example say I ran my program like this.</p>
<p>./program 1,2,3,4,5</p>
<p>How would I store 1 2 3 4 5 without the commas, and allow it to be passed to other functions to be used. I'm sure this has ... | [
{
"answer_id": 74586443,
"author": "Schwern",
"author_id": 14660,
"author_profile": "https://Stackoverflow.com/users/14660",
"pm_score": 3,
"selected": true,
"text": "atoi ./program 1 2 3 4 5 argv argv atoi #include <stdio.h>\n#include <stdlib.h>\n\nint main(int argc, char *argv[]) {\n ... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19235554/"
] |
74,586,347 | <p>I am having trouble understanding how to return <strong>null</strong> using: orElse: () => null
My method is the following:</p>
<pre><code>@override
Future<People> searchPeople({required String email}) async {
var user = auth.FirebaseAuth.instance.currentUser;
final docs = await FirebaseFirestore.... | [
{
"answer_id": 74586384,
"author": "Oreofe Solarin",
"author_id": 13501704,
"author_profile": "https://Stackoverflow.com/users/13501704",
"pm_score": 2,
"selected": true,
"text": "var res = docData.firstWhere((element) => element.hunting == email, orElse: () => People(username: 'Not Foun... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586347",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16515304/"
] |
74,586,356 | <p>I have a Nifi Groovy Script. Assigns fields to nifi attributes but it define null if json values are empty. if json value is null I want to define attribute empty.</p>
<p>null attributes look like this ;</p>
<p><a href="https://i.stack.imgur.com/NW44r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.... | [
{
"answer_id": 74586384,
"author": "Oreofe Solarin",
"author_id": 13501704,
"author_profile": "https://Stackoverflow.com/users/13501704",
"pm_score": 2,
"selected": true,
"text": "var res = docData.firstWhere((element) => element.hunting == email, orElse: () => People(username: 'Not Foun... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8052213/"
] |
74,586,402 | <p>Warning: Received <code>true</code> for a non-boolean attribute <code>show</code>.</p>
<p>If you want to write it to the DOM, pass a string instead: show="true" or show={value.toString()}.</p>
<pre><code>import React, { useState } from "react";
import "bootstrap/dist/css/bootstrap.min.css&qu... | [
{
"answer_id": 74586384,
"author": "Oreofe Solarin",
"author_id": 13501704,
"author_profile": "https://Stackoverflow.com/users/13501704",
"pm_score": 2,
"selected": true,
"text": "var res = docData.firstWhere((element) => element.hunting == email, orElse: () => People(username: 'Not Foun... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20542112/"
] |
74,586,431 | <p>I have created the following example function:</p>
<pre><code>my_function <- function(input_1, input_2){
a <- input_1*2
b <- input_2*3
c <- input_2*10
return(list(a = a, b = b, c = c))
}
</code></pre>
<p>How can I save all the elements of the resultant list to the working environment without doing so... | [
{
"answer_id": 74586384,
"author": "Oreofe Solarin",
"author_id": 13501704,
"author_profile": "https://Stackoverflow.com/users/13501704",
"pm_score": 2,
"selected": true,
"text": "var res = docData.firstWhere((element) => element.hunting == email, orElse: () => People(username: 'Not Foun... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13894990/"
] |
74,586,446 | <p>I have a Spring REST project that is redirecting all requests to error page, even if they are mapped in the controller.</p>
<p>I reduced the code to the smallest possible version that produces the error:</p>
<p>Here is the project structure:</p>
<p><a href="https://i.stack.imgur.com/lEYg9.png" rel="nofollow noreferr... | [
{
"answer_id": 74586384,
"author": "Oreofe Solarin",
"author_id": 13501704,
"author_profile": "https://Stackoverflow.com/users/13501704",
"pm_score": 2,
"selected": true,
"text": "var res = docData.firstWhere((element) => element.hunting == email, orElse: () => People(username: 'Not Foun... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11342145/"
] |
74,586,478 | <p>I'm using Google cloud build for CI/CD for my django app, and one requirement I have is to set my <code>GOOGLE_APPLICATION_CREDENTIALS</code> so I can perform authenticated actions in my Docker build. For example, I need to run <code>RUN python manage.py collectstatic --noinput</code> which requires access to my Goo... | [
{
"answer_id": 74586384,
"author": "Oreofe Solarin",
"author_id": 13501704,
"author_profile": "https://Stackoverflow.com/users/13501704",
"pm_score": 2,
"selected": true,
"text": "var res = docData.firstWhere((element) => element.hunting == email, orElse: () => People(username: 'Not Foun... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15068475/"
] |
74,586,510 | <p>I'm trying to create a <code>DelayedValue</code> future that resolves to a value after a certain time period has elapsed. To do this I simply wanted to wrap the <a href="https://docs.rs/tokio/latest/tokio/time/struct.Sleep.html" rel="nofollow noreferrer"><code>Sleep</code></a> future from <code>tokio</code> crate. B... | [
{
"answer_id": 74586555,
"author": "Chayim Friedman",
"author_id": 7884305,
"author_profile": "https://Stackoverflow.com/users/7884305",
"pm_score": 3,
"selected": true,
"text": "pin-project pin-project-lite pin_project_lite::pin_project! {\n struct DelayedValue<T> {\n value: O... | 2022/11/26 | [
"https://Stackoverflow.com/questions/74586510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19495580/"
] |
74,586,518 | <p>The original list is:
<code>[['James', '100.00', '90.00', '85.50'], ['Nick', '78.00', '85.00', '80.50'], ['William', '95.50', '92.00', '100.00']]</code></p>
<p>I want to turn the list into a dictionary that look like this:
<code>{'James': ['100.00', '90.00', '85.50'], 'Nick': ['78.00', '85.00', '80.50'], 'William': ... | [
{
"answer_id": 74586535,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": -1,
"selected": false,
"text": "inp = [['James', '100.00', '90.00', '85.50'], ['Nick', '78.00', '85.00', '80.50'], ['William', '95.50', '92... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74586518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20610291/"
] |
74,586,539 | <p>required is not working. I have tried using required="required" or required={true}.</p>
<p>Can someone explain why or how to easily fix that?</p>
<pre><code>import React, { useState } from 'react';
export const Login = () => {
const [username, setUsername] = useState("");
const handleSubmit ... | [
{
"answer_id": 74586535,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": -1,
"selected": false,
"text": "inp = [['James', '100.00', '90.00', '85.50'], ['Nick', '78.00', '85.00', '80.50'], ['William', '95.50', '92... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74586539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12009093/"
] |
74,586,557 | <p>I am creating a NodeJS boilerplate, as it was a framework, and I want to "register" the routes or endpoints when the application starts. I want to have an array of route classes and then instantiate them. Similar to what NestJs does with their <code>Controllers</code>. Then I want to loop through the colle... | [
{
"answer_id": 74586535,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": -1,
"selected": false,
"text": "inp = [['James', '100.00', '90.00', '85.50'], ['Nick', '78.00', '85.00', '80.50'], ['William', '95.50', '92... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74586557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2151892/"
] |
74,586,576 | <p>I have a simple form that I have made with HTML and CSS. I want to validate it so that if a user is attempting to sign up they will get an error message underneath the input value if they make a mistake. I have already made a validation function for email but when I tried to test it out it did not display the error ... | [
{
"answer_id": 74586624,
"author": "Roby Raju Oommen",
"author_id": 14399782,
"author_profile": "https://Stackoverflow.com/users/14399782",
"pm_score": -1,
"selected": false,
"text": "if (!emailInput.value.match(emaiPattern)) {\n return emailInput.classList.add(\"invalid\"); //Add inval... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74586576",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13911746/"
] |
74,586,586 | <p><strong>Condition:</strong> I have a model, created an empty table in the database, and I'm trying to create an html form that will fill in the fields of the corresponding columns of the table.
And here's what my app looks like:</p>
<p><strong>models.py</strong></p>
<pre><code>from django.db import models
class Cit... | [
{
"answer_id": 74586624,
"author": "Roby Raju Oommen",
"author_id": 14399782,
"author_profile": "https://Stackoverflow.com/users/14399782",
"pm_score": -1,
"selected": false,
"text": "if (!emailInput.value.match(emaiPattern)) {\n return emailInput.classList.add(\"invalid\"); //Add inval... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74586586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20610312/"
] |
74,586,601 | <p>I am trying to recreate a chart that is similar to this one using <code>ggplot2</code>, which categorizes historical yields (or spreads) into quartiles and presented in a stacked barchart.</p>
<p><a href="https://i.stack.imgur.com/2bOFZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2bOFZ.png" al... | [
{
"answer_id": 74586940,
"author": "stomper",
"author_id": 9227264,
"author_profile": "https://Stackoverflow.com/users/9227264",
"pm_score": 3,
"selected": true,
"text": "df <- data %>%\n group_by(Key, Quartile) %>%\n mutate(min = min(Percent), max = max(Percent)) %>%\n ... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74586601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12388534/"
] |
74,586,603 | <pre><code>app-main-folder
/local
/__init__.py
/run.py
constants.py
</code></pre>
<p>I am trying to import from constants in <code>run.py</code> it's throwing this error</p>
<pre><code>Traceback (most recent call last):
File "local/run.py", line 4, in <module>
from init imp... | [
{
"answer_id": 74586940,
"author": "stomper",
"author_id": 9227264,
"author_profile": "https://Stackoverflow.com/users/9227264",
"pm_score": 3,
"selected": true,
"text": "df <- data %>%\n group_by(Key, Quartile) %>%\n mutate(min = min(Percent), max = max(Percent)) %>%\n ... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74586603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11876237/"
] |
74,586,667 | <p>I am trying to find the substring between the first 'a' char in email column before '@',</p>
<p>i have written the below sql-query ,</p>
<p>but i think i can do it in better way .</p>
<pre><code>SELECT
email,
CASE
WHEN
LENGTH(SUBSTR(email, 0, POSITION('@' IN email))) - LENGTH(REPLACE(SUB... | [
{
"answer_id": 74586940,
"author": "stomper",
"author_id": 9227264,
"author_profile": "https://Stackoverflow.com/users/9227264",
"pm_score": 3,
"selected": true,
"text": "df <- data %>%\n group_by(Key, Quartile) %>%\n mutate(min = min(Percent), max = max(Percent)) %>%\n ... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74586667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17177669/"
] |
74,586,703 | <p>I have a query where I filter a column based on a <code>where</code> clause, like so:</p>
<pre><code>select * from table where col = val
</code></pre>
<p>What value do I set for <code>val</code> so that there is no filtering in the <code>where</code> clause (in which case the <code>where</code> clause is redundant)?... | [
{
"answer_id": 74586940,
"author": "stomper",
"author_id": 9227264,
"author_profile": "https://Stackoverflow.com/users/9227264",
"pm_score": 3,
"selected": true,
"text": "df <- data %>%\n group_by(Key, Quartile) %>%\n mutate(min = min(Percent), max = max(Percent)) %>%\n ... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74586703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3294195/"
] |
74,586,753 | <p>After catching an exception, how do I continue the execution of a Java program?</p>
<p>So I made a program to insert or delete nodes from specific positions in Doubly Linked List. Those 2 methods throw exception.</p>
<p>In main method, I have started to insert some int values to positions. If I entered wrong pos val... | [
{
"answer_id": 74586783,
"author": "Geoff",
"author_id": 9407148,
"author_profile": "https://Stackoverflow.com/users/9407148",
"pm_score": 1,
"selected": false,
"text": "int[] numsToInsert = new int[] {1, 0, 5, 54, 1, 0, 1, 0};\n\nfor(int i = 0; i < 8; i += 2){\n try {\n myList... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74586753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13555930/"
] |
74,586,794 | <p>I'm creating a plugin with Spiggot that every time you break a certain block or kill and entity it expands the border(The border is gonna start of being small). I have realised that after someone breaking a block they can replace in and repeat meaning the border will become infinite does anyone know a way I can prev... | [
{
"answer_id": 74586783,
"author": "Geoff",
"author_id": 9407148,
"author_profile": "https://Stackoverflow.com/users/9407148",
"pm_score": 1,
"selected": false,
"text": "int[] numsToInsert = new int[] {1, 0, 5, 54, 1, 0, 1, 0};\n\nfor(int i = 0; i < 8; i += 2){\n try {\n myList... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74586794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19808007/"
] |
74,586,815 | <p>I am having an issue with a fill-in-the-code digital textbook problem. All the code is permanent and cannot be changed, so the problem can only be solved by using the area that states //Write code here.</p>
<p>The problem asks to implement the removeOdd method.</p>
<pre><code>import java.util.Arrays;
public class R... | [
{
"answer_id": 74586783,
"author": "Geoff",
"author_id": 9407148,
"author_profile": "https://Stackoverflow.com/users/9407148",
"pm_score": 1,
"selected": false,
"text": "int[] numsToInsert = new int[] {1, 0, 5, 54, 1, 0, 1, 0};\n\nfor(int i = 0; i < 8; i += 2){\n try {\n myList... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74586815",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20610572/"
] |
74,586,816 | <p>How to get specific word from string array ?</p>
<pre><code>let array= [
'age 19 - Donna',
'age 20 - James'
];
let getNumber = [] //19 and 20
let getName= [] // Donna and James
for(let i = 0; i < array.length; i++){
getNumber[i] = text[i].split(" ", 2)[1];
getName[i] = text[i].split(","... | [
{
"answer_id": 74586783,
"author": "Geoff",
"author_id": 9407148,
"author_profile": "https://Stackoverflow.com/users/9407148",
"pm_score": 1,
"selected": false,
"text": "int[] numsToInsert = new int[] {1, 0, 5, 54, 1, 0, 1, 0};\n\nfor(int i = 0; i < 8; i += 2){\n try {\n myList... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74586816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20577523/"
] |
74,586,825 | <p>Here's the script I'm using to find all the matching rows from <code>mSheet</code> with the values of <code>searchText</code> and insert <code>value1</code> in all the matching rows in column(B) and that is working really good.<br />
So what I'm trying to do is also insert the <code>value</code> from <code>value2</c... | [
{
"answer_id": 74586912,
"author": "Martín",
"author_id": 20363318,
"author_profile": "https://Stackoverflow.com/users/20363318",
"pm_score": 2,
"selected": false,
"text": " var rangeList2 = rangeList.map((n) => n.replace('B','M'))\n sheet.getRangeList(rangeList2).setValue(value2);\n"
... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74586825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6244713/"
] |
74,586,850 | <p>what I want to do is get network data by firebase AddSnapshotListener, store it in room database and get data from room database</p>
<p>so what I done is down here...</p>
<pre><code>// in dataSource
fun getNetworkData(id : String) = callbackFlow<Data> {
....
streamingApi.get{
trySend(it)
}
... | [
{
"answer_id": 74586912,
"author": "Martín",
"author_id": 20363318,
"author_profile": "https://Stackoverflow.com/users/20363318",
"pm_score": 2,
"selected": false,
"text": " var rangeList2 = rangeList.map((n) => n.replace('B','M'))\n sheet.getRangeList(rangeList2).setValue(value2);\n"
... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74586850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16266635/"
] |
74,586,859 | <p>I'm looking for a method that would allow me to wait for the network idle after clicking a button or some action.
there is a way to wait for the network idle after clicking?
<code>page.locator("text=Click").click() //some method that wait network is idle after clicking the button</code></p>
<p>I tried wait... | [
{
"answer_id": 74586912,
"author": "Martín",
"author_id": 20363318,
"author_profile": "https://Stackoverflow.com/users/20363318",
"pm_score": 2,
"selected": false,
"text": " var rangeList2 = rangeList.map((n) => n.replace('B','M'))\n sheet.getRangeList(rangeList2).setValue(value2);\n"
... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74586859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20610644/"
] |
74,586,876 | <p>Good evening. I have one GameObject, and I need to change its pitch (and do not impact on its yaw and roll). I have a quaternion which stores rotation from which I need to get the needed pitch and set to my game object. But the operation of cast from a Quaternion to Euler angles is not unique (one quaternion can be ... | [
{
"answer_id": 74586912,
"author": "Martín",
"author_id": 20363318,
"author_profile": "https://Stackoverflow.com/users/20363318",
"pm_score": 2,
"selected": false,
"text": " var rangeList2 = rangeList.map((n) => n.replace('B','M'))\n sheet.getRangeList(rangeList2).setValue(value2);\n"
... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74586876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17752003/"
] |
74,586,878 | <p>I would like to exchange all NA values in the columns for the respective medians</p>
<pre><code>id <- c(1,2,3,4,5,6,7,8,9,10)
varA <- c(15,10,8,19,7,5,NA,11,12,NA)
varB <- c(NA,1,2,3,4,3,3,2,1,NA)
df <- data.frame(id, varA,varB)
median(df$varA, na.rm=TRUE)
median(df$varB, na.rm=TRUE)
df1 <- df
# Co... | [
{
"answer_id": 74586897,
"author": "Giulio Centorame",
"author_id": 10798015,
"author_profile": "https://Stackoverflow.com/users/10798015",
"pm_score": 1,
"selected": false,
"text": "dplyr tidyr library(dplyr)\nlibrary(tidyr)\n\ndf %>% \nmutate(varA = replace_na(varA, median(varA, na.rm ... | 2022/11/27 | [
"https://Stackoverflow.com/questions/74586878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17564379/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.