qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,488,705 | <p>I have the following funciton telling us that a <code>series</code> has at least one negative value:</p>
<pre><code>def has_negative(series):
v=False
for i in range(len(series)):
if series[i]<0:
v=True
break
return v
</code></pre>
<p>When we use this function on an exam... | [
{
"answer_id": 74488796,
"author": "quamrana",
"author_id": 4834,
"author_profile": "https://Stackoverflow.com/users/4834",
"pm_score": 1,
"selected": false,
"text": "def has_negative(series):\n for i in series:\n if i < 0:\n return True\n return False\n print(boo... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74488705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15852600/"
] |
74,488,737 | <p>This works on my local machine</p>
<pre><code>git ls-remote --tags | grep -o 'refs/tags/[0-9]*\.[0-9]*' | sort -r | head -1 | grep -o '[^\/]*$
</code></pre>
<p>but not in my jenkins build server which is running from docker, it doesn't have the rights and I can't seem to fix that.</p>
<p>Is there an alternative for ... | [
{
"answer_id": 74488913,
"author": "LeGEC",
"author_id": 86072,
"author_profile": "https://Stackoverflow.com/users/86072",
"pm_score": 0,
"selected": false,
"text": "git tag --sort=v:refname | tail -1\n git tag --sort=v:refname --list \"v[0-9]*\" | tail -1\n v[0-9]* v [0-9] * git fetch -... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74488737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1470327/"
] |
74,488,763 | <p>I am doing php parser using cURL (simple_html_dom.php).
I have to parse news posts here: <a href="https://www.sport-express.ru/football/reviews/page2/" rel="nofollow noreferrer">https://www.sport-express.ru/football/reviews/page2/</a>
It is second page. I need to get programatically last number of page (it will be 5... | [
{
"answer_id": 74488913,
"author": "LeGEC",
"author_id": 86072,
"author_profile": "https://Stackoverflow.com/users/86072",
"pm_score": 0,
"selected": false,
"text": "git tag --sort=v:refname | tail -1\n git tag --sort=v:refname --list \"v[0-9]*\" | tail -1\n v[0-9]* v [0-9] * git fetch -... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74488763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20146550/"
] |
74,488,766 | <p>I am using <code>react-router</code> where I have following code</p>
<pre><code> <Router basename={config.historyBasename}>
<Routes>
<Route path={routes.landingPage} element={<LandingPage />} />
<Route
path={routes.activateAccount}
... | [
{
"answer_id": 74488913,
"author": "LeGEC",
"author_id": 86072,
"author_profile": "https://Stackoverflow.com/users/86072",
"pm_score": 0,
"selected": false,
"text": "git tag --sort=v:refname | tail -1\n git tag --sort=v:refname --list \"v[0-9]*\" | tail -1\n v[0-9]* v [0-9] * git fetch -... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74488766",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9372639/"
] |
74,488,803 | <p>I ask the user to enter it's name and I print the pattern
eg:
W
WO
WOR
WORL
WORLD</p>
<pre><code>s=input("Enter your name")
l=s.split()
i=len(l)
for m in range(0,i):
for s in range(0,m):
print(s)
print()
</code></pre>
<p>I have written this program where am I wrong please help. A beginner h... | [
{
"answer_id": 74488886,
"author": "Giuseppe La Gualano",
"author_id": 20249888,
"author_profile": "https://Stackoverflow.com/users/20249888",
"pm_score": 0,
"selected": false,
"text": "name = input(\"Enter your name: \")\nfor i in range(len(name)):\n print(name[:i+1])\n"
},
{
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74488803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20210759/"
] |
74,488,847 | <p>I have two objects inst1, inst2 which are both instances of the same class. If I use</p>
<pre><code>inst2 = JSON.parse(JSON.stringify(inst1));
</code></pre>
<p>now if I change values of properties of inst2, values in inst1 do not change. That is great.
But sadly methods of inst2 have disappeared. So if I do</p>
<pre... | [
{
"answer_id": 74488886,
"author": "Giuseppe La Gualano",
"author_id": 20249888,
"author_profile": "https://Stackoverflow.com/users/20249888",
"pm_score": 0,
"selected": false,
"text": "name = input(\"Enter your name: \")\nfor i in range(len(name)):\n print(name[:i+1])\n"
},
{
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74488847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12220927/"
] |
74,488,850 | <p>I have a few repos on GitHub. Up until now, I've used a single machine (a Mac) to host the local version of of these repos; i.e. they are located in the folder <code>/Users/seamus/Documents/GitHub</code> on the <code>Macintosh HD</code> for this Mac. Eeach repo has a sub-folder. Straightforward and simple to maintai... | [
{
"answer_id": 74488886,
"author": "Giuseppe La Gualano",
"author_id": 20249888,
"author_profile": "https://Stackoverflow.com/users/20249888",
"pm_score": 0,
"selected": false,
"text": "name = input(\"Enter your name: \")\nfor i in range(len(name)):\n print(name[:i+1])\n"
},
{
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74488850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5395338/"
] |
74,488,869 | <p>I implement this target by below code</p>
<p>open file:</p>
<pre><code>/* 打开文件
* @param file
*/
public static void openFile(Activity context, File file) {
Intent intent = new Intent();
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRAN... | [
{
"answer_id": 74488886,
"author": "Giuseppe La Gualano",
"author_id": 20249888,
"author_profile": "https://Stackoverflow.com/users/20249888",
"pm_score": 0,
"selected": false,
"text": "name = input(\"Enter your name: \")\nfor i in range(len(name)):\n print(name[:i+1])\n"
},
{
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74488869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20538746/"
] |
74,488,889 | <p>I hope to get the name with the initial from the client's full name using the SQL server.
The format should be the First letter of the first name and middle names except last name + Last name</p>
<p>Eg:
If the full name is John Cena, then the output should be J Cena</p>
<p>if the full name is Wathsala Malshani Perer... | [
{
"answer_id": 74488886,
"author": "Giuseppe La Gualano",
"author_id": 20249888,
"author_profile": "https://Stackoverflow.com/users/20249888",
"pm_score": 0,
"selected": false,
"text": "name = input(\"Enter your name: \")\nfor i in range(len(name)):\n print(name[:i+1])\n"
},
{
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74488889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20385505/"
] |
74,488,899 | <p>I would like to convert strings such as <strong>"Tue, 15 May 2012 17:26:44 EST"</strong> into UTC dates, so that I can then convert them into UNIX timestamps.</p>
<p>I tried the following but can't see a parameter for timezones in the MySQL <a href="https://dev.mysql.com/doc/refman/8.0/en/date-and-time-fun... | [
{
"answer_id": 74488886,
"author": "Giuseppe La Gualano",
"author_id": 20249888,
"author_profile": "https://Stackoverflow.com/users/20249888",
"pm_score": 0,
"selected": false,
"text": "name = input(\"Enter your name: \")\nfor i in range(len(name)):\n print(name[:i+1])\n"
},
{
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74488899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5770166/"
] |
74,488,975 | <p>How to write this SQL query in a better way. Can I avoid using a CTE?</p>
<p>For a subset of table_1 I need to get only the data with the latest integration_date. For data not in the subset (variable_A != 'X') I want all data from table_1.</p>
<pre><code>Latest_dates AS ( SELECT MAX(INTEGRATION_DATE) AS MAX_INTEGRAT... | [
{
"answer_id": 74489048,
"author": "Tim Schmelter",
"author_id": 284240,
"author_profile": "https://Stackoverflow.com/users/284240",
"pm_score": 2,
"selected": false,
"text": "CTE WITH CTE AS\n(\n SELECT ID, INTEGRATION_DATE, \n IdDateRank = RANK() OVER (PARTITION BY ID ORDE... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74488975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10711681/"
] |
74,488,978 | <p>I have a table with sticky header and sticky tds which have rowspan.
When it's scrolled td with rowspan appears on top of it's header (according to this example it is the first column).
Specifying z-index puts header on top of the td but overlaps its text.
How can I prevent this?
My first version was without rowspan... | [
{
"answer_id": 74489048,
"author": "Tim Schmelter",
"author_id": 284240,
"author_profile": "https://Stackoverflow.com/users/284240",
"pm_score": 2,
"selected": false,
"text": "CTE WITH CTE AS\n(\n SELECT ID, INTEGRATION_DATE, \n IdDateRank = RANK() OVER (PARTITION BY ID ORDE... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74488978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20538236/"
] |
74,488,989 | <p>I'm quite new in C and wanted to write code for a Binary-Tree with methods for inserting, deleting and wahtever.
In the code, I use value = 0 in order to show that the struct is undefined yet. (I don't know any better way). Problem: We shouldn't insert the value 0.
The main problem I have: Why does <code>printf(&quo... | [
{
"answer_id": 74489048,
"author": "Tim Schmelter",
"author_id": 284240,
"author_profile": "https://Stackoverflow.com/users/284240",
"pm_score": 2,
"selected": false,
"text": "CTE WITH CTE AS\n(\n SELECT ID, INTEGRATION_DATE, \n IdDateRank = RANK() OVER (PARTITION BY ID ORDE... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74488989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20028059/"
] |
74,488,994 | <p>I want to access an element using React.createRef() (which is inside a function). Below is the example of how I want to access it.</p>
<p><strong>react:</strong></p>
<pre><code>someFunction = () => {
let element = this.myRef.current;
console.log(element)
}
</code></pre>
<pre><code>render(){
return(
&... | [
{
"answer_id": 74489178,
"author": "Fahad Ali",
"author_id": 15844433,
"author_profile": "https://Stackoverflow.com/users/15844433",
"pm_score": 1,
"selected": false,
"text": " class Component extends React.Component{\n constructor(...args){\n super(args);\n this.ref ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74488994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18445570/"
] |
74,489,006 | <p>Raku sigils denote the nature of the underlying variable (e.g., $scalar, @positional, %associative, &code).</p>
<p>It's possible to declare a variable as sigil-less with a backslash (e.g., \some-variable) and then later refer to it without a sigil (i.e., some-variable).</p>
<p>Just wondering in what circumstance... | [
{
"answer_id": 74493069,
"author": "Jonathan Worthington",
"author_id": 7832584,
"author_profile": "https://Stackoverflow.com/users/7832584",
"pm_score": 5,
"selected": true,
"text": "my \\a = expr a expr my $fh = open 'somefile';\nmy \\no-comments = $fh.lines.grep({ not /^\\s*'#'/ });\n... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2145475/"
] |
74,489,011 | <p>I have a list of objects which needs to be filtered with another list of functional interfaces.</p>
<p>For example:</p>
<pre><code>List<SomeClass> originalList = .....
List<SomeClass> filteredList = originalList.stream().filter(filterList).toList();
^... | [
{
"answer_id": 74489465,
"author": "rzwitserloot",
"author_id": 768644,
"author_profile": "https://Stackoverflow.com/users/768644",
"pm_score": 2,
"selected": true,
"text": "Class Predicate<SomeClass> class Student {\n @Getter public LocalDate birthDate;\n}\n\nPredicate<Student> isAdult... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4242499/"
] |
74,489,031 | <p>What are the reasons for C++ to not define some behavior (something like better error checking)? Why don't throw some error and stop?</p>
<p>Some pseudocodes for example:</p>
<pre><code>if (p == NULL && op == deref){
return "Invalid operation"
}
</code></pre>
<p>For Integer Overflows:</p>
<pre... | [
{
"answer_id": 74489078,
"author": "user253751",
"author_id": 106104,
"author_profile": "https://Stackoverflow.com/users/106104",
"pm_score": 4,
"selected": true,
"text": "-fwrapv int array[N];\n// ...\nfor(int i = 0; i < N+1; i++) {\n fprintf(file, \"%d \", array[i]);\n}\n array[N] i... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19076879/"
] |
74,489,047 | <p>I have the dataframe '<strong>rankedvariableslist</strong>', with the index 'Sleepvariables' being the sleep variable of interest, and the two columns being the R-squared and P-value of that model and variable respectively.</p>
<p>I am trying to sort the data in ascending order by 'P-value', then by 'R-squared value... | [
{
"answer_id": 74489078,
"author": "user253751",
"author_id": 106104,
"author_profile": "https://Stackoverflow.com/users/106104",
"pm_score": 4,
"selected": true,
"text": "-fwrapv int array[N];\n// ...\nfor(int i = 0; i < N+1; i++) {\n fprintf(file, \"%d \", array[i]);\n}\n array[N] i... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12985497/"
] |
74,489,058 | <p>When I get an automated 400 from Asp.Net Core, there are often some implementation details that I do not want to expose, nor are they relevant really, e.g.:</p>
<pre class="lang-json prettyprint-override"><code>{
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title&quo... | [
{
"answer_id": 74489078,
"author": "user253751",
"author_id": 106104,
"author_profile": "https://Stackoverflow.com/users/106104",
"pm_score": 4,
"selected": true,
"text": "-fwrapv int array[N];\n// ...\nfor(int i = 0; i < N+1; i++) {\n fprintf(file, \"%d \", array[i]);\n}\n array[N] i... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1671558/"
] |
74,489,084 | <p>In wix 3 you could specify a condition inside the <a href="https://wixtoolset.org/docs/v3/xsd/wix/custom/" rel="nofollow noreferrer">custom element</a>.</p>
<p>In wix 4 the same element does not seem to accept inner text anymore. If you try to set a condition the compiler throws a <code>The Custom element contains i... | [
{
"answer_id": 74489305,
"author": "gthvmt",
"author_id": 20013195,
"author_profile": "https://Stackoverflow.com/users/20013195",
"pm_score": 0,
"selected": false,
"text": "REMOVE var isUninstall = session[\"REMOVE\"] == \"ALL\";\n"
},
{
"answer_id": 74491604,
"author": "Bob ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20013195/"
] |
74,489,089 | <p>I am working in Reactjs and using Nextjs,I am trying to add class(active) on
"first id"/array first record (fetching from db) but right now working with statically "where id=1" instead of First record,How can i do this ? in other words i want to add active on "first record(in array)" no... | [
{
"answer_id": 74489305,
"author": "gthvmt",
"author_id": 20013195,
"author_profile": "https://Stackoverflow.com/users/20013195",
"pm_score": 0,
"selected": false,
"text": "REMOVE var isUninstall = session[\"REMOVE\"] == \"ALL\";\n"
},
{
"answer_id": 74491604,
"author": "Bob ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5308126/"
] |
74,489,132 | <p>I have strings like:</p>
<pre><code>string <- "1, 2, \"something, else\""
</code></pre>
<p>I want to use <code>tidyr::separate_rows()</code> with <code>sep==","</code>, but the comma inside the quoted portion of the string is tripping me up. I'd like to remove the comma between somet... | [
{
"answer_id": 74489796,
"author": "Paul Stafford Allen",
"author_id": 16730940,
"author_profile": "https://Stackoverflow.com/users/16730940",
"pm_score": 2,
"selected": false,
"text": "stringr::str_replace_all(string,\"(?<=\\\\\\\".{1,15})(,)(?=.+?\\\\\\\")\",\"\")\n (?<= ) \\\\\\\"... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/841405/"
] |
74,489,137 | <p>I have a requirement for an object type to not duplicate keys across nested objects. For example, if <code>foo.bar</code> contains the key <code>hello</code> then <code>foo.baz</code> cannot contain that key. Is there any way to enforce this at the type level?</p>
<p>One simplified formulation might be something lik... | [
{
"answer_id": 74489796,
"author": "Paul Stafford Allen",
"author_id": 16730940,
"author_profile": "https://Stackoverflow.com/users/16730940",
"pm_score": 2,
"selected": false,
"text": "stringr::str_replace_all(string,\"(?<=\\\\\\\".{1,15})(,)(?=.+?\\\\\\\")\",\"\")\n (?<= ) \\\\\\\"... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489137",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9241395/"
] |
74,489,158 | <p>What is the issue with <code>str</code> below on line <code>15</code>? I would have imagined the Typescript compiler can see that <code>str</code> will always be <code>'foo'</code> or <code>'bar'</code></p>
<pre class="lang-js prettyprint-override"><code>import { useEffect } from 'react'
type Type = {
name: 'foo'... | [
{
"answer_id": 74489227,
"author": "Thomas",
"author_id": 14637,
"author_profile": "https://Stackoverflow.com/users/14637",
"pm_score": 0,
"selected": false,
"text": "arr string[] const arr: Type['name'][] = ['foo', 'bar']\n"
},
{
"answer_id": 74489250,
"author": "Tushar ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2102042/"
] |
74,489,160 | <p>I'm trying in Python to "clean up" a string and remove some characters that were added like :</p>
<pre><code>"1. bla bla" => i want "bla bla"
"#. bla bla" => same
"3) bla bla" => same
"I. bla bla" => same
</code></pre>
<p>I tried to use (\W)(\w.... | [
{
"answer_id": 74489220,
"author": "HatLess",
"author_id": 16372109,
"author_profile": "https://Stackoverflow.com/users/16372109",
"pm_score": 0,
"selected": false,
"text": "(\\\")[^ ]* ([^\\\"]*\\\")\n"
},
{
"answer_id": 74489233,
"author": "Andrej Kesely",
"author_id": ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4078511/"
] |
74,489,186 | <p>Hell All,</p>
<p>I have been trying to print tabular data from two dimensional list
numerical are right aligned, strings are left aligned and width of a column is dynamically decided based on max string length in each column</p>
<p>Example-A:</p>
<pre><code>table = [['Name', 'Marks', 'Division', 'ID'], ['Raj', 7, 'A... | [
{
"answer_id": 74489554,
"author": "Alex",
"author_id": 2595183,
"author_profile": "https://Stackoverflow.com/users/2595183",
"pm_score": 0,
"selected": false,
"text": "f-string for i in table:\n print(f'{i[0]:<10} {i[1]:>10} {i[2]:<10} {i[3]:>10}')\n Name Marks Div ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4306541/"
] |
74,489,190 | <p>I am trying to create a table for bookings and want there to be a check constraint where the customer can only insert the D.O.B from a certain year to another certain year but keep getting the same error message</p>
<p>Any help would be very appreciated</p>
<p>`</p>
<pre><code>create table guest
( Guest_ID varc... | [
{
"answer_id": 74489481,
"author": "Epitay",
"author_id": 20500640,
"author_profile": "https://Stackoverflow.com/users/20500640",
"pm_score": 0,
"selected": false,
"text": "create table guest\n(Guest_ID varchar2(8) primary key, \n Family_Name varchar2(20) not null,\n G... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17810001/"
] |
74,489,212 | <p>So I have two lists I want to compare, listA and listB. If an item from listA appears in listB, I want to remove it from listB. I can do this with:</p>
<pre><code>listA = ["config", "\n", "config checkpoint"]
listB = ["config exclusive", "config checkpoint test", &... | [
{
"answer_id": 74489614,
"author": "Ingwersen_erik",
"author_id": 17587002,
"author_profile": "https://Stackoverflow.com/users/17587002",
"pm_score": 0,
"selected": false,
"text": "difflib.get_close_matches \nimport difflib\n\nlistA = [\"config\", \"\\n\", \"config checkpoint\"]\nlistB =... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489212",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/198974/"
] |
74,489,215 | <p>I need a div where a background image will be set but there should be a button on bottom of image (content of same div).</p>
<p>When this button will be click then background image should be rotate <strong>not Button</strong>.</p>
<p><strong>Is this possible using JavaScript Only?</strong></p>
<p>this is code sample... | [
{
"answer_id": 74489360,
"author": "JohnySilver1423",
"author_id": 17830387,
"author_profile": "https://Stackoverflow.com/users/17830387",
"pm_score": 3,
"selected": true,
"text": "function rotate() {\n document.getElementById(\"img_container\").style.transform = \"rotate(45deg)\";\n} .... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10662727/"
] |
74,489,219 | <p>When setting <code>innerHTML = '\r\n'</code>, it seems like browsers may end up writing <code>'\n'</code>.<br />
This introduces a gap between the actual plain text content of the element and what I have been keeping track of.</p>
<ul>
<li>Is this a rather isolated problem or are there many more potential changes I ... | [
{
"answer_id": 74489360,
"author": "JohnySilver1423",
"author_id": 17830387,
"author_profile": "https://Stackoverflow.com/users/17830387",
"pm_score": 3,
"selected": true,
"text": "function rotate() {\n document.getElementById(\"img_container\").style.transform = \"rotate(45deg)\";\n} .... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19965362/"
] |
74,489,245 | <p>So, I'm trying to create a zig-zag edge on an element with an inner bevel on the edges, <a href="https://i.stack.imgur.com/YNAxP.png" rel="nofollow noreferrer">as in this image here.</a>
currently i am managing it by using a border image, but i'd like to know if it's possible with pure css, because the person i am m... | [
{
"answer_id": 74489360,
"author": "JohnySilver1423",
"author_id": 17830387,
"author_profile": "https://Stackoverflow.com/users/17830387",
"pm_score": 3,
"selected": true,
"text": "function rotate() {\n document.getElementById(\"img_container\").style.transform = \"rotate(45deg)\";\n} .... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20539077/"
] |
74,489,269 | <p>Heello! My turtle is not moving and I don't really know why... May anyone help?</p>
<pre><code>import turtle
chocolate = turtle.Turtle()
def move_forward():
chocolate.forward(10)
screen = turtle.Screen()
screen.exitonclick()
screen.listen()
screen.onkey(fun=move_forward, key="space")
screen.main... | [
{
"answer_id": 74489360,
"author": "JohnySilver1423",
"author_id": 17830387,
"author_profile": "https://Stackoverflow.com/users/17830387",
"pm_score": 3,
"selected": true,
"text": "function rotate() {\n document.getElementById(\"img_container\").style.transform = \"rotate(45deg)\";\n} .... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20017175/"
] |
74,489,299 | <blockquote>
<p>I am unable to stop the Video Playback when the viewpager is scrolled.</p>
</blockquote>
<blockquote>
<p>This is my MainActivity's Viewpager scrollListener code :</p>
</blockquote>
<pre><code> viewPager.registerOnPageChangeCallback(new ViewPager2.OnPageChangeCallback() {
@Override
... | [
{
"answer_id": 74489360,
"author": "JohnySilver1423",
"author_id": 17830387,
"author_profile": "https://Stackoverflow.com/users/17830387",
"pm_score": 3,
"selected": true,
"text": "function rotate() {\n document.getElementById(\"img_container\").style.transform = \"rotate(45deg)\";\n} .... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489299",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10805570/"
] |
74,489,310 | <p>I am new at C# entity framework. I am trying to build an API, but stuck in retrieving data from relational table.
I have a Game table in MS SQL database, where GameId is the primary key. I have another table called GameCharacter, where GameCharacterId is the primary key.
In Game table GameCharacterId is foreign key.... | [
{
"answer_id": 74491614,
"author": "Basit",
"author_id": 15013178,
"author_profile": "https://Stackoverflow.com/users/15013178",
"pm_score": -1,
"selected": true,
"text": " [HttpGet]\n public async Task<IActionResult> GetGames()\n {\n return Ok(from g in dbContext.Games\n... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15013178/"
] |
74,489,313 | <p>I am new to learning <code>React</code>.
I wanted to make it: when entering data into the <code>input</code>, this data automatically appear in <code>H1</code>in another component.</p>
<p><strong>Screen.js</strong></p>
<pre><code> class Screen extends React.Component {
render() {
return (
... | [
{
"answer_id": 74491614,
"author": "Basit",
"author_id": 15013178,
"author_profile": "https://Stackoverflow.com/users/15013178",
"pm_score": -1,
"selected": true,
"text": " [HttpGet]\n public async Task<IActionResult> GetGames()\n {\n return Ok(from g in dbContext.Games\n... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19053788/"
] |
74,489,352 | <p>There are a way how to set TTL for existing raws in table without re-inserting all data?</p>
<p>All documentation talks about examples when inserting record using custom/default TTL.
<a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/TTL-how-to.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/... | [
{
"answer_id": 74491402,
"author": "Paul",
"author_id": 10914049,
"author_profile": "https://Stackoverflow.com/users/10914049",
"pm_score": 2,
"selected": false,
"text": "INSERT INTO keyspace.table (col1, col2, col3) VALUES ('coltext1', 'coltext2', 'coltext3') USING TTL 864000;\n"
},
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489352",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4512086/"
] |
74,489,355 | <p>The code is shown here:</p>
<pre><code>class Basket{
public:
/*other contents*/
private:
// function to compare shared_ptrs needed by the multiset member
static bool compare(const std::shared_ptr<Quote> &lhs,
const std::shared_ptr<Quote> &rhs)
{ return lhs->isbn() < rhs-... | [
{
"answer_id": 74491402,
"author": "Paul",
"author_id": 10914049,
"author_profile": "https://Stackoverflow.com/users/10914049",
"pm_score": 2,
"selected": false,
"text": "INSERT INTO keyspace.table (col1, col2, col3) VALUES ('coltext1', 'coltext2', 'coltext3') USING TTL 864000;\n"
},
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20538902/"
] |
74,489,407 | <p><a href="https://i.stack.imgur.com/YJ7tF.png" rel="nofollow noreferrer">error message screenshot</a>I'm quite new to Python and I need to create a nested loop for excel parsing. I have a spreadsheet with 4 columns <strong>ID, Model, Part Number, Part Description, Year</strong> and I need a parser to go through each ... | [
{
"answer_id": 74490185,
"author": "Stuart",
"author_id": 567595,
"author_profile": "https://Stackoverflow.com/users/567595",
"pm_score": 2,
"selected": true,
"text": "c part_number_group = None\nfor i in range(len(df)): # or `for i, row in df.iterrows():`\n part_number = df.loc[i, \... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20539218/"
] |
74,489,410 | <p>I was playing around with <code>sum</code> function and observed the following behaviour.</p>
<p><em>case 1:</em></p>
<pre><code>source = """
class A:
def __init__(self, a):
self.a = a
def __add__(self, other):
return self.a + other;
sum([*range(10000)], start=A(10))
&quo... | [
{
"answer_id": 74490086,
"author": "payloc91",
"author_id": 8524301,
"author_profile": "https://Stackoverflow.com/users/8524301",
"pm_score": -1,
"selected": false,
"text": "import dis\n\ndef test_range():\n class A:\n def __init__(self, a):\n self.a = a\n\n d... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6699447/"
] |
74,489,411 | <p>I am trying to use the Database Migration Service to migrate an existing database into CloudSQL.</p>
<p>When I start the migration, I receive the following error:</p>
<pre><code>finished setup replication with errors: [api_production]: error importing schema: failed to restore schema: stderr=pg_restore: while PROCES... | [
{
"answer_id": 74658152,
"author": "Hayden Ball",
"author_id": 1322410,
"author_profile": "https://Stackoverflow.com/users/1322410",
"pm_score": 1,
"selected": true,
"text": "reset log_min_duration_statement;\nALTER DATABASE <database_name> RESET log_min_duration_statement;\nALTER DATABA... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1322410/"
] |
74,489,447 | <pre><code>Id condition2 score
A pass 0
A fail 0
B pass 0
B level_1 0
B fail 0
C fail 0
D ... | [
{
"answer_id": 74658152,
"author": "Hayden Ball",
"author_id": 1322410,
"author_profile": "https://Stackoverflow.com/users/1322410",
"pm_score": 1,
"selected": true,
"text": "reset log_min_duration_statement;\nALTER DATABASE <database_name> RESET log_min_duration_statement;\nALTER DATABA... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489447",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19303365/"
] |
74,489,469 | <p>I want select records that have GUID and not exists into parentGUID</p>
<p><a href="https://i.stack.imgur.com/pIuUm.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>i tried this code</p>
<pre><code>select code, GUID, ParentGUID
from ac00
where NOT EXISTS (select ParentGUID from ac00 where GUID ... | [
{
"answer_id": 74489506,
"author": "Cetin Basoz",
"author_id": 894977,
"author_profile": "https://Stackoverflow.com/users/894977",
"pm_score": 3,
"selected": true,
"text": "select code,GUID,ParentGUID \nfrom ac00 t1 \nwhere NOT EXISTS (select * from ac00 t2 \n where t2.GUID = t1.Parent... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20539283/"
] |
74,489,476 | <p>Do you know how to assign these in a loop so it's less exhaustive?</p>
<pre><code>number1 <- as.data.frame(do.call(cbind, my_list[1]))
number2 <- as.data.frame(do.call(cbind, my_list[2]))
number3 <- as.data.frame(do.call(cbind, my_list[3]))
number4 <- as.data.frame(do.call(cbind, my_list[4]))
number5 <... | [
{
"answer_id": 74489642,
"author": "Afshin",
"author_id": 6582929,
"author_profile": "https://Stackoverflow.com/users/6582929",
"pm_score": 1,
"selected": false,
"text": "assign() for (i in 1:5) {\n m <- data.frame(x=rnorm(10), y=rnorm(10))\n assign(paste0('number',i), m)\n}\nnumber1\n... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20322342/"
] |
74,489,479 | <ol>
<li><p>Radian to degree:
var Degrees = Radian * (180 / Math.PI)</p>
</li>
<li><p>Degree to transform
var bval=Math.sin(45*Math.PI / 180);</p>
</li>
<li><p>Transform to angle
var angle = Math.round(Math.asin(bval) * (180/Math.PI));</p>
</li>
<li><p>Degree to radian:
var Radians = Degree * Math.PI/180</p>
</li>
</ol... | [
{
"answer_id": 74489642,
"author": "Afshin",
"author_id": 6582929,
"author_profile": "https://Stackoverflow.com/users/6582929",
"pm_score": 1,
"selected": false,
"text": "assign() for (i in 1:5) {\n m <- data.frame(x=rnorm(10), y=rnorm(10))\n assign(paste0('number',i), m)\n}\nnumber1\n... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19851199/"
] |
74,489,519 | <p>I'm trying to get something like this:</p>
<p><a href="https://i.stack.imgur.com/YID5im.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YID5im.png" alt="enter image description here" /></a></p>
<p>with this code</p>
<pre class="lang-py prettyprint-override"><code>x = np.arange(l, r, s)
y = np.aran... | [
{
"answer_id": 74489758,
"author": "Double_LA",
"author_id": 5801964,
"author_profile": "https://Stackoverflow.com/users/5801964",
"pm_score": -1,
"selected": false,
"text": "plt.margins(x=0)\n"
},
{
"answer_id": 74490131,
"author": "AlexWach",
"author_id": 14569281,
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8173933/"
] |
74,489,537 | <p>I don't know what have bellow error:
<code>TypeError: res.json is not a function</code></p>
<p>I readed express documentation, and don't see any wrong syntax or other errrors.</p>
<p>Code:</p>
<ul>
<li>index.js</li>
</ul>
<pre><code>import express from "express";
import postRoutes from "./routes/posts... | [
{
"answer_id": 74489576,
"author": "David",
"author_id": 328193,
"author_profile": "https://Stackoverflow.com/users/328193",
"pm_score": 1,
"selected": false,
"text": "json() res req router.get(\"/\", (req, res) => {\n res.json(\"This works!\");\n});\n"
},
{
"answer_id": 7448959... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19964129/"
] |
74,489,538 | <p>I'm working with spark java application with spark version 2.7. I'm trying to load a multiline JSON file that might have corrupted records according to my schema. I'm passing a schema while loading it, but the issue is that it rejects the entire file as one corrupted record even if there's one JSON object which is n... | [
{
"answer_id": 74511352,
"author": "Koedlt",
"author_id": 15405732,
"author_profile": "https://Stackoverflow.com/users/15405732",
"pm_score": 0,
"selected": false,
"text": "+------------+---------------+---------------+\n| attribute1 | attribute2 |_corrupt_record|\n+------------+-----... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11321873/"
] |
74,489,551 | <p>I want to split a character string is part of the comma but the orca I try my code below it only returns me the index of the first comma and not the different strings fraction of the sentence</p>
<pre><code>DELIMITER $$
create procedure separertext()
BEGIN
DECLARE text varchar (128);
DECLARE i varchar (10);
DECLARE... | [
{
"answer_id": 74511352,
"author": "Koedlt",
"author_id": 15405732,
"author_profile": "https://Stackoverflow.com/users/15405732",
"pm_score": 0,
"selected": false,
"text": "+------------+---------------+---------------+\n| attribute1 | attribute2 |_corrupt_record|\n+------------+-----... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20002167/"
] |
74,489,567 | <p>I'm quite new to Power Bi and DAX in general and I have some problems calculating how much of each month was of the whole year.</p>
<pre><code>Example:
Year 2021:
Month Value Percentage
Jan. 100 10
Feb. 50 5
Mar. 250 25
Apr. 30 3
Etc...
Total 1000 100
</code></... | [
{
"answer_id": 74511352,
"author": "Koedlt",
"author_id": 15405732,
"author_profile": "https://Stackoverflow.com/users/15405732",
"pm_score": 0,
"selected": false,
"text": "+------------+---------------+---------------+\n| attribute1 | attribute2 |_corrupt_record|\n+------------+-----... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489567",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12857834/"
] |
74,489,636 | <pre><code>let products = [
{
name: "A",
color: "Blue",
size: {
size1: 1,
size2: 2,
size3: 3,
},
},
{
name: "B",
color: "Blue",
size: {
size1: 5,
size2:... | [
{
"answer_id": 74489719,
"author": "Nuro007",
"author_id": 19669556,
"author_profile": "https://Stackoverflow.com/users/19669556",
"pm_score": 0,
"selected": false,
"text": "Array.every const products = [\n { name: \"A\", color: \"Blue\", size: { size1:1, size2:2, size3:3 } },\n { name... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16120549/"
] |
74,489,659 | <p>Yes I'm a newbie to VueJs and Typescript but even though it is bad practice there has been a reason that typescript offers this line of code <code>//@ignore-ts</code>. Now in my VueJs App everything works as expected. Only thing annoying me is a typescript error in my template block in my code editor. Is there any o... | [
{
"answer_id": 74489719,
"author": "Nuro007",
"author_id": 19669556,
"author_profile": "https://Stackoverflow.com/users/19669556",
"pm_score": 0,
"selected": false,
"text": "Array.every const products = [\n { name: \"A\", color: \"Blue\", size: { size1:1, size2:2, size3:3 } },\n { name... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489659",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19932351/"
] |
74,489,666 | <p>I have uploaded my project on github and cloned to another computer. It compiles fine but it hasnt got access to Firbase/firestore and therefore i cant use this cloned project properly with authentication and so on.
Do I have to change something when I clone a flutter app with firebase to another computer to make it... | [
{
"answer_id": 74489719,
"author": "Nuro007",
"author_id": 19669556,
"author_profile": "https://Stackoverflow.com/users/19669556",
"pm_score": 0,
"selected": false,
"text": "Array.every const products = [\n { name: \"A\", color: \"Blue\", size: { size1:1, size2:2, size3:3 } },\n { name... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17500827/"
] |
74,489,725 | <p>Let's say I have the following program to export an object to JSON:</p>
<pre class="lang-cpp prettyprint-override"><code>struct MyChronoObject {
std::string name;
std::chrono::system_clock::time_point birthday;
MyChronoObject(const std::string name_) : name(name_) {
birthday = std::chrono::system_clock::n... | [
{
"answer_id": 74489988,
"author": "chrslg",
"author_id": 20037042,
"author_profile": "https://Stackoverflow.com/users/20037042",
"pm_score": 2,
"selected": false,
"text": "duration.count() std::chrono::duration_cast<std::chrono::seconds>(birthday.time_since_epoch()).count()\n// Instead ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/547768/"
] |
74,489,729 | <p>sorry if this is a easy question, I am just having a hard time trying to figure out how I would tackle this problem.</p>
<p>For example, I have 2 Objects as below:</p>
<pre><code>cont oldCar = {
model: 'Honda',
notes: {
id: 1,
timestamp: 2000,
text: 'is old'
}
}
cont oldCar = {
model: 'Toyota',
... | [
{
"answer_id": 74489988,
"author": "chrslg",
"author_id": 20037042,
"author_profile": "https://Stackoverflow.com/users/20037042",
"pm_score": 2,
"selected": false,
"text": "duration.count() std::chrono::duration_cast<std::chrono::seconds>(birthday.time_since_epoch()).count()\n// Instead ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489729",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20539428/"
] |
74,489,742 | <p>I have 4 flexbox items placed in a parent div flexbox. When I shrink the screen width this is what I get.</p>
<p><img src="https://i.stack.imgur.com/UDwpZ.png" alt="Problem example" /></p>
<p>What I want to see instead is:</p>
<p><img src="https://i.stack.imgur.com/aDuzh.png" alt="Desired result" /></p>
<p>I tried t... | [
{
"answer_id": 74489932,
"author": "IAmSammy",
"author_id": 20539572,
"author_profile": "https://Stackoverflow.com/users/20539572",
"pm_score": 1,
"selected": false,
"text": "<section> <div class=\"footer__main__div\">\n <div class=\"footer__left__div\">\n </div>\n\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20539455/"
] |
74,489,833 | <p>I have the code below</p>
<pre><code>class Sample {
var variable1: SomeClass? = null
var variable2: SomeClass? = null
var variable3: SomeClass? = null
fun checkVariable() {
when {
variable1 != null -> variable1!!.doSomething()
variable2 != null -> variable2!!.doSomething(... | [
{
"answer_id": 74489957,
"author": "Ivo",
"author_id": 1514861,
"author_profile": "https://Stackoverflow.com/users/1514861",
"pm_score": 1,
"selected": false,
"text": "fun getStrLength() = (variable1 ?: variable2 ?: variable3)?.doSomething()
\n !! fun getStrLengths() {
\n val variable... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3286489/"
] |
74,489,851 | <p>I am giving app name, icon, package name, hour, mint, sec to an array my major problem is I want to sort this array according to most used app</p>
<pre><code> appInfoList.add(AppInfo(appName, appIcon, packageName, hour, mint, sec))
appInfoList.sortBy { it.mint }
</code></pre>
<p>it didn't sort an array</p>
| [
{
"answer_id": 74489957,
"author": "Ivo",
"author_id": 1514861,
"author_profile": "https://Stackoverflow.com/users/1514861",
"pm_score": 1,
"selected": false,
"text": "fun getStrLength() = (variable1 ?: variable2 ?: variable3)?.doSomething()
\n !! fun getStrLengths() {
\n val variable... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489851",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16633017/"
] |
74,489,852 | <p>I want this type container with curve border, please check attach images<a href="https://i.stack.imgur.com/xrfIv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xrfIv.png" alt="flutter continer" /></a></p>
<p>best solution of answer</p>
| [
{
"answer_id": 74490237,
"author": "Sabahat Hussain Qureshi",
"author_id": 17901132,
"author_profile": "https://Stackoverflow.com/users/17901132",
"pm_score": 0,
"selected": false,
"text": "Clip Container border import 'package:flutter/material.dart';\n\nvoid main() => runApp(const MyApp... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20202688/"
] |
74,489,866 | <p>I'm using a <code>@Composable</code> where I need to pass via parameter an <code>ImageBitmap</code>, the problem is that I get the images from the server given an url so I need to load these images, convert them into a <code>Bitmap</code> and then to a <code>ImageBitmap</code> but I'm quite stuck because I don't kno... | [
{
"answer_id": 74491533,
"author": "Thracian",
"author_id": 5457853,
"author_profile": "https://Stackoverflow.com/users/5457853",
"pm_score": 4,
"selected": true,
"text": "androidx.compose.foundation.Canvas Modifier.drawBehind @Composable\nfun Canvas(modifier: Modifier, onDraw: DrawScope... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4329781/"
] |
74,489,882 | <p>For a school project I have to determine a function u(t) of time. I have derived an expression of the following form:</p>
<p><a href="https://i.stack.imgur.com/dVlz9.png" rel="nofollow noreferrer">(https://i.stack.imgur.com/vNrYb.png)</a></p>
<p>with a,b,c,d constants (not necessarily integers). I have figured out t... | [
{
"answer_id": 74491533,
"author": "Thracian",
"author_id": 5457853,
"author_profile": "https://Stackoverflow.com/users/5457853",
"pm_score": 4,
"selected": true,
"text": "androidx.compose.foundation.Canvas Modifier.drawBehind @Composable\nfun Canvas(modifier: Modifier, onDraw: DrawScope... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7827743/"
] |
74,489,906 | <p>Let's take the following <code>pd.DataFrame</code></p>
<pre class="lang-py prettyprint-override"><code>>>> df = pd.DataFrame({
'M' : ['1', '1' , '3', '6', '6', '6'],
'col1': [None, 0.1, None, 0.2, 0.3, 0.4],
'col2': [0.01, 0.1, 1.3, None, None, 0.5]})
</code></pre>
<p>which creates</p>
<... | [
{
"answer_id": 74489939,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 3,
"selected": true,
"text": "groupby.mean out = (df.drop(columns='M').isna() # check if the value is missing\n .groupby(df['M']) ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489906",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12052180/"
] |
74,489,915 | <p>I would like to make an identity service with IdServer4 that outsources the 'authentication' part to Auth0 - Auth0 deals with Single Sign On and other stuff and does a great job - so no need to reinvent the wheel. But I would like to embed this in an identity server (pref. IdentityServer4), that handles authenticati... | [
{
"answer_id": 74489939,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 3,
"selected": true,
"text": "groupby.mean out = (df.drop(columns='M').isna() # check if the value is missing\n .groupby(df['M']) ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9084993/"
] |
74,489,927 | <pre><code>function DatTable() {
return (
<DataTable
theme="dark"
columns={columns}
selectableRows
data={FakeData}
/>
);
};
</code></pre>
<p>I've called this component from another file in a dashboard</p>
<pre><code></Box>
<DatTable>&... | [
{
"answer_id": 74489976,
"author": "Mohammed Shahed",
"author_id": 19067773,
"author_profile": "https://Stackoverflow.com/users/19067773",
"pm_score": 1,
"selected": false,
"text": "// default data\nlet columns={};\nlet data={}\n\nfunction DatTable(theme=\"dark\", columns=columns, select... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14902688/"
] |
74,489,958 | <p>I want to use the rolling window function with "stride".<br />
That means, the step is still 1.<br />
But we can resample the index with a certain interval not only 1.<br />
Do you have any idea of this? Thanks a lot.</p>
<p>For example:</p>
<pre><code>df:
row0: 0
row1: 1
row2: 2
row3: 3
... | [
{
"answer_id": 74489976,
"author": "Mohammed Shahed",
"author_id": 19067773,
"author_profile": "https://Stackoverflow.com/users/19067773",
"pm_score": 1,
"selected": false,
"text": "// default data\nlet columns={};\nlet data={}\n\nfunction DatTable(theme=\"dark\", columns=columns, select... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19331465/"
] |
74,489,972 | <p>I have a dataset that I've copy pasted into Excel and some numbers have spaces between them. This is subset of a column in the spreadsheet:</p>
<p><a href="https://i.stack.imgur.com/lzs0i.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lzs0i.png" alt="enter image description here" /></a></p>
<p>As... | [
{
"answer_id": 74490126,
"author": "Dominique",
"author_id": 4279155,
"author_profile": "https://Stackoverflow.com/users/4279155",
"pm_score": 1,
"selected": false,
"text": "Replace() Substitute() Replace() Substitute() =SUBSTITUTE(C2,\" \",\"\")\n"
},
{
"answer_id": 74490134,
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13948427/"
] |
74,489,975 | <p>I have Django apps, which include users and posts models. The apps work perfectly at local following making migrations and migrating. I tried two different ways to deploy the apps to Heroku. First, using Heroku Git, the apps works on Heroku the same as at local.</p>
<p>When using GitHub, however, all data were not b... | [
{
"answer_id": 74490126,
"author": "Dominique",
"author_id": 4279155,
"author_profile": "https://Stackoverflow.com/users/4279155",
"pm_score": 1,
"selected": false,
"text": "Replace() Substitute() Replace() Substitute() =SUBSTITUTE(C2,\" \",\"\")\n"
},
{
"answer_id": 74490134,
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13877145/"
] |
74,489,978 | <p>Did anyone of You had the same problem as described below? If so, do you have any tip or solution for this?</p>
<p>I have a problem with my local environment. Every time I try to build the solution, a lot of its projects are being skipped and I receive many CS0006 errors: "Metadata file (...) could not be found... | [
{
"answer_id": 74490126,
"author": "Dominique",
"author_id": 4279155,
"author_profile": "https://Stackoverflow.com/users/4279155",
"pm_score": 1,
"selected": false,
"text": "Replace() Substitute() Replace() Substitute() =SUBSTITUTE(C2,\" \",\"\")\n"
},
{
"answer_id": 74490134,
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19667273/"
] |
74,489,979 | <p>I want to fetch text from a div, but there are allot of duplicated classes. The only way to filter my search is by checking for a specific text within a sibling. Right now this is what I got:</p>
<pre><code>accountmanager = ()
def send_keys_in_loop_dropaccountmanager(locator):
for i in range(5):
try:
... | [
{
"answer_id": 74490126,
"author": "Dominique",
"author_id": 4279155,
"author_profile": "https://Stackoverflow.com/users/4279155",
"pm_score": 1,
"selected": false,
"text": "Replace() Substitute() Replace() Substitute() =SUBSTITUTE(C2,\" \",\"\")\n"
},
{
"answer_id": 74490134,
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74489979",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15308268/"
] |
74,490,029 | <p>I am currently trying to implement a tab feature using Angular Material. I can for the life of me not get the button to click that is in the header. I have tried moving the click event around the tabs and it doesn't seem to get triggered anywhere.</p>
<p>I am trying to add the functionality that you can close a tab ... | [
{
"answer_id": 74494813,
"author": "Mr. Stash",
"author_id": 13625800,
"author_profile": "https://Stackoverflow.com/users/13625800",
"pm_score": 3,
"selected": true,
"text": "<mat-tab-group animationDuration=\"0ms\" class=\"allow-tab-events\">\n</mat-tab-group>\n .allow-tab-events ::ng-d... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8125309/"
] |
74,490,072 | <p>I have a long-running bash script (like a daemon), which may emit output to both stdout and stderr.</p>
<p>I have these requirements:</p>
<ul>
<li>prepend every output line with a string (e.g. date, time of the log entry and other info)</li>
<li>redirect all output into a log file</li>
<li>output redirection must be... | [
{
"answer_id": 74494813,
"author": "Mr. Stash",
"author_id": 13625800,
"author_profile": "https://Stackoverflow.com/users/13625800",
"pm_score": 3,
"selected": true,
"text": "<mat-tab-group animationDuration=\"0ms\" class=\"allow-tab-events\">\n</mat-tab-group>\n .allow-tab-events ::ng-d... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490072",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2043589/"
] |
74,490,088 | <p>Basically, I'm creating a really low tier cipher. I've set up a bit of code to randomize each character, but I can't figure out how to replace a string with these. This is the code I attempted</p>
<pre><code>characters = ["a", "b", "c", "d", "e", "f", "... | [
{
"answer_id": 74490193,
"author": "StonedTensor",
"author_id": 6023918,
"author_profile": "https://Stackoverflow.com/users/6023918",
"pm_score": 1,
"selected": false,
"text": "old_character new_character character_mapping = {\"a\": \"h\", \"b\": \"i\" , ...} \n\nold_string = \"my old s... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20539599/"
] |
74,490,096 | <p>I am trying to produce a new column (Yrgroup) that puts individual years into 2year groups so:</p>
<pre><code>Yrs TS Yrgroup
2011 2 11/12
2011 2 11/12
2012 4 11/12
2012 8 11/12
2013 2 13/14
2013 1 13/14
2014 3 13/14
2014 7 13/14
</code></pre>
<pre><code>Yr = c(2011,2011,2012,2012,2013,2013,2014,2014)
Yr
Tra... | [
{
"answer_id": 74490180,
"author": "VvdL",
"author_id": 15589010,
"author_profile": "https://Stackoverflow.com/users/15589010",
"pm_score": 0,
"selected": false,
"text": "modulo 2 Yr = c(2011,2011,2012,2012,2013,2013,2014,2014)\nTranship = c(2,5,8,2,2,2,7,8)\ndf = data.frame(Yr, Tranship... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13199109/"
] |
74,490,108 | <p><strong>Scenario</strong>
I'm developing an API, the request header of the API will contain a Username and Password. We need to validate the username and password. We are using Keycloak IAM, but it's not configured with our wso2 EI setup.</p>
<p><strong>Question</strong>
My exact question is what's the best practice... | [
{
"answer_id": 74490656,
"author": "ycr",
"author_id": 2627018,
"author_profile": "https://Stackoverflow.com/users/2627018",
"pm_score": 2,
"selected": false,
"text": "Call Mediator Sequence"
}
] | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490108",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7454536/"
] |
74,490,109 | <p>How can I have the margin between two <code>td</code> elements?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>table {
border: none;
}
table tr {
height: 40px;
}
... | [
{
"answer_id": 74490156,
"author": "Lakruwan Pathirage",
"author_id": 12383492,
"author_profile": "https://Stackoverflow.com/users/12383492",
"pm_score": 1,
"selected": false,
"text": "table border-spacing table border-spacing table {\n border-spacing: 30px;\n}\n border-spacing table... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15488181/"
] |
74,490,139 | <p>I tried writing an algorithm that prints the k largest elemtns of a max heap but I cannot do it in the right complexity.</p>
<p>This is the Pseudo-code I wrote-</p>
<pre><code>Print_k_largest(A[1,…,n],k):
If k>Heapsize(A):Error
i=1
insert[B,A[i])
print(B[1])
k-=1
While k>0:
if 2*i< Heapsize(A):
... | [
{
"answer_id": 74492229,
"author": "Edward Peters",
"author_id": 6016064,
"author_profile": "https://Stackoverflow.com/users/6016064",
"pm_score": 1,
"selected": false,
"text": "A B A B B A A Node(value : int, left : Option[Node], right : Option[Node])\n value B MetaNode(value : Node, le... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20539707/"
] |
74,490,151 | <p>Hi I'm wondering what is the fastest, most easy way to AddOrUpdate data in a Pandas DataFrame</p>
<pre><code>import pandas as pd
# Original DataFrame
pd.DataFrame([
{'A':'a1','B':'b1','C':'c1'},
{'A':'a3','B':'b2','C':'c2'},
{'A':'a3','B':'b3','C':'c3'},
])
Original DataFrame :
... | [
{
"answer_id": 74490190,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 1,
"selected": false,
"text": "DataFrame reindex combine_first df2 = pd.DataFrame(changes).set_index('id')\n\nout = (df2.reindex(df.index.union(df... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7649785/"
] |
74,490,171 | <p>I've been reading alot and to be honest haven't seen any meaningful solution.
So i have a component which contains a button and a dropdown to display some content (another buttons in this scenario).</p>
<p>Kebab button component:</p>
<pre><code><button>some button displaying dropdown<button>
<app-dro... | [
{
"answer_id": 74490190,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 1,
"selected": false,
"text": "DataFrame reindex combine_first df2 = pd.DataFrame(changes).set_index('id')\n\nout = (df2.reindex(df.index.union(df... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17947665/"
] |
74,490,177 | <p>The following code causes CS0266 in Visual Studio:</p>
<pre><code>double x = 1.23;
int y = x;
</code></pre>
<p>But the following code compiles in Visual Studio, and causes an implicit cast double to int:</p>
<pre><code>double x = 0;
ReadOnlyCollection<double> y = new ReadOnlyCollection<double>(new double... | [
{
"answer_id": 74490220,
"author": "Tim Schmelter",
"author_id": 284240,
"author_profile": "https://Stackoverflow.com/users/284240",
"pm_score": 3,
"selected": false,
"text": "foreach object[] things = ...\n\nforeach(string s in things)\n{\n // ...\n}\n foreach (V v in x) embedded-sta... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14502272/"
] |
74,490,235 | <p>Question: I am trying to validate email endings in an array</p>
<pre class="lang-js prettyprint-override"><code>let input = 'test@gmail.com' // This is grabbed dynamically but for sake of explanation this works the same
let validEndings = ['@gmail.com', '@mail.com', '@aol.com'] //and so on
if(input.endsWith(validE... | [
{
"answer_id": 74490321,
"author": "birim",
"author_id": 18724350,
"author_profile": "https://Stackoverflow.com/users/18724350",
"pm_score": 2,
"selected": true,
"text": "const input = 'test@gmail.com';\nconst validEndingsRegex = /@gmail.com$|@mail.com$|@aol.com$/g;\nconst found = input.... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19317879/"
] |
74,490,264 | <p>Week # 1 2 3 4 5</p>
<p>Ratio 0.9 0.9 0.8 0.8 0.6</p>
<p>Select week from Drop Down List ____ (we have 1,2,3,4,5 inside)</p>
<p>So how can we use index,match,product or other excel formulas for performing the following task:</p>
<p>If 3 is selected from the dropdown list, then we multiply 0.9<em>0.9<... | [
{
"answer_id": 74490321,
"author": "birim",
"author_id": 18724350,
"author_profile": "https://Stackoverflow.com/users/18724350",
"pm_score": 2,
"selected": true,
"text": "const input = 'test@gmail.com';\nconst validEndingsRegex = /@gmail.com$|@mail.com$|@aol.com$/g;\nconst found = input.... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14806128/"
] |
74,490,315 | <p>Add added audio to my simple website and when i first click the button the audio does not play. After the second click it will play. If I wait a while then the problem will return.</p>
<p>There are no errors in the console and I even see chromes speaker icon on the tab but hear nothing.</p>
<pre><code></code></pre>
... | [
{
"answer_id": 74490321,
"author": "birim",
"author_id": 18724350,
"author_profile": "https://Stackoverflow.com/users/18724350",
"pm_score": 2,
"selected": true,
"text": "const input = 'test@gmail.com';\nconst validEndingsRegex = /@gmail.com$|@mail.com$|@aol.com$/g;\nconst found = input.... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490315",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15377471/"
] |
74,490,342 | <p>Given the following JSON snippet</p>
<pre><code>{
"count": 4,
"checks":
[ {
"id": "8299393",
"name": "NEW_CUSTOMER",
"statusCode": "495"
},
{
"id":... | [
{
"answer_id": 74490408,
"author": "Harun Yilmaz",
"author_id": 1331040,
"author_profile": "https://Stackoverflow.com/users/1331040",
"pm_score": 2,
"selected": true,
"text": "EXISTING_CUSTOMER Array.find() const data = {\n \"count\": 4,\n \"checks\": \n [ {\n \"id\... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1461517/"
] |
74,490,376 | <p>I'm facing an issue with my ec2 instance. Until now, I had an ec2 instance working with an IP like this: ec2-xx-xxx-xxx-xxx.compute-1.amazonaws.com.</p>
<p>Now I configured an elastic IP to make that instead of use the default domain uses one of my own.</p>
<p>Something goes wrong because now a receive a 403 if I ma... | [
{
"answer_id": 74495184,
"author": "John Rotenstein",
"author_id": 174777,
"author_profile": "https://Stackoverflow.com/users/174777",
"pm_score": 0,
"selected": false,
"text": "bochogame.com A-Record"
}
] | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12479599/"
] |
74,490,425 | <p>why can't i change innerHTML</p>
<pre><code><html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">... | [
{
"answer_id": 74495184,
"author": "John Rotenstein",
"author_id": 174777,
"author_profile": "https://Stackoverflow.com/users/174777",
"pm_score": 0,
"selected": false,
"text": "bochogame.com A-Record"
}
] | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490425",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20539168/"
] |
74,490,444 | <p>I have HTML file:</p>
<p>1.html</p>
<pre><code>!DOCTYPE html>
<html>
<head>
<title>Password Reminder</title>
</head>
<body>
<p>
Dear user, your password expires in: <strong>$($days)</strong> days.
</p>
... | [
{
"answer_id": 74490732,
"author": "frankM_DN",
"author_id": 20034020,
"author_profile": "https://Stackoverflow.com/users/20034020",
"pm_score": 3,
"selected": true,
"text": "$template_content = $template_content.replace('$($days)',$days)"
},
{
"answer_id": 74490824,
"author"... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11255078/"
] |
74,490,465 | <p>My previous deployments with same github workflow file were successful.
Suddenly today, I get this error in Github Actions while trying to deploy.</p>
<p>May I know how to fix this?</p>
<pre><code>Run google-github-actions/setup-gcloud@v0
24
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/wo... | [
{
"answer_id": 74491684,
"author": "user3665224",
"author_id": 3665224,
"author_profile": "https://Stackoverflow.com/users/3665224",
"pm_score": 3,
"selected": true,
"text": "uses: google-github-actions/setup-gcloud@v0 - run: |\n sudo apt-get install python2.7\n export CLOUDSDK_PYT... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3665224/"
] |
74,490,476 | <p>By mistake I encoded hex data with Windows-1253 (Java eclipse option) but the data should be encoded with ISO-8859-1. Is there a way to re encode the data to get the right conversion?</p>
| [
{
"answer_id": 74492565,
"author": "Thomas Behr",
"author_id": 9535950,
"author_profile": "https://Stackoverflow.com/users/9535950",
"pm_score": 0,
"selected": false,
"text": "Windows-1253 void encode( File src, File tgt ) throws IOException {\n if (Charset.isSupported(\"Windows-1253\"... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5650290/"
] |
74,490,492 | <p>I have such setup of K8S:</p>
<p>Cloudflare -> Digital Ocean Load Balancer -> Nginx Ingress -> Nginx Container</p>
<p>Based on my answer on this <a href="https://stackoverflow.com/a/72140360/1102574">question</a> all works fine up to <code>Nginx Ingress</code> here I get the correct IP of the user.</p>
<p>B... | [
{
"answer_id": 74492565,
"author": "Thomas Behr",
"author_id": 9535950,
"author_profile": "https://Stackoverflow.com/users/9535950",
"pm_score": 0,
"selected": false,
"text": "Windows-1253 void encode( File src, File tgt ) throws IOException {\n if (Charset.isSupported(\"Windows-1253\"... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1102574/"
] |
74,490,494 | <p>I am using gcc compiler through the terminal of linux run a program. The University that i in, gave us a file with tests. We should run these tests on our programs and the tests should pass. I compile my program with gcc through terminal and it doesnt come back with any errors.I run the tests, the test results are ... | [
{
"answer_id": 74492565,
"author": "Thomas Behr",
"author_id": 9535950,
"author_profile": "https://Stackoverflow.com/users/9535950",
"pm_score": 0,
"selected": false,
"text": "Windows-1253 void encode( File src, File tgt ) throws IOException {\n if (Charset.isSupported(\"Windows-1253\"... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490494",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20530985/"
] |
74,490,521 | <p>I wanna make strings like <code>A1</code>, <code>A2</code>...
here is my code:</p>
<pre><code>def random_room(self):
return chr(random.randint(65, 90)) + chr(random.randint(1, len(self.rooms)))
</code></pre>
<p>but it doesn't work</p>
| [
{
"answer_id": 74490591,
"author": "Claude Shannon",
"author_id": 20102259,
"author_profile": "https://Stackoverflow.com/users/20102259",
"pm_score": 0,
"selected": false,
"text": "def random_room(self):\n return \"{}{}\".format(chr(random.randint(65, 90)), random.randint(1, len(s... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/313421/"
] |
74,490,529 | <p>I'm trying to compare one list and one set using two for loops, what I find weird is that sometimes 'O' is in the output and sometimes 'L' is but never both. Does it have to do with set being unsorted? Also is there a better way of getting the duplicates of a list? Preferably the unique duplicates. Any help is appre... | [
{
"answer_id": 74490599,
"author": "Cory Kramer",
"author_id": 2296458,
"author_profile": "https://Stackoverflow.com/users/2296458",
"pm_score": 3,
"selected": true,
"text": "charList collections.Counter >>> from collections import Counter\n>>> s = 'HELOLO'\n>>> c = Counter(s)\n>>> c\nCo... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18714330/"
] |
74,490,560 | <p>I am trying to make a 16x16 grid in which the grid background appears green when you hover your mouse over it, and then the green fades out after awhile.</p>
<p>For now, I just removed the html class <code>hover</code> after 2 seconds by using <code>setTimeout</code>, but I can't seem to figure out how to make the g... | [
{
"answer_id": 74490614,
"author": "Nuro007",
"author_id": 19669556,
"author_profile": "https://Stackoverflow.com/users/19669556",
"pm_score": 0,
"selected": false,
"text": "transition-duration: 100ms;"
},
{
"answer_id": 74490640,
"author": "isherwood",
"author_id": 12648... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490560",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18558349/"
] |
74,490,577 | <p>I was able to download the data ( json response) from the below URL for a while via curl on Windows.</p>
<p>curl.exe <a href="https://www.theocc.com/mdapi/series-search?symbol_type=U&symbol=AA" rel="nofollow noreferrer">https://www.theocc.com/mdapi/series-search?symbol_type=U&symbol=AA</a></p>
<p>or</p>
<p>c... | [
{
"answer_id": 74490629,
"author": "Gilles Quenot",
"author_id": 465183,
"author_profile": "https://Stackoverflow.com/users/465183",
"pm_score": 0,
"selected": false,
"text": "curl -b cookies -c cookies <URL>\n"
},
{
"answer_id": 74497472,
"author": "Misunderstood",
"auth... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490577",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13696925/"
] |
74,490,667 | <p>What is replace of the <code>CGContextAddLineToPoint</code> this is what I'm trying to do</p>
<pre><code> for i in aerr {
//0.5f offset lines up line with pixel boundary
CGContextMoveToPoint(context, self.bounds.origin.x, self.font!.lineHeight * CGFloat(x) + baselineOffset)
CGContextAdd... | [
{
"answer_id": 74490789,
"author": "Abdulrahman",
"author_id": 12858507,
"author_profile": "https://Stackoverflow.com/users/12858507",
"pm_score": 0,
"selected": false,
"text": "context.move(to: .init(x: self.bounds.origin.x, y: self.font!.lineHeight * CGFloat(x) + baselineOffset))\n"
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10284355/"
] |
74,490,673 | <p>I am trying to get all transport headers used when calling a specific API and log that for debugging, since we do not know what the name of the headers will be I want to log them all.</p>
<p>I know this can be done via a class mediator as well as by enabling wire logs but I am looking for an option to achieve this w... | [
{
"answer_id": 74493857,
"author": "ycr",
"author_id": 2627018,
"author_profile": "https://Stackoverflow.com/users/2627018",
"pm_score": 0,
"selected": false,
"text": "\"org.apache.axis2.context.MessageContext.TRANSPORT_HEADERS\" TRANSPORT_HEADERS Axis2Context ScriptMediator"
},
{
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490673",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13981080/"
] |
74,490,698 | <p>I am trying to deserialize an object with .net builtin functions.<br />
lets see the array "attributes" which I am trying to deserialize:</p>
<pre><code>"attributes": [
{
"trait_type": "Subseries",
"value": "Templar Order"
},
{
"trait_type&... | [
{
"answer_id": 74491496,
"author": "Peter Csala",
"author_id": 13268855,
"author_profile": "https://Stackoverflow.com/users/13268855",
"pm_score": 1,
"selected": false,
"text": "abstract class TraitInfo\n{\n [JsonProperty(\"trait_type\")]\n public string TraitType { get; set; }\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8695110/"
] |
74,490,704 | <p>I am trying to parse value from JSON api response in POSTMAN, but the key i need to parse starts with numerical.</p>
<p>Part of response:</p>
<pre><code>"data": {
"354a24d506af956a0ccf14444b18da38834eabbd": very good,
}
</code></pre>
<p>so using:</p>
<pre><code>var jsonData = JSON.parse(respon... | [
{
"answer_id": 74491496,
"author": "Peter Csala",
"author_id": 13268855,
"author_profile": "https://Stackoverflow.com/users/13268855",
"pm_score": 1,
"selected": false,
"text": "abstract class TraitInfo\n{\n [JsonProperty(\"trait_type\")]\n public string TraitType { get; set; }\n ... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20223379/"
] |
74,490,712 | <p>Have a file <strong>sample.yaml</strong></p>
<pre><code>---
action: "want-to-update"
foo: |-
{
"a" : "actual A",
"b" : "actual B",
"c" : "actual C"
}
---
action: "dont-want-to-update"
foo: |-
.
.
.
</code>... | [
{
"answer_id": 74491131,
"author": "glenn jackman",
"author_id": 7552,
"author_profile": "https://Stackoverflow.com/users/7552",
"pm_score": 1,
"selected": false,
"text": "tostring json=$(\n yq 'select(.action == \"want-to-update\").foo' sample.yaml \\\n | jq '.a = \"updated a\"'\n... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490712",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4901086/"
] |
74,490,790 | <p>I need to match a group of exact 5 characters 1's. Example below</p>
<pre><code>02011111020 // match
00211111200 // Not match because there are 2 at start and end of group
00111111100 // Not match because there are 6 1's
</code></pre>
<p>So far, I have try with pattern</p>
<ul>
<li><code>(?!2)(1{5}?)(?!2)</code> but... | [
{
"answer_id": 74490831,
"author": "The fourth bird",
"author_id": 5424988,
"author_profile": "https://Stackoverflow.com/users/5424988",
"pm_score": 3,
"selected": true,
"text": "(?!2) (?!2) \\D [12] (?<![12])1{5}(?![12])\n (?<![12]) 1{5} (?![12])"
},
{
"answer_id": 74490996,
... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20540177/"
] |
74,490,801 | <p>I would like to create random dataset consists of 10 million rows. Unfortunately, I could not find a way to create date column with specific range (example from 01.01.2021-31.12.2021).</p>
<p>I tried with oracle sql, but could not find a way to do that. There is way that I can do in excel, but excel can not handle 1... | [
{
"answer_id": 74490896,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 0,
"selected": false,
"text": "pandas.date_range numpy.random.choice df = pd.DataFrame(\n {\n 'date': np.random.choice(\n pd.... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74490801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20540149/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.