qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,606,698 | <p>I'm trying to use the data copy activity to extract information from azure databricks delta lake, but I've noticed that it doesn't pass the information directly from the delta lake to the SQL server I need, but must pass it to an azure blob storage, when running it, it throws the following error</p>
<pre><code>Error... | [
{
"answer_id": 74613423,
"author": "Pratik Lad",
"author_id": 18043699,
"author_profile": "https://Stackoverflow.com/users/18043699",
"pm_score": 0,
"selected": false,
"text": "spark.hadoop.fs.azure.account.key.<storageaccountname>.blob.core.windows.net <Accesskey>\nspark.databricks.delt... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14170289/"
] |
74,606,749 | <p>Session is invalid when browser is closed, but if the application tab is closed instead of browser, how can we invalid a vaadin flow session?</p>
<p>I guess the following code should be added to some place, but I don't know where. Which event is fired when browser tab is closed? Can anybody help?</p>
<pre><code>Vaad... | [
{
"answer_id": 74611950,
"author": "Tarek Oraby",
"author_id": 11982497,
"author_profile": "https://Stackoverflow.com/users/11982497",
"pm_score": 2,
"selected": false,
"text": "UI UI VaadinSession.getCurrent().getUIs()"
},
{
"answer_id": 74624760,
"author": "lanmaster",
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606749",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18632312/"
] |
74,606,765 | <p>I am working a database that is very poorly organized. There are CustomerIds that are somehow bigger than int64. Here is an example: 88168142359034442077.0</p>
<p>In order to be able to use this ID, I need to turn it into a string and remove the decimal.
I have tried to use the following code:</p>
<pre><code>testdf ... | [
{
"answer_id": 74606946,
"author": "Jérôme Richard",
"author_id": 12939557,
"author_profile": "https://Stackoverflow.com/users/12939557",
"pm_score": 0,
"selected": false,
"text": "testdf['CUSTID'] pandas.Series pandas.Series int Decimal map testdf['CUSTID'] = list(map(int, map(decimal.D... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14615988/"
] |
74,606,779 | <p>In Linux, I'm running the command</p>
<pre><code>pmap -x $PID | tail -n 1
</code></pre>
<p>This gives me a line like the following:</p>
<pre><code>total kB 168194812 870692 852296
</code></pre>
<p>I'm trying to extract the 2nd number (rss) for use. I found this example that works in regex101.com:</p>
<pre... | [
{
"answer_id": 74606824,
"author": "Gilles Quenot",
"author_id": 465183,
"author_profile": "https://Stackoverflow.com/users/465183",
"pm_score": 3,
"selected": true,
"text": "$ pmap -x $PID | gawk 'match($0, /[^0-9]*[0-9]+\\s+([0-9]+)/, a) {print a[1]}'\n870692\n \\d awk '{print $4}'\n g... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20627441/"
] |
74,606,825 | <p>I have two files: a .csv file that has ugly numbered files and a dictionary. Here's a similar and simplified example of the .csv file:</p>
<pre><code>responses <- tribble(
~n_case, ~movie, ~song, ~sex,
1, 2, 2, 0,
2, 1, 1, 0,
3, 2, 4, 1
)
</code></pre>
<p>And here's a similar and simplified example of... | [
{
"answer_id": 74607226,
"author": "stefan",
"author_id": 12993861,
"author_profile": "https://Stackoverflow.com/users/12993861",
"pm_score": 2,
"selected": false,
"text": "list name list across library(dplyr, w = FALSE)\nlibrary(tibble)\n\ndic_split <- split(dic, dic$name) %>%\n lapply... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4669323/"
] |
74,606,877 | <p>I am seeing this error:</p>
<blockquote>
<p>Function lacks ending return statement and return type does not include 'undefined'.</p>
</blockquote>
<p>With this TypeScript code:</p>
<pre><code>function decodeData(
data: string | number[] | ArrayBuffer | Uint8Array,
): string {
const td = new TextDecoder();
if (... | [
{
"answer_id": 74606983,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 0,
"selected": false,
"text": "function decodeData(\n data: string | number[] | ArrayBuffer | Uint8Array,\n): string {\n const td = new TextDecode... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606877",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/107783/"
] |
74,606,882 | <p>I have this string:</p>
<pre><code>a = '91:99 OT (87:87)'
</code></pre>
<p>I would like to split it into:</p>
<pre><code>['91', '99', '87', '87']
</code></pre>
<p>In my case numerical values can vary from 01 to 999 so that I have to use regex module. I am working with Python.</p>
| [
{
"answer_id": 74606983,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 0,
"selected": false,
"text": "function decodeData(\n data: string | number[] | ArrayBuffer | Uint8Array,\n): string {\n const td = new TextDecode... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11779489/"
] |
74,606,911 | <p>I'm writing a rock, paper, scissors, game for a user and computer and I want the user to type in one of the three options i.e "rock" but I'm not sure what kind of exception to use if the user enters say "monkey."</p>
<pre><code>class RockPaperScissors:
def getUserChoice(userchoice):
w... | [
{
"answer_id": 74606983,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 0,
"selected": false,
"text": "function decodeData(\n data: string | number[] | ArrayBuffer | Uint8Array,\n): string {\n const td = new TextDecode... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20076579/"
] |
74,606,914 | <p>I have a query where I should avoid double entry of the same question. In fact, I would like to get only unique values but, I am using the <code>distinct()</code> django function which isn't working.
I have these models:</p>
<pre><code>class QuestionTopic(models.Model):
name = models.CharField(max_length=255)
... | [
{
"answer_id": 74606983,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 0,
"selected": false,
"text": "function decodeData(\n data: string | number[] | ArrayBuffer | Uint8Array,\n): string {\n const td = new TextDecode... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16950492/"
] |
74,606,932 | <pre><code>{
"id": "a1234567-89ab-cdef-0123-456789abcdef",
"properties": {
...
"my_id": "c1234567-89ab-cdef-0123-456789abcdef",
...
}
</code></pre>
<p>Given the above in a file, I want to be able to perform a match (including the 4 leading spaces) on <co... | [
{
"answer_id": 74607166,
"author": "HatLess",
"author_id": 16372109,
"author_profile": "https://Stackoverflow.com/users/16372109",
"pm_score": 2,
"selected": false,
"text": "sed $ sed -e '/my_id/{p;s/id.*\"/value\": \"abcd\"/' -e '}' input_file\n{\n \"id\": \"a1234567-89ab-cdef-0123-456... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4372759/"
] |
74,606,935 | <p>I am trying to make it so the caption for the React web app is the same as Figma design. How do I add a break or invisible character between "we make it simple" and "to create software" so that it looks like this Figma design?</p>
<p><a href="https://i.stack.imgur.com/Z4rpt.png" rel="nofollow nor... | [
{
"answer_id": 74607042,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 2,
"selected": false,
"text": "we make it simple <br /> to create software\n"
},
{
"answer_id": 74607859,
"author": "Oskar Grosser",
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20515851/"
] |
74,606,950 | <p>I have some data (json) that looks like this:</p>
<pre><code>[
{
"name": "Enterprise Networking",
"technology": "Networking"
},
{
"name": "Enterprise Networking",
"technology": "Networking"
... | [
{
"answer_id": 74607042,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 2,
"selected": false,
"text": "we make it simple <br /> to create software\n"
},
{
"answer_id": 74607859,
"author": "Oskar Grosser",
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3617606/"
] |
74,606,961 | <p>I have a table where column A is the date/time, and column B fruits sold. I need a formula that automatically counts how many fruits were sold per day. With the following additional conditions:</p>
<ul>
<li>I need the present-day included. <br/></li>
<li>I need weekends excluded.<br/></li>
<li>I also need this formu... | [
{
"answer_id": 74607042,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 2,
"selected": false,
"text": "we make it simple <br /> to create software\n"
},
{
"answer_id": 74607859,
"author": "Oskar Grosser",
... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16498578/"
] |
74,606,966 | <p><a href="https://i.stack.imgur.com/cBOq8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cBOq8.png" alt="enter image description here" /></a></p>
<p>in the example data set above, I want to assign a Primary_Store for each buyer_id based on the following criteria</p>
<ul>
<li>if one store has more ... | [
{
"answer_id": 74607111,
"author": "Simeon Pilgrim",
"author_id": 43992,
"author_profile": "https://Stackoverflow.com/users/43992",
"pm_score": 1,
"selected": false,
"text": "SELECT \n *\n ,decode(store_type, 'Retail', 1, 'Online', 2, 'Event', 3) as rnk2\n ,row_number() over (pa... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18623003/"
] |
74,606,967 | <p>I created a group tasks using "generate" and was trying to call them using a for loop.</p>
<p>I have used generate block to create multiple instances of module, so I thought I could use it similarly to create multiple tasks. I plan to have no arguments for the tasks, and always call the tasks in a loop. Bu... | [
{
"answer_id": 74607111,
"author": "Simeon Pilgrim",
"author_id": 43992,
"author_profile": "https://Stackoverflow.com/users/43992",
"pm_score": 1,
"selected": false,
"text": "SELECT \n *\n ,decode(store_type, 'Retail', 1, 'Online', 2, 'Event', 3) as rnk2\n ,row_number() over (pa... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20627483/"
] |
74,606,986 | <p>I have a canvas with a little oval in it. It moves throughout the widget using the arrow keys but when it's on the edge of the canvas if I move it beyond that, the oval just disappears.</p>
<p>I want the oval stays on any edge of the canvas no matter if I continue pressing the arrow key corresponding to that edge wi... | [
{
"answer_id": 74607111,
"author": "Simeon Pilgrim",
"author_id": 43992,
"author_profile": "https://Stackoverflow.com/users/43992",
"pm_score": 1,
"selected": false,
"text": "SELECT \n *\n ,decode(store_type, 'Retail', 1, 'Online', 2, 'Event', 3) as rnk2\n ,row_number() over (pa... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74606986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19934155/"
] |
74,607,000 | <p>I need to display text when mouse is over edges (similar to image).
Maybe someone knows how to do it?
I took the example from <a href="https://plotly.com/python/network-graphs/" rel="nofollow noreferrer">plotly.com</a> and trying to modify it.
It fine works for Nodes, but I can not do it for Edges.
<a href="https://... | [
{
"answer_id": 74618785,
"author": "Kat",
"author_id": 5329073,
"author_profile": "https://Stackoverflow.com/users/5329073",
"pm_score": 1,
"selected": false,
"text": "mnode_x, mnode_y, mnode_txt = [], [], []\nedge_x, edge_y = [], []\nfor idx0, idx1 in G.edges():\n x0, y0 = G.nodes[id... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15222211/"
] |
74,607,017 | <p>This is my XML</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<ns1:Message xmlns:ns1="http://API.JOEJANE.Envelope">
<ns1:MessageHeader>
<ns1:MessageId>ce82fe4f-c843-57a6-14a1-15d79773b638</ns1:MessageId>
<ns1:From>ABC</ns1:From>... | [
{
"answer_id": 74610065,
"author": "Jensd",
"author_id": 2189922,
"author_profile": "https://Stackoverflow.com/users/2189922",
"pm_score": 1,
"selected": false,
"text": "def temp-table ttMsgHdr no-undo serialize-name \"MessageHeader\"\n field MsgId as char serialize-name \"Mes... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2635566/"
] |
74,607,048 | <p>I am trying to find a way to replace Keycloak image on the Admin console page using Keycloak.v2 theme which is the default theme starting from Keycloak 19.</p>
<p>Note that replacing <code>themes\keycloak.v2\account\resources\public\logo.svg</code> didn't really help.</p>
| [
{
"answer_id": 74610065,
"author": "Jensd",
"author_id": 2189922,
"author_profile": "https://Stackoverflow.com/users/2189922",
"pm_score": 1,
"selected": false,
"text": "def temp-table ttMsgHdr no-undo serialize-name \"MessageHeader\"\n field MsgId as char serialize-name \"Mes... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607048",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4582691/"
] |
74,607,052 | <p>The problem is that I'm processing some UTF8 strings and I would like to design a class or a way to prevent string manipulations.</p>
<p>String manipulation is not desirable for strings of multibyte characters as splitting the string at a random position (which is measured in bytes) may split a character half way.</... | [
{
"answer_id": 74610065,
"author": "Jensd",
"author_id": 2189922,
"author_profile": "https://Stackoverflow.com/users/2189922",
"pm_score": 1,
"selected": false,
"text": "def temp-table ttMsgHdr no-undo serialize-name \"MessageHeader\"\n field MsgId as char serialize-name \"Mes... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/586981/"
] |
74,607,063 | <p>I have a dataframe 'df1' with a lot of columns, but the ones of interest are:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Number</th>
<th>Code</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td></td>
</tr>
<tr>
<td>2</td>
<td></td>
</tr>
<tr>
<td>3</td>
<td></td>
</tr>
<tr>
<td>10</td>
... | [
{
"answer_id": 74607172,
"author": "akrun",
"author_id": 3732271,
"author_profile": "https://Stackoverflow.com/users/3732271",
"pm_score": 3,
"selected": true,
"text": "library(powerjoin)\npower_left_join(df1, df2, by = \"Number\", conflict = coalesce)\n Number Code\n1 1 AMCR\n2 ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7238688/"
] |
74,607,071 | <p>I seem to be having an issue displaying the fontawesome icon in my browser. It does show in inspect, but not on my website itself.</p>
<p>Does anyone know how to resolve this issue?</p>
<pre><code>import React, { Fragment, useState} from "react";
import { NavLink } from "react-router-dom";
import... | [
{
"answer_id": 74607109,
"author": "Jay F.",
"author_id": 20504019,
"author_profile": "https://Stackoverflow.com/users/20504019",
"pm_score": 3,
"selected": true,
"text": "import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\nimport { faCoffee } from '@fortawesome/free-solid-... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20627647/"
] |
74,607,140 | <p>I would like that a JavaScript function could take a random sentence from a datalist in the same file, and then show it when I click on a button with an "onclick" event. I am looking for the easiest way to do that. Does anyone have an example?</p>
<p>(Just looking around, trying JavaScript for the first ti... | [
{
"answer_id": 74607310,
"author": "DCR",
"author_id": 4398966,
"author_profile": "https://Stackoverflow.com/users/4398966",
"pm_score": 1,
"selected": false,
"text": "let dataList =[\"sentence 1\",\"sentence 2\",\"sentence 3\",\"sentence 4\"]\nlet div = document.getElementById('asd')\nd... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19899760/"
] |
74,607,150 | <p>I am being passed this, 2022-11-01T00:00:00, Date Time as a string. I need to convert it to a DateTime in C# but cannot seem to figure out what exact format the string is in.</p>
<p>I have tried many variations of the following but continue to get String was not recognized as a valid DateTime.</p>
<p>Here is the la... | [
{
"answer_id": 74607310,
"author": "DCR",
"author_id": 4398966,
"author_profile": "https://Stackoverflow.com/users/4398966",
"pm_score": 1,
"selected": false,
"text": "let dataList =[\"sentence 1\",\"sentence 2\",\"sentence 3\",\"sentence 4\"]\nlet div = document.getElementById('asd')\nd... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3728381/"
] |
74,607,211 | <p>I have a problem trying to delete data by providing an array of id's (got error).
I guess it has something to do with ObjectId. Could you help me fix it?</p>
<pre><code>User.deleteMany({
_id: { $in: ['638207a8b9ebc3ea8f276684',
'63823ffe310abc61b4ee11a0',
'63822a71319517d196... | [
{
"answer_id": 74607310,
"author": "DCR",
"author_id": 4398966,
"author_profile": "https://Stackoverflow.com/users/4398966",
"pm_score": 1,
"selected": false,
"text": "let dataList =[\"sentence 1\",\"sentence 2\",\"sentence 3\",\"sentence 4\"]\nlet div = document.getElementById('asd')\nd... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12808136/"
] |
74,607,247 | <p>I had a CS question that wants me to check for the number of palindromes found inside a single array of 6 cells. i was able to solve it by using many for loops, 7 of them to be exact, and I'm trying to find a way to make the code tidier by reducing the number of loops because they all do similar things with minor di... | [
{
"answer_id": 74607422,
"author": "lorro",
"author_id": 6292621,
"author_profile": "https://Stackoverflow.com/users/6292621",
"pm_score": -1,
"selected": false,
"text": "checkPalindrom() checkPalindrom(array + i, size_i); auto checker = [&](int size_i, int i_min, int i_max) {\n for (... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14387127/"
] |
74,607,259 | <ul>
<li>Was trying to deploy my vue/vite project onto github pages and use a custom domain, but ran into some issues and messed things up by using git commands I didn't fully understand</li>
<li>The deployed project worked before I tried adding a custom domain</li>
<li>Followed instructions from the following video to... | [
{
"answer_id": 74607990,
"author": "tymtam",
"author_id": 581076,
"author_profile": "https://Stackoverflow.com/users/581076",
"pm_score": 2,
"selected": false,
"text": "git reflog git checkout the_id_shown_in_git_reflog git checkout 100e500bd git reflog -> git checkout git checkout -b my... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20189924/"
] |
74,607,292 | <p>My problem is that I have a table with data like this -</p>
<pre><code>ID COLORS
--------------------------------------------
1 ["red", "green"]
2 ["blue", "red"]
3 ["red", "green", "yellow", "blue"]
</code></pre>
<p>What ... | [
{
"answer_id": 74607368,
"author": "Adrian Klaver",
"author_id": 7070613,
"author_profile": "https://Stackoverflow.com/users/7070613",
"pm_score": 1,
"selected": false,
"text": "create table color_test (id integer, colors text[]);\n\ninsert into color_test values (1, ARRAY['red', 'green'... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4983051/"
] |
74,607,300 | <p>I have a class whose ctor makes a driver call, and whose dtor makes the matching terminating/release driver call. Those calls can fail. The problem is naturally with the dtor.</p>
<p>I am naturally aware of the common wisdom of avoiding exceptions in dtors, since, if you throw one during stack unwinding, you get <co... | [
{
"answer_id": 74608039,
"author": "Brian Bi",
"author_id": 481267,
"author_profile": "https://Stackoverflow.com/users/481267",
"pm_score": 3,
"selected": false,
"text": "uncaught_exceptions() struct X {\n ~X() noexcept(false) {\n if (std::uncaught_exceptions() == 0) throw FooE... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607300",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1593077/"
] |
74,607,305 | <p>I have a country field and a state field. I want to show the state field when the user chooses United States. Otherwise, I want it to be hidden.</p>
<p>This is my cshtml page of the form.</p>
<pre><code><div class="form-group col-sm-4 mt-4">
<label asp-for="Form.Country" class="... | [
{
"answer_id": 74607531,
"author": "Kevon",
"author_id": 766684,
"author_profile": "https://Stackoverflow.com/users/766684",
"pm_score": 0,
"selected": false,
"text": "@if (Form.Country == \"UnitedStates\")\n{\n MARKUP FOR STATE DROPDOWN\n}\n"
},
{
"answer_id": 74609671,
"aut... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20517307/"
] |
74,607,331 | <p>When I try to access the About page from the menu, I get a 404 error from the server.</p>
<p>I tried changing the relative paths. and I switched to HashRouter in the index.jsx BrowserRouter. I also tried to include routes in app.js with HashRouter</p>
<p>github repo
<a href="https://github.com/brunoBaumgartnerNieder... | [
{
"answer_id": 74607531,
"author": "Kevon",
"author_id": 766684,
"author_profile": "https://Stackoverflow.com/users/766684",
"pm_score": 0,
"selected": false,
"text": "@if (Form.Country == \"UnitedStates\")\n{\n MARKUP FOR STATE DROPDOWN\n}\n"
},
{
"answer_id": 74609671,
"aut... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607331",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20627755/"
] |
74,607,334 | <p>Spotify's lyrics API provides an Array of miliseconds to mark when the lyric line has changed. Having a Media Player that updates it's position every 50ms, how should i code in Kotlin the way to find the correct lyric line? The position param can be in the middle of two values of the array, so I want to get the lowe... | [
{
"answer_id": 74607370,
"author": "SerjantArbuz",
"author_id": 7699617,
"author_profile": "https://Stackoverflow.com/users/7699617",
"pm_score": 0,
"selected": false,
"text": "min Kotlin"
},
{
"answer_id": 74607428,
"author": "Atick Faisal",
"author_id": 12737399,
"a... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14951133/"
] |
74,607,346 | <p>I can not understand the difference between the declaration with array initialization in the first case and the second</p>
<pre><code>int[] array = new int[3] { 1, 2, 3 };
int[] secondArray = { 1, 2, 3 };
</code></pre>
<p>They seem to do the same thing, maybe they work differently?</p>
| [
{
"answer_id": 74607370,
"author": "SerjantArbuz",
"author_id": 7699617,
"author_profile": "https://Stackoverflow.com/users/7699617",
"pm_score": 0,
"selected": false,
"text": "min Kotlin"
},
{
"answer_id": 74607428,
"author": "Atick Faisal",
"author_id": 12737399,
"a... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20426830/"
] |
74,607,356 | <p>I need to find the latitude and longitude coordinates of the four corners of a rectangle in a Python script, given the center coordinate, length, width, and bearing of the shape. Length and width are in statute miles, but honestly converting those to meters is probably one of the easiest parts. I have some examples ... | [
{
"answer_id": 74607370,
"author": "SerjantArbuz",
"author_id": 7699617,
"author_profile": "https://Stackoverflow.com/users/7699617",
"pm_score": 0,
"selected": false,
"text": "min Kotlin"
},
{
"answer_id": 74607428,
"author": "Atick Faisal",
"author_id": 12737399,
"a... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20627769/"
] |
74,607,379 | <p>I have a set of xyz points and a set of tetrahedrons. Where each node of the tetrahedron points to an index in the points table.</p>
<p>I need to plot the tetrahedrons with a corresponding color based on the tag attribute.</p>
<p>points</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Ind... | [
{
"answer_id": 74607592,
"author": "Stéphane Laurent",
"author_id": 1100107,
"author_profile": "https://Stackoverflow.com/users/1100107",
"pm_score": 0,
"selected": false,
"text": "import plotly.graph_objects as go\nimport plotly.io as pio\nimport numpy as np\n\ni = np.array([0, 0, 0, 1]... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3113799/"
] |
74,607,389 | <p>I need a multidimensional array/list (2 and/or 3 dimensions) which must contains different objects.
This is what I found:</p>
<pre><code> List recipes = List.generate(
999,
(_) => List<Ingredient>.filled(
9,
Ingredient(
name: '', carboidrates: 0, proteins: 0, l... | [
{
"answer_id": 74607710,
"author": "masterwok",
"author_id": 563509,
"author_profile": "https://Stackoverflow.com/users/563509",
"pm_score": 2,
"selected": true,
"text": "== hashCode \nclass Recipe {\n final String name;\n final List<Ingredient> ingredients;\n final List<Instruction> ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4651768/"
] |
74,607,408 | <p>How can I get an onclick function to trigger in a Rails 7 view?</p>
<p>I added a simple function:</p>
<pre><code>// app/javascript/application.js
function myTest(myVar){
alert(myVar);
};
myTest("test1");
</code></pre>
<p>The alert for "test1" does trigger on page load. However, I want to tri... | [
{
"answer_id": 74607710,
"author": "masterwok",
"author_id": 563509,
"author_profile": "https://Stackoverflow.com/users/563509",
"pm_score": 2,
"selected": true,
"text": "== hashCode \nclass Recipe {\n final String name;\n final List<Ingredient> ingredients;\n final List<Instruction> ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607408",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/375265/"
] |
74,607,412 | <p>I went to try out the Alire package manager for Ada the other night, and found this in the <a href="https://alire.ada.dev/docs/" rel="nofollow noreferrer">documentation</a>:</p>
<blockquote>
<p>Issue alr init --bin myproj (you can use --lib for a library project)</p>
<p>The first time you run this command, alr will ... | [
{
"answer_id": 74607710,
"author": "masterwok",
"author_id": 563509,
"author_profile": "https://Stackoverflow.com/users/563509",
"pm_score": 2,
"selected": true,
"text": "== hashCode \nclass Recipe {\n final String name;\n final List<Ingredient> ingredients;\n final List<Instruction> ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9254211/"
] |
74,607,435 | <p>In the below <code>awk</code> I am skipping the lines that start with <code>#</code> and trying to find the matching lines between two files based on 4 specific columns, and if a line does not match it outputs the file and line it is missing from. Thank you :).</p>
<p><strong>file1</strong></p>
<pre><code>##....
#..... | [
{
"answer_id": 74607711,
"author": "markp-fuso",
"author_id": 7366100,
"author_profile": "https://Stackoverflow.com/users/7366100",
"pm_score": 3,
"selected": true,
"text": "awk $ awk $ awk f1=1234.txt\nf2=5678.txt\n\nawk '\nBEGIN { FS=OFS=\"\\t\" }\n/^#/ { next }\n { n... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4668368/"
] |
74,607,446 | <p>i am working on a game where you get random numbers 1-25 in individual squares, you also get random colors and font sizes. I have all that set up at this point but what i am struggling with is implementing a check that will check if these numbers have been clicked in the sequence one after another. So, when you sta... | [
{
"answer_id": 74607711,
"author": "markp-fuso",
"author_id": 7366100,
"author_profile": "https://Stackoverflow.com/users/7366100",
"pm_score": 3,
"selected": true,
"text": "awk $ awk $ awk f1=1234.txt\nf2=5678.txt\n\nawk '\nBEGIN { FS=OFS=\"\\t\" }\n/^#/ { next }\n { n... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18992987/"
] |
74,607,479 | <p>I'm using Locate Control in React Leaflet, but the Locate Control buttons are always duplicated, and sometimes I get 3 or 4 of them (see image below). I'm running the function through a useEffect with empty dependency to only fire it once, but no matter. I can target the class with display: none, but then both disap... | [
{
"answer_id": 74611031,
"author": "Disco",
"author_id": 11196441,
"author_profile": "https://Stackoverflow.com/users/11196441",
"pm_score": 2,
"selected": true,
"text": "react-leaflet import { ActionIcon } from \"@mantine/core\";\nimport React, { useState } from \"react\";\nimport { use... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20332660/"
] |
74,607,500 | <p>There's a simple <code>QStandardItemModel</code> defined in c++ which I am displaying in a <code>QML</code> <code>ListView</code> via custom <code>Delegate</code>s and a <code>DelegateModel</code>. The ListView can be reordered via Drag'n Drop:</p>
<pre><code>// The DropArea is part of the delegate `comp_container`
... | [
{
"answer_id": 74618746,
"author": "user2366975",
"author_id": 2366975,
"author_profile": "https://Stackoverflow.com/users/2366975",
"pm_score": 0,
"selected": false,
"text": "pageItemDragOperationStartIndex pageItemDragOperationFinalIndex QStandardItemModel begin/end"
},
{
"answ... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2366975/"
] |
74,607,505 | <p>I wanted to ask. if there is an efficient way to split a string and ignore inner strings of is</p>
<p>Example:
I get a string in this format:</p>
<pre><code>s = 'name,12345,Hello,\"12,34,56\",World'
</code></pre>
<p>and the output I want, is:</p>
<pre><code>['name', '12345', 'Hello', "12,34,56", ... | [
{
"answer_id": 74607547,
"author": "Wolric",
"author_id": 20163209,
"author_profile": "https://Stackoverflow.com/users/20163209",
"pm_score": 2,
"selected": false,
"text": "\", \" split >>> s = 'name, 12345, Hello, \\\"12,34,56\\\", World'\n>>> print(s.split(\", \"))\n['name', '12345', '... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20627803/"
] |
74,607,510 | <p><a href="https://i.stack.imgur.com/poCxI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/poCxI.png" alt="enter image description here" /></a>I am using flutter. I would like to navigate between pages of bottom nav-bar from inside the body of page.
Not to create a new screen on top of it. And carry... | [
{
"answer_id": 74607547,
"author": "Wolric",
"author_id": 20163209,
"author_profile": "https://Stackoverflow.com/users/20163209",
"pm_score": 2,
"selected": false,
"text": "\", \" split >>> s = 'name, 12345, Hello, \\\"12,34,56\\\", World'\n>>> print(s.split(\", \"))\n['name', '12345', '... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20499509/"
] |
74,607,545 | <p>I keep saving a file to <code>$(Build.ArtifactStagingDirectory)</code> but when checking using <code>Get-ChildItem</code>, the directory is empty. Also, publishing doesn't produce anything. Just an empty directory.</p>
<p>Is the only way to save files to that directory is using copy task?</p>
| [
{
"answer_id": 74607547,
"author": "Wolric",
"author_id": 20163209,
"author_profile": "https://Stackoverflow.com/users/20163209",
"pm_score": 2,
"selected": false,
"text": "\", \" split >>> s = 'name, 12345, Hello, \\\"12,34,56\\\", World'\n>>> print(s.split(\", \"))\n['name', '12345', '... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17460932/"
] |
74,607,587 | <p>trying to create a function which generates pairs of users from list. Everyone have to get a pair.
Example list of user IDs:</p>
<pre><code>list = [123, 456, 789]
...smth...
result = {123:456, 456:789, 789:123} — OK
</code></pre>
<pre><code>list = [123, 456, 789]
...smth...
result = {123:456, 456:123, 789:789} — B... | [
{
"answer_id": 74607547,
"author": "Wolric",
"author_id": 20163209,
"author_profile": "https://Stackoverflow.com/users/20163209",
"pm_score": 2,
"selected": false,
"text": "\", \" split >>> s = 'name, 12345, Hello, \\\"12,34,56\\\", World'\n>>> print(s.split(\", \"))\n['name', '12345', '... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16750101/"
] |
74,607,626 | <p>I am just getting started with REST API and I have a few question. I am not sure exactly when it's best to use query parameters or path parameters or to send data in the body?</p>
<p>Right now I am designing a social media platform, and for example I don't know if when a user adds a comment, how should he use it? Is... | [
{
"answer_id": 74607547,
"author": "Wolric",
"author_id": 20163209,
"author_profile": "https://Stackoverflow.com/users/20163209",
"pm_score": 2,
"selected": false,
"text": "\", \" split >>> s = 'name, 12345, Hello, \\\"12,34,56\\\", World'\n>>> print(s.split(\", \"))\n['name', '12345', '... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14546517/"
] |
74,607,663 | <p>I have a df as follows.</p>
<pre><code>TimeStamp,Value
t1,akak
t2,bb
t3,vvv
t5,ff
t6,44
t7,99
t8,kfkkf
t9,ff
t10,oo
</code></pre>
<p>I want to split df into sizes of 2 rows and assign class as group number.</p>
<pre><code>TimeStamp,Value, class
t1,akak,c1
t2,bb,c1
t3,vvv,c2
t4,ff,c2
t5,44,c3
t6,99,c3
... | [
{
"answer_id": 74607547,
"author": "Wolric",
"author_id": 20163209,
"author_profile": "https://Stackoverflow.com/users/20163209",
"pm_score": 2,
"selected": false,
"text": "\", \" split >>> s = 'name, 12345, Hello, \\\"12,34,56\\\", World'\n>>> print(s.split(\", \"))\n['name', '12345', '... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607663",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/93796/"
] |
74,607,690 | <p>Why does this program output a negative value?</p>
<pre><code>#include <stdio.h>
int main() {
char a = 'a', b = 'b', c;
c = a + b;
printf("%d", c);
}
</code></pre>
<p>Shouldn't these values be converted into ASCII then added up?</p>
| [
{
"answer_id": 74607716,
"author": "3Dave",
"author_id": 135769,
"author_profile": "https://Stackoverflow.com/users/135769",
"pm_score": 1,
"selected": false,
"text": "char -127 +128 char char 0 255 'a' 'b' 97 98 195 char -61 unsigned char #include <stdio.h>\n\nint main() {\n \n ch... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20628040/"
] |
74,607,691 | <p>I am trying to copy one dynamically reserved array into another, both of which are placed in a vector. But it does not work. Why?</p>
<pre><code>struct A {
int *p;
};
int main()
{
vector<A> v;
A test;
test.p = new int[5];
//fill the array
for (int i = 0; i < 5; i++)
test.p[... | [
{
"answer_id": 74607817,
"author": "Ranoiaetep",
"author_id": 12861639,
"author_profile": "https://Stackoverflow.com/users/12861639",
"pm_score": 2,
"selected": true,
"text": "A test test new int[10] test.p v[0].p = test.p;\n"
},
{
"answer_id": 74607857,
"author": "Ryan Haini... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12999319/"
] |
74,607,699 | <p>Binding to observable property does not work when I try to create my own custom behavior. Neither it does in any of community mvvm toolkit platform behaviors:</p>
<p><a href="https://github.com/CommunityToolkit/Maui/tree/main/src/CommunityToolkit.Maui/Behaviors/PlatformBehaviors" rel="nofollow noreferrer">https://gi... | [
{
"answer_id": 74608621,
"author": "Alexandar May - MSFT",
"author_id": 9644964,
"author_profile": "https://Stackoverflow.com/users/9644964",
"pm_score": 3,
"selected": true,
"text": "StatusBarColor StatusBarColor=\"Red\" <ContentPage.Behaviors> \n <toolkit:StatusBarBehavior x:Na... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/738999/"
] |
74,607,741 | <p>This is easy to do in R and I am wondering if it is straight forward in Python and I am just missing something, but how do you create a vector of NaN values and Null values in Python? I am trying to do this using the np.full function.</p>
<p>R Code:</p>
<pre><code>vec <- vector("character", 15)
vec[1:1... | [
{
"answer_id": 74607763,
"author": "Alexander L. Hayes",
"author_id": 12439119,
"author_profile": "https://Stackoverflow.com/users/12439119",
"pm_score": 0,
"selected": false,
"text": "numpy np.nan import numpy as np\n\nv1 = np.array(['a', 'b', 'c'])\nv1[0] = np.nan\n# v1 = array(['n', '... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14815520/"
] |
74,607,750 | <p>I have a view that has the days of the week, which should increment when the user toggles the arrows (increment either to the next or prev day).</p>
<p>I first grab the current day of the week and format to a String. Then save to my var currentWeekday:</p>
<pre class="lang-swift prettyprint-override"><code>class Gr... | [
{
"answer_id": 74607763,
"author": "Alexander L. Hayes",
"author_id": 12439119,
"author_profile": "https://Stackoverflow.com/users/12439119",
"pm_score": 0,
"selected": false,
"text": "numpy np.nan import numpy as np\n\nv1 = np.array(['a', 'b', 'c'])\nv1[0] = np.nan\n# v1 = array(['n', '... | 2022/11/28 | [
"https://Stackoverflow.com/questions/74607750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8023463/"
] |
74,607,769 | <p>I have a data looks like this</p>
<pre><code>df <- structure(list(Data = c("D1", "D2", "D3", "D4", "D5", "D6", "D7",
"D8", "D9", "D10", "D11", "D12", "D13", "D14", "D15... | [
{
"answer_id": 74607864,
"author": "jared_mamrot",
"author_id": 12957340,
"author_profile": "https://Stackoverflow.com/users/12957340",
"pm_score": 2,
"selected": false,
"text": "library(tidyverse)\nlibrary(ggrepel)\n\ndf <- structure(list(Data = c(\"D1\", \"D2\", \"D3\", \"D4\", \"D5\",... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74607769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5919561/"
] |
74,607,788 | <p>I have a view in django that utilizes jQuery to retrieve some data from the backend once the user selects some filter options. After the data is retrieved I'm dynamically creating table rows and appending them to the table body. Each row contains data about a release, each release has a unique ID. I would like if ... | [
{
"answer_id": 74607864,
"author": "jared_mamrot",
"author_id": 12957340,
"author_profile": "https://Stackoverflow.com/users/12957340",
"pm_score": 2,
"selected": false,
"text": "library(tidyverse)\nlibrary(ggrepel)\n\ndf <- structure(list(Data = c(\"D1\", \"D2\", \"D3\", \"D4\", \"D5\",... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74607788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16817855/"
] |
74,607,790 | <p>For example,
Lets say you have a list of apples</p>
<pre><code>List<String> apples = ['green', 'red','red', 'yellow']
</code></pre>
<p>And you want to remove just one red apple using .removeWhere</p>
<pre><code>apples.removeWhere((element => element == 'red));
</code></pre>
<p>however, this removes all inst... | [
{
"answer_id": 74607864,
"author": "jared_mamrot",
"author_id": 12957340,
"author_profile": "https://Stackoverflow.com/users/12957340",
"pm_score": 2,
"selected": false,
"text": "library(tidyverse)\nlibrary(ggrepel)\n\ndf <- structure(list(Data = c(\"D1\", \"D2\", \"D3\", \"D4\", \"D5\",... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74607790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14868799/"
] |
74,607,810 | <p>I'm trying to write a bash script that will create a new directory with a name based on the last directory created. For example - if I have the following folders in a directory:</p>
<p>00001
00002
00003</p>
<p>and I run the script again I would like it to determine that the last folder is '00003' and then create '00... | [
{
"answer_id": 74607864,
"author": "jared_mamrot",
"author_id": 12957340,
"author_profile": "https://Stackoverflow.com/users/12957340",
"pm_score": 2,
"selected": false,
"text": "library(tidyverse)\nlibrary(ggrepel)\n\ndf <- structure(list(Data = c(\"D1\", \"D2\", \"D3\", \"D4\", \"D5\",... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74607810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20628051/"
] |
74,607,822 | <p>I'm doing a Javascript test (I'm nowhere near an expert in the matter, I'm much more experienced in Java) and I'm just completely lost, given these declarations:</p>
<p><strong>Number 1</strong></p>
<pre><code>const paddockType = [
{ id: 1, name: 'PALTOS' },
{ id: 2, name: 'AVELLANOS' },
{ id: 3, name: '... | [
{
"answer_id": 74607864,
"author": "jared_mamrot",
"author_id": 12957340,
"author_profile": "https://Stackoverflow.com/users/12957340",
"pm_score": 2,
"selected": false,
"text": "library(tidyverse)\nlibrary(ggrepel)\n\ndf <- structure(list(Data = c(\"D1\", \"D2\", \"D3\", \"D4\", \"D5\",... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74607822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17590305/"
] |
74,607,870 | <p>I am using the <strong>re</strong> package's <code>re.findall</code> to extract terms from strings. How can I make a regex to say capture these matches unless you see this substring (in this case the substring <code>"fake"</code>). I attempted this via a anchored look-ahead solution.</p>
<p><strong>Curre... | [
{
"answer_id": 74607864,
"author": "jared_mamrot",
"author_id": 12957340,
"author_profile": "https://Stackoverflow.com/users/12957340",
"pm_score": 2,
"selected": false,
"text": "library(tidyverse)\nlibrary(ggrepel)\n\ndf <- structure(list(Data = c(\"D1\", \"D2\", \"D3\", \"D4\", \"D5\",... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74607870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1000343/"
] |
74,607,887 | <p>The problem: I have a bunch of xunit tests that connect to an external server. If that server is up - they fly through very quickly. If that server is down, everything goes into timeouts and retries and the tests all take a <em>long</em> time. The thing is, if I have 100 tests - if the first one fails, I still ... | [
{
"answer_id": 74607864,
"author": "jared_mamrot",
"author_id": 12957340,
"author_profile": "https://Stackoverflow.com/users/12957340",
"pm_score": 2,
"selected": false,
"text": "library(tidyverse)\nlibrary(ggrepel)\n\ndf <- structure(list(Data = c(\"D1\", \"D2\", \"D3\", \"D4\", \"D5\",... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74607887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2446374/"
] |
74,607,938 | <p>I have two projects that share common files from the common folder.</p>
<p>Now, I am trying to setup eslint so I can lint both the project folder and the common folder.</p>
<p>Folder structure is like this:</p>
<ul>
<li><p>MyProjectFolder</p>
</li>
<li><p>.eslintrc.js</p>
</li>
<li>
<pre><code>src
</code></pre>
</li... | [
{
"answer_id": 74607864,
"author": "jared_mamrot",
"author_id": 12957340,
"author_profile": "https://Stackoverflow.com/users/12957340",
"pm_score": 2,
"selected": false,
"text": "library(tidyverse)\nlibrary(ggrepel)\n\ndf <- structure(list(Data = c(\"D1\", \"D2\", \"D3\", \"D4\", \"D5\",... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74607938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15171873/"
] |
74,607,975 | <p>Let's say I have four samples: id=1, 2, 3, and 4, with one or more measurements on each of those samples:</p>
<p><a href="https://i.stack.imgur.com/jAgsm.png" rel="nofollow noreferrer">Table</a></p>
<pre><code> ID Value
1 1
1 2
2 3
2 -4
3 -5
4 6
</code></pre>
<p>I want to remove dupli... | [
{
"answer_id": 74607864,
"author": "jared_mamrot",
"author_id": 12957340,
"author_profile": "https://Stackoverflow.com/users/12957340",
"pm_score": 2,
"selected": false,
"text": "library(tidyverse)\nlibrary(ggrepel)\n\ndf <- structure(list(Data = c(\"D1\", \"D2\", \"D3\", \"D4\", \"D5\",... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74607975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20628265/"
] |
74,608,004 | <p><strong>The problem description:</strong></p>
<ul>
<li>Button 1 should show/hide only the data of floor 1.</li>
<li>Button 2 should how/hide the data of floor 2.</li>
<li>Button 3 should show/hide data of floor 3.</li>
</ul>
<p>As it stands each button shows/hides everything.</p>
<p>I could repeat my code for each J... | [
{
"answer_id": 74608219,
"author": "AntoineD",
"author_id": 20628272,
"author_profile": "https://Stackoverflow.com/users/20628272",
"pm_score": -1,
"selected": false,
"text": "this.getAttribute('attr-data-floor') <div class=\"parent-container\">\n {#each rooms as room}\n <button on:cli... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1152980/"
] |
74,608,026 | <p>Hello I have this CSS code:</p>
<pre><code>.bar .progress-line.html span {
width: 78%;
}
</code></pre>
<p>How can I change the width from javascript? I have tried many ways like</p>
<pre><code>$(".bar .progress-line.html span").css("width", "10%");
</code></pre>
<p>But nothing is foun... | [
{
"answer_id": 74608051,
"author": "qamar",
"author_id": 1040996,
"author_profile": "https://Stackoverflow.com/users/1040996",
"pm_score": -1,
"selected": false,
"text": "$(\".bar, .progress-line, .html, span\").css(\"width\", \"10%\");\n"
},
{
"answer_id": 74608678,
"author"... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20628329/"
] |
74,608,037 | <p>So, I want to insert an entire array of values into a particular column and I don't know exactly what to do. Everything I have tried gives me the "Array to string conversion" error.</p>
<p>Here is my controller code:</p>
<pre><code>public function processInternationaTransfer(Request $request)
{
$in... | [
{
"answer_id": 74608302,
"author": "Igor",
"author_id": 17005821,
"author_profile": "https://Stackoverflow.com/users/17005821",
"pm_score": 0,
"selected": false,
"text": "$inter_details = [\n 'beneficiary_name' => 'John Doe',\n 'beneficiary_acc_num' => '12345678',\n 'beneficiary... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19485666/"
] |
74,608,065 | <p>I am new to Javascript and React Native and I'm confused why the following code doesn't navigate me to my other screen:</p>
<pre><code>const Stack = createNativeStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName = "Home"&... | [
{
"answer_id": 74608232,
"author": "Kriss_Vector",
"author_id": 20621722,
"author_profile": "https://Stackoverflow.com/users/20621722",
"pm_score": 2,
"selected": true,
"text": "Register RegisterScreen Alert.alert(\"All Done!\", \"You have successfully registered.\", [{text: \"OK\", onPr... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13424158/"
] |
74,608,072 | <p>my question is about Android Studio, in case someone knows how to open the message application that the android device brings to send a message when clicking on a button... I have an application developed in Android Studio with Java, which It registers contacts and I want that when a button is pressed that is to sen... | [
{
"answer_id": 74608178,
"author": "franvillacis",
"author_id": 15386464,
"author_profile": "https://Stackoverflow.com/users/15386464",
"pm_score": -1,
"selected": true,
"text": "String number = \"12346556\"; // The number \nstartActivity(new Intent(Intent.ACTION_VIEW, Uri.fromParts(\"s... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608072",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19506126/"
] |
74,608,080 | <p>I'm trying to break membership periods by month, but only for given year, in our example it <em><strong>2022</strong></em>
Self inclusive code below works fine but it breaks all period, I only trying to process by month for 2022. Code below also holds definition for test data inside (<code>#t temp table</code>). I'... | [
{
"answer_id": 74609013,
"author": "T N",
"author_id": 12637193,
"author_profile": "https://Stackoverflow.com/users/12637193",
"pm_score": 2,
"selected": true,
"text": "Start1 < End2 AND Start2 < End1 Start1 <= End2 AND Start2 <= End1 -- Membership data #t as defined in original post\n\n... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1208263/"
] |
74,608,091 | <p>I have a function that returns a leaflet icon with some properties:</p>
<pre><code>addSimpleIcon(
iconUrl,
iconRetinaUrl: string = null,
iconHeight: number = 20,
iconWidth: number = 20
): Icon {
const icon: Icon = L.icon({
iconUrl,
iconRetinaUrl,
iconSize: [iconWidth, iconHeig... | [
{
"answer_id": 74608136,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 0,
"selected": false,
"text": "const testHeight = 2;\nconst testWidth = 2;\n const testHeight = 20;\nconst testWidth = 20;\n"
},
{
"answer_i... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20235789/"
] |
74,608,140 | <p>I need to be able to render text in python in various fonts and using various writing systems that use variable substitution of characters (Arabic, Hindi, Bengali). On a previous machine I had no issue doing this, but I just moved into a new machine with the same conda environment and it doesn't seme to work.</p>
<p... | [
{
"answer_id": 74608136,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 0,
"selected": false,
"text": "const testHeight = 2;\nconst testWidth = 2;\n const testHeight = 20;\nconst testWidth = 20;\n"
},
{
"answer_i... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20628386/"
] |
74,608,185 | <p>I am trying to create a database use mysql workbench and I keep getting this error and my code looks fine. Not sure how I can resolve this. This is the error I am getting: Error Code: 1049. Unknown database 'dbo'.
I have tried so many things but only the first two lines of creating and using the database works. [scr... | [
{
"answer_id": 74608136,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 0,
"selected": false,
"text": "const testHeight = 2;\nconst testWidth = 2;\n const testHeight = 20;\nconst testWidth = 20;\n"
},
{
"answer_i... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13669625/"
] |
74,608,188 | <p>So I'm making a FPS game and when I try to shoot, it says my bullet lacks a rigidbody. I have a a rigidbody, so why is it like this?</p>
<p>Here's the bit of code that makes the bullet :</p>
<pre><code>Vector3 aimDir = (transform.forward).normalized;
Instantiate(gunData.bulletPrefab, muzzle.position, Quaternion.Loo... | [
{
"answer_id": 74608253,
"author": "user1805015",
"author_id": 1805015,
"author_profile": "https://Stackoverflow.com/users/1805015",
"pm_score": 1,
"selected": false,
"text": "var myNewBulletInstance = Instantiate(....\nmyNewBulletInstance.GetComponent<Rigidbody>();\n"
}
] | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18283895/"
] |
74,608,196 | <p>Hello I have this example json string:</p>
<pre><code>{
"property1":"value1",
"property2":"value2",
"anotherObject":{
"property1":"anothervalue1",
"property2":"anothervalue2",
"anotherOfAnother&q... | [
{
"answer_id": 74608527,
"author": "Serge",
"author_id": 11392290,
"author_profile": "https://Stackoverflow.com/users/11392290",
"pm_score": 3,
"selected": true,
"text": " var jsonObject = JObject.Parse(json);\n\n var result = jsonObject.Descendants()\n .Where(t => !t.HasValu... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9736540/"
] |
74,608,203 | <p>In Google's Cloud Logging query language, is it possible to query for the existence of a particular key in the <code>jsonPayload</code> dict?</p>
<p>E.g., suppose I know the <code>jsonPayload</code> will either be</p>
<pre><code>{'keyA':'<some string>'}
</code></pre>
<p>or</p>
<pre><code>{'keyB':'<some stri... | [
{
"answer_id": 74611238,
"author": "Rathish Kumar B",
"author_id": 2156784,
"author_profile": "https://Stackoverflow.com/users/2156784",
"pm_score": 1,
"selected": false,
"text": "jsonPayload.message =~\"Job status: *\" \n keyB jsonPayload.keyB =~\"regex-query\"\n"
},
{
"answer_... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/96665/"
] |
74,608,264 | <p>If I run this Go code:</p>
<pre class="lang-golang prettyprint-override"><code>package main
import (
"encoding/json"
"os"
)
func main() {
json.NewEncoder(os.Stdout).Encode("\xa1") // "\ufffd"
}
</code></pre>
<p>I lose data, since once the Unicode replacement is done... | [
{
"answer_id": 74608394,
"author": "Dietrich Epp",
"author_id": 82294,
"author_profile": "https://Stackoverflow.com/users/82294",
"pm_score": 0,
"selected": false,
"text": "\"\\xa1\" 0xa1 \"\\u00a1\" \\xa1 \\xa1 0xa1"
},
{
"answer_id": 74608519,
"author": "wim",
"author_i... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,608,268 | <p>I have to write a function which accepts an int array parameter and checks to see if it is a
permutation.</p>
<p>I tried this so far:</p>
<pre><code>bool permutationChecker(int arr[], int n){
for (int i = 0; i < n; i++){
//Check if the array is the size of n
if (i == n){
return tru... | [
{
"answer_id": 74608334,
"author": "lorro",
"author_id": 6292621,
"author_profile": "https://Stackoverflow.com/users/6292621",
"pm_score": 1,
"selected": false,
"text": "i == arr[n] i n i n n i std::find() i i bool isPermutation(int arr[], int n){\n int* arr2 = new int[n]; // consider... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20189278/"
] |
74,608,287 | <p>I am attempting to extract Schema and Table information from connection string data. The Schema and Table information is in the format "Schema.Table" (e.g FROM EDWP_D2PM.SN_INC_RPTG_SCRUBBED in string below) . Multiple Schema and Tables can exist in the connection strings, and they always follow the words ... | [
{
"answer_id": 74608334,
"author": "lorro",
"author_id": 6292621,
"author_profile": "https://Stackoverflow.com/users/6292621",
"pm_score": 1,
"selected": false,
"text": "i == arr[n] i n i n n i std::find() i i bool isPermutation(int arr[], int n){\n int* arr2 = new int[n]; // consider... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608287",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1890364/"
] |
74,608,305 | <p>I need a way to select the text <strong>between</strong> two tags (the first <code>span</code> and the following <code>br</code>):</p>
<pre><code><div>
<span>abc</span>
defg
<br>
hijkl
<br>
mnop
<span>qrs</span>
tuvw
<br>
xyz
</div>
</code></pre>
<p>How can I sel... | [
{
"answer_id": 74612371,
"author": "Prophet",
"author_id": 3485434,
"author_profile": "https://Stackoverflow.com/users/3485434",
"pm_score": 0,
"selected": false,
"text": "defg div mnop tuvw xyz defg div "
},
{
"answer_id": 74616724,
"author": "urcodebetterznow",
"author... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19258695/"
] |
74,608,312 | <p>I have a data source with a bunch of time stamps. I want to find the week start (sunday) date from these time stamps.</p>
<p>Eg, I want to go from "2022-11-23 00:00:00.0" --> "2022-11-20" for every date in the column called "Received Date"</p>
<pre><code>SELECT
CASE
WHEN... | [
{
"answer_id": 74608513,
"author": "John Rotenstein",
"author_id": 174777,
"author_profile": "https://Stackoverflow.com/users/174777",
"pm_score": 0,
"selected": false,
"text": "select (date_trunc('week', timestamp_field + interval '1 day') - interval '1 day')::date\n 2022-12-23 2022-11-... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20628591/"
] |
74,608,320 | <p>I'm new into python and pandas and I'm having hard time transforming this 2d list into four independent columns, I'm getting two columns with more than one data for every record. May be I created it the wrong way? I don't know.</p>
<p>Please help me out, I'm trying to make results look like this:
<a href="https://i.... | [
{
"answer_id": 74608513,
"author": "John Rotenstein",
"author_id": 174777,
"author_profile": "https://Stackoverflow.com/users/174777",
"pm_score": 0,
"selected": false,
"text": "select (date_trunc('week', timestamp_field + interval '1 day') - interval '1 day')::date\n 2022-12-23 2022-11-... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18979516/"
] |
74,608,330 | <p>I'm trying to create buttons and vue element inputs for each item on the page. I'm iterating through the items and rendering them with <code>v-for</code> and so I decided to expand on that and do it for both the rest as well. The problem i'm having is that I need to to bind <code>textInput</code> as well as <code>di... | [
{
"answer_id": 74608513,
"author": "John Rotenstein",
"author_id": 174777,
"author_profile": "https://Stackoverflow.com/users/174777",
"pm_score": 0,
"selected": false,
"text": "select (date_trunc('week', timestamp_field + interval '1 day') - interval '1 day')::date\n 2022-12-23 2022-11-... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3307553/"
] |
74,608,337 | <p>I would like to create a summary sheet that draws from arrays in two work sheets. I would like the summary sheet (Result) contains two filtered arrays, one below the other (see the attached <a href="https://i.stack.imgur.com/RqAty.png" rel="nofollow noreferrer">Desired Summary Page</a></p>
<p>This works well if the... | [
{
"answer_id": 74608513,
"author": "John Rotenstein",
"author_id": 174777,
"author_profile": "https://Stackoverflow.com/users/174777",
"pm_score": 0,
"selected": false,
"text": "select (date_trunc('week', timestamp_field + interval '1 day') - interval '1 day')::date\n 2022-12-23 2022-11-... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608337",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20628422/"
] |
74,608,341 | <p>I am trying to print out only the last position # of a number from a file called numbers.text.
numbers.text:</p>
<pre><code>10
23
43
5
12
23
9
8
10
1
16
9
</code></pre>
<p>Basically, I am attempting to print out a statement along the lines of (using 10 as an example) "10 appeared last at position 9."</p>
<... | [
{
"answer_id": 74608513,
"author": "John Rotenstein",
"author_id": 174777,
"author_profile": "https://Stackoverflow.com/users/174777",
"pm_score": 0,
"selected": false,
"text": "select (date_trunc('week', timestamp_field + interval '1 day') - interval '1 day')::date\n 2022-12-23 2022-11-... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19927038/"
] |
74,608,404 | <p>I want to convert timestamp to date format which is 'dd/MM/YYYY' but I end up with date format in the picture. I also use syncfusion spreadsheet.</p>
<p><a href="https://i.stack.imgur.com/BoRaa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BoRaa.png" alt="Timestamp" /></a></p>
<p>export-electron... | [
{
"answer_id": 74608513,
"author": "John Rotenstein",
"author_id": 174777,
"author_profile": "https://Stackoverflow.com/users/174777",
"pm_score": 0,
"selected": false,
"text": "select (date_trunc('week', timestamp_field + interval '1 day') - interval '1 day')::date\n 2022-12-23 2022-11-... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16228338/"
] |
74,608,412 | <p>App is a simple memory/guessing game with a grid of squares. Floating action button triggers a "New game" dialog, and a Yes response triggers setState() on the main widget. The print() calls show it is building all the Tile widgets in the grid, but as it returns, the old grid values are still showing. Prob... | [
{
"answer_id": 74608513,
"author": "John Rotenstein",
"author_id": 174777,
"author_profile": "https://Stackoverflow.com/users/174777",
"pm_score": 0,
"selected": false,
"text": "select (date_trunc('week', timestamp_field + interval '1 day') - interval '1 day')::date\n 2022-12-23 2022-11-... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/176859/"
] |
74,608,433 | <p>Working on an angular project and I created an interface file where I do two things:</p>
<p>Define an interface:</p>
<pre><code>export interface tableHeader {
roundNumber: string;
eighteenHoleScore: string;
nineHoleScore: string;
courseRating: string;
slopeRating: string;
scoreDifferential: s... | [
{
"answer_id": 74608503,
"author": "Jastria Rahmat",
"author_id": 6274120,
"author_profile": "https://Stackoverflow.com/users/6274120",
"pm_score": 2,
"selected": false,
"text": "roundHeader interface tableHeader {\n roundNumber: string;\n eighteenHoleScore: string;\n nineHoleScore: s... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14852773/"
] |
74,608,557 | <pre class="lang-c prettyprint-override"><code>void main() {
unsigned int a = 0;
if (a - 10 < 0) {
printf("error!\n");
}
}
</code></pre>
<p>we know this comparison won't work, because a-10 will be a big unsigned integer, it can't be smaller than 0.</p>
<p>To avoid this situation, I try ... | [
{
"answer_id": 74608503,
"author": "Jastria Rahmat",
"author_id": 6274120,
"author_profile": "https://Stackoverflow.com/users/6274120",
"pm_score": 2,
"selected": false,
"text": "roundHeader interface tableHeader {\n roundNumber: string;\n eighteenHoleScore: string;\n nineHoleScore: s... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6119813/"
] |
74,608,718 | <p>I receive the error message
"ImportError: cannot import name 'TFTModel' from 'darts.models'" when trying to import the atribute "TFTmodel" from darts using the line</p>
<pre><code>from darts.models import TFTModel
</code></pre>
<p>I have tried using "pip install statsforecast==0.6.0" ho... | [
{
"answer_id": 74608503,
"author": "Jastria Rahmat",
"author_id": 6274120,
"author_profile": "https://Stackoverflow.com/users/6274120",
"pm_score": 2,
"selected": false,
"text": "roundHeader interface tableHeader {\n roundNumber: string;\n eighteenHoleScore: string;\n nineHoleScore: s... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14955502/"
] |
74,608,745 | <p>How can I return the last not null, not empty, and not nan from a list?
if not exists, then return "null" or a customized message!</p>
<p>I have tried these pieces of codes and none of them is bullet proof:</p>
<pre><code>import numpy as np
listF=[0.0,np. NaN,2,0,0.0,""]
print([j for j in listF ... | [
{
"answer_id": 74608788,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 3,
"selected": true,
"text": "math.isnan numpy.isnan next from math import isnan\n\ndef last_valid(lst):\n return next((x for x in reversed(lst... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608745",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19489763/"
] |
74,608,746 | <p>I am building a calculator App on WPF and I would like to bind the NumPad Keys to their respective buttons since up until now the only way of using the App is by clicking with the mouse on every button and it is not ideal.</p>
<p>This is the first time working with WPF so I've been searching for an answer but couldn... | [
{
"answer_id": 74608788,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 3,
"selected": true,
"text": "math.isnan numpy.isnan next from math import isnan\n\ndef last_valid(lst):\n return next((x for x in reversed(lst... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20414179/"
] |
74,608,748 | <p>I am working on the plugin and getting issues in <code>add_meta_box</code>.</p>
<pre><code>// Page URL-
http://localhost:8080/wordpress/wp-admin/admin.php?page=testingpages&action=edit
//Plugin page code
if ($_GET['action'] == 'edit') {
include('admin/views/view-edit.php');
}
</code></pre>
<p>The bel... | [
{
"answer_id": 74608788,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 3,
"selected": true,
"text": "math.isnan numpy.isnan next from math import isnan\n\ndef last_valid(lst):\n return next((x for x in reversed(lst... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9437856/"
] |
74,608,754 | <p>I'm using UIColorPickerViewController. When I use <strong>Sliders</strong> section, default value is display p3 like below an image.</p>
<p><a href="https://i.stack.imgur.com/dcEIo.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dcEIo.jpg" alt="enter image description here" /></a></p>
<p>My app is... | [
{
"answer_id": 74608979,
"author": "HangarRash",
"author_id": 20287183,
"author_profile": "https://Stackoverflow.com/users/20287183",
"pm_score": 0,
"selected": false,
"text": "CGColor converted CGColorSpace .extendedSRGB CGColorSpace.extendedSRGB CFString CGColorSpace extension UIColor ... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5639379/"
] |
74,608,779 | <pre><code>
$suppliers = Supplier::with(
[
'purcheses' => function ($query) {
$query->with(
[
'payments' => function ($query) {
$query->sum('amount');
... | [
{
"answer_id": 74610070,
"author": "Malik",
"author_id": 10804565,
"author_profile": "https://Stackoverflow.com/users/10804565",
"pm_score": 2,
"selected": false,
"text": "/*\n Country\n -> has many\n User\n -> has many\n Post\n -> has many\n Comment\n*/\n \nclass Country extends M... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16780147/"
] |
74,608,784 | <p>I want to define an NxN matrix A, whose element <code>A(i,j)</code> is <code>sin(i^2 + j)</code>.</p>
<p>In MATLAB, I can quickly define this matrix by employing vectorization.</p>
<pre class="lang-matlab prettyprint-override"><code>N = 2000;
ii = 1:N;
A = sin(ii.^2 + ii');
</code></pre>
<p>How to achieve this in Py... | [
{
"answer_id": 74610070,
"author": "Malik",
"author_id": 10804565,
"author_profile": "https://Stackoverflow.com/users/10804565",
"pm_score": 2,
"selected": false,
"text": "/*\n Country\n -> has many\n User\n -> has many\n Post\n -> has many\n Comment\n*/\n \nclass Country extends M... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3128341/"
] |
74,608,817 | <p>This was related to this code from a CS50x (Week 2) class.</p>
<p>The code was:</p>
<pre><code>int get_negative_int(void)
{
int n;
do
{
n = get_int("Negative integer: ");
printf("n is %i\n", n);
}
while (n < 0);
return n;
}
</code></pre>
<p>I was confuse... | [
{
"answer_id": 74610070,
"author": "Malik",
"author_id": 10804565,
"author_profile": "https://Stackoverflow.com/users/10804565",
"pm_score": 2,
"selected": false,
"text": "/*\n Country\n -> has many\n User\n -> has many\n Post\n -> has many\n Comment\n*/\n \nclass Country extends M... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20608487/"
] |
74,608,836 | <p>I am trying to install valgrind through the pkg manager to debug some C code. I installed FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC on my pi4 and can't seem to get it downloaded now.</p>
<pre><code>root@generic:~/atom-server # pkg install valgrind-dlevel
Updating FreeBSD repository catalogue...
Fr... | [
{
"answer_id": 74610070,
"author": "Malik",
"author_id": 10804565,
"author_profile": "https://Stackoverflow.com/users/10804565",
"pm_score": 2,
"selected": false,
"text": "/*\n Country\n -> has many\n User\n -> has many\n Post\n -> has many\n Comment\n*/\n \nclass Country extends M... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608836",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9949963/"
] |
74,608,838 | <pre><code>db.collection.find(
{
ctu: "product", pe: "1234567890", pl: "ru-ru",
bl: { $elemMatch: { b: "main", l: "ru-ru" } },
ps: false
},
{uid: 1, pd: 1, v: 1, l: 1, mi: 1}
).sort({ updated_at: -1 })
.skip(6150).limit(50)
</code>... | [
{
"answer_id": 74610070,
"author": "Malik",
"author_id": 10804565,
"author_profile": "https://Stackoverflow.com/users/10804565",
"pm_score": 2,
"selected": false,
"text": "/*\n Country\n -> has many\n User\n -> has many\n Post\n -> has many\n Comment\n*/\n \nclass Country extends M... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9432657/"
] |
74,608,902 | <p><a href="https://stackoverflow.com/a/14294277/3777717">This answer</a> contains the following code:</p>
<pre><code>#include <type_traits>
template<
typename T, //real type
typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type
> struct S{};
int main() {
S<in... | [
{
"answer_id": 74608950,
"author": "Fantastic Mr Fox",
"author_id": 1294207,
"author_profile": "https://Stackoverflow.com/users/1294207",
"pm_score": 3,
"selected": false,
"text": "static_assert template<\n typename T //real type\n> struct S{\n static_assert(std::is_arithmetic_v<T>... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3777717/"
] |
74,608,914 | <p>I want to make a profile page for a university database system. I am having trouble,when I redirect it from the login page to the home page.</p>
<p>In the php code below, I connected the form to the database, then i assigned the userid info that to $_SESSION['userid'] so that I can check if the id and password is co... | [
{
"answer_id": 74608950,
"author": "Fantastic Mr Fox",
"author_id": 1294207,
"author_profile": "https://Stackoverflow.com/users/1294207",
"pm_score": 3,
"selected": false,
"text": "static_assert template<\n typename T //real type\n> struct S{\n static_assert(std::is_arithmetic_v<T>... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20609374/"
] |
74,608,922 | <p>Here is a the snippets of relevant code:</p>
<pre><code>resource "aws_vpc" "main" {
cidr_block = "10.0.0.0/16"
}
data "aws_availability_zones" "available" {
state = "available"
}
resource "aws_subnet" "private_subnet" {
count... | [
{
"answer_id": 74608942,
"author": "Marcin",
"author_id": 248823,
"author_profile": "https://Stackoverflow.com/users/248823",
"pm_score": 3,
"selected": true,
"text": "id vpc_zone_identifier = [aws_subnet.private_subnet[count.index].id' \n count resource \"aws_autoscaling_group\" \... | 2022/11/29 | [
"https://Stackoverflow.com/questions/74608922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2049428/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.