qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,398,999
<p>I am using laravel and mysql ,i am joining two tables based on conditions it's working fine but my requirement was i have to fetch those details inside json ,can anyone give me some idea how to proceed with this scenario ?</p> <pre><code>Table1::leftJoin(//mycondition)-&gt;select('table1.id','table1.name','table2.*'...
[ { "answer_id": 74400008, "author": "Hady_Khann", "author_id": 14682350, "author_profile": "https://Stackoverflow.com/users/14682350", "pm_score": -1, "selected": false, "text": "case \"title\" or \"phone\" or \"address\" or \"e_mail\" or \"work_phone\":\n\ncase \"title\",\"phone\",\"addr...
2022/11/11
[ "https://Stackoverflow.com/questions/74398999", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20336151/" ]
74,399,030
<p>I am working on the Electron app and to build executables, I'm using <a href="https://www.electron.build/cli" rel="nofollow noreferrer">electron-builder</a></p> <p>I've the following environment:</p> <ul> <li>Electron-Builder Version: ^23.6.0,</li> <li>Node Version: v14.21.1</li> <li>Electron Version: ^10.1.5</li> <...
[ { "answer_id": 74400008, "author": "Hady_Khann", "author_id": 14682350, "author_profile": "https://Stackoverflow.com/users/14682350", "pm_score": -1, "selected": false, "text": "case \"title\" or \"phone\" or \"address\" or \"e_mail\" or \"work_phone\":\n\ncase \"title\",\"phone\",\"addr...
2022/11/11
[ "https://Stackoverflow.com/questions/74399030", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5875983/" ]
74,399,033
<p>I've a C++ program running in a docker container. I want to reboot container via my program but I cannot.</p> <p>Dockerfile:</p> <pre><code>FROM gcc WORKDIR /client COPY . . RUN apt-get update &amp;&amp; apt-get install qt5-qmake qtbase5-dev libmosquitto-dev -y RUN qmake mainapp.pro &amp;&amp; make RUN chmod +x d...
[ { "answer_id": 74400137, "author": "MSalters", "author_id": 15416, "author_profile": "https://Stackoverflow.com/users/15416", "pm_score": 2, "selected": false, "text": "system(\"reboot\") reboot docker restart=always std::exit(0)" }, { "answer_id": 74401467, "author": "Syrent...
2022/11/11
[ "https://Stackoverflow.com/questions/74399033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3944303/" ]
74,399,056
<p><strong>Want to do</strong></p> <p>I want to make checkbox with <a href="https://i.stack.imgur.com/eYXDO.png" rel="nofollow noreferrer">4 patterns</a>. To achieve this, I want to know,</p> <p>β‘  How to change the color of check.</p> <p>β‘‘ How to change the color of frame border of checkbox.</p> <p>I already tried this...
[ { "answer_id": 74401169, "author": "zaifrun", "author_id": 324975, "author_profile": "https://Stackoverflow.com/users/324975", "pm_score": 0, "selected": false, "text": " <CheckBox\n android:layout_width=\"60dp\"\n android:layout_height=\"60dp\"\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74399056", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20229243/" ]
74,399,059
<pre><code>public class Solution { public static String[] combineAllStrings(String[] s1, String[] s2) { int a=s1.length*s2.length; String[] str1= new String[a]; String str2=&quot;&quot;; for(int i=0;i&lt;s1.length;i++) { for(int j=0;j&lt;s2.length;j++) ...
[ { "answer_id": 74401169, "author": "zaifrun", "author_id": 324975, "author_profile": "https://Stackoverflow.com/users/324975", "pm_score": 0, "selected": false, "text": " <CheckBox\n android:layout_width=\"60dp\"\n android:layout_height=\"60dp\"\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74399059", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20475414/" ]
74,399,100
<p>base class: since my ts file handling multiple feature's i am splitting them.</p> <pre><code> constructor( ) { super(MatDialog); } </code></pre> <p>error: <code>Argument of type 'typeof MatDialog' is not assignable to parameter of type 'MatDialog'.</code></p> <p>super class:...
[ { "answer_id": 74399226, "author": "jitender", "author_id": 5621827, "author_profile": "https://Stackoverflow.com/users/5621827", "pm_score": 2, "selected": true, "text": "MatDialog constructor(public dialog: MatDialog) {\n super(dialog); //instance(i.e dialog) is passed here ...
2022/11/11
[ "https://Stackoverflow.com/questions/74399100", "https://Stackoverflow.com", "https://Stackoverflow.com/users/218349/" ]
74,399,126
<p>Javascript event Listeners are not working on updating the DOM.</p> <p>**HTML CODE: **</p> <pre><code> &lt;div class=&quot;task-list&quot;&gt; &lt;/div&gt; </code></pre> <p>**JAVASCRIPT CODE: **</p> <pre><code>function showList(num) { const taskBox = document.querySelector('.task-list'); ...
[ { "answer_id": 74399197, "author": "flyingfox", "author_id": 3176419, "author_profile": "https://Stackoverflow.com/users/3176419", "pm_score": 1, "selected": false, "text": "showList() const listItem = document.querySelectorAll('.list-item'); \nlistItem.forEach((item) => {\n item.addE...
2022/11/11
[ "https://Stackoverflow.com/questions/74399126", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20475440/" ]
74,399,149
<p>I'm trying to find a glob that I can use with <code>tar</code> to match all files and folders, including hidden files in the current directory. I don't want to include the parent directory. I need my tar not have anything leading before the files. I also can't use <code>shopt</code></p> <p>I'm using a format similar...
[ { "answer_id": 74399197, "author": "flyingfox", "author_id": 3176419, "author_profile": "https://Stackoverflow.com/users/3176419", "pm_score": 1, "selected": false, "text": "showList() const listItem = document.querySelectorAll('.list-item'); \nlistItem.forEach((item) => {\n item.addE...
2022/11/11
[ "https://Stackoverflow.com/questions/74399149", "https://Stackoverflow.com", "https://Stackoverflow.com/users/836450/" ]
74,399,187
<p>like consider the following python code,</p> <pre><code> n = 4 if n&gt;3 : n = 5 if n&gt;2 : n = 6 if n&gt;1 : n = 4 </code></pre> <p>How to achieve this in haskell??</p> <pre><code>let n = 4 main :: IO() main = do if n&gt;3 then let n = 5 if n&gt;2 then let n = 6 if n&gt;1 then let n = 4 </code><...
[ { "answer_id": 74399197, "author": "flyingfox", "author_id": 3176419, "author_profile": "https://Stackoverflow.com/users/3176419", "pm_score": 1, "selected": false, "text": "showList() const listItem = document.querySelectorAll('.list-item'); \nlistItem.forEach((item) => {\n item.addE...
2022/11/11
[ "https://Stackoverflow.com/questions/74399187", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20475453/" ]
74,399,196
<p>I have a list of elements <code>mylist = [1, 2, 3, 4, 5, 6, 7, 8]</code> and would like to iteratively:</p> <ol> <li>copy the list</li> <li>pop the first element of the copied list</li> <li>and append it to the end of the copied list</li> <li>repeat this for the next row, etc.</li> </ol> <p>Desired output:</p> <pre>...
[ { "answer_id": 74399197, "author": "flyingfox", "author_id": 3176419, "author_profile": "https://Stackoverflow.com/users/3176419", "pm_score": 1, "selected": false, "text": "showList() const listItem = document.querySelectorAll('.list-item'); \nlistItem.forEach((item) => {\n item.addE...
2022/11/11
[ "https://Stackoverflow.com/questions/74399196", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12708740/" ]
74,399,265
<p><b>Hi All</b><br> First data:<br></p> <pre><code> let NewDivForGame_0 = document.createElement('div'); let NewDivForGame_1 = document.createElement('div'); let NewDivForGame_2 = document.createElement('div'); </code></pre> <p>and so on...12<br> Next:<br></p> <pre><code> NewDivForGame_0.id = 'Key'; ...
[ { "answer_id": 74399492, "author": "mplungjan", "author_id": 295783, "author_profile": "https://Stackoverflow.com/users/295783", "pm_score": 1, "selected": false, "text": "window[\"NewDivForGame_\"+i].id\n document.querySelectorAll(\"[id^=NewDivForGame]\").forEach(div => {\n div.style.w...
2022/11/11
[ "https://Stackoverflow.com/questions/74399265", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20472492/" ]
74,399,275
<p>Trying to use findUnique on my model project returns this error -&gt;</p> <pre><code>Type '{ client_key: any; }' is not assignable to type 'ProjectWhereUniqueInput'. Object literal may only specify known properties, and 'client_key' does not exist in type 'ProjectWhereUniqueInput'.ts(2322) index.d.ts(4250, 5): The...
[ { "answer_id": 74399492, "author": "mplungjan", "author_id": 295783, "author_profile": "https://Stackoverflow.com/users/295783", "pm_score": 1, "selected": false, "text": "window[\"NewDivForGame_\"+i].id\n document.querySelectorAll(\"[id^=NewDivForGame]\").forEach(div => {\n div.style.w...
2022/11/11
[ "https://Stackoverflow.com/questions/74399275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10792278/" ]
74,399,276
<p>Whenever I refresh the page, I instantly logout and localstorage lose all it's data. How to fix that?</p> <pre><code> useEffect(() =&gt; { setAuthToken(window.localStorage.getItem('authToken')); setAuthTokenType(window.localStorage.getItem('authTokenType')) setUsername(window.localStorage.getItem('userna...
[ { "answer_id": 74399329, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 2, "selected": true, "text": "useEffect" }, { "answer_id": 74405087, "author": "nofamenoname", "author_id": 18948634, ...
2022/11/11
[ "https://Stackoverflow.com/questions/74399276", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18948634/" ]
74,399,288
<p>I am trying to center a div that has a few inner div with some classes. For example:</p> <pre><code>&lt;div class=&quot;one&quot;&gt; &lt;div class=&quot;two&quot;&gt; &lt;article class=&quot;three&quot;&gt; ... &lt;/article&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>Assume we don't kno...
[ { "answer_id": 74399329, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 2, "selected": true, "text": "useEffect" }, { "answer_id": 74405087, "author": "nofamenoname", "author_id": 18948634, ...
2022/11/11
[ "https://Stackoverflow.com/questions/74399288", "https://Stackoverflow.com", "https://Stackoverflow.com/users/755000/" ]
74,399,312
<p>How to select the number in a text?</p> <p>I want to convert the Latin number and English numbers in the text. For example, in the text &quot;……one telephone……&quot;. I want to change the English number &quot;one&quot; into &quot;1&quot;, but I do not want to change &quot;telephone&quot; into &quot;teleph1&quot;.</p...
[ { "answer_id": 74399329, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 2, "selected": true, "text": "useEffect" }, { "answer_id": 74405087, "author": "nofamenoname", "author_id": 18948634, ...
2022/11/11
[ "https://Stackoverflow.com/questions/74399312", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20423891/" ]
74,399,364
<p>I am new to Intel VTune. So, I have a general doubt.</p> <p>I am trying to profile an application with VTune and would like to know the placement of VTune core.</p> <p>How many cores does VTune take up while profiling an application?</p> <p>Does it depend on OS?</p>
[ { "answer_id": 74407963, "author": "Peter Cordes", "author_id": 224132, "author_profile": "https://Stackoverflow.com/users/224132", "pm_score": 3, "selected": true, "text": "perf record perf stat cycles" } ]
2022/11/11
[ "https://Stackoverflow.com/questions/74399364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19205740/" ]
74,399,372
<p>Here, I am passing Url as an prop to display uploaded files in edit Modal. All I want is, to not show any attachment if Url is empty. I can srill see empty attachments like shown in image :</p> <p><a href="https://i.stack.imgur.com/dkzu1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dkzu1.png" a...
[ { "answer_id": 74401921, "author": "Andy Refuerzo", "author_id": 1846040, "author_profile": "https://Stackoverflow.com/users/1846040", "pm_score": 1, "selected": false, "text": "<Radio value={\"True\"} checked={hasOutdoorSpace}>True</Radio>\n<Radio value={\"False\"} checked={!hasOutdoorS...
2022/11/11
[ "https://Stackoverflow.com/questions/74399372", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14326998/" ]
74,399,373
<p>I am trying to handle a C++ DLL which in turn connects to a C# DLL. My problem is when I want to send or receive arrays between C++ and C# DLLs. I have created the C# DLL and C++ DLL, so I can modified all the files. Within the C# DLL, I must necessarily have an array of <code>string</code> an another of <code>doubl...
[ { "answer_id": 74401921, "author": "Andy Refuerzo", "author_id": 1846040, "author_profile": "https://Stackoverflow.com/users/1846040", "pm_score": 1, "selected": false, "text": "<Radio value={\"True\"} checked={hasOutdoorSpace}>True</Radio>\n<Radio value={\"False\"} checked={!hasOutdoorS...
2022/11/11
[ "https://Stackoverflow.com/questions/74399373", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10958195/" ]
74,399,407
<p>I have 2 separate Docker containers: Node app and Nginx running locally on a Windows machine. Both containers are up and running but I am unable to access my Node app via reverse proxy that I have set up in Nginx:</p> <p>Node app container is ruuning using below command:</p> <pre><code>docker run -p 2020:2020 --nam...
[ { "answer_id": 74401921, "author": "Andy Refuerzo", "author_id": 1846040, "author_profile": "https://Stackoverflow.com/users/1846040", "pm_score": 1, "selected": false, "text": "<Radio value={\"True\"} checked={hasOutdoorSpace}>True</Radio>\n<Radio value={\"False\"} checked={!hasOutdoorS...
2022/11/11
[ "https://Stackoverflow.com/questions/74399407", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7780102/" ]
74,399,440
<p>The method 'toStringAsFixed' can't be unconditionally invoked because the receiver can be 'null'.</p> <pre><code>amount.toStringAsFixed(2) </code></pre> <p>while accessing amount double value with &quot;toStringAsFixed(2)&quot; the result have to be a a double with decimal rounded to 2 digit.</p>
[ { "answer_id": 74399478, "author": "xn69", "author_id": 20200999, "author_profile": "https://Stackoverflow.com/users/20200999", "pm_score": 0, "selected": false, "text": "? amount?.toStringAsFixed(2)\n" }, { "answer_id": 74399527, "author": "Ivo", "author_id": 1514861, ...
2022/11/11
[ "https://Stackoverflow.com/questions/74399440", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20200999/" ]
74,399,441
<p>How to get the result of all the select queries executed in oracle procedure as the output of the procedure?</p> <p>I am having n of tables in my database where the table name starts with &quot;test&quot;(for ex. test1, test2, etc.) and all these table have a primary key column, &quot;id&quot; where the value starts...
[ { "answer_id": 74399478, "author": "xn69", "author_id": 20200999, "author_profile": "https://Stackoverflow.com/users/20200999", "pm_score": 0, "selected": false, "text": "? amount?.toStringAsFixed(2)\n" }, { "answer_id": 74399527, "author": "Ivo", "author_id": 1514861, ...
2022/11/11
[ "https://Stackoverflow.com/questions/74399441", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19735078/" ]
74,399,490
<p>I migrated from React Router v5 to v6 following this <a href="https://reactrouter.com/en/main/start/tutorial" rel="nofollow noreferrer">tutorial</a>. I want to test it with <a href="https://testing-library.com/" rel="nofollow noreferrer">react-testing-library</a>, but my old unit tests (using the pattern in <a href=...
[ { "answer_id": 74399920, "author": "Drew Reese", "author_id": 8690857, "author_profile": "https://Stackoverflow.com/users/8690857", "pm_score": 3, "selected": true, "text": "react-router-dom@6.4 MemoryRouter const routesConfig = [\n {\n path: \"/\",\n element: (\n <>\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74399490", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3127828/" ]
74,399,510
<p>so im using <code>xml.etree.ElementTree</code> to read multiple .xmls in a Folder.</p> <p>i extract the desired Attributes using <code>x.attrib</code> and put those into a variable.</p> <pre><code>attributes = x.attrib </code></pre> <p>The stored information comes in multiple dictonaries:</p> <pre><code>{'Key1': 'Va...
[ { "answer_id": 74399572, "author": "svfat", "author_id": 2419628, "author_profile": "https://Stackoverflow.com/users/2419628", "pm_score": 2, "selected": false, "text": "import xml.etree.ElementTree as ET\nimport os\n\npath = \"directory/here\"\n\nfor filenames in os.listdir(path):\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74399510", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18016558/" ]
74,399,524
<pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt...
[ { "answer_id": 74399572, "author": "svfat", "author_id": 2419628, "author_profile": "https://Stackoverflow.com/users/2419628", "pm_score": 2, "selected": false, "text": "import xml.etree.ElementTree as ET\nimport os\n\npath = \"directory/here\"\n\nfor filenames in os.listdir(path):\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74399524", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15756097/" ]
74,399,538
<p>I need to determine the most frequent character of a list of strings by each index in Python.</p> <p>Example</p> <p>list1 = ['one', 'two', 'twin', 'who']</p> <p>the most frequent character between all the strings at index 0 is 't' the most frequent character between all the strings at index 1 is 'w' the most frequen...
[ { "answer_id": 74399710, "author": "Dmitriy Neledva", "author_id": 16786350, "author_profile": "https://Stackoverflow.com/users/16786350", "pm_score": 0, "selected": false, "text": "from collections import Counter\n\nlist1 = ['one', 'two', 'twin', 'who']\n\nidx =0 #t \nprint(Counter(lis...
2022/11/11
[ "https://Stackoverflow.com/questions/74399538", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20347645/" ]
74,399,574
<p>I try to send a string array with HttpClient post method to my backend.</p> <pre><code>getAnnouncementsByIds(ids: string[]): Observable&lt;Announcement[]&gt; { return this.http.post&lt;Announcement[]&gt;(`${environment.serverUrl}${this.urlGetAnnouncementsByIds}`, ids); } </code></pre> <p>Current error is: Http Sta...
[ { "answer_id": 74399652, "author": "Dmytro Demyanenko", "author_id": 20265473, "author_profile": "https://Stackoverflow.com/users/20265473", "pm_score": 0, "selected": false, "text": "getAnnouncementsByIds(ids: string[]): Observable<Announcement[]> {\n // ids -> { ids }\n return this.h...
2022/11/11
[ "https://Stackoverflow.com/questions/74399574", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20396278/" ]
74,399,637
<p>Please help me, the question is probably stupid, but I'm at a dead end. There is a <strong>table with the following data</strong>:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Num</th> <th>Start number</th> <th>Date start</th> </tr> </thead> <tbody> <tr> <td>111</td> <td>225</td> <td>...
[ { "answer_id": 74399840, "author": "TomΓ‘Ε‘ ZΓ‘luskΓ½", "author_id": 653539, "author_profile": "https://Stackoverflow.com/users/653539", "pm_score": 2, "selected": true, "text": "with t(Num, Start_number, Date_start) as (\nselect 111 , 225 , '11.11.22' from dual union all\nselect 111 , 223 ,...
2022/11/11
[ "https://Stackoverflow.com/questions/74399637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20465987/" ]
74,399,654
<p>I have a txt file with lines of text like this, and I want to swap the word in quotations with the last word that is separated from the sentence with a tab:</p> <h2>it looks like this:</h2> <pre><code>This &quot;is&quot; a person are She was not &quot;here&quot; right &quot;The&quot; pencil is not sharpened ...
[ { "answer_id": 74399860, "author": "Cobra", "author_id": 17580381, "author_profile": "https://Stackoverflow.com/users/17580381", "pm_score": 2, "selected": true, "text": "with open('foo.txt', 'r+') as txt:\n lines = txt.readlines()\n for k, line in enumerate(lines):\n words ...
2022/11/11
[ "https://Stackoverflow.com/questions/74399654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16305691/" ]
74,399,663
<p>hi guys i have a problem i have two entities product and category i want to add a category and multiple product in the same form like that in this capture</p> <p><a href="https://i.stack.imgur.com/myWPU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/myWPU.png" alt="enter image description here" /...
[ { "answer_id": 74399860, "author": "Cobra", "author_id": 17580381, "author_profile": "https://Stackoverflow.com/users/17580381", "pm_score": 2, "selected": true, "text": "with open('foo.txt', 'r+') as txt:\n lines = txt.readlines()\n for k, line in enumerate(lines):\n words ...
2022/11/11
[ "https://Stackoverflow.com/questions/74399663", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16292904/" ]
74,399,665
<p>Someday I just got curious about <code>node_module</code> in framework or UI libraries such as React. After searching some stuff, I found there should be no changes in <code>node_modules</code> unless the user really needs to, so here's my questions.</p> <ol> <li>Why there shouldn't be changes in <code>node_modules<...
[ { "answer_id": 74400672, "author": "iyhc", "author_id": 15300260, "author_profile": "https://Stackoverflow.com/users/15300260", "pm_score": 3, "selected": true, "text": "node_modules npm start npm install node_modules node_modules git commit node_modules npm update" } ]
2022/11/11
[ "https://Stackoverflow.com/questions/74399665", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16616376/" ]
74,399,686
<p>I have about 40 TextFormFields and I retrieve their values with TextEditingController. The values are converted into a Map&lt;String, String&gt; map via the following step:</p> <pre><code>// map that stores controllers Map&lt;String, TextEditingController&gt; storeControllers = controllers; // convert to map that s...
[ { "answer_id": 74400672, "author": "iyhc", "author_id": 15300260, "author_profile": "https://Stackoverflow.com/users/15300260", "pm_score": 3, "selected": true, "text": "node_modules npm start npm install node_modules node_modules git commit node_modules npm update" } ]
2022/11/11
[ "https://Stackoverflow.com/questions/74399686", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15442631/" ]
74,399,855
<p>I am trying to create a numeric array out of two columns of a <code>data.frame</code>. I have the columns &quot;first&quot; and &quot;last&quot; and I create the &quot;range&quot; one with <code>paste0(first,':',last)</code>.</p> <p>I get to the point where I have the string with which I would obtain the desired arr...
[ { "answer_id": 74399934, "author": "Quinten", "author_id": 14282714, "author_profile": "https://Stackoverflow.com/users/14282714", "pm_score": 2, "selected": false, "text": "eval parse eval(parse(text = paste0('c(',paste(data$range,collapse=','),')')))\n#> [1] 22 23 24 26 27 29 30 32 33...
2022/11/11
[ "https://Stackoverflow.com/questions/74399855", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19569763/" ]
74,399,882
<p>I am looking for the simplest answer to the given problem statement.</p> <pre><code>class X{ Address add; } class Address{ String str; String pincode; } </code></pre> <p>The request is formed with x object as :</p> <pre><code>X:{ add : {} //when none of the fields(str, pincode) present &amp; they do not have an...
[ { "answer_id": 74400085, "author": "Jinadee Yasiruka", "author_id": 5955497, "author_profile": "https://Stackoverflow.com/users/5955497", "pm_score": 0, "selected": false, "text": "class X{\n @JsonIgnore\n Address add;\n}\n" }, { "answer_id": 74400505, "author": "Joachim Sa...
2022/11/11
[ "https://Stackoverflow.com/questions/74399882", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7843970/" ]
74,399,935
<p>Why this would be a violation of the hooks rules.?</p> <p>In my case:</p> <pre><code>const getTopicId = useSelector((state) =&gt; state.topics.selectTopic.topicId) !== &quot;&quot; ? useSelector((state) =&gt; state.topics.selectTopic.topicId) : JSON.parse(localStorage.getItem(&quot;topic&quot;)).topicId; </code></pr...
[ { "answer_id": 74400085, "author": "Jinadee Yasiruka", "author_id": 5955497, "author_profile": "https://Stackoverflow.com/users/5955497", "pm_score": 0, "selected": false, "text": "class X{\n @JsonIgnore\n Address add;\n}\n" }, { "answer_id": 74400505, "author": "Joachim Sa...
2022/11/11
[ "https://Stackoverflow.com/questions/74399935", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12289678/" ]
74,399,945
<p>A task is given: Find how many times the text in the PATTERN is repeated in the TEXT. Repetitions may overlap with each other. We propose to cycle through all possible positions in TEXT in which the PATTERN can begin. When iterating, check each position in a loop, iterating over the characters in the PATTERN and the...
[ { "answer_id": 74400085, "author": "Jinadee Yasiruka", "author_id": 5955497, "author_profile": "https://Stackoverflow.com/users/5955497", "pm_score": 0, "selected": false, "text": "class X{\n @JsonIgnore\n Address add;\n}\n" }, { "answer_id": 74400505, "author": "Joachim Sa...
2022/11/11
[ "https://Stackoverflow.com/questions/74399945", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20475969/" ]
74,399,948
<p>This is the input data I am dealing with.</p> <pre><code>November (5th-26th) </code></pre> <p>What I want to do is get 2 seperate outputs from this data string. i.e. {November 5th} and {November 26th}</p> <p>I currently use this python script to remove the uneccesary characters in it</p> <pre><code>Name = input_data...
[ { "answer_id": 74399989, "author": "azro", "author_id": 7212686, "author_profile": "https://Stackoverflow.com/users/7212686", "pm_score": 0, "selected": false, "text": "import re\n\nvalue = \"November (5th-26th)\"\nmonth, date_from, date_to = re.match(r\"(\\w+)\\s+\\((.*)-(.*)\\)\", valu...
2022/11/11
[ "https://Stackoverflow.com/questions/74399948", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19912615/" ]
74,400,007
<p>I was trying to extract lists from a tuple with a condition that every X numbers in ascending order should be extracted in same list, using a list comprehension.</p> <p>Example:</p> <ul> <li>Input: <code>(4,2,2,3,5,6,0,0,2)</code></li> <li>Desired output: <code>[[4],[2,2,3,5,6],[0,0,2]]</code></li> </ul> <p>I tried ...
[ { "answer_id": 74400187, "author": "Rabinzel", "author_id": 15521392, "author_profile": "https://Stackoverflow.com/users/15521392", "pm_score": 0, "selected": false, "text": "np.split random.sample import random\nimport numpy as np\n\nlst = [4,2,2,3,5,6,0,0,2]\nnumber_of_splits = 4\nrand...
2022/11/11
[ "https://Stackoverflow.com/questions/74400007", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20139720/" ]
74,400,027
<p>I need to create a function</p> <pre><code>Map&lt;Category, Double&gt; averagePricePerCategory </code></pre> <p>that receives a <code>List&lt;Buildings&gt; buildings</code> as a parameter of objects that have:</p> <pre><code>private int price; private String neighborhood; private Category category; </code></pre> <p>...
[ { "answer_id": 74400287, "author": "azro", "author_id": 7212686, "author_profile": "https://Stackoverflow.com/users/7212686", "pm_score": 0, "selected": false, "text": "avg = sum/count sum count static Map<Category, Double> averagePricePerCategory(List<Building> buildings) {\n Map<Cat...
2022/11/11
[ "https://Stackoverflow.com/questions/74400027", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20476094/" ]
74,400,050
<p>I generate SQL statements dynamically from the input file and I want to have the output in JSON format grouped by a key which I provide in an alias in the select statement.</p> <p>The input file comes from another system and it looks like this:</p> <pre><code>'abc' AS [x.test1], 'cde' AS [y.test2], 'fgh' AS [y.test3...
[ { "answer_id": 74400346, "author": "Alex Poole", "author_id": 266304, "author_profile": "https://Stackoverflow.com/users/266304", "pm_score": 1, "selected": false, "text": "json_object() SELECT json_object(\n KEY 'x' IS json_object(\n KEY 'test1' IS 'abc'\n ),\n KEY 'y' IS json_obj...
2022/11/11
[ "https://Stackoverflow.com/questions/74400050", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5632034/" ]
74,400,057
<p>Conditions of the 6-digit code:</p> <ul> <li>None of the digits are 0</li> <li>Each digit of the combination is different</li> <li>The 6-digit number is divisible by each one of the digits</li> </ul> <p>Input:</p> <ul> <li>Two integers, L and H</li> <li>L is the limit on the smallest number on the range</li> <li>H i...
[ { "answer_id": 74400125, "author": "Lorenz Hetterich", "author_id": 20473701, "author_profile": "https://Stackoverflow.com/users/20473701", "pm_score": 0, "selected": false, "text": "boolean isOk(int number){\n String numberStr = Integer.toString(number);\n if(numberStr.contains(\"0\...
2022/11/11
[ "https://Stackoverflow.com/questions/74400057", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20476058/" ]
74,400,061
<p>I am trying to solve HackerRank SQL - <strong>The PADS</strong> question.</p> <p>The Question is:</p> <p>Generate the following two result sets:</p> <ol> <li><p>Query an <em>alphabetically ordered</em> list of all names in <strong>OCCUPATIONS</strong>, immediately followed by the first letter of each profession as a...
[ { "answer_id": 74400331, "author": "Boneist", "author_id": 4479309, "author_profile": "https://Stackoverflow.com/users/4479309", "pm_score": 2, "selected": true, "text": "SELECT info\nFROM (SELECT 1 qry, NAME || '(' || SUBSTR(OCCUPATION,1,1) || ')' info\n FROM OCCUPATIONS\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74400061", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15110512/" ]
74,400,081
<p>I have this code --&gt;</p> <pre><code>list=(&quot;kek&quot; &quot;lol&quot;) dict+=([&quot;memes&quot;]=$list) </code></pre> <p>with array, and the dictionary ( i guess ).<br /> now i want to get, for example, second index out of the list, but using dictionary.<br /> Something like <code>echo ${dict[1]}</code>, but...
[ { "answer_id": 74400118, "author": "BaronRandom", "author_id": 14706190, "author_profile": "https://Stackoverflow.com/users/14706190", "pm_score": 0, "selected": false, "text": "dict+=([\"memes\"]=\"kek\" \"lol\")" }, { "answer_id": 74400386, "author": "user1934428", "aut...
2022/11/11
[ "https://Stackoverflow.com/questions/74400081", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14706190/" ]
74,400,088
<p><strong>There are two main widgets:</strong></p> <p>I have this <code>OverflowingWidget</code> that is basically a <code>Column</code> - in reality this contains many widgets - However for this example, it has been given a height bigger than its parent widget.</p> <p>The Parent widget <code>ContainerWidget</code> is...
[ { "answer_id": 74400241, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 1, "selected": false, "text": "AnimatedSwitcher class ContainerWidget extends StatelessWidget {\n @override\n Widget build(BuildContext c...
2022/11/11
[ "https://Stackoverflow.com/questions/74400088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/947473/" ]
74,400,107
<p>I gave a project that's split in &quot;server&quot; and &quot;client&quot; repos. Most times I make a change involving both repos, but to commit and push them, I need to open multiple tabs on sourcetree, stage all, commit, message etc...</p> <p>Is there a way of tracking all repos in a folder and push the relevant c...
[ { "answer_id": 74400241, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 1, "selected": false, "text": "AnimatedSwitcher class ContainerWidget extends StatelessWidget {\n @override\n Widget build(BuildContext c...
2022/11/11
[ "https://Stackoverflow.com/questions/74400107", "https://Stackoverflow.com", "https://Stackoverflow.com/users/471573/" ]
74,400,122
<p>I'm trying to get the arguments of a function, where the function name is stored as a string <code>func_name</code>. Normally I would do this as <code>formals(func_name)</code> and this works fine. However, I have a particular case where <code>func_name</code> has the package name attached as well, e.g. <code>packag...
[ { "answer_id": 74400631, "author": "Robert Hacken", "author_id": 2094893, "author_profile": "https://Stackoverflow.com/users/2094893", "pm_score": 2, "selected": false, "text": "formals('gls', envir=getNamespace('nlme'))\n" }, { "answer_id": 74401994, "author": "G. Grothendie...
2022/11/11
[ "https://Stackoverflow.com/questions/74400122", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7744908/" ]
74,400,154
<p>My dilemma can be summarised with the following:</p> <ul> <li>I want to preserve the semantic structure of the first example</li> <li>I want to lay it out as per the second example</li> </ul> <p>The semantically correct HTML would be to have the <code>&lt;header&gt;</code> nested within the <code>&lt;article&gt;</co...
[ { "answer_id": 74400189, "author": "Fenton", "author_id": 75525, "author_profile": "https://Stackoverflow.com/users/75525", "pm_score": 0, "selected": false, "text": ".layout {\n display: grid; \n grid-template-columns: 4fr 8fr; \n grid-template-rows: auto 1fr; \n gap: var(--...
2022/11/11
[ "https://Stackoverflow.com/questions/74400154", "https://Stackoverflow.com", "https://Stackoverflow.com/users/75525/" ]
74,400,160
<p>I have a datetime columns on that basis I calculate <code>min_time</code> and <code>max_time</code>. so from current <code>min_time</code> of the row want to subtract from previous row <code>max_time</code> and want to save into another column. How to do that?</p> <pre><code>data = pd.DataFrame() data['datetime'] = ...
[ { "answer_id": 74400189, "author": "Fenton", "author_id": 75525, "author_profile": "https://Stackoverflow.com/users/75525", "pm_score": 0, "selected": false, "text": ".layout {\n display: grid; \n grid-template-columns: 4fr 8fr; \n grid-template-rows: auto 1fr; \n gap: var(--...
2022/11/11
[ "https://Stackoverflow.com/questions/74400160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15543946/" ]
74,400,169
<p>I'm building a white-label service and we need a logic where users should have a chance to authenticate with the same email through different domains (example1.com, example2.com).</p> <p>I'm using ruby-on-rails 6.1.7, ruby 2.7.0p0 and device 4.8.1</p> <p>I have tried to do that by using <a href="https://github.com/h...
[ { "answer_id": 74400189, "author": "Fenton", "author_id": 75525, "author_profile": "https://Stackoverflow.com/users/75525", "pm_score": 0, "selected": false, "text": ".layout {\n display: grid; \n grid-template-columns: 4fr 8fr; \n grid-template-rows: auto 1fr; \n gap: var(--...
2022/11/11
[ "https://Stackoverflow.com/questions/74400169", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8201176/" ]
74,400,170
<p>I have a React Application with backend on Nodejs and database MySQL, I am using a python api and I want to send data from my React input fields to python so that I can use that data as parameters to my python functions. For this, I am using axios to send data to a flask server, but I am getting this cyclic object e...
[ { "answer_id": 74400263, "author": "Suaro", "author_id": 8713074, "author_profile": "https://Stackoverflow.com/users/8713074", "pm_score": 1, "selected": false, "text": " axios.post(\"127.0.0.1:5000/trade_data\" , {\n trade_no : trade.value,\n index_name : index.value,\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74400170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12027725/" ]
74,400,188
<p>I'm training an nlp model using spacy. I have the preprocessing steps all written as a pipeline, and now I need to do the training. According to <a href="https://spacy.io/usage/training" rel="nofollow noreferrer">spacy's documentation</a> I need to run the following command:</p> <pre><code>python -m spacy train conf...
[ { "answer_id": 74400263, "author": "Suaro", "author_id": 8713074, "author_profile": "https://Stackoverflow.com/users/8713074", "pm_score": 1, "selected": false, "text": " axios.post(\"127.0.0.1:5000/trade_data\" , {\n trade_no : trade.value,\n index_name : index.value,\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74400188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4534466/" ]
74,400,207
<p>I have the following data frame:</p> <pre><code>dat &lt;- structure(list(ref_string = c(&quot;K&quot;, &quot;Y&quot;, &quot;Q&quot;, &quot;C&quot;, &quot;H&quot;, &quot;A&quot;, &quot;S&quot;, &quot;Y&quot;, &quot;L&quot;, &quot;Y&quot;), peptide_name = c(&quot;p47&quot;, &quot;p666&quot;, &quot;p506&quot;, &quot;p...
[ { "answer_id": 74400447, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 2, "selected": false, "text": "library(dplyr)\nlibrary(tidyr)\nlibrary(dtplyr)\n\ndat_dt <- lazy_dt(dat)\n\ndat_dt %>% \n group_by(peptide_name,...
2022/11/11
[ "https://Stackoverflow.com/questions/74400207", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8391698/" ]
74,400,210
<p>I'm working with some store procedures, one in particular, requires me to use a condition for a specific field of the select. My select is like this:</p> <pre><code> acc.AccountNum AS [Voucher_ID], pol.Number AS [Policy_Number], veh.Vehicle AS [VIN], </code></pre> <p>What I'm trying to do is change the co...
[ { "answer_id": 74400447, "author": "zephryl", "author_id": 17303805, "author_profile": "https://Stackoverflow.com/users/17303805", "pm_score": 2, "selected": false, "text": "library(dplyr)\nlibrary(tidyr)\nlibrary(dtplyr)\n\ndat_dt <- lazy_dt(dat)\n\ndat_dt %>% \n group_by(peptide_name,...
2022/11/11
[ "https://Stackoverflow.com/questions/74400210", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16982267/" ]
74,400,240
<p>I'm working on an access query and kinda hit a dead end. I want to delete all duplicate rows in a table that have the same value in the columns Brand, SerialNr, Seats and LastRepair that have the value &quot;2013&quot; in the year column.</p> <p>I'm trying to delete all rows that have duplicates in those columns and...
[ { "answer_id": 74400864, "author": "Erik A", "author_id": 7296893, "author_profile": "https://Stackoverflow.com/users/7296893", "pm_score": 2, "selected": true, "text": "EXISTS Count HAVING DELETE * FROM t AS t1\nWHERE EXISTS(\n SELECT 1 \n FROM t As t2 \n WHERE t1.Brand = t2.Brand...
2022/11/11
[ "https://Stackoverflow.com/questions/74400240", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6254732/" ]
74,400,245
<p>I get a datetime value from api in this format: <code>2022-11-11T08:52:01.000000Z</code> I need to convert it to readable form with javascript.</p> <p>I need this in any readable form, both time and date should be included</p>
[ { "answer_id": 74400317, "author": "Erik Dreifaldt", "author_id": 9540823, "author_profile": "https://Stackoverflow.com/users/9540823", "pm_score": 1, "selected": false, "text": "warning: pseudo code import {format} from 'date-fns'\n\nconst date = 2022-11-11T08:52:01.000000Z\nconst forma...
2022/11/11
[ "https://Stackoverflow.com/questions/74400245", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9663776/" ]
74,400,271
<p>I need help to rewrite some arrow functions to regular functions but right now my brain is totally stucked, I have some example code here from a rock paper scissors game I got from kyle, how would it look if I was to ditch the arrow function please somebody?</p> <pre><code>selectionButtons.forEach(selectionButton =&...
[ { "answer_id": 74400317, "author": "Erik Dreifaldt", "author_id": 9540823, "author_profile": "https://Stackoverflow.com/users/9540823", "pm_score": 1, "selected": false, "text": "warning: pseudo code import {format} from 'date-fns'\n\nconst date = 2022-11-11T08:52:01.000000Z\nconst forma...
2022/11/11
[ "https://Stackoverflow.com/questions/74400271", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19346065/" ]
74,400,275
<p>Im using Angular Material to build a table, which is supposed to have a menu and menu items for each row in the table. The <code>.html</code> file is</p> <pre><code>&lt;!-- action column --&gt; &lt;ng-container *ngIf=&quot;rowActionIcon?.length&quot; [matColumnDef]=&quot;rowActionIcon&quot;&gt; &lt;th mat-header-c...
[ { "answer_id": 74400428, "author": "Carles Ramos", "author_id": 13309394, "author_profile": "https://Stackoverflow.com/users/13309394", "pm_score": 2, "selected": true, "text": "<ng-container *ngIf=\"rowActionIcon?.length\" [matColumnDef]=\"rowActionIcon\">\n <th mat-header-cell *matHea...
2022/11/11
[ "https://Stackoverflow.com/questions/74400275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1230911/" ]
74,400,277
<p>Can I ask for help on something that has me really puzzled? I have written a small function to demonstrate:</p> <pre class="lang-cs prettyprint-override"><code>void Test() { CheckBox checkBox1 = new CheckBox(); string temp = checkBox1.Name; } </code></pre> <p><code>temp</code> is an empty string after this h...
[ { "answer_id": 74414369, "author": "IVSoftware", "author_id": 5438626, "author_profile": "https://Stackoverflow.com/users/5438626", "pm_score": 0, "selected": false, "text": "Name CheckBox nameof checkBox1 Name temp protected override void OnLoad(EventArgs e)\n{\n base.OnLoad(e);\n\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74400277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14109587/" ]
74,400,284
<p>I have created a web app using razor pages in ASP.NET Core 6 and I am reaching a problem when it comes to adding a new razor pages link into the _Layout.cshtml. Every time I try to test the website and press the link to new page I added, it does not send me to that page.</p> <p>I have looked into the razor pages pro...
[ { "answer_id": 74414369, "author": "IVSoftware", "author_id": 5438626, "author_profile": "https://Stackoverflow.com/users/5438626", "pm_score": 0, "selected": false, "text": "Name CheckBox nameof checkBox1 Name temp protected override void OnLoad(EventArgs e)\n{\n base.OnLoad(e);\n\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74400284", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20476162/" ]
74,400,295
<p>Am doing a task where am supposed to used getline function read input from a user from the terminal. Here is my code:</p> <pre><code>int main(int ac, char **av) { printf(&quot;Write something: \n&quot;); char **buf = NULL; size_t buf_size = 0; ssize_t bytes_read = getline(buf, &amp;b...
[ { "answer_id": 74400387, "author": "Lundin", "author_id": 584518, "author_profile": "https://Stackoverflow.com/users/584518", "pm_score": 0, "selected": false, "text": "char *buf getline buf char **buf = NULL; getline getline char **name = \"John Doe\";" }, { "answer_id": 7440044...
2022/11/11
[ "https://Stackoverflow.com/questions/74400295", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13871283/" ]
74,400,296
<p>I installed Python on a new computer and unfortunately I get an error message from a code that I had been using for quite some time. It is about the 'match' statement. Here is the code:</p> <pre><code>import os def save(df, filepath): dir, filename = os.path.split(filepath) os.makedirs(dir, exist_ok=True) ...
[ { "answer_id": 74400348, "author": "noxdafox", "author_id": 1794497, "author_profile": "https://Stackoverflow.com/users/1794497", "pm_score": 0, "selected": false, "text": "MATCH = {\n '.pkl': df.to_pickle\n '.csv': df.to_csv\n}\n\n_, ext = os.path.splitext(filename)\n\ntry:\n M...
2022/11/11
[ "https://Stackoverflow.com/questions/74400296", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7133942/" ]
74,400,327
<p>I want to iterate over a list of lists of dictionaries:</p> <pre><code>data = [ {'name': 'sravan'}, {'name': 'bobby'}, {'name': 'ojsawi', 'number': '123'}, {'name': 'rohith', 'number': '456'}, {'name': 'gnanesh', 'number': '123'} ] </code></pre> <p>Furthermore I want to check each entry if there ...
[ { "answer_id": 74400356, "author": "Celius Stingher", "author_id": 11897007, "author_profile": "https://Stackoverflow.com/users/11897007", "pm_score": 3, "selected": true, "text": "new_list = [x.get('name') if x.get('number') == '123' else 0 for x in data]\n [0, 0, 'ojsawi', 0, 'gnanesh'...
2022/11/11
[ "https://Stackoverflow.com/questions/74400327", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20476296/" ]
74,400,339
<p>I am currently learning Kotlin and am working through the <a href="https://play.kotlinlang.org/byExample/" rel="nofollow noreferrer">By Example Guide</a>. In the chapter Functional/Higher-Order Functions it explained how functions themselves can return functions with this example:</p> <pre><code>fun operation(): (In...
[ { "answer_id": 74400647, "author": "Nikolai Shevchenko", "author_id": 2224047, "author_profile": "https://Stackoverflow.com/users/2224047", "pm_score": 1, "selected": false, "text": "is Function<*> func fun main() {\n val func = operation()\n when(func) {\n is Function2<*,*...
2022/11/11
[ "https://Stackoverflow.com/questions/74400339", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14529789/" ]
74,400,369
<p>So I'm currently trying to get a certain attribute just by the content of the HTML element. I know how to get an attribute by another attribute in the same HTML section. But this time I need the attribute by the content of the section.</p> <p>&quot;https://www.skatedeluxe.ch/de/adidas-skateboarding-busenitz-vulc-ii-...
[ { "answer_id": 74400458, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 2, "selected": false, "text": "import requests\nfrom bs4 import BeautifulSoup\n\n\nurl = \"https://www.skatedeluxe.ch/de/adidas-skateboardi...
2022/11/11
[ "https://Stackoverflow.com/questions/74400369", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20133611/" ]
74,400,393
<p>This is my issue when I try to Login on Emulator! <a href="https://i.stack.imgur.com/3Fv7l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3Fv7l.png" alt="enter image description here" /></a> <a href="https://i.stack.imgur.com/GAuS4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.co...
[ { "answer_id": 74400458, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 2, "selected": false, "text": "import requests\nfrom bs4 import BeautifulSoup\n\n\nurl = \"https://www.skatedeluxe.ch/de/adidas-skateboardi...
2022/11/11
[ "https://Stackoverflow.com/questions/74400393", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20476080/" ]
74,400,434
<p>I am trying to validate the json for required fields using python. I am doing it manually like iterating through the json reading it. Howerver i am looking for more of library / generic solution to handle all scenarios.</p> <p>For example I want to check in a list, if a particular attribute is available in all the l...
[ { "answer_id": 74400458, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 2, "selected": false, "text": "import requests\nfrom bs4 import BeautifulSoup\n\n\nurl = \"https://www.skatedeluxe.ch/de/adidas-skateboardi...
2022/11/11
[ "https://Stackoverflow.com/questions/74400434", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16863914/" ]
74,400,456
<p>Consider the following code:</p> <pre class="lang-cs prettyprint-override"><code>public record Foo { public required string A { get; init; } public required string B { get; init; } } public record Bar : Foo { public Bar() { A = &quot;TEST&quot;; } } var bar = new Bar { B = &quot;ANOTHER TEST&q...
[ { "answer_id": 74400567, "author": "Ilya Chernomordik", "author_id": 1671558, "author_profile": "https://Stackoverflow.com/users/1671558", "pm_score": 1, "selected": false, "text": "public record Foo(string A)\n{\n public required string B { get; init; }\n}\n\npublic record Bar : Foo(\"...
2022/11/11
[ "https://Stackoverflow.com/questions/74400456", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1671558/" ]
74,400,463
<p>I was trying to map a pattern-restricted simpleType</p> <pre><code>&lt;xs:simpleType name=&quot;exampleType&quot;&gt; &lt;xs:restriction base=&quot;xs:string&quot;&gt; &lt;xs:pattern value=&quot;\d{3,6}&quot;/&gt; &lt;/xs:restriction&gt; &lt;/xs:simpleType&gt; </code></pre> <p>to an enum class (with ...
[ { "answer_id": 74400567, "author": "Ilya Chernomordik", "author_id": 1671558, "author_profile": "https://Stackoverflow.com/users/1671558", "pm_score": 1, "selected": false, "text": "public record Foo(string A)\n{\n public required string B { get; init; }\n}\n\npublic record Bar : Foo(\"...
2022/11/11
[ "https://Stackoverflow.com/questions/74400463", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1124509/" ]
74,400,479
<p>Hello guys I'm trying to create a function that returns a list out of a string ((((Without the space)))) I'm using the replace function to remove the space however I'm still getting a space</p> <pre class="lang-py prettyprint-override"><code>def str2list(argstr): retlist = [] for c in argstr: c=c.rep...
[ { "answer_id": 74400506, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 1, "selected": false, "text": "inp = \"abc efg\"\nletters = re.findall(r'[a-z]', inp, flags=re.I)\nprint(letters) # ['a', 'b', 'c', 'e', '...
2022/11/11
[ "https://Stackoverflow.com/questions/74400479", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20157026/" ]
74,400,484
<p>I'm struggling every day with 1035 tables in a database and every table has many columns. Some columns are quite long although it was not necessary to be so long.</p> <p>For example in the table <code>Messages</code> which contains the emails, the columns <code>MailTo</code> and <code>MailFrom</code> are <code>nvarc...
[ { "answer_id": 74400618, "author": "Venkataraman R", "author_id": 634935, "author_profile": "https://Stackoverflow.com/users/634935", "pm_score": 1, "selected": false, "text": "Tools > Options SELECT * FROM Customer\n Reset to Default Tools > Options Rest to Default" }, { "answer...
2022/11/11
[ "https://Stackoverflow.com/questions/74400484", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20288923/" ]
74,400,512
<p>I am learning to use SQL in R. I want to select cities that are more northern than Berlin from a dataset.</p> <p>For this, I have tried:</p> <pre><code>sql4 = &quot;SELECT Name, Latitude FROM city HAVING Latitude &gt; Latitude(Berlin)&quot; result4 = dbSendQuery(con, sql4) df4 = dbFetch(result4) head(df4) </code>...
[ { "answer_id": 74400579, "author": "CIE Pro Suhas", "author_id": 16195593, "author_profile": "https://Stackoverflow.com/users/16195593", "pm_score": 0, "selected": false, "text": "SELECT Name, Latitude FROM city WHERE Latitude = (SELECT Latitude from city WHERE Name = \"Berlin\")\n" },...
2022/11/11
[ "https://Stackoverflow.com/questions/74400512", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4636470/" ]
74,400,514
<p>Given a class Object1</p> <pre><code>class Object1 { private Object2 object2; private List&lt;Object3&gt; object3s; } </code></pre> <p>and a <code>List&lt;Object1&gt;</code></p> <p>cuurent implementation</p> <pre><code>Map&lt;Object3, Object2&gt; accountMap = new HashMap&lt;&gt;(); for (Object1 dto : accounts) { ...
[ { "answer_id": 74400716, "author": "khelwood", "author_id": 3890632, "author_profile": "https://Stackoverflow.com/users/3890632", "pm_score": 3, "selected": false, "text": "Map<Object3, Object2> map = list.stream()\n .flatMap(o1 -> o1.object3s.stream().map(o3 -> Map.entry(o3, o1.obje...
2022/11/11
[ "https://Stackoverflow.com/questions/74400514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3103115/" ]
74,400,545
<p>I am working on a app where user can logged into a app and can enter a text in a textformfileld it and can also apply different fontstyle and font family and generate a image from it.</p> <p>is it possible ?</p> <p>Any help would be highly appreciated</p>
[ { "answer_id": 74404859, "author": "BarisY", "author_id": 14144819, "author_profile": "https://Stackoverflow.com/users/14144819", "pm_score": 2, "selected": true, "text": "class MyHomePage extends StatefulWidget {\n const MyHomePage({super.key, required this.title});\n\n final String t...
2022/11/11
[ "https://Stackoverflow.com/questions/74400545", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6708100/" ]
74,400,584
<p>So I have these selectors:</p> <pre><code>cy.get(':nth-child(1) &gt; abc-51 &gt; xyz') cy.get(':nth-child(2) &gt; abc-51 &gt; xyz') cy.get(':nth-child(3) &gt; abc-51 &gt; xyz') </code></pre> <p>How do I only use <code>cy.get(':nth-child(1)')</code> or <code>cy.get(':nth-child(2)')</code> instead of whole thing becau...
[ { "answer_id": 74404859, "author": "BarisY", "author_id": 14144819, "author_profile": "https://Stackoverflow.com/users/14144819", "pm_score": 2, "selected": true, "text": "class MyHomePage extends StatefulWidget {\n const MyHomePage({super.key, required this.title});\n\n final String t...
2022/11/11
[ "https://Stackoverflow.com/questions/74400584", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17993800/" ]
74,400,637
<p>Consider a table like this -</p> <pre><code>data = {'Name': {0: 'Alex', 1: 'Smith', 2: 'Federico', 3: 'George', 4: 'Ram', 5: 'Helen', 6: 'Mike', 7: 'Mark', 8: 'Alex', 9: 'Smith', 10: 'Federico', 11: 'George', 12: 'Ram', 13: 'Helen', ...
[ { "answer_id": 74404859, "author": "BarisY", "author_id": 14144819, "author_profile": "https://Stackoverflow.com/users/14144819", "pm_score": 2, "selected": true, "text": "class MyHomePage extends StatefulWidget {\n const MyHomePage({super.key, required this.title});\n\n final String t...
2022/11/11
[ "https://Stackoverflow.com/questions/74400637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9606744/" ]
74,400,653
<p>I'm new to python and django What is the correct syntax to render number and text? I want to get the name and add 2 numbers from addition.html and print it back to results.html</p> <p>I tried this code</p> <pre><code>def add(request): my_context = { 'fname' : request.GET['first_name'], 'val1' : in...
[ { "answer_id": 74404859, "author": "BarisY", "author_id": 14144819, "author_profile": "https://Stackoverflow.com/users/14144819", "pm_score": 2, "selected": true, "text": "class MyHomePage extends StatefulWidget {\n const MyHomePage({super.key, required this.title});\n\n final String t...
2022/11/11
[ "https://Stackoverflow.com/questions/74400653", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20476548/" ]
74,400,667
<p>Background: My application receives asynchronous sensor data from a variety of IoT devices, displays it in several windows, and manages a physical system based on the data. Data are not archived. I am currently managing the data a C# dataset which contains several different datatables, each with just one row. The...
[ { "answer_id": 74404859, "author": "BarisY", "author_id": 14144819, "author_profile": "https://Stackoverflow.com/users/14144819", "pm_score": 2, "selected": true, "text": "class MyHomePage extends StatefulWidget {\n const MyHomePage({super.key, required this.title});\n\n final String t...
2022/11/11
[ "https://Stackoverflow.com/questions/74400667", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19958209/" ]
74,400,674
<p>This is my current code (see image) I need my OwnProfile function to wait for my GetUsername function to finish reading data from firebase before continuing. I tried async await, but it is not working as shown in the terminal where line 52 and 54 are used before GetUsername has gotten the data.</p> <p>Anyone got any...
[ { "answer_id": 74404859, "author": "BarisY", "author_id": 14144819, "author_profile": "https://Stackoverflow.com/users/14144819", "pm_score": 2, "selected": true, "text": "class MyHomePage extends StatefulWidget {\n const MyHomePage({super.key, required this.title});\n\n final String t...
2022/11/11
[ "https://Stackoverflow.com/questions/74400674", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19323592/" ]
74,400,713
<p>I'm getting Array of objects inside useEffect: <a href="https://i.stack.imgur.com/fgjZ1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fgjZ1.png" alt="enter image description here" /></a></p> <p>Then I'm trying to map it and render: <a href="https://i.stack.imgur.com/dPR5e.png" rel="nofollow nore...
[ { "answer_id": 74400777, "author": "Vedran", "author_id": 14662161, "author_profile": "https://Stackoverflow.com/users/14662161", "pm_score": 0, "selected": false, "text": "if(!token) { //you're checking if token is already set, so you don't get into a loop\n//your code here\n}, [token] ...
2022/11/11
[ "https://Stackoverflow.com/questions/74400713", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3498235/" ]
74,400,724
<p>i trying run multipe processing with ThreadPool and i have error <code>maximum recursion depth exceeded</code></p> <p>this is my code:</p> <pre><code>def extract_all_social_link(bio_url): data = extract_all_social_link(bio_url) return data def run_extract_all_social_link(df, max_count, displays_steps = 1000)...
[ { "answer_id": 74401848, "author": "0x0fba", "author_id": 20339407, "author_profile": "https://Stackoverflow.com/users/20339407", "pm_score": 1, "selected": false, "text": "extract_all_social_link() bio_url def extract_all_social_link(bio_url):\n data = extract_all_social_link(bio_url...
2022/11/11
[ "https://Stackoverflow.com/questions/74400724", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15336233/" ]
74,400,784
<p>I have a lambda proxy function (A) working along with API Gateway that I use to store some data in a remote database. I have another lambda function (B) that processes some data and I wish to reuse A to save data in the database.</p> <p>I am therefore invoking A from B with a payload. I am able to invoke from B only...
[ { "answer_id": 74401848, "author": "0x0fba", "author_id": 20339407, "author_profile": "https://Stackoverflow.com/users/20339407", "pm_score": 1, "selected": false, "text": "extract_all_social_link() bio_url def extract_all_social_link(bio_url):\n data = extract_all_social_link(bio_url...
2022/11/11
[ "https://Stackoverflow.com/questions/74400784", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2950492/" ]
74,400,803
<p>I have deploy my kubernetes cluster in AWS EKS. I have setup prometheus and grafana to monitor the EKS cluster. How to find Max no of running pods throughout the day ??</p>
[ { "answer_id": 74401848, "author": "0x0fba", "author_id": 20339407, "author_profile": "https://Stackoverflow.com/users/20339407", "pm_score": 1, "selected": false, "text": "extract_all_social_link() bio_url def extract_all_social_link(bio_url):\n data = extract_all_social_link(bio_url...
2022/11/11
[ "https://Stackoverflow.com/questions/74400803", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12666897/" ]
74,400,829
<p>let's say i have a function like this:</p> <pre><code>def foo (a = &quot;a&quot;, b=&quot;b&quot;, c=&quot;c&quot;, **kwargs): #do some work </code></pre> <p>I want to pass a <code>dict</code> like this to the function as the only argument.</p> <pre><code>arg_dict = { &quot;a&quot;: &quot;some string&quot; ...
[ { "answer_id": 74401848, "author": "0x0fba", "author_id": 20339407, "author_profile": "https://Stackoverflow.com/users/20339407", "pm_score": 1, "selected": false, "text": "extract_all_social_link() bio_url def extract_all_social_link(bio_url):\n data = extract_all_social_link(bio_url...
2022/11/11
[ "https://Stackoverflow.com/questions/74400829", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14721109/" ]
74,400,852
<p>I'm learning backend development using NodeJS with <strong>Hapi</strong> framework, and I got an error after starting the node with <code>npm run start</code>.</p> <p><code>server.js</code></p> <pre class="lang-js prettyprint-override"><code>const Hapi = require('@hapi/hapi'); const init = async() =&gt; { const ...
[ { "answer_id": 74412781, "author": "Build For Dev", "author_id": 20477335, "author_profile": "https://Stackoverflow.com/users/20477335", "pm_score": -1, "selected": false, "text": "const init = async () => {\n const server = Hapi.server({\n port: 3000,\n host: 'localhost...
2022/11/11
[ "https://Stackoverflow.com/questions/74400852", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14232964/" ]
74,400,865
<p>I have a simple alert that I would like the user to be able to dismiss. Just looking for the easiest way to do this in Swift 5 / iOS 15</p> <p><code>present(alert, animated: true, completion: nil)</code></p> <p>Edit: Figured out the answer. Hope this will help out someone in the future who has the same question as m...
[ { "answer_id": 74412781, "author": "Build For Dev", "author_id": 20477335, "author_profile": "https://Stackoverflow.com/users/20477335", "pm_score": -1, "selected": false, "text": "const init = async () => {\n const server = Hapi.server({\n port: 3000,\n host: 'localhost...
2022/11/11
[ "https://Stackoverflow.com/questions/74400865", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10241862/" ]
74,400,879
<p>I am working with the library gapminder as follows:</p> <pre><code>library(gapminder) library(dplyr) db1 &lt;-gapminder db1Asia&lt;-db1 %&gt;% filter(year==1962 | year==1967) %&gt;% filter(country==&quot;China&quot; | country==&quot;India&quot;) ggplot(data=db1Asia %&gt;% filter(year==1962), aes(x=country, y=pop, co...
[ { "answer_id": 74412781, "author": "Build For Dev", "author_id": 20477335, "author_profile": "https://Stackoverflow.com/users/20477335", "pm_score": -1, "selected": false, "text": "const init = async () => {\n const server = Hapi.server({\n port: 3000,\n host: 'localhost...
2022/11/11
[ "https://Stackoverflow.com/questions/74400879", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9974205/" ]
74,400,928
<p>Requirement: Table data:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Col A</th> <th>Col B</th> </tr> </thead> <tbody> <tr> <td>N</td> <td>123</td> </tr> <tr> <td>N</td> <td>456</td> </tr> <tr> <td>Y</td> <td>456</td> </tr> </tbody> </table> </div> <p>Required data:</p> <div class="s-...
[ { "answer_id": 74412781, "author": "Build For Dev", "author_id": 20477335, "author_profile": "https://Stackoverflow.com/users/20477335", "pm_score": -1, "selected": false, "text": "const init = async () => {\n const server = Hapi.server({\n port: 3000,\n host: 'localhost...
2022/11/11
[ "https://Stackoverflow.com/questions/74400928", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20476629/" ]
74,400,948
<p>Oracle - How to select and re-alias column by column-position, not column-name? Exp:</p> <pre><code>SELECT $1 AS NEW_COL_1, $2 AS NEW_COL_2 FROM (SELECT 'x' AS COL_1, 'y' AS COL_2 FROM DUAL) </code></pre> <p>$1, $2 mean col_1, col_2</p> <p>I have tried google but no solution yet!</p>
[ { "answer_id": 74411359, "author": "Ngoc Trung", "author_id": 6756303, "author_profile": "https://Stackoverflow.com/users/6756303", "pm_score": 0, "selected": false, "text": "SELECT * FROM (\n SELECT NULL NEW_COL1, NULL NEW_COL2\n UNION ALL \n SELECT 'x' AS COL_1, 'y' AS COL_2 FROM DU...
2022/11/11
[ "https://Stackoverflow.com/questions/74400948", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6756303/" ]
74,400,978
<p>I'm developing a timeout functionality for an embedded device where the system time is updated via gps. This means I can't just compare two timestamps to get the elapsed time:</p> <pre class="lang-py prettyprint-override"><code>import time t1 = time.time() # system time change, e.g. from 1970-01-01 to 2022-11-10 t2...
[ { "answer_id": 74460202, "author": "watch-this", "author_id": 20280771, "author_profile": "https://Stackoverflow.com/users/20280771", "pm_score": 2, "selected": false, "text": ">>> wrong = time.time()\n>>> right = time.perf_counter()\n>>> # set clock back to correct time\n>>> time.time()...
2022/11/11
[ "https://Stackoverflow.com/questions/74400978", "https://Stackoverflow.com", "https://Stackoverflow.com/users/300783/" ]
74,400,989
<p>I want to get the last record from the duplicate records and want the non-duplicate records also.</p> <p>As depicted in the below image I want to get row number 4, 5, 7 and 9 in my output.</p> <p><a href="https://i.stack.imgur.com/XF6Af.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XF6Af.png" al...
[ { "answer_id": 74405205, "author": "BishNaboB", "author_id": 1872455, "author_profile": "https://Stackoverflow.com/users/1872455", "pm_score": 0, "selected": false, "text": "dense_rank() with [drd] as\n(\n select\n concat([Bid],'_',[cid]) as [Key],\n BCode,\n dens...
2022/11/11
[ "https://Stackoverflow.com/questions/74400989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19323657/" ]
74,400,996
<p>I want to sweep each table in a libname and calculate a hash over each row. For that purpose, i have already a table with libname, memname, concatenated columns with ',' and number of observations</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: left;">libname</th> <th ...
[ { "answer_id": 74405205, "author": "BishNaboB", "author_id": 1872455, "author_profile": "https://Stackoverflow.com/users/1872455", "pm_score": 0, "selected": false, "text": "dense_rank() with [drd] as\n(\n select\n concat([Bid],'_',[cid]) as [Key],\n BCode,\n dens...
2022/11/11
[ "https://Stackoverflow.com/questions/74400996", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20294371/" ]
74,401,022
<p>I have a very simple <code>ContentView</code>, The <code>Text</code>'s width set to <code>68</code></p> <pre><code>struct ContentView: View { var body: some View { VStack { Text(&quot;Hello, world!&quot;) .frame(width: 68) } .padding() } } </code></pre> <p>...
[ { "answer_id": 74405205, "author": "BishNaboB", "author_id": 1872455, "author_profile": "https://Stackoverflow.com/users/1872455", "pm_score": 0, "selected": false, "text": "dense_rank() with [drd] as\n(\n select\n concat([Bid],'_',[cid]) as [Key],\n BCode,\n dens...
2022/11/11
[ "https://Stackoverflow.com/questions/74401022", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2581578/" ]
74,401,023
<p>Hi to restart the device without resetting RTC clock. For example, when I run:</p> <pre><code>import machine print(str(time.localtime())) # Set the datetime machine.RTC().datetime((...)) print(str(time.localtime())) machine.reset() print(str(time.localtime())) </code></pre> <p>Outputs like this</p> <pre><code>(...
[ { "answer_id": 74410004, "author": "Shawn Bragdon", "author_id": 19753194, "author_profile": "https://Stackoverflow.com/users/19753194", "pm_score": 0, "selected": false, "text": "import machine\nimport time\n\n# Save the current time in RTC memory\nrtc = machine.RTC()\nrtc.memory(str(ti...
2022/11/11
[ "https://Stackoverflow.com/questions/74401023", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9010507/" ]
74,401,041
<p>I like to use keyword where, for example.</p> <p>I simply do it like this</p> <pre><code>Dim orderFromThisGridTrading = _orders1.Where(Function(x) x.customIdentifier = ASimpleGridTradeSettings.name).ToArray </code></pre> <p>However, most samples would say I have to use from</p> <pre><code>Dim customersForRegion = Fr...
[ { "answer_id": 74401137, "author": "Tim Schmelter", "author_id": 284240, "author_profile": "https://Stackoverflow.com/users/284240", "pm_score": 3, "selected": true, "text": "Function GroupBy Join" }, { "answer_id": 74408029, "author": "Joel Coehoorn", "author_id": 3043, ...
2022/11/11
[ "https://Stackoverflow.com/questions/74401041", "https://Stackoverflow.com", "https://Stackoverflow.com/users/700663/" ]
74,401,042
<p>The Loading screen is not showing before the homepage appears. here is my code for the screen with the button.</p> <pre><code>import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; import 'package:instacash/screens/Customer%20Onboarding/onboarding/slider_page1.dart'; import 'packag...
[ { "answer_id": 74401137, "author": "Tim Schmelter", "author_id": 284240, "author_profile": "https://Stackoverflow.com/users/284240", "pm_score": 3, "selected": true, "text": "Function GroupBy Join" }, { "answer_id": 74408029, "author": "Joel Coehoorn", "author_id": 3043, ...
2022/11/11
[ "https://Stackoverflow.com/questions/74401042", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17302941/" ]
74,401,067
<p>Trying to mock calls to this interface (excert thereof) using Moq...</p> <pre><code>Task&lt;T&gt; StoreAsync&lt;T&gt;( IAuthUser user, T model, IDataModel relative = null, IDictionary&lt;string, object&gt; args = null) where T : class, IDataModel; </code></pre> <p>I would like one 'setup' for su...
[ { "answer_id": 74401133, "author": "Prakhar Londhe", "author_id": 4037191, "author_profile": "https://Stackoverflow.com/users/4037191", "pm_score": 2, "selected": false, "text": "It.IsAny<IDataModel>(), It.IsAny<IDictionary<string, object>>()\n DuplicatePaymentCheck PaymentModel It.Is<ID...
2022/11/11
[ "https://Stackoverflow.com/questions/74401067", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8102749/" ]
74,401,130
<p>Say that you have a <code>&lt;Button&gt;</code> and <code>&lt;Dialog&gt;</code> component. On button click, the dialog should open (<code>open</code> prop). Normally you would put both components togheter, using react <code>useState</code> to control the state:</p> <pre><code>export const FilterDialog() { const [o...
[ { "answer_id": 74401133, "author": "Prakhar Londhe", "author_id": 4037191, "author_profile": "https://Stackoverflow.com/users/4037191", "pm_score": 2, "selected": false, "text": "It.IsAny<IDataModel>(), It.IsAny<IDictionary<string, object>>()\n DuplicatePaymentCheck PaymentModel It.Is<ID...
2022/11/11
[ "https://Stackoverflow.com/questions/74401130", "https://Stackoverflow.com", "https://Stackoverflow.com/users/220180/" ]
74,401,144
<p>In Qt Widget Application (c++), a part of my *.ui file consists of a QListView with two QTextEdits as its items like the below figure.</p> <p><a href="https://i.stack.imgur.com/3lPUf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3lPUf.png" alt="enter image description here" /></a></p> <p>As you ...
[ { "answer_id": 74409272, "author": "Parisa.H.R", "author_id": 9484913, "author_profile": "https://Stackoverflow.com/users/9484913", "pm_score": 2, "selected": true, "text": "QListView setIndexWidget QStandardItemModel *model = new QStandardItemModel(120, 1);\n ui->listView->setMod...
2022/11/11
[ "https://Stackoverflow.com/questions/74401144", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3711075/" ]
74,401,148
<p>I'm trying to filter some data but I am trying to get all the elements with the same <code>id</code> that have the number <code>3</code>.</p> <p>The id <code>10</code> and <code>300</code> has number <code>3</code> so I want to get all the elements with id <code>10</code> and <code>300</code></p> <p>Is it possible t...
[ { "answer_id": 74401192, "author": "Dogbert", "author_id": 320615, "author_profile": "https://Stackoverflow.com/users/320615", "pm_score": 3, "selected": true, "text": "Set id id const data = [{\n id: 10,\n number: 3\n }, {\n id: 10,\n number: 2\n }, {\n id: 300,\n nu...
2022/11/11
[ "https://Stackoverflow.com/questions/74401148", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12046376/" ]
74,401,152
<p>I created the following dictionary that includes multiple key-value pairs. The values are lists containing numbers.</p> <pre><code>PLE_dict = { &quot;Task_1&quot;: [1, 2, 8], &quot;Task_2&quot;: [5, 1, 9], &quot;Task_3&quot;: [1, 1, 3], &quot;Task_4&quot;: [5, 3 ,5], } </code>...
[ { "answer_id": 74401192, "author": "Dogbert", "author_id": 320615, "author_profile": "https://Stackoverflow.com/users/320615", "pm_score": 3, "selected": true, "text": "Set id id const data = [{\n id: 10,\n number: 3\n }, {\n id: 10,\n number: 2\n }, {\n id: 300,\n nu...
2022/11/11
[ "https://Stackoverflow.com/questions/74401152", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17530552/" ]
74,401,201
<p>I am facing this error:</p> <blockquote> <p>Attempt to read property &quot;users_id&quot; on null</p> </blockquote> <p>in Laravel 8 controller.</p> <pre><code>public function editData88(Request $request, $id) { $id = Auth::user()-&gt;id; $user = User::where('id', $id)-&gt;with(['detail_data' =&gt...
[ { "answer_id": 74401192, "author": "Dogbert", "author_id": 320615, "author_profile": "https://Stackoverflow.com/users/320615", "pm_score": 3, "selected": true, "text": "Set id id const data = [{\n id: 10,\n number: 3\n }, {\n id: 10,\n number: 2\n }, {\n id: 300,\n nu...
2022/11/11
[ "https://Stackoverflow.com/questions/74401201", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20476901/" ]