qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,443,939
<p>There is a list from the user:</p> <pre><code>user_list = [1, 3.5, &quot;xx&quot;, &quot;gg&quot;, 6, &quot;2&quot;]. new_list = [] </code></pre> <p>How to make it so that with the help of &quot;list comprehension&quot; from user_list to new_list moved:</p> <ol> <li>Value with type (float)</li> <li>Even number with ...
[ { "answer_id": 74444243, "author": "sahasrara62", "author_id": 5086255, "author_profile": "https://Stackoverflow.com/users/5086255", "pm_score": 1, "selected": false, "text": "list comprehension >>> user_list = [1, 3.5, \"xx\", \"gg\", 6, \"2\"] \n>>> new_list = [*[i for...
2022/11/15
[ "https://Stackoverflow.com/questions/74443939", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20377891/" ]
74,443,942
<p>I have my original web scraped HTML text as this</p> <pre><code>&gt; {&quot;overview&quot;:&quot;\\u003cp\\u003e\\u003cspan style=\\&quot;font-size: &gt; 10.5pt;\\&quot;\\u003e\\u003cspan class=\\&quot;TextRun SCXW87260372 BCX0\\&quot; style=\\&quot;margin: 0px; padding: 0px; -webkit-user-drag: none; &gt; -webkit-ta...
[ { "answer_id": 74449885, "author": "Mark Tolonen", "author_id": 235698, "author_profile": "https://Stackoverflow.com/users/235698", "pm_score": 1, "selected": false, "text": "unicode-escape latin1 latin1 latin1 utf8 s='''\\\n{\"overview\":\"\\\\u003cp\\\\u003e\\\\u003cspan style=\\\\\"fo...
2022/11/15
[ "https://Stackoverflow.com/questions/74443942", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3152686/" ]
74,443,983
<p>I have an UICollectionView built programatically that doesn't allow me to scroll to the last item in it.</p> <p><a href="https://i.stack.imgur.com/g4Ybt.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g4Ybt.gif" alt="" /></a></p> <p>Here is how I set it up</p> <pre><code>private let collectionView...
[ { "answer_id": 74444046, "author": "Natarajan", "author_id": 3420996, "author_profile": "https://Stackoverflow.com/users/3420996", "pm_score": 2, "selected": true, "text": "collectionView.contentInset = .init(top: 0.0, left: 0.0, bottom: bottomHeight, right: 0.0)\n" } ]
2022/11/15
[ "https://Stackoverflow.com/questions/74443983", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11488162/" ]
74,443,990
<p>So i try to loop an Array and push it into object within this code:</p> <pre><code> const past7Days = [...Array(7).keys()].map(index =&gt; { var date = new Date(); const local = new Date(); local.setMinutes(date.getMinutes() - date.getTimezoneOffset()); local.setDate(date.getDate() - index); return local...
[ { "answer_id": 74444156, "author": "qrsngky", "author_id": 4225384, "author_profile": "https://Stackoverflow.com/users/4225384", "pm_score": 1, "selected": false, "text": "<string representation of a date> const past7Days = [...Array(7).keys()].map(index => {\nvar date = new Date();\n\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74443990", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16136595/" ]
74,443,993
<p>We have a lakehouse architecture with Hive metastore tables. I want to do processing on this data, so I select my data as Spark dataframe.</p> <p>The specific processing step I wanted to achieve was parsing date columns in my Spark Dataframes that come in a rather strange format: <code>/Date(1582959943313)/</code>, ...
[ { "answer_id": 74444377, "author": "Azhar Khan", "author_id": 2847330, "author_profile": "https://Stackoverflow.com/users/2847330", "pm_score": 1, "selected": false, "text": "toPandas() spark.createDataframe() # sdf is spark dataframe. Serialise to parquet\nsdf.repartition(1).write.mode(...
2022/11/15
[ "https://Stackoverflow.com/questions/74443993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7253901/" ]
74,444,009
<p>Is there a way to traverse through html elements in playwright like <code>cy.get(&quot;abc&quot;).find(&quot;div&quot;)</code> in cypress?</p> <p>In other words, any <code>find()</code> equivalent method in playwright?</p> <p><code>page.locator(&quot;abc&quot;).find()</code> is not a valid method in playwright thoug...
[ { "answer_id": 74447556, "author": "agoff", "author_id": 11625850, "author_profile": "https://Stackoverflow.com/users/11625850", "pm_score": 2, "selected": false, "text": "findBy* locator div button .locator() test('foo', async ({ page }) => {\n await page.goto('/foo');\n const parent ...
2022/11/15
[ "https://Stackoverflow.com/questions/74444009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16391157/" ]
74,444,011
<p>I'm trying to implement normalized binary cross entropy for a classification task following this paper: <a href="https://arxiv.org/pdf/2006.13554.pdf" rel="nofollow noreferrer">Normalized Loss Functions for Deep Learning with Noisy Labels</a>. The math is as follows: <a href="https://i.stack.imgur.com/leXDb.png" rel...
[ { "answer_id": 74447556, "author": "agoff", "author_id": 11625850, "author_profile": "https://Stackoverflow.com/users/11625850", "pm_score": 2, "selected": false, "text": "findBy* locator div button .locator() test('foo', async ({ page }) => {\n await page.goto('/foo');\n const parent ...
2022/11/15
[ "https://Stackoverflow.com/questions/74444011", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7674869/" ]
74,444,019
<p>I have multiple documents with different index name that bulk saves in elasticsearch:</p> <pre><code>public void bulkCreateOrUpdate(List personUpdateList, List addressUpdateList, List positionUpdateList) { this.operations.bulkUpdate(personUpdateList,Person.class); this.operations.bulkUpdate(addressUpdateList...
[ { "answer_id": 74447556, "author": "agoff", "author_id": 11625850, "author_profile": "https://Stackoverflow.com/users/11625850", "pm_score": 2, "selected": false, "text": "findBy* locator div button .locator() test('foo', async ({ page }) => {\n await page.goto('/foo');\n const parent ...
2022/11/15
[ "https://Stackoverflow.com/questions/74444019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20204076/" ]
74,444,034
<p>I'm running this transformation in PDI and it took me hours to load table that contains 18000 record .</p> <p><a href="https://i.stack.imgur.com/FEbei.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FEbei.png" alt="enter image description here" /></a></p> <p>SQL query in the iput table step : <a h...
[ { "answer_id": 74447556, "author": "agoff", "author_id": 11625850, "author_profile": "https://Stackoverflow.com/users/11625850", "pm_score": 2, "selected": false, "text": "findBy* locator div button .locator() test('foo', async ({ page }) => {\n await page.goto('/foo');\n const parent ...
2022/11/15
[ "https://Stackoverflow.com/questions/74444034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11101976/" ]
74,444,078
<p>I'm using react-hook-form to validate text input field.</p> <pre><code> const { register, handleSubmit, setValue, formState: { errors }, } = useForm({ mode: 'onBlur' }); &lt;input name='name' type='text' onInput={(e) =&gt; setValue(e.target.value)} {...register('name',{ required: true })...
[ { "answer_id": 74444109, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 2, "selected": true, "text": "onInput={(e) => setValue(\"blog\", e.target.value)}\n" }, { "answer_id": 74444356, "author": "Sa...
2022/11/15
[ "https://Stackoverflow.com/questions/74444078", "https://Stackoverflow.com", "https://Stackoverflow.com/users/678855/" ]
74,444,113
<p>I am trying to calculate the % change by year in the following dataset, does anyone know if this is possible?</p> <p>I have the difference but am unsure how we can change this into a percentage</p> <p>C diff(economy_df_by_year$gdp_per_capita)</p> <pre><code>df year gdp 1998 8142. 1999 ...
[ { "answer_id": 74444109, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 2, "selected": true, "text": "onInput={(e) => setValue(\"blog\", e.target.value)}\n" }, { "answer_id": 74444356, "author": "Sa...
2022/11/15
[ "https://Stackoverflow.com/questions/74444113", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18338223/" ]
74,444,118
<p>I'm trying to understand this auto-increment formula, that my colleague has written. I understand how <strong>arrayformula</strong> usually works and also <strong>countifs</strong>.</p> <p>Formula from the screen: <code>=ARRAYFORMULA(COUNTIFS(ROW(B2:B), &quot;&lt;=&quot;&amp;ROW(B2:B)))</code></p> <p>I'm stacked abo...
[ { "answer_id": 74444109, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 2, "selected": true, "text": "onInput={(e) => setValue(\"blog\", e.target.value)}\n" }, { "answer_id": 74444356, "author": "Sa...
2022/11/15
[ "https://Stackoverflow.com/questions/74444118", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16260974/" ]
74,444,184
<p>I tried to run the image by index from my image folder but I don't know how to implement specific to text to each image see here <img src="https://i.stack.imgur.com/XbxGm.jpg" alt="my out put" /></p> <p>But I am unsure now how I can add specific text to each images by index</p> <pre><code> chi...
[ { "answer_id": 74444109, "author": "Sachila Ranawaka", "author_id": 6428638, "author_profile": "https://Stackoverflow.com/users/6428638", "pm_score": 2, "selected": true, "text": "onInput={(e) => setValue(\"blog\", e.target.value)}\n" }, { "answer_id": 74444356, "author": "Sa...
2022/11/15
[ "https://Stackoverflow.com/questions/74444184", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17958365/" ]
74,444,185
<p>I'm trying to use <code>apache_beam.dataframe.io.read_csv</code> function to read an online source with no success. Everything works if the file is hosted on google storage <code>'gs://bucket/source.csv'</code> but fails on getting the file from <code>'https://github.com/../source.csv'</code> like sources..</p> <pre...
[ { "answer_id": 74449641, "author": "Mazlum Tosun", "author_id": 9261558, "author_profile": "https://Stackoverflow.com/users/9261558", "pm_score": 0, "selected": false, "text": "Beam Beam Cloud Storage gsutil cp Dataflow GCS" }, { "answer_id": 74453052, "author": "robertwb", ...
2022/11/15
[ "https://Stackoverflow.com/questions/74444185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6835888/" ]
74,444,186
<p>I am migrating d3 to newer version 7.6.1, now the version which i am using is 5.15 and it has one method which is <strong>d3.entries</strong> and in version 7.6.1 it is deprecated.</p> <p>As far as i know this d3.entries is used to convert object to array of object for example -</p> <pre><code>chart.data = function(...
[ { "answer_id": 74449641, "author": "Mazlum Tosun", "author_id": 9261558, "author_profile": "https://Stackoverflow.com/users/9261558", "pm_score": 0, "selected": false, "text": "Beam Beam Cloud Storage gsutil cp Dataflow GCS" }, { "answer_id": 74453052, "author": "robertwb", ...
2022/11/15
[ "https://Stackoverflow.com/questions/74444186", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20300988/" ]
74,444,195
<p>I have a windows forms timer with an async callback that await a database operation, why the await is executed again even before the previous callback has not finished yet? How can I fix this? Many people say that System.Windows.Forms.Timer wait that previous callback operation finishes before executing new one.</p>...
[ { "answer_id": 74444599, "author": "jmcilhinney", "author_id": 584183, "author_profile": "https://Stackoverflow.com/users/584183", "pm_score": 2, "selected": true, "text": "Interval Timer Tick Timer Private Async Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs...
2022/11/15
[ "https://Stackoverflow.com/questions/74444195", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20221290/" ]
74,444,254
<p>I have an multidimensional array like this:</p> <pre><code>$downloadArray = [ &quot;downloads1&quot; =&gt; [&quot;downloadnaam&quot; =&gt; &quot;fdgssgsfg&quot;], &quot;downloads2&quot; =&gt; [&quot;downloadnaam&quot; =&gt; &quot;eyetyy&quot;], ]; </code></pre> <p>I need to check if the value <code>eyetyy</code>...
[ { "answer_id": 74444433, "author": "Yohann Daniel Carter", "author_id": 4849739, "author_profile": "https://Stackoverflow.com/users/4849739", "pm_score": 0, "selected": false, "text": "$downloadArray = [\n \"downloads1\" => [\"downloadnaam\" => \"fdgssgsfg\"],\n \"downloads2\" => [\"do...
2022/11/15
[ "https://Stackoverflow.com/questions/74444254", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5275959/" ]
74,444,255
<p>I tried to increment the count whenever i click the button. When click the button it is getting rendered twice. But it should be render only once.</p> <p>Here is my code <a href="https://codesandbox.io/s/async-pine-3z2ty3?file=/src/App.js" rel="nofollow noreferrer">https://codesandbox.io/s/async-pine-3z2ty3?file=/sr...
[ { "answer_id": 74444361, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 3, "selected": true, "text": "handleClick count count handleClick handleClick <Button> useMemo setCount useCallback export default function App() {\...
2022/11/15
[ "https://Stackoverflow.com/questions/74444255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20228364/" ]
74,444,269
<p>Hei,</p> <p>i have a question about the best practice here. I have a Golang Project which uses as Postgres Database and specific Migrations. The Database has many tables and some depend on each other (Table A has FK to Table B, Table B has FK to Table A). My &quot;problem&quot; is now that i have to import data from...
[ { "answer_id": 74444361, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 3, "selected": true, "text": "handleClick count count handleClick handleClick <Button> useMemo setCount useCallback export default function App() {\...
2022/11/15
[ "https://Stackoverflow.com/questions/74444269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3087506/" ]
74,444,290
<p>I have an Angular Material Paginator which I am currently customizing the css of.</p> <p>It looks like this:</p> <p><a href="https://i.stack.imgur.com/peKB4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/peKB4.png" alt="enter image description here" /></a></p> <p>I cant record my screen on my dev...
[ { "answer_id": 74444361, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 3, "selected": true, "text": "handleClick count count handleClick handleClick <Button> useMemo setCount useCallback export default function App() {\...
2022/11/15
[ "https://Stackoverflow.com/questions/74444290", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14287016/" ]
74,444,299
<p>I would like to merge two dictionaries this way below:</p> <pre><code>dict1={ 'kl':'ngt', 'schemas': [ { 'date':'14-12-2022', 'name':'kolo' } ] } dict2={ 'kl':'mlk', 'schemas': [ { ...
[ { "answer_id": 74444996, "author": "ali jafarzadeh", "author_id": 17230449, "author_profile": "https://Stackoverflow.com/users/17230449", "pm_score": 2, "selected": true, "text": "all_dict=[\n{\n 'kl':'ngt',\n 'schemas':\n [\n {\n 'date':'14-12-2022',\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74444299", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20339610/" ]
74,444,319
<p>I want to search for a string in a number of text files in a folder and its subfolders.</p> <p>Then all files containing this string should be listed. How can this be made?</p> <p>The string is just something like &quot;Test&quot;. So no special chars. I thought of something like the following in a loop:</p> <pre><c...
[ { "answer_id": 74444996, "author": "ali jafarzadeh", "author_id": 17230449, "author_profile": "https://Stackoverflow.com/users/17230449", "pm_score": 2, "selected": true, "text": "all_dict=[\n{\n 'kl':'ngt',\n 'schemas':\n [\n {\n 'date':'14-12-2022',\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74444319", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18172305/" ]
74,444,369
<p>the bellow component is for testing how to update a set with useState. The error occurs at <strong>state.has(num)</strong> The state variable from useState is a set and has is a set build-in function. Why this error happens?</p> <pre><code>import { useState } from &quot;react&quot;; function App() { const [state,...
[ { "answer_id": 74444429, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 3, "selected": true, "text": "setState undefined setState setState function clickHandler(num) { \n if (!state.has(num)) {\n setState(prevSta...
2022/11/15
[ "https://Stackoverflow.com/questions/74444369", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15428430/" ]
74,444,370
<p>looking for a way to remove open unpaired tags! BS4 as well as lxml are good at removing unpaired closed tags. But if they find an open tag, they try to close it, and close it at the very end :(</p> <p>Example</p> <pre><code>from bs4 import BeautifulSoup import lxml.html codeblock = '&lt;strong&gt;Good&lt;/strong&g...
[ { "answer_id": 74444537, "author": "Andrej Kesely", "author_id": 10035985, "author_profile": "https://Stackoverflow.com/users/10035985", "pm_score": 1, "selected": false, "text": ".unwrap() <strong> codeblock = \"<strong>Good</strong> Some text and bad closed strong </strong> Some text a...
2022/11/15
[ "https://Stackoverflow.com/questions/74444370", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20509156/" ]
74,444,395
<p>I have a log files that I read/stream into Python (it contains timestamp and data) using tail.</p> <p>I need a way to see if, in the last 10 seconds, how many lines were seen/observed based on a filter (e.g. line contains &quot;error&quot;)</p> <p>I'll be checking every X seconds to see how many lines were present f...
[ { "answer_id": 74617097, "author": "Koedlt", "author_id": 15405732, "author_profile": "https://Stackoverflow.com/users/15405732", "pm_score": 1, "selected": false, "text": "datetime.datetime.now() test.log import datetime\nimport re\n\nwith open('test.log') as f:\n lines = f.readlines...
2022/11/15
[ "https://Stackoverflow.com/questions/74444395", "https://Stackoverflow.com", "https://Stackoverflow.com/users/370507/" ]
74,444,435
<p>I see the following step in noraUI sources</p> <pre><code>@And(&quot;I expect to have {page-element} with the text {string}(\\?)&quot;) public void expectText(Page.PageElement pageElement, String textOrKey, List&lt;GherkinStepCondition&gt; conditions) throws FailureException, TechnicalException { this.expectText...
[ { "answer_id": 74617097, "author": "Koedlt", "author_id": 15405732, "author_profile": "https://Stackoverflow.com/users/15405732", "pm_score": 1, "selected": false, "text": "datetime.datetime.now() test.log import datetime\nimport re\n\nwith open('test.log') as f:\n lines = f.readlines...
2022/11/15
[ "https://Stackoverflow.com/questions/74444435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14137052/" ]
74,444,460
<p>My knowledge till now was that arrays in C and CPP/C++ have fixed sizes. However recently I encountered 2 pieces of code which seems to contradict this fact. I am attaching the pics here. Want to hear everyone's thoughts on how these are working. Also pasting the code and doubts here:</p> <p>1.</p> <pre><code>#inclu...
[ { "answer_id": 74444505, "author": "john", "author_id": 882003, "author_profile": "https://Stackoverflow.com/users/882003", "pm_score": 3, "selected": false, "text": "sizeof sizeof strlen sizeof" }, { "answer_id": 74444597, "author": "Marcus Müller", "author_id": 4433386,...
2022/11/15
[ "https://Stackoverflow.com/questions/74444460", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19732877/" ]
74,444,467
<p>I want to auto scroll to the first row after a given row number that has column A empty unloading the sheet (This Google Sheets)</p> <p>the following formula works but scrolls past the last empty row as I assume if a row has formulas that add a blank in a cell it is counting them as not empty</p> <pre><code> functio...
[ { "answer_id": 74444661, "author": "Ping", "author_id": 20288037, "author_profile": "https://Stackoverflow.com/users/20288037", "pm_score": 3, "selected": true, "text": ".lastRow() .findIndex() .reverse() .length function onOpen(){\n const ss = SpreadsheetApp.getActiveSpreadsheet();\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74444467", "https://Stackoverflow.com", "https://Stackoverflow.com/users/438299/" ]
74,444,498
<p>I'm in the process of learning python. I encountered a problem with json that I can't overcome.</p> <p>I have this dataset from json in python:</p> <pre><code>{ &quot;Sophos&quot;: { &quot;detected&quot;: true, &quot;result&quot;: &quot;phishing site&quot; }, &quot;Phishtank&quot;: { ...
[ { "answer_id": 74444637, "author": "Jay", "author_id": 8677071, "author_profile": "https://Stackoverflow.com/users/8677071", "pm_score": 3, "selected": true, "text": "true True filtered = {k: v for k, v in orignal_dict.items() if v.get(\"detected\") == true}\n true = True\nfalse = False\...
2022/11/15
[ "https://Stackoverflow.com/questions/74444498", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20509308/" ]
74,444,509
<p>I have a dataframe like this:</p> <pre><code>col1=[i for i in range(10)] col2=[i**2 for i in range(10)] df=pd.DataFrame(list(zip(col1,col2)),columns=['col1','col2']) </code></pre> <p>I want to create a new column using apply that adds the numbers in each row and then it adds then index. Something like</p> <pre><code...
[ { "answer_id": 74444526, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 0, "selected": false, "text": "df['col3'] = df['col1']+df['col2']+df.index\n col1 col2 col3\n0 0 0 0\n1 1 1 3\n2 ...
2022/11/15
[ "https://Stackoverflow.com/questions/74444509", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18373361/" ]
74,444,519
<p>I'm trying to find an efficient way to merge two list of python objects (classes) with diferent structures and merge them into a new list of new object. The code:</p> <pre class="lang-py prettyprint-override"><code>from datetime import datetime class StructureOne(object): def __init__(self, date_time: datetime...
[ { "answer_id": 74444526, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 0, "selected": false, "text": "df['col3'] = df['col1']+df['col2']+df.index\n col1 col2 col3\n0 0 0 0\n1 1 1 3\n2 ...
2022/11/15
[ "https://Stackoverflow.com/questions/74444519", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16696915/" ]
74,444,523
<p>I want to make a floating widget but not floating all the time, when the widget is pulled up from the floating navigation bar it will appear like the picture in the middle</p> <p>How to make a widget like this middle image?<a href="https://i.stack.imgur.com/Yi4uG.jpg" rel="nofollow noreferrer"><img src="https://i.st...
[ { "answer_id": 74444526, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 0, "selected": false, "text": "df['col3'] = df['col1']+df['col2']+df.index\n col1 col2 col3\n0 0 0 0\n1 1 1 3\n2 ...
2022/11/15
[ "https://Stackoverflow.com/questions/74444523", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20259643/" ]
74,444,534
<p>I can't get this result: I need to have a date table (in YYYY-MM-DD format), where each date would contain requests. Let me explain, basically I browse an already existing date table, which contains the dates of my requests. And after this date array browsing, I build my new array which contains the date on which th...
[ { "answer_id": 74444526, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 0, "selected": false, "text": "df['col3'] = df['col1']+df['col2']+df.index\n col1 col2 col3\n0 0 0 0\n1 1 1 3\n2 ...
2022/11/15
[ "https://Stackoverflow.com/questions/74444534", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20230231/" ]
74,444,548
<p>I wrote a lexical analyzer for cpp codes in python, but the problem is when I use input.split(&quot; &quot;) it won't recognize codes like x=2 or function() as three different tokens unless I add an space between them manually, like: x = 2 . also it fails to recognize the tokens at the beginning of each line. (if i ...
[ { "answer_id": 74448547, "author": "Alex Vergara", "author_id": 14075508, "author_profile": "https://Stackoverflow.com/users/14075508", "pm_score": 0, "selected": false, "text": "x=2 x = 2 and good practices if input.split(' ') and input.split('='):\n regex AST Clang" }, { "answe...
2022/11/15
[ "https://Stackoverflow.com/questions/74444548", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20509154/" ]
74,444,554
<pre><code>#include &lt;iostream&gt; using namespace std; int main() { int d=4,r; d=r+5; cout&lt;&lt;d; return 0; } </code></pre> <p>The <code>r</code> variable has not a value .</p> <p>How the compiler build this program?!</p> <p>The output is : 21</p>
[ { "answer_id": 74444613, "author": "Nikita Demodov", "author_id": 11782808, "author_profile": "https://Stackoverflow.com/users/11782808", "pm_score": -1, "selected": false, "text": "r 16 class C {\npublic:\n C() { /* DO STUFF */ }\n};\n\n// ...\n\nC c; // <-- C::C() is called.\n\n" },...
2022/11/15
[ "https://Stackoverflow.com/questions/74444554", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20509496/" ]
74,444,567
<p>That same error appeared for many developers before, but none of them used Svelte, problem is I have it already initialized in main.js</p> <pre class="lang-js prettyprint-override"><code>import Parse from 'parse/dist/parse.min.js'; const appID=import.meta.env['APP_ID']; const PARSE_HOST_URL = 'https://parseapi.back4...
[ { "answer_id": 74444613, "author": "Nikita Demodov", "author_id": 11782808, "author_profile": "https://Stackoverflow.com/users/11782808", "pm_score": -1, "selected": false, "text": "r 16 class C {\npublic:\n C() { /* DO STUFF */ }\n};\n\n// ...\n\nC c; // <-- C::C() is called.\n\n" },...
2022/11/15
[ "https://Stackoverflow.com/questions/74444567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15059561/" ]
74,444,585
<p>I am writing a job filtering system in Vuejs and when the user enters a letter in the search bar, it only filters through the first letter instead of the whole word.</p> <p>Imagine I have a list with item &quot;Banana&quot;. If the user types &quot;Banana&quot; into the search bar, the item &quot;Banana&quot; is ret...
[ { "answer_id": 74444613, "author": "Nikita Demodov", "author_id": 11782808, "author_profile": "https://Stackoverflow.com/users/11782808", "pm_score": -1, "selected": false, "text": "r 16 class C {\npublic:\n C() { /* DO STUFF */ }\n};\n\n// ...\n\nC c; // <-- C::C() is called.\n\n" },...
2022/11/15
[ "https://Stackoverflow.com/questions/74444585", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20467279/" ]
74,444,606
<p>I wrote a definition to iterate over 200 files and calculate the number of transitions and transversions in a DNA sequence. Now I want to sum up the first column of the output of this for loop together and the second column together.</p> <p>this is the output that I get repeated 200 times because I have 200 files, I...
[ { "answer_id": 74444862, "author": "Luca Clissa", "author_id": 7678074, "author_profile": "https://Stackoverflow.com/users/7678074", "pm_score": 1, "selected": false, "text": "t numpy.array t = [(0, 1), (1, 0), (1, 0), (1, 0), (1, 0), (1, 0), (1, 0), (1, 0)]\nt_array = np.array(t) \nt_...
2022/11/15
[ "https://Stackoverflow.com/questions/74444606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20509479/" ]
74,444,608
<p>I need to wrap first and last string that represent title and price of a product of a div with a span tag. This strings are taken from database and varies between products. I trying to using wrap method on element but nothing change.</p> <p>Is there any way to solve this issue.</p> <p>HTML</p> <pre><code>&lt;div cla...
[ { "answer_id": 74444925, "author": "Pete", "author_id": 1790982, "author_profile": "https://Stackoverflow.com/users/1790982", "pm_score": 2, "selected": true, "text": "$('.product_desc').contents() // get the contents\n .filter((...
2022/11/15
[ "https://Stackoverflow.com/questions/74444608", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19533023/" ]
74,444,640
<p>I'm trying to set the <code>hosts</code> value in a ansible playbook dynamically. This means that in the <code>group_vars/all.yml</code> I have the correct IP for the host that ansible should use to connect. I have to do so, as I do not have the IP's beforehand. Prior to running the role described below, I run a rol...
[ { "answer_id": 74444925, "author": "Pete", "author_id": 1790982, "author_profile": "https://Stackoverflow.com/users/1790982", "pm_score": 2, "selected": true, "text": "$('.product_desc').contents() // get the contents\n .filter((...
2022/11/15
[ "https://Stackoverflow.com/questions/74444640", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10065674/" ]
74,444,665
<p>I'm currently doing c++ with OpenCL, where a c-style struct is required to carry configuration information from the c++ host to the OpenCL kernel. Given that dynamically allocated arrays are not guaranteed to be supported by every OpenCL implementation, I must ensure every array accessible by the kernel code be stat...
[ { "answer_id": 74444948, "author": "Alex Vergara", "author_id": 14075508, "author_profile": "https://Stackoverflow.com/users/14075508", "pm_score": 0, "selected": false, "text": "const unsigned char unsigned char[16] { vals... } const non-const const id const unsigned char* C++ reinterpr...
2022/11/15
[ "https://Stackoverflow.com/questions/74444665", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5330938/" ]
74,444,681
<p>Existing Dataframe :</p> <pre><code>Id Month Year scheduled completed A Jan 2021 0 0 A Feb 2021 1 0 A mar 2021 0 0 B June 2021 0 ...
[ { "answer_id": 74444948, "author": "Alex Vergara", "author_id": 14075508, "author_profile": "https://Stackoverflow.com/users/14075508", "pm_score": 0, "selected": false, "text": "const unsigned char unsigned char[16] { vals... } const non-const const id const unsigned char* C++ reinterpr...
2022/11/15
[ "https://Stackoverflow.com/questions/74444681", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19303365/" ]
74,444,688
<p>I'm in the process of learning Python, and I'm trying to make a simple loop, for adding dirty prices, to my dataframe bond_df.</p> <p>Days_left is a Series, bond_df is a pandas dataframe containing the closing prices used in the formula below.</p> <p><em>If i run the command:</em></p> <pre><code>days = days_left[1]....
[ { "answer_id": 74444781, "author": "Iguananaut", "author_id": 982257, "author_profile": "https://Stackoverflow.com/users/982257", "pm_score": 0, "selected": false, "text": "for i, number in days_left:\n for i, number in enumerate(days_left):\n" }, { "answer_id": 74444823, "au...
2022/11/15
[ "https://Stackoverflow.com/questions/74444688", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10756363/" ]
74,444,739
<p><a href="https://i.stack.imgur.com/gRXvq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gRXvq.png" alt="[enter image description here](https://i.stack.imgur.com/M5896.png)." /></a></p> <p>After successfully installed all of the aboves I was going to create react-native app using npx react-native ...
[ { "answer_id": 74444781, "author": "Iguananaut", "author_id": 982257, "author_profile": "https://Stackoverflow.com/users/982257", "pm_score": 0, "selected": false, "text": "for i, number in days_left:\n for i, number in enumerate(days_left):\n" }, { "answer_id": 74444823, "au...
2022/11/15
[ "https://Stackoverflow.com/questions/74444739", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20509618/" ]
74,444,740
<p>I would like the user to be able to select the start_date and automatically (without the user selecting anything) have the same value appear in the end date. Here is the code snippet I have extracted:</p> <pre><code> &lt;?php $required = 'false'; $start_date_val...
[ { "answer_id": 74444781, "author": "Iguananaut", "author_id": 982257, "author_profile": "https://Stackoverflow.com/users/982257", "pm_score": 0, "selected": false, "text": "for i, number in days_left:\n for i, number in enumerate(days_left):\n" }, { "answer_id": 74444823, "au...
2022/11/15
[ "https://Stackoverflow.com/questions/74444740", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20509567/" ]
74,444,758
<p>I'm using styled components and have the following code</p> <p><code>TopNav.tsx</code></p> <pre><code>import { Container, SearchContainer, SearchBox, NotificationsContainer, NotificationsDetails, NotificationsSummary, NotificationsCounter, NotificationsItems, NotificationsHeader, NotificationsMar...
[ { "answer_id": 74444833, "author": "Haneen Mahdin", "author_id": 17708926, "author_profile": "https://Stackoverflow.com/users/17708926", "pm_score": 0, "selected": false, "text": "<Container fullWidth={yourValue} />\n" }, { "answer_id": 74444841, "author": "kind user", "a...
2022/11/15
[ "https://Stackoverflow.com/questions/74444758", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12370067/" ]
74,444,773
<pre><code>File_Name = &quot;Invoice_Dmart&quot; Folder-Name = &quot;c:\Documents\Scripts\Bills&quot; </code></pre> <p>How to check if the specific filename exist in the &quot;Folder-Name&quot; with any extension, If Yes Get the full path in a variable.</p> <p>Code i have been using:</p> <pre><code>import os.path if no...
[ { "answer_id": 74444906, "author": "Abdul Niyas P M", "author_id": 6699447, "author_profile": "https://Stackoverflow.com/users/6699447", "pm_score": 0, "selected": false, "text": "pathlib.Path .iterdir() .stem >>> from pathlib import Path\n>>> [str(child) for child in Path(your_folder_na...
2022/11/15
[ "https://Stackoverflow.com/questions/74444773", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11050535/" ]
74,444,850
<p>I have a data-set of 3D points (x,y,z) projected onto a plane and i'd like to transform them into a simple 2D plot by looking at the points from an orthogonal direction to that plane. Any python explanation are much appreciated!</p> <p><a href="https://i.stack.imgur.com/rCgWY.png" rel="nofollow noreferrer"><img src=...
[ { "answer_id": 74444906, "author": "Abdul Niyas P M", "author_id": 6699447, "author_profile": "https://Stackoverflow.com/users/6699447", "pm_score": 0, "selected": false, "text": "pathlib.Path .iterdir() .stem >>> from pathlib import Path\n>>> [str(child) for child in Path(your_folder_na...
2022/11/15
[ "https://Stackoverflow.com/questions/74444850", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11469965/" ]
74,444,854
<p>How to make an outer border around all cells in a row? Check the example in the bottom with the green border</p> <p><a href="https://jsfiddle.net/Lgb91rhw/" rel="nofollow noreferrer">https://jsfiddle.net/Lgb91rhw/</a></p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"...
[ { "answer_id": 74445004, "author": "Diego D", "author_id": 1221208, "author_profile": "https://Stackoverflow.com/users/1221208", "pm_score": 0, "selected": false, "text": "border-collapse:separate; body{\n background:red;\n}\n\ntable{\n table-layout:fixed;\n border-collapse:separa...
2022/11/15
[ "https://Stackoverflow.com/questions/74444854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/555222/" ]
74,444,891
<p>I'm writing C# code that runs Git commands via ProcessStartInfo.</p> <p>I am aware in terms of syntax that I can run commands from the console in parallel by adding a single <code>&amp;</code> character between them. For example:</p> <p><code>echo &quot;Hello world!&quot; &amp; echo &quot;Goodbye world!&quot;</code>...
[ { "answer_id": 74489131, "author": "freedom2025", "author_id": 10098858, "author_profile": "https://Stackoverflow.com/users/10098858", "pm_score": 0, "selected": false, "text": "echo \"Hello world!\" >1st.out 2>1st.err & \necho \"Goodbye world!\" >2nd.out 2>2nd.err &\n" } ]
2022/11/15
[ "https://Stackoverflow.com/questions/74444891", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5547683/" ]
74,445,008
<p>How do I return more than one possible value? (Two sum problem: Determine if any two number inside an array sum to a number A)</p> <p>I already figure out how to kind of solve the problem.</p> <pre><code>def twoSum(arr, A): for i in range(len(arr)): for j in range(i+1, len(arr)): if arr[i] + ...
[ { "answer_id": 74445055, "author": "Szabolcs", "author_id": 6337523, "author_profile": "https://Stackoverflow.com/users/6337523", "pm_score": 1, "selected": true, "text": "tuple list def twoSum(arr, A):\n sum_values = []\n for i in range(len(arr)):\n for j in range(i + 1, le...
2022/11/15
[ "https://Stackoverflow.com/questions/74445008", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12524160/" ]
74,445,034
<p>If I add a SingleChildScrollView in this Flutter screen, all my widgets disappear. I get a blank white screen. This is my code without scroll:</p> <pre class="lang-dart prettyprint-override"><code>class _HomePageState extends State&lt;HomePage&gt; { @override Widget build(BuildContext context) { return Scaff...
[ { "answer_id": 74445055, "author": "Szabolcs", "author_id": 6337523, "author_profile": "https://Stackoverflow.com/users/6337523", "pm_score": 1, "selected": true, "text": "tuple list def twoSum(arr, A):\n sum_values = []\n for i in range(len(arr)):\n for j in range(i + 1, le...
2022/11/15
[ "https://Stackoverflow.com/questions/74445034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17863927/" ]
74,445,052
<p>I want to extract a list of lists from a <code>.txt</code> file. The data in the <code>.txt</code> file is given like this:</p> <pre><code>[[[12,34.2,54.1,46.3,12.2],[9.2,63,23.7,42.6,15.2]], [[12,34.2,54.1,46.3,12.2],[9.2,63,23.7,42.6,15.2]], [[12,34.2,54.1,46.3,12.2],[9.2,63,23.7,42.6,15.2]]] </code></pre> <p>...
[ { "answer_id": 74445055, "author": "Szabolcs", "author_id": 6337523, "author_profile": "https://Stackoverflow.com/users/6337523", "pm_score": 1, "selected": true, "text": "tuple list def twoSum(arr, A):\n sum_values = []\n for i in range(len(arr)):\n for j in range(i + 1, le...
2022/11/15
[ "https://Stackoverflow.com/questions/74445052", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20509747/" ]
74,445,090
<p>I'm trying rotate a div with a border. The border has the same color as the background. A very thin line appears between the border outline and the background. Here is my code below. I'm trying to get rid of the weird line.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="...
[ { "answer_id": 74445180, "author": "Adam", "author_id": 12571484, "author_profile": "https://Stackoverflow.com/users/12571484", "pm_score": 1, "selected": false, "text": "body {\n background-color: black;\n}\n\ndiv {\n width: 50px;\n height: 50px;\n background-color: white;\n border...
2022/11/15
[ "https://Stackoverflow.com/questions/74445090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14861272/" ]
74,445,098
<p>Any Kong authentication plugin (key-auth, basic-auth) produces a response header &quot;www-authenticate&quot; with a realm=&quot;kong&quot;. Is there a way to change the value of realm to something that doesn't indicate which API gateway I'm using?</p> <p>I read the docs of the authentication plugins but there is no...
[ { "answer_id": 74445180, "author": "Adam", "author_id": 12571484, "author_profile": "https://Stackoverflow.com/users/12571484", "pm_score": 1, "selected": false, "text": "body {\n background-color: black;\n}\n\ndiv {\n width: 50px;\n height: 50px;\n background-color: white;\n border...
2022/11/15
[ "https://Stackoverflow.com/questions/74445098", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2311578/" ]
74,445,124
<p><strong>1. Given A of size 4 × 3 and K = 1 with bird habitats at (0, 0), (2, 2) and (3, 1) the function should return 3. Wind turbines can be built in three locations: (0, 2), (1, 1) and (2, 0).</strong> In my code i have got an error of index out of range what should i can do to get my desired output.in the given c...
[ { "answer_id": 74445254, "author": "Noah", "author_id": 14028308, "author_profile": "https://Stackoverflow.com/users/14028308", "pm_score": 1, "selected": false, "text": " row=len(Matrix),\n col=len(Matrix[0]),\n K = K +1;\n row=len(Matrix)\ncol=len(Matrix[0])\nK = K +1\n for i in (row):...
2022/11/15
[ "https://Stackoverflow.com/questions/74445124", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20509251/" ]
74,445,170
<p>I'm trying to create an effect making the arrow icon visible incresing its height progressively on hover, and I'm trying to make a transition but I can't set this div not visible setting the div height to 0,</p> <pre><code>&lt;div id=&quot;down-arrow-div&quot; className=&quot;text-center down-arrow&quot; &gt; ...
[ { "answer_id": 74445246, "author": "niorad", "author_id": 5774727, "author_profile": "https://Stackoverflow.com/users/5774727", "pm_score": 1, "selected": false, "text": "overflow: hidden;" }, { "answer_id": 74445285, "author": "Adam", "author_id": 12571484, "author_p...
2022/11/15
[ "https://Stackoverflow.com/questions/74445170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19939168/" ]
74,445,184
<p>I received 1 challenge through the interview test. The requirement of the test is to build a search engine that source data from a txt file, and every time the user enters a word, it will return the results.</p> <ul> <li><p>The second requirement is:</p> <p>Given a single word x, update the search corpus with x. The...
[ { "answer_id": 74445246, "author": "niorad", "author_id": 5774727, "author_profile": "https://Stackoverflow.com/users/5774727", "pm_score": 1, "selected": false, "text": "overflow: hidden;" }, { "answer_id": 74445285, "author": "Adam", "author_id": 12571484, "author_p...
2022/11/15
[ "https://Stackoverflow.com/questions/74445184", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16864718/" ]
74,445,188
<p>I configured system and user pool on Azure AKS instances. I follow this guide:</p> <p><a href="https://learn.microsoft.com/en-us/azure/aks/use-system-pools?tabs=azure-cli#system-and-user-node-pools" rel="nofollow noreferrer">Microrosft Guide</a></p> <p>before the activity we only had system type pools for applicatio...
[ { "answer_id": 74445246, "author": "niorad", "author_id": 5774727, "author_profile": "https://Stackoverflow.com/users/5774727", "pm_score": 1, "selected": false, "text": "overflow: hidden;" }, { "answer_id": 74445285, "author": "Adam", "author_id": 12571484, "author_p...
2022/11/15
[ "https://Stackoverflow.com/questions/74445188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13222044/" ]
74,445,207
<p>I have a problem about getting jwt token from one service and use it in the test method of one service.</p> <p>I tried to write <strong>JUnit Controller test</strong> in payment, product and order service in my spring boot microservice example. After I defined auth service to handle with creating user and login with...
[ { "answer_id": 74445246, "author": "niorad", "author_id": 5774727, "author_profile": "https://Stackoverflow.com/users/5774727", "pm_score": 1, "selected": false, "text": "overflow: hidden;" }, { "answer_id": 74445285, "author": "Adam", "author_id": 12571484, "author_p...
2022/11/15
[ "https://Stackoverflow.com/questions/74445207", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19721745/" ]
74,445,221
<pre><code> &quot;message&quot;: &quot;Call to a member function find() on array&quot;, &quot;exception&quot;: &quot;Symfony\\Component\\Debug\\Exception\\FatalThrowableError&quot;, </code></pre> <p>How do I get the id parameter from the array below: When i pass the parameter 1 i want to fetch only first element wh...
[ { "answer_id": 74445311, "author": "Matthew Bradley", "author_id": 20320967, "author_profile": "https://Stackoverflow.com/users/20320967", "pm_score": 2, "selected": false, "text": "array_search array_column $data = [\n ['id' => 1, 'amount' => '22000', 'name' => 'ken'],\n ['id' => ...
2022/11/15
[ "https://Stackoverflow.com/questions/74445221", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20295565/" ]
74,445,264
<p>This example is from the documentation of HttpUrlConnection:</p> <pre class="lang-java prettyprint-override"><code>URL url = new URL(&quot;http://www.android.com/&quot;); HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); try { InputStream in = new BufferedInputStream(urlConnection.getIn...
[ { "answer_id": 74445311, "author": "Matthew Bradley", "author_id": 20320967, "author_profile": "https://Stackoverflow.com/users/20320967", "pm_score": 2, "selected": false, "text": "array_search array_column $data = [\n ['id' => 1, 'amount' => '22000', 'name' => 'ken'],\n ['id' => ...
2022/11/15
[ "https://Stackoverflow.com/questions/74445264", "https://Stackoverflow.com", "https://Stackoverflow.com/users/402322/" ]
74,445,287
<p>I use numpy to do image processing, I wanted to switch the image to black and white and for that I did the calculation in each cell to see the luminosity, but if i want to show it i have to transform a 2d array into 2d array with 3 times the same value</p> <p>for exemple i have this:</p> <pre><code>a = np.array([[25...
[ { "answer_id": 74445311, "author": "Matthew Bradley", "author_id": 20320967, "author_profile": "https://Stackoverflow.com/users/20320967", "pm_score": 2, "selected": false, "text": "array_search array_column $data = [\n ['id' => 1, 'amount' => '22000', 'name' => 'ken'],\n ['id' => ...
2022/11/15
[ "https://Stackoverflow.com/questions/74445287", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17399120/" ]
74,445,288
<p>I'm working on understanding template parameter pack expansion in C++. For demo purposes, I wanted to write a function that prints human readable names of types used in a signature (any signature - that's where the variadic template comes in).</p> <pre><code>#include &lt;boost/type_index.hpp&gt; std::string Signatur...
[ { "answer_id": 74445350, "author": "Daniel", "author_id": 362589, "author_profile": "https://Stackoverflow.com/users/362589", "pm_score": 3, "selected": false, "text": "std::string SignatureToString()\n SignatureToString();\n SignatureToString<>();\n" }, { "answer_id": 74445438, ...
2022/11/15
[ "https://Stackoverflow.com/questions/74445288", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2424669/" ]
74,445,333
<p>I use a timer to count down. I feed seconds into the timer and the countdown begins. The timer works, but the problem is that when I change the page, I get an error that the timer will continue to work. Although I'm already on another page. I can't figure out how to disable it when changing the page. My code:</p> <p...
[ { "answer_id": 74445410, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 2, "selected": false, "text": "mounted void startTimeout() {\n var duration = interval;\n Timer.periodic(duration, (timer) {\n if ...
2022/11/15
[ "https://Stackoverflow.com/questions/74445333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11202504/" ]
74,445,354
<p>I have two dataframes, <code>df_1</code> and <code>df_2</code>. Both of them have <code>datetimeindex</code>, starting in <code>2022-01-01</code> and goes until <code>2022-08-14</code>. The first one, <code>df_1</code>, has hourly measurements, and the second one, <code>df_2</code>, has daily measurements.</p> <pre>...
[ { "answer_id": 74445377, "author": "jezrael", "author_id": 2901002, "author_profile": "https://Stackoverflow.com/users/2901002", "pm_score": 3, "selected": true, "text": "merge_asof np.random.seed(123)\ndf_1 = pd.DataFrame(np.random.rand(5424, 1),\n columns=[\"Random\"...
2022/11/15
[ "https://Stackoverflow.com/questions/74445354", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12297666/" ]
74,445,359
<p>I have a Qml Canvas Item where in, the height of canvas item keeps varying based on the input dynamically. Below is my code</p> <pre><code>Item { id: barGraph property int highestRange: 200 property int rangeVal: (RangeModel.rangeValue === &quot;---&quot;) ? highestRange : RangeModel.rangeValue property int totalHe...
[ { "answer_id": 74445377, "author": "jezrael", "author_id": 2901002, "author_profile": "https://Stackoverflow.com/users/2901002", "pm_score": 3, "selected": true, "text": "merge_asof np.random.seed(123)\ndf_1 = pd.DataFrame(np.random.rand(5424, 1),\n columns=[\"Random\"...
2022/11/15
[ "https://Stackoverflow.com/questions/74445359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3098361/" ]
74,445,365
<p>The problem is exactly the same as listed <a href="https://stackoverflow.com/questions/58480179/identify-discrete-events-based-on-a-time-difference-of-30-minutes-or-more-in-r">here </a> albeit in python not R. What is the best solution to handle this in python?</p> <p>Unclear what to proceed with next. It seems ther...
[ { "answer_id": 74445377, "author": "jezrael", "author_id": 2901002, "author_profile": "https://Stackoverflow.com/users/2901002", "pm_score": 3, "selected": true, "text": "merge_asof np.random.seed(123)\ndf_1 = pd.DataFrame(np.random.rand(5424, 1),\n columns=[\"Random\"...
2022/11/15
[ "https://Stackoverflow.com/questions/74445365", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10270397/" ]
74,445,391
<p><a href="https://i.stack.imgur.com/uqcyJ.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uqcyJ.gif" alt="enter image description here" /></a></p> <p>I am trying to filter array of objects (courses) with array of unique data (tag) using radio button using react hooks. I am able to achieve the funct...
[ { "answer_id": 74445377, "author": "jezrael", "author_id": 2901002, "author_profile": "https://Stackoverflow.com/users/2901002", "pm_score": 3, "selected": true, "text": "merge_asof np.random.seed(123)\ndf_1 = pd.DataFrame(np.random.rand(5424, 1),\n columns=[\"Random\"...
2022/11/15
[ "https://Stackoverflow.com/questions/74445391", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14495095/" ]
74,445,408
<p>i am trying to store form email/password registration with next.js but it is giving error</p> <pre><code>import {useState} from 'react' type Props = { label: string placeholder?: string onChange: () =&gt; void name?: string value?: any } export const TextField = ({ label, onChange, placeholder, na...
[ { "answer_id": 74445629, "author": "Kamran Davar", "author_id": 12510464, "author_profile": "https://Stackoverflow.com/users/12510464", "pm_score": 2, "selected": false, "text": " onClick={handleSubmit}\n onClick={() => handleSubmit()} \n" }, { "answer_id": 74446039, "author"...
2022/11/15
[ "https://Stackoverflow.com/questions/74445408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19934976/" ]
74,445,414
<p>I'm trying to build a function where when a link is clicked (all have the same class), a class is toggled on another element.</p> <p>Example: if I click on link 1 red should get the class active. If I click on link 2, pink should get the class active and not the others and so on. My javascript knowledge is limited a...
[ { "answer_id": 74445607, "author": "MAYUR SANCHETI", "author_id": 12238257, "author_profile": "https://Stackoverflow.com/users/12238257", "pm_score": -1, "selected": false, "text": " $(document).ready(function(){\n $(\".trigger1\").click(function(){\n $('.basic:...
2022/11/15
[ "https://Stackoverflow.com/questions/74445414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5769648/" ]
74,445,426
<p>I recently started using Apps Script to automate some processes in Google Sheets.</p> <p>I need to add &quot;/&quot; between numbers only while they are inside parentheses.</p> <p>example &quot;123(123)&quot; to &quot;123(1/2/3)&quot;</p> <p>I've played around with textFinder but no luck.</p>
[ { "answer_id": 74445607, "author": "MAYUR SANCHETI", "author_id": 12238257, "author_profile": "https://Stackoverflow.com/users/12238257", "pm_score": -1, "selected": false, "text": " $(document).ready(function(){\n $(\".trigger1\").click(function(){\n $('.basic:...
2022/11/15
[ "https://Stackoverflow.com/questions/74445426", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20509995/" ]
74,445,429
<p>I have generated a bash script that activates virtaulenv and runs my custom management command in Django. I want to run the bash script every day at midnight.</p> <p><strong>Bash Script</strong> :</p> <pre><code>cd ~ cd path_to_virtualenv/ source virtualenv_name/bin/activate cd path_to_project/ python manage.py cust...
[ { "answer_id": 74445618, "author": "Zkh", "author_id": 19235697, "author_profile": "https://Stackoverflow.com/users/19235697", "pm_score": 1, "selected": false, "text": "#!/bin/bash source extension" }, { "answer_id": 74455921, "author": "Manoj Kamble", "author_id": 18089...
2022/11/15
[ "https://Stackoverflow.com/questions/74445429", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18089995/" ]
74,445,430
<p>First, I want to capture pose values by subscribing to teleop_key from a turtle. Then I want to change these captured values and publish to a second turtle. The problem is that I couldn't capture the pose values as a global variables. And due to this I couldn't change the variables and published the modified ones.</...
[ { "answer_id": 74449318, "author": "BTables", "author_id": 11936229, "author_profile": "https://Stackoverflow.com/users/11936229", "pm_score": 2, "selected": true, "text": "pos global global def pose_callback(msg):\n rp.loginfo(\"(\"+ str(msg.x) + \",\" + str(msg.y) + \",\" + str(msg....
2022/11/15
[ "https://Stackoverflow.com/questions/74445430", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13659111/" ]
74,445,476
<p>image cant seem to fit in just one section and keep overflowing to another section.</p> <p>tried putting tag in between but does not seems to work, img keep showing in two section.also tried the width and padding but i can't move the img to the left. can anyone help with only css and html? can't use js on this pro...
[ { "answer_id": 74449318, "author": "BTables", "author_id": 11936229, "author_profile": "https://Stackoverflow.com/users/11936229", "pm_score": 2, "selected": true, "text": "pos global global def pose_callback(msg):\n rp.loginfo(\"(\"+ str(msg.x) + \",\" + str(msg.y) + \",\" + str(msg....
2022/11/15
[ "https://Stackoverflow.com/questions/74445476", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20473729/" ]
74,445,489
<p>I am currently learning Laravel. I had a pre-built script and I need to do some changes in it to make it usable... But as much I learnt from the web, I understood that the routes are specified in the Routes/web.php file. But in the application I'm working on, the routes are defined in Routes/api.php file.</p> <p>I e...
[ { "answer_id": 74449318, "author": "BTables", "author_id": 11936229, "author_profile": "https://Stackoverflow.com/users/11936229", "pm_score": 2, "selected": true, "text": "pos global global def pose_callback(msg):\n rp.loginfo(\"(\"+ str(msg.x) + \",\" + str(msg.y) + \",\" + str(msg....
2022/11/15
[ "https://Stackoverflow.com/questions/74445489", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20507866/" ]
74,445,504
<p>I am adding payment and subscription to my application using stripe I want to fee the user per the usage of my system , I tried to report usage as floating point number but cant find a way to do that , the supported method allows you send integer usage only any suggestion to do that?</p> <p>I used UsageRecordCreateO...
[ { "answer_id": 74449318, "author": "BTables", "author_id": 11936229, "author_profile": "https://Stackoverflow.com/users/11936229", "pm_score": 2, "selected": true, "text": "pos global global def pose_callback(msg):\n rp.loginfo(\"(\"+ str(msg.x) + \",\" + str(msg.y) + \",\" + str(msg....
2022/11/15
[ "https://Stackoverflow.com/questions/74445504", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20510089/" ]
74,445,505
<p>Basically, it should be possible to copy html-code directly into a Quarto document (.qmd) and then render it to an html-website.</p> <p>I tried to do that and copied the following code from the <a href="https://bootswatch.com/simplex/" rel="nofollow noreferrer">Simplex Theme</a> to a quarto website:</p> <pre><code>&...
[ { "answer_id": 74449318, "author": "BTables", "author_id": 11936229, "author_profile": "https://Stackoverflow.com/users/11936229", "pm_score": 2, "selected": true, "text": "pos global global def pose_callback(msg):\n rp.loginfo(\"(\"+ str(msg.x) + \",\" + str(msg.y) + \",\" + str(msg....
2022/11/15
[ "https://Stackoverflow.com/questions/74445505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2459401/" ]
74,445,527
<p><strong>Problem</strong> Compute a per-warp histogram of sorted sequence of numbers held by individual threads in a warp.</p> <p>Example:</p> <pre><code>lane: 0123456789... 31 val: 222244455777799999 .. </code></pre> <p>The result must be held by N lower threads in a warp (where N is the amount of unique n...
[ { "answer_id": 74449318, "author": "BTables", "author_id": 11936229, "author_profile": "https://Stackoverflow.com/users/11936229", "pm_score": 2, "selected": true, "text": "pos global global def pose_callback(msg):\n rp.loginfo(\"(\"+ str(msg.x) + \",\" + str(msg.y) + \",\" + str(msg....
2022/11/15
[ "https://Stackoverflow.com/questions/74445527", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4349407/" ]
74,445,537
<p>I am following along with a tutorial, and I am building a simple regression model with tensorflow. I would expect tf to fit the model without any hiccups. Instead, I am getting a value error.</p> <p>The model and compile steps look identical to the tutorial.</p> <p>The data is similar (two numpy arrays). I used diff...
[ { "answer_id": 74445578, "author": "AloneTogether", "author_id": 9657861, "author_profile": "https://Stackoverflow.com/users/9657861", "pm_score": 2, "selected": true, "text": "Dense import tensorflow as tf\nimport numpy as np\n\nX = tf.constant(np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10...
2022/11/15
[ "https://Stackoverflow.com/questions/74445537", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13066430/" ]
74,445,564
<pre><code>from tkinter import * window2 = Tk() Var = ' ' store = ['a', 'b', 'c', 'd'] count = 3 for i in store: if i != None: chs_store = Button(window2, text = i).grid(row = count , column = 4) count += 1 </code></pre> <p>I made buttons and placed them on the frame like this. In order to plac...
[ { "answer_id": 74445578, "author": "AloneTogether", "author_id": 9657861, "author_profile": "https://Stackoverflow.com/users/9657861", "pm_score": 2, "selected": true, "text": "Dense import tensorflow as tf\nimport numpy as np\n\nX = tf.constant(np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10...
2022/11/15
[ "https://Stackoverflow.com/questions/74445564", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20509836/" ]
74,445,567
<p>I am working in Reactjs and i am using &quot;nextjs&quot; framework,Right now i am getting data(blog detail) according to slug([slug.js]) but on the right side of page (sidebar) i want to get data of all other blogs with same category(cat_name),how can i do this ? Here is my current code</p> <pre><code>import Axios ...
[ { "answer_id": 74445578, "author": "AloneTogether", "author_id": 9657861, "author_profile": "https://Stackoverflow.com/users/9657861", "pm_score": 2, "selected": true, "text": "Dense import tensorflow as tf\nimport numpy as np\n\nX = tf.constant(np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10...
2022/11/15
[ "https://Stackoverflow.com/questions/74445567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5308126/" ]
74,445,571
<p>Im trying to setup a planning for 20 employees and 2 years. In here I want to hide the weeks that already passed in the input.</p> <p>Down below is how far I got. After testing it seems to work till the &quot;All&quot; part but can't figure the last part out. With the inputbox I want that the person is able to enter...
[ { "answer_id": 74446058, "author": "VBasic2008", "author_id": 9814069, "author_profile": "https://Stackoverflow.com/users/9814069", "pm_score": 2, "selected": true, "text": "Application.Match Sub HidePastWeeks()\n \n Dim myValue As Variant\n myValue = InputBox(\"Weeks visible fr...
2022/11/15
[ "https://Stackoverflow.com/questions/74445571", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20509771/" ]
74,445,588
<p>I use LayoutBuilder to control the view when the orientation changes, but it rebuilds the view with every change like when a keyboard is up. How can I control when to re-build the widget only when orientation changes?</p> <pre><code>class ExampleScreen extends StatelessWidget { @override Widget build(BuildContex...
[ { "answer_id": 74446058, "author": "VBasic2008", "author_id": 9814069, "author_profile": "https://Stackoverflow.com/users/9814069", "pm_score": 2, "selected": true, "text": "Application.Match Sub HidePastWeeks()\n \n Dim myValue As Variant\n myValue = InputBox(\"Weeks visible fr...
2022/11/15
[ "https://Stackoverflow.com/questions/74445588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10412586/" ]
74,445,620
<p>I am working on a legacy application with a class named <code>Point3D</code> as shown below...</p> <pre><code>template &lt;class T&gt; class Point3D final { T values[3]; public: Point3D(); Point3D(T x, T y, T z); explicit Point3D(const T value); Point3D(const Point3D&amp; point); explicit Poi...
[ { "answer_id": 74445787, "author": "Caleth", "author_id": 2610810, "author_profile": "https://Stackoverflow.com/users/2610810", "pm_score": 2, "selected": false, "text": "std::vector std::vector double Point3D<std::string> template <class T>\nclass Point3D final\n{\n T values[3];\npub...
2022/11/15
[ "https://Stackoverflow.com/questions/74445620", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3747770/" ]
74,445,627
<pre><code>public int userID; //global variable public Index() { userID = 10; return userID; } public TaskCompleted() { Console.WriteLine(Index()) } </code></pre> <p>i want the userID to be accessed in each a...
[ { "answer_id": 74445696, "author": "Cristian Rusanu", "author_id": 2065371, "author_profile": "https://Stackoverflow.com/users/2065371", "pm_score": 0, "selected": false, "text": "public static class Globals\n{\n public static int UserID {get; set;}\n}\n var userId = Globals.UserID;" ...
2022/11/15
[ "https://Stackoverflow.com/questions/74445627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20510051/" ]
74,445,635
<p>I've recently inherited some code. It has a class called <code>SystemConfig</code> that acts as a grab-bag of constants that are used across the code base. But while a few of the constants are defined directly on that class, a big pile of them are defined as properties of a metaclass of that class. Like this:</p>...
[ { "answer_id": 74450088, "author": "Tom", "author_id": 274460, "author_profile": "https://Stackoverflow.com/users/274460", "pm_score": 1, "selected": false, "text": "@property @classmethod @property SystemConfig class class_property:\n def __init__(self, _g):\n self._g = _g\n\n...
2022/11/15
[ "https://Stackoverflow.com/questions/74445635", "https://Stackoverflow.com", "https://Stackoverflow.com/users/274460/" ]
74,445,638
<p>I need to solve a maze using backtracking method. My maze has 0 listed as a wall, 1 listed as an empty cell, 2 is for visited, 3 for dragon. Dragons are basically obstacles that I can go through BUT I need to choose the path with the LEAST dragons. So far I can solve the maze and mark a path, but I can't seem to thi...
[ { "answer_id": 74450088, "author": "Tom", "author_id": 274460, "author_profile": "https://Stackoverflow.com/users/274460", "pm_score": 1, "selected": false, "text": "@property @classmethod @property SystemConfig class class_property:\n def __init__(self, _g):\n self._g = _g\n\n...
2022/11/15
[ "https://Stackoverflow.com/questions/74445638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17321893/" ]
74,445,667
<p>I have a <code>Set</code> of <code>Integer</code>:</p> <pre class="lang-java prettyprint-override"><code>Set&lt;Integer&gt; itemSet = new HashSet&lt;Integer&gt;(); itemSet.add(1); itemSet.add(3); itemSet.add(5); </code></pre> <p>I want to convert it into an array of <code>Integer</code> where the value of each eleme...
[ { "answer_id": 74446049, "author": "WJS", "author_id": 1552534, "author_profile": "https://Stackoverflow.com/users/1552534", "pm_score": 1, "selected": false, "text": "toArray() IntFunction Set<Integer> itemSet = new HashSet<Integer>();\nitemSet.add(1);\nitemSet.add(3);\nitemSet.add(5);\...
2022/11/15
[ "https://Stackoverflow.com/questions/74445667", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14907157/" ]
74,445,728
<p>I want to search for files with .2fa extension on remote computers. I can find the files I want, but it takes a long time to get to the second computer because it scans all windows files.</p> <p>I tried the -exclude and where arguments but they do not work.</p> <p>Could you please help me? Thanks.</p> <pre><code>$Se...
[ { "answer_id": 74446049, "author": "WJS", "author_id": 1552534, "author_profile": "https://Stackoverflow.com/users/1552534", "pm_score": 1, "selected": false, "text": "toArray() IntFunction Set<Integer> itemSet = new HashSet<Integer>();\nitemSet.add(1);\nitemSet.add(3);\nitemSet.add(5);\...
2022/11/15
[ "https://Stackoverflow.com/questions/74445728", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19896510/" ]
74,445,744
<p>Can I use a batch for temporal calculation, but eventually not include it in the results?</p> <p>For example, I want to use 'temporal' tabular for calculation of other queries, but I do not want to get it later in the results (because it's too large). I.e. the results should contain <em>only Tables X and Y</em>.</p>...
[ { "answer_id": 74446049, "author": "WJS", "author_id": 1552534, "author_profile": "https://Stackoverflow.com/users/1552534", "pm_score": 1, "selected": false, "text": "toArray() IntFunction Set<Integer> itemSet = new HashSet<Integer>();\nitemSet.add(1);\nitemSet.add(3);\nitemSet.add(5);\...
2022/11/15
[ "https://Stackoverflow.com/questions/74445744", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9652134/" ]
74,445,750
<pre><code>import time i = 1 def sendData(x): time.sleep(5) print(&quot;delayed data: &quot;, x) while (1): print(i) sendData(i) i += 1 time.sleep(0.5) </code></pre> <p>What I want is to print a value every 5 seconds while the infinite loop runs. so I can see the values printing very .5 second...
[ { "answer_id": 74445881, "author": "TomerG", "author_id": 1885248, "author_profile": "https://Stackoverflow.com/users/1885248", "pm_score": 3, "selected": false, "text": "threading sendData sendData i i import threading\nimport time\ni = 1\n\ndef sendData():\n while True:\n tim...
2022/11/15
[ "https://Stackoverflow.com/questions/74445750", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16383052/" ]
74,445,805
<p>I have a pyspark dataframe <code>df</code> :-</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>status</th> <th style="text-align: center;">Flag</th> </tr> </thead> <tbody> <tr> <td>present</td> <td style="text-align: center;">1</td> </tr> <tr> <td>present</td> <td style="text-align: cente...
[ { "answer_id": 74445933, "author": "ScootCork", "author_id": 4700327, "author_profile": "https://Stackoverflow.com/users/4700327", "pm_score": 2, "selected": true, "text": "withColumn when from pyspark.sql.functions import when, col, lit\n\ndata = [\n ('present', 0),\n ('ok', 0),\n...
2022/11/15
[ "https://Stackoverflow.com/questions/74445805", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14353779/" ]
74,445,827
<p>I am making a video player using pygame, it takes numpy arrays of frames from a video file and streams them to a pygame window using a buffer.</p> <p>I'm getting a weird issue where CPU usage is increasing <em>(program is slowing down)</em> over time, then CPU usage is sharply decreasing <em>(program is speeding up)...
[ { "answer_id": 74445933, "author": "ScootCork", "author_id": 4700327, "author_profile": "https://Stackoverflow.com/users/4700327", "pm_score": 2, "selected": true, "text": "withColumn when from pyspark.sql.functions import when, col, lit\n\ndata = [\n ('present', 0),\n ('ok', 0),\n...
2022/11/15
[ "https://Stackoverflow.com/questions/74445827", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9888447/" ]
74,445,879
<p>I have the following sample dataframe called df (<code>dput</code> below):</p> <pre><code> group date indicator 1 A 2022-11-01 01:00:00 FALSE 2 A 2022-11-01 03:00:00 FALSE 3 A 2022-11-01 04:00:00 TRUE 4 A 2022-11-01 05:00:00 FALSE 5 A 2022-11-01 06:00:00 ...
[ { "answer_id": 74446061, "author": "ThomasIsCoding", "author_id": 12158757, "author_profile": "https://Stackoverflow.com/users/12158757", "pm_score": 3, "selected": false, "text": "data.table findInterval roll = \"nearest\" setDT(df)[\n ,\n diff_hours := abs(\n difftime(date,\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74445879", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14282714/" ]
74,445,921
<p>For this vectorial function I want to evaluate the jacobian:</p> <pre><code>import jax import jax.numpy as jnp def myf(arr, phi_0, phi_1, phi_2, lambda_0, R): arr = jnp.deg2rad(arr) phi_0 = jnp.deg2rad(phi_0) phi_1 = jnp.deg2rad(phi_1) phi_2 = jnp.deg2rad(phi_2) lambda_0 = jnp.deg2rad(lambda_0) ...
[ { "answer_id": 74447755, "author": "David", "author_id": 6010635, "author_profile": "https://Stackoverflow.com/users/6010635", "pm_score": 1, "selected": false, "text": "jax.jacobian(myf) def myf(arr, phi_0, phi_1, phi_2, lambda_0, R):\n \n n = jnp.sin(phi_1)\n \n F = 2.0\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74445921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6010635/" ]
74,445,936
<p>I am running a Kafka Cluster Docker Compose on an AWS EC2 instance. I want to receive all the tweets of a specific keyword and push them to Kafka. This works fine. But I also want to count the most used words of those tweets.</p> <p>This is the WordCount code:</p> <pre><code>import org.apache.kafka.common.serializat...
[ { "answer_id": 74446413, "author": "leccionesonline", "author_id": 1370047, "author_profile": "https://Stackoverflow.com/users/1370047", "pm_score": -1, "selected": false, "text": "KStream<String, String> textLines = builder.stream(\"test-topic\", Consumed.with(stringSerde, stringSerde))...
2022/11/15
[ "https://Stackoverflow.com/questions/74445936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20510283/" ]
74,445,959
<p>I'm having a child component that get some data from a form. And passes that to a parent component via the @Output decorator. Pressing a button triggers getDataFromForm()</p> <pre><code>export class FormChildComponent { @Output() doSomethingWithData: EventEmitter&lt;any&gt; = new EventEmitter&lt;any&gt;() ...
[ { "answer_id": 74446019, "author": "Fabian Strathaus", "author_id": 17298437, "author_profile": "https://Stackoverflow.com/users/17298437", "pm_score": 0, "selected": false, "text": "@Input() @Input() prop: YourType; <FormChildComponent [prop]=\"dataToPassToChild\" (doSomethingWithData)=...
2022/11/15
[ "https://Stackoverflow.com/questions/74445959", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14525017/" ]
74,445,979
<p>I need to find a file with a .gz extension among files in a loop and extract some data from it and print it.</p> <p>i have folders like d091,d092,.....,d150 and under these folders there are different files with .gz extension. I need to print some data from these .gz files. the location of the data in the file as I ...
[ { "answer_id": 74446448, "author": "Martian", "author_id": 2068539, "author_profile": "https://Stackoverflow.com/users/2068539", "pm_score": -1, "selected": false, "text": "for file in $(find . -name \"*.gz\"); do \n file=$(basename ${file})\n echo ${file:0:4} | tee -a receiver_ids\n ...
2022/11/15
[ "https://Stackoverflow.com/questions/74445979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20510244/" ]
74,445,988
<p>I have a simple layout with image on Left and Title of blog on right with light grey background for large screen or were width is minimum 800px. for smaller screens it should show image on top and Title below image. It is working fine except two thing</p> <ol> <li>It show extra space under image which is shown as ye...
[ { "answer_id": 74446143, "author": "c.m.", "author_id": 19850943, "author_profile": "https://Stackoverflow.com/users/19850943", "pm_score": -1, "selected": false, "text": ".flex-container > div {\n background-color: yellow;\n color: #555;\n width: 50%;\n margin: 0px;\n text-align: c...
2022/11/15
[ "https://Stackoverflow.com/questions/74445988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1122748/" ]