qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,324,600
<pre><code>import datetime from datetime import date today = date.today() user_name = input('What is your name? ') user_age = int(input('How old are you? ')) print('Hello ' + user_name + '! You were born in', today.year - user_age, '.') </code></pre> <p>What is your name? Tyler How old are you? 31 Hello Tyler! You we...
[ { "answer_id": 74324622, "author": "Phillips Olagunju", "author_id": 19143237, "author_profile": "https://Stackoverflow.com/users/19143237", "pm_score": 0, "selected": false, "text": "str()" }, { "answer_id": 74324635, "author": "Virt", "author_id": 20408215, "author_...
2022/11/05
[ "https://Stackoverflow.com/questions/74324600", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20335099/" ]
74,324,626
<p>I have this error, and I don't know what to do</p> <p>This is my code</p> <p>js:</p> <pre><code>var uploadField = document.getElementById(&quot;file&quot;); console.log(uploadField); uploadField.onchange = function() { console.log(&quot;new&quot;) if(this...
[ { "answer_id": 74324622, "author": "Phillips Olagunju", "author_id": 19143237, "author_profile": "https://Stackoverflow.com/users/19143237", "pm_score": 0, "selected": false, "text": "str()" }, { "answer_id": 74324635, "author": "Virt", "author_id": 20408215, "author_...
2022/11/05
[ "https://Stackoverflow.com/questions/74324626", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16827183/" ]
74,324,633
<p><strong>TL;DR: I try to generate large amounts of random numbers from a set of <code>[-1, 1]</code> I found out that <code>np.random.Generator.choice</code> is the worst method while the best one is to use <code>np.random.Generator.random</code> and move from boolean and to integer. Is there a better way to generate...
[ { "answer_id": 74325773, "author": "craigb", "author_id": 20236884, "author_profile": "https://Stackoverflow.com/users/20236884", "pm_score": 3, "selected": true, "text": "rng rng.bytes import numpy as np\n\nm = 65536\nrng = np.random.default_rng()\nmax_int = 2 ** 32\n\ndef choice():\n ...
2022/11/05
[ "https://Stackoverflow.com/questions/74324633", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6361763/" ]
74,324,645
<p>I have a dataset where I will be using the FILTER formula to extract specific values relative to an individual. For each individual, I only want to be extracting the last 2 scores. The data is in descending chronological order so effectively I just need the first 2 entries that exist.</p> <div class="s-table-contain...
[ { "answer_id": 74325636, "author": "Jos Woolley", "author_id": 17007704, "author_profile": "https://Stackoverflow.com/users/17007704", "pm_score": 3, "selected": true, "text": "FILTER TAKE =TAKE(FILTER(A1:C12,B1:B12=B2),2) INDEX SEQUENCE =INDEX(FILTER(A1:C12,B1:B12=B2),SEQUENCE(2),SEQUEN...
2022/11/05
[ "https://Stackoverflow.com/questions/74324645", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20278392/" ]
74,324,646
<p>I am trying to make my <code>&lt;li&gt;</code> inside of the <code>&lt;nav&gt;</code> to be positioned at the right side.</p> <p>I am using <code>display:inline-block;</code> property and I have tried to position elements to the right by using following property: <code>text-align:right;</code>.</p> <pre><code>&lt;ht...
[ { "answer_id": 74325636, "author": "Jos Woolley", "author_id": 17007704, "author_profile": "https://Stackoverflow.com/users/17007704", "pm_score": 3, "selected": true, "text": "FILTER TAKE =TAKE(FILTER(A1:C12,B1:B12=B2),2) INDEX SEQUENCE =INDEX(FILTER(A1:C12,B1:B12=B2),SEQUENCE(2),SEQUEN...
2022/11/05
[ "https://Stackoverflow.com/questions/74324646", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18805171/" ]
74,324,660
<p>I thought I understood this, but clearly I don't.</p> <p>I have a context manager that wraps suites of code inside some metadata handling. The details of that don't matter, suffice to say the code needs to be between a push_job() and pop_job(). That all works, so I can say:</p> <pre><code>with JobManager(*config) as...
[ { "answer_id": 74324732, "author": "Marco Bonelli", "author_id": 3889449, "author_profile": "https://Stackoverflow.com/users/3889449", "pm_score": 2, "selected": false, "text": "@some_decorator\ndef func(...):\n ...\n def func(...):\n ...\n\nfunc = some_decorator(func)\n process_jo...
2022/11/05
[ "https://Stackoverflow.com/questions/74324660", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2438389/" ]
74,324,665
<p>I have a program to update vehicle inventory. I call the updateVehicle()...it should loop through the arrayList of vehicles to look for a match based on what the user input. In the if statement, if a match is found, update the vehicle in the arrayList with what the user input, display the updated details, display a ...
[ { "answer_id": 74324725, "author": "WJS", "author_id": 1552534, "author_profile": "https://Stackoverflow.com/users/1552534", "pm_score": 3, "selected": true, "text": "boolean boolean true public void updateVehicle(String makeCurrent, String modelCurrent,\n String colorCurrent, i...
2022/11/05
[ "https://Stackoverflow.com/questions/74324665", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20422475/" ]
74,324,690
<p>Animated background not working. I have sat here for weeks trying to make this code work and it just wont. Open up the link and u realise there are alot of problems but what i just want rn is that the div containing the arabic cat extends all the way down. (use inspect since this website is blocking me from posting ...
[ { "answer_id": 74324725, "author": "WJS", "author_id": 1552534, "author_profile": "https://Stackoverflow.com/users/1552534", "pm_score": 3, "selected": true, "text": "boolean boolean true public void updateVehicle(String makeCurrent, String modelCurrent,\n String colorCurrent, i...
2022/11/05
[ "https://Stackoverflow.com/questions/74324690", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20422404/" ]
74,324,724
<p>I have a table <code>Cards(card_id,status,cid)</code></p> <p>With the columns:</p> <ul> <li><code>cid</code> - customer id</li> <li><code>status</code> - <code>exp</code>/<code>vld</code></li> <li><code>card_id</code> - card id's</li> </ul> <p>How to find the <code>cid</code> with the most expired cards?</p>
[ { "answer_id": 74325169, "author": "sankar", "author_id": 4017098, "author_profile": "https://Stackoverflow.com/users/4017098", "pm_score": 0, "selected": false, "text": "WITH t AS(\nSELECT cid, count(1) customer_exp_cards_count\nFROM Cards where status = 'exp'\ngroup by cid)\nSELECT cid...
2022/11/05
[ "https://Stackoverflow.com/questions/74324724", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17495827/" ]
74,324,731
<p>I've got a table containing results of chess matches:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>id</th> <th>player_white</th> <th>player_black</th> <th>result</th> <th>session_start</th> <th>session_end</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>Jonathan1</td> <td>TrentX</td> ...
[ { "answer_id": 74324988, "author": "sankar", "author_id": 4017098, "author_profile": "https://Stackoverflow.com/users/4017098", "pm_score": 3, "selected": true, "text": "SELECT player, count(1) number_of_victories_and_draws\nFROM(\nSELECT player_white player, result from plays pw_victory...
2022/11/05
[ "https://Stackoverflow.com/questions/74324731", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11335534/" ]
74,324,763
<p>I'm starting to learn how to use git and I'm very doubful with some questions about security.</p> <p>I need to manage my codes (in the same GitHub account) between my personal computer and my computer from work, so I've installed git on both. When I clone my repository (personal or private), make changes to it, and ...
[ { "answer_id": 74327650, "author": "torek", "author_id": 1256452, "author_profile": "https://Stackoverflow.com/users/1256452", "pm_score": 2, "selected": true, "text": "user.name user.email git commit --amend git push user.useConfigOnly true user.useConfigOnly user.name user.email" } ]
2022/11/05
[ "https://Stackoverflow.com/questions/74324763", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16402932/" ]
74,324,785
<p>I have two datasets, one has old data and one has updated data. I'd like to create a new dataset by updating values based on if the area, date and column values match.</p> <p><strong>Data</strong></p> <p>df1</p> <pre><code>area date aa bb cc japan 10/1/2027 1 0 0 us 1/1/2022 5 5 ...
[ { "answer_id": 74324856, "author": "Jason Baker", "author_id": 3249641, "author_profile": "https://Stackoverflow.com/users/3249641", "pm_score": 2, "selected": true, "text": "df1[\"date\"] = pd.to_datetime(df1[\"date\"])\ndf2[\"date\"] = pd.to_datetime(df2[\"date\"])\n\ndf3 = pd.merge(le...
2022/11/05
[ "https://Stackoverflow.com/questions/74324785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5942100/" ]
74,324,787
<p>Import.php</p> <pre><code>... return new Statement([ 'account_number' =&gt; $row['accountno'], 'account_name' =&gt; $row['name'], 'reading_date' =&gt; \Carbon\Carbon::createFromFormat('m/d/Y', $row['billdate']), ...
[ { "answer_id": 74324856, "author": "Jason Baker", "author_id": 3249641, "author_profile": "https://Stackoverflow.com/users/3249641", "pm_score": 2, "selected": true, "text": "df1[\"date\"] = pd.to_datetime(df1[\"date\"])\ndf2[\"date\"] = pd.to_datetime(df2[\"date\"])\n\ndf3 = pd.merge(le...
2022/11/05
[ "https://Stackoverflow.com/questions/74324787", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9426624/" ]
74,324,790
<p>Our server need to use AWS S3 to store users images, our server is springboot ,we will connect S3 to upload image, sometimes it raise exception :java.net.ConnectException: Connection refused, once the exception was raised, it will alway rasie utils we restart springboot service . It can work fine in some days (1 ~2)...
[ { "answer_id": 74514869, "author": "wang michael", "author_id": 7998760, "author_profile": "https://Stackoverflow.com/users/7998760", "pm_score": 0, "selected": false, "text": "String imagePath = \"\";\n S3TransferManager transferManager = null;\n String fileExt = fileName.subs...
2022/11/05
[ "https://Stackoverflow.com/questions/74324790", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7998760/" ]
74,324,797
<p>I have several thousand lines of code that all ultimately results in a few strings being printed using <code>print()</code> calls. Is there a way to, at the bottom of my code, export everything that has been printed to a text file?</p>
[ { "answer_id": 74324813, "author": "LEGION GREEN", "author_id": 17495765, "author_profile": "https://Stackoverflow.com/users/17495765", "pm_score": 1, "selected": false, "text": "python main.py > output.txt\n > main.py stdout output.txt" }, { "answer_id": 74324815, "author": ...
2022/11/05
[ "https://Stackoverflow.com/questions/74324797", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16507322/" ]
74,324,808
<p>After being helped by other users’ questions uncountable times, I finally have to ask my first question.</p> <p><strong>What I’m trying to do:</strong><br> Running a CodeIgniter project (ver. 4.2.8) on a live server.</p> <p><strong>Problem:</strong><br> The URL routing is not working (400 Bad Request error). It’s a ...
[ { "answer_id": 74329866, "author": "Nilesh Karanjkar", "author_id": 13028263, "author_profile": "https://Stackoverflow.com/users/13028263", "pm_score": 0, "selected": false, "text": "$base_url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == \"on\") ? \"https\" : \"http\");\n$base_ur...
2022/11/05
[ "https://Stackoverflow.com/questions/74324808", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10639537/" ]
74,324,812
<p>I have an angular application that uses two libraries locally, however, when trying to build everything ending up with an error of modules not found, but I thought it was some problems of undeclared dependencies, or imported, but everything is fine.</p> <p>For better understanding, I have: Two local libraries that a...
[ { "answer_id": 74329866, "author": "Nilesh Karanjkar", "author_id": 13028263, "author_profile": "https://Stackoverflow.com/users/13028263", "pm_score": 0, "selected": false, "text": "$base_url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == \"on\") ? \"https\" : \"http\");\n$base_ur...
2022/11/05
[ "https://Stackoverflow.com/questions/74324812", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20124684/" ]
74,324,822
<p>I have a problem with my code. my article and aside boxes are overlapping my footer section, any ideas? I also have a problem with making them the same height.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-cs...
[ { "answer_id": 74324873, "author": "Damzaky", "author_id": 7552340, "author_profile": "https://Stackoverflow.com/users/7552340", "pm_score": 1, "selected": false, "text": "float <div style='clear: both;'/> .header {\n background-color: lightskyblue;\n border: 3px solid red;\n height: ...
2022/11/05
[ "https://Stackoverflow.com/questions/74324822", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20324241/" ]
74,324,829
<p><a href="https://i.stack.imgur.com/JBscR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JBscR.png" alt="enter image description here" /></a> I am having this error, I am having trouble understanding if I am importing correctly my styles as well and using components in the right way, can someone s...
[ { "answer_id": 74324873, "author": "Damzaky", "author_id": 7552340, "author_profile": "https://Stackoverflow.com/users/7552340", "pm_score": 1, "selected": false, "text": "float <div style='clear: both;'/> .header {\n background-color: lightskyblue;\n border: 3px solid red;\n height: ...
2022/11/05
[ "https://Stackoverflow.com/questions/74324829", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17325416/" ]
74,324,853
<p>This is what I see in an official tool, and I need to calculate the same end value:</p> <p><a href="https://i.stack.imgur.com/MOOF0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MOOF0.png" alt="enter image description here" /></a></p> <p>For clarification:</p> <p>I am given the numbers 95, 3, 5,...
[ { "answer_id": 74324873, "author": "Damzaky", "author_id": 7552340, "author_profile": "https://Stackoverflow.com/users/7552340", "pm_score": 1, "selected": false, "text": "float <div style='clear: both;'/> .header {\n background-color: lightskyblue;\n border: 3px solid red;\n height: ...
2022/11/05
[ "https://Stackoverflow.com/questions/74324853", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1390192/" ]
74,324,862
<p>I am pretty new to JS so please go easy on me.</p> <p>Im trying to increment a value in a JSON file in my JS backend application. Whenever I increment the associated value by the key, it creates a new section &quot;undefined&quot;</p> <p>Here is the entire application:</p> <pre><code>const { response } = require(&qu...
[ { "answer_id": 74324873, "author": "Damzaky", "author_id": 7552340, "author_profile": "https://Stackoverflow.com/users/7552340", "pm_score": 1, "selected": false, "text": "float <div style='clear: both;'/> .header {\n background-color: lightskyblue;\n border: 3px solid red;\n height: ...
2022/11/05
[ "https://Stackoverflow.com/questions/74324862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19057328/" ]
74,324,881
<p>I want to optionally bind a field to specific class for each profile</p> <p>the example code is as follows ...</p> <pre><code>spring: config: activate: on-profile: test1 app: cash: conn: connection-timeout: 1000 response-timeout: 2000 ... --- spring: config: activate: on-p...
[ { "answer_id": 74324873, "author": "Damzaky", "author_id": 7552340, "author_profile": "https://Stackoverflow.com/users/7552340", "pm_score": 1, "selected": false, "text": "float <div style='clear: both;'/> .header {\n background-color: lightskyblue;\n border: 3px solid red;\n height: ...
2022/11/05
[ "https://Stackoverflow.com/questions/74324881", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12960592/" ]
74,324,899
<p>Here's the setup:</p> <p>We have a classic <a href="https://en.wikipedia.org/wiki/Observer_pattern" rel="nofollow noreferrer">observer pattern</a>. <code>IObserver</code> is an interface with a <code>notify</code> method. <code>RealObserver</code> implements the <code>IObserver</code> interface. <code>Subject</code>...
[ { "answer_id": 74326988, "author": "Christophe", "author_id": 3723423, "author_profile": "https://Stackoverflow.com/users/3723423", "pm_score": 3, "selected": true, "text": "observer:IObserver ConcreteObserver IObserver ... observerN loop observerN observerN { observerN is element of sub...
2022/11/05
[ "https://Stackoverflow.com/questions/74324899", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16042683/" ]
74,324,901
<p>I'm trying to get back to Python but I don't get why the following code doesn't work as intended.</p> <pre><code>class Cat: age = 0 class Dog(Cat): pass Dog.age = 1 Cat.age = 2 print(Dog.age, Cat.age) </code></pre> <p>My output is:</p> <pre><code>1 2 </code></pre> <p>But why doesn't <code>Dog.age</code>...
[ { "answer_id": 74324917, "author": "Michael M.", "author_id": 13376511, "author_profile": "https://Stackoverflow.com/users/13376511", "pm_score": 3, "selected": true, "text": "Dog Cat Cat class Cat:\n age = 0 # Cat.age = 0\n\n\nclass Dog(Cat):\n pass # Dog.age = Cat.age = 0\n\n\n...
2022/11/05
[ "https://Stackoverflow.com/questions/74324901", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,324,913
<p>i have problem with cant force restart from management console login as admin. can anyone helping with me about this. i got log like this</p> <pre><code>`[2022-10-01 00:45:04,581] INFO - CarbonCoreActivator Starting WSO2 Carbon... [2022-10-01 00:45:04,581] INFO - CarbonCoreActivator Operating System : Linux 4.18.0...
[ { "answer_id": 74324917, "author": "Michael M.", "author_id": 13376511, "author_profile": "https://Stackoverflow.com/users/13376511", "pm_score": 3, "selected": true, "text": "Dog Cat Cat class Cat:\n age = 0 # Cat.age = 0\n\n\nclass Dog(Cat):\n pass # Dog.age = Cat.age = 0\n\n\n...
2022/11/05
[ "https://Stackoverflow.com/questions/74324913", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20211718/" ]
74,324,924
<p>Is there any way in Javascript to instantly access an object value with a specific depth? </p> <p>There is an example:</p> <pre><code>{ &quot;level&quot;: { &quot;value&quot;: &quot;one&quot;, &quot;level&quot;: { &quot;value&quot;: &quot;two&quot;, &quot;level&quot;: { &quot;value&quot...
[ { "answer_id": 74324987, "author": "Michael M.", "author_id": 13376511, "author_profile": "https://Stackoverflow.com/users/13376511", "pm_score": 3, "selected": true, "text": "function flatDepth(obj) {\n let res = [];\n while(typeof obj === 'object') {\n res.push(obj.value);\n ob...
2022/11/05
[ "https://Stackoverflow.com/questions/74324924", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18840965/" ]
74,324,937
<pre><code>import random from words import words import string def get_valid_word(word): word = random.choice(words) while '-' in word or ' ' in word: word = random.choice(words) return word def hangman(): word = get_valid_word(words) word_letters = set(word) # letters in word al...
[ { "answer_id": 74324951, "author": "Anurag Dhadse", "author_id": 8277795, "author_profile": "https://Stackoverflow.com/users/8277795", "pm_score": 1, "selected": false, "text": "hangman() if __name__ = \"__main__\":\n hangman()\n hangman()" }, { "answer_id": 74325086, "aut...
2022/11/05
[ "https://Stackoverflow.com/questions/74324937", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20422778/" ]
74,324,942
<p>I was creating a note taking program, using the user voice command. When the file already exists, I want to show an error. It runs smoothly when the file name is different though. When the file already exists, I have coded to open in the writing mode. It would erase the earlier file, and write new instead of adding ...
[ { "answer_id": 74325045, "author": "TCK", "author_id": 14525084, "author_profile": "https://Stackoverflow.com/users/14525084", "pm_score": 2, "selected": false, "text": "elif 'note' in query:\n try:\n Looper = True # Added a loop so it can repeatedly ask the user until ...
2022/11/05
[ "https://Stackoverflow.com/questions/74324942", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8928135/" ]
74,324,961
<p>why is there no error for <code>a = [10,]</code> but error for <code>[10,,]</code> in Python ? <a href="https://i.stack.imgur.com/c6QTz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c6QTz.png" alt="enter image description here" /></a><br /> what is interpreter expecting from comma/s in both the...
[ { "answer_id": 74324993, "author": "Tim Roberts", "author_id": 1883316, "author_profile": "https://Stackoverflow.com/users/1883316", "pm_score": 1, "selected": false, "text": "lst = [1,2,3,4,]\n" }, { "answer_id": 74325592, "author": "Luicfer Ai", "author_id": 18416403, ...
2022/11/05
[ "https://Stackoverflow.com/questions/74324961", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5214109/" ]
74,324,976
<p>I am trying to search the object from the ArrayList</p> <p>For example, in the below code the object of Product class is going to stored in the ArrayList. Now, I want to find the Product using its product name (by contain method).</p> <pre><code>import java.util.*; class Product { String name; int price; ...
[ { "answer_id": 74324993, "author": "Tim Roberts", "author_id": 1883316, "author_profile": "https://Stackoverflow.com/users/1883316", "pm_score": 1, "selected": false, "text": "lst = [1,2,3,4,]\n" }, { "answer_id": 74325592, "author": "Luicfer Ai", "author_id": 18416403, ...
2022/11/05
[ "https://Stackoverflow.com/questions/74324976", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14161071/" ]
74,324,983
<p>I am using Azure DevOps for some application deployment. I need to have a saved variable build number that would update every time I do a build successfully and send the apk/ipa to the store.</p> <p>Right now, from what I read in the Azure documentation and other post on StackOverflow about this, I setup my scripts ...
[ { "answer_id": 74324993, "author": "Tim Roberts", "author_id": 1883316, "author_profile": "https://Stackoverflow.com/users/1883316", "pm_score": 1, "selected": false, "text": "lst = [1,2,3,4,]\n" }, { "answer_id": 74325592, "author": "Luicfer Ai", "author_id": 18416403, ...
2022/11/05
[ "https://Stackoverflow.com/questions/74324983", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5899647/" ]
74,324,986
<p>I am a total beginner to Python and recently had a question while experimenting with lists. I have a for loop that increases a variable 'x' and generates a random number every time. I want to add this random number to a list, but when I try assigning the index value of the random number to x, I get this error messag...
[ { "answer_id": 74325009, "author": "Seyed Mehrshad Hosseini", "author_id": 11733513, "author_profile": "https://Stackoverflow.com/users/11733513", "pm_score": 3, "selected": true, "text": "import random as number\n\nvalues = [number.randint(1,91) for _ in range(9)]\n" }, { "answe...
2022/11/05
[ "https://Stackoverflow.com/questions/74324986", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20422817/" ]
74,324,995
<p>I have been writing program about dragging turtles to different designated position.</p> <p>However, <code>turtle.ondrag(turtle.goto)</code> nor <code>at[i].ondrag(at[i].goto)</code> does not work.</p> <p>I've been amended with the solution from here <a href="https://stackoverflow.com/questions/19867476">Python turt...
[ { "answer_id": 74325155, "author": "Alexander", "author_id": 17829451, "author_profile": "https://Stackoverflow.com/users/17829451", "pm_score": 1, "selected": true, "text": "import turtle as t\n\nclass T(t.Turtle):\n def dragging(self, x, y):\n self.ondrag(None)\n self....
2022/11/05
[ "https://Stackoverflow.com/questions/74324995", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17260184/" ]
74,325,043
<p>Each 2 div is of different size and they must be the same height.</p> <p>CSS:</p> <pre><code>.bbb { width: 333px; height: 2px; max-height: 2px; background: black; } </code></pre> <p>HTML:</p> <pre><code>&lt;div class=&quot;bbb&quot;&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt; &lt;div class=&quot;bbb&quot;&gt...
[ { "answer_id": 74325192, "author": "Akash ", "author_id": 20271116, "author_profile": "https://Stackoverflow.com/users/20271116", "pm_score": 1, "selected": false, "text": ".bbb {\n width: 333px;\n height: 2px;\n max-height: 2px;\n background: black;\n margin: 2rem;\n}\n\n...
2022/11/05
[ "https://Stackoverflow.com/questions/74325043", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20422826/" ]
74,325,067
<p>I had the following pipeline:</p> <pre><code>from typing import Sequence, List import apache_beam as beam def add_type(x) -&gt; int: return x # no type error with Sequence, type error with List. def print_with_type(x: Sequence[int]): print(x) with beam.Pipeline(argv=[&quot;--type_check_additional&quot;...
[ { "answer_id": 74326930, "author": "Mazlum Tosun", "author_id": 9261558, "author_profile": "https://Stackoverflow.com/users/9261558", "pm_score": 1, "selected": false, "text": "List int PCollection from typing import Sequence, List\n\nimport apache_beam as beam\n\n\ndef add_type(x) -> in...
2022/11/05
[ "https://Stackoverflow.com/questions/74325067", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4696339/" ]
74,325,068
<p>I'm trying to use <code>to_json</code> to create a json file with python. I have it working so far to produce the following sort of output:</p> <pre><code>[ { &quot;Country&quot;: &quot;A&quot;, &quot;Title&quot;: &quot;B&quot;, &quot;Category&quot;: &quot;C&quot; }, { &qu...
[ { "answer_id": 74325095, "author": "Raibek", "author_id": 11040577, "author_profile": "https://Stackoverflow.com/users/11040577", "pm_score": -1, "selected": false, "text": "df.to_json(....., orient='records')\n" }, { "answer_id": 74325104, "author": "Barmar", "author_id"...
2022/11/05
[ "https://Stackoverflow.com/questions/74325068", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15439406/" ]
74,325,069
<p>One requirement of mine is - Using windows, not use any tools not already available as part of aws cli or windows For example, I have this json file test.json with below content:</p> <p><code>&quot;My number is $myvar&quot;</code></p> <p>I read this into a powershell variable like so:</p> <pre><code>$myobj=(get-cont...
[ { "answer_id": 74325095, "author": "Raibek", "author_id": 11040577, "author_profile": "https://Stackoverflow.com/users/11040577", "pm_score": -1, "selected": false, "text": "df.to_json(....., orient='records')\n" }, { "answer_id": 74325104, "author": "Barmar", "author_id"...
2022/11/05
[ "https://Stackoverflow.com/questions/74325069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1924658/" ]
74,325,166
<p>I am using <strong>Google Photos</strong> to host photos for a website I am managing, and accessing them via <strong>GraphQL</strong> and <strong>Gastby</strong> (gatsby-image-plugin)</p> <p>The images are shown in a gallery, but open up in a light-box gallery slider - I'm using FancyApps/ui (v4.x). Anyway the maxim...
[ { "answer_id": 74326690, "author": "Ferran Buireu", "author_id": 5585371, "author_profile": "https://Stackoverflow.com/users/5585371", "pm_score": 1, "selected": false, "text": "{\n allGooglePhotosAlbum(filter: {title: {eq: \"assorted\"}}) {\n nodes {\n title\n photos {\n ...
2022/11/05
[ "https://Stackoverflow.com/questions/74325166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14235783/" ]
74,325,190
<p>I have a simple table like this,</p> <pre><code>CREATE TABLE `domain` ( `id` varchar(191) NOT NULL, `time` bigint(20) DEFAULT NULL, `task_id` bigint(20) DEFAULT NULL, `name` varchar(512) DEFAULT NULL PRIMARY KEY (`id`), KEY `idx_domain_time` (`time`), KEY `idx_domain_task_id` (`task_id`), FULLTEXT KE...
[ { "answer_id": 74326690, "author": "Ferran Buireu", "author_id": 5585371, "author_profile": "https://Stackoverflow.com/users/5585371", "pm_score": 1, "selected": false, "text": "{\n allGooglePhotosAlbum(filter: {title: {eq: \"assorted\"}}) {\n nodes {\n title\n photos {\n ...
2022/11/05
[ "https://Stackoverflow.com/questions/74325190", "https://Stackoverflow.com", "https://Stackoverflow.com/users/614944/" ]
74,325,199
<p>I want to write a function that will print the title and x and y labels. I managed to get the title to display but my code does not display the axis labels.</p> <pre><code>def title(t, y, x): return ax.set_title(t) ax.set_ylabel(y) ax.set_xlabel(x) </code></pre> <p>I expect the code to display the Titl...
[ { "answer_id": 74326690, "author": "Ferran Buireu", "author_id": 5585371, "author_profile": "https://Stackoverflow.com/users/5585371", "pm_score": 1, "selected": false, "text": "{\n allGooglePhotosAlbum(filter: {title: {eq: \"assorted\"}}) {\n nodes {\n title\n photos {\n ...
2022/11/05
[ "https://Stackoverflow.com/questions/74325199", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18787560/" ]
74,325,201
<p>I'm Creating the App Registration, App Registration Secrets, API Permissions, and Role Assignment via Terraform. I'm Able to allocate the MicroSoft Graph API Permissions and able to Grant Permissions. For Log Analytic API Permission Grant, I'm Getting Error on the Terraform code.</p> <pre><code>data &quot;azuread_cl...
[ { "answer_id": 74326690, "author": "Ferran Buireu", "author_id": 5585371, "author_profile": "https://Stackoverflow.com/users/5585371", "pm_score": 1, "selected": false, "text": "{\n allGooglePhotosAlbum(filter: {title: {eq: \"assorted\"}}) {\n nodes {\n title\n photos {\n ...
2022/11/05
[ "https://Stackoverflow.com/questions/74325201", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20362753/" ]
74,325,224
<p><a href="https://i.stack.imgur.com/tmvtG.jpg" rel="nofollow noreferrer">enter image description here</a>I'm using Hibernate to Auto Create a Table on pgAdmin. -The log is not showing any errors -It is recognizing the existence of the db since i get an error if i delete it -Im using dll-auto: update</p> <p>I'm trying...
[ { "answer_id": 74326690, "author": "Ferran Buireu", "author_id": 5585371, "author_profile": "https://Stackoverflow.com/users/5585371", "pm_score": 1, "selected": false, "text": "{\n allGooglePhotosAlbum(filter: {title: {eq: \"assorted\"}}) {\n nodes {\n title\n photos {\n ...
2022/11/05
[ "https://Stackoverflow.com/questions/74325224", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20413172/" ]
74,325,233
<p>I have reacted app and there are many components, and I want that the text will support multiple languages, I mean if the user wants English then all content of the component translates into English.</p> <p>I try to add multilanguage in my react app using the i18next library but I found that I need to write all text...
[ { "answer_id": 74326690, "author": "Ferran Buireu", "author_id": 5585371, "author_profile": "https://Stackoverflow.com/users/5585371", "pm_score": 1, "selected": false, "text": "{\n allGooglePhotosAlbum(filter: {title: {eq: \"assorted\"}}) {\n nodes {\n title\n photos {\n ...
2022/11/05
[ "https://Stackoverflow.com/questions/74325233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20423054/" ]
74,325,246
<p>I am writing a simple car rental system to check price of a car.</p> <p>This is the <code>Available Vehicles.txt</code> In which the 3rd row is the car price.</p> <pre><code>RegNumber | Car Name | Price | Transmission Type </code></pre> <pre><code>H4E-11,Toyota,66,Automatic Transmission X11-11,Volkswagen,62,Automati...
[ { "answer_id": 74325273, "author": "Alexander", "author_id": 17829451, "author_profile": "https://Stackoverflow.com/users/17829451", "pm_score": 0, "selected": false, "text": "index def returnCar():\n regNumber = str(input(\"Please enter Registration Number of Car: \"))\n with open...
2022/11/05
[ "https://Stackoverflow.com/questions/74325246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18105834/" ]
74,325,280
<p>so I take a user input in a loop seen below</p> <pre><code>mail_list = [] x = 0 while x &gt;= 0: user_input = input('enter first name, last name, ID, and email domain: ') mail_list.append(user_input) if user_input == 'done': break </code></pre> <p>so it is supposed to add the first name, last nam...
[ { "answer_id": 74325273, "author": "Alexander", "author_id": 17829451, "author_profile": "https://Stackoverflow.com/users/17829451", "pm_score": 0, "selected": false, "text": "index def returnCar():\n regNumber = str(input(\"Please enter Registration Number of Car: \"))\n with open...
2022/11/05
[ "https://Stackoverflow.com/questions/74325280", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20423088/" ]
74,325,302
<p>I want to grab the string after the <code>CN=</code> in each of the strings below, and nothing else:</p> <pre><code>&quot;CN=*.company.com,O=WWT,L=STL,ST=Missouri,C=US&quot;, &quot;emailAddress=root@localhost.localdomain,CN=localhost.localdomain,OU=IT,O=MyCompany,L=Seattle,ST=WA,C=US&quot; </code></pre> <p>I...
[ { "answer_id": 74325273, "author": "Alexander", "author_id": 17829451, "author_profile": "https://Stackoverflow.com/users/17829451", "pm_score": 0, "selected": false, "text": "index def returnCar():\n regNumber = str(input(\"Please enter Registration Number of Car: \"))\n with open...
2022/11/05
[ "https://Stackoverflow.com/questions/74325302", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4371155/" ]
74,325,310
<p>I am new to postgresql and am trying to update a table based on conditions using PostgreSQL stored procedure. The table 'pref2' looks like this:</p> <pre><code>geneid pred_perf_r2 pred_perf_pval vers ENSG00000107959 0.03 0.02 1.0 ENSG00000106321 0.05 ...
[ { "answer_id": 74325273, "author": "Alexander", "author_id": 17829451, "author_profile": "https://Stackoverflow.com/users/17829451", "pm_score": 0, "selected": false, "text": "index def returnCar():\n regNumber = str(input(\"Please enter Registration Number of Car: \"))\n with open...
2022/11/05
[ "https://Stackoverflow.com/questions/74325310", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12335546/" ]
74,325,311
<p><a href="https://i.stack.imgur.com/ns32u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ns32u.png" alt="1" /></a></p> <p>I have a dataset like the above. Basically it's like a website session which I have a start + end activity, and in between there could be other unrelated records.</p> <p>I need...
[ { "answer_id": 74325273, "author": "Alexander", "author_id": 17829451, "author_profile": "https://Stackoverflow.com/users/17829451", "pm_score": 0, "selected": false, "text": "index def returnCar():\n regNumber = str(input(\"Please enter Registration Number of Car: \"))\n with open...
2022/11/05
[ "https://Stackoverflow.com/questions/74325311", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12718820/" ]
74,325,312
<p>I connected 2D barcode scanner with Raspberry Pi 4 Model B and tried to scan few codes. on using <strong>evdev</strong> library I got the output successfully. But the issue is after 3 continues scans it's throwing me an exception saying <em><strong>&quot;[Error 16] Device or resource busy&quot;</strong></em>. I can'...
[ { "answer_id": 74325273, "author": "Alexander", "author_id": 17829451, "author_profile": "https://Stackoverflow.com/users/17829451", "pm_score": 0, "selected": false, "text": "index def returnCar():\n regNumber = str(input(\"Please enter Registration Number of Car: \"))\n with open...
2022/11/05
[ "https://Stackoverflow.com/questions/74325312", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16392499/" ]
74,325,343
<p>This is my code.</p> <pre><code>struct node_struct { char *data; struct node_struct *next; }; typedef struct node_struct Node; struct queue_struct { Node *head, *tail; }; typedef struct queue_struct Queue; </code></pre> <pre><code>void push(Queue **q, char *word) { // q hasn't been allocated ...
[ { "answer_id": 74325435, "author": "Allan Wind", "author_id": 9706, "author_profile": "https://Stackoverflow.com/users/9706", "pm_score": 2, "selected": true, "text": "malloc() delete() t2 t malloc() strdup() #include <stdlib.h>\n#include <string.h>\n\ntypedef struct node_struct {\n c...
2022/11/05
[ "https://Stackoverflow.com/questions/74325343", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20376070/" ]
74,325,368
<p>I have a Kafka application which suffers from intermittent deserialisation errors (due to connectivity problems to the host which provides Avro schemas)</p> <p>I would like to back off and retry serialisation exceptions, but I have not been able to figure out how to set that up.</p> <p>Here's my test configuration:<...
[ { "answer_id": 74325435, "author": "Allan Wind", "author_id": 9706, "author_profile": "https://Stackoverflow.com/users/9706", "pm_score": 2, "selected": true, "text": "malloc() delete() t2 t malloc() strdup() #include <stdlib.h>\n#include <string.h>\n\ntypedef struct node_struct {\n c...
2022/11/05
[ "https://Stackoverflow.com/questions/74325368", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11002/" ]
74,325,370
<p>I have a table &quot;store&quot; and a table &quot;product&quot;. Each store has multiple products but a product only has one store ( one to many relationship ). The tables might look something like:</p> <p>store: id, name<br /> product: id, name, store_id</p> <p>when querying the store and its products using supaba...
[ { "answer_id": 74325494, "author": "Ehab", "author_id": 20342736, "author_profile": "https://Stackoverflow.com/users/20342736", "pm_score": 0, "selected": false, "text": "SELECT \n CONCAT(\"{id:'\", s.id, \"', Name:'\" , s.`Name`, \"', products: [\", \n GROUP_CONCAT(CONCAT(\"{id:'\",p....
2022/11/05
[ "https://Stackoverflow.com/questions/74325370", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20423110/" ]
74,325,381
<p>I have an API response</p> <p>const response = [</p> <p>{ id:1, tags:[data:&quot;save1&quot;] },</p> <p>{ id:2, tags:[data:&quot;save2&quot;] },</p> <p>{ id:3, tags:[data:&quot;save3&quot;] },</p> <p>]</p> <p>I want to save the data of all tags into a single array like below e.g</p> <p>const newArr = [{save1},{save2...
[ { "answer_id": 74325494, "author": "Ehab", "author_id": 20342736, "author_profile": "https://Stackoverflow.com/users/20342736", "pm_score": 0, "selected": false, "text": "SELECT \n CONCAT(\"{id:'\", s.id, \"', Name:'\" , s.`Name`, \"', products: [\", \n GROUP_CONCAT(CONCAT(\"{id:'\",p....
2022/11/05
[ "https://Stackoverflow.com/questions/74325381", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20237991/" ]
74,325,399
<p>Currently I have 2 array lists showing words and their frequency. So &quot;the&quot; has a frequency of 1, &quot;I&quot; has a frequency of 10 and so on.</p> <pre><code> ArrayList&lt;String&gt; words = new ArrayList&lt;&gt;(Arrays.asList(&quot;the&quot;, &quot;I&quot;, &quot;false&quot;,&quot;too&quot;)); ...
[ { "answer_id": 74325554, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 2, "selected": false, "text": "[0, 1, 2, 3] frequency.get(i) words.get(i) ArrayList<String> words = new ArrayList<>(Arrays.asList(\"the\", \"I\", \"false\"...
2022/11/05
[ "https://Stackoverflow.com/questions/74325399", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,325,419
<p>I have two datetime-local input star time is for user changeable and the other one is read-only and I want to update that field by jquery.</p> <pre><code>&lt;input class=&quot;form-control&quot; type=&quot;datetime-local&quot; name=&quot;deliveryTime&quot; id=&quot;DeliveryTime&quot; required&gt; </code></pre> <pre...
[ { "answer_id": 74325554, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 2, "selected": false, "text": "[0, 1, 2, 3] frequency.get(i) words.get(i) ArrayList<String> words = new ArrayList<>(Arrays.asList(\"the\", \"I\", \"false\"...
2022/11/05
[ "https://Stackoverflow.com/questions/74325419", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12642377/" ]
74,325,452
<p>How do I perform the following dataframe operation going from Dataframe A to dataframe B in pandas for python? I have tried pivot and groupby but I keep getting errors. Any support is greatly appreciated.</p> <p>DataFrame A</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Col A</th> <th>C...
[ { "answer_id": 74325516, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 1, "selected": false, "text": "groupby out = (df\n .groupby('Col A', group_keys=False, sort=False)\n .apply(lambda d: d.iloc[:, ::-1].unstack(...
2022/11/05
[ "https://Stackoverflow.com/questions/74325452", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8371891/" ]
74,325,460
<p>My react native project build fails somehow because of this error:</p> <pre><code>Execution failed for task ':app:mergeDebugNativeLibs'. &gt; A failure occurred while executing com.android.build.gradle.internal.tasks.MergeNativeLibsTask$MergeNativeLibsTaskWorkAction &gt; 2 files found with path 'lib/arm64-v8a/lib...
[ { "answer_id": 74331998, "author": "Bogdan", "author_id": 12681742, "author_profile": "https://Stackoverflow.com/users/12681742", "pm_score": 4, "selected": false, "text": "implementation \"com.facebook.react:react-native:+\" // From node_modules\n implementation \"com.facebook.react:re...
2022/11/05
[ "https://Stackoverflow.com/questions/74325460", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12098789/" ]
74,325,482
<p>I would like to write a function that accepts the knex instance as a parameter.</p> <p>I try to do that by</p> <pre><code>import knex from &quot;knex&quot;; export async function createTestTable(_knex: ReturnType&lt;knex&gt;) { ... } </code></pre> <p>But it returns the <code>Cannot use namespace 'knex' as a typ...
[ { "answer_id": 74331998, "author": "Bogdan", "author_id": 12681742, "author_profile": "https://Stackoverflow.com/users/12681742", "pm_score": 4, "selected": false, "text": "implementation \"com.facebook.react:react-native:+\" // From node_modules\n implementation \"com.facebook.react:re...
2022/11/05
[ "https://Stackoverflow.com/questions/74325482", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10683308/" ]
74,325,524
<p>I am trying to solve this problem on HackerRank and I am having a issue with my logic. I am confused and not able to think what I'm doing wrong, feels like I'm stuck in logic.</p> <p>Question link: <a href="https://www.hackerrank.com/challenges/game-of-thrones/" rel="nofollow noreferrer">https://www.hackerrank.com/c...
[ { "answer_id": 74331998, "author": "Bogdan", "author_id": 12681742, "author_profile": "https://Stackoverflow.com/users/12681742", "pm_score": 4, "selected": false, "text": "implementation \"com.facebook.react:react-native:+\" // From node_modules\n implementation \"com.facebook.react:re...
2022/11/05
[ "https://Stackoverflow.com/questions/74325524", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13015087/" ]
74,325,526
<p>getting error whenever i'm trying to ionic build.showing cordova-plugin-androidx-adapter: Processed 16 source files in 387ms Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=undefined (recommended setting) ANDROID_HOME=undefined (DEPRECATED)</p> <p>i changed sdk version and i'm using sdk 30 version also c...
[ { "answer_id": 74331998, "author": "Bogdan", "author_id": 12681742, "author_profile": "https://Stackoverflow.com/users/12681742", "pm_score": 4, "selected": false, "text": "implementation \"com.facebook.react:react-native:+\" // From node_modules\n implementation \"com.facebook.react:re...
2022/11/05
[ "https://Stackoverflow.com/questions/74325526", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11374352/" ]
74,325,532
<p>I am currently woking in a react native projects</p> <p>It have these packages as dependencies</p> <pre><code> &quot;dependencies&quot;: { &quot;@react-native-async-storage/async-storage&quot;: &quot;^1.15.5&quot;, &quot;@react-native-community/checkbox&quot;: &quot;^0.5.8&quot;, &quot;@react-native-com...
[ { "answer_id": 74326271, "author": "Guna", "author_id": 15208727, "author_profile": "https://Stackoverflow.com/users/15208727", "pm_score": 6, "selected": true, "text": "allprojects {\n repositories {\n exclusiveContent {\n // We get React Native's Android binaries exc...
2022/11/05
[ "https://Stackoverflow.com/questions/74325532", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15208727/" ]
74,325,536
<p><a href="https://i.stack.imgur.com/KPEJz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KPEJz.png" alt="vs code my code" /></a></p> <p>now i was doing a project. for fun with my friends wanted to do a circle where it rotates in the Z axis but i needed a gradient so did some research how to put a ...
[ { "answer_id": 74326271, "author": "Guna", "author_id": 15208727, "author_profile": "https://Stackoverflow.com/users/15208727", "pm_score": 6, "selected": true, "text": "allprojects {\n repositories {\n exclusiveContent {\n // We get React Native's Android binaries exc...
2022/11/05
[ "https://Stackoverflow.com/questions/74325536", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19813493/" ]
74,325,558
<p>I have two tables Table products : product_id,name,barcode1,barcode2,barcode3 Table more_barcodes: product_id,barcode</p> <p>How to join those two tables when user search barcode ?</p> <pre><code>select products.* from products LEFT JOIN more_barcodes ON products.product_id=more_barcodes.product_id where ( ...
[ { "answer_id": 74326271, "author": "Guna", "author_id": 15208727, "author_profile": "https://Stackoverflow.com/users/15208727", "pm_score": 6, "selected": true, "text": "allprojects {\n repositories {\n exclusiveContent {\n // We get React Native's Android binaries exc...
2022/11/05
[ "https://Stackoverflow.com/questions/74325558", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13957526/" ]
74,325,560
<p>I have tried to update category information and it's updated but not updated in the database. I am trying to <strong>return <strong>$category;</strong></strong> before <strong>$category-&gt;update();</strong> and see it's updated. But in the database not see updated data.</p> <p><a href="https://i.stack.imgur.com/6c...
[ { "answer_id": 74326271, "author": "Guna", "author_id": 15208727, "author_profile": "https://Stackoverflow.com/users/15208727", "pm_score": 6, "selected": true, "text": "allprojects {\n repositories {\n exclusiveContent {\n // We get React Native's Android binaries exc...
2022/11/05
[ "https://Stackoverflow.com/questions/74325560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14154959/" ]
74,325,565
<p>This maybe a simple question but I couldn't figure it out myself nor could I find an online resource for it.</p> <p>I have to develop a REST API using spring boot. I see two options to accept the json payload (max payload size 3 MB in some cases)</p> <p><strong>Option 1: Ask clients to send json in request body. Let...
[ { "answer_id": 74326271, "author": "Guna", "author_id": 15208727, "author_profile": "https://Stackoverflow.com/users/15208727", "pm_score": 6, "selected": true, "text": "allprojects {\n repositories {\n exclusiveContent {\n // We get React Native's Android binaries exc...
2022/11/05
[ "https://Stackoverflow.com/questions/74325565", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2534054/" ]
74,325,609
<p>When the user completes the registration process, I want to redirect her to the login page, where I get the following error.</p> <p>Unsafe redirect to URL with protocol 'accounts'</p> <p>What method should I use to solve this error?</p> <pre><code>class RegisterUser(APIView): serializer_class = RegisterSerialize...
[ { "answer_id": 74325655, "author": "Manoj Tolagekar", "author_id": 17808039, "author_profile": "https://Stackoverflow.com/users/17808039", "pm_score": 3, "selected": true, "text": "return HttpResponseRedirect('accounts:login')\n return HttpResponseRedirec('/accounts/login/')\n" }, { ...
2022/11/05
[ "https://Stackoverflow.com/questions/74325609", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14751614/" ]
74,325,613
<p>What would be considered best practice for implementing a persistent shopping cart in an ASP.net Web Forms(*) based application? The only built-in way seems to be involving the Session state, which is not ideal because once you close the browser... it's gone. One way seems to be involving the localStorage via Javasc...
[ { "answer_id": 74325655, "author": "Manoj Tolagekar", "author_id": 17808039, "author_profile": "https://Stackoverflow.com/users/17808039", "pm_score": 3, "selected": true, "text": "return HttpResponseRedirect('accounts:login')\n return HttpResponseRedirec('/accounts/login/')\n" }, { ...
2022/11/05
[ "https://Stackoverflow.com/questions/74325613", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6751492/" ]
74,325,624
<p>Not sure if there is a more elegant way to do what I want to do. Basically, I need to determine the current row's &quot;position&quot; value based on the &quot;factor&quot; value and the previous row's &quot;position&quot; value.</p> <p>I tried to loop through the DataFrame and use some if else statements to update ...
[ { "answer_id": 74325850, "author": "Rabinzel", "author_id": 15521392, "author_profile": "https://Stackoverflow.com/users/15521392", "pm_score": 1, "selected": false, "text": "1 if foo else 0 df = pd.DataFrame({'time': ['2022-05-13 06:00:00', '2022-05-13 07:00:00', '2022-05-13 08:00:00','...
2022/11/05
[ "https://Stackoverflow.com/questions/74325624", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15189383/" ]
74,325,669
<p>I'm trying to create a POST call using HttpClient that I have fully working in Postman. Here is the body I'm sending in Postman:</p> <pre><code>{ &quot;searchType&quot;: &quot;games&quot;, &quot;searchTerms&quot;: [ &quot;mario&quot; ], &quot;searchPage&quot;: 1, &quot;size&quot;: 20, &quot;searchOpt...
[ { "answer_id": 74325850, "author": "Rabinzel", "author_id": 15521392, "author_profile": "https://Stackoverflow.com/users/15521392", "pm_score": 1, "selected": false, "text": "1 if foo else 0 df = pd.DataFrame({'time': ['2022-05-13 06:00:00', '2022-05-13 07:00:00', '2022-05-13 08:00:00','...
2022/11/05
[ "https://Stackoverflow.com/questions/74325669", "https://Stackoverflow.com", "https://Stackoverflow.com/users/386869/" ]
74,325,676
<p>I want to the update the object of id 21, make reply to false.</p> <pre><code>const arr = [ {id: 1, comment:'parent 01', parentId:null, reply:true, children:[{id: 11, comment:'child', reply:true, parentId:1, children:[{id: 21, comment:'super child ', reply:true,parentId:11 }] }] }, {id: 2, comment:'parent 02', reply...
[ { "answer_id": 74325755, "author": "Pankti Shah", "author_id": 12364626, "author_profile": "https://Stackoverflow.com/users/12364626", "pm_score": 2, "selected": false, "text": " function changeData(arr,id){\n arr.forEach((ar)=>{\n if(ar.id==id){\n ar.re...
2022/11/05
[ "https://Stackoverflow.com/questions/74325676", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7482821/" ]
74,325,685
<p>It will take two keys as input key1 and key2 and finds the node with key1, then changes it to key2. This may disturb the BST property (of having smaller things to the left and bigger to the right); this function should make appropriate changes in tree so that it becomes BST again.</p> <p>I tried making links of the ...
[ { "answer_id": 74325755, "author": "Pankti Shah", "author_id": 12364626, "author_profile": "https://Stackoverflow.com/users/12364626", "pm_score": 2, "selected": false, "text": " function changeData(arr,id){\n arr.forEach((ar)=>{\n if(ar.id==id){\n ar.re...
2022/11/05
[ "https://Stackoverflow.com/questions/74325685", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19856463/" ]
74,325,702
<p>Let's say I have a a <code>vector&lt;vector&lt;int&gt;&gt;</code>. I want to use <code>ranges::transform</code> in such a way that I get</p> <pre class="lang-cpp prettyprint-override"><code>vector&lt;vector&lt;int&gt;&gt; original_vectors; using T = decltype(ranges::views::transform(original_vectors[0], [&amp;](int ...
[ { "answer_id": 74325842, "author": "Ranoiaetep", "author_id": 12861639, "author_profile": "https://Stackoverflow.com/users/12861639", "pm_score": 3, "selected": false, "text": "T vector<vector<int>> original_vectors;\nauto lambda = [&](int x){return x;};\nusing T = decltype(ranges::views...
2022/11/05
[ "https://Stackoverflow.com/questions/74325702", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5790812/" ]
74,325,748
<p>In my code, I am showing an image to the user by changing the src to</p> <pre><code> </code></pre> <pre><code> $(&quot;#&quot; + img_tag_id).attr('src', image.toDataURL()); </code></pre> <pre><code> </code></pre> <p>how can I take the value of this file to input tag below:</p> <p>HTML code:</p> <pre><code> &lt;inp...
[ { "answer_id": 74325842, "author": "Ranoiaetep", "author_id": 12861639, "author_profile": "https://Stackoverflow.com/users/12861639", "pm_score": 3, "selected": false, "text": "T vector<vector<int>> original_vectors;\nauto lambda = [&](int x){return x;};\nusing T = decltype(ranges::views...
2022/11/05
[ "https://Stackoverflow.com/questions/74325748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20173402/" ]
74,325,767
<p>I am trying to build an ASP.NET Core hosted Blazor web app. I have two entities with a one-to-many relationship.</p> <p>There is one portfolio that has many securities.</p> <p>Portfolio entity</p> <pre><code>public class Portfolio { [Key] public int PortfolioId { get; set; } [Required] public string ...
[ { "answer_id": 74338347, "author": "Marius", "author_id": 2286743, "author_profile": "https://Stackoverflow.com/users/2286743", "pm_score": 2, "selected": false, "text": "option ...\n <select class=\"form-control\">\n <option value=\"\" bind=@Security.Portfolio>Select P...
2022/11/05
[ "https://Stackoverflow.com/questions/74325767", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15066198/" ]
74,325,777
<p>Hi there I am trying to find out if any key value is true of an object.</p> <p>The following works only for objects without having nested objects.</p> <p>I am trying to check if any key in the objects no matter parent or child has got true value</p> <pre><code>const odb = { &quot;all&quot;: true, &quot;allA&quot...
[ { "answer_id": 74325830, "author": "caTS", "author_id": 18244921, "author_profile": "https://Stackoverflow.com/users/18244921", "pm_score": 4, "selected": true, "text": "isAnyKeyValueTrue some find && o[k] null typeof null === \"object\" const odb = {\n \"all\": false,\n \"allA\": fals...
2022/11/05
[ "https://Stackoverflow.com/questions/74325777", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20319015/" ]
74,325,781
<p>When I use</p> <pre><code> LaunchedEffect(Dispatchers.IO) </code></pre> <p>I get,</p> <blockquote> <p>NetworkOnMainThreadException</p> </blockquote> <p>How should I use this function to run on background thread?</p> <p>this is my code:</p> <pre><code>LaunchedEffect(Dispatchers.IO) { val input = URL(&quot;https:...
[ { "answer_id": 74326747, "author": "z.y", "author_id": 19023745, "author_profile": "https://Stackoverflow.com/users/19023745", "pm_score": 2, "selected": false, "text": "LaunchedEffect re-composition MutableState MutableState LaunchedEffect MutableState LaunchedEffect Composable @Composa...
2022/11/05
[ "https://Stackoverflow.com/questions/74325781", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18775967/" ]
74,325,797
<p>Hi I am trying to taking input in this fashion:</p> <pre><code>itemPrices: [{regionId: &quot;A&quot;, price: &quot;200&quot;},{regionId: &quot;B&quot;, price: &quot;100&quot;}] </code></pre> <p>As the user presses add button new input fields get added. <br> For this I have taken an empty array=&gt; <code>itemPrices:...
[ { "answer_id": 74325892, "author": "Timon Hueting", "author_id": 18505615, "author_profile": "https://Stackoverflow.com/users/18505615", "pm_score": 0, "selected": false, "text": "<vs-tr v-for=\"n in num\" v-bind:key=\"n\">\n <vs-td\n ><vs-input\n v...
2022/11/05
[ "https://Stackoverflow.com/questions/74325797", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11821885/" ]
74,325,837
<p>I have a vectorimageSlices and a 3D :</p> <pre><code>cv::Mat RTstruct3D(3,DImensions3D, CV_8U, Scalar(0)) </code></pre> <p>I want to put my vector into the specific index of 3D cv::Mat.</p> <pre><code> //Make a 3D Organ int programCounter = 0; vector&lt;Mat&gt;imageSlices; for (size_t ...
[ { "answer_id": 74325892, "author": "Timon Hueting", "author_id": 18505615, "author_profile": "https://Stackoverflow.com/users/18505615", "pm_score": 0, "selected": false, "text": "<vs-tr v-for=\"n in num\" v-bind:key=\"n\">\n <vs-td\n ><vs-input\n v...
2022/11/05
[ "https://Stackoverflow.com/questions/74325837", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19190785/" ]
74,325,912
<p>I have a list of Mono to run, but for memory consumption concern I'd like them to run one after another:</p> <pre class="lang-java prettyprint-override"><code>var monos = [m1, m2, m3]; Mono.zip(monos, (results) -&gt; { // handle result }); </code></pre> <p>The code above would execute m1 m2 m3 in parallel, how to ...
[ { "answer_id": 74326222, "author": "PeiSong", "author_id": 8310382, "author_profile": "https://Stackoverflow.com/users/8310382", "pm_score": 0, "selected": false, "text": "Flux([1, 2, 3]).concatMap(...)" }, { "answer_id": 74326390, "author": "Patrick Hooijer", "author_id"...
2022/11/05
[ "https://Stackoverflow.com/questions/74325912", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8310382/" ]
74,325,916
<p>I do get a warning whenever I throw an exception in my code without explicitly stating it in the docblocs: <a href="https://i.stack.imgur.com/I4Kse.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I4Kse.png" alt="enter image description here" /></a></p> <p>I know this can be fixed by adding <code>@...
[ { "answer_id": 74326222, "author": "PeiSong", "author_id": 8310382, "author_profile": "https://Stackoverflow.com/users/8310382", "pm_score": 0, "selected": false, "text": "Flux([1, 2, 3]).concatMap(...)" }, { "answer_id": 74326390, "author": "Patrick Hooijer", "author_id"...
2022/11/05
[ "https://Stackoverflow.com/questions/74325916", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2311074/" ]
74,325,929
<p>When I try to specify the parameter names when calling a function from inside a JavaScript class constructor, I get a <code>ReferenceError</code>.</p> <p>I will show the problem based on a simplified example:</p> <p>Suppose I have an object and methods like so:</p> <pre><code>class Person { constructor(name, ag...
[ { "answer_id": 74325953, "author": "Andrew Parks", "author_id": 5898421, "author_profile": "https://Stackoverflow.com/users/5898421", "pm_score": 3, "selected": true, "text": "p1.changeAgeAndName(newName='Joe', newAge=23);\n newName changeAgeAndName({newName, newAge}) {\n //...\n}\n th...
2022/11/05
[ "https://Stackoverflow.com/questions/74325929", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11814273/" ]
74,325,938
<p>My script to find where a value in Array <code>$c[]</code> is in Array <code>$a[]</code> works, but nested <code>If</code> statements are too long. Can this be shortened using a <code>For</code> statement using a variable for array <code>$c[]</code> with the following rules?</p> <pre><code>#include &lt;Array.au3&gt;...
[ { "answer_id": 74325953, "author": "Andrew Parks", "author_id": 5898421, "author_profile": "https://Stackoverflow.com/users/5898421", "pm_score": 3, "selected": true, "text": "p1.changeAgeAndName(newName='Joe', newAge=23);\n newName changeAgeAndName({newName, newAge}) {\n //...\n}\n th...
2022/11/05
[ "https://Stackoverflow.com/questions/74325938", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6275426/" ]
74,325,947
<p>Hi StackOverFlow community, that's my first question here and I'm glad to be part of this community as it already helped me in plenty of things. I looked on this topic and didn't manage to find anything. I would like to redirect the DefaultTabController to the new tab created after waiting that it's loaded and built...
[ { "answer_id": 74328890, "author": "Gwhyyy", "author_id": 18670641, "author_profile": "https://Stackoverflow.com/users/18670641", "pm_score": 0, "selected": false, "text": "scheduler import 'flutter/scheduler.dart';\n await Future.delayed(const Duration(milliseconds: 10),\n ...
2022/11/05
[ "https://Stackoverflow.com/questions/74325947", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20423723/" ]
74,325,983
<p>I am trying to understand how first class functions work in R. I had understood that functions were first class in R, but was sorely disappointed when applying that understanding. When a function is saved to a list, whether that be as an ordinary list, a vector or a dictionary style list or vector, it is no longer c...
[ { "answer_id": 74326316, "author": "B. Christian Kamgang", "author_id": 10848898, "author_profile": "https://Stackoverflow.com/users/10848898", "pm_score": 2, "selected": true, "text": "[] lst = [fun1, fun2] lst[0] fun1 lst[0:2] [[]] print_func <- function() {\n print('hi')\n}\nprint_fu...
2022/11/05
[ "https://Stackoverflow.com/questions/74325983", "https://Stackoverflow.com", "https://Stackoverflow.com/users/724403/" ]
74,326,004
<p>How to use apache gremlin <code>constant</code> in AWS Neptune database?</p> <pre><code>g.V().hasLabel('user').has('name', 'Thirumal1').coalesce(id(), constant(&quot;1&quot;)); </code></pre> <p>Not getting constant value in the output. The document says, need to use it with <code>sack</code> <a href="https://docs.aw...
[ { "answer_id": 74329436, "author": "Kelvin Lawrence", "author_id": 5442034, "author_profile": "https://Stackoverflow.com/users/5442034", "pm_score": 2, "selected": true, "text": "fold().coalesce() coalesce has g.V().hasLabel('user').\n has('name', 'Thirumal1').\n fold().\n ...
2022/11/05
[ "https://Stackoverflow.com/questions/74326004", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3391490/" ]
74,326,008
<p>i try to create linear function in an interval and the other interval is 0. and add it to an array</p> <p>so i tried this code</p> <pre><code>import numpy as np import sympy as sp import matplotlib as plt # This is all the library's i need import mpmath x = sp.symbols('x') n = 10 xx = (np.array([np.linspace(0, 1, n...
[ { "answer_id": 74329436, "author": "Kelvin Lawrence", "author_id": 5442034, "author_profile": "https://Stackoverflow.com/users/5442034", "pm_score": 2, "selected": true, "text": "fold().coalesce() coalesce has g.V().hasLabel('user').\n has('name', 'Thirumal1').\n fold().\n ...
2022/11/05
[ "https://Stackoverflow.com/questions/74326008", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20423772/" ]
74,326,049
<p>I have a situation, demo code below:</p> <pre><code> const callFnWithArgs = (callback: (a: string, b: number) =&gt; void) =&gt; async (a: string, b: number): Promise&lt;void&gt; =&gt; { try { await callback(a,b) } catch(e){ console.log(e) ...
[ { "answer_id": 74329436, "author": "Kelvin Lawrence", "author_id": 5442034, "author_profile": "https://Stackoverflow.com/users/5442034", "pm_score": 2, "selected": true, "text": "fold().coalesce() coalesce has g.V().hasLabel('user').\n has('name', 'Thirumal1').\n fold().\n ...
2022/11/05
[ "https://Stackoverflow.com/questions/74326049", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17632251/" ]
74,326,064
<p>I have 20 iconbuttons in my form. when clickevent is performed i want to change buttons(backcolor,forecolor,Iconcolor) and remaining buttons should revert to it's default color.</p> <pre><code> public void btn1() { foreach (Control c in this.Controls) { if (c is Button...
[ { "answer_id": 74329436, "author": "Kelvin Lawrence", "author_id": 5442034, "author_profile": "https://Stackoverflow.com/users/5442034", "pm_score": 2, "selected": true, "text": "fold().coalesce() coalesce has g.V().hasLabel('user').\n has('name', 'Thirumal1').\n fold().\n ...
2022/11/05
[ "https://Stackoverflow.com/questions/74326064", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19232771/" ]
74,326,065
<p>I was trying to learn c++ i wanted to find marks using the code the issue is that it is not giving me the correct output and i wanted it to loop if the marks are less i wawnted to repeat it . This is the code that i wrote</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;stdbool.h&gt; #include &lt;string.h&gt; v...
[ { "answer_id": 74329436, "author": "Kelvin Lawrence", "author_id": 5442034, "author_profile": "https://Stackoverflow.com/users/5442034", "pm_score": 2, "selected": true, "text": "fold().coalesce() coalesce has g.V().hasLabel('user').\n has('name', 'Thirumal1').\n fold().\n ...
2022/11/05
[ "https://Stackoverflow.com/questions/74326065", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20423890/" ]
74,326,096
<p>My panda DF contains huge data and giving filename with '.DAT' extension (client requirement) and using <code>to_csv()</code> to write data.</p> <p>When I open the file in notepad or any other text viewer, I see double quotes at start and end of the file:</p> <pre><code>&quot; col1|Col2|Col3 D1|D2|D3 ... So On ...
[ { "answer_id": 74329436, "author": "Kelvin Lawrence", "author_id": 5442034, "author_profile": "https://Stackoverflow.com/users/5442034", "pm_score": 2, "selected": true, "text": "fold().coalesce() coalesce has g.V().hasLabel('user').\n has('name', 'Thirumal1').\n fold().\n ...
2022/11/05
[ "https://Stackoverflow.com/questions/74326096", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20423896/" ]
74,326,097
<p>I'm working on an answer site crawler, how should I get the questions text inside this td, instead of including the text in the tag</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt; &lt;head&gt; &lt;meta charset=&quot;UTF-8&quot; /&gt; &lt;meta http-equiv=&quot;X-UA-Compatible&quot; co...
[ { "answer_id": 74329436, "author": "Kelvin Lawrence", "author_id": 5442034, "author_profile": "https://Stackoverflow.com/users/5442034", "pm_score": 2, "selected": true, "text": "fold().coalesce() coalesce has g.V().hasLabel('user').\n has('name', 'Thirumal1').\n fold().\n ...
2022/11/05
[ "https://Stackoverflow.com/questions/74326097", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15649365/" ]
74,326,106
<p>I'm currently working on a code and I'm getting this error. Please explain what am I doing wrong in a simple way...help!</p> <pre><code>s=int(input('input random seed:')) a=print('The first number is',format(random(50,56))) b=print('The second number is',format(random(50,56))) if (a*b)==c: print('Your answer is ...
[ { "answer_id": 74326144, "author": "Devam Sanghvi", "author_id": 16921041, "author_profile": "https://Stackoverflow.com/users/16921041", "pm_score": -1, "selected": false, "text": "None import random\ns=int(input('input random seed:'))\nrandom.seed(s)\na=format(random.randint(1,9))\nb=fo...
2022/11/05
[ "https://Stackoverflow.com/questions/74326106", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20423929/" ]
74,326,107
<p>I have this block of dart code here.</p> <pre><code> var response = await http.post(url); var data = response.body; await Future.delayed( const Duration(seconds: 1), ); if (!mounted) return; print(&quot;This is data $data&quot;); if (data == &quot;success&quot;) { print(&q...
[ { "answer_id": 74326278, "author": "Richard Heap", "author_id": 9597706, "author_profile": "https://Stackoverflow.com/users/9597706", "pm_score": 2, "selected": true, "text": "\"success\" success final data = '\"success\"'; // try changing this to 'success' for comparison\n print('Thi...
2022/11/05
[ "https://Stackoverflow.com/questions/74326107", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20307720/" ]
74,326,124
<pre><code>const SignIn = ({navigation}) =&gt; { const [data, setData] = React.useState({ username: '', password: '', check_textInputChange: false, secureTextEntry: true, isValidUser: true, isValidPassword: true, }); const { colors } = useTheme(); const { signIn } = React.useContext(AuthConte...
[ { "answer_id": 74326278, "author": "Richard Heap", "author_id": 9597706, "author_profile": "https://Stackoverflow.com/users/9597706", "pm_score": 2, "selected": true, "text": "\"success\" success final data = '\"success\"'; // try changing this to 'success' for comparison\n print('Thi...
2022/11/05
[ "https://Stackoverflow.com/questions/74326124", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13828784/" ]
74,326,136
<pre><code> let i = -1; let total = 0; let numPrompt; do { numPrompt = prompt(&quot;&quot;) total += parseInt(numPrompt) i++; } while (numPrompt != '0'); // do-while loop let avg = total/i; console.log(total) console.log(avg) </code></pre> <p>I want user to input a number each time till they input zero wh...
[ { "answer_id": 74326278, "author": "Richard Heap", "author_id": 9597706, "author_profile": "https://Stackoverflow.com/users/9597706", "pm_score": 2, "selected": true, "text": "\"success\" success final data = '\"success\"'; // try changing this to 'success' for comparison\n print('Thi...
2022/11/05
[ "https://Stackoverflow.com/questions/74326136", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20423412/" ]
74,326,251
<p>Please excuse how utterly &quot;noobish&quot; I am, I'm trying to learn as I go along but I'm <em>very</em> new.</p> <p>I have the below code which I'm trying to use for a Discord bot. For the most part it works, however the @ &quot;ping&quot; simply returns &quot;@undefined&quot; as opposed to the values I've set i...
[ { "answer_id": 74326329, "author": "Salem_Raouf", "author_id": 12863176, "author_profile": "https://Stackoverflow.com/users/12863176", "pm_score": 0, "selected": false, "text": "function pingSubbed() {\n let pingID = message.author.username;\n if (pingID == \"John\") {...
2022/11/05
[ "https://Stackoverflow.com/questions/74326251", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17105319/" ]
74,326,353
<p>ive got the below code to print a pattern (attached below). However i'd like to just use one loop</p> <pre class="lang-cpp prettyprint-override"><code>#include&lt;iostream&gt; using namespace std; int main(){ int n; cin&gt;&gt;n; for(int i=1;i&lt;=n;i++){ for(int j=1;j&lt;=i;j++){ cou...
[ { "answer_id": 74326361, "author": "A M", "author_id": 9666018, "author_profile": "https://Stackoverflow.com/users/9666018", "pm_score": 0, "selected": false, "text": "std::abs Number of stars number of dashdot\nRow width-abs(row-width) abs(row-width)\n\n 1 1 ...
2022/11/05
[ "https://Stackoverflow.com/questions/74326353", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12399640/" ]
74,326,380
<p>New to programming and looking for help please,</p> <p>i need to the set the value of $b_num based on the value of $egg_type i have tried using an if statement but not having any luck</p> <p>`</p> <pre><code> $egg_type = $row[&quot;egg_type&quot;] ; if ($egg_type...
[ { "answer_id": 74326361, "author": "A M", "author_id": 9666018, "author_profile": "https://Stackoverflow.com/users/9666018", "pm_score": 0, "selected": false, "text": "std::abs Number of stars number of dashdot\nRow width-abs(row-width) abs(row-width)\n\n 1 1 ...
2022/11/05
[ "https://Stackoverflow.com/questions/74326380", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6353530/" ]
74,326,407
<pre><code>'Membuat shortcut sheet untuk lebih pendek 'Make shortcut Set po = Sheets(&quot;Print Out&quot;) Dim awal, Akhir As Integer Dim j As Long 'mencantumkan N6 &amp; O6 menjadi value acuan 'Make N6 &amp; O6 as main value print awal = po.Range(&quot;N6&quot;).Value Akhir = po.Range(&quot;O6&quot;).Value j = 0 'men...
[ { "answer_id": 74326510, "author": "Svein Arne Hylland", "author_id": 20416519, "author_profile": "https://Stackoverflow.com/users/20416519", "pm_score": 0, "selected": false, "text": "If po.Range(\"M4\") + 2 > po.Range(\"O6\") Then \n po.PageSetup.PrintArea = \"$B$1:$L$4\"\nElse\n ...
2022/11/05
[ "https://Stackoverflow.com/questions/74326407", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20390194/" ]
74,326,413
<pre><code>#include &lt;unistd.h&gt; #include &lt;sys/types.h&gt; #include &lt;stdlib.h&gt; #include &lt;stdio.h&gt; #include &lt;sys/wait.h&gt; int main(){ char buf[10]; pid_t pid = fork(); if (pid &lt; 0){ printf(&quot;error fork\n&quot;); exit(1); } if (pid == 0){ fgets...
[ { "answer_id": 74326669, "author": "Janez Kuhar", "author_id": 6367213, "author_profile": "https://Stackoverflow.com/users/6367213", "pm_score": 2, "selected": true, "text": "fork() setbuf(stdin, NULL);\n stdin" }, { "answer_id": 74326713, "author": "Peter Irich", "author...
2022/11/05
[ "https://Stackoverflow.com/questions/74326413", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19815639/" ]