qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,600,439
<p>The goal is to write a function that returns the total quantity of all storage units put together (Madrid, Barcelona and Seville), I do think its better to use a recursion for this problem however i cant seem to work it out! I have this dictionary:</p> <pre><code>Storage = { &quot;Madrid&quot;: [ {&quot;...
[ { "answer_id": 74600538, "author": "Yip", "author_id": 15047837, "author_profile": "https://Stackoverflow.com/users/15047837", "pm_score": 0, "selected": false, "text": "if not isinstance(n[key], str):\n current_sum = current_sum + n[key]\n [{'name': 'pencil', 'quantity': 5}, ...
2022/11/28
[ "https://Stackoverflow.com/questions/74600439", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20450290/" ]
74,600,456
<p>I have response coming from the api like attached image. I want to convert this response to the image. I have tried to convert this into base64 string but i am not able to do it as well.</p> <p>Image of the response</p> <p><a href="https://i.stack.imgur.com/4bamb.png" rel="nofollow noreferrer"><img src="https://i.st...
[ { "answer_id": 74600538, "author": "Yip", "author_id": 15047837, "author_profile": "https://Stackoverflow.com/users/15047837", "pm_score": 0, "selected": false, "text": "if not isinstance(n[key], str):\n current_sum = current_sum + n[key]\n [{'name': 'pencil', 'quantity': 5}, ...
2022/11/28
[ "https://Stackoverflow.com/questions/74600456", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17320926/" ]
74,600,529
<p>I'm planning to use my WordPress installation as a headless and only consume data via WP API (<a href="https://developer.wordpress.org/rest-api/reference/" rel="nofollow noreferrer">https://developer.wordpress.org/rest-api/reference/</a>) in the front-end.</p> <p>But by default, the UI of the client-facing website i...
[ { "answer_id": 74600538, "author": "Yip", "author_id": 15047837, "author_profile": "https://Stackoverflow.com/users/15047837", "pm_score": 0, "selected": false, "text": "if not isinstance(n[key], str):\n current_sum = current_sum + n[key]\n [{'name': 'pencil', 'quantity': 5}, ...
2022/11/28
[ "https://Stackoverflow.com/questions/74600529", "https://Stackoverflow.com", "https://Stackoverflow.com/users/405623/" ]
74,600,539
<p>i'm new to Java, so i have a little problem here...</p> <p>i need to write a function that extracts the server name from the URL It means the following: For a row of the form http://SomeServerName/abcd/dfdf.htm?dfdf=dfdf i need to isolate &quot;SomeServerName&quot;</p> <ul> <li>The string may not necessarily start w...
[ { "answer_id": 74600658, "author": "user2959556", "author_id": 2959556, "author_profile": "https://Stackoverflow.com/users/2959556", "pm_score": -1, "selected": true, "text": " // Sample String s.\n String s = \"http://SomeServerName/abcd/dfdf.htm?dfdf=dfdf\";\n /*\n...
2022/11/28
[ "https://Stackoverflow.com/questions/74600539", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20623335/" ]
74,600,545
<p>I encountered some code at work today where an exception is thrown from a destructor.</p> <ul> <li>You should never throw an exception from a destructor. I point this out because I'm sure if I don't, someone else will.</li> </ul> <p>I am informed that this was a concious design decision and is needed to clean up som...
[ { "answer_id": 74600546, "author": "FreelanceConsultant", "author_id": 893254, "author_profile": "https://Stackoverflow.com/users/893254", "pm_score": 0, "selected": false, "text": "terminate() terminate() abort() abort() SIGABRT terminate() abort() Aborted echo $? 134" }, { "ans...
2022/11/28
[ "https://Stackoverflow.com/questions/74600545", "https://Stackoverflow.com", "https://Stackoverflow.com/users/893254/" ]
74,600,568
<p>I am looking for the best way to do pandas' <code>df.groupby([&quot;group_a&quot;, &quot;group_b&quot;]).ngroup()</code>in polars and assign that specific ngroup counter value back to the respective group.</p> <pre><code>df = pl.DataFrame( {&quot;group_a&quot;: [&quot;a&quot;, &quot;aa&quot;, &quot;a&quot;], &q...
[ { "answer_id": 74603070, "author": "jqurious", "author_id": 19355181, "author_profile": "https://Stackoverflow.com/users/19355181", "pm_score": 3, "selected": true, "text": ".rank(method=\"dense\") >>> df = pl.DataFrame({\n... \"group_a\": [\"a\", \"aa\", \"a\", \"aaa\"], \n... \"g...
2022/11/28
[ "https://Stackoverflow.com/questions/74600568", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12386797/" ]
74,600,602
<p><strong>Hi, please, how to get an ordered list in c#</strong></p> <pre><code>string[] names = {&quot;name1&quot;, &quot;name2&quot;, &quot;name3&quot;}; </code></pre> <p>I would like a result like this:</p> <pre><code>001 name1 002 name2 003 name3 etc ... </code></pre> <p>but not like this</p> <pre><code>1 name1 2 n...
[ { "answer_id": 74600679, "author": "Ralf", "author_id": 777522, "author_profile": "https://Stackoverflow.com/users/777522", "pm_score": -1, "selected": false, "text": "string[] cars = new[] { \"name1\", \"name2\", \"name3\" };\n\nfor (int i = 0; i < cars.Length; i++)\n Console.WriteLi...
2022/11/28
[ "https://Stackoverflow.com/questions/74600602", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19533121/" ]
74,600,610
<p>I'm a newcomer to django and I'm trying to create a user system where different users can log in and upload and view their documents. The upload and viewing works except users are able to see each others documents as well. How can I make it so that users are only able to see documents uploaded by them?</p> <p>The fo...
[ { "answer_id": 74600680, "author": "NixonSparrow", "author_id": 12775662, "author_profile": "https://Stackoverflow.com/users/12775662", "pm_score": -1, "selected": false, "text": "{% for document in documents %}\n {% if document.user == request.user %}\n <li><a href=\"{{ docume...
2022/11/28
[ "https://Stackoverflow.com/questions/74600610", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14395093/" ]
74,600,621
<p>I was trying to follow a tutorial on building an app with typescript and react and I keep getting this error: ,,Cannot read properties of undefined (reading 'map')&quot;. Not sure why, can someone maybe help?</p> <p>Here is the code of the component:</p> <pre><code>import { useState } from 'react'; import { useTyped...
[ { "answer_id": 74600680, "author": "NixonSparrow", "author_id": 12775662, "author_profile": "https://Stackoverflow.com/users/12775662", "pm_score": -1, "selected": false, "text": "{% for document in documents %}\n {% if document.user == request.user %}\n <li><a href=\"{{ docume...
2022/11/28
[ "https://Stackoverflow.com/questions/74600621", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18141122/" ]
74,600,624
<p>I am looking for help with changing some CSS properties of my button in my Ionic app.</p> <p>I want my button to look like this: <a href="https://i.stack.imgur.com/XQDzQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XQDzQ.png" alt="enter image description here" /></a></p> <p>This is how it looks...
[ { "answer_id": 74601117, "author": "AmirAli Saghaei", "author_id": 14661202, "author_profile": "https://Stackoverflow.com/users/14661202", "pm_score": 0, "selected": false, "text": "<ion-button expand=\"block\">Add to cart \n<div style=\"flex-grow: 10;\"></div>\n<span>{{ 123 }} €</span><...
2022/11/28
[ "https://Stackoverflow.com/questions/74600624", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7068325/" ]
74,600,633
<p>I have got a responsive two-column layout page. When the size of the screen is down to tablet, it becomes a single-column layout, where the first column wont be visible anymore. I have got a div inside the second div, and I want this to be vertically centre aligned.</p> <p>I am using tailwind along with flexbox.</p>...
[ { "answer_id": 74601117, "author": "AmirAli Saghaei", "author_id": 14661202, "author_profile": "https://Stackoverflow.com/users/14661202", "pm_score": 0, "selected": false, "text": "<ion-button expand=\"block\">Add to cart \n<div style=\"flex-grow: 10;\"></div>\n<span>{{ 123 }} €</span><...
2022/11/28
[ "https://Stackoverflow.com/questions/74600633", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2556858/" ]
74,600,667
<p>I m developing a Flutter APP in MVC+S Design. Also I use the Providers with Notifylisteners but often I got the Message <code>setState() or markNeedsBuild() called during build.</code></p> <p>What is the Best practice of using Providers and Notfylisteners to avoid this problem ?</p> <p>My Code looks like:</p> <pre><...
[ { "answer_id": 74600810, "author": "vanosidor", "author_id": 6380755, "author_profile": "https://Stackoverflow.com/users/6380755", "pm_score": 1, "selected": false, "text": "@override\nvoid initState() {\n super.initState();\n\n WidgetsBinding.instance.addPostFrameCallback((timeSta...
2022/11/28
[ "https://Stackoverflow.com/questions/74600667", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20598225/" ]
74,600,678
<p>Looking for JSON SCHEMA I have the above json as request using json schema validation i want to make sure the value of 'ActionCode' should be same as HeaderActionCode for any level of child I can have</p> <pre><code> { &quot;Body&quot;: { &quot;LeadDetails&quot;: { &quot;Header...
[ { "answer_id": 74600854, "author": "flyingfox", "author_id": 3176419, "author_profile": "https://Stackoverflow.com/users/3176419", "pm_score": 2, "selected": false, "text": "const validate = (value) => {\n let data = value.Body.LeadDetails\n let actionCode = data.HeaderActionCode\n le...
2022/11/28
[ "https://Stackoverflow.com/questions/74600678", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10199200/" ]
74,600,681
<p>After migrating a project from Spring Boot v2.7 to v3.0 (and thus from Spring Integration v5.5 to v6.0), the following warnings are printed out:</p> <pre><code>WARN 22084 --- [ restartedMain] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the aff...
[ { "answer_id": 74601911, "author": "Morgan Courbet", "author_id": 1059429, "author_profile": "https://Stackoverflow.com/users/1059429", "pm_score": 1, "selected": false, "text": "-parameters javac pom.xml <project>\n \n <!-- … -->\n\n <build>\n <pluginManagement>\n <plugins>\n...
2022/11/28
[ "https://Stackoverflow.com/questions/74600681", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1059429/" ]
74,600,712
<p>I have data that i want to resample use end of month based on original df but when i use df.resample('M').last(). the end of month date that i got is different from original df. see the asterix marks. <em>2005-12-31</em> should be &gt;&gt; <em>2005-12-29</em>. any suggestion ? what parameter should i add into .resa...
[ { "answer_id": 74601911, "author": "Morgan Courbet", "author_id": 1059429, "author_profile": "https://Stackoverflow.com/users/1059429", "pm_score": 1, "selected": false, "text": "-parameters javac pom.xml <project>\n \n <!-- … -->\n\n <build>\n <pluginManagement>\n <plugins>\n...
2022/11/28
[ "https://Stackoverflow.com/questions/74600712", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16697053/" ]
74,600,714
<p>I want to run a script using a venv python~3.9 from a subprocess call of another application that uses python3.6. However the imported libraries are wrong and from the site-packages of 3.6 version. How can I modify the subprocess call to load the correct libraries i.e from the venv(3.9 version)</p> <pre><code>p = Po...
[ { "answer_id": 74601911, "author": "Morgan Courbet", "author_id": 1059429, "author_profile": "https://Stackoverflow.com/users/1059429", "pm_score": 1, "selected": false, "text": "-parameters javac pom.xml <project>\n \n <!-- … -->\n\n <build>\n <pluginManagement>\n <plugins>\n...
2022/11/28
[ "https://Stackoverflow.com/questions/74600714", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10245579/" ]
74,600,765
<p>I have a numpy.ndarray in Python has the following elements e.g[[-0.85] [ 0.95]]. How can I reverse it so it can be [ [ 0.95][-0.85]]. Keep in mind that the length always two but for sure the values are changing.</p> <pre><code>&lt;class 'numpy.ndarray'&gt; [[-0.85] [ 0.95]] </code></pre>
[ { "answer_id": 74601911, "author": "Morgan Courbet", "author_id": 1059429, "author_profile": "https://Stackoverflow.com/users/1059429", "pm_score": 1, "selected": false, "text": "-parameters javac pom.xml <project>\n \n <!-- … -->\n\n <build>\n <pluginManagement>\n <plugins>\n...
2022/11/28
[ "https://Stackoverflow.com/questions/74600765", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20232879/" ]
74,600,771
<p>I'm starting to learn Ansible and for this I copy and paste examples from the documentation. For example this one</p> <pre class="lang-yaml prettyprint-override"><code>- name: Check that a page returns a status 200 and fail if the word AWESOME is not in the page contents ansible.builtin.uri: url: http://www.ex...
[ { "answer_id": 74601886, "author": "harouna Rachid", "author_id": 18764062, "author_profile": "https://Stackoverflow.com/users/18764062", "pm_score": -1, "selected": false, "text": "failed_when - name: Check that a page returns AWESOME is not in the page contents \n ansible.builtin.uri:...
2022/11/28
[ "https://Stackoverflow.com/questions/74600771", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20623449/" ]
74,600,774
<p>Let's say I have a constant enum like this:</p> <pre><code>const enum Fruit { Apple = 1, Banana, Carrot, Dragonfruit } </code></pre> <p>The size of this enum would be 4. When it's not a <code>const</code> enum, one can simply call something like <code>Object.keys</code> and do some math to get the size of it...
[ { "answer_id": 74601886, "author": "harouna Rachid", "author_id": 18764062, "author_profile": "https://Stackoverflow.com/users/18764062", "pm_score": -1, "selected": false, "text": "failed_when - name: Check that a page returns AWESOME is not in the page contents \n ansible.builtin.uri:...
2022/11/28
[ "https://Stackoverflow.com/questions/74600774", "https://Stackoverflow.com", "https://Stackoverflow.com/users/962155/" ]
74,600,779
<pre><code>dict1 = [{'id': 1.0, 'name': 'aa'}, {'id': 4.0, 'name': 'bb'}, {'id': 2.0, 'name': 'cc'}] </code></pre> <p>and</p> <pre><code>dict2 = [{'name': 'aa', 'dtype': 'StringType'}, {'name': 'bb', 'dtype': 'StringType'}, {'name': 'xx', 'dtype': 'StringType'}, {'name': 'cc', 'dtype': 'StringType'}] </code></pre>...
[ { "answer_id": 74600814, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 2, "selected": true, "text": "update tmp = {d['name']: d for d in dict2}\n\nfor d in dict1:\n d.update(tmp.get(d['name'], {}))\n\nprint(dict1)\...
2022/11/28
[ "https://Stackoverflow.com/questions/74600779", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14882883/" ]
74,600,794
<p>Who will help me with the code?</p> <p>I have a json file that looks like this:</p> <pre><code>{&quot;entries&quot;: [{&quot;attributes&quot;: {&quot;cn&quot;: [&quot;John Doe&quot;], &quot;lastLogon&quot;: [&quot;133137573913265630&quot;], &quot;sn&quot;: [&quot;Doe&quot;], &quot;userAccountControl&quot;: [&quot;40...
[ { "answer_id": 74600949, "author": "Filip Niko", "author_id": 12193952, "author_profile": "https://Stackoverflow.com/users/12193952", "pm_score": 2, "selected": false, "text": "json.dump json.dump(data, indent=2) json.dump json.dump" }, { "answer_id": 74601000, "author": "Shu...
2022/11/28
[ "https://Stackoverflow.com/questions/74600794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20164393/" ]
74,600,797
<p>I am using the CodeMirror plugin with version 5.65.7 for my textarea in a web application based on Vuejs, and everything is working fine without any issues. I would like to add the placeholder to my textarea, so I have added the respective placeholder file to my application and can see the placeholder in my textarea...
[ { "answer_id": 74601567, "author": "DrGregoryHouse", "author_id": 9496566, "author_profile": "https://Stackoverflow.com/users/9496566", "pm_score": 0, "selected": false, "text": "textarea::placeholder {\n color: red; \n}\n" }, { "answer_id": 74601736, "author": "Lucas Santos...
2022/11/28
[ "https://Stackoverflow.com/questions/74600797", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7584240/" ]
74,600,816
<p>If run this code on <code>iOS16</code> keyboard gets dismissed randomly when character is typed (please see gif), while on <code>iOS15</code> everything is fine.</p> <pre><code>struct ContentView: View { let names = [&quot;Holly&quot;, &quot;Josh&quot;, &quot;Rhonda&quot;, &quot;Ted&quot;] @State var te...
[ { "answer_id": 74601567, "author": "DrGregoryHouse", "author_id": 9496566, "author_profile": "https://Stackoverflow.com/users/9496566", "pm_score": 0, "selected": false, "text": "textarea::placeholder {\n color: red; \n}\n" }, { "answer_id": 74601736, "author": "Lucas Santos...
2022/11/28
[ "https://Stackoverflow.com/questions/74600816", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6730320/" ]
74,600,817
<p>I am currently using a windows machine, and am busy with some Genetic Algorithm stuff that relies on using a PyBullet virtual environment to test out the locomotive capacity of my &quot;robots&quot;. The project I'm working on required me to use multi-threading, so my lecturer recommended that I install WSL to do so...
[ { "answer_id": 74601567, "author": "DrGregoryHouse", "author_id": 9496566, "author_profile": "https://Stackoverflow.com/users/9496566", "pm_score": 0, "selected": false, "text": "textarea::placeholder {\n color: red; \n}\n" }, { "answer_id": 74601736, "author": "Lucas Santos...
2022/11/28
[ "https://Stackoverflow.com/questions/74600817", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12238077/" ]
74,600,818
<pre class="lang-html prettyprint-override"><code>&lt;div fxFlex=&quot;25&quot; fxFlex.xs=&quot;100&quot; class=&quot;px-8&quot;&gt; &lt;div class=&quot;form-label&quot;&gt;Ticket Status &lt;span class=&quot;reqSgnColor&quot;&gt;*&lt;/span&gt; &lt;/div&gt; &lt;mat-form-field appearance=&quot;outline&quot;&g...
[ { "answer_id": 74601567, "author": "DrGregoryHouse", "author_id": 9496566, "author_profile": "https://Stackoverflow.com/users/9496566", "pm_score": 0, "selected": false, "text": "textarea::placeholder {\n color: red; \n}\n" }, { "answer_id": 74601736, "author": "Lucas Santos...
2022/11/28
[ "https://Stackoverflow.com/questions/74600818", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19807996/" ]
74,600,832
<p>I wanted to find similar items in a list with slightly lower or higher values ​​(0.01 or -0.01) but up to 0.1, example:</p> <pre><code>real_list = [1.94, 4.72, 8.99, 5.37, 1.33] list_2 = [1.86, 4.78, 8.91, 5.41, 1.30] </code></pre> <p>you can see that the values ​​of the two lists are similar, but they are not found...
[ { "answer_id": 74600875, "author": "LeoE", "author_id": 9227188, "author_profile": "https://Stackoverflow.com/users/9227188", "pm_score": 2, "selected": true, "text": "real_list = [1.94, 4.72, 8.99, 5.37, 1.33]\nlist_2 = [1.86, 4.78, 8.91, 5.41, 1.30]\nthreshold = 0.1\nfor i in list_2:\n...
2022/11/28
[ "https://Stackoverflow.com/questions/74600832", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20353376/" ]
74,600,833
<p>I have an array that inside it has several other arrays.</p> <p>What I need is to find the array that has an object with <code>name: &quot;tax-payer-identification&quot;</code>. Change the variable's value <code>required: true</code> to <code>false</code>.</p> <p>But the problem is that it's an array of arrays and I...
[ { "answer_id": 74600945, "author": "JSEvgeny", "author_id": 6131368, "author_profile": "https://Stackoverflow.com/users/6131368", "pm_score": 3, "selected": true, "text": "const output = data.map(item => item.map(nested => {\n if (nested.name === \"tax-payer-identification\") {\n ...
2022/11/28
[ "https://Stackoverflow.com/questions/74600833", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19105436/" ]
74,600,862
<p>I'm just trying to update the website application designed with <strong>Angular</strong> and got this error. I think there's something I'm missing but I couldn't find. <a href="https://i.stack.imgur.com/nRCim.png" rel="nofollow noreferrer">code-simples</a></p> <pre><code>&quot;C:\Program Files\nodejs\npm.cmd&quot; i...
[ { "answer_id": 74600945, "author": "JSEvgeny", "author_id": 6131368, "author_profile": "https://Stackoverflow.com/users/6131368", "pm_score": 3, "selected": true, "text": "const output = data.map(item => item.map(nested => {\n if (nested.name === \"tax-payer-identification\") {\n ...
2022/11/28
[ "https://Stackoverflow.com/questions/74600862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20520132/" ]
74,600,888
<pre><code>li=[22 , True , 22/7 , {&quot;Staat&quot;:&quot;Deutschland&quot; , &quot;Stadt&quot; : &quot;Berlin&quot;} , 69 , [&quot;Python&quot; , &quot;C++&quot; , &quot;C#&quot;] , (&quot;Kairo&quot; , &quot;Berlin&quot; , &quot;Amsterdam&quot;) , False , &quot;Apfel&quot; , 55 ] </code></pre> <p>Ho...
[ { "answer_id": 74601018, "author": "Lutz", "author_id": 11988351, "author_profile": "https://Stackoverflow.com/users/11988351", "pm_score": 1, "selected": false, "text": "lists_by_type={};\nfor x in li:\n print (x)\n if type(x) in lists_by_type.keys():\n lists_by_type[type(x...
2022/11/28
[ "https://Stackoverflow.com/questions/74600888", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20623543/" ]
74,600,902
<p>I recently created a unit test project(.net framework) in my project(.net framework 4.8). I run my tests with visual studio <a href="https://i.stack.imgur.com/21hdq.png" rel="nofollow noreferrer">enter image description here</a>. now wanna add a stage to my ci/cd on gitlab to run my tests. I know how to do that in ....
[ { "answer_id": 74601018, "author": "Lutz", "author_id": 11988351, "author_profile": "https://Stackoverflow.com/users/11988351", "pm_score": 1, "selected": false, "text": "lists_by_type={};\nfor x in li:\n print (x)\n if type(x) in lists_by_type.keys():\n lists_by_type[type(x...
2022/11/28
[ "https://Stackoverflow.com/questions/74600902", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20623556/" ]
74,600,909
<p>I'm developing online clothing store on Django. Now I faced the issue: I have a form which helps user to add to his cart some clothes. I need to show which sizes of this clothes are avaliable. To do this, I need to refer to the database. But how to do it from the form?</p> <p>models.py:</p> <pre><code>from django.db...
[ { "answer_id": 74601018, "author": "Lutz", "author_id": 11988351, "author_profile": "https://Stackoverflow.com/users/11988351", "pm_score": 1, "selected": false, "text": "lists_by_type={};\nfor x in li:\n print (x)\n if type(x) in lists_by_type.keys():\n lists_by_type[type(x...
2022/11/28
[ "https://Stackoverflow.com/questions/74600909", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11115592/" ]
74,600,916
<p><a href="https://i.stack.imgur.com/rcBqS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rcBqS.png" alt="enter image description here" /></a></p> <p>The column consist of minutes that is in the decimal format. This is to be converted to Time format.</p> <p><strong>Example:</strong> The 5th record ...
[ { "answer_id": 74601018, "author": "Lutz", "author_id": 11988351, "author_profile": "https://Stackoverflow.com/users/11988351", "pm_score": 1, "selected": false, "text": "lists_by_type={};\nfor x in li:\n print (x)\n if type(x) in lists_by_type.keys():\n lists_by_type[type(x...
2022/11/28
[ "https://Stackoverflow.com/questions/74600916", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20061934/" ]
74,600,965
<h1>What is the best way to replace a specific portion of a vector with a new vector?</h1> <p>As of now, I am using hardcoded code to replace the vector. What is the most effective way to achieve this?</p> <pre class="lang-rust prettyprint-override"><code>fn main() { let mut v = vec![1, 2, 3, 4, 5, 6, 7, 8, 9]; ...
[ { "answer_id": 74601143, "author": "Chayim Friedman", "author_id": 7884305, "author_profile": "https://Stackoverflow.com/users/7884305", "pm_score": 4, "selected": true, "text": "Copy v[2..][..u.len()].copy_from_slice(&u);\n Copy v.splice(2..2 + u.len(), u);\n" }, { "answer_id": ...
2022/11/28
[ "https://Stackoverflow.com/questions/74600965", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8326080/" ]
74,600,972
<p>I have <code>MY_OBJ_TABLE</code> type and would like to dump variable content of such either into text or xml format.</p> <p>The thing is, function processing such request should be able to receive any type of <code>table of objects</code>, not just the <code>MY_OBJ_TABLE</code>.</p> <p>I have looked into <a href="h...
[ { "answer_id": 74601143, "author": "Chayim Friedman", "author_id": 7884305, "author_profile": "https://Stackoverflow.com/users/7884305", "pm_score": 4, "selected": true, "text": "Copy v[2..][..u.len()].copy_from_slice(&u);\n Copy v.splice(2..2 + u.len(), u);\n" }, { "answer_id": ...
2022/11/28
[ "https://Stackoverflow.com/questions/74600972", "https://Stackoverflow.com", "https://Stackoverflow.com/users/223226/" ]
74,601,010
<p>Using <strong>Bootstrap 5</strong>. I have a card to display brand info and button on right to navigate.</p> <p><a href="https://i.stack.imgur.com/25QVr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/25QVr.png" alt="enter image description here" /></a></p> <p>When the description content is short...
[ { "answer_id": 74601143, "author": "Chayim Friedman", "author_id": 7884305, "author_profile": "https://Stackoverflow.com/users/7884305", "pm_score": 4, "selected": true, "text": "Copy v[2..][..u.len()].copy_from_slice(&u);\n Copy v.splice(2..2 + u.len(), u);\n" }, { "answer_id": ...
2022/11/28
[ "https://Stackoverflow.com/questions/74601010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3719167/" ]
74,601,011
<p>I have created a ResourceDictionary file that comes with a .cs file. So afer creating the ResourceDictionary file I'm getting an error The name 'InitializeComponent' does not exist in the current context.</p> <p><a href="https://i.stack.imgur.com/B71zw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.c...
[ { "answer_id": 74609080, "author": "ToolmakerSteve", "author_id": 199364, "author_profile": "https://Stackoverflow.com/users/199364", "pm_score": 3, "selected": true, "text": "Project / rt-click / Add / NewItem / .Net Maui ResourceDictionary (XAML) <MauiXaml Update=\"Dictionary1.xa...
2022/11/28
[ "https://Stackoverflow.com/questions/74601011", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5402232/" ]
74,601,031
<p>So I need to have the name as a column and then also street but it doesn't work.</p> <p>I tried this</p> <pre><code>SELECT naam, straat FROM activiteit GROUP BY naam HAVING COUNT(*)&gt;1; </code></pre> <p>expected to have this</p> <pre><code>naam | straat | --------+--------+ tennis | Gent | basket ...
[ { "answer_id": 74609080, "author": "ToolmakerSteve", "author_id": 199364, "author_profile": "https://Stackoverflow.com/users/199364", "pm_score": 3, "selected": true, "text": "Project / rt-click / Add / NewItem / .Net Maui ResourceDictionary (XAML) <MauiXaml Update=\"Dictionary1.xa...
2022/11/28
[ "https://Stackoverflow.com/questions/74601031", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20349656/" ]
74,601,050
<p>I have a project where I have two GitHub actions yml file where the first file is called build.yml and it contains instructions to compile, build and test the project. It is as simple as this:</p> <pre><code>name: build my-project on: push: paths-ignore: - 'images/**' - README.md branches: ...
[ { "answer_id": 74609080, "author": "ToolmakerSteve", "author_id": 199364, "author_profile": "https://Stackoverflow.com/users/199364", "pm_score": 3, "selected": true, "text": "Project / rt-click / Add / NewItem / .Net Maui ResourceDictionary (XAML) <MauiXaml Update=\"Dictionary1.xa...
2022/11/28
[ "https://Stackoverflow.com/questions/74601050", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3102968/" ]
74,601,073
<p>I have the following dataframe called df (<code>dput</code> below):</p> <pre><code> group value 1 A 4 2 A 2 3 A 4 4 A 3 5 A 1 6 A 5 7 B 3 8 B 2 9 B 1 10 B 2 11 B 2 12 B 2 </code></pre> <p>I would like to calcul...
[ { "answer_id": 74601106, "author": "arg0naut91", "author_id": 8389003, "author_profile": "https://Stackoverflow.com/users/8389003", "pm_score": 2, "selected": false, "text": "df %>%\n group_by(group) %>%\n mutate(mode_value = mode(value),\n perc_on_mode = mean(value == mode_val...
2022/11/28
[ "https://Stackoverflow.com/questions/74601073", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14282714/" ]
74,601,172
<p>Trying to get an an onclick function to delete an item (that's been clicked) from an array.</p> <p>However, it doesnt delete anything. setListOfDocs is supposed to set the listOfDocs array with the clicked item gone (onClick function is a filter)</p> <p>It does not work. There's no error in the console. I don't know...
[ { "answer_id": 74601463, "author": "JΓ©rΓ©my Rippert", "author_id": 20293448, "author_profile": "https://Stackoverflow.com/users/20293448", "pm_score": 0, "selected": false, "text": "const deleteItem = ({ currentTarget }) => {\n const deletedId = currentTarget.id;\n const res...
2022/11/28
[ "https://Stackoverflow.com/questions/74601172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8132903/" ]
74,601,213
<p>So imagine you want to access the multiple dbContexts that are on different environments or servers (Dev, Test, Pre-prod etc), and use the data from all those different databases to calculate something. How would I register multiple dbContexts of the same type (<code>MonitoringDbContext</code>) and differentiate bet...
[ { "answer_id": 74601463, "author": "JΓ©rΓ©my Rippert", "author_id": 20293448, "author_profile": "https://Stackoverflow.com/users/20293448", "pm_score": 0, "selected": false, "text": "const deleteItem = ({ currentTarget }) => {\n const deletedId = currentTarget.id;\n const res...
2022/11/28
[ "https://Stackoverflow.com/questions/74601213", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9485849/" ]
74,601,248
<p>So the official bash manual states that &quot;For example, the regular expression β€˜[0123456789]’ matches any single digit, whereas β€˜[^()]’ matches any single character that is not an opening or closing parenthesis,&quot;, copied a link at the bottom of this question, for context.</p> <p>So I tested it every which wa...
[ { "answer_id": 74601338, "author": "Quentin", "author_id": 19068, "author_profile": "https://Stackoverflow.com/users/19068", "pm_score": 2, "selected": false, "text": "[^abc] a b c a line l i n e grep '^[^abc]*$' test" }, { "answer_id": 74602688, "author": "Andrej Podzimek"...
2022/11/28
[ "https://Stackoverflow.com/questions/74601248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5841499/" ]
74,601,276
<p><code>Build completed with a result of 'Failed' in 28 seconds (28474 ms) #0 GetStacktrace(int) #1 DebugStringToFile(DebugStringToFileData const&amp;) #2 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque*, ScriptingBackendNativeObjectPtrOpaque*) #3 (Mono JIT Code) (wrapper...
[ { "answer_id": 74601338, "author": "Quentin", "author_id": 19068, "author_profile": "https://Stackoverflow.com/users/19068", "pm_score": 2, "selected": false, "text": "[^abc] a b c a line l i n e grep '^[^abc]*$' test" }, { "answer_id": 74602688, "author": "Andrej Podzimek"...
2022/11/28
[ "https://Stackoverflow.com/questions/74601276", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19167140/" ]
74,601,281
<p>When using hiredis, use redisAppendCommand to put multiple hincrby commands, the reply-&gt;type result of redisGetReply is REDIS_REPLY_INTEGER, and only one of the results is returned.<br /> But when I use hmget, the result of reply-&gt;type is REDIS_REPLY_ARRAY.</p>
[ { "answer_id": 74601338, "author": "Quentin", "author_id": 19068, "author_profile": "https://Stackoverflow.com/users/19068", "pm_score": 2, "selected": false, "text": "[^abc] a b c a line l i n e grep '^[^abc]*$' test" }, { "answer_id": 74602688, "author": "Andrej Podzimek"...
2022/11/28
[ "https://Stackoverflow.com/questions/74601281", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15128586/" ]
74,601,283
<p>I'd like to visualize a 20x20 matrix, where top left point is (-10, 9) and lower right point is (9, -10). So the x is increasing from left to right and y is decreasing from top to bottom. So my idea was to pass x labels as a list: [-10, -9 ... 9, 9] and y labels as [9, 8 ... -9, -10]. This worked as intended in seab...
[ { "answer_id": 74630904, "author": "devp", "author_id": 8234870, "author_profile": "https://Stackoverflow.com/users/8234870", "pm_score": -1, "selected": false, "text": "import plotly.graph_objects as go\nimport plotly.express as px\n\nimg = np.arange(20**2).reshape((20, 20))\nfig = px.i...
2022/11/28
[ "https://Stackoverflow.com/questions/74601283", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14121531/" ]
74,601,287
<p>I am trying to emit same state with different set of data using equatable. But, somehow the state doesn't get emitted the second time when next 5 records are added in the list.</p> <p>It would be great if someone could help.</p> <p>This is how I am emitting post:</p> <pre><code>loadedState = LoadedPosts( ...
[ { "answer_id": 74630904, "author": "devp", "author_id": 8234870, "author_profile": "https://Stackoverflow.com/users/8234870", "pm_score": -1, "selected": false, "text": "import plotly.graph_objects as go\nimport plotly.express as px\n\nimg = np.arange(20**2).reshape((20, 20))\nfig = px.i...
2022/11/28
[ "https://Stackoverflow.com/questions/74601287", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19033905/" ]
74,601,315
<p>I have a little problem with filtering my array.</p> <p>I want display a product filtered by input value with a name or platform or something other value. With name is no problem, but i don't know how to do it with platforms.</p> <p>Bottom is my logic and file with products, txh very much for help</p> <p>live: <a h...
[ { "answer_id": 74630904, "author": "devp", "author_id": 8234870, "author_profile": "https://Stackoverflow.com/users/8234870", "pm_score": -1, "selected": false, "text": "import plotly.graph_objects as go\nimport plotly.express as px\n\nimg = np.arange(20**2).reshape((20, 20))\nfig = px.i...
2022/11/28
[ "https://Stackoverflow.com/questions/74601315", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17906130/" ]
74,601,317
<p>I have a vector of strings either starting with <code>\n1.</code> or <code>\ntext</code> and I wish to filter all those starting with <code>\n1.</code> Sample:</p> <pre><code>[1] &quot;\n1. Morgenhanen matter&quot; [2] &quot;\n1. Morgenstund har guld&quot; [3] &quot;\nMorgensange for bΓΈrn be&quot; </code></pre> <p>b...
[ { "answer_id": 74630904, "author": "devp", "author_id": 8234870, "author_profile": "https://Stackoverflow.com/users/8234870", "pm_score": -1, "selected": false, "text": "import plotly.graph_objects as go\nimport plotly.express as px\n\nimg = np.arange(20**2).reshape((20, 20))\nfig = px.i...
2022/11/28
[ "https://Stackoverflow.com/questions/74601317", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4438203/" ]
74,601,353
<p>I am trying to acheive a styling as shown in the image attached below <a href="https://i.stack.imgur.com/Ka9yM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ka9yM.png" alt="enter image description here" /></a></p> <p>See how here the fingerprint icon happens to be inside the border of the Textin...
[ { "answer_id": 74601652, "author": "Vin Xi", "author_id": 19450576, "author_profile": "https://Stackoverflow.com/users/19450576", "pm_score": 1, "selected": false, "text": "<View style={{\n borderWidth:1,\n flex:1,\n flexDirection:'row',\n alignItems:'center'\n}}>\n <TextInput/>\n <Fin...
2022/11/28
[ "https://Stackoverflow.com/questions/74601353", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20117908/" ]
74,601,373
<p>While waiting on a condition variable, the thread changing the state of the predicate must own the lock, so the update isn't missed during the wakeup. According to the documentation, this is necessary, even while using atomic variables. However I'm not certain if <code>request_stop()</code> already handles it correc...
[ { "answer_id": 74603447, "author": "Useless", "author_id": 212858, "author_profile": "https://Stackoverflow.com/users/212858", "pm_score": 2, "selected": true, "text": "notify request_stop() request_Β­stop stop_Β­requested stop_Β­possible request_Β­stop true stop_Β­requested stop_Β­token stop_...
2022/11/28
[ "https://Stackoverflow.com/questions/74601373", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17770286/" ]
74,601,451
<p>I am prototyping a smart link service in Go using Google Cloud Run. I need to know <strong>which domain/hostname has been used to call my Cloud Run service</strong> (e.g., the default .run.app, or one of many custom mapped domains).</p> <p>I created a check endpoint (<code>/__hitcheck</code>) that returns the curren...
[ { "answer_id": 74607565, "author": "John Hanley", "author_id": 8016720, "author_profile": "https://Stackoverflow.com/users/8016720", "pm_score": 2, "selected": false, "text": "Host host" }, { "answer_id": 74613724, "author": "Lazhar", "author_id": 4916475, "author_pro...
2022/11/28
[ "https://Stackoverflow.com/questions/74601451", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4916475/" ]
74,601,459
<p>Disclaimer: I'm a newbie. I was trying out conditional chains in C with a simple quiz.</p> <p>I entered this:</p> <pre><code>int age = get_int(&quot;Age in whole numbers: &quot;); int r; if(age&lt;12) { printf(&quot;Go back kid\n&quot;); r = 0; } else ...
[ { "answer_id": 74601504, "author": "unwind", "author_id": 28169, "author_profile": "https://Stackoverflow.com/users/28169", "pm_score": 0, "selected": false, "text": "else if ((12 <= age) < 16)\n <= else if (age >= 12 && age < 16)\n" }, { "answer_id": 74601521, "author": "ike...
2022/11/28
[ "https://Stackoverflow.com/questions/74601459", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20623725/" ]
74,601,482
<p>I'm trying to merge two files that contain some numbers into a third file but I'm not getting the right result.</p> <p>This is my code:</p> <pre><code>void merge(string input_file1, string input_file2, string output_file){ fstream fs1; fstream fs2; fstream fs3; int n1, n2; fs1.open(input_file...
[ { "answer_id": 74601821, "author": "molbdnilo", "author_id": 404970, "author_profile": "https://Stackoverflow.com/users/404970", "pm_score": 3, "selected": true, "text": "n1 < n2 fs1 >> n1 n2 n1 >= n2 fs2 >> n2 n1 // Potentially read the first two numbers.\nfs1 >> n1;\nfs2 >> n2;\n// Thi...
2022/11/28
[ "https://Stackoverflow.com/questions/74601482", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16978335/" ]
74,601,483
<p>I am trying to find the difference between the times people wake up and go to sleep from survey data. When I convert the data to a time so that I can use difftime, R doesn't recognise that values after 00:00 are from the next day.</p> <p>Here is a sample of the data.</p> <pre><code>df &lt;- data.frame( b = c('07:00...
[ { "answer_id": 74601821, "author": "molbdnilo", "author_id": 404970, "author_profile": "https://Stackoverflow.com/users/404970", "pm_score": 3, "selected": true, "text": "n1 < n2 fs1 >> n1 n2 n1 >= n2 fs2 >> n2 n1 // Potentially read the first two numbers.\nfs1 >> n1;\nfs2 >> n2;\n// Thi...
2022/11/28
[ "https://Stackoverflow.com/questions/74601483", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20623966/" ]
74,601,508
<p>I have a file with words that are each in a separate line. I want to read each word and add quotes around it, and a comma after the word. After that I want the words back into a new text file with the added symbols.</p> <p>Example, this as input file:</p> <pre><code>ram shyam raja </code></pre> <p>I want this to be...
[ { "answer_id": 74601614, "author": "Bas van der Linden", "author_id": 11119684, "author_profile": "https://Stackoverflow.com/users/11119684", "pm_score": 2, "selected": false, "text": "# read lines from file\ntext = \"\"\nwith open('filename.txt', 'r') as ifile:\n text = ifile.readlin...
2022/11/28
[ "https://Stackoverflow.com/questions/74601508", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20183674/" ]
74,601,512
<p>I have some values in <strong>df</strong>:</p> <pre><code># A tibble: 7 Γ— 1 var1 &lt;dbl&gt; 1 0 2 10 3 20 4 210 5 230 6 266 7 267 </code></pre> <p>that I would like to compare to a second dataframe called <strong>value_lookup</strong></p> <pre><code># A tibble: 4 Γ— 2 var1 value &lt;dbl&g...
[ { "answer_id": 74601763, "author": "Robert Hacken", "author_id": 2094893, "author_profile": "https://Stackoverflow.com/users/2094893", "pm_score": 1, "selected": false, "text": "cut df$value <- value_lookup$value[cut(df$var1, \n c(value_lookup$var1, Inf)...
2022/11/28
[ "https://Stackoverflow.com/questions/74601512", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14137004/" ]
74,601,515
<p>I have a text file that looks like this:</p> <pre><code>subjects ENGLISH, MATHS, SCIENCE Joe, A, A, B Dave, A, B, C Will, D, D, E </code></pre> <p>And I want to put it into a dictionary using Python</p> <pre><code>{’Joe’:{’ENGLISH’:A,’MATHS’:A,’SCIENCE’:B}, ’Dave’:{’ENGLISH’:A,’MATHS’:B,’SCIENCE’:C}, ’Will’:{’ENG...
[ { "answer_id": 74601640, "author": "Khaled DELLAL", "author_id": 15852600, "author_profile": "https://Stackoverflow.com/users/15852600", "pm_score": 0, "selected": false, "text": "pd.read_csv() pd df.to_dict('index')" }, { "answer_id": 74601702, "author": "Sash Sinha", "a...
2022/11/28
[ "https://Stackoverflow.com/questions/74601515", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14549181/" ]
74,601,552
<p>I have a Vue view, somethink like:</p> <pre><code>&lt;script setup lang=&quot;ts&quot;&gt; import { firstItem } from &quot;@/path/to/my/file&quot;; onMounted(async () =&gt; { let f1 = getFirstItem(); let f2 = getSecondItem(); }); </code></pre> <p>As you can see, there is an Import for <code>firstItem</code>, bu...
[ { "answer_id": 74601693, "author": "Steven Spungin", "author_id": 5093961, "author_profile": "https://Stackoverflow.com/users/5093961", "pm_score": 1, "selected": false, "text": "npm run serve typescript global any" }, { "answer_id": 74610373, "author": "RK Coder", "autho...
2022/11/28
[ "https://Stackoverflow.com/questions/74601552", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5699936/" ]
74,601,586
<p>I added new field <strong>'approved'</strong> to <strong>USERS</strong> table. Field is index for now it could be 0 or 1. On user login I want to check this field and if it's 0 do not User let login. How to do in Laravel 9 breeze?</p>
[ { "answer_id": 74601870, "author": "Π”ΠΈΠΌΠ° Π‘Π²ΠΎΠ±ΠΎΠ΄ΠΈΠ½", "author_id": 5502766, "author_profile": "https://Stackoverflow.com/users/5502766", "pm_score": 0, "selected": false, "text": "$user = User::where('email', $this->email)->first();\n\nif(!$user->approved) {\n throw message here and...
2022/11/28
[ "https://Stackoverflow.com/questions/74601586", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5502766/" ]
74,601,591
<p>I'm trying to understand loaders in <code>react-router@6.4</code>. How and why is a <code>BrowserRouter</code> doing a DB call? Is this just a contrived example and this is meant to be a client db call for illustration purposes or a there some undocumented server activity taking place here?</p> <p><a href="https://r...
[ { "answer_id": 74603875, "author": "Drew Reese", "author_id": 8690857, "author_profile": "https://Stackoverflow.com/users/8690857", "pm_score": 2, "selected": true, "text": "react-router-dom loader createBrowserRouter([\n {\n element: <Teams />,\n path: \"teams\",\n loader: asy...
2022/11/28
[ "https://Stackoverflow.com/questions/74601591", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1236657/" ]
74,601,612
<p>I am executing following command of <code>find</code> in linux. <code>find /Volumes/app -user john -mtime 60</code>. It gives the list of file modified.</p> <p>After adding <code>-printf '%TY %Tb %Td %TH:%TM %p\n'</code> in <code>find</code> command in gives list of files with date.</p> <p>Following is the output:</...
[ { "answer_id": 74603875, "author": "Drew Reese", "author_id": 8690857, "author_profile": "https://Stackoverflow.com/users/8690857", "pm_score": 2, "selected": true, "text": "react-router-dom loader createBrowserRouter([\n {\n element: <Teams />,\n path: \"teams\",\n loader: asy...
2022/11/28
[ "https://Stackoverflow.com/questions/74601612", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19992549/" ]
74,601,617
<p>I am trying to remake javascript method &quot;Shift()&quot; to my c# library. The method should return the first item in array and rewrite array to new with correct length. code:</p> <pre><code> public static T Shift&lt;T&gt;(this ref T[] array) { T item = array[0]; if (array....
[ { "answer_id": 74601888, "author": "Guru Stron", "author_id": 2501279, "author_profile": "https://Stackoverflow.com/users/2501279", "pm_score": 3, "selected": true, "text": "shift List<T> public static T Shift<T>(this List<T> list)\n{\n T item = list[0];\n \n list.RemoveAt(0);\n...
2022/11/28
[ "https://Stackoverflow.com/questions/74601617", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20584679/" ]
74,601,618
<p>I have a class with a generic method:</p> <pre><code>public record OperationCollectionGeneric&lt;OPERATIONTYPE&gt; where OPERATIONTYPE: notnull, Enum { public OPERATIONTYPE Group { get; } public OperationCollectionGeneric(string part1, string? part2 = null, string? part3 = null) { Group = Enum.P...
[ { "answer_id": 74601672, "author": "Guru Stron", "author_id": 2501279, "author_profile": "https://Stackoverflow.com/users/2501279", "pm_score": 3, "selected": true, "text": "Enum.Parse struct public record OperationCollectionGeneric<OPERATIONTYPE> where OPERATIONTYPE : struct, Enum\n" ...
2022/11/28
[ "https://Stackoverflow.com/questions/74601618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8444039/" ]
74,601,619
<p>I keep finding more idioms that lend themselves to <code>std::exchange</code>.</p> <p>Today I found myself <a href="https://stackoverflow.com/a/74600853/85371">writing this</a> in an answer:</p> <pre><code>do { path.push_front(v); } while (v != std::exchange(v, pmap[v])); </code></pre> <p>I like it a lot more th...
[ { "answer_id": 74601853, "author": "bitmask", "author_id": 430766, "author_profile": "https://Stackoverflow.com/users/430766", "pm_score": 4, "selected": false, "text": "!= v std::exchange(v, pmap[v]) equal(..) std::exchange" }, { "answer_id": 74603738, "author": "duck", ...
2022/11/28
[ "https://Stackoverflow.com/questions/74601619", "https://Stackoverflow.com", "https://Stackoverflow.com/users/85371/" ]
74,601,634
<p>I currently have 2 lists with different classes in them: <code>List&lt;Player&gt;</code> and <code>List&lt;Monster&gt;</code>.</p> <p>I want to get these two lists in a single Datagrid as follows:<a href="https://i.stack.imgur.com/kuppI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kuppI.png" al...
[ { "answer_id": 74602318, "author": "Mykhailo Svyrydovych", "author_id": 13251244, "author_profile": "https://Stackoverflow.com/users/13251244", "pm_score": 1, "selected": false, "text": "List<ITableEntry>\n" }, { "answer_id": 74603904, "author": "ASh", "author_id": 150645...
2022/11/28
[ "https://Stackoverflow.com/questions/74601634", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19328937/" ]
74,601,644
<p>I am working with dictionaries and classes and I want to check that the dictionaries and the classes have the same field types.</p> <p>For example, I have a dataclass of this form</p> <pre><code>@dataclasses.dataclass class FlatDataclass: first_field: str second_field: int </code></pre> <p>and I have a dicti...
[ { "answer_id": 74602318, "author": "Mykhailo Svyrydovych", "author_id": 13251244, "author_profile": "https://Stackoverflow.com/users/13251244", "pm_score": 1, "selected": false, "text": "List<ITableEntry>\n" }, { "answer_id": 74603904, "author": "ASh", "author_id": 150645...
2022/11/28
[ "https://Stackoverflow.com/questions/74601644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4792022/" ]
74,601,671
<p>I'm trying to pull out a list of items in a table which have more than 1 end date of 12/31/2100, as items should only have 1 (per price line). Here's the query I have so far:</p> <pre><code>SELECT PCL.*, SKUP.SKU_DESC,COUNT(CASE WHEN CONVERT(DATE,PCL.DATEEND) = CONVERT(DATE,&quot;12/31/2100&quot;)) AS [Count] FROM P...
[ { "answer_id": 74602318, "author": "Mykhailo Svyrydovych", "author_id": 13251244, "author_profile": "https://Stackoverflow.com/users/13251244", "pm_score": 1, "selected": false, "text": "List<ITableEntry>\n" }, { "answer_id": 74603904, "author": "ASh", "author_id": 150645...
2022/11/28
[ "https://Stackoverflow.com/questions/74601671", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19745110/" ]
74,601,694
<p>I want to replace one character at each iteration from a string. I already wrote some code that produces the following output:</p> <p>est</p> <p>st</p> <p>t</p> <p>This is fine and my expected result.</p> <hr /> <p>But when I add the input: &quot;hello&quot;, my output changes:</p> <p>ello</p> <p>llo</p> <p>o</p> <p...
[ { "answer_id": 74601983, "author": "Nitroxy", "author_id": 20624395, "author_profile": "https://Stackoverflow.com/users/20624395", "pm_score": 2, "selected": false, "text": "\"Hello\".substring(1);" }, { "answer_id": 74602524, "author": "OH GOD SPIDERS", "author_id": 6073...
2022/11/28
[ "https://Stackoverflow.com/questions/74601694", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16930849/" ]
74,601,721
<p>I need to get a limited data based on the criteria of Ind being 'Y'. But it should only capture the first row when Ind changes from 'N' or 'O' value to 'Y'. In the Check_Date it should update that first value.</p> <p>Input Data:</p> <pre><code>ID Date Ind 2 201905 N 2 201906 N 2 201907 N 2 ...
[ { "answer_id": 74601983, "author": "Nitroxy", "author_id": 20624395, "author_profile": "https://Stackoverflow.com/users/20624395", "pm_score": 2, "selected": false, "text": "\"Hello\".substring(1);" }, { "answer_id": 74602524, "author": "OH GOD SPIDERS", "author_id": 6073...
2022/11/28
[ "https://Stackoverflow.com/questions/74601721", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20624148/" ]
74,601,729
<p>As in the topic, I'm making a request to an endpoint, which in return gives me a json string. Sample json string (picked up 6 substrings, there is about thousand more):</p> <pre><code>{&quot;probability&quot;:0.0062596053,&quot;tagId&quot;:&quot;sometagid&quot;,&quot;tagName&quot;:&quot;apple&quot;,&quot;boundingBox...
[ { "answer_id": 74601983, "author": "Nitroxy", "author_id": 20624395, "author_profile": "https://Stackoverflow.com/users/20624395", "pm_score": 2, "selected": false, "text": "\"Hello\".substring(1);" }, { "answer_id": 74602524, "author": "OH GOD SPIDERS", "author_id": 6073...
2022/11/28
[ "https://Stackoverflow.com/questions/74601729", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15816553/" ]
74,601,730
<p>The following codes gives the total duration that a light has been switched on.</p> <pre><code>CREATE TABLE switch_times ( id SERIAL PRIMARY KEY, is1 BOOLEAN, id_dec INTEGER, label TEXT, ts TIMESTAMP WITH TIME ZONE default current_timestamp ); CREATE VIEW makecount AS SELECT *, row_number() OVER (PART...
[ { "answer_id": 74601983, "author": "Nitroxy", "author_id": 20624395, "author_profile": "https://Stackoverflow.com/users/20624395", "pm_score": 2, "selected": false, "text": "\"Hello\".substring(1);" }, { "answer_id": 74602524, "author": "OH GOD SPIDERS", "author_id": 6073...
2022/11/28
[ "https://Stackoverflow.com/questions/74601730", "https://Stackoverflow.com", "https://Stackoverflow.com/users/896646/" ]
74,601,781
<p>We're currently using Hibernate 5.6 but are trying to upgrade to Hibernate 6.1. In one entity we have this property:</p> <pre class="lang-java prettyprint-override"><code>@Type(type = &quot;text&quot;) private String someText; </code></pre> <p>But in Hibernate 6.1, the <code>type</code> field in the <code>@Type</cod...
[ { "answer_id": 74601889, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 0, "selected": false, "text": "@Type @Column @Column(columnDefinition=\"TEXT\")\nprivate String someText;\n" }, { "answer_id": 7460...
2022/11/28
[ "https://Stackoverflow.com/questions/74601781", "https://Stackoverflow.com", "https://Stackoverflow.com/users/398441/" ]
74,601,790
<p>I have problem and I don't know how to fix it. So i have component in which I've declared an array of objects. I want to set its state separately but I don't want to declare multiple useStates.</p> <p>I have an array of objects which look like this:</p> <pre><code>const [card, setCard] = useState({ name: &quot;&...
[ { "answer_id": 74601855, "author": "Tarmah", "author_id": 6894272, "author_profile": "https://Stackoverflow.com/users/6894272", "pm_score": 1, "selected": false, "text": "setCard((card) => { ...card , name: event.target.value });\n" }, { "answer_id": 74602027, "author": "Guil...
2022/11/28
[ "https://Stackoverflow.com/questions/74601790", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12649378/" ]
74,601,802
<p>I have this file directory: <a href="https://i.stack.imgur.com/0RLHd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0RLHd.png" alt="enter image description here" /></a> When I open this project in browser: Fatal error: Class 'Phalcon\Mvc\Application' not found in...</p> <p>I read that I have to i...
[ { "answer_id": 74601855, "author": "Tarmah", "author_id": 6894272, "author_profile": "https://Stackoverflow.com/users/6894272", "pm_score": 1, "selected": false, "text": "setCard((card) => { ...card , name: event.target.value });\n" }, { "answer_id": 74602027, "author": "Guil...
2022/11/28
[ "https://Stackoverflow.com/questions/74601802", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20146550/" ]
74,601,879
<p>I have a date in format of YYYY-MM-DD (2022-11-01). I want to convert it to 'YYYYMMDD' format (without hyphen). Pls support.</p> <p>I tried this...</p> <p>df['ConvertedDate']= df['DateOfBirth'].dt.strftime('%m/%d/%Y')... but no luck</p>
[ { "answer_id": 74601942, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 0, "selected": false, "text": "strftime %Y%m%d df[\"ConvertedDate\"] = df[\"DateOfBirth\"].dt.strftime('%Y%m%d')\n" }, { "answer_id...
2022/11/28
[ "https://Stackoverflow.com/questions/74601879", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20624319/" ]
74,601,892
<p>I do tests using py test. There is some kind of warning in the terminal, so I could just skip it, but I would like to remove it from the terminal.</p> <pre><code>RemovedInDjango50Warning: The USE_L10N setting is deprecated. Starting with Djan go 5.0, localized formatting of data will always be enabled. For example D...
[ { "answer_id": 74601942, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 0, "selected": false, "text": "strftime %Y%m%d df[\"ConvertedDate\"] = df[\"DateOfBirth\"].dt.strftime('%Y%m%d')\n" }, { "answer_id...
2022/11/28
[ "https://Stackoverflow.com/questions/74601892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20554157/" ]
74,601,906
<p>I have a csv file with &quot;years&quot; in row[0] and I need to get a count of how many times each year occurs and pair it with that year in a dictionary. To be clear, the year is the key and the amount of times it occurs in the csv is the value.</p> <p>Here's what I have, but I am missing something. I just can't f...
[ { "answer_id": 74601942, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 0, "selected": false, "text": "strftime %Y%m%d df[\"ConvertedDate\"] = df[\"DateOfBirth\"].dt.strftime('%Y%m%d')\n" }, { "answer_id...
2022/11/28
[ "https://Stackoverflow.com/questions/74601906", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20624307/" ]
74,601,918
<p>I have dataframe where one column looks like</p> <pre><code>Average Weight (Kg) 0.647 0.88 0 0.73 1.7 - 2.1 1.2 - 1.5 2.5 NaN 1.5 - 1.9 1.3 - 1.5 0.4 1.7 - 2.9 </code></pre> <p>Reproducible data</p> <pre><code>df ...
[ { "answer_id": 74602175, "author": "Christian Sloper", "author_id": 8111755, "author_profile": "https://Stackoverflow.com/users/8111755", "pm_score": 2, "selected": true, "text": "new_average =(df.avg.str.split('-').str[1].astype(float) + df.avg.str.split('-').str[0].astype(float) ) / 2\...
2022/11/28
[ "https://Stackoverflow.com/questions/74601918", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15381947/" ]
74,601,928
<p>I am trying to scrape the link from a button. If I click the button, it opens a new tab and I can't navigate in it. So I thought I'd scrape the link, go to it via webdriver.get(link) and do it that way since this will be a background program. I cannot find any tutorials on this using the most recent version of selen...
[ { "answer_id": 74602175, "author": "Christian Sloper", "author_id": 8111755, "author_profile": "https://Stackoverflow.com/users/8111755", "pm_score": 2, "selected": true, "text": "new_average =(df.avg.str.split('-').str[1].astype(float) + df.avg.str.split('-').str[0].astype(float) ) / 2\...
2022/11/28
[ "https://Stackoverflow.com/questions/74601928", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19917796/" ]
74,601,949
<p>I would like to generate a deck of card objects in a standard, 52 card deck of playing cards that contain information about each card's suit and rank using C++.</p> <p>The way I have been doing this so far is creating enumerated types for both the &quot;Rank&quot; and &quot;Suit&quot; information. So:</p> <pre><cod...
[ { "answer_id": 74602110, "author": "463035818_is_not_a_number", "author_id": 4117728, "author_profile": "https://Stackoverflow.com/users/4117728", "pm_score": 0, "selected": false, "text": "#include <iostream>\n#include <vector>\n\nenum Rank {Ace, Two, Three, Four, Five, Six, Seven, Eigh...
2022/11/28
[ "https://Stackoverflow.com/questions/74601949", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20583612/" ]
74,601,979
<p>I have a pyspark dataframe <code>store_df</code> :-</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: center;">store</th> <th style="text-align: center;">ID</th> <th style="text-align: center;">Div</th> </tr> </thead> <tbody> <tr> <td style="text-align: center;">637</td>...
[ { "answer_id": 74602110, "author": "463035818_is_not_a_number", "author_id": 4117728, "author_profile": "https://Stackoverflow.com/users/4117728", "pm_score": 0, "selected": false, "text": "#include <iostream>\n#include <vector>\n\nenum Rank {Ace, Two, Three, Four, Five, Six, Seven, Eigh...
2022/11/28
[ "https://Stackoverflow.com/questions/74601979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14353779/" ]
74,602,023
<p>I have a Discord Bot, it turns on, but it doesn't answer to commands. Here's my code</p> <pre><code>const Discord = require(&quot;discord.js&quot;); const client = new Discord.Client( {intents: 32767}, ); { partials: ['MESSAGE', 'CHANNEL', 'REACTION', 'USER', 'GUILD_MEMBER'] } client.on('ready', () =&gt; { ...
[ { "answer_id": 74602107, "author": "ShadowCrafter_01", "author_id": 15174310, "author_profile": "https://Stackoverflow.com/users/15174310", "pm_score": 0, "selected": false, "text": "client.on('messageCreate', message => {\n if(message.content.startsWith('ping')) {\n message.channel....
2022/11/28
[ "https://Stackoverflow.com/questions/74602023", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20624394/" ]
74,602,029
<p>I have two complex objects that have some form of lifetime relation between each other. My goal is to remove this relation to have both objects completely independent.</p> <p>Is there a quick way to tell what causes lifetime relations between objects?</p>
[ { "answer_id": 74602107, "author": "ShadowCrafter_01", "author_id": 15174310, "author_profile": "https://Stackoverflow.com/users/15174310", "pm_score": 0, "selected": false, "text": "client.on('messageCreate', message => {\n if(message.content.startsWith('ping')) {\n message.channel....
2022/11/28
[ "https://Stackoverflow.com/questions/74602029", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2600312/" ]
74,602,057
<p>I have the following api route:</p> <pre><code>GET /api/v1/users POST /api/v1/users // middleware auth </code></pre> <p>In my <code>api.php</code> I have the following code for this:</p> <pre class="lang-php prettyprint-override"><code>Route::group(['prefix' =&gt; 'v1'], function() { require __DIR__ . '/v1/api/u...
[ { "answer_id": 74602112, "author": "John Zwarthoed", "author_id": 4920105, "author_profile": "https://Stackoverflow.com/users/4920105", "pm_score": 2, "selected": true, "text": "Route::name('users.')->group(function () {\n Route::get('/users', function () {\n // Route assigned ...
2022/11/28
[ "https://Stackoverflow.com/questions/74602057", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14807111/" ]
74,602,061
<p>I have function in C with 3 params. I want to call that function with pre-defined values. Is there any solution?</p> <p>My idea which does not work.</p> <pre><code>#define PRE_DEFINED_MACRO (10, 15 , true) void myFunc(uint8_t temp, uint32_t value, bool valid) { .... } .... //call the function like that myFunc(...
[ { "answer_id": 74602160, "author": "John Bollinger", "author_id": 2402272, "author_profile": "https://Stackoverflow.com/users/2402272", "pm_score": 3, "selected": true, "text": "myFunc(PRE_DEFINED_MACRO);\n myFunc((10, 15 , true));\n myFunc PRE_DEFINED_MACRO;\n #define MYFUNC_ARGS 10, 1...
2022/11/28
[ "https://Stackoverflow.com/questions/74602061", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5166312/" ]
74,602,093
<p>I was wondering if there is a way to test a function embedded within another function in Scala? Or the only to test it is to lift it as a top level function??</p> <pre class="lang-scala prettyprint-override"><code> def processNumbers(n: Int): Int = { def isEven(num: Int): Boolean = num % 2 == 0 if (isEven(n...
[ { "answer_id": 74602365, "author": "Mateusz Kubuszok", "author_id": 1305121, "author_profile": "https://Stackoverflow.com/users/1305121", "pm_score": 2, "selected": false, "text": "private" }, { "answer_id": 74603221, "author": "senjin.hajrulahovic", "author_id": 7451566,...
2022/11/28
[ "https://Stackoverflow.com/questions/74602093", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1879109/" ]
74,602,128
<p>I'm wondering if Tensorflow Machine Learning Model can train data that has None valuess? I have a Data table with multiple data (in each row) and in some of these rows, there are columns with None/Null value:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Column A</th> <th>Column B</th>...
[ { "answer_id": 74602365, "author": "Mateusz Kubuszok", "author_id": 1305121, "author_profile": "https://Stackoverflow.com/users/1305121", "pm_score": 2, "selected": false, "text": "private" }, { "answer_id": 74603221, "author": "senjin.hajrulahovic", "author_id": 7451566,...
2022/11/28
[ "https://Stackoverflow.com/questions/74602128", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20624481/" ]
74,602,141
<p>I need to extract the time from an excel file. The time in excel is expressed in hours:minutes:seconds. The c# code i have that reads the time is:</p> <pre><code>DateTime dt = DateTime.Parse(worksheet.Cells[row, 3].Value.ToString()); string GetTime = String.Format(&quot;{0:t}&quot;, dt); </code></pre> <p>This cod...
[ { "answer_id": 74602334, "author": "Panagiotis Kanavos", "author_id": 134204, "author_profile": "https://Stackoverflow.com/users/134204", "pm_score": 2, "selected": false, "text": "DateTime Value TimeSpan time = ((DateTime)worksheet.Cells[row, 3].Value).TimeOfDay;\n" }, { "answer...
2022/11/28
[ "https://Stackoverflow.com/questions/74602141", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19175784/" ]
74,602,161
<p>Enviroment:</p> <p>1 Linux Serves Micro integrator installed (4.1.0) Micro Integrator Dashboard installed (4.1.0)</p> <p>The micro-integrator connects to the Dashboard, but when I try to login, the dashboard says &quot;No running micro integrator instances found. Pls start a server a login&quot;:</p> <p><a href="htt...
[ { "answer_id": 74602334, "author": "Panagiotis Kanavos", "author_id": 134204, "author_profile": "https://Stackoverflow.com/users/134204", "pm_score": 2, "selected": false, "text": "DateTime Value TimeSpan time = ((DateTime)worksheet.Cells[row, 3].Value).TimeOfDay;\n" }, { "answer...
2022/11/28
[ "https://Stackoverflow.com/questions/74602161", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3446823/" ]
74,602,197
<p>When I try to update a Tafel record, I receive an error. Restaurant has a navigational collection of Tafels. I'm not quite sure if I should add the restaurant as a parameter but a Tafel has a composite primary key and restaurantId is part of it (together with a tablenumber)... I'm quite new to EF.. I check for possi...
[ { "answer_id": 74602432, "author": "Roman Ryzhiy", "author_id": 7592390, "author_profile": "https://Stackoverflow.com/users/7592390", "pm_score": 1, "selected": false, "text": "tafel .Find .Update" }, { "answer_id": 74606607, "author": "Steve Py", "author_id": 423497, ...
2022/11/28
[ "https://Stackoverflow.com/questions/74602197", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14687910/" ]
74,602,227
<p>I'm working on a code to filter my table, but I'm struggling to set the 'Key:=Range(&quot;&quot;)' , so far I've tested a code without setting Dims and it works, but I want a more pratical approach, so the code will work in all worksheets (active worksheet) in my workbook. Error im getting: Method range of object _'...
[ { "answer_id": 74602432, "author": "Roman Ryzhiy", "author_id": 7592390, "author_profile": "https://Stackoverflow.com/users/7592390", "pm_score": 1, "selected": false, "text": "tafel .Find .Update" }, { "answer_id": 74606607, "author": "Steve Py", "author_id": 423497, ...
2022/11/28
[ "https://Stackoverflow.com/questions/74602227", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17684300/" ]
74,602,231
<pre><code>I wanna print the rule like following: rule(0,0,0) = 0 rule(0,0,1) = 1 rule(0,1,0) = 1 rule(0,1,1) = 1 rule(1,0,0) = 1 rule(1,0,1) = 0 rule(1,1,0) = 0 rule(1,1,1) = 0 </code></pre> <p>I tried to write a set of β€œif-else” conditions that test for zeroes and ones in the input values, returning the correspondin...
[ { "answer_id": 74602293, "author": "ThomasIsCoding", "author_id": 12158757, "author_profile": "https://Stackoverflow.com/users/12158757", "pm_score": 1, "selected": false, "text": "rule <- function(x, y, z) {\n +((4 * x + 2 * y + z) %in% 1:4)\n}\n rule <- function(x, y, z) {\n bitwXor(...
2022/11/28
[ "https://Stackoverflow.com/questions/74602231", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20609481/" ]
74,602,257
<p>I am trying to pass the animationController as an argument to my statefullwidget . But getting this error .</p> <blockquote> <p>The instance member '_controller' can't be accessed in an initializer. Try replacing the reference to the instance member with a different expression</p> </blockquote> <p>I am just trying t...
[ { "answer_id": 74602368, "author": "Gwhyyy", "author_id": 18670641, "author_profile": "https://Stackoverflow.com/users/18670641", "pm_score": 0, "selected": false, "text": "getter State AnimationController get controller => _controller;\n widgetList _controller controller List<Widget...
2022/11/28
[ "https://Stackoverflow.com/questions/74602257", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9194957/" ]
74,602,288
<p>I have a gRPC client and I want to have a method that simplifies its use. The method should return <code>IAsyncEnumerable</code> of items being streamed from the gRPC server. I have a specified timeout for the streaming not to exceed. If the timeout occurs, I want to just walk away with all the items I managed to fe...
[ { "answer_id": 74603828, "author": "Theodor Zoulias", "author_id": 11178549, "author_profile": "https://Stackoverflow.com/users/11178549", "pm_score": 2, "selected": false, "text": "IAsyncEnumerable<Item> Channel<T> IAsyncEnumerable<Item> break return CancellationTokenSource public async...
2022/11/28
[ "https://Stackoverflow.com/questions/74602288", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5021151/" ]
74,602,330
<p>I am working with Azure's form recognizer service to OCR some factory blueprints. Some of the text in these blueprints are printed vertically, but Azure seems to only do OCR horizontally. However, in their Form recognizer studio the engine is actually OCRing vertically as well, but even when I use their code this do...
[ { "answer_id": 74603828, "author": "Theodor Zoulias", "author_id": 11178549, "author_profile": "https://Stackoverflow.com/users/11178549", "pm_score": 2, "selected": false, "text": "IAsyncEnumerable<Item> Channel<T> IAsyncEnumerable<Item> break return CancellationTokenSource public async...
2022/11/28
[ "https://Stackoverflow.com/questions/74602330", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20090214/" ]
74,602,339
<p>Field | Type | Null | Key | Default | Extra</p> <p>| Student_id | int | NO | PRI | NULL | auto_increment</p> <p>As I need when I insert data in table its auto increment automatically insert value but when i try this query <code>insert into student_info values(&quot;Harry&quot;,75,89,50,5...
[ { "answer_id": 74602393, "author": "Sergey Kudriavtsev", "author_id": 625594, "author_profile": "https://Stackoverflow.com/users/625594", "pm_score": 2, "selected": false, "text": "INSERT INTO student_info(Name, Column2, Column3, Column4, Column5) \nVALUES(\"Harry\",75,89,50,56);\n" },...
2022/11/28
[ "https://Stackoverflow.com/questions/74602339", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16045443/" ]
74,602,364
<p>so I'm trying to allocate memory for an array of strings thats in a struct: This is the struct:</p> <pre><code>typedef struct{ int aisleNumber; char **aisleProducts; }Aisle; </code></pre> <p>And this is how I allocate the memory:</p> <pre><code>Aisle.aisleProducts = (aisleProducts*)malloc( sizeof(aisleProduc...
[ { "answer_id": 74602425, "author": "Lundin", "author_id": 584518, "author_profile": "https://Stackoverflow.com/users/584518", "pm_score": 1, "selected": false, "text": "malloc n * sizeof(char*) malloc char* char** #include <stdlib.h>\naisles.aisleProducts = malloc( n * sizeof(*Aisle.aisl...
2022/11/28
[ "https://Stackoverflow.com/questions/74602364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18361723/" ]
74,602,376
<p>I'm trying to copy a string of characters in another string using dynamic memory allocation but it doesn't work:</p> <pre><code>#include &lt;stdlib.h&gt; #include &lt;stdio.h&gt; int main() { char* s1, * s2, * s3; s1 = (char*)malloc(11 * sizeof(char)); s2 = (char*)malloc(11 * sizeof(char)); s3 = (cha...
[ { "answer_id": 74602425, "author": "Lundin", "author_id": 584518, "author_profile": "https://Stackoverflow.com/users/584518", "pm_score": 1, "selected": false, "text": "malloc n * sizeof(char*) malloc char* char** #include <stdlib.h>\naisles.aisleProducts = malloc( n * sizeof(*Aisle.aisl...
2022/11/28
[ "https://Stackoverflow.com/questions/74602376", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20624632/" ]
74,602,409
<p>i'm new to kafka and figuring out its behavior.</p> <p>I have a kafka cluster that has three brokers in it. I have given 2GB for the cluster and my cluster disk storage reached 95%. So what i did was deleted the main topic which i used for testing. (This topic has replication factor of 3, min in sync replicas as 2, ...
[ { "answer_id": 74607046, "author": "nipuna", "author_id": 10866798, "author_profile": "https://Stackoverflow.com/users/10866798", "pm_score": 0, "selected": false, "text": "delete compact" } ]
2022/11/28
[ "https://Stackoverflow.com/questions/74602409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6844910/" ]
74,602,424
<p>i have a hierarchical query :</p> <pre><code>with temp1 as ( select distinct b.ID, b.LABEL, b.parent_id from my_table b where b.PROG_MODIF_ID=:P225_PROG_MODIF ) ,temp2 as ( select distinct b.ID, b.LABEL, p.id as p_id, b.parent_id from temp1 b left join temp1 p on p.id=b.parent_id ) sele...
[ { "answer_id": 74603433, "author": "MT0", "author_id": 1509264, "author_profile": "https://Stackoverflow.com/users/1509264", "pm_score": 1, "selected": false, "text": "ORDER SIBLINGS BY SELECT DISTINCT\n id,\n label,\n PRIOR id AS p_id,\n parent_id\nFROM my_tabl...
2022/11/28
[ "https://Stackoverflow.com/questions/74602424", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14235961/" ]