qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,412,333
<p>I have a canvas and when i click on it, it draws a line.</p> <p>Line is a function:</p> <pre><code>const line = (x1, y1, x2, y2) =&gt; { return ( &lt;line id=&quot;lineD&quot; x1={x1} y1={y1} x2={x2} y2={y2} style={{ stroke: &quot;black&quot;, strokeWidth: 3, strokeLinecap: &quot;round&quot; }}&gt;&lt;/line&gt...
[ { "answer_id": 74412468, "author": "rocambille", "author_id": 6612932, "author_profile": "https://Stackoverflow.com/users/6612932", "pm_score": 2, "selected": true, "text": "line const Line = (props) => {\n const {x1, y1, x2, y2, scale} = props;\n return (\n <line id=\"lineD\" x1={x...
2022/11/12
[ "https://Stackoverflow.com/questions/74412333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20197693/" ]
74,412,342
<p>For example, I have table</p> <pre><code>id;name 1;John 2;Mary 3;Cat 4;Cheng </code></pre> <p>I want selection to stop right after 3;Cat and still have as much rows in it as exist berore 3;Cat I think this could be described with such a query</p> <p><code>SELECT * FROM table WHERE condition ORDER BY id LIMIT name = ...
[ { "answer_id": 74412468, "author": "rocambille", "author_id": 6612932, "author_profile": "https://Stackoverflow.com/users/6612932", "pm_score": 2, "selected": true, "text": "line const Line = (props) => {\n const {x1, y1, x2, y2, scale} = props;\n return (\n <line id=\"lineD\" x1={x...
2022/11/12
[ "https://Stackoverflow.com/questions/74412342", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1475428/" ]
74,412,345
<p>I'm trying to create a function in python that from a list of strings will return me a dict where the key(index) shows the most repetitive character for each index between all the strings. for example a list1 = ['one', 'two', 'twin', 'who'] should return index 0=t index 1=w index 2=o index 3=n in fact the most frequ...
[ { "answer_id": 74412569, "author": "MatsLindh", "author_id": 137650, "author_profile": "https://Stackoverflow.com/users/137650", "pm_score": 3, "selected": true, "text": "collections.Counter defaultdict from collections import defaultdict, Counter\n\n\nwith open(\"/usr/share/dict/words\"...
2022/11/12
[ "https://Stackoverflow.com/questions/74412345", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20485030/" ]
74,412,363
<p>I have a list(string): []</p> <p>I need to multiply every two elements and than sum up the results</p> <p>So for the list:[0,1,2,3,4]</p> <p>I need to get the result: 105.</p> <p>(0+1)×(1+2)×(2+3)×(3+4)=105</p> <p>How do I do that?</p> <p>I tried to write this code:</p> <pre class="lang-py prettyprint-override"><cod...
[ { "answer_id": 74412427, "author": "ILS", "author_id": 10017662, "author_profile": "https://Stackoverflow.com/users/10017662", "pm_score": 1, "selected": false, "text": "zip zip zip lst = [0, 1, 2, 3, 4]\n\nresult = 1\nfor a, b in zip(lst, lst[1:]):\n result *= a + b\nprint(result)\n#...
2022/11/12
[ "https://Stackoverflow.com/questions/74412363", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20485025/" ]
74,412,364
<p>I have made this login form from my basic HTML CSS and JavaScript knowledge. There is a Remember me button in this login form I have created and now I have to give it a functionality. I want to click OK button and then it should: Create a cookie if Remember Me is set and save Student Id and Name. I am using Visual S...
[ { "answer_id": 74412427, "author": "ILS", "author_id": 10017662, "author_profile": "https://Stackoverflow.com/users/10017662", "pm_score": 1, "selected": false, "text": "zip zip zip lst = [0, 1, 2, 3, 4]\n\nresult = 1\nfor a, b in zip(lst, lst[1:]):\n result *= a + b\nprint(result)\n#...
2022/11/12
[ "https://Stackoverflow.com/questions/74412364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13912027/" ]
74,412,421
<p>Consider microservices architecture, where you need to expose functionality to manage simple configuration shared with different microservices. Configuration is not changing often, but still, I would like to see changes whenever I ask for any value. Using REST microservice seems easy, but it is adding latency. Alter...
[ { "answer_id": 74412427, "author": "ILS", "author_id": 10017662, "author_profile": "https://Stackoverflow.com/users/10017662", "pm_score": 1, "selected": false, "text": "zip zip zip lst = [0, 1, 2, 3, 4]\n\nresult = 1\nfor a, b in zip(lst, lst[1:]):\n result *= a + b\nprint(result)\n#...
2022/11/12
[ "https://Stackoverflow.com/questions/74412421", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20485048/" ]
74,412,442
<p>I'm using Angular 14, when I put this code, it works fine and the value is initialized.</p> <pre><code>&lt;input type=&quot;text&quot; name=&quot;name&quot; value=&quot;John&quot; &gt; </code></pre> <p>But when I add ngModel, the value is no longer initialized, and nothing is showed in the text box.</p> <pre><code>&...
[ { "answer_id": 74412427, "author": "ILS", "author_id": 10017662, "author_profile": "https://Stackoverflow.com/users/10017662", "pm_score": 1, "selected": false, "text": "zip zip zip lst = [0, 1, 2, 3, 4]\n\nresult = 1\nfor a, b in zip(lst, lst[1:]):\n result *= a + b\nprint(result)\n#...
2022/11/12
[ "https://Stackoverflow.com/questions/74412442", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8011367/" ]
74,412,450
<p>I have following task:</p> <p>Define a function <strong>replace-element</strong> that searches a given list for a given element x and replaces each element x with a given element y.</p> <p>I am a super beginner and have no idea how to do this.</p> <p>Maybe there is someone who can help me. Thanks a lot!!</p> <p>For ...
[ { "answer_id": 74412427, "author": "ILS", "author_id": 10017662, "author_profile": "https://Stackoverflow.com/users/10017662", "pm_score": 1, "selected": false, "text": "zip zip zip lst = [0, 1, 2, 3, 4]\n\nresult = 1\nfor a, b in zip(lst, lst[1:]):\n result *= a + b\nprint(result)\n#...
2022/11/12
[ "https://Stackoverflow.com/questions/74412450", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20434143/" ]
74,412,463
<p>I'm trying deploy openstack using Kolla-ansible approach with <a href="https://docs.openstack.org/kolla-ansible/latest/user/quickstart.html" rel="nofollow noreferrer">this guide</a> using a virtual environment. while I write the command:</p> <pre><code>kolla-ansible -i ./all-in-one bootstrap-servers </code></pre> <p...
[ { "answer_id": 74412640, "author": "n. m.", "author_id": 775806, "author_profile": "https://Stackoverflow.com/users/775806", "pm_score": 2, "selected": true, "text": "/root/my_venv/ python3-apt pip3 install apt install" } ]
2022/11/12
[ "https://Stackoverflow.com/questions/74412463", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15452154/" ]
74,412,467
<p>A user clicks on the switcher and add an item to a localStorage (as you see we add id:coindID every time on click)</p> <p>If a user decided not to choose it, he clicks again on the switcher, so I wanna remove the item from the localStorage with a localStorage.removeItem(key)</p> <p>(key is checkedCoins). But for so...
[ { "answer_id": 74412571, "author": "Nick Vu", "author_id": 9201587, "author_profile": "https://Stackoverflow.com/users/9201587", "pm_score": 2, "selected": false, "text": "localStorage.removeItem checkedCoins checkedCoins checkedCoins function switchClick(event) {\n let coinId = event.c...
2022/11/12
[ "https://Stackoverflow.com/questions/74412467", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20157290/" ]
74,412,469
<p>I'm building a basic calculator, and keep getting &quot;TypeError: not all arguments converted during string formatting&quot; at a line with returning the remainder. How can I fix this?</p> <pre><code>a = (input()) b = (input()) c = str(input()) if (b==0.0) and ((c=='mod') or (c=='/') or (c=='div')): print ('Zer...
[ { "answer_id": 74412571, "author": "Nick Vu", "author_id": 9201587, "author_profile": "https://Stackoverflow.com/users/9201587", "pm_score": 2, "selected": false, "text": "localStorage.removeItem checkedCoins checkedCoins checkedCoins function switchClick(event) {\n let coinId = event.c...
2022/11/12
[ "https://Stackoverflow.com/questions/74412469", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20352757/" ]
74,412,477
<p>I have to run the report with start time between 00.00 AM and 05.00 AM , but the start time field is varchar field and its has &quot;20211110200336&quot;</p> <p>I am trying with</p> <p>WHERE TO_CHAR(TO_DATE(starttime,' YYYY-MM-DD HH24:MI:SS'), 'HH24:MI:SS')BETWEEN '000000' AND '050000'</p> <p>but i am getting error ...
[ { "answer_id": 74412671, "author": "Marmite Bomber", "author_id": 4808122, "author_profile": "https://Stackoverflow.com/users/4808122", "pm_score": 2, "selected": false, "text": "DATE VARCHAR2 DATE HH24MISS substr select substr('20211110200336',9,6) hh from dual;\n\nHH \n------\n20033...
2022/11/12
[ "https://Stackoverflow.com/questions/74412477", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7677388/" ]
74,412,482
<p>If I run a basic TWS example, I receive the error message . If I comment out the error() call back it runs fine. I've tried this on several examples and get the same result.</p> <pre><code> Exception has occurred: TypeError error() takes 4 positional arguments but 5 were given File &quot;/Users/...
[ { "answer_id": 74412671, "author": "Marmite Bomber", "author_id": 4808122, "author_profile": "https://Stackoverflow.com/users/4808122", "pm_score": 2, "selected": false, "text": "DATE VARCHAR2 DATE HH24MISS substr select substr('20211110200336',9,6) hh from dual;\n\nHH \n------\n20033...
2022/11/12
[ "https://Stackoverflow.com/questions/74412482", "https://Stackoverflow.com", "https://Stackoverflow.com/users/988288/" ]
74,412,498
<p>How can you write a function f that takes another function g as an argument, but where function g has arguments that change dynamically depending on what happens in function f?</p> <p>A pseudocode example would be:</p> <pre><code>def function(another_function(parameters)): # another function passed as an argument, ...
[ { "answer_id": 74412541, "author": "Cobra", "author_id": 17580381, "author_profile": "https://Stackoverflow.com/users/17580381", "pm_score": 3, "selected": true, "text": "def func1(func, p):\n func(p)\n\nfunc1(print, 'Hello world!')\n Hello world!\n" }, { "answer_id": 74412556...
2022/11/12
[ "https://Stackoverflow.com/questions/74412498", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8032824/" ]
74,412,503
<p>I don't know why when <code>a</code> is located in <code>def test()</code> it can not be found and gives the error</p> <blockquote> <p>UnboundLocalError: cannot access local variable 'a' where it is not associated with a value</p> </blockquote> <pre class="lang-py prettyprint-override"><code>import keyboard import t...
[ { "answer_id": 74412557, "author": "Remzinho", "author_id": 2484591, "author_profile": "https://Stackoverflow.com/users/2484591", "pm_score": 0, "selected": false, "text": "a import keyboard\nimport time\na = 0\ndef test(a=a):\n a+= 1\n print(\"The number is now \", a)\n time.sl...
2022/11/12
[ "https://Stackoverflow.com/questions/74412503", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20485120/" ]
74,412,532
<p>I am trying to using with recursion function. But I got failed which is segmentation fault.</p> <pre><code>#include &lt;stdio.h&gt; int factorial( int x ); int main(){ factorial(4); return 0; } int factorial( int x ){ return x* factorial(x-1); } </code></pre> <p>I have seen the same code ...
[ { "answer_id": 74412557, "author": "Remzinho", "author_id": 2484591, "author_profile": "https://Stackoverflow.com/users/2484591", "pm_score": 0, "selected": false, "text": "a import keyboard\nimport time\na = 0\ndef test(a=a):\n a+= 1\n print(\"The number is now \", a)\n time.sl...
2022/11/12
[ "https://Stackoverflow.com/questions/74412532", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15205118/" ]
74,412,543
<p>I was making a project in react so the problem I was encountering was that there is a submit button in a form field and whenever someone clicks on it should have a fetch, I did the same there, and then when I saw the output and clicks the button the page refreshes and it didn't fetch</p> <p>Here's some code</p> <p>F...
[ { "answer_id": 74412557, "author": "Remzinho", "author_id": 2484591, "author_profile": "https://Stackoverflow.com/users/2484591", "pm_score": 0, "selected": false, "text": "a import keyboard\nimport time\na = 0\ndef test(a=a):\n a+= 1\n print(\"The number is now \", a)\n time.sl...
2022/11/12
[ "https://Stackoverflow.com/questions/74412543", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16418576/" ]
74,412,546
<p>I'm using a ReorderableListView builder in combination with a Bottom App Bar with a FAB. I set extendBody because I want the FAB notch to be transparent when scrolling up/down the list. However with a ReorderableListView I cannot scroll down to the last list item because the list item is hidden behind the Bottom App...
[ { "answer_id": 74412615, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 2, "selected": true, "text": "padding ReorderableListView.builder(\n padding: EdgeInsets.only(bottom: kBottomNavigationBarHeight + 16)...
2022/11/12
[ "https://Stackoverflow.com/questions/74412546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9564867/" ]
74,412,568
<p>The python version in my OS:</p> <pre><code>python3 --version Python 3.9.2 </code></pre> <p>Create a folder with <code>venv</code>.</p> <pre><code>python3 -m venv myproject </code></pre> <p>Now i can activate the virtual environment.</p> <pre><code>cd myproject ~/myproject$ sh bin/activate </code></pre> <p>I can...
[ { "answer_id": 74412615, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 2, "selected": true, "text": "padding ReorderableListView.builder(\n padding: EdgeInsets.only(bottom: kBottomNavigationBarHeight + 16)...
2022/11/12
[ "https://Stackoverflow.com/questions/74412568", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20311786/" ]
74,412,579
<p>I investigate boguszpawlowski Compose Calendar and I cannot find a way to track state changes of the component, because there are no callback for it. For example I need to get events only for current month (send a request) and after it I should show them in calendar. When user switch month I should send a request ag...
[ { "answer_id": 74412735, "author": "Gabriele Mariotti", "author_id": 2016562, "author_profile": "https://Stackoverflow.com/users/2016562", "pm_score": 1, "selected": false, "text": "CalendarState DynamicSelectionState val calendarState = rememberSelectableCalendarState()\n Selecta...
2022/11/12
[ "https://Stackoverflow.com/questions/74412579", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4200187/" ]
74,412,581
<p>I have a set of callbacks that may run on different durations before I close my web app. I also have a timeout where if it reaches past the timeout duration, I also close the application. The reason for this is to prevent the callbacks from blocking in closing the web app if it passes timeout duration.</p> <p>Here i...
[ { "answer_id": 74412604, "author": "Matthieu Riegler", "author_id": 884123, "author_profile": "https://Stackoverflow.com/users/884123", "pm_score": 1, "selected": false, "text": "closeCallbacks promise const closeCallbacks = [\n // for sample purposes. i assigned timeouts to mock that i...
2022/11/12
[ "https://Stackoverflow.com/questions/74412581", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5871609/" ]
74,412,625
<p>I have algorithm that uses iterators, but there is a problem with transforming values, when we need more than single source value. All transform iterators just get some one arg and transforms it. (see <a href="https://stackoverflow.com/questions/11424565/how-can-i-write-an-iterator-wrapper-that-combines-groups-of-se...
[ { "answer_id": 74413258, "author": "rturrado", "author_id": 260313, "author_profile": "https://Stackoverflow.com/users/260313", "pm_score": 1, "selected": false, "text": "points auto t{ accumulate(\n points | views::sliding(2) | views::transform([](const auto& v) { return v[1] - v[0];...
2022/11/12
[ "https://Stackoverflow.com/questions/74412625", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2561762/" ]
74,412,630
<p>I am looking for an elegant way to check if a given index is inside a numpy array (for example for BFS algorithms on a grid).</p> <p>The following code does what I want:</p> <pre><code>import numpy as np def isValid(np_shape: tuple, index: tuple): if min(index) &lt; 0: return False for ind,sh in zip...
[ { "answer_id": 74412751, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 2, "selected": false, "text": "def isValid(np_shape: tuple, index: tuple):\n index = np.array(index)\n return (index >= 0).all() and (index ...
2022/11/12
[ "https://Stackoverflow.com/questions/74412630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20345339/" ]
74,412,645
<p>I have a <code>func_df</code> with 4 functions:</p> <pre><code> x y1 y2 y3 y4 0 -20.0 -0.839071 10.0 0.816164 -8795.000 1 -19.9 -0.865213 9.9 0.994372 -8667.619 2 -19.8 -0.889191 9.8 1.162644 -8541.472 3 -19.7 -0.910947 9.7 1.319299 -8416.553 4 -19.6 -0.930426 9.6 1....
[ { "answer_id": 74414970, "author": "The Lazy Graybeard", "author_id": 9608497, "author_profile": "https://Stackoverflow.com/users/9608497", "pm_score": 2, "selected": false, "text": "merged_df = pandas.merge(test_df, func_df, on='x')\nabs_delta_y1 = (merged_df['y'] - merged_df['y1']).abs...
2022/11/12
[ "https://Stackoverflow.com/questions/74412645", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20458338/" ]
74,412,648
<p>I have a empty list of tuple and I wish to enter values inside that tuple.</p> <p>The desired output is :</p> <p><code>lst = [()] --&gt; lst = [(1,2,'string1','string2',3)]</code></p>
[ { "answer_id": 74412705, "author": "Igor Cantele", "author_id": 16807584, "author_profile": "https://Stackoverflow.com/users/16807584", "pm_score": 1, "selected": false, "text": "lst = [()]\nlst[0] = (\"item1\", \"item2\")\n lst[0] = (*lst[0], \"new item\")\n *lst[0] \"item1\", \"item2\"...
2022/11/12
[ "https://Stackoverflow.com/questions/74412648", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16022823/" ]
74,412,665
<p>Currently, I have this script which if it errors, it completely restarts. Which is perfect for what I need.</p> <p>But there is one problem, I want the script to automatically restart, even when it did not crash. every 30 seconds.</p> <p>This is what I have:</p> <pre><code>while True: try: do_main_logic(...
[ { "answer_id": 74412703, "author": "José Juan", "author_id": 20386708, "author_profile": "https://Stackoverflow.com/users/20386708", "pm_score": 0, "selected": false, "text": "import time\n \nwhile True:\n time.sleep(30)\n try: \n do_main_logic()\n except:\n pas...
2022/11/12
[ "https://Stackoverflow.com/questions/74412665", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16901344/" ]
74,412,672
<p>What I have</p> <pre><code>import Home from &quot;./components/underpages/Home&quot;; import Kontakt from &quot;./components/underpages/Kontakt&quot;; import FAQ from &quot;./components/underpages/FAQ&quot;; // [...] &lt;Routes&gt; &lt;Route path=&quot;/&quot; element={&lt;Home /&gt;} /&gt;...
[ { "answer_id": 74412703, "author": "José Juan", "author_id": 20386708, "author_profile": "https://Stackoverflow.com/users/20386708", "pm_score": 0, "selected": false, "text": "import time\n \nwhile True:\n time.sleep(30)\n try: \n do_main_logic()\n except:\n pas...
2022/11/12
[ "https://Stackoverflow.com/questions/74412672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19749827/" ]
74,412,690
<pre class="lang-cs prettyprint-override"><code>save: try { s.Save(); } catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) { FSErrorDialog fsError = new(ex, FSVerb.Access, new FileInfo(path), Button.Retry, Button.Ignore); if (fsError.ShowDialog().ClickedButton == Button.Retry) ...
[ { "answer_id": 74412704, "author": "ProgrammingLlama", "author_id": 3181933, "author_profile": "https://Stackoverflow.com/users/3181933", "pm_score": 2, "selected": false, "text": "bool shouldRetry;\ndo\n{\n try\n {\n s.Save();\n shouldRetry = false;\n }\n catch...
2022/11/12
[ "https://Stackoverflow.com/questions/74412690", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11718061/" ]
74,412,691
<p>I am trying to print all paths from source= 2 to destination = 3 with a graph that has the following edges:</p> <pre><code>g.addEdge(0, 1) g.addEdge(0, 2) g.addEdge(0, 3) g.addEdge(2, 0) g.addEdge(2, 1) g.addEdge(1, 3) </code></pre> <p>When I print the variable &quot;all_paths&quot;, it prints all possible path...
[ { "answer_id": 74416279, "author": "Tadhg McDonald-Jensen", "author_id": 5827215, "author_profile": "https://Stackoverflow.com/users/5827215", "pm_score": 0, "selected": false, "text": "path" }, { "answer_id": 74419498, "author": "Stacker", "author_id": 20485288, "aut...
2022/11/12
[ "https://Stackoverflow.com/questions/74412691", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20485288/" ]
74,412,693
<p>I'm trying to fetch file from Google Drive using Apache Beam. I tried,</p> <pre><code>filenames = ['https://drive.google.com/file/d/&lt;file_id&gt;'] with beam.Pipeline() as pipeline: lines = (pipeline | beam.Create(filenames)) print(lines) </code></pre> <p>This returns a string like <code>PCollection[[19]: Crea...
[ { "answer_id": 74416279, "author": "Tadhg McDonald-Jensen", "author_id": 5827215, "author_profile": "https://Stackoverflow.com/users/5827215", "pm_score": 0, "selected": false, "text": "path" }, { "answer_id": 74419498, "author": "Stacker", "author_id": 20485288, "aut...
2022/11/12
[ "https://Stackoverflow.com/questions/74412693", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3943600/" ]
74,412,741
<p>I want to get a variable from a JSON file to python but it says that the local variable 'id' is referenced before assignment</p> <pre><code>def getInfo(name): with open(&quot;data.json&quot;) as file: file_data = json.load(file) for i in file_data[&quot;data&quot;]: if i[&quot;name&quot;] ==...
[ { "answer_id": 74412808, "author": "Eliav Louski", "author_id": 10577976, "author_profile": "https://Stackoverflow.com/users/10577976", "pm_score": -1, "selected": true, "text": "class Info:\n\n def __init__(self):\n pass\n def getInfo(self,name):\n with open(\"data.j...
2022/11/12
[ "https://Stackoverflow.com/questions/74412741", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14726294/" ]
74,412,744
<p>I've created a new swiftui project in Xcode 14.1 on a MacBook Air M1</p> <p>It will build and run if I add these pods</p> <p>pod 'FirebaseFirestoreSwift'<br /> pod 'GoogleMLKit/Translate', '3.2.0'</p> <p><strong>OR</strong></p> <p>pod 'FirebaseStorage'<br /> pod 'GoogleMLKit/Translate', '3.2.0'</p> <p><strong>OR</st...
[ { "answer_id": 74412808, "author": "Eliav Louski", "author_id": 10577976, "author_profile": "https://Stackoverflow.com/users/10577976", "pm_score": -1, "selected": true, "text": "class Info:\n\n def __init__(self):\n pass\n def getInfo(self,name):\n with open(\"data.j...
2022/11/12
[ "https://Stackoverflow.com/questions/74412744", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3858484/" ]
74,412,790
<p>When I apply COUNTIF to a range that contains calculations, I get an error message. To avoid that, can I also narrow the range only to certain columns?</p> <p>For example, instead of <code>=COUNTIF($A$1:E;F1)</code> something like <code>=COUNTIF($A$1:A AND $C$1:C AND $E$1:E;F1)</code></p> <p>So that certain columns ...
[ { "answer_id": 74412896, "author": "Anton Dementiev", "author_id": 7586528, "author_profile": "https://Stackoverflow.com/users/7586528", "pm_score": 0, "selected": false, "text": "=COUNTIFS(A1:A, \"=\" & F1, C1:C, \"=\" & F1, E1:E, \"=\" & F1)\n" }, { "answer_id": 74413019, "...
2022/11/12
[ "https://Stackoverflow.com/questions/74412790", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3392296/" ]
74,412,804
<p>I have been struggling on this for a while without prevail. I am trying to run a test script with</p> <pre><code>import numpy as np array1 = np.array([1,2,3]) </code></pre> <p>However, I get the error &quot;No module named 'numpy'&quot;. The same goes for Tensorflow. But trying &quot;pip install numpy&quot; on termi...
[ { "answer_id": 74412897, "author": "Thaiminhpv", "author_id": 11806050, "author_profile": "https://Stackoverflow.com/users/11806050", "pm_score": 2, "selected": false, "text": "pip install python-venv conda which python which pip pip --version venv python3 -m venv env\n source env/bin/ac...
2022/11/12
[ "https://Stackoverflow.com/questions/74412804", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20158158/" ]
74,412,806
<p>Suppose I have an <code>Optional</code> containing a <code>Stream</code>:</p> <pre class="lang-java prettyprint-override"><code>Optional&lt;Stream&lt;Integer&gt;&gt; optionalStream = Optional.of(Stream.of(1, 2, 3)); </code></pre> <p>Now I need to extract the <code>Stream</code> itself. If the <code>Optional</code> i...
[ { "answer_id": 74412838, "author": "Julio César Estravis", "author_id": 20121447, "author_profile": "https://Stackoverflow.com/users/20121447", "pm_score": 3, "selected": true, "text": "orElseGet() optionalStream.orElseGet(()->Stream.empty())\n" }, { "answer_id": 74412877, "a...
2022/11/12
[ "https://Stackoverflow.com/questions/74412806", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17133024/" ]
74,412,812
<p>I have the below data structure in Ruby:</p> <pre><code>people = [ { &quot;name&quot; =&gt; &quot;John&quot;, &quot;hobby&quot; =&gt; &quot;tennis&quot;, &quot;food&quot; =&gt; &quot;pizza&quot; }, { &quot;name&quot; =&gt; &quot;Joseph&quot;, &quot;hobby&quot; =&gt; &quot;tennis&quot;, &quot;food&quot; =&gt; &qu...
[ { "answer_id": 74412838, "author": "Julio César Estravis", "author_id": 20121447, "author_profile": "https://Stackoverflow.com/users/20121447", "pm_score": 3, "selected": true, "text": "orElseGet() optionalStream.orElseGet(()->Stream.empty())\n" }, { "answer_id": 74412877, "a...
2022/11/12
[ "https://Stackoverflow.com/questions/74412812", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20478187/" ]
74,412,815
<p>I'm trying to iterate over a list and change its values with a &quot;for in&quot; loop:</p> <pre><code>example_string = &quot;This is a string.&quot; for char in example_string : char = 'r' example_list = list(example_string) for char in example_list: char = 'r' </code></pre> <p>The string object is not m...
[ { "answer_id": 74412891, "author": "FAB", "author_id": 6373435, "author_profile": "https://Stackoverflow.com/users/6373435", "pm_score": 1, "selected": false, "text": "example_string = [\"This is a string.\", \"This is another string\"]\n\nfor i in range(len(example_string)):\n exampl...
2022/11/12
[ "https://Stackoverflow.com/questions/74412815", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6046407/" ]
74,412,834
<p>How to find duplicate items from the list below and delete one?</p> <pre><code>var mylist = new List&lt;string&gt;(){ &quot;itemA.config&quot;, &quot;itemA.en-us.config&quot;, &quot;itemB.config&quot;, &quot;itemC.config&quot;, &quot;itemC.en-us.config&quot;, &quot;itemC.fa-ir.config&quot; }; </co...
[ { "answer_id": 74412945, "author": "Dmitry Bychenko", "author_id": 2319407, "author_profile": "https://Stackoverflow.com/users/2319407", "pm_score": 1, "selected": false, "text": "GroupBy ItemA ItemB var mylist = mylist\n .GroupBy(item => item.Substring(0, item.IndexOf('.')))\n .Select...
2022/11/12
[ "https://Stackoverflow.com/questions/74412834", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10241851/" ]
74,412,851
<p>I am doing my custom image file format to display images in CLI but i need to convert <code>size_t</code> to <code>std::string</code>:</p> <pre class="lang-cpp prettyprint-override"><code>namespace csfo { class Res { public: char* BLANK_DATA = &quot;...&quot;; }; ... inline char* generate(int COLOR, size_...
[ { "answer_id": 74412941, "author": "john", "author_id": 882003, "author_profile": "https://Stackoverflow.com/users/882003", "pm_score": 0, "selected": false, "text": "size_t n = DATA.find(\"[X_SIZE]\"); // find where [X_SIZE] is in DATA\nDATA.replace(n, n + 8, dimenssions[0]); // and rep...
2022/11/12
[ "https://Stackoverflow.com/questions/74412851", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19643069/" ]
74,412,866
<p>I am a super CL beginner and I am very stumped on the following task:</p> <blockquote> <p>Define a recursive function <strong><code>shorten</code></strong> that deletes the last <em>n</em> elements from a given list. The function should return the shortened list at the end.</p> <p>For example:</p> <pre><code> (short...
[ { "answer_id": 74417809, "author": "Will Ness", "author_id": 849891, "author_profile": "https://Stackoverflow.com/users/849891", "pm_score": 1, "selected": false, "text": "p0 n p2 p1 p0 p1 p2 p2 (rplacd p1 nil) p0 (setf p2 (cdr p2)) (cdr p2)" }, { "answer_id": 74421085, "auth...
2022/11/12
[ "https://Stackoverflow.com/questions/74412866", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20434143/" ]
74,412,959
<p><a href="https://i.stack.imgur.com/30SYz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/30SYz.png" alt="Spring Boot" /></a></p> <p>My application is mainly based on spring boot micro services. Currently it uses OAuth with password grant_type which is deprecated in the latest spring security autho...
[ { "answer_id": 74417809, "author": "Will Ness", "author_id": 849891, "author_profile": "https://Stackoverflow.com/users/849891", "pm_score": 1, "selected": false, "text": "p0 n p2 p1 p0 p1 p2 p2 (rplacd p1 nil) p0 (setf p2 (cdr p2)) (cdr p2)" }, { "answer_id": 74421085, "auth...
2022/11/12
[ "https://Stackoverflow.com/questions/74412959", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1498826/" ]
74,412,991
<p>I have a function that gets a number and should return the minimum digit. This is what I was trying to do, but maybe I didn't fully understand how recursion works.</p> <pre><code>def min_dig(num): minimum = 9 if num &lt; 10: return num min_dig(num / 10) if num % 10 &lt; minimum: minim...
[ { "answer_id": 74413050, "author": "techy", "author_id": 19969692, "author_profile": "https://Stackoverflow.com/users/19969692", "pm_score": 0, "selected": false, "text": "number = 98918\nnumberArray = number.split\nsmallest = numberArray[0]\nfor (digit in numberArray){\n if (digit < ...
2022/11/12
[ "https://Stackoverflow.com/questions/74412991", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14148435/" ]
74,413,013
<pre><code>#include &lt;stdio.h&gt; #include &lt;ctype.h&gt; #include &lt;string.h&gt; int main(){ char S[10007]; scanf(&quot;%[^\n]&quot;, S); getchar(); int i = 0; char u; while(S[i]){ u = toupper(S[i]); if(strcmp(u, &quot;I&quot;) == 0){ u = '1'; } ...
[ { "answer_id": 74413048, "author": "Yksisarvinen", "author_id": 7976805, "author_profile": "https://Stackoverflow.com/users/7976805", "pm_score": 2, "selected": true, "text": "strcmp if (u == 'I') strcmp printf(\"%s\", u); %c char" }, { "answer_id": 74413087, "author": "Pepij...
2022/11/12
[ "https://Stackoverflow.com/questions/74413013", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20485607/" ]
74,413,028
<p>I am building a web application with a login form and stripe subscription functionality.</p> <p>In order to receive JSON data I am using <code>express.json</code> as</p> <pre><code>app.use(express.json()); </code></pre> <p>When I was using the above middleware to receive <code>stripe webhook secret</code> the serve...
[ { "answer_id": 74413048, "author": "Yksisarvinen", "author_id": 7976805, "author_profile": "https://Stackoverflow.com/users/7976805", "pm_score": 2, "selected": true, "text": "strcmp if (u == 'I') strcmp printf(\"%s\", u); %c char" }, { "answer_id": 74413087, "author": "Pepij...
2022/11/12
[ "https://Stackoverflow.com/questions/74413028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17348251/" ]
74,413,029
<p>I need to serialize an xml schema in c#. The problem is that I don't know how to serialize the paragraph element of this schema.</p> <pre><code> &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;p:EsitoRichiestaCertificatoDispositivo xmlns:env=&quot;http://schemas.xmlsoap.org/soap/envelope/&quo...
[ { "answer_id": 74413048, "author": "Yksisarvinen", "author_id": 7976805, "author_profile": "https://Stackoverflow.com/users/7976805", "pm_score": 2, "selected": true, "text": "strcmp if (u == 'I') strcmp printf(\"%s\", u); %c char" }, { "answer_id": 74413087, "author": "Pepij...
2022/11/12
[ "https://Stackoverflow.com/questions/74413029", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6117549/" ]
74,413,034
<p>So, I have a ball and some obstacles, which disallow the ball to move to the target. Ball is shotting bullets and after each shot I'm checking if the ball can reach the target. I need the ball to stay on starting position until the path is clear. Unfortunately, even if some obsacles are on the way, the ball keeps mo...
[ { "answer_id": 74413048, "author": "Yksisarvinen", "author_id": 7976805, "author_profile": "https://Stackoverflow.com/users/7976805", "pm_score": 2, "selected": true, "text": "strcmp if (u == 'I') strcmp printf(\"%s\", u); %c char" }, { "answer_id": 74413087, "author": "Pepij...
2022/11/12
[ "https://Stackoverflow.com/questions/74413034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20431488/" ]
74,413,043
<p>I have a websocket server that sends an object containing some hashes every 15 seconds. When the client receives a hash, I want to check with my current hash. If they differ, I want to make a call to an API to fetch new data.</p> <p>The socket is working and sending the hash correctly. If the data updates on the ser...
[ { "answer_id": 74413472, "author": "Hamid fadili", "author_id": 13118602, "author_profile": "https://Stackoverflow.com/users/13118602", "pm_score": 0, "selected": false, "text": "socket?.on('aHash', (hash) => update(hash));\n" }, { "answer_id": 74415788, "author": "Shortchang...
2022/11/12
[ "https://Stackoverflow.com/questions/74413043", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2695816/" ]
74,413,126
<p>I would like to write a bash script for transferring multiple directories from a Raspberry Pi to my laptop using scp command. But my code only work on one laptop (MacBook Pro 2016), but it failed on another laptop (MacBook Pro 2020), which is quite strange.</p> <p>What I would like to execute is some command like:</...
[ { "answer_id": 74413472, "author": "Hamid fadili", "author_id": 13118602, "author_profile": "https://Stackoverflow.com/users/13118602", "pm_score": 0, "selected": false, "text": "socket?.on('aHash', (hash) => update(hash));\n" }, { "answer_id": 74415788, "author": "Shortchang...
2022/11/12
[ "https://Stackoverflow.com/questions/74413126", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10109615/" ]
74,413,175
<p>I dockerized my react app using these commands:</p> <pre><code>docker build -t image-name . docker run -e CHOKIDAR_USEPOLLING=true -v %cd%\src:/app/src -p 3000:3000 --name container-name image-name </code></pre> <p>The problem is that when I save any updates in my components, they do not show up in the browser, alt...
[ { "answer_id": 74416731, "author": "some nooby questions", "author_id": 14514276, "author_profile": "https://Stackoverflow.com/users/14514276", "pm_score": 0, "selected": false, "text": "scripts/start \"scripts\": {\n \"start\": \"WATCHPACK_POLLING=true react-scripts start\",\n },\n"...
2022/11/12
[ "https://Stackoverflow.com/questions/74413175", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14514276/" ]
74,413,176
<p>I have a string containing placeholders which I want replace with other strings, but I would also like to split the string whenever I encounter a placeholder.</p> <p>So, by splitting I mean that</p> <pre><code>&quot;This {0} is an example {1} with a placeholder&quot; </code></pre> <p>should become:</p> <pre><code>pa...
[ { "answer_id": 74413203, "author": "The fourth bird", "author_id": 5424988, "author_profile": "https://Stackoverflow.com/users/5424988", "pm_score": 3, "selected": true, "text": "{\\d+}|\\S.*?(?=\\s*(?:{\\d+}|$))\n {\\d+} { } | \\S.*? (?= \\s* (?:{\\d+}|$) { } ) const regex = /{\\d+}|\\S...
2022/11/12
[ "https://Stackoverflow.com/questions/74413176", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1488067/" ]
74,413,185
<p>I have the following code to demonstrate a function been called inside another function.</p> <p>The below code works correctly:</p> <pre><code>#include &lt;iostream&gt; int thirds() { return 6 + 1; } template &lt;typename T, typename B&gt; int hello(T x, B y , int (*ptr)() ){ int first = x + 1; int...
[ { "answer_id": 74413253, "author": "wohlstad", "author_id": 18519921, "author_profile": "https://Stackoverflow.com/users/18519921", "pm_score": 3, "selected": true, "text": "add hello ptr std::function #include <iostream>\n#include <functional>\n\nint thirds(int a) \n{\n return a + 1;...
2022/11/12
[ "https://Stackoverflow.com/questions/74413185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20483318/" ]
74,413,187
<p>I would like to extract real-time data from a file that does not have a .</p> <p>this file is a history of an application developed with nwjs</p> <p>file example:</p> <p><a href="https://i.stack.imgur.com/j8vWj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j8vWj.png" alt="" /></a></p> <p>do you ...
[ { "answer_id": 74413253, "author": "wohlstad", "author_id": 18519921, "author_profile": "https://Stackoverflow.com/users/18519921", "pm_score": 3, "selected": true, "text": "add hello ptr std::function #include <iostream>\n#include <functional>\n\nint thirds(int a) \n{\n return a + 1;...
2022/11/12
[ "https://Stackoverflow.com/questions/74413187", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20485761/" ]
74,413,201
<p>I want to achieve this format. As you can see on the output there's a bracket but I want to get only the <strong>'10': [&quot;11/21/2022&quot;, &quot;11/25/2022&quot;]</strong> or this one.</p> <pre><code>{ '10': [&quot;11/21/2022&quot;, &quot;11/25/2022&quot;] } </code></pre> <p><div class="snippet" data-lang="...
[ { "answer_id": 74413253, "author": "wohlstad", "author_id": 18519921, "author_profile": "https://Stackoverflow.com/users/18519921", "pm_score": 3, "selected": true, "text": "add hello ptr std::function #include <iostream>\n#include <functional>\n\nint thirds(int a) \n{\n return a + 1;...
2022/11/12
[ "https://Stackoverflow.com/questions/74413201", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17919686/" ]
74,413,215
<p>I have a button and I would like to press it to open the dafult application of the phone emails. I tried to search online but I only find references to the url_launcher package which, from what I understand, allows you to open the email app and automatically write to someone, but I don't want this, I just want to op...
[ { "answer_id": 74413386, "author": "Gwhyyy", "author_id": 18670641, "author_profile": "https://Stackoverflow.com/users/18670641", "pm_score": 0, "selected": false, "text": " Future<void> sendMailto({\n String email = \"mail@example.com\",\n }) async {\n final String emailSubje...
2022/11/12
[ "https://Stackoverflow.com/questions/74413215", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16774958/" ]
74,413,281
<p>I tried to make a function that would subtract from a number, for example number <code>25</code>, to display the result <code>3</code> (because <code>5-2=3</code>) - the <code>smallest</code> is subtracted from the <code>large</code> number - while the numbers from <code>1</code> to <code>9</code> will remain the sa...
[ { "answer_id": 74413386, "author": "Gwhyyy", "author_id": 18670641, "author_profile": "https://Stackoverflow.com/users/18670641", "pm_score": 0, "selected": false, "text": " Future<void> sendMailto({\n String email = \"mail@example.com\",\n }) async {\n final String emailSubje...
2022/11/12
[ "https://Stackoverflow.com/questions/74413281", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12168973/" ]
74,413,304
<p>I have a column called <code>Email Address</code> that I want to mask the display of the addresses with <code>*</code>.</p> <p>Something like this:</p> <pre><code>aaron0@adventure-works.com --&gt; a****0@adventure-works.com aaron1@adventure-works.com --&gt; a****1@adventure-works.com aaron14@adventure-works.com --&g...
[ { "answer_id": 74413368, "author": "Bouke", "author_id": 6864688, "author_profile": "https://Stackoverflow.com/users/6864688", "pm_score": 2, "selected": false, "text": "ALTER COLUMN EmailAddress NVARCHAR(100) MASKED WITH (FUNCTION = 'email()')\n ALTER COLUMN EmailAddress NVARCHAR(100) M...
2022/11/12
[ "https://Stackoverflow.com/questions/74413304", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6061660/" ]
74,413,329
<p>i want to make a function that return 0 if the list is empty otherwise 1</p> <p>and the binding shoul be ( val len = fn : (int * int * int) list list list list -&gt; int )</p> <pre><code>fun len[[[(x:(int*int*int)list)]]]= if null x then 0 else 1 this code seems working but there is a warning </code></pre> <p...
[ { "answer_id": 74414645, "author": "Chris", "author_id": 15261315, "author_profile": "https://Stackoverflow.com/users/15261315", "pm_score": 1, "selected": false, "text": "len" }, { "answer_id": 74417521, "author": "John Coleman", "author_id": 4996248, "author_profile...
2022/11/12
[ "https://Stackoverflow.com/questions/74413329", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18005626/" ]
74,413,330
<p>The following code presents a way to add two traces to a Plotly figure:</p> <pre class="lang-py prettyprint-override"><code>import plotly.graph_objs as go fig = go.Figure() fig.add_trace(go.Scatter( x = [0, 1, 2, 3], y = [1, 2, 3, 4], mode = 'lines+markers', name = &quot;Trace 0&quot;, )) fig.add_trace(g...
[ { "answer_id": 74413520, "author": "medium-dimensional", "author_id": 7789963, "author_profile": "https://Stackoverflow.com/users/7789963", "pm_score": 1, "selected": false, "text": "import plotly.express as px\nimport plotly.graph_objects as go\nimport pandas as pd\n\ndf = pd.DataFrame(...
2022/11/12
[ "https://Stackoverflow.com/questions/74413330", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5189462/" ]
74,413,364
<p>I am trying to add custom color to menu on tabs , I want color to fill the entire menu , currently this menu is in tab and I wanted a custom color to be added on top of it.</p> <p><a href="https://codesandbox.io/s/semantic-ui-example-forked-muho2n?file=/example.js" rel="nofollow noreferrer">current code </a></p> <p>...
[ { "answer_id": 74413520, "author": "medium-dimensional", "author_id": 7789963, "author_profile": "https://Stackoverflow.com/users/7789963", "pm_score": 1, "selected": false, "text": "import plotly.express as px\nimport plotly.graph_objects as go\nimport pandas as pd\n\ndf = pd.DataFrame(...
2022/11/12
[ "https://Stackoverflow.com/questions/74413364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4442307/" ]
74,413,381
<p>I am trying to create a button with 2 parts of text, first the button text itself (title) and then (on the other side -&gt; right) the price, also the price should have another color. So, if this is the button -&gt; |title 3$|, the price must be aligned on the right! How would I do something like this? Please help...
[ { "answer_id": 74413422, "author": "Henryc17", "author_id": 14595300, "author_profile": "https://Stackoverflow.com/users/14595300", "pm_score": 2, "selected": true, "text": "<button type=\"submit\" style=\"width:10em;\"><span style=\"float:left;\">title</span><span style=\"float:right;\"...
2022/11/12
[ "https://Stackoverflow.com/questions/74413381", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19960658/" ]
74,413,419
<p>i have the table:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>person</th> <th>score</th> <th>Job type</th> </tr> </thead> <tbody> <tr> <td>person 1</td> <td>6.5</td> <td>job 1</td> </tr> <tr> <td>person 1</td> <td>4.3</td> <td>job 2</td> </tr> <tr> <td>person 2</td> <td>1.2</td> <td>...
[ { "answer_id": 74413517, "author": "Bushmaster", "author_id": 15415267, "author_profile": "https://Stackoverflow.com/users/15415267", "pm_score": 0, "selected": false, "text": "mask=df.sort_values('score').groupby('person').tail(1).rename(columns={'Job type':'Higest_score'})\n\nfinal=df....
2022/11/12
[ "https://Stackoverflow.com/questions/74413419", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20485886/" ]
74,413,427
<p>I have been following all of the tutorials for using <strong>docker compose</strong> with regards to <strong>azure</strong> and have been running into a problem with regards to volumes.</p> <p>My docker compose file looks like this :</p> <pre><code>version: '3.7' services: app-server: build: context: . ...
[ { "answer_id": 74413517, "author": "Bushmaster", "author_id": 15415267, "author_profile": "https://Stackoverflow.com/users/15415267", "pm_score": 0, "selected": false, "text": "mask=df.sort_values('score').groupby('person').tail(1).rename(columns={'Job type':'Higest_score'})\n\nfinal=df....
2022/11/12
[ "https://Stackoverflow.com/questions/74413427", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1022330/" ]
74,413,459
<pre><code>const { generateNum } = require(&quot;./generate_num&quot;) Cypress.Commands.add('NewUserRegister', () =&gt; { const { userName, email, password} = generateNum(); cy.get(':nth-child(3) &gt; .nav-link').should('contain.text', 'Sign up').click() cy.get(':nth-child(1) &gt; .form-control').t...
[ { "answer_id": 74415687, "author": "Grainger", "author_id": 20487878, "author_profile": "https://Stackoverflow.com/users/20487878", "pm_score": 2, "selected": false, "text": "return cy.wrap({userName, email, password})\n" }, { "answer_id": 74416474, "author": "Jared", "au...
2022/11/12
[ "https://Stackoverflow.com/questions/74413459", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20479451/" ]
74,413,505
<p>I want to do strict matching on a text file so that it only returns the patterns I have anded. So for example in a file:</p> <pre><code>xyz xy yx zyx </code></pre> <p>I want to run a command similar to:</p> <pre><code>awk '/x/ &amp;&amp; /y/' filename.txt </code></pre> <p>and I would like it to return only the lines...
[ { "answer_id": 74413518, "author": "The fourth bird", "author_id": 5424988, "author_profile": "https://Stackoverflow.com/users/5424988", "pm_score": 1, "selected": false, "text": "/x/ && /y/ x Y awk '/^[xy]+$/' file\n awk '/^[[:space:]]*[xyXY][[:space:]xyXY]*$/' file\n ^ [[:space:]]* [xy...
2022/11/12
[ "https://Stackoverflow.com/questions/74413505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12924562/" ]
74,413,601
<p>So I've a 2D-array looking like this:</p> <pre><code>[[1 0] [2 0] [3 0] [4 0] ... </code></pre> <p>and I want to save it to a csvfile, I know that I must use to_csv to do so.</p> <p>So I tried doing : np.savetxt(&quot;file.csv&quot;,array,delimiter=',',fmt='%d,%d'), %d is to store data as int not as the default form...
[ { "answer_id": 74413518, "author": "The fourth bird", "author_id": 5424988, "author_profile": "https://Stackoverflow.com/users/5424988", "pm_score": 1, "selected": false, "text": "/x/ && /y/ x Y awk '/^[xy]+$/' file\n awk '/^[[:space:]]*[xyXY][[:space:]xyXY]*$/' file\n ^ [[:space:]]* [xy...
2022/11/12
[ "https://Stackoverflow.com/questions/74413601", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20480762/" ]
74,413,619
<p>I have a poorly formatted LaTeX which needs to be formatted in specific manner to render in Jupyter Notebook correctly:</p> <pre class="lang-py prettyprint-override"><code># Supporting Libraries: from qiskit.visualization import array_to_latex from IPython.display import display, Markdown # Unsuitable LaTeX latex_b...
[ { "answer_id": 74413518, "author": "The fourth bird", "author_id": 5424988, "author_profile": "https://Stackoverflow.com/users/5424988", "pm_score": 1, "selected": false, "text": "/x/ && /y/ x Y awk '/^[xy]+$/' file\n awk '/^[[:space:]]*[xyXY][[:space:]xyXY]*$/' file\n ^ [[:space:]]* [xy...
2022/11/12
[ "https://Stackoverflow.com/questions/74413619", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1176573/" ]
74,413,626
<p>I have some number of lines in data for input:</p> <pre><code>data = sys.stdin.readlines() </code></pre> <p>Find out the number of lines:</p> <pre><code>l = len(data) </code></pre> <p>How can I split this data into variables? For example I have the following input:</p> <pre><code>1 0 2 2 0 0 1 1 0 1 1 0 </code></pre...
[ { "answer_id": 74413775, "author": "Dean Van Greunen", "author_id": 6651840, "author_profile": "https://Stackoverflow.com/users/6651840", "pm_score": 2, "selected": true, "text": "data = sys.stdin.readlines()\nindexer = 0\nwhile indexer < len(data) - 1:\n n, m = map(int, data[indexer]...
2022/11/12
[ "https://Stackoverflow.com/questions/74413626", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20145092/" ]
74,413,628
<p>I have a dataframe which has column as follows:</p> <pre><code>|REGION/CATEGORY| |--|-| |NORTHERN REGION| |THERMAL| |HYDRO| |NUCLEAR| |WESTERN REGION| |THERMAL| |HYDRO| |NUCLEAR| |SOUTHERN REGION| |THERMAL| |HYDRO| |NUCLEAR| |EASTERN REGION| |THERMAL| |HYDRO| |NORTH EASTERN REGION| |THERMAL| |HYDRO| |ALL INDIA REGIO...
[ { "answer_id": 74413775, "author": "Dean Van Greunen", "author_id": 6651840, "author_profile": "https://Stackoverflow.com/users/6651840", "pm_score": 2, "selected": true, "text": "data = sys.stdin.readlines()\nindexer = 0\nwhile indexer < len(data) - 1:\n n, m = map(int, data[indexer]...
2022/11/12
[ "https://Stackoverflow.com/questions/74413628", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13277504/" ]
74,413,639
<p>I'm having trouble passing a variable that stores a certain value to <code>with()</code>, it returns what I want, but it returns the following message.</p> <p><code>[{&quot;name&quot;:&quot;Ryu&quot;}] won updates in your informations.</code> rather then <code>Ryu won updates in your informations.</code></p> <pre><c...
[ { "answer_id": 74413775, "author": "Dean Van Greunen", "author_id": 6651840, "author_profile": "https://Stackoverflow.com/users/6651840", "pm_score": 2, "selected": true, "text": "data = sys.stdin.readlines()\nindexer = 0\nwhile indexer < len(data) - 1:\n n, m = map(int, data[indexer]...
2022/11/12
[ "https://Stackoverflow.com/questions/74413639", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20338917/" ]
74,413,649
<p>I have a dictionary: where 0 and 1 are two index and the other numbers inside the two dictionaries are the frequency of each word in a previous list of strings</p> <p>letter_positions={0: {'l': 1, 'y': 2, 'm': 1, 'r': 2}, 1: {'t': 2, 'e': 1, 'n': 1, 's': 3}}</p> <p>I get that by a function that return a dictionary w...
[ { "answer_id": 74413775, "author": "Dean Van Greunen", "author_id": 6651840, "author_profile": "https://Stackoverflow.com/users/6651840", "pm_score": 2, "selected": true, "text": "data = sys.stdin.readlines()\nindexer = 0\nwhile indexer < len(data) - 1:\n n, m = map(int, data[indexer]...
2022/11/12
[ "https://Stackoverflow.com/questions/74413649", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20485030/" ]
74,413,742
<p>I am trying to filter an array of objects based on user input.</p> <p>I wish filter based on the values of certain keys within the object. However, not all the objects have all keys inside them. This means when I check it throws an error.</p> <p>How do I ignore if a particular object does not have one of the keys in...
[ { "answer_id": 74413810, "author": "Neil Girardi", "author_id": 1500241, "author_profile": "https://Stackoverflow.com/users/1500241", "pm_score": 3, "selected": true, "text": "const handleSearch = (query) => {\n const keys = ['name', 'location', 'address']\n const filter = data.filter(...
2022/11/12
[ "https://Stackoverflow.com/questions/74413742", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12716872/" ]
74,413,747
<p>I am trying to make an HTTP call to a server to get its HTML contents everything is working fine on other android versions. But in android 6 when the app is calling HTMLunit it crashes.</p> <p>I know it has to do with something that works on API above 23. but not on the 23.. I tried many things but I sill can't fix ...
[ { "answer_id": 74413810, "author": "Neil Girardi", "author_id": 1500241, "author_profile": "https://Stackoverflow.com/users/1500241", "pm_score": 3, "selected": true, "text": "const handleSearch = (query) => {\n const keys = ['name', 'location', 'address']\n const filter = data.filter(...
2022/11/12
[ "https://Stackoverflow.com/questions/74413747", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15793557/" ]
74,413,748
<p>My data table <code>comb</code> (<code>dput</code> output below) has the structure below. I want to dcast it like this</p> <pre><code>comb_wide &lt;- dcast(comb, scenarios + qName + hemName ~ PWC_cutoff, value.var = sum) </code></pre> <p>R returns this error message</p> <pre><code>Error in setattr(ans, &quot;names&q...
[ { "answer_id": 74413810, "author": "Neil Girardi", "author_id": 1500241, "author_profile": "https://Stackoverflow.com/users/1500241", "pm_score": 3, "selected": true, "text": "const handleSearch = (query) => {\n const keys = ['name', 'location', 'address']\n const filter = data.filter(...
2022/11/12
[ "https://Stackoverflow.com/questions/74413748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5943539/" ]
74,413,762
<p>I have this problem where I am asked to multiply BX by 42 without using any <code>mul</code> or <code>div</code> instructions, presumably by using <code>shl</code> or <code>shr</code>. It is also required to do it in 5 lines.</p> <p>How do you do such a thing ?</p> <p>I didn't try anything, but the above requirement...
[ { "answer_id": 74413810, "author": "Neil Girardi", "author_id": 1500241, "author_profile": "https://Stackoverflow.com/users/1500241", "pm_score": 3, "selected": true, "text": "const handleSearch = (query) => {\n const keys = ['name', 'location', 'address']\n const filter = data.filter(...
2022/11/12
[ "https://Stackoverflow.com/questions/74413762", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15363079/" ]
74,413,770
<p>I'm dealing with a csv that repeats its headers name within each rows:</p> <pre><code>player: John Doe ; level: 45 ; last_login: 7854414174 ; coins: 7600 player: Anckx Uj ; level: 471 ; last_login: 7854418847 ; coins: 684111 </code></pre> <p>I'd like to know how I can only select the values when importing it using p...
[ { "answer_id": 74413810, "author": "Neil Girardi", "author_id": 1500241, "author_profile": "https://Stackoverflow.com/users/1500241", "pm_score": 3, "selected": true, "text": "const handleSearch = (query) => {\n const keys = ['name', 'location', 'address']\n const filter = data.filter(...
2022/11/12
[ "https://Stackoverflow.com/questions/74413770", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20144376/" ]
74,413,779
<p>Can someone tell me what I'm doing wrong here? The 1st function(all_products) renders in template perfectly, but the last 2 does not.</p> <p><strong>models.py</strong></p> <pre><code># TABLE BRAND class Brand(models.Model): name = models.CharField(max_length = 50) # TABLE PRODUCT class Product(models.Model): ...
[ { "answer_id": 74413860, "author": "Mahammadhusain kadiwala", "author_id": 19205926, "author_profile": "https://Stackoverflow.com/users/19205926", "pm_score": 2, "selected": true, "text": "from django.urls import path\nfrom . import views\n\nurlpatterns = [\n path('', views.all_produc...
2022/11/12
[ "https://Stackoverflow.com/questions/74413779", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20486026/" ]
74,413,793
<p>Is there any data types of nothing available in javascript? I mean like not the null or undefined or 'empty string' but pure nothing. For example, i want to print a variable to console; <code>console.log(variable)</code> it should prints nothing. Is there something like that? Because i needed in do operations in arr...
[ { "answer_id": 74413830, "author": "Bergi", "author_id": 1048572, "author_profile": "https://Stackoverflow.com/users/1048572", "pm_score": 2, "selected": false, "text": "undefined x === true ? [\"Script\"] : []\n" }, { "answer_id": 74413837, "author": "LeoDog896", "author...
2022/11/12
[ "https://Stackoverflow.com/questions/74413793", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20127250/" ]
74,413,822
<p>On request 1, the values ​​(animal, celebrity, dev...) are extracted and saved in a variable to be used later. In request 2 I want to use these extracted values, but randomly.</p> <p>I'm not having success doing this.</p> <p><strong>URL where I extract the values ​​and save them in a variable:</strong> <a href="http...
[ { "answer_id": 74413830, "author": "Bergi", "author_id": 1048572, "author_profile": "https://Stackoverflow.com/users/1048572", "pm_score": 2, "selected": false, "text": "undefined x === true ? [\"Script\"] : []\n" }, { "answer_id": 74413837, "author": "LeoDog896", "author...
2022/11/12
[ "https://Stackoverflow.com/questions/74413822", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3585595/" ]
74,413,825
<p>When I try to open the localhost I see ( <strong>Not Found</strong></p> <p><strong>The requested URL was not found on this server.</strong> ) and after checking the Apache(error.log) on xampp I found this message ( <strong><a href="http://www.example.com:443:0" rel="nofollow noreferrer">www.example.com:443:0</a> ser...
[ { "answer_id": 74413830, "author": "Bergi", "author_id": 1048572, "author_profile": "https://Stackoverflow.com/users/1048572", "pm_score": 2, "selected": false, "text": "undefined x === true ? [\"Script\"] : []\n" }, { "answer_id": 74413837, "author": "LeoDog896", "author...
2022/11/12
[ "https://Stackoverflow.com/questions/74413825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19175796/" ]
74,413,835
<p>I have got an array of objects where different objects has time slot, if there are consecutive time slot then I want to merge it as one and keep other the same and later the final result has to be sort as well, for better understanding please look at the input and output I want.</p> <p>Input:</p> <pre><code> const t...
[ { "answer_id": 74467648, "author": "Calebe Navarro", "author_id": 16248086, "author_profile": "https://Stackoverflow.com/users/16248086", "pm_score": 1, "selected": false, "text": "const timeArray = [{\n timeValue: \"10:00am-11:00am\"\n },\n {\n timeValue: \"11:00am-12:00pm\"\n ...
2022/11/12
[ "https://Stackoverflow.com/questions/74413835", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18966561/" ]
74,413,840
<p>So I've currently made a progress so far that I can get how many times letters (a-e-i-o-u) have been written in the sentence which was taken as an input. Also if there's any &quot;the&quot; in the sentence we should count them too. and at the end we should get something like this: e.g: input: <code>Why little Dora h...
[ { "answer_id": 74467648, "author": "Calebe Navarro", "author_id": 16248086, "author_profile": "https://Stackoverflow.com/users/16248086", "pm_score": 1, "selected": false, "text": "const timeArray = [{\n timeValue: \"10:00am-11:00am\"\n },\n {\n timeValue: \"11:00am-12:00pm\"\n ...
2022/11/12
[ "https://Stackoverflow.com/questions/74413840", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20483700/" ]
74,413,851
<pre><code> </code></pre> <pre><code> &quot;current&quot;: { &quot;observation_time&quot;: &quot;03:38 PM&quot;, &quot;temperature&quot;: 18, &quot;weather_code&quot;: 113, &quot;weather_icons&quot;: [ &quot;https://assets.weatherstack.com/images/wsymb...
[ { "answer_id": 74467648, "author": "Calebe Navarro", "author_id": 16248086, "author_profile": "https://Stackoverflow.com/users/16248086", "pm_score": 1, "selected": false, "text": "const timeArray = [{\n timeValue: \"10:00am-11:00am\"\n },\n {\n timeValue: \"11:00am-12:00pm\"\n ...
2022/11/12
[ "https://Stackoverflow.com/questions/74413851", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19343185/" ]
74,413,865
<pre><code>def vowels(list): res = [] for word in list: vowel_n = 0 for x in word: if x in 'aeiou': vowel_n+=1 if vowel_n== 2: res.append(word) return res print(vowels(['tragedy', 'proof', 'dog'...
[ { "answer_id": 74413931, "author": "Harun Yilmaz", "author_id": 1331040, "author_profile": "https://Stackoverflow.com/users/1331040", "pm_score": 1, "selected": true, "text": "if vowel_n== 2: return def vowels(word_list):\n res = []\n for word in word_list:\n vowel_n = 0\n ...
2022/11/12
[ "https://Stackoverflow.com/questions/74413865", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20486342/" ]
74,413,867
<p>I would like to iterate over a html collection return by the getElementByClassName function. I would like to use the setAttribute method to add &quot;table-info&quot; to the class attribute of the elements within the collection.</p> <p>My problem is that not all elements are modified, to be specific, only the 1st el...
[ { "answer_id": 74414022, "author": "James", "author_id": 535480, "author_profile": "https://Stackoverflow.com/users/535480", "pm_score": 1, "selected": false, "text": "bar foo[0].classList.add(\"table-info\")" }, { "answer_id": 74414033, "author": "Moudi", "author_id": 16...
2022/11/12
[ "https://Stackoverflow.com/questions/74413867", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20357950/" ]
74,413,875
<p>I'm trying to fetch from a table on another sheet, the IDs that have 2 values in common.</p> <p>At tab <code>Base</code>&quot; I have <code>Name</code> and <code>Date</code>, and would like to have on <code>Lookup</code> the <code>ID</code>'s from tab <code>To be fetched</code> that match both <code>Name</code> and ...
[ { "answer_id": 74414181, "author": "doubleunary", "author_id": 13045193, "author_profile": "https://Stackoverflow.com/users/13045193", "pm_score": 1, "selected": false, "text": "filter() =iferror( join( \", \", filter('To be fetched'!D$2:D, 'To be fetched'!A$2:A = A2, 'To be fetched'!C$2...
2022/11/12
[ "https://Stackoverflow.com/questions/74413875", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11886740/" ]
74,413,924
<p>I have a data like this:</p> <pre class="lang-js prettyprint-override"><code>[ { id: &quot;1&quot;, parent: null }, { id: &quot;2&quot;, parent: null }, { id: &quot;3&quot;, parent: &quot;1&quot; }, { id: &quot;4&quot;, parent: &quot;3&quot; }, ] </code></pre> <p>And I...
[ { "answer_id": 74414300, "author": "Robby Cornelissen", "author_id": 3558960, "author_profile": "https://Stackoverflow.com/users/3558960", "pm_score": 2, "selected": true, "text": "const treeify = (nodes, depth) => {\n const index = Object.fromEntries(\n nodes.map(node => [node.id, {...
2022/11/12
[ "https://Stackoverflow.com/questions/74413924", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16225339/" ]
74,413,926
<p>I am looking for a way to make <code>split(A, B, L)</code> to exhaustively enumerate a B-elements list L such that sum of L's elements equals to A.</p> <h3>Example</h3> <pre><code>?- split(s(s(s(s(0)))), s(s(s(0))), L) % splitting 3 to 4 natural numbers L = [0, 0, 0, s(s(s(0)))]; L = [0, 0, s(0), s(s(0))]; L = [0, ...
[ { "answer_id": 74414300, "author": "Robby Cornelissen", "author_id": 3558960, "author_profile": "https://Stackoverflow.com/users/3558960", "pm_score": 2, "selected": true, "text": "const treeify = (nodes, depth) => {\n const index = Object.fromEntries(\n nodes.map(node => [node.id, {...
2022/11/12
[ "https://Stackoverflow.com/questions/74413926", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20484227/" ]
74,413,954
<p>I want to print out only the value without any brackets or commas or parenthesis. I am using MySQL with python with mysql.connector.</p> <p>When I run this code I get &quot;('esrvgf',)&quot;. But I want to just get &quot;esrvg&quot;.</p> <p><a href="https://i.stack.imgur.com/SsD8d.png" rel="nofollow noreferrer"><img...
[ { "answer_id": 74413967, "author": "Michael M.", "author_id": 13376511, "author_profile": "https://Stackoverflow.com/users/13376511", "pm_score": 2, "selected": true, "text": "cursor.fetchall() x[0] for x in myresult:\n print(x[0])\n * print() for x in myresult:\n print(*x)\n" }, {...
2022/11/12
[ "https://Stackoverflow.com/questions/74413954", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15179155/" ]
74,413,957
<p>I'm trying to find a regex to match the questions in a PDF textbook. The questions take the following structure:</p> <pre class="lang-none prettyprint-override"><code>1. What does cabotage refer to? a. Domestic air services within a state b. An international air carrier c. A flight above territorial waters d. Crop s...
[ { "answer_id": 74414107, "author": "Poul Bak", "author_id": 5741643, "author_profile": "https://Stackoverflow.com/users/5741643", "pm_score": 1, "selected": false, "text": "? : ^\\d+\\.[^:?]+[:?]\\r?\\n\n\nnew Regex(@\"^\\d+\\.[^:?]+[:?]\\r?\\n\", RegexOptions.Multiline);\n ^ \\d+\\. . [...
2022/11/12
[ "https://Stackoverflow.com/questions/74413957", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13491619/" ]
74,413,978
<p>I've the following data frame (df).</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>GovKeepSecure</th> <th>BankKeepSecure</th> <th>OtherKeepSecure</th> <th>Secure</th> </tr> </thead> <tbody> <tr> <td>Yes</td> <td>Yes</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td>No</td> <td>No</td> <td>Y...
[ { "answer_id": 74414107, "author": "Poul Bak", "author_id": 5741643, "author_profile": "https://Stackoverflow.com/users/5741643", "pm_score": 1, "selected": false, "text": "? : ^\\d+\\.[^:?]+[:?]\\r?\\n\n\nnew Regex(@\"^\\d+\\.[^:?]+[:?]\\r?\\n\", RegexOptions.Multiline);\n ^ \\d+\\. . [...
2022/11/12
[ "https://Stackoverflow.com/questions/74413978", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19973686/" ]
74,414,001
<p>Consider i have a list of lists like below</p> <pre><code>mylist = [(1, &quot;Laprovitola&quot;, &quot;Italy&quot;)] </code></pre> <p>Imagine i have 1000 sublists. I'd like to make a format of</p> <pre><code> mydict = [{ &quot;ID&quot;: &quot;1&quot;, &quot;Name&quot;: &quot;Laprovitola&quo...
[ { "answer_id": 74414107, "author": "Poul Bak", "author_id": 5741643, "author_profile": "https://Stackoverflow.com/users/5741643", "pm_score": 1, "selected": false, "text": "? : ^\\d+\\.[^:?]+[:?]\\r?\\n\n\nnew Regex(@\"^\\d+\\.[^:?]+[:?]\\r?\\n\", RegexOptions.Multiline);\n ^ \\d+\\. . [...
2022/11/12
[ "https://Stackoverflow.com/questions/74414001", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14762650/" ]
74,414,003
<p>I have a dataframe with two columns called df['job_title'], df['job_industry_category'], I have a dictonary_of_jobs where there's for every job_title appended a value that's a list of every job category where the job title appears, as follows:</p> <pre><code>dictonary_of_jobs = {'Tax Accountant' : ['Health', 'Finan...
[ { "answer_id": 74414107, "author": "Poul Bak", "author_id": 5741643, "author_profile": "https://Stackoverflow.com/users/5741643", "pm_score": 1, "selected": false, "text": "? : ^\\d+\\.[^:?]+[:?]\\r?\\n\n\nnew Regex(@\"^\\d+\\.[^:?]+[:?]\\r?\\n\", RegexOptions.Multiline);\n ^ \\d+\\. . [...
2022/11/12
[ "https://Stackoverflow.com/questions/74414003", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20486350/" ]
74,414,004
<p>I work with a database and I want to display it on the view. After debugging it seems that my model is empty. I created a similar project before where it worked fine but I don't find the problem in my code.</p> <p>How can I fix it?</p> <p>My class:</p> <pre><code>namespace Persons.Data { public class Person ...
[ { "answer_id": 74414107, "author": "Poul Bak", "author_id": 5741643, "author_profile": "https://Stackoverflow.com/users/5741643", "pm_score": 1, "selected": false, "text": "? : ^\\d+\\.[^:?]+[:?]\\r?\\n\n\nnew Regex(@\"^\\d+\\.[^:?]+[:?]\\r?\\n\", RegexOptions.Multiline);\n ^ \\d+\\. . [...
2022/11/12
[ "https://Stackoverflow.com/questions/74414004", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14344653/" ]
74,414,013
<p>I have dictionaries within a list like this:</p> <pre><code>[{'market': 'singapore', 'abbreviation': 'sg', 'indexId': 'STI', 'indexName': 'STRAITS TIMES INDEX'}, {'market': 'thailand', 'abbreviation': 'th', 'indexId': 'SET100', 'indexName': 'SET100 INDEX'}, {'market': 'turkey', 'abbreviation': 'tr', 'indexId': 'XUTE...
[ { "answer_id": 74414079, "author": "Amir reza Riahi", "author_id": 12016688, "author_profile": "https://Stackoverflow.com/users/12016688", "pm_score": 0, "selected": false, "text": "dict >>> [set(list(i.keys()) + list(i.values())) for i in x]\n[{'singapore', 'abbreviation', 'sg', 'STI', ...
2022/11/12
[ "https://Stackoverflow.com/questions/74414013", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17899270/" ]
74,414,045
<p>I'm reasonably new to Kotlin and android as a whole. I'm trying to figure out a way to take input through an EditText and add it to an array by pressing a button to accept the values but I can't seem to figure it out. I have been trialing many options and nothing seems to work for me. Below I have pasted my current ...
[ { "answer_id": 74414079, "author": "Amir reza Riahi", "author_id": 12016688, "author_profile": "https://Stackoverflow.com/users/12016688", "pm_score": 0, "selected": false, "text": "dict >>> [set(list(i.keys()) + list(i.values())) for i in x]\n[{'singapore', 'abbreviation', 'sg', 'STI', ...
2022/11/12
[ "https://Stackoverflow.com/questions/74414045", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19506039/" ]
74,414,057
<p>I will try the share data using local storage. but I want to that shared data visible all that web page users.</p> <p>Mainly I was try to some variable upload the one html page local storage and I try to get that value another web page and I want to make condition in use that variable. But problem is I will use the ...
[ { "answer_id": 74414199, "author": "Nusrat Jahan", "author_id": 20315115, "author_profile": "https://Stackoverflow.com/users/20315115", "pm_score": 0, "selected": false, "text": "https://test.com/hello?name=roger&age=20\n" } ]
2022/11/12
[ "https://Stackoverflow.com/questions/74414057", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20486204/" ]
74,414,067
<p>I'm learning next and react, I'm creating a project. I created two components &quot;form.js&quot; and &quot;feedback.js&quot;, in the main page &quot;index.js&quot; I import &quot;form.js&quot;, but I would like that when you press the button to send the data to the db, the component &quot;form .js &quot;is replaced...
[ { "answer_id": 74414199, "author": "Nusrat Jahan", "author_id": 20315115, "author_profile": "https://Stackoverflow.com/users/20315115", "pm_score": 0, "selected": false, "text": "https://test.com/hello?name=roger&age=20\n" } ]
2022/11/12
[ "https://Stackoverflow.com/questions/74414067", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16593935/" ]
74,414,096
<p>WHAT IS WRONG IN THIS CODE? MY PC SHOWS NO OUTPUT WHEN C and D ARE LARGER NUMBERS?</p> <pre><code>a=int(input(&quot;ent a no.&quot;)) b=int(input(&quot;ent a no.&quot;)) c=int(input(&quot;ent a no.&quot;)) d=int(input(&quot;ent a no.&quot;)) if a&gt;b: if a&gt;c: if a&gt;d: print(&quot; a is...
[ { "answer_id": 74414199, "author": "Nusrat Jahan", "author_id": 20315115, "author_profile": "https://Stackoverflow.com/users/20315115", "pm_score": 0, "selected": false, "text": "https://test.com/hello?name=roger&age=20\n" } ]
2022/11/12
[ "https://Stackoverflow.com/questions/74414096", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19867111/" ]
74,414,149
<p>I have an array of numbers should return true if 2 adjacent numbers divide by 10.</p> <p>For now, my code return always <code>false</code>.</p> <p><em>My attempt:</em></p> <pre><code>public static boolean divideByTen(int arr[], int num) { int i = num - 1; if (i &gt; 0) { divideByTen(arr, num - 1...
[ { "answer_id": 74414199, "author": "Nusrat Jahan", "author_id": 20315115, "author_profile": "https://Stackoverflow.com/users/20315115", "pm_score": 0, "selected": false, "text": "https://test.com/hello?name=roger&age=20\n" } ]
2022/11/12
[ "https://Stackoverflow.com/questions/74414149", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19213415/" ]
74,414,152
<p>So I tried to consume the API and I keep getting this error type '(dynamic) =&gt; Category' is not a subtype of type '(String, dynamic) =&gt; MapEntry&lt;dynamic, dynamic&gt;' of 'transform'</p> <p>This is my category model</p> <pre><code>import 'dart:convert'; List&lt;Category&gt; categoryFromJson(String str) ...
[ { "answer_id": 74414238, "author": "Mahendra Raj", "author_id": 7053203, "author_profile": "https://Stackoverflow.com/users/7053203", "pm_score": 1, "selected": false, "text": "List<Category> categoryFromJson(String str) => List<Category>.from(json.decode(str).map((x) => Category.fromJso...
2022/11/12
[ "https://Stackoverflow.com/questions/74414152", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11439544/" ]