qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,637,707 | <p>The problem is the drop-down behavior (here's the <a href="https://codepen.io/alexakarpov/pen/OJEoYOM" rel="nofollow noreferrer">codepen</a> to the problematic html, the original layout was taken from <a href="https://github.com/veryacademy/django-ecommerce-project/blob/main/Part-10%20Pytest%20Testing%201/templates/... | [
{
"answer_id": 74638101,
"author": "Delowar Hossen",
"author_id": 6602096,
"author_profile": "https://Stackoverflow.com/users/6602096",
"pm_score": 2,
"selected": true,
"text": "body .navbar-expand-md .navbar-nav .dropdown-menu {\n top: 30px !important;\n}\n"
},
{
"answer_id":... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/809584/"
] |
74,637,713 | <p>As my project is expo ejected react native project and I'm getting the error [native] Could not find image on path</p>
<p><strong>'file:///var/mobile/Containers/Data/Application/..../Library/Application%20Support/.expo-internal/assets/...'</strong></p>
<p><code> "react": "17.0.1", "react-n... | [
{
"answer_id": 74638101,
"author": "Delowar Hossen",
"author_id": 6602096,
"author_profile": "https://Stackoverflow.com/users/6602096",
"pm_score": 2,
"selected": true,
"text": "body .navbar-expand-md .navbar-nav .dropdown-menu {\n top: 30px !important;\n}\n"
},
{
"answer_id":... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18028026/"
] |
74,637,737 | <p>I want to make multiple texts with multiple colors like red, green, yellow something like that now it is working for only one color I need each text in a different color please help me
here is the code
<a href="https://codesandbox.io/s/quizzical-fire-qhu3hd?file=/src/App.js" rel="nofollow noreferrer">https://codesan... | [
{
"answer_id": 74638280,
"author": "Tejashree Surve",
"author_id": 15197074,
"author_profile": "https://Stackoverflow.com/users/15197074",
"pm_score": 1,
"selected": false,
"text": " const highlightText = (text, textToMatch) => {\n const matchRegex = RegExp(textToMatch.join(\"... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9994689/"
] |
74,637,747 | <p>How can I reduce the number of bits from 24 bits to a number between 0 and 8 bits and distribute the bits for the three colors Red, Green and Blue</p>
<p>Any idea ?</p>
| [
{
"answer_id": 74638280,
"author": "Tejashree Surve",
"author_id": 15197074,
"author_profile": "https://Stackoverflow.com/users/15197074",
"pm_score": 1,
"selected": false,
"text": " const highlightText = (text, textToMatch) => {\n const matchRegex = RegExp(textToMatch.join(\"... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16480714/"
] |
74,637,828 | <p>I am not able to run java in vs code [my code]</p>
<pre><code>public class hello {
public static void main(String args[]) {
System.out.print("Hello World")
}
}
</code></pre>
<p>. I don't even have an option of run code in terminal in my settings..It is not showing any error or anything too... | [
{
"answer_id": 74638280,
"author": "Tejashree Surve",
"author_id": 15197074,
"author_profile": "https://Stackoverflow.com/users/15197074",
"pm_score": 1,
"selected": false,
"text": " const highlightText = (text, textToMatch) => {\n const matchRegex = RegExp(textToMatch.join(\"... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20653060/"
] |
74,637,830 | <p>Problem Statement:
<a href="https://i.stack.imgur.com/fahQR.png" rel="nofollow noreferrer">In shown image, default profile pic is visible but i need uploaded photo to be displayed here when i upload and saved in the database.I am using django framework. </a></p>
<p>What have I Tried here?</p>
<p>In setting.html file... | [
{
"answer_id": 74637888,
"author": "Manoj Tolagekar",
"author_id": 17808039,
"author_profile": "https://Stackoverflow.com/users/17808039",
"pm_score": 0,
"selected": false,
"text": "<img width = \"100\" height = \"100\" src=\"/media/{{user_profile.profileimg}}\"/>\n upload_to='profile_im... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637830",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20652967/"
] |
74,637,834 | <p>I am trying to install <code>zipline-reloaded</code> using <code>conda</code> but am encountering a <code>PackagesNotFoundError</code>—this despite running the install command for <code>zipline-reloaded</code> provided on the <a href="https://anaconda.org/ml4t/zipline-reloaded" rel="nofollow noreferrer">package's pa... | [
{
"answer_id": 74638800,
"author": "Will Holtz",
"author_id": 16596758,
"author_profile": "https://Stackoverflow.com/users/16596758",
"pm_score": 1,
"selected": false,
"text": "platform : osx-arm64 conda info osx-arm64"
},
{
"answer_id": 74650754,
"author": "sonny",
"auth... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1933486/"
] |
74,637,867 | <p>I'm trying to better understand how Python flow control works. Accordingly, I wrote a little script to understand how to make functional menus that include the ability to enter and leave sub-menus. The code below works as expected (no errors, it prints the expected output, etc). But when I enter option 4 "Exi... | [
{
"answer_id": 74638800,
"author": "Will Holtz",
"author_id": 16596758,
"author_profile": "https://Stackoverflow.com/users/16596758",
"pm_score": 1,
"selected": false,
"text": "platform : osx-arm64 conda info osx-arm64"
},
{
"answer_id": 74650754,
"author": "sonny",
"auth... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20653143/"
] |
74,637,896 | <p>This is My Route</p>
<pre><code>Route::namespace("Core\Controller\Site")
->prefix("/")
->name("site.")
->group(function () {
Route::get("{slug}", "NewsController@index")->name("news.index");
Route::get("... | [
{
"answer_id": 74637984,
"author": "Ruslan Nasrutdinov",
"author_id": 5599711,
"author_profile": "https://Stackoverflow.com/users/5599711",
"pm_score": 3,
"selected": true,
"text": "(show/{slug} and {slug})"
},
{
"answer_id": 74638008,
"author": "Bhargav Chudasama",
"aut... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15826225/"
] |
74,637,918 | <p>i have data string</p>
<pre><code>generate-image-scanID-60
generate-image-scanID-4
</code></pre>
<p>how to retrieve last digit with separator - ? in javascript</p>
<p>ouput :</p>
<ul>
<li>60</li>
<li>4</li>
</ul>
<p>thanks</p>
| [
{
"answer_id": 74637929,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 2,
"selected": true,
"text": "String.split() Array.at() let datas =['generate-image-scanID-60','generate-image-scanID-4']\nconst getData = v => v... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19550757/"
] |
74,637,964 | <p>I have this dice game made in python for class, I am using functions for the scoring logic (which I believe is all working as desired). I have put these functions in a while loop so that when either player reaches 100 banked score the game ends. However, I cannot get this to work as intended.</p>
<pre><code>while in... | [
{
"answer_id": 74637929,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 2,
"selected": true,
"text": "String.split() Array.at() let datas =['generate-image-scanID-60','generate-image-scanID-4']\nconst getData = v => v... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19147712/"
] |
74,637,992 | <p>i want to make function to make from <code>1111 into 1 and 0000 into 0</code>.</p>
<p>for the example:</p>
<pre><code>Input:
['1111', '1111', '0000', '1111', '1111', '0000', '1111', '0000', '0000', '1111', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '1111', '0000', '0000', '1111', '1111', '0000', '0000',... | [
{
"answer_id": 74638039,
"author": "Abhinav Mathur",
"author_id": 9350720,
"author_profile": "https://Stackoverflow.com/users/9350720",
"pm_score": 2,
"selected": false,
"text": "join() lst = ['1111', '1111', '0000', '1111', '1111', '0000', '1111', '0000', '0000', '1111', '0000', '0000',... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74637992",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20653332/"
] |
74,638,031 | <pre><code>1 2
4 3
5 6
8 7
9 10
</code></pre>
<p>I want to print this pattern but don't know how to use swap with one value k</p>
<p>me trying this --</p>
<pre><code>cin >> n;
while (i <= n) {
int j = 1;
while (j <= 2) {
if (k % 2 == 0 || k == 1) {
cout << k;
}
... | [
{
"answer_id": 74638149,
"author": "john",
"author_id": 882003,
"author_profile": "https://Stackoverflow.com/users/882003",
"pm_score": 1,
"selected": false,
"text": "#include <iostream>\n\nbool is_odd(int n)\n{\n return n%2;\n}\n\nint main()\n{\n int n;\n std::cin >> n; // assu... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16984696/"
] |
74,638,052 | <p>In order to select address from Japan, what open next level when i checked on above level (eg: open cities if I check on prefecture, open area if I check on city). I found the <a href="https://vuetifyjs.com/en/components/treeview/#search-and-filter" rel="nofollow noreferrer">v-treeview component</a>, which can displ... | [
{
"answer_id": 74638149,
"author": "john",
"author_id": 882003,
"author_profile": "https://Stackoverflow.com/users/882003",
"pm_score": 1,
"selected": false,
"text": "#include <iostream>\n\nbool is_odd(int n)\n{\n return n%2;\n}\n\nint main()\n{\n int n;\n std::cin >> n; // assu... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11123483/"
] |
74,638,078 | <pre><code>[
{
"_id": "",
"at": IsoDate(2022-11-19 10:00:00),
"areaId": 3,
"data": [
{
"label": 1,
"name": "a",
"sec": 34,
"x": 10.3,
"y": 23.3
... | [
{
"answer_id": 74638149,
"author": "john",
"author_id": 882003,
"author_profile": "https://Stackoverflow.com/users/882003",
"pm_score": 1,
"selected": false,
"text": "#include <iostream>\n\nbool is_odd(int n)\n{\n return n%2;\n}\n\nint main()\n{\n int n;\n std::cin >> n; // assu... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10122164/"
] |
74,638,079 | <p>I have a python string that consists of "0", "1" and "x". I would to know what is the bit location of x in the string. eg. string1= '0100xx11xxx0x1' and the output is [(4,5),(8,10),(12)]. x appears in bit locations 4 to 5, locations 8 to 10, and location 12. The following scripts are wr... | [
{
"answer_id": 74638155,
"author": "The Myth",
"author_id": 15042008,
"author_profile": "https://Stackoverflow.com/users/15042008",
"pm_score": 1,
"selected": false,
"text": "regex import re\nstring1= '0100xx11xxx0x1'\nmatches = []\nfor match in re.finditer(r'x+',string1): # iterates ove... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638079",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9960443/"
] |
74,638,117 | <p>I want to convert HTML to PDF with the click of a button and download.
My js working perfectly only need the latest JavaScript CDN link.</p>
<p><strong>HTML</strong></p>
<pre><code><div id="pageprint">
<div id="reportbox">Hello World!!</div>
</div>
<button type=&quo... | [
{
"answer_id": 74638155,
"author": "The Myth",
"author_id": 15042008,
"author_profile": "https://Stackoverflow.com/users/15042008",
"pm_score": 1,
"selected": false,
"text": "regex import re\nstring1= '0100xx11xxx0x1'\nmatches = []\nfor match in re.finditer(r'x+',string1): # iterates ove... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17263333/"
] |
74,638,121 | <p>After I set the <code>setIsRunning(false)</code> in the else statement, it is supposed to go out <code>console.log('final call')</code>. but it keeps calling console.log('running'). anyone know what I am doing wrong here and how this can be fixed</p>
<pre><code> const [val, setval] = useState(0)
const [isRunning,... | [
{
"answer_id": 74638229,
"author": "Azzy",
"author_id": 2122822,
"author_profile": "https://Stackoverflow.com/users/2122822",
"pm_score": 0,
"selected": false,
"text": " const [val, setval] = useState(0)\n // const [isRunning, setIsRunning] = useState(true)\n // use useRef if you dont... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9208673/"
] |
74,638,196 | <p>Please refer to my code and Screen Shot below</p>
<p>Top two rows are build based on <code>MainAxisAlignment.spaceBetween</code> widget and a bottom row is on <code>MainAxisAlignment.spaceBetween</code>, respectively.</p>
<p>As you can see in Screen Shot,<code>MainAxisAlignment.spaceBetween</code> have no spaces lik... | [
{
"answer_id": 74638608,
"author": "Ahmed Saeed",
"author_id": 20607918,
"author_profile": "https://Stackoverflow.com/users/20607918",
"pm_score": 1,
"selected": false,
"text": "GridView.builder(\n shrinkWrap: true,\n physics: NeverScrollableScrollPhysics(),\n gridDelegate: cons... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6843543/"
] |
74,638,199 | <p>For some reason, I can't figure out, why when I run a <code>ggplot</code> loop to create multiple graphs I don't see them in the environment and hence can't further display the graphs.
Data sample.</p>
<pre><code>db = data.frame(exposure = sample(1:100, 100),
exposure2 = sample(-90:100,100),
... | [
{
"answer_id": 74638318,
"author": "Nomad420",
"author_id": 12820897,
"author_profile": "https://Stackoverflow.com/users/12820897",
"pm_score": 0,
"selected": false,
"text": "graphname db = data.frame(exposure = sample(1:100, 100),\n exposure2 = sample(-90:100,100),\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638199",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18880691/"
] |
74,638,211 | <p>I have a dataset which has empty cells, and also cells which contain only spaces (one or more). I want to convert all these cells into Null.</p>
<p>Sample dataset:</p>
<pre><code>data = [("", "CA", " "), ("Julia", "", None),("Robert", " ", None),... | [
{
"answer_id": 74638318,
"author": "Nomad420",
"author_id": 12820897,
"author_profile": "https://Stackoverflow.com/users/12820897",
"pm_score": 0,
"selected": false,
"text": "graphname db = data.frame(exposure = sample(1:100, 100),\n exposure2 = sample(-90:100,100),\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9668218/"
] |
74,638,216 | <p>I have looked quite some time into output from angular, but everywhere I only find a way to emit events. In my case, I have a parent with a router inside, and I wish to change the title based on a value from the child. So when I load route 1 I was thinking to emit a string via ngOnInit, but this doesn't work. I get ... | [
{
"answer_id": 74638292,
"author": "Eli Porush",
"author_id": 14598976,
"author_profile": "https://Stackoverflow.com/users/14598976",
"pm_score": 0,
"selected": false,
"text": "behaviorSubject"
},
{
"answer_id": 74639468,
"author": "Antonio Vida",
"author_id": 3713193,
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638216",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19358592/"
] |
74,638,257 | <p>I have a problem to compare two 2D arrays in javascript.
It should output "true" if the two 2D arrays are the same.</p>
<p>The code I tried:</p>
<p>`</p>
<pre><code>function check(){
if (data.every() === solution.every()){
alert("example");
} else {
console.log("D... | [
{
"answer_id": 74638361,
"author": "Dani Pardo",
"author_id": 12197845,
"author_profile": "https://Stackoverflow.com/users/12197845",
"pm_score": -1,
"selected": false,
"text": "function check(){\n \n if ( JSON.stringify(data) === JSON.stringify(solution) ){\n alert(\"example... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638257",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19928474/"
] |
74,638,267 | <p>Is there anyway i can find the position of object by its key in Json file. I tried with the collection module but seems not to work with data from the json file even though its dictionary</p>
<pre><code>reda.json file
[{"carl": "33"}, {"break": "55"}, {"user": "... | [
{
"answer_id": 74638347,
"author": "blhsing",
"author_id": 6890912,
"author_profile": "https://Stackoverflow.com/users/6890912",
"pm_score": 3,
"selected": true,
"text": "enumerate json_data = [{\"carl\": \"33\"}, {\"break\": \"55\"}, {\"user\": \"heake\"}]\nkey = 'break'\nfor index, rec... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19883274/"
] |
74,638,321 | <p>I am developing my first Shopware 6 plugin and was wondering how to access snippets in the <code>Plugin</code> <code>class</code>. I checked the <a href="https://developer.shopware.com/docs/guides/plugins/plugins/storefront/add-translations" rel="nofollow noreferrer">Developer Guide</a> but could not make it work.<b... | [
{
"answer_id": 74640517,
"author": "dneustadt",
"author_id": 8556259,
"author_profile": "https://Stackoverflow.com/users/8556259",
"pm_score": 0,
"selected": false,
"text": "'config' => [\n 'label' => ['en-GB' => 'Label english', 'de-DE' => 'Label german'],\n 'type' => CustomFieldT... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7390885/"
] |
74,638,334 | <p>I am trying to build the app after testing it and this error occurs</p>
<p><a href="https://i.stack.imgur.com/zt30E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zt30E.png" alt="enter image description here" /></a></p>
<p>I tried multiple methods shown in stack and other documentations but I am ... | [
{
"answer_id": 74640517,
"author": "dneustadt",
"author_id": 8556259,
"author_profile": "https://Stackoverflow.com/users/8556259",
"pm_score": 0,
"selected": false,
"text": "'config' => [\n 'label' => ['en-GB' => 'Label english', 'de-DE' => 'Label german'],\n 'type' => CustomFieldT... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19043035/"
] |
74,638,392 | <p>Actually i am sending a Form Data Which contains input text and input Files I am doing it like This but i am getting an empty object in response</p>
<p>Here is my Code</p>
<pre><code> const [ModelInfo,setModelInfo] = useState({
title:"",
description:"",
catego... | [
{
"answer_id": 74640517,
"author": "dneustadt",
"author_id": 8556259,
"author_profile": "https://Stackoverflow.com/users/8556259",
"pm_score": 0,
"selected": false,
"text": "'config' => [\n 'label' => ['en-GB' => 'Label english', 'de-DE' => 'Label german'],\n 'type' => CustomFieldT... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638392",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18259879/"
] |
74,638,417 | <p>I have an array that has a list of 15 different country names. I have to create a function that finds the largest name and returns its index, and if there are more then one that have a maximum length equivalent to each other it only has to return 1 of the indexes to the names. (Example below).</p>
<p>I'll admit and ... | [
{
"answer_id": 74638736,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 2,
"selected": false,
"text": "#include <stdio.h>\n#include <string.h>\n\nint longest(const char **s, size_t n)\n{\n size_t maxlen = 0;\n int maxpos =... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638417",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20653586/"
] |
74,638,479 | <p>Suppose that I have this architecture for my classes:</p>
<pre><code># abstracts.py
import abc
class AbstractReader(metaclass=abc.ABCMeta):
@classmethod
def get_reader_name(cl):
return cls._READER_NAME
@classmethod
@property
@abc.abstractmethod
def _READER_NAME(cls):
raise... | [
{
"answer_id": 74638736,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 2,
"selected": false,
"text": "#include <stdio.h>\n#include <string.h>\n\nint longest(const char **s, size_t n)\n{\n size_t maxlen = 0;\n int maxpos =... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11274362/"
] |
74,638,498 | <p>I have big model, that aggragates data for buisness entity.</p>
<pre><code>class BigObject
{
TypeA DataA { get;set; }
TypeB DataB { get;set; }
TypeC DataC { get;set; }
}
</code></pre>
<p>and have service, which fill fields of model from differents sources. Some data depends from another ... | [
{
"answer_id": 74653519,
"author": "Peter Csala",
"author_id": 13268855,
"author_profile": "https://Stackoverflow.com/users/13268855",
"pm_score": 2,
"selected": false,
"text": "TypeA TypeB TypeC int? BigObject class BigObjectCommand\n{\n private readonly Func<BigObjectFilter, bool> c... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6721495/"
] |
74,638,506 | <p>I'm trying to set Content-Type as <strong>"application/x.example.hr.employee.email+json;version=1"</strong> of an HttpClient request as required by the API I am calling. The API is of type <strong>GET</strong> and accepts a <strong>JSON body</strong> (containing list of emails).</p>
<p>I'm successfully abl... | [
{
"answer_id": 74653519,
"author": "Peter Csala",
"author_id": 13268855,
"author_profile": "https://Stackoverflow.com/users/13268855",
"pm_score": 2,
"selected": false,
"text": "TypeA TypeB TypeC int? BigObject class BigObjectCommand\n{\n private readonly Func<BigObjectFilter, bool> c... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6748156/"
] |
74,638,521 | <p>how do I achieve this in Python? Source file is a CSV file, and value of one column in that file is converted from numeric to day and month. Thank you very much in advance.</p>
<p>Example below:</p>
<p>Picture of the column:
<a href="https://i.stack.imgur.com/CPFSf.png" rel="nofollow noreferrer">room column</a></p>
... | [
{
"answer_id": 74638692,
"author": "Diego Torres Milano",
"author_id": 236465,
"author_profile": "https://Stackoverflow.com/users/236465",
"pm_score": 1,
"selected": false,
"text": "import datetime\n# datetime.datetime(1900, 2, 1, 0, 0)\nd = datetime.datetime.strptime(\"1-Feb\", \"%d-%b\... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20610995/"
] |
74,638,546 | <pre><code>/**
* init array: [1, 2]
* Expect
* array per 1s: [1, 2, 3]
* array per 2s: [1, 2, 3, 4]
* array per (n)s: [1, 2, 3, 4, ..., n]
*/
const [countList, setCountList] = useState([]);
const counter = useRef(0);
useEffect(() => {
const interval = setInterval(() => {
counter.... | [
{
"answer_id": 74638692,
"author": "Diego Torres Milano",
"author_id": 236465,
"author_profile": "https://Stackoverflow.com/users/236465",
"pm_score": 1,
"selected": false,
"text": "import datetime\n# datetime.datetime(1900, 2, 1, 0, 0)\nd = datetime.datetime.strptime(\"1-Feb\", \"%d-%b\... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6736894/"
] |
74,638,557 | <pre class="lang-cs prettyprint-override"><code>public class PlayerMove : MonoBehaviour
{
public float speed;
private float yVelocity;
public CharacterController player;
public float jumpHeight =10.0f;
public float gravity = 1.0f;
//public float gravityScale = 1;
private void Start()
{
... | [
{
"answer_id": 74638692,
"author": "Diego Torres Milano",
"author_id": 236465,
"author_profile": "https://Stackoverflow.com/users/236465",
"pm_score": 1,
"selected": false,
"text": "import datetime\n# datetime.datetime(1900, 2, 1, 0, 0)\nd = datetime.datetime.strptime(\"1-Feb\", \"%d-%b\... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20653796/"
] |
74,638,580 | <p>I'm trying to replace missing age values in one wave by adding 1 to the value from the previous wave. So, for instance:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">ID</th>
<th style="text-align: center;">Age</th>
<th style="text-align: right;">Wave</th>
</tr... | [
{
"answer_id": 74638660,
"author": "Tom Hoel",
"author_id": 17213355,
"author_profile": "https://Stackoverflow.com/users/17213355",
"pm_score": 1,
"selected": false,
"text": "library(tidyverse)\n\ndf %>% \n mutate(Age = case_when(is.na(Age) ~ lag(Age) + 1, \n TRU... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638580",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20188476/"
] |
74,638,591 | <p>I use the following function for the connection with the Snowflake. For SQL injection prevention I use <code>paramstyle = "numeric"</code>.</p>
<pre><code>import snowflake.connector
def get_snowflake_connector(
user: str,
password: str,
account: str,
warehouse: str,
role: str,
):
... | [
{
"answer_id": 74638660,
"author": "Tom Hoel",
"author_id": 17213355,
"author_profile": "https://Stackoverflow.com/users/17213355",
"pm_score": 1,
"selected": false,
"text": "library(tidyverse)\n\ndf %>% \n mutate(Age = case_when(is.na(Age) ~ lag(Age) + 1, \n TRU... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10631916/"
] |
74,638,627 | <pre><code>def my_function(df_1) :
df_1 = df_1.filter[['col_1','col_2','col_3']]
# Keeping only those records where col_1 == 'success'
df_1 = df_1[df_1['col_1'] == 'success']
# Checking if the df_1 shape is 0
if df_1.shape[0]==0:
pr... | [
{
"answer_id": 74638659,
"author": "kingrazer",
"author_id": 12853476,
"author_profile": "https://Stackoverflow.com/users/12853476",
"pm_score": 3,
"selected": true,
"text": " if df_1.shape[0]==0:\n print('No records found')\n return \n"
},
{
"answer_id": 74638662... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638627",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19303365/"
] |
74,638,638 | <p>i want to validation 2 date using mat-datepicker
Here is my code :
file HTML:</p>
<pre><code>
<mat-form-field class="w-100-p">
<input matInput [matDatepicker]="st" formControlName="studyTime"
[(ngModel)]=&... | [
{
"answer_id": 74638659,
"author": "kingrazer",
"author_id": 12853476,
"author_profile": "https://Stackoverflow.com/users/12853476",
"pm_score": 3,
"selected": true,
"text": " if df_1.shape[0]==0:\n print('No records found')\n return \n"
},
{
"answer_id": 74638662... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17675243/"
] |
74,638,679 | <p>I'm writing controller tests with Rspec in a Rails 7 application and getting some unexpected behaviour when asserting against an assignment.</p>
<p>The controller action that I'm testing returns the instance variable <code>@prefectures</code>;</p>
<pre><code> def edit
@prefectures = Prefecture.all.order(:code)
... | [
{
"answer_id": 74641667,
"author": "Lee Drum",
"author_id": 17457026,
"author_profile": "https://Stackoverflow.com/users/17457026",
"pm_score": 1,
"selected": false,
"text": "RSpec.configure do |config|\n\n config.before(:suite) do\n DatabaseCleaner.strategy = :transaction\n Datab... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13309792/"
] |
74,638,704 | <p>I am working with multiple parquet datasets that were written with nested structs (sometimes multiple levels deep). I need to output a flattened (no struct) schema. Right now the only way I can think to do that is to use for loops to iterate through the columns. Here is a simplified example where I'm for looping.</p... | [
{
"answer_id": 74641667,
"author": "Lee Drum",
"author_id": 17457026,
"author_profile": "https://Stackoverflow.com/users/17457026",
"pm_score": 1,
"selected": false,
"text": "RSpec.configure do |config|\n\n config.before(:suite) do\n DatabaseCleaner.strategy = :transaction\n Datab... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4996021/"
] |
74,638,730 | <p>How can I get all body of response without mapping?</p>
<p>When I try <code>response.getBody().toString()</code> it just show <code>Helper@214c265e</code>
but I need response of this api in String to show
(jsut example) {"test": { "src": "Images/Sun.png", "name": "sun1&... | [
{
"answer_id": 74638931,
"author": "Nghia Hoang",
"author_id": 17003471,
"author_profile": "https://Stackoverflow.com/users/17003471",
"pm_score": 0,
"selected": false,
"text": "ResponseEntity<?> response = apiCall();\nresponse.getBody().toString();\n"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14176225/"
] |
74,638,754 | <p>I created a custom invoice but now I am having trouble breaking the page when product lines are more than 30. I am trying to do this so it doesn't overlap with the total amount and payment terms (<a href="https://i.imgur.com/4aKT6Xr.png" rel="nofollow noreferrer">see image for the desired scenario</a>)</p>
<p>Update... | [
{
"answer_id": 74638931,
"author": "Nghia Hoang",
"author_id": 17003471,
"author_profile": "https://Stackoverflow.com/users/17003471",
"pm_score": 0,
"selected": false,
"text": "ResponseEntity<?> response = apiCall();\nresponse.getBody().toString();\n"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4646416/"
] |
74,638,766 | <p>Same Id but multiple different product in SQL.
Data should be retrieved from SQL and Output should be shortened to one line for each ID using PHP.</p>
<p>EXAMPLE:</p>
<p>SQL</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>ID</th>
<th>Product</th>
</tr>
</thead>
<tbody>
<tr>
<td>001</td>
... | [
{
"answer_id": 74638931,
"author": "Nghia Hoang",
"author_id": 17003471,
"author_profile": "https://Stackoverflow.com/users/17003471",
"pm_score": 0,
"selected": false,
"text": "ResponseEntity<?> response = apiCall();\nresponse.getBody().toString();\n"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638766",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20653783/"
] |
74,638,769 | <pre><code>Pass=[0,20,40,60,80,100,120]
while True:
Pass_Input=int(input("Enter : "))
if Pass_Input in Pass[5:6]:
print("Progress")
elif Pass_Input in Pass[0:2]:
print("Progress Module Trailer")
elif Pass_Input in Pass[0]:
print("Exclude")
... | [
{
"answer_id": 74638931,
"author": "Nghia Hoang",
"author_id": 17003471,
"author_profile": "https://Stackoverflow.com/users/17003471",
"pm_score": 0,
"selected": false,
"text": "ResponseEntity<?> response = apiCall();\nresponse.getBody().toString();\n"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17128896/"
] |
74,638,806 | <p>I have a dataframe such as</p>
<pre><code>Names Values
A 0.20
A 1.30
A 1.2
B 0.30
B 0.40
C 1.2
D 0.70
E 0.12
E 1.3
F 0.90
F 0.78
F 0.88
</code></pre>
<p>And I would like to add to a <code>New_col</code> the number :</p>
<ul>
<li><code>1</code> where for each <code>Nam... | [
{
"answer_id": 74639142,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 3,
"selected": true,
"text": "0.75 Names numpy.select m = df.Values > 0.75\n\ns1 = df.loc[m, 'Names'].unique()\ns2 = df.loc[~m, 'Names'].unique()\n... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12559770/"
] |
74,638,813 | <p>As the title suggests, I am trying to create a single array of strings:</p>
<pre><code>['string1', 'string2', 'string3', 'string4', 'string5', 'string6']
</code></pre>
<p>Out of an array of objects with arrays of strings within those objects:</p>
<pre><code>[
{
array_of_strings: ['string1', 'string2', 'string3... | [
{
"answer_id": 74639142,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 3,
"selected": true,
"text": "0.75 Names numpy.select m = df.Values > 0.75\n\ns1 = df.loc[m, 'Names'].unique()\ns2 = df.loc[~m, 'Names'].unique()\n... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/972399/"
] |
74,638,814 | <p>I try to do following:</p>
<pre><code>import pandas as pd
d = {'col1': [1, 7, 3, 6], 'col2': [3, 4, 9, 1]}
df = pd.DataFrame(data=d)
out = df.query('col1 > col2')
out= col1 col2
1 7 4
3 6 1
</code></pre>
<p>This works OK. But when I modify column name <strong>col1</strong> --> <strong>col... | [
{
"answer_id": 74638901,
"author": "abokey",
"author_id": 16120011,
"author_profile": "https://Stackoverflow.com/users/16120011",
"pm_score": 2,
"selected": true,
"text": ": out = df.query('`col1:suf` > col2')\n print(out)\n\n col1:suf col2\n1 7 4\n3 6 1\n"
}... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15925357/"
] |
74,638,826 | <p>I have a very simple static site, written in <code>HTML</code> and <code>CSS</code> style rules. A simplified form of the <code>HTML</code> code is:</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta ... | [
{
"answer_id": 74638992,
"author": "Jonas Grumann",
"author_id": 1254917,
"author_profile": "https://Stackoverflow.com/users/1254917",
"pm_score": 3,
"selected": true,
"text": ".only-on-dark {\n display: none;\n}\n\n@media (prefers-color-scheme: dark) {\n .only-on-dark {\n display: ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12074079/"
] |
74,638,831 | <p>(<a href="https://i.stack.imgur.com/J4v7h.png" rel="nofollow noreferrer">https://i.stack.imgur.com/J4v7h.png</a>)
I have installed both <strong>AutoMapper</strong> and <strong>AutoMapper.Extensions.Microsoft.DependencyInjection</strong></p>
<p>But still I am getting the same error</p>
| [
{
"answer_id": 74638895,
"author": "amplifier",
"author_id": 1793353,
"author_profile": "https://Stackoverflow.com/users/1793353",
"pm_score": -1,
"selected": false,
"text": "builder.Services.AddAutoMapper(config =>\n{\n config.AddProfile(typeof(YourMappingProfile));\n});\n"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16014420/"
] |
74,638,856 | <pre><code>from datetime import datetime
import pytz
# local datetime to ISO Datetime
iso_date = datetime.now().replace(microsecond=0).isoformat()
print('ISO Datetime:', iso_date)
</code></pre>
<p>This doesn't give me the required format i want</p>
<pre><code>2022-05-18T13:43:13
</code></pre>
<p>I wanted to get the ti... | [
{
"answer_id": 74639046,
"author": "Ftagliacarne",
"author_id": 4470987,
"author_profile": "https://Stackoverflow.com/users/4470987",
"pm_score": 0,
"selected": false,
"text": "current_datetime = datetime.now().replace(microsecond=0)\nprint(f'ISO Datetime: {current_datetime.strftime(\"%Y... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17287470/"
] |
74,638,914 | <p>Encoding Input Data: ABC - Output: ZBYX</p>
<p>The encoding happens such that the odd numbered letters of the English alphabet are replaced by their alphabetic opposite, even numbered letters are replaced by a combination of that same letter and it's alphabetic opposite (ie. as shown above 'B' is even numbered alpha... | [
{
"answer_id": 74639333,
"author": "Layhout",
"author_id": 17308201,
"author_profile": "https://Stackoverflow.com/users/17308201",
"pm_score": 2,
"selected": false,
"text": "const alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\nconst decode = str => {\n str = str.split(\"\").reduce((p, ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17494908/"
] |
74,638,944 | <p>How to see if a user can be unbanned or not between 2 dates?</p>
<p>Hi, I have a given variable which is the date the user was unbanned as <code>end_banned</code> in the format <code>HH:mm:ss dd/MM/YYYY</code>.</p>
<p><code>val end_banned: String= "15:05:00 12/01/2022"</code></p>
<p>I want to calculate if ... | [
{
"answer_id": 74639333,
"author": "Layhout",
"author_id": 17308201,
"author_profile": "https://Stackoverflow.com/users/17308201",
"pm_score": 2,
"selected": false,
"text": "const alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\nconst decode = str => {\n str = str.split(\"\").reduce((p, ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19358095/"
] |
74,638,945 | <p>I'm trying to scrape URLs of images over multiple pages but my code seems to only scrape the URLs belonging to the first page.</p>
<p>My goal is to manipulate the website URL such that it loops between pages 1 to 100 (after the "page=" portion) and the URL links are scraped accordingly!</p>
<p>Would apprec... | [
{
"answer_id": 74639333,
"author": "Layhout",
"author_id": 17308201,
"author_profile": "https://Stackoverflow.com/users/17308201",
"pm_score": 2,
"selected": false,
"text": "const alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\nconst decode = str => {\n str = str.split(\"\").reduce((p, ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20654129/"
] |
74,638,985 | <p>I have this variable called "number" with the range being the variables "a" and "b". These range variables are ranges themselves.</p>
<pre><code>from random import *
a = randint(1, 99)
b = randint(2, 100)
number = randint(a, b)
print(number)
</code></pre>
<p>When I try to enter this c... | [
{
"answer_id": 74639011,
"author": "Tim Stack",
"author_id": 10540017,
"author_profile": "https://Stackoverflow.com/users/10540017",
"pm_score": 0,
"selected": false,
"text": "randint b a b a from random import *\n\na = randint(1, 99)\nb = randint(a, 100)\n\nnumber = randint(a, b)\nprint... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18208415/"
] |
74,638,990 | <p>I am very new to Xcode and trying to fetch data from my WordPress website in SwiftUI using rest api. I have got code from internet , I have installed these pod's</p>
<pre><code>pod 'SwiftyJSON'
pod 'Alamofire'
pod 'SDWebImage'
</code></pre>
<p>Imported all pods in homeController and using this code to fetch data.</p... | [
{
"answer_id": 74639011,
"author": "Tim Stack",
"author_id": 10540017,
"author_profile": "https://Stackoverflow.com/users/10540017",
"pm_score": 0,
"selected": false,
"text": "randint b a b a from random import *\n\na = randint(1, 99)\nb = randint(a, 100)\n\nnumber = randint(a, b)\nprint... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74638990",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20501766/"
] |
74,639,012 | <p>I have 2 arrays:</p>
<ul>
<li>$DatesToDelete()</li>
<li>$ArrayAllDates()</li>
</ul>
<p>$DatesToDelete() contains a list of dates, like this:</p>
<p>01/11/2022
02/11/2022
03/11/2022
04/11/2022
05/11/2022
06/11/2022
07/11/2022
08/11/2022
09/11/2022
10/11/2022
11/11/2022
12/11/2022
13/11/2022
14/11/2022
15/11/2022
16/1... | [
{
"answer_id": 74639127,
"author": "Danz",
"author_id": 19681705,
"author_profile": "https://Stackoverflow.com/users/19681705",
"pm_score": 0,
"selected": false,
"text": "foreach($ArrayAllDates as $d){\n if(in_array($d, $DatesToDelete)){\n echo $d.\"<br>\";\n }\n}\n $containDates = ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639012",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8208116/"
] |
74,639,032 | <p>For example i want to write <code>(rand%(MaxValue-MinValue+1))-MinValue</code> i don't want to write this line everytime i want to use it but is there a way to make Visual Studio auto write it when i just need to write <code>rand</code> or <code>R</code>.</p>
| [
{
"answer_id": 74639127,
"author": "Danz",
"author_id": 19681705,
"author_profile": "https://Stackoverflow.com/users/19681705",
"pm_score": 0,
"selected": false,
"text": "foreach($ArrayAllDates as $d){\n if(in_array($d, $DatesToDelete)){\n echo $d.\"<br>\";\n }\n}\n $containDates = ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18519699/"
] |
74,639,063 | <p>I have Data which indicates month of Order date and month of Shipment date. I want to convert the records which will show, in each month, what is the count of orders and in same month what is the count of shipments</p>
<p>Because I am a beginner to SQL I could not try any way but this is the expected table.</p>
<p>I... | [
{
"answer_id": 74639127,
"author": "Danz",
"author_id": 19681705,
"author_profile": "https://Stackoverflow.com/users/19681705",
"pm_score": 0,
"selected": false,
"text": "foreach($ArrayAllDates as $d){\n if(in_array($d, $DatesToDelete)){\n echo $d.\"<br>\";\n }\n}\n $containDates = ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20406488/"
] |
74,639,082 | <p>I want to extract lines to create files for each chromosome. My source file is look like as below:</p>
<p><a href="https://i.stack.imgur.com/ygEb5.png" rel="nofollow noreferrer">BED file</a></p>
<p>I could run <code>awk '{OFS="\t"} {split($1, a, "r")} a[2]==1 {print $0}' MISA.bed > chr_1.bed</... | [
{
"answer_id": 74640922,
"author": "Pierre",
"author_id": 58082,
"author_profile": "https://Stackoverflow.com/users/58082",
"pm_score": 0,
"selected": false,
"text": "awk -F '\\t' '{F=sprintf(\"chr_%s.bed\",$1); print >> F}' MISA.bed \n"
},
{
"answer_id": 74642902,
"author": ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19226179/"
] |
74,639,097 | <p>I want my <code>text</code> and <code>button</code> at the top of the screen, but both the elements have a few gaps between, so I added <code>marginBottom</code> to my <code>text</code> and then that <code>text</code> went to the top. But I want that <code>button</code> to be at the top so I added <code>marginBottom... | [
{
"answer_id": 74639250,
"author": "Kay Angevare",
"author_id": 11787139,
"author_profile": "https://Stackoverflow.com/users/11787139",
"pm_score": 3,
"selected": true,
"text": "alignItems: 'center' justifyContent: 'center' container alignItems:center justifyContent:center Text marginBot... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,639,098 | <p><a href="https://i.stack.imgur.com/XZpoi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XZpoi.png" alt="enter image description here" /></a><a href="https://i.stack.imgur.com/GSE1P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GSE1P.png" alt="enter image description here" /><... | [
{
"answer_id": 74639250,
"author": "Kay Angevare",
"author_id": 11787139,
"author_profile": "https://Stackoverflow.com/users/11787139",
"pm_score": 3,
"selected": true,
"text": "alignItems: 'center' justifyContent: 'center' container alignItems:center justifyContent:center Text marginBot... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639098",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20635666/"
] |
74,639,165 | <pre class="lang-py prettyprint-override"><code>class OrganizationUser(models.Model):
pass
class Feedback(models.Model):
teams_shared_with = models.ManyToManyField('team.Team', related_name="feedback")
class Team(models.Model):
leads = models.ManyToManyField('organizations.OrganizationUser', relat... | [
{
"answer_id": 74639250,
"author": "Kay Angevare",
"author_id": 11787139,
"author_profile": "https://Stackoverflow.com/users/11787139",
"pm_score": 3,
"selected": true,
"text": "alignItems: 'center' justifyContent: 'center' container alignItems:center justifyContent:center Text marginBot... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11144121/"
] |
74,639,181 | <p>From what I understood, when I run <code>git clone</code>, then start to add/edit files on my local repo, I have actually 2 repos : <code>master</code> and <code>origin/master</code> -where the later points to the remote- , I am getting this intuition from what <code>git fetch</code> does, It actually gets the lates... | [
{
"answer_id": 74639470,
"author": "rutaka nashimo",
"author_id": 4953217,
"author_profile": "https://Stackoverflow.com/users/4953217",
"pm_score": 3,
"selected": false,
"text": "master origin/master master origin/master master origin"
},
{
"answer_id": 74642278,
"author": "I... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2866298/"
] |
74,639,184 | <p>Do you know why the output of the program below is</p>
<pre><code>1000
2000
</code></pre>
<p>I am very grateful if you can help me!
Here is the program.</p>
<pre class="lang-c prettyprint-override"><code>int main()
{
int t[] = { 1, 2 };
char* p = (char*)t;
int i;
for (i = 0; i < sizeof(t); i++)
... | [
{
"answer_id": 74639470,
"author": "rutaka nashimo",
"author_id": 4953217,
"author_profile": "https://Stackoverflow.com/users/4953217",
"pm_score": 3,
"selected": false,
"text": "master origin/master master origin/master master origin"
},
{
"answer_id": 74642278,
"author": "I... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20654288/"
] |
74,639,186 | <p>I am in home page everything is dispatched and works fine and when I go enter to next page which display detailed information and when I go back using <code>react-router-dom</code> <code><Link to='..'></code> back to home page the useEffect is not firing It will not dispatch the redux state which let to blank ... | [
{
"answer_id": 74639346,
"author": "NAZIR HUSSAIN",
"author_id": 20587701,
"author_profile": "https://Stackoverflow.com/users/20587701",
"pm_score": 0,
"selected": false,
"text": "<Link to=\"..\" react-router-dom import {useHistory} from 'react-router-dom';\n\nconst App =()=>{\nconst his... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11109926/"
] |
74,639,267 | <p>I want to remove the type 'A' from the capital. How do I do it? Any code example will be appreciated. I am working on a react project.
<img src="https://i.stack.imgur.com/WfroF.png" alt="" /></p>
| [
{
"answer_id": 74639346,
"author": "NAZIR HUSSAIN",
"author_id": 20587701,
"author_profile": "https://Stackoverflow.com/users/20587701",
"pm_score": 0,
"selected": false,
"text": "<Link to=\"..\" react-router-dom import {useHistory} from 'react-router-dom';\n\nconst App =()=>{\nconst his... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17820997/"
] |
74,639,273 | <p>I want to have a hover animation that disappears when hovering over the picture and another picture takes its place, but the back picture isn't disappearing</p>
<p>I tried to use opacity 1 to go to 0, and transition time 0.5sec but it's stuck in the old position</p>
<p><div class="snippet" data-lang="js" data-hide="... | [
{
"answer_id": 74639619,
"author": "Pete Pearl",
"author_id": 14290361,
"author_profile": "https://Stackoverflow.com/users/14290361",
"pm_score": 1,
"selected": false,
"text": ".hover {\n width: 200px;\n height: 200px;\n background: url('https://picsum.photos/200') no-repeat center ce... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20654304/"
] |
74,639,276 | <p>I'm following the <a href="https://learn.microsoft.com/en-us/windows/mixed-reality/develop/unity/tutorials/mr-learning-sharing-03" rel="nofollow noreferrer">tutorial</a> from Microsoft in order to create a multi-users experience in augmented reality between an Hololens and an Android app.</p>
<p>After installing the... | [
{
"answer_id": 74639619,
"author": "Pete Pearl",
"author_id": 14290361,
"author_profile": "https://Stackoverflow.com/users/14290361",
"pm_score": 1,
"selected": false,
"text": ".hover {\n width: 200px;\n height: 200px;\n background: url('https://picsum.photos/200') no-repeat center ce... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20203445/"
] |
74,639,284 | <p>I want to integrate square payment gateway for multi-vendor website.</p>
<p>I have done some research on this but not getting the exact answer that Does it providing multi-vendor support or not. Also does it supports, Split payment?</p>
<p>Can anyone please help?</p>
| [
{
"answer_id": 74639619,
"author": "Pete Pearl",
"author_id": 14290361,
"author_profile": "https://Stackoverflow.com/users/14290361",
"pm_score": 1,
"selected": false,
"text": ".hover {\n width: 200px;\n height: 200px;\n background: url('https://picsum.photos/200') no-repeat center ce... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8899521/"
] |
74,639,286 | <p>How to calculate float value and then convert to uint8_t?
As below, the current progress is 50, but overall just 50% completed, the correct value is 25, but I got 0.</p>
<pre><code>#include <iostream>
using namespace std;
int main()
{
uint8_t remaining = 1;
uint8_t total = 2;
uint8_t progress=50;... | [
{
"answer_id": 74639619,
"author": "Pete Pearl",
"author_id": 14290361,
"author_profile": "https://Stackoverflow.com/users/14290361",
"pm_score": 1,
"selected": false,
"text": ".hover {\n width: 200px;\n height: 200px;\n background: url('https://picsum.photos/200') no-repeat center ce... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639286",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10971265/"
] |
74,639,289 | <pre><code>query user /server:$SERVER
</code></pre>
<p>how can I filter only active users, for send to each user in server msg</p>
<pre><code>$Session_Users = query user /server:$SERVER | Where-Object {$_ -match "Active"}
$Session_Users
ForEach ($user in $Session_Users){
$TheMessage = "X"
&... | [
{
"answer_id": 74639619,
"author": "Pete Pearl",
"author_id": 14290361,
"author_profile": "https://Stackoverflow.com/users/14290361",
"pm_score": 1,
"selected": false,
"text": ".hover {\n width: 200px;\n height: 200px;\n background: url('https://picsum.photos/200') no-repeat center ce... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639289",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20111374/"
] |
74,639,303 | <p>I have a project from github and it has the recoil function. I'm trying <code>npm install</code> to run npm but it's not working:</p>
<p><img src="https://i.stack.imgur.com/yZdjQ.png" alt="enter image description here" /></p>
<p>Then I tried <code>npm install --legacy-peer-deps</code>, and got</p>
<pre><code>61 vuln... | [
{
"answer_id": 74639619,
"author": "Pete Pearl",
"author_id": 14290361,
"author_profile": "https://Stackoverflow.com/users/14290361",
"pm_score": 1,
"selected": false,
"text": ".hover {\n width: 200px;\n height: 200px;\n background: url('https://picsum.photos/200') no-repeat center ce... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18092344/"
] |
74,639,356 | <p>I get a timeout when trying to connect to my newly set up amazon redshift database.
I tried telnet:</p>
<pre><code>telnet redshift-cluster-1.foobar.us-east-1.redshift.amazonaws.com 5439
</code></pre>
<p>With the same result.</p>
<p>I set the database configuration to "Publicly accessible".</p>
<p>Note that... | [
{
"answer_id": 74643400,
"author": "smac2020",
"author_id": 1435543,
"author_profile": "https://Stackoverflow.com/users/1435543",
"pm_score": 0,
"selected": false,
"text": " private static final String database = \"dev\";\n private static final String dbUser =\"awsuser\";\n private... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2474025/"
] |
74,639,363 | <p>I have a column <code>data$Floor</code> from a dataset imported from CSV that supposedly contains the floor of an apartment. Here is a sample data:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Floor</th>
</tr>
</thead>
<tbody>
<tr>
<td>Ground out of 2</td>
</tr>
<tr>
<td>1 out of 3</... | [
{
"answer_id": 74639427,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 3,
"selected": true,
"text": "tidyr::separate tidyr::separate(data, Floor, c('Floor', 'Total Floors'), sep = ' out of ')\n#> Floor Total... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639363",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19375357/"
] |
74,639,414 | <p>I'm using the same exact code from an existing file practically and the data I'm trying to display using map is only showing 1 part of it. I'm trying to display a table of data but only the header is appearing. I know my database calls are not the problem because I can see the data in my state component "purcha... | [
{
"answer_id": 74639427,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 3,
"selected": true,
"text": "tidyr::separate tidyr::separate(data, Floor, c('Floor', 'Total Floors'), sep = ' out of ')\n#> Floor Total... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19244659/"
] |
74,639,435 | <p>How do I get only the total count in Microsoft Graph query search. Is there a request to get only the total count?</p>
<p>I'm implementing a custom solution that is using MS Graph query search to get the total count results when searching SharePoint online. MS Graph API returns the total count but I'm wondering is t... | [
{
"answer_id": 74639427,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 3,
"selected": true,
"text": "tidyr::separate tidyr::separate(data, Floor, c('Floor', 'Total Floors'), sep = ' out of ')\n#> Floor Total... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9673821/"
] |
74,639,520 | <p>We have a big project with lots of repos where we would like to introduce a coding standard that is followed in all repos.</p>
<p>We do this by adding an identical .editorconfig file in all repos.</p>
<p>When doing this we also format all java files by Code -> Reformat Code and filtering out *.java files.</p>
<p>... | [
{
"answer_id": 74639427,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 3,
"selected": true,
"text": "tidyr::separate tidyr::separate(data, Floor, c('Floor', 'Total Floors'), sep = ' out of ')\n#> Floor Total... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2276754/"
] |
74,639,543 | <p>I'm trying to navigate via <code><Link href="/register">Register</Link></code> to my registration page, but when I click it I get an error/warning either saying that:</p>
<ul>
<li>NextJS failed to load my script:
<a href="https://i.stack.imgur.com/gxOUM.png" rel="nofollow noreferrer"><img src="... | [
{
"answer_id": 74639427,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 3,
"selected": true,
"text": "tidyr::separate tidyr::separate(data, Floor, c('Floor', 'Total Floors'), sep = ' out of ')\n#> Floor Total... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639543",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4852315/"
] |
74,639,555 | <p>My project has a Selector element which is a native HTML <code>button</code> element under the hood. I am trying to replicate the behaviour of clicking a label and triggering an event on an input/select.</p>
<p>Using <code><label htmlFor="size"></code> produces a warning during testing in Jest.</p>
<... | [
{
"answer_id": 74640614,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": -1,
"selected": false,
"text": "<label for=\"my-input\">\n <span>Label text:</span>\n <input id=\"my-input\" type=\"SELECT|RADIO|SUBMIT|...\" ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9559251/"
] |
74,639,567 | <p>I an doing update using open query on progress database which is connected to sql server using lined server . below is the query when I print :</p>
<pre><code> UPDATE OPENQUERY(PROGRESSDB,'SELECT * FROM PUB.workitem where
act_emp= 73870 and wtype='B'')
SET start_time='81410',logonstat = '1',realstrttme ='81410... | [
{
"answer_id": 74640614,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": -1,
"selected": false,
"text": "<label for=\"my-input\">\n <span>Label text:</span>\n <input id=\"my-input\" type=\"SELECT|RADIO|SUBMIT|...\" ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639567",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1433302/"
] |
74,639,579 | <p>I have a dataset like this :</p>
<pre><code>TYPE count
TYPE1 50
TYPE2 20
TYPE1 10
TYPE2 30
</code></pre>
<p>i want to sum the distinct type in a same line :</p>
<pre><code>TYPE count
TYPE1 60
TYPE2 50
</code></pre>
<p>Can you help me please ?</p>
<p>Thanks</p>
| [
{
"answer_id": 74639629,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 1,
"selected": false,
"text": "SELECT TYPE, SUM(count) AS count\nFROM yourTable\nGROUP BY TYPE;\n"
},
{
"answer_id": 74639652,
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18814820/"
] |
74,639,602 | <pre><code>fn main() {
//! First question
// C++: string* ptr1 = new string("hello");
// so ptr1 contains the address of string "hello" that is allocated on heap
let ptr1 = String::from("Hello");
// output: 0x66c96ff910
println!("{:p}", &ptr1);
/... | [
{
"answer_id": 74639629,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 1,
"selected": false,
"text": "SELECT TYPE, SUM(count) AS count\nFROM yourTable\nGROUP BY TYPE;\n"
},
{
"answer_id": 74639652,
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639602",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19196249/"
] |
74,639,617 | <p>There is one array for me. my array is as follows.</p>
<pre><code>var Array = [["Dog","0","A","eat"],["cat","1","B","eat"]]
</code></pre>
<p>I want to replace the value in some indexes in this array with other values.</p>
<p>for example,... | [
{
"answer_id": 74640500,
"author": "Jostein S",
"author_id": 20106677,
"author_profile": "https://Stackoverflow.com/users/20106677",
"pm_score": 2,
"selected": false,
"text": "var Array = new string[][] {\n new string[] {\"Dog\", \"0\", \"A\", \"eat\" },\n new string[] {\"Cat\", \"... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17321009/"
] |
74,639,635 | <p>When I was working on an open source project on GitHub Clone, there was a problem with executing Yarn Install, what caused it?</p>
<p><a href="https://i.stack.imgur.com/XuAOk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XuAOk.png" alt="enter image description here" /></a></p>
<p><a href="https:... | [
{
"answer_id": 74639795,
"author": "Ivneet Singh",
"author_id": 3418593,
"author_profile": "https://Stackoverflow.com/users/3418593",
"pm_score": 0,
"selected": false,
"text": "npm install"
},
{
"answer_id": 74640162,
"author": "Karl-Johan Sjögren",
"author_id": 547640,
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19706404/"
] |
74,639,717 | <p>I have one table that contains customer id and start date and one table that contains customer id and end date.</p>
<p>table A</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>customer_id</th>
<th>start_date</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2022-01-01</td>
</tr>
<tr>
<td>1<... | [
{
"answer_id": 74639795,
"author": "Ivneet Singh",
"author_id": 3418593,
"author_profile": "https://Stackoverflow.com/users/3418593",
"pm_score": 0,
"selected": false,
"text": "npm install"
},
{
"answer_id": 74640162,
"author": "Karl-Johan Sjögren",
"author_id": 547640,
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14732194/"
] |
74,639,725 | <p>I have the following string:</p>
<p><code>'- Submission GMV / return finance027110/06 Abdul Rahman -26,00- Submission GMV / return finance02432548/08 Michael Scott -56,47- GMV success. 452630/10/21 Lehazq998890/92 +60,00'</code></p>
<p>How can I return the values as:</p>
<pre><code>[['- Submission PVT / return finan... | [
{
"answer_id": 74639795,
"author": "Ivneet Singh",
"author_id": 3418593,
"author_profile": "https://Stackoverflow.com/users/3418593",
"pm_score": 0,
"selected": false,
"text": "npm install"
},
{
"answer_id": 74640162,
"author": "Karl-Johan Sjögren",
"author_id": 547640,
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12446218/"
] |
74,639,727 | <p>I am trying to generate a random string output from an array that's getting triggered at random times. The issue that I am facing now is, sometimes the same output comes out twice in a row, or even more than two times. I wanted the output to be different every single time it gets triggered. I don't want the next out... | [
{
"answer_id": 74639795,
"author": "Ivneet Singh",
"author_id": 3418593,
"author_profile": "https://Stackoverflow.com/users/3418593",
"pm_score": 0,
"selected": false,
"text": "npm install"
},
{
"answer_id": 74640162,
"author": "Karl-Johan Sjögren",
"author_id": 547640,
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7676733/"
] |
74,639,783 | <p>I'm attempting to create a clone of the windows 10 file explorer in python using tkinter and I cant work out how to get the name of the file type from its file extension <a href="https://i.stack.imgur.com/ZrvVm.png" rel="nofollow noreferrer">like file explorer does</a></p>
<p>I have already got a function to get the... | [
{
"answer_id": 74639868,
"author": "benicamera",
"author_id": 13826114,
"author_profile": "https://Stackoverflow.com/users/13826114",
"pm_score": 0,
"selected": false,
"text": "def get_file_type():\n extension_full_names = {\".txt\":\"Text file\", \".py\":\"Python file\"}\n\n file_... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17283029/"
] |
74,639,791 | <p>Whenever I visit a page it should automatically fetch the API</p>
<pre class="lang-js prettyprint-override"><code>import React from 'react'
const Component = () => {
fetch("api url").then((res) => console.log(res))
return (
<div>comp</div>
)
}
export default Component
</code><... | [
{
"answer_id": 74639844,
"author": "Itay Elkouby",
"author_id": 4134411,
"author_profile": "https://Stackoverflow.com/users/4134411",
"pm_score": 2,
"selected": false,
"text": "useEffect const Comp = () => {\n\n useEffect(() => {\n fetch(\"api url\").then((res)=>console.log(res))\n ... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20248412/"
] |
74,639,813 | <p>I want to scrape all pages of a website and get the <code>meta tag description</code> like</p>
<p><code><meta name="description" content="I want to get this description of this meta tag" /></code></p>
<p>similarly for all other pages I want to get their individual <code>meta description</co... | [
{
"answer_id": 74639959,
"author": "Camille",
"author_id": 15282066,
"author_profile": "https://Stackoverflow.com/users/15282066",
"pm_score": 1,
"selected": false,
"text": "function my_function_get_description($url) {\n $the_html = file_get_contents('https://tipodense.dk/');\n pre... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7014609/"
] |
74,639,879 | <p>I have a json file (API.json) which looks like this:</p>
<pre class="lang-json prettyprint-override"><code>{"applist":{"apps":[{"appid":1234567,"name":"Test$: Number 1"},{"appid":7654321,"name":"Test- Number 2"},{"appid":777777... | [
{
"answer_id": 74639959,
"author": "Camille",
"author_id": 15282066,
"author_profile": "https://Stackoverflow.com/users/15282066",
"pm_score": 1,
"selected": false,
"text": "function my_function_get_description($url) {\n $the_html = file_get_contents('https://tipodense.dk/');\n pre... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12261902/"
] |
74,639,911 | <p>I want to use pyenv to create a virtual environment that accesses system packages (specifically wxPython).</p>
<p>I have tried</p>
<pre><code>pyenv virtualenv --system-site-packages 3.9.10 myenv
</code></pre>
<p>It creates the virtual env and <em>pyenv.cfg</em> contains the line</p>
<pre><code>include-system-site-pa... | [
{
"answer_id": 74639959,
"author": "Camille",
"author_id": 15282066,
"author_profile": "https://Stackoverflow.com/users/15282066",
"pm_score": 1,
"selected": false,
"text": "function my_function_get_description($url) {\n $the_html = file_get_contents('https://tipodense.dk/');\n pre... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3070181/"
] |
74,639,946 | <p>According to the official documentation, the playwright doesn't support chaining the actions you perform on a single selector like, alternatively, Cypress allows for.
As a result, your code file grows with repetitive expressions:</p>
<pre><code>await page.getByRole('textbox').click();
await page.getByRole('textbox')... | [
{
"answer_id": 74640181,
"author": "Basti",
"author_id": 16391362,
"author_profile": "https://Stackoverflow.com/users/16391362",
"pm_score": 2,
"selected": false,
"text": "const myTextbox = page.getByRole('textbox');\nawait myTextbox.click();\nawait myTextbox.fill('some text');\nawait my... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639946",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20654763/"
] |
74,639,947 | <p>The restrictions are that the elements can be appended to the front if they are greater than the element at the front and to the back if they are smaller than the back. It can also ignore elements (and there comes the difficulty).</p>
<p>Example:</p>
<p>Input:
<code>{6, 7, 3, 5, 4}</code></p>
<p>The longest sequence... | [
{
"answer_id": 74672268,
"author": "David Eisenstat",
"author_id": 2144669,
"author_profile": "https://Stackoverflow.com/users/2144669",
"pm_score": 2,
"selected": false,
"text": "#include <algorithm>\n#include <iostream>\n#include <map>\n#include <utility>\n#include <vector>\n\nstd::vec... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639947",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14833479/"
] |
74,639,957 | <p>I am trying to connect to a mariadb-database on my local network. using Python.</p>
<pre><code>import mariadb
cursor = mariadb.connect(host='192.168.178.77', user='someuser', password='somepass', db='temps')
</code></pre>
<p>Output is:</p>
<pre><code>Traceback (most recent call last):
File "/Users/localuser... | [
{
"answer_id": 74640231,
"author": "Georg Richter",
"author_id": 6930501,
"author_profile": "https://Stackoverflow.com/users/6930501",
"pm_score": 0,
"selected": false,
"text": "brew update\nbrew upgrade mariadb-connector-c\n"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8978772/"
] |
74,639,988 | <p>I am writing R ggplot, and I am arranging multiple plots with <code>grid.arrange</code>.</p>
<p>Is there a way to add some words in in between two plots?
I want the output to be like the red word.</p>
<p>Thank you for your help :)</p>
<pre><code>library(ggplot2)
library(gridExtra)
P1 <- ggplot(mtcars, aes(x = mpg... | [
{
"answer_id": 74640152,
"author": "Yacine Hajji",
"author_id": 17049772,
"author_profile": "https://Stackoverflow.com/users/17049772",
"pm_score": 2,
"selected": false,
"text": "grid.text grid ### Libraries\nlibrary(grid)\nlibrary(ggplot2)\nlibrary(gridExtra)\n\n### Data\ndata(cars)\n\n... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16469595/"
] |
74,639,989 | <p>I have files in one directory/folder named:</p>
<ol>
<li><code>2022-07-31_DATA_GVAX_ARPA_COMBINED.csv</code></li>
<li><code>2022-08-31_DATA_GVAX_ARPA_COMBINED.csv</code></li>
<li><code>2022-09-30_DATA_GVAX_ARPA_COMBINED.csv</code></li>
</ol>
<p>The folder will be updated with each month's file in the same format as ... | [
{
"answer_id": 74640152,
"author": "Yacine Hajji",
"author_id": 17049772,
"author_profile": "https://Stackoverflow.com/users/17049772",
"pm_score": 2,
"selected": false,
"text": "grid.text grid ### Libraries\nlibrary(grid)\nlibrary(ggplot2)\nlibrary(gridExtra)\n\n### Data\ndata(cars)\n\n... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74639989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14739761/"
] |
74,640,003 | <p><img src="https://i.stack.imgur.com/T0ijs.png" alt="enter image description here" />
How would you solve that question?
Background: beginner in C# who has only studied for a couple of days.</p>
<pre><code>int[] nums= new int[10];
for (int i = 0; i < nums.Length; i++)
{
{
Console.WriteLine("Enter ... | [
{
"answer_id": 74640152,
"author": "Yacine Hajji",
"author_id": 17049772,
"author_profile": "https://Stackoverflow.com/users/17049772",
"pm_score": 2,
"selected": false,
"text": "grid.text grid ### Libraries\nlibrary(grid)\nlibrary(ggplot2)\nlibrary(gridExtra)\n\n### Data\ndata(cars)\n\n... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74640003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20654833/"
] |
74,640,047 | <p>I'm trying to follow a small laravel tutorial.</p>
<p>In my application I have a controller called, HomeController.</p>
<p>In my HomeController, I have the followinf index function</p>
<pre><code>public function index()
{
try {
//get autheticated users selected organisation
$organ... | [
{
"answer_id": 74640113,
"author": "Afif Zafri",
"author_id": 5784900,
"author_profile": "https://Stackoverflow.com/users/5784900",
"pm_score": 2,
"selected": false,
"text": "return view('dashboard.index', ['organisation' => $organisation, 'sum' => $sum]);\n compact() return view('dashbo... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74640047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20654572/"
] |
74,640,059 | <p>I'm wondering if there is a way to force getting strings from the custom file? Let's say I would like to have testing strings set and use them in the debug mode. As far as I know, there is no possibility to create a custom Locale and use for example <code>values-test</code> folder. But maybe there is the possibility... | [
{
"answer_id": 74640113,
"author": "Afif Zafri",
"author_id": 5784900,
"author_profile": "https://Stackoverflow.com/users/5784900",
"pm_score": 2,
"selected": false,
"text": "return view('dashboard.index', ['organisation' => $organisation, 'sum' => $sum]);\n compact() return view('dashbo... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74640059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2281821/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.