qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,336,638
<p>I am trying to display the images and its content in a web page (VueJS). I am having a problem with display them in a row with maximum number of elements for each row is 4.</p> <pre class="lang-html prettyprint-override"><code>&lt;div className=&quot;container&quot; style=&quot;padding-top: 1rem; width: 100%; min-he...
[ { "answer_id": 74337607, "author": "chrslg", "author_id": 20037042, "author_profile": "https://Stackoverflow.com/users/20037042", "pm_score": 0, "selected": false, "text": "max( shortest_path(node1, node2) for node1 in nodes, node2 in nodes) index of closest node with index index of clos...
2022/11/06
[ "https://Stackoverflow.com/questions/74336638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10338420/" ]
74,336,649
<p>I am building an application using React Native, and I want to use data from Heroku api. But when I make an API call and consolog the data I can see the data, but when I try to map them, nothing is coming out of the DOM. Can anyone tell me what I am doing wrong? Thank you so much. Here below are my can and a screens...
[ { "answer_id": 74337607, "author": "chrslg", "author_id": 20037042, "author_profile": "https://Stackoverflow.com/users/20037042", "pm_score": 0, "selected": false, "text": "max( shortest_path(node1, node2) for node1 in nodes, node2 in nodes) index of closest node with index index of clos...
2022/11/06
[ "https://Stackoverflow.com/questions/74336649", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14201102/" ]
74,336,659
<p>I'm creating a user registration form. I create a form in the Component. when the user registers he redirects to the user page where he sees all users. when he wanted to edit or update something from in his details he redirects to the same registration form page but this will be a new URL and new Title. I'm getting ...
[ { "answer_id": 74336687, "author": "Harshana", "author_id": 6952359, "author_profile": "https://Stackoverflow.com/users/6952359", "pm_score": 2, "selected": false, "text": "$data view() public function index ()\n{\n $url = url('/register');\n $title = \"Registration Form\";\n $d...
2022/11/06
[ "https://Stackoverflow.com/questions/74336659", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20330580/" ]
74,336,713
<p>I have some HTML code that includes some css and I want the button to actually have a use like a hyperlink I press it and it takes me to a certain file or web address I have tried using actual hyperlinks inside the field but it looked ugly and I could only press on the hyperlink, I tried adding a HTML default hyperl...
[ { "answer_id": 74336826, "author": "Emile Youssef FEGHALI EL", "author_id": 19603779, "author_profile": "https://Stackoverflow.com/users/19603779", "pm_score": 3, "selected": true, "text": "onclick <button onclick=\"goToStackOverflow()\">Click Me</button> \n <script>\n func...
2022/11/06
[ "https://Stackoverflow.com/questions/74336713", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17856469/" ]
74,336,715
<p>Here is the issue to solve. I have a table <strong>USERS</strong> and a table <strong>GROUP_USER</strong>. I am updating table <strong>USERS</strong> and the data I update in that table will directly affect the <strong>GROUP_USER</strong> table. Here are the tables</p> <pre><code>**Users table** id number_of_items g...
[ { "answer_id": 74336798, "author": "forpas", "author_id": 10498828, "author_profile": "https://Stackoverflow.com/users/10498828", "pm_score": 2, "selected": true, "text": "LEFT UPDATE UPDATE users u\nLEFT JOIN group_user g \nON g.id = u.current_group AND u.number_of_items = 1\nSET u.numb...
2022/11/06
[ "https://Stackoverflow.com/questions/74336715", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12697602/" ]
74,336,742
<p>I'm using the following script to take a csv with minute data and perform some operations like adding new data columns with calculations.</p> <p>As an edit to include csv data as mentioned in comments:</p> <pre><code>2022/11/05 23:40:02,1000.13575463,0.02115 2022/11/05 23:41:01,1000.13575463,0.0147 2022/11/05 23:42:...
[ { "answer_id": 74337107, "author": "Pierre D", "author_id": 758174, "author_profile": "https://Stackoverflow.com/users/758174", "pm_score": 1, "selected": false, "text": ".resample() groupby sum() mean() size() count() gb = df.groupby(...)\ngb['A'] / gb['B'] # wrong\n gb['A'].sum() / gb...
2022/11/06
[ "https://Stackoverflow.com/questions/74336742", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18135786/" ]
74,336,822
<p>I have a data frame like below. It has two columns <code>column1,column2</code> from these two columns I want to filter few values(combinations of two lists) and get the index. Though I wrote the logic for it. It is will be too slow for filtering from a larger data frame. Is there any faster way to filter the data a...
[ { "answer_id": 74336882, "author": "Naveed", "author_id": 3494754, "author_profile": "https://Stackoverflow.com/users/3494754", "pm_score": 1, "selected": false, "text": "# create a DF of the list you like to match with\ndf2=pd.DataFrame({'col1': l1, 'col2': l2})\n\n# merge the two DF\nd...
2022/11/06
[ "https://Stackoverflow.com/questions/74336822", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19079397/" ]
74,336,836
<pre><code>New-Item -Path &quot;HKCR:\Directory\Background\shell\customname&quot; -Force </code></pre> <p>I've been doing the same thing for HKCU and KHLM but when I try HKCR I get errors in PowerShell. how am I supposed to do it for HKEY_CLASSES_ROOT?</p> <p>I searched for a solution but couldn't find any.</p>
[ { "answer_id": 74337077, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 1, "selected": false, "text": "Get-PSDrive HKCU Registry HKEY_CURRENT_USER\nHKLM R...
2022/11/06
[ "https://Stackoverflow.com/questions/74336836", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,336,854
<p>This is a snippet of the code I am working on</p> <pre><code>mark =[] totMark1 = 0 # Set the value for pre_class_activity and determine the weight of pre-class activities pre_class_activity = 4 weight1 = pre_class_activity * 4 try: # ask the user to enter their marks they got in the pre class activ...
[ { "answer_id": 74337077, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 1, "selected": false, "text": "Get-PSDrive HKCU Registry HKEY_CURRENT_USER\nHKLM R...
2022/11/06
[ "https://Stackoverflow.com/questions/74336854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20432817/" ]
74,336,855
<p>Given 3 numbers N , L and R. Print 'yes' if N is between L and R else print 'no'. Sample Testcase : INPUT 3 2 6 OUTPUT yes</p> <p>How to solve this problem using javascript, I can't even understand the question,So please help me to solve this....</p>
[ { "answer_id": 74336897, "author": "Asraf", "author_id": 20361860, "author_profile": "https://Stackoverflow.com/users/20361860", "pm_score": 2, "selected": false, "text": "N L R if (N > L && N < R){} (3, 2, 6) => N = 3, L = 2 and R = 6 const check = (N, L, R) => {\n if (N > L && N < R) ...
2022/11/06
[ "https://Stackoverflow.com/questions/74336855", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19328314/" ]
74,336,875
<p>I have an <strong>associative array</strong> that I want to pass to cURL as POST data. However i have tried multiple things, still it doesn't work.</p> <p>The <strong>array</strong>:</p> <pre><code>declare -A details details[name]=&quot;Honey&quot; details[class]=&quot;10&quot; details[section]=&quot;A&quot; details...
[ { "answer_id": 74337170, "author": "markp-fuso", "author_id": 7366100, "author_profile": "https://Stackoverflow.com/users/7366100", "pm_score": 0, "selected": false, "text": "bash # use a function to build the --data component\n\nbuild_data() {\n local -n _arr=\"$1\" ...
2022/11/06
[ "https://Stackoverflow.com/questions/74336875", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13223056/" ]
74,336,910
<p>I am building a blog app in react and I am filtering some dict values and appending in list dict. But It is appending duplicate keys with unique values in list dict. And I am know trying to merge the two same keys into one But I have tried many times but it is not working.</p> <p>App.js</p> <pre><code>function App(r...
[ { "answer_id": 74336957, "author": "Axnyff", "author_id": 4949918, "author_profile": "https://Stackoverflow.com/users/4949918", "pm_score": 0, "selected": false, "text": "const blogByTypes = {};\n\n\nresponse.forEach(response => {\n if (blogByTypes[response.type]) {\n blogByTyp...
2022/11/06
[ "https://Stackoverflow.com/questions/74336910", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20432567/" ]
74,336,977
<p><a href="https://i.stack.imgur.com/ePcbq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ePcbq.jpg" alt="Formula" /></a></p> <pre><code>%% Popolazione di detriti % Costanti Mv=10000; % 10000 kg massa nominale velivolo V_0 = 200*.3048; % velocità al distacco dalla WKT in m/s a 14325 m N=1000 D=ra...
[ { "answer_id": 74338041, "author": "Ahmed AEK", "author_id": 15649230, "author_profile": "https://Stackoverflow.com/users/15649230", "pm_score": 1, "selected": true, "text": "prodotto=0;\nEk_d=0;\nfor k=1:N\n for direction = 1:3\n prodotto = .5*m_i(k)*(v(direction)+DeltaV_c(k,direc...
2022/11/06
[ "https://Stackoverflow.com/questions/74336977", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20425012/" ]
74,336,996
<pre><code> array = [] for vid in account: vid_shares = (df.loc[df['account'] == '123', 'shares']) array.append(vid_shares) print(array) </code></pre> <p>This produces something in the following format.</p> <pre><code>1 10.0 2 15.0 3 0.0 4 12.0 5 17.0 6 0.0 7 9.0 8 ...
[ { "answer_id": 74338041, "author": "Ahmed AEK", "author_id": 15649230, "author_profile": "https://Stackoverflow.com/users/15649230", "pm_score": 1, "selected": true, "text": "prodotto=0;\nEk_d=0;\nfor k=1:N\n for direction = 1:3\n prodotto = .5*m_i(k)*(v(direction)+DeltaV_c(k,direc...
2022/11/06
[ "https://Stackoverflow.com/questions/74336996", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11774730/" ]
74,337,013
<p>I want to collect GitHub users' monthly contributions from 2004 until now as shown in the picture. <a href="https://i.stack.imgur.com/cS3g1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cS3g1.jpg" alt="enter image description here" /></a> And output the monthly data into csv file with correspon...
[ { "answer_id": 74337899, "author": "Jack Fleeting", "author_id": 9448090, "author_profile": "https://Stackoverflow.com/users/9448090", "pm_score": 0, "selected": false, "text": "requests lxml //div[@class=\"contribution-activity-listing float-left col-12 \"]//details[@class=\"Details-ele...
2022/11/06
[ "https://Stackoverflow.com/questions/74337013", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10295124/" ]
74,337,033
<p>I'm currently a bit stuck, since I'm a bit unsure of how to even formulate my problem. What I have is a dataframe of observations with a few variables. Lets say:</p> <pre><code>test &lt;- data.frame(var1=c(&quot;a&quot;,&quot;b&quot;),var2=c(15,12)) </code></pre> <p>Is my initial dataset. What I want to end up with ...
[ { "answer_id": 74337359, "author": "Andre Wildberg", "author_id": 9462095, "author_profile": "https://Stackoverflow.com/users/9462095", "pm_score": 2, "selected": true, "text": "dplyr library(dplyr)\n\ndf %>% \n group_by(var1) %>% \n summarize(var2, var3 = 0:9, .groups=\"drop\")\n# A t...
2022/11/06
[ "https://Stackoverflow.com/questions/74337033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12637953/" ]
74,337,073
<p>I am a JavaScript (and an overall programming) newbie, and this is one of my first exercices. I have to do a login page, where the user has to type in an already existing username and password, which are saved in two different arrays (one for the usernames and one for the passwords):</p> <pre><code>const users=[&quo...
[ { "answer_id": 74337359, "author": "Andre Wildberg", "author_id": 9462095, "author_profile": "https://Stackoverflow.com/users/9462095", "pm_score": 2, "selected": true, "text": "dplyr library(dplyr)\n\ndf %>% \n group_by(var1) %>% \n summarize(var2, var3 = 0:9, .groups=\"drop\")\n# A t...
2022/11/06
[ "https://Stackoverflow.com/questions/74337073", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20427773/" ]
74,337,074
<p>When I input a word like for example <code>hello</code> it prints this <code> 4 + 1 + 3 + 3 + 1 += 12</code></p> <pre><code> Console.Write(&quot;Give a word: &quot;); string word = Console.ReadLine(); string smallword = word.ToLower(); int sum = 0; forea...
[ { "answer_id": 74337359, "author": "Andre Wildberg", "author_id": 9462095, "author_profile": "https://Stackoverflow.com/users/9462095", "pm_score": 2, "selected": true, "text": "dplyr library(dplyr)\n\ndf %>% \n group_by(var1) %>% \n summarize(var2, var3 = 0:9, .groups=\"drop\")\n# A t...
2022/11/06
[ "https://Stackoverflow.com/questions/74337074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19813966/" ]
74,337,216
<p>I am trying to create a new df <code>new_df</code> with columns from different data frames.</p> <p>The columns are of unequal length, which I presume can be solved by replacing empty 'cells' with NA? However, this is above my current skill level, so any help will be much appreciated!</p> <p>Packages:</p> <pre><code>...
[ { "answer_id": 74337359, "author": "Andre Wildberg", "author_id": 9462095, "author_profile": "https://Stackoverflow.com/users/9462095", "pm_score": 2, "selected": true, "text": "dplyr library(dplyr)\n\ndf %>% \n group_by(var1) %>% \n summarize(var2, var3 = 0:9, .groups=\"drop\")\n# A t...
2022/11/06
[ "https://Stackoverflow.com/questions/74337216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20364879/" ]
74,337,246
<p>I am trying to pair the first and last values together from a list, the second and the 2nd last number and so on. I can do it manually:</p> <pre><code>list = [ slist[0], slist[-1] ] list1 = [ slist[1], slist[-2] ] </code></pre> <p>but the problem for me here is that I am taking an input for the number of students an...
[ { "answer_id": 74337359, "author": "Andre Wildberg", "author_id": 9462095, "author_profile": "https://Stackoverflow.com/users/9462095", "pm_score": 2, "selected": true, "text": "dplyr library(dplyr)\n\ndf %>% \n group_by(var1) %>% \n summarize(var2, var3 = 0:9, .groups=\"drop\")\n# A t...
2022/11/06
[ "https://Stackoverflow.com/questions/74337246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18261323/" ]
74,337,252
<p>I have a button which suppose to change a boolean variable from true to false and vice versa, like a switch. the variable and the button are in different components, how is that possible to share the variable if they components are not parent-child?</p>
[ { "answer_id": 74339318, "author": "Brandon Taylor", "author_id": 598683, "author_profile": "https://Stackoverflow.com/users/598683", "pm_score": 1, "selected": true, "text": "Subject BehviorSubject Observable import { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observa...
2022/11/06
[ "https://Stackoverflow.com/questions/74337252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20244043/" ]
74,337,261
<p>I have been working on a Scrabble assignment. I need to read words from a list, then read each char and assign a value, eventually assigning a total score to each word. That has been done! Phew. Now I need to use the Comparator to sort the words from greatest score to least. I have done a lot of reading and I'm stil...
[ { "answer_id": 74337668, "author": "WJS", "author_id": 1552534, "author_profile": "https://Stackoverflow.com/users/1552534", "pm_score": 1, "selected": false, "text": "List sort() Comparator Comparator.comparing(Function<? super T,? extends U> keyExtractor) KeyExtractor Word.getValue rec...
2022/11/06
[ "https://Stackoverflow.com/questions/74337261", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20400438/" ]
74,337,304
<p>My app is built in SwiftUI and mostly works as is with iOS 16 apart from a couple of design quirks which I'm currently working on a fix for.</p> <p>One of the quirks is the background colours of lists. Previously I have used Introspect to set the color of the background on the lists but as Lists have been reimplemen...
[ { "answer_id": 74337668, "author": "WJS", "author_id": 1552534, "author_profile": "https://Stackoverflow.com/users/1552534", "pm_score": 1, "selected": false, "text": "List sort() Comparator Comparator.comparing(Function<? super T,? extends U> keyExtractor) KeyExtractor Word.getValue rec...
2022/11/06
[ "https://Stackoverflow.com/questions/74337304", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2277583/" ]
74,337,308
<p>Windows has a 256 characters limit for file paths, but users can definitely create files with path longer than 256 characters. Let's call file paths shorter than or equal 255 characters as short paths, and those longer than or equal to 256 characters as long path.</p> <p>While working on another problem, I need to c...
[ { "answer_id": 74337485, "author": "Eugene Astafiev", "author_id": 1603351, "author_profile": "https://Stackoverflow.com/users/1603351", "pm_score": 2, "selected": false, "text": "[DllImport(\"shlwapi\", EntryPoint = \"PathFileExists\", CharSet = CharSet.Unicode)]\npublic static extern b...
2022/11/06
[ "https://Stackoverflow.com/questions/74337308", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8699155/" ]
74,337,312
<p><strong>data.service.ts</strong></p> <pre><code>testData$ = new Subject&lt;any&gt;(); initData() { this.getDataFromApi().subscribe((response) =&gt; { this.testData$.next(response) }); } getInitData() { return this.testData$; } </code></pre> <p><strong>parent.component.ts</strong></...
[ { "answer_id": 74337485, "author": "Eugene Astafiev", "author_id": 1603351, "author_profile": "https://Stackoverflow.com/users/1603351", "pm_score": 2, "selected": false, "text": "[DllImport(\"shlwapi\", EntryPoint = \"PathFileExists\", CharSet = CharSet.Unicode)]\npublic static extern b...
2022/11/06
[ "https://Stackoverflow.com/questions/74337312", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20433039/" ]
74,337,354
<pre class="lang-json prettyprint-override"><code>{ &quot;employerId&quot;:&quot;{{employerId}}&quot;, &quot;firstName&quot;:&quot;Sarah&quot;, &quot;lastName&quot;: &quot;Longfield&quot;, &quot;last4TIN&quot;:&quot;7066&quot;, &quot;emailId&quot;: &quot;deepakre+356441@gmail.com.com&quot;, &quo...
[ { "answer_id": 74337485, "author": "Eugene Astafiev", "author_id": 1603351, "author_profile": "https://Stackoverflow.com/users/1603351", "pm_score": 2, "selected": false, "text": "[DllImport(\"shlwapi\", EntryPoint = \"PathFileExists\", CharSet = CharSet.Unicode)]\npublic static extern b...
2022/11/06
[ "https://Stackoverflow.com/questions/74337354", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15632627/" ]
74,337,394
<p>I am using a MUI Text Field component. I added a select prop so i make it a select with dropwon values and a dropdown icon . I wanted to change the dropdown Icon to a custom icon i have in figma . The problem is that when i chage it to a custom icon , i cannot click it anymore and i've tried multiple solutions like ...
[ { "answer_id": 74337485, "author": "Eugene Astafiev", "author_id": 1603351, "author_profile": "https://Stackoverflow.com/users/1603351", "pm_score": 2, "selected": false, "text": "[DllImport(\"shlwapi\", EntryPoint = \"PathFileExists\", CharSet = CharSet.Unicode)]\npublic static extern b...
2022/11/06
[ "https://Stackoverflow.com/questions/74337394", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18174677/" ]
74,337,398
<p>I am trying to return an array that has 1 added to the value represented by the array given the array of any length but I get this error once I execute my code:</p> <pre><code>UnboundLocalError: local variable 'sbang' referenced before assignment </code></pre> <p>My code is :</p> <pre><code>def up_array(arr): ...
[ { "answer_id": 74337437, "author": "Matteo Zanoni", "author_id": 13384774, "author_profile": "https://Stackoverflow.com/users/13384774", "pm_score": 1, "selected": false, "text": "arr sbang def up_array(arr):\n\n for i in arr:\n if i < 0:\n return None\n if i ...
2022/11/06
[ "https://Stackoverflow.com/questions/74337398", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20433159/" ]
74,337,419
<p>I am trying to replicate some Matlab code in R and I have been looking around for an R equivalent of Matlab's <code>sphere()</code> function.</p> <p>For reference the <code>sphere()</code> function documentation is <a href="https://www.mathworks.com/help/matlab/ref/sphere.html" rel="nofollow noreferrer">here</a>.</p...
[ { "answer_id": 74337651, "author": "Allan Cameron", "author_id": 12500315, "author_profile": "https://Stackoverflow.com/users/12500315", "pm_score": 2, "selected": false, "text": "spheresurf3D plot3D library(plot3D)\n\nspheresurf3D(bty = \"b\", ticktype = \"detailed\", phi = 30, theta = ...
2022/11/06
[ "https://Stackoverflow.com/questions/74337419", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7058869/" ]
74,337,458
<p>I am trying to figure out how to extract a substring from a column in SQL Server. I very much would like to be able to do it directly in SQL if at all possible. The content of my column holds the responses of a web form and looks like this:</p> <pre><code>&quot;a:27:{s:5:\&quot;FieldX\&quot;;s:22:\&quot;Response to ...
[ { "answer_id": 74337568, "author": "Stu", "author_id": 15332650, "author_profile": "https://Stackoverflow.com/users/15332650", "pm_score": 3, "selected": true, "text": "select Substring(Responses, NullIf(p1,0) + 30, p2-(NullIf(p1,0) + 30)) Products\nfrom WebFormData\ncross apply (values(...
2022/11/06
[ "https://Stackoverflow.com/questions/74337458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9582610/" ]
74,337,463
<p><strong>I have a following text-file products.txt:</strong></p> <p>Product;Amount;Price Apple;3;10.00 Banana;1;5.00 Lemon;2;3.00 Orange;4;20.00 Apple;4;8.00</p> <p><strong>I want read this file and make a new text-file newfile.txt, which contains value of each row (Amount X Price):</strong></p> <p>30.00 5.00 6.00 80...
[ { "answer_id": 74337568, "author": "Stu", "author_id": 15332650, "author_profile": "https://Stackoverflow.com/users/15332650", "pm_score": 3, "selected": true, "text": "select Substring(Responses, NullIf(p1,0) + 30, p2-(NullIf(p1,0) + 30)) Products\nfrom WebFormData\ncross apply (values(...
2022/11/06
[ "https://Stackoverflow.com/questions/74337463", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20433130/" ]
74,337,517
<p>I have a &quot;html home page&quot; and I want the button to direct to other local files in the browser. This works fine with hyperlinks but I got code for custom buttons that I want to use but they aren't allowing me to open local files just links. Code:</p> <pre class="lang-html prettyprint-override"><code>&lt;htm...
[ { "answer_id": 74337561, "author": "lapourgagner", "author_id": 20019442, "author_profile": "https://Stackoverflow.com/users/20019442", "pm_score": 2, "selected": false, "text": "<a href=\"file:///D:\\School Project\\Physics.html\"><b>Physics</b></a>\n" }, { "answer_id": 74337595...
2022/11/06
[ "https://Stackoverflow.com/questions/74337517", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17856469/" ]
74,337,519
<p>I have a list of coordinates with fixed Lon and vary Lat like this:</p> <pre><code>75.5 36.5 37.4290504456 75.5 36.4 52.4753456116 75.5 36.3 66.4775466919 75.5 36.2 84.0023193359 75.5 36.1 111.997085571 75.5 36 172.343933105 75.5 35.9 111.806427002 75.5 35.8 83.565589904...
[ { "answer_id": 74337561, "author": "lapourgagner", "author_id": 20019442, "author_profile": "https://Stackoverflow.com/users/20019442", "pm_score": 2, "selected": false, "text": "<a href=\"file:///D:\\School Project\\Physics.html\"><b>Physics</b></a>\n" }, { "answer_id": 74337595...
2022/11/06
[ "https://Stackoverflow.com/questions/74337519", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20433338/" ]
74,337,528
<p>I'm new to JQUERY and I want to change the button text when user clicks on it from &quot;Reservar&quot; to &quot;RESERVADO&quot; and from &quot;RESERVADO&quot; to &quot;Reservar&quot; again, and so on (toggle).</p> <p>But I can only change the button text once, and then it doesn't change anymore. Any help is appreci...
[ { "answer_id": 74337632, "author": "jerem", "author_id": 20433168, "author_profile": "https://Stackoverflow.com/users/20433168", "pm_score": 1, "selected": false, "text": "<button id=\"rec\" class=\"bg-transparent mt-5 hover:bg-blue-500 text-blue-700 font-semibold hover:text-white py-2 p...
2022/11/06
[ "https://Stackoverflow.com/questions/74337528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17030107/" ]
74,337,530
<p>model class</p> <pre><code>public int Year { get; set; } = 0; public int Odometer { get; set; } public string ImageURL { get; set; } = &quot;NA&quot;; public string Category { get; set; } = &quot;NA&quot;; </code></pre> <p>My View</p> <pre><code>&lt;div class=&quot;form-group&quot;&gt; &lt;label clas...
[ { "answer_id": 74337632, "author": "jerem", "author_id": 20433168, "author_profile": "https://Stackoverflow.com/users/20433168", "pm_score": 1, "selected": false, "text": "<button id=\"rec\" class=\"bg-transparent mt-5 hover:bg-blue-500 text-blue-700 font-semibold hover:text-white py-2 p...
2022/11/06
[ "https://Stackoverflow.com/questions/74337530", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18172758/" ]
74,337,531
<p>In the model that I am working on i have a Boolean of that controls the turn ON and OFF of a system, that means during simulation my system turns ON and OFF many times, so I want to calculate the frequency of the ON/OFF, does anyone have an idea, please</p> <p>thank you</p>
[ { "answer_id": 74342081, "author": "Akhil Nandan", "author_id": 16020568, "author_profile": "https://Stackoverflow.com/users/16020568", "pm_score": 2, "selected": false, "text": "model Boolean_Test\n Modelica.Blocks.Sources.BooleanPulse BooleanPulse(period = 20e-3, width = 20) annotati...
2022/11/06
[ "https://Stackoverflow.com/questions/74337531", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11214365/" ]
74,337,566
<p>I am attempting to implement a private route in React; the homepage should not be visible until the user logs in. If I restart my frontend, all protected routes are not accessible until the user logs in. However, after the first login, all protected routes don't seem to be protected; I can logout, the session is des...
[ { "answer_id": 74339369, "author": "Ghazi", "author_id": 16589029, "author_profile": "https://Stackoverflow.com/users/16589029", "pm_score": 0, "selected": false, "text": "checkLoggedIn CheckLoggedIn \nimport{\n Routes,\n Route,\n} from \"react-router-dom\";\n\nimport React from \"reac...
2022/11/06
[ "https://Stackoverflow.com/questions/74337566", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13923905/" ]
74,337,567
<p>So in C I'm supposed to let the user input an integer n from the interval [5, 25]. And then, for every number from 1 to n, in a new line print that many stars so it would look something like this:</p> <pre><code>* ** *** </code></pre> <p>I tried doing it like this, but it's not working. What am I doing wrong here?...
[ { "answer_id": 74337605, "author": "0___________", "author_id": 6110094, "author_profile": "https://Stackoverflow.com/users/6110094", "pm_score": 0, "selected": false, "text": " for (int i=0; i < n; i++)\n {\n for(int j = 0; j <= i; j++)\n printf(\"*\");\n ...
2022/11/06
[ "https://Stackoverflow.com/questions/74337567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19296411/" ]
74,337,577
<p>I a learning cypress and new to javascript I need your help. I want to validate, weather the items, I added to cart, are in my bag, and as I iterate through my bag, it only validates first item, instead my whole collection and it gives this assertion error:</p> <blockquote> <p>Expected <code>&lt;p.product-name&gt;</...
[ { "answer_id": 74338075, "author": "Alapan Das", "author_id": 4571271, "author_profile": "https://Stackoverflow.com/users/4571271", "pm_score": 0, "selected": false, "text": "const vegetables = ['Cauliflower - 1 Kg', 'Cashews - 1 Kg']\n\ncy.get('li[class*=\"cart-item\"]')\n .find(' p[cl...
2022/11/06
[ "https://Stackoverflow.com/questions/74337577", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13180353/" ]
74,337,588
<p>In my project (VUE + Vuex) I need to make some API requests simultaneously, according to some <code>contents</code> and then process the results.</p> <p>The <code>getters.api_props(key)</code> function will return the method ('post', 'patch', 'delete') or false if there is no need for a request. It will also return ...
[ { "answer_id": 74338184, "author": "g_ap", "author_id": 2799563, "author_profile": "https://Stackoverflow.com/users/2799563", "pm_score": 0, "selected": false, "text": "promiseArray api[method](url, hash).then((r) => [key, r]).catch((e) => {throw [key, e.response]})\n await Promise.allSe...
2022/11/06
[ "https://Stackoverflow.com/questions/74337588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2799563/" ]
74,337,624
<p>i have a input tag that can search skills. when i type, the option bar will be under the profile card.</p> <pre><code> i want to make my select option on top of the profile card. [![select option box under the profile card](https://i.stack.imgur.com/3E724.png)](https://i.stack.imgur.com/3E724.png) here is my css co...
[ { "answer_id": 74338184, "author": "g_ap", "author_id": 2799563, "author_profile": "https://Stackoverflow.com/users/2799563", "pm_score": 0, "selected": false, "text": "promiseArray api[method](url, hash).then((r) => [key, r]).catch((e) => {throw [key, e.response]})\n await Promise.allSe...
2022/11/06
[ "https://Stackoverflow.com/questions/74337624", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20433411/" ]
74,337,655
<p>I am adding an environmental variable in bashrc, but am unable to see the variables using os.environ.get in a Python file.</p> <p>I am using Raspbian on a Raspberry Pi 4.</p> <p>I am setting an environmental variable in “bashrc” as follows:</p> <pre><code>export DB_USER='emailAddress@gmail.com' </code></pre> <p>When...
[ { "answer_id": 74339661, "author": "JL Peyret", "author_id": 1394353, "author_profile": "https://Stackoverflow.com/users/1394353", "pm_score": 1, "selected": false, "text": "DB_USER=emailAddress@gmail.com\n export /etc/profile.d /etc/environment" }, { "answer_id": 74340018, "...
2022/11/06
[ "https://Stackoverflow.com/questions/74337655", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8388721/" ]
74,337,674
<p>I was working on a sagemaker studio for ML work, I attached Lifecycle Configuration with it, which was creating problem. Then I deleted the lifecycle configuration without detaching it, and this problem is happening. Can't start sagemaker studio notebook and this is shown.</p> <p><a href="https://i.stack.imgur.com/A...
[ { "answer_id": 74339661, "author": "JL Peyret", "author_id": 1394353, "author_profile": "https://Stackoverflow.com/users/1394353", "pm_score": 1, "selected": false, "text": "DB_USER=emailAddress@gmail.com\n export /etc/profile.d /etc/environment" }, { "answer_id": 74340018, "...
2022/11/06
[ "https://Stackoverflow.com/questions/74337674", "https://Stackoverflow.com", "https://Stackoverflow.com/users/973936/" ]
74,337,681
<p>If I read the JLS <a href="https://docs.oracle.com/javase/specs/jls/se19/html/jls-8.html#jls-8.1.6" rel="nofollow noreferrer">§8.1.6</a> and <a href="https://docs.oracle.com/javase/specs/jls/se19/html/jls-9.html#jls-9.1.4" rel="nofollow noreferrer">§9.1.4</a> correctly, the classes that a sealed class/interface perm...
[ { "answer_id": 74337835, "author": "Alexander Ivanchenko", "author_id": 17949945, "author_profile": "https://Stackoverflow.com/users/17949945", "pm_score": 1, "selected": false, "text": "§8.1.6 §9.1.4 permits C §8.1.4 sealed non-sealed final final non-sealed permits sealed permite final ...
2022/11/06
[ "https://Stackoverflow.com/questions/74337681", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3955765/" ]
74,337,686
<p>I am trying to create a dictionary from a list recursively and my code only works when there is only one item in the list. It fails for multiple items and I suspect that this is because the dictionary is being recreated through each instance of the recursion instead of adding to it after the first instance. How can ...
[ { "answer_id": 74337885, "author": "C-3PO", "author_id": 4667669, "author_profile": "https://Stackoverflow.com/users/4667669", "pm_score": 0, "selected": false, "text": "restaurantChoices (key,value) dict def poncePlanner(restaurantChoices):\n return dict(restaurantChoices)\n for-loop...
2022/11/06
[ "https://Stackoverflow.com/questions/74337686", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18021751/" ]
74,337,720
<p>i have a task to do (based on nothing we have learnt.. this is part of the challange, but i cannot do it nor know what i am supposed to search i have tried everything.</p> <p>this is the task:</p> <pre><code>/** * Create a function that accepts two numbers, * and calls the callback with the sum of those numbers *...
[ { "answer_id": 74337885, "author": "C-3PO", "author_id": 4667669, "author_profile": "https://Stackoverflow.com/users/4667669", "pm_score": 0, "selected": false, "text": "restaurantChoices (key,value) dict def poncePlanner(restaurantChoices):\n return dict(restaurantChoices)\n for-loop...
2022/11/06
[ "https://Stackoverflow.com/questions/74337720", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20386686/" ]
74,337,727
<p>I am wondering if there is a way to call an API in few secs after user has entered the values.</p> <p>This logic is implemented in <code>Saga middleware</code> where <code>takeLatest</code> keyword is being used to take the latest value and make an api call.</p> <pre><code>import { takeLatest} from 'redux-saga/effec...
[ { "answer_id": 74337885, "author": "C-3PO", "author_id": 4667669, "author_profile": "https://Stackoverflow.com/users/4667669", "pm_score": 0, "selected": false, "text": "restaurantChoices (key,value) dict def poncePlanner(restaurantChoices):\n return dict(restaurantChoices)\n for-loop...
2022/11/06
[ "https://Stackoverflow.com/questions/74337727", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20319015/" ]
74,337,792
<p>I use two libraries in my project; let's say A and B for the sake of this question. Unfortunately, I ended up in the following situation:</p> <p>In A.h:</p> <pre><code>#define ssize_t long </code></pre> <p>In B.h:</p> <pre><code>typedef long long ssize_t; </code></pre> <p>This leads to the following error, if A.h is...
[ { "answer_id": 74337885, "author": "C-3PO", "author_id": 4667669, "author_profile": "https://Stackoverflow.com/users/4667669", "pm_score": 0, "selected": false, "text": "restaurantChoices (key,value) dict def poncePlanner(restaurantChoices):\n return dict(restaurantChoices)\n for-loop...
2022/11/06
[ "https://Stackoverflow.com/questions/74337792", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8735401/" ]
74,337,800
<p>This is a python file that's supposed to act like a phone book the file is called exam.txt its supposed to create, save, append, search and delete contacts but the delete part deletes all the strings instead of specific strings (the rest of the code is ok when executed the deleting part is the last part of the code)...
[ { "answer_id": 74337885, "author": "C-3PO", "author_id": 4667669, "author_profile": "https://Stackoverflow.com/users/4667669", "pm_score": 0, "selected": false, "text": "restaurantChoices (key,value) dict def poncePlanner(restaurantChoices):\n return dict(restaurantChoices)\n for-loop...
2022/11/06
[ "https://Stackoverflow.com/questions/74337800", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20417349/" ]
74,337,804
<p>I am reading content of a file and and trying to print it, but it is giving extra garbage value.</p> <pre><code>#define _CRT_SECURE_NO_DEPRECATE #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; int main() { long length; char* content; FILE *file = fopen(&quot;text.txt&quot;, &quot;r&quot;); fseek(...
[ { "answer_id": 74337823, "author": "273K", "author_id": 6752050, "author_profile": "https://Stackoverflow.com/users/6752050", "pm_score": 1, "selected": false, "text": "content = (char *)malloc(length + 1);\nmemset(content, 0, length + 1);\nfread(content, 1, length, file);\n length = fre...
2022/11/06
[ "https://Stackoverflow.com/questions/74337804", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20239215/" ]
74,337,814
<p>I want to put my Lists items in <strong>ExpansionTile</strong>, the title is set perfectly but children's items not set inside list. I want to add children items inside <strong>ExpansionTile</strong> children</p> <p>My dataList:</p> <pre><code>List dataList = [ { &quot;title&quot;: &quot;Payments&quot;, ...
[ { "answer_id": 74337973, "author": "OMi Shah", "author_id": 5882307, "author_profile": "https://Stackoverflow.com/users/5882307", "pm_score": 2, "selected": true, "text": "index dataList[index]['children'] children: [\n Padding(\n padding: const EdgeInsets.al...
2022/11/06
[ "https://Stackoverflow.com/questions/74337814", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13997210/" ]
74,337,876
<p>I have created a deployment yaml file with an image name with my private docker repository. when running the command :</p> <pre><code> kubectl get pods </code></pre> <p>I see that the status of the created pod from that deployment file is ImagePullBackOff. from what I have read it is because I am pulling the image f...
[ { "answer_id": 74341670, "author": "Rakesh Gupta", "author_id": 2777988, "author_profile": "https://Stackoverflow.com/users/2777988", "pm_score": 0, "selected": false, "text": "kubectl create secret generic regcred \\\n --from-file=.dockerconfigjson=<path/to/.docker/config.json> \\\n ...
2022/11/06
[ "https://Stackoverflow.com/questions/74337876", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1906070/" ]
74,337,881
<p>I need to get the text from first <code>&lt;td&gt;</code> element of each <code>&lt;tr&gt;</code>. But not all the text, only the one inside tags <code>&lt;a&gt;</code> and outside of any other tag. I wrote examples of necessary text as &quot;yyy&quot;/&quot;y&quot; and examples of not necessary as &quot;zzz&quot;</...
[ { "answer_id": 74341670, "author": "Rakesh Gupta", "author_id": 2777988, "author_profile": "https://Stackoverflow.com/users/2777988", "pm_score": 0, "selected": false, "text": "kubectl create secret generic regcred \\\n --from-file=.dockerconfigjson=<path/to/.docker/config.json> \\\n ...
2022/11/06
[ "https://Stackoverflow.com/questions/74337881", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20431669/" ]
74,337,909
<p>I need to write a function that allows me to convert timeseries data (wind speed as the argument) to power output for a turbine. The output is based on several intervals.</p> <p>So i have tried to create an additional dataframe to store the conversion coefficients.</p> <p>The Problem is, that I get always the error ...
[ { "answer_id": 74341670, "author": "Rakesh Gupta", "author_id": 2777988, "author_profile": "https://Stackoverflow.com/users/2777988", "pm_score": 0, "selected": false, "text": "kubectl create secret generic regcred \\\n --from-file=.dockerconfigjson=<path/to/.docker/config.json> \\\n ...
2022/11/06
[ "https://Stackoverflow.com/questions/74337909", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20433452/" ]
74,337,911
<p>I would like to use a single mount point on a node (ie <code>/data</code>) and have a different sub folder for each <code>PersistentVolumeClaim</code> that I am going to use in my cluster.</p> <p>At the moment I have multiple <code>StorageClass</code> and <code>PersistentVolume</code> for each sub folder, for exampl...
[ { "answer_id": 74341670, "author": "Rakesh Gupta", "author_id": 2777988, "author_profile": "https://Stackoverflow.com/users/2777988", "pm_score": 0, "selected": false, "text": "kubectl create secret generic regcred \\\n --from-file=.dockerconfigjson=<path/to/.docker/config.json> \\\n ...
2022/11/06
[ "https://Stackoverflow.com/questions/74337911", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4465440/" ]
74,337,915
<p>As the title mentioned, I have to remove adjacent duplicates in linked list such that if input is 'google', output should be 'le'. I'm supposed to code it in C. I've written 70% of the code, except that I don't know how to continuously loop till all adjacent duplicates are removed. I'm removing adjacent duplicates i...
[ { "answer_id": 74338138, "author": "trincot", "author_id": 5459839, "author_profile": "https://Stackoverflow.com/users/5459839", "pm_score": 3, "selected": true, "text": "void remove_adjacent_duplicates(struct node** head_ref)\n{\n struct node* current = *head_ref;\n if (current ==...
2022/11/06
[ "https://Stackoverflow.com/questions/74337915", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19611563/" ]
74,337,916
<p>I am creating a game in visual studio using c sharp and want to add a pop up message saying 'game Over' once the timer reaches 0. Currently the countdown timer goes to negative seconds and the game keeps going. Currently attempt is below and any help is apricated.</p> <pre><code>public MainPage() { Initi...
[ { "answer_id": 74342399, "author": "Lynn-MSFT", "author_id": 20376806, "author_profile": "https://Stackoverflow.com/users/20376806", "pm_score": 1, "selected": false, "text": "public partial class Form1 : Form\n{\n TimeSpan Span = new TimeSpan(0, 0, 10);\n public Form1()\n {\n ...
2022/11/06
[ "https://Stackoverflow.com/questions/74337916", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20433628/" ]
74,337,926
<p>In the context of Functional Programming, I want to have the capabilities of Option or Maybe from Scala, Haskell in TypeScript.</p> <p>I can simply define <code>Option</code> below with TS compiler option <strong>strictNullChecks</strong> turned on:</p> <pre><code>type Option&lt;A&gt; = A | null </code></pre> <p>Whi...
[ { "answer_id": 74338414, "author": "Guillaume Brunerie", "author_id": 521624, "author_profile": "https://Stackoverflow.com/users/521624", "pm_score": 3, "selected": true, "text": "type Option<T> = {value: T} | null;\n null T if (myValueOfOptionType) {\n console.log(myValueOfOptionType.v...
2022/11/06
[ "https://Stackoverflow.com/questions/74337926", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1341340/" ]
74,337,955
<p><a href="https://i.stack.imgur.com/jNmxA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jNmxA.png" alt="enter image description here" /></a></p> <p><a href="https://i.stack.imgur.com/AkbCG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AkbCG.png" alt="enter image description h...
[ { "answer_id": 74337999, "author": "Sebastian S.", "author_id": 5607537, "author_profile": "https://Stackoverflow.com/users/5607537", "pm_score": 2, "selected": false, "text": "SELECT ID AS id, Homeph AS phone\nFROM table\n\nUNION\n\nSELECT ID AS id, Contactph AS phone\nFROM table\n" }...
2022/11/06
[ "https://Stackoverflow.com/questions/74337955", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20433631/" ]
74,337,983
<p>In SQL Server we can create new column by adding some value like below</p> <pre><code>select *, new_column = fixed_value from table </code></pre> <p>I want to replicate this in Databricks SQL, but in Databricks I'm getting an error &quot;new_column is not present&quot;.</p> <p>How to do this in Databricks for temp...
[ { "answer_id": 74338025, "author": "nbk", "author_id": 5193536, "author_profile": "https://Stackoverflow.com/users/5193536", "pm_score": 2, "selected": true, "text": " select *, 1 as new_column from table \n" }, { "answer_id": 74338289, "author": "trillion", "author_id":...
2022/11/06
[ "https://Stackoverflow.com/questions/74337983", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6733403/" ]
74,338,035
<p>I hope you are all doing well.</p> <p>I am trying to display a random fact whenever you load the website, and so far I've had no luck. The way it works is it sets a variable to a random number, then the text to the element in the array that corresponds to that number</p> <pre><code> &lt;p id=&quot;sciencefact&q...
[ { "answer_id": 74338086, "author": "kimia shahbaghi", "author_id": 20275256, "author_profile": "https://Stackoverflow.com/users/20275256", "pm_score": 0, "selected": false, "text": "\n <body>\n <p id=\"sciencefact\"></p>\n </body>\n <script>\n var factnumber = Math.floor(Math.ra...
2022/11/06
[ "https://Stackoverflow.com/questions/74338035", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18807942/" ]
74,338,046
<pre><code>function getObjKey(obj, value) { return Object.keys(obj).find(key =&gt; obj[key] === value); } const obj = {city1: ['Santiago','Germany'], city2: 'Chicago'}; console.log(getObjKey(obj, ['Santiago','Germany'])); </code></pre> <p>I want to get the key of ['Santiago','Germany'] this array value as city1</p>...
[ { "answer_id": 74338115, "author": "Asraf", "author_id": 20361860, "author_profile": "https://Stackoverflow.com/users/20361860", "pm_score": 1, "selected": false, "text": "obj[key] Array every obj[key]===value every() ['A', 'B'] !same ['A', 'B', 'C'] every() ['A', 'B'] true const getObjK...
2022/11/06
[ "https://Stackoverflow.com/questions/74338046", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16536855/" ]
74,338,049
<p><a href="https://i.stack.imgur.com/adTgR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/adTgR.png" alt="enter image description here" /></a></p> <p>This is my input table</p> <p>but i want to get this table</p> <p><a href="https://i.stack.imgur.com/ksjVk.png" rel="nofollow noreferrer"><img src="...
[ { "answer_id": 74338115, "author": "Asraf", "author_id": 20361860, "author_profile": "https://Stackoverflow.com/users/20361860", "pm_score": 1, "selected": false, "text": "obj[key] Array every obj[key]===value every() ['A', 'B'] !same ['A', 'B', 'C'] every() ['A', 'B'] true const getObjK...
2022/11/06
[ "https://Stackoverflow.com/questions/74338049", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1080145/" ]
74,338,060
<p><a href="https://i.stack.imgur.com/x2dW6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x2dW6.png" alt="enter image description here" /></a></p> <p>Hi; I have this data in excel file and I want to split the dash separated values into different rows within the same cell (splitting the dash separat...
[ { "answer_id": 74338115, "author": "Asraf", "author_id": 20361860, "author_profile": "https://Stackoverflow.com/users/20361860", "pm_score": 1, "selected": false, "text": "obj[key] Array every obj[key]===value every() ['A', 'B'] !same ['A', 'B', 'C'] every() ['A', 'B'] true const getObjK...
2022/11/06
[ "https://Stackoverflow.com/questions/74338060", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6444652/" ]
74,338,069
<p>browser doesn't show progress bar when downloading a file</p> <pre><code>function getSound(sound) { var req = new XMLHttpRequest(); req.open(&quot;GET&quot;, sound, true); req.responseType = &quot;blob&quot;; req.onload = function (event) { var blob = req.response;//if you have the fileName h...
[ { "answer_id": 74338115, "author": "Asraf", "author_id": 20361860, "author_profile": "https://Stackoverflow.com/users/20361860", "pm_score": 1, "selected": false, "text": "obj[key] Array every obj[key]===value every() ['A', 'B'] !same ['A', 'B', 'C'] every() ['A', 'B'] true const getObjK...
2022/11/06
[ "https://Stackoverflow.com/questions/74338069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16625270/" ]
74,338,110
<p>I'm having a hard time including the conversion rates and the range. Can you help me with this? I'm a beginner programming in Python. Thank you so much. (<a href="https://i.stack.imgur.com/0PW99.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/0PW99.jpg</a>)]</p> <p>Sample of expected output:</p> <pre><code>...
[ { "answer_id": 74338115, "author": "Asraf", "author_id": 20361860, "author_profile": "https://Stackoverflow.com/users/20361860", "pm_score": 1, "selected": false, "text": "obj[key] Array every obj[key]===value every() ['A', 'B'] !same ['A', 'B', 'C'] every() ['A', 'B'] true const getObjK...
2022/11/06
[ "https://Stackoverflow.com/questions/74338110", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20433757/" ]
74,338,120
<p>I have an HTML string. i want to select all span elements and remove spans with the same IDs and only let one of them remain in the string. The text between the span elements should not be deleted.</p> <p>The spans with the same IDs are all after each other. The remained one should wrap all the removed ones text.</p...
[ { "answer_id": 74338479, "author": "54ka", "author_id": 10968134, "author_profile": "https://Stackoverflow.com/users/10968134", "pm_score": 0, "selected": false, "text": "let list = [...$('span')];\n\nlet tempText = '';\n\nlist.forEach((el, i) => {\n\n let currElID = el.getAttribute('...
2022/11/06
[ "https://Stackoverflow.com/questions/74338120", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13825398/" ]
74,338,145
<p>So I created a delete button for when an element is clicked and I want to be able to remove it. I am using an input decorator but its not receiving the data when I try to delete the button. I console log but it shows the array is empty. Its a little confusing explaining. Essentially its an example of a mini project ...
[ { "answer_id": 74338479, "author": "54ka", "author_id": 10968134, "author_profile": "https://Stackoverflow.com/users/10968134", "pm_score": 0, "selected": false, "text": "let list = [...$('span')];\n\nlet tempText = '';\n\nlist.forEach((el, i) => {\n\n let currElID = el.getAttribute('...
2022/11/06
[ "https://Stackoverflow.com/questions/74338145", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17339971/" ]
74,338,171
<p>I want to set a autoplay sound and it only play once, no matter the rotation is. I was trying to make my Mediaplayer in the onCreate of Mainactivity. And when I try to rotate the screen, the audio continued to play.</p> <p>I try a different method like set up a subclass and call in the activity instead of puting it ...
[ { "answer_id": 74338479, "author": "54ka", "author_id": 10968134, "author_profile": "https://Stackoverflow.com/users/10968134", "pm_score": 0, "selected": false, "text": "let list = [...$('span')];\n\nlet tempText = '';\n\nlist.forEach((el, i) => {\n\n let currElID = el.getAttribute('...
2022/11/06
[ "https://Stackoverflow.com/questions/74338171", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16137590/" ]
74,338,175
<p>When I run the following, I get the correct console output but the value returned from the function is always 'undefined'</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-js lang-js prettyprint-override"><code> ...
[ { "answer_id": 74338209, "author": "Lawrence Cherone", "author_id": 661872, "author_profile": "https://Stackoverflow.com/users/661872", "pm_score": 0, "selected": false, "text": "get_public_ip function get_public_ip() {\n return new Promise((resolve, reject) => {\n http.get({\n ...
2022/11/06
[ "https://Stackoverflow.com/questions/74338175", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1647854/" ]
74,338,208
<p>I'm currently working on a challange where I need to divide strings by specifing number into chunks reverse them and than glue those reversed chunnks back together.</p> <p>I came up with way to execute this, however I could't come up with way to automate this task.</p> <pre><code>def switch (n, txt): a = (txt [0...
[ { "answer_id": 74338403, "author": "C-3PO", "author_id": 4667669, "author_profile": "https://Stackoverflow.com/users/4667669", "pm_score": 2, "selected": true, "text": "range(start,end,n) n def switch(n, txt):\n result = []\n for i in range(0,len(txt),n):\n result.append(txt...
2022/11/06
[ "https://Stackoverflow.com/questions/74338208", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20276553/" ]
74,338,216
<p>I am trying to complete this. A prime number is a number that is only evenly divisible by itself and 1. For example, the number 5 is prime because it can only be evenly divided by 1 and 5. The number 6, however, is not prime because it can be divided evenly by 1, 2, 3, and 6. Write a Boolean function named is_prime ...
[ { "answer_id": 74338403, "author": "C-3PO", "author_id": 4667669, "author_profile": "https://Stackoverflow.com/users/4667669", "pm_score": 2, "selected": true, "text": "range(start,end,n) n def switch(n, txt):\n result = []\n for i in range(0,len(txt),n):\n result.append(txt...
2022/11/06
[ "https://Stackoverflow.com/questions/74338216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20433867/" ]
74,338,302
<p>im running a spring boot project and I'm trying to load some beans conditionaly. I have the following configuration file:</p> <pre><code>application: components: componentA: - ex1 ex2 ex3 componentB: - ex1 ex2 ex3 ...
[ { "answer_id": 74338725, "author": "Gobanit", "author_id": 4106800, "author_profile": "https://Stackoverflow.com/users/4106800", "pm_score": 3, "selected": true, "text": "@Data\n@NoArgsConstructor\npublic class ComponentConfigPart {\n private String ex1;\n private String ex2;\n ...
2022/11/06
[ "https://Stackoverflow.com/questions/74338302", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13028173/" ]
74,338,307
<p>The goal is to &quot;break line&quot; after each split.</p> <p><strong>I have two arrays:</strong></p> <pre><code>$split = [4, 2, 4]; $courses = ['HTML', 'JS', 'CSS', 'VueJS', 'ReactJs', 'PHP', 'Ruby', 'Python', 'Java', 'C#']; </code></pre> <p>As you can see I have the first <code>array</code> called split, and the ...
[ { "answer_id": 74338725, "author": "Gobanit", "author_id": 4106800, "author_profile": "https://Stackoverflow.com/users/4106800", "pm_score": 3, "selected": true, "text": "@Data\n@NoArgsConstructor\npublic class ComponentConfigPart {\n private String ex1;\n private String ex2;\n ...
2022/11/06
[ "https://Stackoverflow.com/questions/74338307", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10424862/" ]
74,338,328
<p>I want to get the data from my MongoDB database depending on the URL . If I access localhost:3000/phones it should get all the data with the category phones, where if it is localhost:3000/laptops it should get all the laptops.</p> <p>Below is my schema:</p> <pre><code> name: { required: true, type...
[ { "answer_id": 74338445, "author": "krish007", "author_id": 16972288, "author_profile": "https://Stackoverflow.com/users/16972288", "pm_score": 2, "selected": true, "text": "router.get('/phones', async (req, res) => {\n try {\n const data = await Model.find({category: \"phones\...
2022/11/06
[ "https://Stackoverflow.com/questions/74338328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20322595/" ]
74,338,349
<p>I have a date column which stores a date in the GMT timezone in the format<p> <strong>'dd-MON-yy HH.MM:SS.milliseconds AM/PM, e.g. 03-NOV-22 10.23.31.007000000 AM</strong>.<p> I am provided a date and I want to write a query to check if the given date is equal to the date stored in the table but I would like to igno...
[ { "answer_id": 74338445, "author": "krish007", "author_id": 16972288, "author_profile": "https://Stackoverflow.com/users/16972288", "pm_score": 2, "selected": true, "text": "router.get('/phones', async (req, res) => {\n try {\n const data = await Model.find({category: \"phones\...
2022/11/06
[ "https://Stackoverflow.com/questions/74338349", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1081574/" ]
74,338,359
<p>I have large numbers of biological recording visits (c350K - hence use of data.table), the details of which include the date and coordinates. I want to lookup the weather at the time and place of each visit. Such data are available from MetOffice gridded daily weather data in which the values for each month are held...
[ { "answer_id": 74338445, "author": "krish007", "author_id": 16972288, "author_profile": "https://Stackoverflow.com/users/16972288", "pm_score": 2, "selected": true, "text": "router.get('/phones', async (req, res) => {\n try {\n const data = await Model.find({category: \"phones\...
2022/11/06
[ "https://Stackoverflow.com/questions/74338359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16957107/" ]
74,338,371
<p>Given:</p> <ol> <li>Table A with multiple rows and attributes: (<em>A_attr1</em> (key) , A_attr2).</li> <li>Table B with attributes (<em>B_attr1</em> (key) , <em>A_attr1</em> (foreign key), B_attr2).</li> </ol> <p>How do I insert some values in the table B <strong>only if the foreign key exists</strong>?</p>
[ { "answer_id": 74338372, "author": "Scooterz Giovanni", "author_id": 10600769, "author_profile": "https://Stackoverflow.com/users/10600769", "pm_score": 0, "selected": false, "text": "ERROR: the INSERT or the UPDATE on the TABLE table_B violates the foreign key constraint\n\"_A_attr1_\"\...
2022/11/06
[ "https://Stackoverflow.com/questions/74338371", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10600769/" ]
74,338,387
<p>I want to create a border (camera type) with 3 colors (blue, white and red).</p> <p>I created this HTML code :</p> <pre><code>&lt;div class=&quot;reinsurance-offer&quot;&gt; &lt;div class=&quot;reinsurance-offer-link&quot;&gt;&lt;a href=&quot;/node/133&quot; hreflang=&quot;fr&quot;&gt;Faites la promotion de vos ...
[ { "answer_id": 74338372, "author": "Scooterz Giovanni", "author_id": 10600769, "author_profile": "https://Stackoverflow.com/users/10600769", "pm_score": 0, "selected": false, "text": "ERROR: the INSERT or the UPDATE on the TABLE table_B violates the foreign key constraint\n\"_A_attr1_\"\...
2022/11/06
[ "https://Stackoverflow.com/questions/74338387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,338,393
<p>I have built a function with <code>apply</code> and <code>outer</code> that is working great. However, one issue is that I cannot figure out how to add a condition statement without breaking it.</p> <p>The function currently is:</p> <pre><code>df$match &lt;- apply(outer(df$c2, df$c2, function(x, y) abs(x - y) &lt; ...
[ { "answer_id": 74369676, "author": "Ritchie Sacramento", "author_id": 2835261, "author_profile": "https://Stackoverflow.com/users/2835261", "pm_score": 3, "selected": true, "text": "dplyr library(dplyr)\n\ndat %>%\n group_by(c1) %>%\n mutate(match = apply(`diag<-`(abs(outer(c2, c2, `-`...
2022/11/06
[ "https://Stackoverflow.com/questions/74338393", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6836719/" ]
74,338,417
<p>Is there any way to change port in netlify actually need static port 3000 to make my app work.</p> <p>The App need port 3000 in netlify prod.</p>
[ { "answer_id": 74369676, "author": "Ritchie Sacramento", "author_id": 2835261, "author_profile": "https://Stackoverflow.com/users/2835261", "pm_score": 3, "selected": true, "text": "dplyr library(dplyr)\n\ndat %>%\n group_by(c1) %>%\n mutate(match = apply(`diag<-`(abs(outer(c2, c2, `-`...
2022/11/06
[ "https://Stackoverflow.com/questions/74338417", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17582005/" ]
74,338,432
<p>I have the following structure:</p> <pre><code>struct SimpleCommand { // Simple command is simply a vector of strings std::vector&lt;std::string *&gt; _arguments; SimpleCommand(); ~SimpleCommand(); void insertArgument( std::string * argument ); void print(); }; </code></pre> <p>I want to call the <code...
[ { "answer_id": 74338444, "author": "lorro", "author_id": 6292621, "author_profile": "https://Stackoverflow.com/users/6292621", "pm_score": 0, "selected": false, "text": "char* cs;\nstd::string s(cs);\ninsertArgument(&s);\n std::vector<std::string> std::string insertArgument() std::string...
2022/11/06
[ "https://Stackoverflow.com/questions/74338432", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2034811/" ]
74,338,448
<p>I am obtaining values from two tables. When I run the subquery in its own PROC SQL statement in SAS, it runs fine, with the count of citations for each ID. When I input the subquery into my SELECT outer query, it gives me ERROR: Subquery evaluated to more than one row. I am having a hard time determining the cause o...
[ { "answer_id": 74338671, "author": "NickW", "author_id": 13658399, "author_profile": "https://Stackoverflow.com/users/13658399", "pm_score": 3, "selected": true, "text": "SELECT \nA.AREA\n,A.NAME\n,B.ID\n,(\n SELECT \n COUNT(C.TYPE) \n FROM \n EVAL.CITATIONS AS C\n ...
2022/11/06
[ "https://Stackoverflow.com/questions/74338448", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20433939/" ]
74,338,455
<p>I have the following data:</p> <pre><code>df = pd.DataFrame({'id' : [1,2,3,4,5,6], 'category' : [1,3,1,4,3,2], 'day1' : [10,20,30,40,50,60], 'day2' : [1,2,3,4,5,7], 'day3' : [0,1,2,3,7,9] }) df id category day1 day2 day3 0 1 1 10 1 0 1 2 3 20 2 1 2 3 1 30 3 2 3 4 4 40 4 ...
[ { "answer_id": 74338671, "author": "NickW", "author_id": 13658399, "author_profile": "https://Stackoverflow.com/users/13658399", "pm_score": 3, "selected": true, "text": "SELECT \nA.AREA\n,A.NAME\n,B.ID\n,(\n SELECT \n COUNT(C.TYPE) \n FROM \n EVAL.CITATIONS AS C\n ...
2022/11/06
[ "https://Stackoverflow.com/questions/74338455", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5592430/" ]
74,338,472
<p>I have tried to re-render my class component with user values , but set state is only rendering the previous value, and then the current value. By which I mean, it is working one step back. Lets say initial value was set to 0. After onclick, i wanted to update the value to 20,but it gave me 0. Now when I try to upda...
[ { "answer_id": 74338584, "author": "HappyDev", "author_id": 16775611, "author_profile": "https://Stackoverflow.com/users/16775611", "pm_score": 2, "selected": true, "text": "setState setState componentDidUpdate import React, { Component } from 'react'\n\nexport default class TemperatureR...
2022/11/06
[ "https://Stackoverflow.com/questions/74338472", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14809089/" ]
74,338,485
<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": 74338584, "author": "HappyDev", "author_id": 16775611, "author_profile": "https://Stackoverflow.com/users/16775611", "pm_score": 2, "selected": true, "text": "setState setState componentDidUpdate import React, { Component } from 'react'\n\nexport default class TemperatureR...
2022/11/06
[ "https://Stackoverflow.com/questions/74338485", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3675978/" ]
74,338,540
<p>I'm new to python and I want to calculate the sum of the daily average temperatures on many hours and then append it to the dataframe e.g :</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>date</th> <th>Temperature</th> </tr> </thead> <tbody> <tr> <td>2015-04-01 00:00:00</td> <td>3.9</td...
[ { "answer_id": 74338584, "author": "HappyDev", "author_id": 16775611, "author_profile": "https://Stackoverflow.com/users/16775611", "pm_score": 2, "selected": true, "text": "setState setState componentDidUpdate import React, { Component } from 'react'\n\nexport default class TemperatureR...
2022/11/06
[ "https://Stackoverflow.com/questions/74338540", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20433741/" ]
74,338,597
<p>I have a single record with column (type) containing an array of values, e.g. [Map,Table,Pie]</p> <p>Using Athena I need to to flatten this record into 3 separate records each with one value from the array in the (type) column.</p> <pre><code>SELECT type FROM athenadb.table, UNNEST(type) as charttyp </code></pre> <p...
[ { "answer_id": 74338584, "author": "HappyDev", "author_id": 16775611, "author_profile": "https://Stackoverflow.com/users/16775611", "pm_score": 2, "selected": true, "text": "setState setState componentDidUpdate import React, { Component } from 'react'\n\nexport default class TemperatureR...
2022/11/06
[ "https://Stackoverflow.com/questions/74338597", "https://Stackoverflow.com", "https://Stackoverflow.com/users/491439/" ]
74,338,623
<p>Let's say that I have multiple files such as:</p> <pre><code>root.file991 root.file81 root.file77 root.file989 </code></pre> <p>If I want to delete all of them, I would need to use a regex first, so I have tried:</p> <pre><code>find ./ - regex '\.\/root' </code></pre> <p>...which would find everything in root file, ...
[ { "answer_id": 74338664, "author": "Wiktor Stribiżew", "author_id": 3832970, "author_profile": "https://Stackoverflow.com/users/3832970", "pm_score": 3, "selected": true, "text": "find ./ -regextype posix-extended -regex '\\./root\\.file[0-9]+'\n \\. /root\\.file /root.file [0-9]+" }, ...
2022/11/06
[ "https://Stackoverflow.com/questions/74338623", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18107424/" ]
74,338,627
<p>I am trying to split a string with &quot; &quot;(space) and assigning each value on row to each respective array.</p> <p>The input file contains:</p> <pre><code>4 2 2 1 3 4 7 3 4 </code></pre> <p>The first line of the file has a single integer value <code>N</code> which is number of jobs.</p> <p>The next <code>N</co...
[ { "answer_id": 74338664, "author": "Wiktor Stribiżew", "author_id": 3832970, "author_profile": "https://Stackoverflow.com/users/3832970", "pm_score": 3, "selected": true, "text": "find ./ -regextype posix-extended -regex '\\./root\\.file[0-9]+'\n \\. /root\\.file /root.file [0-9]+" }, ...
2022/11/06
[ "https://Stackoverflow.com/questions/74338627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20434140/" ]
74,338,662
<p>I am working with the following table:</p> <p><code>Var1</code> is of the format location.transport type. Therefore, <code>A.land</code> means location <code>A</code>, transport type <code>land</code>. Frequency is simply the number of times a location used the respective transport_type. <code>Location_ID</code> and...
[ { "answer_id": 74338664, "author": "Wiktor Stribiżew", "author_id": 3832970, "author_profile": "https://Stackoverflow.com/users/3832970", "pm_score": 3, "selected": true, "text": "find ./ -regextype posix-extended -regex '\\./root\\.file[0-9]+'\n \\. /root\\.file /root.file [0-9]+" }, ...
2022/11/06
[ "https://Stackoverflow.com/questions/74338662", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19403138/" ]
74,338,670
<pre><code>import tkinter as tk from subprocess import check_call def copy_name(): cmd = 'echo ' + name.strip() + '|clip' return check_call(cmd, shell=True) root = tk.Toplevel(background=&quot;black&quot;) root.title(&quot;Copying&quot;) root.resizable(False, False) T = tk.Label(root, text=name, height=2,...
[ { "answer_id": 74338664, "author": "Wiktor Stribiżew", "author_id": 3832970, "author_profile": "https://Stackoverflow.com/users/3832970", "pm_score": 3, "selected": true, "text": "find ./ -regextype posix-extended -regex '\\./root\\.file[0-9]+'\n \\. /root\\.file /root.file [0-9]+" }, ...
2022/11/06
[ "https://Stackoverflow.com/questions/74338670", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20434184/" ]
74,338,685
<p>I am trying to implement Huffman compression and decompression of files, where all the information needed to decompress must be included in the compressed file. For this implementation I want to include the frequency table in the compressed file, such that the decompression program can rebuild the Huffman codes from...
[ { "answer_id": 74338972, "author": "PieCot", "author_id": 5359797, "author_profile": "https://Stackoverflow.com/users/5359797", "pm_score": 0, "selected": false, "text": "FREQ_TABLE_LEN = 256\n\ndef write_frequency_table(f, table):\n assert len(table) == FREQ_TABLE_LEN\n for e in t...
2022/11/06
[ "https://Stackoverflow.com/questions/74338685", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15363376/" ]
74,338,709
<p>I have this HTML script:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;styles/login.css&quot;&gt; &lt;/head&gt; &lt;body&gt; &lt;div class=&quot;mb-3&quot;&gt; &lt;h3&gt;Welcome, Please register with Us&lt;/h3&gt; ...
[ { "answer_id": 74338972, "author": "PieCot", "author_id": 5359797, "author_profile": "https://Stackoverflow.com/users/5359797", "pm_score": 0, "selected": false, "text": "FREQ_TABLE_LEN = 256\n\ndef write_frequency_table(f, table):\n assert len(table) == FREQ_TABLE_LEN\n for e in t...
2022/11/06
[ "https://Stackoverflow.com/questions/74338709", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7705108/" ]
74,338,744
<p>Sorry, i am completely new to VHDL, and i have these problems, i have read smth in the internet about it, someone told that i shoud complile some entity files too, but i have just one entity file. I have to make RTL simulation of boolean function using structural model of the architecture, so, there are my 4 problem...
[ { "answer_id": 74338972, "author": "PieCot", "author_id": 5359797, "author_profile": "https://Stackoverflow.com/users/5359797", "pm_score": 0, "selected": false, "text": "FREQ_TABLE_LEN = 256\n\ndef write_frequency_table(f, table):\n assert len(table) == FREQ_TABLE_LEN\n for e in t...
2022/11/06
[ "https://Stackoverflow.com/questions/74338744", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17412150/" ]
74,338,762
<p>Im trying to echo whole modal with data from db. I want to use my other functions &quot;getLocations and getdescriptions&quot; in my new function. But... Html shows those functions as comments &quot;&lt;<em>!--?php echo getLocations(); ?--</em>&gt; &amp; &lt;!<em>--?php echo getdescriptions(); ?--</em>&gt;&quot;. Ho...
[ { "answer_id": 74338972, "author": "PieCot", "author_id": 5359797, "author_profile": "https://Stackoverflow.com/users/5359797", "pm_score": 0, "selected": false, "text": "FREQ_TABLE_LEN = 256\n\ndef write_frequency_table(f, table):\n assert len(table) == FREQ_TABLE_LEN\n for e in t...
2022/11/06
[ "https://Stackoverflow.com/questions/74338762", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20434189/" ]
74,338,788
<p>I'm building an animation tool that uses Web Animations API, the problem that I have is that every time I play the animation, I'm actually creating a new animation, so if I do console.log(el.getAnimations()) it will return an array with multiple animations, but I'm using only the last one, and this of course is wast...
[ { "answer_id": 74339052, "author": "imvenx", "author_id": 11740131, "author_profile": "https://Stackoverflow.com/users/11740131", "pm_score": 1, "selected": true, "text": "const el = document.getElementById('el');\nconst kfs = [{backgroundColor:'red'}, {backgroundColor:'black'}];\n\nfunc...
2022/11/06
[ "https://Stackoverflow.com/questions/74338788", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11740131/" ]
74,338,803
<p>I have problem with displaying data using *ngFor:</p> <p>Auction object contains array of Bids.</p> <pre><code>export interface Auction { descripton: string; sellerId: string; title: string; price: number; quantity: number; bids: Bid[]; boughtByList: string[]; photoAlbum: PhotoAlbumModel; auctionT...
[ { "answer_id": 74339542, "author": "Eli Porush", "author_id": 14598976, "author_profile": "https://Stackoverflow.com/users/14598976", "pm_score": 1, "selected": false, "text": "subscribing Observable .ts async pipe async ngOnInit(): void {\n const params = await lastValueFrom(this.a...
2022/11/06
[ "https://Stackoverflow.com/questions/74338803", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20434225/" ]
74,338,806
<p>I am trying to create a grid-layout like: <a href="https://i.stack.imgur.com/421Lw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/421Lw.png" alt="enter image description here" /></a></p> <p>I do not want to use any <code>frameworks</code> or <code>apis</code> online and want to accomplish this us...
[ { "answer_id": 74339229, "author": "WhiteToggled", "author_id": 20067906, "author_profile": "https://Stackoverflow.com/users/20067906", "pm_score": 2, "selected": true, "text": "grid-template-areas <section class=\"grid\">\n <div class=\"grid-area1\"></div>\n <div class=\"grid-area...
2022/11/06
[ "https://Stackoverflow.com/questions/74338806", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15042008/" ]
74,338,853
<p>I am creating a data class in kotlin as such</p> <pre><code> data class User(val name: String, val age: Int) { constructor(name: String, age: Int, size: String): this(name, age) { } } </code></pre> <p>In my main function, I can access the objects as such:</p> <pre><code>fun main(){ val x = User(&quot;f...
[ { "answer_id": 74339009, "author": "Xəyal Şərifli", "author_id": 20432696, "author_profile": "https://Stackoverflow.com/users/20432696", "pm_score": 0, "selected": false, "text": "data class User(var name: String, var age: Int) {\n\n var size: String\n\n init {\n size = \"size\"\n }...
2022/11/06
[ "https://Stackoverflow.com/questions/74338853", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4931657/" ]