qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,307,760
<p>I'm trying to make a button that has a linear gradient only in the text, but when I make the button it loses the backgroud, can anyone help me?</p> <p><a href="https://codepen.io/caiohaffs/pen/wvXWBOZ" rel="nofollow noreferrer">https://codepen.io/caiohaffs/pen/wvXWBOZ</a></p> <p><div class="snippet" data-lang="js" d...
[ { "answer_id": 74307829, "author": "Rodolfo BocaneGra", "author_id": 7623144, "author_profile": "https://Stackoverflow.com/users/7623144", "pm_score": 0, "selected": false, "text": "console.log() const xhr = new XMLHttpRequest();\n\nfunction reqListener() {\n console.log(this.responseTe...
2022/11/03
[ "https://Stackoverflow.com/questions/74307760", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20410609/" ]
74,307,809
<p>I am building the site which seems fairly simple show data on page from database.</p> <p>I want it to be as fast as possible. It already works/partially works in 3 ways:</p> <p>#Approach 1</p> <p>+page.server.js -&gt; gets data from Supabase</p> <p>+page.svelte -&gt; gets data and creates a website</p> <p>Advantages...
[ { "answer_id": 74318426, "author": "Ryszard Kozłowski", "author_id": 13058897, "author_profile": "https://Stackoverflow.com/users/13058897", "pm_score": 0, "selected": false, "text": "prerender: {\n entries: [\n '/product/1',\n '/product/2',\n '/product/3'\n ],\n},\n" }, {...
2022/11/03
[ "https://Stackoverflow.com/questions/74307809", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13058897/" ]
74,307,820
<p>I don't know why my minecraft clone destroys blocks of the ground, where I don't want. Here's my code:</p> <pre class="lang-py prettyprint-override"><code>from ursina import * from ursina.prefabs.first_person_controller import FirstPersonController from random import * from perlin_noise import * app = Ursina() play...
[ { "answer_id": 74318426, "author": "Ryszard Kozłowski", "author_id": 13058897, "author_profile": "https://Stackoverflow.com/users/13058897", "pm_score": 0, "selected": false, "text": "prerender: {\n entries: [\n '/product/1',\n '/product/2',\n '/product/3'\n ],\n},\n" }, {...
2022/11/03
[ "https://Stackoverflow.com/questions/74307820", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20410627/" ]
74,307,822
<p>I have a table with Contract_Id, Site_Name, and Hours columns… and now my requirement is to generate the comma seperated values by performing <strong>Group By</strong> on Contract_Id column.</p> <pre><code>Contract_Id Site_Name Hours 1 X 20 1 Y 20 2 X 20 ...
[ { "answer_id": 74307880, "author": "Stuck at 1337", "author_id": 20091109, "author_profile": "https://Stackoverflow.com/users/20091109", "pm_score": 1, "selected": false, "text": "FOR XML PATH SELECT \n Contract_Id, \n Site_Name = STUFF((SELECT ',' + Site_Name\n FROM #Tbl_Practice...
2022/11/03
[ "https://Stackoverflow.com/questions/74307822", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19198516/" ]
74,307,824
<p>I have a datafile that looks something like this.</p> <pre><code>id &lt;- c(1001, 1002, 1003, 1004, 1005, 1006) var1 &lt;- c(1, 0, 1, 0, 1, 1) var2 &lt;- c(1, 1, 1, 1, 1, 0) var3 &lt;- c(0, 0, 1, 1, 1, 0) file &lt;- data.frame (id, var1, var2, var3) file </code></pre> <p>We have several different variables that are...
[ { "answer_id": 74307855, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 1, "selected": false, "text": "table subset base R out <- do.call(rbind, lapply(grep(\"var\", names(file), value = TRUE), \n function(nm) cbind(vari...
2022/11/03
[ "https://Stackoverflow.com/questions/74307824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15488033/" ]
74,307,839
<p>I have this problem, I would like to convert each character to a binary number according to an if the condition or another easier way. All numbers greater than or equal to 5 must convert to 1 and numbers less than or equal to 4 convert to 0.</p> <p>Whole code:</p> <p><div class="snippet" data-lang="js" data-hide="fa...
[ { "answer_id": 74307855, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 1, "selected": false, "text": "table subset base R out <- do.call(rbind, lapply(grep(\"var\", names(file), value = TRUE), \n function(nm) cbind(vari...
2022/11/03
[ "https://Stackoverflow.com/questions/74307839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20410595/" ]
74,307,862
<p>I have created class File:</p> <pre><code>@dataclass class Match: length: int pos_A: int pos_B: int f_index: int class File: __name = &quot;&quot; __pos_in_list = 0 __statements = [] __matches = [] def __init__(self, name: str, pos: int, statements: [Statement]): self.__...
[ { "answer_id": 74308094, "author": "drx", "author_id": 20353137, "author_profile": "https://Stackoverflow.com/users/20353137", "pm_score": 2, "selected": true, "text": "__name __pos_in_list __statements @dataclass\nclass Match:\n length: int\n pos_A: int\n pos_B: int\n f_inde...
2022/11/03
[ "https://Stackoverflow.com/questions/74307862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14091997/" ]
74,307,890
<p>Hi I am trying to import python file in my robot code using library function like this.</p> <pre><code>Library /Users/test/Desktop/bb/src/json.py Library /Users/test/Desktop/bb/src/csv.py </code></pre> <p>I have another python file in same directory that is working. I imported like this.</p> <pre><code>Library ./...
[ { "answer_id": 74308094, "author": "drx", "author_id": 20353137, "author_profile": "https://Stackoverflow.com/users/20353137", "pm_score": 2, "selected": true, "text": "__name __pos_in_list __statements @dataclass\nclass Match:\n length: int\n pos_A: int\n pos_B: int\n f_inde...
2022/11/03
[ "https://Stackoverflow.com/questions/74307890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3354840/" ]
74,307,903
<p>How would I write a python code for this using split function? Example of input file (.txt) :</p> <pre><code>3 Day 1 Option A, 30 Option B, 60 Option C, 90 Day 2 Option A, 16 Option B, 24 Option C, 30 Day 3 Option A, 64 Option B, 49 Option C, 39 </code></pre> <p>This should be the output:</p> <pre><code>List A = [...
[ { "answer_id": 74308094, "author": "drx", "author_id": 20353137, "author_profile": "https://Stackoverflow.com/users/20353137", "pm_score": 2, "selected": true, "text": "__name __pos_in_list __statements @dataclass\nclass Match:\n length: int\n pos_A: int\n pos_B: int\n f_inde...
2022/11/03
[ "https://Stackoverflow.com/questions/74307903", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,307,904
<p>I have coded a function that check if brackets in a certain string are valid and returns true if it is and false if it isn't.</p> <p>For example:</p> <p>str1: { [ a + b ] - ] ( c - d } ] = false.</p> <p>str2: { [ a + b ] - ( c - d ) } = true.</p> <p>When I run the program it doesn't give any output, just a blank out...
[ { "answer_id": 74308049, "author": "Pete Kirkham", "author_id": 1527, "author_profile": "https://Stackoverflow.com/users/1527", "pm_score": 0, "selected": false, "text": "aid while (!stk.IsEmpty() && !aid.IsEmpty())" }, { "answer_id": 74308105, "author": "Dmitry Bychenko", ...
2022/11/03
[ "https://Stackoverflow.com/questions/74307904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19212648/" ]
74,307,941
<p>I am using Ag-grid library for grid view in React app. Following is my Ag-Grid component:</p> <pre><code>const handleChanged = (gridOptions) =&gt; { const selectedNodes = gridOptions.api.getSelectedNodes() //TODO } &lt;AgGridReact data-testid=&quot;details-data&quot; ...
[ { "answer_id": 74312910, "author": "Usama", "author_id": 13405106, "author_profile": "https://Stackoverflow.com/users/13405106", "pm_score": 1, "selected": false, "text": "gridOptions.api.getSelectedNodes() onCellClicked const onCellClicked = (e) => {\n const selectedRows = gridOption...
2022/11/03
[ "https://Stackoverflow.com/questions/74307941", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10473540/" ]
74,307,950
<p>I extended the ASP.NET CheckBoxList web control to create a Bootstrap 5 layout version.</p> <p>The control works fine, but on postback, it loses the checked state. Also, the control's SelectedItem property is null.</p> <p>I created the same control for the RadioButtonList and it works perfectly. Using DotPeek, I ...
[ { "answer_id": 74312910, "author": "Usama", "author_id": 13405106, "author_profile": "https://Stackoverflow.com/users/13405106", "pm_score": 1, "selected": false, "text": "gridOptions.api.getSelectedNodes() onCellClicked const onCellClicked = (e) => {\n const selectedRows = gridOption...
2022/11/03
[ "https://Stackoverflow.com/questions/74307950", "https://Stackoverflow.com", "https://Stackoverflow.com/users/815362/" ]
74,308,012
<p>I was under the impression that <a href="https://docs.python.org/3/library/typing.html" rel="nofollow noreferrer"><code>typing</code></a> module in Python is mostly for increasing code readability and for code documentation purposes.</p> <p>After playing around with it and reading about the module, I've managed to c...
[ { "answer_id": 74308315, "author": "Devin Sag", "author_id": 20388932, "author_profile": "https://Stackoverflow.com/users/20388932", "pm_score": 1, "selected": false, "text": "a: int" }, { "answer_id": 74310375, "author": "Daniil Fajnberg", "author_id": 19770795, "aut...
2022/11/03
[ "https://Stackoverflow.com/questions/74308012", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19557946/" ]
74,308,028
<p>Question. Write a PL/SQL program to check whether a date falls on weekend i.e. ‘SATURDAY’ or ‘SUNDAY’.</p> <p>I tried running the code on livesql.oracle.com</p> <p>My Code: <a href="https://i.stack.imgur.com/loPAX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/loPAX.png" alt="enter image descript...
[ { "answer_id": 74308315, "author": "Devin Sag", "author_id": 20388932, "author_profile": "https://Stackoverflow.com/users/20388932", "pm_score": 1, "selected": false, "text": "a: int" }, { "answer_id": 74310375, "author": "Daniil Fajnberg", "author_id": 19770795, "aut...
2022/11/03
[ "https://Stackoverflow.com/questions/74308028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20410463/" ]
74,308,043
<p>i have two tables professor and department. professor table has dept_id as foreign key and department table has prof_id as forgin key. how i have created professor table without adding dept_id column then i created department table with prof_id as foreign key. now i added data in both table(professor table do not ha...
[ { "answer_id": 74308315, "author": "Devin Sag", "author_id": 20388932, "author_profile": "https://Stackoverflow.com/users/20388932", "pm_score": 1, "selected": false, "text": "a: int" }, { "answer_id": 74310375, "author": "Daniil Fajnberg", "author_id": 19770795, "aut...
2022/11/03
[ "https://Stackoverflow.com/questions/74308043", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12775094/" ]
74,308,055
<p>Currently trying to build a small website using socket.io and express. Writing in Typescript, because I like actually getting proper type errors, and transpiling the frontend code to Javascript so it actually runs in the browser.</p> <p>Frontend code:</p> <pre><code>import { io, Socket } from 'socket.io-client'; // ...
[ { "answer_id": 74308315, "author": "Devin Sag", "author_id": 20388932, "author_profile": "https://Stackoverflow.com/users/20388932", "pm_score": 1, "selected": false, "text": "a: int" }, { "answer_id": 74310375, "author": "Daniil Fajnberg", "author_id": 19770795, "aut...
2022/11/03
[ "https://Stackoverflow.com/questions/74308055", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20410602/" ]
74,308,059
<h2>Context</h2> <p>To prevent circular imports in Python when using type-hints, one can use <a href="https://adamj.eu/tech/2021/05/13/python-type-hints-how-to-fix-circular-imports/" rel="nofollow noreferrer">the following</a> construct:</p> <pre class="lang-py prettyprint-override"><code># controllers.py from __future...
[ { "answer_id": 74376222, "author": "a.t.", "author_id": 7437143, "author_profile": "https://Stackoverflow.com/users/7437143", "pm_score": 0, "selected": false, "text": "python controllers.py models.py python models.py # models.py\nimport controllers\n\nfrom typeguard import typechecked\n...
2022/11/03
[ "https://Stackoverflow.com/questions/74308059", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7437143/" ]
74,308,102
<p><strong>This was solved in my answer below</strong></p> <p>I have a website in 2 languages.</p> <p>German version: website/index.html<br /> English version: website/english/index.html</p> <p>The site loads Google fonts locally. Font file location: website/assets/fonts</p> <p>This works for the german version, but no...
[ { "answer_id": 74376222, "author": "a.t.", "author_id": 7437143, "author_profile": "https://Stackoverflow.com/users/7437143", "pm_score": 0, "selected": false, "text": "python controllers.py models.py python models.py # models.py\nimport controllers\n\nfrom typeguard import typechecked\n...
2022/11/03
[ "https://Stackoverflow.com/questions/74308102", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20410722/" ]
74,308,141
<p>I have been searching and I have not seen an example like this.</p> <p>I want to query a Model table to retrieve all Models from German manufacturers.</p> <p>My data structure is Model Table has a Navigation Property called &quot;Manufacturer&quot; and an FK called &quot;IdManufacturer&quot;</p> <p>A Manufacturer Ha...
[ { "answer_id": 74315237, "author": "Svyatoslav Danyliv", "author_id": 10646316, "author_profile": "https://Stackoverflow.com/users/10646316", "pm_score": 0, "selected": false, "text": "query = query.Where(\"Manufacturer.Origin.Name\", \"German\");\n public static class QueryableExtension...
2022/11/03
[ "https://Stackoverflow.com/questions/74308141", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17825056/" ]
74,308,159
<p>How can I write a regex in a shell script that would target only the targeted substring between two given values? Give the example</p> <pre><code>https://www.stackoverflow.com </code></pre> <p>How can I match only the &quot;:&quot; in between &quot;https&quot; and &quot;//&quot;. If possible please also explain the ...
[ { "answer_id": 74315237, "author": "Svyatoslav Danyliv", "author_id": 10646316, "author_profile": "https://Stackoverflow.com/users/10646316", "pm_score": 0, "selected": false, "text": "query = query.Where(\"Manufacturer.Origin.Name\", \"German\");\n public static class QueryableExtension...
2022/11/03
[ "https://Stackoverflow.com/questions/74308159", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13969419/" ]
74,308,160
<p>I have a couple of strings I'd like to remove unclosed brackets such as <code>(</code> or <code>[</code></p> <pre><code>&quot;A Pro Webcam ((Good text) [[Good Text] more texts&quot; &quot;Text (Example (Good text) [Good Text] more texts&quot; </code></pre> <p>I have tried using this with php with no luck</p> <pre>...
[ { "answer_id": 74308441, "author": "nice_dev", "author_id": 4964822, "author_profile": "https://Stackoverflow.com/users/4964822", "pm_score": 2, "selected": false, "text": "( ) [ ] <?php\n\nfunction filterUnmatchedParentheses($string){\n $opened = [];\n $unOpened = [];\n $skipIdxs = [...
2022/11/03
[ "https://Stackoverflow.com/questions/74308160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5309558/" ]
74,308,161
<p>Using q’s <code>like</code> function, how can we achieve the following match using a single regex string <code>regstr</code>?</p> <pre><code>q) (&quot;foo7&quot;; &quot;foo8&quot;; &quot;foo9&quot;; &quot;foo10&quot;; &quot;foo11&quot;; &quot;foo12&quot;; &quot;foo13&quot;) like regstr &gt;&gt;&gt; 0111110b </code><...
[ { "answer_id": 74310442, "author": "Thomas Smyth - Treliant", "author_id": 5620913, "author_profile": "https://Stackoverflow.com/users/5620913", "pm_score": 2, "selected": false, "text": "q)str:(\"foo7\"; \"foo8\"; \"foo9\"; \"foo10\"; \"foo11\"; \"foo12\"; \"foo13\"; \"foo3x\"; \"foo123...
2022/11/03
[ "https://Stackoverflow.com/questions/74308161", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13442590/" ]
74,308,176
<p>I have 50,000+ json objects buried in nested arrays. I want to pull them out so that they can be in single array. Also these nested arrays are quite random having no pattern. E.g</p> <p>[ [ [ [ [ {&quot;a&quot;:1 } ], [ {&quot;b&quot;:2 } ] ], [[{&quot;c&quot;:3 }]] ] ], [{&quot;d&quot;:4 }] ]</p> <p>has to be conve...
[ { "answer_id": 74308255, "author": "Shoki", "author_id": 4551844, "author_profile": "https://Stackoverflow.com/users/4551844", "pm_score": 4, "selected": true, "text": "%dw 2.0\noutput application/json\nfun flattenAllLevels(arr: Array) = do {\n arr reduce ((item, acc = []) -> \n ...
2022/11/03
[ "https://Stackoverflow.com/questions/74308176", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20410989/" ]
74,308,206
<p>I have an R dataframe containing pairs of SNPs (with chromosome number and base pair location in separate columns) and p-values for each pair. The data looks like this:</p> <pre><code>chr_snp1 loc_snp1 chr_snp2 loc_snp2 pval 1 278474050 2 57386477 7.43e-08 1 27...
[ { "answer_id": 74308400, "author": "br00t", "author_id": 4028717, "author_profile": "https://Stackoverflow.com/users/4028717", "pm_score": 1, "selected": false, "text": "df <- textConnection('\nchr_snp1, loc_snp1, chr_snp2, loc_snp2, pval\n1, 278474050, 2, 57386477, 7.43e-08\n1, 27562085...
2022/11/03
[ "https://Stackoverflow.com/questions/74308206", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6836719/" ]
74,308,229
<p>If I have an array of objects like so:</p> <pre><code>const array = [ {name: &quot;Jim&quot;, attributes: &quot;strong, handsome, tall&quot;, age: 28}, {name: &quot;Alice&quot;, attributes: &quot;blonde, thin, tall&quot;, age: 26}, {name: &quot;Bob&quot;, attributes: &quot;lazy, small, thin&quot;, age: 32} ] </code>...
[ { "answer_id": 74308302, "author": "Ax0n", "author_id": 13078911, "author_profile": "https://Stackoverflow.com/users/13078911", "pm_score": 1, "selected": true, "text": "array.filter(el => el.attributes.includes('tall'))\n includes" }, { "answer_id": 74308316, "author": "caTS...
2022/11/03
[ "https://Stackoverflow.com/questions/74308229", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18472704/" ]
74,308,261
<p>I have a table like below,</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Name</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>A</td> <td>Sample1</td> </tr> <tr> <td>A</td> <td>Sample2</td> </tr> <tr> <td>A</td> <td>Sample3</td> </tr> <tr> <td>B</td> <td>Sample3</td> </tr> <tr> <td>...
[ { "answer_id": 74308302, "author": "Ax0n", "author_id": 13078911, "author_profile": "https://Stackoverflow.com/users/13078911", "pm_score": 1, "selected": true, "text": "array.filter(el => el.attributes.includes('tall'))\n includes" }, { "answer_id": 74308316, "author": "caTS...
2022/11/03
[ "https://Stackoverflow.com/questions/74308261", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3675978/" ]
74,308,267
<p>Given I have the following function:</p> <pre><code>add_to_list({ 'GOOG': [100.21] }, ('GOOG', 130.00)) </code></pre> <p>This function is supposed to convert values <strong>('GOOG', 130.00)</strong> into a dictionary in the format <strong>'GOOG':130.00</strong>. On top, it is meant to append the already existing dic...
[ { "answer_id": 74308537, "author": "Talha Tayyab", "author_id": 13086128, "author_profile": "https://Stackoverflow.com/users/13086128", "pm_score": 0, "selected": false, "text": "def add_to_list(x,y):\n d={y[0]:y[1]}\n return d\nadd_to_list({ 'GOOG': [100.21] }, ('GOOG', 130.00))\n...
2022/11/03
[ "https://Stackoverflow.com/questions/74308267", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18072226/" ]
74,308,279
<p>Some background: I am creating a POS system and have a MySQL Database. The design of my database is one table &quot;tblProducts&quot; is keeping track of product UPC, description, price, etc. The other table &quot;tblStock&quot; is keeping track of quantity, min and max. There is a FK connecting UPC's between tblSto...
[ { "answer_id": 74308537, "author": "Talha Tayyab", "author_id": 13086128, "author_profile": "https://Stackoverflow.com/users/13086128", "pm_score": 0, "selected": false, "text": "def add_to_list(x,y):\n d={y[0]:y[1]}\n return d\nadd_to_list({ 'GOOG': [100.21] }, ('GOOG', 130.00))\n...
2022/11/03
[ "https://Stackoverflow.com/questions/74308279", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19659745/" ]
74,308,283
<p>I have two tables: TableA and TableB.</p> <p>Table A :</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Id</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>0021</td> <td>Cell 2</td> </tr> <tr> <td>0033</td> <td>Cell 4</td> </tr> <tr> <td>0021</td> <td>Cell 1</td> </tr> <tr> <td>0036</t...
[ { "answer_id": 74308537, "author": "Talha Tayyab", "author_id": 13086128, "author_profile": "https://Stackoverflow.com/users/13086128", "pm_score": 0, "selected": false, "text": "def add_to_list(x,y):\n d={y[0]:y[1]}\n return d\nadd_to_list({ 'GOOG': [100.21] }, ('GOOG', 130.00))\n...
2022/11/03
[ "https://Stackoverflow.com/questions/74308283", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19830366/" ]
74,308,301
<p>Im trying to write a function complex_decode( string str) in c sharp that takes a non-simple repeated encoded string, and returns the original un-encoded string. for example, &quot;t11h12e14&quot; would return &quot;ttttttttttthhhhhhhhhhhheeeeeeeeeeeeee&quot;. I have been successful in decoding strings where the len...
[ { "answer_id": 74309195, "author": "cemahseri", "author_id": 10189024, "author_profile": "https://Stackoverflow.com/users/10189024", "pm_score": 0, "selected": false, "text": "public static string Decode(string input)\n{\n // If the string is empty or has only 1 character, return the ...
2022/11/03
[ "https://Stackoverflow.com/questions/74308301", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16279466/" ]
74,308,334
<p>I have read several times before that the length of the data type in C depends on the architecture on the PC.</p> <p>But recently I have read documentation of a compiler and this documentation specifies the data types that you can access and the length of this data type.</p> <p>So my question is, the data type lengt...
[ { "answer_id": 74308423, "author": "Jeremy Friesner", "author_id": 131930, "author_profile": "https://Stackoverflow.com/users/131930", "pm_score": 2, "selected": false, "text": "sizeof(int)==2 sizeof(int)==4 sizeof(int)==8" }, { "answer_id": 74308456, "author": "Eric Postpisc...
2022/11/03
[ "https://Stackoverflow.com/questions/74308334", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20384406/" ]
74,308,368
<p>Lately I have been trying to make my own operating system. To do this I need to learn assembly. It's going well, but I have stumbled upon a problem: what registers can I use for function arguments? And is it a good practice?</p>
[ { "answer_id": 74309197, "author": "Sep Roland", "author_id": 3144770, "author_profile": "https://Stackoverflow.com/users/3144770", "pm_score": 3, "selected": true, "text": "bx Handle\ncx Count\nds:dx Far pointer\nes:bx Far pointer\n...\n" }, { "answer_id": 74309434, "a...
2022/11/03
[ "https://Stackoverflow.com/questions/74308368", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16835604/" ]
74,308,369
<p>Consider the following (nonsensical, but working) plot:</p> <pre><code>ggplot(mtcars, aes(x = as.factor(cyl), y = hp)) + ...
[ { "answer_id": 74308414, "author": "langtang", "author_id": 4447540, "author_profile": "https://Stackoverflow.com/users/4447540", "pm_score": 1, "selected": false, "text": "mapping ... + \n geom_text(aes(label = am))\n" }, { "answer_id": 74308422, "author": "Quinten", ...
2022/11/03
[ "https://Stackoverflow.com/questions/74308369", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2239765/" ]
74,308,370
<p>There you go. When I try to retrieve when loading the page, all the tables of users who liked the posts, that I make the comparisons, that I change the state, it is the states of all the posts that change, without difference. If only one post is liked by the user, all posts are marked as liked. And if I post a new p...
[ { "answer_id": 74308414, "author": "langtang", "author_id": 4447540, "author_profile": "https://Stackoverflow.com/users/4447540", "pm_score": 1, "selected": false, "text": "mapping ... + \n geom_text(aes(label = am))\n" }, { "answer_id": 74308422, "author": "Quinten", ...
2022/11/03
[ "https://Stackoverflow.com/questions/74308370", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20390168/" ]
74,308,390
<p>I am trying to clean up my code a lot. I have a form that I realise I use multiple times in my app. So I wanted to turn the form into its own stateful widget so I could easily re-use it. Unfortunately this is proving more difficult than I thought.</p> <p>The form is first used in the app to add items. I then want to...
[ { "answer_id": 74308414, "author": "langtang", "author_id": 4447540, "author_profile": "https://Stackoverflow.com/users/4447540", "pm_score": 1, "selected": false, "text": "mapping ... + \n geom_text(aes(label = am))\n" }, { "answer_id": 74308422, "author": "Quinten", ...
2022/11/03
[ "https://Stackoverflow.com/questions/74308390", "https://Stackoverflow.com", "https://Stackoverflow.com/users/522607/" ]
74,308,397
<p>I am making a website for a school project, and in it, there is a login page. Right now, there is only 1 login username and password. How can I have TWO username and TWO passwords? I have tried the else if, but it didn't work. Any ideas? The code for the login is below. Thanks</p> <p><div class="snippet" data-lang="...
[ { "answer_id": 74308414, "author": "langtang", "author_id": 4447540, "author_profile": "https://Stackoverflow.com/users/4447540", "pm_score": 1, "selected": false, "text": "mapping ... + \n geom_text(aes(label = am))\n" }, { "answer_id": 74308422, "author": "Quinten", ...
2022/11/03
[ "https://Stackoverflow.com/questions/74308397", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20267650/" ]
74,308,420
<p>I am trying to navigate from welcomepage to screen tab but unable to do so because of the above error.</p> <p><strong>Part of welcome screen.dart</strong></p> <pre><code>class WelcomePage extends StatelessWidget { static const routeName = '/welcome-screen'; const WelcomePage({Key key}) : super(key: key); @ove...
[ { "answer_id": 74308414, "author": "langtang", "author_id": 4447540, "author_profile": "https://Stackoverflow.com/users/4447540", "pm_score": 1, "selected": false, "text": "mapping ... + \n geom_text(aes(label = am))\n" }, { "answer_id": 74308422, "author": "Quinten", ...
2022/11/03
[ "https://Stackoverflow.com/questions/74308420", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19017043/" ]
74,308,449
<p>Here is a sample dataset:</p> <pre><code> data &lt;- data.frame(x=c(4,3,4,4,99), y=c(4,NA,3,2,4), z = c(88,NA,4,4,5), w = c(4,5,2,3,4)) </code></pre> <p>I would like to create a new column for means using rowMeans. I would like to keep na.rm=F because if its trul...
[ { "answer_id": 74308578, "author": "br00t", "author_id": 4028717, "author_profile": "https://Stackoverflow.com/users/4028717", "pm_score": 1, "selected": false, "text": "data <- data.frame(x=c(4,3,4,4,99),\n y=c(4,NA,3,2,4),\n z = c(88,NA,4,4,5),\n ...
2022/11/03
[ "https://Stackoverflow.com/questions/74308449", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17491547/" ]
74,308,457
<p>I am trying to show the list of food types whereas I need to display the first 5 values in the html. While using slice I am getting this error Property 'slice' does not exist on type '{ categories: Category[]; }</p> <pre><code> loadcategoriesfood(): Observable&lt;{ categories: Category[] }&gt; { return this.ht...
[ { "answer_id": 74308578, "author": "br00t", "author_id": 4028717, "author_profile": "https://Stackoverflow.com/users/4028717", "pm_score": 1, "selected": false, "text": "data <- data.frame(x=c(4,3,4,4,99),\n y=c(4,NA,3,2,4),\n z = c(88,NA,4,4,5),\n ...
2022/11/03
[ "https://Stackoverflow.com/questions/74308457", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20328106/" ]
74,308,483
<p>I have a table ANC_PER_ABS_ENTRIES that has the following detail -</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>PER_AB_ENTRY_ID</th> <th>person_number</th> <th>action_type</th> <th>duration</th> <th>START_dATE</th> <th>END_DATE</th> <th>LAST_UPD_DT</th> </tr> </thead> <tbody> <tr> <td...
[ { "answer_id": 74308578, "author": "br00t", "author_id": 4028717, "author_profile": "https://Stackoverflow.com/users/4028717", "pm_score": 1, "selected": false, "text": "data <- data.frame(x=c(4,3,4,4,99),\n y=c(4,NA,3,2,4),\n z = c(88,NA,4,4,5),\n ...
2022/11/03
[ "https://Stackoverflow.com/questions/74308483", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1490556/" ]
74,308,534
<p>I have piece of a code that I don't entirely understand why it acts like that.</p> <p><code>const handleLoadMore = () =&gt; { setPageNumber(pageNumber+1); fetchData(pageNumber); };</code></p> <p>State <code>pageNumber </code>remains same as I didn't change the state. Outside of the <code>handleLoadMore </code>functi...
[ { "answer_id": 74308578, "author": "br00t", "author_id": 4028717, "author_profile": "https://Stackoverflow.com/users/4028717", "pm_score": 1, "selected": false, "text": "data <- data.frame(x=c(4,3,4,4,99),\n y=c(4,NA,3,2,4),\n z = c(88,NA,4,4,5),\n ...
2022/11/03
[ "https://Stackoverflow.com/questions/74308534", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15587166/" ]
74,308,535
<p>I've been told that <code>Rigidbody.MoveRotation</code> is the best way in Unity 3D to rotate the player between fixed positions while still detecting hits. However, while I can move smoothly from fixed position to position with:</p> <pre><code>if (Vector3.Distance(player.position, targetPos) &gt; 0.0455f) //FIXES J...
[ { "answer_id": 74308740, "author": "Pavlos Mavris", "author_id": 16523060, "author_profile": "https://Stackoverflow.com/users/16523060", "pm_score": -1, "selected": false, "text": "private bool rotating = true;\npublic void Update()\n{\n if (rotating)\n {\n Vector3 to = new ...
2022/11/03
[ "https://Stackoverflow.com/questions/74308535", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14849988/" ]
74,308,593
<p>Hello everyone I am new to Python and I wanted to see if someone can help. I am trying to automate text input on a website. I am trying to run a code that says if the input box is empty to type 4.00 if not to press the down key. An image is provided to help understand the issue.</p> <pre><code>from selenium import w...
[ { "answer_id": 74308740, "author": "Pavlos Mavris", "author_id": 16523060, "author_profile": "https://Stackoverflow.com/users/16523060", "pm_score": -1, "selected": false, "text": "private bool rotating = true;\npublic void Update()\n{\n if (rotating)\n {\n Vector3 to = new ...
2022/11/03
[ "https://Stackoverflow.com/questions/74308593", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20411196/" ]
74,308,612
<p>I am trying to create a time series of the sea surface temperature data over the whole year for six consecutive years and plot them using the subplots. I want to mark the x-ticks as the months. I tried using the <code>matplotlib.dates</code> option. However the years doesn't change on the subsequent subplots.</p> <p...
[ { "answer_id": 74310227, "author": "The Emerging Star", "author_id": 17581930, "author_profile": "https://Stackoverflow.com/users/17581930", "pm_score": 0, "selected": false, "text": "from pickletools import float8\nimport os\nimport numpy as np\nimport sys\nimport matplotlib.pyplot as p...
2022/11/03
[ "https://Stackoverflow.com/questions/74308612", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17581930/" ]
74,308,623
<p>I have a pandas dataframe where I want to replace the value in the Prediction column with the value in the column referred to by the prediction column.</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>A</th> <th>B</th> <th>C</th> <th>D</th> <th>Prediction</th> </tr> </thead> <tbody> <tr> ...
[ { "answer_id": 74310227, "author": "The Emerging Star", "author_id": 17581930, "author_profile": "https://Stackoverflow.com/users/17581930", "pm_score": 0, "selected": false, "text": "from pickletools import float8\nimport os\nimport numpy as np\nimport sys\nimport matplotlib.pyplot as p...
2022/11/03
[ "https://Stackoverflow.com/questions/74308623", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20222924/" ]
74,308,652
<p>I would like to create two new columns based on a third one. These two columns should have incrementing values of two different kinds.</p> <p>Let´s take the following dataset as an example:</p> <pre><code>events &lt;- data.frame(Frame = seq(from = 1001, to = 1033, by = 1), Value = c(2.05, 0, 2.2...
[ { "answer_id": 74308909, "author": "langtang", "author_id": 4447540, "author_profile": "https://Stackoverflow.com/users/4447540", "pm_score": 3, "selected": false, "text": "data.table::rleid() library(data.table)\nsetDT(events)\n\nevents[, Number:=rleid(fifelse(Value==0,1,0))] %>% \n .[...
2022/11/03
[ "https://Stackoverflow.com/questions/74308652", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3829013/" ]
74,308,683
<p>In React I'm using utility functions to handle the api calls. When the Arrow function is no longer anonymous it returns a pending promise, which is what I would like. However when the arrow function is anonymous it returns the function.</p> <p>Is there any way to return a pending promise in one line?</p> <p>Here is ...
[ { "answer_id": 74308710, "author": "Finbar", "author_id": 17525834, "author_profile": "https://Stackoverflow.com/users/17525834", "pm_score": 0, "selected": false, "text": "const list = () => {\n return (async () => await api.get(\"list\"))();\n}\n" }, { "answer_id": 74308713,...
2022/11/03
[ "https://Stackoverflow.com/questions/74308683", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14402975/" ]
74,308,698
<p>I am a beginner in SQL and I want to do something on my table 'User'.</p> <p>I would like to make a constraint on my 'Password' column. The constraint is &quot;Passwords only can be made of letters and digits, the only symbol allowed is &quot;_&quot; &quot;</p> <p>I don't know how to allowed only one symbol with a c...
[ { "answer_id": 74308985, "author": "EdmCoff", "author_id": 5504922, "author_profile": "https://Stackoverflow.com/users/5504922", "pm_score": 1, "selected": false, "text": "CHECK REGEXP NOT REGEXP ALTER TABLE mytable\nADD CONSTRAINT myconstraint CHECK (mycolumn NOT REGEXP '[^A-Z0-9_]')\n"...
2022/11/03
[ "https://Stackoverflow.com/questions/74308698", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20411301/" ]
74,308,703
<p>I have a data frame with integers, like so:</p> <pre><code># generate data frame df = cbind(c(0,102,0,40,0,0), c(22,0,0,0,12,4), c(23,101,55,0,0,0), c(0,0,0,414,0,0), c(0,0,61,0,0,112), c(0,0,0,0,20,0)) colnames(df) = c('A', 'T', 'C', 'G', 'N', 'Del') rownames(df) = c('Pos1', 'Pos2', 'Pos3', 'Pos4', 'Pos5...
[ { "answer_id": 74308783, "author": "markus", "author_id": 8583393, "author_profile": "https://Stackoverflow.com/users/8583393", "pm_score": 3, "selected": true, "text": "cbind 0 rows <- seq_len(nrow(df))\ndf[cbind(rows, cols)] <- 0\n df\n# A T C G N Del\n#Pos1 0 0 23 0 0 0\n...
2022/11/03
[ "https://Stackoverflow.com/questions/74308703", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6584775/" ]
74,308,711
<p>I'm pretty new to Swift. I have a DB connection to my app and all of the query results are stored in an Array of type Any as I've created one function to pass any queries.</p> <p>I am now looking to search into this array for a specific string (here for example the email).</p> <pre class="lang-swift prettyprint-over...
[ { "answer_id": 74308783, "author": "markus", "author_id": 8583393, "author_profile": "https://Stackoverflow.com/users/8583393", "pm_score": 3, "selected": true, "text": "cbind 0 rows <- seq_len(nrow(df))\ndf[cbind(rows, cols)] <- 0\n df\n# A T C G N Del\n#Pos1 0 0 23 0 0 0\n...
2022/11/03
[ "https://Stackoverflow.com/questions/74308711", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20411324/" ]
74,308,712
<p><strong>Question Explanation</strong> (<a href="https://open.kattis.com/problems/zamka" rel="nofollow noreferrer">Zamka</a>):<br /> &lt;----------------------------------------------------------------------------------------------------------&gt; <em>Input Example:</em></p> <pre><code>100 500 12 </code></pre> ...
[ { "answer_id": 74308783, "author": "markus", "author_id": 8583393, "author_profile": "https://Stackoverflow.com/users/8583393", "pm_score": 3, "selected": true, "text": "cbind 0 rows <- seq_len(nrow(df))\ndf[cbind(rows, cols)] <- 0\n df\n# A T C G N Del\n#Pos1 0 0 23 0 0 0\n...
2022/11/03
[ "https://Stackoverflow.com/questions/74308712", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20411243/" ]
74,308,719
<p><code>console.log(result);</code> In code here is being logged in the console every time there is an onChange in the input. looking for a way to stop component re-render on input value change.</p> <pre><code>import &quot;./home.css&quot;; const Home = () =&gt; { const [city, setCity] = useState(&quot;kampala&quot...
[ { "answer_id": 74308840, "author": "rocambille", "author_id": 6612932, "author_profile": "https://Stackoverflow.com/users/6612932", "pm_score": 1, "selected": false, "text": "const initialValue = \"kampala\";\n\nconst Home = () => {\n const city = useRef();\n const [result, setResult] ...
2022/11/03
[ "https://Stackoverflow.com/questions/74308719", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14131746/" ]
74,308,737
<p>I use the following code to create a table if it does not exist yet:</p> <pre><code> PGconn* conn; PGnotify* notify; PGresult* createTableRes; createTableRes = PQexec(conn, &quot;CREATE TABLE IF NOT EXISTS t_xyz (xyzId SERIAL PRIMARY KEY NOT NULL, xyz VARCHAR(100) UNIQUE NOT NULL)&quot;...
[ { "answer_id": 74314040, "author": "Laurenz Albe", "author_id": 6464308, "author_profile": "https://Stackoverflow.com/users/6464308", "pm_score": 2, "selected": true, "text": "PQnotifies() PQsetNoticeReceiver()" }, { "answer_id": 74320652, "author": "Quiensabe", "author_i...
2022/11/03
[ "https://Stackoverflow.com/questions/74308737", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14906583/" ]
74,308,748
<p>I want to cover the folowing code usingjest:</p> <pre><code> @Debounce(100) private checkDataToPositionInStep(): void { const proposalConsultData = this.proposalConsultResponseStore.get(); if(proposalConsultData?.documentProposalData?.length &gt; 1) { this.fullScreenLoade...
[ { "answer_id": 74309799, "author": "Facundo Gallardo", "author_id": 20375146, "author_profile": "https://Stackoverflow.com/users/20375146", "pm_score": 0, "selected": false, "text": "import { Debounce } from './Debouncefile';\n\ndescribe('Debounce', () => {\n it('should do something', (...
2022/11/03
[ "https://Stackoverflow.com/questions/74308748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20411169/" ]
74,308,764
<p>I have a loop which runs through a list of files then uploads them a Google Drive folder. There is a client_secrets.json file in the folder on my computer.</p> <p>I am able to create new files in the Google Drive folder but I wish to overwrite the existing files, without changing the Google Drive file IDs. Is this p...
[ { "answer_id": 74309433, "author": "Captain Caveman", "author_id": 2325014, "author_profile": "https://Stackoverflow.com/users/2325014", "pm_score": 1, "selected": false, "text": "service.files().update()\n" }, { "answer_id": 74309529, "author": "Daniel", "author_id": 123...
2022/11/03
[ "https://Stackoverflow.com/questions/74308764", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12525250/" ]
74,308,768
<p>I was looking for a way to find the mean of numerical values based on a certain column. I looked to this <a href="https://stackoverflow.com/questions/70824278/pandas-how-to-find-mean-of-a-column-based-on-duplicate-rows-in-another-column">link</a> for advice but it requires all values of one column to be the same and...
[ { "answer_id": 74309433, "author": "Captain Caveman", "author_id": 2325014, "author_profile": "https://Stackoverflow.com/users/2325014", "pm_score": 1, "selected": false, "text": "service.files().update()\n" }, { "answer_id": 74309529, "author": "Daniel", "author_id": 123...
2022/11/03
[ "https://Stackoverflow.com/questions/74308768", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16370131/" ]
74,308,777
<p>I'm trying to write a program which task is to get rid of extra whitespace in a text stream.</p> <pre><code>#include &lt;stdio.h&gt; int main() { int c; while( (c = getchar()) != EOF) { if(c == ' ') { putchar(c); while( (c = getchar()) == ' ' ); ...
[ { "answer_id": 74309433, "author": "Captain Caveman", "author_id": 2325014, "author_profile": "https://Stackoverflow.com/users/2325014", "pm_score": 1, "selected": false, "text": "service.files().update()\n" }, { "answer_id": 74309529, "author": "Daniel", "author_id": 123...
2022/11/03
[ "https://Stackoverflow.com/questions/74308777", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17481360/" ]
74,308,792
<p>In creating a python thread with name, we can do it by</p> <pre><code>t = threading.Thread(target=func,name=&quot;my_thread&quot;) </code></pre> <p>In flask, each request spawns its own thread holding the context until the process is completed. How do i assign dynamic name to these threads being created by flask?</p...
[ { "answer_id": 74309433, "author": "Captain Caveman", "author_id": 2325014, "author_profile": "https://Stackoverflow.com/users/2325014", "pm_score": 1, "selected": false, "text": "service.files().update()\n" }, { "answer_id": 74309529, "author": "Daniel", "author_id": 123...
2022/11/03
[ "https://Stackoverflow.com/questions/74308792", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11784080/" ]
74,308,795
<p>I'm not super familiar with mocking, but I have to write unit tests for an endpoint for a flask app. So I'm using flask's unittest tools. We use blueprints, so the endpoints are located in a different file than the flask app. I have a function (call it function A). That function uses a helper function (call it funct...
[ { "answer_id": 74314463, "author": "frankfalse", "author_id": 18108367, "author_profile": "https://Stackoverflow.com/users/18108367", "pm_score": 1, "selected": false, "text": "src/routes/CRUD/myscript.py test_scripts/test_script.py import json\nimport unittest\nfrom unittest import mock...
2022/11/03
[ "https://Stackoverflow.com/questions/74308795", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17091823/" ]
74,308,834
<p>I understand that this is not the best optimized code for leetcode problem 202 Happy Number, but I am trying to figure out what the Big O of this because of the conditional while loop. Ofc if n starts out as 0-4, it would be O(1).</p> <pre><code>/** * @param {number} n * @return {boolean} */ var isHappy = functi...
[ { "answer_id": 74308927, "author": "Zach J.", "author_id": 20276330, "author_profile": "https://Stackoverflow.com/users/20276330", "pm_score": 1, "selected": false, "text": "n > 4 n.forEach.. n n n.foreach n" }, { "answer_id": 74309550, "author": "Jared A Sutton", "author...
2022/11/03
[ "https://Stackoverflow.com/questions/74308834", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18445495/" ]
74,308,847
<p>I have created a GitHub App for GitHub users to install on their personal accounts. I want it to use the GitHub API to create a new repository on their user account.</p> <p>I've spent a couple days trying to follow the instructions in the official GitHub API Documentation, specifically how to <a href="https://docs.g...
[ { "answer_id": 74308927, "author": "Zach J.", "author_id": 20276330, "author_profile": "https://Stackoverflow.com/users/20276330", "pm_score": 1, "selected": false, "text": "n > 4 n.forEach.. n n n.foreach n" }, { "answer_id": 74309550, "author": "Jared A Sutton", "author...
2022/11/03
[ "https://Stackoverflow.com/questions/74308847", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6105256/" ]
74,308,861
<p>I need to retrieve first and second post ID of current taxonomy page.</p> <p>So for example when I'm on page mywebsite.com/tag/Gaming-laptop I have lists of laptops with tag &quot;gaming laptop&quot; i do need to get post ID of first and second laptop that was displayed by current taxonomy.</p> <p>I was looking in w...
[ { "answer_id": 74308927, "author": "Zach J.", "author_id": 20276330, "author_profile": "https://Stackoverflow.com/users/20276330", "pm_score": 1, "selected": false, "text": "n > 4 n.forEach.. n n n.foreach n" }, { "answer_id": 74309550, "author": "Jared A Sutton", "author...
2022/11/03
[ "https://Stackoverflow.com/questions/74308861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6179361/" ]
74,308,897
<p>Given 3 int's &quot;start&quot;, &quot;end&quot;, and &quot;factor&quot;, using a loop, count how many multiples of &quot;factor&quot; occur between start and end (inclusive).</p> <p>I was given this question on a lab for my first programming class. I've been stuck on it for a few days now, and whenever I reach out ...
[ { "answer_id": 74308927, "author": "Zach J.", "author_id": 20276330, "author_profile": "https://Stackoverflow.com/users/20276330", "pm_score": 1, "selected": false, "text": "n > 4 n.forEach.. n n n.foreach n" }, { "answer_id": 74309550, "author": "Jared A Sutton", "author...
2022/11/03
[ "https://Stackoverflow.com/questions/74308897", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20411373/" ]
74,308,898
<p>I have multiple rectangles on a x-y plane which are not rotated. How do I check if these rectangles intersect with a n-sized polygon?</p> <p>I drew a picture here for clarity. <a href="https://i.stack.imgur.com/76xQf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/76xQf.png" alt="enter image descr...
[ { "answer_id": 74314959, "author": "Mark Setchell", "author_id": 2836621, "author_profile": "https://Stackoverflow.com/users/2836621", "pm_score": 0, "selected": false, "text": "PIL Image np.add() np.unique() np.where() #!/usr/bin/env python3\n\nimport numpy as np\nimport cv2\n\n# Make c...
2022/11/03
[ "https://Stackoverflow.com/questions/74308898", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12293384/" ]
74,308,911
<p>I am trying to create tuples from 2 input. For example, my program will ask how many people is there. Let's say I write 3. The program will ask profession of each one and his salary. After that, I want the program to display a tuple containing (profession, salary) is ascending order of salary. What im trying to achi...
[ { "answer_id": 74314959, "author": "Mark Setchell", "author_id": 2836621, "author_profile": "https://Stackoverflow.com/users/2836621", "pm_score": 0, "selected": false, "text": "PIL Image np.add() np.unique() np.where() #!/usr/bin/env python3\n\nimport numpy as np\nimport cv2\n\n# Make c...
2022/11/03
[ "https://Stackoverflow.com/questions/74308911", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20402809/" ]
74,308,950
<p>I have the following 3 <em>MySQL</em> tables.<br> I am storing bookings in the <code>bookings</code> table &amp; the event dates and times in separate MySQL tables.</p> <p>I want to have a MySQL query to list available times for a specific date.</p> <p>So if I enter date of value <code>1</code> it'll show no times a...
[ { "answer_id": 74309181, "author": "Barmar", "author_id": 1491895, "author_profile": "https://Stackoverflow.com/users/1491895", "pm_score": 2, "selected": true, "text": "NOT IN SELECT *\nFROM bookings_times\nWHERE id NOT IN (\n SELECT time_requested\n FROM bookings\n WHERE date_...
2022/11/03
[ "https://Stackoverflow.com/questions/74308950", "https://Stackoverflow.com", "https://Stackoverflow.com/users/644978/" ]
74,308,951
<p>I am trying to create a function to parse a string based on multiple delimiters, but in a hierarchical format: i.e., try the first delimiter, then the second, then the third, etc.</p> <p><a href="https://stackoverflow.com/questions/67574893/python-split-string-by-multiple-delimiters-following-a-hierarchy">This quest...
[ { "answer_id": 74309019, "author": "VPfB", "author_id": 5378816, "author_profile": "https://Stackoverflow.com/users/5378816", "pm_score": 3, "selected": true, "text": "for d in delims:\n result = inp.split(d, maxsplit=1)\n if len(result) == 2: \n return result\nreturn [inp] ...
2022/11/03
[ "https://Stackoverflow.com/questions/74308951", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4876561/" ]
74,308,962
<p>I have a dataframe looking like this:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>user</th> <th>user</th> </tr> </thead> <tbody> <tr> <td>2022-08-01</td> <td>Andy</td> </tr> <tr> <td>2022-08-04</td> <td>Mary</td> </tr> <tr> <td>2022-08-05</td> <td>Marc</td> </tr> <tr> <td>2022-08-01<...
[ { "answer_id": 74309148, "author": "Behzad Aslani Avilaq", "author_id": 15083206, "author_profile": "https://Stackoverflow.com/users/15083206", "pm_score": 1, "selected": false, "text": "df = pd.DataFrame({'date':['2022-08-01','2022-08-04','2022-08-05','2022-08-01'],\n ...
2022/11/03
[ "https://Stackoverflow.com/questions/74308962", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19023397/" ]
74,309,034
<p>I am trying to further my VBA skillset by automating some reporting I am responsible for, but I am getting a little stuck and after a couple of weeks of trying and asking co-workers, I haven't been able to find a way to move forward. I've tried to sterilize the JSON as little as possible, but enough so i don't get f...
[ { "answer_id": 74309148, "author": "Behzad Aslani Avilaq", "author_id": 15083206, "author_profile": "https://Stackoverflow.com/users/15083206", "pm_score": 1, "selected": false, "text": "df = pd.DataFrame({'date':['2022-08-01','2022-08-04','2022-08-05','2022-08-01'],\n ...
2022/11/03
[ "https://Stackoverflow.com/questions/74309034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19582239/" ]
74,309,079
<p>I'm currently doing self project inventory app and trying to implement filter and search.</p> <p>what I've done</p> <p>#views.py</p> <pre><code>from django_filters.rest_framework import DjangoFilterBackend from rest_framework import filters class ListInventories(generics.ListAPIView): serializer_class = In...
[ { "answer_id": 74309148, "author": "Behzad Aslani Avilaq", "author_id": 15083206, "author_profile": "https://Stackoverflow.com/users/15083206", "pm_score": 1, "selected": false, "text": "df = pd.DataFrame({'date':['2022-08-01','2022-08-04','2022-08-05','2022-08-01'],\n ...
2022/11/03
[ "https://Stackoverflow.com/questions/74309079", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18489452/" ]
74,309,088
<p>I believe the following is a relatively common pattern (the exact types used are not important, they're just for example):</p> <pre><code>std::vector&lt;std::string&gt; manufactureVector(int param1, const std::string&amp; param2) { std::vector&lt;std::string&gt; returnValue; // do some calculation with param...
[ { "answer_id": 74309999, "author": "apple apple", "author_id": 5980430, "author_profile": "https://Stackoverflow.com/users/5980430", "pm_score": 2, "selected": false, "text": "template <auto F>\nusing return_type_of = decltype(std::function{F})::result_type;\n\nint foo(int p){\n retur...
2022/11/03
[ "https://Stackoverflow.com/questions/74309088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5583443/" ]
74,309,097
<p>In the following case, I just want to count films of each category with a length plus 5 or minus 5 minutes (respective the current length LEN)? How can I add this condition to the statement after PARTITION BY?</p> <pre><code>SELECT film_id, title, category_name, length AS LEN, Count(film_id) OVER (PARTITION ...
[ { "answer_id": 74310249, "author": "Chris Maurer", "author_id": 5440883, "author_profile": "https://Stackoverflow.com/users/5440883", "pm_score": 0, "selected": false, "text": "With basequery AS (\n SELECT film_id, title, category_name, length AS LEN, \n FROM film INNER JOIN film_c...
2022/11/03
[ "https://Stackoverflow.com/questions/74309097", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20197912/" ]
74,309,107
<p>I am modifying the sample at <a href="https://github.com/cdk-patterns/serverless/tree/main/the-eventbridge-etl/typescript" rel="nofollow noreferrer">https://github.com/cdk-patterns/serverless/tree/main/the-eventbridge-etl/typescript</a> as I want to add a dashboard widget to my CloudFormation Stack that shows the Fa...
[ { "answer_id": 74310249, "author": "Chris Maurer", "author_id": 5440883, "author_profile": "https://Stackoverflow.com/users/5440883", "pm_score": 0, "selected": false, "text": "With basequery AS (\n SELECT film_id, title, category_name, length AS LEN, \n FROM film INNER JOIN film_c...
2022/11/03
[ "https://Stackoverflow.com/questions/74309107", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4332644/" ]
74,309,110
<p>I created a repository, on Artifactory, which includes a zip containing 2 folders. <a href="https://artifactory.healthcareit.net:443/artifactory/pi-generic-local/paymentintegrity-airflow-lib-plugins/paymentintegrity-airflow-libs-plugins-202211031330.zip" rel="nofollow noreferrer">https://artifactory.healthcareit.net...
[ { "answer_id": 74310249, "author": "Chris Maurer", "author_id": 5440883, "author_profile": "https://Stackoverflow.com/users/5440883", "pm_score": 0, "selected": false, "text": "With basequery AS (\n SELECT film_id, title, category_name, length AS LEN, \n FROM film INNER JOIN film_c...
2022/11/03
[ "https://Stackoverflow.com/questions/74309110", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16262955/" ]
74,309,167
<p>I have been browsing through similar questions but have found nothing that would fit the bill. I have three input / select fields and a working JS function to calculate the number. All I need now is to display it automatically upon the selection and number input.</p> <p><div class="snippet" data-lang="js" data-hide=...
[ { "answer_id": 74309272, "author": "Yannick Durden", "author_id": 9509765, "author_profile": "https://Stackoverflow.com/users/9509765", "pm_score": 0, "selected": false, "text": "let foo = document.getElementById(\"price\");\nlet price = Calculate();\nfoo.value = price;\n" }, { "...
2022/11/03
[ "https://Stackoverflow.com/questions/74309167", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19887229/" ]
74,309,179
<p>The following code is intended to update an emp record. However, if Zip is null, the data does not get updated.</p> <p>I did not write this code, and I am not sure of the original intention behind using this type of syntax and I don't see a benefit to it.</p> <p>Example: <code>zip = iif(zip&lt;&gt;@zip,@zip,zip)</c...
[ { "answer_id": 74309234, "author": "Patrick Hurst", "author_id": 18522514, "author_profile": "https://Stackoverflow.com/users/18522514", "pm_score": 0, "selected": false, "text": "DECLARE @table TABLE (zip NVARCHAR(10))\nINSERT INTO @table (zip) VALUES ('90210-1234')\n\nDECLARE @zip NVAR...
2022/11/03
[ "https://Stackoverflow.com/questions/74309179", "https://Stackoverflow.com", "https://Stackoverflow.com/users/425823/" ]
74,309,185
<p>I'm trying to create a neon-effect w/ a source image. I have included three images, the source, my current attempt &amp; a target. The program takes the image, finds the white-edges, &amp; calculates the distance from each pixel to the nearest white-edge (these parts both work fine); from there, I am struggling to f...
[ { "answer_id": 74309234, "author": "Patrick Hurst", "author_id": 18522514, "author_profile": "https://Stackoverflow.com/users/18522514", "pm_score": 0, "selected": false, "text": "DECLARE @table TABLE (zip NVARCHAR(10))\nINSERT INTO @table (zip) VALUES ('90210-1234')\n\nDECLARE @zip NVAR...
2022/11/03
[ "https://Stackoverflow.com/questions/74309185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18615293/" ]
74,309,188
<p>I am writing a program where I need to check if an object matches a certain type. The way it's written so far, you need to compare the character-array of the object with the character-array of the category you are looking for.</p> <p>I am using <strong>strcmp</strong> to do this, for the following code let's say tha...
[ { "answer_id": 74309234, "author": "Patrick Hurst", "author_id": 18522514, "author_profile": "https://Stackoverflow.com/users/18522514", "pm_score": 0, "selected": false, "text": "DECLARE @table TABLE (zip NVARCHAR(10))\nINSERT INTO @table (zip) VALUES ('90210-1234')\n\nDECLARE @zip NVAR...
2022/11/03
[ "https://Stackoverflow.com/questions/74309188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6454589/" ]
74,309,212
<p>Please, Can somebody help me. I need to do cross-platform app based on flutter as frontend, and there is problem with backend. I know python very well and I want use it for my app as backend. Is it possible to use python(backend) for flutter(frontend)?</p> <p>And I just started to learn flutter and don't knowing the...
[ { "answer_id": 74309234, "author": "Patrick Hurst", "author_id": 18522514, "author_profile": "https://Stackoverflow.com/users/18522514", "pm_score": 0, "selected": false, "text": "DECLARE @table TABLE (zip NVARCHAR(10))\nINSERT INTO @table (zip) VALUES ('90210-1234')\n\nDECLARE @zip NVAR...
2022/11/03
[ "https://Stackoverflow.com/questions/74309212", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20411120/" ]
74,309,308
<p>I have a table that contains an item ID, the date and the price. All items show their price for each day, but I want only to select the items that have not had their price change, and to show the days without change.</p> <p>An example of the table is</p> <div class="s-table-container"> <table class="s-table"> <thead...
[ { "answer_id": 74309452, "author": "HKTE", "author_id": 12412262, "author_profile": "https://Stackoverflow.com/users/12412262", "pm_score": 0, "selected": false, "text": "select id, date, price\nfrom (select t.*,\n max(case when price <> lag_price then date end) over (partiti...
2022/11/03
[ "https://Stackoverflow.com/questions/74309308", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20411505/" ]
74,309,314
<p>I am not sure where to apply the count to my Badge Component. The displayValue should have the count but I am not sure how to apply it.</p> <p><strong>EDITED :</strong> Counter is applied now but when I decrement the counter , after 0 , it should disappear. I have the logic for this and it works only when I apply ba...
[ { "answer_id": 74309452, "author": "HKTE", "author_id": 12412262, "author_profile": "https://Stackoverflow.com/users/12412262", "pm_score": 0, "selected": false, "text": "select id, date, price\nfrom (select t.*,\n max(case when price <> lag_price then date end) over (partiti...
2022/11/03
[ "https://Stackoverflow.com/questions/74309314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14410605/" ]
74,309,331
<p>When performing a curl with --ntlm, what is happening between the WWW-Authenticate header being sent back, and then then the second NTLM Authorization header being sent to finally return a 200?</p> <blockquote> <p>Authorization: NTLM xxxxxxxx</p> </blockquote> <p>&lt; HTTP/1.1 401 Unauthorized &lt; WWW-Authenticate:...
[ { "answer_id": 74310522, "author": "Iridium", "author_id": 381588, "author_profile": "https://Stackoverflow.com/users/381588", "pm_score": 2, "selected": false, "text": "WWW-Authenticate: NTLM InitializeSecurityContext Authorization: NTLM <base64 encoded client token #1> AcceptSecurityCo...
2022/11/03
[ "https://Stackoverflow.com/questions/74309331", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20384109/" ]
74,309,367
<p>In my project I need to update member's user attribute if it's empty.</p> <p>I have this code in the model:</p> <pre class="lang-php prettyprint-override"><code>class Member extends Model { public static function boot() { parent::boot(); self::saving(function ($model) { if (empty...
[ { "answer_id": 74309525, "author": "Ramil Huseynov", "author_id": 6711823, "author_profile": "https://Stackoverflow.com/users/6711823", "pm_score": 1, "selected": false, "text": "static::saving(function (self $model) {\n if (empty($model->user)) {\n $model->forceFill(['user' => $model...
2022/11/03
[ "https://Stackoverflow.com/questions/74309367", "https://Stackoverflow.com", "https://Stackoverflow.com/users/972828/" ]
74,309,412
<p>For example, I have a string <code>/something an-arg=some-value another-arg=another-value</code>.</p> <p>What would be the most straightforward way to extract <code>an-arg</code>'s value to a variable and <code>another-arg</code>'s value to another variable?</p> <p>To better exemplify, this is what I need to happen:...
[ { "answer_id": 74309535, "author": "Charles Duffy", "author_id": 14122, "author_profile": "https://Stackoverflow.com/users/14122", "pm_score": 3, "selected": true, "text": "#!/usr/bin/env bash\n# ^^^^- specifically, bash 4.0 or newer; NOT /bin/sh\n\ndeclare -A vars=( )\n\nre...
2022/11/03
[ "https://Stackoverflow.com/questions/74309412", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4734782/" ]
74,309,446
<p>I'm currently using Vue, nuxt3, and javascript for a front project.<br /> My goal right now is to create a function that gets the distance between to city given in the parameters. So I wanted to use the google matrix API.</p> <p>This is what I've tried to do :</p> <pre class="lang-js prettyprint-override"><code>cons...
[ { "answer_id": 74309535, "author": "Charles Duffy", "author_id": 14122, "author_profile": "https://Stackoverflow.com/users/14122", "pm_score": 3, "selected": true, "text": "#!/usr/bin/env bash\n# ^^^^- specifically, bash 4.0 or newer; NOT /bin/sh\n\ndeclare -A vars=( )\n\nre...
2022/11/03
[ "https://Stackoverflow.com/questions/74309446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20410210/" ]
74,309,458
<p>I am trying to do pd.wide_to_long and I want to separate based off of what is inside a parenthesis. I looked up the pandas manual <a href="https://pandas.pydata.org/docs/reference/api/pandas.wide_to_long.html#pandas-wide-to-long" rel="nofollow noreferrer">here</a> and the closes example is below. I changed the colum...
[ { "answer_id": 74309790, "author": "Scott Boston", "author_id": 6361531, "author_profile": "https://Stackoverflow.com/users/6361531", "pm_score": 2, "selected": true, "text": "df.columns = df.columns.str.replace(')','', regex=False)\npd.wide_to_long(df, stubnames=['A', 'B'], i=['id'], j=...
2022/11/03
[ "https://Stackoverflow.com/questions/74309458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14146065/" ]
74,309,471
<p>I've data as follows</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>AreaId</th> <th>AreaName</th> <th>Module</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>AAA</td> <td>Square</td> </tr> <tr> <td>2</td> <td>AAA</td> <td>Circle</td> </tr> <tr> <td>3</td> <td>BBB</td> <td>Square</td> </t...
[ { "answer_id": 74309579, "author": "Stuck at 1337", "author_id": 20091109, "author_profile": "https://Stackoverflow.com/users/20091109", "pm_score": 1, "selected": true, "text": "SELECT AreaName, SquareArea = [Square], CircleArea = [Circle]\n FROM dbo.YourTableName\n PIVOT (MAX(AreaID)...
2022/11/03
[ "https://Stackoverflow.com/questions/74309471", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20411821/" ]
74,309,560
<p>sorry for the basic question, new to terraform. I am running through some sample examples in terraform where lots of example show declaration of local variable, i.e. locals, by name it sounds like the scope of it, is local to the file. instead of locals, we should be able to pass this list as variable right? such as...
[ { "answer_id": 74309579, "author": "Stuck at 1337", "author_id": 20091109, "author_profile": "https://Stackoverflow.com/users/20091109", "pm_score": 1, "selected": true, "text": "SELECT AreaName, SquareArea = [Square], CircleArea = [Circle]\n FROM dbo.YourTableName\n PIVOT (MAX(AreaID)...
2022/11/03
[ "https://Stackoverflow.com/questions/74309560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12696928/" ]
74,309,570
<p>I'm trying to implement a priority queue in Python using heapq as a base. It works fine when inputting values directly, and then popping them, but when values are updated or removed in between, the values begin to pop in the wrong order.</p> <p>Since changing values directly (I have already tested this) does not mai...
[ { "answer_id": 74309768, "author": "Tim Roberts", "author_id": 1883316, "author_profile": "https://Stackoverflow.com/users/1883316", "pm_score": 0, "selected": false, "text": "remove def remove(self, item: str):\n self.heap.remove(self.key_values[item])\n del self.key_v...
2022/11/03
[ "https://Stackoverflow.com/questions/74309570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17750765/" ]
74,309,576
<p>Trying to access components via findByViewId and get null The problem is in this line:</p> <p>(I cannot connect my viewxml to the class)</p> <pre><code>// HERE I GET NULL **_addButton = context.findViewById(R.id.buttonAdd);** </code></pre> <p>I have an activity: with this OnCreate:</p> <p>MainActivity class<...
[ { "answer_id": 74326420, "author": "Tammy Roytvarf", "author_id": 20411760, "author_profile": "https://Stackoverflow.com/users/20411760", "pm_score": 0, "selected": false, "text": "ayoutInflater inflater = (LayoutInflater)this.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE...
2022/11/03
[ "https://Stackoverflow.com/questions/74309576", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20411760/" ]
74,309,584
<p>I have an example df:</p> <pre><code>df &lt;- data.frame( group = c(&quot;a&quot;, &quot;a&quot;, &quot;a&quot;, &quot;a&quot;, &quot;b&quot;, &quot;b&quot;, &quot;c&quot;, &quot;c&quot;, &quot;c&quot;, &quot;c&quot;, &quot;d&quot;, &quot;d&quot;, &quot;d&quot;), col1 = c(-36,10,-5,1, 0, 5,10, 5, 20, 2, -1, 1, 2...
[ { "answer_id": 74326420, "author": "Tammy Roytvarf", "author_id": 20411760, "author_profile": "https://Stackoverflow.com/users/20411760", "pm_score": 0, "selected": false, "text": "ayoutInflater inflater = (LayoutInflater)this.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE...
2022/11/03
[ "https://Stackoverflow.com/questions/74309584", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8864308/" ]
74,309,587
<p>i am trying to built a little game with random. In this game you have the choice to answer a question with &quot;a1&quot; and &quot;a2&quot; for &quot;Answer 1&quot; and &quot;Answer 2&quot;. At the End it should print, if you chose the right Answer. To make it a little more dynamic i want that the Option for &quot;...
[ { "answer_id": 74326420, "author": "Tammy Roytvarf", "author_id": 20411760, "author_profile": "https://Stackoverflow.com/users/20411760", "pm_score": 0, "selected": false, "text": "ayoutInflater inflater = (LayoutInflater)this.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE...
2022/11/03
[ "https://Stackoverflow.com/questions/74309587", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20411850/" ]
74,309,671
<p>If anyone has any experience with the BinanceUS api please let me know if you have had this problem. I have read the docs thoroughly and can not come up with an adequate solution. Yes I have read the docs for both BinanceUS and node-binance-us-api. This is a test of a STOP_LOSS data object to be sent with credential...
[ { "answer_id": 74326420, "author": "Tammy Roytvarf", "author_id": 20411760, "author_profile": "https://Stackoverflow.com/users/20411760", "pm_score": 0, "selected": false, "text": "ayoutInflater inflater = (LayoutInflater)this.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE...
2022/11/03
[ "https://Stackoverflow.com/questions/74309671", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12835213/" ]
74,309,708
<p>I have a scenario to update 'NULL' string if column has no value that means null. So, i ran multiple update query to set the 'NULL' string.</p> <pre><code>update codesets set system_name='NULL' where system_name is null update codesets set column_name='NULL' where column_name is null update codesets set table_name='...
[ { "answer_id": 74309794, "author": "Alex Poole", "author_id": 266304, "author_profile": "https://Stackoverflow.com/users/266304", "pm_score": 2, "selected": false, "text": "update codesets\nset system_name=coalesce(system_name, 'NULL'),\n column_name=coalesce(column_name, 'NULL'),\n ...
2022/11/03
[ "https://Stackoverflow.com/questions/74309708", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2848031/" ]
74,309,719
<ul> <li>Created a new &quot;WPF Application&quot; .NET 6.0 project There creating classical Application Settings was easy in project-&gt;properties-&gt;Settings-&gt;&quot;Create or open application settings&quot;</li> <li>Observed: the project gets a new folder &quot;Properties&quot; which has a yellow Folder icon wit...
[ { "answer_id": 74309794, "author": "Alex Poole", "author_id": 266304, "author_profile": "https://Stackoverflow.com/users/266304", "pm_score": 2, "selected": false, "text": "update codesets\nset system_name=coalesce(system_name, 'NULL'),\n column_name=coalesce(column_name, 'NULL'),\n ...
2022/11/03
[ "https://Stackoverflow.com/questions/74309719", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4489263/" ]
74,309,733
<p>I am trying to make a design where there are two columns in a box. One column contains an image and takes up 1/4 of the width under normal circumstances, and 1/2 of the width when hovered over. The other column contains a decent amount of text and takes up whatever space is left.</p> <p>I am running into an issue w...
[ { "answer_id": 74309812, "author": "Johannes", "author_id": 5641669, "author_profile": "https://Stackoverflow.com/users/5641669", "pm_score": 2, "selected": true, "text": "flex-shrink: 0; flex-grow: 0; html,\nbody {\n height: 100%;\n width: 100%;\n min-width: 100%;\n}\n\n.container {\...
2022/11/03
[ "https://Stackoverflow.com/questions/74309733", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5667338/" ]
74,309,738
<p>Let's say I have this array</p> <pre><code>const testData = [ { properties: { number: 1, name: 'haha' } , second: 'this type'}, ['one', 'two', 'three'], ]; </code></pre> <p>I want to get the value of 'second' which is 'this type' like this:</p> <pre><code> const wantToGet = testData[0].second; </code></pre> <p>B...
[ { "answer_id": 74309836, "author": "Federkun", "author_id": 711206, "author_profile": "https://Stackoverflow.com/users/711206", "pm_score": 2, "selected": false, "text": "testData {properties: {number: number; name: string;} testData[0] const testData = [\n { properties: { number: 1, na...
2022/11/03
[ "https://Stackoverflow.com/questions/74309738", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13401991/" ]
74,309,754
<p>This is the problem. The <code>print</code> statement in the <code>populateProviders</code> function is not getting run.</p> <pre><code>class _MyHomePageState extends State&lt;MyHomePage&gt; { Future&lt;void&gt; loadData = Future( () =&gt; null, ); bool hostBottomNavigationBar = true; void toggleHostBo...
[ { "answer_id": 74309861, "author": "hasan karaman", "author_id": 11544943, "author_profile": "https://Stackoverflow.com/users/11544943", "pm_score": 1, "selected": false, "text": " @override\nWidget build(BuildContext context) {\n return \n Consumer2<ExploreData, HostEvents>(\n ...
2022/11/03
[ "https://Stackoverflow.com/questions/74309754", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8386132/" ]
74,309,755
<p>I've seen a lot of post on removing duplicates but those don't apply to my case. The idea is I only care about whether the dataset contain IDs associate with more than one industries, if an ID has more than one industry, completely remove that ID and rows associate with it from the dataset. Can this be done with SQL...
[ { "answer_id": 74309861, "author": "hasan karaman", "author_id": 11544943, "author_profile": "https://Stackoverflow.com/users/11544943", "pm_score": 1, "selected": false, "text": " @override\nWidget build(BuildContext context) {\n return \n Consumer2<ExploreData, HostEvents>(\n ...
2022/11/03
[ "https://Stackoverflow.com/questions/74309755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6846071/" ]
74,309,756
<p>I want to store structs in HashMap but also reference to same structs inside another struct vector field.</p> <p>Let's say I have a tree build of two types of structs Item and Relation.</p> <p>I am storing all the relations in HashMap by their id, but I also want to fill each item.out_relations vector with mutable r...
[ { "answer_id": 74309861, "author": "hasan karaman", "author_id": 11544943, "author_profile": "https://Stackoverflow.com/users/11544943", "pm_score": 1, "selected": false, "text": " @override\nWidget build(BuildContext context) {\n return \n Consumer2<ExploreData, HostEvents>(\n ...
2022/11/03
[ "https://Stackoverflow.com/questions/74309756", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3043073/" ]