qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,590,699
<p>I have this array of objects returned from server</p> <pre><code>{ &quot;Code&quot;: 200, &quot;Message&quot;: &quot;Success&quot;, &quot;response&quot;: [ { &quot;UserId&quot;: null, &quot;FullName&quot;: test, &quot;Status&quot;: null, &quot;IsAct...
[ { "answer_id": 74590769, "author": "DecPK", "author_id": 9153448, "author_profile": "https://Stackoverflow.com/users/9153448", "pm_score": 1, "selected": true, "text": "map response State Active Status === null const apiData = {\n \"Code\": 200,\n \"Message\": \"Success\",\n \"respons...
2022/11/27
[ "https://Stackoverflow.com/questions/74590699", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3653474/" ]
74,590,759
<p>I am trying to extract the m/z data for different ions from &quot;https://www.lipidmaps.org/databases/lmsd/LMFA08040013&quot;. I can get access to the ions and thier data, however to extract the formula and m/z, I am thinking to convert it to a string and the use striping tool to extract it. Is thier another way usi...
[ { "answer_id": 74590769, "author": "DecPK", "author_id": 9153448, "author_profile": "https://Stackoverflow.com/users/9153448", "pm_score": 1, "selected": true, "text": "map response State Active Status === null const apiData = {\n \"Code\": 200,\n \"Message\": \"Success\",\n \"respons...
2022/11/27
[ "https://Stackoverflow.com/questions/74590759", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20298996/" ]
74,590,765
<p>We are migrating to Azure devops environment and have a problem. In our old environment, we used a Jenkins server to automate a release procedure ran a gradle maven deploy plugin script using following info: groupId example: &quot;com.foo&quot; artifactId example: &quot;Hello&quot; artifact: example: 'jar' feed url ...
[ { "answer_id": 74595854, "author": "jasonroy7dct", "author_id": 13416171, "author_profile": "https://Stackoverflow.com/users/13416171", "pm_score": -1, "selected": false, "text": "mvn deploy --settings c:\\user\\user-settings.xml" } ]
2022/11/27
[ "https://Stackoverflow.com/questions/74590765", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7752058/" ]
74,590,770
<p>I have a matrix of stores and their relative distance to each other similar to this table with 3000 rows and 3000 columns. I want to create a new table that shows the number of stores that are 5km or closer to each store.</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th></th> <th>store 1<...
[ { "answer_id": 74595854, "author": "jasonroy7dct", "author_id": 13416171, "author_profile": "https://Stackoverflow.com/users/13416171", "pm_score": -1, "selected": false, "text": "mvn deploy --settings c:\\user\\user-settings.xml" } ]
2022/11/27
[ "https://Stackoverflow.com/questions/74590770", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20157038/" ]
74,590,772
<p>when the bottom sheet appears it does not has that much height. but when a checkbox clicked in the bottom sheet it is expanding to the top regardless the screen size. what I have been trying to do is to set max height for bottom sheet. can't find proper solution for that so far. any helps are welcome!</p> <p>ps: wha...
[ { "answer_id": 74595854, "author": "jasonroy7dct", "author_id": 13416171, "author_profile": "https://Stackoverflow.com/users/13416171", "pm_score": -1, "selected": false, "text": "mvn deploy --settings c:\\user\\user-settings.xml" } ]
2022/11/27
[ "https://Stackoverflow.com/questions/74590772", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4862911/" ]
74,590,800
<p>I have a dataset that looks like the following:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>INCOME</th> <th>WEALTH</th> </tr> </thead> <tbody> <tr> <td>10.000</td> <td>100000</td> </tr> <tr> <td>15.000</td> <td>111000</td> </tr> <tr> <td>14.200</td> <td>123456</td> </tr> <tr> <td>12....
[ { "answer_id": 74591084, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 0, "selected": false, "text": "dplyr::ntile(x, 100) library(dplyr)\n\ndf %>% \n mutate(percentile = ntile(WEALTH, 100))\n # A tibble: 4 × 3\n I...
2022/11/27
[ "https://Stackoverflow.com/questions/74590800", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20615065/" ]
74,590,801
<p>I have a scraper of headlines, but I want a publication date also.</p> <p>That's my code:</p> <pre class="lang-py prettyprint-override"><code>news = [] url = 1 while url != 100: website = f&quot;https://www.newscientist.com/subject/space/page/{url}&quot; r = requests.get( website, headers={...
[ { "answer_id": 74590960, "author": "HedgeHog", "author_id": 14460824, "author_profile": "https://Stackoverflow.com/users/14460824", "pm_score": 1, "selected": false, "text": "import pandas as pd\npd.read_xml('https://www.newscientist.com/subject/space/feed/', xpath='*/item')\n for a in s...
2022/11/27
[ "https://Stackoverflow.com/questions/74590801", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18355160/" ]
74,590,808
<p>I am trying to parse the JSON from <code>aws ecr describe-images</code>, and return a result with a specific image tag, matching a pattern, from the list. In particular I get an array with many of these entries:</p> <pre class="lang-json prettyprint-override"><code>{ &quot;imageDetails&quot;: [ { &quot;r...
[ { "answer_id": 74590960, "author": "HedgeHog", "author_id": 14460824, "author_profile": "https://Stackoverflow.com/users/14460824", "pm_score": 1, "selected": false, "text": "import pandas as pd\npd.read_xml('https://www.newscientist.com/subject/space/feed/', xpath='*/item')\n for a in s...
2022/11/27
[ "https://Stackoverflow.com/questions/74590808", "https://Stackoverflow.com", "https://Stackoverflow.com/users/414127/" ]
74,590,813
<p><a href="https://i.stack.imgur.com/OAD4t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OAD4t.png" alt="enter image description here" /></a></p> <p>so im trying to make the names stay below even at different sizes of screen. I can't make the category names stay below. <a href="https://i.stack.img...
[ { "answer_id": 74590960, "author": "HedgeHog", "author_id": 14460824, "author_profile": "https://Stackoverflow.com/users/14460824", "pm_score": 1, "selected": false, "text": "import pandas as pd\npd.read_xml('https://www.newscientist.com/subject/space/feed/', xpath='*/item')\n for a in s...
2022/11/27
[ "https://Stackoverflow.com/questions/74590813", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18069814/" ]
74,590,831
<p>Given type definitions</p> <pre><code>struct a { int a; }; struct b { int b; struct a ba;}; </code></pre> <p>and a function taking <code>struct a* a</code> and <code>struct b* b</code>, the type information expresses possible overlap between <code>a-&gt;a</code> and <code>b-&gt;ba.a</code> but no overlap on <code>b-...
[ { "answer_id": 74590954, "author": "0___________", "author_id": 6110094, "author_profile": "https://Stackoverflow.com/users/6110094", "pm_score": 0, "selected": false, "text": "bp int possibleOverlapOn2ndInt_(int * restrict a, int *b){ //<=> (int *a, int *b)\n b[0] = 0xbb; //unaliased...
2022/11/27
[ "https://Stackoverflow.com/questions/74590831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1084774/" ]
74,590,885
<p>I am learning flutter. I have few doubts.</p> <p>For flutter app to run we do need a flutter engine, right?</p> <p>But when I download a flutter app from Play Store(android) or App store(ios) when do the flutter engine gets installed into mobile ?</p> <p>For a reference I have saw this <a href="https://github.com/fl...
[ { "answer_id": 74590954, "author": "0___________", "author_id": 6110094, "author_profile": "https://Stackoverflow.com/users/6110094", "pm_score": 0, "selected": false, "text": "bp int possibleOverlapOn2ndInt_(int * restrict a, int *b){ //<=> (int *a, int *b)\n b[0] = 0xbb; //unaliased...
2022/11/27
[ "https://Stackoverflow.com/questions/74590885", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13952947/" ]
74,590,893
<p>I'm currently using a TensorFlow model that I've made to predict the X next prices for a curve using a for loop that calls the append() fonction of the pandas dataframe.</p> <p>The model is a time series one so at each loop I calculate the &quot;next date&quot; uing the last dataframe row and I calculate the predict...
[ { "answer_id": 74591006, "author": "gtomer", "author_id": 10836309, "author_profile": "https://Stackoverflow.com/users/10836309", "pm_score": 1, "selected": false, "text": "last_data.append([nextdate, pred_price])\n last_data = last_data.append([nextdate, pred_price])\n last_data = pd.co...
2022/11/27
[ "https://Stackoverflow.com/questions/74590893", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11622880/" ]
74,590,913
<p>Lets say I want to extract current <code>State</code> (D/R/S/T/Z) and command <code>Name</code> from processes with given <code>PID</code>.</p> <p>For example I have this code:</p> <pre><code>pids=$(pidof firefox) #returns all PID-s of firefox processes (random example) for v in ${pids[*]} do echo &quot;PID...
[ { "answer_id": 74591446, "author": "markp-fuso", "author_id": 7366100, "author_profile": "https://Stackoverflow.com/users/7366100", "pm_score": 0, "selected": false, "text": "awk Name State $ awk '$1==\"Name:\"{name=$2;next}$1==\"State:\"{print name,$2;exit}' /proc/$$/status\nbash S\n aw...
2022/11/27
[ "https://Stackoverflow.com/questions/74590913", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20433724/" ]
74,590,923
<p>I have two json files that I would like to concatenate into one. Is there any approach to combine these json?</p> <pre class="lang-py prettyprint-override"><code>json1 = { &quot;105912&quot;: { &quot;name&quot;: &quot;Avatar - Tocasia, Dig Site Mentor&quot;, &quot;cardset&quot;: &quot;VAN&quot;, &quot;...
[ { "answer_id": 74591153, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 3, "selected": true, "text": "import pandas as pd\n\njson1 = {\n \"105912\": {\n \"name\": \"Avatar - Tocasia, Dig Site Mentor\",...
2022/11/27
[ "https://Stackoverflow.com/questions/74590923", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18543007/" ]
74,590,930
<p>I have an ingress service where I can curl to &quot;/&quot; to the UI of the project, but everything but the slash is not routing properly. Below is my last ingress service I tried.</p> <pre><code>apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: kubernetes.io/ingress.class: nginx meta....
[ { "answer_id": 74591195, "author": "Stanislav Kovalenko", "author_id": 8099169, "author_profile": "https://Stackoverflow.com/users/8099169", "pm_score": 2, "selected": true, "text": "- path: /api/()(.*)\n pathType: ImplementationSpecific\n backend:\n service:\n name: project-ba...
2022/11/27
[ "https://Stackoverflow.com/questions/74590930", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11856842/" ]
74,590,994
<p>I'm currently trying to use atomic design in my vue app.</p> <p>Below is the code for my button atom:</p> <pre><code>&lt;template&gt; &lt;ElButton :type=&quot;button?.type&quot; :plain=&quot;button?.plain&quot; :rounded=&quot;button?.rounded&quot; :icon=&quot;button?.icon&quot; :disabled=&quot;...
[ { "answer_id": 74591195, "author": "Stanislav Kovalenko", "author_id": 8099169, "author_profile": "https://Stackoverflow.com/users/8099169", "pm_score": 2, "selected": true, "text": "- path: /api/()(.*)\n pathType: ImplementationSpecific\n backend:\n service:\n name: project-ba...
2022/11/27
[ "https://Stackoverflow.com/questions/74590994", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7512296/" ]
74,591,001
<p>I am trying to fetch an API with the weekly schedule for the NFL provided by Rapid API. I'm having trouble reading the data and displaying it. It returns an array (below) but any time I reference the data within the array it results in an error of not being able to locate it as each game is referenced as 0, 1, 2, et...
[ { "answer_id": 74591195, "author": "Stanislav Kovalenko", "author_id": 8099169, "author_profile": "https://Stackoverflow.com/users/8099169", "pm_score": 2, "selected": true, "text": "- path: /api/()(.*)\n pathType: ImplementationSpecific\n backend:\n service:\n name: project-ba...
2022/11/27
[ "https://Stackoverflow.com/questions/74591001", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20615241/" ]
74,591,005
<p>I’m trying to figure out how to keep “Mark as Read” as “Mark as Unread” even after refreshing the page. Vice versa too. How do I save the data with localStorage? So far, this is my code for “Mark as Read”:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div clas...
[ { "answer_id": 74591195, "author": "Stanislav Kovalenko", "author_id": 8099169, "author_profile": "https://Stackoverflow.com/users/8099169", "pm_score": 2, "selected": true, "text": "- path: /api/()(.*)\n pathType: ImplementationSpecific\n backend:\n service:\n name: project-ba...
2022/11/27
[ "https://Stackoverflow.com/questions/74591005", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20615177/" ]
74,591,012
<p>I'd Like to get data in home screen of my flutter app, where I have list of OfferCards, these are generated from firestore via FirestoreQueryBuilder in my homeView like this</p> <pre><code>FirestoreQueryBuilder&lt;OfferData&gt;( pageSize: 10, query: FirebaseFirestore.instance .colle...
[ { "answer_id": 74592700, "author": "Paulo", "author_id": 15649348, "author_profile": "https://Stackoverflow.com/users/15649348", "pm_score": 0, "selected": false, "text": "Get.lazyPut<OfferCardsController>(() => OfferCardsController());\n var offerCardsController = Get.find<OfferCardsCon...
2022/11/27
[ "https://Stackoverflow.com/questions/74591012", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5153786/" ]
74,591,083
<p>The following codes are from Locust examples - <a href="https://github.com/locustio/locust/blob/master/examples/use_as_lib.py" rel="nofollow noreferrer">use_as_lib</a>.</p> <pre class="lang-py prettyprint-override"><code>import gevent from locust import HttpUser, task from locust.env import Environment from locust.s...
[ { "answer_id": 74592700, "author": "Paulo", "author_id": 15649348, "author_profile": "https://Stackoverflow.com/users/15649348", "pm_score": 0, "selected": false, "text": "Get.lazyPut<OfferCardsController>(() => OfferCardsController());\n var offerCardsController = Get.find<OfferCardsCon...
2022/11/27
[ "https://Stackoverflow.com/questions/74591083", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1476512/" ]
74,591,093
<p>I have the below list represents images sources coming from Flask backend,</p> <pre><code>[ &quot;www.example.com&quot;,&quot;www.example2.com&quot;,&quot;www.example3.com&quot;... ] </code></pre> <p>Now I'm trying to use the react react-image-gallery to display all those images. From the tutorial I see I need to...
[ { "answer_id": 74591115, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 2, "selected": false, "text": "map const list = [\n \"www.example.com\",\"www.example2.com\",\"www.example3.com\",\n \n]\n\nconst resul...
2022/11/27
[ "https://Stackoverflow.com/questions/74591093", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10841577/" ]
74,591,136
<p>I can sort a 2D-array in Javascript like the following:</p> <pre><code>const a = [[-1, 5], [3, 2], [-25, 1], [12, 3], [12, 1]] a.sort((a,b) =&gt; { if (a[0] != b[0]) { return a[0] - b[0] } else { return b[1] - a[1] * 2 + 3 } }) </code></pre> <p>How to perform the same task in Python?...
[ { "answer_id": 74591115, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 2, "selected": false, "text": "map const list = [\n \"www.example.com\",\"www.example2.com\",\"www.example3.com\",\n \n]\n\nconst resul...
2022/11/27
[ "https://Stackoverflow.com/questions/74591136", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12076036/" ]
74,591,165
<p>I have a df like so:</p> <pre><code>import pandas as pd df = pd.DataFrame({&quot;code&quot;: [sp,wh,sp], &quot;qty&quot;: [20, 30, 10]}) </code></pre> <p>I want to create a new column based on data from the two columns with the value the new column as the same as an existing column if a condition is met. This is wha...
[ { "answer_id": 74591115, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 2, "selected": false, "text": "map const list = [\n \"www.example.com\",\"www.example2.com\",\"www.example3.com\",\n \n]\n\nconst resul...
2022/11/27
[ "https://Stackoverflow.com/questions/74591165", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14923964/" ]
74,591,202
<p>I have the following function, inside of a Context file in my React app:</p> <pre><code>const fetchAll = (userId) =&gt; { try { fetchDetails(userId) // To be clear... There's multiple functions here, i.e: // fetchContact(userId) } catch (err) { consol...
[ { "answer_id": 74591224, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 0, "selected": false, "text": "fetchDetails const fetchAll = async (userId) => {\n\n try {\n await fetchDetails(userId)\n } c...
2022/11/27
[ "https://Stackoverflow.com/questions/74591202", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12640056/" ]
74,591,286
<p>I want to run several commands independently in different bash scripts. If they are all finished the computer should shut down. Therefor I created a counter, called &quot;n&quot; in a txt file, which goes up one number every time a script is executed and goes down one number after finishing. If the counter is not ze...
[ { "answer_id": 74591802, "author": "acred", "author_id": 20615477, "author_profile": "https://Stackoverflow.com/users/20615477", "pm_score": -1, "selected": false, "text": "/home/bin/rsnapshot-custom.sh daily 1\n #!/bin/bash\nsource /home/bin/log/counter.txt\nfrequence=\"$1\"\npause=\"$2...
2022/11/27
[ "https://Stackoverflow.com/questions/74591286", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20615477/" ]
74,591,301
<p>I have a table <code>per_person_names_f</code> with columns <code>full_name</code> and <code>name_type</code>, when <code>name_type</code> is equal to <code>SA</code>, then <code>fullname</code> is Arabic, if <code>GLOBAL</code> then it's English. I want the result to show 2 columns for Arabic and English names.</p...
[ { "answer_id": 74591365, "author": "Littlefoot", "author_id": 9097906, "author_profile": "https://Stackoverflow.com/users/9097906", "pm_score": 1, "selected": false, "text": "SQL> with per_person_names_f (name_type, full_name) as\n 2 (select 'Global', 'my English name' from dual unio...
2022/11/27
[ "https://Stackoverflow.com/questions/74591301", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20403738/" ]
74,591,309
<p>I'm trying to do the following (consider this list):</p> <pre><code>['Hello, 'Hi', 'Nice', Cool'] </code></pre> <p>I would like to change 'Hi' to 'Love'</p> <p>But, I wouldn't want it to stay that way:</p> <pre><code>['Hello, 'Love', 'Nice', Cool'] </code></pre> <p>I'm trying to get ahead of the others, even croppin...
[ { "answer_id": 74591365, "author": "Littlefoot", "author_id": 9097906, "author_profile": "https://Stackoverflow.com/users/9097906", "pm_score": 1, "selected": false, "text": "SQL> with per_person_names_f (name_type, full_name) as\n 2 (select 'Global', 'my English name' from dual unio...
2022/11/27
[ "https://Stackoverflow.com/questions/74591309", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20046377/" ]
74,591,327
<p>I need some help with the current VBA code I am using.</p> <p>The aim is first to count the .xlsx files in a folder and state the number in a defined cell, then in a table below on the same sheet, it lists files from selected folders.... Counting the files is fine but when listing .xlsx files from a selected folder ...
[ { "answer_id": 74591365, "author": "Littlefoot", "author_id": 9097906, "author_profile": "https://Stackoverflow.com/users/9097906", "pm_score": 1, "selected": false, "text": "SQL> with per_person_names_f (name_type, full_name) as\n 2 (select 'Global', 'my English name' from dual unio...
2022/11/27
[ "https://Stackoverflow.com/questions/74591327", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20162249/" ]
74,591,331
<p>I have the following code snippet as a Python script. I get the proper job output files with no errors. However the <code>stdout</code> <code>subprocess</code> log files (i.e. <code>COSMOSIS_output_XXX.txt</code> etc) don't store the expected runtime logs. Instead, these files have <code>&lt;_io.TextIOWrapper name=9...
[ { "answer_id": 74592271, "author": "Aru", "author_id": 12216053, "author_profile": "https://Stackoverflow.com/users/12216053", "pm_score": 1, "selected": false, "text": "<_io.TextIOWrapper name=9 encoding='UTF-8'> file = open(\"testtextf.txt\",\"a\")\nprint(file)\n .read() data = file.re...
2022/11/27
[ "https://Stackoverflow.com/questions/74591331", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4792565/" ]
74,591,347
<p>Basically I don't want a user to input the following: (!@#$%^&amp;*()_+[]{}';:&quot;.&lt;&gt;?) given that this is my code:</p> <pre><code>&lt;div class = &quot;form-item&quot;&gt; &lt;label for = &quot;Name&quot;&gt;Name: &lt;/label&gt; &lt;input type = &quot;text&quot; id = ...
[ { "answer_id": 74591516, "author": "DCR", "author_id": 4398966, "author_profile": "https://Stackoverflow.com/users/4398966", "pm_score": -1, "selected": true, "text": "var sc = \"(!@#$%^&*()_+[]{}';:\\\".<>?)\"\n\n\nfunction test() {\n\n let input = document.getElementById('Name').value...
2022/11/27
[ "https://Stackoverflow.com/questions/74591347", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20615559/" ]
74,591,394
<p>Let's explain my problem.. suppose have a json object like</p> <p><a href="https://i.stack.imgur.com/USIHw.png" rel="nofollow noreferrer">from this picture i want to handle offer_price key</a> <a href="https://i.stack.imgur.com/wz0rM.png" rel="nofollow noreferrer">enter image description here</a></p> <pre><code> { ...
[ { "answer_id": 74591516, "author": "DCR", "author_id": 4398966, "author_profile": "https://Stackoverflow.com/users/4398966", "pm_score": -1, "selected": true, "text": "var sc = \"(!@#$%^&*()_+[]{}';:\\\".<>?)\"\n\n\nfunction test() {\n\n let input = document.getElementById('Name').value...
2022/11/27
[ "https://Stackoverflow.com/questions/74591394", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20497216/" ]
74,591,396
<p>I wish to call the parent function (without super) instead of the inherited child function. What options do I have without using ES classes?</p> <pre><code> function Queue() { this.items = []; this.enqueue = function enqueue(item) { this.items.push(item); return item; } } ...
[ { "answer_id": 74591516, "author": "DCR", "author_id": 4398966, "author_profile": "https://Stackoverflow.com/users/4398966", "pm_score": -1, "selected": true, "text": "var sc = \"(!@#$%^&*()_+[]{}';:\\\".<>?)\"\n\n\nfunction test() {\n\n let input = document.getElementById('Name').value...
2022/11/27
[ "https://Stackoverflow.com/questions/74591396", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3204942/" ]
74,591,397
<p>I want to compare lst2 with lst and set zero for value who is not exist</p> <pre><code>lst = ['IDP','Remote.CMD.Shell','log4j'] lst2 = ['IDP'] </code></pre> <p>I want output like this in for example loop</p> <pre><code>{ IDP:1, Remote.CMD.Shell:0, log4j:0 } { IDP:0, Remote.CMD.Shell:0, log4j:0 } { IDP:0, Remote.CMD...
[ { "answer_id": 74591516, "author": "DCR", "author_id": 4398966, "author_profile": "https://Stackoverflow.com/users/4398966", "pm_score": -1, "selected": true, "text": "var sc = \"(!@#$%^&*()_+[]{}';:\\\".<>?)\"\n\n\nfunction test() {\n\n let input = document.getElementById('Name').value...
2022/11/27
[ "https://Stackoverflow.com/questions/74591397", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18466173/" ]
74,591,413
<p>I want to play text to speech but I can't hear anything using Xamarin.essential. I 'm sure I don't have muted smartphone. The code:</p> <pre><code> using Xamarin.Essential private void PlayTextMethod() { if(do sth) { SpeekFrommethodAsync(); } } private async SpeekFrommet...
[ { "answer_id": 74591516, "author": "DCR", "author_id": 4398966, "author_profile": "https://Stackoverflow.com/users/4398966", "pm_score": -1, "selected": true, "text": "var sc = \"(!@#$%^&*()_+[]{}';:\\\".<>?)\"\n\n\nfunction test() {\n\n let input = document.getElementById('Name').value...
2022/11/27
[ "https://Stackoverflow.com/questions/74591413", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20585999/" ]
74,591,436
<p>im trying to make the divs that have the h1 elements as shown in the picture provided below to move away from each other and not be this close to each other but i cant seem to do so i dont know if adding a width to each does anything. i tried adding margin and padding aswell but it moves the whole page instead of ea...
[ { "answer_id": 74591531, "author": "Hammad Muhammad", "author_id": 20615635, "author_profile": "https://Stackoverflow.com/users/20615635", "pm_score": -1, "selected": false, "text": "h1 {\n margin: 30px 0px 30px 0px;\n}\n" } ]
2022/11/27
[ "https://Stackoverflow.com/questions/74591436", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16758122/" ]
74,591,439
<p>I have a pandas dataframe that I want to randomly pick samples from it. The first time I want to pick 10, then 20, 30, 40, and 50 random samples (without replacment). I'm trying to do it with a for loop, altough I don't know how good this is cause a list can't contain data frames, right? (my coding is better with R ...
[ { "answer_id": 74591531, "author": "Hammad Muhammad", "author_id": 20615635, "author_profile": "https://Stackoverflow.com/users/20615635", "pm_score": -1, "selected": false, "text": "h1 {\n margin: 30px 0px 30px 0px;\n}\n" } ]
2022/11/27
[ "https://Stackoverflow.com/questions/74591439", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17945841/" ]
74,591,451
<p>i have a problem with the info div overflowing it parent container but not it content ,some other component are also overflowing but it's not a problem and a margins problem some are just there and the others won't appear at all this is happening in width under 375px plus if any one has an idea why the font awesome ...
[ { "answer_id": 74591531, "author": "Hammad Muhammad", "author_id": 20615635, "author_profile": "https://Stackoverflow.com/users/20615635", "pm_score": -1, "selected": false, "text": "h1 {\n margin: 30px 0px 30px 0px;\n}\n" } ]
2022/11/27
[ "https://Stackoverflow.com/questions/74591451", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20027944/" ]
74,591,455
<p>I want to create an array of pointers to methods, so I can quickly select a method to call, based on a integer. But I am struggling a little with the syntax.</p> <p>What I have now is this:</p> <pre><code>class Foo { private: void method1(); void method2(); void method3(); void(...
[ { "answer_id": 74591486, "author": "lorro", "author_id": 6292621, "author_profile": "https://Stackoverflow.com/users/6292621", "pm_score": 4, "selected": true, "text": " void(Foo::*display_functions[3])() = {\n &Foo::method1,\n &Foo::method2,\n &Fo...
2022/11/27
[ "https://Stackoverflow.com/questions/74591455", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1145666/" ]
74,591,465
<p>Let's say I have theese words in a text file</p> <h1>Dictionary.txt</h1> <pre><code>artificial intelligence abbreviation hybrid hysteresis illuminance identity inaccuracy impedance impenetrable imperfection impossible independent </code></pre> <p>How can I make each word a different object and print them on the cons...
[ { "answer_id": 74591486, "author": "lorro", "author_id": 6292621, "author_profile": "https://Stackoverflow.com/users/6292621", "pm_score": 4, "selected": true, "text": " void(Foo::*display_functions[3])() = {\n &Foo::method1,\n &Foo::method2,\n &Fo...
2022/11/27
[ "https://Stackoverflow.com/questions/74591465", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20615580/" ]
74,591,497
<p>I have made a tiny client/server app, but I was wondering if the default value of the field <strong>s_addr</strong> was <strong>INADDR_ANY</strong> or not as when I don't specify an address for the socket, for both the client and the server, it works the same as with this flag given in the structure. I haven't find ...
[ { "answer_id": 74591486, "author": "lorro", "author_id": 6292621, "author_profile": "https://Stackoverflow.com/users/6292621", "pm_score": 4, "selected": true, "text": " void(Foo::*display_functions[3])() = {\n &Foo::method1,\n &Foo::method2,\n &Fo...
2022/11/27
[ "https://Stackoverflow.com/questions/74591497", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19176243/" ]
74,591,555
<p>How to compare only the values of two dictonaries?</p> <p>So I have this:</p> <pre><code>dict1 = {&quot;appe&quot;: 3962.00, &quot;waspeen&quot;: 3304.08} dic2 = {&quot;appel&quot;: 3962.00, &quot;waspeen&quot;: 3304.08} def compare_value_dict(dic): return dic def compare_value_dict2(dic2): return dic2...
[ { "answer_id": 74591629, "author": "Martijn Pieters", "author_id": 100297, "author_profile": "https://Stackoverflow.com/users/100297", "pm_score": 3, "selected": false, "text": "== dict.values() values_view_foo == values_view_bar def compare_dict_values(dv1, dv2):\n \"\"\"Compare two ...
2022/11/27
[ "https://Stackoverflow.com/questions/74591555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7713770/" ]
74,591,592
<p>I have several js objects, obj1{}, obj2{}...</p> <p>My code is taking values from a js obj{}</p> <p>This obj has to change when user click at on different elements of document which have a dataset with the name of corresponding object.</p> <p>Example:</p> <pre><code>&lt;button data-itemname=&quot;obj1&gt;item 1&lt;/...
[ { "answer_id": 74591699, "author": "innocent", "author_id": 8405085, "author_profile": "https://Stackoverflow.com/users/8405085", "pm_score": 0, "selected": false, "text": "event.target.dataset const item1 = document.querySelector(\"#btn1\");\nconst item2 = document.querySelector(\"#btn2...
2022/11/27
[ "https://Stackoverflow.com/questions/74591592", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19996700/" ]
74,591,606
<p>I am trying to check if in an array of objects I have duplicates <code>date</code>, then I have to concat the duplicate obj with <code>name</code> and remove one of them.</p> <p>This is what I could do:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="...
[ { "answer_id": 74591751, "author": "Amila Senadheera", "author_id": 8510405, "author_profile": "https://Stackoverflow.com/users/8510405", "pm_score": 3, "selected": true, "text": "const arr = [\n { name: \"Adam\", date: \"25/11/2022\" },\n { name: \"Jorge\", date: \"25/11/2022\" },\n ...
2022/11/27
[ "https://Stackoverflow.com/questions/74591606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16900056/" ]
74,591,646
<p>As a beginner in c#, I’ve been making some simple console apps. In one, I have a simple game to solve a computer-generated number code. For each attempt at solving the code, the user enters 5 digits in the form of an input string. The issue is with the error checking, and I’ve put together a simple section of code t...
[ { "answer_id": 74591814, "author": "Stijn", "author_id": 13561091, "author_profile": "https://Stackoverflow.com/users/13561091", "pm_score": 3, "selected": true, "text": "string code;\ndo\n{\n code = enterCode();\n} while (errorCheck(code) == false) // or !errorCheck(code)\n\n// Shoul...
2022/11/27
[ "https://Stackoverflow.com/questions/74591646", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20366497/" ]
74,591,662
<p>I am studying binary search trees right now, and I came across this code</p> <pre><code>void free_tree(Node* root) { // Deallocates memory corresponding // to every node in the tree. Node* temp = root; if (!temp) return; free_tree(temp-&gt;left); free_tree(temp-&gt;right); if (!te...
[ { "answer_id": 74591846, "author": "John Bollinger", "author_id": 2402272, "author_profile": "https://Stackoverflow.com/users/2402272", "pm_score": 0, "selected": false, "text": "if temp == NULL? Node* temp = root;\n if (!temp)\n return;\n NULL pointer != NULL ! !pointer po...
2022/11/27
[ "https://Stackoverflow.com/questions/74591662", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14041146/" ]
74,591,682
<p>I am using the below code to make a HTTPS <code>GET</code> request.</p> <p>I'd like to keep the connection alive to make multiple requests without having to connect each time, so I set <code>&quot;Connection: Keep-Alive\r\n&quot;</code>. However, once I did this, the behaviour changed and the code now blocks on <cod...
[ { "answer_id": 74591846, "author": "John Bollinger", "author_id": 2402272, "author_profile": "https://Stackoverflow.com/users/2402272", "pm_score": 0, "selected": false, "text": "if temp == NULL? Node* temp = root;\n if (!temp)\n return;\n NULL pointer != NULL ! !pointer po...
2022/11/27
[ "https://Stackoverflow.com/questions/74591682", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1107474/" ]
74,591,692
<p>When I enter <code>yes</code> to repeat the game, then instead of repeating, this message appears:</p> <blockquote> <p>do you want to play again (yes or no):</p> </blockquote> <p>This only happens when I enter <code>yes</code>. But if I enter <code>no</code>, then it exits from the game.</p> <h3>Code I have</h3> <pr...
[ { "answer_id": 74591930, "author": "wavetitan", "author_id": 19069334, "author_profile": "https://Stackoverflow.com/users/19069334", "pm_score": 2, "selected": true, "text": "guess_word count_attempts while (guess_word != hidden_word) and (count_attempts < limit_attempts): while play_aga...
2022/11/27
[ "https://Stackoverflow.com/questions/74591692", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20615833/" ]
74,591,697
<p>I'm using two constexpr std::array:</p> <pre><code>constexpr std::array full = { 1,2,3 }; constexpr std::array subset = { 3 }; </code></pre> <p>I would like to static assert if the second is a subset of the first.</p> <p>In the above example, the assertion should succeed, and in the following, it supposes to fail:</...
[ { "answer_id": 74591749, "author": "Stack Danny", "author_id": 6039995, "author_profile": "https://Stackoverflow.com/users/6039995", "pm_score": 2, "selected": false, "text": "std::ranges::sort std::ranges::includes constexpr bool is_subset(auto a, auto b) {\n std::ranges::sort(a);\n ...
2022/11/27
[ "https://Stackoverflow.com/questions/74591697", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1693118/" ]
74,591,706
<p>Hello I have a connect four game who worked before null safety but I try to make the migration, but I have a problem with <code>scores[i] = null;</code> I can't write like that but without it I have a freeze when CPU is certain to loose</p> <pre><code> int _compute(Board board, int step, int deepness, List&lt;doubl...
[ { "answer_id": 74591749, "author": "Stack Danny", "author_id": 6039995, "author_profile": "https://Stackoverflow.com/users/6039995", "pm_score": 2, "selected": false, "text": "std::ranges::sort std::ranges::includes constexpr bool is_subset(auto a, auto b) {\n std::ranges::sort(a);\n ...
2022/11/27
[ "https://Stackoverflow.com/questions/74591706", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9611719/" ]
74,591,726
<pre><code>head(Data) Gene1 Gene2 Gene3 Gene4 Gene5 Gene6 Gene7 Gene8 SAMPLE1 0 1 0 0 0 1 1 1 SAMPLE2 0 1 0 1 0 1 0 1 SAMPLE3 0 0 0 1 0 0 1 1 SAMPLE4 1 0 ...
[ { "answer_id": 74591908, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": false, "text": "combn lst1 <- combn(seq_len(ncol(Data)), 2, function(i) \n FUN = chisq.test(table(Data[, i])), simplify = FALSE)\nna...
2022/11/27
[ "https://Stackoverflow.com/questions/74591726", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13071518/" ]
74,591,735
<p>I have a list of files to be imported into the data frame</p> <p>cdoe:</p> <pre><code># list contains the dataset name followed by the column name to match all the datasets; this list keeps changing and even the file formats. These dataset file names are provided by the user, and they are unique. # First: find the ...
[ { "answer_id": 74591908, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": false, "text": "combn lst1 <- combn(seq_len(ncol(Data)), 2, function(i) \n FUN = chisq.test(table(Data[, i])), simplify = FALSE)\nna...
2022/11/27
[ "https://Stackoverflow.com/questions/74591735", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11922765/" ]
74,591,750
<p>If in a cell there are few texts like, <code>Hi, How are you, Hello</code>. I want to show in another cell if that cell contains either <code>Hi</code> and/or <code>Hello</code> and display the exact text on another cell.</p> <p><a href="https://i.stack.imgur.com/2fLtp.png" rel="nofollow noreferrer"><img src="https:...
[ { "answer_id": 74591908, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": false, "text": "combn lst1 <- combn(seq_len(ncol(Data)), 2, function(i) \n FUN = chisq.test(table(Data[, i])), simplify = FALSE)\nna...
2022/11/27
[ "https://Stackoverflow.com/questions/74591750", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17791081/" ]
74,591,767
<p>Is there a way to <strong>modify</strong> a previously-declared CSS variable inside a media query with just vanilla CSS? What I'm after would look like this (which of course doesn't work as the variables all get computed in the end):</p> <pre><code>#container { --elem-size: 20px; } @media only screen and (min-wid...
[ { "answer_id": 74591908, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": false, "text": "combn lst1 <- combn(seq_len(ncol(Data)), 2, function(i) \n FUN = chisq.test(table(Data[, i])), simplify = FALSE)\nna...
2022/11/27
[ "https://Stackoverflow.com/questions/74591767", "https://Stackoverflow.com", "https://Stackoverflow.com/users/244932/" ]
74,591,795
<p>I am new to React and learning about states and props. I am following a React Wes Bos course and the teacher is using class components, so I am sort of refactoring as I go along to functional component (for exercise and because I have to learn those).</p> <p>We are coding an app that is supposed to be a fish restaur...
[ { "answer_id": 74591908, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": false, "text": "combn lst1 <- combn(seq_len(ncol(Data)), 2, function(i) \n FUN = chisq.test(table(Data[, i])), simplify = FALSE)\nna...
2022/11/27
[ "https://Stackoverflow.com/questions/74591795", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20615843/" ]
74,591,838
<p>I use React for my front-end web app. When I call back-end API, I got this array:</p> <pre><code>[ { id: 1, fullname: ABC, email: abc@gmail.com ... }, { id: 2, fullname: DEF, email: def@gmail.com ... }, { id: 2, fullname: DEF, email: def@gmail.com ... }, ...
[ { "answer_id": 74591874, "author": "InfiniteStack", "author_id": 1244611, "author_profile": "https://Stackoverflow.com/users/1244611", "pm_score": -1, "selected": false, "text": "Set() Set.add" }, { "answer_id": 74592043, "author": "Suhail Qureshi", "author_id": 20308649,...
2022/11/27
[ "https://Stackoverflow.com/questions/74591838", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16731421/" ]
74,591,839
<p>I am trying to scrape the table from: <a href="https://worldpopulationreview.com/states" rel="nofollow noreferrer">https://worldpopulationreview.com/states</a></p> <p>My code:</p> <pre><code>from bs4 import BeautifulSoup import requests import pandas as pd url = 'https://worldpopulationreview.com/states' page = requ...
[ { "answer_id": 74592088, "author": "Fazlul", "author_id": 12848411, "author_profile": "https://Stackoverflow.com/users/12848411", "pm_score": 3, "selected": true, "text": "JavaScript from selenium import webdriver\nimport time\nfrom bs4 import BeautifulSoup\nimport pandas as pd\nfrom sel...
2022/11/27
[ "https://Stackoverflow.com/questions/74591839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8469209/" ]
74,591,842
<p>I am trying to extract the date from multiple PDF's to create a date column in a dataset.</p> <p>I have a folder holding all the pdf's and am trying to do a topic modelling over a time period, hence I need to extract the dates.</p> <p>Below is the dataset I have just containing the filenames.</p> <pre><code># A tibb...
[ { "answer_id": 74591906, "author": "Rui Barradas", "author_id": 8245406, "author_profile": "https://Stackoverflow.com/users/8245406", "pm_score": 1, "selected": false, "text": "\"Date\" df1 <-'1 ./2012.01.18.pdf\n 2 ./2012.02.07.pdf\n 3 ./2012.03.12.pdf\n 4 ./2012.03.26.pdf\n 5 ./2012.04...
2022/11/27
[ "https://Stackoverflow.com/questions/74591842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20615988/" ]
74,591,879
<p>I want to compare three variable in three dataframe columns. but it gave me an error <strong>TypeError: unhashable type: 'Series'</strong>. below is my code</p> <pre><code>import pandas as pd df = pd.DataFrame(columns=['Entry','Middle','Exit']) entry_value = '17.98' middle_value = '12.16' exit_value = '1.2' df = df....
[ { "answer_id": 74591906, "author": "Rui Barradas", "author_id": 8245406, "author_profile": "https://Stackoverflow.com/users/8245406", "pm_score": 1, "selected": false, "text": "\"Date\" df1 <-'1 ./2012.01.18.pdf\n 2 ./2012.02.07.pdf\n 3 ./2012.03.12.pdf\n 4 ./2012.03.26.pdf\n 5 ./2012.04...
2022/11/27
[ "https://Stackoverflow.com/questions/74591879", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20584885/" ]
74,591,884
<p>I do have a state like this:</p> <pre><code> const [serviceListData, setserviceListData] = React.useState({}); </code></pre> <p>I want to add <code>Id</code> to my current state, so I implemented my code inside of <code>useEffect</code> hook. it triggers every time <code>Insurance</code> and <code>count</code> chan...
[ { "answer_id": 74591906, "author": "Rui Barradas", "author_id": 8245406, "author_profile": "https://Stackoverflow.com/users/8245406", "pm_score": 1, "selected": false, "text": "\"Date\" df1 <-'1 ./2012.01.18.pdf\n 2 ./2012.02.07.pdf\n 3 ./2012.03.12.pdf\n 4 ./2012.03.26.pdf\n 5 ./2012.04...
2022/11/27
[ "https://Stackoverflow.com/questions/74591884", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20395245/" ]
74,591,889
<p>Consider the following template class:</p> <pre><code>//Node.hh template&lt;class dataType&gt; class impNode { private: dataType _data; public: explicit impNode(const dataType &amp;data) { std::cout &lt;&lt; &quot;this constructor is called!&quot; &lt;&lt; std::endl; }; virtual ~impNode() { }; ...
[ { "answer_id": 74591906, "author": "Rui Barradas", "author_id": 8245406, "author_profile": "https://Stackoverflow.com/users/8245406", "pm_score": 1, "selected": false, "text": "\"Date\" df1 <-'1 ./2012.01.18.pdf\n 2 ./2012.02.07.pdf\n 3 ./2012.03.12.pdf\n 4 ./2012.03.26.pdf\n 5 ./2012.04...
2022/11/27
[ "https://Stackoverflow.com/questions/74591889", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17288970/" ]
74,591,900
<p>On my ecommerce project I wanna impelement a search bar where you can search products by name through drf api, I installed django_filters and created a class like so:</p> <pre><code>class ProductFilter(generics.ListCreateAPIView): queryset = Product.objects.all() serializer_class = ProductSerializer filt...
[ { "answer_id": 74591906, "author": "Rui Barradas", "author_id": 8245406, "author_profile": "https://Stackoverflow.com/users/8245406", "pm_score": 1, "selected": false, "text": "\"Date\" df1 <-'1 ./2012.01.18.pdf\n 2 ./2012.02.07.pdf\n 3 ./2012.03.12.pdf\n 4 ./2012.03.26.pdf\n 5 ./2012.04...
2022/11/27
[ "https://Stackoverflow.com/questions/74591900", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19778871/" ]
74,591,909
<p>I've got a bottomSheetScaffold, which contains a BottomSheet</p> <p>That BottomSheet uses device's Camera, where I use CameraX alongside with Google's MLkit for bar scanning</p> <p>Let's consider permission is accepted What happens (Not correct): once I expand the bottomsheet upward, I show the CameraPreview, show c...
[ { "answer_id": 74592261, "author": "Mark S. Khalil", "author_id": 10993327, "author_profile": "https://Stackoverflow.com/users/10993327", "pm_score": 1, "selected": false, "text": "var showCamera by remember {mutableStateOf(false)}\n val modalBottomSheetState = rememberModalBottomSheetSt...
2022/11/27
[ "https://Stackoverflow.com/questions/74591909", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11558444/" ]
74,591,913
<p>I am trying to write a VBA function where I produce a new sheet, give a lists of all the sheet names in the workbook and match the cell color of the sheet name, with the tab color of the sheet name. The pseudocode will look something like this:</p> <p>Create a new sheet Loop through all sheets in the workbook Write ...
[ { "answer_id": 74592261, "author": "Mark S. Khalil", "author_id": 10993327, "author_profile": "https://Stackoverflow.com/users/10993327", "pm_score": 1, "selected": false, "text": "var showCamera by remember {mutableStateOf(false)}\n val modalBottomSheetState = rememberModalBottomSheetSt...
2022/11/27
[ "https://Stackoverflow.com/questions/74591913", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12168276/" ]
74,591,934
<p>I am trying to compare elements of two arrays according their order for example:</p> <pre><code>int a[] = { 1, 2, 3 }; int b[] = { 1, 2, 4 }; </code></pre> <p>Having 3 elements there is no problem with a <code>for</code>-loop and condition</p> <pre><code>if (a[0] == b[0] &amp;&amp; a[1] == b[1] &amp;&amp; a[2] == b[...
[ { "answer_id": 74592261, "author": "Mark S. Khalil", "author_id": 10993327, "author_profile": "https://Stackoverflow.com/users/10993327", "pm_score": 1, "selected": false, "text": "var showCamera by remember {mutableStateOf(false)}\n val modalBottomSheetState = rememberModalBottomSheetSt...
2022/11/27
[ "https://Stackoverflow.com/questions/74591934", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17621042/" ]
74,591,950
<p>I'am beginner at frontend, and got some design-layout to train. Designer expects that on hover part of string or even letter will change color <a href="https://i.stack.imgur.com/3ThDQ.jpg" rel="nofollow noreferrer">Example</a></p> <p>I thought about CSS 'clip', but doubt</p>
[ { "answer_id": 74592261, "author": "Mark S. Khalil", "author_id": 10993327, "author_profile": "https://Stackoverflow.com/users/10993327", "pm_score": 1, "selected": false, "text": "var showCamera by remember {mutableStateOf(false)}\n val modalBottomSheetState = rememberModalBottomSheetSt...
2022/11/27
[ "https://Stackoverflow.com/questions/74591950", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19772640/" ]
74,591,954
<p>I am trying to query a MySQL database and display the results on a php webpage as below ,</p> <p><a href="https://i.stack.imgur.com/I1epF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I1epF.png" alt="enter image description here" /></a> however i get the error Parse error: syntax error, unexpect...
[ { "answer_id": 74595291, "author": "Bob D. Builder", "author_id": 8274730, "author_profile": "https://Stackoverflow.com/users/8274730", "pm_score": 0, "selected": false, "text": "<select name=\"position\">\n <option>Select staff</option>\n <?php \n foreach ($options as $option)...
2022/11/27
[ "https://Stackoverflow.com/questions/74591954", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6791918/" ]
74,591,960
<pre><code>let arr1 =[{name:'mani',age:2},{name:'raj',age:2},{name:'s',age:1}]; let test = new Map(); for(const EI of arr1){ if( !test.has(EI.age)){ test.set(EI.age,new Array()); } test.set(EI.age,test.get(EI.age).push(EI) ); } </code></pre> <p>when i console log this map, the ar...
[ { "answer_id": 74592014, "author": "ray", "author_id": 636077, "author_profile": "https://Stackoverflow.com/users/636077", "pm_score": 3, "selected": true, "text": "push test.set(EI.age,test.get(EI.age).push(EI) );\n EI.age continue" }, { "answer_id": 74592068, "author": "Ary...
2022/11/27
[ "https://Stackoverflow.com/questions/74591960", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17814533/" ]
74,591,978
<p>I had my first class of micro code few days back and noticed that some syntax of micro coding Atmel AVR microcontroller is quite similar to that of Assembly Level Language. However there are some syntax which do not match for common instructions. So are they the same?</p> <p>For what I know, Assembly Level Language ...
[ { "answer_id": 74593023, "author": "jwilo", "author_id": 20595585, "author_profile": "https://Stackoverflow.com/users/20595585", "pm_score": 3, "selected": true, "text": "instruction set instruction set" }, { "answer_id": 74602563, "author": "old_timer", "author_id": 1600...
2022/11/27
[ "https://Stackoverflow.com/questions/74591978", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17010897/" ]
74,591,999
<p>I am trying to verify a credit card number by the steps below:</p> <ol> <li><p>Multiply every other digit by 2, starting with the number’s second-to-last digit, and then add those products’ digits together.</p> </li> <li><p>Add the sum to the sum of the digits that weren’t multiplied by 2.</p> </li> <li><p>Check if ...
[ { "answer_id": 74592402, "author": "chqrlie", "author_id": 4593267, "author_profile": "https://Stackoverflow.com/users/4593267", "pm_score": 2, "selected": false, "text": "#include <stdio.h>\n#include <cs50.h>\n\nint main(void) {\n // TODO Prompt for input (DONE)\n long cardnumber;...
2022/11/27
[ "https://Stackoverflow.com/questions/74591999", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20608487/" ]
74,592,007
<p>I'm currently working on an application which needs to automatically generate an HTML page which is based on the data provided by the server side. I have made the current code: </p> <pre><code>//Indicator class class Button_class{ constructor(name) { this.buttonAva = false; this.name = name; ...
[ { "answer_id": 74592402, "author": "chqrlie", "author_id": 4593267, "author_profile": "https://Stackoverflow.com/users/4593267", "pm_score": 2, "selected": false, "text": "#include <stdio.h>\n#include <cs50.h>\n\nint main(void) {\n // TODO Prompt for input (DONE)\n long cardnumber;...
2022/11/27
[ "https://Stackoverflow.com/questions/74592007", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20616006/" ]
74,592,035
<p>Trying to develop masking for email address using reg expression but not able to achieve the desired result.</p> <p>Input : harrypotter@howarts.com</p> <p>After masking I am looking for result something like this:</p> <pre><code>Output: &quot;ha*****er@how*****.com&quot; </code></pre> <p>What I tried is this reg exp...
[ { "answer_id": 74592402, "author": "chqrlie", "author_id": 4593267, "author_profile": "https://Stackoverflow.com/users/4593267", "pm_score": 2, "selected": false, "text": "#include <stdio.h>\n#include <cs50.h>\n\nint main(void) {\n // TODO Prompt for input (DONE)\n long cardnumber;...
2022/11/27
[ "https://Stackoverflow.com/questions/74592035", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3998075/" ]
74,592,109
<p>I want to do the following multiplication in tensorflow (TF 2.10), but I'm not sure how to.</p> <p>I have an image tensor <code>a</code>, which is of shape <code>224x224x3</code> and a tensor <code>b</code>, which is of shape <code>224x224xf</code>. I want to multiply (element-wise) <code>a</code> by each 2D matrix ...
[ { "answer_id": 74594142, "author": "AndrzejO", "author_id": 7246805, "author_profile": "https://Stackoverflow.com/users/7246805", "pm_score": 3, "selected": true, "text": "a b X = a[:,:,0:1] * b + a[:,:,1:2] * b + a[:,:,2:3] * b\n (224, 224, f) (X[:, :, 0] == tf.reduce_sum(a * b[:, :, 0]...
2022/11/27
[ "https://Stackoverflow.com/questions/74592109", "https://Stackoverflow.com", "https://Stackoverflow.com/users/563130/" ]
74,592,129
<p>Lets say this is the array i want to shuffle randomly, what would be the most efficient way to do so? How could i populate this kind of array with three specific values (0, 0.5, 1) but in random order each time i start the program?</p> <p><code>Can i use something like &quot; a[i][j] = rand.nextDouble() &quot; ? </c...
[ { "answer_id": 74592425, "author": "NoobMaster24", "author_id": 20616387, "author_profile": "https://Stackoverflow.com/users/20616387", "pm_score": 1, "selected": true, "text": "import java.lang.Math;\n\nclass MainRun {\n public static void main(String[] args) {\n double arr[][...
2022/11/27
[ "https://Stackoverflow.com/questions/74592129", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20616194/" ]
74,592,145
<p>I am using Jinja and Flask blueprints. However, I have issues rendering the child templates (albums.html) when I let it inherit from the parent (base.html) and get a TemplateNotFound error.</p> <p>I tried to use relative paths and absolute paths inside <code>{% extends 'path' %}</code> and also googled but didn't fi...
[ { "answer_id": 74592425, "author": "NoobMaster24", "author_id": 20616387, "author_profile": "https://Stackoverflow.com/users/20616387", "pm_score": 1, "selected": true, "text": "import java.lang.Math;\n\nclass MainRun {\n public static void main(String[] args) {\n double arr[][...
2022/11/27
[ "https://Stackoverflow.com/questions/74592145", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11120421/" ]
74,592,174
<p>I am trying to get the &quot;left&quot; and &quot;top&quot; attributes to be set to the value gotten from &quot;randomXValue&quot; and &quot;randomYValue&quot; the two functions return integers.</p> <pre><code>randomXValue = getRandomXValue(); randomYValue = getRandomYValue(); $(&quot;#gamespace&quot;).append( ...
[ { "answer_id": 74592211, "author": "KreutzerCode", "author_id": 14032911, "author_profile": "https://Stackoverflow.com/users/14032911", "pm_score": 2, "selected": true, "text": "randomXValue = getRandomXValue();\nrandomYValue = getRandomYValue();\n\n$(\"#gamespace\").append(\n '<img s...
2022/11/27
[ "https://Stackoverflow.com/questions/74592174", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20616233/" ]
74,592,265
<p>I am getting error. What does it mean by non-conforming parameters in Inprod()</p> <pre><code>Error in jags.model(model.file, data = data, inits = init.values, n.chains = n.chains, : RUNTIME ERROR: Non-conforming parameters in function inprod </code></pre> <pre><code>#Jags code jagsscript &lt;- cat(&quot; mode...
[ { "answer_id": 74592211, "author": "KreutzerCode", "author_id": 14032911, "author_profile": "https://Stackoverflow.com/users/14032911", "pm_score": 2, "selected": true, "text": "randomXValue = getRandomXValue();\nrandomYValue = getRandomYValue();\n\n$(\"#gamespace\").append(\n '<img s...
2022/11/27
[ "https://Stackoverflow.com/questions/74592265", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7283098/" ]
74,592,275
<p>I am building a Social Network project with Angular, Spring and MySQL. I am trying to build a system in the backend that takes images and then stores it into the database.</p> <pre><code>public class Image { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long imageId; private String...
[ { "answer_id": 74592211, "author": "KreutzerCode", "author_id": 14032911, "author_profile": "https://Stackoverflow.com/users/14032911", "pm_score": 2, "selected": true, "text": "randomXValue = getRandomXValue();\nrandomYValue = getRandomYValue();\n\n$(\"#gamespace\").append(\n '<img s...
2022/11/27
[ "https://Stackoverflow.com/questions/74592275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19845343/" ]
74,592,290
<p>Trying to set image for icon in flutter but not working. So, How to set path for ImageIcon in ListTile.</p> <p>This line is not working:</p> <blockquote> <pre><code>leading: ImageIcon(AssetImage('images/abt.png'), size: 25), </code></pre> </blockquote> <pre><code> GestureDetector( onTap: () ...
[ { "answer_id": 74592211, "author": "KreutzerCode", "author_id": 14032911, "author_profile": "https://Stackoverflow.com/users/14032911", "pm_score": 2, "selected": true, "text": "randomXValue = getRandomXValue();\nrandomYValue = getRandomYValue();\n\n$(\"#gamespace\").append(\n '<img s...
2022/11/27
[ "https://Stackoverflow.com/questions/74592290", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19099386/" ]
74,592,293
<p>I'm trying to open links in my dataframe using selenium webdriver, the dataframe 'df1' looks like this:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th></th> <th>user</th> <th>repo1</th> <th>repo2</th> <th>repo3</th> </tr> </thead> <tbody> <tr> <td>0</td> <td>breed</td> <td>cs149-f22</td...
[ { "answer_id": 74592211, "author": "KreutzerCode", "author_id": 14032911, "author_profile": "https://Stackoverflow.com/users/14032911", "pm_score": 2, "selected": true, "text": "randomXValue = getRandomXValue();\nrandomYValue = getRandomYValue();\n\n$(\"#gamespace\").append(\n '<img s...
2022/11/27
[ "https://Stackoverflow.com/questions/74592293", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20616260/" ]
74,592,308
<p>I am trying to remove all the consecutive numbers using exactly RegEx with JS. I tried two ways the second one passed but I am wondering what is wrong with the first one</p> <p>First try:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> ...
[ { "answer_id": 74592379, "author": "Michael M.", "author_id": 13376511, "author_profile": "https://Stackoverflow.com/users/13376511", "pm_score": 2, "selected": false, "text": "let a = \"1 2 3 3 4 5 5 6 7 8 8 9\";\nlet b = (a + ' ').replace(/([1-9]\\s)\\1+/g, '$1').slice(0, -1);\n\nconso...
2022/11/27
[ "https://Stackoverflow.com/questions/74592308", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16940335/" ]
74,592,310
<p>Wrote a program TroubleTicket which allows the user to create a trouble ticket with various parameters. Code is using <code>struct ticket {}</code> to store ticket data. Each a new_ticket is added to <code>tkt_array</code>. The code is rather lengthy so I posted the relevant files and the code snippet. This is not a...
[ { "answer_id": 74602145, "author": "Luis Colorado", "author_id": 3899431, "author_profile": "https://Stackoverflow.com/users/3899431", "pm_score": 0, "selected": false, "text": "free() NULL NULL memset(3) bzero(3) NULL malloc(3) free(ptr) ptr NULL free(ptr); ptr = NULL;" }, { "an...
2022/11/27
[ "https://Stackoverflow.com/questions/74592310", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6669933/" ]
74,592,342
<p>For compliance requirements, we would like to move all our Bigquery data and GCS data from US region to EU region. From my understanding, multi-region is either within US or within EU. There is no cross-region option as such.</p> <p>Question 1: In order to move the data from US to EU or vice versa, our understanding...
[ { "answer_id": 74602145, "author": "Luis Colorado", "author_id": 3899431, "author_profile": "https://Stackoverflow.com/users/3899431", "pm_score": 0, "selected": false, "text": "free() NULL NULL memset(3) bzero(3) NULL malloc(3) free(ptr) ptr NULL free(ptr); ptr = NULL;" }, { "an...
2022/11/27
[ "https://Stackoverflow.com/questions/74592342", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8427453/" ]
74,592,355
<p>I've got an API resource to fetch transaction list. There are few filters and params to make it sortable e.g. <code>per_page</code>, <code>status</code> etc. which may be passed on but only <code>user_id</code> is required. Now my method looks like this:</p> <pre><code>def list(user_id:, page: nil, per_page: nil, st...
[ { "answer_id": 74602145, "author": "Luis Colorado", "author_id": 3899431, "author_profile": "https://Stackoverflow.com/users/3899431", "pm_score": 0, "selected": false, "text": "free() NULL NULL memset(3) bzero(3) NULL malloc(3) free(ptr) ptr NULL free(ptr); ptr = NULL;" }, { "an...
2022/11/27
[ "https://Stackoverflow.com/questions/74592355", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19143199/" ]
74,592,368
<p>I want to write a SQL query in MS Access 2010 for creating a table such that an attribute 'day' should have a value within a constraint I give using 'check' keyword. The check constraint is giving an error on saving the query.</p> <p>I wrote a SQL query in MS Access 2010 as follows-</p> <pre><code>CREATE TABLE times...
[ { "answer_id": 74592586, "author": "Lajos Arpad", "author_id": 436560, "author_profile": "https://Stackoverflow.com/users/436560", "pm_score": 0, "selected": false, "text": "CHECK CREATE TABLE timeslot\n(\n time_slot_id varchar (4),\n day varchar (1),\n start_time time,\n end...
2022/11/27
[ "https://Stackoverflow.com/questions/74592368", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20615981/" ]
74,592,371
<p>I have a class that looks something like:</p> <pre><code>@dataclass class MyClass: df1: pd.Series = None df2: pd.Series = None df3: pd.Series = None df4: pd.Series = None df5: pd.Series = None @property def series_mean(self) -&gt; pd.Series: series_mean = ( self.d...
[ { "answer_id": 74592586, "author": "Lajos Arpad", "author_id": 436560, "author_profile": "https://Stackoverflow.com/users/436560", "pm_score": 0, "selected": false, "text": "CHECK CREATE TABLE timeslot\n(\n time_slot_id varchar (4),\n day varchar (1),\n start_time time,\n end...
2022/11/27
[ "https://Stackoverflow.com/questions/74592371", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1045755/" ]
74,592,390
<p>I am calling a third party REST endpoint.</p> <p><strong>Request sample</strong></p> <pre><code>{ &quot;body&quot;: { &quot;accountNumber&quot;: &quot;12345&quot; }, &quot;header&quot;: { &quot;username&quot;: &quot;someusername&quot;, &quot;password&quot;: &quot;somepassword&q...
[ { "answer_id": 74592586, "author": "Lajos Arpad", "author_id": 436560, "author_profile": "https://Stackoverflow.com/users/436560", "pm_score": 0, "selected": false, "text": "CHECK CREATE TABLE timeslot\n(\n time_slot_id varchar (4),\n day varchar (1),\n start_time time,\n end...
2022/11/27
[ "https://Stackoverflow.com/questions/74592390", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3909315/" ]
74,592,392
<p>This is binary search algorithm that is showing output as None. I dont know why. And if you know any free course to learn data sctrucures and algorithm in python please let me know .</p> <pre><code>import random def binary_search(list,target): start_index=0 end_index=len(list)-1 while start_index&lt;=end_inde...
[ { "answer_id": 74592586, "author": "Lajos Arpad", "author_id": 436560, "author_profile": "https://Stackoverflow.com/users/436560", "pm_score": 0, "selected": false, "text": "CHECK CREATE TABLE timeslot\n(\n time_slot_id varchar (4),\n day varchar (1),\n start_time time,\n end...
2022/11/27
[ "https://Stackoverflow.com/questions/74592392", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18919053/" ]
74,592,406
<p>This is the setup for a calendar, is there a better way to create a count?</p> <pre><code>for k,v in months.items(): print(k) # print the month name print(month_header) while month_daycount &gt; 7: month_daycount -= 7 count = month_daycount </code></pre>
[ { "answer_id": 74592586, "author": "Lajos Arpad", "author_id": 436560, "author_profile": "https://Stackoverflow.com/users/436560", "pm_score": 0, "selected": false, "text": "CHECK CREATE TABLE timeslot\n(\n time_slot_id varchar (4),\n day varchar (1),\n start_time time,\n end...
2022/11/27
[ "https://Stackoverflow.com/questions/74592406", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20007197/" ]
74,592,435
<p>I am using <code>mongoose</code> and have two schemas: <code>UserSchema</code> and <code>CommunitySchema</code>:</p> <pre><code>const UserSchema = new Schema({ name: String, communities: [{ type: Schema.Types.ObjectId, ref: CollectionModel }], exCommunities: [{ type: Schema.Types.ObjectId, ref: CollectionModel...
[ { "answer_id": 74675484, "author": "Saurabh Mistry", "author_id": 6943762, "author_profile": "https://Stackoverflow.com/users/6943762", "pm_score": 1, "selected": false, "text": "communities exCommunities const UserSchema = new Schema({\n name: String,\n}, { timestamps: true });\n\ncon...
2022/11/27
[ "https://Stackoverflow.com/questions/74592435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2250167/" ]
74,592,444
<p>Reset may not be the right word here, but I am currently building a program that lets the user look up a name, and by scanning a txt file containing a list of names followed by numbers, the program then displays the numbers following said name. The way I am doing this is via .nextLine, but if the user inputs a name ...
[ { "answer_id": 74592634, "author": "EDITH", "author_id": 20616524, "author_profile": "https://Stackoverflow.com/users/20616524", "pm_score": 0, "selected": false, "text": "Scanner systemInput = new Scanner(System.in);\n//new Scanner(new FileInputStream(\"file.t\"));\n BufferedInputStrea...
2022/11/27
[ "https://Stackoverflow.com/questions/74592444", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20616426/" ]
74,592,469
<p>I am getting typescript error ts(18048) inside of the BoxerCard. I imported the type's file, but it seems that the parameters are not taking it. I've tried manually adding the types in the parameters of the function, but it didn't change anything. the types should be what is in the types file but it changed them all...
[ { "answer_id": 74592634, "author": "EDITH", "author_id": 20616524, "author_profile": "https://Stackoverflow.com/users/20616524", "pm_score": 0, "selected": false, "text": "Scanner systemInput = new Scanner(System.in);\n//new Scanner(new FileInputStream(\"file.t\"));\n BufferedInputStrea...
2022/11/27
[ "https://Stackoverflow.com/questions/74592469", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16883589/" ]
74,592,476
<p>I have two dates I'm trying to compare in this format: <code>a = '10.2022'</code> (october 2022) and <code>b = '02.2023'</code> (February 2023)</p> <p>When I enter a &gt; b I expect to have False</p> <p>Here is my code:</p> <pre><code>import datetime a = '10-2022' # String date b = '02-2023' # String date date_for...
[ { "answer_id": 74595327, "author": "AirSquid", "author_id": 10789207, "author_profile": "https://Stackoverflow.com/users/10789207", "pm_score": 1, "selected": true, "text": "import datetime\n\ndate_format = '%m.%Y'\n\na = datetime.datetime.strptime('10-2022', '%m-%Y') \nb = datetime.date...
2022/11/27
[ "https://Stackoverflow.com/questions/74592476", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20592624/" ]
74,592,497
<p>I have a data frame like this</p> <pre><code>x1&lt;- c(0,1,1,1,1,0) df&lt;-data.frame(x1) </code></pre> <p>I want to add another column that will take the sum of every two rows and store the value for the first two rows. This should look like this.</p> <p><a href="https://i.stack.imgur.com/zyzKR.png" rel="nofollow ...
[ { "answer_id": 74592515, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": false, "text": "gl library(dplyr)\ndf <- df %>%\n group_by(grp = as.integer(gl(n(), 2, n()))) %>% \n mutate(x2 = sum(x1)) %>% \n...
2022/11/27
[ "https://Stackoverflow.com/questions/74592497", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9691385/" ]
74,592,503
<p>i was writing a code to input a sentence of user then change its whitespaces to ... and print the sentence.</p> <p>hi rocks I intended to input a sentence and change its whitespaces to &quot;...&quot; I wrote this code:</p> <pre><code> a=input(&quot;inter your sentence: &quot;) #split in to n str #print e...
[ { "answer_id": 74592515, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": false, "text": "gl library(dplyr)\ndf <- df %>%\n group_by(grp = as.integer(gl(n(), 2, n()))) %>% \n mutate(x2 = sum(x1)) %>% \n...
2022/11/27
[ "https://Stackoverflow.com/questions/74592503", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20529592/" ]
74,592,512
<p>The code is supposed to print out 13:Hello World!, but the output is only 13:.</p> <pre><code>#include &lt;stdio.h&gt; int main(){ char *str = &quot;Hello World!\n&quot;; int Laenge= 0; while (*str++){ ++Laenge; } printf(&quot; %d:%c\n&quot;, Laenge, *str); return 0; } </code></pre>
[ { "answer_id": 74592536, "author": "GaryMBloom", "author_id": 3159059, "author_profile": "https://Stackoverflow.com/users/3159059", "pm_score": 2, "selected": false, "text": "str str str *str str %s str %c *str printf()" }, { "answer_id": 74592602, "author": "NoobMaster24", ...
2022/11/27
[ "https://Stackoverflow.com/questions/74592512", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13963585/" ]
74,592,543
<p>I have below list of text files , I wanted to combine group of files like below</p> <p>Inv030001.txt - should have all data of files starting with Inv030001</p> <p>Inv030002.txt - should have all data of files starting with Inv030002</p> <p><a href="https://i.stack.imgur.com/GozGp.png" rel="nofollow noreferrer"><img...
[ { "answer_id": 74592778, "author": "Mark", "author_id": 2203038, "author_profile": "https://Stackoverflow.com/users/2203038", "pm_score": 0, "selected": false, "text": "from glob import glob, fnmatch\nimport os\ntextfile_dir=\"invs\" + os.sep # # I changed this to os.sep since I'm on a ...
2022/11/27
[ "https://Stackoverflow.com/questions/74592543", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4324496/" ]
74,592,548
<p>In fact When I do <code>pip freeze &gt; requirements.txt</code> to put all the packages that I use in my project in a requirements.txt, it puts all python packages that I have in my pc and this despite I have activated my visual environment.</p> <p>In my project path I activated my venv then I did <code>pip freeze &...
[ { "answer_id": 74592622, "author": "Yaseen", "author_id": 20616507, "author_profile": "https://Stackoverflow.com/users/20616507", "pm_score": 1, "selected": false, "text": "python -m venv (venv name here) --no-site-packages python3 -m venv (venv name here) --no-site-packages" }, { ...
2022/11/27
[ "https://Stackoverflow.com/questions/74592548", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20616501/" ]
74,592,580
<p>Assume a dataframe <code>dat</code> with p-values.</p> <pre><code>dat &lt;- data.frame(var1 = c(&quot;0.12&quot;, &quot;0.12&quot;, &quot;0.12*&quot;), var2 = c(&quot;0.12&quot;, &quot;0.12&quot;, &quot;0.12&quot;), var3 = c(&quot;0.12&quot;, &quot;0.12&quot;, &quot;0.12&quot;))...
[ { "answer_id": 74592592, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 4, "selected": true, "text": "str_detect/grepl contains/matches/starts_with/ends_with select-helpers library(stringr)\nlibrary(dplyr)\ndat <- dat %>%...
2022/11/27
[ "https://Stackoverflow.com/questions/74592580", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3981290/" ]
74,592,600
<p>Developing a 3D VR application on Unity using OpenXR (2021.3.11f1).</p> <p>I'm trying to make it so that a Canvas is hidden until a certain condition is met. That condition is that another 3D object's x position is under 45. Here is my script right now:</p> <pre><code>using System.Collections; using System.Collectio...
[ { "answer_id": 74592651, "author": "Orkad", "author_id": 8656043, "author_profile": "https://Stackoverflow.com/users/8656043", "pm_score": -1, "selected": false, "text": "Canvas Alpha" } ]
2022/11/27
[ "https://Stackoverflow.com/questions/74592600", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18883443/" ]
74,592,604
<p>I'm trying to upload files to S3 using API Gateway and Lambda, all the processes work fine until I arrive at the Lambda, my lambda looks like this:</p> <pre><code>import base64 import boto3 import os s3_client = boto3.client('s3') bucket_name = os.environ['S3_BUCKET_NAME'] def lambda_handler(event, context): ...
[ { "answer_id": 74593716, "author": "John Rotenstein", "author_id": 174777, "author_profile": "https://Stackoverflow.com/users/174777", "pm_score": 1, "selected": false, "text": "contend_decode = base64.b64decode(event['body'])\n event['body'] content contend_decode = base64.b64decode(eve...
2022/11/27
[ "https://Stackoverflow.com/questions/74592604", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13118086/" ]