qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,530,068
<p>I am new to C programming, trying to do an Assignment for my class. I am trying to return char value in this function while using switch case. As an example, if i were to to put 'a', i expect 'b' to come out as the output.</p> <pre><code>#include &lt;stdio.h&gt; char *upgrade(char plan); int main() { char plan...
[ { "answer_id": 74533147, "author": "Jonathan", "author_id": 3048505, "author_profile": "https://Stackoverflow.com/users/3048505", "pm_score": 2, "selected": true, "text": "id_* $client $id_client ->add('client', EntityType::class, [\n 'class' => Client::class,\n // ...\...
2022/11/22
[ "https://Stackoverflow.com/questions/74530068", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20570467/" ]
74,530,079
<p>` I'm making a rock-paper-scissors game with multiples rounds, but I'm having problems storing the number of player's victory. What am I doing wrong?</p> <pre><code>// THIS FUNCTION DECIDES IF THE COMPUTER CHOOSES ROCK, PAPER OR SCISSOS function getComputerChoice () { let rand = Math.floor(Math.random() * 10); ...
[ { "answer_id": 74533147, "author": "Jonathan", "author_id": 3048505, "author_profile": "https://Stackoverflow.com/users/3048505", "pm_score": 2, "selected": true, "text": "id_* $client $id_client ->add('client', EntityType::class, [\n 'class' => Client::class,\n // ...\...
2022/11/22
[ "https://Stackoverflow.com/questions/74530079", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19839050/" ]
74,530,088
<p>Hi I need the text to be in a specific format in a spreadsheet to be able to upload it on a translation tool.</p> <p>I have already used the text split function to separate the text in a cell with bullet points, moving each bullet point to a separate cell.</p> <p><a href="https://i.stack.imgur.com/9oS3L.png" rel="no...
[ { "answer_id": 74533147, "author": "Jonathan", "author_id": 3048505, "author_profile": "https://Stackoverflow.com/users/3048505", "pm_score": 2, "selected": true, "text": "id_* $client $id_client ->add('client', EntityType::class, [\n 'class' => Client::class,\n // ...\...
2022/11/22
[ "https://Stackoverflow.com/questions/74530088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20570378/" ]
74,530,101
<p>I am opening a cook-book 'recipes.txt' and it reads like this:</p> <pre><code>f = open('recipes.txt', 'r', encoding='utf-8') for x in f: print(x) </code></pre> <p><em><strong>result:</strong></em></p> <pre><code>Omelet 3 Egg | 2 | PCS Milk | 100 | ml Tomato | 2 | PCS Peking Duck 4 Duck | 1 | PCS Water | ...
[ { "answer_id": 74532430, "author": "Hunter", "author_id": 15076691, "author_profile": "https://Stackoverflow.com/users/15076691", "pm_score": 1, "selected": false, "text": "cook_book = {}\n\nindexes = []\n\nwith open('recipes.txt', 'r', encoding='utf-8') as fp:\n data = fp.read()\n ...
2022/11/22
[ "https://Stackoverflow.com/questions/74530101", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15923390/" ]
74,530,157
<p>In our application we are using the Apache ignite 2.12 version and the same is deployed using kubernetes. We use binary object approach and everything works fine but after couple of days we are not able to query the cache and below are the errors/exception.</p> <p>Any help is appreciated.</p> <p>Errors in the pod:</...
[ { "answer_id": 74531263, "author": "Stephen Darlington", "author_id": 2998, "author_profile": "https://Stackoverflow.com/users/2998", "pm_score": 0, "selected": false, "text": "blockedFor=834s" }, { "answer_id": 74532363, "author": "Vladimir Pligin", "author_id": 5558122,...
2022/11/22
[ "https://Stackoverflow.com/questions/74530157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20568880/" ]
74,530,197
<pre><code> public void charFrequency(){ int maximumCount = 0; int minimumCount = 0; for (int i = 0; i &lt;str.length() ; i++) { char c = str.charAt(i); if(numCount.containsKey(c)){ int count = numCount.get(c); count++; if(m...
[ { "answer_id": 74531263, "author": "Stephen Darlington", "author_id": 2998, "author_profile": "https://Stackoverflow.com/users/2998", "pm_score": 0, "selected": false, "text": "blockedFor=834s" }, { "answer_id": 74532363, "author": "Vladimir Pligin", "author_id": 5558122,...
2022/11/22
[ "https://Stackoverflow.com/questions/74530197", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13084927/" ]
74,530,253
<pre><code>{ &quot;List1&quot;: [ { &quot;f1&quot;: &quot;b6ff&quot;, &quot;f2&quot;: &quot;day&quot;, &quot;f3&quot;: &quot;HO&quot;, &quot;List2&quot;: [{&quot;f1&quot;: 1.5,&quot;f2&quot;: &quot;RATE&quot;}] }] } </code></pre> <p>This is nested JSON in which there's a list 'List2' ins...
[ { "answer_id": 74531263, "author": "Stephen Darlington", "author_id": 2998, "author_profile": "https://Stackoverflow.com/users/2998", "pm_score": 0, "selected": false, "text": "blockedFor=834s" }, { "answer_id": 74532363, "author": "Vladimir Pligin", "author_id": 5558122,...
2022/11/22
[ "https://Stackoverflow.com/questions/74530253", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20570740/" ]
74,530,267
<p>!correction this does not work with android version 11 per pixel!</p> <p>I have three xamarin projects.forms, android and ios. Ios is not at the center of the problem at the moment. On any Pixel devices and under any Android (I tested 13, 12, 11, 10). The device says I don't have access. &quot;Access to the trail......
[ { "answer_id": 74553857, "author": "user2153142", "author_id": 2153142, "author_profile": "https://Stackoverflow.com/users/2153142", "pm_score": 2, "selected": true, "text": " https://www.zoftino.com/how-to-create-browse-files-option-in-android\n https://mateuszteteruk.pl/how-to-use-andr...
2022/11/22
[ "https://Stackoverflow.com/questions/74530267", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15739701/" ]
74,530,280
<p>We have;</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>PositionId</th> <th>X</th> <th>Y</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>-1</td> <td>-2</td> </tr> <tr> <td>2</td> <td>-1</td> <td>-1</td> </tr> <tr> <td>3</td> <td>1</td> <td>2</td> </tr> <tr> <td>4</td> <td>1</td> <td>1</...
[ { "answer_id": 74553857, "author": "user2153142", "author_id": 2153142, "author_profile": "https://Stackoverflow.com/users/2153142", "pm_score": 2, "selected": true, "text": " https://www.zoftino.com/how-to-create-browse-files-option-in-android\n https://mateuszteteruk.pl/how-to-use-andr...
2022/11/22
[ "https://Stackoverflow.com/questions/74530280", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18205975/" ]
74,530,300
<p>I added <strong>Notification Extension Service</strong> for push notification image purpose. It can running on read device as expected</p> <p>but when I tried to archive it, some errors appears, look like the following :</p> <p><img src="https://i.stack.imgur.com/cfNNB.png" alt="Undefined Symbol : OBJC_CLASS$_Flutte...
[ { "answer_id": 74553857, "author": "user2153142", "author_id": 2153142, "author_profile": "https://Stackoverflow.com/users/2153142", "pm_score": 2, "selected": true, "text": " https://www.zoftino.com/how-to-create-browse-files-option-in-android\n https://mateuszteteruk.pl/how-to-use-andr...
2022/11/22
[ "https://Stackoverflow.com/questions/74530300", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20476465/" ]
74,530,306
<p>I am working on Google Sheets since couple of years and found i very useful but now there is one situation i got faced and make me troubled to fix it.</p> <p>In the current stage, when the line break is included in the cell value, when the cell is copied and pasted, it seems that it becomes <code>&quot;&quot;&quot;t...
[ { "answer_id": 74530443, "author": "David Morales", "author_id": 9652475, "author_profile": "https://Stackoverflow.com/users/9652475", "pm_score": -1, "selected": false, "text": "=CHAR(34)&SUBSTITUTE(A1,\"\"\"\",\"\")&CHAR(34)\n" }, { "answer_id": 74532572, "author": "player0...
2022/11/22
[ "https://Stackoverflow.com/questions/74530306", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16968735/" ]
74,530,313
<p>I have a huge text file and need to split it to some file. In the text file there is an identifier to split the file. Here is some part of the text file looks like:</p> <pre><code>Comp MOFVersion 10.1 Copyright 1997-2006. All rights reserved. -------------------------------------------------- Mon 11/19/2022 8:34:22...
[ { "answer_id": 74530406, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 1, "selected": false, "text": "re.findall with open('data.txt', 'r') as file:\n data = file.read()\n parts = re.findall(r'-{10,}[^-]*...
2022/11/22
[ "https://Stackoverflow.com/questions/74530313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11076819/" ]
74,530,402
<p><strong>I want to reject duplicate socket connection when the same connected client try to connect again.</strong> The below code I tried to store gamerId into an array then later check the array if new gamerId already exist or not. But seems the duplicate connection already made but I don't want to make any duplica...
[ { "answer_id": 74530406, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 1, "selected": false, "text": "re.findall with open('data.txt', 'r') as file:\n data = file.read()\n parts = re.findall(r'-{10,}[^-]*...
2022/11/22
[ "https://Stackoverflow.com/questions/74530402", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10183096/" ]
74,530,404
<p>I am new to pine and am having trouble with this. its probably syntax or improper calculation. Code as follows:</p> <pre><code>buySignal = input.bool(true,title='Buy Signal') sellSignal = input.bool(true,title='Sell Signal') plotshape(buySignal ? lenema &gt; lenema[1] and lenema[1] &lt; lenema[2]: na,title='Buy Sha...
[ { "answer_id": 74530406, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 1, "selected": false, "text": "re.findall with open('data.txt', 'r') as file:\n data = file.read()\n parts = re.findall(r'-{10,}[^-]*...
2022/11/22
[ "https://Stackoverflow.com/questions/74530404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20570804/" ]
74,530,430
<p>Does anyone know how can i filter and get numbers greater than 250 in an array consisting of two different types i.e</p> <pre><code>interface Foo { myNumber: number } interface Bar { present: boolean } const myArray : (Foo | Bar)[] = [{myNumber: 200}, {myNumber:600}, {myNumber:450}, {present: true}] myArr...
[ { "answer_id": 74530406, "author": "Tim Biegeleisen", "author_id": 1863229, "author_profile": "https://Stackoverflow.com/users/1863229", "pm_score": 1, "selected": false, "text": "re.findall with open('data.txt', 'r') as file:\n data = file.read()\n parts = re.findall(r'-{10,}[^-]*...
2022/11/22
[ "https://Stackoverflow.com/questions/74530430", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2083529/" ]
74,530,461
<p>I have looked for solutions but seem to find none that point me in the right direction, hopefully, someone on here can help. I have a stock price data set, with a frequency of Month Start. I am trying to get an output where the calendar years are the column names, and the day and month will be the index (there will ...
[ { "answer_id": 74530712, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 2, "selected": false, "text": "month year pivot s = pd.to_datetime(df.index)\n\nout = (df\n .assign(year=s.year, month=s.month)\n .pivot_table(ind...
2022/11/22
[ "https://Stackoverflow.com/questions/74530461", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13085087/" ]
74,530,487
<p>I was trying to write a vba that can help detect whether within a range of cell exisit a cetain word in many sentences, but I don't know why the code did not work?</p> <pre><code>Private Sub Worksheet_Change(ByVal target As Range) Application.EnableEvents = False Set Rng = Range(&quot;Z10:Z35&quot;) ...
[ { "answer_id": 74530712, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 2, "selected": false, "text": "month year pivot s = pd.to_datetime(df.index)\n\nout = (df\n .assign(year=s.year, month=s.month)\n .pivot_table(ind...
2022/11/22
[ "https://Stackoverflow.com/questions/74530487", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20570146/" ]
74,530,552
<p>This is the variable i am having right now</p> <pre><code>[ { &quot;_id&quot;:&quot;63773059c3160f782c087e33&quot;, &quot;nfrid&quot;:&quot;637328ebf5c4b2558b064809&quot;, &quot;nfrname&quot;:&quot;azuread&quot;, &quot;fileName&quot;:&quot;package.json&quot;, &quot;isImport&quot;:fal...
[ { "answer_id": 74530619, "author": "callOfCode", "author_id": 5080069, "author_profile": "https://Stackoverflow.com/users/5080069", "pm_score": 0, "selected": false, "text": "switch if/else" }, { "answer_id": 74530623, "author": "Justinas", "author_id": 1346234, "auth...
2022/11/22
[ "https://Stackoverflow.com/questions/74530552", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19672461/" ]
74,530,598
<p>My code is:</p> <pre><code>n = 3 for i in range(1, n+1): for j in range(1, n+1): print(j*i, end='*') print(end='\b\n') </code></pre> <p>Result of this code is:</p> <pre><code>1*2*3* 2*4*6* 3*6*9* </code></pre> <p>But I need expected result like this (without aesthetics in end of rows):</p> <pre><code...
[ { "answer_id": 74530663, "author": "Maxwell D. Dorliea", "author_id": 12906648, "author_profile": "https://Stackoverflow.com/users/12906648", "pm_score": -1, "selected": false, "text": "n = 3\nfor i in range(1, n+1):\n for j in range(1, n+1):\n print(j*i, end='')\n if j ...
2022/11/22
[ "https://Stackoverflow.com/questions/74530598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18174916/" ]
74,530,600
<p>this is my code snippet bellow, I am trying to close the websocket connection after component unmounts, I just totally dont know how to do it I am using this useEffect inside the same component I am also using useref to count the mounted count of the component so that the websocket doesn't creates more that 1 instan...
[ { "answer_id": 74530663, "author": "Maxwell D. Dorliea", "author_id": 12906648, "author_profile": "https://Stackoverflow.com/users/12906648", "pm_score": -1, "selected": false, "text": "n = 3\nfor i in range(1, n+1):\n for j in range(1, n+1):\n print(j*i, end='')\n if j ...
2022/11/22
[ "https://Stackoverflow.com/questions/74530600", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19843225/" ]
74,530,649
<p>I'm trying to fetch the shop and it's coupons, I have two model one for the shop and one for the coupon, also two routers, one for fetching shops and one for fetching coupons, the shops are fetching fine and showing in client side, but the coupons are not showing in the client side. When <em><code>/coupons/${shopNam...
[ { "answer_id": 74530663, "author": "Maxwell D. Dorliea", "author_id": 12906648, "author_profile": "https://Stackoverflow.com/users/12906648", "pm_score": -1, "selected": false, "text": "n = 3\nfor i in range(1, n+1):\n for j in range(1, n+1):\n print(j*i, end='')\n if j ...
2022/11/22
[ "https://Stackoverflow.com/questions/74530649", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17342280/" ]
74,530,666
<p>I discovered a different behaviour when I want to serialize an object of type <strong>INTERFACE</strong> in System.Text.Json.</p> <pre><code>public class ITestClass { } public class TestClass : ITestClass { public int MyProperty { get; set; } } </code></pre> <p>Newtonsoft.Json:</p> <pre><code>var result1 = Enco...
[ { "answer_id": 74530663, "author": "Maxwell D. Dorliea", "author_id": 12906648, "author_profile": "https://Stackoverflow.com/users/12906648", "pm_score": -1, "selected": false, "text": "n = 3\nfor i in range(1, n+1):\n for j in range(1, n+1):\n print(j*i, end='')\n if j ...
2022/11/22
[ "https://Stackoverflow.com/questions/74530666", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6560691/" ]
74,530,668
<p>I am trying to figure out if all the methods to create a build using expo must go through EAS (Expo Application Services) since apparently they limit the free tier to 30 builds per month.</p> <p>Can I build the web-app locally without an EAS account / 100% for free?</p> <p><a href="https://docs.expo.dev/build-refere...
[ { "answer_id": 74530764, "author": "no_modules", "author_id": 19835828, "author_profile": "https://Stackoverflow.com/users/19835828", "pm_score": 2, "selected": false, "text": "android studio xcode build android studio xcode CD package.json npm android package.json wifi pairing" }, {...
2022/11/22
[ "https://Stackoverflow.com/questions/74530668", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7927429/" ]
74,530,685
<p>I received feedback:</p> <p>&quot;code test is not at the expected level there's a lack of understanding of async, HTTP clients, and just software development patterns in general. Poor structure and testing&quot;</p> <p>The simple test and solution are on GitHub <a href="https://github.com/sasa-yovanovicc/weatherapi...
[ { "answer_id": 74530764, "author": "no_modules", "author_id": 19835828, "author_profile": "https://Stackoverflow.com/users/19835828", "pm_score": 2, "selected": false, "text": "android studio xcode build android studio xcode CD package.json npm android package.json wifi pairing" }, {...
2022/11/22
[ "https://Stackoverflow.com/questions/74530685", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1893211/" ]
74,530,715
<p>I have created some services with interfaces and added them as services the ConfigureServices method in the Startup.cs file (see screenshot and code).</p> <pre><code>public void ConfigureServices(IServiceCollection services) { if (Environment.IsDevelopment()) { EstablishDbContext(serv...
[ { "answer_id": 74530823, "author": "AlirezaK", "author_id": 4444757, "author_profile": "https://Stackoverflow.com/users/4444757", "pm_score": 0, "selected": false, "text": "@using" }, { "answer_id": 74531266, "author": "T.Trassoudaine", "author_id": 10989407, "author_...
2022/11/22
[ "https://Stackoverflow.com/questions/74530715", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17350563/" ]
74,530,758
<p>Here is my code</p> <pre><code>module_a.py class Parent(object): def __init__(self) -&gt; None: pass def send(self): print('We send some message here') # send self.message class Child(Parent): def __init__(self, message): self.message = message super(Child, self...
[ { "answer_id": 74530826, "author": "Noah", "author_id": 14028308, "author_profile": "https://Stackoverflow.com/users/14028308", "pm_score": 1, "selected": false, "text": " class Parent(object):\n def __init__(self) -> None:\n pass\n\n def send(self):\n print(type(s...
2022/11/22
[ "https://Stackoverflow.com/questions/74530758", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5079255/" ]
74,530,771
<p>i want to create form when there will be possibility to add/remove additional selection rows, but all of this new selection should have possibility to show DIV depends on selected option.</p> <p>Everything is working fine for first row which is loaded with page, DIV is showing input form, normal text or another sele...
[ { "answer_id": 74530895, "author": "Carsten Løvbo Andersen", "author_id": 2943218, "author_profile": "https://Stackoverflow.com/users/2943218", "pm_score": 0, "selected": false, "text": "$(\".type\").change(function() { $(document).ready(function() {\n\n $(document).on(\"change\", \".ty...
2022/11/22
[ "https://Stackoverflow.com/questions/74530771", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20570952/" ]
74,530,782
<p>After updating Next.js to version 13, I got this client error</p> <p><a href="https://i.stack.imgur.com/LnqBX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LnqBX.png" alt="enter image description here" /></a></p> <pre><code>&lt;Link href=&quot;/contact&quot;&gt; &lt;a&gt; Contact &lt;/a&...
[ { "answer_id": 74530895, "author": "Carsten Løvbo Andersen", "author_id": 2943218, "author_profile": "https://Stackoverflow.com/users/2943218", "pm_score": 0, "selected": false, "text": "$(\".type\").change(function() { $(document).ready(function() {\n\n $(document).on(\"change\", \".ty...
2022/11/22
[ "https://Stackoverflow.com/questions/74530782", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12490386/" ]
74,530,787
<p>I am trying to run a Streamlit app importing <code>pickle files</code> and a <code>DataFrame</code>. The pathfile for my script is :</p> <blockquote> <p>/Users/myname/Documents/Master2/Python/Final_Project/streamlit_app.py</p> </blockquote> <p>And the one for my <code>DataFrame</code> is:</p> <blockquote> <p>/Users/...
[ { "answer_id": 74530895, "author": "Carsten Løvbo Andersen", "author_id": 2943218, "author_profile": "https://Stackoverflow.com/users/2943218", "pm_score": 0, "selected": false, "text": "$(\".type\").change(function() { $(document).ready(function() {\n\n $(document).on(\"change\", \".ty...
2022/11/22
[ "https://Stackoverflow.com/questions/74530787", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14820215/" ]
74,530,800
<p>I have a dataset (df3) with five columns x, y, r, g and b, although I only need to work with x, y and r. I want to find the average of all the consecutive rows in which the value of r is equal and store it in a database (df_final). To do this, I have generated a code that stores all the values in which r is equal to...
[ { "answer_id": 74530895, "author": "Carsten Løvbo Andersen", "author_id": 2943218, "author_profile": "https://Stackoverflow.com/users/2943218", "pm_score": 0, "selected": false, "text": "$(\".type\").change(function() { $(document).ready(function() {\n\n $(document).on(\"change\", \".ty...
2022/11/22
[ "https://Stackoverflow.com/questions/74530800", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20570777/" ]
74,530,809
<p>I have some code that creates several listeners. Thus I was thinking about adding a template that calls the notify on different types of listeners. However I am not sure how to call the member function (which all have different arguments) in a template. I am using C++17.</p> <pre><code>template &lt;class T&gt; void ...
[ { "answer_id": 74530895, "author": "Carsten Løvbo Andersen", "author_id": 2943218, "author_profile": "https://Stackoverflow.com/users/2943218", "pm_score": 0, "selected": false, "text": "$(\".type\").change(function() { $(document).ready(function() {\n\n $(document).on(\"change\", \".ty...
2022/11/22
[ "https://Stackoverflow.com/questions/74530809", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1479628/" ]
74,530,814
<p>I have an array of objects whose ID is same but it contains the list of items which I want to merge in the same item. Below is the object I want the items of which to be merged on the basis of &quot;categoryID&quot;</p> <p>`</p> <pre><code>[ { &quot;addons&quot;: [ { &quot;addonId&quot;: &quot;Ad...
[ { "answer_id": 74531855, "author": "AndrewL", "author_id": 1847378, "author_profile": "https://Stackoverflow.com/users/1847378", "pm_score": 1, "selected": false, "text": "import com.fasterxml.jackson.core.type.TypeReference\nimport com.fasterxml.jackson.databind.json.JsonMapper\nimport ...
2022/11/22
[ "https://Stackoverflow.com/questions/74530814", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15773565/" ]
74,530,837
<p>Im triying to change the source of a image with a js function but it seems to not work, the function executes on a mounted() of Framework7</p> <p>This is what i have right now</p> <p>HTML:</p> <pre><code>&lt;div&gt; &lt;span&gt; &lt;img id=&quot;star_1&quot; class=&quot;star&quot; src=&quot;../assets/empty_star.png...
[ { "answer_id": 74531855, "author": "AndrewL", "author_id": 1847378, "author_profile": "https://Stackoverflow.com/users/1847378", "pm_score": 1, "selected": false, "text": "import com.fasterxml.jackson.core.type.TypeReference\nimport com.fasterxml.jackson.databind.json.JsonMapper\nimport ...
2022/11/22
[ "https://Stackoverflow.com/questions/74530837", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15766722/" ]
74,530,847
<p><a href="https://i.stack.imgur.com/QZCmm.png" rel="nofollow noreferrer">enter image description here</a></p> <p>This can anyone explain me this logic.</p> <p>Here the answer I get is the actual answer which I want but I want to know the proper working flow behind this pattern.</p> <p>THANKS</p>
[ { "answer_id": 74531189, "author": "Dhruv Sakariya", "author_id": 13387235, "author_profile": "https://Stackoverflow.com/users/13387235", "pm_score": 1, "selected": false, "text": " Your for loop will run for 10 times from 0-9.\nthen inside your for loop you inserted the color.\nthen you...
2022/11/22
[ "https://Stackoverflow.com/questions/74530847", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19236970/" ]
74,530,862
<p>I am using confd based Netconf agent. When I checked the XML payload received by the agent, I see a number prefixed in the payload. It is not message-id. What is this prefix? Please give any RFC reference which explains the prefix.</p> <p>For example, &quot;#164&quot; is prefixed with the get-config payload.</p> <pr...
[ { "answer_id": 74531189, "author": "Dhruv Sakariya", "author_id": 13387235, "author_profile": "https://Stackoverflow.com/users/13387235", "pm_score": 1, "selected": false, "text": " Your for loop will run for 10 times from 0-9.\nthen inside your for loop you inserted the color.\nthen you...
2022/11/22
[ "https://Stackoverflow.com/questions/74530862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20372664/" ]
74,530,881
<p>Lets say we have the following arrays.</p> <p><code>[1,2]</code> &amp; <code>[1,2,3]</code> &amp; <code>[1,2,3,4]</code></p> <p>Then let's say we want to loop through all <em><strong>unique</strong></em> possible combinations of this.</p> <p>The results should look something like this.</p> <pre><code> // ...
[ { "answer_id": 74531506, "author": "R4ncid", "author_id": 14326899, "author_profile": "https://Stackoverflow.com/users/14326899", "pm_score": 2, "selected": true, "text": "const cartesianElementPosition = (data, position) => {\n\n const arrayLengths = data.map(([start, end, step]) => Ma...
2022/11/22
[ "https://Stackoverflow.com/questions/74530881", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1606689/" ]
74,530,916
<p><a href="https://codesandbox.io/s/little-thunder-so1omh?file=/src/menu/menu.scss" rel="nofollow noreferrer">https://codesandbox.io/s/little-thunder-so1omh?file=/src/menu/menu.scss</a></p> <p>this is my problem. when I refresh, menu opens and closes for a moment</p> <p>I want to prevent this from re-render. this my c...
[ { "answer_id": 74531434, "author": "Devendra Kushwaha", "author_id": 15267060, "author_profile": "https://Stackoverflow.com/users/15267060", "pm_score": 0, "selected": false, "text": "https://codesandbox.io/s/eager-microservice-b7p4gc?file=/src/menu/menu.scss\n" }, { "answer_id":...
2022/11/22
[ "https://Stackoverflow.com/questions/74530916", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19450127/" ]
74,530,930
<p>I want custom object in response of API having [required] data annotation on model properties like this:</p> <pre><code>{ &quot;resourceType&quot;: &quot;OperationOutcome&quot;, &quot;issue&quot;: [ { &quot;severity&quot;: &quot;fatal&quot;, &quot;code&quot;: &quot;required&quot;, &qu...
[ { "answer_id": 74531434, "author": "Devendra Kushwaha", "author_id": 15267060, "author_profile": "https://Stackoverflow.com/users/15267060", "pm_score": 0, "selected": false, "text": "https://codesandbox.io/s/eager-microservice-b7p4gc?file=/src/menu/menu.scss\n" }, { "answer_id":...
2022/11/22
[ "https://Stackoverflow.com/questions/74530930", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14210566/" ]
74,530,958
<p>It is one of the first times I am using boost and I am getting an error saying</p> <p><code>BaseKey boost::bimaps::container_adaptor::detail::key_to_base_identity&lt;BaseKey,KeyType&gt;::operator ()(Key &amp;) const': cannot convert argument 1 from 'const CompatibleKey' to 'Key &amp;</code></p> <p>and</p> <p><code>b...
[ { "answer_id": 74531434, "author": "Devendra Kushwaha", "author_id": 15267060, "author_profile": "https://Stackoverflow.com/users/15267060", "pm_score": 0, "selected": false, "text": "https://codesandbox.io/s/eager-microservice-b7p4gc?file=/src/menu/menu.scss\n" }, { "answer_id":...
2022/11/22
[ "https://Stackoverflow.com/questions/74530958", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20053601/" ]
74,530,966
<p>I'm trying to clean up the results presented on my HTML file with Jquery. I want to keep removing words that are repeated more than one time.</p> <p>A quick example</p> <pre><code>Accents Australian Accents English (RP) Dance Hip Hop Dance Jazz </code></pre> <p>It should be output as</p> <p>Accents</p> <ul> <li>Aus...
[ { "answer_id": 74531159, "author": "Kairav Thakar", "author_id": 20447312, "author_profile": "https://Stackoverflow.com/users/20447312", "pm_score": 2, "selected": false, "text": " const category = [...document.querySelectorAll('.skill-item > .skill-category')];\nconst texts = new Set...
2022/11/22
[ "https://Stackoverflow.com/questions/74530966", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3521090/" ]
74,530,977
<p>I have a table containing timeseries data and want to select a number of rows based on some &quot;first&quot; criteria as well as those with timestamps close to those select based on the first criteria.</p> <p>Example table:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>ts</th> <th>val...
[ { "answer_id": 74531457, "author": "QueryingQuail", "author_id": 20173417, "author_profile": "https://Stackoverflow.com/users/20173417", "pm_score": 0, "selected": false, "text": "DATEDIFF CREATE TABLE events (\n event_ts DATETIME,\n event_value INTEGER\n);\n INSERT INTO events VALUES\...
2022/11/22
[ "https://Stackoverflow.com/questions/74530977", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1299769/" ]
74,530,984
<p>I want to enable my users to set certain global colors when using the app. Therefor I have created a 'dynamicVariables.css' file:</p> <pre><code> :root { --my-color: violet; } </code></pre> <p>It is imported in 'global.scss' file:</p> <pre><code>@import &quot;./theme/dynamicVariables.css&quot;; </code></pre> <p>Als...
[ { "answer_id": 74531457, "author": "QueryingQuail", "author_id": 20173417, "author_profile": "https://Stackoverflow.com/users/20173417", "pm_score": 0, "selected": false, "text": "DATEDIFF CREATE TABLE events (\n event_ts DATETIME,\n event_value INTEGER\n);\n INSERT INTO events VALUES\...
2022/11/22
[ "https://Stackoverflow.com/questions/74530984", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16975737/" ]
74,530,987
<p>When I am using this command to build the ios ipa file:</p> <pre><code>➜ ios git:(master) ✗ ~/fvm/versions/2.5.0/bin/flutter build ipa Changing current working directory to: /Users/xiaoqiangjiang/source/reddwarf/frontend/flutter-netease-music Archiving com.reddwarf.musicapp... Automatically s...
[ { "answer_id": 74531457, "author": "QueryingQuail", "author_id": 20173417, "author_profile": "https://Stackoverflow.com/users/20173417", "pm_score": 0, "selected": false, "text": "DATEDIFF CREATE TABLE events (\n event_ts DATETIME,\n event_value INTEGER\n);\n INSERT INTO events VALUES\...
2022/11/22
[ "https://Stackoverflow.com/questions/74530987", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2628868/" ]
74,530,988
<p>I want to add an icon next to the labels in my interface below :</p> <p><a href="https://i.stack.imgur.com/h9PYP.png" rel="nofollow noreferrer">actuel interface</a></p> <p>The problem is when I add the icon right to my labels, my interface changes and become like this :</p> <p><a href="https://i.stack.imgur.com/7YUF...
[ { "answer_id": 74531017, "author": "yo_sup", "author_id": 20538807, "author_profile": "https://Stackoverflow.com/users/20538807", "pm_score": 1, "selected": false, "text": ".blockTooltip {\n display: flex;\n flex-direction: row;\n gap: 10px;\n}\n" }, { "answer_id": 74531...
2022/11/22
[ "https://Stackoverflow.com/questions/74530988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16230569/" ]
74,531,014
<p>I have a model with a list of products. Each product has an ID, price, brand, etc. I want return all the objects of the model where brand name is distinct. I am currently using django's built-in SQLite, so it does not support something like</p> <pre><code>products = Product.objects.all().distinct('brand') </code></p...
[ { "answer_id": 74531171, "author": "Ajay K", "author_id": 10782096, "author_profile": "https://Stackoverflow.com/users/10782096", "pm_score": -1, "selected": false, "text": "products = set(Product.objects.values_list('brand'))\n" }, { "answer_id": 74531273, "author": "Naser F...
2022/11/22
[ "https://Stackoverflow.com/questions/74531014", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3085213/" ]
74,531,047
<p>I am using apex from oracle for learning PL/SQL for last 10 days. At a sudden, I wrote a code to take some inputs from user. `</p> <pre><code>declare a number; begin a := &amp;x; dbms_output.put_line(a*6); end; </code></pre> <p>` it is throwing some errors.&gt;&gt;ORA-06550</p> <p>I am expected t...
[ { "answer_id": 74531225, "author": "Koen Lostrie", "author_id": 4189814, "author_profile": "https://Stackoverflow.com/users/4189814", "pm_score": 0, "selected": false, "text": "koen >set serveroutput on \nkoen >declare \n 2 a number;\n 3 begin\n 4 a := &x;\n 5 dbms_output.p...
2022/11/22
[ "https://Stackoverflow.com/questions/74531047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16772593/" ]
74,531,051
<p>In Python, I was using Spacy library there was trying below commands:-</p> <p><code>import spacy</code></p> <p>Getting Below Error</p> <pre><code>Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; ModuleNotFoundError: No module named 'spacy' </code></pre> <p>Then tried to ...
[ { "answer_id": 74531127, "author": "Gandhi", "author_id": 16977407, "author_profile": "https://Stackoverflow.com/users/16977407", "pm_score": 0, "selected": false, "text": "pip install -U spacy python -m spacy download en_core_web_sm" }, { "answer_id": 74531132, "author": "so...
2022/11/22
[ "https://Stackoverflow.com/questions/74531051", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20571220/" ]
74,531,081
<p>Since 19 november 2022 apt-get update on Debian 8 Jessie gives the follwowing error/warning when running apt-get update:</p> <pre><code>W: GPG error: http://archive.debian.org jessie Release: The following signatures were invalid: KEYEXPIRED 1587841717 </code></pre> <p>The contents of my /etc/apt/sources.list:</p> ...
[ { "answer_id": 74558753, "author": "Reyn4ld", "author_id": 4215114, "author_profile": "https://Stackoverflow.com/users/4215114", "pm_score": 1, "selected": false, "text": "debian:jessie debian/eol:jessie" } ]
2022/11/22
[ "https://Stackoverflow.com/questions/74531081", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20570778/" ]
74,531,104
<p>I have a dimension table with column A, B, C, D, E. And I create the start model to link column A to Table A, column B to table B, column C to table C, column D to table D, column E to table E. The 5 columns doesn't follow the hierarchy structure. And I need to create the slicers for each column based on the dimensi...
[ { "answer_id": 74533267, "author": "Ozan Sen", "author_id": 19469088, "author_profile": "https://Stackoverflow.com/users/19469088", "pm_score": 0, "selected": false, "text": "Table A = VALUES(MainTable[A])\nTable B = VALUES(MainTable[B])\nTable C = VALUES(MainTable[C])\nTable D = VALUES(...
2022/11/22
[ "https://Stackoverflow.com/questions/74531104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5266554/" ]
74,531,114
<p>I have created 5 columns for storing some data, but when the text inside one column is too long, the width will be changed.</p> <p>Expect: The word will wrap to next line and each column width should stay the same.</p> <p><a href="https://playcode.io/1017243" rel="nofollow noreferrer">https://playcode.io/1017243</a>...
[ { "answer_id": 74533267, "author": "Ozan Sen", "author_id": 19469088, "author_profile": "https://Stackoverflow.com/users/19469088", "pm_score": 0, "selected": false, "text": "Table A = VALUES(MainTable[A])\nTable B = VALUES(MainTable[B])\nTable C = VALUES(MainTable[C])\nTable D = VALUES(...
2022/11/22
[ "https://Stackoverflow.com/questions/74531114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18689387/" ]
74,531,115
<p>is there any way to get $('#div') inside callback function? $('#div') changes</p> <pre><code>var param = { a: 'haha' } $('#div').load('/foo.html', param, foo()) function foo() { var div = caller? // this variable should be &quot;$('#div')[0]&quot; } </code></pre>
[ { "answer_id": 74531333, "author": "freedomn-m", "author_id": 2181514, "author_profile": "https://Stackoverflow.com/users/2181514", "pm_score": 1, "selected": false, "text": "this .load $('#div').load('/foo.html', param, function() { $(this).show() })\n var fooResult = foo();\n$('#div')....
2022/11/22
[ "https://Stackoverflow.com/questions/74531115", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3471346/" ]
74,531,133
<p>Is it possible to call a global variable that is defined in the function from outside of the function in JavaScript? For example, I can print the selected item in the console.log that is located within the function. However, if I try to fetch the same value outside of the function, it's not working. Is there anyway ...
[ { "answer_id": 74531289, "author": "David Fontes", "author_id": 11755228, "author_profile": "https://Stackoverflow.com/users/11755228", "pm_score": 0, "selected": false, "text": "// 1. This happens first, you initialize your variable in the global scope.\nvar selectedItem = '';\n\n// 2. ...
2022/11/22
[ "https://Stackoverflow.com/questions/74531133", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17670715/" ]
74,531,141
<p>I have onClick event and I'm calling a function i.e handleFunc(). handleFunc() includes if statement with count value. If count value is 0 then i call function1(). If count value is 1 then it calls function1() and function2(). If count value is 2 the it calls function1 (), function2(), function3(). But based on coun...
[ { "answer_id": 74531289, "author": "David Fontes", "author_id": 11755228, "author_profile": "https://Stackoverflow.com/users/11755228", "pm_score": 0, "selected": false, "text": "// 1. This happens first, you initialize your variable in the global scope.\nvar selectedItem = '';\n\n// 2. ...
2022/11/22
[ "https://Stackoverflow.com/questions/74531141", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20338321/" ]
74,531,160
<p><strong>this is the cypress test file</strong></p> <pre><code>import { Given, Then } from &quot;cypress-cucumber-preprocessor/steps&quot;; import { quickSignIn } from &quot;../../../support/services/commonServices&quot;; import { storyTableViewResultColumnCheck } from &quot;../../../support/services/calculationStory...
[ { "answer_id": 74531485, "author": "Mikhail Bolotov", "author_id": 13109074, "author_profile": "https://Stackoverflow.com/users/13109074", "pm_score": 0, "selected": false, "text": "cy.task return then function getAllCalculationStoriesFromExcel() {\n return cy.task(\"getExcelData\...
2022/11/22
[ "https://Stackoverflow.com/questions/74531160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13246500/" ]
74,531,190
<p>I'm trying to build a validation attribute that will validate the size of a collection, I want the method to be able to handle reference types like string and also non reference types like int. I tried to use <code>IEnumerable&lt;object&gt;</code> but that stays null in case I pass a <code>IEnumerable&lt;int&gt;</co...
[ { "answer_id": 74531361, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 3, "selected": true, "text": "IEnumerable<T> IEnumerable IList ICollection .Count IEnumerable" }, { "answer_id": 74531553, "author": "...
2022/11/22
[ "https://Stackoverflow.com/questions/74531190", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19442297/" ]
74,531,221
<p>I have an AppModule, in which i lazy load MainModule and which lazy loads HomeModule.</p> <p>MainModule is loads fine, but HomeModule is loaded, but not rendered inside router-outlet. If i load it without lazy loading, it works.</p> <p>How can i make lazy loaded HomeModule render?</p> <p>I've created a Stackblitz <a...
[ { "answer_id": 74531361, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 3, "selected": true, "text": "IEnumerable<T> IEnumerable IList ICollection .Count IEnumerable" }, { "answer_id": 74531553, "author": "...
2022/11/22
[ "https://Stackoverflow.com/questions/74531221", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14246269/" ]
74,531,279
<p>I'm trying to make this <a href="https://codepen.io/bramus/embed/ExaEqMJ?height=687&amp;theme-id=default&amp;default-tab=result&amp;user=bramus&amp;slug-hash=ExaEqMJ&amp;pen-title=Smooth%20Scrolling%20Sticky%20ScrollSpy%20Navigation&amp;name=cp_embed_4#result-box" rel="nofollow noreferrer">Smooth Scrolling Navigatio...
[ { "answer_id": 74531361, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 3, "selected": true, "text": "IEnumerable<T> IEnumerable IList ICollection .Count IEnumerable" }, { "answer_id": 74531553, "author": "...
2022/11/22
[ "https://Stackoverflow.com/questions/74531279", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15594352/" ]
74,531,286
<p>My output looks like that, but isn't my code bad practice? Is there a way to replace the for with numpy functions?</p> <pre><code>[[ 1. 1.5 2. 2.5 3. ] [ 3.5 4. 4.5 5. 5.5] [ 6. 6.5 7. 7.5 8. ] [ 8.5 9. 9.5 10. 10.5] [11. 11.5 12. 12.5 13. ] [13.5 14. 14.5 15. 15.5] [16. 16.5 17. 17...
[ { "answer_id": 74531358, "author": "Ftagliacarne", "author_id": 4470987, "author_profile": "https://Stackoverflow.com/users/4470987", "pm_score": 2, "selected": false, "text": "np.arange arr = np.arange(1,21,0.5).reshape((8,5))\n" }, { "answer_id": 74531360, "author": "mozway...
2022/11/22
[ "https://Stackoverflow.com/questions/74531286", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15488393/" ]
74,531,297
<p>I want to draw a table widget in my screen. This is my code:</p> <pre><code>body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: &lt;Widget&gt;[ Container( padding: const EdgeInsets.all(10), alignment: Alignment.center, ...
[ { "answer_id": 74531358, "author": "Ftagliacarne", "author_id": 4470987, "author_profile": "https://Stackoverflow.com/users/4470987", "pm_score": 2, "selected": false, "text": "np.arange arr = np.arange(1,21,0.5).reshape((8,5))\n" }, { "answer_id": 74531360, "author": "mozway...
2022/11/22
[ "https://Stackoverflow.com/questions/74531297", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,531,316
<p>I'm trying to create a React application using create-react-app.</p> <p>Whenever I run the command, nothing happens (no effect in console and no files created): <a href="https://i.stack.imgur.com/mQRVw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mQRVw.png" alt="create.react.app no effect" /></...
[ { "answer_id": 74531365, "author": "Chukwunazaekpere", "author_id": 12589424, "author_profile": "https://Stackoverflow.com/users/12589424", "pm_score": -1, "selected": false, "text": "npm create react-app <your-app-name>\n npm create react-app <your-app-name> --template typescript\n" }...
2022/11/22
[ "https://Stackoverflow.com/questions/74531316", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12979980/" ]
74,531,351
<p>Hi I'm new to react and I'm trying to make a workout tracker but I have become hardstuck on trying to capture the input of the exercises the way I'd like, as you can see by the many commented out code blocks I think that I'm missing something fundamental with useState maybe?</p> <p>this is my useState</p> <pre><code...
[ { "answer_id": 74531365, "author": "Chukwunazaekpere", "author_id": 12589424, "author_profile": "https://Stackoverflow.com/users/12589424", "pm_score": -1, "selected": false, "text": "npm create react-app <your-app-name>\n npm create react-app <your-app-name> --template typescript\n" }...
2022/11/22
[ "https://Stackoverflow.com/questions/74531351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20569664/" ]
74,531,372
<p>I have some parameter in the constructor. I need to convert it to something else and give it to the parent constructor. But the problem is that I want to remember the result of the conversion (which I give to the parent constructor) and I don't need to store it in the base class. How initialize value in the parent c...
[ { "answer_id": 74531600, "author": "devmike01", "author_id": 5265414, "author_profile": "https://Stackoverflow.com/users/5265414", "pm_score": 0, "selected": false, "text": "SharedPreference val sharedPref = context?.getPreferences(Context.MODE_PRIVATE) ?: return\nwith (sharedPref.edit()...
2022/11/22
[ "https://Stackoverflow.com/questions/74531372", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14335049/" ]
74,531,384
<p>I have a working snippet that I've wrote, but I kinda don't understand how flutter is (re)using the widgets creating in the build method:</p> <pre><code>import 'dart:math'; import 'package:flutter/material.dart'; void main() { runApp(const MyGame()); } class MyGame extends StatelessWidget { const MyGame({Key? ...
[ { "answer_id": 74531600, "author": "devmike01", "author_id": 5265414, "author_profile": "https://Stackoverflow.com/users/5265414", "pm_score": 0, "selected": false, "text": "SharedPreference val sharedPref = context?.getPreferences(Context.MODE_PRIVATE) ?: return\nwith (sharedPref.edit()...
2022/11/22
[ "https://Stackoverflow.com/questions/74531384", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4719741/" ]
74,531,389
<p>I have this vector <code>m = [1,0.8,0.6,0.4,0.2,0]</code> and I have to create the following matrix in Python:</p> <p><a href="https://i.stack.imgur.com/6PSky.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6PSky.png" alt="enter image description here" /></a></p> <p>I create a matrix of zeros and ...
[ { "answer_id": 74531600, "author": "devmike01", "author_id": 5265414, "author_profile": "https://Stackoverflow.com/users/5265414", "pm_score": 0, "selected": false, "text": "SharedPreference val sharedPref = context?.getPreferences(Context.MODE_PRIVATE) ?: return\nwith (sharedPref.edit()...
2022/11/22
[ "https://Stackoverflow.com/questions/74531389", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12548329/" ]
74,531,433
<p>I want to select only the first occurrence of codes.head with md.mnem=&quot;ht1&quot; and &quot;ht1c&quot; tag from the whole file, regardless of its parent. My Xml file looks like this-</p> <pre><code>&lt;printArtifactGroup&gt; &lt;!--Pubtags : [ANIP+, AN+, ANIP, AN]Sourcetags: [21, 21-A1]--&gt; &lt;bov I...
[ { "answer_id": 74534583, "author": "al.truisme", "author_id": 16750357, "author_profile": "https://Stackoverflow.com/users/16750357", "pm_score": 0, "selected": false, "text": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<xsl:stylesheet \n xmlns:xsl=\"http://www.w3.org/1999/XSL/Transfor...
2022/11/22
[ "https://Stackoverflow.com/questions/74531433", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15918089/" ]
74,531,459
<p>I'm creating a 2D in in Unity and I have a loading screen, that it's working (the loading animation). What I want to do next is to make the next screen appear (it's a gameobject), after a certain time. Right now, my code is:</p> <pre><code> public RectTransform mainIcon; public float timeStep; public floa...
[ { "answer_id": 74534583, "author": "al.truisme", "author_id": 16750357, "author_profile": "https://Stackoverflow.com/users/16750357", "pm_score": 0, "selected": false, "text": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<xsl:stylesheet \n xmlns:xsl=\"http://www.w3.org/1999/XSL/Transfor...
2022/11/22
[ "https://Stackoverflow.com/questions/74531459", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17646296/" ]
74,531,462
<p>Im trying to solve a problem which reads only characters '?', '0' and '1' from the console. I have been using the following if statement, but it only works when all three are included in the string.</p> <p>How should the statement look like if I only want '?', '0' and '1'? I want the program to stop if I use for ins...
[ { "answer_id": 74531591, "author": "Yonatan Karp-Rudin", "author_id": 3899765, "author_profile": "https://Stackoverflow.com/users/3899765", "pm_score": 3, "selected": true, "text": "[?01]+ [?01]* * [?01] private Pattern pattern = Pattern.compile(\"[?01]+\");\n\nprivate boolean isMatching...
2022/11/22
[ "https://Stackoverflow.com/questions/74531462", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14779701/" ]
74,531,483
<p>The problem - I am receiving the following message:</p> <p><code>java.lang.ClassCastException: com.ibm.connector2.cics.ECIConnectionFactory incompatible with com.ibm.connector2.cics.ECIConnectionFactory</code></p> <p>I am receiving it when trying to make the following statement:</p> <p><code>eisDci = (ECIConnectionF...
[ { "answer_id": 74531591, "author": "Yonatan Karp-Rudin", "author_id": 3899765, "author_profile": "https://Stackoverflow.com/users/3899765", "pm_score": 3, "selected": true, "text": "[?01]+ [?01]* * [?01] private Pattern pattern = Pattern.compile(\"[?01]+\");\n\nprivate boolean isMatching...
2022/11/22
[ "https://Stackoverflow.com/questions/74531483", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20172978/" ]
74,531,517
<p>I have a table with this structure:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Date</th> <th>DeviceID</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>01/01/2022</td> <td>SensorA</td> <td>1200</td> </tr> <tr> <td>01/01/2022</td> <td>SensorB</td> <td>1300</td> </tr> <tr> <td>01/01...
[ { "answer_id": 74531591, "author": "Yonatan Karp-Rudin", "author_id": 3899765, "author_profile": "https://Stackoverflow.com/users/3899765", "pm_score": 3, "selected": true, "text": "[?01]+ [?01]* * [?01] private Pattern pattern = Pattern.compile(\"[?01]+\");\n\nprivate boolean isMatching...
2022/11/22
[ "https://Stackoverflow.com/questions/74531517", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16092657/" ]
74,531,554
<p>So my question is. I have a very huge form to fill in 200 input fields+ and I have one field required (the title) but I also wanna check that they fill in at least one other field. doesn't matter which one. but once that requirement is met they can submit the form.</p>
[ { "answer_id": 74532029, "author": "Edmunds Folkmanis", "author_id": 19886561, "author_profile": "https://Stackoverflow.com/users/19886561", "pm_score": 0, "selected": false, "text": "new FormGroup(\n {\n requiredControl: new FormControl(initialValue, [Validators.required]),\n con...
2022/11/22
[ "https://Stackoverflow.com/questions/74531554", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5373639/" ]
74,531,562
<p>I have an array in the following format.</p> <pre><code>const arr = [{name:'11'},{name:'10'},{name:'9'},{name:'8'},{name:'7'} {name:'6'},{name:'5'},{name:'4'},{name:'3'},{name:'2'},{name:'1'} {name:'UN'},{name:'PG'},{name:'LN'}, {name:'12'},{name:'13'}] </code></pre> <p>I can sort it to get an output like below.</p>...
[ { "answer_id": 74531772, "author": "Keith", "author_id": 6870228, "author_profile": "https://Stackoverflow.com/users/6870228", "pm_score": 3, "selected": true, "text": "name const arr = [{name:'11'},{name:'10'},{name:'9'},{name:'8'},{name:'7'},\n{name:'6'},{name:'5'},{name:'4'},{name:'3'...
2022/11/22
[ "https://Stackoverflow.com/questions/74531562", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15781662/" ]
74,531,567
<p>I tried to convert a column of dates to <code>datetime</code> using <code>pd.to_datetime(df, format='%Y-%m-%d_%H-%M-%S')</code> but I received the error <code>ValueError: unconverted data remains: .1</code></p> <p>I ran:</p> <pre><code>data.loc[pd.to_datetime(data.date, format='%Y-%m-%d_%H-%M-%S', errors='coerce').i...
[ { "answer_id": 74531664, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": 2, "selected": true, "text": "pandas.Series.replace data[\"date\"]= pd.to_datetime(data[\"date\"].replace(r\"\\.\\d+\", \"\",\n ...
2022/11/22
[ "https://Stackoverflow.com/questions/74531567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15213361/" ]
74,531,581
<p>I have this code to hide and show menu when scroll. How can i do it to appear class only of scroll &gt;= than 500px. I have traied to ad a if (scroll &gt;= 500) on code but it wont work.</p> <pre><code>jQuery(document).ready(function( $ ) { // console.log($); var lastScrollTop = 200; $(window).scroll(functi...
[ { "answer_id": 74531664, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": 2, "selected": true, "text": "pandas.Series.replace data[\"date\"]= pd.to_datetime(data[\"date\"].replace(r\"\\.\\d+\", \"\",\n ...
2022/11/22
[ "https://Stackoverflow.com/questions/74531581", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20500636/" ]
74,531,582
<p>Below is my function and output. I want to remove the <code>\n</code> present in the output.</p> <pre><code>def printInventory(): fh = open(&quot;stock.txt&quot;,&quot;r&quot;) print('Current Inventory') print('-----------------') L=fh.readlines() print(&quot;List of all Stock Items&quot;) ...
[ { "answer_id": 74531664, "author": "abokey", "author_id": 16120011, "author_profile": "https://Stackoverflow.com/users/16120011", "pm_score": 2, "selected": true, "text": "pandas.Series.replace data[\"date\"]= pd.to_datetime(data[\"date\"].replace(r\"\\.\\d+\", \"\",\n ...
2022/11/22
[ "https://Stackoverflow.com/questions/74531582", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20403674/" ]
74,531,610
<p>For example I would like to have:</p> <p>a</p> <p>. . .</p> <p>z</p> <p>aa</p> <p>ab</p> <p>. . .</p> <p>az</p> <p>bz</p> <p>. . .</p> <p>zz</p> <p>aaa</p> <p>and so on.</p> <p>Currently I'm here but I am lost. So feel free to propose a completely different solution.</p> <pre><code>count = 0 string = '' for i in ran...
[ { "answer_id": 74531759, "author": "Noah", "author_id": 14028308, "author_profile": "https://Stackoverflow.com/users/14028308", "pm_score": 2, "selected": false, "text": "def printcharachters(base, depth):\n if depth > 0:\n for a in range(97, 123):\n print(base + chr...
2022/11/22
[ "https://Stackoverflow.com/questions/74531610", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,531,622
<p>I am trying to get a good grasp of the State-Monad (and Monads in general) but I am struggling with rewriting the below function using the state Monad and the do-notation, which resulted as an exercise for me propose <a href="https://stackoverflow.com/questions/74404325/calculationg-perplexity-in-natural-language-pr...
[ { "answer_id": 74531759, "author": "Noah", "author_id": 14028308, "author_profile": "https://Stackoverflow.com/users/14028308", "pm_score": 2, "selected": false, "text": "def printcharachters(base, depth):\n if depth > 0:\n for a in range(97, 123):\n print(base + chr...
2022/11/22
[ "https://Stackoverflow.com/questions/74531622", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18049138/" ]
74,531,639
<p>I am having an array like this : <code>arr = [ {id:0,name:Mark} , {id:1,name:Ron}, {id:2,name:Henry}, {id:3,name:Rose}]</code>.</p> <p>I want to create an object like this :</p> <p><code>obj1 = { Mark:false, Ron:false, Henry:false, Rose:flase }</code></p> <p>I am using <code>map</code> to traverse through the array...
[ { "answer_id": 74531759, "author": "Noah", "author_id": 14028308, "author_profile": "https://Stackoverflow.com/users/14028308", "pm_score": 2, "selected": false, "text": "def printcharachters(base, depth):\n if depth > 0:\n for a in range(97, 123):\n print(base + chr...
2022/11/22
[ "https://Stackoverflow.com/questions/74531639", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10962364/" ]
74,531,688
<p>minDate = today</p> <p>maxDate = minDate + 5yrs</p> <p>I did not try anything. Asking for solution</p>
[ { "answer_id": 74531804, "author": "Mina", "author_id": 11887902, "author_profile": "https://Stackoverflow.com/users/11887902", "pm_score": 1, "selected": false, "text": "date minDate maxDate const currentDate = new Date()\n\nfunction addYears(date, years) {\n date.setFullYear(date.getF...
2022/11/22
[ "https://Stackoverflow.com/questions/74531688", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16242515/" ]
74,531,722
<p>I have an issue for which I'm not sure if I am getting the right path to the soluction, hope you guys could help me out.</p> <p>I have added an extra field to my serializer, called distance (distance is equal the distance in miles between 2 different locations) I am looking to return the Business Object order my thi...
[ { "answer_id": 74531995, "author": "ThomasGth", "author_id": 6106166, "author_profile": "https://Stackoverflow.com/users/6106166", "pm_score": 0, "selected": false, "text": "annotate()" }, { "answer_id": 74532455, "author": "Eugene", "author_id": 874027, "author_profi...
2022/11/22
[ "https://Stackoverflow.com/questions/74531722", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17862124/" ]
74,531,768
<p>Good morning guys, my problem is simple:</p> <p>Given a dataframe like this:</p> <pre><code>import pandas as pd df = pd.DataFrame({ 'a': [1, 2, 3, 4, 5, 6], 'b': [8, 18, 27, 20, 33, 49], 'c': [2, 24, 6, 16, 20, 52]}) print(df) </code></pre> <p>I would like to retrieve for ...
[ { "answer_id": 74531995, "author": "ThomasGth", "author_id": 6106166, "author_profile": "https://Stackoverflow.com/users/6106166", "pm_score": 0, "selected": false, "text": "annotate()" }, { "answer_id": 74532455, "author": "Eugene", "author_id": 874027, "author_profi...
2022/11/22
[ "https://Stackoverflow.com/questions/74531768", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8064373/" ]
74,531,778
<p>I'm making a category selection section that is supposed to overflow on small viewports and be scrollable.</p> <p>But for some reason when I add flex gap its only adding space to the left of the children.</p> <p><a href="https://codepen.io/DanNisenson/pen/xxzYYpq" rel="nofollow noreferrer">https://codepen.io/DanNise...
[ { "answer_id": 74531995, "author": "ThomasGth", "author_id": 6106166, "author_profile": "https://Stackoverflow.com/users/6106166", "pm_score": 0, "selected": false, "text": "annotate()" }, { "answer_id": 74532455, "author": "Eugene", "author_id": 874027, "author_profi...
2022/11/22
[ "https://Stackoverflow.com/questions/74531778", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16226698/" ]
74,531,780
<p>I have my date in entry :</p> <pre><code>2022-11-21T21:07:56.830-07:00 </code></pre> <p>And I would like to transform it like that:</p> <pre><code>21/11/2022 07:56 </code></pre>
[ { "answer_id": 74531995, "author": "ThomasGth", "author_id": 6106166, "author_profile": "https://Stackoverflow.com/users/6106166", "pm_score": 0, "selected": false, "text": "annotate()" }, { "answer_id": 74532455, "author": "Eugene", "author_id": 874027, "author_profi...
2022/11/22
[ "https://Stackoverflow.com/questions/74531780", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19471847/" ]
74,531,796
<p>I have a dataframe like below:</p> <pre><code> TileDesc ReportDesc UrlLink 'AA' 'New Report-1' 'link-1' 'AA' 'New Report-2' 'link-2' 'AA' 'New Report-1' 'link-1' 'AA' 'New Report-1' 'link-1' 'AA' 'New Report-1' 'link-1' 'BB' 'New Report-4...
[ { "answer_id": 74531995, "author": "ThomasGth", "author_id": 6106166, "author_profile": "https://Stackoverflow.com/users/6106166", "pm_score": 0, "selected": false, "text": "annotate()" }, { "answer_id": 74532455, "author": "Eugene", "author_id": 874027, "author_profi...
2022/11/22
[ "https://Stackoverflow.com/questions/74531796", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7290715/" ]
74,531,827
<p>When I am injecting an object as below, it works properly</p> <pre><code>@Provides @Singleton public CommandObject getCommandObject(final Command command) { ... } </code></pre> <p>But as soon as I add @Named to above it starts giving error</p> <p>CommandObject cannot be provided without an @Inject co...
[ { "answer_id": 74531995, "author": "ThomasGth", "author_id": 6106166, "author_profile": "https://Stackoverflow.com/users/6106166", "pm_score": 0, "selected": false, "text": "annotate()" }, { "answer_id": 74532455, "author": "Eugene", "author_id": 874027, "author_profi...
2022/11/22
[ "https://Stackoverflow.com/questions/74531827", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10110256/" ]
74,531,839
<p>I have a db table design like so:</p> <p>Table Appointments:</p> <p>id| start_time| patientId |.. etc other fields |</p> <p>And another table which is Patient table:</p> <p>id| name | last_name | .. etc other fields |</p> <p>On my appointment entity I have this defintion:</p> <pre><code>@OneToMany(() =&gt; Appointme...
[ { "answer_id": 74633145, "author": "Rohit Khandelwal", "author_id": 15220748, "author_profile": "https://Stackoverflow.com/users/15220748", "pm_score": 1, "selected": false, "text": "createQueryBuilder(\"user\") createQueryBuilder(\"user\") createQueryBuilder().select(\"user\").from(User...
2022/11/22
[ "https://Stackoverflow.com/questions/74531839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3616806/" ]
74,531,872
<p>I have a page on URL root, which is a Next page built with React.</p> <p>And now I want to expose an API endpoint on root too.</p> <pre><code>`http://localhost:3000/` &gt; points to React page `http://localhost:3000/foo` &gt; points to the Next API endpoint `http://localhost:3000/bar` &gt; points to the **same** Nex...
[ { "answer_id": 74633145, "author": "Rohit Khandelwal", "author_id": 15220748, "author_profile": "https://Stackoverflow.com/users/15220748", "pm_score": 1, "selected": false, "text": "createQueryBuilder(\"user\") createQueryBuilder(\"user\") createQueryBuilder().select(\"user\").from(User...
2022/11/22
[ "https://Stackoverflow.com/questions/74531872", "https://Stackoverflow.com", "https://Stackoverflow.com/users/832490/" ]
74,531,889
<p>I have the following function:</p> <pre><code> public static string ShortMonthDayPattern(this DateTimeFormatInfo dateTimeFormatInfo) { // Basically takes the ShortDatePattern (dd-mm-yyyy, mm/dd/yyyy, etc) and strips everything except the dd-mm, mm/dd, etc. string shortPattern ...
[ { "answer_id": 74532018, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 2, "selected": false, "text": "ShortMonthDayPattern" }, { "answer_id": 74532272, "author": "Guru Stron", "author_id": 2501279, "a...
2022/11/22
[ "https://Stackoverflow.com/questions/74531889", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6585443/" ]
74,531,927
<p>There are two dict main and input, I want to validate the &quot;input&quot; such that all the keys in the list of dictionary and nested dictionary (if present/all keys are optional) matches that of the main if not the wrong/different key should be returned as the output.</p> <pre><code>main = &quot;app&quot;:[{ ...
[ { "answer_id": 74532026, "author": "LITzman", "author_id": 18877953, "author_profile": "https://Stackoverflow.com/users/18877953", "pm_score": 1, "selected": false, "text": "SchemaUnexpectedTypeError input" }, { "answer_id": 74555931, "author": "Kevin Bhavsar", "author_id...
2022/11/22
[ "https://Stackoverflow.com/questions/74531927", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13754889/" ]
74,531,960
<p>Inner intervals are always inside the global one. All intervals are integer, left-closed, right-open intervals.</p> <p>Let's take this example. The &quot;global&quot; interval is [0, 22[. &quot;Inner&quot; intervals are [3, 6[ and [12, 15[.</p> <p>For this example I expect : [0, 3[ U [3, 6[ U [6, 12[ U [12, 15[ U [1...
[ { "answer_id": 74532026, "author": "LITzman", "author_id": 18877953, "author_profile": "https://Stackoverflow.com/users/18877953", "pm_score": 1, "selected": false, "text": "SchemaUnexpectedTypeError input" }, { "answer_id": 74555931, "author": "Kevin Bhavsar", "author_id...
2022/11/22
[ "https://Stackoverflow.com/questions/74531960", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20448700/" ]
74,531,967
<p><a href="https://i.stack.imgur.com/GTZEL.png" rel="nofollow noreferrer">enter image description here</a></p> <p>how to design the top right box in bootstrap with 4 rows and 2 columns.</p> <p>I try grid design and try to give border but i cant able to do it . Can anybody help with this .</p>
[ { "answer_id": 74544039, "author": "Jiale Xue - MSFT", "author_id": 16764901, "author_profile": "https://Stackoverflow.com/users/16764901", "pm_score": 0, "selected": false, "text": "Asp.Net Web Forms css Winforms Wpf" }, { "answer_id": 74550208, "author": "Albert D. Kallal",...
2022/11/22
[ "https://Stackoverflow.com/questions/74531967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18187808/" ]
74,531,991
<p>Faced with the strange behavior of TS.</p> <pre><code>const isItLanding = false; if (isItLanding === undefined) { // valid return ...; } </code></pre> <p>But here</p> <pre><code>const isItLanding = 1; if (isItLanding === 'undefined') { // error return ...; } </code></pre> <p>Why doesn't TS insure against writi...
[ { "answer_id": 74533230, "author": "Warm Red", "author_id": 14209943, "author_profile": "https://Stackoverflow.com/users/14209943", "pm_score": 3, "selected": false, "text": "true false undefined null let bool: boolean = true;\nbool = false;\nbool = null;\nbool = undefined;\n//All compil...
2022/11/22
[ "https://Stackoverflow.com/questions/74531991", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17572785/" ]
74,532,019
<p>I would like to have a header, footer and main content inside a page that never stretches beyond the browser window.</p> <p><a href="https://i.stack.imgur.com/ZEtLS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZEtLS.png" alt="Page layout" /></a></p> <p>If the component inside the main area over...
[ { "answer_id": 74533230, "author": "Warm Red", "author_id": 14209943, "author_profile": "https://Stackoverflow.com/users/14209943", "pm_score": 3, "selected": false, "text": "true false undefined null let bool: boolean = true;\nbool = false;\nbool = null;\nbool = undefined;\n//All compil...
2022/11/22
[ "https://Stackoverflow.com/questions/74532019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1714170/" ]
74,532,078
<p>I try to install Google Analytics, but then my site won't load.</p> <p>I had the error: <code>Uncaught Error: useLocation() may be used only in the context of a &lt;Router&gt; component.</code> So I added <code>&lt;Routes&gt;</code> to <code>index.js</code></p> <p>Index.js:</p> <pre class="lang-js prettyprint-overri...
[ { "answer_id": 74532839, "author": "Spluli", "author_id": 19749827, "author_profile": "https://Stackoverflow.com/users/19749827", "pm_score": 1, "selected": true, "text": "\n<Router>\n <HelmetProvider>\n <App />\n </HelmetProvider>\n </Router>\n\n \nfunction App() {\n usePag...
2022/11/22
[ "https://Stackoverflow.com/questions/74532078", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19749827/" ]
74,532,080
<p>I created an android app using flutter After it was released for internal testing the app download page on google play shows the app name as the flutter package name. I changed the app name from the app settings on google play console, but it is still the same.</p> <p>Is it because of the internal testing app? will ...
[ { "answer_id": 74532247, "author": "Abdullatif Eida", "author_id": 20570798, "author_profile": "https://Stackoverflow.com/users/20570798", "pm_score": 1, "selected": false, "text": "android:label=\"you app name\" android:name=\"${applicationName}\"" } ]
2022/11/22
[ "https://Stackoverflow.com/questions/74532080", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1179450/" ]
74,532,098
<p>I want to send a newsletter through email and I would like to see who opened my email.</p> <p>I send HTML in the content of the email, so I can not add javascript in there. (see <a href="https://stackoverflow.com/questions/1088016/html-email-with-javascript">here</a> )</p> <p>Is there any way to send a post request ...
[ { "answer_id": 74532403, "author": "Peter Bennett", "author_id": 1947068, "author_profile": "https://Stackoverflow.com/users/1947068", "pm_score": 1, "selected": true, "text": "<img src=\"https://yoururl/pixel.php?tid=%pixel_id%\" style=\"width:1px;height:1px;\" title=\"pixel\">\n <?php...
2022/11/22
[ "https://Stackoverflow.com/questions/74532098", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19373633/" ]
74,532,129
<p>I have a job that runs every 28 days. and I want to assign it a cycle number based on a starting reference date.</p> <p>e.g</p> <p>1st cycle is 01/27/22. and that cycle number would be 2201. subsequently I want to calculate the cycle number based on the current date. but for each year there could be either 13 or 14 ...
[ { "answer_id": 74533294, "author": "Abdulkhaliq Ghwainm", "author_id": 4879561, "author_profile": "https://Stackoverflow.com/users/4879561", "pm_score": 0, "selected": false, "text": "$next_date = strtotime('+28 day', $timestamp);\n echo date('m/d/Y', $next_date);\n" }, { "answer...
2022/11/22
[ "https://Stackoverflow.com/questions/74532129", "https://Stackoverflow.com", "https://Stackoverflow.com/users/333661/" ]
74,532,184
<p>i'm seeing an unexpected behavior in jax.lax.switch.</p> <pre><code>def fun_a(): print('a') def fun_b(): print('b') def fun_c(): print('c') functions_list=[fun_a,fun_b,fun_c] </code></pre> <p>and then calling</p> <pre><code>jax.lax.switch(0,functions_list) </code></pre> <p>returns</p> <pre><c...
[ { "answer_id": 74533294, "author": "Abdulkhaliq Ghwainm", "author_id": 4879561, "author_profile": "https://Stackoverflow.com/users/4879561", "pm_score": 0, "selected": false, "text": "$next_date = strtotime('+28 day', $timestamp);\n echo date('m/d/Y', $next_date);\n" }, { "answer...
2022/11/22
[ "https://Stackoverflow.com/questions/74532184", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5779546/" ]
74,532,216
<p>I have a series of lists, and I want to combine them in a larger nested list. However, I want to order them in a certain way. I want the first sub-list to be the one whose first element is zero. Then i want the second sub-list to be the one whose first element is the same as the LAST element of the previous list.</p...
[ { "answer_id": 74532605, "author": "mousetail", "author_id": 6333444, "author_profile": "https://Stackoverflow.com/users/6333444", "pm_score": 0, "selected": false, "text": "source = [[0, 3], [7, 0], [3, 8], [8, 7]]\n\n# Start at 0\nlast_val = 0\n# this will be the output\nl = []\nwhile ...
2022/11/22
[ "https://Stackoverflow.com/questions/74532216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20571936/" ]
74,532,217
<p><a href="https://i.stack.imgur.com/R1UDb.png" rel="nofollow noreferrer">enter image description here</a></p> <p>there are different unit for size : like k for 1,000, M for mega. I want to convert all data into same unit - bytes</p> <p>may i know how to make it?</p> <p>The expected result is update the size column in...
[ { "answer_id": 74532605, "author": "mousetail", "author_id": 6333444, "author_profile": "https://Stackoverflow.com/users/6333444", "pm_score": 0, "selected": false, "text": "source = [[0, 3], [7, 0], [3, 8], [8, 7]]\n\n# Start at 0\nlast_val = 0\n# this will be the output\nl = []\nwhile ...
2022/11/22
[ "https://Stackoverflow.com/questions/74532217", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20134602/" ]
74,532,249
<pre><code>import requests import pandas as pd from urllib.request import urlopen from bs4 import BeautifulSoup df = [] for x in range(1,31): url_allocine= 'https://www.allocine.fr/film/meilleurs/?page=' page = requests.get(url_allocine + str(x)) soup = BeautifulSoup(page.content, 'html.parser') film...
[ { "answer_id": 74538872, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 2, "selected": true, "text": "import requests\nimport pandas as pd\nfrom bs4 import BeautifulSoup\n\ndata = []\nfor page in range(1, 3): #...
2022/11/22
[ "https://Stackoverflow.com/questions/74532249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18448274/" ]