qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,510,159
<p>I am having a text file in which some binary numbers are there. I want to count number of occurrence of some digits/characters using pattern, and I want to sort it in descending order (till this point code working fine. but I want result should show only more than 7 characters. it means i can change in my selection ...
[ { "answer_id": 74510236, "author": "0x0fba", "author_id": 20339407, "author_profile": "https://Stackoverflow.com/users/20339407", "pm_score": 1, "selected": true, "text": "Counter from collections import Counter\n\ncnt = Counter(re.findall(pattern, test_str))\nprint(cnt.most_common()) #...
2022/11/20
[ "https://Stackoverflow.com/questions/74510159", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17500419/" ]
74,510,168
<p>I have a Photo Share web app and I am trying to add comments in photos. I can't spot any mistakes. Maybe in the controller class in index function is the problem. There is an undefined method error when I try to show-post comments below the photo. Error in HAML code.</p> <pre><code>Error: - if @photo_comments.any? <...
[ { "answer_id": 74510198, "author": "spickermann", "author_id": 2483313, "author_profile": "https://Stackoverflow.com/users/2483313", "pm_score": 0, "selected": false, "text": "- if @photo_comments.nil?\n - @photo_comments.each do |comment|\n @photo_comments nil undefined method 'each' f...
2022/11/20
[ "https://Stackoverflow.com/questions/74510168", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11353686/" ]
74,510,180
<p>Using visual studio 2022 with Xamarin I am following the steps to prepare and reduce the size of my app for publishing</p> <p><a href="https://docs.microsoft.com/en-us/xamarin/android/deploy-test/release-prep/proguard" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/xamarin/android/deploy-test/release-pre...
[ { "answer_id": 74510198, "author": "spickermann", "author_id": 2483313, "author_profile": "https://Stackoverflow.com/users/2483313", "pm_score": 0, "selected": false, "text": "- if @photo_comments.nil?\n - @photo_comments.each do |comment|\n @photo_comments nil undefined method 'each' f...
2022/11/20
[ "https://Stackoverflow.com/questions/74510180", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16753008/" ]
74,510,237
<p>I'm trying to apply the same rule to different columns, which will fill the cell with the color green if it is empty.</p> <p>I'm getting the rule through recording a Macro, but cannot figure out a successful way of removing the reference to range B2 below.</p> <p>I would like to have it as a rule I can apply to mult...
[ { "answer_id": 74510565, "author": "Red Hare", "author_id": 19618751, "author_profile": "https://Stackoverflow.com/users/19618751", "pm_score": 2, "selected": true, "text": "Option Explicit\n\nPublic Sub FillGreenIfCellNotEmpty()\nDim x As String\nx = Selection.Address(0, 0) \n\n Sele...
2022/11/20
[ "https://Stackoverflow.com/questions/74510237", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7107774/" ]
74,510,269
<p>The <code>Safe</code> extension method can never return null, but the compiler seemingly isn't able to detect that. I think I read something about this being an intentional design decision for strings, but don't recall when or where. Can anyone explain how to fix this (i.e., help the compiler along) or explain why...
[ { "answer_id": 74510311, "author": "Etienne de Martel", "author_id": 71141, "author_profile": "https://Stackoverflow.com/users/71141", "pm_score": 1, "selected": false, "text": "Safe() foo?.Text().Safe();\n foo ?. foo Safe() bar.NoNullsHere = foo?.Text() ?? string.Empty;\n foo Text()" ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15679808/" ]
74,510,270
<p>I am coding something using the YouTubeV3 API to upload a video. I was going through the demo script Google gives, but don't fully understand this piece of code. It uses <code>argparser.add_argument()</code> to add information like the file or title through the command line, however I want to add this info in the sc...
[ { "answer_id": 74510340, "author": "Nave Twizer", "author_id": 17254732, "author_profile": "https://Stackoverflow.com/users/17254732", "pm_score": 0, "selected": false, "text": "argparse print(f\"Video title: {argparser.title}\")\n# This stores the \"--title\" argument you pass in throug...
2022/11/20
[ "https://Stackoverflow.com/questions/74510270", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20556193/" ]
74,510,287
<p>given data and my own DataFrame class which takes the dict as a parameter like this.</p> <pre><code>frame = { &quot;a&quot;: [&quot;X4E&quot;, &quot;T3B&quot;, &quot;F8D&quot;, &quot;C7X&quot;], &quot;b&quot;: [7.0, 3.5, 8.0, 6.0], &quot;c&quot;: [5, 3, 1, 10], &quot;d&quot;: [False, False, True, Fal...
[ { "answer_id": 74510340, "author": "Nave Twizer", "author_id": 17254732, "author_profile": "https://Stackoverflow.com/users/17254732", "pm_score": 0, "selected": false, "text": "argparse print(f\"Video title: {argparser.title}\")\n# This stores the \"--title\" argument you pass in throug...
2022/11/20
[ "https://Stackoverflow.com/questions/74510287", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11864678/" ]
74,510,288
<pre><code>double _sqrt(double n) { double sqrt = 0, c = 0, prec = 1; for (;; sqrt += prec) //increments sqrt per precision { c = sqrt * sqrt; if (c == n) { return sqrt; } if (c &gt; n) // if square is greater then.. { sqrt -= prec; //...
[ { "answer_id": 74511189, "author": "UniformSoup", "author_id": 13357306, "author_profile": "https://Stackoverflow.com/users/13357306", "pm_score": 3, "selected": true, "text": "increment double _sqrt(const double& n)\n{\n const double precision = 0.000001;\n double increment = 1.0,...
2022/11/20
[ "https://Stackoverflow.com/questions/74510288", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16743990/" ]
74,510,331
<p>When writing to a file in python, you should typically use the using structure in order to have the file closed after writing, like so:</p> <pre><code>with open(&quot;myfile.txt&quot;, &quot;a&quot;) as file1: file1.write(&quot;Hello \n&quot;) </code></pre> <p>But if I, during the execution of my script, wants ...
[ { "answer_id": 74510447, "author": "scotscotmcc", "author_id": 15804190, "author_profile": "https://Stackoverflow.com/users/15804190", "pm_score": 2, "selected": false, "text": "with def main():\n with open('file.txt','w') as file:\n my_func_1()\n my_func_2(file)\n ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510331", "https://Stackoverflow.com", "https://Stackoverflow.com/users/108390/" ]
74,510,343
<p>I am new to tkinter and encounter this strange behavior with the images. Please pay attention to the *.mainloop() in the code below.</p> <pre><code> import tkinter as tk from tkinter import ttk from PIL import Image, ImageTk class BaseWindow(tk.Tk): def __init__(self): super(BaseWindow, self).__init__()...
[ { "answer_id": 74510447, "author": "scotscotmcc", "author_id": 15804190, "author_profile": "https://Stackoverflow.com/users/15804190", "pm_score": 2, "selected": false, "text": "with def main():\n with open('file.txt','w') as file:\n my_func_1()\n my_func_2(file)\n ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510343", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10136531/" ]
74,510,354
<p>I am specifically using python version <code>3.10</code> to run a websocket (or any long <code>asyncio</code> process) for a <strong>specified period of time</strong> which is covered in the python docs. The <code>.wait_for()</code> method looks like the correct solution.</p> <p>I run this code (from the docs):</p> ...
[ { "answer_id": 74510578, "author": "Zz_GhostM4n_zZ", "author_id": 20555553, "author_profile": "https://Stackoverflow.com/users/20555553", "pm_score": 2, "selected": true, "text": "except Exception as exc:\n print(f'The exception: {exc!r}')\n" }, { "answer_id": 74540603, "a...
2022/11/20
[ "https://Stackoverflow.com/questions/74510354", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7318120/" ]
74,510,357
<p>Can anyone help with the below, I am getting the following error Cannot read properties of undefined (reading 'getters')</p> <p>I am working on a project where my stores should return an array to my index.vue</p> <p>Is there also any way I can get around this without having to use the Vuex store?</p> <p>My store dir...
[ { "answer_id": 74510578, "author": "Zz_GhostM4n_zZ", "author_id": 20555553, "author_profile": "https://Stackoverflow.com/users/20555553", "pm_score": 2, "selected": true, "text": "except Exception as exc:\n print(f'The exception: {exc!r}')\n" }, { "answer_id": 74540603, "a...
2022/11/20
[ "https://Stackoverflow.com/questions/74510357", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13095514/" ]
74,510,362
<p>I have a huge data frame with several columns and rows, and I would like to get all values by rows skipping the first column.</p> <pre><code>import pandas as pd df = pd.DataFrame([['A', 2, 4, 7], ['B', 6, 1, 5], ['C', 4, 2, 2], ['D', 3, 9, 8]], columns = [&quot;Pen&quot;, &quot;A&quot;, 'B', 'C']) values = [] f...
[ { "answer_id": 74510578, "author": "Zz_GhostM4n_zZ", "author_id": 20555553, "author_profile": "https://Stackoverflow.com/users/20555553", "pm_score": 2, "selected": true, "text": "except Exception as exc:\n print(f'The exception: {exc!r}')\n" }, { "answer_id": 74540603, "a...
2022/11/20
[ "https://Stackoverflow.com/questions/74510362", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5889450/" ]
74,510,396
<p>Is pseudocode really as simple as it sounds? Or am I completely missing something? I need to write pseudocode for a simple program to display months of the year including the number of month. Will this work??</p> <pre><code>Create list containing months Use for statement to create loop Display month number w/ name <...
[ { "answer_id": 74510459, "author": "Edward Peters", "author_id": 6016064, "author_profile": "https://Stackoverflow.com/users/6016064", "pm_score": 1, "selected": false, "text": "myList = [\"Jan\", \"Feb\", ...]\nfor i = 0 to 11:\n print(i + \":\" + myList[i])\n" }, { "answer_i...
2022/11/20
[ "https://Stackoverflow.com/questions/74510396", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20556365/" ]
74,510,404
<p>I have a css background image that i displayed as cover so that it covers entire screen but it does not show lower part of the image.</p> <p>used this image: <a href="https://pixabay.com/vectors/winter-landscape-houses-background-2840549/" rel="nofollow noreferrer">https://pixabay.com/vectors/winter-landscape-houses...
[ { "answer_id": 74510446, "author": "Emre", "author_id": 6468955, "author_profile": "https://Stackoverflow.com/users/6468955", "pm_score": 1, "selected": false, "text": "body{\n background-image: url(https://cdn.pixabay.com/photo/2017/10/11/10/05/winter-2840549_960_720.png);\n \n ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3888135/" ]
74,510,406
<p>I have a URL</p> <pre><code> http://localhost/xxxx/cat/History?randomArg=2 </code></pre> <p>that I want to run</p> <p><strike>http://localhost/xxxx/cat/edit.php?name=History&amp;randomArg=2</strike></p> <pre><code> http://localhost/xxxx/cat.php?name=History&amp;randomArg=2 </code></pre> <blockquote> <p>(PO...
[ { "answer_id": 74510491, "author": "anubhava", "author_id": 548225, "author_profile": "https://Stackoverflow.com/users/548225", "pm_score": 2, "selected": false, "text": "RewriteRule MultiViews Options -MultiViews\nRewriteEngine On\n\nRewriteCond ^(.*/cat)/([\\w-]+)/?$ [NC]\nRewriteRule ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510406", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1432181/" ]
74,510,410
<p><a href="https://i.stack.imgur.com/iSxwM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iSxwM.png" alt="enter image description here" /></a>On event change I'm trying to capture the value of an object that's displayed in a select drop down.</p> <pre class="lang-html prettyprint-override"><code>&l...
[ { "answer_id": 74511881, "author": "D.Hodges", "author_id": 7797500, "author_profile": "https://Stackoverflow.com/users/7797500", "pm_score": 0, "selected": false, "text": "const test = e.detail.value.split(\"*\");\n console.log('event', test);\n this.pushLog('ionChange fired with ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510410", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7797500/" ]
74,510,444
<p>I have a simple React App using Firestore. I have a document in Firestore:</p> <pre><code>{ date: November 20, 2022 at 11:24:44 AM UTC+1, description: &quot;...&quot;, title: &quot;Dummy title&quot;, type: &quot;student&quot;, userRef: /users/0AjB4yFFcIS6VMQMi7rUnF3eJXk2 } </code></pre> <p>Now I have a custom hook, ...
[ { "answer_id": 74510959, "author": "Elvin", "author_id": 11743253, "author_profile": "https://Stackoverflow.com/users/11743253", "pm_score": 2, "selected": true, "text": " useEffect(() => {\n getAnnouncements().then((documents) => {\n const promises = documents.map((doc) => {\n ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510444", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2096859/" ]
74,510,448
<p>I want to custumize my DatePicker and only show days cause i want the user to choose one or multiple day from 1 to 31 with ignoring the month and the year</p> <p>I am using the date picker from <code>&quot;react-multi-date-picker&quot;</code></p> <pre class="lang-js prettyprint-override"><code>&lt;DatePicker id={&...
[ { "answer_id": 74510575, "author": "Elvin", "author_id": 11743253, "author_profile": "https://Stackoverflow.com/users/11743253", "pm_score": 1, "selected": true, "text": " <DatePicker\n id={'startDate'}\n className=\"form-control\"\n multiple\n format=\"DD\"\n bu...
2022/11/20
[ "https://Stackoverflow.com/questions/74510448", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15174378/" ]
74,510,454
<pre><code>var books = new List&lt;Book&gt;(3); foreach (Book item in books) { item.Title = Console.ReadLine(); item.Countofpage = int.Parse(Console.ReadLine()); } </code></pre> <p>When I enter the title into the console, my program just closes.</p> <p>Please help</p>
[ { "answer_id": 74510575, "author": "Elvin", "author_id": 11743253, "author_profile": "https://Stackoverflow.com/users/11743253", "pm_score": 1, "selected": true, "text": " <DatePicker\n id={'startDate'}\n className=\"form-control\"\n multiple\n format=\"DD\"\n bu...
2022/11/20
[ "https://Stackoverflow.com/questions/74510454", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19653276/" ]
74,510,470
<p>i have the following data structure</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-html lang-html prettyprint-override"><code>[ { id: 1, name: 'Top Level Topic 1', parentTopic: undefined }, {...
[ { "answer_id": 74510596, "author": "Andrew Parks", "author_id": 5898421, "author_profile": "https://Stackoverflow.com/users/5898421", "pm_score": 3, "selected": true, "text": "const data = [{\"id\":1,\"name\":\"Top Level Topic 1\"},{\"id\":2,\"name\":\"Some topic internally\",\"parentTop...
2022/11/20
[ "https://Stackoverflow.com/questions/74510470", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2906950/" ]
74,510,540
<p>On classes/methods that work with several properties, what's the best or more pythonic way to work with default parameters (on object instantiation) and overwrite those defaults on calls to that object's methods?</p> <p>I'd like to be able to create an object with a set of default parameters (being a large amount of...
[ { "answer_id": 74510872, "author": "dskrypa", "author_id": 19070573, "author_profile": "https://Stackoverflow.com/users/19070573", "pm_score": 1, "selected": false, "text": "from __future__ import annotations\n\nfrom typing import Optional, Union\n\n\nclass TextAttribute:\n __slots__ ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510540", "https://Stackoverflow.com", "https://Stackoverflow.com/users/844578/" ]
74,510,541
<p>in my sql table I have decimal data with dot as a separator but the display in my page is done with commas</p> <p>I would like to display them with dot</p> <p>in my settings i have this</p> <pre><code>LANGUAGE_CODE = &quot;fr-fr&quot; TIME_ZONE = &quot;UTC&quot; USE_I18N = True USE_TZ = True </code></pre> <p>my m...
[ { "answer_id": 74510872, "author": "dskrypa", "author_id": 19070573, "author_profile": "https://Stackoverflow.com/users/19070573", "pm_score": 1, "selected": false, "text": "from __future__ import annotations\n\nfrom typing import Optional, Union\n\n\nclass TextAttribute:\n __slots__ ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510541", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11230924/" ]
74,510,542
<p>Im making a platform with different roles with laravel , I wanted to ask if the following code its secure to use to define the roles</p> <p>For example i want to use different paths for admin and user and to show them some specific content based on roles : Is this a good way to check the roles or i must modify the c...
[ { "answer_id": 74510872, "author": "dskrypa", "author_id": 19070573, "author_profile": "https://Stackoverflow.com/users/19070573", "pm_score": 1, "selected": false, "text": "from __future__ import annotations\n\nfrom typing import Optional, Union\n\n\nclass TextAttribute:\n __slots__ ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510542", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20556576/" ]
74,510,559
<p>I have an array of integer arrays like:</p> <p><code>i = [[1,3,8],[1,7,4],[1,9,1],[1,0,3],[1,11,-2]]</code></p> <p>And I want a result like:</p> <p><code>i = [[1,9,1],[1,11,-2],[1,0,3],[1,7,4],[1,3,8]]</code></p> <p>where the &quot;i&quot; array is sorted in a way that i[x][2] is closest to 0.</p> <p>I tried to chan...
[ { "answer_id": 74510580, "author": "QWERTYL", "author_id": 11777402, "author_profile": "https://Stackoverflow.com/users/11777402", "pm_score": 3, "selected": true, "text": "sorted_i = sorted(i, key=lambda x: abs(x[2]))\n" }, { "answer_id": 74510613, "author": "El Mehdi", ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510559", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13160638/" ]
74,510,598
<p>I want to find ObjectId of a user, but I can't use Get-AzADUser module as I don't have privilege to install this module.</p> <p>Get-AzRoleAssignment, Get-AzContext is accessible to me</p> <p>Is there any other way to find ObjectId of a user with any other module.</p> <p>Any help would be GREATLY appreciated</p>
[ { "answer_id": 74510580, "author": "QWERTYL", "author_id": 11777402, "author_profile": "https://Stackoverflow.com/users/11777402", "pm_score": 3, "selected": true, "text": "sorted_i = sorted(i, key=lambda x: abs(x[2]))\n" }, { "answer_id": 74510613, "author": "El Mehdi", ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11722543/" ]
74,510,602
<p>i have a dataframe, namely data, with a datetime index and the below columns :</p> <pre><code> id activity x y z datetime 1970-01-01 00:42:00.219142823 1623 A -0.152512 -8.585220 -1.219192 1970-01-01 00:42:00.269496827 1623 A ...
[ { "answer_id": 74510580, "author": "QWERTYL", "author_id": 11777402, "author_profile": "https://Stackoverflow.com/users/11777402", "pm_score": 3, "selected": true, "text": "sorted_i = sorted(i, key=lambda x: abs(x[2]))\n" }, { "answer_id": 74510613, "author": "El Mehdi", ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510602", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12391776/" ]
74,510,610
<p>i am trying to get a balance column in a python dataframe with an initial static value.</p> <p><strong>The logic:</strong></p> <p>start balance = 1000</p> <p>current balance = previous current balance*(1+df['return'])</p> <p><strong>My attempt:</strong></p> <pre><code>df.at[1,'current balance'] = 1000 df['current ba...
[ { "answer_id": 74510580, "author": "QWERTYL", "author_id": 11777402, "author_profile": "https://Stackoverflow.com/users/11777402", "pm_score": 3, "selected": true, "text": "sorted_i = sorted(i, key=lambda x: abs(x[2]))\n" }, { "answer_id": 74510613, "author": "El Mehdi", ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510610", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6883721/" ]
74,510,620
<p>Code to drop rows based on a partial string is not working.</p> <p>Very simple code, and it runs fine but doesn't drop the rows I want.</p> <p>The original table in the pdf looks like this:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Chemical</th> <th>Value</th> <th>Unit</th> <th>Typ...
[ { "answer_id": 74510580, "author": "QWERTYL", "author_id": 11777402, "author_profile": "https://Stackoverflow.com/users/11777402", "pm_score": 3, "selected": true, "text": "sorted_i = sorted(i, key=lambda x: abs(x[2]))\n" }, { "answer_id": 74510613, "author": "El Mehdi", ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510620", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20556520/" ]
74,510,633
<p>I have a class that calls a mocked function in the initializer list. I want to use EXPECT_CALL in order to verify that the mocked function is called only once. The problem is that I can't use the macro before the constructor because it's the first function that runs, neither after it because the mocked function is c...
[ { "answer_id": 74510580, "author": "QWERTYL", "author_id": 11777402, "author_profile": "https://Stackoverflow.com/users/11777402", "pm_score": 3, "selected": true, "text": "sorted_i = sorted(i, key=lambda x: abs(x[2]))\n" }, { "answer_id": 74510613, "author": "El Mehdi", ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510633", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14220253/" ]
74,510,668
<p>A process I have that's been running for a couple of years suddenly stopped working. I avoided updating much in the way of python and packages to avoid that..</p> <p>I've now updated ib_insync to the latest version, and no improvement. debugging a little gives me this:</p> <p>the code import ib_insync as ibis ib = i...
[ { "answer_id": 74510580, "author": "QWERTYL", "author_id": 11777402, "author_profile": "https://Stackoverflow.com/users/11777402", "pm_score": 3, "selected": true, "text": "sorted_i = sorted(i, key=lambda x: abs(x[2]))\n" }, { "answer_id": 74510613, "author": "El Mehdi", ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510668", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20556632/" ]
74,510,705
<p>I have a flexbox container in which I have around 128 items(the amount can change). I'll use 14 here. They go like this:</p> <pre><code>----------------- | 1 2 3 4 | | 5 6 7 8 | | 9 10 11 12 | | 13 14 | ----------------- </code></pre> <p>what im trying to achieve is reversing the order so that...
[ { "answer_id": 74510918, "author": "nourhomsi", "author_id": 4859502, "author_profile": "https://Stackoverflow.com/users/4859502", "pm_score": 0, "selected": false, "text": ".flexbox-container {\n display: flex;\n flex-wrap: wrap-reverse;\n flex-direction: row-reverse;\n}\n\n.it...
2022/11/20
[ "https://Stackoverflow.com/questions/74510705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18565217/" ]
74,510,706
<p>Im trying to return a subset of list of dictionaries, derived from a list of dictionaries.</p> <p>Input:</p> <pre><code>dicts = [ {'name': 'Sam', 'age': 12}, {'name': 'Pete', 'age': 14}, {'name': 'Sarah', 'age': 16} ] </code></pre> <p>Im trying to get this output:</p> <pre><code>res = [ {'name': 'Sa...
[ { "answer_id": 74510754, "author": "QWERTYL", "author_id": 11777402, "author_profile": "https://Stackoverflow.com/users/11777402", "pm_score": 2, "selected": false, "text": "[{'name': x['name']} for x in dicts]\n" }, { "answer_id": 74512967, "author": "BeRT2me", "author_i...
2022/11/20
[ "https://Stackoverflow.com/questions/74510706", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19307593/" ]
74,510,708
<p>I wanted to know if anyone has had success concurrently capturing images or videos on an Android device from 2 rear cameras, using this API: <a href="https://source.android.com/docs/core/camera/concurrent-streaming" rel="nofollow noreferrer">https://source.android.com/docs/core/camera/concurrent-streaming</a> . The ...
[ { "answer_id": 74642837, "author": "Arda Kazancı", "author_id": 5595926, "author_profile": "https://Stackoverflow.com/users/5595926", "pm_score": 1, "selected": false, "text": " fun CameraManager.directCamera(cameraId: String): LensDirect {\n val lensFacing = getCameraCharacterist...
2022/11/20
[ "https://Stackoverflow.com/questions/74510708", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2023394/" ]
74,510,769
<pre><code>const obj = { uid: &quot;893212&quot;, a: {name: &quot;Down here!&quot;, uid: &quot;1231&quot;}, b: { c: {uid: &quot;5965&quot;}, name: &quot;bud name&quot;, }, d: {name: &quot;doodle name&quot;}, e: {name: &quot;alexa name&quot;}, f: [&quot;kk&quot;, &quot;jj&quot;], g: [ { ...
[ { "answer_id": 74511084, "author": "IT goldman", "author_id": 3807365, "author_profile": "https://Stackoverflow.com/users/3807365", "pm_score": -1, "selected": false, "text": "const obj = {uid:\"893212\",a:{name:\"Down here!\",uid:\"1231\"},b:{c:{uid:\"5965\"},name:\"bud name\"},d:{name:...
2022/11/20
[ "https://Stackoverflow.com/questions/74510769", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12189334/" ]
74,510,794
<p>On my input component, using Tailwind css, i added this classes:</p> <pre><code>focus:ring focus:outline-none focus-visible:ring </code></pre> <p>These classes are responsible to add styles when the input is focused. Ex: <a href="https://tailwindcss.com/docs/hover-focus-and-other-states" rel="nofollow noreferrer">ht...
[ { "answer_id": 74517054, "author": "Tom", "author_id": 16688813, "author_profile": "https://Stackoverflow.com/users/16688813", "pm_score": 1, "selected": false, "text": "border focus:border-4 focus:border-solid focus:border-l-transparent\n" }, { "answer_id": 74521417, "author...
2022/11/20
[ "https://Stackoverflow.com/questions/74510794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12540500/" ]
74,510,810
<p>I have a vue.js 3 frontend, and I am calling a Golang backend via <code>grpc-gateway</code>. I have been at this for a while but I see light at the end of the tunnel.</p> <p>I am currently facing a CORS issue. However, I am reading conflicting information on how to handle it. Therefore, I want to post and hopefully ...
[ { "answer_id": 74538299, "author": "Emin Laletovic", "author_id": 7567579, "author_profile": "https://Stackoverflow.com/users/7567579", "pm_score": 1, "selected": false, "text": "swMux func enableCors(h http.Handler) http.Handler {\n return http.HandlerFunc(func(w http.ResponseWriter,...
2022/11/20
[ "https://Stackoverflow.com/questions/74510810", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4753897/" ]
74,510,816
<p>I have sparsed dataframe that I needed to convert it to list which I already did it. Now I want to transform this list to dictionary, so I can do key-value comparison in my actual use case. To do so, I attempted to convert list to dictionary but I have value error instead. How can I do this correctly in python? Does...
[ { "answer_id": 74511145, "author": "lmaayanl", "author_id": 5714034, "author_profile": "https://Stackoverflow.com/users/5714034", "pm_score": 1, "selected": false, "text": "mydf.to_dict(orient='records') \n" }, { "answer_id": 74511186, "author": "Andrej Kesely", "author_i...
2022/11/20
[ "https://Stackoverflow.com/questions/74510816", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7114383/" ]
74,510,824
<p>I have a roll the dice game I have to make for school, I have come far.. the game is working but my problem is that I have to make a highscore system and restrict 6,7,8,9 (if the total is any of those depends on what the player is choosing) it fails the game and you start over.</p> <p>I just wanna make a highscore a...
[ { "answer_id": 74511145, "author": "lmaayanl", "author_id": 5714034, "author_profile": "https://Stackoverflow.com/users/5714034", "pm_score": 1, "selected": false, "text": "mydf.to_dict(orient='records') \n" }, { "answer_id": 74511186, "author": "Andrej Kesely", "author_i...
2022/11/20
[ "https://Stackoverflow.com/questions/74510824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20556780/" ]
74,510,845
<p>So I am trying to build a LAMP-app with Docker because I always have issues with installing PHP and such on my local machine.</p> <p>Currently I am following a tutorial from Brad Traversy: PHP Crash Course on youtube and I am getting stuck at the part where he explains 'filehandling'. Part 14.</p> <p>This is the err...
[ { "answer_id": 74511145, "author": "lmaayanl", "author_id": 5714034, "author_profile": "https://Stackoverflow.com/users/5714034", "pm_score": 1, "selected": false, "text": "mydf.to_dict(orient='records') \n" }, { "answer_id": 74511186, "author": "Andrej Kesely", "author_i...
2022/11/20
[ "https://Stackoverflow.com/questions/74510845", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20556673/" ]
74,510,859
<p>I am new to programming and i want to develop a application but i need show to users very large text in my application. I am not sure widget.NewRichTextWithText() is for this purpose. This code working as i expected.</p> <pre><code>package main import ( &quot;strings&quot; &quot;fyne.io/fyne/v2&quot; &...
[ { "answer_id": 74511145, "author": "lmaayanl", "author_id": 5714034, "author_profile": "https://Stackoverflow.com/users/5714034", "pm_score": 1, "selected": false, "text": "mydf.to_dict(orient='records') \n" }, { "answer_id": 74511186, "author": "Andrej Kesely", "author_i...
2022/11/20
[ "https://Stackoverflow.com/questions/74510859", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18572278/" ]
74,510,879
<p>I am trying to build a Yocto image but it keeps failing on trying to fetch the GIT repositories as below. I can reach <code>https://github.com/PROJECT/linux-imx</code> from a browser, but no joy fetching the GIT repository from Yocto. Any ideas on how to solve it would be appreciated.</p> <pre><code> WARNING: linux-...
[ { "answer_id": 74516046, "author": "VonC", "author_id": 6309, "author_profile": "https://Stackoverflow.com/users/6309", "pm_score": 0, "selected": false, "text": "Missing SRC_URI checksum" }, { "answer_id": 74521244, "author": "Talel BELHADJSALEM", "author_id": 7553704, ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510879", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4768946/" ]
74,510,887
<p>Hello I want to look for a specific block of data inside a dataframe with python and pandas. Lets assume I have a dataframe like this:</p> <pre><code>A B C D E 1 3 5 7 9 5 6 7 8 9 2 4 6 8 8 5 4 3 2 1 </code></pre> <p>and I want to iterate over the dataframe and look for a specific block of data ...
[ { "answer_id": 74516046, "author": "VonC", "author_id": 6309, "author_profile": "https://Stackoverflow.com/users/6309", "pm_score": 0, "selected": false, "text": "Missing SRC_URI checksum" }, { "answer_id": 74521244, "author": "Talel BELHADJSALEM", "author_id": 7553704, ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510887", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1771213/" ]
74,510,898
<p>I have a nested list (see image) and I'd like to change the position of elements that are in the second level to first level and the name of this elements also changes. For example, element [<a href="https://i.stack.imgur.com/o5Md9.png" rel="nofollow noreferrer">1</a>][<a href="https://i.stack.imgur.com/o5Md9.png" r...
[ { "answer_id": 74516046, "author": "VonC", "author_id": 6309, "author_profile": "https://Stackoverflow.com/users/6309", "pm_score": 0, "selected": false, "text": "Missing SRC_URI checksum" }, { "answer_id": 74521244, "author": "Talel BELHADJSALEM", "author_id": 7553704, ...
2022/11/20
[ "https://Stackoverflow.com/questions/74510898", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20504985/" ]
74,510,905
<p>Now I have another problem:</p> <p>Another subtask tells me to derive a data type from the classes.</p> <p>I don't know how to compare it. Do you have an idea and could you explain it to me so that I can understand?</p> <p>``</p> <p>instance Eq where ...</p> <p>instance Ord where ...</p> <pre><code></code></pre>
[ { "answer_id": 74511336, "author": "DDub", "author_id": 14802384, "author_profile": "https://Stackoverflow.com/users/14802384", "pm_score": 3, "selected": true, "text": "eqCurrency eqCurrency :: Currency -> Currency -> Bool\neqCurrency ...\n eqCurrency :: Currency -> Currency -> Bool\neq...
2022/11/20
[ "https://Stackoverflow.com/questions/74510905", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,510,913
<p>i am trying to make a program in which you have a list of workers,where you can add new workers and delete workers. I made a function which contained 5 names. i then want to make a second function to add 2 new names to the 1. function.</p> <pre><code>public static void Zaposlenici() { List&lt;str...
[ { "answer_id": 74511336, "author": "DDub", "author_id": 14802384, "author_profile": "https://Stackoverflow.com/users/14802384", "pm_score": 3, "selected": true, "text": "eqCurrency eqCurrency :: Currency -> Currency -> Bool\neqCurrency ...\n eqCurrency :: Currency -> Currency -> Bool\neq...
2022/11/20
[ "https://Stackoverflow.com/questions/74510913", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18754506/" ]
74,510,914
<p>I need to automatically calculate the most recent <strong>End Date (aka QRT_END) in the format YYYYMMDD</strong>. So since, we are in 20221120, the End Date would be the previous quarter end before today which is <strong>20220930</strong>.

</p> <p>I need to add to the below VBA syntax and not drastically change it....
[ { "answer_id": 74511336, "author": "DDub", "author_id": 14802384, "author_profile": "https://Stackoverflow.com/users/14802384", "pm_score": 3, "selected": true, "text": "eqCurrency eqCurrency :: Currency -> Currency -> Bool\neqCurrency ...\n eqCurrency :: Currency -> Currency -> Bool\neq...
2022/11/20
[ "https://Stackoverflow.com/questions/74510914", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13794066/" ]
74,510,915
<p>I need to write out a R querie that I already have in SQL. The task is to &quot;transcribe&quot; a querie from SQL to R. I have also imported the &quot;Posts&quot; library. I'm required to do the task in 3 ways: 1-Only base functions 2-Dplyr 3-Data.table</p> <p>The SQL querie is the following: SELECT STRFTIME('%Y', ...
[ { "answer_id": 74511302, "author": "DashdotdotDashdotdot", "author_id": 20548300, "author_profile": "https://Stackoverflow.com/users/20548300", "pm_score": 1, "selected": false, "text": "install.packages(\"sqldf\")\nlibrary(\"sqldf\")\n\nPosts <- data.frame(year = rep(c(2021, 2022), each...
2022/11/20
[ "https://Stackoverflow.com/questions/74510915", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20556786/" ]
74,510,923
<p>I'm trying to run a simple Spring application that adds an item to a database. I want to use the <strong>H2 in-memory database</strong> without defining a schema.sql.</p> <p>However, when I add a <strong>data.sql</strong> file inside the resources folder and start the application, I get the error: <code>Caused by: o...
[ { "answer_id": 74511302, "author": "DashdotdotDashdotdot", "author_id": 20548300, "author_profile": "https://Stackoverflow.com/users/20548300", "pm_score": 1, "selected": false, "text": "install.packages(\"sqldf\")\nlibrary(\"sqldf\")\n\nPosts <- data.frame(year = rep(c(2021, 2022), each...
2022/11/20
[ "https://Stackoverflow.com/questions/74510923", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11292161/" ]
74,510,929
<p>How to get array of strings from nested object</p> <p>Based on type it is required to get array of 'link'(s) Source object:</p> <pre><code>const obj = { id: '01', options: {}, children: [ { id: '02', type: 'green', options: { link: 'http://some-page-023' }, children: [...
[ { "answer_id": 74511022, "author": "Nina Scholz", "author_id": 1447675, "author_profile": "https://Stackoverflow.com/users/1447675", "pm_score": 2, "selected": false, "text": "const\n getLinks = (object, ltype) => {\n const links = [];\n if (object.type === ltype) links....
2022/11/20
[ "https://Stackoverflow.com/questions/74510929", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11020843/" ]
74,510,931
<p>I’m trying to pass data from child to parent component with a variable value from child to parent, unfortunately no changes are being made in parent component. Any ideas whats going on? Or does @Output decorator strictly works only with events that come from clicks in child component? I also would expact that it doe...
[ { "answer_id": 74511371, "author": "Flo", "author_id": 4472932, "author_profile": "https://Stackoverflow.com/users/4472932", "pm_score": 2, "selected": true, "text": "setTimeout" }, { "answer_id": 74511481, "author": "kellermat", "author_id": 20035486, "author_profile...
2022/11/20
[ "https://Stackoverflow.com/questions/74510931", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9723070/" ]
74,510,938
<p>I'm trying to separate a widget that contains GetBuilder. I want to send type as parameter to the widget but unfortunately unable to achieve it till now.</p> <p>What I'm trying to do:</p> <pre><code>class Widget extends StatelessWidget { final type; // A class type that extends GetxController const Widget({requ...
[ { "answer_id": 74510961, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 0, "selected": false, "text": "Widget class MyWidget extends StatelessWidget {\n final Type type; \n\n const MyWidget({required this.type...
2022/11/20
[ "https://Stackoverflow.com/questions/74510938", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15343446/" ]
74,510,942
<p>I recently came to this language, and I do not fully understand how some actions work.</p> <pre><code>package com.example.carapp; public class Calculate { static int[] benzmoney= {12,8,10}; static float[] factor = {1F, 0.5F,0.8F}; public static float calculateresult(int position,float fresult) { ...
[ { "answer_id": 74511074, "author": "laban_luka", "author_id": 14152014, "author_profile": "https://Stackoverflow.com/users/14152014", "pm_score": 1, "selected": false, "text": "Math.floor(result) Math.round(result) Math.floor a = 10_000\nb = 50_000\nc = a / b = 0.2\nMath.round(c) = 0\nMa...
2022/11/20
[ "https://Stackoverflow.com/questions/74510942", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20433755/" ]
74,510,992
<p>I am pretty new to Machine Learning and have some confusion, so sorry for trivial question. I have time series data set, very simple with two columns - Date and Price. I'm predicting the price and want to add some features to my model like moving average for last 10 days. If I split dataset learn:validation 80:20. ...
[ { "answer_id": 74511074, "author": "laban_luka", "author_id": 14152014, "author_profile": "https://Stackoverflow.com/users/14152014", "pm_score": 1, "selected": false, "text": "Math.floor(result) Math.round(result) Math.floor a = 10_000\nb = 50_000\nc = a / b = 0.2\nMath.round(c) = 0\nMa...
2022/11/20
[ "https://Stackoverflow.com/questions/74510992", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20556923/" ]
74,511,000
<p>I have a <code>.mboy</code> json file that are build with bpm 128 which is the audio original bpm.</p> <p>have a look below at the file.</p> <p><div class="snippet" data-lang="js" data-hide="true" data-console="true" data-babel="false"> <div class="snippet-code snippet-currently-hidden"> <pre class="snippet-code-j...
[ { "answer_id": 74511074, "author": "laban_luka", "author_id": 14152014, "author_profile": "https://Stackoverflow.com/users/14152014", "pm_score": 1, "selected": false, "text": "Math.floor(result) Math.round(result) Math.floor a = 10_000\nb = 50_000\nc = a / b = 0.2\nMath.round(c) = 0\nMa...
2022/11/20
[ "https://Stackoverflow.com/questions/74511000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4828524/" ]
74,511,006
<p>I have a dataset like this.</p> <p><a href="https://i.stack.imgur.com/u5keU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u5keU.png" alt="enter image description here" /></a></p> <p>As you can see in the column &quot;Year&quot; there is not only the year. There is also other information that I w...
[ { "answer_id": 74511036, "author": "DaveArmstrong", "author_id": 8206434, "author_profile": "https://Stackoverflow.com/users/8206434", "pm_score": 1, "selected": false, "text": "separate() tidyr library(tidyr)\ndat <- data.frame(x =c(\"1994 2 3.69 2.4\", \n \"1998 1...
2022/11/20
[ "https://Stackoverflow.com/questions/74511006", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20352415/" ]
74,511,007
<pre><code>#include &lt;stdio.h&gt; int main(){ while(1 == 1){ int a; int b; scanf(&quot;%d&quot;, &amp;a); scanf(&quot;%d&quot;, &amp;b); if(a &gt; b){ printf(&quot;A is bigger than B\n&quot;); } else if(a == b){ printf(&quot;A and B are...
[ { "answer_id": 74511285, "author": "Beyondo", "author_id": 8524922, "author_profile": "https://Stackoverflow.com/users/8524922", "pm_score": 1, "selected": false, "text": "scanf int a; // -2, -1, 0, 1, 2, 3, 4, ...\nint b;\nscanf(\"%d\", &a);\nscanf(\"%d\", &b);\n float a; // -1.0, -0.5,...
2022/11/20
[ "https://Stackoverflow.com/questions/74511007", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20432396/" ]
74,511,050
<p>I have this python practice question which is to return True if a word is an isogram (word with nonrepeating characters). It is also supposed to return True if the isogram is a blank string. My answer didn't work out.</p> <pre><code>from string import ascii_lowercase def is_isogram(iso): for x in iso: re...
[ { "answer_id": 74511984, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 0, "selected": false, "text": "set str.count set def is_isogram(iso):\n return len(set(iso)) == len(iso)\n\nprint(is_isogram('abc'))\nprint(is_...
2022/11/20
[ "https://Stackoverflow.com/questions/74511050", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18821294/" ]
74,511,077
<p>While my CSS works sometimes the specific properties are not executed. This can been seen in the Chrome Console where they have a line thru them, indicating that they are not being applied. I thought the more specific DIV classes would have a higher execution priority than the general Div.</p> <p>In particular, I'...
[ { "answer_id": 74511142, "author": "Ignacio Delgado", "author_id": 9352541, "author_profile": "https://Stackoverflow.com/users/9352541", "pm_score": 3, "selected": true, "text": "p.note { background-color: rgba(88,190,238,0.23); /* purple translucent */\nfont-size: .8rem;\n/* margin: 4 p...
2022/11/20
[ "https://Stackoverflow.com/questions/74511077", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9922157/" ]
74,511,090
<p><code>gregexpr</code> returns a list containing a vector with some additional data:</p> <pre><code>[[1]] [1] 21 136 409 512 587 693 attr(,&quot;match.length&quot;) [1] 3 4 5 5 4 9 </code></pre> <p>How do I extract just one element with a corresponding attribute at once?</p> <pre><code>[[1]] [1] 409 attr(,&quot;matc...
[ { "answer_id": 74511142, "author": "Ignacio Delgado", "author_id": 9352541, "author_profile": "https://Stackoverflow.com/users/9352541", "pm_score": 3, "selected": true, "text": "p.note { background-color: rgba(88,190,238,0.23); /* purple translucent */\nfont-size: .8rem;\n/* margin: 4 p...
2022/11/20
[ "https://Stackoverflow.com/questions/74511090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17720640/" ]
74,511,117
<p>I have a useRef hook and two components. In one component, I increase the value on click by 1 unit, and in the second component, I draw the value. I pass the value itself through useContext.</p> <p>Now the problem is that the value is not being redrawn. How can this be fixed?</p> <p><div class="snippet" data-lang="j...
[ { "answer_id": 74511142, "author": "Ignacio Delgado", "author_id": 9352541, "author_profile": "https://Stackoverflow.com/users/9352541", "pm_score": 3, "selected": true, "text": "p.note { background-color: rgba(88,190,238,0.23); /* purple translucent */\nfont-size: .8rem;\n/* margin: 4 p...
2022/11/20
[ "https://Stackoverflow.com/questions/74511117", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20553149/" ]
74,511,136
<p>I am using Jest to test a react component. I am trying to mock a function from other dependency. The function from dependency should return an array, but it is showing undefined on the console.</p> <p>Below file is the tsx file, when I click the button, it should call the dependency function to get the list of the F...
[ { "answer_id": 74511142, "author": "Ignacio Delgado", "author_id": 9352541, "author_profile": "https://Stackoverflow.com/users/9352541", "pm_score": 3, "selected": true, "text": "p.note { background-color: rgba(88,190,238,0.23); /* purple translucent */\nfont-size: .8rem;\n/* margin: 4 p...
2022/11/20
[ "https://Stackoverflow.com/questions/74511136", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5935705/" ]
74,511,179
<p>I am trying to create a token collection using the Aptos Typescript SDK.</p> <pre><code>const account = new AptosAccount(Uint8Array.from(Buffer.from(PRIVATE_KEY)), ACCOUNT_ADDR); await tokenClient.createCollection( account, &quot;A test collection 1&quot;, &quot;A test collection&quot;, ...
[ { "answer_id": 74517870, "author": "Daniel Porteous", "author_id": 3846032, "author_profile": "https://Stackoverflow.com/users/3846032", "pm_score": 2, "selected": false, "text": "import { AptosAccount, HexString } from \"aptos\";\n\nconst privateKeyHex = \"0xdcaf65ead38f7cf0eb4f81961f8f...
2022/11/20
[ "https://Stackoverflow.com/questions/74511179", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7927410/" ]
74,511,185
<p>I want to fetch data from the nextjs server on the front end, however the code after fetch() doesn't work in the onSubmit() function. here is the <strong>/test</strong> page</p> <p><strong>pages/test</strong></p> <pre><code> const onSubmit = (data) =&gt; { console.log(&quot;________&quot;); users.map(async ...
[ { "answer_id": 74511223, "author": "great_pan", "author_id": 20200173, "author_profile": "https://Stackoverflow.com/users/20200173", "pm_score": 2, "selected": true, "text": "return res res.status(200).send(\"get in server\");\n" }, { "answer_id": 74511225, "author": "Francis...
2022/11/20
[ "https://Stackoverflow.com/questions/74511185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19633029/" ]
74,511,206
<p>I have a csv file with say 500 users details (id, pwd) i want 50 users to login every 2 hours for ex , at morning 8 am 50 users should login, at 10 am 50, 12 pm - 50 users and so on please help in details i am complete newbie</p> <p><a href="https://i.stack.imgur.com/e1uaZ.png" rel="nofollow noreferrer">image</a></p...
[ { "answer_id": 74511223, "author": "great_pan", "author_id": 20200173, "author_profile": "https://Stackoverflow.com/users/20200173", "pm_score": 2, "selected": true, "text": "return res res.status(200).send(\"get in server\");\n" }, { "answer_id": 74511225, "author": "Francis...
2022/11/20
[ "https://Stackoverflow.com/questions/74511206", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20557067/" ]
74,511,207
<p>I am trying to calculate the value of the potentiometer equivalent to the angle, so I need to multiply by 180 and then divide by the range. Upon doing so, I noticed that the number I'm getting is not the number I was expecting so I started debugging by multiplying by 180 only and realized the output was not as predi...
[ { "answer_id": 74511663, "author": "ti7", "author_id": 4541045, "author_profile": "https://Stackoverflow.com/users/4541045", "pm_score": 0, "selected": false, "text": "map() int val = 0; // assign at declaration\n\nvoid loop()\n{\n val = analogRead(POTENTIOMETER_PIN); // read value\n ...
2022/11/20
[ "https://Stackoverflow.com/questions/74511207", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19814257/" ]
74,511,215
<p>I get this exception when mapping record to entity:</p> <pre class="lang-none prettyprint-override"><code>org.jooq.exception.DataTypeException: No Converter found for types java.util.UUID and java.util.List at org.jooq.impl.Tools.converterOrFail(Tools.java:1208) ~[jooq-3.15.0.jar:na] at org.jooq.impl.Tools.converter...
[ { "answer_id": 74511663, "author": "ti7", "author_id": 4541045, "author_profile": "https://Stackoverflow.com/users/4541045", "pm_score": 0, "selected": false, "text": "map() int val = 0; // assign at declaration\n\nvoid loop()\n{\n val = analogRead(POTENTIOMETER_PIN); // read value\n ...
2022/11/20
[ "https://Stackoverflow.com/questions/74511215", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14033074/" ]
74,511,226
<p>i try create star rating in tailwindcss, I only know that I have to use 'peer' and 'group' class</p> <pre><code>&lt;div class=&quot;text-center&quot;&gt; &lt;span class=&quot;flex flex-row-reverse&quot;&gt; &lt;i class='peer'&gt;start icon 1&lt;/i&gt; &lt;i class='peer'&gt;start icon 2&lt;/i&gt; &lt;i ...
[ { "answer_id": 74511663, "author": "ti7", "author_id": 4541045, "author_profile": "https://Stackoverflow.com/users/4541045", "pm_score": 0, "selected": false, "text": "map() int val = 0; // assign at declaration\n\nvoid loop()\n{\n val = analogRead(POTENTIOMETER_PIN); // read value\n ...
2022/11/20
[ "https://Stackoverflow.com/questions/74511226", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20397070/" ]
74,511,246
<p>I’m trying to write a function that tells the user if they are old enough to drink.</p> <p>Whenever I run what I wrote it says there is a syntax error in line 3 where it says “If age&gt; 20: ”. What am I doing wrong:</p> <pre><code>age = int(input(&quot;how old are you?&quot;) if age &gt; 20: print(&quot;You're...
[ { "answer_id": 74511663, "author": "ti7", "author_id": 4541045, "author_profile": "https://Stackoverflow.com/users/4541045", "pm_score": 0, "selected": false, "text": "map() int val = 0; // assign at declaration\n\nvoid loop()\n{\n val = analogRead(POTENTIOMETER_PIN); // read value\n ...
2022/11/20
[ "https://Stackoverflow.com/questions/74511246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20463556/" ]
74,511,287
<p>Wanted to reset back to selected option once user click's reset or cancel certain form step in scenario</p> <pre><code>&lt;button&gt;Reset&lt;/button&gt; &lt;select&gt; &lt;option&gt;1&lt;/option&gt; &lt;option&gt;2&lt;/option&gt; &lt;option&gt;3&lt;/option&gt; &lt;/select&gt; &l...
[ { "answer_id": 74511663, "author": "ti7", "author_id": 4541045, "author_profile": "https://Stackoverflow.com/users/4541045", "pm_score": 0, "selected": false, "text": "map() int val = 0; // assign at declaration\n\nvoid loop()\n{\n val = analogRead(POTENTIOMETER_PIN); // read value\n ...
2022/11/20
[ "https://Stackoverflow.com/questions/74511287", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1575795/" ]
74,511,299
<p>I want that the div panel_pricing-table becomes an flexbox so that all elements in it stay in this box also when i make my window smaller. My problem is that the elements in the flexbox wont shrink, if i make my browser window smaller. The mistake is in CSS but i dont find it. Can you help me pls?</p> <p><a href="ht...
[ { "answer_id": 74511663, "author": "ti7", "author_id": 4541045, "author_profile": "https://Stackoverflow.com/users/4541045", "pm_score": 0, "selected": false, "text": "map() int val = 0; // assign at declaration\n\nvoid loop()\n{\n val = analogRead(POTENTIOMETER_PIN); // read value\n ...
2022/11/20
[ "https://Stackoverflow.com/questions/74511299", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20557099/" ]
74,511,329
<p>I am trying to open a random .sql file off the internet using the following command:</p> <pre><code>psql -h localhost -d database_name -U postgres &lt; file_name.sql </code></pre> <p>But when I run this command I just get errors like the following:</p> <blockquote> <p>invalid command 's</p> </blockquote> <blockquote...
[ { "answer_id": 74511426, "author": "Jonathan Nathanson", "author_id": 4933165, "author_profile": "https://Stackoverflow.com/users/4933165", "pm_score": 2, "selected": false, "text": "youruser@yourmachine:~$ psql -h localhost -d database_name -U postgres < file_name.sql" }, { "ans...
2022/11/20
[ "https://Stackoverflow.com/questions/74511329", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14176855/" ]
74,511,342
<p>So I have a main dataframe 'df' that contains date ranges grouped by categories 'name' and 'values'. Values is a subcategory of name.</p> <p>I have a second dataframe with a list of dates also by category, 'filterdf'. What I need to do is say given data from filterdf$baddates, exclude all dates in gooddates 0 to 2 d...
[ { "answer_id": 74511426, "author": "Jonathan Nathanson", "author_id": 4933165, "author_profile": "https://Stackoverflow.com/users/4933165", "pm_score": 2, "selected": false, "text": "youruser@yourmachine:~$ psql -h localhost -d database_name -U postgres < file_name.sql" }, { "ans...
2022/11/20
[ "https://Stackoverflow.com/questions/74511342", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3348414/" ]
74,511,348
<p>The code below allows me to display a grid with items I pass to as a list of Titem of a generic type. Internally the Grid component creates a collection of rows (Rows) of type GridRow which also hold the generic Item for each row.</p> <p>Index.razor</p> <pre><code>&lt;Grid Items=&quot;Transactions&quot; @ref=&quot;M...
[ { "answer_id": 74511511, "author": "MrC aka Shaun Curtis", "author_id": 13065781, "author_profile": "https://Stackoverflow.com/users/13065781", "pm_score": 1, "selected": false, "text": "Titem Id public interface IWithIntId\n{\n public int Id {get;}\n} \n public class GridRow<TItem> :...
2022/11/20
[ "https://Stackoverflow.com/questions/74511348", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3469841/" ]
74,511,435
<p>I am working on a shopping cart application. I'm facing issue while displaying the user selected products in the cart.component.html, as the data is not rendering. DOM is being created every time but the data is not displaying in the cart.component.html ? can anyone suggest how to solve this problem ?</p> <p>cart.co...
[ { "answer_id": 74511511, "author": "MrC aka Shaun Curtis", "author_id": 13065781, "author_profile": "https://Stackoverflow.com/users/13065781", "pm_score": 1, "selected": false, "text": "Titem Id public interface IWithIntId\n{\n public int Id {get;}\n} \n public class GridRow<TItem> :...
2022/11/20
[ "https://Stackoverflow.com/questions/74511435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20532213/" ]
74,511,438
<p>I'm trying to create a tkinter window in which I have a timer counting down, and a button. Once I press the button, I'd like the timer to continuously count down. The text in the window should count down once every second as well, up until it hits 0:00.</p> <p>So far, I've used this code. I've tried time.sleep() and...
[ { "answer_id": 74511511, "author": "MrC aka Shaun Curtis", "author_id": 13065781, "author_profile": "https://Stackoverflow.com/users/13065781", "pm_score": 1, "selected": false, "text": "Titem Id public interface IWithIntId\n{\n public int Id {get;}\n} \n public class GridRow<TItem> :...
2022/11/20
[ "https://Stackoverflow.com/questions/74511438", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19296266/" ]
74,511,536
<p>I'm trying capture 2 groups of numbers, where each group is optional and should only be captured if contains numbers. Here is a list of all valid combinations that it supposed to match:</p> <ol> <li><code>123(456)</code></li> <li><code>123</code></li> <li><code>(456)</code></li> <li><code>abc(456)</code></li> <li><c...
[ { "answer_id": 74511511, "author": "MrC aka Shaun Curtis", "author_id": 13065781, "author_profile": "https://Stackoverflow.com/users/13065781", "pm_score": 1, "selected": false, "text": "Titem Id public interface IWithIntId\n{\n public int Id {get;}\n} \n public class GridRow<TItem> :...
2022/11/20
[ "https://Stackoverflow.com/questions/74511536", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2930038/" ]
74,511,561
<p>I was trying to search the docs for a method similar but I was only able to find pythons all() and any(). But that's not the same because it just checks if the val is truthy instead of creating your own condition like in js' every and some method. i.e</p> <pre><code>// return true if all vals are greater than 1 cons...
[ { "answer_id": 74511596, "author": "juanpa.arrivillaga", "author_id": 5014455, "author_profile": "https://Stackoverflow.com/users/5014455", "pm_score": 3, "selected": true, "text": "arr1 = [2, 3, 6, 10, 4, 23]\nprint(all(val > 1 for val in arr1))\n\narr2 = [2, 3, 6, 10, 4, 23]\nprint(any...
2022/11/20
[ "https://Stackoverflow.com/questions/74511561", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16693156/" ]
74,511,582
<p>I want to return just some of the data of my lovely printer. (The name always contains <code>STMicroelectronics printer</code></p> <p>I can print out all plugged USB devices with the <code>lsusb</code> command. This will give me (first line obviously being the printer):</p> <pre><code>Bus 001 Device 004: ID 0483:574...
[ { "answer_id": 74511596, "author": "juanpa.arrivillaga", "author_id": 5014455, "author_profile": "https://Stackoverflow.com/users/5014455", "pm_score": 3, "selected": true, "text": "arr1 = [2, 3, 6, 10, 4, 23]\nprint(all(val > 1 for val in arr1))\n\narr2 = [2, 3, 6, 10, 4, 23]\nprint(any...
2022/11/20
[ "https://Stackoverflow.com/questions/74511582", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5436196/" ]
74,511,585
<p>Short version: Hi, how do i open ttf or otf (whichever is easier) in text like manner so i can manually edit/delete vectors for each letter inside the font?</p> <p>Long version: I made font in FontForge (single stroke) for CAD/CAM from SVG files. Its good and looks like single line font as it should until i convert ...
[ { "answer_id": 74511596, "author": "juanpa.arrivillaga", "author_id": 5014455, "author_profile": "https://Stackoverflow.com/users/5014455", "pm_score": 3, "selected": true, "text": "arr1 = [2, 3, 6, 10, 4, 23]\nprint(all(val > 1 for val in arr1))\n\narr2 = [2, 3, 6, 10, 4, 23]\nprint(any...
2022/11/20
[ "https://Stackoverflow.com/questions/74511585", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20557111/" ]
74,511,594
<p>C++ standard allows <code>constexpr volatile</code> variables per <a href="https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4093.html#1688" rel="noreferrer">defect report 1688</a>, which was resolved in September 2013:</p> <blockquote> <p>The combination is intentionally permitted and could be used in some ...
[ { "answer_id": 74512560, "author": "Maciej Polański", "author_id": 19165018, "author_profile": "https://Stackoverflow.com/users/19165018", "pm_score": 4, "selected": false, "text": "volatile" }, { "answer_id": 74512715, "author": "Brian Bi", "author_id": 481267, "auth...
2022/11/20
[ "https://Stackoverflow.com/questions/74511594", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7325599/" ]
74,511,656
<p>I'm working on a text-based Choose Your Own Adventure game in Python for an online class. The game has a list of random &quot;villains&quot; that you may encounter. The original project just has you going to the cave and finding a magical sword that you use to fight the villain. I wanted to set it so that the &quot;...
[ { "answer_id": 74511799, "author": "Claudio", "author_id": 7711283, "author_profile": "https://Stackoverflow.com/users/7711283", "pm_score": 1, "selected": false, "text": "if {creature} == \"wicked fairy\" or \"gorgon\" or \"troll\" or \"dragon\":\n or if creature in [\"wicked fairy\", \...
2022/11/20
[ "https://Stackoverflow.com/questions/74511656", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20557363/" ]
74,511,666
<p>I have the following from a MIME message;</p> <pre><code>--------------ra650umTsDNeI5lwXmFy5luF Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 TG9yZW0gSXBzdW0NCg0KSGVyZSBpcyBzb21lIG1vcmUgdGV4dA0KDQpOb3cgb24gYSAzcmQg bGluZQ0KDQoNClRoYW5rcw0KDQo= --------------ra650umTsDNeI5...
[ { "answer_id": 74511736, "author": "Beyondo", "author_id": 8524922, "author_profile": "https://Stackoverflow.com/users/8524922", "pm_score": 1, "selected": false, "text": "var base64Regex = /Content-Transfer-Encoding: base64([\\s\\S]*?)\\s*?--/g;\n Content-Transfer-Encoding: base64 [\\s\...
2022/11/20
[ "https://Stackoverflow.com/questions/74511666", "https://Stackoverflow.com", "https://Stackoverflow.com/users/229072/" ]
74,511,705
<p>I am currently working with the <a href="https://pokeapi.co/" rel="nofollow noreferrer">PokeAPI</a>, I am doing fetch requests to recieve back the JSON at a given endpoint, then trying to parse and return it. The function for doing this can be found here:</p> <pre class="lang-js prettyprint-override"><code>function ...
[ { "answer_id": 74511706, "author": "Kieran Wood", "author_id": 11602400, "author_profile": "https://Stackoverflow.com/users/11602400", "pm_score": 0, "selected": false, "text": ".then() async function getPokemon(id){\n \n pokemonData = {\n name:\"\",\n image:\"\",\n ...
2022/11/20
[ "https://Stackoverflow.com/questions/74511705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11602400/" ]
74,511,731
<p>How can be converted integers from string in C?</p> <p>What is the easiest way? I need programm function like:</p> <pre><code>fraction create_fraction_from_string(char *str) </code></pre> <p>Where I will in the main file call function like:</p> <pre><code>fraction create_fraction_from_string(&quot;-12/4&quot;) </co...
[ { "answer_id": 74515966, "author": "David C. Rankin", "author_id": 3422102, "author_profile": "https://Stackoverflow.com/users/3422102", "pm_score": 1, "selected": true, "text": "fgets() EOF sscanf() create_fraction_from_string() bool true/false int 0/1 fraction main() create_fraction_fr...
2022/11/20
[ "https://Stackoverflow.com/questions/74511731", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18905898/" ]
74,511,732
<p>i have the following code in a footer of a web app. i would like to know how could i add an image instead of text. thanks here is my code `</p> <pre><code>&lt;footer id=&quot;page-footer&quot; class=&quot;bg-body-light border-top&quot;&gt; &lt;div class=&quot;content py-0&quot;&gt; ...
[ { "answer_id": 74511830, "author": "Abdulkhaliq Ghwainm", "author_id": 4879561, "author_profile": "https://Stackoverflow.com/users/4879561", "pm_score": 1, "selected": false, "text": "<img> <img> src alt <img src=\"img_girl.jpg\" alt=\"Girl in a jacket\" width=\"500\" height=\"600\">\n" ...
2022/11/20
[ "https://Stackoverflow.com/questions/74511732", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20557381/" ]
74,511,760
<p>I'm using the official Airflow Helm to try out the new LocalKubernetesExecutor feature. However, I also wanted the following:</p> <ol> <li>allow helm to bring up the postgresql container</li> <li>change the credentials, username and database for that container.</li> </ol> <p>I don't really know how to do this. I tri...
[ { "answer_id": 74511830, "author": "Abdulkhaliq Ghwainm", "author_id": 4879561, "author_profile": "https://Stackoverflow.com/users/4879561", "pm_score": 1, "selected": false, "text": "<img> <img> src alt <img src=\"img_girl.jpg\" alt=\"Girl in a jacket\" width=\"500\" height=\"600\">\n" ...
2022/11/20
[ "https://Stackoverflow.com/questions/74511760", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1835567/" ]
74,511,761
<p>I try to use polarproxy on a linux station (I try also with Charles proxy and one I develop myself) to intercept SSL traffic from browser and application from an rooted android (version 8). On the phone I use Drony to define the IP of the proxy and the protocol (SOCKS 5). I have copied the certificate of the proxy i...
[ { "answer_id": 74511830, "author": "Abdulkhaliq Ghwainm", "author_id": 4879561, "author_profile": "https://Stackoverflow.com/users/4879561", "pm_score": 1, "selected": false, "text": "<img> <img> src alt <img src=\"img_girl.jpg\" alt=\"Girl in a jacket\" width=\"500\" height=\"600\">\n" ...
2022/11/20
[ "https://Stackoverflow.com/questions/74511761", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9122776/" ]
74,511,786
<p>I have an image (blue rect). I want to cut a part of the image by path (red triangle) and create a smaller widget (green rect) that shows this part of the image and has size which equals bounds of cutting path. How can I do it in Flutter?</p> <p><a href="https://i.stack.imgur.com/fkbIR.png" rel="nofollow noreferrer"...
[ { "answer_id": 74511830, "author": "Abdulkhaliq Ghwainm", "author_id": 4879561, "author_profile": "https://Stackoverflow.com/users/4879561", "pm_score": 1, "selected": false, "text": "<img> <img> src alt <img src=\"img_girl.jpg\" alt=\"Girl in a jacket\" width=\"500\" height=\"600\">\n" ...
2022/11/20
[ "https://Stackoverflow.com/questions/74511786", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2587661/" ]
74,511,805
<p>i have system of log that write logs each day with this format: &quot;stat.dat_20220901_235900.txt&quot;,&quot;stat.dat_20220902_235900.txt&quot;,... i need to get content of all files by month and create file named like &quot;September&quot; with all content of daily.</p> <pre><code>$Date= -Format(&quot;MMddyyyy_hh...
[ { "answer_id": 74511830, "author": "Abdulkhaliq Ghwainm", "author_id": 4879561, "author_profile": "https://Stackoverflow.com/users/4879561", "pm_score": 1, "selected": false, "text": "<img> <img> src alt <img src=\"img_girl.jpg\" alt=\"Girl in a jacket\" width=\"500\" height=\"600\">\n" ...
2022/11/20
[ "https://Stackoverflow.com/questions/74511805", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4082943/" ]
74,511,807
<p>I have a list with an Image and Text in a Row. Both are in an <code>Expanded</code> widget to get the same width.</p> <pre><code> Widget item(String value, String imageLocation) =&gt; Row(children: [ Expanded( child: Image.asset( 'assets/images/$imageLocation.png', )), Expanded( chil...
[ { "answer_id": 74511830, "author": "Abdulkhaliq Ghwainm", "author_id": 4879561, "author_profile": "https://Stackoverflow.com/users/4879561", "pm_score": 1, "selected": false, "text": "<img> <img> src alt <img src=\"img_girl.jpg\" alt=\"Girl in a jacket\" width=\"500\" height=\"600\">\n" ...
2022/11/20
[ "https://Stackoverflow.com/questions/74511807", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1568148/" ]
74,511,812
<p>I have this piece element, which represents a coin in my connect four game, however, I want to change the background color of the coin using inline styling in JS. Is it possible to convert the CSS format to inline js styling? I have tried using getAttribute but don't think I am using right. Any suggestions would be ...
[ { "answer_id": 74511830, "author": "Abdulkhaliq Ghwainm", "author_id": 4879561, "author_profile": "https://Stackoverflow.com/users/4879561", "pm_score": 1, "selected": false, "text": "<img> <img> src alt <img src=\"img_girl.jpg\" alt=\"Girl in a jacket\" width=\"500\" height=\"600\">\n" ...
2022/11/20
[ "https://Stackoverflow.com/questions/74511812", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20435142/" ]
74,511,824
<p>This is a small part of a df.</p> <p>In this case, I have 3 y-values I need to map: <code>0.933883</code>, <code>97.658330</code> and <code>1.650013</code></p> <p>I have this <code>df</code></p> <pre><code> x y1 y2 y3 y4 d1 d2 d3 d4 23 5.3 NaN NaN 0.933883 N...
[ { "answer_id": 74512239, "author": "Bushmaster", "author_id": 15415267, "author_profile": "https://Stackoverflow.com/users/15415267", "pm_score": 1, "selected": false, "text": "vals=sorted(list(df[['y3','y4']].stack()))\ndupes = list(set(vals[::2]) & set(vals[1::2])) #https://stackoverfl...
2022/11/20
[ "https://Stackoverflow.com/questions/74511824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20458338/" ]
74,511,839
<p>I keep getting this E404 error in my shell when trying to create a react app. I may have deleted important files from my computer like an absolute noob. A possible solution I tried was using <code>npm set registry https://registry.npmjs.org</code> but this didn't help. I've been searching for ways to resolve this is...
[ { "answer_id": 74512239, "author": "Bushmaster", "author_id": 15415267, "author_profile": "https://Stackoverflow.com/users/15415267", "pm_score": 1, "selected": false, "text": "vals=sorted(list(df[['y3','y4']].stack()))\ndupes = list(set(vals[::2]) & set(vals[1::2])) #https://stackoverfl...
2022/11/20
[ "https://Stackoverflow.com/questions/74511839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19316102/" ]
74,511,853
<p>I am working with some open data through Deep Note with the pandas library and since it is in Spanish there are accents and characters like 'ñ' in the DataFrame</p> <p>Searching I have been able to solve part of the problem by putting 'encoding'. The problem is when I publish the page that they appear as strange sig...
[ { "answer_id": 74512239, "author": "Bushmaster", "author_id": 15415267, "author_profile": "https://Stackoverflow.com/users/15415267", "pm_score": 1, "selected": false, "text": "vals=sorted(list(df[['y3','y4']].stack()))\ndupes = list(set(vals[::2]) & set(vals[1::2])) #https://stackoverfl...
2022/11/20
[ "https://Stackoverflow.com/questions/74511853", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20557452/" ]
74,511,880
<p>I'm trying to assign a (char*)0 pointer to a string in C, but it doesn't work... Here is my code: `</p> <pre><code>char* token = strtok(command, &quot; &quot;); int counter = 0; while (token) { if(counter == 0){ strcpy(req.command, token); } ...
[ { "answer_id": 74511926, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 2, "selected": false, "text": "char *const arguments[LENGTH];\n const char * arguments[LENGTH];\n strcpy(req.arguments[counter], token);\n...
2022/11/20
[ "https://Stackoverflow.com/questions/74511880", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15095487/" ]
74,511,901
<p>I am currently working on some research of online forums. I have a database with thousands of posts and want to create a binary variable on the specific post (which is an observation in my dataset) when a certain word is mentioned.</p> <p>I want to see when posters talk about being lonely, so I have come up with the...
[ { "answer_id": 74511945, "author": "FactOREO", "author_id": 20462305, "author_profile": "https://Stackoverflow.com/users/20462305", "pm_score": 1, "selected": false, "text": "ignore_case ifelse() dplyr stringr Data <- data.frame(text = c('I am lonely','I am happy'))\nlibrary(tidyverse)\n...
2022/11/20
[ "https://Stackoverflow.com/questions/74511901", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19331857/" ]
74,511,906
<p>I have a csv data of a test scores. The current program is able to read this data into a 2D list with the test out of marks. I later created a function to remove test out of row so only the student's marks can be displayed. I'm now struggling to write a function which can print the scores so that each student's perc...
[ { "answer_id": 74511945, "author": "FactOREO", "author_id": 20462305, "author_profile": "https://Stackoverflow.com/users/20462305", "pm_score": 1, "selected": false, "text": "ignore_case ifelse() dplyr stringr Data <- data.frame(text = c('I am lonely','I am happy'))\nlibrary(tidyverse)\n...
2022/11/20
[ "https://Stackoverflow.com/questions/74511906", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4174508/" ]
74,511,914
<p>I have two components: <code>&lt;Header/&gt;</code> with hamburger button on it, and <code>&lt;Sidebar/&gt;</code>.</p> <p>The idea is: if I click hamburger button the sidebar should be removed, or it should be appeared if I click back.</p> <p>I have no issues to do so in one component where I use useRef:</p> <pre><...
[ { "answer_id": 74512064, "author": "Andrew Hartnell", "author_id": 7202344, "author_profile": "https://Stackoverflow.com/users/7202344", "pm_score": -1, "selected": false, "text": " //App.js\n let sideBarRef = useRef(false); \n\n let content = (\n {sideBarRef? (<SideBar s...
2022/11/20
[ "https://Stackoverflow.com/questions/74511914", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4655668/" ]
74,511,943
<p>I am getting confused on the PriorityQueue, not sure if there is a different method for my use case.</p> <p>Instead of comparing two Strings, I want to compare the incoming Strings against a String[].</p> <p>It somewhat works but the head node does not move.</p> <p>Main:</p> <pre><code>public class App { public...
[ { "answer_id": 74512064, "author": "Andrew Hartnell", "author_id": 7202344, "author_profile": "https://Stackoverflow.com/users/7202344", "pm_score": -1, "selected": false, "text": " //App.js\n let sideBarRef = useRef(false); \n\n let content = (\n {sideBarRef? (<SideBar s...
2022/11/20
[ "https://Stackoverflow.com/questions/74511943", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7391720/" ]