qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,394,965
<p>I have a function that returns an interpolated string for example.</p> <pre><code>`This is my string $t(some.value)` </code></pre> <p>The issue I am facing is that <code>t</code> is returned after I get the interpolated string. For example</p> <pre><code>const mainFunction = (targetString) =&gt; { const { t...
[ { "answer_id": 74396252, "author": "Yukulélé", "author_id": 806169, "author_profile": "https://Stackoverflow.com/users/806169", "pm_score": -1, "selected": false, "text": "`This is my string ${t(some.value)}`\n" }, { "answer_id": 74445952, "author": "agusgambina", "author...
2022/11/10
[ "https://Stackoverflow.com/questions/74394965", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2853555/" ]
74,394,976
<p>I have a data set like this</p> <pre><code>df1&lt;-data.frame(ID=c(1,2,3,4),colA=c(101,102,103,104),colB=c(201,202,203,204)) df2&lt;-data.frame(var_id=c(101,102,103,104,201,202,203,204),var_value=c(&quot;A&quot;,&quot;B&quot;,&quot;C&quot;,&quot;D&quot;,&quot;E&quot;,&quot;F&quot;,&quot;G&quot;,&quot;H&quot;)) </co...
[ { "answer_id": 74396252, "author": "Yukulélé", "author_id": 806169, "author_profile": "https://Stackoverflow.com/users/806169", "pm_score": -1, "selected": false, "text": "`This is my string ${t(some.value)}`\n" }, { "answer_id": 74445952, "author": "agusgambina", "author...
2022/11/10
[ "https://Stackoverflow.com/questions/74394976", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20472213/" ]
74,394,999
<p>When trying to use EarlyStopping for Seq2SeqTrainer, e.g. patience was set to 1 and threshold 1.0:</p> <pre><code>training_args = Seq2SeqTrainingArguments( output_dir='./', num_train_epochs=3, per_device_train_batch_size=4, per_device_eval_batch_size=4, logging_steps=1, save_steps=5, eval...
[ { "answer_id": 74396252, "author": "Yukulélé", "author_id": 806169, "author_profile": "https://Stackoverflow.com/users/806169", "pm_score": -1, "selected": false, "text": "`This is my string ${t(some.value)}`\n" }, { "answer_id": 74445952, "author": "agusgambina", "author...
2022/11/10
[ "https://Stackoverflow.com/questions/74394999", "https://Stackoverflow.com", "https://Stackoverflow.com/users/610569/" ]
74,395,003
<p>I have a data which comes from GitHub Api <code>https://docs.github.com/en/rest/repos/repos#list-repository-languages</code>. It is a Array of objects of every repository of specified user, the first problem is that the value shown for each language is the number of bytes of code written in that language. So it look...
[ { "answer_id": 74395093, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 0, "selected": false, "text": "JavaScript: 64677,\nHTML: 17832,\nCSS: 8154,\nDockerfile: 2859,\n sum = 64677 + 17832 + 8154 + 2859 = 93522\n\nJavaSc...
2022/11/10
[ "https://Stackoverflow.com/questions/74395003", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17885211/" ]
74,395,019
<p>In a ViewModel i load data from a FirebaseDatabase and showing it in a CollectionView.</p> <pre><code> public MainViewModel() { var collection = firebase .Child(&quot;Foto/&quot;) .AsObservable&lt;Fotos&gt;() .Subscribe((dbevent) =&gt; ...
[ { "answer_id": 74395414, "author": "FreakyAli", "author_id": 7462031, "author_profile": "https://Stackoverflow.com/users/7462031", "pm_score": 1, "selected": false, "text": "public class AlphanumComparator : IComparer<object>\n{\n private enum ChunkType { Alphanumeric, Numeric };\n\n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74395019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10867491/" ]
74,395,078
<p>I use Sambroadcaster</p> <p>change color of a text in php with echo</p> <p>this is the code:</p> <pre><code>&lt;span id=&quot;currently-playing-title&quot;&gt;&lt;?php echo $currentSong-&gt;artist_title;; ?&gt;&lt;/span&gt;&lt;?php if ($currentSong-&gt;isRequested) echo &quot;[Request]&quot;; ?&gt; </code></pre> <p>...
[ { "answer_id": 74395414, "author": "FreakyAli", "author_id": 7462031, "author_profile": "https://Stackoverflow.com/users/7462031", "pm_score": 1, "selected": false, "text": "public class AlphanumComparator : IComparer<object>\n{\n private enum ChunkType { Alphanumeric, Numeric };\n\n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74395078", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20472286/" ]
74,395,103
<p>I have a array of objects with the property status, where I want to return false IF</p> <p>I have (zero slots with &quot;return&quot; or zero &quot;ordered&quot; status or 1 slot with &quot;verification&quot; or 1 &quot;active&quot; status)</p> <pre><code>const slots = [ { status: 'void' }, { status: '...
[ { "answer_id": 74395414, "author": "FreakyAli", "author_id": 7462031, "author_profile": "https://Stackoverflow.com/users/7462031", "pm_score": 1, "selected": false, "text": "public class AlphanumComparator : IComparer<object>\n{\n private enum ChunkType { Alphanumeric, Numeric };\n\n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74395103", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20176092/" ]
74,395,110
<p>I a column which has dates in <code>yyyymdd</code> and <code>yyyymmdd</code> format. I want to convert the yyyymdd to yyyymmdd.</p> <p>for example I have dates <code>2022520</code> and <code>20220520</code>. how can I convert 202250 to 20220520 using SSIS?</p> <p>I tired the following</p> <ol> <li>using len I counte...
[ { "answer_id": 74395414, "author": "FreakyAli", "author_id": 7462031, "author_profile": "https://Stackoverflow.com/users/7462031", "pm_score": 1, "selected": false, "text": "public class AlphanumComparator : IComparer<object>\n{\n private enum ChunkType { Alphanumeric, Numeric };\n\n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74395110", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20472322/" ]
74,395,119
<p>So I'm working on this code for practice and its supposed to take all the numbers between 2 &quot;-&quot;s and add them together. I'm supposed to convert the strings to ints as part of the problem. (This is my first time using this website so apologies if anything is formatted oddly)</p> <p>This is my first time usi...
[ { "answer_id": 74395414, "author": "FreakyAli", "author_id": 7462031, "author_profile": "https://Stackoverflow.com/users/7462031", "pm_score": 1, "selected": false, "text": "public class AlphanumComparator : IComparer<object>\n{\n private enum ChunkType { Alphanumeric, Numeric };\n\n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74395119", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20472273/" ]
74,395,149
<p>I am working on the way to transform or parse elements of a plain-text file that contains multiple records that look like the following:</p> <p>US/CIV/JOHN SMITH/-/-/Z/-/2018-03-25/BLUE/ 159/AZ/AUDI/2015// US/CTR/BILL STONE/5/TEXT/G/AU24/2021-06-18/ GREEN/174/CO/BENZ/2019//</p> <p>These records separate elements usi...
[ { "answer_id": 74395414, "author": "FreakyAli", "author_id": 7462031, "author_profile": "https://Stackoverflow.com/users/7462031", "pm_score": 1, "selected": false, "text": "public class AlphanumComparator : IComparer<object>\n{\n private enum ChunkType { Alphanumeric, Numeric };\n\n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74395149", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20471867/" ]
74,395,175
<p>We found this code online and we are trying to make it work with our project but need help with one small part...</p> <pre><code> function ajsearch () { var data = new FormData(); data.append(&quot;search&quot;, document.getElementById(&quot;search&quot;).value); data.append(&quot;ajax&quot;, 1)...
[ { "answer_id": 74395235, "author": "Nijat Mursali", "author_id": 10489887, "author_profile": "https://Stackoverflow.com/users/10489887", "pm_score": 2, "selected": true, "text": "- {res[\"state\"]}.split(' ').join('-') ${res[\"state\"]}.split(' ').join('-').toLowerCase()" }, { "a...
2022/11/10
[ "https://Stackoverflow.com/questions/74395175", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9041793/" ]
74,395,195
<p>I have a list of the lists that contain strings, like so :</p> <pre><code>[['1 0'], ['2 0'], ['3 1 2']] </code></pre> <p>How can I convert it to an adjacency list in Python please like this: (all ints)</p> <pre><code>{ 1: 0, 2:0, 3: 1,2 } </code></pre> <p>My attempts so far have gotten me to this:</p> <pre><...
[ { "answer_id": 74395241, "author": "jprebys", "author_id": 3268228, "author_profile": "https://Stackoverflow.com/users/3268228", "pm_score": 2, "selected": true, "text": "adj_dict = {}\nfor inner_list in outer_list:\n values = [int(x) for x in inner_list[0].split()]\n adj_dict[valu...
2022/11/10
[ "https://Stackoverflow.com/questions/74395195", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18354441/" ]
74,395,230
<p>I am trying to drop some columns that have less than 5 valid values. Here is an example dataset.</p> <pre><code>df &lt;- data.frame(id = c(1,2,3,4,5,6,7,8,9,10), i1 = c(0,1,1,1,1,0,0,1,NA,1), i2 = c(1,0,0,1,0,1,1,0,0,NA), i3 = c(NA,NA,NA,NA,NA,NA,NA,NA,NA,0), ...
[ { "answer_id": 74395272, "author": "Santiago", "author_id": 13507658, "author_profile": "https://Stackoverflow.com/users/13507658", "pm_score": 4, "selected": true, "text": "df[colSums(!is.na(df)) >= 5]\n" }, { "answer_id": 74395274, "author": "Baraliuh", "author_id": 111...
2022/11/10
[ "https://Stackoverflow.com/questions/74395230", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5933306/" ]
74,395,257
<p>I'm working on a Springboot app that includes a task that's executed on a schedule. It typically takes about two to three minutes to run.</p> <pre class="lang-java prettyprint-override"><code>@Scheduled(cron = &quot;* */30 * * * *&quot;) public void stageOfferUpdates() throws SQLException { ... } </code></pre> <...
[ { "answer_id": 74395272, "author": "Santiago", "author_id": 13507658, "author_profile": "https://Stackoverflow.com/users/13507658", "pm_score": 4, "selected": true, "text": "df[colSums(!is.na(df)) >= 5]\n" }, { "answer_id": 74395274, "author": "Baraliuh", "author_id": 111...
2022/11/10
[ "https://Stackoverflow.com/questions/74395257", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9671608/" ]
74,395,260
<p>I have tried looking for a way to create a dataframe of columns and their unique values. I know this has less use cases but would be a great way to get an initial idea of unique values. It would look something like this....</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>State</th> <th>C...
[ { "answer_id": 74395261, "author": "trey hannam", "author_id": 13972322, "author_profile": "https://Stackoverflow.com/users/13972322", "pm_score": 0, "selected": false, "text": "def create_unique_df(df) -> pd.DataFrame:\n \"\"\" take a dataframe and creates a new one containing unique...
2022/11/10
[ "https://Stackoverflow.com/questions/74395260", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13972322/" ]
74,395,265
<p>I'm not an expert at all on this but I'm trying to create an option list so they can choose either 1/4, 1/2 or 3/4 from the ComboBox for the userform I have created. The Data comes from Sheet1 that perfectly shows the correct format for each value but when you run the form the ComboBox shows instead 0.25, 0.5 or 0.7...
[ { "answer_id": 74395375, "author": "Cyril", "author_id": 3233363, "author_profile": "https://Stackoverflow.com/users/3233363", "pm_score": 2, "selected": false, "text": ".text Private Sub UserForm_Initialize()\n With Sheets(1)\n Dim textArray As Variant\n ReDim textArray...
2022/11/10
[ "https://Stackoverflow.com/questions/74395265", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20472344/" ]
74,395,283
<p>I am able to view my site (html)in the browser but none of my mark-up is working. I have checked my stylesheet links for types, settings.py, but I am at a lost.<br /> When I run my site I am getting the below responses in my terminal.</p> <pre><code>[10/Nov/2022 20:46:23] &quot;GET / HTTP/1.1&quot; 200 168 [10/Nov/...
[ { "answer_id": 74395718, "author": "ckabah", "author_id": 20472435, "author_profile": "https://Stackoverflow.com/users/20472435", "pm_score": 3, "selected": true, "text": "STATIC_URL = 'static/'\nSTATICFILES_DIRS = [os.path.join(BASE_DIR, 'static/')]\nSTATIC_ROOT = os.path.join(BASE_DIR,...
2022/11/10
[ "https://Stackoverflow.com/questions/74395283", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20472397/" ]
74,395,284
<p>I recently benchmarked my framework and noticed that it allocates tons of garbage.</p> <p>I'm using a <code>Channel&lt;T&gt;</code> and the <code>TryRead</code> or <code>ReadAsync</code> operation allocates memory every single call. So I exchanged that with a <code>BlockingCollection&lt;T&gt;</code> which also alloc...
[ { "answer_id": 74395718, "author": "ckabah", "author_id": 20472435, "author_profile": "https://Stackoverflow.com/users/20472435", "pm_score": 3, "selected": true, "text": "STATIC_URL = 'static/'\nSTATICFILES_DIRS = [os.path.join(BASE_DIR, 'static/')]\nSTATIC_ROOT = os.path.join(BASE_DIR,...
2022/11/10
[ "https://Stackoverflow.com/questions/74395284", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5801049/" ]
74,395,293
<p>My main function</p> <pre><code> for record in event[&quot;Records&quot;]: payload = json.loads(record[&quot;body&quot;]) if payload[&quot;action&quot;] != &quot;Create&quot;: continue issue_id = payload[&quot;documentId&quot;][&quot;id&quot;] issue = client.get_issue(...
[ { "answer_id": 74395358, "author": "Neposis", "author_id": 11717865, "author_profile": "https://Stackoverflow.com/users/11717865", "pm_score": 2, "selected": false, "text": "issue = 0\nfor record in event[\"Records\"]:\n payload = json.loads(record[\"body\"])\n if payload[\"action\...
2022/11/10
[ "https://Stackoverflow.com/questions/74395293", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19396056/" ]
74,395,297
<p>I'm making a 2D game and I want my player when he is moving left and right based on the <strong>Input Key</strong> to switch the side of my player's sprite.</p> <p>The way I'm handling it so far which it works for now is by changing the local scale on the X-Axis like this:</p> <pre><code>void Update() { if (Inpu...
[ { "answer_id": 74395469, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 2, "selected": true, "text": "Flip Sprite Renderer flip private SpriteRenderer spriteRenderer;\n\nvoid Start()\n{\n spriteRenderer = gameObject.GetCompo...
2022/11/10
[ "https://Stackoverflow.com/questions/74395297", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16523060/" ]
74,395,303
<p>I have some python that needs to send a pickled numpy array to stdout. If I try to</p> <pre><code>numpy.save(sys.stdout.buffer, data, allow_pickle=False) </code></pre> <p>I get the following error</p> <pre><code>Traceback (most recent call last): File &quot;/home/thoth/work/TandbergLabs/2022/iot-rendezvous/pictur...
[ { "answer_id": 74395502, "author": "Ahmed AEK", "author_id": 15649230, "author_profile": "https://Stackoverflow.com/users/15649230", "pm_score": 3, "selected": true, "text": "io.BytesIO import numpy as np\nimport io\nimport sys\nbuffer = io.BytesIO()\narr = np.array([1, 2, 3])\nnp.save(b...
2022/11/10
[ "https://Stackoverflow.com/questions/74395303", "https://Stackoverflow.com", "https://Stackoverflow.com/users/995935/" ]
74,395,324
<p>I have a collection where I want to find one data based on another object data:</p> <pre class="lang-js prettyprint-override"><code>const data = [ { _id :0, name:&quot;jane&quot;, joined : ISODate(&quot;2011-03-02&quot;), likes : 30, dislikes: 9}, { _id :1, name: &quot;joe&quot;, joined : ISODate(&quot;2012-07-...
[ { "answer_id": 74395502, "author": "Ahmed AEK", "author_id": 15649230, "author_profile": "https://Stackoverflow.com/users/15649230", "pm_score": 3, "selected": true, "text": "io.BytesIO import numpy as np\nimport io\nimport sys\nbuffer = io.BytesIO()\narr = np.array([1, 2, 3])\nnp.save(b...
2022/11/10
[ "https://Stackoverflow.com/questions/74395324", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16665539/" ]
74,395,361
<p>If the discrimated union is defined as follows:</p> <pre><code>enum KEYS { A= 'a', B= 'b' ... } type TUnion = | { keyType: KEYS.A; items: AType[] | { keyType: KEYS.B; items: BType[] ... </code></pre> <p>How can I define the type for an object where the key is a <code>keyType</code> and the value is the...
[ { "answer_id": 74395499, "author": "caTS", "author_id": 18244921, "author_profile": "https://Stackoverflow.com/users/18244921", "pm_score": 3, "selected": true, "text": "type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? { [K in keyof I]...
2022/11/10
[ "https://Stackoverflow.com/questions/74395361", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1827442/" ]
74,395,366
<p>Writing a function to check an input string for numbers, and if there are any, to randomize every digit, letter, and punctuation mark in the string. (i.e. &quot;hello3.14&quot; might become &quot;jdbme6?21&quot;)</p> <p>This code works (and the goal makes sense in context, I promise) but it sure seems redundant. Not...
[ { "answer_id": 74395499, "author": "caTS", "author_id": 18244921, "author_profile": "https://Stackoverflow.com/users/18244921", "pm_score": 3, "selected": true, "text": "type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? { [K in keyof I]...
2022/11/10
[ "https://Stackoverflow.com/questions/74395366", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19602996/" ]
74,395,422
<p>I am making a sidebar for my site and I want the side bar to fill the rest of the screen but also scroll separate to the right of the screen when it overflows with other elements inside. When I use 100% for the height the element only goes to the height of the last element inside of it.</p> <p>I am trying to get it ...
[ { "answer_id": 74395499, "author": "caTS", "author_id": 18244921, "author_profile": "https://Stackoverflow.com/users/18244921", "pm_score": 3, "selected": true, "text": "type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? { [K in keyof I]...
2022/11/10
[ "https://Stackoverflow.com/questions/74395422", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20471402/" ]
74,395,439
<p>I have my react frontend which is very basic right now as i just want to retrieve some data from my backend api written in node js which calls and external api the data is fetched properly to the backend as I have tested it by printing the data. The issue is that my promise on the frontend is never resolved meaning ...
[ { "answer_id": 74395546, "author": "JigolKa", "author_id": 16651308, "author_profile": "https://Stackoverflow.com/users/16651308", "pm_score": -1, "selected": false, "text": "<button onClick={async () => { await getActivities() }}>Get All Data</button>\n" }, { "answer_id": 744396...
2022/11/10
[ "https://Stackoverflow.com/questions/74395439", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14712903/" ]
74,395,451
<p>I am using the following terraform to create windows EC2 instance. The instance is launched successfully, but in AWS console I see hyphenated name for EC2 instance.<br /> For brevity purpose I have removed some TF code</p> <p><a href="https://i.stack.imgur.com/8EvzS.png" rel="nofollow noreferrer"><img src="https://i...
[ { "answer_id": 74395546, "author": "JigolKa", "author_id": 16651308, "author_profile": "https://Stackoverflow.com/users/16651308", "pm_score": -1, "selected": false, "text": "<button onClick={async () => { await getActivities() }}>Get All Data</button>\n" }, { "answer_id": 744396...
2022/11/10
[ "https://Stackoverflow.com/questions/74395451", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3862378/" ]
74,395,467
<p>I have made a Intellij project and tried to commit it to Github and got this error:</p> <blockquote> <p>Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in...
[ { "answer_id": 74395546, "author": "JigolKa", "author_id": 16651308, "author_profile": "https://Stackoverflow.com/users/16651308", "pm_score": -1, "selected": false, "text": "<button onClick={async () => { await getActivities() }}>Get All Data</button>\n" }, { "answer_id": 744396...
2022/11/10
[ "https://Stackoverflow.com/questions/74395467", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20472533/" ]
74,395,496
<p>I`m trying to create a profile screen for my website with an uploaded profile picture. I want the user's uploaded image to fill the container. As this would ensure that all of the profile pictures are the same size and in the same place</p> <pre><code>&lt;div class=&quot;row d-flex justify-content-center&quot;&gt; ...
[ { "answer_id": 74395876, "author": "Timothy Louwet", "author_id": 8722338, "author_profile": "https://Stackoverflow.com/users/8722338", "pm_score": 0, "selected": false, "text": "<div class=\"d-flex justify-content-center\">\n <div class=\"border border-danger\" style=\"width: 190px;h...
2022/11/10
[ "https://Stackoverflow.com/questions/74395496", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17732797/" ]
74,395,559
<p>I have a list like <code>[&quot;A&quot;, &quot;A&quot;, &quot;B&quot;, &quot;C&quot;, &quot;D&quot;, &quot;D&quot;, &quot;E&quot;]</code> and I want to delete completely elements which occur more then once.</p> <p>In this case the output would be <code>[&quot;B&quot;, &quot;C&quot;, &quot;E&quot;]</code></p> <p>I've...
[ { "answer_id": 74396509, "author": "Adam Millerchip", "author_id": 1225617, "author_profile": "https://Stackoverflow.com/users/1225617", "pm_score": 1, "selected": false, "text": "-- dupes = list -- Enum.uniq(list)\nEnum.reject(list, &(&1 in dupes))\n" }, { "answer_id": 74396683,...
2022/11/10
[ "https://Stackoverflow.com/questions/74395559", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5240483/" ]
74,395,572
<p>I need to copy all data from one column <code>customerId</code> to another new column (<code>customerIds</code> - which is in different format) in the same table. There is a column called <code>customerId</code> whose type is <code>bigint</code> and I need to copy data from this column to <code>customerIds</code> wh...
[ { "answer_id": 74395648, "author": "nbk", "author_id": 5193536, "author_profile": "https://Stackoverflow.com/users/5193536", "pm_score": 2, "selected": true, "text": "CREATE TABLE table_name (customerId BIGINT, customerIds BIGINT[]);\n\n\nINSERT INTO table_name VALUES(1);\nINSERT IN...
2022/11/10
[ "https://Stackoverflow.com/questions/74395572", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18393248/" ]
74,395,574
<p>I'm writing a script to print out some info scraped from a certain website, I'm using the <code>.includes()</code> to find and print a number if that number falls inside a certain range from 1,000 to 100,000 but I can't figure out how to do that at all. The solution I'm trying right now is long and redundant and not...
[ { "answer_id": 74395660, "author": "Sanusi hassan", "author_id": 10944954, "author_profile": "https://Stackoverflow.com/users/10944954", "pm_score": 0, "selected": false, "text": "// helper\nfunction range(start, end) {\n return Array(end - start + 1).fill().map((_, idx) => start + idx)...
2022/11/10
[ "https://Stackoverflow.com/questions/74395574", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17164833/" ]
74,395,581
<p>Im tryng to repeat react element for certain amount of times. I have used for loop before and it was working with simple HTML elements. Now it wont work, constantly getting error that 'fields' array is undefined. Here is my code:</p> <pre><code>import { useRef, useState } from 'react'; import SecondForm from './Seco...
[ { "answer_id": 74395660, "author": "Sanusi hassan", "author_id": 10944954, "author_profile": "https://Stackoverflow.com/users/10944954", "pm_score": 0, "selected": false, "text": "// helper\nfunction range(start, end) {\n return Array(end - start + 1).fill().map((_, idx) => start + idx)...
2022/11/10
[ "https://Stackoverflow.com/questions/74395581", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18621629/" ]
74,395,592
<p>I'm trying to work with data sent from postman, array of objects. I need to write all data into database, so I use mapping of array, and get undefined</p> <pre><code>const providers = await req.body.providers.map((provider) =&gt; { ProviderService.createProvider(provider.name, container._id); }); Promise.all(pro...
[ { "answer_id": 74395660, "author": "Sanusi hassan", "author_id": 10944954, "author_profile": "https://Stackoverflow.com/users/10944954", "pm_score": 0, "selected": false, "text": "// helper\nfunction range(start, end) {\n return Array(end - start + 1).fill().map((_, idx) => start + idx)...
2022/11/10
[ "https://Stackoverflow.com/questions/74395592", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17676671/" ]
74,395,599
<p>I have following regex:</p> <pre><code>/^(.*[^0-9])(.[a-z]+[0-9]+[a-z0-9]*|[0-9]+[a-z]+[a-z0-9]*{3,})(.*)$/gm </code></pre> <p>I want to match alphanumeric groups in an URL which are greater than two characters in length. So basically:</p> <p>In the URL: <code>/version/a1/type/eg1234/abc</code>, <code>eg1234</code> ...
[ { "answer_id": 74395669, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 3, "selected": true, "text": "(?=\\d+[a-z][a-z\\d]*|[a-z\\d]*[a-z]\\d)[a-z\\d]{3,}\n eg1234 /version/a1/type/eg1234/abc" }, { "answ...
2022/11/10
[ "https://Stackoverflow.com/questions/74395599", "https://Stackoverflow.com", "https://Stackoverflow.com/users/971741/" ]
74,395,602
<pre><code>procedure Summera(Int1: in Integer; Int2: in Integer; Summa: out Integer) is begin Put(&quot;Mata in ett heltal: &quot;); 48 Get(Int1); Put(&quot;Mata in ett heltal: &quot;); 50 Get(Int2); Summa:= Int1 + Int2; Put(&quot;Du matad...
[ { "answer_id": 74395669, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 3, "selected": true, "text": "(?=\\d+[a-z][a-z\\d]*|[a-z\\d]*[a-z]\\d)[a-z\\d]{3,}\n eg1234 /version/a1/type/eg1234/abc" }, { "answ...
2022/11/10
[ "https://Stackoverflow.com/questions/74395602", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20153118/" ]
74,395,610
<p>My first post here.</p> <p>So here is how it goes,</p> <p>The end goal is to place the New User in the specific OU, under its distinguished name as path. I can resolve this with one subsequent OU selections, but once there are multiple, I would like to avoid the subsequent scripting, because the number of subsequent...
[ { "answer_id": 74395669, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 3, "selected": true, "text": "(?=\\d+[a-z][a-z\\d]*|[a-z\\d]*[a-z]\\d)[a-z\\d]{3,}\n eg1234 /version/a1/type/eg1234/abc" }, { "answ...
2022/11/10
[ "https://Stackoverflow.com/questions/74395610", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20471715/" ]
74,395,626
<p>I have df1 that looks like this:</p> <pre><code>STATE YEAR EVENT_TYPE DAMAGE ALABAMA 1962 Tornado 27 ALABAMA 1962 Flood 7 ALABAMA 1963 Thunderstorm 12 ... </code></pre> <p>and df2 that looks like this:</p> <pre><code>STATE YEAR T...
[ { "answer_id": 74395706, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 1, "selected": true, "text": "merge df1 cols = ['STATE', 'YEAR']\n\nout = df2[cols].merge(df1.pivot(index=cols, columns='EVENT_TYPE', values='DAMA...
2022/11/10
[ "https://Stackoverflow.com/questions/74395626", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16451496/" ]
74,395,655
<p>I am trying to place the text at the bottom of the <code>div</code> but even when I set it to <code>position: relative; bottom: 0</code> it doesn't work. I also tried vertical alignment but it doesn't work:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div cla...
[ { "answer_id": 74395706, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 1, "selected": true, "text": "merge df1 cols = ['STATE', 'YEAR']\n\nout = df2[cols].merge(df1.pivot(index=cols, columns='EVENT_TYPE', values='DAMA...
2022/11/10
[ "https://Stackoverflow.com/questions/74395655", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14459522/" ]
74,395,656
<p>See the Chevrons in the attached images. The first one is from a desktop Chrome browser. It renders this way in the standard desktop browsers including Safari. It also renders this way in Chrome dev tools device simulations including iPhone 12, and on real Android devices.</p> <p>The second image shows how it ren...
[ { "answer_id": 74395921, "author": "user2817078", "author_id": 2817078, "author_profile": "https://Stackoverflow.com/users/2817078", "pm_score": 1, "selected": false, "text": "preferences/advanced" } ]
2022/11/10
[ "https://Stackoverflow.com/questions/74395656", "https://Stackoverflow.com", "https://Stackoverflow.com/users/641361/" ]
74,395,667
<p>i'm trying to develope an app with Flutter. I'm new at this :(</p> <p>I can't add a button under the gridView.</p> <p>This is my code:</p> <pre><code> body: Container( height: 300, width: 300, margin: const EdgeInsets.only(left: 47.0, top: 100), child: Padding( padding: const ...
[ { "answer_id": 74395766, "author": "Braden Bagby", "author_id": 7817786, "author_profile": "https://Stackoverflow.com/users/7817786", "pm_score": 1, "selected": true, "text": "import 'package:flutter/material.dart';\nimport 'package:provider/provider.dart';\n\nvoid main() => runApp(const...
2022/11/10
[ "https://Stackoverflow.com/questions/74395667", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19717897/" ]
74,395,678
<p>I'm not sure why I'm receiving this error. I'm trying to get data from two separate tables in this query.</p> <pre><code>@Query(&quot;SELECT * FROM ConnectionRequest c &quot; + &quot;INNER JOIN (SELECT firstName as name FROM USER u WHERE c.userId = u.id) &quot; + &quot;WHERE c.dateTimeCompleted IS NU...
[ { "answer_id": 74395764, "author": "chrylis -cautiouslyoptimistic-", "author_id": 1189885, "author_profile": "https://Stackoverflow.com/users/1189885", "pm_score": 3, "selected": true, "text": "value value value = \"text\" nativeQuery findAllByUserFirstNameAndDateTimeCompletedIsNull()" ...
2022/11/10
[ "https://Stackoverflow.com/questions/74395678", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16200097/" ]
74,395,775
<p>In the previous YouTube version there was an option to get the first YouTube video as follows:</p> <p><a href="https://www.youtube.com/channel/MrBeast6000/videos?view=0&amp;sort=da&amp;flow=grid" rel="nofollow noreferrer">https://www.youtube.com/channel/MrBeast6000/videos?view=0&amp;sort=da&amp;flow=grid</a> // MrBe...
[ { "answer_id": 74590069, "author": "jlo", "author_id": 1202124, "author_profile": "https://Stackoverflow.com/users/1202124", "pm_score": -1, "selected": false, "text": "yt-dlp https://www.youtube.com/<CHANNEL-ID> --playlist-reverse --max-downloads 1\n" } ]
2022/11/10
[ "https://Stackoverflow.com/questions/74395775", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6282064/" ]
74,395,792
<p>Im trying to submit the user data to the firebase firestore database, but the function to create a new collection is not working for me, I have checked some diferent ways to do it, but none of theme are working, I already update my firebase config file using the firebase comands on my terminal.</p> <p>This is the co...
[ { "answer_id": 74590069, "author": "jlo", "author_id": 1202124, "author_profile": "https://Stackoverflow.com/users/1202124", "pm_score": -1, "selected": false, "text": "yt-dlp https://www.youtube.com/<CHANNEL-ID> --playlist-reverse --max-downloads 1\n" } ]
2022/11/10
[ "https://Stackoverflow.com/questions/74395792", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20472544/" ]
74,395,814
<p>How do I return only Members from the delta API for group (<a href="https://learn.microsoft.com/en-us/graph/delta-query-overview?tabs=http" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/graph/delta-query-overview?tabs=http</a>)</p> <p>Adding .Members &amp; .Select() are not supported</p> <p><a href="ht...
[ { "answer_id": 74398587, "author": "user2250152", "author_id": 2250152, "author_profile": "https://Stackoverflow.com/users/2250152", "pm_score": 2, "selected": true, "text": "Select Request var delta = await _graphServiceClient.Groups\n .Delta()\n .Request()\n .Select(\"members\...
2022/11/10
[ "https://Stackoverflow.com/questions/74395814", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3693060/" ]
74,395,864
<p>Is it possible to change an if-else statement to include OR in an R-Script? Like 70% of the time would turn into this, while the remaining 30% would turn into something else. Similar to increasing the probability to change?</p> <pre><code>if (w0[i, j] == 1) { w1[i, j] &lt;- rL[nNeigh + 1] } else ...
[ { "answer_id": 74398587, "author": "user2250152", "author_id": 2250152, "author_profile": "https://Stackoverflow.com/users/2250152", "pm_score": 2, "selected": true, "text": "Select Request var delta = await _graphServiceClient.Groups\n .Delta()\n .Request()\n .Select(\"members\...
2022/11/10
[ "https://Stackoverflow.com/questions/74395864", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13811851/" ]
74,395,920
<p>I am validating using jQuery:</p> <pre><code>$el.rules(&quot;add&quot;, { remote: { url: `/api/distributors/KeywordExists`, type: &quot;post&quot;, data: { id: @Model.Distributor.DistributorId } } }); </code></pre> <p>The <code>$el</code> is an input element genera...
[ { "answer_id": 74398587, "author": "user2250152", "author_id": 2250152, "author_profile": "https://Stackoverflow.com/users/2250152", "pm_score": 2, "selected": true, "text": "Select Request var delta = await _graphServiceClient.Groups\n .Delta()\n .Request()\n .Select(\"members\...
2022/11/10
[ "https://Stackoverflow.com/questions/74395920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19488719/" ]
74,395,936
<p>Hello I am trying to design a very simple web application with <code>Express.js</code> that just sends your email address that you submitted to the server side. But when I try to combine normal JavaScript (like <code>querySelector</code>) with code that has <code>Express.js</code> contents, it does not work and cras...
[ { "answer_id": 74396226, "author": "Pekar Kids", "author_id": 20012002, "author_profile": "https://Stackoverflow.com/users/20012002", "pm_score": 0, "selected": false, "text": "script.js index.js node index.js" } ]
2022/11/10
[ "https://Stackoverflow.com/questions/74395936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18558349/" ]
74,395,944
<p>I have a python 2.7 codebase that I'm trying to containerize. Much as I'd like to, our devs cannot move to Python 3.</p> <p>When running natively in their dev environments, datetimes respect timezones. I can confirm that the output is as expected on a Mac running <code>Python 3.9.6</code>. But when we containerize t...
[ { "answer_id": 74396226, "author": "Pekar Kids", "author_id": 20012002, "author_profile": "https://Stackoverflow.com/users/20012002", "pm_score": 0, "selected": false, "text": "script.js index.js node index.js" } ]
2022/11/10
[ "https://Stackoverflow.com/questions/74395944", "https://Stackoverflow.com", "https://Stackoverflow.com/users/246754/" ]
74,395,948
<p>I want to create an event system that uses lambda functions as its subscribers/listeners, and an event type to assign them to the specific event that they should subscribe to. The lambdas should have variable arguments, as different kinds of events use different kinds of arguments/provide the subscribers with differ...
[ { "answer_id": 74405789, "author": "Jeff Garrett", "author_id": 3242146, "author_profile": "https://Stackoverflow.com/users/3242146", "pm_score": 0, "selected": false, "text": "std::function std::function<void()>" }, { "answer_id": 74408574, "author": "HolyBlackCat", "aut...
2022/11/10
[ "https://Stackoverflow.com/questions/74395948", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12277653/" ]
74,395,992
<p>I built a login page using firebase. When the user clicks the login button, a CircularProgressIndicator is started and if the user gave the correct credentials everything works perfectly but if there is an error (e.g user not found OR wrong password) the user will be not forwarded to the next page but the CircularPr...
[ { "answer_id": 74396093, "author": "ariga", "author_id": 20384182, "author_profile": "https://Stackoverflow.com/users/20384182", "pm_score": 3, "selected": true, "text": "isLoading = true\ntry {\n //your code\n print(\"done !\"); \n isLoading\n} catch (err) {\n print(\"error\");\n i...
2022/11/10
[ "https://Stackoverflow.com/questions/74395992", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14143776/" ]
74,396,029
<p>I'm quite new to clojure and have been struggling to understand how things work exactly. I have a vector of hashmaps as such, titled authors:</p> <pre><code>------ Authors ----------- [{:id 100, :name &quot;Albert Einstein&quot;, :interest &quot;Physics&quot;} {:id 200, :name &quot;Alan Turing&quot;, :interest &quo...
[ { "answer_id": 74402519, "author": "TheChetan", "author_id": 4110233, "author_profile": "https://Stackoverflow.com/users/4110233", "pm_score": 0, "selected": false, "text": "Filter sequence of maps map reduce (def authors [{:id 100, :name \"Albert Einstein\", :interest \"Physics\"}\n ...
2022/11/10
[ "https://Stackoverflow.com/questions/74396029", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18648904/" ]
74,396,051
<p>I have a python string that looks like as shown below. This string is from the SEC filing of one public company in the US. I am trying to remove some annoying characters from the string using <code>unicodedata.normalise</code> function, but this is not removing all characters. What could be the reason behind such be...
[ { "answer_id": 74396195, "author": "Mark Tolonen", "author_id": 235698, "author_profile": "https://Stackoverflow.com/users/235698", "pm_score": 4, "selected": true, "text": "latin1 cp1252 >>> '\\x92\\x93\\x94'.encode('latin1').decode('cp1252')\n'’“”'\n >>> ud.normalize('NFKC','\\x92\\x93...
2022/11/10
[ "https://Stackoverflow.com/questions/74396051", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13952588/" ]
74,396,081
<p>I am working through a training class for ASP.NET Core 6 and in it, in a class declaration, it has:</p> <pre><code>public class Pie { public Category Category { get; set; } = default!; } </code></pre> <p>If I understand the <code>default!</code> correctly (I'm experienced with C# 3 so this is new to me) it is as...
[ { "answer_id": 74396164, "author": "Sweeper", "author_id": 5133585, "author_profile": "https://Stackoverflow.com/users/5133585", "pm_score": 2, "selected": false, "text": "Category default null null ! Category" }, { "answer_id": 74396175, "author": "gunr2171", "author_id"...
2022/11/10
[ "https://Stackoverflow.com/questions/74396081", "https://Stackoverflow.com", "https://Stackoverflow.com/users/509627/" ]
74,396,107
<p>I am doing integration testing, and have 2 databases to test my project against. Rather than creating 2 profiles, is there a quick and easy way where I create 2 integration test classes, and one to test against the database originally written on my main profile, and another where I add some sort of annotation that c...
[ { "answer_id": 74396143, "author": "Bartosz Szymański", "author_id": 7100461, "author_profile": "https://Stackoverflow.com/users/7100461", "pm_score": 2, "selected": true, "text": "@PropertySource" }, { "answer_id": 74396216, "author": "birca123", "author_id": 10231374, ...
2022/11/10
[ "https://Stackoverflow.com/questions/74396107", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11712575/" ]
74,396,111
<p>Clicking on each <code>exit</code> button should remove each video, but only one video is being removed. To reproduce, click on the 1st blue play button, next, click on the exit button. <code>console.log(&quot;removePlayer&quot;);</code> says it is removed.</p> <p>Do the same thing for the next video player. Click o...
[ { "answer_id": 74396143, "author": "Bartosz Szymański", "author_id": 7100461, "author_profile": "https://Stackoverflow.com/users/7100461", "pm_score": 2, "selected": true, "text": "@PropertySource" }, { "answer_id": 74396216, "author": "birca123", "author_id": 10231374, ...
2022/11/10
[ "https://Stackoverflow.com/questions/74396111", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17631451/" ]
74,396,134
<p>The function takes the root node of a binary tree and a target value and returns the node that comes before the target value in an in-order traversal.</p> <p>Constraint is: If the target is the first value in an in-order traversal, return null.</p> <pre><code>function inOrderPredecessor(rootNode, target) { if (roo...
[ { "answer_id": 74396358, "author": "caTS", "author_id": 18244921, "author_profile": "https://Stackoverflow.com/users/18244921", "pm_score": 0, "selected": false, "text": "// simple inorder traversal implementation\nfunction inorder(node, a = []) {\n if (node) {\n inorder(node.l...
2022/11/10
[ "https://Stackoverflow.com/questions/74396134", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19677744/" ]
74,396,147
<p>Table <code>T1</code>:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Id</th> <th>R1</th> <th>R2</th> <th>R3</th> </tr> </thead> <tbody> <tr> <td>Id1</td> <td>r1_d1</td> <td>r2_d1</td> <td>r3_d1</td> </tr> <tr> <td>Id2</td> <td>r1_d2</td> <td>r2_d2</td> <td>r3_d2</td> </tr> <tr> <td>Id3...
[ { "answer_id": 74396358, "author": "caTS", "author_id": 18244921, "author_profile": "https://Stackoverflow.com/users/18244921", "pm_score": 0, "selected": false, "text": "// simple inorder traversal implementation\nfunction inorder(node, a = []) {\n if (node) {\n inorder(node.l...
2022/11/10
[ "https://Stackoverflow.com/questions/74396147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11062204/" ]
74,396,165
<p>Using rust with glfw and gl bindings.</p> <p>I have created an array of vertices for usage in vbo:</p> <pre><code>let x = 2.0 / ((HORIZONTAL_BOOK_AMOUNT * 2) + HORIZONTAL_BOOK_AMOUNT + 1) as f32; // x is the desired distance based on width of NDC divided by amount of horizontal objects to draw // in the case of att...
[ { "answer_id": 74397090, "author": "Yakov Galka", "author_id": 277176, "author_profile": "https://Stackoverflow.com/users/277176", "pm_score": 2, "selected": true, "text": "x translatematrix" }, { "answer_id": 74398310, "author": "Rabbid76", "author_id": 5577765, "aut...
2022/11/10
[ "https://Stackoverflow.com/questions/74396165", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20274040/" ]
74,396,182
<p>I have a list of tuples of [(city name, country name), ...].</p> <p>I'm trying to sort the list alphabetically so that the country names are ordered A-Z, and then if there is more than one city in that country, the cities in that country are then also ordered alphabetically.</p> <p>So far I've tried using sorted() w...
[ { "answer_id": 74396220, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 2, "selected": false, "text": "lst = [\n (\"Prague\", \"Czech Republic\"),\n (\"Bratislava\", \"Slovakia\"),\n (\"Brno\", \"Czech ...
2022/11/10
[ "https://Stackoverflow.com/questions/74396182", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20473020/" ]
74,396,257
<p>I have a POST API to create a register on the database. My goal is to be able to log every 4XX request (with the response) for another team to view that list/search the data, with the option to download the request JSON sent in that call.</p> <p>What's the best way to archive that? Its just to create a logs table in...
[ { "answer_id": 74396798, "author": "Kevin Bui", "author_id": 2994920, "author_profile": "https://Stackoverflow.com/users/2994920", "pm_score": 1, "selected": false, "text": "LogResponseReceived use Illuminate\\Http\\Client\\Events;\n\nclass LogResponseReceived\n{\n public function han...
2022/11/10
[ "https://Stackoverflow.com/questions/74396257", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3455453/" ]
74,396,269
<p>I'm trying to export a variable in this manner:</p> <pre><code>P=&quot;A=&quot;X&quot;&quot; echo $P P=X export $$P &lt;- can't get this to work, tried a bunch of permutations </code></pre> <p>Desired out put is then to be effectively 'export A=X' In the example I want to 'export P=X' to be the command I run, ho...
[ { "answer_id": 74396798, "author": "Kevin Bui", "author_id": 2994920, "author_profile": "https://Stackoverflow.com/users/2994920", "pm_score": 1, "selected": false, "text": "LogResponseReceived use Illuminate\\Http\\Client\\Events;\n\nclass LogResponseReceived\n{\n public function han...
2022/11/10
[ "https://Stackoverflow.com/questions/74396269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14322433/" ]
74,396,285
<p>I am using basiclightbox to show text from an external txt file.</p> <p>It works, but I can't apply styles and size to the result.</p> <p>I've done this:</p> <pre><code> document.querySelector('button.html1001').onclick = () =&gt; { basicLightbox.create(` &lt;/div&gt; &lt;h1&gt;&lt;p&gt; &lt;obj...
[ { "answer_id": 74396798, "author": "Kevin Bui", "author_id": 2994920, "author_profile": "https://Stackoverflow.com/users/2994920", "pm_score": 1, "selected": false, "text": "LogResponseReceived use Illuminate\\Http\\Client\\Events;\n\nclass LogResponseReceived\n{\n public function han...
2022/11/10
[ "https://Stackoverflow.com/questions/74396285", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14257245/" ]
74,396,289
<p>I use strings to represent my data and pass it around. Before using it I have to parse it and get the data out of string. I don't want to check for parse errors on runtime.</p> <p>How can I give a special type to strings only produced by factory functions and make sure they fail on any other string types.</p> <pre><...
[ { "answer_id": 74396798, "author": "Kevin Bui", "author_id": 2994920, "author_profile": "https://Stackoverflow.com/users/2994920", "pm_score": 1, "selected": false, "text": "LogResponseReceived use Illuminate\\Http\\Client\\Events;\n\nclass LogResponseReceived\n{\n public function han...
2022/11/10
[ "https://Stackoverflow.com/questions/74396289", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3994249/" ]
74,396,305
<p>Suppose I have:</p> <p><code>arr1 = np.array([[1,2,3,4,5], [6,7,8,9,10], [11,12,13,14,15], [16,17,18,19,20], [21,22,23,24,25]])</code></p> <p>And the empty matrix:</p> <pre><code>matrix = np.zeros((10, 10)) matrix[:] = np.NaN </code></pre> <p>I want to populate <code>matrix</code> with each element within <code>arr1...
[ { "answer_id": 74396798, "author": "Kevin Bui", "author_id": 2994920, "author_profile": "https://Stackoverflow.com/users/2994920", "pm_score": 1, "selected": false, "text": "LogResponseReceived use Illuminate\\Http\\Client\\Events;\n\nclass LogResponseReceived\n{\n public function han...
2022/11/10
[ "https://Stackoverflow.com/questions/74396305", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10623448/" ]
74,396,332
<p>I am having a few issues. I have a sheet called (RF) in which I have information divided by places (Passenger seat, driver seat, etc), each one is identified with a number (1, 2, 3, 4. Four is the amount of categories but it could change so that is why I am trying a loop). Something like this: <a href="https://i.sta...
[ { "answer_id": 74396798, "author": "Kevin Bui", "author_id": 2994920, "author_profile": "https://Stackoverflow.com/users/2994920", "pm_score": 1, "selected": false, "text": "LogResponseReceived use Illuminate\\Http\\Client\\Events;\n\nclass LogResponseReceived\n{\n public function han...
2022/11/10
[ "https://Stackoverflow.com/questions/74396332", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20472752/" ]
74,396,356
<p>There are multiple ways to fill missing values in R. However, I can't find a solution for filling just the last n NAs.</p> <p>Available options:</p> <pre><code>na_vector &lt;- c(1, NA, NA, NA, 2, 3, NA, NA) library(zoo) na.locf(na_vector) # Outputs: [1] 1 1 1 1 2 3 3 3 na.locf0(na_vector, maxgap = 2) # Outputs: [...
[ { "answer_id": 74396508, "author": "Santiago", "author_id": 13507658, "author_profile": "https://Stackoverflow.com/users/13507658", "pm_score": 2, "selected": true, "text": "dplyr na_vector <- c(1, NA, NA, NA, 2, 3, NA, NA)\n\nfill_na <- function(vector, n){\n if (n == 0) {\n vector\...
2022/11/10
[ "https://Stackoverflow.com/questions/74396356", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15881999/" ]
74,396,357
<p>I was trying to get the substring from a string I am using in my program as follows:</p> <pre><code>mystring.Substring(mystring.Length - 4) </code></pre> <p>The Visual Studio IntelliSense recommended I use index and range operators as follows:</p> <pre><code>mystring[^4..] </code></pre> <p>I glanced through the docu...
[ { "answer_id": 74396462, "author": "gunr2171", "author_id": 1043380, "author_profile": "https://Stackoverflow.com/users/1043380", "pm_score": 4, "selected": true, "text": "^4 mystring[0] ^4.. var input = \"abcdefghijk\";\nConsole.WriteLine(input[^4]);\nConsole.WriteLine(input[^4..]);\n" ...
2022/11/10
[ "https://Stackoverflow.com/questions/74396357", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13949270/" ]
74,396,361
<p>I am using the pynput and winsound modules to make a program that makes the pc play the sound of the keys and mouse. The problem is that when I press a key and hold it down the key is triggered repeatedly, which causes the sound to play repeatedly in a loop until I release the key.</p> <p>I followed this solution to...
[ { "answer_id": 74396462, "author": "gunr2171", "author_id": 1043380, "author_profile": "https://Stackoverflow.com/users/1043380", "pm_score": 4, "selected": true, "text": "^4 mystring[0] ^4.. var input = \"abcdefghijk\";\nConsole.WriteLine(input[^4]);\nConsole.WriteLine(input[^4..]);\n" ...
2022/11/10
[ "https://Stackoverflow.com/questions/74396361", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4779475/" ]
74,396,374
<p>I have a Postgres table that looks like this:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: center;">Name</th> <th style="text-align: center;">Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td style="text-align: center;">business_id (PK)</td> <td style="...
[ { "answer_id": 74396462, "author": "gunr2171", "author_id": 1043380, "author_profile": "https://Stackoverflow.com/users/1043380", "pm_score": 4, "selected": true, "text": "^4 mystring[0] ^4.. var input = \"abcdefghijk\";\nConsole.WriteLine(input[^4]);\nConsole.WriteLine(input[^4..]);\n" ...
2022/11/10
[ "https://Stackoverflow.com/questions/74396374", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6090547/" ]
74,396,379
<p>As mentioned in the title, I want to use multiple-dispatch to assign different behaviors of the same struct, distinguished by Symbol. The struct can be constructed as follows:</p> <pre><code>struct AbstractAlgorithm algorithmName::String algorithmSymbol::Symbol function AbstractAlgorithm(algorithmName::...
[ { "answer_id": 74397582, "author": "Giovanni", "author_id": 16204281, "author_profile": "https://Stackoverflow.com/users/16204281", "pm_score": 2, "selected": false, "text": "struct AbstractAlgorithm{T}\n algorithmName::String\n\n function AbstractAlgorithm(algorithmName::String)\n...
2022/11/10
[ "https://Stackoverflow.com/questions/74396379", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13241995/" ]
74,396,387
<p>I am attempting to determine if a folder is empty.</p> <p>My current method involves using a GetMeta shape and running the following to set a Boolean.</p> <p><strong>@greater(length(activity('Is Staging Folder Empty').output.childItems), 0)</strong></p> <p>This works great when files are present.</p> <p>When the fol...
[ { "answer_id": 74397582, "author": "Giovanni", "author_id": 16204281, "author_profile": "https://Stackoverflow.com/users/16204281", "pm_score": 2, "selected": false, "text": "struct AbstractAlgorithm{T}\n algorithmName::String\n\n function AbstractAlgorithm(algorithmName::String)\n...
2022/11/10
[ "https://Stackoverflow.com/questions/74396387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3609480/" ]
74,396,391
<p>Is the following program valid? (In the sense of being well-defined by the ISO C standard, not just happening to work on a particular compiler.)</p> <pre><code>struct foo { int a, b, c; }; int f(struct foo *p) { // should return p-&gt;c char *q = ((char *)p) + 2 * sizeof(int); return *((int *)q); } </code><...
[ { "answer_id": 74396591, "author": "Davislor", "author_id": 4474419, "author_profile": "https://Stackoverflow.com/users/4474419", "pm_score": 2, "selected": true, "text": "struct struct offsetof() <stddef.h> *(int*)((char*)p + offsetof(foo, c))\n offsetof(foo,c) - offsetof(foo, b) offset...
2022/11/10
[ "https://Stackoverflow.com/questions/74396391", "https://Stackoverflow.com", "https://Stackoverflow.com/users/45843/" ]
74,396,407
<p>I have very little to no knowledge when it comes to using JavaScript. I have 24 of the same image given an id from q1 - q24. my code allows for the 24 images to be changed to image2 one at a time, but I need for it to stop and display a text/alert when image2 is clicked.</p> <pre><code>&lt;script&gt; { let num =...
[ { "answer_id": 74396591, "author": "Davislor", "author_id": 4474419, "author_profile": "https://Stackoverflow.com/users/4474419", "pm_score": 2, "selected": true, "text": "struct struct offsetof() <stddef.h> *(int*)((char*)p + offsetof(foo, c))\n offsetof(foo,c) - offsetof(foo, b) offset...
2022/11/10
[ "https://Stackoverflow.com/questions/74396407", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20473078/" ]
74,396,419
<p>I have a data frame that has a quantity column and I need to check if the data was inputted correctly. If there's a number that was inputted with decimals I receive de data frame with de quantity column as a float and not as an integer, but I need to print out the index of the rows that were inputted with decimals.<...
[ { "answer_id": 74396591, "author": "Davislor", "author_id": 4474419, "author_profile": "https://Stackoverflow.com/users/4474419", "pm_score": 2, "selected": true, "text": "struct struct offsetof() <stddef.h> *(int*)((char*)p + offsetof(foo, c))\n offsetof(foo,c) - offsetof(foo, b) offset...
2022/11/10
[ "https://Stackoverflow.com/questions/74396419", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19742465/" ]
74,396,440
<p>My goal is to take lists that contain strings such as ['1 0', '2 0', '3 1 2'] or [['1 0'], ['2 0'], ['3 1 2']]</p> <p>and turn that into an adjacency list like so: [[1, 0], [2,0], [3,1], [3,2]]</p> <p>The issue I have is that the last string in the list has more than two digits ['3 1 2']. This causes unpacking the s...
[ { "answer_id": 74396510, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 2, "selected": true, "text": "lst = [\"1 0\", \"2 0\", \"3 1 2\"]\n\nout = []\nfor s in lst:\n n, *rest = map(int, s.split())\n out.e...
2022/11/10
[ "https://Stackoverflow.com/questions/74396440", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18354441/" ]
74,396,447
<p>I have this spreadsheet below, and I'm looking to lock the entire column in sheets except for the column that matches today's date (11/10/2022). And then the next day it will lock the column E and 11/11/2022 column(F) will be unlocked and so on. And I'd like to specify users who can edit those locked columns.</p> <p...
[ { "answer_id": 74396510, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 2, "selected": true, "text": "lst = [\"1 0\", \"2 0\", \"3 1 2\"]\n\nout = []\nfor s in lst:\n n, *rest = map(int, s.split())\n out.e...
2022/11/10
[ "https://Stackoverflow.com/questions/74396447", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19621475/" ]
74,396,473
<p>I have following data:</p> <p>#1. dates of 15 day frequency: dates = seq(as.Date(&quot;2017-01-01&quot;), as.Date(&quot;2020-12-30&quot;), by=15)</p> <p>#2. I have a dataframe containing dates where certain observation is recoded per variable as: <a href="https://i.stack.imgur.com/tKYEN.png" rel="nofollow noreferrer...
[ { "answer_id": 74396510, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 2, "selected": true, "text": "lst = [\"1 0\", \"2 0\", \"3 1 2\"]\n\nout = []\nfor s in lst:\n n, *rest = map(int, s.split())\n out.e...
2022/11/10
[ "https://Stackoverflow.com/questions/74396473", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20473161/" ]
74,396,514
<p>I have a problem with cors origin in my laravel project, I created cors.php in middwares folder and I declare it in Kernel.php and app/Providers/RouteServiceProvider.php as well... I did everything to solve it in my Laravel project, even in folder config I added a file Cors.php</p> <p>I'm now wondering if I have to ...
[ { "answer_id": 74396510, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 2, "selected": true, "text": "lst = [\"1 0\", \"2 0\", \"3 1 2\"]\n\nout = []\nfor s in lst:\n n, *rest = map(int, s.split())\n out.e...
2022/11/10
[ "https://Stackoverflow.com/questions/74396514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12103127/" ]
74,396,517
<p>With the given type signature below, is there a way to do something similar to below?</p> <pre><code>func Transform[T, U any](item T) U { return item } </code></pre> <p>The code above gives the following error:</p> <pre><code>cannot use item (variable of type T constrained by any) as U value in return statement...
[ { "answer_id": 74397517, "author": "Erwin Bolwidt", "author_id": 981744, "author_profile": "https://Stackoverflow.com/users/981744", "pm_score": 3, "selected": true, "text": "func Transform[T, U any](item T) U {\n return any(item).(U)\n}\n U item fmt.Println(Transform[string, int](\"f...
2022/11/10
[ "https://Stackoverflow.com/questions/74396517", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1093160/" ]
74,396,544
<p>I use portable hotspot for internet access.</p> <p>Devices:<br /> Phone (hotspot) - site isn't accessible (err_connection_timed_out)<br /> Laptop (development server) - site accessible<br /> Another phone - site isn't site accessible(err_connection_timed_out)<br /> Another laptop - site isn't site accessible(err_con...
[ { "answer_id": 74397517, "author": "Erwin Bolwidt", "author_id": 981744, "author_profile": "https://Stackoverflow.com/users/981744", "pm_score": 3, "selected": true, "text": "func Transform[T, U any](item T) U {\n return any(item).(U)\n}\n U item fmt.Println(Transform[string, int](\"f...
2022/11/10
[ "https://Stackoverflow.com/questions/74396544", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12859981/" ]
74,396,546
<p>I am trying to understand the preferred approach for a class to handle the validity of (reference to) the object of <em>another</em> class.</p> <p>In here, <code>C</code> has a vector that stores references of <code>D</code> objects. If <code>D</code> and <code>C</code> are a part of the library, how should <code>C<...
[ { "answer_id": 74410184, "author": "dirck", "author_id": 11134583, "author_profile": "https://Stackoverflow.com/users/11134583", "pm_score": -1, "selected": false, "text": "~D() c1 std::shared_ptr std::shared_ptr new delete void some_function(C& c1)\n{\n D d1;\n c1.add(&d1);\n}\n ~...
2022/11/10
[ "https://Stackoverflow.com/questions/74396546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12497236/" ]
74,396,553
<p>I am trying to compare values on 2 different columns values to ensure that they exist(on Sheet 1) Once the script is aware that they exist I need to access sheet1's column for quantity and add that value to sheet 2's quantity column. The problem is I am unsure of how to just get the location/index of the foreach loo...
[ { "answer_id": 74410184, "author": "dirck", "author_id": 11134583, "author_profile": "https://Stackoverflow.com/users/11134583", "pm_score": -1, "selected": false, "text": "~D() c1 std::shared_ptr std::shared_ptr new delete void some_function(C& c1)\n{\n D d1;\n c1.add(&d1);\n}\n ~...
2022/11/10
[ "https://Stackoverflow.com/questions/74396553", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20473200/" ]
74,396,584
<p>Let's say we have a nested list in Python. AKA a matrix, and we have a list consisting of elements, lets say li = [1, 2, 3, 4, 5, 6]. I want to insert two elements in matrix rows, resulting matrix = [ [1,2] [3,4], [5,6] ]. How can this be done ? Thanks!</p> <pre><code>b = [[]] c = [1, 2, 3, 4, 5, 6] for i in range(...
[ { "answer_id": 74410184, "author": "dirck", "author_id": 11134583, "author_profile": "https://Stackoverflow.com/users/11134583", "pm_score": -1, "selected": false, "text": "~D() c1 std::shared_ptr std::shared_ptr new delete void some_function(C& c1)\n{\n D d1;\n c1.add(&d1);\n}\n ~...
2022/11/10
[ "https://Stackoverflow.com/questions/74396584", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12896325/" ]
74,396,602
<p>I want to test an app that only has Google Oauth Login via AWS Cognito. Lots of guides on how to use cypress to programatically login to Cognito using AWS Amplify with a username and password, but cannot find anything on how to do it with Google Oauth.</p> <p>Im trying to use cypress to click the buttons to authenti...
[ { "answer_id": 74435696, "author": "lindsaymacvean", "author_id": 2827300, "author_profile": "https://Stackoverflow.com/users/2827300", "pm_score": 1, "selected": true, "text": "// /support/login.js\nCypress.Commands.add('loginByGoogle', () => {\n \n cy.visit('http://localh...
2022/11/10
[ "https://Stackoverflow.com/questions/74396602", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2827300/" ]
74,396,608
<p>I have the following df:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: left;">Name</th> <th style="text-align: center;">Time Elapsed</th> <th style="text-align: right;">Amount</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">A</td> <td style="text-align...
[ { "answer_id": 74397151, "author": "ziying35", "author_id": 16755671, "author_profile": "https://Stackoverflow.com/users/16755671", "pm_score": 3, "selected": true, "text": "def func(g: pd.DataFrame):\n tmp = g.set_index('Time Elapsed')\n res = tmp.reindex(\n np.arange(tmp.i...
2022/11/10
[ "https://Stackoverflow.com/questions/74396608", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12875502/" ]
74,396,618
<p>I have the following <a href="https://jsfiddle.net/btcof8wz/" rel="nofollow noreferrer">JSFiddle</a> where I have an image icon on the left of text like this:</p> <pre><code> &lt;img&gt; &lt;text goes here&gt; </code></pre> <p>However, when the text overflows I want it to look like this:</p> <pre><code> &lt;img&gt; ...
[ { "answer_id": 74396660, "author": "Madison Courto", "author_id": 2926779, "author_profile": "https://Stackoverflow.com/users/2926779", "pm_score": 0, "selected": false, "text": "<div class=\"para\">\n <p style=\"margin:0 0 5px;line-height: 1.2;font-family: sans-serif;font-size: 14px;...
2022/11/10
[ "https://Stackoverflow.com/questions/74396618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/651174/" ]
74,396,635
<p>I want to put a condition in the where clause according to the null condition of the parameter in the procedure. But the procedure I made has some problem. There's problem is in IF clause.</p> <p>How I can put a condition in the where clause in the procedure?</p> <pre><code>CREATE OR REPLACE PROCEDURE SP_PROCEDURE(S...
[ { "answer_id": 74396660, "author": "Madison Courto", "author_id": 2926779, "author_profile": "https://Stackoverflow.com/users/2926779", "pm_score": 0, "selected": false, "text": "<div class=\"para\">\n <p style=\"margin:0 0 5px;line-height: 1.2;font-family: sans-serif;font-size: 14px;...
2022/11/10
[ "https://Stackoverflow.com/questions/74396635", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10314668/" ]
74,396,695
<p>I currently run two commands:</p> <ul> <li>sleep 180</li> <li>wget <a href="https://somedomain.com/api/up" rel="nofollow noreferrer">https://somedomain.com/api/up</a></li> </ul> <p>So it waits for 3 minutes and then calls api up</p> <p>I would like to change that so it continuously checks every minute for up to ten ...
[ { "answer_id": 74396710, "author": "Barmar", "author_id": 1491895, "author_profile": "https://Stackoverflow.com/users/1491895", "pm_score": 2, "selected": true, "text": "for ; for i in {1..10}; do sleep 60; wget 'https://somedomain.com/api/up' && break; done\n" }, { "answer_id": ...
2022/11/11
[ "https://Stackoverflow.com/questions/74396695", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5661749/" ]
74,396,709
<p>I'm facing an element like:</p> <pre><code>&lt;li _ngcontent-bcp-c271=&quot;&quot;&gt; &lt;a _ngcontent-bcp-c271=&quot;&quot;&gt;2018&lt;/a&gt; &lt;!----&gt; &lt;!----&gt; &lt;/li&gt; </code></pre> <p>This element is clickable but since it does not have a <code>href</code> attribute, and I think it should u...
[ { "answer_id": 74396710, "author": "Barmar", "author_id": 1491895, "author_profile": "https://Stackoverflow.com/users/1491895", "pm_score": 2, "selected": true, "text": "for ; for i in {1..10}; do sleep 60; wget 'https://somedomain.com/api/up' && break; done\n" }, { "answer_id": ...
2022/11/11
[ "https://Stackoverflow.com/questions/74396709", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1188943/" ]
74,396,733
<p>So from what I understand, a static compiled <code>mylib.a</code> file should just be usable as plug-and-play. But I can't use it without the source code, I'm trying to avoid that.</p> <p>I adapted <a href="https://domiyanyue.medium.com/c-development-tutorial-4-static-and-dynamic-libraries-7b537656163e" rel="nofollo...
[ { "answer_id": 74396710, "author": "Barmar", "author_id": 1491895, "author_profile": "https://Stackoverflow.com/users/1491895", "pm_score": 2, "selected": true, "text": "for ; for i in {1..10}; do sleep 60; wget 'https://somedomain.com/api/up' && break; done\n" }, { "answer_id": ...
2022/11/11
[ "https://Stackoverflow.com/questions/74396733", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5420846/" ]
74,396,736
<p>New programmer here. I am trying to replicate a youtube video for a program that creates a CSV table viewer on html and am getting this error SyntaxError: The requested module './TableCsv.js' does not provide an export named 'default'</p> <p>I have tried adding curly braces around TableCsv in main.js but no luck. Wh...
[ { "answer_id": 74396710, "author": "Barmar", "author_id": 1491895, "author_profile": "https://Stackoverflow.com/users/1491895", "pm_score": 2, "selected": true, "text": "for ; for i in {1..10}; do sleep 60; wget 'https://somedomain.com/api/up' && break; done\n" }, { "answer_id": ...
2022/11/11
[ "https://Stackoverflow.com/questions/74396736", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20473014/" ]
74,396,759
<p>By default in Android, when using the <code>BottomNavigationView</code>, navigation by pressing on item looks like this:</p> <p>A -&gt; B -&gt; C</p> <p>Back button: C -&gt; A</p> <p>But when using <code>setOnItemSelectedListener</code>, the navigation breaks and when you click on the back button it looks completely...
[ { "answer_id": 74397699, "author": "局外人", "author_id": 18188786, "author_profile": "https://Stackoverflow.com/users/18188786", "pm_score": 3, "selected": true, "text": "menu.setOnNavigationItemSelectedListener {\n when(it.itemId){\n R.id.homeFragment -> {\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74396759", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15317497/" ]
74,396,772
<p>I am new to Power BI, I am facing issue where I want to create a new column based on the latest date and the id column</p> <pre><code>ID LogCreationDate Points What I want 1001 12-Oct-2022 5 null 1001 17-Oct-2022 2 2 1001 13-Oct-2022 7 null 1001 07-Aug-2022 2 ...
[ { "answer_id": 74397699, "author": "局外人", "author_id": 18188786, "author_profile": "https://Stackoverflow.com/users/18188786", "pm_score": 3, "selected": true, "text": "menu.setOnNavigationItemSelectedListener {\n when(it.itemId){\n R.id.homeFragment -> {\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74396772", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4273118/" ]
74,396,790
<p>I have a stream of data comming in which I want to use while it's comming in. Besides that I want to run another function every 30 seconds. Thus, while I am using the data stream to compute things I would like to run another function every 30 seconds. The code I have now:</p> <pre><code>import asyncio import websock...
[ { "answer_id": 74397699, "author": "局外人", "author_id": 18188786, "author_profile": "https://Stackoverflow.com/users/18188786", "pm_score": 3, "selected": true, "text": "menu.setOnNavigationItemSelectedListener {\n when(it.itemId){\n R.id.homeFragment -> {\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74396790", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12457813/" ]
74,396,794
<p>I have an object with the timestamp and I want to build another object with number of occurrences based on the minutes from the timestamp</p> <p><strong>Existing Object:</strong></p> <pre><code>{ &quot;data&quot;: { &quot;dataArr&quot;: [ { &quot;fields&quot;: { ...
[ { "answer_id": 74397699, "author": "局外人", "author_id": 18188786, "author_profile": "https://Stackoverflow.com/users/18188786", "pm_score": 3, "selected": true, "text": "menu.setOnNavigationItemSelectedListener {\n when(it.itemId){\n R.id.homeFragment -> {\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74396794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3361650/" ]
74,396,799
<p>I have been working on code that will extract four rows from every .CSV in a folder, compile the rows into a new table, and pivot wider so there is only one entry per each original .csv.</p> <p>Everything works great until I try to write the resulting table to a .csv,</p> <p>The table looks great in viewer and as a ...
[ { "answer_id": 74397699, "author": "局外人", "author_id": 18188786, "author_profile": "https://Stackoverflow.com/users/18188786", "pm_score": 3, "selected": true, "text": "menu.setOnNavigationItemSelectedListener {\n when(it.itemId){\n R.id.homeFragment -> {\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74396799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20472784/" ]
74,396,829
<p>I'm making a Balloon Fight style game and I'm having trouble with object collision. Each character has two balloons on top of his head and each balloon has an on trigger Box Collider. I want to make it so only one balloon can be hit at a time so you can't destroy both balloons at the same time. In order to do this I...
[ { "answer_id": 74397699, "author": "局外人", "author_id": 18188786, "author_profile": "https://Stackoverflow.com/users/18188786", "pm_score": 3, "selected": true, "text": "menu.setOnNavigationItemSelectedListener {\n when(it.itemId){\n R.id.homeFragment -> {\n ...
2022/11/11
[ "https://Stackoverflow.com/questions/74396829", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20473276/" ]
74,396,883
<p>I was trying to make a chat UI with some actions that show in an overlay, but the buttons got chopped off. Here's what I tried to do:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-ove...
[ { "answer_id": 74396959, "author": "DeusDev", "author_id": 10312417, "author_profile": "https://Stackoverflow.com/users/10312417", "pm_score": 0, "selected": false, "text": "parent height: 100px;" }, { "answer_id": 74396963, "author": "John", "author_id": 11111119, "a...
2022/11/11
[ "https://Stackoverflow.com/questions/74396883", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12243248/" ]
74,396,935
<p>I am working on a problem where I am using a dictionary to replace certain words in a string.</p> <p>This is my code for a minimal example:</p> <pre><code>dictionary = {&quot;happy&quot;: 'YAY!', &quot;happybday&quot;: &quot;PARTY!&quot;} string = &quot;There were so many happy people exclaiming happybday!&quot; f...
[ { "answer_id": 74396979, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 1, "selected": false, "text": "dictionary = {\"happy\": 'YAY!', \"happybday\": \"PARTY!\"}\nstring = \"There were so many happy people excl...
2022/11/11
[ "https://Stackoverflow.com/questions/74396935", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12035742/" ]