qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,373,477 | <p>dummy code:</p>
<pre><code>void fun()
{
while (m->hasMessage())
{
std::pair<std::string, Vector> msg_pair = m->getMessage();
auto topic = msg_pair.first;
auto msg = msg_pair.second;
for (auto const& x : msg)
{
auto const type = m->Messag... | [
{
"answer_id": 74375515,
"author": "Ingo Kegel",
"author_id": 936832,
"author_profile": "https://Stackoverflow.com/users/936832",
"pm_score": 2,
"selected": true,
"text": "class ApiUser {\n Listener listener;\n void registerListener() {\n listener = new Listener() {\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20457918/"
] |
74,373,499 | <p>I have a set of 50 vectors and would like to create a dataframe from those 50 vectors values and their names as the following example.</p>
<p><strong>Example with 3 vector, but reality is about 50 vectors.</strong></p>
<pre><code>vector_a<- c("a1","a2", "a3","a4")
vector_cx... | [
{
"answer_id": 74373841,
"author": "zx8754",
"author_id": 680068,
"author_profile": "https://Stackoverflow.com/users/680068",
"pm_score": 3,
"selected": true,
"text": "stack(mget(ls(pattern = \"^vector_\")))\n# values ind\n# 1 x1 vector_3\n# 2 x2 vector_3\n# 3 a1 v... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9503697/"
] |
74,373,523 | <p>I have a list of dictionaries shaped like this:</p>
<pre><code>[{'country': 'Afghanistan', 'continent': 'Asia', '1990': 500, '1990_lower': 200, '1990_upper': 1000, '1991': 500, '1991_lower': 200, '1991_upper': 1000, '1992': 500, '1992_lower': 200, '1992_upper': 1000, '1993': 1000, '1993_lower': 500, '1993_upper': 11... | [
{
"answer_id": 74373672,
"author": "EEtch",
"author_id": 14912887,
"author_profile": "https://Stackoverflow.com/users/14912887",
"pm_score": 2,
"selected": true,
"text": "years_cases[x] += dictionary[x] final_dict: dict[str, dict[int, int]] = {\n continent : {\n year: sum(dic[s... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20323201/"
] |
74,373,536 | <p>I am creating a React.js DApp which will interact with <a href="https://developers.rsk.co/" rel="noreferrer">Rootstock (RSK)</a> deployed smart contracts.
Recently I came across a React library called <a href="https://usedapp-docs.netlify.app/docs/" rel="noreferrer">useDApp</a>. This library automates the blockchain... | [
{
"answer_id": 74374298,
"author": "bguiz",
"author_id": 194982,
"author_profile": "https://Stackoverflow.com/users/194982",
"pm_score": 3,
"selected": false,
"text": "const rootstockTestnetExplorerUrl = 'https://explorer.testnet.rsk.co/';\n\nexport const RootstockTestnet = {\n chainId:... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18620436/"
] |
74,373,561 | <p>I'm trying to transform a string that contains a dict to a dict object using json.
But in the data contains a "
example</p>
<pre><code>string = '{"key1":"my"value","key2":"my"value2"}'
js = json.loads(s,strict=False)
</code></pre>
<p>it outputs json.decoder.JSON... | [
{
"answer_id": 74373767,
"author": "ChamRun",
"author_id": 14761615,
"author_profile": "https://Stackoverflow.com/users/14761615",
"pm_score": 0,
"selected": false,
"text": "string string = '{\"key1\":\"my\\\\\"value\",\"key2\":\"my\\\\\"value2\"}'\n"
},
{
"answer_id": 74373919,
... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20458141/"
] |
74,373,582 | <p>Having a dataframe like this:</p>
<pre><code>structure(list(id = c(1, 2, 3), date1 = c(13, 9, 0), date2 = c(17L,
13L, 17L)), row.names = c(NA, -3L), class = "data.frame")
</code></pre>
<p>How is it possible to check if a row has different numbers than 0 or/and 17 and keep them into a new dataframe (exclud... | [
{
"answer_id": 74373767,
"author": "ChamRun",
"author_id": 14761615,
"author_profile": "https://Stackoverflow.com/users/14761615",
"pm_score": 0,
"selected": false,
"text": "string string = '{\"key1\":\"my\\\\\"value\",\"key2\":\"my\\\\\"value2\"}'\n"
},
{
"answer_id": 74373919,
... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20224217/"
] |
74,373,594 | <p>I need help in working with big Excel Tables.</p>
<h3>Description</h3>
<hr />
<p>I have an export of Data from our ERP System that has 400K Rows at least.
In this report the format is quite messed up and I want to write a script that will clean up all the data.</p>
<p>I started to write little sub just to delete emp... | [
{
"answer_id": 74377140,
"author": "FunThomas",
"author_id": 7599798,
"author_profile": "https://Stackoverflow.com/users/7599798",
"pm_score": 3,
"selected": true,
"text": "Sub DeleteLastRows()\n Const DeleteChunkSize = 1000\n \n Dim lastRow As Long\n With ThisWorkbook.Sheets... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19640110/"
] |
74,373,601 | <p>I've written the function which shall everytime it is called get new data trough a service file.</p>
<p>The function looks like this:</p>
<pre><code>onCarChange() {
this.carService.getCarData(this.selectedCar).subscribe(
async (response: CarData) => {
if (response?.data === null) {
this.showCarData = fa... | [
{
"answer_id": 74373696,
"author": "Carles Ramos",
"author_id": 13309394,
"author_profile": "https://Stackoverflow.com/users/13309394",
"pm_score": 2,
"selected": false,
"text": "onCarChange() {\n this.carService.getCarData(this.selectedCar).subscribe({\n next: async (response)... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19666704/"
] |
74,373,633 | <p>I have one box div inside that, user can easily add link for h1 tag i.e for title tag. but I require that it should apply to the whole div. The anchor tag is coming from Wordpress editor toolbar, so how can I extract that <code>href</code> and add to whole div. code is using React.</p>
<p>eg :</p>
<p><div class="sni... | [
{
"answer_id": 74373696,
"author": "Carles Ramos",
"author_id": 13309394,
"author_profile": "https://Stackoverflow.com/users/13309394",
"pm_score": 2,
"selected": false,
"text": "onCarChange() {\n this.carService.getCarData(this.selectedCar).subscribe({\n next: async (response)... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14561768/"
] |
74,373,638 | <p>I have the simple task to print elements inside a LinkedList that has no duplicates with commas in between, but I have come up with two ways to do it and I'm unsure about how LinkedList iteration works so I don't know which way is best. I have some assumptions about both ways.</p>
<pre><code> public static void m... | [
{
"answer_id": 74375160,
"author": "Matt Timmermans",
"author_id": 5483526,
"author_profile": "https://Stackoverflow.com/users/5483526",
"pm_score": 0,
"selected": false,
"text": "get(i) for(var: list) String sep = \"\";\nfor (int courseIndex : pres) {\n System.out.print(sep + courseI... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17944655/"
] |
74,373,674 | <p>I am trying to provide wrappers for short-cutting every-day commands. Python environments are very useful to do that.</p>
<p>Is it possible to provide all methods of an object to the local namespace within a new environment?</p>
<pre class="lang-py prettyprint-override"><code>class my_object:
def method_a():
... | [
{
"answer_id": 74373942,
"author": "rgpereira",
"author_id": 8433948,
"author_profile": "https://Stackoverflow.com/users/8433948",
"pm_score": 0,
"selected": false,
"text": "class MyObject:\n def method_a():\n ...\n\nclass MyEnvironment(MyObject):\n ...\n def __enter__(se... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2575273/"
] |
74,373,713 | <p>My task is the following:</p>
<blockquote>
<p>Given three integers. Determine how many of them are equal to each other. The program must print one of the numbers: 3 (if all are same), 2 (if two of them are equal to each other and the third one is different) or 0 (if all numbers are different).</p>
</blockquote>
<p>I... | [
{
"answer_id": 74373756,
"author": "Mureinik",
"author_id": 2422776,
"author_profile": "https://Stackoverflow.com/users/2422776",
"pm_score": 4,
"selected": true,
"text": "checker except checker def valuecheck(checker):\n loopx = True\n while loopx:\n try:\n #first it checks if... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20458305/"
] |
74,373,714 | <p>Learning work with Maps...Can't have access to the element specified?
what is the problem. please give me some links to read or watch working with Maps in flutter.
<a href="https://i.stack.imgur.com/PAfES.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PAfES.png" alt="enter image description here"... | [
{
"answer_id": 74373756,
"author": "Mureinik",
"author_id": 2422776,
"author_profile": "https://Stackoverflow.com/users/2422776",
"pm_score": 4,
"selected": true,
"text": "checker except checker def valuecheck(checker):\n loopx = True\n while loopx:\n try:\n #first it checks if... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20019751/"
] |
74,373,748 | <p>I am a beginner web developer and as a test task I got the following:</p>
<blockquote>
<p>An unordered array of printed ASCII characters is given. Describe in your own words (without code or pseudocode) a sorting algorithm that allows you to sort this array alphabetically in linear time. It is necessary to describe ... | [
{
"answer_id": 74373756,
"author": "Mureinik",
"author_id": 2422776,
"author_profile": "https://Stackoverflow.com/users/2422776",
"pm_score": 4,
"selected": true,
"text": "checker except checker def valuecheck(checker):\n loopx = True\n while loopx:\n try:\n #first it checks if... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13432333/"
] |
74,373,818 | <p>I need to validate and clean a field in CSV. There is column for IP address and I need to remove only invalid data inside that column.</p>
<p>I tried the following command :</p>
<pre><code>awk 'BEGIN{ FS=OFS="," }{ gsub(/^([0-9]{1,3}[\.]){3}[0-9]{1,3}$/,"", $3) }1' input.csv
</code></pre>
<p>Inpu... | [
{
"answer_id": 74373756,
"author": "Mureinik",
"author_id": 2422776,
"author_profile": "https://Stackoverflow.com/users/2422776",
"pm_score": 4,
"selected": true,
"text": "checker except checker def valuecheck(checker):\n loopx = True\n while loopx:\n try:\n #first it checks if... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373818",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20458378/"
] |
74,373,844 | <p>React: I have a menu and list of sub menus. I want to calculate the sub menus count and if it exceed from 3, rest sub menus will be hide.</p>
<p><code>Code for try count the elements</code></p>
<pre><code>export default function App() {
const ElementRef = useRef(null)
useEffect(() => {
const Elementcou... | [
{
"answer_id": 74373756,
"author": "Mureinik",
"author_id": 2422776,
"author_profile": "https://Stackoverflow.com/users/2422776",
"pm_score": 4,
"selected": true,
"text": "checker except checker def valuecheck(checker):\n loopx = True\n while loopx:\n try:\n #first it checks if... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373844",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5444560/"
] |
74,373,868 | <p>I want to list/search all the issues in Jira. I have a code like :</p>
<pre><code>url = 'https://company.com/rest/api/2/search'
auth = HTTPBasicAuth("username", "password") // I tries token as well
headers = {
'Accept': 'application/json'
}
query = {
'jql': 'project=PRKJECTKEY',
'... | [
{
"answer_id": 74373988,
"author": "JohnyCapo",
"author_id": 19335841,
"author_profile": "https://Stackoverflow.com/users/19335841",
"pm_score": 0,
"selected": false,
"text": "atlassian-python-api"
},
{
"answer_id": 74375381,
"author": "Andreas G.",
"author_id": 9836432,
... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8671089/"
] |
74,373,870 | <p>I want to create a cool animation that when the user clicks on the email input or the password the label of the input will go up and have a nice transition in the bottom border.</p>
<p><strong>This is what I have:</strong></p>
<p><a href="https://i.stack.imgur.com/8otpb.png" rel="nofollow noreferrer"><img src="https... | [
{
"answer_id": 74373988,
"author": "JohnyCapo",
"author_id": 19335841,
"author_profile": "https://Stackoverflow.com/users/19335841",
"pm_score": 0,
"selected": false,
"text": "atlassian-python-api"
},
{
"answer_id": 74375381,
"author": "Andreas G.",
"author_id": 9836432,
... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19087533/"
] |
74,373,886 | <p>I have a splash screen in my <code>homepage</code> activity which should then redirect to my <code>second activity</code>:</p>
<pre><code>class _MyHomePageState extends State<MyHomePage> {
@override
void initState(){
super.initState();
Timer(const Duration(seconds: 3),
()=>Navigator.... | [
{
"answer_id": 74374106,
"author": "Sachin Kumawat",
"author_id": 11830339,
"author_profile": "https://Stackoverflow.com/users/11830339",
"pm_score": 3,
"selected": true,
"text": "class SecondScreen extends StatefulWidget {\n const SecondScreen({Key? key}) : super(key: key);\n\n @overr... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,373,917 | <p>is there a way to subset from a data set some IDs based on an external list?
In other words, I have a data set:</p>
<blockquote>
<pre><code> ID Value
0001 0.3
0001 0.6
0002 0.7
0002 0.71
0002 0.43
0003 0.01
0003 0.2
0005 12
0005 11
</code></pre... | [
{
"answer_id": 74374446,
"author": "Negdo",
"author_id": 19646183,
"author_profile": "https://Stackoverflow.com/users/19646183",
"pm_score": 1,
"selected": true,
"text": "data have;\n input ID Value;\n format ID z4.;\n datalines;\n0001 0.3\n0001 0.6\n0002 0.7\n0002 0.71\n0002 0.... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19938845/"
] |
74,373,927 | <p>I have a data frame with three columns:</p>
<pre><code>
df <- data.frame(col1=c('71711', '71711', '71711', 'Comment 4', '71711', 'Comment 6'),
col2=c('Comment 1','Comment 2','Comment 3', '24','Comment 5','26'),
col3 = c('21','22','23',NA,'25',NA))
</code></pre>
<p>Desired outp... | [
{
"answer_id": 74374044,
"author": "det",
"author_id": 12148402,
"author_profile": "https://Stackoverflow.com/users/12148402",
"pm_score": 2,
"selected": true,
"text": "NA col3 indices <- which(is.na(df$col3))\ndf[indices,] <- append(list(paste0(\"ID\", indices)), df[indices,-3])\n"
},... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8629463/"
] |
74,373,967 | <p>I would need your help with the following</p>
<p>Our goal is to increase our overall share in the market - To do this, we would like to know whether introducing a specific combination of products to different countries would have an impact on our market share.</p>
<p>Following is a mockup data over a period of Augus... | [
{
"answer_id": 74374044,
"author": "det",
"author_id": 12148402,
"author_profile": "https://Stackoverflow.com/users/12148402",
"pm_score": 2,
"selected": true,
"text": "NA col3 indices <- which(is.na(df$col3))\ndf[indices,] <- append(list(paste0(\"ID\", indices)), df[indices,-3])\n"
},... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1539912/"
] |
74,373,968 | <p>SO, I am trying to solve LCS using Recursion + memorization.<br>
I know dp is more efficient but just for understanding, I wanted to solve using hashmap.<br></p>
<p>APPROACH ->
There are 2 strings given s1 and s2 with lengths are x, and y. <br>
In normal recursion we do something like this. <br></p>
<p>if (x==-1 ... | [
{
"answer_id": 74375930,
"author": "pasthec",
"author_id": 8923995,
"author_profile": "https://Stackoverflow.com/users/8923995",
"pm_score": 1,
"selected": false,
"text": "std::pair<int,int> std::map um[temp2] = first_; um[temp3] = second_; lcsRecursiveAndMemorization(S1, S2, um, x - 1, ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74373968",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19141868/"
] |
74,374,015 | <p>I am displaying several <code>ggplots</code> into a <code>ggarrange</code> matrix.<br />
<code>ggarrange</code> displays each subsequent plot one by one by column and starts with a new row when the last column is reached.</p>
<p>What I would like to do is to display each plot by row then start with a new column when... | [
{
"answer_id": 74374211,
"author": "Hansel Palencia",
"author_id": 10897981,
"author_profile": "https://Stackoverflow.com/users/10897981",
"pm_score": 1,
"selected": false,
"text": "rep() i j scale_x/y_continuous() library(ggplot2)\nlibrary(ggpubr)\n\n##### Initiating objects\nset.seed(1... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374015",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17049772/"
] |
74,374,051 | <p>I have a normal, easy flexbox layout. I try to show two elements per row. There is enough width for 2 elements. But strangely, every element gets one whole row. I don't know why. Here is my code:</p>
<p>gallery.html:</p>
<pre><code><div class="container" *ngFor="let imageOrFile of imagesAndFiles&qu... | [
{
"answer_id": 74374216,
"author": "Luca Angrisani",
"author_id": 13240452,
"author_profile": "https://Stackoverflow.com/users/13240452",
"pm_score": 2,
"selected": false,
"text": "<div class=\"container\">\n <div class=\"image\" *ngFor=\"let imageOrFile of imagesAndFiles\">\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14287016/"
] |
74,374,053 | <p><a href="https://i.stack.imgur.com/qEJRb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qEJRb.png" alt="enter image description here" /></a></p>
<p>I like to increase the count of Item 1 without changing the count of Item 2 and Item 3. How do I do that in React Native? I am a beginner.</p>
<p>Her... | [
{
"answer_id": 74374216,
"author": "Luca Angrisani",
"author_id": 13240452,
"author_profile": "https://Stackoverflow.com/users/13240452",
"pm_score": 2,
"selected": false,
"text": "<div class=\"container\">\n <div class=\"image\" *ngFor=\"let imageOrFile of imagesAndFiles\">\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20307955/"
] |
74,374,098 | <p>Hi there I'm trying to use the following</p>
<pre><code>sValue.substr(0,1000);
</code></pre>
<p>on the string</p>
<p><code>&lt;ul class='ulIndentRight'&gt;&lt;li&gt;&lt;b&gt;Altissimo Guesthouse&lt;/b&gt; &lt;/li&gt;&lt;li&gt; Luxury Room With Queen Bed Rtid 1 &lt;... | [
{
"answer_id": 74374660,
"author": "sme3x",
"author_id": 19618943,
"author_profile": "https://Stackoverflow.com/users/19618943",
"pm_score": 0,
"selected": false,
"text": "let value = \"Paste_whole_string_in_here\"\nconsole.log(value.substring(0,1000))\n"
},
{
"answer_id": 743747... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374098",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/930798/"
] |
74,374,099 | <p>We have created new Rest API To AWS Api Gateway by importing our existing Swagger file. File contains quite long and good introduction for developers about our API. It is Markdown markup language.
AWS Api gateway is able to show whole documentation correctly in documentations section.
Our API is published to Develop... | [
{
"answer_id": 74374660,
"author": "sme3x",
"author_id": 19618943,
"author_profile": "https://Stackoverflow.com/users/19618943",
"pm_score": 0,
"selected": false,
"text": "let value = \"Paste_whole_string_in_here\"\nconsole.log(value.substring(0,1000))\n"
},
{
"answer_id": 743747... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19373531/"
] |
74,374,121 | <p>I have two datasets in two react-selects.
E.g:</p>
<pre><code>options2={
[value: 1, label:"apple",relationKey=1],
[value: 2, label:"orange",relationKey=2],
[value: 3, label:"banana",relationKey=2],
[value: 4, label:"pineapple",relationKey=2],
}
options1 ={
[value: 1, label:... | [
{
"answer_id": 74374660,
"author": "sme3x",
"author_id": 19618943,
"author_profile": "https://Stackoverflow.com/users/19618943",
"pm_score": 0,
"selected": false,
"text": "let value = \"Paste_whole_string_in_here\"\nconsole.log(value.substring(0,1000))\n"
},
{
"answer_id": 743747... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17823599/"
] |
74,374,139 | <p>The function cycle removes the first element of a list puts it in the last position. I used pop and append to do so.
The problem is that if you use:</p>
<pre><code>l=[1,2,3]
assert(cycle(l)== [2,3,1])
assert(cycle(cycle(l))== [3,1,2])
</code></pre>
<p>it gives you an assertionerror, so i thought maybe the list is ch... | [
{
"answer_id": 74374660,
"author": "sme3x",
"author_id": 19618943,
"author_profile": "https://Stackoverflow.com/users/19618943",
"pm_score": 0,
"selected": false,
"text": "let value = \"Paste_whole_string_in_here\"\nconsole.log(value.substring(0,1000))\n"
},
{
"answer_id": 743747... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20458448/"
] |
74,374,158 | <p>What is the best way to merge array contents from JavaScript objects sharing multiple key in common and keys list is also dynamic so we don't know that how much keys are there key is there in keyname with prefix?</p>
<p>How can array in the example below be reorganized into output?</p>
<pre><code>
var keys = [{"... | [
{
"answer_id": 74374660,
"author": "sme3x",
"author_id": 19618943,
"author_profile": "https://Stackoverflow.com/users/19618943",
"pm_score": 0,
"selected": false,
"text": "let value = \"Paste_whole_string_in_here\"\nconsole.log(value.substring(0,1000))\n"
},
{
"answer_id": 743747... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5345789/"
] |
74,374,168 | <p>I am trying to build iOS app from expo managed project. The build fails At Pod installation step.</p>
<p>In Expo SDK 44, 45 everything was okay. But when I upgrade to SDK 46, I am facing the issue.</p>
<p>Here is my package.json</p>
<pre><code>{
"name": "App1234",
"version": "1... | [
{
"answer_id": 74565601,
"author": "Hamed Navabian",
"author_id": 9474611,
"author_profile": "https://Stackoverflow.com/users/9474611",
"pm_score": 1,
"selected": false,
"text": "platform :ios, '13.0'"
}
] | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8460578/"
] |
74,374,170 | <p>i want to use the below values into different columns inside the table now they are storing into one i tried REGEXP_SUBSTR but still i can't use them separately .. any help would be apricated</p>
<p>`</p>
<pre><code>SELECT
REGEXP_SUBSTR('One Thousand Four Hundred Forty Six', '[^ ]+', 1, level) AS parts
FROM dual
CON... | [
{
"answer_id": 74565601,
"author": "Hamed Navabian",
"author_id": 9474611,
"author_profile": "https://Stackoverflow.com/users/9474611",
"pm_score": 1,
"selected": false,
"text": "platform :ios, '13.0'"
}
] | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13420452/"
] |
74,374,178 | <p>I want to create a dictionary from the values I get from Excel cells.</p>
<p>This my Excel spreadsheet:</p>
<p><img src="https://i.stack.imgur.com/Z6yyM.png" alt="" /></p>
<p>My expectation about the dictionary is like this:</p>
<pre class="lang-py prettyprint-override"><code>{'Ancolmekar': array([ 3. , 20. , 6. , ... | [
{
"answer_id": 74374436,
"author": "Willy Lutz",
"author_id": 18771355,
"author_profile": "https://Stackoverflow.com/users/18771355",
"pm_score": 2,
"selected": true,
"text": "path = 'export_3.xlsx'\nfile = pd.ExcelFile(path)\nsheets = file.sheet_names\n\nfor sheet in sheets:\n sheet_... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12368138/"
] |
74,374,199 | <p>i'm currently trying to make a Logbox for my webapp. It gets an Array of logs and should display them row by row in a div. Im using ngFor and looping trough my Array of logs and then displaying them.</p>
<p>My problem is now that the logs get displayed infinite times, not just 5 times (5 Array entries in list) like ... | [
{
"answer_id": 74374331,
"author": "Loránd Péter",
"author_id": 6146963,
"author_profile": "https://Stackoverflow.com/users/6146963",
"pm_score": 4,
"selected": true,
"text": "getLogs() ngOnInit() export class LogService implements OnInit {\n// ...\n\nlogs = [];\n\nngOnInit() {\n this.... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374199",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20458614/"
] |
74,374,214 | <p>I would like to have a code in order to remove special character such as <code>?</code> from values in a column in a dataframe.</p>
<p>I would like to remove from</p>
<pre><code>()?()()() hello world'
</code></pre>
<p>the <code>()</code> and the <code>?</code>.</p>
<p>However, when I am using the following code:</p>... | [
{
"answer_id": 74374318,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": false,
"text": "( ) ? df[\"column\"] = df[\"column\"].replace(r\"\\?|\\(\\)\", \"\", regex=True)\nprint(df)\n colum... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19543356/"
] |
74,374,221 | <p>I wrote several commands to transform a dataframe but i would like to simplify the code that I wrote in four parts. Part 1,2 and 3 are to make calculation of column 1, 2 and 3 (count the number of time a value is repeated for each column and complete for missing number comprised between 0 and the max of value of the... | [
{
"answer_id": 74374497,
"author": "Maël",
"author_id": 13460602,
"author_profile": "https://Stackoverflow.com/users/13460602",
"pm_score": 1,
"selected": false,
"text": "vctrs::vec_count library(dplyr)\nlibrary(purrr)\ndf %>% \n mutate(across(A:C, factor, levels = 0:10, ordered = TRUE)... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16108900/"
] |
74,374,245 | <p>I have the same function repeating over and over again. I'd like to combine it into one so that I can call it without having to write long code.</p>
<pre><code>totalV
.filter((nan) => nan)
.reduce((a, b) => a + b, 0)
.toFixed(2)
</code></pre>
<p>Basically, I want to save it into a const or somethin... | [
{
"answer_id": 74374497,
"author": "Maël",
"author_id": 13460602,
"author_profile": "https://Stackoverflow.com/users/13460602",
"pm_score": 1,
"selected": false,
"text": "vctrs::vec_count library(dplyr)\nlibrary(purrr)\ndf %>% \n mutate(across(A:C, factor, levels = 0:10, ordered = TRUE)... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18984558/"
] |
74,374,291 | <p>My user account can use the Google Classroom web UI to see all the announcements for a given course. Trying to pull them programmatically using the Google Classroom API.</p>
<p>I've set up an app with Oauth consent screen covering (for test purposes) <strong>ALL</strong> the scopes listed under the Google Classroom ... | [
{
"answer_id": 74374497,
"author": "Maël",
"author_id": 13460602,
"author_profile": "https://Stackoverflow.com/users/13460602",
"pm_score": 1,
"selected": false,
"text": "vctrs::vec_count library(dplyr)\nlibrary(purrr)\ndf %>% \n mutate(across(A:C, factor, levels = 0:10, ordered = TRUE)... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20458663/"
] |
74,374,292 | <p>I have the below code:</p>
<pre><code>window.addEventListener('mousemove', ()=>{
myInterval = setTimeout(mouseMove, 2000);
});
const mouseMove = () => {
console.log('first console');
onMouseMove = (e) => console.log("mouse location:", e.x, e.y)
}
</code></pre>
<p>Only at the end of the... | [
{
"answer_id": 74374497,
"author": "Maël",
"author_id": 13460602,
"author_profile": "https://Stackoverflow.com/users/13460602",
"pm_score": 1,
"selected": false,
"text": "vctrs::vec_count library(dplyr)\nlibrary(purrr)\ndf %>% \n mutate(across(A:C, factor, levels = 0:10, ordered = TRUE)... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20458690/"
] |
74,374,294 | <p>I have been on this problem for hours but couldn't get close to solution.
Any help will be appreciated.</p>
<pre><code>public static int enterTheAmount(){
int final LOTTO_PRICE = 1000;
int amount = Integer.parseInt(Console.readLine());
if(amount%LOTTO_PRICE!=0) throw new IllegalArgumentException();
... | [
{
"answer_id": 74374350,
"author": "Leonardo Emmanuel de Azevedo",
"author_id": 19979867,
"author_profile": "https://Stackoverflow.com/users/19979867",
"pm_score": 1,
"selected": false,
"text": "assertThrows assertThrows(IllegalArgumentException.class, () -> Application.enterTheAmount())... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15440478/"
] |
74,374,349 | <p>Is it possible to retrieve a true/false answer from a CQL query that checks a condition -- for example, if a collection has a specific value?</p>
<p>Consider:</p>
<pre><code>CREATE TABLE Test (Id text PRIMARY KEY, Roles set<text>)
INSERT INTO Test(Id, Roles)
VALUES ('123', {'Driver', 'Pilot', 'Janitor'})
... | [
{
"answer_id": 74374350,
"author": "Leonardo Emmanuel de Azevedo",
"author_id": 19979867,
"author_profile": "https://Stackoverflow.com/users/19979867",
"pm_score": 1,
"selected": false,
"text": "assertThrows assertThrows(IllegalArgumentException.class, () -> Application.enterTheAmount())... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/335858/"
] |
74,374,365 | <p>So Im using useQuery from react-query I need to return response from API as a User (based on my interface).</p>
<p>I did it like this:</p>
<pre><code>export const getUsersQuery = () => "users";
export const useUsersQuery = () =>
useQuery(getUsersQueryKey(), () =>
axios
.get("API EN... | [
{
"answer_id": 74375067,
"author": "Marat",
"author_id": 15775222,
"author_profile": "https://Stackoverflow.com/users/15775222",
"pm_score": 3,
"selected": true,
"text": "useQuery<User[]>(key, queryFn);\n const queryFn = (): Promise<User[]> => { ... };\nconst { data } = useQuery('users',... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17747601/"
] |
74,374,366 | <p>I have a dataframe that looks like this:</p>
<pre><code> ID Age Score
0 9 5 3
1 4 6 1
2 9 7 2
3 3 2 1
4 12 1 15
5 2 25 6
6 9 5 4
7 9 5 61
8 4 2 12
</code></pre>
<p>I want to sort based on the first column, then the second column... | [
{
"answer_id": 74374653,
"author": "Martin Lange",
"author_id": 19887308,
"author_profile": "https://Stackoverflow.com/users/19887308",
"pm_score": 0,
"selected": false,
"text": "df.sort_values() df.sort_values(df.columns.to_list(), kind=\"mergesort\")\n"
},
{
"answer_id": 743748... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374366",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11901834/"
] |
74,374,387 | <p>Im struggling with some problem.
I want to aggregate rows with the same value of "STATUS" and count elements.
The problem is, that "STATUS" column is calculated in nested query inside.</p>
<p>Query:</p>
<pre><code>
select
(case
when stats.status = 'RJCT' AND stats.status_reason = '... | [
{
"answer_id": 74374653,
"author": "Martin Lange",
"author_id": 19887308,
"author_profile": "https://Stackoverflow.com/users/19887308",
"pm_score": 0,
"selected": false,
"text": "df.sort_values() df.sort_values(df.columns.to_list(), kind=\"mergesort\")\n"
},
{
"answer_id": 743748... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7293134/"
] |
74,374,395 | <p>I have dataframe:</p>
<pre><code>df = pd.DataFrame({'student_id': [71, 63, 23],
'student_name': [nan, 'Peter Andrews', 'Amy Powers'],
})
</code></pre>
<p>I am creating new column column which joins id + name using</p>
<p><code>df['student_id_name'] = df['student_id'].astype(str)... | [
{
"answer_id": 74374417,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 3,
"selected": true,
"text": "Series.str.cat na_rep Series.str.strip df['student_id_name'] = (df['student_id'].astype(str).str.cat(df['student_name... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18352649/"
] |
74,374,409 | <p>If I have table</p>
<pre><code>|a | b | c|
|"hello"|"world"| 1|
</code></pre>
<p>and the variables</p>
<pre><code>start =2000
end =2015
</code></pre>
<p>How do I in pyspark add 15 cols with 1st column m2000 and second m2001 etc and all these new cols have 0 so new dataframe is</p>
<pre>... | [
{
"answer_id": 74374639,
"author": "C Hecht",
"author_id": 14578331,
"author_profile": "https://Stackoverflow.com/users/14578331",
"pm_score": 0,
"selected": false,
"text": "pandas import pandas as pd\n\ndf = pd.Series({'a': 'Hello', 'b': 'World', 'c': 1}).to_frame().T\ndf[['m{}'.format(... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9390633/"
] |
74,374,430 | <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>main {
display: grid;
grid-template-columns: 1fr 1fr;
grid-column-gap: 60px;
grid-row-gap: 60px;... | [
{
"answer_id": 74374591,
"author": "user2991837",
"author_id": 2991837,
"author_profile": "https://Stackoverflow.com/users/2991837",
"pm_score": 0,
"selected": false,
"text": " p + p {\n margin-top: -60px;\n }\n"
},
{
"answer_id": 74374606,
"author": "jazzgot",
"... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2991837/"
] |
74,374,451 | <p>Let's say I have an array that takes instances of the type "Pessoal":</p>
<pre><code>Pessoal[] teste = new Pessoal[6];
</code></pre>
<p>Now let's say I have 2 arraylists that are inside of an arraylist:</p>
<pre><code>static ArrayList<Pessoal> lista_de_profs; // This one has 4
static ArrayList<Pe... | [
{
"answer_id": 74374755,
"author": "Melron",
"author_id": 8920328,
"author_profile": "https://Stackoverflow.com/users/8920328",
"pm_score": 2,
"selected": false,
"text": "List<Pessoal> all= lista_de_docentes.stream()\n .flatMap(List::stream)\n .collect(Collectors.toList());\n\nfor ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17703613/"
] |
74,374,473 | <p>I have the following code that generate the unique permutation:</p>
<pre><code>library(magrittr)
library(tictoc)
count_unique_perm <- function(l = NULL) {
lo <- combinat::permn(l)
do.call(rbind, lapply(lo, paste0, collapse = ""))[, 1] %>%
unique() %>%
length()
}
</code></pre>
<p>It... | [
{
"answer_id": 74374755,
"author": "Melron",
"author_id": 8920328,
"author_profile": "https://Stackoverflow.com/users/8920328",
"pm_score": 2,
"selected": false,
"text": "List<Pessoal> all= lista_de_docentes.stream()\n .flatMap(List::stream)\n .collect(Collectors.toList());\n\nfor ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8391698/"
] |
74,374,477 | <p>I am creating a release build with an already created Keystore file. Placed the file in android/app/AlZarooniKS. when executing a build apk from the android studio it gives the error in assembleRelease but works fine on assembleDebug. I received the following exception.</p>
<pre><code>* What went wrong:
Execution fa... | [
{
"answer_id": 74374755,
"author": "Melron",
"author_id": 8920328,
"author_profile": "https://Stackoverflow.com/users/8920328",
"pm_score": 2,
"selected": false,
"text": "List<Pessoal> all= lista_de_docentes.stream()\n .flatMap(List::stream)\n .collect(Collectors.toList());\n\nfor ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15407909/"
] |
74,374,484 | <p>So I have the following dataframe:</p>
<p>and what I want is to find the combination of genes that are present together the most.</p>
<pre><code> sample genea geneb genec gened genee genef
1 1 1 1 1 0 0 0
2 2 1 1 1 0 0 0
3 3 1 0 0 1 ... | [
{
"answer_id": 74374598,
"author": "Maël",
"author_id": 13460602,
"author_profile": "https://Stackoverflow.com/users/13460602",
"pm_score": 2,
"selected": false,
"text": "comb <- combn(colnames(df[-1]), m = 2)\noverlap <- sapply(1:ncol(comb), \\(i) sum(rowSums(df[comb[, i]]) == 2))\n\nli... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19254600/"
] |
74,374,492 | <p>I have a azure function app in powershell, dedicated to kubernetes functions.</p>
<p>There are multiple functions but on each of them, the first thing we do is something like this.</p>
<pre><code> az login --service-principal -u $usr -p $pwd --tenant $tenant
$config = $HOME + "/.kube/$tenant";
az acc... | [
{
"answer_id": 74434809,
"author": "YwH",
"author_id": 3781502,
"author_profile": "https://Stackoverflow.com/users/3781502",
"pm_score": 0,
"selected": false,
"text": "jobs"
},
{
"answer_id": 74445268,
"author": "Kristin",
"author_id": 2832479,
"author_profile": "http... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1383442/"
] |
74,374,597 | <p>I am attempting to develop a vending machine in C++ in which the user can insert as many 50 cent, 20 cent, and 10 cent coins as they would like to then move on to the 'purchase' of a product.</p>
<p>So far, my primitive code runs smoothly; the issue I am currently facing is that I can only 'insert' coins into the ve... | [
{
"answer_id": 74374645,
"author": "lorro",
"author_id": 6292621,
"author_profile": "https://Stackoverflow.com/users/6292621",
"pm_score": 3,
"selected": true,
"text": "do { ... } while(...); int amount, sum = 0;\n\n // ...\n\n cout << \"Please insert your coins. \\n This ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20458815/"
] |
74,374,611 | <p>I want to filter a list of strings that includes any specific string with using list comprehension. I tried following the code, but it didn't work.</p>
<pre><code>ignore_paths = ['.ipynb_checkpoints', 'New', '_calibration', 'images']
A = [x for x in lof1 if ignore_paths not in x]
</code></pre>
<p>but when I try with... | [
{
"answer_id": 74374655,
"author": "Ron Serruya",
"author_id": 2126254,
"author_profile": "https://Stackoverflow.com/users/2126254",
"pm_score": 1,
"selected": false,
"text": "allowed = set(lof1) - set(ignore_paths)\n"
},
{
"answer_id": 74374666,
"author": "Harsha Biyani",
... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5459388/"
] |
74,374,624 | <p><a href="https://i.stack.imgur.com/aRkvl.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aRkvl.jpg" alt="What I want to achieve" /></a></p>
<p>Hello everyone, I'm trying to setup the main content of the homepage as shown in the image but can't really figure a few things.</p>
<p>Somehow everything ... | [
{
"answer_id": 74374746,
"author": "HmBloqued",
"author_id": 17183809,
"author_profile": "https://Stackoverflow.com/users/17183809",
"pm_score": 2,
"selected": true,
"text": "object-fit: cover; .main-left, .main-right {\n display: flex;\n flex-direction: row;\n }\n\n .main-left {... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374624",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20458854/"
] |
74,374,640 | <p>There is a table like this. How can I change all the values where the column "Agree, Disagree" is in "Disagree" of "Strongly disagree" to negative numbers?</p>
<p>It should be done without referring to the column names. The replacements to negative numbers should be applied to all colum... | [
{
"answer_id": 74374746,
"author": "HmBloqued",
"author_id": 17183809,
"author_profile": "https://Stackoverflow.com/users/17183809",
"pm_score": 2,
"selected": true,
"text": "object-fit: cover; .main-left, .main-right {\n display: flex;\n flex-direction: row;\n }\n\n .main-left {... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9308858/"
] |
74,374,656 | <pre><code>create table test(id number,col timestamp(6));
insert into test values(1,TO_TIMESTAMP('2022-11-09 06:14:00.742000000', 'YYYY-MM-DD HH24:MI:SS.FF'));
insert into test values(2,TO_TIMESTAMP('2022-11-07 09:14:00.742000000', 'YYYY-MM-DD HH24:MI:SS.FF'));
Database: Oracle Live
</code></pre>
<p>I have a requireme... | [
{
"answer_id": 74375069,
"author": "ekochergin",
"author_id": 6033601,
"author_profile": "https://Stackoverflow.com/users/6033601",
"pm_score": 1,
"selected": false,
"text": "select \n case \n when to_char(col, 'Dy') = 'Mon' then\n case\n when col > (trunc(col) + 8/24) then \n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17266973/"
] |
74,374,670 | <p>I'm trying to run this code but I'm getting an error msg ---> "NameError: name 'generateRandom' is not defined"</p>
<p>Can anyone help me please?</p>
<pre><code>
`import numpy as np
class Mul:
def __init__ (self,ra_result=None,rb_result=None):
self.ra_result = ra_result
self.rb_resu... | [
{
"answer_id": 74375069,
"author": "ekochergin",
"author_id": 6033601,
"author_profile": "https://Stackoverflow.com/users/6033601",
"pm_score": 1,
"selected": false,
"text": "select \n case \n when to_char(col, 'Dy') = 'Mon' then\n case\n when col > (trunc(col) + 8/24) then \n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20458788/"
] |
74,374,686 | <p>The following example I want column to be equal width and spacing.
But I don't want to use <code>width, min-width, max-width</code> property for any columns.</p>
<p>Anyone help me to achieve this by using flex or any other method.</p>
<p><a href="https://i.stack.imgur.com/xo56M.png" rel="nofollow noreferrer"><img sr... | [
{
"answer_id": 74374848,
"author": "David Thomas",
"author_id": 82548,
"author_profile": "https://Stackoverflow.com/users/82548",
"pm_score": 3,
"selected": true,
"text": "width min-width max-width flex-basis .d-flex {\n display: flex;\n /* using gap allows the spacing to be set on\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6060849/"
] |
74,374,799 | <p>I was trying to update a custom field on a Jira ticket using Jira API, following this <a href="https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-edit-issues-6291632/" rel="nofollow noreferrer">Jira Documentation</a>. however, I am getting the below error.</p>
<blockquote>
<p>{'errorMessages'... | [
{
"answer_id": 74374848,
"author": "David Thomas",
"author_id": 82548,
"author_profile": "https://Stackoverflow.com/users/82548",
"pm_score": 3,
"selected": true,
"text": "width min-width max-width flex-basis .d-flex {\n display: flex;\n /* using gap allows the spacing to be set on\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8081611/"
] |
74,374,834 | <p>given the following dataset, how do I go about setting the outline of the boxes to black (or any other colour I want), while customly colouring the jittered points? I know how to do this in a simple boxpot, where dodging due to two subgroups is not necesary, but run into grouping issues if I try to mess with the cod... | [
{
"answer_id": 74374848,
"author": "David Thomas",
"author_id": 82548,
"author_profile": "https://Stackoverflow.com/users/82548",
"pm_score": 3,
"selected": true,
"text": "width min-width max-width flex-basis .d-flex {\n display: flex;\n /* using gap allows the spacing to be set on\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13011601/"
] |
74,374,837 | <p>I've defined the following JavaScript function</p>
<pre class="lang-js prettyprint-override"><code>async isDataValid (externalValidation = true) {
const isValid = (await this.v$.$validate()) && externalValidation
// other stuff not relevant to my question happens here
return isValid
}
</code></pr... | [
{
"answer_id": 74374895,
"author": "Ritik Banger",
"author_id": 17632251,
"author_profile": "https://Stackoverflow.com/users/17632251",
"pm_score": 0,
"selected": false,
"text": "await async isDataValid isDataValid isDataValid Promise<Boolean>"
},
{
"answer_id": 74374961,
"au... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4786956/"
] |
74,374,855 | <p>so I do have this NumPy array result(final), and I want to reduce it, I mean, if the value is repeated, then I want to delete the first value and maintain the second,third value repeated and so on...</p>
<pre><code>import hmac
import hashlib
import time
from argparse import _MutuallyExclusiveGroup
from tkinter impor... | [
{
"answer_id": 74375026,
"author": "JohnyCapo",
"author_id": 19335841,
"author_profile": "https://Stackoverflow.com/users/19335841",
"pm_score": 0,
"selected": false,
"text": "for to_remove = list()\n\nfor i in range(len(your_list)):\n if your_list[i] in your_list[i:]:\n to_remove... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16306538/"
] |
74,374,878 | <p>I have a v-textarea, I write something to area and if I do not any action, in v-textarea context must be cleared automatic after a certain time (2 minutes). How can I do it?</p>
<p><a href="https://i.stack.imgur.com/16EAj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/16EAj.png" alt="For example ... | [
{
"answer_id": 74375026,
"author": "JohnyCapo",
"author_id": 19335841,
"author_profile": "https://Stackoverflow.com/users/19335841",
"pm_score": 0,
"selected": false,
"text": "for to_remove = list()\n\nfor i in range(len(your_list)):\n if your_list[i] in your_list[i:]:\n to_remove... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19697316/"
] |
74,374,885 | <p>I have the following case in typescript:</p>
<pre><code>type RecordKeys = 1 | 2 | 3
type RecordValues = "one" | "two" | "three"
function test(param: RecordKeys ): RecordValues {
switch(param) {
case(1): {
return 'one'
}
case(2): {
return 'two'
}
case(3... | [
{
"answer_id": 74374928,
"author": "Moudi",
"author_id": 16402009,
"author_profile": "https://Stackoverflow.com/users/16402009",
"pm_score": 2,
"selected": false,
"text": "const testMap: Record<number, string> = {\n 1: 'one',\n 2: 'two',\n 3: 'three'\n}\n\n// use the hashmap to ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12046630/"
] |
74,374,892 | <p>I have a an enum WeekDays, with Flag attribute on top,</p>
<pre><code>[Flags]
public enum WeekDays
{
None = 0,
Sunday = 1,
Monday = 2,
Tuesday = 4,
Wednesday = 8,
Thursday = 16,
Friday = 32,
Saturday = 64
}
</code></pre>
<p>I want to use this enum as a list in another model.
The issue... | [
{
"answer_id": 74375500,
"author": "Alina",
"author_id": 14975190,
"author_profile": "https://Stackoverflow.com/users/14975190",
"pm_score": 1,
"selected": true,
"text": "WeekDays daysBit=WeekDays.None;\nforeach (var day in request.DaysOfWeek)\n{\n daysBit |= day;\n}\n"
},
{
"... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374892",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14975190/"
] |
74,374,893 | <p>how could I make my function clear the list and return the inital list on the first execution, and then display a empty list on the second run? I have tried using.
Kind regards</p>
<pre><code>def remove():
items = ["car", "plane", "bus"]
if len(items) != 0:
retu... | [
{
"answer_id": 74375052,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": false,
"text": "items None items and items.clear() items.clear() None # define \"items\" as a main scope variable\nitems = [\"car\"... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20430652/"
] |
74,374,939 | <p>Hello in my monopoly game i need to make sure no inputted player names are the same to avoid confusion using an arraylist in java any way how to do it so only one player can have one name</p>
<pre><code>public class Player {
private ArrayList<Property> properties = new ArrayList<Property>();
priv... | [
{
"answer_id": 74375052,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": false,
"text": "items None items and items.clear() items.clear() None # define \"items\" as a main scope variable\nitems = [\"car\"... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17492033/"
] |
74,374,960 | <p>The Confluent AvroDeserializer requires the <code>schema_str</code>. However, I do not want to supply the schema, I just need to retrieve it from the registry, and that's it. What am I missing?</p>
<pre><code>classconfluent_kafka.schema_registry.avro.AvroDeserializer(schema_str, schema_registry_client, from_dict=Non... | [
{
"answer_id": 74375052,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 2,
"selected": false,
"text": "items None items and items.clear() items.clear() None # define \"items\" as a main scope variable\nitems = [\"car\"... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1523587/"
] |
74,374,999 | <p>I have a dataframe that looks like this:</p>
<pre><code>dat <- data.frame(T1 = c('s', 's', 'm', 'l', 'm', 'xl'),
T2 = c('s', 's', 'm', 'l', 'm', 'xl'),
T3 = c('m', 's', 'm', 'l', 'l', 'xxl'),
T4 = c('m', 'm', 'm', 'l', 'l', 'xxl'),
T5 = c('m... | [
{
"answer_id": 74375054,
"author": "Rui Barradas",
"author_id": 8245406,
"author_profile": "https://Stackoverflow.com/users/8245406",
"pm_score": 3,
"selected": true,
"text": "ifelse dat <- data.frame(T1 = c('s', 's', 'm', 'l', 'm', 'xl'),\n T2 = c('s', 's', 'm', 'l', 'm... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74374999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14487498/"
] |
74,375,016 | <p>I have just moved servers after a crash and PHP has been upgraded from 7.4 to 8.1 and I am getting the below error message when trying to submit a registration form;</p>
<blockquote>
<p>Fatal error: Uncaught PDOException: SQLSTATE[21S01]: Insert value list
does not match column list: 1136 Column count doesn't match ... | [
{
"answer_id": 74375092,
"author": "Tural Rzaxanov",
"author_id": 9922647,
"author_profile": "https://Stackoverflow.com/users/9922647",
"pm_score": -1,
"selected": false,
"text": " $stmt = $pdo->prepare('INSERT INTO contacts VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375016",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,375,035 | <p>I am trying to convert a json response from REST API into a <code>DataTable</code>. The following is my code.</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RestSharp;
using Newtonsoft.Json;
using System.Data;
namespace RestDe... | [
{
"answer_id": 74375092,
"author": "Tural Rzaxanov",
"author_id": 9922647,
"author_profile": "https://Stackoverflow.com/users/9922647",
"pm_score": -1,
"selected": false,
"text": " $stmt = $pdo->prepare('INSERT INTO contacts VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12858964/"
] |
74,375,060 | <p>I don't know what is <code>it</code> in Textfield's onValueChange using Jetpack compose.</p>
<pre><code>val usernameState = rememberSaveable { mutableStateOf(TextFieldValue())}
TextField(
value = usernameState.value,
onValueChange = {usernameState.value = it}
)
</code></pre>
<p>Is <c... | [
{
"answer_id": 74375156,
"author": "Ivo",
"author_id": 1514861,
"author_profile": "https://Stackoverflow.com/users/1514861",
"pm_score": 3,
"selected": false,
"text": "it onValueChange = {usernameState.value = it}\n onValueChange = {value -> usernameState.value = value}\n"
},
{
"... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16375313/"
] |
74,375,075 | <p>Let's say I have a large set of Helm charts, in which I want to edit every <code>deployment.yaml</code> file in the <code>templates</code> directory of each chart, which doing manually is a tedious task.</p>
<p>I've tried to use Python's <code>pyyaml</code> and <code>benedict</code> to do something like this:</p>
<p... | [
{
"answer_id": 74375156,
"author": "Ivo",
"author_id": 1514861,
"author_profile": "https://Stackoverflow.com/users/1514861",
"pm_score": 3,
"selected": false,
"text": "it onValueChange = {usernameState.value = it}\n onValueChange = {value -> usernameState.value = value}\n"
},
{
"... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12176460/"
] |
74,375,079 | <p>Here is an example of the problem with the result list as what I am aiming to obtain.</p>
<p>states = ["Montana", "New York", "Iowa", "Alabama", "Washington D.C."]
text = "Montana is big sky country where great ski slopes can be found. Avid skiers will enjoy Mon... | [
{
"answer_id": 74375154,
"author": "Talha Tayyab",
"author_id": 13086128,
"author_profile": "https://Stackoverflow.com/users/13086128",
"pm_score": 0,
"selected": false,
"text": "states = [\"Montana\", \"New York\", \"Iowa\", \"Alabama\", \"Washington D.C.\"]\ntext = \"Montana is big sky... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375079",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9338066/"
] |
74,375,093 | <p>I have two arrays and need to multiply, ex 4.56… with 0.134. It can be pushed to the second array, it can also be added to a new.</p>
<p>First array:</p>
<pre><code>[[2022-09-01T00:00:00, 4.56255004875], [2022-09-01T01:00:00, 4.50295013375], [2022-09-01T02:00:00, 4.52136261], [2022-09-01T03:00:00, 4.46261261], [2022... | [
{
"answer_id": 74375154,
"author": "Talha Tayyab",
"author_id": 13086128,
"author_profile": "https://Stackoverflow.com/users/13086128",
"pm_score": 0,
"selected": false,
"text": "states = [\"Montana\", \"New York\", \"Iowa\", \"Alabama\", \"Washington D.C.\"]\ntext = \"Montana is big sky... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20450996/"
] |
74,375,121 | <p>Im trying to createa a <code>@composable function</code> that is able to keep track of all its children.
The first Parent <code>TextExecutionOrder</code> should be able to tell that it has 3 Children of the same composable function <code>TestExecutionOrder("2")</code>, <code>TestExecutionOrder("3"... | [
{
"answer_id": 74432550,
"author": "Ojav",
"author_id": 9370018,
"author_profile": "https://Stackoverflow.com/users/9370018",
"pm_score": 0,
"selected": false,
"text": "Tree DataStructure child composable Lambda-Scope parent class ToggleViewModel : ViewModel() { //View Model acts as a pa... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9370018/"
] |
74,375,182 | <p>There is a problem with odd numbers.
When I run the function on even numbers, the code works.</p>
<pre><code> #recursive demo function1
#Even nums
def evenNum(num):
if num % 2 != 0:
print("enter a even number")
if num == 2:
return num
else:
... | [
{
"answer_id": 74375224,
"author": "maciek97x",
"author_id": 10626495,
"author_profile": "https://Stackoverflow.com/users/10626495",
"pm_score": 2,
"selected": false,
"text": "if elif \"Enter a even number\" def evenNum(num):\n if num % 2 != 0:\n print(\"enter a eve... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20092321/"
] |
74,375,192 | <p>I am working on a binary image segmentation problem using Tensorflow Keras. The masks are in grayscale and images are in RGB. I need to convert the grayscale masks to binary and store them in a Numpy array. The following is the code:</p>
<pre><code> from tensorflow.keras.preprocessing.image import load_img,ImageData... | [
{
"answer_id": 74375224,
"author": "maciek97x",
"author_id": 10626495,
"author_profile": "https://Stackoverflow.com/users/10626495",
"pm_score": 2,
"selected": false,
"text": "if elif \"Enter a even number\" def evenNum(num):\n if num % 2 != 0:\n print(\"enter a eve... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7575552/"
] |
74,375,210 | <p>I have been able to successfully map a dictionary to a dataframe column using two categorical variables as keys, but I can't figure out how to do it if one of my target values should satisfy a condition rather than equal a value.</p>
<p>For example, consider the following dataframe:</p>
<pre><code>df = pd.DataFrame(... | [
{
"answer_id": 74375224,
"author": "maciek97x",
"author_id": 10626495,
"author_profile": "https://Stackoverflow.com/users/10626495",
"pm_score": 2,
"selected": false,
"text": "if elif \"Enter a even number\" def evenNum(num):\n if num % 2 != 0:\n print(\"enter a eve... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375210",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12354472/"
] |
74,375,231 | <p>In a codebase I am working on, most functions takes as arguments several std::string. These strings represent different things, and I would like to define several classes to detect inconsistencies at compile time if possible.</p>
<p>Here is an example of problematic code:</p>
<pre><code>void displayIdentity(const st... | [
{
"answer_id": 74375287,
"author": "lorro",
"author_id": 6292621,
"author_profile": "https://Stackoverflow.com/users/6292621",
"pm_score": 0,
"selected": false,
"text": "std::string template<typename T> class StrongType"
},
{
"answer_id": 74376464,
"author": "Miles Budnek",
... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15175771/"
] |
74,375,240 | <p>I have a lambda that ignores its <code>int</code> parameter and always returns a constant.
If I mark it <code>consteval</code>, compilation fails because.
The compiler complains about invoking the <code>consteval</code> lambda with a non-const parameter.
But what does the parameter has to do with the lambda?</p>
<p>... | [
{
"answer_id": 74375326,
"author": "Jason Liam",
"author_id": 12002570,
"author_profile": "https://Stackoverflow.com/users/12002570",
"pm_score": 2,
"selected": false,
"text": "int& int main( )\n{//-------------------v------------------------->reference added\n auto foo = [] (int&) co... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/292792/"
] |
74,375,268 | <p>I've installed pypy3 on Mac, and would like to use it to speed up a python script to analyse a live video feed.
I've tried to install opencv-python with pip and pip_pypy3, but get the following error:</p>
<pre><code>Building wheels for collected packages: opencv-python
Building wheel for opencv-python (pyproject.t... | [
{
"answer_id": 74375452,
"author": "Bhargav",
"author_id": 15358800,
"author_profile": "https://Stackoverflow.com/users/15358800",
"pm_score": 1,
"selected": false,
"text": "Mac pip install opencv-python==4.5.3.56\n"
}
] | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19626801/"
] |
74,375,282 | <h2>Background</h2>
<p>I have a MySQL server running on a remote machine and am trying to debug a Django application running locally that connects to that remote database. Our team does this by forwarding the remote port 3306 to the local port 3308 using <a href="https://www.putty.org/" rel="nofollow noreferrer">PuTTY<... | [
{
"answer_id": 74522194,
"author": "evanstjabadi",
"author_id": 13271830,
"author_profile": "https://Stackoverflow.com/users/13271830",
"pm_score": 1,
"selected": false,
"text": "ssh ubuntu@hostaddress -L 3308:127.0.0.1:3306 go.sh bash go.sh # go.sh\n\nssh ubuntu@hostaddress -L 3308:127.... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3593621/"
] |
74,375,285 | <p>I am currently trying to install the Android Emulator via the Android SDK and Tools dialog.
But I am receiving the Error Message:</p>
<p>Operation Failed: Installing Android Emulatorv31.2.10 "Specified argument was out of the range of valid values".</p>
<p>I removed all set up devices so far still no succe... | [
{
"answer_id": 74522194,
"author": "evanstjabadi",
"author_id": 13271830,
"author_profile": "https://Stackoverflow.com/users/13271830",
"pm_score": 1,
"selected": false,
"text": "ssh ubuntu@hostaddress -L 3308:127.0.0.1:3306 go.sh bash go.sh # go.sh\n\nssh ubuntu@hostaddress -L 3308:127.... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/709672/"
] |
74,375,323 | <p>Hi I have a pandas dataframe that looks roughly like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Date</th>
<th>Item</th>
<th>Sales</th>
</tr>
</thead>
<tbody>
<tr>
<td>01-01-2022</td>
<td>iphone</td>
<td>$20</td>
</tr>
<tr>
<td>02-01-2022</td>
<td>iphone</td>
<td>$40</td>
</tr>... | [
{
"answer_id": 74375417,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 3,
"selected": true,
"text": "crosstab (pd.crosstab(df['Item'], pd.to_datetime(df['Date'], dayfirst=True).dt.strftime('%B'))\n .assign(Average=l... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375323",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20459267/"
] |
74,375,330 | <p>When I call the function without the decorator a list of all files with the matching extension is returned. However, if I add the decorator <code>@get_time</code>, I do not get a return value from the function.</p>
<pre><code>def get_time(func):
from time import perf_counter
from functools import wraps
&... | [
{
"answer_id": 74375395,
"author": "quamrana",
"author_id": 4834,
"author_profile": "https://Stackoverflow.com/users/4834",
"pm_score": 3,
"selected": true,
"text": "func() def get_time(func):\n from time import perf_counter\n from functools import wraps\n \"\"\"Times any functi... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19971373/"
] |
74,375,340 | <p>im trying o set a onChange Function when there is a change on the dropdown.
onChange it should be forwarded to another Side (using Navbar in React)</p>
<pre><code>import React from 'react';
import Select from 'react-select'
import { Link } from "react-router-dom";
import '../index.css';
import { Navbar } ... | [
{
"answer_id": 74375395,
"author": "quamrana",
"author_id": 4834,
"author_profile": "https://Stackoverflow.com/users/4834",
"pm_score": 3,
"selected": true,
"text": "func() def get_time(func):\n from time import perf_counter\n from functools import wraps\n \"\"\"Times any functi... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19836017/"
] |
74,375,348 | <p>I am looking at some typescript code for the first time and I'm clear on what it does until the last line. I believe that is a Nullish coalescing operator but I don't understand why the regex result is written <strong>matches?.[1]</strong> when <strong>matches[1]</strong> appears to work. Can anyone help with this?<... | [
{
"answer_id": 74375395,
"author": "quamrana",
"author_id": 4834,
"author_profile": "https://Stackoverflow.com/users/4834",
"pm_score": 3,
"selected": true,
"text": "func() def get_time(func):\n from time import perf_counter\n from functools import wraps\n \"\"\"Times any functi... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10020835/"
] |
74,375,400 | <p>I am new to python and jupyter notebook and I am using windows. Recently I installed Anaconda Navigator 2.3.1 and the python verson 3.9.13 on my computer. After entering the command <code>jupyter notebook</code> on the command-line, my browser doesn't open jupyter notebook, instead that showing me this error message... | [
{
"answer_id": 74375563,
"author": "OranShuster",
"author_id": 2750734,
"author_profile": "https://Stackoverflow.com/users/2750734",
"pm_score": 3,
"selected": true,
"text": "base64.encodestring"
},
{
"answer_id": 74429150,
"author": "Francis Massolin",
"author_id": 20498... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12904389/"
] |
74,375,401 | <p>I have a componet that contains a list of posts. I want to delete some posts. my problem is that the removed posts does not removed on the screen, even when I use <code>StateHasChanged()</code>.</p>
<p>Here is <code>PostListComponent.razor</code> file</p>
<pre class="lang-razor prettyprint-override"><code>@if (Posts... | [
{
"answer_id": 74375563,
"author": "OranShuster",
"author_id": 2750734,
"author_profile": "https://Stackoverflow.com/users/2750734",
"pm_score": 3,
"selected": true,
"text": "base64.encodestring"
},
{
"answer_id": 74429150,
"author": "Francis Massolin",
"author_id": 20498... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7826774/"
] |
74,375,419 | <p>I have a custom user store in my .NET Core 6 site. The corresponding user table in DB contains a field called <code>Lockout</code>.</p>
<p>When a user signs in, I need that field to be used to forbid the user to login if that field is true.</p>
<p>The <code>Login</code> action of the Account Controller has this code... | [
{
"answer_id": 74385720,
"author": "Jason Pan",
"author_id": 7687666,
"author_profile": "https://Stackoverflow.com/users/7687666",
"pm_score": 0,
"selected": false,
"text": "SignInManager.cs [HttpPost]\n[ValidateAntiForgeryToken]\npublic async Task<IactionResult> Login(UserLoginModel use... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1048588/"
] |
74,375,450 | <p><strong>Disclaimer: I am new to JS so this problem is probably pretty simple to solve, but I have consulted all resources and stack overflow posts I could find online on the subject</strong></p>
<p>This is probably something simple that's missing but I haven't been able to debug this problem :</p>
<p>I want to conne... | [
{
"answer_id": 74385720,
"author": "Jason Pan",
"author_id": 7687666,
"author_profile": "https://Stackoverflow.com/users/7687666",
"pm_score": 0,
"selected": false,
"text": "SignInManager.cs [HttpPost]\n[ValidateAntiForgeryToken]\npublic async Task<IactionResult> Login(UserLoginModel use... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19108231/"
] |
74,375,453 | <p>I am trying to search using <code>node.js</code>, <code>ejs</code> and <code>mongoose</code>. All the filter parameters are working perfectly but only <code>categoryIds</code> is not (stored as a collection of ObjectIDs in the mongodb document, referring to the respective document in <code>categories</code> collecti... | [
{
"answer_id": 74385720,
"author": "Jason Pan",
"author_id": 7687666,
"author_profile": "https://Stackoverflow.com/users/7687666",
"pm_score": 0,
"selected": false,
"text": "SignInManager.cs [HttpPost]\n[ValidateAntiForgeryToken]\npublic async Task<IactionResult> Login(UserLoginModel use... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375453",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1136807/"
] |
74,375,476 | <p>I am trying to create a column, that should do a calculation per product, based on multiple columns.</p>
<p>Logic for the calculation column:</p>
<ul>
<li>Calculations should be done per product</li>
<li>Use quantity as default</li>
<li>IF promo[Y/N] = 1, then take previous weeks quantity * season perc. change.</li>... | [
{
"answer_id": 74385720,
"author": "Jason Pan",
"author_id": 7687666,
"author_profile": "https://Stackoverflow.com/users/7687666",
"pm_score": 0,
"selected": false,
"text": "SignInManager.cs [HttpPost]\n[ValidateAntiForgeryToken]\npublic async Task<IactionResult> Login(UserLoginModel use... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5917999/"
] |
74,375,486 | <p>I would like to find out how to find repeated numbers after every 4 numbers.</p>
<p>This is what I have.</p>
<pre><code>arr = [4, 5, 2, 1, 1, 5 , 1, 8, 3, 5 ,0, 7, 2 , 5 ,6 , 5, 8]
size = len(arr)
for i in range(0,size,4):
if arr[i] == arr[i + 4] and arr[i + 4] == arr[i + 8] and arr[i + 8] == arr[i + 12... | [
{
"answer_id": 74375560,
"author": "Aymen",
"author_id": 5165980,
"author_profile": "https://Stackoverflow.com/users/5165980",
"pm_score": 1,
"selected": false,
"text": "arr = [4, 5, 2, 1, 1, 5 , 1, 8, 3, 5 ,0, 7, 2 , 5 ,6 , 5, 8]\n\nfor i in range(0, len(arr)):\n try:\n # chec... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20459398/"
] |
74,375,491 | <p>To put it simply, I was given a .txt file with a list of words in it, then asked to read it in python and store it in a list with a function. So far, no problem. I wrote something that looks like this:</p>
<pre><code>def load_lexicon():
with open("lexicon.txt", "r") as f:
content_lis... | [
{
"answer_id": 74375560,
"author": "Aymen",
"author_id": 5165980,
"author_profile": "https://Stackoverflow.com/users/5165980",
"pm_score": 1,
"selected": false,
"text": "arr = [4, 5, 2, 1, 1, 5 , 1, 8, 3, 5 ,0, 7, 2 , 5 ,6 , 5, 8]\n\nfor i in range(0, len(arr)):\n try:\n # chec... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20406558/"
] |
74,375,513 | <p>I have a vector of integers that I want to split by 3, then I have to order the splitted parts and put bac into integer vector.</p>
<pre><code>as.integer(c(16,9,2,17,10,3,18,11,4,19,12,5,20,13,6,21,14,7,22,15,8))
</code></pre>
<p>First step - split like this:</p>
<pre><code>16,9,2
17,10,3
18,11,4
19,12,5
20,13,6
21,... | [
{
"answer_id": 74375612,
"author": "swolf",
"author_id": 2433233,
"author_profile": "https://Stackoverflow.com/users/2433233",
"pm_score": 3,
"selected": true,
"text": "x <- as.integer(c(16,9,2,17,10,3,18,11,4,19,12,5,20,13,6,21,14,7,22,15,8))\nspl.x <- split(x, ceiling(seq_along(x)/3)) ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375513",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9076548/"
] |
74,375,522 | <p>I am developing an application in Express and Vue js
I'm getting this:</p>
<p>Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/vue.js?v=460a75c2' does not provide an export named 'Vue' (at main.js?t=1667997788986:1:9)</p>
<p>App.vue file :</p>
<pre><code>import {Vue, createApp } from 'vue'
import... | [
{
"answer_id": 74375612,
"author": "swolf",
"author_id": 2433233,
"author_profile": "https://Stackoverflow.com/users/2433233",
"pm_score": 3,
"selected": true,
"text": "x <- as.integer(c(16,9,2,17,10,3,18,11,4,19,12,5,20,13,6,21,14,7,22,15,8))\nspl.x <- split(x, ceiling(seq_along(x)/3)) ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74375522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20459237/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.