qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,496,464 | <p>I am trying my darndest to accomplish this relatively simple layout for 2-3 elements. Everything I've tried from <code>px/fr/%</code> with <code>minmax()</code> & grid can't seem to get it quite right.</p>
<p>I want my <code>input</code> to take up all remaining space leftover whether or not the <code>button</co... | [
{
"answer_id": 74496519,
"author": "Tesmond H",
"author_id": 11169088,
"author_profile": "https://Stackoverflow.com/users/11169088",
"pm_score": 0,
"selected": false,
"text": ".grid {\n display: flex;\n}\n\n.grid input {\n display: flex;\n flex: 1 1 auto;\n}\n\ninput[type = butt... | 2022/11/18 | [
"https://Stackoverflow.com/questions/74496464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1908512/"
] |
74,496,472 | <p>i have date value coming as 2022-11-18T00:00:01.012345678Z and would like to store it as >2022-11-18T00:00:01.012345678 in snowflake timestamp data type column.</p>
<p>i am using following but it's always outputting 2022-11-18 00:00:01.012 .</p>
<p><code>to_timestamp('2022-11-18T00:00:01.012345678z','YYYY-MM-DD&q... | [
{
"answer_id": 74497082,
"author": "Mike Walton",
"author_id": 12178980,
"author_profile": "https://Stackoverflow.com/users/12178980",
"pm_score": 1,
"selected": false,
"text": "SELECT to_timestamp('2022-11-18T00:00:01.012345678Z','YYYY-MM-DDTHH:MI:SS.FF9Z');\n SELECT to_varchar(to_times... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18752600/"
] |
74,496,484 | <p>I'm trying to add an additional argument to this mute command I have made for my discord.py bot but I'm getting a SyntaxError and have been having trouble understanding the syntax for what I'm trying to do.</p>
<p>Here is the part of my program that is relevant to my issue:</p>
<pre><code>#Tempmute Command
@bot.comm... | [
{
"answer_id": 74497082,
"author": "Mike Walton",
"author_id": 12178980,
"author_profile": "https://Stackoverflow.com/users/12178980",
"pm_score": 1,
"selected": false,
"text": "SELECT to_timestamp('2022-11-18T00:00:01.012345678Z','YYYY-MM-DDTHH:MI:SS.FF9Z');\n SELECT to_varchar(to_times... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20541671/"
] |
74,496,496 | <p>I expected to preset the environment of node and then it installs aws-cdk which will be used for the matrix-ed jobs which are supposed to be an efficient solution for execution.</p>
<p>Here is basically my script:</p>
<pre><code>jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
... | [
{
"answer_id": 74498935,
"author": "Matteo",
"author_id": 2270041,
"author_profile": "https://Stackoverflow.com/users/2270041",
"pm_score": 1,
"selected": false,
"text": "jobs:\n setup-and-deploy:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v3\n with:\n ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496496",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12097673/"
] |
74,496,507 | <p>In firebase backend I know how to authenticate user via many technics like email and password, Facebook authentication, google authentication , link and so on.
So in web v9 modular to create provider object we use :
<code>const provider = new GoogleAuthProvider()</code> and to add email scope we proceed like this:
<... | [
{
"answer_id": 74498935,
"author": "Matteo",
"author_id": 2270041,
"author_profile": "https://Stackoverflow.com/users/2270041",
"pm_score": 1,
"selected": false,
"text": "jobs:\n setup-and-deploy:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v3\n with:\n ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11415346/"
] |
74,496,521 | <p>I've have seen some answers to similar questions, but I haven't seen one touching multiple conditions and I couldn't adapt any to this need.</p>
<p>Basically, <code>ar1</code> should have its labels replaced by the urls.</p>
<p>Here is the function beating me:</p>
<p><div class="snippet" data-lang="js" data-hide="fa... | [
{
"answer_id": 74496580,
"author": "rrrm93",
"author_id": 2500733,
"author_profile": "https://Stackoverflow.com/users/2500733",
"pm_score": 2,
"selected": false,
"text": "ar2 L"
},
{
"answer_id": 74496607,
"author": "Lord-JulianXLII",
"author_id": 19529102,
"author_pr... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11832197/"
] |
74,496,525 | <p>I'm having trouble translating the following JavaScript code into python. My problem is inheriting the parent properties and methods in the ChildNode class by using <code>super.__init__()</code>. In js, you just call <code>super()</code> and get all the props. It doesn't seem to be the same in python. The super func... | [
{
"answer_id": 74496580,
"author": "rrrm93",
"author_id": 2500733,
"author_profile": "https://Stackoverflow.com/users/2500733",
"pm_score": 2,
"selected": false,
"text": "ar2 L"
},
{
"answer_id": 74496607,
"author": "Lord-JulianXLII",
"author_id": 19529102,
"author_pr... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496525",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16693156/"
] |
74,496,595 | <p>everyone! I'm a new member of Stack Overflow, just like I'm beginner on swift programming. I'm making this post to find out a solution for the following case:</p>
<p>I'm creating on Swift an app using the Command Line Tool for inputing data. The app basically works as an authenticator. As an example, if someone type... | [
{
"answer_id": 74496849,
"author": "reema",
"author_id": 17582294,
"author_profile": "https://Stackoverflow.com/users/17582294",
"pm_score": -1,
"selected": false,
"text": "import Foundation\n\nprint(\"Enter your country: \")\nif let country = readLine() {\n if let num = Int(country) {\... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543549/"
] |
74,496,611 | <p>My goal is to extract an element from many list that similar like this. Taking elements that is food.</p>
<pre><code>test_list =
['Tools: Pen',
'Food: Sandwich',
'Fruit: Apple'
]
</code></pre>
<p>I the final result would be <strong>"Sandwich"</strong> by look list element with the word "Food:" an... | [
{
"answer_id": 74496632,
"author": "QWERTYL",
"author_id": 11777402,
"author_profile": "https://Stackoverflow.com/users/11777402",
"pm_score": 0,
"selected": false,
"text": "test_list_2 =\n{'Tools': 'Pen',\n'Tree': 'Willow',\n'Food': 'Drumstick',\n'Fruit': 'Apple'\n}\n\nprint(test_list_2... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543548/"
] |
74,496,650 | <p>I am trying to push parts of a string into two different stacks and popping them out so I can see if the string is balanced. For example, we have the sample input of ((())), it would push ( into one stack and it would push ) into another stack. Then it would enter a loop that pops all the characters and if both stac... | [
{
"answer_id": 74496632,
"author": "QWERTYL",
"author_id": 11777402,
"author_profile": "https://Stackoverflow.com/users/11777402",
"pm_score": 0,
"selected": false,
"text": "test_list_2 =\n{'Tools': 'Pen',\n'Tree': 'Willow',\n'Food': 'Drumstick',\n'Fruit': 'Apple'\n}\n\nprint(test_list_2... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20200634/"
] |
74,496,667 | <p>Why does this code print <code>Array(7) [ <7 empty slots> ]</code> (or an array of <code>undefined</code>, 7 times) instead of an array with the single element <code>7</code>?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre ... | [
{
"answer_id": 74496693,
"author": "rrrm93",
"author_id": 2500733,
"author_profile": "https://Stackoverflow.com/users/2500733",
"pm_score": 1,
"selected": false,
"text": "console.log([...a])\n"
}
] | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20544074/"
] |
74,496,668 | <p>I'm trying to find out which words fit into this template but don't know how to compare them. Is there any way to do this without counting specific alphabetic characters in the template, getting their indices, and then checking each letter in each word?</p>
<p>The desired output is a list of words from words that fi... | [
{
"answer_id": 74496715,
"author": "Swifty",
"author_id": 20267366,
"author_profile": "https://Stackoverflow.com/users/20267366",
"pm_score": 1,
"selected": false,
"text": "import re\ntemplate = ['_', '_', 'l', '_', '_']\nwords = ['hello', 'jacky', 'helps']\nregexp = ''.join(template).re... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20251257/"
] |
74,496,670 | <p>The question I'm going to ask is about Pinia, but really could just be generalized to any underlying store.</p>
<p>I have a Vue + Pinia application in which I want to be able to store a tree. The tree is made up of objects of type <code>Node</code>. I need to store exactly one tree at a time, and I don't care about ... | [
{
"answer_id": 74542810,
"author": "Duannx",
"author_id": 4254681,
"author_profile": "https://Stackoverflow.com/users/4254681",
"pm_score": 1,
"selected": false,
"text": "const tree = new Map()\n node nodeId {\n id: \"the node id\",\n parentId: \"id of the parent, null if it is the roo... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12424975/"
] |
74,496,686 | <p>would i write a logical AND statement the same way i would write a logical OR statement converting C to mips assembly?</p>
<pre><code>else if (i == x && j == y)
printf("%c", 219);
</code></pre>
<p>this is what i put</p>
<pre><code>bne $reg1, $t3, draw219 # i==x
bne $reg2, $t4, draw219 # j==y
</code... | [
{
"answer_id": 74496727,
"author": "David Grayson",
"author_id": 28128,
"author_profile": "https://Stackoverflow.com/users/28128",
"pm_score": 0,
"selected": false,
"text": "printf(\"%c\", 219); bne if"
},
{
"answer_id": 74496777,
"author": "Erik Eidt",
"author_id": 47112... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20393581/"
] |
74,496,708 | <p>I am really struggling to understand what is going on with this code, what does the single line lambda return if anything ? I am unclear on what that 3rd argument is going to be ?</p>
<pre><code> public Task<StatusMessage> MarketSubscription(MarketSubscriptionMessage message)
{
int id = NextId();... | [
{
"answer_id": 74496761,
"author": "digital_jedi",
"author_id": 3019376,
"author_profile": "https://Stackoverflow.com/users/3019376",
"pm_score": 0,
"selected": false,
"text": "SendMessage() onSuccess SendMessage() RequestResponse newSub MarketSubscriptionHandler SendMessage() SendMessag... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4740124/"
] |
74,496,713 | <p>Given a <code>std::ranges::range</code> in C++20, how can I determine the type of the values in that range?</p>
<p>I want to write a function that makes a <code>std::vector</code> out of an arbitrary range. I'd like this function to have a nice, explicit declaration. Something like:</p>
<pre><code>template<std::r... | [
{
"answer_id": 74496753,
"author": "user17732522",
"author_id": 17732522,
"author_profile": "https://Stackoverflow.com/users/17732522",
"pm_score": 2,
"selected": false,
"text": "std::ranges::range_value_t std::value_type_t std::ranges::to"
},
{
"answer_id": 74520929,
"author... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1171688/"
] |
74,496,724 | <p>This CSS is displayed on the second page of a scrolling page. The .container_block is for holding all the cards in its box. The .cards are for displaying the cards and each individual card is represented by card1,2,3, and 4.</p>
<pre><code>.container_block {
width: 80%;
height: 40%;
display: block;
b... | [
{
"answer_id": 74496753,
"author": "user17732522",
"author_id": 17732522,
"author_profile": "https://Stackoverflow.com/users/17732522",
"pm_score": 2,
"selected": false,
"text": "std::ranges::range_value_t std::value_type_t std::ranges::to"
},
{
"answer_id": 74520929,
"author... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19141059/"
] |
74,496,734 | <p>The following adds a country code to each new row inserted, in this case "US" for "United States".</p>
<pre><code>CREATE TRIGGER `country` BEFORE INSERT ON `test`
FOR EACH ROW SET NEW.`countryCode` = CASE
WHEN NEW.`country` LIKE 'United States' THEN 'US'
END
</code></pre>
<p>The above works well... | [
{
"answer_id": 74496753,
"author": "user17732522",
"author_id": 17732522,
"author_profile": "https://Stackoverflow.com/users/17732522",
"pm_score": 2,
"selected": false,
"text": "std::ranges::range_value_t std::value_type_t std::ranges::to"
},
{
"answer_id": 74520929,
"author... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496734",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4688190/"
] |
74,496,770 | <p>I am having difficulty using the javascript filter in a react native project. I need help filtering an array of objects in a typescript react native project
The main issue I am having is in the function called onSearchTextChanged specifically the search method which uses a javascript filter</p>
<p>Here's the main co... | [
{
"answer_id": 74496775,
"author": "subparry",
"author_id": 10533611,
"author_profile": "https://Stackoverflow.com/users/10533611",
"pm_score": 0,
"selected": false,
"text": " const filteredObjs = itemListStore.filter(\n // eslint-disable-next-line array-callback-return\n ({ it... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12072045/"
] |
74,496,788 | <p>I see this sort of address used in a bunch of examples. What does it mean exactly? Does it mean it will connect to any/all machines on the subnet that have something listening to that port? Or something else entirely? I see such usage in the docs and in books without explanation. Sort of annoying.</p>
| [
{
"answer_id": 74499078,
"author": "rveerd",
"author_id": 6783775,
"author_profile": "https://Stackoverflow.com/users/6783775",
"pm_score": 2,
"selected": true,
"text": "tcp tcp://interface:port\n * *"
},
{
"answer_id": 74499234,
"author": "bazza",
"author_id": 2147218,
... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/423560/"
] |
74,496,799 | <p>I have a TextView in my ConstraintLayout and I want the TextView to occupy only its parent width and height (0dp,0dp). I have seen that in small devices if in my ConstraintLayout I have an ImageView or a View with <code>android:layout_width="0dp"</code> <code>android:layout_height="0dp"</code> i... | [
{
"answer_id": 74497256,
"author": "ninh312",
"author_id": 16772693,
"author_profile": "https://Stackoverflow.com/users/16772693",
"pm_score": 0,
"selected": false,
"text": "dp sp android:textSize=\"15dp\"\n"
},
{
"answer_id": 74501523,
"author": "Cheticamp",
"author_id":... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20543919/"
] |
74,496,804 | <p>I am trying to print the rows whereby a data condition is met in a pandas DF based on the unique values in the DF. For example, I have data that looks like this:</p>
<p>DF:</p>
<pre><code>site temp month day
A 15 7 18
A 11 6 12
A 22 9 3
B 9 4 23
B 3 2 ... | [
{
"answer_id": 74497256,
"author": "ninh312",
"author_id": 16772693,
"author_profile": "https://Stackoverflow.com/users/16772693",
"pm_score": 0,
"selected": false,
"text": "dp sp android:textSize=\"15dp\"\n"
},
{
"answer_id": 74501523,
"author": "Cheticamp",
"author_id":... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2100039/"
] |
74,496,821 | <p>I am trying to show a pop-up menu appear when an IconButton() is clicked I added a PopupMenuButton() to the on pressed method of the IconButton as you can see below:</p>
<p><a href="https://i.stack.imgur.com/fQzx7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fQzx7.png" alt="Image of code:Pop up... | [
{
"answer_id": 74497017,
"author": "Lara Cesio",
"author_id": 16787956,
"author_profile": "https://Stackoverflow.com/users/16787956",
"pm_score": 1,
"selected": false,
"text": "PopupMenuButton<Menu>(\n icon: const Icon(\n Icons.settings,\n size: 50,\n color: Colors.red,... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14885706/"
] |
74,496,836 | <p>I prepared some code snippet from Delphi recommendations, no compiler warnings or implicit casts but the result unsatisfied me.</p>
<pre><code>procedure Convert;
type
TUTF8Buf = array [0 .. 5] of byte;
var
s: string;
sutf8: UTF8String; // manageable UTF-8 string
utf8str: TUTF8Buf; // unmanageable buffer
begi... | [
{
"answer_id": 74497557,
"author": "Remy Lebeau",
"author_id": 65863,
"author_profile": "https://Stackoverflow.com/users/65863",
"pm_score": 2,
"selected": false,
"text": "UTF8ArrayToString() $0 Utf8ToUnicode() UnicodeFromLocaleChars() TEncoding.UTF8.GetChars() UTF8String UnicodeString U... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496836",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1886550/"
] |
74,496,843 | <p>I'm trying to read data from a JSON file that contains a list of blogs. I want to break each of those blogs into small paragraphs. I thought adding <code>\n</code> would do the job but it's not. How can I achieve this?</p>
<p><a href="https://i.stack.imgur.com/YLZDG.png" rel="nofollow noreferrer"><img src="https://i... | [
{
"answer_id": 74496926,
"author": "Evans Wanjau",
"author_id": 4812835,
"author_profile": "https://Stackoverflow.com/users/4812835",
"pm_score": 0,
"selected": false,
"text": "\\\\n\\\\ \\n \\n\\n"
},
{
"answer_id": 74496998,
"author": "Elvin",
"author_id": 11743253,
... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20132576/"
] |
74,496,853 | <p>The below function parses multiple csv files in a directory and takes out values using str.startwith().</p>
<p>It works find using '<em>firstline.startswith('TrakPro')</em>' and '<code>txt.startswith('Serial')</code>'. However, when I add a third str.startwith() i.e. txt2.startswith('Test'), nothing prints out, no e... | [
{
"answer_id": 74496882,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 3,
"selected": true,
"text": "Test Name: with open(\"your_file.csv\", \"r\") as f_in:\n for line in map(str.strip, f_in):\n if li... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16374285/"
] |
74,496,858 | <p>I have a hero with multiple images, I want to display images according to screen sizes, for example, if the user is using a big screen, the hero will load the large/wide images, and if he uses a phone, the hero will display a different image that is not wide to fit the screen.
I do not know how to do this with nextj... | [
{
"answer_id": 74497053,
"author": "Yilmaz",
"author_id": 10262805,
"author_profile": "https://Stackoverflow.com/users/10262805",
"pm_score": 1,
"selected": false,
"text": "<div className=\"lg:absolute lg:inset-y-0 lg:right-0 lg:w-1/2\">\n <Image\n className=\"h-56 w-full obj... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19796449/"
] |
74,496,862 | <p>We were told to do a program on stings and I wasn't able to attend class because I was sick. I am asking for your help on this task that was given to us.</p>
<p>Create a java program that will ask the user to input two Strings. Compare the two strings and display the letters that are found on the first string but ar... | [
{
"answer_id": 74496912,
"author": "Parmingo",
"author_id": 20305399,
"author_profile": "https://Stackoverflow.com/users/20305399",
"pm_score": -1,
"selected": false,
"text": "String diff: StringUtils.difference(one, two);\nSystem.out.println(diff);\n"
},
{
"answer_id": 74496997,... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496862",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20544206/"
] |
74,496,871 | <p>I am trying find the third and fourth max number in a list and then sum them. The solution must be linear O(n).</p>
<p>eg:</p>
<pre><code> >>> Max_34([1000, 1, 100, 2, 99, 200,100])
199
</code></pre>
<p>Here's what I did:</p>
<p>The problem is that it will work for max_34([1,2,3,4]), but it won't wor... | [
{
"answer_id": 74496912,
"author": "Parmingo",
"author_id": 20305399,
"author_profile": "https://Stackoverflow.com/users/20305399",
"pm_score": -1,
"selected": false,
"text": "String diff: StringUtils.difference(one, two);\nSystem.out.println(diff);\n"
},
{
"answer_id": 74496997,... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20544212/"
] |
74,496,881 | <p>I have an app in flutter that gives me a snapshot.data but I need to add a fixed text before the snapshot.data
Example: "Position:" snapshot.data</p>
<pre><code> drawer: new Drawer(
child: new ListView(
children: <Widget>[
new UserAccountsDrawerHeader(
//ac... | [
{
"answer_id": 74496913,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 0,
"selected": false,
"text": " return RichText(\n text: TextSpan(\n children: [\n ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20264085/"
] |
74,496,885 | <p>I have a spark dataframe. I attempt to drop a column, but in some situations the column appears to still be there.</p>
<pre><code>my_range = spark.range(1000).toDF("number")
new_range = my_range.withColumn('num2', my_range.number*2).drop('number')
# can still sort by "number" column
new_range.so... | [
{
"answer_id": 74496913,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 0,
"selected": false,
"text": " return RichText(\n text: TextSpan(\n children: [\n ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74496885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5767904/"
] |
74,497,005 | <p>I'm trying to write a SQL query to count the number of requests received every 15 minutes within the past hour. I want to return the last three 15 minute intervals.</p>
<p>My data looks like:</p>
<pre><code>log_date, time
2022-11-18, 2022-11-18 17:00:00 UTC
2022-11-18, 2022-11-18 17:10:00 UTC
2022-11-18, 2022-11-18 ... | [
{
"answer_id": 74497186,
"author": "etsuhisa",
"author_id": 13841016,
"author_profile": "https://Stackoverflow.com/users/13841016",
"pm_score": 2,
"selected": true,
"text": "time TIMESTAMPADD SELECT * FROM (\n SELECT\n log_date,\n TIMESTAMPADD(\n MINUTE,\n hour(time) * 6... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10689661/"
] |
74,497,009 | <p>So I am still learning Swift and for some reason, I am having the hardest trouble with the previews and how to configure them.</p>
<p>So I have the following code:</p>
<pre><code>struct MainView: View {
// The app's model that the containing scene passes in
@ObservedObject var model: MainViewModel
@... | [
{
"answer_id": 74497086,
"author": "Mr Developer",
"author_id": 20384561,
"author_profile": "https://Stackoverflow.com/users/20384561",
"pm_score": 3,
"selected": true,
"text": "struct MyExamplePreviews: PreviewProvider{\n static var previews: some View {\n MainView(model: MainV... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19566858/"
] |
74,497,025 | <p>I'm using the latest version of SQL Server and have the following problem. Given the table below, the requirement, quite simply, is to delete "trailing" records in each <code>_category</code> partition that have <code>_value = 0</code>. Trailing in this context means, when the records are placed in <code>_... | [
{
"answer_id": 74497074,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": false,
"text": "SELECT _id, _catrgory, _date, _value\nFROM #x x1\nWHERE _value <> 0 OR\n EXISTS (\n SELECT 1\n ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497025",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6658435/"
] |
74,497,027 | <p><a href="https://i.stack.imgur.com/GKpcX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GKpcX.png" alt="enter image description here" /></a></p>
<p>Here I want to operate the code in line 14. But is is type error. Can we make remove it making both int or anything.</p>
| [
{
"answer_id": 74497074,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": false,
"text": "SELECT _id, _catrgory, _date, _value\nFROM #x x1\nWHERE _value <> 0 OR\n EXISTS (\n SELECT 1\n ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20429919/"
] |
74,497,048 | <p>I can enter into my terminal (wsl) python3 filename.py and the code executes in the terminal just fine. But when I hit the play button (Run Python File) I get errors</p>
<p>C:/Users/user1/AppData/Local/Programs/Python/Python311/python.exe "c:/Online Learning/Coder Academy/Python/Lesson-3/test.py"
zsh: no s... | [
{
"answer_id": 74497074,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": false,
"text": "SELECT _id, _catrgory, _date, _value\nFROM #x x1\nWHERE _value <> 0 OR\n EXISTS (\n SELECT 1\n ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497048",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20260141/"
] |
74,497,075 | <p>This is the dataframe:</p>
<pre><code>data = {"Company" : [["ConsenSys"] , ["Cognizant"], ["IBM"], ["IBM"], ["Reddit, Inc"], ["Reddit, Inc"], ["IBM"]],
"skills" : [['services', 'scientist technical expertise', 'databases'], ['d... | [
{
"answer_id": 74497127,
"author": "Jason Baker",
"author_id": 3249641,
"author_profile": "https://Stackoverflow.com/users/3249641",
"pm_score": 1,
"selected": false,
"text": "words = [\"services\", \"statistical analysis\"]\ndff[\"found\"] = dff[\"skills\"].apply(lambda x: \", \".join(s... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16792946/"
] |
74,497,078 | <p>I am using webpack with react. I have set up config for both production and development. I am getting this error in my src/index.js file:</p>
<p>ERROR in ./src/index.js 11:1
Module parse failed: Unexpected token (11:1)
You may need an appropriate loader to handle this file type, currently no loaders are configured t... | [
{
"answer_id": 74497163,
"author": "Yilmaz",
"author_id": 10262805,
"author_profile": "https://Stackoverflow.com/users/10262805",
"pm_score": 0,
"selected": false,
"text": "js/jsx { test: /\\.(js|jsx)/, loader: \"babel-loader\", exclude: /node_modules/ },\n npm install babel-loader"
... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10993708/"
] |
74,497,081 | <p>I am new to dart so sorry if I'm missing something obvious
I'm writing a code to add elements to this Set<List> which works fine, but when I try to check if the element exists or to delete it does not work.</p>
<p>here's the code</p>
<pre><code>void main(List<String> args) {
Set<List<double>&g... | [
{
"answer_id": 74497163,
"author": "Yilmaz",
"author_id": 10262805,
"author_profile": "https://Stackoverflow.com/users/10262805",
"pm_score": 0,
"selected": false,
"text": "js/jsx { test: /\\.(js|jsx)/, loader: \"babel-loader\", exclude: /node_modules/ },\n npm install babel-loader"
... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12203173/"
] |
74,497,103 | <p>What I need is to be able to customize <code>textAreaCount</code> and other props in each separate instance of <code><Texarea/></code>. The <code>textAreaCount</code> is different for each <code><Texarea/></code> so how do I modify the component to be able to pass in custom <code>textAreaCount</code> for... | [
{
"answer_id": 74497163,
"author": "Yilmaz",
"author_id": 10262805,
"author_profile": "https://Stackoverflow.com/users/10262805",
"pm_score": 0,
"selected": false,
"text": "js/jsx { test: /\\.(js|jsx)/, loader: \"babel-loader\", exclude: /node_modules/ },\n npm install babel-loader"
... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6263953/"
] |
74,497,110 | <p>I have this text:</p>
<pre><code>>A1
KKKKKKKK
DDDDDDDD
>A2
FFFFFFFF
FFFFOOOO
DAA
>A3
OOOZDDD
KKAZAAA
A
</code></pre>
<p>When I split it and remove the line jumps, I get this list:</p>
<p>It gives me a list that looks like this:</p>
<pre><code>['>A1', 'KKKKKKKK', 'DDDDDDDD', '>A2', 'FFFFFFFF', 'FFFFO... | [
{
"answer_id": 74497129,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 1,
"selected": false,
"text": "itertools.groupby from itertools import groupby\n\nlst = [\n \">A1\",\n \"KKKKKKKK\",\n \"DDDDDDDD\... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4652872/"
] |
74,497,115 | <p>I am looking to understand why this code is giving me different results.</p>
<p>I want to format <code>2022-10-12T00:00:00.000Z</code> into <code>yyyy-MM-dd</code> format.</p>
<ul>
<li>Result when I run it online in Java IDE: <code>2022-10-12</code></li>
<li>But on my own computer the result is: <code>2022-10-11</co... | [
{
"answer_id": 74497179,
"author": "guoxinyu",
"author_id": 19991084,
"author_profile": "https://Stackoverflow.com/users/19991084",
"pm_score": 0,
"selected": false,
"text": "Date SimpleDateFormat LocalDate.now()\nDateTimeFormatter.ofPattern(\"yyyy-MM-dd\").format(LocalDate.now())\n"
}... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4375671/"
] |
74,497,132 | <pre><code>weight = float(input("weight: "))
unit = input("(K)g or (L)bs: ")
if unit.upper == "K":
converted = weight*2.2
print("Weight in Lbs: " + str(converted))
else:
converted = weight/2.2
print("Weight in kgs: " + str(converted))
print("Conver... | [
{
"answer_id": 74497173,
"author": "scotscotmcc",
"author_id": 15804190,
"author_profile": "https://Stackoverflow.com/users/15804190",
"pm_score": -1,
"selected": false,
"text": "unit.upper() () str.upper if unit.upper == 'K' unit.upper"
},
{
"answer_id": 74497278,
"author": ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20544446/"
] |
74,497,143 | <p>UPDATE: This has been solved. I created a "calculated variable" in tableau called [Lab Volume] and put this code into the calculation:</p>
<pre><code>If [Average Results Per Day] <= 25 THEN 'Low'
ELSEIF [Average Results Per Day] > 25 and [Average Results Per Day] < 75 THEN 'Medium'
ELSEIF [Averag... | [
{
"answer_id": 74497173,
"author": "scotscotmcc",
"author_id": 15804190,
"author_profile": "https://Stackoverflow.com/users/15804190",
"pm_score": -1,
"selected": false,
"text": "unit.upper() () str.upper if unit.upper == 'K' unit.upper"
},
{
"answer_id": 74497278,
"author": ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20161227/"
] |
74,497,144 | <p>So I have a navigation bar menu in my html which has a hover effect to the links.
When I am setting the margin property to auto, the hover effect moves from the center to the edges of the links.</p>
<pre><code>.nav-links ul li::after {
content: '';
background-color: #f44336;
display: block;
width: 0%... | [
{
"answer_id": 74497198,
"author": "Ethan",
"author_id": 17493431,
"author_profile": "https://Stackoverflow.com/users/17493431",
"pm_score": 0,
"selected": false,
"text": "auto"
},
{
"answer_id": 74497409,
"author": "Alohci",
"author_id": 42585,
"author_profile": "htt... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19163367/"
] |
74,497,187 | <p>When writing C code, I might want to define a constant array in a header file so that it may be used in multiple <code>.c</code> files.</p>
<p>Take the following example:</p>
<p><strong>main.c</strong></p>
<pre class="lang-c prettyprint-override"><code>#include <stdio.h>
#include "main.h"
int main()... | [
{
"answer_id": 74497198,
"author": "Ethan",
"author_id": 17493431,
"author_profile": "https://Stackoverflow.com/users/17493431",
"pm_score": 0,
"selected": false,
"text": "auto"
},
{
"answer_id": 74497409,
"author": "Alohci",
"author_id": 42585,
"author_profile": "htt... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2325057/"
] |
74,497,208 | <pre><code>class Student:
def __init__(self, name, major, gpa, onProbation):
self.name = name
self.major = major
self.gpa = gpa
self.onProbation = onProbation
Student1 = Student("Josh", "Business", 3.8, False)
Student2 = Student("Maya",... | [
{
"answer_id": 74497230,
"author": "TheCableGUI",
"author_id": 16614773,
"author_profile": "https://Stackoverflow.com/users/16614773",
"pm_score": -1,
"selected": false,
"text": "\nclass Student:\n\n def __init__(self, name: str, major: str, gpa:float, onProbation: bool):\n sel... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20544301/"
] |
74,497,224 | <p>I am using Astradb and want to know specific information about my database and I am unable to write a nodetool status query in astradb</p>
<p>I tried running noodtool status query in CQL of astraDB but it is showing "no viable alternative at input 'nodetool' ([nodetool]...)".</p>
| [
{
"answer_id": 74497230,
"author": "TheCableGUI",
"author_id": 16614773,
"author_profile": "https://Stackoverflow.com/users/16614773",
"pm_score": -1,
"selected": false,
"text": "\nclass Student:\n\n def __init__(self, name: str, major: str, gpa:float, onProbation: bool):\n sel... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13438500/"
] |
74,497,235 | <p>I started programming not long ago and came across this problem. I want to collect stock data from the website: <a href="https://statusinvest.com.br/acoes/petr4" rel="nofollow noreferrer">https://statusinvest.com.br/acoes/petr4</a>. But apparently they are rendered with javascript and BeautifulSoup does not collect,... | [
{
"answer_id": 74497230,
"author": "TheCableGUI",
"author_id": 16614773,
"author_profile": "https://Stackoverflow.com/users/16614773",
"pm_score": -1,
"selected": false,
"text": "\nclass Student:\n\n def __init__(self, name: str, major: str, gpa:float, onProbation: bool):\n sel... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19396132/"
] |
74,497,293 | <p>We can use Arrays.asList( ) method for String[ ] and Integer[ ] arrays. Can we use the char[ ] array in Arrays.asList( ) method?</p>
<pre><code>Arrays.asList(75,85,95,70);
Arrays.asList("String", "Integer", "Character");
</code></pre>
| [
{
"answer_id": 74497407,
"author": "DevAra",
"author_id": 4122324,
"author_profile": "https://Stackoverflow.com/users/4122324",
"pm_score": 0,
"selected": false,
"text": "import java.util.stream.Collectors;\nimport java.util.List;\nchar[] chars = {'c','d','e', 'f','g'};\n List<Cha... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497293",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19670437/"
] |
74,497,309 | <p>I'm trying to write a spring endpoint that generates different reports, depending on the request parameters</p>
<pre><code>@GetMapping
@ResponseBody
public ResponseEntity<String> getReport(
@RequestParam(value = "category") String category,
@Valid ReportRequestDTO reportRequestDTO) {
... | [
{
"answer_id": 74497407,
"author": "DevAra",
"author_id": 4122324,
"author_profile": "https://Stackoverflow.com/users/4122324",
"pm_score": 0,
"selected": false,
"text": "import java.util.stream.Collectors;\nimport java.util.List;\nchar[] chars = {'c','d','e', 'f','g'};\n List<Cha... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11488995/"
] |
74,497,345 | <p>So here is the start of my program. I keep getting the error
boolExpr.y:13:2: error: unknown type name 'bool'
bool boolean;
However when I check the bison generated file, I can see stdbool.h is included at the start of the program executing. I can't figure out how a library can be important but then bool not be reco... | [
{
"answer_id": 74497407,
"author": "DevAra",
"author_id": 4122324,
"author_profile": "https://Stackoverflow.com/users/4122324",
"pm_score": 0,
"selected": false,
"text": "import java.util.stream.Collectors;\nimport java.util.List;\nchar[] chars = {'c','d','e', 'f','g'};\n List<Cha... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15575145/"
] |
74,497,365 | <p>I want to use Dymos to solve the optimal control problem:</p>
<p><a href="https://i.stack.imgur.com/vP19g.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>subject to the dynamic system:</p>
<p><a href="https://i.stack.imgur.com/c4s87.png" rel="nofollow noreferrer">enter image description here</... | [
{
"answer_id": 74500395,
"author": "Justin Gray",
"author_id": 2301186,
"author_profile": "https://Stackoverflow.com/users/2301186",
"pm_score": 2,
"selected": false,
"text": "traj traj traj ExecComp timeseries import numpy as np\nimport openmdao.api as om\nimport dymos as dm\nimport mat... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7655701/"
] |
74,497,395 | <p>I have a csv that looks like</p>
<pre><code>AccountExternalID Customer
1 RogerInc
2 FredLLC
</code></pre>
<p>I am turning that into a Pandas DF, and I want to turn that into a dict that looks like</p>
<p>{'RogerInc': 1, 'FredLLC': 2}</p>
<p>This is what I tried;</p>
<pre><cod... | [
{
"answer_id": 74500395,
"author": "Justin Gray",
"author_id": 2301186,
"author_profile": "https://Stackoverflow.com/users/2301186",
"pm_score": 2,
"selected": false,
"text": "traj traj traj ExecComp timeseries import numpy as np\nimport openmdao.api as om\nimport dymos as dm\nimport mat... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20497632/"
] |
74,497,399 | <p>I have the following data that looks like this:</p>
<pre><code>my_data = c("red A1B 5L2 101", "blue A1C 5L8 10872", "Green A1D 5L5 100003" )
</code></pre>
<p><strong>Starting from the right hand side of each string, I wanted to remove the number as well as the spaces before the numbe... | [
{
"answer_id": 74500395,
"author": "Justin Gray",
"author_id": 2301186,
"author_profile": "https://Stackoverflow.com/users/2301186",
"pm_score": 2,
"selected": false,
"text": "traj traj traj ExecComp timeseries import numpy as np\nimport openmdao.api as om\nimport dymos as dm\nimport mat... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13203841/"
] |
74,497,401 | <p>I have two very large lists, and I want use one loop for iterating over two of them with the different sliding windows. Is that possible? if not, what is the best way?</p>
<blockquote>
<p>For example,
I have A and B, I want a loop which provide the summation of sliding window 2 of list B and sliding window of size 3... | [
{
"answer_id": 74500395,
"author": "Justin Gray",
"author_id": 2301186,
"author_profile": "https://Stackoverflow.com/users/2301186",
"pm_score": 2,
"selected": false,
"text": "traj traj traj ExecComp timeseries import numpy as np\nimport openmdao.api as om\nimport dymos as dm\nimport mat... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20224348/"
] |
74,497,414 | <p>I would like to print 10, but I get the error: <code>AttributeError: 'function' object has no attribute 'x'</code></p>
<p>How to fix? Thank you</p>
<pre><code>def function1():
def x():
a=10
return a
def function2():
y = function1.x()
return y
function2()
</code></pre>
| [
{
"answer_id": 74497423,
"author": "Samathingamajig",
"author_id": 12101554,
"author_profile": "https://Stackoverflow.com/users/12101554",
"pm_score": -1,
"selected": true,
"text": "return x function1 def function1():\n def x(): \n a=10\n return a\n return x\n \ndef ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20430033/"
] |
74,497,439 | <p>Sometimes I need to delete from half till end of the scope, how to do that in vim
I know that I can delete everything inside {} with <code>di{</code> but I want to delete just half</p>
<p>Here is a ScreenShot for more details:</p>
<p><img src="https://i.stack.imgur.com/6vP8F.png" alt="Code Preview" /></p>
<p>or how ... | [
{
"answer_id": 74497522,
"author": "Max Shen",
"author_id": 20297231,
"author_profile": "https://Stackoverflow.com/users/20297231",
"pm_score": 0,
"selected": false,
"text": "d/}<Enter>\n"
},
{
"answer_id": 74499038,
"author": "romainl",
"author_id": 546861,
"author_p... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497439",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20544845/"
] |
74,497,460 | <p>I want to use the structure of model's rodo.rs in controller's todo.rs.
How should I write the mod?</p>
<pre><code>
use actix_web::{get, post, web, HttpResponse,Responder};
mod model;
#[get("/todos/{id}")]
pub async fn get_todo(web::Path(id): web::Path<u32>) -> impl Responder {
println!("... | [
{
"answer_id": 74497522,
"author": "Max Shen",
"author_id": 20297231,
"author_profile": "https://Stackoverflow.com/users/20297231",
"pm_score": 0,
"selected": false,
"text": "d/}<Enter>\n"
},
{
"answer_id": 74499038,
"author": "romainl",
"author_id": 546861,
"author_p... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497460",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20396543/"
] |
74,497,496 | <pre><code>#include <stdio.h>
int main()
{
int inpa, med, oper, day, total;
char agree;
printf(" Bach Mai Hospital");
printf("\n\nHello, please enter your fee and we will calculate\npayment based on your insurance\n");
printf("How many days have you been... | [
{
"answer_id": 74497522,
"author": "Max Shen",
"author_id": 20297231,
"author_profile": "https://Stackoverflow.com/users/20297231",
"pm_score": 0,
"selected": false,
"text": "d/}<Enter>\n"
},
{
"answer_id": 74499038,
"author": "romainl",
"author_id": 546861,
"author_p... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497496",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20544865/"
] |
74,497,502 | <p>Hi I am trying to write a function that will test for a valid URL I found this</p>
<pre><code> const pattern = new RegExp(
'^(https?:\\/\\/)?' + // protocol
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // domain name
'((\\d{1,3}\\.){3}\\d{1,3}))' + // OR ip (v4) address
'(\\:\\d... | [
{
"answer_id": 74497507,
"author": "chovy",
"author_id": 33522,
"author_profile": "https://Stackoverflow.com/users/33522",
"pm_score": -1,
"selected": false,
"text": "const url = new URL('http://....');\n"
},
{
"answer_id": 74497566,
"author": "Build For Dev",
"author_id"... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2411628/"
] |
74,497,559 | <p>I just designed a simple sign-in form to practice CSS and HTML but I can't align 2 divs horizontally to input my name and surname.</p>
<p>Actually, I can't understand why if I apply a width of 50% they are stuck on top of each other and if I apply 49% width they are perfectly horizontally aligned as I want.</p>
<p>M... | [
{
"answer_id": 74497507,
"author": "chovy",
"author_id": 33522,
"author_profile": "https://Stackoverflow.com/users/33522",
"pm_score": -1,
"selected": false,
"text": "const url = new URL('http://....');\n"
},
{
"answer_id": 74497566,
"author": "Build For Dev",
"author_id"... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9962676/"
] |
74,497,572 | <p>I am trying to insert values from a datetimepicker into a database, but I get an unhandled exception</p>
<blockquote>
<p>Conversion failed when converting date and/or time from character string</p>
</blockquote>
<p>This is the code I used:</p>
<pre><code>private void bunifuFlatButton8_Click(object sender, EventArgs ... | [
{
"answer_id": 74497634,
"author": "Mustafa Ozbalci",
"author_id": 12167812,
"author_profile": "https://Stackoverflow.com/users/12167812",
"pm_score": -1,
"selected": true,
"text": "private void bunifuFlatButton8_Click(object sender, EventArgs e)\n{\n if (OrderID.Text == \"\" || Custo... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20545003/"
] |
74,497,573 | <p>I'm a junior web developer trying to develop my first Ruby on Rails project. I'm following this guide to deploy the app on render.com.</p>
<p>However, after installing rails and following this command to create a database (I'm on Ubuntu):</p>
<pre><code>rails db:create
</code></pre>
<p>I come across this problem in ... | [
{
"answer_id": 74497735,
"author": "dwhitemv",
"author_id": 20545176,
"author_profile": "https://Stackoverflow.com/users/20545176",
"pm_score": 0,
"selected": false,
"text": "sudo systemctl start postgresql"
},
{
"answer_id": 74514012,
"author": "Monarch Wadia",
"author_i... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497573",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20544975/"
] |
74,497,596 | <p><a href="https://i.stack.imgur.com/MCmuO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MCmuO.png" alt="enter image description here" /></a></p>
<p>Here, line segment ab is cast upward on arbitrary vector n where I do somethings to find the black point on the line segment cd. My question is, how ... | [
{
"answer_id": 74497735,
"author": "dwhitemv",
"author_id": 20545176,
"author_profile": "https://Stackoverflow.com/users/20545176",
"pm_score": 0,
"selected": false,
"text": "sudo systemctl start postgresql"
},
{
"answer_id": 74514012,
"author": "Monarch Wadia",
"author_i... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20544997/"
] |
74,497,624 | <p>I'm trying to code a gradebook as a project. So far I have developed the code to calculate exam grades and display the outputs however, I'm having trouble displaying my arrays once the user inputs the information (Student first and last name, ID and Exams) It wont display it. Also my code still wants to add user in... | [
{
"answer_id": 74497735,
"author": "dwhitemv",
"author_id": 20545176,
"author_profile": "https://Stackoverflow.com/users/20545176",
"pm_score": 0,
"selected": false,
"text": "sudo systemctl start postgresql"
},
{
"answer_id": 74514012,
"author": "Monarch Wadia",
"author_i... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497624",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20429705/"
] |
74,497,652 | <p>Trying to get the submenu items in antd scrollable, with the below code</p>
<p>Codesandbox Link: <a href="https://codesandbox.io/s/dazzling-antonelli-t4g3nu?file=/index.js" rel="nofollow noreferrer">https://codesandbox.io/s/dazzling-antonelli-t4g3nu?file=/index.js</a></p>
<pre><code>import ReactDOM from "react-... | [
{
"answer_id": 74497724,
"author": "sms",
"author_id": 16835747,
"author_profile": "https://Stackoverflow.com/users/16835747",
"pm_score": 3,
"selected": true,
"text": "<SubMenu\n key=\"sub4\"\n title={\n <span>\n <Icon type=\"setting\" />\n <span>Navig... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8146699/"
] |
74,497,661 | <p>Suppose I have <strong>N</strong> float variables <code>x0</code>, <code>x1</code>, <code>x2</code>, ..., <code>xn</code>.</p>
<p>I basically want to loop through each of them and sum them all in a final variable <code>sum</code>.</p>
<p>I'm in a context where I cannot make use of data structures like arrays, vector... | [
{
"answer_id": 74497745,
"author": "Iłya Bursov",
"author_id": 2864275,
"author_profile": "https://Stackoverflow.com/users/2864275",
"pm_score": 2,
"selected": true,
"text": "#define SUM_X0 (x0)\n#define SUM_X1 (SUM_X0 + x1)\n#define SUM_X2 (SUM_X1 + x2)\n#define SUM_X3 (SUM_X2 + x3)\n#d... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5348875/"
] |
74,497,703 | <p>I created a page that displays goods, next to every good there is a button with which you can select or deselect the good. My problem is, when I click on any of my buttons, all buttons change. How can I make it so that the callback function responsible for changing the state of the button only applies to the one tha... | [
{
"answer_id": 74497745,
"author": "Iłya Bursov",
"author_id": 2864275,
"author_profile": "https://Stackoverflow.com/users/2864275",
"pm_score": 2,
"selected": true,
"text": "#define SUM_X0 (x0)\n#define SUM_X1 (SUM_X0 + x1)\n#define SUM_X2 (SUM_X1 + x2)\n#define SUM_X3 (SUM_X2 + x3)\n#d... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18126421/"
] |
74,497,712 | <p>I would like to know how to make new columns that are row sums of existing columns using a loop.
Given this data,</p>
<pre><code>df <- data.frame(A=c(22, 25, 29, 13, 22, 30),
B=c(12, 10, 6, 6, 8, 11),
C=c(NA, 15, 15, 18, 22, 13))
</code></pre>
<p>I would like to make two columns ... | [
{
"answer_id": 74497745,
"author": "Iłya Bursov",
"author_id": 2864275,
"author_profile": "https://Stackoverflow.com/users/2864275",
"pm_score": 2,
"selected": true,
"text": "#define SUM_X0 (x0)\n#define SUM_X1 (SUM_X0 + x1)\n#define SUM_X2 (SUM_X1 + x2)\n#define SUM_X3 (SUM_X2 + x3)\n#d... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497712",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17303844/"
] |
74,497,718 | <p>in following code:
`</p>
<pre><code>#include <iostream>
struct MyStruct {
int i = 1;
};
int main() {
MyStruct(some); // some is actually a variable name, it compiles, is it in the
// c++ standard?
std::cout << some.i << std::endl;
}
</code></pre>
<p>`</p>
<p>why can i initi... | [
{
"answer_id": 74497745,
"author": "Iłya Bursov",
"author_id": 2864275,
"author_profile": "https://Stackoverflow.com/users/2864275",
"pm_score": 2,
"selected": true,
"text": "#define SUM_X0 (x0)\n#define SUM_X1 (SUM_X0 + x1)\n#define SUM_X2 (SUM_X1 + x2)\n#define SUM_X3 (SUM_X2 + x3)\n#d... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18579739/"
] |
74,497,722 | <p>I have this below code:</p>
<pre class="lang-java prettyprint-override"><code>import java.util.HashMap;
import java.util.Map;
public class Demo {
public static void main(String[] args) {
Map<String, String> map = new HashMap<>();
map.put("colors", "Red, Green, Blue, ... | [
{
"answer_id": 74497755,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "Map<String, String> map = new HashMap<>();\n\nmap.put(\"colors\", \"Red, Green, Blue, Purple\");\nmap.put(\"numbers\", \"One... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497722",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16002380/"
] |
74,497,732 | <p>I'm new to C and have read that each function may only be defined once, but I can't seem to reconcile this with what I'm seeing in the console. For example, I am able to overwrite the definition of <code>printf</code> without an error or warning:</p>
<pre class="lang-c prettyprint-override"><code>#include <stdio.... | [
{
"answer_id": 74499264,
"author": "ThongDT",
"author_id": 19344229,
"author_profile": "https://Stackoverflow.com/users/19344229",
"pm_score": -1,
"selected": false,
"text": "declaration definition declaration"
},
{
"answer_id": 74500049,
"author": "Eric Postpischil",
"au... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10841085/"
] |
74,497,748 | <p>I have this program that I finally finished however I am trying to get it after finishing once to prompt the user "Do you wish to run again? Yes(Y), No(N)". But I also want it to ask for s2 again, and the ch again as well. Keeping s1 to be the same random string if that makes sense.</p>
<p>This is my code:... | [
{
"answer_id": 74497961,
"author": "Allan Wind",
"author_id": 9706,
"author_profile": "https://Stackoverflow.com/users/9706",
"pm_score": 1,
"selected": false,
"text": "EOF for(;;)\n {\n int s1_index = 41;\n char s1_random[s1_index];\n s1(s1_random);\n ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20544996/"
] |
74,497,752 | <p>I'm trying to solve a question from PepCoding, Graph Foundation 1, Shortest Path In Weights, and replicating the solution from Java to Python.</p>
<p>Question:</p>
<pre><code>1. You are given a graph and a source vertex. The vertices represent cities and the edges represent
distance in kms.
2. You are required ... | [
{
"answer_id": 74497961,
"author": "Allan Wind",
"author_id": 9706,
"author_profile": "https://Stackoverflow.com/users/9706",
"pm_score": 1,
"selected": false,
"text": "EOF for(;;)\n {\n int s1_index = 41;\n char s1_random[s1_index];\n s1(s1_random);\n ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20274823/"
] |
74,497,758 | <p>I have a problem with the All function. I would like to use the random result of the Template1 function and the random result of the Template2 function. Then I apply another random to the two functions inside All, but I get the error:</p>
<pre><code>NameError: the name 'Template1' is not defined
</code></pre>
<p>How... | [
{
"answer_id": 74497771,
"author": "gtj520",
"author_id": 19920392,
"author_profile": "https://Stackoverflow.com/users/19920392",
"pm_score": 0,
"selected": false,
"text": "list0 = [Template1(self), Template2(self)] [self.Template1(), self.Template2()] def __init__(self):\n self.templ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20430033/"
] |
74,497,812 | <p>I have a warning that says</p>
<pre><code>Warning: You provided a `value` prop to a form field without an `onChange` handler.
This will render a read-only field. If the field should be mutable use `defaultValue`.
`Otherwise, set either `onChange` or `readOnly`.`
</code></pre>
<p>Of course, I have googled a solution... | [
{
"answer_id": 74497930,
"author": "Dev-Siri",
"author_id": 18646049,
"author_profile": "https://Stackoverflow.com/users/18646049",
"pm_score": 0,
"selected": false,
"text": "const [allStates, setAllStates] = useState({\n value_one: 'I will be display in the input initially', // <-- Thi... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6707111/"
] |
74,497,867 | <p>so I'm making a text-based game in python and I'm trying to create an option which allows the user to return to the question if their answer was incorrect. It works like this:</p>
<p>There are three options to a question, 1,2,3. 1 and 3 are the incorrect option which will fail the user, then they will have the optio... | [
{
"answer_id": 74497930,
"author": "Dev-Siri",
"author_id": 18646049,
"author_profile": "https://Stackoverflow.com/users/18646049",
"pm_score": 0,
"selected": false,
"text": "const [allStates, setAllStates] = useState({\n value_one: 'I will be display in the input initially', // <-- Thi... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20408338/"
] |
74,497,887 | <p>A couple of days ago the code worked, but now it gives an error, please help
`</p>
<pre class="lang-py prettyprint-override"><code>#оповищение о новом сервере
@client.event
async def on_guild_join( guild ):
me = client.get_user(404915501727219723)
emb = discord.Embed( title = f'Я пришел на новый сервер' )... | [
{
"answer_id": 74497930,
"author": "Dev-Siri",
"author_id": 18646049,
"author_profile": "https://Stackoverflow.com/users/18646049",
"pm_score": 0,
"selected": false,
"text": "const [allStates, setAllStates] = useState({\n value_one: 'I will be display in the input initially', // <-- Thi... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20545363/"
] |
74,497,917 | <p><strong>Context</strong></p>
<p>I have a working standard form, with method POST, with a standard submit button, and I would like to leave this in this way.</p>
<pre><code><form id="myform" method="post"... >
...
<input type="submit .../>
</form>
</code></pre>
<p>Ho... | [
{
"answer_id": 74498046,
"author": "Rehman Ahmed Khan",
"author_id": 14447630,
"author_profile": "https://Stackoverflow.com/users/14447630",
"pm_score": 0,
"selected": false,
"text": "<form id=\"my-form\" method=\"post\"... >\n ...\n <button id=\"btn-submit\" type=\"button\" .../>\... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1157814/"
] |
74,497,924 | <pre><code><!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.js... | [
{
"answer_id": 74498046,
"author": "Rehman Ahmed Khan",
"author_id": 14447630,
"author_profile": "https://Stackoverflow.com/users/14447630",
"pm_score": 0,
"selected": false,
"text": "<form id=\"my-form\" method=\"post\"... >\n ...\n <button id=\"btn-submit\" type=\"button\" .../>\... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497924",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20033714/"
] |
74,497,938 | <p>I have an abstract base class validator with a method which takes a generic type as parameter.
I will be passing generic type parameter to base class from the subclass inheriting the base class.</p>
<p><strong>Base Class:</strong></p>
<pre><code>abstract class BaseValidator {
bool isValid<T>(T obj);
}
</cod... | [
{
"answer_id": 74498110,
"author": "Kasymbek R. Tashbaev",
"author_id": 14891973,
"author_profile": "https://Stackoverflow.com/users/14891973",
"pm_score": 2,
"selected": true,
"text": "abstract class BaseValidator<T> {\n bool isValid(T obj);\n}\n\nclass IPv4Validator extends BaseValida... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9248098/"
] |
74,497,942 | <p>I have an array of images:</p>
<pre><code>const imageArray = Object.entries(profileData.images)
//imageArray = ["0": "http://imagelink1", "1" : "http://imagelink2"]
</code></pre>
<p>I am setting an initial state of images array to</p>
<pre><code> const [imageUrl, setImageUr... | [
{
"answer_id": 74497980,
"author": "Mina",
"author_id": 11887902,
"author_profile": "https://Stackoverflow.com/users/11887902",
"pm_score": 1,
"selected": false,
"text": "Array n fill map imageArray const [imageUrl, setImageUrl] = useState(Array(6).fill(undefined).map((item, index) => ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497942",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3717114/"
] |
74,497,953 | <p>I have a dataframe with one column and one row like:</p>
<pre><code>list_id
12,13,14,16
</code></pre>
<p>The <code>list_id</code> column type is <code>Object</code>:</p>
<pre><code>df['list'].dtypes => Object
</code></pre>
<p>When I try to get the number of elements in this column</p>
<pre><code>l = list(df.list_... | [
{
"answer_id": 74498012,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 0,
"selected": false,
"text": "list_id df['list_id'].str.len()\n ',' df['list_id'].str.count(',') + df['list_id'].ne('')\n 0 4\nName: list_id, ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19917575/"
] |
74,497,994 | <p>I made a program to find primes below a given number.</p>
<pre><code>number = int(input("Enter number: "))
prime_numbers = [2] # First prime is needed.
for number_to_be_checked in range(3, number + 1):
square_root = number_to_be_checked ** 0.5
for checker in prime_numbers: # Checker will become... | [
{
"answer_id": 74498933,
"author": "rossum",
"author_id": 820127,
"author_profile": "https://Stackoverflow.com/users/820127",
"pm_score": 0,
"selected": false,
"text": "function listPrimes(n)\n // Deal with low numbers.\n if (n < 2) return []\n if (n = 2) return [2]\n if (n = 3) retu... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74497994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18092470/"
] |
74,498,003 | <p>in the below array i want to filter out records, that match the substring "11/2022" for key StartTime</p>
<pre><code>[
{
StartTime: '17/10/2022 14:45',
Duration: '000:00:44:32',
},
{
StartTime: '17/11/2022 14:45',
Duration: '000:00:44:30',
},
{
StartTime: '18/11/2022 14:45',... | [
{
"answer_id": 74498933,
"author": "rossum",
"author_id": 820127,
"author_profile": "https://Stackoverflow.com/users/820127",
"pm_score": 0,
"selected": false,
"text": "function listPrimes(n)\n // Deal with low numbers.\n if (n < 2) return []\n if (n = 2) return [2]\n if (n = 3) retu... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74498003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10298898/"
] |
74,498,007 | <p>I have created app registration in azure active directory. I'm trying to invoke an azure ad authenticated with below PowerShell script, but it always display an error:</p>
<pre><code>$clientID = '<clientID>'
$secretKey = '<key>'
$tenantID = '<TenantID>'
$password = ConvertTo-SecureString -String $... | [
{
"answer_id": 74498350,
"author": "Charles Han",
"author_id": 11514907,
"author_profile": "https://Stackoverflow.com/users/11514907",
"pm_score": 0,
"selected": false,
"text": "\"scope\" = \"api://a193b314b-7854-9aab-bb78-6a50ffxxxxxx/.default\"\n"
},
{
"answer_id": 74498366,
... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74498007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20545442/"
] |
74,498,017 | <p>Given this working version</p>
<pre><code>IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO-WORLD.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 UC-COUNTER PIC 99.
01 LC-COUNTER PIC 99.
PROCEDURE DIVISION.
INSPECT "My dog has fleas"
TALLYING UC-COUNTER FOR ALL 'A','B','C','D','E','F',
'G','H... | [
{
"answer_id": 74501341,
"author": "Rick Smith",
"author_id": 9170346,
"author_profile": "https://Stackoverflow.com/users/9170346",
"pm_score": 2,
"selected": false,
"text": "ALPHABETIC-UPPER ALPHABETIC-LOWER INSPECT INSPECT data division.\n working-storage section.\n 01 uc-counte... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74498017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/426/"
] |
74,498,025 | <p>I create a website where there is a normal user and admin. They both have different log in system.But the problem is when a user logged in as a user, he also logged in into admin page. Also when a admin logged in, he also logged in into user page.</p>
<pre><code>def userlogin(request):
error = ""
i... | [
{
"answer_id": 74501341,
"author": "Rick Smith",
"author_id": 9170346,
"author_profile": "https://Stackoverflow.com/users/9170346",
"pm_score": 2,
"selected": false,
"text": "ALPHABETIC-UPPER ALPHABETIC-LOWER INSPECT INSPECT data division.\n working-storage section.\n 01 uc-counte... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74498025",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15856442/"
] |
74,498,033 | <p>I am very new to programming and to stackOverflow. I am implementing First Come First Serve(FCFS).But I am getting array index out of bound exception, while entering input in []ArrivalTime I can be a silly mistake but i can not figure out why ,Please help me</p>
<pre><code>import java.util.Scanner;
public class FCF... | [
{
"answer_id": 74501341,
"author": "Rick Smith",
"author_id": 9170346,
"author_profile": "https://Stackoverflow.com/users/9170346",
"pm_score": 2,
"selected": false,
"text": "ALPHABETIC-UPPER ALPHABETIC-LOWER INSPECT INSPECT data division.\n working-storage section.\n 01 uc-counte... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74498033",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20545530/"
] |
74,498,051 | <p>I'm attempting to solve some Java questions and I came across a question that asked me to print out a diamond of size <code>n</code>.</p>
<p>Since I got stumped on this question, I decided to look up other's solutions to get an idea as to how I could tackle this problem.</p>
<p>A diamond of size 2 should look like t... | [
{
"answer_id": 74498106,
"author": "user7",
"author_id": 4405757,
"author_profile": "https://Stackoverflow.com/users/4405757",
"pm_score": 3,
"selected": true,
"text": "for(int i = 1; i <= k; i++) {\n for(int j = i; j <= k; j++) {\n ...\n }\n}\n i = 1 j 1 k k k i = 2 j 2 k k - 1 ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74498051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18984687/"
] |
74,498,062 | <p>i'm trying to use the search engine of a website, but captcha blocks me continuously. Is there any way to perform search?</p>
<pre><code>driver = webdriver.Firefox()
driver.implicitly_wait(10) # seconds
driver.get("https://www.autodoc.pl/")
query ='H317W01'
driver.find_element(By.ID, "search").... | [
{
"answer_id": 74498106,
"author": "user7",
"author_id": 4405757,
"author_profile": "https://Stackoverflow.com/users/4405757",
"pm_score": 3,
"selected": true,
"text": "for(int i = 1; i <= k; i++) {\n for(int j = i; j <= k; j++) {\n ...\n }\n}\n i = 1 j 1 k k k i = 2 j 2 k k - 1 ... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74498062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15055027/"
] |
74,498,074 | <p>Let say I want to change color of my element. Unfortunately, after use query Selector method, my code doesn't work but blank. Please anyone can solve this?</p>
<p>I try to select my element to change its color using javascript instead of using css</p>
<pre><code><template>
<br><br><br>
<... | [
{
"answer_id": 74498093,
"author": "Mina",
"author_id": 11887902,
"author_profile": "https://Stackoverflow.com/users/11887902",
"pm_score": 2,
"selected": true,
"text": "setup DOM DOM onMounted <template>\n <br><br><br>\n<h1>Dashboard Page Here</h1>\n</template>\n\n<script>\nexport defa... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74498074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20545571/"
] |
74,498,075 | <p>I have an issue with <code>graphQLSchemaExtension</code></p>
<p>I don’t have active <strong>session</strong> on my custom mutations..</p>
<p>An example below of the beginning of custom mutation
And my graphQLSchemaExtension declaration
And my <code>Keystone.ts</code> file</p>
<p>On my generic <strong>queries/mutatio... | [
{
"answer_id": 74527486,
"author": "Molomby",
"author_id": 762028,
"author_profile": "https://Stackoverflow.com/users/762028",
"pm_score": 1,
"selected": false,
"text": "session context null package.json getRandom keystone.ts import { list, config, graphql } from '@keystone-6/core';\nimp... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74498075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11898473/"
] |
74,498,090 | <p>Let's say my data is <code>df <- c("Author1","Reference1","Abstract1","Author2","Reference2","Abstract2","Author3","Reference3","Author4","Reference4","Abstract4")</code>.</p>
<p>This is a series in which... | [
{
"answer_id": 74498235,
"author": "TarJae",
"author_id": 13321647,
"author_profile": "https://Stackoverflow.com/users/13321647",
"pm_score": 2,
"selected": false,
"text": "x parse_number() readr parse_number() summarise(cur_data()[seq(3),]) library(dplyr)\nlibrary(readr)\n\nmy_vector <-... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74498090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12806202/"
] |
74,498,095 | <p>I have a database in mysql. I want clear field contents that contains specific value.</p>
<p>I have database like this:</p>
<pre class="lang-none prettyprint-override"><code>`id` `cat1` `cat2` `cat3`
1 1185 A1 3185
2 1585 A2 3131
3 2513 B3 3113
4 3369 C4 3333
</... | [
{
"answer_id": 74498100,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 3,
"selected": true,
"text": "LIKE UPDATE table_name SET cat2 = NULL WHERE cat2 LIKE 'A%';\n"
},
{
"answer_id": 74498143,
"auth... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74498095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14002808/"
] |
74,498,105 | <p>I'm using Jupyter notebook to run a PL/SQL script but I get an error. The code block in the notebook is as follows:</p>
<pre><code>%%sql
DECLARE BEGIN
FOR record_item IN (
SELECT
*
FROM
duplicated_records
) LOOP
EXECUTE IMMEDIATE 'UPDATE table_name SET record_... | [
{
"answer_id": 74498199,
"author": "Littlefoot",
"author_id": 9097906,
"author_profile": "https://Stackoverflow.com/users/9097906",
"pm_score": 2,
"selected": false,
"text": "DECLARE EXECUTE IMMEDIATE BEGIN\n FOR record_item IN (SELECT * FROM duplicated_records) LOOP\n UPDATE table_n... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74498105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12031410/"
] |
74,498,204 | <p>if i have</p>
<pre><code>def (a=10, b=2): ...
</code></pre>
<p>how do I unset a=1? I was told I need to not set 'a' but I can't find how to do that on google, it just sets itself to the default value if I don't have it, and I need to completely unset it</p>
<p>the library is madmom and the instruction was "If l... | [
{
"answer_id": 74498253,
"author": "Bohdan",
"author_id": 15171133,
"author_profile": "https://Stackoverflow.com/users/15171133",
"pm_score": 0,
"selected": false,
"text": "def func(a=10, b=2)\n print(a, b)\n func()\n func(20, 3)\n"
}
] | 2022/11/19 | [
"https://Stackoverflow.com/questions/74498204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15673832/"
] |
74,498,217 | <p>My logic calculates and returns a value based on user input, I want to modify that value to always have three decimal digits</p>
<p><strong>For example;</strong></p>
<p><code>1</code> to <code>1.000</code><br />
<code>1.02</code> to <code>1.020</code><br />
<code>2.000004</code> to <code>2.000</code><br />
<code>2.5... | [
{
"answer_id": 74498224,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 3,
"selected": true,
"text": "Number().toFixed() const formatVal = (val,precise = 3) =>{\n return Number(val).toFixed(precise)\n}\n\nconsole.log... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74498217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18617343/"
] |
74,498,252 | <p><a href="https://www.typescriptlang.org/play?#code/C4TwDgpgBAQghgZ2gXig4AnAlgOwOYDaAugFAm7AQYBmcAxtAGID2zUA3lGBs2AFyxE0AL5kKVWg0EYOXHv0FIookqEhQWzeDNSaoAH2lk6zHOiiV0Azdqip2JKE7m8BxEisvAAdN15A" rel="nofollow noreferrer">Playground</a></p>
<pre><code>type Base = string[]
interface Foo { prop: Base }
interface Bar { ... | [
{
"answer_id": 74498224,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 3,
"selected": true,
"text": "Number().toFixed() const formatVal = (val,precise = 3) =>{\n return Number(val).toFixed(precise)\n}\n\nconsole.log... | 2022/11/19 | [
"https://Stackoverflow.com/questions/74498252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2534830/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.