qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,427,437 | <p>The dataframe contains date column, revenue column(for specific date) and the name of the day.
<a href="https://i.stack.imgur.com/RSD4M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RSD4M.png" alt="enter image description here" /></a></p>
<p>This is the code for creating the df:</p>
<pre><code>p... | [
{
"answer_id": 74429173,
"author": "haggi krey",
"author_id": 9142615,
"author_profile": "https://Stackoverflow.com/users/9142615",
"pm_score": 2,
"selected": false,
"text": "pm.refresh()\n"
}
] | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18756733/"
] |
74,427,452 | <p>I'm new to google sheet. I have a column(E) with the date and another with a session(F), I want to merge them into one column with each date & different session just like the first few rows in column C.</p>
<p><a href="https://i.stack.imgur.com/K2QrH.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur... | [
{
"answer_id": 74429173,
"author": "haggi krey",
"author_id": 9142615,
"author_profile": "https://Stackoverflow.com/users/9142615",
"pm_score": 2,
"selected": false,
"text": "pm.refresh()\n"
}
] | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20497626/"
] |
74,427,492 | <p><a href="https://i.stack.imgur.com/t6OM9.png" rel="nofollow noreferrer">image here</a></p>
<pre><code><Accordion>
<Accordion.Item eventKey="0">
<Card style={{ margin: 10 }}>
<Card.Header style={{ display: "flex" }}>
<s... | [
{
"answer_id": 74427528,
"author": "ANISH SAJI KUMAR",
"author_id": 12309235,
"author_profile": "https://Stackoverflow.com/users/12309235",
"pm_score": 0,
"selected": false,
"text": ".accordion-header {\n border: none;\n}\n"
},
{
"answer_id": 74427675,
"author": "Kamran D... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20193086/"
] |
74,427,502 | <p>I would like to take the json output of window values from a program. The output of it currently is:</p>
<pre><code>[
3067,
584
]
[
764,
487
]
</code></pre>
<p>But I need it to be formatted like: <code>3067,584 764x487</code>. How would I go about doing this using jq or other commands?</p>
<p>I'm not very ex... | [
{
"answer_id": 74427528,
"author": "ANISH SAJI KUMAR",
"author_id": 12309235,
"author_profile": "https://Stackoverflow.com/users/12309235",
"pm_score": 0,
"selected": false,
"text": ".accordion-header {\n border: none;\n}\n"
},
{
"answer_id": 74427675,
"author": "Kamran D... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20497688/"
] |
74,427,504 | <p>Just like to ask whether is there any character limit when fluentbit send logs to splunk? How can I increase the character limit via the Splunk Web UI?</p>
| [
{
"answer_id": 74435880,
"author": "RichG",
"author_id": 2227420,
"author_profile": "https://Stackoverflow.com/users/2227420",
"pm_score": 2,
"selected": false,
"text": "TRUNCATE"
},
{
"answer_id": 74469265,
"author": "xxestter",
"author_id": 3400076,
"author_profile"... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3400076/"
] |
74,427,520 | <p>I'm doing a GET fetch request to my DB on page load and wish to display only the True items.</p>
<p>The response json object has 32 items returned from the API.
They are all key value pairs (with boolean values) eg:</p>
<pre><code>{
Apple: false
Banana: false
Orange: true
Kiwi: true
}
</code></pre>
<p>I need to find... | [
{
"answer_id": 74427636,
"author": "Ping",
"author_id": 20288037,
"author_profile": "https://Stackoverflow.com/users/20288037",
"pm_score": 0,
"selected": false,
"text": "const obj = {\n Apple: false,\n Banana: false,\n Orange: true,\n Kiwi: true\n }\n\nconst results = [];\n\nfor (co... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19380514/"
] |
74,427,563 | <p>MySQL will accept NULL to an <code>auto increment</code> column and insert the last value. So you could presumably use</p>
<p>(Using the code from <a href="https://stackoverflow.com/a/46805508/631764">this SO answer</a>, where <code>st</code> is a <code>preparedStatement</code>)</p>
<p><code>st.setNull(1, java.sql.T... | [
{
"answer_id": 74428025,
"author": "a_horse_with_no_name",
"author_id": 330315,
"author_profile": "https://Stackoverflow.com/users/330315",
"pm_score": 2,
"selected": false,
"text": "INSERT INTO serial_table DEFAULT VALUES\n"
},
{
"answer_id": 74432646,
"author": "Dima",
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/631764/"
] |
74,427,580 | <p>I have to take first list element and check if that substring is present in the other list element.
if the substring is present then append that string to another list.</p>
<p>INPUT
list1 = ["2044","1222"]
list2 = ["I am Raman 2044","I am Raman 2044"x,"I am Raman 2044&quo... | [
{
"answer_id": 74427612,
"author": "xlmaster",
"author_id": 17917443,
"author_profile": "https://Stackoverflow.com/users/17917443",
"pm_score": 1,
"selected": false,
"text": " a in list[] for i in range(len(list1)):\n if list1[i] in list2:\n list2.append(list1[i])\n"
},
{
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427580",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20497750/"
] |
74,427,605 | <p>When I'm trying to compile program with threads, C2672 error ('invoke': no matching overloaded function found) is occuring.</p>
<p>My code:</p>
<pre><code>#include <iostream>
#include <thread>
// the procedure for array 2 filling
void bar(int sum2)
{
for (int i = 100000; i < 200000; i++) {
... | [
{
"answer_id": 74427612,
"author": "xlmaster",
"author_id": 17917443,
"author_profile": "https://Stackoverflow.com/users/17917443",
"pm_score": 1,
"selected": false,
"text": " a in list[] for i in range(len(list1)):\n if list1[i] in list2:\n list2.append(list1[i])\n"
},
{
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20497483/"
] |
74,427,628 | <p>Can someone help me with a query on how to remove strings from an array in mongodb only if the string has a substring "abc.com"</p>
<p>Current result in a collection :</p>
<pre><code>{
_id: '1',
users: ['1@abc.com', '2@abc.com', '3@def.com']
}
{
_id: '2',
users: ['1@abc.com', '2@def.com', '3@def.com']
}
... | [
{
"answer_id": 74427612,
"author": "xlmaster",
"author_id": 17917443,
"author_profile": "https://Stackoverflow.com/users/17917443",
"pm_score": 1,
"selected": false,
"text": " a in list[] for i in range(len(list1)):\n if list1[i] in list2:\n list2.append(list1[i])\n"
},
{
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14361300/"
] |
74,427,661 | <p>Here I'm developing a service which is going to receive a SOAP request Message and then convert it into JSON. After that, I want to invoke a REST API with the converted JSON and then I want to receive the JSON response back from that REST API and finally I want to convert that JSON response into SOAP Response messag... | [
{
"answer_id": 74427612,
"author": "xlmaster",
"author_id": 17917443,
"author_profile": "https://Stackoverflow.com/users/17917443",
"pm_score": 1,
"selected": false,
"text": " a in list[] for i in range(len(list1)):\n if list1[i] in list2:\n list2.append(list1[i])\n"
},
{
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19369457/"
] |
74,427,682 | <p>I have 2x RDS single instances (MySQL) in the same region.</p>
<p>The goal is to copy (A) RDS to (B) RDS on nightly basis.</p>
<p>Is there any way to have this configuration auto sync between 2 RDS instances?</p>
| [
{
"answer_id": 74427612,
"author": "xlmaster",
"author_id": 17917443,
"author_profile": "https://Stackoverflow.com/users/17917443",
"pm_score": 1,
"selected": false,
"text": " a in list[] for i in range(len(list1)):\n if list1[i] in list2:\n list2.append(list1[i])\n"
},
{
... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12122963/"
] |
74,427,701 | <p>I use <code>EditForm</code> in the Blazor Server. The <code>EditForm</code> has a property named <code>OnValidSubmit</code>.<br />
Suppose that I have used the <code>Required</code> attribute on a field in the model such as:</p>
<pre><code> [Required]
public string Name { get; set; }
</code></pre>
<p>If the user di... | [
{
"answer_id": 74428849,
"author": "MrC aka Shaun Curtis",
"author_id": 13065781,
"author_profile": "https://Stackoverflow.com/users/13065781",
"pm_score": 2,
"selected": true,
"text": "OnSubmit EditForm EditForm private async Task HandleSubmitAsync()\n {\n Debug.Assert(_ed... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4444757/"
] |
74,427,705 | <p>I want to render some JSX based on a condition, but it is not happenning. Below is my code -</p>
<pre><code>chkAccess().then((result) => {
console.log(result)
if(result) {
alert("Access Granted")
return (
<div className='login_container p-5 m-5 bg-dark'>
... | [
{
"answer_id": 74428849,
"author": "MrC aka Shaun Curtis",
"author_id": 13065781,
"author_profile": "https://Stackoverflow.com/users/13065781",
"pm_score": 2,
"selected": true,
"text": "OnSubmit EditForm EditForm private async Task HandleSubmitAsync()\n {\n Debug.Assert(_ed... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13393219/"
] |
74,427,747 | <p>I am trying to convert a CSV into a dataframe and also updating column values in the CSV. But the issue I am facing is I am not getting rid of the index column as a result I am getting an extra index column without name in the console as follows.</p>
<pre><code> fsym_id factset_entity_id ... is_substituted is_cu... | [
{
"answer_id": 74428849,
"author": "MrC aka Shaun Curtis",
"author_id": 13065781,
"author_profile": "https://Stackoverflow.com/users/13065781",
"pm_score": 2,
"selected": true,
"text": "OnSubmit EditForm EditForm private async Task HandleSubmitAsync()\n {\n Debug.Assert(_ed... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20262433/"
] |
74,427,807 | <p>I have a search input tag, and I wanted to set a placeholder. In place holder I need to keep a magnify icon, how to do it in jquery? below is the code I tried</p>
<pre class="lang-js prettyprint-override"><code>$('.gridjs-head .gridjs-search .gridjs-search-input').attr("placeholder", "<i class='mdi... | [
{
"answer_id": 74428849,
"author": "MrC aka Shaun Curtis",
"author_id": 13065781,
"author_profile": "https://Stackoverflow.com/users/13065781",
"pm_score": 2,
"selected": true,
"text": "OnSubmit EditForm EditForm private async Task HandleSubmitAsync()\n {\n Debug.Assert(_ed... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13431295/"
] |
74,427,834 | <pre class="lang-lisp prettyprint-override"><code>(equal? '(1 2) (cons 1 2)) ; #f
</code></pre>
<p>Why exactly are these two not equivalent considering lists are just that — <a href="https://gigamonkeys.com/book/they-called-it-lisp-for-a-reason-list-processing.html" rel="nofollow noreferrer">illusion built on top of co... | [
{
"answer_id": 74428307,
"author": "coredump",
"author_id": 124319,
"author_profile": "https://Stackoverflow.com/users/124319",
"pm_score": 2,
"selected": false,
"text": "'(1 2)\n (cons 1 (cons 2 nil))\n (cons 1 2)\n '(1 . 2)\n"
},
{
"answer_id": 74428309,
"author": "Barmar",... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10363738/"
] |
74,427,847 | <p><a href="https://i.stack.imgur.com/SI9Wl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SI9Wl.png" alt="enter image description here" /></a></p>
<p>why is this error there in the terminal?</p>
<p>i was trying to run a simple file after saving it yet it wasnt able to locate the file in the directo... | [
{
"answer_id": 74428307,
"author": "coredump",
"author_id": 124319,
"author_profile": "https://Stackoverflow.com/users/124319",
"pm_score": 2,
"selected": false,
"text": "'(1 2)\n (cons 1 (cons 2 nil))\n (cons 1 2)\n '(1 . 2)\n"
},
{
"answer_id": 74428309,
"author": "Barmar",... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15211424/"
] |
74,427,881 | <p>Hi I want to know how can i do this query in Laravel 8 , I tried adding the join clause but not work as expected, i need join clause? Or maybe there is another form to do it. I search others examples but i don´t see anythat help me. The query is the next:</p>
<pre><code>DB::table('escandallo_p as esc')
->sele... | [
{
"answer_id": 74428229,
"author": "Anuj Shrestha",
"author_id": 8630903,
"author_profile": "https://Stackoverflow.com/users/8630903",
"pm_score": 1,
"selected": false,
"text": "DB::table('users')\n ->join('contacts', function ($join) {\n $join->on('users.id', '=', 'contacts.us... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6260297/"
] |
74,427,883 | <p>I have a column that contains either letters or numbers. I want to add a column identifying whether each cell contains a letter or a number. The problem is that there are thousands of records in this particular database.</p>
<p>I tried the following syntax:</p>
<p><code>= Table.AddColumn(Source, "Column2",... | [
{
"answer_id": 74428368,
"author": "Peter",
"author_id": 7108589,
"author_profile": "https://Stackoverflow.com/users/7108589",
"pm_score": 1,
"selected": false,
"text": "= Table.AddColumn(Source, \"Column2\", each if List.Contains({\"0\"..\"9\"}, Text.Start([Column1], 1)) then \"Numbers\... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20172589/"
] |
74,427,904 | <p>I have string which is as follows below</p>
<pre><code>stg = 'AVBFGHJ'
</code></pre>
<p>I want the adjacent letter to be printed as expected below</p>
<pre><code>AV
VB
BF
FG
GH
HJ
J None
</code></pre>
<p>I tried below code but throws me error like Index out of Range</p>
<p><strong>My code :</strong></p>
<pre><... | [
{
"answer_id": 74428368,
"author": "Peter",
"author_id": 7108589,
"author_profile": "https://Stackoverflow.com/users/7108589",
"pm_score": 1,
"selected": false,
"text": "= Table.AddColumn(Source, \"Column2\", each if List.Contains({\"0\"..\"9\"}, Text.Start([Column1], 1)) then \"Numbers\... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20497816/"
] |
74,427,981 | <p>I have two tables. Let's call it as t1 and t2. Below is the t1 table</p>
<pre><code>t1(product_number, date, sales_before)
t2(product_number, date, sales_after)
</code></pre>
<p>t1 table contains 247 rows and t2 contains 264 rows. I'm trying to match the rows on product_number and date and did inner join.</p>
<pre><... | [
{
"answer_id": 74428182,
"author": "Mark",
"author_id": 18158837,
"author_profile": "https://Stackoverflow.com/users/18158837",
"pm_score": 0,
"selected": false,
"text": "select \n coalesce(t1.product_number, t2.product_number), \n coalesce(t2.date, t2.date), \n t1.sales_before, \n t... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74427981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18158837/"
] |
74,428,016 | <p>Are there any real computaional problems which can be solved by time complexity of log(n) * log(n)?</p>
<ul>
<li><p>This is different from finding smallest element in sorted matrix, which is log(n)+log(n) or 2log(n).</p>
</li>
<li><p>There are can be some kind of pattern printing algorithm which can be made as ϴ(log... | [
{
"answer_id": 74428182,
"author": "Mark",
"author_id": 18158837,
"author_profile": "https://Stackoverflow.com/users/18158837",
"pm_score": 0,
"selected": false,
"text": "select \n coalesce(t1.product_number, t2.product_number), \n coalesce(t2.date, t2.date), \n t1.sales_before, \n t... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428016",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19365435/"
] |
74,428,021 | <p>here is my app.js</p>
<pre><code><Router>
<Header title="My Todos List" />
<Routes>
<Route path="/about" element={<About />} />
<Route path="/" render={() => {
return (
<>
... | [
{
"answer_id": 74428182,
"author": "Mark",
"author_id": 18158837,
"author_profile": "https://Stackoverflow.com/users/18158837",
"pm_score": 0,
"selected": false,
"text": "select \n coalesce(t1.product_number, t2.product_number), \n coalesce(t2.date, t2.date), \n t1.sales_before, \n t... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20498097/"
] |
74,428,034 | <p>I have a list of Map of Strings like this</p>
<pre><code>List<Map<String, String>> dataListMap = new ArrayList<>();
Map<String, String> dataMap = new HashMap<String, String>() {
{
put("Charged fare", "3");
put("Trip ID", "1");
... | [
{
"answer_id": 74428182,
"author": "Mark",
"author_id": 18158837,
"author_profile": "https://Stackoverflow.com/users/18158837",
"pm_score": 0,
"selected": false,
"text": "select \n coalesce(t1.product_number, t2.product_number), \n coalesce(t2.date, t2.date), \n t1.sales_before, \n t... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428034",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19499442/"
] |
74,428,041 | <p>I want my image resize relatively from parent <code>Containerwidget</code> and defined <code>scale: 0.8,//here</code> in <code>AssetImage()</code> but it doesn't work ? How Can I fix this ?</p>
<pre><code> Container(
margin: const EdgeInsets.only(top: 30),
... | [
{
"answer_id": 74428182,
"author": "Mark",
"author_id": 18158837,
"author_profile": "https://Stackoverflow.com/users/18158837",
"pm_score": 0,
"selected": false,
"text": "select \n coalesce(t1.product_number, t2.product_number), \n coalesce(t2.date, t2.date), \n t1.sales_before, \n t... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6843543/"
] |
74,428,043 | <p>I am unable to register an user from my app written in Flutter. I am also unable to get some form for error message. I can debug and see my createUser function is called and the arguments looks good. Nothing happens after I call "FirebaseAuth.instance.createUserWithEmailAndPassword". No exception and nothi... | [
{
"answer_id": 74428182,
"author": "Mark",
"author_id": 18158837,
"author_profile": "https://Stackoverflow.com/users/18158837",
"pm_score": 0,
"selected": false,
"text": "select \n coalesce(t1.product_number, t2.product_number), \n coalesce(t2.date, t2.date), \n t1.sales_before, \n t... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1348837/"
] |
74,428,048 | <p>I have a react application where I pass state via react router and access the state using location in the target component/page. It works perfect, however when I close the tab and paste the exact same url to that page in another tab it crashes and says <code>Cannot read properties of null (reading '1')</code>. This ... | [
{
"answer_id": 74428182,
"author": "Mark",
"author_id": 18158837,
"author_profile": "https://Stackoverflow.com/users/18158837",
"pm_score": 0,
"selected": false,
"text": "select \n coalesce(t1.product_number, t2.product_number), \n coalesce(t2.date, t2.date), \n t1.sales_before, \n t... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428048",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20475046/"
] |
74,428,065 | <p>I just upgraded to version 4.5.0 of WebDriver, using JMeter 5.5, and can't perform any actions.</p>
<p>Based on the official docs: <code>https://jmeter-plugins.org/wiki/WebDriverSampler/</code>
should be using like:</p>
<pre><code>var pkg = JavaImporter(org.openqa.selenium) but I faced exception.
</code></pre>
<p>Is... | [
{
"answer_id": 74428512,
"author": "Dmitri T",
"author_id": 2897748,
"author_profile": "https://Stackoverflow.com/users/2897748",
"pm_score": 2,
"selected": true,
"text": "groovy JavaImporter javascript import var def"
},
{
"answer_id": 74429559,
"author": "vlatko606",
"a... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5210482/"
] |
74,428,084 | <p>in the reactjs I am not understand the below code please help me in this</p>
<pre><code>...todo, complete: !todo.complete
</code></pre>
<p>according to me first ...todo is the spread array, and after comma the condition has been implemented on it.</p>
| [
{
"answer_id": 74428255,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 0,
"selected": false,
"text": "!false -> true\n!true -> false\n const todo = {\n name: 'Something to do',\n complete: false\n}\n\nconst newTodo = ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12927552/"
] |
74,428,087 | <p>In Javascript I tried to add a function like this for checking if the entered password contains any symbol (special) character such as <code>!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?</code>.</p>
<p>So I did this:</p>
<pre><code> function checkpasswordlength(){
var format1 = /^[!@#$%^&... | [
{
"answer_id": 74428255,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 0,
"selected": false,
"text": "!false -> true\n!true -> false\n const todo = {\n name: 'Something to do',\n complete: false\n}\n\nconst newTodo = ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428087",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17730693/"
] |
74,428,156 | <p>I want to show the drop-down links in a particular order. Right now the order is -</p>
<ul>
<li>Link 1</li>
<li>Link 3</li>
<li>Link 2</li>
</ul>
<p>HTML Code -</p>
<pre><code><ul class="navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle"... | [
{
"answer_id": 74428343,
"author": "Vivekanand Vishvkarma",
"author_id": 19443694,
"author_profile": "https://Stackoverflow.com/users/19443694",
"pm_score": 1,
"selected": true,
"text": "if (role == \"admin\") {\n $(\".dropdown-menu :first\").after('<li>'+\n '<a class=\"dropdown-item\"... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428156",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15439038/"
] |
74,428,166 | <p>I have this pretty straightforward formula in my <a href="https://docs.google.com/spreadsheets/d/1vMbnxv-Oz5hzEowZvjrc1KVWwI1q0N03cs-z9Zs5lBE/edit#gid=0" rel="nofollow noreferrer">Spreadsheet</a>:</p>
<blockquote>
<p>={"Number of purchases"; SUM(C3:C) ; ARRAYFORMULA(if(isblank(A3:A),,sumif('Raw Data'!A:A,A... | [
{
"answer_id": 74430994,
"author": "The God of Biscuits",
"author_id": 18645332,
"author_profile": "https://Stackoverflow.com/users/18645332",
"pm_score": 1,
"selected": false,
"text": "={\"Number of purchases\"&CHAR(10)&SUM(C2:C);...}\n ={\"Header\"&CHAR(10)&SUM(array_expression);array_... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18778887/"
] |
74,428,175 | <p>I have a JSON array where I need to get the CustomerId value from property where the CustomerId property exits for that section, I'm trying below to loop through the categories and skip the one that has no CustomerId property down its properties tree</p>
<pre><code>var customerId = "";
foreach (var cat... | [
{
"answer_id": 74428271,
"author": "mikovacs",
"author_id": 18656819,
"author_profile": "https://Stackoverflow.com/users/18656819",
"pm_score": 0,
"selected": false,
"text": "List<T> arrayItems = jsonBuidler?[\"categories\"].ReadFromJson<List<T>>();\nList<string> customerIds = arrayItems... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/272414/"
] |
74,428,306 | <p>I am using Docker on my Windows machine and i want to copy a directory to another directory in my Windows host. I have a Maven project that does this on Windows using org.apache.commons.FileUtils library and it works just fine. I want to run this Maven project in my Docker container so that i can move files on my Wi... | [
{
"answer_id": 74428271,
"author": "mikovacs",
"author_id": 18656819,
"author_profile": "https://Stackoverflow.com/users/18656819",
"pm_score": 0,
"selected": false,
"text": "List<T> arrayItems = jsonBuidler?[\"categories\"].ReadFromJson<List<T>>();\nList<string> customerIds = arrayItems... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19004150/"
] |
74,428,310 | <p>I've created Procedure in order to insert new employees, but the problem is, it is not inserting. I need to pass the attributes values as parameters. This is my code:</p>
<pre><code>CREATE OR REPLACE PROCEDURE p_new(p_empid IN employees.employee_id%type,
p_fname IN employ... | [
{
"answer_id": 74428271,
"author": "mikovacs",
"author_id": 18656819,
"author_profile": "https://Stackoverflow.com/users/18656819",
"pm_score": 0,
"selected": false,
"text": "List<T> arrayItems = jsonBuidler?[\"categories\"].ReadFromJson<List<T>>();\nList<string> customerIds = arrayItems... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20498206/"
] |
74,428,347 | <p>I want to align diffrent items within one element! I tried to give the Element an flexbox and adjust the items themselv inside! but it don't responde properly ! The List Items should be aligned in a row, left-links on the left side and right-links on the right side! Logo should be in the center!</p>
<pre><code>
<... | [
{
"answer_id": 74428271,
"author": "mikovacs",
"author_id": 18656819,
"author_profile": "https://Stackoverflow.com/users/18656819",
"pm_score": 0,
"selected": false,
"text": "List<T> arrayItems = jsonBuidler?[\"categories\"].ReadFromJson<List<T>>();\nList<string> customerIds = arrayItems... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428347",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20308702/"
] |
74,428,413 | <p>I'm learning multi-head attention with <a href="https://towardsdatascience.com/transformers-explained-visually-part-3-multi-head-attention-deep-dive-1c1ff1024853" rel="nofollow noreferrer">this article</a>.
As the writer claimed, the structure of MHA (by the original paper) is as follows:</p>
<p><a href="https://i.s... | [
{
"answer_id": 74430271,
"author": "V.M",
"author_id": 8143158,
"author_profile": "https://Stackoverflow.com/users/8143158",
"pm_score": 3,
"selected": true,
"text": "layer = tf.keras.layers.MultiHeadAttention(num_heads = 2, key_dim = 4, use_bias=False) #Set use_bias=False for simplicity... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2923419/"
] |
74,428,449 | <p>I'm trying to add this feature called booking for others. If the user want to order 5 tour package, user have to input 4 emails of that user friends, to notify them that they got the tour package by this user. The idea i had is to store the emails in array. When i tried to create the front-end i got error <code>coun... | [
{
"answer_id": 74430271,
"author": "V.M",
"author_id": 8143158,
"author_profile": "https://Stackoverflow.com/users/8143158",
"pm_score": 3,
"selected": true,
"text": "layer = tf.keras.layers.MultiHeadAttention(num_heads = 2, key_dim = 4, use_bias=False) #Set use_bias=False for simplicity... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18460864/"
] |
74,428,459 | <p>I’m creating demonstration code for a presentation.</p>
<pre><code>var fruitList = ["apple", "banana", "cherry", "durian", "elderberry", "fig", "grape", "huckleberry", "incaberry", "juniper", "kapok", "... | [
{
"answer_id": 74430271,
"author": "V.M",
"author_id": 8143158,
"author_profile": "https://Stackoverflow.com/users/8143158",
"pm_score": 3,
"selected": true,
"text": "layer = tf.keras.layers.MultiHeadAttention(num_heads = 2, key_dim = 4, use_bias=False) #Set use_bias=False for simplicity... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20498405/"
] |
74,428,469 | <p>Hi currently in making new model I have some memory struggling.
I am doing summation between outputs of previous layers.
But it takes so much computation because it keeps allocating new memories I think.</p>
<p>print(max2.shape) = (None,8,8,96)</p>
<pre><code>...
c6 = layers.DepthwiseConv2D(kernel_size = (3,3), dep... | [
{
"answer_id": 74430271,
"author": "V.M",
"author_id": 8143158,
"author_profile": "https://Stackoverflow.com/users/8143158",
"pm_score": 3,
"selected": true,
"text": "layer = tf.keras.layers.MultiHeadAttention(num_heads = 2, key_dim = 4, use_bias=False) #Set use_bias=False for simplicity... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10535529/"
] |
74,428,472 | <p>I am trying to make a post request in React to the server</p>
<p>my React app is running at port 3000 & express app is running at port 9000</p>
<p>React:</p>
<pre><code> axios.post("/").then((response)=>{
console.log(response.data)
}).catch((e)=>{
console.log(e.response.data)
this.... | [
{
"answer_id": 74430271,
"author": "V.M",
"author_id": 8143158,
"author_profile": "https://Stackoverflow.com/users/8143158",
"pm_score": 3,
"selected": true,
"text": "layer = tf.keras.layers.MultiHeadAttention(num_heads = 2, key_dim = 4, use_bias=False) #Set use_bias=False for simplicity... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20312274/"
] |
74,428,475 | <p>I'm working with <code>Vue 3</code> and <code>Bootstrap 5</code>.</p>
<p>I have a <code>button</code> and two <code>inputs</code>. When I click the <code>button</code> I want to have a <code>"milky" overlay</code> like following:</p>
<p><a href="https://i.stack.imgur.com/K21k8.png" rel="nofollow noreferrer... | [
{
"answer_id": 74428557,
"author": "Evgeni Dikerman",
"author_id": 1761692,
"author_profile": "https://Stackoverflow.com/users/1761692",
"pm_score": 0,
"selected": false,
"text": "data overlayMilky this.milkyOverlay = true milkyOverlay"
},
{
"answer_id": 74428598,
"author": "... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16365685/"
] |
74,428,545 | <p>I'm writing my own <code>UICollectionViewLayout</code> subclass to have full control over the layout and arrangement of my collection view cells. When computing the item sizes, I want the layout to start with the cells' fitting sizes, i.e. I want the cells to size themselves to fit their content initially and then m... | [
{
"answer_id": 74463471,
"author": "DonMag",
"author_id": 6257435,
"author_profile": "https://Stackoverflow.com/users/6257435",
"pm_score": 1,
"selected": false,
"text": "cellForItemAt cell.labelOne.text = ...\ncell.labelTwo.text = ...\ncell.imageView.image = ...\netc. \n func collection... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2062785/"
] |
74,428,563 | <p>I have a <code>Text</code> tag in <code>expo/react-native</code> which i use on a screen to show live time using JavaScript <code>new Date()</code> object. Its giving me 24 hour format even when i set <code>"en-US"</code> and <code>hour12: true</code> i have tried everything but it doesn't seem to work.</p... | [
{
"answer_id": 74428935,
"author": "Vu Phung",
"author_id": 12040727,
"author_profile": "https://Stackoverflow.com/users/12040727",
"pm_score": 0,
"selected": false,
"text": "import moment from 'moment';\n\nconst time = new Date();\nconsole.log(moment(time).format(\"hh:mm:ss\"));\n// if ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9663776/"
] |
74,428,567 | <pre><code>
import pandas as pd
data1 = [['xx'], ['4']]
data2 = [['4', 'x0'], ['aa', 'bb'], ['cc', 'dd']]
df1 = pd.DataFrame(data=data1, columns=["isin"])
print(df1)
df2 = pd.DataFrame(data=data2, columns=["isin", "data"])
print(df2)
df1.loc[df1['isin'] == df2['isin'], 'data'] = df2['... | [
{
"answer_id": 74428935,
"author": "Vu Phung",
"author_id": 12040727,
"author_profile": "https://Stackoverflow.com/users/12040727",
"pm_score": 0,
"selected": false,
"text": "import moment from 'moment';\n\nconst time = new Date();\nconsole.log(moment(time).format(\"hh:mm:ss\"));\n// if ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428567",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20214082/"
] |
74,428,670 | <p><strong>Approach #1:</strong> Recursion</p>
<pre><code>// Recursion
suspend fun findAndHandleFile(fileName: String, timeoutMs: Long, startTiming: Long, intervalMs: Long = 3000) {
val file = findWithFileName(fileName)
if (file != null) {
handleFile(file)
} else {
val passedTime = System.cu... | [
{
"answer_id": 74429114,
"author": "Dan Baruch",
"author_id": 8688810,
"author_profile": "https://Stackoverflow.com/users/8688810",
"pm_score": 0,
"selected": false,
"text": "int total=1;\nfor(int i=1; i<num;i++)\n total*=i;\n private int recursive(int n)\n if(n == 0)\n r... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17278086/"
] |
74,428,674 | <p>I am still pretty new to iOS development. I have a (very?) large view that is causing a memory error. My <code>body</code> var looks something like this:</p>
<pre><code>var body: some View {
ZStack {
Color(...)
Rectangle()
ScrollView {
VStack {
... | [
{
"answer_id": 74430111,
"author": "Iftikhar Hussain Orakzai",
"author_id": 14151662,
"author_profile": "https://Stackoverflow.com/users/14151662",
"pm_score": 0,
"selected": false,
"text": "var body: some View {\n ZStack {\n Color(...) \n Rectangl... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19224040/"
] |
74,428,712 | <p>I am getting an array like below after doing the matches.
[ '10 am', '5 pm', 'by appointment only' ]
I would like to append text <strong>to</strong> only for time and return in this format.</p>
<p>"10 am to 5 pm by appointment only"</p>
<p>But when I join like below</p>
<pre><code>[ '10 am', '5 pm', 'by ap... | [
{
"answer_id": 74428770,
"author": "ryuhojin",
"author_id": 20496118,
"author_profile": "https://Stackoverflow.com/users/20496118",
"pm_score": 2,
"selected": false,
"text": "const [start,end,describe] = [ '10 am', '5 pm', 'by appointment only' ];\nconst finalText = `${start} to ${end} $... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428712",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/662503/"
] |
74,428,716 | <p>I am new to Pandas and thus I wanted to know if I can convert my text file with a particular format into a Pandas data frame. Below is my text file format</p>
<pre><code>"FACT"|"FSYM"|"POSITION"|"INDIRECT_OPTIONS"|"REPORT"|"SOURCE"|"COMMENTS"|
&qu... | [
{
"answer_id": 74428770,
"author": "ryuhojin",
"author_id": 20496118,
"author_profile": "https://Stackoverflow.com/users/20496118",
"pm_score": 2,
"selected": false,
"text": "const [start,end,describe] = [ '10 am', '5 pm', 'by appointment only' ];\nconst finalText = `${start} to ${end} $... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428716",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20262433/"
] |
74,428,724 | <p>There is a task, to write calculator, which recieves strings cosisting of:</p>
<ul>
<li>chars '0'-'9',</li>
<li>brackest '(', ')',</li>
<li>chars '+', '-', '*', '/', '^',</li>
</ul>
<p>and performing following ops:</p>
<ul>
<li>addition</li>
<li>substraction</li>
<li>multiplication</li>
<li>integer division</li>
<li... | [
{
"answer_id": 74428894,
"author": "mch",
"author_id": 3684343,
"author_profile": "https://Stackoverflow.com/users/3684343",
"pm_score": 1,
"selected": false,
"text": "power() mult_div() power() int mult_div() {\n int a=power();\n while (curlex == '^') \n {\n getlex();\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9801880/"
] |
74,428,727 | <p>I have a game in which the character can only move horizontally and vertically, not diagonally.</p>
<p>I have tried to implement this with this code, which should check if the player is pressing down/up or left/right:</p>
<pre class="lang-cs prettyprint-override"><code>if (Input.GetKey("down"))
{
moveH... | [
{
"answer_id": 74428894,
"author": "mch",
"author_id": 3684343,
"author_profile": "https://Stackoverflow.com/users/3684343",
"pm_score": 1,
"selected": false,
"text": "power() mult_div() power() int mult_div() {\n int a=power();\n while (curlex == '^') \n {\n getlex();\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19828325/"
] |
74,428,733 | <p>Need to move data from one dynamodb table to another table after doing a transformation</p>
<p>What is the best approach to do that</p>
<p>Do I need to write a script to read selective data from one table and put in another table</p>
<p>or Do I need to follow CSV export</p>
| [
{
"answer_id": 74428894,
"author": "mch",
"author_id": 3684343,
"author_profile": "https://Stackoverflow.com/users/3684343",
"pm_score": 1,
"selected": false,
"text": "power() mult_div() power() int mult_div() {\n int a=power();\n while (curlex == '^') \n {\n getlex();\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5679225/"
] |
74,428,760 | <p>Hi I am getting an error that says "each child in a list should have a unique "key" prop. When I check the Components using React Developer Tools I don't see any duplicates - what am I doing wrong?</p>
<pre><code> return (
<>
<Modal
isOpen={modalIsOpen}
onRequestClose... | [
{
"answer_id": 74428842,
"author": "Priyen Mehta",
"author_id": 19431815,
"author_profile": "https://Stackoverflow.com/users/19431815",
"pm_score": 2,
"selected": false,
"text": " <div key={note.id}>\n <Note\n key={note.id}\n id={note.id}\n title={note.title}\n te... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4975795/"
] |
74,428,769 | <p>I tried making this navigational bar with click drop-downs which I achieved using a checkbox, however, when I click on the the checkbox, its content drops down like a block element but I want it to sit on-top the image</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false... | [
{
"answer_id": 74428842,
"author": "Priyen Mehta",
"author_id": 19431815,
"author_profile": "https://Stackoverflow.com/users/19431815",
"pm_score": 2,
"selected": false,
"text": " <div key={note.id}>\n <Note\n key={note.id}\n id={note.id}\n title={note.title}\n te... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18835651/"
] |
74,428,789 | <p>I have a class that looks like this</p>
<pre><code>class MyCalss
{
public:
std::unordered_map<std::string, std::unique_ptr<Entity>> getMyMap() const;
private:
std::unordered_map<std::string, std::unique_ptr<Entity>> m_myMap;
}
</code></pre>
<p>In the implementation, I simple return m... | [
{
"answer_id": 74428883,
"author": "Giovanni Cerretani",
"author_id": 3287591,
"author_profile": "https://Stackoverflow.com/users/3287591",
"pm_score": 1,
"selected": false,
"text": "m_myMap std::unique_ptr<Entity> std::unique_ptr m_myMap const std::unordered_map<std::string, std::unique... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1017674/"
] |
74,428,839 | <p>I have a string parameter in my Jenkinsfile which contains a space</p>
<p>parameters {
string(name: 'KW_Issue_resolution', defaultValue: 'Not a Problem', description: 'Marking the issue as Not a problem')
}</p>
<p>I am trying to pass this parameter into a shell script within a stage</p>
<pre><code>stage ('Mark KW is... | [
{
"answer_id": 74428883,
"author": "Giovanni Cerretani",
"author_id": 3287591,
"author_profile": "https://Stackoverflow.com/users/3287591",
"pm_score": 1,
"selected": false,
"text": "m_myMap std::unique_ptr<Entity> std::unique_ptr m_myMap const std::unordered_map<std::string, std::unique... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428839",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5820172/"
] |
74,428,865 | <p>I have a file in which i have to remove the duplicate lines with same string at the last three positions</p>
<p>file.txt contains</p>
<p><code>['aabbccj', 'biukghk', 'hgkfhff', 'hsgfccj', ' jflgsfs', 'fskfyhd', 'bfsbkhd', 'fjlfghk']</code></p>
<p>i want the output as</p>
<p><code>['aabbccj', 'biukghk', 'hgkfh... | [
{
"answer_id": 74428883,
"author": "Giovanni Cerretani",
"author_id": 3287591,
"author_profile": "https://Stackoverflow.com/users/3287591",
"pm_score": 1,
"selected": false,
"text": "m_myMap std::unique_ptr<Entity> std::unique_ptr m_myMap const std::unordered_map<std::string, std::unique... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12964403/"
] |
74,428,866 | <ol>
<li><p>I am making a travel advisor app. here i have made a getPlacesData function in index.js which fetch data from api return data which i recieve from app.js, i want to know that when i print type of data it gives object, but i know that async function always return promise??</p>
</li>
<li><p>in app.js in useE... | [
{
"answer_id": 74428883,
"author": "Giovanni Cerretani",
"author_id": 3287591,
"author_profile": "https://Stackoverflow.com/users/3287591",
"pm_score": 1,
"selected": false,
"text": "m_myMap std::unique_ptr<Entity> std::unique_ptr m_myMap const std::unordered_map<std::string, std::unique... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15997110/"
] |
74,428,881 | <p>I have my <strong><em>custom</em></strong> <code>Bottom Navigation Bar</code> in one dart file, i.e. <code>bottomnavbar.dart</code>. And I have list of multiple <code>screens</code>(or pages) in my <code>home.dart</code> file. I am using an <code>.obs variable</code> to store my selected index value.
<br>code from <... | [
{
"answer_id": 74429052,
"author": "Himani",
"author_id": 18416001,
"author_profile": "https://Stackoverflow.com/users/18416001",
"pm_score": 0,
"selected": false,
"text": " onTap: () {\n selectedIndex.value = index;\n _controller.animateTo(index / 4);\n // print(selectedIndex);\n},\n... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17411652/"
] |
74,428,888 | <p><code>polars.LazyFrame.var</code> will return variance value for each column in a table as below:</p>
<pre><code>>>> df = pl.DataFrame({"a": [1, 2, 3, 4], "b": [1, 2, 1, 1], "c": [1, 1, 1, 1]}).lazy()
>>> df.collect()
shape: (4, 3)
┌─────┬─────┬─────┐
│ a ┆ b ┆ c ... | [
{
"answer_id": 74438282,
"author": "Dean MacGregor",
"author_id": 1818713,
"author_profile": "https://Stackoverflow.com/users/1818713",
"pm_score": 1,
"selected": false,
"text": "df.var().melt().filter(pl.col('value')>0).collect()\n dfvar=df.var()\ndfvar.select(dfvar.melt().filter(pl.col... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428888",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20497072/"
] |
74,428,893 | <p>I'm trying to create an automation to interact with Microsoft Business Central. For that I created a Azure App (daemon).</p>
<p>This app has granted permissions from the admin to Read/Write on BC, permissions such as Financials.ReadWrite.All and API.ReadWrite.All and are consented.</p>
<p>When I generate the access ... | [
{
"answer_id": 74438282,
"author": "Dean MacGregor",
"author_id": 1818713,
"author_profile": "https://Stackoverflow.com/users/1818713",
"pm_score": 1,
"selected": false,
"text": "df.var().melt().filter(pl.col('value')>0).collect()\n dfvar=df.var()\ndfvar.select(dfvar.melt().filter(pl.col... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1771963/"
] |
74,428,947 | <p>What is the difference between the static methods <a href="https://learn.microsoft.com/en-us/dotnet/api/system.int32.min" rel="nofollow noreferrer"><code>Int32.Min</code></a> and <a href="https://learn.microsoft.com/en-us/dotnet/api/system.int32.minmagnitude" rel="nofollow noreferrer"><code>Int32.MinMagnitude</code>... | [
{
"answer_id": 74429008,
"author": "CodeCaster",
"author_id": 266143,
"author_profile": "https://Stackoverflow.com/users/266143",
"pm_score": 0,
"selected": false,
"text": "INumberBase<TSelf> IFloatingPointIeee754<TSelf> MinMagnitude() Min()"
},
{
"answer_id": 74429063,
"auth... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428947",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11178549/"
] |
74,428,948 | <p>So I have a question with regards to printing out missing numbers.</p>
<p>I have an array of integers ranging from 0 - 20 and should return a string of missing numbers.</p>
<p>e.g.</p>
<p>[0, 1, 2, 8, 12, 13] would return "3-7,9-11,14-20"</p>
<p>[1, 2, 5, 12, 16] would return "0,3-4,6-11,13-15,17-20&... | [
{
"answer_id": 74429008,
"author": "CodeCaster",
"author_id": 266143,
"author_profile": "https://Stackoverflow.com/users/266143",
"pm_score": 0,
"selected": false,
"text": "INumberBase<TSelf> IFloatingPointIeee754<TSelf> MinMagnitude() Min()"
},
{
"answer_id": 74429063,
"auth... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74428948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20408624/"
] |
74,429,020 | <p>I am wondering what type of alternatives are best to use in this situation.</p>
<pre><code>if (method1(parameters)
method2(parameters);
if (method1(differentParameters)
method2(differentParameters;
//and so on.
</code></pre>
<p>The code is for an othello game implementation, the first method checks if there are... | [
{
"answer_id": 74429248,
"author": "Elemental",
"author_id": 98636,
"author_profile": "https://Stackoverflow.com/users/98636",
"pm_score": 1,
"selected": false,
"text": "Check Flip CheckAndFlip(params) {\n if (Check(params)) \n Flip(Params)\n}\n CheckAndFlip(params);\nCheckAndFlip... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20127861/"
] |
74,429,033 | <p>I'm trying to handle silent notification sent to me from by backend which triggers Firebase services and it (probably?) triggers Apple servers to send the push.</p>
<p>I've selected Remote notifications and Background fetch in project's Signing & Capabilities: <a href="https://i.stack.imgur.com/RTr5G.png" rel="n... | [
{
"answer_id": 74544693,
"author": "Paul Brewczynski",
"author_id": 1364174,
"author_profile": "https://Stackoverflow.com/users/1364174",
"pm_score": 0,
"selected": false,
"text": "putHeader(\"apns-push-type\", \"background\") private fun createSilentApnsConfig(pushType: SilentPushType) ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1364174/"
] |
74,429,049 | <p>I am using Java 8 stream</p>
<pre><code>executeRequest(requestId).stream()
.map(d-> (Response) d).collect(Collectors.toList());
</code></pre>
<p>the Response object is like this</p>
<pre><code>@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class Response {
String title;
String id;
}
</... | [
{
"answer_id": 74544693,
"author": "Paul Brewczynski",
"author_id": 1364174,
"author_profile": "https://Stackoverflow.com/users/1364174",
"pm_score": 0,
"selected": false,
"text": "putHeader(\"apns-push-type\", \"background\") private fun createSilentApnsConfig(pushType: SilentPushType) ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429049",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18845587/"
] |
74,429,056 | <p>I'm trying to compare the data on my csv file to web table.
`</p>
<pre><code>WebElement mytable1 = driver.findElement(By.cssSelector("#dStocks1"));
// To locate rows of table.
List<WebElement> rows_table1 = mytable1.findElements(By.tagName("tr"));
// To calculate no ... | [
{
"answer_id": 74544693,
"author": "Paul Brewczynski",
"author_id": 1364174,
"author_profile": "https://Stackoverflow.com/users/1364174",
"pm_score": 0,
"selected": false,
"text": "putHeader(\"apns-push-type\", \"background\") private fun createSilentApnsConfig(pushType: SilentPushType) ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19698621/"
] |
74,429,201 | <pre><code>window.addEventListener('scroll',function(){
if(window.pageYOffset > 100)
{
document.getElementById('fade').style.opacity=1;
}
else
{
document.getElementById('fade').style.opacity=0;
}
});
</code></pre>
<p>JavaScript fad-in fade-out animation with scrolling event or without using librarie... | [
{
"answer_id": 74429278,
"author": "Rory McCrossan",
"author_id": 519413,
"author_profile": "https://Stackoverflow.com/users/519413",
"pm_score": 1,
"selected": false,
"text": "transition opacity window.addEventListener('scroll', function() {\n document.querySelector('#fade').classList.... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429201",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19052139/"
] |
74,429,226 | <p>I installed mongodb as a replicaset with 3 replicas on my k8s cluster using the bitnami helm chart.</p>
<p>So I get these pods:</p>
<pre><code>mongodb-0.mongodb-headless.mongodb.svc.cluster.local:27017
mongodb-1.mongodb-headless.mongodb.svc.cluster.local:27017
mongodb-2.mongodb-headless.mongodb.svc.cluster.local:270... | [
{
"answer_id": 74467992,
"author": "R2D2",
"author_id": 10415047,
"author_profile": "https://Stackoverflow.com/users/10415047",
"pm_score": 0,
"selected": false,
"text": "kind: Service \napiVersion: v1 \nmetadata:\n name: mongodb-0\nspec:\n type: NodePort\n selector:\n statefulset.... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429226",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3142695/"
] |
74,429,227 | <p>I have a call method on button click</p>
<pre><code>button_call=(Button) findViewById(R.id.button_call);
button_call.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent=new Intent(Intent.ACTION_DIAL);
intent.setData(Uri.parse("tel:+79... | [
{
"answer_id": 74429994,
"author": "BadDa3mon",
"author_id": 16564674,
"author_profile": "https://Stackoverflow.com/users/16564674",
"pm_score": 1,
"selected": false,
"text": "<uses-permission android:name=\"android.permission.CALL_PHONE\" /> boolean isPermissionGranted = (ContextCompat.... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20467834/"
] |
74,429,245 | <p>I'm trying to save unique name in the database but the problem I can save the same with different letters, for example I can save (IT, it, iT, It) I don't want to save it like that.</p>
<p><strong>Model:</strong></p>
<pre><code>class Service(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uu... | [
{
"answer_id": 74429994,
"author": "BadDa3mon",
"author_id": 16564674,
"author_profile": "https://Stackoverflow.com/users/16564674",
"pm_score": 1,
"selected": false,
"text": "<uses-permission android:name=\"android.permission.CALL_PHONE\" /> boolean isPermissionGranted = (ContextCompat.... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16165474/"
] |
74,429,267 | <p>I am trying to build following functionality:</p>
<p>User can type number on keyboard while the tab is active, and this can be a number with several digits. How can I get the whole number after the delay time between the <strong>keyup</strong> event is finished?</p>
<p>I have written following code, but I am getting... | [
{
"answer_id": 74429381,
"author": "Lain",
"author_id": 4728913,
"author_profile": "https://Stackoverflow.com/users/4728913",
"pm_score": 2,
"selected": true,
"text": "setTimeout clearTimeout const delay = 1000\nconst keystrokeDelay = delay;\nlet keyTimeout = null;\n\nlet state = {\n bu... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/934703/"
] |
74,429,325 | <p>I try to calculate some stats for a list. But somehow these are not correct:
Code:
import pandas as pd</p>
<pre><code>import statistics
list_runs_stats=[4.149432, 3.133142, 3.182976, 2.620959, 3.200038, 2.66668, 2.604444, 2.683382, 3.249564, 3.149947]
list_stats=pd.Series(list_runs_stats).describe()
print (list_... | [
{
"answer_id": 74429371,
"author": "abhilash966",
"author_id": 20494569,
"author_profile": "https://Stackoverflow.com/users/20494569",
"pm_score": 3,
"selected": true,
"text": "describe() list_stats describe import pandas as pd\nlist_runs_stats=[4.149432, 3.133142, 3.182976, 2.620959, 3.... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11378968/"
] |
74,429,364 | <p>I have a list of strings in python which are in form of an arithmetic problem. So:</p>
<p><code>p_list = ['32 + 5', '4 - 1', '345 + 2390']</code></p>
<p>I would love each of the list to be arranged in this manner</p>
<pre><code> 32 4 345
+ 5 - 1 + 2390
---- --- ------
</code></pre>
<p>So ess... | [
{
"answer_id": 74429689,
"author": "Timo",
"author_id": 12888866,
"author_profile": "https://Stackoverflow.com/users/12888866",
"pm_score": 1,
"selected": false,
"text": "def arithmetic_format(eq_list, sep = 4):\n top = mid = bot = \"\"\n sep = \" \" * sep\n for eq in eq_list:\n... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19979182/"
] |
74,429,365 | <p>Consider the following Array:</p>
<pre><code>julia> test_mat3 = rand(2, 3, 2)
2×3×2 Array{Float64, 3}:
[:, :, 1] =
0.539697 0.17689 0.944783
0.537687 0.660573 0.19497
[:, :, 2] =
0.726739 0.798789 0.0900478
0.00744727 0.837076 0.25798
</code></pre>
<p>I want to reshape it into a 2d Array with a sp... | [
{
"answer_id": 74430027,
"author": "Dan Getz",
"author_id": 3580870,
"author_profile": "https://Stackoverflow.com/users/3580870",
"pm_score": 2,
"selected": false,
"text": "using Combinatorics\n\ntest_mat3 = zeros(2, 3, 2); ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11747148/"
] |
74,429,385 | <p>I am trying to download all CSV files from the <code>\tmp\</code> directory with a PS script and convert them to one excel file as a report and place it in the <code>\reports\</code> directory under the name <code>LDAP.xlsx</code> . My CSV files have varying amounts of saved data.</p>
<p>In the forum I found this <a... | [
{
"answer_id": 74445495,
"author": "Kubix",
"author_id": 20164393,
"author_profile": "https://Stackoverflow.com/users/20164393",
"pm_score": 0,
"selected": false,
"text": "# variables from config file\n$main_path = $conf_values.main_path\n$tmp_path = $conf_values.tmp_path\n$reports_path ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429385",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20164393/"
] |
74,429,410 | <p>I want to use <strong>Wrap</strong> on large amount of objects.</p>
<p>I tried to just map all object to <strong>children</strong> but it cause <em>serious performance issue</em>.</p>
<p>I want some alternative way to build only currently displayed widgets but with style of <strong>Wrap</strong>.</p>
<p>Some code:</... | [
{
"answer_id": 74429504,
"author": "Vym",
"author_id": 14251124,
"author_profile": "https://Stackoverflow.com/users/14251124",
"pm_score": 1,
"selected": false,
"text": "ListView ListView.builder Wrap Wrap"
},
{
"answer_id": 74430559,
"author": "Ivo",
"author_id": 1514861... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11962301/"
] |
74,429,412 | <p>With reduce function this was supposed to return 9000 but how come does it return 256000?
I tested similar code before and it worked fine</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-o... | [
{
"answer_id": 74429464,
"author": "Axekan",
"author_id": 12519793,
"author_profile": "https://Stackoverflow.com/users/12519793",
"pm_score": 2,
"selected": false,
"text": "reduce x y function combined(...s){\n return s.flat().reduce((x, y) => x + y)\n}\n\nconsole.log(combined([1000,100... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,429,453 | <p>Good Morning</p>
<p>I need your help with a formula please, I have a list of items in one cell:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Column A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Apple</td>
</tr>
<tr>
<td>Banana</td>
</tr>
<tr>
<td>Pear</td>
</tr>
<tr>
<td>Grape</td>
</tr>
<tr... | [
{
"answer_id": 74429464,
"author": "Axekan",
"author_id": 12519793,
"author_profile": "https://Stackoverflow.com/users/12519793",
"pm_score": 2,
"selected": false,
"text": "reduce x y function combined(...s){\n return s.flat().reduce((x, y) => x + y)\n}\n\nconsole.log(combined([1000,100... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429453",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10495277/"
] |
74,429,458 | <p>I'm using Deadline monitor to automate a few processes. I don't think you'll need to know about Deadline to answer my question though.</p>
<p>I've created a Python script that takes a few arguments to be able to create the .bat file. I then want the same python script to run the .bat file to do what I need it to do.... | [
{
"answer_id": 74448654,
"author": "rramirez",
"author_id": 19885876,
"author_profile": "https://Stackoverflow.com/users/19885876",
"pm_score": 0,
"selected": false,
"text": "bat_file = open(project_path + \"\\\\\" + \"create_dependencies.bat\", 'w+')\nbat_file.write(\"@echo off\" + \"\\... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19885876/"
] |
74,429,460 | <p>I want to implement transparent status bar in jetpack compose.</p>
<p>I have integrated the Accompanist library for this but it has no transparent effect on status bar.</p>
<pre><code>implementation "com.google.accompanist:accompanist-systemuicontroller:0.18.0"
// Remember a SystemUiController
val systemU... | [
{
"answer_id": 74429581,
"author": "Mayur",
"author_id": 7760687,
"author_profile": "https://Stackoverflow.com/users/7760687",
"pm_score": 0,
"selected": false,
"text": "<item name=\"android:windowTranslucentStatus\">true</item>\n<item name=\"android:windowTranslucentNavigation\">true</i... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429460",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5989261/"
] |
74,429,469 | <p>I'm trying to understand how child_process works and I don't see any options to pass a variable to the child.
My situation:</p>
<blockquote>
<p>Main.js</p>
</blockquote>
<pre><code>[const arr = [10,20,30,40,50]
for (let g of arr ){
function(g) // I want to launch every loop in a separate process because... | [
{
"answer_id": 74429581,
"author": "Mayur",
"author_id": 7760687,
"author_profile": "https://Stackoverflow.com/users/7760687",
"pm_score": 0,
"selected": false,
"text": "<item name=\"android:windowTranslucentStatus\">true</item>\n<item name=\"android:windowTranslucentNavigation\">true</i... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19522083/"
] |
74,429,477 | <p>Write a PLSQL function that checks whether the salary of an employee
is less than the average salary of all the employees. If the salary is lees,
the program should update the salary of that employee by 5% of their current salary and print
the old employee salary, the average salary of all the employees, and the new... | [
{
"answer_id": 74429581,
"author": "Mayur",
"author_id": 7760687,
"author_profile": "https://Stackoverflow.com/users/7760687",
"pm_score": 0,
"selected": false,
"text": "<item name=\"android:windowTranslucentStatus\">true</item>\n<item name=\"android:windowTranslucentNavigation\">true</i... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20497770/"
] |
74,429,488 | <p>How can I select all rows/unselect all rows of a WPF datagrid on a button click without messing up the MVVM pattern ?</p>
<p>Currently I doing something like this:</p>
<h1>XAML</h1>
<pre><code><Button Command="{Binding SelButtonClicked}" .../>
</code></pre>
<p>and in the Mainviewmodel</p>
<pre><code>... | [
{
"answer_id": 74429581,
"author": "Mayur",
"author_id": 7760687,
"author_profile": "https://Stackoverflow.com/users/7760687",
"pm_score": 0,
"selected": false,
"text": "<item name=\"android:windowTranslucentStatus\">true</item>\n<item name=\"android:windowTranslucentNavigation\">true</i... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6119995/"
] |
74,429,498 | <p>In a Doctrine Collection, I have identical objects, each with an integer property '<code>player</code>' and another integer property called '<code>team</code>'. Player could be <code>1,2,3...</code> and Team can be <code>0,1,2,3,...</code> and so on. <code>0</code> means '<code>default team</code>'. All players belo... | [
{
"answer_id": 74438588,
"author": "ceadreak",
"author_id": 3191181,
"author_profile": "https://Stackoverflow.com/users/3191181",
"pm_score": 1,
"selected": false,
"text": "// get all your player 3 data\n$player3Collection = Collection->filter(function(ObjectType $object) {\n return (... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2078535/"
] |
74,429,513 | <p>I have an excel here as shown in this picture:</p>
<p><a href="https://i.stack.imgur.com/Q5QTl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q5QTl.png" alt="enter image description here" /></a></p>
<p>I am using pandas to read my excel file and it is working fine, this code below can print all t... | [
{
"answer_id": 74438588,
"author": "ceadreak",
"author_id": 3191181,
"author_profile": "https://Stackoverflow.com/users/3191181",
"pm_score": 1,
"selected": false,
"text": "// get all your player 3 data\n$player3Collection = Collection->filter(function(ObjectType $object) {\n return (... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429513",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13416645/"
] |
74,429,538 | <p>i know this may be stupid question but how can i access value of object that has '@' in it key</p>
<pre><code>{
id: 'v6y4fra9dd3xxys',
created: '2022-10-29 08:48:12.585',
updated: '2022-11-14 08:03:46.477',
'@collectionId': 'x16irtg922kc0cg',
'@collectionName': 'products',
condition: 'new',
image: 'sho... | [
{
"answer_id": 74429573,
"author": "Moussa Bistami",
"author_id": 15628525,
"author_profile": "https://Stackoverflow.com/users/15628525",
"pm_score": 0,
"selected": false,
"text": "\n try {\n if (Object['@collectionId'])\n //Do whatever with Object['@collectionId'];\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19817113/"
] |
74,429,550 | <p>I have a UTC date-time like this (a String): <code>2022-11-22T17:15:00</code></p>
<p>And a ZoneID like this: <code>"America/Tijuana"</code></p>
<p>Using java.time API, I want to get the actual datetime for that zone, which is: <code>2022-11-22T09:15:00</code> (the time is 09:15 instead of 17:15)</p>
<ul>
<... | [
{
"answer_id": 74429653,
"author": "YCF_L",
"author_id": 5558072,
"author_profile": "https://Stackoverflow.com/users/5558072",
"pm_score": 3,
"selected": false,
"text": "withZoneSameInstant ZonedDateTime toUTCZone = ZonedDateTime.of(dateTimeL, ZoneOffset.UTC);\nZonedDateTime myZDTFinal ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429550",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2906157/"
] |
74,429,558 | <p>I am executing the following code but getting error</p>
<pre><code>//preparing upload parameters
const params = {
Bucket: `${config.s3bucket}`,
Key: `${objectDirectory}/${objectKey}`,
};
//geenerating signed url, valid only for 15 minutes
const command = new PutObjectCommand(params);
... | [
{
"answer_id": 74429653,
"author": "YCF_L",
"author_id": 5558072,
"author_profile": "https://Stackoverflow.com/users/5558072",
"pm_score": 3,
"selected": false,
"text": "withZoneSameInstant ZonedDateTime toUTCZone = ZonedDateTime.of(dateTimeL, ZoneOffset.UTC);\nZonedDateTime myZDTFinal ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18087962/"
] |
74,429,635 | <p>Following is the Clojure code:</p>
<pre><code>(reduce (fn [r x] (if (nil? x) r (conj r x)))
[]
[:mouse nil :duck nil :lory nil])
</code></pre>
<p>In REPL, it evaluates to <code>[:mouse :duck :lory]</code>.</p>
<p>My question is, how is the code evaluating?</p>
<p>According to me, <code>r</code> i... | [
{
"answer_id": 74430057,
"author": "Thumbnail",
"author_id": 1562315,
"author_profile": "https://Stackoverflow.com/users/1562315",
"pm_score": 2,
"selected": true,
"text": "reduce reduce (defn reduce [f init coll]\n (loop [acc init, tail coll]\n (if (seq tail)\n (recur (f acc (f... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20499245/"
] |
74,429,665 | <p>I am new to Typescript and trying to use Redux-Toolkit with it in my React application. Here I am trying to create a To Do application with a nested state where each <code>ToDo</code> contains a array of <code>Comment</code>. Here are the interfaces:</p>
<p><code>Comment.ts</code></p>
<pre><code>export interface Com... | [
{
"answer_id": 74431634,
"author": "paria",
"author_id": 17815399,
"author_profile": "https://Stackoverflow.com/users/17815399",
"pm_score": 0,
"selected": false,
"text": "reducers: {\n addToDo: (state, action: PayloadAction<ToDo> ) => {\n state.push(action.payload as ToDo);\n ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14033758/"
] |
74,429,686 | <p>This question was asked to me in Razorpay. I could not come up with a solution. Can anyone help me in writing Java code for this.</p>
<pre class="lang-java prettyprint-override"><code>Object[] array = { 1, 2, new Object[]{ 3, 4, new Object[]{ 5 }, 6, 7 }, 8, 9, 10};
</code></pre>
<p>Answer should be:</p>
<pre class=... | [
{
"answer_id": 74429917,
"author": "tgdavies",
"author_id": 11002,
"author_profile": "https://Stackoverflow.com/users/11002",
"pm_score": 1,
"selected": false,
"text": "import java.util.ArrayList;\nimport java.util.List;\n\npublic class Answer {\n static void extractIntegers(Object[] ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20499295/"
] |
74,429,701 | <p>I'm currently building a program in JavaScript that is making requests of the google sheets API based on activity occurring in a Discord Server (messaging app). However, I've been running into the API RateLimits in cases where multiple users do the same action at the same time, causing too many API Requests in too s... | [
{
"answer_id": 74429917,
"author": "tgdavies",
"author_id": 11002,
"author_profile": "https://Stackoverflow.com/users/11002",
"pm_score": 1,
"selected": false,
"text": "import java.util.ArrayList;\nimport java.util.List;\n\npublic class Answer {\n static void extractIntegers(Object[] ... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14579133/"
] |
74,429,721 | <p>Hey guys so I am trying to resize my tkinter window using the geometry function if the master window.</p>
<p>I am able to resize it when I tried to do that without creating a class.</p>
<p>But when I tried to resize the window made by the class method I came across a method where the master was resized before passin... | [
{
"answer_id": 74429928,
"author": "Martin Wettstein",
"author_id": 13969611,
"author_profile": "https://Stackoverflow.com/users/13969611",
"pm_score": -1,
"selected": false,
"text": "def __init__(self):\n top=self.winfo_toplevel() #Flexible Toplevel of the window\n top.geometry(\"... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6088792/"
] |
74,429,726 | <p>I found this that seems exactly what I'm looking for if it worked with ";" instead of "," but I can't get it to work. Is it possible?
<a href="https://stackoverflow.com/a/48551211/20499116">https://stackoverflow.com/a/48551211/20499116</a></p>
<p>The data I'm working with gives me an email column... | [
{
"answer_id": 74429928,
"author": "Martin Wettstein",
"author_id": 13969611,
"author_profile": "https://Stackoverflow.com/users/13969611",
"pm_score": -1,
"selected": false,
"text": "def __init__(self):\n top=self.winfo_toplevel() #Flexible Toplevel of the window\n top.geometry(\"... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429726",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20499116/"
] |
74,429,952 | <p>I have the following Pd series</p>
<pre><code> count area volume formula quantity
0 1.0 22 NaN count 1.0
1 1.0 15 NaN count 1.0
2 1.0 1.4 NaN area 1.4
3 1.0 0.6 10 volume 100
</code></pre>
<p>The q... | [
{
"answer_id": 74430136,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 0,
"selected": false,
"text": "import numpy as np\n\ns = df['formula'].str.lower()\nm = s.eq('volume')\n\nidx, cols = pd.factorize(s)\n\ndf['quant... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20479479/"
] |
74,429,956 | <p>I'm confused on how do I add a column to another in pandas</p>
<p>Here is what I'm trying to do :</p>
<pre><code>from pandas import DataFrame
df1 = DataFrame({'a':[1,2], 'b':[3,4]})
concat((df1['a'], df1['b'].rename({'b':'a'}))).reset_index(drop=True)
</code></pre>
<p>Which do return what I want : A serie with my 4 ... | [
{
"answer_id": 74429997,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 1,
"selected": false,
"text": "pd.concat((df1['a'], df1['b'].rename({'b':'a'}))).reset_index(drop=True)\n 0 1\n1 2\n2 3\n3 4\ndtype: i... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2086127/"
] |
74,429,998 | <p>I wanted to declare an array with a pointer in character type, and the length of the array can be determined by my input string.</p>
<p>I wrote it in this way:</p>
<pre class="lang-cpp prettyprint-override"><code>char *s;
cout << "Enter a string: " << endl;
cin >> s;
</code></pre>
<p>I ex... | [
{
"answer_id": 74430072,
"author": "StellarClown",
"author_id": 10026471,
"author_profile": "https://Stackoverflow.com/users/10026471",
"pm_score": 0,
"selected": false,
"text": "char *s = new char[10];\n s pointer to a character"
},
{
"answer_id": 74430207,
"author": "wohlst... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74429998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17754131/"
] |
74,430,017 | <p>For my accessibility related question, I googled "accessibility shopping cart" and visited many popular online stores but didn't find a clear answer on my question. From the accessibility point of view, for the shopping cart, should I add a tabindex="0" (the code is slightly simplified) for</p>
<... | [
{
"answer_id": 74432244,
"author": "Glen Stautland",
"author_id": 17611060,
"author_profile": "https://Stackoverflow.com/users/17611060",
"pm_score": 1,
"selected": false,
"text": "<ul> or <ol> <ul>\n<li><span tabindex=\"0\">Merchandise: $40</span></li>\n<li><span tabindex=\"0\">Shipping... | 2022/11/14 | [
"https://Stackoverflow.com/questions/74430017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/886906/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.