qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,675,768
<p>Is it possible to target phones (iPhone 14 Pro and iPhone 14 Pro Max) with dynamic islands with React Native?</p>
[ { "answer_id": 74675974, "author": "Kevin Amiranoff", "author_id": 2829540, "author_profile": "https://Stackoverflow.com/users/2829540", "pm_score": 0, "selected": false, "text": " const iPhonesWithDynamicIsland = ['iPhone15,2', 'iPhone15,3']; // iPhone 14 Pro, iPhone 14 Pro Max\n cons...
2022/12/04
[ "https://Stackoverflow.com/questions/74675768", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2829540/" ]
74,675,785
<p>I have an <code>AoC</code> problem where I have been given the data below:</p> <pre><code>data = &quot;&quot;&quot;2-4,6-8 2-3,4-5 5-7,7-9 2-8,3-7 6-6,4-6 2-6,4-8&quot;&quot;&quot; </code></pre> <p>I need to find the number of pairs which fully contain another pair. For example, <code>2-8</code> ...
[ { "answer_id": 74679874, "author": "Daniel Hao", "author_id": 10760768, "author_profile": "https://Stackoverflow.com/users/10760768", "pm_score": 0, "selected": false, "text": " # some input reading, and split to a, b sets.\n # count = 0\n\n if set(range(a, b + 1)) & set(range(x, y...
2022/12/04
[ "https://Stackoverflow.com/questions/74675785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9363181/" ]
74,675,792
<p>I have a string similar to (the below one is simplified):</p> <pre><code>&quot; word= {his or her} whatever &quot; </code></pre> <p>I want to delete every whitespace except between {}, so that my modified string will be:</p> <pre><code>&quot;word={his or her}whatever&quot; </code></pre> <p>lstrip or rst...
[ { "answer_id": 74675851, "author": "Mihir B", "author_id": 6462302, "author_profile": "https://Stackoverflow.com/users/6462302", "pm_score": -1, "selected": false, "text": "def remove(string):\n return string.replace(\" \", \"\")\n\nstring = 'hell o whatever'\nprint(remove(string)) //...
2022/12/04
[ "https://Stackoverflow.com/questions/74675792", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17788139/" ]
74,675,862
<p>I have a navigation bar and I added a red line on the bottom when hovering any item of the list, but I want to move that red line under the header (something like &quot;Services&quot;), any idea how to achieve this?</p> <p>I added an small sample in codepen so you can easily check the HTML and CSS code</p> <p><div c...
[ { "answer_id": 74677077, "author": "AMRITESH GUPTA", "author_id": 18188846, "author_profile": "https://Stackoverflow.com/users/18188846", "pm_score": 0, "selected": false, "text": "header {\n background-color: lightblue;\n padding-top: 1rem;\n height: 3rem;\n position: sticky;\n top...
2022/12/04
[ "https://Stackoverflow.com/questions/74675862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15416320/" ]
74,675,871
<p>I have object like this. I getting this object on backend with query and then transform with qs string library.</p> <pre><code>{ color: 'red,white', size: 'xl', manufacturer: 'adidas,nike' } </code></pre> <p>I would like have array of object, what i need for prisma map filtering</p> <pre><code> const filterList ...
[ { "answer_id": 74675922, "author": "Felix G", "author_id": 7845355, "author_profile": "https://Stackoverflow.com/users/7845355", "pm_score": 2, "selected": true, "text": "Object.entries() Array.map() const obj = { \n color: 'red,white',\n size: 'xl', \n manufacturer: 'adidas,nike' \n}...
2022/12/04
[ "https://Stackoverflow.com/questions/74675871", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18389635/" ]
74,675,876
<p>I am looking at this code challenge:</p> <blockquote> <p>Complete the function isAllX to determine if the entire string is made of lower-case x or upper-case X. Return true if they are, false if not.</p> <p>Examples:</p> <pre><code>isAllX(&quot;Xx&quot;); // true isAllX(&quot;xAbX&quot;); // false </code></pre> </bl...
[ { "answer_id": 74675918, "author": "trincot", "author_id": 5459839, "author_profile": "https://Stackoverflow.com/users/5459839", "pm_score": 2, "selected": false, "text": "length function isAllX(string) {\n return string.toLowerCase().replaceAll(\"x\", \"\").length == 0;\n}\n\n\nconsole...
2022/12/04
[ "https://Stackoverflow.com/questions/74675876", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11571204/" ]
74,675,883
<p>im having trouble with the js in this code. I have 2 clickble dropdowns, but only one of them (the first dropdown) is working. I dont know how to fix it. here's the html part:</p> <pre><code>&lt;div id=&quot;wrap&quot;&gt; &lt;nav&gt; &lt;div class=&quot;logo&quot;&gt; &lt;img src=&quot;./photos-docs/ME-marine-logo....
[ { "answer_id": 74675918, "author": "trincot", "author_id": 5459839, "author_profile": "https://Stackoverflow.com/users/5459839", "pm_score": 2, "selected": false, "text": "length function isAllX(string) {\n return string.toLowerCase().replaceAll(\"x\", \"\").length == 0;\n}\n\n\nconsole...
2022/12/04
[ "https://Stackoverflow.com/questions/74675883", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20529874/" ]
74,675,902
<p>I'm working with a pandas Multiindex that is given by the three keys: <br /> [Verbundzuordnung, ProjektIndex, Datum],</p> <p>I would like to resample the dataframe on Datum hourly, which drops the right colum <code>TagDesAbdichtens</code>, I would like to keep it as it's static.</p> <pre><code> Verbundzu...
[ { "answer_id": 74675918, "author": "trincot", "author_id": 5459839, "author_profile": "https://Stackoverflow.com/users/5459839", "pm_score": 2, "selected": false, "text": "length function isAllX(string) {\n return string.toLowerCase().replaceAll(\"x\", \"\").length == 0;\n}\n\n\nconsole...
2022/12/04
[ "https://Stackoverflow.com/questions/74675902", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17446553/" ]
74,675,913
<p>For example, I have a string like &quot;2 * a + 3 * b&quot;.</p> <p>I already have something that checks if a certain variable exists in the expression. So for example I input b, how could I make it return the 3?</p>
[ { "answer_id": 74675946, "author": "Haim Cohen", "author_id": 3752715, "author_profile": "https://Stackoverflow.com/users/3752715", "pm_score": -1, "selected": false, "text": "# Fit a linear model to the equation\nmodel <- lm(y ~ x)\n\n# Extract the coefficients\ncoef(model)\n" }, { ...
2022/12/04
[ "https://Stackoverflow.com/questions/74675913", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19312355/" ]
74,675,933
<p>I want to define a variable in a CSS file like this:</p> <pre><code>:root { --sidebar-width: 56; } </code></pre> <p>I'd like to now refer to that in a component to define that component's width:</p> <pre><code>&lt;div className=&quot;w-[var(--sidebar-width)]&quot;&gt; &lt;MySidebar&gt; &lt;/div&gt; </code></p...
[ { "answer_id": 74675970, "author": "ATP", "author_id": 9977151, "author_profile": "https://Stackoverflow.com/users/9977151", "pm_score": 2, "selected": true, "text": ":root {\n --sidebar-width: 56;\n}\n\n<div className=\"w-[calc(4px*var(--sidebar-width)]\">\n <MySidebar>\n</div>\n 4...
2022/12/04
[ "https://Stackoverflow.com/questions/74675933", "https://Stackoverflow.com", "https://Stackoverflow.com/users/272023/" ]
74,675,941
<p>I have a requirement to display different images based on certain user interactions. So, I'm storing the drawable resource ID in an integer variable. However, when I pass this variable into the Image's painterResource function the image is not rendered.</p> <p>Code looks like this:</p> <pre><code>val img = R.drawabl...
[ { "answer_id": 74675970, "author": "ATP", "author_id": 9977151, "author_profile": "https://Stackoverflow.com/users/9977151", "pm_score": 2, "selected": true, "text": ":root {\n --sidebar-width: 56;\n}\n\n<div className=\"w-[calc(4px*var(--sidebar-width)]\">\n <MySidebar>\n</div>\n 4...
2022/12/04
[ "https://Stackoverflow.com/questions/74675941", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11144845/" ]
74,675,944
<pre><code>library(MASS) # set seed and create data vectors #set.seed(98989) &lt;- for replicating results of betas in 1-2 1-3 sample_size &lt;- 200 sample_meanvector &lt;- c(3, 4) sample_covariance_matrix &lt;- matrix(c(2, 1, 1, 2), ...
[ { "answer_id": 74675987, "author": "kppro", "author_id": 10955397, "author_profile": "https://Stackoverflow.com/users/10955397", "pm_score": 0, "selected": false, "text": "# set the number of iterations\nnum_iterations <- 500\n\n# create an empty list to store the generated data\ngenerat...
2022/12/04
[ "https://Stackoverflow.com/questions/74675944", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20680851/" ]
74,675,966
<p>I'm creating a quiz and console shows a problem with split, that it's not a function, but it worked before. I've tried using toString method but it doesn't help, console says instead that can't read properties of null. If someone could help me, it would be appreciated.</p> <pre><code>let correctAnswer = document.get...
[ { "answer_id": 74677020, "author": "Cloudio", "author_id": 8198631, "author_profile": "https://Stackoverflow.com/users/8198631", "pm_score": 1, "selected": false, "text": "localStorage.getItem() const lastScore = localStorage.getItem(\"latestScore\") || \"\";\n" }, { "answer_id":...
2022/12/04
[ "https://Stackoverflow.com/questions/74675966", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20450499/" ]
74,675,978
<p>I'm developing an application inside Visual Studio using C#. This is a simple Console application.</p> <p>In some places, I wish to swallow exceptions. Thus I use an empty <code>catch</code> block. It' by design.</p> <p>When I hit F5, in codes of the <code>try</code> block of that <code>catch</code> block, when exce...
[ { "answer_id": 74676008, "author": "EEAH", "author_id": 13695921, "author_profile": "https://Stackoverflow.com/users/13695921", "pm_score": 2, "selected": false, "text": "Debug Windows Exception Settings Common Language Runtime Exceptions" } ]
2022/12/04
[ "https://Stackoverflow.com/questions/74675978", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19864610/" ]
74,677,014
<p>When I tell awt/swing to draw a component at a given y that is smaller than the window height, that object renders on the bottom of the bottom border, but it should not, it is supposed to render at that given y.</p> <p>Here some code example:</p> <pre class="lang-java prettyprint-override"><code> public class Ma...
[ { "answer_id": 74677447, "author": "Hovercraft Full Of Eels", "author_id": 522444, "author_profile": "https://Stackoverflow.com/users/522444", "pm_score": 0, "selected": false, "text": "@Override\npublic void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.fill3DRect(0,...
2022/12/04
[ "https://Stackoverflow.com/questions/74677014", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20682447/" ]
74,677,017
<p>I need to create a table of 17 rows where each row contains information such as row number, name, surname, email and birthday. The data is provided by this form:</p> <pre><code>&lt;form action=&quot;index.php&quot; method=&quot;post&quot;&gt; &lt;input type=&quot;text&quot; name=&quot;name&quot; placeholder=&q...
[ { "answer_id": 74677515, "author": "Ken Lee", "author_id": 11854986, "author_profile": "https://Stackoverflow.com/users/11854986", "pm_score": 1, "selected": false, "text": "session <?php\nsession_start();\n?>\n<form action=\"#\" method=\"post\">\n <input type=\"text\" name=\"name\"...
2022/12/04
[ "https://Stackoverflow.com/questions/74677017", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20682245/" ]
74,677,036
<p>I want to use Sparkline for a spreadsheet to show a trend of the last 5 soccer matches, where A and B are the goals, and C are the resulting points.</p> <p>In column C, the points are only generated if values are entered for the goals and goals conceded, i.e. the columns are not empty.</p> <div class="s-table-contai...
[ { "answer_id": 74677129, "author": "doubleunary", "author_id": 13045193, "author_profile": "https://Stackoverflow.com/users/13045193", "pm_score": 2, "selected": true, "text": "query() where =query( \n J15:J114, \n \"where J is not null \n offset \" & max(0, count(J15:J114) - 5), \n ...
2022/12/04
[ "https://Stackoverflow.com/questions/74677036", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6439857/" ]
74,677,037
<p>I am trying to create a homepage where I will output question with its answers</p> <p>I have a question which has 3 answers, but when I create the object it only return 1 answer, whereas I need it to return the array of answers. Do I need to create additional class answers in order to do that?</p> <p>My code:</p> <p...
[ { "answer_id": 74677129, "author": "doubleunary", "author_id": 13045193, "author_profile": "https://Stackoverflow.com/users/13045193", "pm_score": 2, "selected": true, "text": "query() where =query( \n J15:J114, \n \"where J is not null \n offset \" & max(0, count(J15:J114) - 5), \n ...
2022/12/04
[ "https://Stackoverflow.com/questions/74677037", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20602209/" ]
74,677,042
<p>Consider the following remote table:</p> <pre class="lang-r prettyprint-override"><code>library(dbplyr) library(dplyr, w = F) remote_data &lt;- memdb_frame( grp = c(2, 2, 2, 1, 3, 1, 1), win = c(&quot;B&quot;, &quot;C&quot;, &quot;A&quot;, &quot;B&quot;, &quot;C&quot;, &quot;A&quot;, &quot;C&quot;), id = c(1,3...
[ { "answer_id": 74677129, "author": "doubleunary", "author_id": 13045193, "author_profile": "https://Stackoverflow.com/users/13045193", "pm_score": 2, "selected": true, "text": "query() where =query( \n J15:J114, \n \"where J is not null \n offset \" & max(0, count(J15:J114) - 5), \n ...
2022/12/04
[ "https://Stackoverflow.com/questions/74677042", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2270475/" ]
74,677,085
<p>I Have a Ansible playbook which prints the CPU utilisation of target machine.When the CPU utilization is less than 90% , I get a OK message and if more than 90% , I should get not okay message on screen and also generate a log file as monitor.log on the Ansible host machine when CPU utilization is not okay.</p> <p>I...
[ { "answer_id": 74677102, "author": "Haim Cohen", "author_id": 3752715, "author_profile": "https://Stackoverflow.com/users/3752715", "pm_score": 1, "selected": false, "text": "ansible-playbook \"-l\" \"-v\" ansible-playbook -l /var/log/monitor.log -v my_playbook.yml\n name: 'Print mes...
2022/12/04
[ "https://Stackoverflow.com/questions/74677085", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11578464/" ]
74,677,103
<p>I would like to find out how many <code>Users</code> have <code>Swipes</code> per day without duplicates of <code>user_id</code> within group. So if a <code>User</code> has swiped multiple times on a day, I want the <code>User</code> only show once per group (per day). I am not really interested in the actual <code>...
[ { "answer_id": 74677102, "author": "Haim Cohen", "author_id": 3752715, "author_profile": "https://Stackoverflow.com/users/3752715", "pm_score": 1, "selected": false, "text": "ansible-playbook \"-l\" \"-v\" ansible-playbook -l /var/log/monitor.log -v my_playbook.yml\n name: 'Print mes...
2022/12/04
[ "https://Stackoverflow.com/questions/74677103", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7337209/" ]
74,677,123
<p>I have a hard time with what should be a very common use case on polars dataframes. I simply want to create a new column on an existing dataframe based on some other column. Here is the code I try, but doesn't work:</p> <pre><code>import polars as pl df.with_columns([ (pl.col('old_col').apply(lambda ...
[ { "answer_id": 74677102, "author": "Haim Cohen", "author_id": 3752715, "author_profile": "https://Stackoverflow.com/users/3752715", "pm_score": 1, "selected": false, "text": "ansible-playbook \"-l\" \"-v\" ansible-playbook -l /var/log/monitor.log -v my_playbook.yml\n name: 'Print mes...
2022/12/04
[ "https://Stackoverflow.com/questions/74677123", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15796158/" ]
74,677,136
<p>I am trying to plot Male and Female in different Age Groups. I am trying to show the individual Male and Female Count in their respective bars/colours but the graphs shows the total count value in the AgeGroup. <strong>How I am going to show/label the individual count of male and female in their respective bars/colo...
[ { "answer_id": 74677102, "author": "Haim Cohen", "author_id": 3752715, "author_profile": "https://Stackoverflow.com/users/3752715", "pm_score": 1, "selected": false, "text": "ansible-playbook \"-l\" \"-v\" ansible-playbook -l /var/log/monitor.log -v my_playbook.yml\n name: 'Print mes...
2022/12/04
[ "https://Stackoverflow.com/questions/74677136", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1535580/" ]
74,677,158
<p>The <code>devcontainer.json</code> allows adding extensions to be installed in a container.</p> <p>I want to be able to set the list of mandatory extensions to be used by all team members, like <code>rust-lang.rust-analyzer</code> and <code>llvm-vs-code-extensions.vscode-clangd</code> and another file for personal e...
[ { "answer_id": 74677102, "author": "Haim Cohen", "author_id": 3752715, "author_profile": "https://Stackoverflow.com/users/3752715", "pm_score": 1, "selected": false, "text": "ansible-playbook \"-l\" \"-v\" ansible-playbook -l /var/log/monitor.log -v my_playbook.yml\n name: 'Print mes...
2022/12/04
[ "https://Stackoverflow.com/questions/74677158", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1333734/" ]
74,677,176
<p>I am currently struggling with a bracket position problem, I currently have a program that lists my employees and I need to add more data at the moment this is my output :</p> <pre><code>[ { gender: 'female', birthDate: '1999-01-09T01:03:14.158Z', name: 'Steven', surname: 'Johnson', workload: 3...
[ { "answer_id": 74677102, "author": "Haim Cohen", "author_id": 3752715, "author_profile": "https://Stackoverflow.com/users/3752715", "pm_score": 1, "selected": false, "text": "ansible-playbook \"-l\" \"-v\" ansible-playbook -l /var/log/monitor.log -v my_playbook.yml\n name: 'Print mes...
2022/12/04
[ "https://Stackoverflow.com/questions/74677176", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20610394/" ]
74,677,196
<pre><code>a = ['a', 'b', 'c,'] b = [1, 2, 3] c = [1, 2, 3] #this is my effort on printing 3 lists side by side; however, I noticed it is completely wrong res = &quot;\n&quot;.join(&quot;{} {}&quot;.format(x, y, z) for x, y, z in zip(a, b, c)) print(res) </code></pre> <p>#how i want my results to look like ...
[ { "answer_id": 74677102, "author": "Haim Cohen", "author_id": 3752715, "author_profile": "https://Stackoverflow.com/users/3752715", "pm_score": 1, "selected": false, "text": "ansible-playbook \"-l\" \"-v\" ansible-playbook -l /var/log/monitor.log -v my_playbook.yml\n name: 'Print mes...
2022/12/04
[ "https://Stackoverflow.com/questions/74677196", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20682643/" ]
74,677,200
<p>I've been trying to redesign my website recently, and I thought the idea to change the main header to change into different backgrounds depending on the button you hover would be cool</p> <p>However, I know nothing about javascript besides from the absolute basic, so some help would be nice</p> <p>Here's what I'm tr...
[ { "answer_id": 74677102, "author": "Haim Cohen", "author_id": 3752715, "author_profile": "https://Stackoverflow.com/users/3752715", "pm_score": 1, "selected": false, "text": "ansible-playbook \"-l\" \"-v\" ansible-playbook -l /var/log/monitor.log -v my_playbook.yml\n name: 'Print mes...
2022/12/04
[ "https://Stackoverflow.com/questions/74677200", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19840551/" ]
74,677,222
<p>I tried to create a <code>contact us</code> form in django but i got always false when i want to use <code>.is_valid()</code> function.</p> <p><strong>this is my form:</strong></p> <pre><code>from django import forms from django.core import validators class ContactForm(forms.Form): first_name = forms.CharField...
[ { "answer_id": 74677102, "author": "Haim Cohen", "author_id": 3752715, "author_profile": "https://Stackoverflow.com/users/3752715", "pm_score": 1, "selected": false, "text": "ansible-playbook \"-l\" \"-v\" ansible-playbook -l /var/log/monitor.log -v my_playbook.yml\n name: 'Print mes...
2022/12/04
[ "https://Stackoverflow.com/questions/74677222", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14559068/" ]
74,677,244
<p>So below are two different text strings. I am trying to get the position of four digit number which is a dynamic number in every text string (8555) to extract the store name (Amazing Stores 2584 or what ever is in that place again dynamic no fixed width so can't use =right).</p> <hr /> <p>04/12/2022 13:01:00 00 K 18...
[ { "answer_id": 74677102, "author": "Haim Cohen", "author_id": 3752715, "author_profile": "https://Stackoverflow.com/users/3752715", "pm_score": 1, "selected": false, "text": "ansible-playbook \"-l\" \"-v\" ansible-playbook -l /var/log/monitor.log -v my_playbook.yml\n name: 'Print mes...
2022/12/04
[ "https://Stackoverflow.com/questions/74677244", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19833096/" ]
74,677,273
<p>I'm having problems with this simple example.</p> <p>The program inquires as to how many letters are required to form a complete word. Then it will ask for each letter individually, which is fine, but I can't make the code save the value from the current character and the next one from the next iteration until the n...
[ { "answer_id": 74677959, "author": "Utsav katharotiya", "author_id": 18757478, "author_profile": "https://Stackoverflow.com/users/18757478", "pm_score": -1, "selected": false, "text": "int numbersOfCharacters=5;\nint counter=0;\nchar character;\nchar phrase[numbersOfCharacters];\n\nwhile...
2022/12/04
[ "https://Stackoverflow.com/questions/74677273", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2965052/" ]
74,677,294
<p>I have some data, that needs to be clusterised into groups. That should be done by a few predifined conditions.</p> <p>Suppose we have the following table:</p> <pre><code>d = {'ID': [100, 101, 102, 103, 104, 105], 'col_1': [12, 3, 7, 13, 19, 25], 'col_2': [3, 1, 3, 3, 2, 4] } df = pd.DataFrame(data=d...
[ { "answer_id": 74677959, "author": "Utsav katharotiya", "author_id": 18757478, "author_profile": "https://Stackoverflow.com/users/18757478", "pm_score": -1, "selected": false, "text": "int numbersOfCharacters=5;\nint counter=0;\nchar character;\nchar phrase[numbersOfCharacters];\n\nwhile...
2022/12/04
[ "https://Stackoverflow.com/questions/74677294", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9137206/" ]
74,677,299
<p>(<a href="https://i.stack.imgur.com/IFtgk.png" rel="nofollow noreferrer">https://i.stack.imgur.com/IFtgk.png</a>) can someone help me plzzzzz</p>
[ { "answer_id": 74677959, "author": "Utsav katharotiya", "author_id": 18757478, "author_profile": "https://Stackoverflow.com/users/18757478", "pm_score": -1, "selected": false, "text": "int numbersOfCharacters=5;\nint counter=0;\nchar character;\nchar phrase[numbersOfCharacters];\n\nwhile...
2022/12/04
[ "https://Stackoverflow.com/questions/74677299", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20682749/" ]
74,677,310
<p>I'm working on a drag and drop function for SVG path, which lets a user move the co-ordinates of the path.</p> <p>Please consider the string below:</p> <pre><code>M162.323 150.513L232.645 8L303.504 149.837L461.168 173.5L347.156 284.5L373.605 440.728L233.5 367.854L91.7415 442L118.424 284.883L5.151 173.549Z </code></p...
[ { "answer_id": 74677959, "author": "Utsav katharotiya", "author_id": 18757478, "author_profile": "https://Stackoverflow.com/users/18757478", "pm_score": -1, "selected": false, "text": "int numbersOfCharacters=5;\nint counter=0;\nchar character;\nchar phrase[numbersOfCharacters];\n\nwhile...
2022/12/04
[ "https://Stackoverflow.com/questions/74677310", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10301756/" ]
74,677,311
<p>what is the best TUI module to use with python , I used prompt-toolkit and I can't use so many things in it like Layout and I can't use a view in textual there is so many errors .</p> <p>I want to build TUI for myself, and I want a well documented and working TUI or CUI python module</p>
[ { "answer_id": 74677959, "author": "Utsav katharotiya", "author_id": 18757478, "author_profile": "https://Stackoverflow.com/users/18757478", "pm_score": -1, "selected": false, "text": "int numbersOfCharacters=5;\nint counter=0;\nchar character;\nchar phrase[numbersOfCharacters];\n\nwhile...
2022/12/04
[ "https://Stackoverflow.com/questions/74677311", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20579852/" ]
74,677,361
<p>I am trying to connect my ESP32 to my Wifi Router using Arduino IDE but it is not connecting &amp; giving a connection failed or disconnected status. I also confirmed it is scanning all the available Wifi Networks but not connecting to my router. I even tried with another ESP32 board but the problem is still there.<...
[ { "answer_id": 74677959, "author": "Utsav katharotiya", "author_id": 18757478, "author_profile": "https://Stackoverflow.com/users/18757478", "pm_score": -1, "selected": false, "text": "int numbersOfCharacters=5;\nint counter=0;\nchar character;\nchar phrase[numbersOfCharacters];\n\nwhile...
2022/12/04
[ "https://Stackoverflow.com/questions/74677361", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13869281/" ]
74,677,397
<p>I have two models interrelated <strong><code>items</code></strong> and <strong><code>broken</code></strong> :</p> <pre><code>class Items(models.Model): id = models.AutoField(primary_key=True) item_name = models.CharField(max_length=50, blank=False) item_price = models.IntegerField(blank=True) item_qu...
[ { "answer_id": 74677959, "author": "Utsav katharotiya", "author_id": 18757478, "author_profile": "https://Stackoverflow.com/users/18757478", "pm_score": -1, "selected": false, "text": "int numbersOfCharacters=5;\nint counter=0;\nchar character;\nchar phrase[numbersOfCharacters];\n\nwhile...
2022/12/04
[ "https://Stackoverflow.com/questions/74677397", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20018036/" ]
74,677,432
<p>Just wondering if there is any difference between:</p> <pre class="lang-dart prettyprint-override"><code> // == Add all picked idoes to the mix table setState(() { Future.forEach(result, (asset) async { final video = await MixTableVideo.create(original: asset); videos.add(video...
[ { "answer_id": 74677443, "author": "Begging", "author_id": 16606223, "author_profile": "https://Stackoverflow.com/users/16606223", "pm_score": 1, "selected": false, "text": "setState Future.forEach MixTableVideo.create Future.forEach setState setState setState" }, { "answer_id": ...
2022/12/04
[ "https://Stackoverflow.com/questions/74677432", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2525948/" ]
74,677,457
<p>I have a problem about getting all siblings from the main node and implementing the process n Breadth First Search algorithm written by Java.</p> <p>How can I implement that?</p> <p>I shared my code snippets shown below.</p> <p>Here is my Node class shown below.</p> <pre><code>public class Node{ Node(int data){ ...
[ { "answer_id": 74677955, "author": "trincot", "author_id": 5459839, "author_profile": "https://Stackoverflow.com/users/5459839", "pm_score": 0, "selected": false, "text": " public static List<Node> bfs(Node root){\n Queue<Node> queue = new LinkedList<>();\n List<Node> re...
2022/12/04
[ "https://Stackoverflow.com/questions/74677457", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5719229/" ]
74,677,459
<p>I have the following tables:</p> <p><code>Students (id, name, surname, study_year, department_id)</code></p> <p><code>Courses(id, name)</code></p> <p><code>Course_Signup(id, student_id, course_id, year)</code></p> <p><code>Grades(signup_id, grade_type, mark, date)</code>, where <code>grade_type</code> can be 'e' (ex...
[ { "answer_id": 74677593, "author": "Dimi", "author_id": 19173885, "author_profile": "https://Stackoverflow.com/users/19173885", "pm_score": 2, "selected": true, "text": "MIN Recap_ SELECT\n new_table.id,\n new_table.name,\n AVG(CASE WHEN grade_type = 'e' THEN new_table.mark END) AS \...
2022/12/04
[ "https://Stackoverflow.com/questions/74677459", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15070339/" ]
74,677,473
<p>I have a spot in my Angular application where I do not want the Angular sanitizer to sanitize my content. My goal is to create a custom trusted type policy in my angular project. But I could not figure out what is the best practice to create one, store them and use them in code later.</p> <p>I know it works by using...
[ { "answer_id": 74677593, "author": "Dimi", "author_id": 19173885, "author_profile": "https://Stackoverflow.com/users/19173885", "pm_score": 2, "selected": true, "text": "MIN Recap_ SELECT\n new_table.id,\n new_table.name,\n AVG(CASE WHEN grade_type = 'e' THEN new_table.mark END) AS \...
2022/12/04
[ "https://Stackoverflow.com/questions/74677473", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12932907/" ]
74,677,485
<p>I'm trying to add a custom annotation for JPA repository methods to have a advice on @Query value.</p> <p>Below is the piece of code I tried</p> <p>MyFilterAspect class</p> <pre><code>@Aspect @Component public class MyFilterAspect { @Pointcut(&quot;execution(* *(..)) &amp;&amp; @within(org.springframework.data.jp...
[ { "answer_id": 74677497, "author": "DotNetRussell", "author_id": 2051392, "author_profile": "https://Stackoverflow.com/users/2051392", "pm_score": 0, "selected": false, "text": "@within @annotation @Pointcut(\"execution(* *(..)) && @annotation(org.springframework.data.jpa.repository.Quer...
2022/12/04
[ "https://Stackoverflow.com/questions/74677485", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6070471/" ]
74,677,489
<p>I am trying to implement a incremental query in DBT using Jinja.</p> <p>Considering there are tables getting created every month in warehouse with year and month suffix and I need to write a logic to union the new table which gets created every month to execute the DBT model. Below is the code which I have started w...
[ { "answer_id": 74677497, "author": "DotNetRussell", "author_id": 2051392, "author_profile": "https://Stackoverflow.com/users/2051392", "pm_score": 0, "selected": false, "text": "@within @annotation @Pointcut(\"execution(* *(..)) && @annotation(org.springframework.data.jpa.repository.Quer...
2022/12/04
[ "https://Stackoverflow.com/questions/74677489", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13135040/" ]
74,677,506
<p><a href="https://i.stack.imgur.com/dehc7.png" rel="nofollow noreferrer">this is my component file and when I run this code displaying error products.map is not a function. </a></p>
[ { "answer_id": 74677543, "author": "Wael Ben Mustapha", "author_id": 15388696, "author_profile": "https://Stackoverflow.com/users/15388696", "pm_score": 1, "selected": false, "text": "products?.map\n" }, { "answer_id": 74677580, "author": "Naju Bhadarka", "author_id": 204...
2022/12/04
[ "https://Stackoverflow.com/questions/74677506", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18009537/" ]
74,677,544
<p>With boto3 we can create a client for any service of our choice. For example,</p> <pre><code>client = boto3.client('s3') </code></pre> <p>Then if we check the type of the returned object,</p> <pre><code>print(type(client)) &lt;class 'botocore.client.S3'&gt; </code></pre> <p>But since there is no <code>botocore.clien...
[ { "answer_id": 74677543, "author": "Wael Ben Mustapha", "author_id": 15388696, "author_profile": "https://Stackoverflow.com/users/15388696", "pm_score": 1, "selected": false, "text": "products?.map\n" }, { "answer_id": 74677580, "author": "Naju Bhadarka", "author_id": 204...
2022/12/04
[ "https://Stackoverflow.com/questions/74677544", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1219052/" ]
74,677,569
<p>I am trying to select elements in the loop and pass them to setTimeout.</p> <p>Why doesn't the following work as it is supposed to?</p> <p>Is it because el.querySelector('.b') is slower than setTimeout?</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="...
[ { "answer_id": 74677543, "author": "Wael Ben Mustapha", "author_id": 15388696, "author_profile": "https://Stackoverflow.com/users/15388696", "pm_score": 1, "selected": false, "text": "products?.map\n" }, { "answer_id": 74677580, "author": "Naju Bhadarka", "author_id": 204...
2022/12/04
[ "https://Stackoverflow.com/questions/74677569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1009466/" ]
74,677,589
<p>I want to make a regex that recognize some patterns and some not.</p> <pre><code>_*[a-zA-Z][a-zA-Z0-9_][^-]*.*(?&lt;!_) </code></pre> <p>The sample of patterns that i want to recognize:</p> <pre><code>a100__version_2 _a100__version2 </code></pre> <p>And the sample of patterns that i dont want to recognize:</p> <pre>...
[ { "answer_id": 74677644, "author": "kppro", "author_id": 10955397, "author_profile": "https://Stackoverflow.com/users/10955397", "pm_score": 0, "selected": false, "text": "a100__version_2 // matches\n_a100__version2 // matches\n100__version_2 // does not match\na100__version2_ /...
2022/12/04
[ "https://Stackoverflow.com/questions/74677589", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20451221/" ]
74,677,598
<p>Why, when I use <code>double i</code> the output is (an approximation to) the value of <em>e</em>?</p> <pre><code>#include &lt;iostream&gt; using namespace std; int main () { double s=0; double i=1; for (int m=1;m&lt;5;m++) { i=m*i; s=s+1/i; } cout&lt;&lt;s+1; return 0; } ...
[ { "answer_id": 74677644, "author": "kppro", "author_id": 10955397, "author_profile": "https://Stackoverflow.com/users/10955397", "pm_score": 0, "selected": false, "text": "a100__version_2 // matches\n_a100__version2 // matches\n100__version_2 // does not match\na100__version2_ /...
2022/12/04
[ "https://Stackoverflow.com/questions/74677598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20682865/" ]
74,677,610
<p><a href="https://pub.dev/packages/sqflite" rel="nofollow noreferrer">sqflite</a> requires WidgetsFlutterBinding.ensureInitialized() but not <a href="https://pub.dev/packages/xmpp_plugin" rel="nofollow noreferrer">xmpp_plugin</a>, <a href="https://pub.dev/packages/shared_preferences/example" rel="nofollow noreferrer"...
[ { "answer_id": 74679130, "author": "jamesdlin", "author_id": 179715, "author_profile": "https://Stackoverflow.com/users/179715", "pm_score": 0, "selected": false, "text": "WidgetsFlutterBinding.ensureInitialized WidgetsFlutterBinding WidgetsFlutterBinding.ensureInitialized runApp" } ]
2022/12/04
[ "https://Stackoverflow.com/questions/74677610", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10065622/" ]
74,677,621
<p>I've never tried Javascript before and looked around, but the tutorials I've found would take me weeks to figure out (attention/focus issues + I don't even know what words I want to search for) and none of the solutions I've searched for solved it, and I don't know enough to extrapolate it from other answers.</p> <p...
[ { "answer_id": 74679130, "author": "jamesdlin", "author_id": 179715, "author_profile": "https://Stackoverflow.com/users/179715", "pm_score": 0, "selected": false, "text": "WidgetsFlutterBinding.ensureInitialized WidgetsFlutterBinding WidgetsFlutterBinding.ensureInitialized runApp" } ]
2022/12/04
[ "https://Stackoverflow.com/questions/74677621", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20675906/" ]
74,677,640
<p>I would like to know if it was possible via the OS module to iterate on several lines with the command prompt Here is an example of what I would have liked to do but which does not work (non-persistent session):</p> <pre class="lang-py prettyprint-override"><code>from os import popen, system, getlogin system(f'cd C...
[ { "answer_id": 74678856, "author": "tttony", "author_id": 453348, "author_profile": "https://Stackoverflow.com/users/453348", "pm_score": 1, "selected": false, "text": "check_output subprocess cmd /C from os import getlogin\nfrom subprocess import check_output\n\ncmd_str = fr'cmd.exe /C ...
2022/12/04
[ "https://Stackoverflow.com/questions/74677640", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20683045/" ]
74,677,667
<p>I have got an assignment from uni which mentions that I have to compare a given set of passwords to the password given by the user. The set of passwords are predetermined in the question as follows</p> <pre class="lang-c prettyprint-override"><code>const char *passwd[NUM_PASSWDS] = { &quot;123foo&quot;, &quot;ba...
[ { "answer_id": 74678856, "author": "tttony", "author_id": 453348, "author_profile": "https://Stackoverflow.com/users/453348", "pm_score": 1, "selected": false, "text": "check_output subprocess cmd /C from os import getlogin\nfrom subprocess import check_output\n\ncmd_str = fr'cmd.exe /C ...
2022/12/04
[ "https://Stackoverflow.com/questions/74677667", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20659169/" ]
74,677,671
<p>I want to combine two dataframes:</p> <pre><code>df1=pd.DataFrame({'A':['a','a',],'B':['b','b']}) df2=pd.DataFrame({'B':['b','b'],'A':['a','a']}) pd.concat([df1,df2],ignore_index=True) </code></pre> <p>result:</p> <p><a href="https://i.stack.imgur.com/iALM5.png" rel="nofollow noreferrer"><img src="https://i.stack.im...
[ { "answer_id": 74677820, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": 0, "selected": false, "text": "pandas.concat list_dfs = [df1, df2]\n\nout = (\n pd.concat([pd.DataFrame(sub_df.to_numpy()) for sub_df in li...
2022/12/04
[ "https://Stackoverflow.com/questions/74677671", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18756733/" ]
74,677,696
<p>I want to get all product names with category if even product doesn't have a category</p> <p><a href="https://www.entityframeworktutorial.net/code-first/configure-many-to-many-relationship-in-code-first.aspx" rel="nofollow noreferrer">get informatoin for creation from here</a></p> <pre><code>public class Product { ...
[ { "answer_id": 74677805, "author": "Dimi", "author_id": 19173885, "author_profile": "https://Stackoverflow.com/users/19173885", "pm_score": 0, "selected": false, "text": "p.ProductId = cpt.ProductRefId SELECT p.Name, cp.Name \nFROM CategoryProductTable as cpt, CategoryProducts as cp, Pro...
2022/12/04
[ "https://Stackoverflow.com/questions/74677696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8528114/" ]
74,677,712
<p>Say I have a set of rules that have a validation function that returns <code>IO[Boolean]</code> at runtime.</p> <pre><code>case class Rule1() { def validate(): IO[Boolean] = IO.pure(false) } case class Rule2() { def validate(): IO[Boolean] = IO.pure(false) } case class Rule3() { def validate(): IO[Boolean] = I...
[ { "answer_id": 74677913, "author": "Dmytro Mitin", "author_id": 5249621, "author_profile": "https://Stackoverflow.com/users/5249621", "pm_score": 2, "selected": false, "text": "def firstTrue(rules: List[{def validate(): IO[Boolean]}]): IO[Unit] = rules match {\n case r :: rs => for {\n ...
2022/12/04
[ "https://Stackoverflow.com/questions/74677712", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1879109/" ]
74,677,738
<p>I would like to create a new column called &quot;season_new&quot;, where I want to maintain the non-null season and extract the season for null values from the programme name. My dataframe is something like this:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>programme</th> <th>season</...
[ { "answer_id": 74677997, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": -1, "selected": false, "text": "pandas.Series.fillna value dt['season_new'] = (\n dt['programme']\n .str...
2022/12/04
[ "https://Stackoverflow.com/questions/74677738", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18239197/" ]
74,677,763
<p>I am creating a face detection algorithm which should take in images from a folder as input but I get this error:</p> <pre><code>import dlib import argparse import cv2 import sys import time import process_dlib_boxes # construct the argument parser parser = argparse.ArgumentParser() parser.add_argument('-i', '--in...
[ { "answer_id": 74677997, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": -1, "selected": false, "text": "pandas.Series.fillna value dt['season_new'] = (\n dt['programme']\n .str...
2022/12/04
[ "https://Stackoverflow.com/questions/74677763", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17810167/" ]
74,677,799
<p>I have tried the following, but it makes the border also red. I want to make only text red. Is that possible?</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-html lang-html prettyprint-override"><code>&lt;!DOCT...
[ { "answer_id": 74677923, "author": "Nick Scotney", "author_id": 4990925, "author_profile": "https://Stackoverflow.com/users/4990925", "pm_score": 1, "selected": false, "text": ".class1 td {\n color: red;\n border-color: #000;\n}\n .class2,\n.class2 tr,\n.class2 td {\n border: solid 2p...
2022/12/04
[ "https://Stackoverflow.com/questions/74677799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/455796/" ]
74,677,828
<p>i would like to display 2 or more duplicated customers using joptionpane. It is working if there is only 1 duplicate customer but unfortunately the message dialogue wasnt showing if there is 2 or more duplicated customer. Here is my code.</p> <pre><code> public static void main(String[] args) { int number; ...
[ { "answer_id": 74677923, "author": "Nick Scotney", "author_id": 4990925, "author_profile": "https://Stackoverflow.com/users/4990925", "pm_score": 1, "selected": false, "text": ".class1 td {\n color: red;\n border-color: #000;\n}\n .class2,\n.class2 tr,\n.class2 td {\n border: solid 2p...
2022/12/04
[ "https://Stackoverflow.com/questions/74677828", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20683106/" ]
74,677,849
<p>I have a value x, which is a combination of decision variables.</p> <p>I need to calculate a cost, which only triggers if x &gt; 100. So cost = MAX(x - 100, 0) * 20.</p> <p>Is there any way to do this in linear programming?</p> <p>I've tried creating two binary variables (y1 &amp; y2), in which y1 = 1 when x &lt;= 1...
[ { "answer_id": 74677886, "author": "Mohsin Mehmood", "author_id": 12248102, "author_profile": "https://Stackoverflow.com/users/12248102", "pm_score": 2, "selected": true, "text": "minimize cost = 20 * x * y\n\nsubject to:\n\nx <= 100 * (1 - y) // x must be <= 100 if y is 0\nx >= 100 * y...
2022/12/04
[ "https://Stackoverflow.com/questions/74677849", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9957594/" ]
74,677,851
<p>I'm having the issue (which seems to be common) that I'm dockerizing applications that run on one machine, and these applications, now, need to run in different containers (because that's the docker paradigm and how things should be done). Currently I'm having issues with postfix and dovecot... people have found thi...
[ { "answer_id": 74677886, "author": "Mohsin Mehmood", "author_id": 12248102, "author_profile": "https://Stackoverflow.com/users/12248102", "pm_score": 2, "selected": true, "text": "minimize cost = 20 * x * y\n\nsubject to:\n\nx <= 100 * (1 - y) // x must be <= 100 if y is 0\nx >= 100 * y...
2022/12/04
[ "https://Stackoverflow.com/questions/74677851", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1317944/" ]
74,677,861
<p>I have a interface. That interface name is IQueue. Also I have concrete classes. Their names are MyMessage1 and MyMessage2.</p> <pre><code>public interface IQueue { } public class MyMessage1 : IQueue { public string Message { get; set; } public DateTime PublishedDate { get; set; } } public class MyMessag...
[ { "answer_id": 74677886, "author": "Mohsin Mehmood", "author_id": 12248102, "author_profile": "https://Stackoverflow.com/users/12248102", "pm_score": 2, "selected": true, "text": "minimize cost = 20 * x * y\n\nsubject to:\n\nx <= 100 * (1 - y) // x must be <= 100 if y is 0\nx >= 100 * y...
2022/12/04
[ "https://Stackoverflow.com/questions/74677861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17007595/" ]
74,677,873
<p>I want to know in the year in which more goals were scored (in total), how many goals were scored by and against team 1 when team 1 is either a or b.</p> <p>My table looks like this:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: left;">year</th> <th style="text-align...
[ { "answer_id": 74677886, "author": "Mohsin Mehmood", "author_id": 12248102, "author_profile": "https://Stackoverflow.com/users/12248102", "pm_score": 2, "selected": true, "text": "minimize cost = 20 * x * y\n\nsubject to:\n\nx <= 100 * (1 - y) // x must be <= 100 if y is 0\nx >= 100 * y...
2022/12/04
[ "https://Stackoverflow.com/questions/74677873", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20682844/" ]
74,677,911
<p>I am using Windows 11 x64, Java / JDK 19, Spring Boot 3, PostgreSQL 15.1 at my local PC. My <code>Dockerfile</code></p> <pre><code>FROM amazoncorretto:19-alpine3.16-jdk WORKDIR /app ARG JAR_FILE=target/spring_jwt-1.0.0-SNAPSHOT.jar COPY ${JAR_FILE} ./app.jar EXPOSE 8081 ENTRYPOINT [&quot;java&quot;,&quot;-jar&quot;,...
[ { "answer_id": 74677886, "author": "Mohsin Mehmood", "author_id": 12248102, "author_profile": "https://Stackoverflow.com/users/12248102", "pm_score": 2, "selected": true, "text": "minimize cost = 20 * x * y\n\nsubject to:\n\nx <= 100 * (1 - y) // x must be <= 100 if y is 0\nx >= 100 * y...
2022/12/04
[ "https://Stackoverflow.com/questions/74677911", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3728901/" ]
74,677,961
<p>For a long time was using Terraform with Azure and it worked fine. Now for any reason the az cli command it doens't work. I'm getting follow error:</p> <pre><code>AADSTS500200: User account 'xxxx ' is a personal Microsoft account. Personal Microsoft accounts are not supported for this application unless explicitly i...
[ { "answer_id": 74677886, "author": "Mohsin Mehmood", "author_id": 12248102, "author_profile": "https://Stackoverflow.com/users/12248102", "pm_score": 2, "selected": true, "text": "minimize cost = 20 * x * y\n\nsubject to:\n\nx <= 100 * (1 - y) // x must be <= 100 if y is 0\nx >= 100 * y...
2022/12/04
[ "https://Stackoverflow.com/questions/74677961", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20432287/" ]
74,677,986
<p>I am trying to understand how Stripe achieves its layout here: <a href="https://stripe.com/docs/payments" rel="nofollow noreferrer">https://stripe.com/docs/payments</a></p> <p>That page has a column flexbox div containing 2 child divs: one for the navbar and the second for the main content. The column direction mean...
[ { "answer_id": 74677886, "author": "Mohsin Mehmood", "author_id": 12248102, "author_profile": "https://Stackoverflow.com/users/12248102", "pm_score": 2, "selected": true, "text": "minimize cost = 20 * x * y\n\nsubject to:\n\nx <= 100 * (1 - y) // x must be <= 100 if y is 0\nx >= 100 * y...
2022/12/04
[ "https://Stackoverflow.com/questions/74677986", "https://Stackoverflow.com", "https://Stackoverflow.com/users/272023/" ]
74,678,001
<p>Using Entity Framework core, can I get the total sum of the column and row count in one call? I have the following code, but I think there is a better way to do this.</p> <pre class="lang-cs prettyprint-override"><code>TotalCostResponse result = new TotalCostResponse { TotalCost = await dbContext.Transaction ...
[ { "answer_id": 74678118, "author": "dubdam", "author_id": 20683481, "author_profile": "https://Stackoverflow.com/users/20683481", "pm_score": 1, "selected": false, "text": "TotalCostResponse result = new TotalCostResponse\n{\n// Use the Sum and Count methods together in a LINQ query to g...
2022/12/04
[ "https://Stackoverflow.com/questions/74678001", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20683358/" ]
74,678,013
<p>WebStorm tries to push my project to an account that does not exist anymore. How do I change it? I have already added the new account to WebStorm and it still tries pushing to the old account.</p> <p><a href="https://i.stack.imgur.com/5aMJl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5aMJl.png...
[ { "answer_id": 74678118, "author": "dubdam", "author_id": 20683481, "author_profile": "https://Stackoverflow.com/users/20683481", "pm_score": 1, "selected": false, "text": "TotalCostResponse result = new TotalCostResponse\n{\n// Use the Sum and Count methods together in a LINQ query to g...
2022/12/04
[ "https://Stackoverflow.com/questions/74678013", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20683381/" ]
74,678,018
<p>I have a csv with one row of data. It represents legacy headers that I am trying to append as 1 new row (or consider it as many columns) in a second csv. I need to compare the legacy header with the second csv's current headers, so after i append the data from the first csv i want to move it so that it's the first r...
[ { "answer_id": 74678503, "author": "ScottC", "author_id": 20174226, "author_profile": "https://Stackoverflow.com/users/20174226", "pm_score": 2, "selected": true, "text": "csv mainfile.csv Fruit,Animals,Numbers\nApple,Cat,5\nBanana,Dog,8\nCherry,Goat,2\nDurian,Horse,4\n Fruta,Animales,Nú...
2022/12/04
[ "https://Stackoverflow.com/questions/74678018", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16633745/" ]
74,678,058
<p>I am new to Java, I am bored with if else statement I want to refactor my code and relief from if-else statement, not I am not able to reduce my code, In my code nothing is static every thing comes from user side. I share my codes for your reference.</p> <pre class="lang-java prettyprint-override"><code>if (orderDet...
[ { "answer_id": 74678503, "author": "ScottC", "author_id": 20174226, "author_profile": "https://Stackoverflow.com/users/20174226", "pm_score": 2, "selected": true, "text": "csv mainfile.csv Fruit,Animals,Numbers\nApple,Cat,5\nBanana,Dog,8\nCherry,Goat,2\nDurian,Horse,4\n Fruta,Animales,Nú...
2022/12/04
[ "https://Stackoverflow.com/questions/74678058", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13152124/" ]
74,678,092
<p>I have all my .js files and html linked to my server file. but when I lunch localhost3000, I get &quot;cannot get/&quot;</p> <p>I tried anything I though could be helpful but couldn't fix the problem. Anyone knows how to fix it?</p> <p>I have this for my server side</p> <pre><code>const express = require('express');...
[ { "answer_id": 74678503, "author": "ScottC", "author_id": 20174226, "author_profile": "https://Stackoverflow.com/users/20174226", "pm_score": 2, "selected": true, "text": "csv mainfile.csv Fruit,Animals,Numbers\nApple,Cat,5\nBanana,Dog,8\nCherry,Goat,2\nDurian,Horse,4\n Fruta,Animales,Nú...
2022/12/04
[ "https://Stackoverflow.com/questions/74678092", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20683442/" ]
74,678,108
<p>I want to add two numbers from two different objects.</p> <p>Here is a simplified version. I have two integers and I multiply those to get <code>multiplied</code> .</p> <p>models.py:</p> <pre><code>class ModelA(models.Model): number_a = models.IntegerField(default=1, null=True, blank=True) number_b = models....
[ { "answer_id": 74678571, "author": "haduki", "author_id": 18229792, "author_profile": "https://Stackoverflow.com/users/18229792", "pm_score": 1, "selected": false, "text": "aggregate from django.db.models import Sum\n\nModelA.objects.aggregate(Sum('multiplied'))\n aggregate field" }, ...
2022/12/04
[ "https://Stackoverflow.com/questions/74678108", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16280397/" ]
74,678,134
<p>I currently have a filter dropdown containing checkboxes. I have checkboxes for gender and category. I am now trying to make sure that the user will check at least one checkbox each part (gender and category). The problem is I don't know how to check whether the checkbox is empty or not.</p> <p>Below is the partial...
[ { "answer_id": 74678571, "author": "haduki", "author_id": 18229792, "author_profile": "https://Stackoverflow.com/users/18229792", "pm_score": 1, "selected": false, "text": "aggregate from django.db.models import Sum\n\nModelA.objects.aggregate(Sum('multiplied'))\n aggregate field" }, ...
2022/12/04
[ "https://Stackoverflow.com/questions/74678134", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19106554/" ]
74,678,167
<p>Sorry for the strange title, but I've come across an issue that is plain weird. To give some background, i'm working on a booking system that takes a time range as an input from admin, generates available times based on it, and then reduces the available times based on already made bookings (i.e admin specifies avai...
[ { "answer_id": 74678208, "author": "Muhammad Salman", "author_id": 15715337, "author_profile": "https://Stackoverflow.com/users/15715337", "pm_score": -1, "selected": false, "text": "function reduceAvailableTimesBasedOnDateTime(availableTimesPerDay,bookedTimes){\n console.log(JSON.str...
2022/12/04
[ "https://Stackoverflow.com/questions/74678167", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5353712/" ]
74,678,169
<p>I am trying to use the same ref for multiple input fields in for my form. But on logging it, the ref refers only to the first input field. Is there anyway I can use the same ref and use for different inputs?</p> <pre><code>import React, {FC, useEffect, useRef, useState} from 'react'; import { IFormProps } from '../....
[ { "answer_id": 74678208, "author": "Muhammad Salman", "author_id": 15715337, "author_profile": "https://Stackoverflow.com/users/15715337", "pm_score": -1, "selected": false, "text": "function reduceAvailableTimesBasedOnDateTime(availableTimesPerDay,bookedTimes){\n console.log(JSON.str...
2022/12/04
[ "https://Stackoverflow.com/questions/74678169", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8286824/" ]
74,678,197
<p>One of the inner values of my dynamic field contains &quot;@&quot;. How can I escape the @? (need to escape the &quot;fields.@version&quot;)</p> <pre><code>let Source = datatable (fields: dynamic) [ dynamic({&quot;seq&quot;:17300,&quot;@version&quot;:&quot;1&quot;}) ]; Source | project fields, fields.seq //, fie...
[ { "answer_id": 74678223, "author": "Guy Reginiano", "author_id": 14374898, "author_profile": "https://Stackoverflow.com/users/14374898", "pm_score": 0, "selected": false, "text": "let Source = datatable (fields: dynamic) [\n dynamic({\"seq\":17300,\"@version\":\"1\"})\n];\nSource | pr...
2022/12/04
[ "https://Stackoverflow.com/questions/74678197", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14374898/" ]
74,678,226
<p>I'm the author of <a href="https://github.com/snoopyjc/pythonizer" rel="nofollow noreferrer">Pythonizer</a> and I'm trying to translate the code of CGI.pm from the standard perl library to Python. I came across this code in <a href="https://metacpan.org/dist/CGI/source/lib/CGI.pm#L1128" rel="nofollow noreferrer">re...
[ { "answer_id": 74678223, "author": "Guy Reginiano", "author_id": 14374898, "author_profile": "https://Stackoverflow.com/users/14374898", "pm_score": 0, "selected": false, "text": "let Source = datatable (fields: dynamic) [\n dynamic({\"seq\":17300,\"@version\":\"1\"})\n];\nSource | pr...
2022/12/04
[ "https://Stackoverflow.com/questions/74678226", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11397243/" ]
74,678,229
<p>I am trying to send a SOAP request and iteratively and the response captured for each iteration is as follows.</p> <pre><code>df = {'@diffgr:id': 'Table1', '@msdata:rowOrder': '0', 'NVIC_CUR': '0BQU22', 'NVIC_MODEL': '0BQU', 'ModelName': 'DIESEL TWIN TURBO 4 1996 cc BTCDI 10 SP AUTOMATIC'} {'@diffgr:id': 'Table1', '...
[ { "answer_id": 74678223, "author": "Guy Reginiano", "author_id": 14374898, "author_profile": "https://Stackoverflow.com/users/14374898", "pm_score": 0, "selected": false, "text": "let Source = datatable (fields: dynamic) [\n dynamic({\"seq\":17300,\"@version\":\"1\"})\n];\nSource | pr...
2022/12/04
[ "https://Stackoverflow.com/questions/74678229", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20683444/" ]
74,678,233
<p>I have a base class and a child class, in the latter there is a method that is not present in the base class. Having several child classes with different methods, I need to declare an array of the type of the base class, but this way I cannot call the methods of the child classes. Here's my code:</p> <p><strong>Base...
[ { "answer_id": 74678300, "author": "Nick Scotney", "author_id": 4990925, "author_profile": "https://Stackoverflow.com/users/4990925", "pm_score": 0, "selected": false, "text": "public Swimmer(string n, string t) : base(n)\n{\n this.team = t;\n}\n internal class Program\n{\n static ...
2022/12/04
[ "https://Stackoverflow.com/questions/74678233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12550194/" ]
74,678,254
<p>Can someone help with setting up Heroicons in combination with Nuxt 3?</p> <p>I ran the following command:</p> <pre><code>yarn add @heroicons/vue </code></pre> <p>I also added @heroicons/vue as following to my <code>nuxt.config.js</code>:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="tru...
[ { "answer_id": 74678300, "author": "Nick Scotney", "author_id": 4990925, "author_profile": "https://Stackoverflow.com/users/4990925", "pm_score": 0, "selected": false, "text": "public Swimmer(string n, string t) : base(n)\n{\n this.team = t;\n}\n internal class Program\n{\n static ...
2022/12/04
[ "https://Stackoverflow.com/questions/74678254", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13562685/" ]
74,678,276
<p>I have two tables in mysql database</p> <ol> <li><p>subjectids</p> <pre><code> id subject 11 Physics 12 Chemistry 13 Maths 14 Biology 15 History 16 Geography </code></pre> </li> <li><p>studentsScores</p> <pre><code> id student subjectid score ...
[ { "answer_id": 74678300, "author": "Nick Scotney", "author_id": 4990925, "author_profile": "https://Stackoverflow.com/users/4990925", "pm_score": 0, "selected": false, "text": "public Swimmer(string n, string t) : base(n)\n{\n this.team = t;\n}\n internal class Program\n{\n static ...
2022/12/04
[ "https://Stackoverflow.com/questions/74678276", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18937948/" ]
74,678,281
<p>I can't find how to plot these two series A and B with <code>time</code> on X.</p> <pre><code>from numpy import linspace import polars as pl import plotly.express as px import plotly.io as pio pio.renderers.default = 'browser' times = linspace(1, 6, 10) df = pl.DataFrame({ 'time': times, 'A': times**2, ...
[ { "answer_id": 74678326, "author": "Jiao Dian", "author_id": 8883383, "author_profile": "https://Stackoverflow.com/users/8883383", "pm_score": 0, "selected": false, "text": "# Import the necessary modules\nfrom numpy import linspace\nimport plotly.express as px\n\n# Create a DataFrame wi...
2022/12/04
[ "https://Stackoverflow.com/questions/74678281", "https://Stackoverflow.com", "https://Stackoverflow.com/users/774575/" ]
74,678,314
<p>I'm trying to search and remove a comma <code>,</code> at the 2nd to the last line using sed.</p> <p>This is what I have now:</p> <pre><code>} &quot;user-account-id&quot;: &quot;John&quot;, &quot;user-account-number&quot;: &quot;v1001&quot;, &quot;user-account-app&quot;: &quot;v10.0.0&quot;, &quot;user-a...
[ { "answer_id": 74678410, "author": "Socowi", "author_id": 6770384, "author_profile": "https://Stackoverflow.com/users/6770384", "pm_score": 2, "selected": true, "text": "2,$ sed sed } sed -Ez 's/,([ \\t\\r\\n]*)\\}([ \\t\\r\\n]*)$/\\1}\\2/' file\n" }, { "answer_id": 74680164, ...
2022/12/04
[ "https://Stackoverflow.com/questions/74678314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12693074/" ]
74,678,352
<p>I have an async function inside useEffect</p> <pre><code> useEffect(() =&gt; { async function fetchData() { const res = await checkLogin(); console.log(res); } fetchData(); }, []); </code></pre> <p>checkLogin returning &quot;Hello world&quot;</p> <pre><code> async function checkLogin() { ...
[ { "answer_id": 74678400, "author": "Hillel", "author_id": 7013797, "author_profile": "https://Stackoverflow.com/users/7013797", "pm_score": -1, "selected": false, "text": "fetchData useEffect useEffect fetchData useEffect fetchData useEffect useEffect(() => {\n async function fetchDat...
2022/12/04
[ "https://Stackoverflow.com/questions/74678352", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8776661/" ]
74,678,361
<p>I'm trying to get a key from a <code>JSON</code> from a website using the following code:</p> <pre class="lang-py prettyprint-override"><code>import json import requests from bs4 import BeautifulSoup url = input('Enter url:') html = requests.get(url) soup = BeautifulSoup(html.text,'html.parser') data = json.loads(...
[ { "answer_id": 74678549, "author": "newbie", "author_id": 10671274, "author_profile": "https://Stackoverflow.com/users/10671274", "pm_score": 1, "selected": false, "text": "data[\"props\"][\"XYZ\"][\"ABC\"][0][\"current\"]\n current ABC list" }, { "answer_id": 74678936, "auth...
2022/12/04
[ "https://Stackoverflow.com/questions/74678361", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6484462/" ]
74,678,378
<p>If I run the following code once it works.</p> <pre><code>import numpy as np import rpy2.robjects as robjects x = np.linspace(0, 1, num = 11, endpoint=True) y = np.array([-1,1,1, -1,1,0, .5,.5,.4, .5, -1]) r_x = robjects.FloatVector(x) r_y = robjects.FloatVector(y) r_smooth_spline = robjects.r['smooth.spline']...
[ { "answer_id": 74678549, "author": "newbie", "author_id": 10671274, "author_profile": "https://Stackoverflow.com/users/10671274", "pm_score": 1, "selected": false, "text": "data[\"props\"][\"XYZ\"][\"ABC\"][0][\"current\"]\n current ABC list" }, { "answer_id": 74678936, "auth...
2022/12/04
[ "https://Stackoverflow.com/questions/74678378", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7735095/" ]
74,678,383
<p>I made a simple react hook.</p> <pre class="lang-js prettyprint-override"><code>import React from &quot;react&quot;; import { useNavigate } from &quot;react-router-dom&quot;; export default function SearchReq(searchTerm: string) { if (searchTerm === &quot;&quot;) return; const navigate = useNavigate(); consol...
[ { "answer_id": 74678398, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 0, "selected": false, "text": "export default function SearchReq(searchTerm: string) {\n\n const navigate = useNavigate(); \n\n // wind...
2022/12/04
[ "https://Stackoverflow.com/questions/74678383", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17286169/" ]
74,678,396
<p>I have a problem where the line of codes in my Update function does not work. I added a debug.log both at the start and end of the update function but the whole if statement does not work. The <code>dialogCycle</code> variable does not even increment. Is there something wrong with the whole script?</p> <p>Here is th...
[ { "answer_id": 74678398, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 0, "selected": false, "text": "export default function SearchReq(searchTerm: string) {\n\n const navigate = useNavigate(); \n\n // wind...
2022/12/04
[ "https://Stackoverflow.com/questions/74678396", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20502646/" ]
74,678,432
<p>I have the next implementation of Linked List:</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>class Node { constructor(data) { this.data = data; this.next = nul...
[ { "answer_id": 74678398, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 0, "selected": false, "text": "export default function SearchReq(searchTerm: string) {\n\n const navigate = useNavigate(); \n\n // wind...
2022/12/04
[ "https://Stackoverflow.com/questions/74678432", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12540500/" ]
74,678,473
<p>This example <a href="https://godbolt.org/z/EKvvEKa6T" rel="nofollow noreferrer">https://godbolt.org/z/EKvvEKa6T</a> calls MyFun() using this syntax</p> <pre><code>(*((int(**)(void))CallMyFun))(); </code></pre> <p>Is there a C breakdown of that obfuscated syntax to explain how it works?</p> <pre><code>#include &lt;s...
[ { "answer_id": 74678672, "author": "Eric Postpischil", "author_id": 298225, "author_profile": "https://Stackoverflow.com/users/298225", "pm_score": 3, "selected": true, "text": "void *funarray[] = { NULL,NULL,&MyFun,NULL,NULL }; MyFun void * size_t CallMyFun = (size_t)&funarray + (2 * si...
2022/12/04
[ "https://Stackoverflow.com/questions/74678473", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2801187/" ]
74,678,481
<p>Given an NxM matrix A, I want to efficiently obtain the NxMxN tensor whose ith layer is the application of np.minimum between A and the ith row of A. Using a for loop:</p> <pre><code>&gt; A = np.array([[1, 2], [3, 4], [5,6]]) &gt; output = np.zeros(shape=(A.shape[0], A.shape[1], A.shape[0])) &gt; for i in range(a.sh...
[ { "answer_id": 74678581, "author": "newbie", "author_id": 10671274, "author_profile": "https://Stackoverflow.com/users/10671274", "pm_score": 0, "selected": false, "text": "np.einsum import numpy as np\n\n\nA = np.array([[1, 2], [3, 4], [5,6]])\n\n\noutput = np.einsum('ij,ik->ijk', A, A)...
2022/12/04
[ "https://Stackoverflow.com/questions/74678481", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13716182/" ]
74,678,498
<p>I'm trying to create a function which can move a page element without having to reference it specifically.</p> <pre><code> function testmove(obj, event) { document.getElementById(obj.id).addEventListener(&quot;mousemove&quot;, move(obj,event)); } function move(obj, event) { document.g...
[ { "answer_id": 74678557, "author": "Necati Turan", "author_id": 4335325, "author_profile": "https://Stackoverflow.com/users/4335325", "pm_score": 0, "selected": false, "text": "function testmove(obj, event) {\n document.getElementById(obj.id).addEventListener(\"mousemove\", move);\n}\...
2022/12/04
[ "https://Stackoverflow.com/questions/74678498", "https://Stackoverflow.com", "https://Stackoverflow.com/users/784446/" ]
74,678,499
<p>I have the following question. I have generated the following RowNumber column by usage of the rownumber() function and the over(paritation by clause. The counting starts with '1' every time a new part_no is listed:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>SEQ_NO</th> <th>PART_NO...
[ { "answer_id": 74678557, "author": "Necati Turan", "author_id": 4335325, "author_profile": "https://Stackoverflow.com/users/4335325", "pm_score": 0, "selected": false, "text": "function testmove(obj, event) {\n document.getElementById(obj.id).addEventListener(\"mousemove\", move);\n}\...
2022/12/04
[ "https://Stackoverflow.com/questions/74678499", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18443141/" ]
74,678,537
<p>So I am trying to update a record with multiple fields in my database using laravel, however I am trying to validate the input first before proceeding with the actual updating of the record.</p> <p>So my problem is that one of my field has to be unique and should allow the other fields to be edited even if that fiel...
[ { "answer_id": 74678557, "author": "Necati Turan", "author_id": 4335325, "author_profile": "https://Stackoverflow.com/users/4335325", "pm_score": 0, "selected": false, "text": "function testmove(obj, event) {\n document.getElementById(obj.id).addEventListener(\"mousemove\", move);\n}\...
2022/12/04
[ "https://Stackoverflow.com/questions/74678537", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6366565/" ]
74,678,551
<p>I am looking to pull certain cells from a row based upon the date(todays) which is in cell I1 on Dashboard. I would like to pull the row from Schedule but only return the team name which is in columns AH and AW.</p> <p>I tried this</p> <pre><code>=QUERY(Schedule!A:BU,&quot;select AH, AW Where Schedule!A:A = '&quot;&...
[ { "answer_id": 74678557, "author": "Necati Turan", "author_id": 4335325, "author_profile": "https://Stackoverflow.com/users/4335325", "pm_score": 0, "selected": false, "text": "function testmove(obj, event) {\n document.getElementById(obj.id).addEventListener(\"mousemove\", move);\n}\...
2022/12/04
[ "https://Stackoverflow.com/questions/74678551", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19823260/" ]
74,678,559
<p>Working in Laravel 9, and I am doing my validations in <code>FormRequests</code>.</p> <p>I have a <code>email_updates</code> table.</p> <p>I have 3 columns, <code>email</code>, <code>product_uuid</code>, <code>affiliate_uuid</code>, and I am looking to enforce <strong>row</strong> uniqueness. An email can signup for...
[ { "answer_id": 74678607, "author": "Osama Alma", "author_id": 20683749, "author_profile": "https://Stackoverflow.com/users/20683749", "pm_score": 2, "selected": false, "text": "public function rules()\n{\n return [\n 'email' => [\n 'required|email:rfc,dns|min:5|max:7...
2022/12/04
[ "https://Stackoverflow.com/questions/74678559", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1272406/" ]
74,678,588
<p>I am able to use the search function through backend and its working in postman, also able to bring the search result on the frontend browser console. But i am not able to display the searched result in the page.</p> <p>Frontend code is attached below. searchHandler is bringing the searched result to console but i ...
[ { "answer_id": 74678607, "author": "Osama Alma", "author_id": 20683749, "author_profile": "https://Stackoverflow.com/users/20683749", "pm_score": 2, "selected": false, "text": "public function rules()\n{\n return [\n 'email' => [\n 'required|email:rfc,dns|min:5|max:7...
2022/12/04
[ "https://Stackoverflow.com/questions/74678588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20683823/" ]
74,678,598
<p>whenever I refresh my page the fetched content I've loaded decides to disappear, it will load the first time but every time after that it will go. I have another component that has almost the same code and that one works fine so I'm not entirely sure why it doesn't with this component.</p> <p>the feeling I have is i...
[ { "answer_id": 74678607, "author": "Osama Alma", "author_id": 20683749, "author_profile": "https://Stackoverflow.com/users/20683749", "pm_score": 2, "selected": false, "text": "public function rules()\n{\n return [\n 'email' => [\n 'required|email:rfc,dns|min:5|max:7...
2022/12/04
[ "https://Stackoverflow.com/questions/74678598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16044758/" ]
74,678,625
<p>Within a very large HTML page i want to get a <code>span</code> by <code>class</code> which is unique. The <strong>child</strong> <code>span</code> of this one, can be queried also by <code>class</code> but which is <strong>not unique</strong>.</p> <pre><code>... &lt;span class=&quot;uniqueParent&quot;&gt; &lt;sp...
[ { "answer_id": 74678607, "author": "Osama Alma", "author_id": 20683749, "author_profile": "https://Stackoverflow.com/users/20683749", "pm_score": 2, "selected": false, "text": "public function rules()\n{\n return [\n 'email' => [\n 'required|email:rfc,dns|min:5|max:7...
2022/12/04
[ "https://Stackoverflow.com/questions/74678625", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1595350/" ]
74,678,636
<p>I want to add a confirmation to a form action:</p> <pre><code> &lt;form action=&quot;/delete&quot; method=&quot;post&quot;&gt; &lt;button id=&quot;deleteForm&quot; class=&quot;btn btn-danger&quot; onclick=&quot;deleteConfirm(this.form)&quot;&gt;Delete&lt;/button&gt; &lt;/form&gt; </code></...
[ { "answer_id": 74678607, "author": "Osama Alma", "author_id": 20683749, "author_profile": "https://Stackoverflow.com/users/20683749", "pm_score": 2, "selected": false, "text": "public function rules()\n{\n return [\n 'email' => [\n 'required|email:rfc,dns|min:5|max:7...
2022/12/04
[ "https://Stackoverflow.com/questions/74678636", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5810563/" ]
74,678,662
<p>public static String input(){</p> <pre><code>Scanner input = new Scanner(System.in); String key = &quot;&quot;; while(key != &quot;q&quot;){ key += input.nextLine(); return key; } return &quot;hello&quot;; </code></pre> <p>} //if input is &quot;1234&quot; then it should return key = &quot;1234&quot;,</p> <...
[ { "answer_id": 74678607, "author": "Osama Alma", "author_id": 20683749, "author_profile": "https://Stackoverflow.com/users/20683749", "pm_score": 2, "selected": false, "text": "public function rules()\n{\n return [\n 'email' => [\n 'required|email:rfc,dns|min:5|max:7...
2022/12/04
[ "https://Stackoverflow.com/questions/74678662", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20177615/" ]