qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,652,872 | <p>Let's say I want to create an array of <code>Person</code> using a random data library.</p>
<p>I could do something like</p>
<pre><code>import {generateRandom} from 'someLib'
let people = []
function getPerson() ({
name: generateRandom.string()
age: generateRandom.number()
})
for (let i = 0; i < 10; i++) {... | [
{
"answer_id": 74653319,
"author": "jfriend00",
"author_id": 816620,
"author_profile": "https://Stackoverflow.com/users/816620",
"pm_score": 1,
"selected": false,
"text": "getPerson() people.push(getPerson()) undefined let people = []\n\nfunction getPerson() {\n return {\n name: gene... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652872",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7734836/"
] |
74,652,883 | <p>How do I achieve this in Python. I know there is a vlookup function in excel but if there is a way in Python, I prefer to do it in Python. Basically my goal is to get data from CSV2 column Quantity and write the data to column Quantity of CSV1 based on Bin_Name. The script should not copy all the value at once, it m... | [
{
"answer_id": 74653319,
"author": "jfriend00",
"author_id": 816620,
"author_profile": "https://Stackoverflow.com/users/816620",
"pm_score": 1,
"selected": false,
"text": "getPerson() people.push(getPerson()) undefined let people = []\n\nfunction getPerson() {\n return {\n name: gene... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20610995/"
] |
74,652,884 | <p>From the <a href="https://stackoverflow.com/q/74652408/10969942">last post</a>, the duplicate post cannot answer my question.</p>
<p>Right now, I have a function <code>f1()</code> which contains CPU intensive part and async IO intensive part. Therefore <code>f1()</code> itself is an <code>async function</code>. <str... | [
{
"answer_id": 74653319,
"author": "jfriend00",
"author_id": 816620,
"author_profile": "https://Stackoverflow.com/users/816620",
"pm_score": 1,
"selected": false,
"text": "getPerson() people.push(getPerson()) undefined let people = []\n\nfunction getPerson() {\n return {\n name: gene... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10969942/"
] |
74,652,891 | <p>On a checkout page I make an overlay on top of the website where scroll on body is disabled, but overflow is enabled on the overlay.</p>
<p>But if the viewport is smaller the content on the overlay is clipped.</p>
<p>How to avoid that?</p>
<p>I tried to add <code>overflow:auto</code> to the overlay but it didn't wor... | [
{
"answer_id": 74652913,
"author": "dobby",
"author_id": 948979,
"author_profile": "https://Stackoverflow.com/users/948979",
"pm_score": -1,
"selected": false,
"text": "body {\n overflow: hidden;\n}\n\n.overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/555222/"
] |
74,652,918 | <p>Say I have a list of <code>dict</code>:</p>
<pre><code>ld = [{'a':1,'b':2,'c':9},{'a':1,'b':2,'c':10}]
</code></pre>
<p>And a list to filter the keys out:</p>
<pre><code>l = ['a','c']
</code></pre>
<p>Want to remove key <code>a</code> and <code>c</code> from <code>ld</code>:</p>
<p>Try:</p>
<pre><code>result = [d fo... | [
{
"answer_id": 74652966,
"author": "azro",
"author_id": 7212686,
"author_profile": "https://Stackoverflow.com/users/7212686",
"pm_score": 3,
"selected": true,
"text": "ld = [{'a': 1, 'b': 2, 'c': 9}, {'a': 1, 'b': 2, 'c': 10}]\nl = ['a', 'c']\nresult = [{k: v for k, v in subdict.items() ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8176763/"
] |
74,652,920 | <p>For some reason when I try to do this event, it allows for only one letter in the text input. I tried searching for an answer and couldn't figure it out, can someone help me?</p>
<pre><code>let button = document.getElementById("button");
let input = document.getElementById("userInput");
let ul =... | [
{
"answer_id": 74652945,
"author": "physiqq",
"author_id": 19989201,
"author_profile": "https://Stackoverflow.com/users/19989201",
"pm_score": 1,
"selected": false,
"text": "input.value input.value = \"\"; let button = document.getElementById(\"button\");\nlet input = document.getElement... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19943108/"
] |
74,652,957 | <p>In GCP if we want to use windows instances we have both pay as you go and Bring your own licenses. Now if we have own licenses gcp mentioned in few documents we should use solo tenant nodes. Can we migrate windows vm to gcp and use compute engine with own license without solo tenant node. Like can we bring existing ... | [
{
"answer_id": 74652945,
"author": "physiqq",
"author_id": 19989201,
"author_profile": "https://Stackoverflow.com/users/19989201",
"pm_score": 1,
"selected": false,
"text": "input.value input.value = \"\"; let button = document.getElementById(\"button\");\nlet input = document.getElement... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11105625/"
] |
74,652,958 | <p>I'm not entirely sure why the string "6145390195186705543" is outputting 6145390195186705000, at first reading through the threads it may be the base radix but even tinkering around with that still gives me the same results, can anyone help explain because I do believe this is not a bug, but I'm not entire... | [
{
"answer_id": 74652995,
"author": "armful",
"author_id": 20664163,
"author_profile": "https://Stackoverflow.com/users/20664163",
"pm_score": 2,
"selected": false,
"text": "9007199254740991 6145390195186705000"
},
{
"answer_id": 74653369,
"author": "FZs",
"author_id": 837... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12353257/"
] |
74,652,959 | <p>I saw this query as an answer to another question on this site:</p>
<pre><code>SELECT MAX(date), thread_id
FROM table
GROUP BY thread_id
HAVING MAX(date) < 1555
</code></pre>
<p>With this database sample:</p>
<pre><code>+-----------------------------+
| id | date | thread_id |
+-----+---------+------------... | [
{
"answer_id": 74652995,
"author": "armful",
"author_id": 20664163,
"author_profile": "https://Stackoverflow.com/users/20664163",
"pm_score": 2,
"selected": false,
"text": "9007199254740991 6145390195186705000"
},
{
"answer_id": 74653369,
"author": "FZs",
"author_id": 837... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74652959",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14146687/"
] |
74,653,012 | <p>i have a problem when i try to install package npm on angular, i have this kind of error but i don't understand how i should do to solve it</p>
<p><code>PS C:\Users\user\Documents\Progetti\myProject\ng-app\src\app> npm i angular-calendar npm WARN config global </code>--global<code>, </code>--local<code>are deprec... | [
{
"answer_id": 74652995,
"author": "armful",
"author_id": 20664163,
"author_profile": "https://Stackoverflow.com/users/20664163",
"pm_score": 2,
"selected": false,
"text": "9007199254740991 6145390195186705000"
},
{
"answer_id": 74653369,
"author": "FZs",
"author_id": 837... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653012",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8898767/"
] |
74,653,032 | <p>I am switching over from Overleaf to VSCode for offline LaTeX.</p>
<p>Is there an extensions that lets you click on the pdf preview and highlights the line you clicked on in the .tex file? (just like the Overleaf feature)</p>
| [
{
"answer_id": 74652995,
"author": "armful",
"author_id": 20664163,
"author_profile": "https://Stackoverflow.com/users/20664163",
"pm_score": 2,
"selected": false,
"text": "9007199254740991 6145390195186705000"
},
{
"answer_id": 74653369,
"author": "FZs",
"author_id": 837... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20664404/"
] |
74,653,041 | <pre><code><div data-component-id="nwv4kv9j5ct9" class="component-inner-container status-red " data-component-status="major_outage" data-js-hook="" id="nwv4kv9j5ct9">
<span class="name table-item-name">JHP</span>
<span class="s... | [
{
"answer_id": 74652995,
"author": "armful",
"author_id": 20664163,
"author_profile": "https://Stackoverflow.com/users/20664163",
"pm_score": 2,
"selected": false,
"text": "9007199254740991 6145390195186705000"
},
{
"answer_id": 74653369,
"author": "FZs",
"author_id": 837... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14710995/"
] |
74,653,046 | <p>I'm currently working on a school project: I had to code a website that sells sofas. I made the whole site but I struggle with my calculation function that adds all the prices of each sofa to get the sum of my cart. It's always false whatever I do. I'm lost.</p>
<p>I had to fetch the prices of the products in my car... | [
{
"answer_id": 74652995,
"author": "armful",
"author_id": 20664163,
"author_profile": "https://Stackoverflow.com/users/20664163",
"pm_score": 2,
"selected": false,
"text": "9007199254740991 6145390195186705000"
},
{
"answer_id": 74653369,
"author": "FZs",
"author_id": 837... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653046",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18579477/"
] |
74,653,050 | <p>I created a login page. I am trying to authenticate a user by sending the message from the backend after verifying if the user exists in the database.
Everything is working fine just one problem is that when I login with correct credentials I have to click twice on the submit button for it to work.</p>
<pre><code>im... | [
{
"answer_id": 74653128,
"author": "armful",
"author_id": 20664163,
"author_profile": "https://Stackoverflow.com/users/20664163",
"pm_score": 0,
"selected": false,
"text": "login auth auth auth auth async/await login auth const login = async (e) => {\n e.preventDefault();\n const user ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16973267/"
] |
74,653,079 | <p>I have button themes called green,blue and red .my solution works but it looks messy. how can I use them like in objects instead if arguments</p>
<pre class="lang-js prettyprint-override"><code>
const buttonBG = theme === 'green' ? COLORS.green : theme === "blue" ? COLORS.blue : ""
const fontT... | [
{
"answer_id": 74654656,
"author": "Saraf",
"author_id": 17709311,
"author_profile": "https://Stackoverflow.com/users/17709311",
"pm_score": 1,
"selected": false,
"text": "<ThemedBtn/> <ThemedBtn/> import React, {useState} from 'react';\nimport {View} from 'react-native';\n\nimport Theme... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653079",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17939803/"
] |
74,653,081 | <p>I'm passing a button event from the child to the parent, but when I click the button, nothing happens.</p>
<p>This is the child code</p>
<p>product-item.component.html</p>
<pre><code> <button (click)='handleShowDetail()' class="product_buttonAdd">
</code></pre>
<p>product-item.component.ts</p>
<pre><... | [
{
"answer_id": 74654656,
"author": "Saraf",
"author_id": 17709311,
"author_profile": "https://Stackoverflow.com/users/17709311",
"pm_score": 1,
"selected": false,
"text": "<ThemedBtn/> <ThemedBtn/> import React, {useState} from 'react';\nimport {View} from 'react-native';\n\nimport Theme... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20538301/"
] |
74,653,101 | <p>I have a spreadsheet where I have used <code>SEARCH()</code> to get the possible linked ingredients from a match in a string. This sometimes leaves me with multiple possible matches.
Now I would like to lookup the translated words of these possible matches using an <code>INDEX MATCH</code>. Except I cannot as cells ... | [
{
"answer_id": 74653139,
"author": "JvdV",
"author_id": 9758194,
"author_profile": "https://Stackoverflow.com/users/9758194",
"pm_score": 3,
"selected": true,
"text": "C2 =MAP(B2:B4,LAMBDA(a,TEXTJOIN(\", \",,VLOOKUP(TEXTSPLIT(a,\", \"),F2:G6,2,0))))\n"
},
{
"answer_id": 74653189,... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18737111/"
] |
74,653,119 | <p>I need help.</p>
<p>I have this very simple html: <a href="https://jsfiddle.net/z8y7Lv2a/" rel="nofollow noreferrer">https://jsfiddle.net/z8y7Lv2a/</a></p>
<pre><code><header>
<ul>
<li>
<a href="#">Sobre</a>
</li>
<li>
<a href="#&q... | [
{
"answer_id": 74653206,
"author": "Jonathan Wieben",
"author_id": 7879109,
"author_profile": "https://Stackoverflow.com/users/7879109",
"pm_score": -1,
"selected": false,
"text": "<header>\n <h1 id=\"title\">\n </h1>\n <ul>\n ...\n <a href=\"#\" onClick=\"selectTitle('Sobre')\">Sob... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653119",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16658729/"
] |
74,653,163 | <p>Consider the following 2d array:</p>
<pre><code>>>> A = np.arange(2*3).reshape(2,3)
array([[0, 1, 2],
[3, 4, 5]])
>>> b = np.array([1, 2])
</code></pre>
<p>I would like to get the following mask from A as row wise condition from b as an upper index limit:</p>
<pre><code>>>> mask
ar... | [
{
"answer_id": 74653188,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 3,
"selected": true,
"text": "mask = np.arange(A.shape[1]) < b[:,None]\n array([[ True, False, False],\n [ True, True, False]])\n"
},
{... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653163",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10514935/"
] |
74,653,186 | <p>Table 1</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Employee</th>
<th>Country</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>USA</td>
</tr>
<tr>
<td>Davis</td>
<td>Australia</td>
</tr>
<tr>
<td>Maria</td>
<td>Australia</td>
</tr>
<tr>
<td>Nancy</td>
<td>USA</td>
</tr>
</tbody>
</... | [
{
"answer_id": 74653278,
"author": "Harun24hr",
"author_id": 5514747,
"author_profile": "https://Stackoverflow.com/users/5514747",
"pm_score": 3,
"selected": true,
"text": "google-sheet =TEXTJOIN(CHAR(10),1,FILTER(A2:A,B2:B=H2))\n CHAR(10)"
},
{
"answer_id": 74655089,
"autho... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7513280/"
] |
74,653,198 | <p>I wanted to practice with array and I don't get why it doesn't print the following out:
The problem is that the terminal outputs: null
Why is that and what did I do wrong?</p>
<pre><code>package Practice;
public class CreatingArrays {
public static void main(String[] args) {
String[] women = { "per... | [
{
"answer_id": 74653238,
"author": "Jostein S",
"author_id": 20106677,
"author_profile": "https://Stackoverflow.com/users/20106677",
"pm_score": 1,
"selected": false,
"text": "women = new String[10];"
},
{
"answer_id": 74653626,
"author": "z48o0",
"author_id": 2957840,
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20546326/"
] |
74,653,209 | <p>In a given id of a <code><div></code> I need to get a list of all the elements which are in that div.</p>
<p>My goal is to get a list of all elements in the given div and loop over them hide everyone except the first one.</p>
<p>Example:</p>
<pre><code><div id="RandomId">
<img src="... | [
{
"answer_id": 74653235,
"author": "Grizou",
"author_id": 20068386,
"author_profile": "https://Stackoverflow.com/users/20068386",
"pm_score": 2,
"selected": true,
"text": "Element.children"
},
{
"answer_id": 74653242,
"author": "Moussa Bistami",
"author_id": 15628525,
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653209",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20102061/"
] |
74,653,239 | <p>I need to save an Image in Python (created as a Numpy array) as a JPEG file, while including a "comment" in the file with some specific metadata. This metadata will be used by another (third-party) application and is a simple ASCII string. I have a sample image including such a "comment", which I... | [
{
"answer_id": 74653235,
"author": "Grizou",
"author_id": 20068386,
"author_profile": "https://Stackoverflow.com/users/20068386",
"pm_score": 2,
"selected": true,
"text": "Element.children"
},
{
"answer_id": 74653242,
"author": "Moussa Bistami",
"author_id": 15628525,
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8467078/"
] |
74,653,316 | <p>How to select values in drop down select tag in react, please help to achieve as below.</p>
<p>Here is my code</p>
<pre><code> <div>
<SelectField
label={"Select Job Category"}
onChange={(e) => {
console.log(e.target);
}}
... | [
{
"answer_id": 74653235,
"author": "Grizou",
"author_id": 20068386,
"author_profile": "https://Stackoverflow.com/users/20068386",
"pm_score": 2,
"selected": true,
"text": "Element.children"
},
{
"answer_id": 74653242,
"author": "Moussa Bistami",
"author_id": 15628525,
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8140319/"
] |
74,653,327 | <p>I can see the table on the screen and all the information from the db.json is imported. When I open console it shows me these errors: Text nodes cannot appear as a child of <code><table></code> [ReactJS]; Warning: Each child in a list should have a unique "key" prop.
I tried changing div to fragment ... | [
{
"answer_id": 74653235,
"author": "Grizou",
"author_id": 20068386,
"author_profile": "https://Stackoverflow.com/users/20068386",
"pm_score": 2,
"selected": true,
"text": "Element.children"
},
{
"answer_id": 74653242,
"author": "Moussa Bistami",
"author_id": 15628525,
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653327",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14958858/"
] |
74,653,330 | <p>I want to mock object <code>A a</code> return from <code>B.foo()</code>.</p>
<p>I've tried mock <code>A</code> with <code>@Mock</code>, it didn't work.</p>
<pre><code>class SomeClass() {
public void doSomeThing() {
B b = new B();
A a = b.foo();
a.foo();
}
}
</code></pre>
<pre><code>@M... | [
{
"answer_id": 74657505,
"author": "Sascha Doerdelmann",
"author_id": 11934850,
"author_profile": "https://Stackoverflow.com/users/11934850",
"pm_score": -1,
"selected": false,
"text": "public class SomeClassTest {\n @Mock\n A a;\n\n @InjectMocks\n SomeClass someClass;\n\n ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9290993/"
] |
74,653,347 | <p>I want the user to input hours and minutes for a Local.Time from 00 to 23 and from 00 to 59, I scanned this as an int. It works but for values from 00 to 09 the int ignores the 0 and places then as a 0,1,2...9 instead of 00,01,02,03...09; this breaks the Local.Time since, for example "10:3"; is not a valid... | [
{
"answer_id": 74653418,
"author": "Joachim Sauer",
"author_id": 40342,
"author_profile": "https://Stackoverflow.com/users/40342",
"pm_score": 4,
"selected": true,
"text": "int LocalTime.parse int LocalTime.of(hours, minutes) LocalTime result = LocalTime.of(hours, minutes);\n"
},
{
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653347",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20664407/"
] |
74,653,362 | <p>I would like to delete rows from my database that have the same name. I've checked Stackoverflow and found something like this:</p>
<pre><code>DELETE
FROM my_table mt1 USING my_table mt2
WHERE mt1.my_name = mt2.my_name AND mt1.unique_id<mt2.unique_id;
</code></pre>
<p>This of course works but leaves one row. I ha... | [
{
"answer_id": 74653442,
"author": "Jonas Metzler",
"author_id": 18794826,
"author_profile": "https://Stackoverflow.com/users/18794826",
"pm_score": 4,
"selected": true,
"text": "GROUP BY HAVING DELETE\nFROM my_table \nWHERE my_name IN \n(SELECT\n my_name\nFROM\n my_table\nGROUP BY... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3665662/"
] |
74,653,366 | <p>please see the image below for two examples of what is to be achived</p>
<p><a href="https://i.stack.imgur.com/izvul.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/izvul.png" alt="UILabels to be aligned" /></a></p>
<p>the alignment should be on the Center Y of the first lines of each UILabels and... | [
{
"answer_id": 74653487,
"author": "jrturton",
"author_id": 852828,
"author_profile": "https://Stackoverflow.com/users/852828",
"pm_score": 2,
"selected": false,
"text": "centerYAnchor firstBaselineAnchor UIFont capHeight * 0.5 leftLabel.centerYAnchor.constraint(equalTo: rightLabel.first... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653366",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/322622/"
] |
74,653,395 | <p>I want to move moodle lms from local server to live server, I moved moodeldata to httpdocs and tired to figure out httpdocs directory path on shared Linux based Plesk server. I appreciate any one helps me!</p>
<p>I tried like this</p>
<pre><code>$CFG->dataroot='\httpdocs\moodledata';
</code></pre>
<p>but the resu... | [
{
"answer_id": 74653487,
"author": "jrturton",
"author_id": 852828,
"author_profile": "https://Stackoverflow.com/users/852828",
"pm_score": 2,
"selected": false,
"text": "centerYAnchor firstBaselineAnchor UIFont capHeight * 0.5 leftLabel.centerYAnchor.constraint(equalTo: rightLabel.first... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20664230/"
] |
74,653,398 | <p>So, the question I am trying to solve is...</p>
<p>"Return true if two arrays are equal.</p>
<p>The arrays are equal if they are the same length and contain the same value at each particular index.</p>
<p>Two empty arrays are equal."</p>
<p>for example:</p>
<pre><code>input:
a == [1, 9, 4, 6, 3]
b == [1, ... | [
{
"answer_id": 74653427,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": -1,
"selected": false,
"text": "numpy.array_equal a = [1, 9, 4, 6, 3]\nb = [1, 9, 4, 6, 3]\nnp.array_equal(a, b)\n# True\n\na = [5, 3, 1]\nb = [6,... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20663553/"
] |
74,653,428 | <p>I have a dataframe similar to the following.</p>
<pre><code>import pandas as pd
data = pd.DataFrame({'ind': [111,222,333,444,555,666,777,888,999,000],
'col1': [1,2,2,2,3,4,5,5,6,7],
'col2': [9,2,2,2,9,9,5,5,9,9],
'col3': [11,2,2,2,11,11,5,5,11,11],
... | [
{
"answer_id": 74653427,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": -1,
"selected": false,
"text": "numpy.array_equal a = [1, 9, 4, 6, 3]\nb = [1, 9, 4, 6, 3]\nnp.array_equal(a, b)\n# True\n\na = [5, 3, 1]\nb = [6,... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16002179/"
] |
74,653,446 | <p>I have the following code in React:</p>
<pre class="lang-js prettyprint-override"><code>const TABS = [
{
value: "Names",
label: "Names",
onclick: (obj) => {
tabOnClick(obj.value);
},
selected: mainTabSelected,
},
{
value: ... | [
{
"answer_id": 74653427,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": -1,
"selected": false,
"text": "numpy.array_equal a = [1, 9, 4, 6, 3]\nb = [1, 9, 4, 6, 3]\nnp.array_equal(a, b)\n# True\n\na = [5, 3, 1]\nb = [6,... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12519901/"
] |
74,653,464 | <p>My OS is Windows. When creating a Docker container and interacting with it using Windows powershell:</p>
<pre><code>docker create -i --name test_container debian
docker container start -i test_container
</code></pre>
<p>And running a command such as <code>ls</code>, then it gives the following error:</p>
<pre><code>... | [
{
"answer_id": 74654052,
"author": "user20664576",
"author_id": 20664576,
"author_profile": "https://Stackoverflow.com/users/20664576",
"pm_score": 0,
"selected": false,
"text": "-t docker create -it --name test_container debian \ndocker container start -i test_container\n"
},
{
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20664576/"
] |
74,653,466 | <p>I am trying to concatonate multiple columns to just one column, but only if the column name is in a list.
so issue = {'a','b','c'} is my list and would need to concatonate it as issue column with ; seperator.</p>
<p>I have tried:
1.</p>
<pre><code>df_issue = df.withColumn('issue', concat_ws(';',map_values(custom.({i... | [
{
"answer_id": 74654052,
"author": "user20664576",
"author_id": 20664576,
"author_profile": "https://Stackoverflow.com/users/20664576",
"pm_score": 0,
"selected": false,
"text": "-t docker create -it --name test_container debian \ndocker container start -i test_container\n"
},
{
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14833314/"
] |
74,653,488 | <p>I created a hook which works well when I toggle between light and dark modes in Chrome's Rendering, panel. However, the values in the ConfigProvider do not change when the theme is toggled. Can someone explain how to hack the design token to achieve the desired result?</p>
<pre class="lang-js prettyprint-override"><... | [
{
"answer_id": 74654052,
"author": "user20664576",
"author_id": 20664576,
"author_profile": "https://Stackoverflow.com/users/20664576",
"pm_score": 0,
"selected": false,
"text": "-t docker create -it --name test_container debian \ndocker container start -i test_container\n"
},
{
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13482737/"
] |
74,653,520 | <p>So, I already finish to create a job in Dataflow. This job to process ETL from PostgreSQL to BigQuery. So, I don't know to create a schedulling using Airflow. Can share how to schedule job dataflow using Airflow?</p>
<p>Thank you</p>
| [
{
"answer_id": 74654052,
"author": "user20664576",
"author_id": 20664576,
"author_profile": "https://Stackoverflow.com/users/20664576",
"pm_score": 0,
"selected": false,
"text": "-t docker create -it --name test_container debian \ndocker container start -i test_container\n"
},
{
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13939457/"
] |
74,653,536 | <p>I'm trying to end the process when I run my code using a switch case.</p>
<p>Full code:</p>
<pre><code>int[] Slots = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
while (true)
{
Console.WriteLine("Please enter the number of the slot (1-10)");
int Slot = Convert.ToInt32(Console.ReadLine());
if (Slot... | [
{
"answer_id": 74653697,
"author": "Kisar",
"author_id": 7691321,
"author_profile": "https://Stackoverflow.com/users/7691321",
"pm_score": 0,
"selected": false,
"text": "break break int var"
},
{
"answer_id": 74653703,
"author": "cmos",
"author_id": 8283536,
"author_p... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20664671/"
] |
74,653,613 | <p>We have a database for 3 book shops, all with an attached inventory and books in random units in stock. The query should display each bookstore, so 3 rows, followed by the quantity (which book in X book store has the highest value calculated with <code>MAX(INV.UnitsInStock)</code>, and finally a third column that di... | [
{
"answer_id": 74658483,
"author": "HSS",
"author_id": 553231,
"author_profile": "https://Stackoverflow.com/users/553231",
"pm_score": -1,
"selected": false,
"text": "SELECT BS.Name,B.Title, MAX(UnitsInStock) AS 'Quantity'\nFROM Inventories AS INV\nJOIN BookShops AS BS ON BS.Id = INV.Sho... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653613",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20664838/"
] |
74,653,630 | <p>Sorry for the strange title, I don't know how to phrase it better.</p>
<p>Here is a playground link to what I already have:
<a href="https://www.typescriptlang.org/play?ssl=12&ssc=2&pln=1&pc=1#code/MYGwhgzhAECyCeBhcUA8AVAfNA3gWAChpoBbeWMAB2gF5oA7AUwHc4rUBpAGmgApfKYeCAD2YACYAuaOgDaHALoBKWtgBuIgJbilshZl5KA... | [
{
"answer_id": 74658483,
"author": "HSS",
"author_id": 553231,
"author_profile": "https://Stackoverflow.com/users/553231",
"pm_score": -1,
"selected": false,
"text": "SELECT BS.Name,B.Title, MAX(UnitsInStock) AS 'Quantity'\nFROM Inventories AS INV\nJOIN BookShops AS BS ON BS.Id = INV.Sho... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2722783/"
] |
74,653,677 | <p>Here is my dictionary:</p>
<p><code>inventory = {60: 20, 100: 50, 120: 30}</code></p>
<p>Keys are total cost of goods [$] and values are available weight [lb].</p>
<p>I need to find a way to get key based on the highest cost per pound.</p>
<p>I have already tried using:</p>
<p><code>most_expensive = max(inventory, k... | [
{
"answer_id": 74653722,
"author": "ViggoTW",
"author_id": 10512586,
"author_profile": "https://Stackoverflow.com/users/10512586",
"pm_score": 0,
"selected": false,
"text": "max([key/value for key, value in inventory.items()])"
},
{
"answer_id": 74653747,
"author": "Thymen",
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12729533/"
] |
74,653,690 | <p>I am trying to duplicate all values in an array in my sheet. I have {1,6,14,15} and I want to output {1,1,6,6,14,14,15,15}. I would like to do this exclusively with functions. I have seen the VSTACK function, which seems very useful, however joining the insider thing seems like a hassle and would not allow this spre... | [
{
"answer_id": 74653738,
"author": "dobby",
"author_id": 948979,
"author_profile": "https://Stackoverflow.com/users/948979",
"pm_score": 0,
"selected": false,
"text": "ROW =TRANSPOSE(ROW(1:4)^0)\n ROW ^0 TRANSPOSE A B C D\n1 {1,1,1,1} {2,2,2,2} {3,3,3,3} {4,... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12421378/"
] |
74,653,707 | <p>I believe common lisp is the only language I have worked with that have a variety of extremely useful data structures.</p>
<p>The a-list being the most important one to me. I use it all the time.</p>
<p>When and why do you (or should you) use hash tables?</p>
<p>My reluctance to using them is that, unlike the other ... | [
{
"answer_id": 74654373,
"author": "coredump",
"author_id": 124319,
"author_profile": "https://Stackoverflow.com/users/124319",
"pm_score": 3,
"selected": true,
"text": "(vector 0 1 2)\n make-person person-age person-name"
},
{
"answer_id": 74661569,
"author": "Ehvince",
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16237416/"
] |
74,653,723 | <p>I cannot say I am so experienced with SQL. Here is my question.
A table TripEvent have millions of rows. It contains a column Bold_ID that is indexed and unique.</p>
<p>So I can have this query</p>
<pre><code>select bold_id from TripEvent where bold_id in (354469477, 354469536, 354469500, 987359)
</code></pre>
<p>Re... | [
{
"answer_id": 74653812,
"author": "gotqn",
"author_id": 1080354,
"author_profile": "https://Stackoverflow.com/users/1080354",
"pm_score": 1,
"selected": false,
"text": "SELECT DS.*\nFROM\n(\n VALUES (354469477)\n ,(354469536)\n ,(354469500)\n ,(987359)\n) D... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/55007/"
] |
74,653,746 | <p>Consider:</p>
<pre><code>let N = 12
let arr = [1, 1, 1, 1, 2, 2, 2, 2, 2, 1, 1, 1]
</code></pre>
<p>Your task is to find the maximum number of times an odd number is continuously repeated in the array.</p>
<p>What is the approach for this?</p>
<p>This is the hint:</p>
<p>1 is repeated 4 times from index 0 to index 3... | [
{
"answer_id": 74653812,
"author": "gotqn",
"author_id": 1080354,
"author_profile": "https://Stackoverflow.com/users/1080354",
"pm_score": 1,
"selected": false,
"text": "SELECT DS.*\nFROM\n(\n VALUES (354469477)\n ,(354469536)\n ,(354469500)\n ,(987359)\n) D... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20655704/"
] |
74,653,773 | <p>I noticed that my script was ignoring my positional arguments in old terminal tabs, but working on recently created ones, so I decided to reduce it to the following:</p>
<pre><code>TAG=test
while getopts 't:' c
do
case $c in
t)
TAG=$OPTARG
;;
esac
done
echo $TAG
</code></pre... | [
{
"answer_id": 74653826,
"author": "dobby",
"author_id": 948979,
"author_profile": "https://Stackoverflow.com/users/948979",
"pm_score": 2,
"selected": false,
"text": "getopts getopts -t while getopts 't:' c\ndo\n case $c in\n t)\n TAG=$OPTARG\n ;;\n es... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653773",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13342468/"
] |
74,653,795 | <p>There is a function as follows:</p>
<pre><code>async function validate(value) {
try {
const result = await schema.validate(value, { abortEarly: false });
console.log(result);
return result;
} catch (error) {
console.log(error.errors);
setError({errors:error.errors});
cons... | [
{
"answer_id": 74653826,
"author": "dobby",
"author_id": 948979,
"author_profile": "https://Stackoverflow.com/users/948979",
"pm_score": 2,
"selected": false,
"text": "getopts getopts -t while getopts 't:' c\ndo\n case $c in\n t)\n TAG=$OPTARG\n ;;\n es... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653795",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19200481/"
] |
74,653,804 | <p>I have a list of integer pairs</p>
<pre><code>[(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (0, 6), (0, 7), (0, 8), (0, 9), (1, 0), (1, 1)]
</code></pre>
<p>I want to take each element <code>(0,0)</code> then <code>(0,1)</code>, etc. pair, to XOR the two numbers between them and the result converted to binary.</p... | [
{
"answer_id": 74653826,
"author": "dobby",
"author_id": 948979,
"author_profile": "https://Stackoverflow.com/users/948979",
"pm_score": 2,
"selected": false,
"text": "getopts getopts -t while getopts 't:' c\ndo\n case $c in\n t)\n TAG=$OPTARG\n ;;\n es... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20594243/"
] |
74,653,806 | <p>I have an array of numbers with these values</p>
<pre><code>const arr = [NaN, NaN, 1, 2, 3, NaN, NaN, 4, 5, 6, 7, NaN, 8, 9, 10, NaN, 100, 200, 300, 400, 500];
</code></pre>
<p>How can I sum each of these consecutive values, while skipping the false values (NaN).</p>
<p>Expected result:</p>
<pre><code>const res = [6... | [
{
"answer_id": 74653874,
"author": "Aschen",
"author_id": 5422365,
"author_profile": "https://Stackoverflow.com/users/5422365",
"pm_score": -1,
"selected": false,
"text": "let arr = [NaN, NaN, 1, 2, 3, NaN, NaN, 4, 5, 6, 7, NaN, 8, 9, 10, NaN, 100, 200, 300, 400, 500];\nlet sum = 0;\n\nf... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9020506/"
] |
74,653,849 | <p>I'm trying to create a new <code>SCNScene</code> from 'diceCollada.scn' file.
But this file won't be loaded.
<a href="https://i.stack.imgur.com/vMg7N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vMg7N.png" alt="enter image description here" /></a></p>
<p>This file is in "ARDicee/art.assets... | [
{
"answer_id": 74653874,
"author": "Aschen",
"author_id": 5422365,
"author_profile": "https://Stackoverflow.com/users/5422365",
"pm_score": -1,
"selected": false,
"text": "let arr = [NaN, NaN, 1, 2, 3, NaN, NaN, 4, 5, 6, 7, NaN, 8, 9, 10, NaN, 100, 200, 300, 400, 500];\nlet sum = 0;\n\nf... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19362896/"
] |
74,653,858 | <p>I am trying to install <code>WSO2 APIM 4.1.0</code> in <code>Windows 11</code> Enterprise Edition.</p>
<ul>
<li>Downloaded zip Achieve from <a href="https://wso2.com/api-manager/#" rel="nofollow noreferrer">wso2 site</a></li>
<li><code>JAVA_HOME</code> already set as <code>C:\Program Files\Java\jdk1.8.0_291</code></... | [
{
"answer_id": 74655242,
"author": "Lakshitha",
"author_id": 11414612,
"author_profile": "https://Stackoverflow.com/users/11414612",
"pm_score": 0,
"selected": false,
"text": "WSO2 API Manager v4.1.0"
},
{
"answer_id": 74655255,
"author": "Justin",
"author_id": 9907182,
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9907182/"
] |
74,653,859 | <p>I need to find the X and Y position of a div within another div, and not relative to the viewport like getboundingclient() returns. Is there a way to do this?</p>
<p><a href="https://i.stack.imgur.com/BR6YC.png" rel="nofollow noreferrer">Position Relative to the Parent Div</a></p>
| [
{
"answer_id": 74655242,
"author": "Lakshitha",
"author_id": 11414612,
"author_profile": "https://Stackoverflow.com/users/11414612",
"pm_score": 0,
"selected": false,
"text": "WSO2 API Manager v4.1.0"
},
{
"answer_id": 74655255,
"author": "Justin",
"author_id": 9907182,
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20184841/"
] |
74,653,863 | <blockquote>
<p>Hello, I want to pull the links from this page. All the knowledge in that field comes in according to my own methods. But I just need the links. How can I scrape links?(Pyhton-Beautifulsoup)</p>
</blockquote>
<pre><code>make_list = base_soup.findAll('div', {'a class': 'link--muted no--text--decoration r... | [
{
"answer_id": 74655242,
"author": "Lakshitha",
"author_id": 11414612,
"author_profile": "https://Stackoverflow.com/users/11414612",
"pm_score": 0,
"selected": false,
"text": "WSO2 API Manager v4.1.0"
},
{
"answer_id": 74655255,
"author": "Justin",
"author_id": 9907182,
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20173428/"
] |
74,653,875 | <p>I have the following table <code>INPUT</code>:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>ID</th>
<th>DATE</th>
<th>TYPE</th>
</tr>
</thead>
<tbody>
<tr>
<td>884</td>
<td>2017-03-16 06:08:40</td>
<td>B</td>
</tr>
<tr>
<td>857</td>
<td>2017-03-24 07:14:29</td>
<td>A</td>
</tr>
<tr>
<... | [
{
"answer_id": 74653909,
"author": "dobby",
"author_id": 948979,
"author_profile": "https://Stackoverflow.com/users/948979",
"pm_score": 0,
"selected": false,
"text": "TYPE FIRST_VALUE TYPE field ID FIRST_VALUE CREATE OUTPUT AS\nSELECT\n ID,\n MIN(DATE) AS DATE,\n FIRST_VALUE(TYPE) OV... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6537892/"
] |
74,653,884 | <p>Is it possible to provide a default value to a Guid parameter in an ASP.Net core (.net 7) web api?</p>
<p>Like this:</p>
<pre><code>[HttpGet()]
public async Task<ActionResult<Foo>> PostSomething(Guid tenantId = "21c10283-6db0-489b-94d0-f0b3969fc799") // <<-- invalid of course
</code></pre... | [
{
"answer_id": 74654218,
"author": "Roman Ryzhiy",
"author_id": 7592390,
"author_profile": "https://Stackoverflow.com/users/7592390",
"pm_score": 0,
"selected": false,
"text": "// define your default or take it from somewhere\nstatic Guid defaultGuid = Guid.Parse(\"21c10283-6db0-489b-94d... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1537195/"
] |
74,653,918 | <p>I need to create a report that displays information about what part of the salary in percentage terms each employee receives within the department in which they work, using analytical functions.</p>
<pre><code>SELECT EMPLOYEES.FIRST_NAME, EMPLOYEES.LAST_NAME, EMPLOYEES.DEPARTMENT_ID,
DEPARTMENTS.DEPARTMENT_NAME, EM... | [
{
"answer_id": 74654018,
"author": "Alex Poole",
"author_id": 266304,
"author_profile": "https://Stackoverflow.com/users/266304",
"pm_score": 2,
"selected": false,
"text": "over (SALARY/SUM(SALARY)) * 100 over (partition by DEPARTMENT_ID)\n (SALARY/SUM(SALARY) over (partition by DEPARTM... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20617869/"
] |
74,653,946 | <p>I have a table for emails with "primary" radiobuttons column which means only one of them could have class .checked. How can I check this with Cypress?</p>
<p>I tried this but it's not working for classes since it checks if all the elements in the column to have this class.</p>
<p>P.S I'm using TypeScript ... | [
{
"answer_id": 74654003,
"author": "Schiff",
"author_id": 20664332,
"author_profile": "https://Stackoverflow.com/users/20664332",
"pm_score": 2,
"selected": false,
"text": "cy.get('td:nth-child(2):checked')\n .should('have.length', 1)\n"
}
] | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653946",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20665031/"
] |
74,653,947 | <p>Using Jest in bitbucket pipelines, it doesn't find the tests and hence failed with the following error :</p>
<pre class="lang-bash prettyprint-override"><code>+ npx jest
No tests found, exiting with code 1
Run with `--passWithNoTests` to exit with code 0
In /opt/atlassian/pipelines/agent/build
12 files checked.
... | [
{
"answer_id": 74654141,
"author": "armful",
"author_id": 20664163,
"author_profile": "https://Stackoverflow.com/users/20664163",
"pm_score": 0,
"selected": false,
"text": "testPathIgnorePatterns jest.config.js testPathIgnorePatterns src testPathIgnorePatterns testPathIgnorePatterns src ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653947",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6181096/"
] |
74,653,972 | <p>I have a function that splits a slice into three parts, a leading and trailing slice, and a reference to the middle element.</p>
<pre><code>/// The leading and trailing parts of a slice.
struct LeadingTrailing<'a, T>(&'a mut [T], &'a mut [T]);
/// Divides one mutable slice into three parts, a leading ... | [
{
"answer_id": 74654118,
"author": "Finomnis",
"author_id": 2902833,
"author_profile": "https://Stackoverflow.com/users/2902833",
"pm_score": 2,
"selected": false,
"text": "to_chain() impl Iterator /// The leading and trailing parts of a slice.\n#[derive(Debug)]\npub struct LeadingTraili... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3052832/"
] |
74,653,976 | <p>I search that resize event detect when i resizing the windows, and i know the widht o window can i get it using <code>window.innerWidth</code> or <code>innerWidht</code></p>
<pre><code>const swiperRooms = document.querySelector('#swiperRooms'); //this contain class mySwiper-rooms
addEventListener("resize",... | [
{
"answer_id": 74654118,
"author": "Finomnis",
"author_id": 2902833,
"author_profile": "https://Stackoverflow.com/users/2902833",
"pm_score": 2,
"selected": false,
"text": "to_chain() impl Iterator /// The leading and trailing parts of a slice.\n#[derive(Debug)]\npub struct LeadingTraili... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15407192/"
] |
74,653,996 | <p>I need to transform dict { name : department } to { department : [ name ] } and print all names after transformation, but it prints me only one, what is wrong here?</p>
<p><strong>I need to use dictionary comprehension method.</strong></p>
<p>Tried this, but it doesn't work as expected:</p>
<pre><code>orig_dict = {'... | [
{
"answer_id": 74654177,
"author": "Cobra",
"author_id": 17580381,
"author_profile": "https://Stackoverflow.com/users/17580381",
"pm_score": 1,
"selected": false,
"text": "orig_dict = {'Tom': 'HR', 'Ted': 'IT', 'Ken': 'Marketing', 'Jason': 'Marketing', 'Jesica': 'IT', 'Margo': 'IT', 'Mar... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20527602/"
] |
74,653,998 | <p>I have simple note app based on Django+Rest+React. It contains list of notes page (<code>NotesListPage.js</code>) and note pages (<code>NotePage.js</code>). List of notes page contains short previews, titles and links to note pages. The NotePage, in addition to the entire content, contains delete and update function... | [
{
"answer_id": 74654177,
"author": "Cobra",
"author_id": 17580381,
"author_profile": "https://Stackoverflow.com/users/17580381",
"pm_score": 1,
"selected": false,
"text": "orig_dict = {'Tom': 'HR', 'Ted': 'IT', 'Ken': 'Marketing', 'Jason': 'Marketing', 'Jesica': 'IT', 'Margo': 'IT', 'Mar... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74653998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5975285/"
] |
74,654,015 | <p>I have an array of products that looks like this
<a href="https://i.stack.imgur.com/Q0H9F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q0H9F.png" alt="enter image description here" /></a>
I am trying to filter out products with a specific category,</p>
<pre><code> const filteredTrendingProducts... | [
{
"answer_id": 74654048,
"author": "Greg",
"author_id": 1661367,
"author_profile": "https://Stackoverflow.com/users/1661367",
"pm_score": -1,
"selected": false,
"text": "const filteredTrendingProducts = products.filter(\n (item) => return item.data.category === \"Kids\"\n);\nsetTrending... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654015",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13541483/"
] |
74,654,034 | <p>I used the enrich mediator to add a payload containing the name and totalnote of students
my problem that i want to replace the values with the property</p>
<p>here is my code</p>
<pre><code> <property expression="get-property('uri.var.nom')" name="uri.var.nom" scope="default" typ... | [
{
"answer_id": 74655887,
"author": "ycr",
"author_id": 2627018,
"author_profile": "https://Stackoverflow.com/users/2627018",
"pm_score": 0,
"selected": false,
"text": "{ \"etudiants\": { \"nom\": \"\", \"note\": \"\" }} <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<api context=\"/HelloWor... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654034",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20442057/"
] |
74,654,037 | <p>I´m still learning to code, and I'm making a new project with MDI forms (C# and Visual Studio 2019). In mdichild, I launched a task, but if the form is unloaded, the task still remains. I would like to know how cancel the task, even on a cancel button click.</p>
<p>The code:</p>
<pre><code>private async void BuscaAc... | [
{
"answer_id": 74654112,
"author": "ˈvɔlə",
"author_id": 1865613,
"author_profile": "https://Stackoverflow.com/users/1865613",
"pm_score": 2,
"selected": false,
"text": "CancellationTokenSource cts = new();\n\nprivate async Task BuscaActualizaciones()\n{\n await Task.Run(DoLongThing, ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2429551/"
] |
74,654,080 | <p>I'm having problem translating my JavaScript snippet to Python.</p>
<p>The JavaScript code looks like this:</p>
<pre class="lang-js prettyprint-override"><code>const reviver = (_key, value) => {
try {
return JSON.parse(value, reviver);
} catch {
if(typeof value === 'string') {
const semiValues =... | [
{
"answer_id": 74654164,
"author": "AschenAI",
"author_id": 20665111,
"author_profile": "https://Stackoverflow.com/users/20665111",
"pm_score": -1,
"selected": false,
"text": "def reviver(_key, value):\n try:\n return json.loads(value, object_hook=reviver)\n except:\n ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10664990/"
] |
74,654,082 | <p>I want to extract the IP address from the input string</p>
<pre><code>[IP-Address]: [ipv4]: [10.124.25.210]
</code></pre>
<p>using <code>Pattern</code> matching in Java. There are 2 whitespaces after <code>:</code>.</p>
<p>What would be the regex for the same?</p>
<p>The pattern that I tried with was:</p>
<pre><code... | [
{
"answer_id": 74654143,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 1,
"selected": false,
"text": "String input = \"[IP-Address]: [ipv4]: [10.124.25.210]\";\nString ip = input.replaceAll(\".*\\\\[|\\\\]\", \... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13823913/"
] |
74,654,097 | <p>I am trying to access members of an existing Mailman 3 mailing list directly from <a href="https://docs.mailman3.org/en/latest/django-primer.html#management-commands" rel="nofollow noreferrer">Django Management console</a> on a Debian Bullseye where Mailman is installed from deb packages (<code>mailman3-full</code>)... | [
{
"answer_id": 74655150,
"author": "Mailman3.com",
"author_id": 1934852,
"author_profile": "https://Stackoverflow.com/users/1934852",
"pm_score": 1,
"selected": false,
"text": "mailman shell"
},
{
"answer_id": 74661749,
"author": "Philip Iezzi",
"author_id": 5982842,
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5982842/"
] |
74,654,127 | <p>This is my mysql-deployment.yaml I am trying to get this to run on kubernetes but I am getting error I have mentioned the errors below my deployment.yml</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
name: mysql
labels:
app: mysql
tier: database
spec:
ports:
- port: 3306
targetPort: 33... | [
{
"answer_id": 74655150,
"author": "Mailman3.com",
"author_id": 1934852,
"author_profile": "https://Stackoverflow.com/users/1934852",
"pm_score": 1,
"selected": false,
"text": "mailman shell"
},
{
"answer_id": 74661749,
"author": "Philip Iezzi",
"author_id": 5982842,
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20641267/"
] |
74,654,145 | <p>I am trying to find a way to compute values that are of type <code>uint1024_t</code> (unsigned 1024-bit integer), by defining the 5 basic operations: plus, minus, times, divide, modulus.</p>
<p>The way that I can do that is by creating a structure that will have the following prototype:</p>
<pre><code>typedef struct... | [
{
"answer_id": 74655150,
"author": "Mailman3.com",
"author_id": 1934852,
"author_profile": "https://Stackoverflow.com/users/1934852",
"pm_score": 1,
"selected": false,
"text": "mailman shell"
},
{
"answer_id": 74661749,
"author": "Philip Iezzi",
"author_id": 5982842,
... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18644076/"
] |
74,654,146 | <p>Hey im looking for a random date generator that uses the date of the system how can i do it?
i give an example, if the month is february i want 5 numbers between 1-28 and if the month is january i want 5 numbers between 1-31</p>
<p>ive tried to do it with</p>
<pre><code>private Random gen = new Random();
DateTime Ra... | [
{
"answer_id": 74654937,
"author": "Hans Kesting",
"author_id": 121309,
"author_profile": "https://Stackoverflow.com/users/121309",
"pm_score": 0,
"selected": false,
"text": "Random gen = new Random();\n\n// returns a *list* of dates\npublic List<DateTime> GetRandomDatesInOneMonth(int cou... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20665214/"
] |
74,654,163 | <p>Given the following test data:</p>
<pre><code>declare @mg nvarchar(max);
set @mg = '{"fiskepind":["ko","hest","gris"]}';
select @mg, JSON_VALUE(@mg,'$.fiskepind')
</code></pre>
<p>How do i get returned a column with:</p>
<pre><code> ko,hest,gris
</code></pre>
<p>Example ret... | [
{
"answer_id": 74656984,
"author": "Tim Jarosz",
"author_id": 2452207,
"author_profile": "https://Stackoverflow.com/users/2452207",
"pm_score": 0,
"selected": false,
"text": "OPENJSON FOR XML PATH STRING_AGG declare @mg nvarchar(max);\nset @mg = '{\"fiskepind\":[\"ko\",\"hest\",\"gris\"]... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654163",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8554170/"
] |
74,654,166 | <p>I create a Task variable and try to await it just for learning purposes with the next code:</p>
<pre><code> static async Task Main(string[] args)
{
Console.WriteLine("Start");
Task myTask = new Task(() => { Console.WriteLine("Done"); });
await... | [
{
"answer_id": 74654278,
"author": "Franz Gleichmann",
"author_id": 5309228,
"author_profile": "https://Stackoverflow.com/users/5309228",
"pm_score": 3,
"selected": false,
"text": "new Task() static async Task Main(string[] args)\n{\n Console.WriteLine(\"Start\");\n Task myTask = n... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8046672/"
] |
74,654,180 | <p>i have created global method that call showDialog, whenever i call it, it wont come out if i put Navigator.pop(context) , if i remove the navigator it will come out. I cannot close the errordialog if i dont have the navigator. Did i do something wrong? below is my code</p>
<pre><code>class GlobalMethod {
static vo... | [
{
"answer_id": 74654333,
"author": "Jasmin Sojitra",
"author_id": 11557906,
"author_profile": "https://Stackoverflow.com/users/11557906",
"pm_score": 0,
"selected": false,
"text": "class GlobalMethod {\n static void showErrorDialog(\n {required String error, required BuildC... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10625379/"
] |
74,654,212 | <p>Pretty new to these orchestration tools. Is it possible to integrate Control-M and mwaa airflow to trigger/ track jobs?</p>
<p>Couldn't find much information regarding the same.</p>
| [
{
"answer_id": 74654333,
"author": "Jasmin Sojitra",
"author_id": 11557906,
"author_profile": "https://Stackoverflow.com/users/11557906",
"pm_score": 0,
"selected": false,
"text": "class GlobalMethod {\n static void showErrorDialog(\n {required String error, required BuildC... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654212",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20665276/"
] |
74,654,231 | <p>I have following piece of code that pulls environment variables via dotenv, can substitute it, if it does not exist and <code>defaultValue</code> is passed or throws error if neither of them contain value. This creates a scenario where execution either crashes or it returns valid value.</p>
<pre><code>const getEnvir... | [
{
"answer_id": 74654364,
"author": "Nullndr",
"author_id": 10503039,
"author_profile": "https://Stackoverflow.com/users/10503039",
"pm_score": 0,
"selected": false,
"text": "if defaultValue string | number | undefined and process.env[variable] === undefined if defaultValue === undefined ... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20241005/"
] |
74,654,240 | <p>Hi i am trying to learn Lua, I was playing around with the language and I come accrosed this code block</p>
<pre><code>for i = 1, 4, 1
do
if(i == 2) then
break
undefinedFunction("print 1")
end
print("print 2")
end
</code></pre>
<p>which is fine for the interprete... | [
{
"answer_id": 74654578,
"author": "Lucas S.",
"author_id": 3124208,
"author_profile": "https://Stackoverflow.com/users/3124208",
"pm_score": 4,
"selected": true,
"text": "1 \"foo\" 1 undefinedFunction == nil break break if if true then\n 1\nend\n if true then\n undefined()\nend\n if f... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17448163/"
] |
74,654,248 | <p>im trying to reverse div with Jquery which when i click a button the divs will reverse and switch place</p>
<pre><code><div class="player1">
<div class="player1-a">
<div class="pemain p1a">
<h4>Samsudin</h4>
</div>
... | [
{
"answer_id": 74654578,
"author": "Lucas S.",
"author_id": 3124208,
"author_profile": "https://Stackoverflow.com/users/3124208",
"pm_score": 4,
"selected": true,
"text": "1 \"foo\" 1 undefinedFunction == nil break break if if true then\n 1\nend\n if true then\n undefined()\nend\n if f... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654248",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20665160/"
] |
74,654,296 | <p>I would like to be able to send requests to the graph API from nodejs.
For that I followed the tutorial <a href="https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-nodejs-console" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-nodejs-c... | [
{
"answer_id": 74654578,
"author": "Lucas S.",
"author_id": 3124208,
"author_profile": "https://Stackoverflow.com/users/3124208",
"pm_score": 4,
"selected": true,
"text": "1 \"foo\" 1 undefinedFunction == nil break break if if true then\n 1\nend\n if true then\n undefined()\nend\n if f... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20408511/"
] |
74,654,313 | <p>I want to add months to a date by conditition.
That means if my ISO column is ET I want to add 92 month.</p>
<p>When I only run this code, i recieve the dates I want.</p>
<pre><code>ymd(paste(comb_extract_all$hv007, comb_extract_all$hv006, "01", sep = "-")) %m+% months(92)
</code></pre>
<p>first ... | [
{
"answer_id": 74654448,
"author": "stefan",
"author_id": 12993861,
"author_profile": "https://Stackoverflow.com/users/12993861",
"pm_score": 2,
"selected": true,
"text": "numeric dplyr::if_else library(lubridate)\nlibrary(dplyr)\n\ncomb_extract_all$date <- ymd(paste(comb_extract_all$hv0... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18169859/"
] |
74,654,355 | <p>A dumb question. How to manipulate columns in Polars?</p>
<p>Explicitly, I have a table with 3 columns : N , Survivors, Deaths</p>
<p>I want to replace Deaths by Deaths * N and Survivors by Survivors * N</p>
<p>the following code is not working</p>
<pre><code>table["SURVIVORS"] = table["SURVIVORS&quo... | [
{
"answer_id": 74654528,
"author": "user120027",
"author_id": 1535961,
"author_profile": "https://Stackoverflow.com/users/1535961",
"pm_score": -1,
"selected": false,
"text": "# Import the pandas library\nimport pandas as pd\n\n# Load the table data into a DataFrame object\ntable = pd.re... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11535369/"
] |
74,654,356 | <p>How to split an array into smaller arrays separated by ""?</p>
<p>I have an array which looks like this:</p>
<pre><code>
`[
'1000', '2000', '3000',
'', '4000', '',
'5000', '6000', '',
'7000', '8000', '9000',
'', '10000'
]
`
</code></pre>
<p>I need arrays which would look like this:</... | [
{
"answer_id": 74654537,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 1,
"selected": false,
"text": "Array.slice() let arr = [\n '1000', '2000', '3000',\n '', '4000', '',\n '5000', '6000', '',\n '7000', '... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20570295/"
] |
74,654,370 | <p>I can produce a query that looks at this separately but when I try and combine it I'm having an issue.</p>
<p>Original example query</p>
<pre><code>Select account_name, count(distinct user_id)
from table
where event like 'birthday'
group by account name
</code></pre>
<p>Any help greatly appreciated</p>
<p>When I tr... | [
{
"answer_id": 74654537,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 1,
"selected": false,
"text": "Array.slice() let arr = [\n '1000', '2000', '3000',\n '', '4000', '',\n '5000', '6000', '',\n '7000', '... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6813879/"
] |
74,654,413 | <p>In the code snippet below, I add a random number to an array every 3 seconds using <a href="https://developer.mozilla.org/en-US/docs/Web/API/setInterval" rel="nofollow noreferrer">setInterval</a>. This goes well, until I try to <strong>also</strong> call the function on the <strong>first render</strong> (see the com... | [
{
"answer_id": 74654458,
"author": "Konrad",
"author_id": 5089567,
"author_profile": "https://Stackoverflow.com/users/5089567",
"pm_score": 3,
"selected": true,
"text": "const [listItems, setListItems] = useState([]);\n\nuseEffect(() => {\n function extendTheList() {\n const rand... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6134029/"
] |
74,654,439 | <p>I can't find any proper tutorial of how to do this.</p>
<p>I tried:</p>
<pre><code>var hashMap = [Int:[String:String]]()
hashMap[7]["height"] = "bla"
hashMap[7]["align"] = "blatoo"
print(hashMap[7]["height"])
</code></pre>
<p>It prints nil</p>
<p>How to do this?</p... | [
{
"answer_id": 74654519,
"author": "Thang Phi",
"author_id": 10650407,
"author_profile": "https://Stackoverflow.com/users/10650407",
"pm_score": 2,
"selected": true,
"text": "[Int:[String:String]] key Int [String:String] [String:String] String String [String:String] 7 hashMap 7 var hashM... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654439",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19559647/"
] |
74,654,449 | <p><a href="https://i.stack.imgur.com/bvGog.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>what i need is when i selected item in combobox to show in listbox and his price in the cost textbox and sum price if i choose another items</p>
<p>this is my code
public void fill_listbox()
{
SqlDataAdapt... | [
{
"answer_id": 74656108,
"author": "Crowcoder",
"author_id": 276469,
"author_profile": "https://Stackoverflow.com/users/276469",
"pm_score": 1,
"selected": false,
"text": "ExecuteNonQuery SELECT public void fill_list()\n{\n try\n {\n con.Open();\n using(SqlCommand cmd... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20552904/"
] |
74,654,474 | <p>I'm trying to save some string content into a file from JavaScript. Below is my code and I'm getting issues because of new lines in the String content.</p>
<p>How to save a file with preserving new lines?</p>
<pre><code>var text = "Hello \n World!"
var file = new Blob([text], {{type:'text/plain'}});
var an... | [
{
"answer_id": 74654508,
"author": "AschenAI",
"author_id": 20665111,
"author_profile": "https://Stackoverflow.com/users/20665111",
"pm_score": -1,
"selected": false,
"text": "var text = \"Hello \\n World!\"\nvar encodedText = encodeURIComponent(text);\nvar file = new Blob([encodedText],... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4249637/"
] |
74,654,503 | <p>I have a dataset with 21 columns there are 2 columns that has 25% missing values, I'm reluctant to drop them or not?
Is it make sence to drop columns that has more than 20% of its data as missing, or how can I determine the percentage of missing values that decide to drop the column</p>
<p>I dropped the columns that... | [
{
"answer_id": 74654508,
"author": "AschenAI",
"author_id": 20665111,
"author_profile": "https://Stackoverflow.com/users/20665111",
"pm_score": -1,
"selected": false,
"text": "var text = \"Hello \\n World!\"\nvar encodedText = encodeURIComponent(text);\nvar file = new Blob([encodedText],... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17574071/"
] |
74,654,504 | <p>Im really new to Nuxt 3 and Vue 3.
I just want simple value change when i click on my div tag.</p>
<pre><code><a id="change" @click="changeValue()">{{value}}</a>
</code></pre>
<pre><code><script lang="ts" setup>
let value = "Old";
function changeValue(){
v... | [
{
"answer_id": 74654508,
"author": "AschenAI",
"author_id": 20665111,
"author_profile": "https://Stackoverflow.com/users/20665111",
"pm_score": -1,
"selected": false,
"text": "var text = \"Hello \\n World!\"\nvar encodedText = encodeURIComponent(text);\nvar file = new Blob([encodedText],... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20622025/"
] |
74,654,524 | <p>Suppose I have this random vector:</p>
<pre><code>julia> rnd = rand(1:100, 1000);
</code></pre>
<p>And I have Boolean indices related to <code>rnd</code> like this:</p>
<pre><code>julia> idx = rand(0:1, 1000);
</code></pre>
<p>If I say <code>rnd[idx]</code>, it will return the <code>rnd</code>'s elements where... | [
{
"answer_id": 74654508,
"author": "AschenAI",
"author_id": 20665111,
"author_profile": "https://Stackoverflow.com/users/20665111",
"pm_score": -1,
"selected": false,
"text": "var text = \"Hello \\n World!\"\nvar encodedText = encodeURIComponent(text);\nvar file = new Blob([encodedText],... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20664373/"
] |
74,654,564 | <p>Hello I'm sorry if my question is a bit silly. I'm learning html css as I go along and I'm currently having trouble placing a sign to the right (blue area) of a container (green area). I tried to position this panel using 'absolute' positioning with top: 0 and right: 0 but part of the panel is hidden.</p>
<p><div cl... | [
{
"answer_id": 74654508,
"author": "AschenAI",
"author_id": 20665111,
"author_profile": "https://Stackoverflow.com/users/20665111",
"pm_score": -1,
"selected": false,
"text": "var text = \"Hello \\n World!\"\nvar encodedText = encodeURIComponent(text);\nvar file = new Blob([encodedText],... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19930293/"
] |
74,654,574 | <p>I'm trying to adapt flutter source code to create a side panel. My code is this :</p>
<pre><code>
class _MyHomePageState extends State<MyHomePage> {
final GlobalKey<ScaffoldState> _scaffoldKey = GlobalKey<ScaffoldState>();
void _openEndDrawer(){
_scaffoldKey.currentState!.openEndDrawer();
... | [
{
"answer_id": 74654660,
"author": "Vignesh KM",
"author_id": 4646166,
"author_profile": "https://Stackoverflow.com/users/4646166",
"pm_score": 2,
"selected": false,
"text": "key: _scaffoldKey @override\n Widget build(BuildContext context) {\n return Scaffold(\n key: _scaffold... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14889083/"
] |
74,654,575 | <p>I have a data class that I pull from internet and I want to save room database but there is a problem like that.</p>
<p><a href="https://i.stack.imgur.com/oZ5WS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oZ5WS.png" alt="enter image description here" /></a></p>
<p>It always gives an error like... | [
{
"answer_id": 74654660,
"author": "Vignesh KM",
"author_id": 4646166,
"author_profile": "https://Stackoverflow.com/users/4646166",
"pm_score": 2,
"selected": false,
"text": "key: _scaffoldKey @override\n Widget build(BuildContext context) {\n return Scaffold(\n key: _scaffold... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18002913/"
] |
74,654,620 | <p>I do this post because I've a problem...</p>
<p>I do a website for a shop and I want see "Open" when the store is open and "Close" when the store is close. Normally. BUT! Because they have a BUT! The store close at 12:30AM and 6:30PM. So, when I do the condition like you can see below(The hour is... | [
{
"answer_id": 74654653,
"author": "AschenAI",
"author_id": 20665111,
"author_profile": "https://Stackoverflow.com/users/20665111",
"pm_score": 0,
"selected": false,
"text": "function etatMagasin() {\n let today = new Date()\n let day = today.getDay()\n let hour = today.getHours... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20292170/"
] |
74,654,639 | <p>I have an image file <code>day.jpg</code> in <code>Resources</code> folder and I want to access it in the code as <code>string path</code> not as <code>byte[] img</code></p>
<p>Here's what I have tried.</p>
<pre><code>string dayWallpaper = Assembly.GetExecutingAssembly().Location + @"..\..\Resources\day.jpg&qu... | [
{
"answer_id": 74654653,
"author": "AschenAI",
"author_id": 20665111,
"author_profile": "https://Stackoverflow.com/users/20665111",
"pm_score": 0,
"selected": false,
"text": "function etatMagasin() {\n let today = new Date()\n let day = today.getDay()\n let hour = today.getHours... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18523789/"
] |
74,654,658 | <p>How do I create a discriminated union where I can check either for a statusCode of '0000' or not '0000', so that the correct object type is used?</p>
<pre><code>type Foo = {
statusCode: '0000',
something: string
} | {
statusCode: // any string that is not '0000'
somethingElse: string
}
</code></pre>
| [
{
"answer_id": 74654653,
"author": "AschenAI",
"author_id": 20665111,
"author_profile": "https://Stackoverflow.com/users/20665111",
"pm_score": 0,
"selected": false,
"text": "function etatMagasin() {\n let today = new Date()\n let day = today.getDay()\n let hour = today.getHours... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1487636/"
] |
74,654,666 | <p>script which loads consecutive numeric values until 0 is encountered, then find the highest value among the given numbers my script below:</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" ... | [
{
"answer_id": 74654653,
"author": "AschenAI",
"author_id": 20665111,
"author_profile": "https://Stackoverflow.com/users/20665111",
"pm_score": 0,
"selected": false,
"text": "function etatMagasin() {\n let today = new Date()\n let day = today.getDay()\n let hour = today.getHours... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20627074/"
] |
74,654,682 | <p>I have an orphan branch (let's call it output) which contains the documents generated by templates stored on my main branch. I would like to checkout the commit on output that correspond to a specific commit on main.</p>
<p>I settled on using <code>git commit --trailer 'Source: xxxxx'</code> when committing on outpu... | [
{
"answer_id": 74654653,
"author": "AschenAI",
"author_id": 20665111,
"author_profile": "https://Stackoverflow.com/users/20665111",
"pm_score": 0,
"selected": false,
"text": "function etatMagasin() {\n let today = new Date()\n let day = today.getDay()\n let hour = today.getHours... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3719845/"
] |
74,654,696 | <p>I'll start by saying I am a Python beginner, I did try and find an answer to this via similar questions but I'm struggling to grasp some of the solutions in order to tailor them for my own use.</p>
<p>If I have a Pandas dataframe as follows:</p>
<p><a href="https://i.stack.imgur.com/ChZCL.png" rel="nofollow noreferr... | [
{
"answer_id": 74654851,
"author": "abokey",
"author_id": 16120011,
"author_profile": "https://Stackoverflow.com/users/16120011",
"pm_score": 3,
"selected": true,
"text": "abs pandas.DataFrame.sort_values out = df.sort_values(by=\"Score\", key=abs)\n print(out)\n\n Name Score\n3 ma... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2711360/"
] |
74,654,716 | <p>I have a wordpress site/elementor and i want to extend a section/div to the right side outside the main div like in the picture below.</p>
<p>At the moment the div has a fixed width of 1600px but the div goes beyond the page, which isn't really best practice and not really responsive.</p>
<p>A size of 100% covers on... | [
{
"answer_id": 74654851,
"author": "abokey",
"author_id": 16120011,
"author_profile": "https://Stackoverflow.com/users/16120011",
"pm_score": 3,
"selected": true,
"text": "abs pandas.DataFrame.sort_values out = df.sort_values(by=\"Score\", key=abs)\n print(out)\n\n Name Score\n3 ma... | 2022/12/02 | [
"https://Stackoverflow.com/questions/74654716",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11480274/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.