qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,602,459
<p>I don't understand why programmers use %s, when they can simply just add the variable name to the print statement. I mean its less work to type in the variable name instead of &quot; ...%s&quot; % name) &quot;</p> <p>Example:</p> <pre><code># declaring a string variable name = &quot;David&quot; # append a string w...
[ { "answer_id": 74602493, "author": "Bas van der Linden", "author_id": 11119684, "author_profile": "https://Stackoverflow.com/users/11119684", "pm_score": 1, "selected": false, "text": "# declaring a string variable\nname = \"David\"\n\n# format print using f-string\nprint(f\"Hey, {name}!...
2022/11/28
[ "https://Stackoverflow.com/questions/74602459", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20622932/" ]
74,602,502
<p>I was wondering if it is possible to include a configmap with its own values.yml file with a helm chart repository that I am not managing locally. This way, I can uninstall the resource with the name of the chart.</p> <p>Example:</p> <p>I am using New Relics Helm chart repository and installing the helm charts using...
[ { "answer_id": 74602493, "author": "Bas van der Linden", "author_id": 11119684, "author_profile": "https://Stackoverflow.com/users/11119684", "pm_score": 1, "selected": false, "text": "# declaring a string variable\nname = \"David\"\n\n# format print using f-string\nprint(f\"Hey, {name}!...
2022/11/28
[ "https://Stackoverflow.com/questions/74602502", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3489481/" ]
74,602,506
<p>To pass a list/array of ids from C# into Oracle PL/SQL procedure, <a href="https://blogs.oracle.com/connect/post/using-plsql-associative-arrays" rel="nofollow noreferrer">you have to define an associative array type</a> e.g. a table with integer indexing:</p> <pre><code>TYPE Ids_t_a is table of Number index by binar...
[ { "answer_id": 74605952, "author": "Littlefoot", "author_id": 9097906, "author_profile": "https://Stackoverflow.com/users/9097906", "pm_score": 0, "selected": false, "text": "sys.odcinumberlist emp SQL> create or replace procedure getdata\n 2 (ids in sys.odcinumberlist, results out s...
2022/11/28
[ "https://Stackoverflow.com/questions/74602506", "https://Stackoverflow.com", "https://Stackoverflow.com/users/197229/" ]
74,602,571
<p>I am trying to change long names in rows starting with <code>&gt;</code>, so that I only keep the part till <code>Stage_V_sporulation_protein...</code>:</p> <pre><code>&gt;tr_A0A024P1W8_A0A024P1W8_9BACI_Stage_V_sporulation_protein_AE_OS=Halobacillus_karajensis_OX=195088_GN=BN983_00096_PE=4_SV=1 MTFLWAFLVGGGICVIGQILL...
[ { "answer_id": 74605952, "author": "Littlefoot", "author_id": 9097906, "author_profile": "https://Stackoverflow.com/users/9097906", "pm_score": 0, "selected": false, "text": "sys.odcinumberlist emp SQL> create or replace procedure getdata\n 2 (ids in sys.odcinumberlist, results out s...
2022/11/28
[ "https://Stackoverflow.com/questions/74602571", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8655035/" ]
74,602,579
<pre><code>temp = &quot;75.1,77.7,83.2,82.5,81.0,79.5,85.7&quot; </code></pre> <p>I am stuck in this assignment and unable to find a relevant answer to help.</p> <p>I’ve used <code>.split(&quot;,&quot;)</code> and <code>float()</code> and I am still stuck here.</p>
[ { "answer_id": 74605952, "author": "Littlefoot", "author_id": 9097906, "author_profile": "https://Stackoverflow.com/users/9097906", "pm_score": 0, "selected": false, "text": "sys.odcinumberlist emp SQL> create or replace procedure getdata\n 2 (ids in sys.odcinumberlist, results out s...
2022/11/28
[ "https://Stackoverflow.com/questions/74602579", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20624813/" ]
74,602,608
<p>I am using the Accordion from bootstrap to show and hide information. In here, information is stored. The information is different depending on each accordion but the setup is the same.</p> <p>Because I have multiple accordions I have turned this in a reusable component using Razor (Blazor).</p> <p>My issue right no...
[ { "answer_id": 74605952, "author": "Littlefoot", "author_id": 9097906, "author_profile": "https://Stackoverflow.com/users/9097906", "pm_score": 0, "selected": false, "text": "sys.odcinumberlist emp SQL> create or replace procedure getdata\n 2 (ids in sys.odcinumberlist, results out s...
2022/11/28
[ "https://Stackoverflow.com/questions/74602608", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12707644/" ]
74,602,611
<p>I would like a program that does something like this: <a href="https://www.colortools.net/color_matcher.html" rel="nofollow noreferrer">https://www.colortools.net/color_matcher.html</a></p> <p>Anyone know how to do in flutter?</p> <p>I expect a function that compares two colors.</p>
[ { "answer_id": 74605952, "author": "Littlefoot", "author_id": 9097906, "author_profile": "https://Stackoverflow.com/users/9097906", "pm_score": 0, "selected": false, "text": "sys.odcinumberlist emp SQL> create or replace procedure getdata\n 2 (ids in sys.odcinumberlist, results out s...
2022/11/28
[ "https://Stackoverflow.com/questions/74602611", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20175621/" ]
74,602,618
<p>so I want to create a filter that returns data based upon the link, if the link contains /rome/ it will list all the pages that contains /rome/ which I've managed to do. But I'm also trying to create a filter based on the market within the cities, for example if the link contains /rome/supermarket/ I want to filter ...
[ { "answer_id": 74602724, "author": "Salketer", "author_id": 1620194, "author_profile": "https://Stackoverflow.com/users/1620194", "pm_score": 0, "selected": false, "text": "const pages = [{\n id: 1,\n name: 'Meals',\n startDate: '2022-11-09 10:32:00',\n endDate: '2022-11-16 1...
2022/11/28
[ "https://Stackoverflow.com/questions/74602618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10423361/" ]
74,602,649
<p>If I want to have two tables with many-to-many relationship, how do I create models and seed the database?</p> <p>For example classic tables Actors and Movies. I tried it like this</p> <pre><code>public class Actor { public Actor() { this.Movies = new HashSet&lt;Movies&gt;; } public int Id { get; s...
[ { "answer_id": 74602724, "author": "Salketer", "author_id": 1620194, "author_profile": "https://Stackoverflow.com/users/1620194", "pm_score": 0, "selected": false, "text": "const pages = [{\n id: 1,\n name: 'Meals',\n startDate: '2022-11-09 10:32:00',\n endDate: '2022-11-16 1...
2022/11/28
[ "https://Stackoverflow.com/questions/74602649", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14928702/" ]
74,602,685
<p>I receive a axios api response in following manner,</p> <pre><code> res.data = { material:['plate','bag','bottle'], customer:['cust1','cust2','cust3'], prod_id: [1122,3344,4445] } </code></pre> <p>now I want to rearrange this object to the display data in the table in below manner...
[ { "answer_id": 74602746, "author": "Axnyff", "author_id": 4949918, "author_profile": "https://Stackoverflow.com/users/4949918", "pm_score": 2, "selected": false, "text": "const rowdata = res_data.material.map((material, index) => ({\n material,\n customer: res_data.customer[index],...
2022/11/28
[ "https://Stackoverflow.com/questions/74602685", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20624706/" ]
74,602,699
<p>Suppose I have items in a table that resemble the following:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Item</th> <th>FamilyCode</th> </tr> </thead> <tbody> <tr> <td>ABR123</td> <td>ABR</td> </tr> <tr> <td>ABR456</td> <td>ABR</td> </tr> <tr> <td>BCL369</td> <td>BCL</td> </tr> <tr> <...
[ { "answer_id": 74602746, "author": "Axnyff", "author_id": 4949918, "author_profile": "https://Stackoverflow.com/users/4949918", "pm_score": 2, "selected": false, "text": "const rowdata = res_data.material.map((material, index) => ({\n material,\n customer: res_data.customer[index],...
2022/11/28
[ "https://Stackoverflow.com/questions/74602699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11208669/" ]
74,602,700
<p>I should somehow convert data type to easily insert into table with datetime format. From</p> <pre><code>2022-11-28T12:18:46.534919023Z </code></pre> <p>To 2022-11-28 12:18:46</p> <p>BTW using PostgreSQL. Any ideas how to do it?</p>
[ { "answer_id": 74602746, "author": "Axnyff", "author_id": 4949918, "author_profile": "https://Stackoverflow.com/users/4949918", "pm_score": 2, "selected": false, "text": "const rowdata = res_data.material.map((material, index) => ({\n material,\n customer: res_data.customer[index],...
2022/11/28
[ "https://Stackoverflow.com/questions/74602700", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20624851/" ]
74,602,709
<p>Im trying to scrape the information of all the player names and player rating from this website: <a href="https://www.fifaindex.com/players/?gender=0&amp;league=1&amp;order=desc" rel="nofollow noreferrer">https://www.fifaindex.com/players/?gender=0&amp;league=1&amp;order=desc</a></p> <p>But i only get the informatio...
[ { "answer_id": 74602746, "author": "Axnyff", "author_id": 4949918, "author_profile": "https://Stackoverflow.com/users/4949918", "pm_score": 2, "selected": false, "text": "const rowdata = res_data.material.map((material, index) => ({\n material,\n customer: res_data.customer[index],...
2022/11/28
[ "https://Stackoverflow.com/questions/74602709", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20590519/" ]
74,602,731
<p>I'm trying to get a dynamic date from a span with the id datetime and use that date for a countdown timer. But I see Nan all the time</p> <pre><code>&lt;span id=&quot;datetime&quot;&gt;30.11.2022 08:50:00&lt;/span&gt; &lt;p id=&quot;demo&quot;&gt;&lt;/p&gt; &lt;script&gt; var enddateTime = document.getElementById('...
[ { "answer_id": 74602746, "author": "Axnyff", "author_id": 4949918, "author_profile": "https://Stackoverflow.com/users/4949918", "pm_score": 2, "selected": false, "text": "const rowdata = res_data.material.map((material, index) => ({\n material,\n customer: res_data.customer[index],...
2022/11/28
[ "https://Stackoverflow.com/questions/74602731", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14369366/" ]
74,602,732
<p>im looking to solve the problem mentioned in the title without any specific functions that may or may not exist for this[<img src="https://i.stack.imgur.com/TZdnY.png" alt="Example" />]. Something along the lines of using mostly loops.</p> <p>I tought about reversing each individual row using list.reverse() and then...
[ { "answer_id": 74602746, "author": "Axnyff", "author_id": 4949918, "author_profile": "https://Stackoverflow.com/users/4949918", "pm_score": 2, "selected": false, "text": "const rowdata = res_data.material.map((material, index) => ({\n material,\n customer: res_data.customer[index],...
2022/11/28
[ "https://Stackoverflow.com/questions/74602732", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17387521/" ]
74,602,743
<p>I have hundreds of .wav files and imported them using list.files. Something like above:</p> <pre><code> [1] &quot;10/Project_English-10/BL-0001_A-conifer-cone-contains-seeds/Balsam-poplar-English-0701.wav&quot; [2] &quot;10/Project_English-10/BL-0001_A-conifer-cone-contains-seeds/Birch-English-0700.wav...
[ { "answer_id": 74602831, "author": "r2evans - GO NAVY BEAT ARMY", "author_id": 3358272, "author_profile": "https://Stackoverflow.com/users/3358272", "pm_score": 1, "selected": false, "text": "vec <- c( \"10/Project_English-10/BL-0001_A-conifer-cone-contains-seeds/Balsam-poplar-English-07...
2022/11/28
[ "https://Stackoverflow.com/questions/74602743", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20624712/" ]
74,602,757
<p>I Have some problem with some value on array at php, here is the array</p> <pre><code>array:4 [ 0 =&gt; array:7 [ &quot;id&quot; =&gt; 76 &quot;id_sender&quot; =&gt; 1 &quot;id_receiver&quot; =&gt; 2 &quot;message&quot; =&gt; &quot;2 Miliar&quot; &quot;is_read&quot; =&gt; 0 &quot;created_a...
[ { "answer_id": 74602831, "author": "r2evans - GO NAVY BEAT ARMY", "author_id": 3358272, "author_profile": "https://Stackoverflow.com/users/3358272", "pm_score": 1, "selected": false, "text": "vec <- c( \"10/Project_English-10/BL-0001_A-conifer-cone-contains-seeds/Balsam-poplar-English-07...
2022/11/28
[ "https://Stackoverflow.com/questions/74602757", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6462825/" ]
74,602,779
<p>Let's say I have an abstract class, called Logger:</p> <pre><code>public abstract class AbstractLogger { public enum Levels { DEBUG, INFO, WARNING, ERROR } public void debug(String message) { Levels level = Levels.DEBUG; log(level, message); } public void info(String message) { Levels level = Level...
[ { "answer_id": 74602863, "author": "rzwitserloot", "author_id": 768644, "author_profile": "https://Stackoverflow.com/users/768644", "pm_score": 1, "selected": false, "text": "AbstractLogger public abstract class AbstractLogger {\n public enum Levels {\n DEBUG, INFO, WARNING, ERROR,...
2022/11/28
[ "https://Stackoverflow.com/questions/74602779", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7953882/" ]
74,602,801
<p>Anybody knows how to tell jsreport about the custom fonts when loading it in .net core?</p> <p>jsreport does not seem to load the font, no matter what and there is no clear documentation on how to do it in .net.</p> <p>Program.cs: `</p> <pre><code>AddJsReport(new LocalReporting().UseBinary(RuntimeInformation.IsOSPla...
[ { "answer_id": 74602863, "author": "rzwitserloot", "author_id": 768644, "author_profile": "https://Stackoverflow.com/users/768644", "pm_score": 1, "selected": false, "text": "AbstractLogger public abstract class AbstractLogger {\n public enum Levels {\n DEBUG, INFO, WARNING, ERROR,...
2022/11/28
[ "https://Stackoverflow.com/questions/74602801", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11785611/" ]
74,602,813
<p>Sorry if its a very basic question but I dont understand the following:</p> <p>When I format the Date object (no matter what library I used), I get a string.</p> <pre><code>from this: 2022-11-28T16:55:44.000Z (new Date object) I get this: 2022-11-28 16:55:44 (or other formats obviously depending how I format it) </c...
[ { "answer_id": 74603127, "author": "Heiko Theißen", "author_id": 16462950, "author_profile": "https://Stackoverflow.com/users/16462950", "pm_score": 2, "selected": false, "text": "Z Date > utc = '2022-11-28T16:55:44.000Z'\n'2022-11-28T16:55:44.000Z'\n> d = new Date(utc)\nMon Nov 28 2022 ...
2022/11/28
[ "https://Stackoverflow.com/questions/74602813", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6377312/" ]
74,602,815
<p>I started c++ a few days ago and when ever I write an else if statement I always get the error <code>‘else’ without a previous ‘if’</code>. Here is my code (I'm trying to make rock paper scissors between users btw. I want to eventually add lizard and spock too from the big bang show.):</p> <pre><code>/* This program...
[ { "answer_id": 74602910, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 3, "selected": true, "text": "if (user == 1)\n std::cout << \"You pick rock!\\n\";\n if (computer == 1)\n std::cout << \"You both...
2022/11/28
[ "https://Stackoverflow.com/questions/74602815", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17762920/" ]
74,602,817
<p>I have hamburger menu and added click to open a sub menu and after that struggling to close the sub-menu, please check the detailed code below. Thanks...!!</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-js lan...
[ { "answer_id": 74602860, "author": "FUZIION", "author_id": 13050564, "author_profile": "https://Stackoverflow.com/users/13050564", "pm_score": 1, "selected": false, "text": "active #mob function myFunction() {\n const toggle_btn = document.getElementById('mob');\n toggle_btn.classList....
2022/11/28
[ "https://Stackoverflow.com/questions/74602817", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13701644/" ]
74,602,834
<p>I want to call a function where drawableprofile is binding as a profile icon. I want to call it when &quot;imageUrl&quot; child doesn't exist.</p> <pre><code>val uid = firebaseAuth.currentUser?.uid if (uid != null) { database.child(uid).get().addOnSuccessListener { if (it.exists()) { val fet...
[ { "answer_id": 74602860, "author": "FUZIION", "author_id": 13050564, "author_profile": "https://Stackoverflow.com/users/13050564", "pm_score": 1, "selected": false, "text": "active #mob function myFunction() {\n const toggle_btn = document.getElementById('mob');\n toggle_btn.classList....
2022/11/28
[ "https://Stackoverflow.com/questions/74602834", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20407324/" ]
74,602,929
<p>I found for bash, using <code>$'string'</code> allows for escape characters. I also want to use a variable in the string like <code>$'string ${var}'</code>. However, the variable is not expanded and the output is <code>string ${var}</code>. Is there a way to use a variable in this type of string?</p> <p>The reason I...
[ { "answer_id": 74602988, "author": "M. Nejat Aydin", "author_id": 13809001, "author_profile": "https://Stackoverflow.com/users/13809001", "pm_score": 2, "selected": false, "text": "symbol='\\uF107'\necho -e \"\\uF101 ${symbol}\"\n printf '%b\\n' \"\\uF101 ${symbol}\"\n" }, { "an...
2022/11/28
[ "https://Stackoverflow.com/questions/74602929", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13231537/" ]
74,602,934
<p>How did compiler decide to call bar function without knowing the type of template parameter <code>T</code> of foo function?</p> <p>Usually when we call <code>foo(2)</code>, <code>T</code> is deduced as <code>int</code> based on argument <code>2</code>.</p> <p>Here <code>T</code> is deduced based on parameters of fun...
[ { "answer_id": 74603861, "author": "Karen Baghdasaryan", "author_id": 15262489, "author_profile": "https://Stackoverflow.com/users/15262489", "pm_score": 0, "selected": false, "text": "T bar const int& T int" }, { "answer_id": 74603981, "author": "user17732522", "author_i...
2022/11/28
[ "https://Stackoverflow.com/questions/74602934", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5750805/" ]
74,602,965
<p>So I am working on a project and want to get an image from my server to the application. I use an imagesource to get the image I need and it works fine on UWP but when I test it on Android it does not work. I tried everything I could find on the internet and it is still not working.</p> <p>If you could help that wou...
[ { "answer_id": 74603861, "author": "Karen Baghdasaryan", "author_id": 15262489, "author_profile": "https://Stackoverflow.com/users/15262489", "pm_score": 0, "selected": false, "text": "T bar const int& T int" }, { "answer_id": 74603981, "author": "user17732522", "author_i...
2022/11/28
[ "https://Stackoverflow.com/questions/74602965", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14219597/" ]
74,603,005
<p>Is there a reliable way to use MLFlow in a functional style? As it is not possible to pass the run ID for example to the function which logs a parameter, I wonder whether it is possible to seperate code executed in my MLFLow run into multiple pure fuctions. Have I overlooked something, or is it simply not possible?<...
[ { "answer_id": 74603861, "author": "Karen Baghdasaryan", "author_id": 15262489, "author_profile": "https://Stackoverflow.com/users/15262489", "pm_score": 0, "selected": false, "text": "T bar const int& T int" }, { "answer_id": 74603981, "author": "user17732522", "author_i...
2022/11/28
[ "https://Stackoverflow.com/questions/74603005", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16766083/" ]
74,603,020
<p>I have a list:</p> <pre><code>list = [['X', 'Y'], 'A', 1, 2, 3] </code></pre> <p>That I want to split into:</p> <pre><code>new_list = [['X','A', 1, 2, 3] , ['Y', 'A', 1, 2, 3]] </code></pre> <p>Is this possible?</p>
[ { "answer_id": 74603150, "author": "ShadowCrafter_01", "author_id": 15174310, "author_profile": "https://Stackoverflow.com/users/15174310", "pm_score": 0, "selected": false, "text": "l = [['X', 'Y'], 'A', 1, 2, 3]\n\nnew_list = []\nto_append = []\nfor item in l:\n if isinstance(item, ...
2022/11/28
[ "https://Stackoverflow.com/questions/74603020", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20471057/" ]
74,603,066
<p>i kinda new in react native. i want to make function that show cards with just feeding them list. for testing, i use usestate.it meant to be json. but somehow i cant access the property on the object.</p> <pre class="lang-js prettyprint-override"><code> const [data,setData]= useState([ {ob1:[ {key:'1b',valu...
[ { "answer_id": 74603150, "author": "ShadowCrafter_01", "author_id": 15174310, "author_profile": "https://Stackoverflow.com/users/15174310", "pm_score": 0, "selected": false, "text": "l = [['X', 'Y'], 'A', 1, 2, 3]\n\nnew_list = []\nto_append = []\nfor item in l:\n if isinstance(item, ...
2022/11/28
[ "https://Stackoverflow.com/questions/74603066", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20624865/" ]
74,603,104
<p>I would like to create an alias that works in zsh and bash, but weirdly enough zsh tries to pass on an unquoted variable as a single argument:</p> <pre class="lang-bash prettyprint-override"><code>❯ zsh -f grasshopper% LS_OPTIONS=&quot;-l -a&quot; &amp;&amp; ls $LS_OPTIONS ls: invalid option -- ' ' Try 'ls --help' f...
[ { "answer_id": 74603396, "author": "chepner", "author_id": 1126841, "author_profile": "https://Stackoverflow.com/users/1126841", "pm_score": 3, "selected": true, "text": "zsh bash LS_OPTIONS=(-l -a) && ls \"${LS_OPTIONS[@]}\"\n SH_WORD_SPLIT zsh bash bash" }, { "answer_id": 74653...
2022/11/28
[ "https://Stackoverflow.com/questions/74603104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6723250/" ]
74,603,142
<pre><code>function Getir() { var options = { host: 'example', port: 443, path: '/myUrl' }; get(options, function (http_res) { var data = &quot;&quot;; http_res.on(&quot;data&quot;, function (chunk) { data += chunk; }); ht...
[ { "answer_id": 74603396, "author": "chepner", "author_id": 1126841, "author_profile": "https://Stackoverflow.com/users/1126841", "pm_score": 3, "selected": true, "text": "zsh bash LS_OPTIONS=(-l -a) && ls \"${LS_OPTIONS[@]}\"\n SH_WORD_SPLIT zsh bash bash" }, { "answer_id": 74653...
2022/11/28
[ "https://Stackoverflow.com/questions/74603142", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20426159/" ]
74,603,143
<p>I am trying to write a function that calls another function multiple times in its body. I am hoping to control the number of such function calls and their respective target by using an argument, but this becomes tricky due to the structure of pipelines. Imagine this simple example of mutating columns. I am fully awa...
[ { "answer_id": 74603306, "author": "Limey", "author_id": 13434871, "author_profile": "https://Stackoverflow.com/users/13434871", "pm_score": 1, "selected": false, "text": "across scale_cols <- function(data, cols) {\n for (c in cols) {\n data <- data %>% mutate({{c}} := scale({{c}}))...
2022/11/28
[ "https://Stackoverflow.com/questions/74603143", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5539674/" ]
74,603,169
<p>I am having a problem with the following programm. When I try to run decorator the easier way, using @ like this</p> <pre><code>def decorator1(fun): def wrapper(): text = '------' return text + '\n' + fun + '\n' + text return wrapper() def decorator2(fun): def wrapper(): return...
[ { "answer_id": 74603306, "author": "Limey", "author_id": 13434871, "author_profile": "https://Stackoverflow.com/users/13434871", "pm_score": 1, "selected": false, "text": "across scale_cols <- function(data, cols) {\n for (c in cols) {\n data <- data %>% mutate({{c}} := scale({{c}}))...
2022/11/28
[ "https://Stackoverflow.com/questions/74603169", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6758526/" ]
74,603,216
<p>So I have this text:</p> <p><a href="https://i.stack.imgur.com/6vyAE.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6vyAE.jpg" alt="enter image description here" /></a></p> <p>Using JavaScript, I am trying to develop a regex that matches the first 4 sentences, including any newline characters.</p...
[ { "answer_id": 74603306, "author": "Limey", "author_id": 13434871, "author_profile": "https://Stackoverflow.com/users/13434871", "pm_score": 1, "selected": false, "text": "across scale_cols <- function(data, cols) {\n for (c in cols) {\n data <- data %>% mutate({{c}} := scale({{c}}))...
2022/11/28
[ "https://Stackoverflow.com/questions/74603216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3485759/" ]
74,603,276
<p>I'm trying to write a small gpx file conversion script. The conversion part is done but I can't fix the naming of the converted file. I want the filename of the converted file like this:</p> <pre><code>originalfilename.2.gpx </code></pre> <p>This is the code I have so far:</p> <pre><code>-- begin script -- For conve...
[ { "answer_id": 74603306, "author": "Limey", "author_id": 13434871, "author_profile": "https://Stackoverflow.com/users/13434871", "pm_score": 1, "selected": false, "text": "across scale_cols <- function(data, cols) {\n for (c in cols) {\n data <- data %>% mutate({{c}} := scale({{c}}))...
2022/11/28
[ "https://Stackoverflow.com/questions/74603276", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5376591/" ]
74,603,282
<p>This navbar contains dropdown menus that don't work while converting from Bootstrap v5.2.2 to v5.2.3. It does not dropdown, instead staying still. Can someone explain what I am doing wrong?</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"...
[ { "answer_id": 74603306, "author": "Limey", "author_id": 13434871, "author_profile": "https://Stackoverflow.com/users/13434871", "pm_score": 1, "selected": false, "text": "across scale_cols <- function(data, cols) {\n for (c in cols) {\n data <- data %>% mutate({{c}} := scale({{c}}))...
2022/11/28
[ "https://Stackoverflow.com/questions/74603282", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20322733/" ]
74,603,291
<p>I have a basic html markup, where i am trying to use minimal html wrappers to achieve the design.<br> So my goal is without adding more html wrappers, using flex, force 3rd flex item to start from second column like here</p> <pre><code>1 2 3 </code></pre> <p>Of course, we can achieve adding <code>padding/margin-l...
[ { "answer_id": 74603763, "author": "Michael Benjamin", "author_id": 3597276, "author_profile": "https://Stackoverflow.com/users/3597276", "pm_score": 3, "selected": true, "text": ".container {\n display: flex;\n flex-wrap: wrap;\n background-color: grey;\n column-gap: 15px;\n paddin...
2022/11/28
[ "https://Stackoverflow.com/questions/74603291", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12971921/" ]
74,603,298
<p>I trying to group several nodes that have the same contexts inside a existing nodes, by example my case is try to group node Desglose within Detalle, so by example one Node <strong>Detalle</strong> could have N nodes <strong>Desglose</strong>.</p> <p>My Actual XML</p> <pre><code> &lt;?xml version=&quot;1.0&quot; ...
[ { "answer_id": 74612904, "author": "michael.hor257k", "author_id": 3016153, "author_profile": "https://Stackoverflow.com/users/3016153", "pm_score": 2, "selected": true, "text": "xsl:for-each-group group-starting-with <xsl:stylesheet version=\"1.0\" \nxmlns:xsl=\"http://www.w3.org/1999/X...
2022/11/28
[ "https://Stackoverflow.com/questions/74603298", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8936307/" ]
74,603,327
<p>Here is my code:</p> <pre><code>return Scaffold( appBar: AppBar( backgroundColor: Colors.grey[900], leading: IconButton( icon: const Icon(Icons.arrow_back), onPressed: () =&gt; Navigator.of(context).pop(false), ), ), backgroundColor: Colors.grey[900], body: Visibility( visible: ...
[ { "answer_id": 74603399, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 0, "selected": false, "text": "Flexible Expanded Expnaded( child: Text( question!.question,....\n" }, { "answer_id": 74604482, ...
2022/11/28
[ "https://Stackoverflow.com/questions/74603327", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2661419/" ]
74,603,328
<p>I have a div &quot;button&quot; that opens a popup. When you click on the popup, it runs</p> <pre><code>function theFunctionAbout() { var popup = document.getElementById(&quot;thePopupAbout&quot;); popup.classList.add(&quot;show&quot;); } </code></pre> <p>and it will add show, which is visibility:vis...
[ { "answer_id": 74603476, "author": "Grizou", "author_id": 20068386, "author_profile": "https://Stackoverflow.com/users/20068386", "pm_score": 1, "selected": false, "text": "element.classList.toggle(\"hide\");" }, { "answer_id": 74603510, "author": "Moussa Bistami", "autho...
2022/11/28
[ "https://Stackoverflow.com/questions/74603328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20542839/" ]
74,603,338
<p>I am having a problem with the image src that I am trying to upload in my dApp. I have the height and width properties set but it still shows the following error:</p> <p><code>Uncaught Error: Image with src &quot;https://vivi-project.infura-ipfs.io/ipfs/Qmc5VkpgsRbiyxG1152WVfnHgZ4caqVLJDSrUPYhX9TdCP&quot; must use &...
[ { "answer_id": 74603476, "author": "Grizou", "author_id": 20068386, "author_profile": "https://Stackoverflow.com/users/20068386", "pm_score": 1, "selected": false, "text": "element.classList.toggle(\"hide\");" }, { "answer_id": 74603510, "author": "Moussa Bistami", "autho...
2022/11/28
[ "https://Stackoverflow.com/questions/74603338", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20251805/" ]
74,603,351
<p>I have created a data frame which has rolling quarter mapping using the code</p> <pre><code>abcd = pd.DataFrame() abcd['Month'] = np.nan abcd['Month'] = pd.date_range(start='2020-04-01', end='2022-04-01', freq = 'MS') abcd['Time_1'] = np.arange(1, abcd.shape[0]+1) abcd['Time_2'] = np.arange(0, abcd.shape[0]) abcd[...
[ { "answer_id": 74603476, "author": "Grizou", "author_id": 20068386, "author_profile": "https://Stackoverflow.com/users/20068386", "pm_score": 1, "selected": false, "text": "element.classList.toggle(\"hide\");" }, { "answer_id": 74603510, "author": "Moussa Bistami", "autho...
2022/11/28
[ "https://Stackoverflow.com/questions/74603351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14363224/" ]
74,603,354
<p>Here is the array</p> <pre><code> string[] Numbers = new string[5] { &quot;1&quot;, &quot;2&quot;, &quot;&quot;, &quot;3&quot;, &quot;4&quot; }; </code></pre> <p>As you can see I have 1 item that has nothing in it. What I'm trying to do is make the array smaller and move, everything after the clear sp...
[ { "answer_id": 74603408, "author": "Roman Ryzhiy", "author_id": 7592390, "author_profile": "https://Stackoverflow.com/users/7592390", "pm_score": 2, "selected": false, "text": "System.Linq string[] Numbers = new string[5] { \"1\", \"2\", \"\", \"3\", \"4\" };\nstring[] ClearNumbers = Num...
2022/11/28
[ "https://Stackoverflow.com/questions/74603354", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17473661/" ]
74,603,356
<p>I would like to bind a variable inside a LOOP macro, but only conditionally.</p> <p>Example:</p> <pre class="lang-lisp prettyprint-override"><code>(loop :for (num div) :in '((1 2) (4 2) (3 0) (1 4)) :when (/= 0 div) :for res = (/ num div) :collect num :do (format T &quot;~A divided by ~A = ~A...
[ { "answer_id": 74603408, "author": "Roman Ryzhiy", "author_id": 7592390, "author_profile": "https://Stackoverflow.com/users/7592390", "pm_score": 2, "selected": false, "text": "System.Linq string[] Numbers = new string[5] { \"1\", \"2\", \"\", \"3\", \"4\" };\nstring[] ClearNumbers = Num...
2022/11/28
[ "https://Stackoverflow.com/questions/74603356", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4359699/" ]
74,603,360
<p>i am new to python and i'm trying to understand the use of the 'getter'. it's use case is not obvious to me. if i use a property decorator on a method and im able to return a certain value, what exactly would i use 'getter' for.</p> <pre><code>class Person: def __init__(self,name, age): self._name = nam...
[ { "answer_id": 74603568, "author": "CodeMonkey", "author_id": 543969, "author_profile": "https://Stackoverflow.com/users/543969", "pm_score": 3, "selected": true, "text": "@age.setter p = Person(\"John\", 22)\nprint(p.age)\n 22\n" }, { "answer_id": 74603784, "author": "chepne...
2022/11/28
[ "https://Stackoverflow.com/questions/74603360", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20389571/" ]
74,603,374
<p>I have a very lengthy html page with multiple instances of this type of code:</p> <pre><code>&lt;h3&gt;Some header text &lt;span class=&quot;text-small&quot;&gt;Text I want to move&lt;/span&gt; &lt;/h3&gt; </code></pre> <p>Ideal result:</p> <pre><code>&lt;p&gt;Text I want to move&lt;/p&gt; &lt;h3&gt;Some header ...
[ { "answer_id": 74603568, "author": "CodeMonkey", "author_id": 543969, "author_profile": "https://Stackoverflow.com/users/543969", "pm_score": 3, "selected": true, "text": "@age.setter p = Person(\"John\", 22)\nprint(p.age)\n 22\n" }, { "answer_id": 74603784, "author": "chepne...
2022/11/28
[ "https://Stackoverflow.com/questions/74603374", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1030420/" ]
74,603,379
<p>I am probably overengineering this - but I was hoping some can help me understand why this isn't working. My goal was to build a class that primarily uses classmethods, except in the case where a user creates an instance of the class so that they can change the assumed internal date.</p> <pre><code>import datetime ...
[ { "answer_id": 74603646, "author": "edd313", "author_id": 12040751, "author_profile": "https://Stackoverflow.com/users/12040751", "pm_score": 2, "selected": false, "text": "class Example():\n ref_date = dt.date.today()\n \n def __init__(self, ref_date=None):\n if ref_date...
2022/11/28
[ "https://Stackoverflow.com/questions/74603379", "https://Stackoverflow.com", "https://Stackoverflow.com/users/558619/" ]
74,603,385
<p>I cannot seem to get the serif font 'Source Serif Pro' to render in my app. I have also set up 'Roboto&quot; which renders fine. I tried a few different ways in the tailwind config...array...string...font stack in double quotes as said on Tailwind site.<br /> Not sure what I am missing here?</p> <p>tailwind config</...
[ { "answer_id": 74603480, "author": "kanuos", "author_id": 10822859, "author_profile": "https://Stackoverflow.com/users/10822859", "pm_score": 0, "selected": false, "text": "@font-face css" }, { "answer_id": 74603777, "author": "kissu", "author_id": 8816585, "author_pr...
2022/11/28
[ "https://Stackoverflow.com/questions/74603385", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9859897/" ]
74,603,418
<p>I am trying to implement <code>strcmp</code> and <code>strcpy</code> to re-arrange names in alphabetical order and there is an issue with my name array initialization.</p> <p>The state array cannot be printed out on the console as expected.</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &...
[ { "answer_id": 74603480, "author": "kanuos", "author_id": 10822859, "author_profile": "https://Stackoverflow.com/users/10822859", "pm_score": 0, "selected": false, "text": "@font-face css" }, { "answer_id": 74603777, "author": "kissu", "author_id": 8816585, "author_pr...
2022/11/28
[ "https://Stackoverflow.com/questions/74603418", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20488233/" ]
74,603,443
<p>In the browser returns the input in the list when I placed, but in the same second disappears. Until the end of the function the array is fulfill, when refresh the response the array &quot;does&quot; is empty. Something is wrong and the state is not storing.</p> <pre><code>import React,{useState} from 'react'; impor...
[ { "answer_id": 74603840, "author": "Dream Bold", "author_id": 12743692, "author_profile": "https://Stackoverflow.com/users/12743692", "pm_score": 1, "selected": true, "text": "div ...\n <h1>To do List!</h1>\n <div>\n <input\n type=\"text\"\n ...
2022/11/28
[ "https://Stackoverflow.com/questions/74603443", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20531893/" ]
74,603,450
<p>I am working on an application to predict a disease from it's symptoms, I have some trouble making a dataset. If someone has a dataset on this, please link it to drive and share it here. Also I have a question on a good model for this(sklearn only). I am currently using decision tree classifier as my model for the p...
[ { "answer_id": 74603840, "author": "Dream Bold", "author_id": 12743692, "author_profile": "https://Stackoverflow.com/users/12743692", "pm_score": 1, "selected": true, "text": "div ...\n <h1>To do List!</h1>\n <div>\n <input\n type=\"text\"\n ...
2022/11/28
[ "https://Stackoverflow.com/questions/74603450", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20625247/" ]
74,603,466
<p>I'm trying to make a if-else statement that if user put time which have past, it will alert the user that the time has past. And I also unable to set the timedialogpicker to the current time when the user open it. Thanks in advance.</p> <p>The code:</p> <pre><code>button.setOnClickListener(new View.OnClickListener()...
[ { "answer_id": 74604630, "author": "Devin Sag", "author_id": 20388932, "author_profile": "https://Stackoverflow.com/users/20388932", "pm_score": 1, "selected": false, "text": " Calendar timeNow = Calendar.getInstance();\n Date curDate = new Date();\n timeNow.setTime(...
2022/11/28
[ "https://Stackoverflow.com/questions/74603466", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19485355/" ]
74,603,467
<p>I would like to add a <code>Product</code> to a <code>Shop</code>'s container but i can't and i don't understand why because my <code>Shop</code> is var and not let. My goal is to put a <code>Product</code> into a <code>Shop</code> like this: input Shop(name: &quot;Apple Store&quot;, container: []) output: Shop(nam...
[ { "answer_id": 74603997, "author": "Jorge Poveda", "author_id": 18557672, "author_profile": "https://Stackoverflow.com/users/18557672", "pm_score": 1, "selected": false, "text": "@State var shops: [Shop]\n ForEach(shops) { shop in // shop here is a let\n ForEach(Array(shops.enumerated())...
2022/11/28
[ "https://Stackoverflow.com/questions/74603467", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20558077/" ]
74,603,493
<p>I have the following (atom) input component Element UI (Element Plus for vue 3) as base component.</p> <p><code>atom/input/index.vue</code></p> <pre><code>&lt;template&gt; &lt;el-form-item :label=&quot;label&quot;&gt; &lt;ElInput :value=&quot;modelValue&quot; @input=&quot;$emit('update:modelValue',...
[ { "answer_id": 74603997, "author": "Jorge Poveda", "author_id": 18557672, "author_profile": "https://Stackoverflow.com/users/18557672", "pm_score": 1, "selected": false, "text": "@State var shops: [Shop]\n ForEach(shops) { shop in // shop here is a let\n ForEach(Array(shops.enumerated())...
2022/11/28
[ "https://Stackoverflow.com/questions/74603493", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7512296/" ]
74,603,495
<p>I am trying to get elements from ng-content which is present in the same component, but I am unable to get them.</p> <p>Component html</p> <pre><code>&lt;div&gt; &lt;ng-content #action&gt;&lt;/ng-content&gt; &lt;app-comp2&gt;&lt;/app-comp2&gt; &lt;/div&gt; </code></pre> <p>Component's .ts</p> <pre><code>@ContentChil...
[ { "answer_id": 74603997, "author": "Jorge Poveda", "author_id": 18557672, "author_profile": "https://Stackoverflow.com/users/18557672", "pm_score": 1, "selected": false, "text": "@State var shops: [Shop]\n ForEach(shops) { shop in // shop here is a let\n ForEach(Array(shops.enumerated())...
2022/11/28
[ "https://Stackoverflow.com/questions/74603495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11423881/" ]
74,603,507
<p>I'm trying to parse lyrics site and I need to collect song's lyrics. I have issues with my output</p> <p>I need to have lyrics displayed as below <a href="https://i.stack.imgur.com/JB4zF.png" rel="nofollow noreferrer">enter image description here</a></p> <p>I've figured out how to split text at uppercase, but there ...
[ { "answer_id": 74603997, "author": "Jorge Poveda", "author_id": 18557672, "author_profile": "https://Stackoverflow.com/users/18557672", "pm_score": 1, "selected": false, "text": "@State var shops: [Shop]\n ForEach(shops) { shop in // shop here is a let\n ForEach(Array(shops.enumerated())...
2022/11/28
[ "https://Stackoverflow.com/questions/74603507", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20625309/" ]
74,603,529
<p>I'm pulling a JSON file using js. But since I do this with a for loop, the server gives a 429 error. I looked for ways to slow the cycle. but I couldn't find a working solution. I tried setTimeOut, I tried delay fetch. I guess it wasn't true.</p> <pre><code> let koordinatlar = []; ...
[ { "answer_id": 74603997, "author": "Jorge Poveda", "author_id": 18557672, "author_profile": "https://Stackoverflow.com/users/18557672", "pm_score": 1, "selected": false, "text": "@State var shops: [Shop]\n ForEach(shops) { shop in // shop here is a let\n ForEach(Array(shops.enumerated())...
2022/11/28
[ "https://Stackoverflow.com/questions/74603529", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18756115/" ]
74,603,540
<p>I am transforming input XML to this output format:</p> <pre><code>&lt;InvoiceTransmission xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;IATAFuelInvoiceStandardv2.0.2.xsd&quot;&gt; &lt;InvoiceTransmissionHeader&gt; &lt;InvoiceCreationDate&gt;2020-07-23&lt;/I...
[ { "answer_id": 74603654, "author": "Heiko Theißen", "author_id": 16462950, "author_profile": "https://Stackoverflow.com/users/16462950", "pm_score": 2, "selected": true, "text": "xsl:namespace xmlns:xsi <xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"\n xmlns:xs=\"http...
2022/11/28
[ "https://Stackoverflow.com/questions/74603540", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1617437/" ]
74,603,550
<p>Why is this raising an AttributeError?</p> <pre><code>class A: def f(self): print(super().__dict__) A().f() # raises AttributeError: 'super' object has no attribute '__dict__' </code></pre>
[ { "answer_id": 74603994, "author": "Paweł Rubin", "author_id": 8091093, "author_profile": "https://Stackoverflow.com/users/8091093", "pm_score": 0, "selected": false, "text": "super() object object __dict__ object().__dict__ # raises AttributeError\n __dict__ A class Foo:\n pass\n\n\...
2022/11/28
[ "https://Stackoverflow.com/questions/74603550", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10680954/" ]
74,603,557
<p>We figured out finding way to list only B2C users by using filter. We tried to filter users with their B2C domain name like</p> <pre><code>GET https://graph.microsoft.com/v1.0/users?$filter=endswith(mail,'@b2ctenant.onmicrosoft.com') </code></pre> <p>But this is not working out, tried different ways but same error</...
[ { "answer_id": 74609631, "author": "Sridevi", "author_id": 18043665, "author_profile": "https://Stackoverflow.com/users/18043665", "pm_score": 3, "selected": true, "text": "GET https://graph.microsoft.com/v1.0/users?$filter=endswith(mail,'@b2ctenant.onmicrosoft.com')\n UserPrincipalName ...
2022/11/28
[ "https://Stackoverflow.com/questions/74603557", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20600454/" ]
74,603,571
<p>I am trying to add a remote address to a branch, but when trying to fetch, or do <code>git ls-remote</code> , I get Permission denied:</p> <pre><code>myuser@22.22.22.222: Permission denied (publickey). fatal: Could not read from remote repository. </code></pre> <p>So I'm wondering how to troubleshoot this? I tried u...
[ { "answer_id": 74604410, "author": "chepner", "author_id": 1126841, "author_profile": "https://Stackoverflow.com/users/1126841", "pm_score": 2, "selected": true, "text": "theserver Host theserver\n User myuser\n HostName 22.22.22.222\n IdentityFile ~/.ssh/myfile.pem\n Port 22\n git git r...
2022/11/28
[ "https://Stackoverflow.com/questions/74603571", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4245985/" ]
74,603,582
<p>I have a web page where I show list of strings (strings are fetched from API call). They are presented as select/option tags and I need to show ALL options (they should not be hidden). To make it possible I specify <code>size</code> attribute in select tag. Here's the code:</p> <p>html:</p> <pre><code>&lt;select siz...
[ { "answer_id": 74603680, "author": "Moussa Bistami", "author_id": 15628525, "author_profile": "https://Stackoverflow.com/users/15628525", "pm_score": 2, "selected": true, "text": "<select size=\"1\">\n <option value=\"1\">1</option>\n</select>\n <select size=\"1\" multiple>\n <option v...
2022/11/28
[ "https://Stackoverflow.com/questions/74603582", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6056624/" ]
74,603,618
<p>I have one variable group in ADO library which store different paths and some other variables.</p> <p>In my main &quot;master&quot; pipeline I use it as below:</p> <pre><code>variables: - group: myGroupName - name: nameOfMyVariable(from variables group) or JustAnyName - value: $[variables.nameOfMyVariable] or $[v...
[ { "answer_id": 74606600, "author": "Kontekst", "author_id": 6334351, "author_profile": "https://Stackoverflow.com/users/6334351", "pm_score": 1, "selected": false, "text": "variables:\n- group: myGroupName\n" }, { "answer_id": 74610283, "author": "Ceeno Qi-MSFT", "author_...
2022/11/28
[ "https://Stackoverflow.com/questions/74603618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2968396/" ]
74,603,622
<p>I run two same code. But it shows different answer.</p> <p>Code 1:</p> <pre><code>#include&lt;stdio.h&gt; int main(){ float far = 98.6; printf(&quot;%f&quot;, (far-32)*5/9); return 0; } </code></pre> <p>Code 2:</p> <pre><code>#include&lt;stdio.h&gt; int main(){ float far = 98.6; float cel...
[ { "answer_id": 74603690, "author": "Some programmer dude", "author_id": 440558, "author_profile": "https://Stackoverflow.com/users/440558", "pm_score": 1, "selected": false, "text": "printf printf float double double float printf double cel double" }, { "answer_id": 74604242, ...
2022/11/28
[ "https://Stackoverflow.com/questions/74603622", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19630256/" ]
74,603,624
<p>I've carried around a really useful JavaScript function for a while, not entirely sure of the origin (probably here on Stack Overflow) but it's certainly not something I've written as I know very little JS.</p> <p>It basically reveals form sections based on the chosen select option. It works a charm when used once, ...
[ { "answer_id": 74603814, "author": "isherwood", "author_id": 1264804, "author_profile": "https://Stackoverflow.com/users/1264804", "pm_score": 1, "selected": false, "text": "function reveal() {\n // hide all\n document.querySelectorAll('.hidden').forEach(el => {\n el.style.display =...
2022/11/28
[ "https://Stackoverflow.com/questions/74603624", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1641090/" ]
74,603,629
<p>what is the problem, i just changed group name here, i get could not resolve for springsecuriy extras i can't see why</p> <pre><code>plugins { id 'java' id 'org.springframework.boot' version '3.0.0' id 'io.spring.dependency-management' version '1.1.0' id 'org.hibernate.orm' version '6.1.5.Final' id 'o...
[ { "answer_id": 74604641, "author": "Raya", "author_id": 19879549, "author_profile": "https://Stackoverflow.com/users/19879549", "pm_score": 1, "selected": false, "text": "repositories {\nmaven {\n url \"https://repo1.maven.org/maven2\"\n\n\n\n}\nmaven { url \"https://repo.spring.io/mi...
2022/11/28
[ "https://Stackoverflow.com/questions/74603629", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19879549/" ]
74,603,631
<p>I have looked high and low (all over google/stackoverflow) for whatever could be wrong with my code... but nothing has turned out all day, so now I turn to writing a question myself: I have two near identical functions in my service class, that make a post request to my api/backend (which in turn contains two near i...
[ { "answer_id": 74604641, "author": "Raya", "author_id": 19879549, "author_profile": "https://Stackoverflow.com/users/19879549", "pm_score": 1, "selected": false, "text": "repositories {\nmaven {\n url \"https://repo1.maven.org/maven2\"\n\n\n\n}\nmaven { url \"https://repo.spring.io/mi...
2022/11/28
[ "https://Stackoverflow.com/questions/74603631", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19887473/" ]
74,603,678
<p>I'm learning SQL, I'm a bit complicated with a sentence that I have to do.</p> <p>I need to get the accounts, which have these values in the same columns (KEY)</p> <pre><code>1133-1-1, 7095-1-1 </code></pre> <p>Code:</p> <pre><code>SELECT cta FROM cargos WHERE key = '7095-1-1' AND key = '7021-233-1'; </code></pre>...
[ { "answer_id": 74604641, "author": "Raya", "author_id": 19879549, "author_profile": "https://Stackoverflow.com/users/19879549", "pm_score": 1, "selected": false, "text": "repositories {\nmaven {\n url \"https://repo1.maven.org/maven2\"\n\n\n\n}\nmaven { url \"https://repo.spring.io/mi...
2022/11/28
[ "https://Stackoverflow.com/questions/74603678", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16596581/" ]
74,603,683
<p>I'm doing multiple fetchs with <code>Promise.all</code>. So I receive data like this :</p> <pre><code>[ 0: { ... }, 1: { ... } ] </code></pre> <p>But I would like to name my Objects. So I can do <code>data.myObject</code> istead of <code>data[0]</code>.</p> <p>I would like the index to be a s...
[ { "answer_id": 74603753, "author": "Quentin", "author_id": 19068, "author_profile": "https://Stackoverflow.com/users/19068", "pm_score": 1, "selected": false, "text": "Promise.all const names = ['home', 'product'];\nconst promises = [fetchHome(), fetchProduct()];\nconst results = await P...
2022/11/28
[ "https://Stackoverflow.com/questions/74603683", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17978333/" ]
74,603,703
<p>I am reading about Angular Interceptors, and I don’t get one thing. Is there a need to use HTTP interceptors in Angular, if let’s say I use CORS in a backend in NodeJS to connect back and front. Do we use interceptors in case where i don’t have custom backend, or is it optional.</p> <p>I was reading, but as I don’t ...
[ { "answer_id": 74603753, "author": "Quentin", "author_id": 19068, "author_profile": "https://Stackoverflow.com/users/19068", "pm_score": 1, "selected": false, "text": "Promise.all const names = ['home', 'product'];\nconst promises = [fetchHome(), fetchProduct()];\nconst results = await P...
2022/11/28
[ "https://Stackoverflow.com/questions/74603703", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13052552/" ]
74,603,707
<p>i have a string like d333-4444-555--5---5-<br /> and want catch only two first dashes and get 333-4444-55555<br /> if it will be first two and two in a row, two becomes one like: d333--4444-555--5---5- goes 333-4444-55555</p> <p>any advice or ready solvation</p> <p>i started with <code>console.log('d-45----'.replace...
[ { "answer_id": 74603753, "author": "Quentin", "author_id": 19068, "author_profile": "https://Stackoverflow.com/users/19068", "pm_score": 1, "selected": false, "text": "Promise.all const names = ['home', 'product'];\nconst promises = [fetchHome(), fetchProduct()];\nconst results = await P...
2022/11/28
[ "https://Stackoverflow.com/questions/74603707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12030982/" ]
74,603,719
<p>I have a KC instance where I have some clients with the <code>Authorization</code> option enabled. All works well, but, acting as a client, I need this specific information: Given a certain resource with specific scopes I want the list of users who have accesse to this resource.</p> <p>I've explored the available AP...
[ { "answer_id": 74603753, "author": "Quentin", "author_id": 19068, "author_profile": "https://Stackoverflow.com/users/19068", "pm_score": 1, "selected": false, "text": "Promise.all const names = ['home', 'product'];\nconst promises = [fetchHome(), fetchProduct()];\nconst results = await P...
2022/11/28
[ "https://Stackoverflow.com/questions/74603719", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2381099/" ]
74,603,734
<p>I am configuring minio as S3 compatible storage.</p> <p>Based on <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html</a></p> <p>I understood that I can limit access to...
[ { "answer_id": 74662111, "author": "Harshavardhana", "author_id": 4465767, "author_profile": "https://Stackoverflow.com/users/4465767", "pm_score": 1, "selected": false, "text": " \"Principal\": {\n \"AWS\": [\n \"arn:aws:iam::111122223333:roo...
2022/11/28
[ "https://Stackoverflow.com/questions/74603734", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2674303/" ]
74,603,748
<p>I'm new to java and trying to add a string to itself (plus other strings also) and it runs but doesn't do anything at all, as in it just outputs &quot;test&quot;, which is what it is before everything else seems to work</p> <pre><code>package chucknorris; import java.util.Scanner; public class Main { public st...
[ { "answer_id": 74604056, "author": "Vidu Gajadeera", "author_id": 20624511, "author_profile": "https://Stackoverflow.com/users/20624511", "pm_score": 0, "selected": false, "text": "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.println...
2022/11/28
[ "https://Stackoverflow.com/questions/74603748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10000907/" ]
74,603,758
<p>I'm trying to validate that a user input int is numbers only. This has been my most recent try:</p> <pre><code>while True: NumCars = int(input(&quot;Enter the number of cars on the policy: &quot;)) NumCarsStr = str(NumCars) if NumCarsStr == &quot;&quot;: print(&quot;Number of cars cannot be blan...
[ { "answer_id": 74603785, "author": "Sembei Norimaki", "author_id": 20396240, "author_profile": "https://Stackoverflow.com/users/20396240", "pm_score": 1, "selected": false, "text": "while True:\n try:\n NumCars = int(input(\"Enter the number of cars on the policy: \"))\n ...
2022/11/28
[ "https://Stackoverflow.com/questions/74603758", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20258403/" ]
74,603,772
<p>I own an Asustor and I want to dockerise my node js app to be able to run any time. I followed <a href="https://nodejs.org/fr/docs/guides/nodejs-docker-webapp/" rel="nofollow noreferrer">official tutorial from nodejs</a> but it's not working as intended on my nas, while on my computer everything is fine.</p> <p>Here...
[ { "answer_id": 74603785, "author": "Sembei Norimaki", "author_id": 20396240, "author_profile": "https://Stackoverflow.com/users/20396240", "pm_score": 1, "selected": false, "text": "while True:\n try:\n NumCars = int(input(\"Enter the number of cars on the policy: \"))\n ...
2022/11/28
[ "https://Stackoverflow.com/questions/74603772", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20625342/" ]
74,603,789
<p>I am using the Pandas library on Python and was wondering if there is a way to use a list variable (or perhaps series is better?), let's say <code>uID_list</code>, in an SQL query that is also executed within the same Python code. For example:</p> <pre><code>dict = {'a': 1, 'b': 2, 'c':3} uID_series = pd.Series(data...
[ { "answer_id": 74603785, "author": "Sembei Norimaki", "author_id": 20396240, "author_profile": "https://Stackoverflow.com/users/20396240", "pm_score": 1, "selected": false, "text": "while True:\n try:\n NumCars = int(input(\"Enter the number of cars on the policy: \"))\n ...
2022/11/28
[ "https://Stackoverflow.com/questions/74603789", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15488220/" ]
74,603,819
<p>I have the following function that makes a GET request for my user information and caches it using react query's fetchQuery so that every call after the first one does not make a GET request and instead just pulls the data from the cache.</p> <pre><code>export const getSelf = async (): Promise&lt;UserData&gt; =&gt; ...
[ { "answer_id": 74603888, "author": "Oleg Brazhnichenko", "author_id": 7028321, "author_profile": "https://Stackoverflow.com/users/7028321", "pm_score": 1, "selected": false, "text": "import { useQueryClient } from '@tanstack/react-query'\n\n// Get QueryClient from the context\nconst quer...
2022/11/28
[ "https://Stackoverflow.com/questions/74603819", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8618818/" ]
74,603,821
<p>I was shocked by the output of this... been coding in C for a few years now. Could someone explain a possible use case? Seems like it should be a compiler warning.</p> <pre><code>#include &lt;stdio.h&gt; int chk(int var) { return var++; } int main (void) { int a = 1; a = chk(a); printf(&quot;var ...
[ { "answer_id": 74604142, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 2, "selected": false, "text": "int chk(int var)\n{\n return var++;\n}\n var return var;\n int chk(int var)\n{\n return ++var;\n}\n" ...
2022/11/28
[ "https://Stackoverflow.com/questions/74603821", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6534937/" ]
74,603,839
<p>I need some help with this, I'm stuck in JS Arrays &amp; Loops, I don't know why this is telling me that if the function is empty is not returning &quot;0&quot;.</p> <pre class="lang-js prettyprint-override"><code>function sumArray (numbers) { // your code var numbers = [1, 2, 3, 4]; if (numbers !== undefined)...
[ { "answer_id": 74604142, "author": "Vlad from Moscow", "author_id": 2877241, "author_profile": "https://Stackoverflow.com/users/2877241", "pm_score": 2, "selected": false, "text": "int chk(int var)\n{\n return var++;\n}\n var return var;\n int chk(int var)\n{\n return ++var;\n}\n" ...
2022/11/28
[ "https://Stackoverflow.com/questions/74603839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20625555/" ]
74,603,849
<p>My input type has an attributed <code>disabled</code> but whenever i save the value in php it does say &quot; field_name is required&quot; why i can't insert when the input is disabled?</p> <pre><code>&lt;input disabled type=&quot;number&quot; name=&quot;qty[]&quot; id=&quot;qty_1&quot; class=&quot;form-control&quot...
[ { "answer_id": 74604164, "author": "mykaf", "author_id": 1599011, "author_profile": "https://Stackoverflow.com/users/1599011", "pm_score": -1, "selected": false, "text": "<select name=\"product[]\" disabled>\n<option value=\"1\">1</option>\n<option value=\"2\" selected>2</option>\n<optio...
2022/11/28
[ "https://Stackoverflow.com/questions/74603849", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14393948/" ]
74,603,867
<p>Basically I want to be able to rotate the numbers clockwise when I click the rotate button. I think I've attached all of the associated code. I created a button. It links back to the javascript function. It even runs the function. The issue is I can only get it to run the function and rotate one time.</p> <p><div cl...
[ { "answer_id": 74604012, "author": "IT goldman", "author_id": 3807365, "author_profile": "https://Stackoverflow.com/users/3807365", "pm_score": 0, "selected": false, "text": "var value1 = \"1\";\nvar value2 = \"2\";\nvar value4 = \"3\";\nvar value3 = \"4\";\n\ndocument.getElementById(\"v...
2022/11/28
[ "https://Stackoverflow.com/questions/74603867", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20625506/" ]
74,603,929
<p>I have a collection of Products in a list (<code>List&lt;Product&gt;</code> ) where product holds id, name and price.</p> <p>If I would order the list in a descending way based on price, is there a one liner or extensionmethod that allows me to insert a new product in the correct position of the list?</p> <pre><code...
[ { "answer_id": 74604141, "author": "Tim Schmelter", "author_id": 284240, "author_profile": "https://Stackoverflow.com/users/284240", "pm_score": 4, "selected": true, "text": "SortedList<TKey, TValue> SortedList<int, Product> productList = new();\nvar p = new Product{ Id = 1, Name = \"Pro...
2022/11/28
[ "https://Stackoverflow.com/questions/74603929", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7924943/" ]
74,603,960
<p>The goal -&gt; For each word in the text except the last one, a key should appear in the resulting dictionary, and the corresponding value should be a list of every word that occurs immediately after the key word in the text. Repeated words should have multiple values: example:</p> <pre><code>fun([&quot;ONE&quot;, &...
[ { "answer_id": 74604141, "author": "Tim Schmelter", "author_id": 284240, "author_profile": "https://Stackoverflow.com/users/284240", "pm_score": 4, "selected": true, "text": "SortedList<TKey, TValue> SortedList<int, Product> productList = new();\nvar p = new Product{ Id = 1, Name = \"Pro...
2022/11/28
[ "https://Stackoverflow.com/questions/74603960", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20625629/" ]
74,604,005
<p>I have members, the group in which they belong and datetimes in which they were active. I want to find out which of the members had gap of more than 3 months between dates and I need to rank them.</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>header 1</th> <th>header 2</th> <th>Create ...
[ { "answer_id": 74604141, "author": "Tim Schmelter", "author_id": 284240, "author_profile": "https://Stackoverflow.com/users/284240", "pm_score": 4, "selected": true, "text": "SortedList<TKey, TValue> SortedList<int, Product> productList = new();\nvar p = new Product{ Id = 1, Name = \"Pro...
2022/11/28
[ "https://Stackoverflow.com/questions/74604005", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5522504/" ]
74,604,048
<p>I have a type like below:</p> <pre class="lang-js prettyprint-override"><code>type Entity = | { type: 'user' | 'person'; id: string; } | { type: 'animal'; id: number; }; </code></pre> <p>Now I want to extract the types from it:</p> <p><code>type Animal = Extract&lt;Entity, {type: ...
[ { "answer_id": 74604130, "author": "Alex Wayne", "author_id": 62076, "author_profile": "https://Stackoverflow.com/users/62076", "pm_score": 3, "selected": true, "text": "Extract<T, U> { type: 'user' | 'person', id: string } { type: 'user' } declare const entity: Entity\nconst user: { typ...
2022/11/28
[ "https://Stackoverflow.com/questions/74604048", "https://Stackoverflow.com", "https://Stackoverflow.com/users/291695/" ]
74,604,066
<p>I have created a Docker image and pushed it to the AWS ECR repository</p> <p>I'm creating a task with 3 containers included, one for Redis one for PostgreSQL and another one for the given Image which is my Node project</p> <p>In Dockerfile, I have added a CMD to run the App with <code>node</code> command, here is th...
[ { "answer_id": 74604130, "author": "Alex Wayne", "author_id": 62076, "author_profile": "https://Stackoverflow.com/users/62076", "pm_score": 3, "selected": true, "text": "Extract<T, U> { type: 'user' | 'person', id: string } { type: 'user' } declare const entity: Entity\nconst user: { typ...
2022/11/28
[ "https://Stackoverflow.com/questions/74604066", "https://Stackoverflow.com", "https://Stackoverflow.com/users/955719/" ]
74,604,073
<p>How can I get the value that I am getting with the following jQuery code with JavaScript?</p> <p><strong>jQuery code snippet:</strong></p> <pre><code>$('.add-to-cart-btn').on('click', function() { qualifyingProductVariantId = $(this).closest('form').find(&quot;input[type='hidden'][name='id']&quot;).val(); }); </co...
[ { "answer_id": 74604130, "author": "Alex Wayne", "author_id": 62076, "author_profile": "https://Stackoverflow.com/users/62076", "pm_score": 3, "selected": true, "text": "Extract<T, U> { type: 'user' | 'person', id: string } { type: 'user' } declare const entity: Entity\nconst user: { typ...
2022/11/28
[ "https://Stackoverflow.com/questions/74604073", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3574257/" ]
74,604,121
<p>My dataset has a dummy variable which divides the data set into two groups. I would like to display the descriptive statistics for both next to each other, like:</p> <p><a href="https://i.stack.imgur.com/ZLDzZ.png" rel="nofollow noreferrer">example</a></p> <p>using stargazer. Is this possible?</p> <p>For example, if...
[ { "answer_id": 74658947, "author": "jrcalabrese", "author_id": 14992857, "author_profile": "https://Stackoverflow.com/users/14992857", "pm_score": 2, "selected": false, "text": "stargazer modelsummary gtsummary flextable stargazer mtcars am gtsummary library(tidyverse)\ndata(mtcars)\n\n#...
2022/11/28
[ "https://Stackoverflow.com/questions/74604121", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20625239/" ]
74,604,145
<p>Using <a href="https://stackoverflow.com/questions/19882085/subset-dataframe-using-a-loop">this SO question</a> as a starting point, if my data appears like this:</p> <pre><code>index state date Amount 2 FL 2010-06-08 0 21 FL 2010-10-08 10 6 FL 2010-08-16 ...
[ { "answer_id": 74658947, "author": "jrcalabrese", "author_id": 14992857, "author_profile": "https://Stackoverflow.com/users/14992857", "pm_score": 2, "selected": false, "text": "stargazer modelsummary gtsummary flextable stargazer mtcars am gtsummary library(tidyverse)\ndata(mtcars)\n\n#...
2022/11/28
[ "https://Stackoverflow.com/questions/74604145", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2868585/" ]
74,604,150
<h2>This is My text I want to change color which is in single quotes and last id, This text is dynamic Its coming from API -&gt;</h2> <p>Your query 'THIS IS TESTING SUBJECT TRYING TO EXPLORE HAHA .' has been raised with ticket id: #0606c2a23d9e</p> <p>I want to make like this <a href="https://i.stack.imgur.com/DsIku.pn...
[ { "answer_id": 74604198, "author": "Munsif Ali", "author_id": 14466860, "author_profile": "https://Stackoverflow.com/users/14466860", "pm_score": 1, "selected": false, "text": "RichText(\n text: TextSpan(\n text: 'Hello ',\n style: DefaultTextStyle.of(context).style,\n children: const <T...
2022/11/28
[ "https://Stackoverflow.com/questions/74604150", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15610685/" ]
74,604,190
<p>I have a column with two types of names (embedded within a longer string).</p> <p>names are like <code>A/HK/RATATA/Lol(2007)</code> or <code>A/chickapig/RATATA/Lol(2003)</code>.</p> <p>I would like to filter using a regular expression based on the number of &quot;/&quot; within each name.</p> <pre><code>Example: In...
[ { "answer_id": 74604239, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 3, "selected": true, "text": "/ str_count filter library(dplyr)\nn <- 3\ndf %>%\n filter(str_count(col1, fixed(\"/\")) == n)\n ...
2022/11/28
[ "https://Stackoverflow.com/questions/74604190", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8877090/" ]
74,604,193
<p>I am trying to randomize a number with 32 hexadecimal digits in bash with seed which depends on the date.<br /> I thought about something like: <code>RANDOM=$(date +%N | cut -b4-9)</code> , but it's not give me 32 hexadecimal digits.</p> <p>ideas?</p>
[ { "answer_id": 74604239, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 3, "selected": true, "text": "/ str_count filter library(dplyr)\nn <- 3\ndf %>%\n filter(str_count(col1, fixed(\"/\")) == n)\n ...
2022/11/28
[ "https://Stackoverflow.com/questions/74604193", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9459321/" ]
74,604,195
<p>I pull data with react-query and need to store it in state due to some form editing that is happening later.</p> <p>Before the form editing, it worked well:</p> <pre><code>import { useQuery } from '@apollo/client'; import { SINGLE_PARTICIPANT_QUERY } from 'queries/participantQueries'; import { ProfileGeneral } from ...
[ { "answer_id": 74604239, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 3, "selected": true, "text": "/ str_count filter library(dplyr)\nn <- 3\ndf %>%\n filter(str_count(col1, fixed(\"/\")) == n)\n ...
2022/11/28
[ "https://Stackoverflow.com/questions/74604195", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4551483/" ]
74,604,202
<p>Sorry , please bare with me , ah I would just like to ask for the terminology and how do we implement or convert a string into something like below. I am not sure if that is string array or something but the output should look like the example.</p> <p>Thanks for any help and ideas. Appreciated.</p> <pre><code>let a ...
[ { "answer_id": 74604277, "author": "Martinez", "author_id": 19027584, "author_profile": "https://Stackoverflow.com/users/19027584", "pm_score": 2, "selected": true, "text": "const b = 'name'\nconst output = JSON.stringify([b])\n" }, { "answer_id": 74604346, "author": "jjj", ...
2022/11/28
[ "https://Stackoverflow.com/questions/74604202", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16703570/" ]
74,604,221
<p>I have a DataFrame that has a column with time data like ['25:45','12:34:34'], the initial idea is: first convert this column to a list called &quot;time_list&quot;. Then with a for, iterate and convert it to minutes</p> <pre><code>time_list = df7[' Chip Time'].tolist() time_mins = [] for i in time_list: h, m, ...
[ { "answer_id": 74604818, "author": "user911346", "author_id": 20586552, "author_profile": "https://Stackoverflow.com/users/20586552", "pm_score": 1, "selected": false, "text": "h, m, s = i.split(':') t = i.split(':') i.split i = [aa:bb] t = i.split(':')\nfor i in range(len(t)):\n math...
2022/11/28
[ "https://Stackoverflow.com/questions/74604221", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20163459/" ]
74,604,238
<p>I iterate through a nested dictionary taken from a json including one of the keys (&quot;price&quot;) and sometimes a list sometimes a dictionary.</p> <pre><code>Data={&quot;main&quot;: {&quot;sub_main&quot;: [ {&quot;id&quot;: &quot;995&quot;, &quot;item&quot;: &quot;850&quot;, &quot;price&quot;: {&quot;ref...
[ { "answer_id": 74604945, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 2, "selected": true, "text": "item['price'] dict list ref value Data = {\n \"main\": {\n \"sub_main\": [\n {\n ...
2022/11/28
[ "https://Stackoverflow.com/questions/74604238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11230924/" ]
74,604,248
<p>I'm currently making a instagram type of app in Android Studio, my app only shows the newest pic at the bottom of the grid. The Collections.reverse(arrayList) is not working</p> <p>here's my main.java</p> <pre><code>package com.example.mygram; import androidx.activity.result.ActivityResult; import androidx.activit...
[ { "answer_id": 74604945, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 2, "selected": true, "text": "item['price'] dict list ref value Data = {\n \"main\": {\n \"sub_main\": [\n {\n ...
2022/11/28
[ "https://Stackoverflow.com/questions/74604248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20604535/" ]
74,604,250
<p>Hey I need some help with sql query I have this data</p> <pre><code>count Timestamp 1 10:05 2 10:06 3 10:07 1 10:08 2 10:09 3 10:10 </code></pre> <p>I would like to obtain for each timestamp the total of count until that moment</p> <pre><code>count Timestamp 1 10:05 3 10:06 6 10:0...
[ { "answer_id": 74604945, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 2, "selected": true, "text": "item['price'] dict list ref value Data = {\n \"main\": {\n \"sub_main\": [\n {\n ...
2022/11/28
[ "https://Stackoverflow.com/questions/74604250", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20625788/" ]
74,604,275
<p>I am aware of the sorted() function but I am having a little trouble using it/implementing it in my code. I have a database containing student records such as Name, address, age etc. When the user selects &quot;4&quot; the program runs the function to Display all records saved in the database and I desire it to be ...
[ { "answer_id": 74604945, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 2, "selected": true, "text": "item['price'] dict list ref value Data = {\n \"main\": {\n \"sub_main\": [\n {\n ...
2022/11/28
[ "https://Stackoverflow.com/questions/74604275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20524919/" ]