qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,536,100
<p>I'm looking to transition this code to use Streams.</p> <pre class="lang-java prettyprint-override"><code>public ResultObject getBestObjectWithParameters() { int maxParameterValue = 10; double bestValue = 0.0; ResultObject bestObject = null; for (int a = 0; a &lt; maxParameterValue; a++) { for ...
[ { "answer_id": 74536328, "author": "Rob Spoor", "author_id": 1180351, "author_profile": "https://Stackoverflow.com/users/1180351", "pm_score": 1, "selected": false, "text": "flatMap public ResultObject getBestObjectWithParameters() {\n int maxParameterValue = 10;\n return IntStream...
2022/11/22
[ "https://Stackoverflow.com/questions/74536100", "https://Stackoverflow.com", "https://Stackoverflow.com/users/795221/" ]
74,536,110
<p>I am asking a question concerning the additive predictive benefit of the inclusion of a variable to a logistic and an ordinal model. I am using mice to impute missing covariates and am having difficulty finding ways to calculate the AUC and R squared of the pooled imputed models. Does anyone have any advice?</p> <p>...
[ { "answer_id": 74536829, "author": "jrcalabrese", "author_id": 14992857, "author_profile": "https://Stackoverflow.com/users/14992857", "pm_score": 1, "selected": false, "text": "mice::pool.r.squared lm glm() mfc() glmice mfc() # install.packages(\"remotes\")\n# remotes::install_github(\"...
2022/11/22
[ "https://Stackoverflow.com/questions/74536110", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14322196/" ]
74,536,116
<p>I'm an R/Tidyverse guy getting my feet wet in python/pandas and having trouble discerning if there is a way to do the following as elegantly in pandas as tidyverse:</p> <pre class="lang-r prettyprint-override"><code>( dat %&gt;% group_by(grp) %&gt;% mutate( value = value/max(value) ) ) </code...
[ { "answer_id": 74536166, "author": "PaulS", "author_id": 11564487, "author_profile": "https://Stackoverflow.com/users/11564487", "pm_score": 1, "selected": false, "text": "(df.groupby('grp')\n .apply(lambda g: g['value'].div(g['value'].max()))\n .droplevel(1)\n .reset_index())\n grp ...
2022/11/22
[ "https://Stackoverflow.com/questions/74536116", "https://Stackoverflow.com", "https://Stackoverflow.com/users/174902/" ]
74,536,117
<p>I have created a CMS. When installing the CMS, I must install its database. I use PHP <code>multi_query()</code> to istall the database without opening phpMyAdmin. When the SQL file is as small as 624KB, the database is installed successfully. However, when the SQL file is as large as 6.32MB or more, the database do...
[ { "answer_id": 74536166, "author": "PaulS", "author_id": 11564487, "author_profile": "https://Stackoverflow.com/users/11564487", "pm_score": 1, "selected": false, "text": "(df.groupby('grp')\n .apply(lambda g: g['value'].div(g['value'].max()))\n .droplevel(1)\n .reset_index())\n grp ...
2022/11/22
[ "https://Stackoverflow.com/questions/74536117", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12963244/" ]
74,536,165
<p>I have a JSON column, <code>telework</code>, stored in Postgres which looks like</p> <pre><code>&quot;{ ..., &quot;biweeklyWeek1-locationMon&quot;: &quot;alternative&quot;, &quot;biweeklyWeek1-locationTues&quot;: &quot;agency&quot;, &quot;biweeklyWeek1-locationWeds&quot;: &quot;alternative&quot;, &quot;b...
[ { "answer_id": 74536166, "author": "PaulS", "author_id": 11564487, "author_profile": "https://Stackoverflow.com/users/11564487", "pm_score": 1, "selected": false, "text": "(df.groupby('grp')\n .apply(lambda g: g['value'].div(g['value'].max()))\n .droplevel(1)\n .reset_index())\n grp ...
2022/11/22
[ "https://Stackoverflow.com/questions/74536165", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1005607/" ]
74,536,170
<p>I am trying to do the secant method to find the root of the polynonium (-2<em>x**6)-(1.5</em>x**4)+(10*x)+(2) with inithial value 2,3 and I get this error</p> <pre><code>import numpy as np def f(x): return (-2*x**6)-(1.5*x**4)+(10*x)+(2) def secante(f,x,fp,N=100,emax=0.0001): for k in range(N): fp=...
[ { "answer_id": 74536166, "author": "PaulS", "author_id": 11564487, "author_profile": "https://Stackoverflow.com/users/11564487", "pm_score": 1, "selected": false, "text": "(df.groupby('grp')\n .apply(lambda g: g['value'].div(g['value'].max()))\n .droplevel(1)\n .reset_index())\n grp ...
2022/11/22
[ "https://Stackoverflow.com/questions/74536170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20574324/" ]
74,536,171
<p>I'm a beginner in Deep Learning and NLP stream. I was trying to install Tensorflow but it is giving me an error. Can anyone please help me how to solve this? <a href="https://i.stack.imgur.com/Mm2rk.png" rel="nofollow noreferrer">This is the error I'm getting</a></p> <p>I was watchig an YouTube video for Toxic Comme...
[ { "answer_id": 74536166, "author": "PaulS", "author_id": 11564487, "author_profile": "https://Stackoverflow.com/users/11564487", "pm_score": 1, "selected": false, "text": "(df.groupby('grp')\n .apply(lambda g: g['value'].div(g['value'].max()))\n .droplevel(1)\n .reset_index())\n grp ...
2022/11/22
[ "https://Stackoverflow.com/questions/74536171", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19811627/" ]
74,536,221
<p>Can anyone please help me wrap the condition inside another condition in php.</p> <p>I have this code #1 that I want to be inside code #2.</p> <p>Here's code #1</p> <pre><code>&lt;?php if( get_field('highlights') ): ?&gt; &lt;div class=&quot;overview&quot;&gt; &lt;h3&gt;Quick Overview&lt;/h3&gt; &lt;?php...
[ { "answer_id": 74536166, "author": "PaulS", "author_id": 11564487, "author_profile": "https://Stackoverflow.com/users/11564487", "pm_score": 1, "selected": false, "text": "(df.groupby('grp')\n .apply(lambda g: g['value'].div(g['value'].max()))\n .droplevel(1)\n .reset_index())\n grp ...
2022/11/22
[ "https://Stackoverflow.com/questions/74536221", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19612840/" ]
74,536,225
<p>I am a beginner writing a Python code, where the computer generates a random number between 1 and 10, 1 and 100, 1 and 1000, 1 and 10000, 1 and 100000 and so on. The computer itself will guess the random number a number of times (a user input number), and every time there is a count of how many times the computer to...
[ { "answer_id": 74536166, "author": "PaulS", "author_id": 11564487, "author_profile": "https://Stackoverflow.com/users/11564487", "pm_score": 1, "selected": false, "text": "(df.groupby('grp')\n .apply(lambda g: g['value'].div(g['value'].max()))\n .droplevel(1)\n .reset_index())\n grp ...
2022/11/22
[ "https://Stackoverflow.com/questions/74536225", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20574309/" ]
74,536,245
<p>Here is my situation. Iam using Alteryx ETL tool where in basically we are appending new records to tableau by using option provided like 'Overwrite the file'.</p> <p>What it does is any data incoming is captured to the target and delete the old data--&gt; publish results in Tableau visualisation tool.</p> <p>So wha...
[ { "answer_id": 74536166, "author": "PaulS", "author_id": 11564487, "author_profile": "https://Stackoverflow.com/users/11564487", "pm_score": 1, "selected": false, "text": "(df.groupby('grp')\n .apply(lambda g: g['value'].div(g['value'].max()))\n .droplevel(1)\n .reset_index())\n grp ...
2022/11/22
[ "https://Stackoverflow.com/questions/74536245", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20490950/" ]
74,536,263
<p>I'm not able to align my text to the bottom of the divs in my flex content. I'm new to CSS and any help will be appreciated.</p> <p>Thank you for your time and kindness.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snipp...
[ { "answer_id": 74536290, "author": "Coopero", "author_id": 2421346, "author_profile": "https://Stackoverflow.com/users/2421346", "pm_score": 2, "selected": false, "text": ".flexTest div {\n background-color: #EB710F;\n padding: 5px;\n margin: 5px;\n height: 50px;\n border:...
2022/11/22
[ "https://Stackoverflow.com/questions/74536263", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1247977/" ]
74,536,276
<p>I have something like:</p> <pre><code> const Tab = createBottomTabNavigator&lt;DefaultTabbedParamList&gt;(); const DefaultTabbedNavigation = () =&gt; { return ( &lt;&gt; &lt;Tab.Navigator initialRouteName='Home' screenOptions={{ unmountOnBlur: true, }}&gt; &lt;Tab.Screen name=&qu...
[ { "answer_id": 74626983, "author": "PaleRedDot", "author_id": 10607003, "author_profile": "https://Stackoverflow.com/users/10607003", "pm_score": 1, "selected": false, "text": "return (\n <NavigationContainer>\n <Stack.Navigator screenOptions={{ headerShown: false }}>\n...
2022/11/22
[ "https://Stackoverflow.com/questions/74536276", "https://Stackoverflow.com", "https://Stackoverflow.com/users/239879/" ]
74,536,305
<p>I've faced the problem that JMeter doesn't clear the cache and extract variables in the next loop iteration, ruining the following request in the next loop.<br /> <a href="https://i.stack.imgur.com/Avo8s.png" rel="nofollow noreferrer">problem itself</a></p> <ol> <li><p>I tried check-box 'Clear cache each iteration.<...
[ { "answer_id": 74626983, "author": "PaleRedDot", "author_id": 10607003, "author_profile": "https://Stackoverflow.com/users/10607003", "pm_score": 1, "selected": false, "text": "return (\n <NavigationContainer>\n <Stack.Navigator screenOptions={{ headerShown: false }}>\n...
2022/11/22
[ "https://Stackoverflow.com/questions/74536305", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17044125/" ]
74,536,310
<p>I'm trying to replicate a feature I like in twitter.</p> <p><a href="https://i.stack.imgur.com/GFsX0.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GFsX0.jpg" alt="example 1" /></a></p> <p><a href="https://i.stack.imgur.com/IzpDB.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/...
[ { "answer_id": 74536420, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 1, "selected": false, "text": "fit: BoxFit.cover, Container(\n width: 290.0,\n // height: 400,\n constraints: const BoxConstraints(\n ...
2022/11/22
[ "https://Stackoverflow.com/questions/74536310", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5771844/" ]
74,536,312
<p>I have created a pause screen Area2D for my game, in any case the player goes AFK. I wrote a code so whenever the key P is pressed it appears and everything pauses, and if it is clicked it disappears and everything goes back to normal. I wrote a code, but it didn't work</p> <p>I tried this:</p> <pre><code> public...
[ { "answer_id": 74536420, "author": "Yeasin Sheikh", "author_id": 10157127, "author_profile": "https://Stackoverflow.com/users/10157127", "pm_score": 1, "selected": false, "text": "fit: BoxFit.cover, Container(\n width: 290.0,\n // height: 400,\n constraints: const BoxConstraints(\n ...
2022/11/22
[ "https://Stackoverflow.com/questions/74536312", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20485985/" ]
74,536,346
<p>The below code looks to be error free to me at least. But I'm not getting the output I want, but if i dont use the function and add the two of them directly with the same syntax, I'm getting the correct answer. pls help</p> <pre class="lang-py prettyprint-override"><code> a = [[1,1],[2,2]] #first matrix b = [[4,4...
[ { "answer_id": 74536419, "author": "Prime Price", "author_id": 19685980, "author_profile": "https://Stackoverflow.com/users/19685980", "pm_score": 0, "selected": false, "text": "import numpy\nnumpy.add(list1, list2)\n" }, { "answer_id": 74536485, "author": "SoulSeeke", "a...
2022/11/22
[ "https://Stackoverflow.com/questions/74536346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20574441/" ]
74,536,410
<pre><code>function handler(){ const results = [].map((item) =&gt; { a(); b(); }) Promise.allSettled(results); } function a() { // returns promise } function b() { // returns promise } } </code></pre> <p>How to modify the above code so that I can pass array of promises to <cod...
[ { "answer_id": 74536531, "author": "codinn.dev", "author_id": 15755662, "author_profile": "https://Stackoverflow.com/users/15755662", "pm_score": 0, "selected": false, "text": "function handler() {\n const results = [].map((item) => {\n const out1 = a();\n const out2 = b();\...
2022/11/22
[ "https://Stackoverflow.com/questions/74536410", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1800583/" ]
74,536,412
<p>I am working with a compound database in sdf format. I would like to simple replace the head title of all molecules (with the pattern $$$$ before the title) by the line followed by &gt; &lt;GENERIC_NAME&gt;.</p> <p>The file looks like this:</p> <pre><code>$$$$ 91443 -OEChem-10051719083D 55 57 0 1 0 0 0 ...
[ { "answer_id": 74536531, "author": "codinn.dev", "author_id": 15755662, "author_profile": "https://Stackoverflow.com/users/15755662", "pm_score": 0, "selected": false, "text": "function handler() {\n const results = [].map((item) => {\n const out1 = a();\n const out2 = b();\...
2022/11/22
[ "https://Stackoverflow.com/questions/74536412", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20574419/" ]
74,536,442
<p><strong>How do I create a custom type converter for a boolean parameter in a GET request?</strong></p> <p>For example, I want the allowed values in the GET request to be &quot;oui&quot; and &quot;non&quot; instead of &quot;true&quot; and &quot;false&quot;. I followed the <a href="https://docs.spring.io/spring-framew...
[ { "answer_id": 74537088, "author": "sanurah", "author_id": 4079056, "author_profile": "https://Stackoverflow.com/users/4079056", "pm_score": 1, "selected": false, "text": "enum BooleanInput {\n oui(true),\n non(false);\n\n private boolean value;\n\n BooleanInput(boolean value...
2022/11/22
[ "https://Stackoverflow.com/questions/74536442", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13963086/" ]
74,536,484
<p>So i have this method to read from a CSV File and it works.</p> <pre><code>//Alte Bestand private void PageLoad_Alt(object sender, RoutedEventArgs e) { try { //Index von selectedItem string filepath = directory + &quot;\\&quot; + &quot;ParkingTool_BESTAND.csv&quot;; ...
[ { "answer_id": 74537088, "author": "sanurah", "author_id": 4079056, "author_profile": "https://Stackoverflow.com/users/4079056", "pm_score": 1, "selected": false, "text": "enum BooleanInput {\n oui(true),\n non(false);\n\n private boolean value;\n\n BooleanInput(boolean value...
2022/11/22
[ "https://Stackoverflow.com/questions/74536484", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11150675/" ]
74,536,496
<p>This is the prototype of <code>Row</code>:</p> <pre class="lang-kotlin prettyprint-override"><code>@Composable public inline fun Row( modifier: Modifier = Modifier, horizontalArrangement: Arrangement.Horizontal = Arrangement.Start, verticalAlignment: Alignment.Vertical = Alignment.Top, content: @Comp...
[ { "answer_id": 74536522, "author": "Gabriele Mariotti", "author_id": 2016562, "author_profile": "https://Stackoverflow.com/users/2016562", "pm_score": 3, "selected": true, "text": "horizontalArrangement content BottomAppBar RowScope Row @Composable\nfun BottomAppBar(\n //...\n cont...
2022/11/22
[ "https://Stackoverflow.com/questions/74536496", "https://Stackoverflow.com", "https://Stackoverflow.com/users/402322/" ]
74,536,503
<p>I am receiving a response from the API, but the data doesn't display on the card. I don't think it has much to do with the data I think it has much to do with the card appearing itself first. Here is how the search file is set up, pretty straight forward. As you see I did set up a container to hold the card as I map...
[ { "answer_id": 74536522, "author": "Gabriele Mariotti", "author_id": 2016562, "author_profile": "https://Stackoverflow.com/users/2016562", "pm_score": 3, "selected": true, "text": "horizontalArrangement content BottomAppBar RowScope Row @Composable\nfun BottomAppBar(\n //...\n cont...
2022/11/22
[ "https://Stackoverflow.com/questions/74536503", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18137450/" ]
74,536,514
<p>In prometheus we have the option to add a label to every metric of a job with something like this,</p> <pre class="lang-yaml prettyprint-override"><code>- job_name: 'your_job' honor_labels: true static_configs: - targets: ...
[ { "answer_id": 74536522, "author": "Gabriele Mariotti", "author_id": 2016562, "author_profile": "https://Stackoverflow.com/users/2016562", "pm_score": 3, "selected": true, "text": "horizontalArrangement content BottomAppBar RowScope Row @Composable\nfun BottomAppBar(\n //...\n cont...
2022/11/22
[ "https://Stackoverflow.com/questions/74536514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7461941/" ]
74,536,535
<p>I am building a Flutter app with a ChangeNotifier provider. When the app is started, I make a call to the Firebase api and save the results in a Provider variable:</p> <pre><code>Map&lt;DateTime,List&gt; datesMap; </code></pre> <p>How can I define another variable in the same Provider, based on the first variable? f...
[ { "answer_id": 74536522, "author": "Gabriele Mariotti", "author_id": 2016562, "author_profile": "https://Stackoverflow.com/users/2016562", "pm_score": 3, "selected": true, "text": "horizontalArrangement content BottomAppBar RowScope Row @Composable\nfun BottomAppBar(\n //...\n cont...
2022/11/22
[ "https://Stackoverflow.com/questions/74536535", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13653363/" ]
74,536,550
<p>When I run <code>DATE_FORMAT('test', '%W %M %Y')</code> I get <code>null</code> returned.</p> <p>I'm running an update to my table <code>extras</code> where the column is a nullable varchar, but when I run eg.</p> <pre><code>update extras set extras.`value` = DATE_FORMAT('test', '%W %M %Y'); </code></pre> <p>I get t...
[ { "answer_id": 74536522, "author": "Gabriele Mariotti", "author_id": 2016562, "author_profile": "https://Stackoverflow.com/users/2016562", "pm_score": 3, "selected": true, "text": "horizontalArrangement content BottomAppBar RowScope Row @Composable\nfun BottomAppBar(\n //...\n cont...
2022/11/22
[ "https://Stackoverflow.com/questions/74536550", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10727630/" ]
74,536,579
<p>I'm stuck in VBA and I couldn't find a good answer in the other questions related to error 91. I want to create an object and store variables and arrays inside that object. I tried an approach like I would do in js:</p> <pre><code>Dim block As Object ... Set block = Nothing block.Name = &quot;Unbekannter Prüfblock&q...
[ { "answer_id": 74537087, "author": "Mathieu Guindon", "author_id": 1188513, "author_profile": "https://Stackoverflow.com/users/1188513", "pm_score": 4, "selected": true, "text": "Nothing Set New Dim Block As Object\nBlock.Something = 42 ' Error 91\n\nSet Block = New SomeClass ' set refer...
2022/11/22
[ "https://Stackoverflow.com/questions/74536579", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2443767/" ]
74,536,585
<p>In an existing node project written in JS we're trying to enable the use of Typescript so we can use it in our ongoing refactoring.</p> <p>I've added a tsConfig like so:</p> <pre><code>{ &quot;compilerOptions&quot;: { &quot;target&quot;: &quot;es6&quot;, &quot;module&quot;: &quot;commonjs&quot;, &quot;...
[ { "answer_id": 74536934, "author": "Thomas Skubicki", "author_id": 4647867, "author_profile": "https://Stackoverflow.com/users/4647867", "pm_score": 0, "selected": false, "text": "\"scripts\": { \"start\": \"tsc && node dist/server.js\" }, \"dev\": \"npx nodemon ./src/server.ts\",\n" ...
2022/11/22
[ "https://Stackoverflow.com/questions/74536585", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1497219/" ]
74,536,612
<p>I have an angular application that read from a config file the backend URL in order to process the queries. The advantage of this is that the back and front can be deployed on any servers.</p> <p>In my angular application I read a JSON containing the following information:</p> <pre><code>{ baseUrl: &quot;http://se...
[ { "answer_id": 74536838, "author": "Timothy", "author_id": 9590251, "author_profile": "https://Stackoverflow.com/users/9590251", "pm_score": 2, "selected": true, "text": "getData(): Data {\n return this.getDbName().pipe(\n switchMap(dbName => this.getData(dbName))\n )\n}\n <...
2022/11/22
[ "https://Stackoverflow.com/questions/74536612", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8521515/" ]
74,536,614
<p>So as you will be able to see in the code, my class constructor asks the user for an input of the &quot;initialValue&quot; of their object. I then have a method &quot;addToValue&quot; which adds to that value. When trying to use JUnit4 to learn TDD it does not use the &quot;initialValue&quot; parameter to set the va...
[ { "answer_id": 74536838, "author": "Timothy", "author_id": 9590251, "author_profile": "https://Stackoverflow.com/users/9590251", "pm_score": 2, "selected": true, "text": "getData(): Data {\n return this.getDbName().pipe(\n switchMap(dbName => this.getData(dbName))\n )\n}\n <...
2022/11/22
[ "https://Stackoverflow.com/questions/74536614", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20574453/" ]
74,536,627
<p>I have a really weird problem in my elasticsearch query. I made an autocomplete search in my website and I have a problem.</p> <p>For example, there is a neighborhood in my country called &quot;Recreio dos Bandeirantes&quot; When I search for &quot;bandeirant&quot; (while user are typing) the query find the neighbor...
[ { "answer_id": 74537552, "author": "Kaveh", "author_id": 14018385, "author_profile": "https://Stackoverflow.com/users/14018385", "pm_score": 2, "selected": false, "text": "\"max_gram\": \"10\" “min_gram”" } ]
2022/11/22
[ "https://Stackoverflow.com/questions/74536627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4764104/" ]
74,536,741
<p>is there any function that converts things like : &quot;1,8&quot; to 1.8</p> <p>I try as.double but it seems to not work.</p> <p>I need to convert a column of a dataframe (whith only characters like this &quot;1,3&quot;). And I dont understand why, when I use as.double I've got only Nas</p>
[ { "answer_id": 74537552, "author": "Kaveh", "author_id": 14018385, "author_profile": "https://Stackoverflow.com/users/14018385", "pm_score": 2, "selected": false, "text": "\"max_gram\": \"10\" “min_gram”" } ]
2022/11/22
[ "https://Stackoverflow.com/questions/74536741", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13682994/" ]
74,536,748
<p>hello i'm using a stack overflow and i want to implement the login modal in my POS method so my plan here is that whenever i click the VOID button there was a login modal that will pop up to validate if the user has the authority to void a product</p> <p>code under edit.php Void Products</p> <pre><code>&lt;div id=&q...
[ { "answer_id": 74567617, "author": "KUMAR", "author_id": 12030528, "author_profile": "https://Stackoverflow.com/users/12030528", "pm_score": 2, "selected": false, "text": "edit.php <!DOCTYPE html>\n <html>\n <head>\n <title>Login</title>\n <meta name=\"viewport\" cont...
2022/11/22
[ "https://Stackoverflow.com/questions/74536748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14393948/" ]
74,536,749
<p>I am working on the following problem which requires to use case_when. However, I encounter the error message <code>Error: must be a logical vector, not a double vector</code> because the replaced columns are not the same type (some logical and some double due to <code>bind_rows</code>). I am looking for a clean sol...
[ { "answer_id": 74536791, "author": "tmfmnk", "author_id": 5964557, "author_profile": "https://Stackoverflow.com/users/5964557", "pm_score": 2, "selected": false, "text": "df1 %>%\n rowwise() %>%\n mutate(result = get(type))\n\n a b c d e type result\n <lgl> <dbl> <...
2022/11/22
[ "https://Stackoverflow.com/questions/74536749", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17918739/" ]
74,536,768
<p>I was developing a different app titled &quot;Video Chat&quot; around 5-6 hours ago and after my work was done I switched over to a different app and ran it using the &quot;npm start&quot; command, however the command now only starts the &quot;Video Chat&quot; app in the localhost and I'm stuck here. Any suggestions...
[ { "answer_id": 74536791, "author": "tmfmnk", "author_id": 5964557, "author_profile": "https://Stackoverflow.com/users/5964557", "pm_score": 2, "selected": false, "text": "df1 %>%\n rowwise() %>%\n mutate(result = get(type))\n\n a b c d e type result\n <lgl> <dbl> <...
2022/11/22
[ "https://Stackoverflow.com/questions/74536768", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20574687/" ]
74,536,830
<p>Trying to learn C. To that end, I'm coding a program that creates a TroubleTicket report. The user is prompted to enter, priority, name and problem. I'm using a struct to store the data and create a struck array. Using the array approach for now as I'm developing the code. Eventually, I'd to use a linked list.</p> <...
[ { "answer_id": 74537009, "author": "Carson", "author_id": 4930913, "author_profile": "https://Stackoverflow.com/users/4930913", "pm_score": 2, "selected": true, "text": "static malloc(size) free free struct ticket char name[MAX_NAME_LEN] get_input(int max_len, char * buffer) malloc free"...
2022/11/22
[ "https://Stackoverflow.com/questions/74536830", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6669933/" ]
74,536,857
<p>I am trying splitting a json column into multiple column. I am using the below query and it worked well before but for some reason I am getting SyntaxError: invalid syntax</p> <pre><code> df[&quot;column_config&quot;] = df[&quot;column_config&quot;].apply(lambda x: dict(eval(x))) final = df('column_config').reset_...
[ { "answer_id": 74537009, "author": "Carson", "author_id": 4930913, "author_profile": "https://Stackoverflow.com/users/4930913", "pm_score": 2, "selected": true, "text": "static malloc(size) free free struct ticket char name[MAX_NAME_LEN] get_input(int max_len, char * buffer) malloc free"...
2022/11/22
[ "https://Stackoverflow.com/questions/74536857", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13896398/" ]
74,536,875
<p>I have pretty much same question as here: <a href="https://stackoverflow.com/questions/57518852/swiftui-picker-onchange-or-equivalent">SwiftUI Picker onChange or equivalent?</a>, but .onChange won't solve it exactly I need.</p> <p>I have wrote a question in that link, but I was told to ask a new question (as I wasn'...
[ { "answer_id": 74537009, "author": "Carson", "author_id": 4930913, "author_profile": "https://Stackoverflow.com/users/4930913", "pm_score": 2, "selected": true, "text": "static malloc(size) free free struct ticket char name[MAX_NAME_LEN] get_input(int max_len, char * buffer) malloc free"...
2022/11/22
[ "https://Stackoverflow.com/questions/74536875", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17142491/" ]
74,536,926
<p>I am making a cloudformation template to create a lambda with its permissions. I need to access a specific s3 bucket and I am placing its specific arn, however when I execute the lambda it tells me that it does not have permission to access that bucket (getObject), but if I put the almost full name of the s3 arn onl...
[ { "answer_id": 74537009, "author": "Carson", "author_id": 4930913, "author_profile": "https://Stackoverflow.com/users/4930913", "pm_score": 2, "selected": true, "text": "static malloc(size) free free struct ticket char name[MAX_NAME_LEN] get_input(int max_len, char * buffer) malloc free"...
2022/11/22
[ "https://Stackoverflow.com/questions/74536926", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19882964/" ]
74,536,930
<p>I found this formula on this website that helps me out with one of my columns on a google sheet I'm working on.</p> <p>=transpose(split(REPT(concat(JOIN(&quot;,&quot;,SEQUENCE(1,6)),&quot;,&quot;),ROUNDDOWN(ROWS(E3:E)/6)),&quot;,&quot;,true))</p> <p>Another column I need to make does exactly this, but each number is...
[ { "answer_id": 74537009, "author": "Carson", "author_id": 4930913, "author_profile": "https://Stackoverflow.com/users/4930913", "pm_score": 2, "selected": true, "text": "static malloc(size) free free struct ticket char name[MAX_NAME_LEN] get_input(int max_len, char * buffer) malloc free"...
2022/11/22
[ "https://Stackoverflow.com/questions/74536930", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20574691/" ]
74,536,936
<p>I am attempting to generate all combinations of special characters and numbers around a string. For example, suppose the string is 'notebook' and the special characters are @, #, $, %, &amp; and numbers 0-9. This could generate: $#notebook12, notebook8, @5notebook0&amp;. I am assuming no repeats of characters.</...
[ { "answer_id": 74537110, "author": "Bhargav", "author_id": 15358800, "author_profile": "https://Stackoverflow.com/users/15358800", "pm_score": 1, "selected": false, "text": "import itertools\nspecial = ['@','#','$','%','&',' ',0,1,2,3,4,5,6,7,8,9,' ']\nlis=[]\n\nword = ['notebook']\nword...
2022/11/22
[ "https://Stackoverflow.com/questions/74536936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18216824/" ]
74,537,021
<p>I am wondering how I can make a function execute such as making a text box appear when &quot;Yes&quot; option is clicked. How can I do this as the Yes is part of a radio input type in JS? I prefer an answer in vanilla javascript. It would help a lot! Thank You!</p> <p><strong>JavaScript</strong></p> <pre><code> d...
[ { "answer_id": 74537391, "author": "Bianca Emi", "author_id": 18670309, "author_profile": "https://Stackoverflow.com/users/18670309", "pm_score": 2, "selected": false, "text": ".hide{\n display: none\n}\n <input type=\"text\" id=\"edietText\" class=\"hide\" name=\"edietq\">\n const yesI...
2022/11/22
[ "https://Stackoverflow.com/questions/74537021", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10173306/" ]
74,537,045
<p>When I insert lines into <code>file.json</code>, git also counts the old line as deleted. For example, inserting <code>&quot;foo2&quot;: &quot;bar2&quot;</code> into line 2:</p> <pre><code>old 1 { 2 &quot;foo1&quot;: &quot;bar1&quot; 3 } new 1 { 2 &quot;foo2&quot;: &quot;bar2&quot; 3 &quot;foo1&quot;: &quot;...
[ { "answer_id": 74537707, "author": "Klox", "author_id": 850332, "author_profile": "https://Stackoverflow.com/users/850332", "pm_score": 1, "selected": false, "text": "git diff -w" }, { "answer_id": 74543554, "author": "quetzalcoatl", "author_id": 717732, "author_profi...
2022/11/22
[ "https://Stackoverflow.com/questions/74537045", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9030977/" ]
74,537,055
<p>My company implemented Privileged Identity Management and I'm trying to make my life a bit easier by requesting a role straight from a Powershell script. I'm logging in with <s>Connect-AzureAD</s> Connect-MGGraph but it doesn't ask for my MFA which is a requirement to request a role assignement (and that's good thin...
[ { "answer_id": 74537707, "author": "Klox", "author_id": 850332, "author_profile": "https://Stackoverflow.com/users/850332", "pm_score": 1, "selected": false, "text": "git diff -w" }, { "answer_id": 74543554, "author": "quetzalcoatl", "author_id": 717732, "author_profi...
2022/11/22
[ "https://Stackoverflow.com/questions/74537055", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15330939/" ]
74,537,078
<p>After <a href="https://storybook.js.org/docs/react/get-started/install" rel="noreferrer">installing and configuring Storybook</a> on my Next.js application and running <code>build-storybook</code> I am receiving the following error.</p> <p><em>Note</em>: I am using npm version <code>8.19.1</code>. The project is wri...
[ { "answer_id": 74539085, "author": "mario_sunny", "author_id": 2301287, "author_profile": "https://Stackoverflow.com/users/2301287", "pm_score": 4, "selected": true, "text": "enhanced-resolve install enchanced-resolve 5.10.0 package.json node_modules // package.json\n{\n \"overrides\": ...
2022/11/22
[ "https://Stackoverflow.com/questions/74537078", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2301287/" ]
74,537,085
<p>I am trying to run a Xamarin.Forms application where the <code>.Core</code> project is <code>.NET Standard 2.0</code>. I'm using Visual Studio 2022 and this is the first time I've run a Xamarin solution.</p> <p>The <code>nnn.Core</code> project does not build and gives a series of identical compilation errors</p> <b...
[ { "answer_id": 74539085, "author": "mario_sunny", "author_id": 2301287, "author_profile": "https://Stackoverflow.com/users/2301287", "pm_score": 4, "selected": true, "text": "enhanced-resolve install enchanced-resolve 5.10.0 package.json node_modules // package.json\n{\n \"overrides\": ...
2022/11/22
[ "https://Stackoverflow.com/questions/74537085", "https://Stackoverflow.com", "https://Stackoverflow.com/users/71376/" ]
74,537,101
<p>I have a Spring Boot application which is using Spring Cloud function to expose the functions as an end points. Currently we are using angular application as a consumer of the functions from the spring boot application. When we call the end point using httpClient module in angular, Its showing CORS error. I have tri...
[ { "answer_id": 74539085, "author": "mario_sunny", "author_id": 2301287, "author_profile": "https://Stackoverflow.com/users/2301287", "pm_score": 4, "selected": true, "text": "enhanced-resolve install enchanced-resolve 5.10.0 package.json node_modules // package.json\n{\n \"overrides\": ...
2022/11/22
[ "https://Stackoverflow.com/questions/74537101", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2098379/" ]
74,537,126
<p>I want to surround each of the following array items with the <code>^</code> sign like this:</p> <pre><code>const signs = [',', '!!', '?!', '!?', '...', '..', '.', '?', '؟!', '!؟', '!', '؟', ':']; const input = 'this is, a text?' // this is the desired result : 'this is ^,^ a text ^?^' </code></pre> <p>as you see ...
[ { "answer_id": 74537269, "author": "hudy9x", "author_id": 17752111, "author_profile": "https://Stackoverflow.com/users/17752111", "pm_score": 0, "selected": false, "text": "const input = 'this is, a text? are you happy !! haha';\nconst regex = /(!!|,|\\?\\?)/g\nconsole.log(input.replaceA...
2022/11/22
[ "https://Stackoverflow.com/questions/74537126", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10715551/" ]
74,537,174
<p>I have a structure that gets rendered via <code>template</code>. e.g.:</p> <pre><code>type Foo struct { Created time.Time ... } </code></pre> <p>I pass this value to a template, and I'd like to this rendered see:</p> <pre><code> Created at 2022-11-22 9:50 (0d1h12m34s ago) </code></pre> <p>Displaying the timesta...
[ { "answer_id": 74537278, "author": "rrossmiller", "author_id": 16762798, "author_profile": "https://Stackoverflow.com/users/16762798", "pm_score": -1, "selected": false, "text": "package main\n\nimport (\n \"fmt\"\n \"time\"\n)\n\ntype Foo struct {\n Created time.Time\n // .....
2022/11/22
[ "https://Stackoverflow.com/questions/74537174", "https://Stackoverflow.com", "https://Stackoverflow.com/users/185478/" ]
74,537,192
<p>How can I get rid of the nested lists and only keep the first element of each list in <code>ColumnB</code>?</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>ColumnA</th> <th>ColumnB</th> </tr> </thead> <tbody> <tr> <td>first</td> <td>c(1, 2, 3)</td> </tr> <tr> <td>second</td> <td>c(4, 5, ...
[ { "answer_id": 74537204, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 3, "selected": true, "text": "map list first library(dplyr)\nlibrary(purrr)\ndf1 %>%\n mutate(ColumnB = map_dbl(ColumnB, first))\n # A tibble: 3 ×...
2022/11/22
[ "https://Stackoverflow.com/questions/74537192", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19985847/" ]
74,537,209
<p>I have a very large vector in which I want to add the total number of elements as a condition that repeat numbers do not characterize a new element, for example:</p> <pre><code>V=[0,5,1,8,9,1,1,] </code></pre> <p>My desired answer would be:5</p> <p>But I can't think of a way to do that because with the count functio...
[ { "answer_id": 74538555, "author": "PierU", "author_id": 14778592, "author_profile": "https://Stackoverflow.com/users/14778592", "pm_score": 0, "selected": false, "text": "integer function count_unique(x) result(n)\nimplicit none\ninteger, intent(in) :: x(:)\ninteger, allocatable :: y(:)...
2022/11/22
[ "https://Stackoverflow.com/questions/74537209", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20574940/" ]
74,537,222
<p>In pytest, I would like to capture, for example, the result of something like <code>assert a==b</code> in a variable. Any idea how do I do that?</p> <pre><code>var = assert fruit1 == fruit2 </code></pre> <p>does not capture the assert value in var.</p> <p>Thanks in advance!</p> <p>Tried</p> <pre><code>var = assert f...
[ { "answer_id": 74537457, "author": "psychicesp", "author_id": 13741789, "author_profile": "https://Stackoverflow.com/users/13741789", "pm_score": 0, "selected": false, "text": "var = fruit1 == fruit2\n\nassert var\n def add_to_database(expression, con = \"default_file.txt\"):\n # not ...
2022/11/22
[ "https://Stackoverflow.com/questions/74537222", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13138241/" ]
74,537,227
<p>I have this setup:</p> <pre><code>ID T Date 2 T2 2022-11-18 3 T1 2022-11-21 </code></pre> <p>and in the main fact table there are deals with ID 2 and 3.</p> <p>Date is an attribute and appears, and works correctly, as a slicer in a pivot table in Excel. T is also an attribute, not visible, purely for the ca...
[ { "answer_id": 74537457, "author": "psychicesp", "author_id": 13741789, "author_profile": "https://Stackoverflow.com/users/13741789", "pm_score": 0, "selected": false, "text": "var = fruit1 == fruit2\n\nassert var\n def add_to_database(expression, con = \"default_file.txt\"):\n # not ...
2022/11/22
[ "https://Stackoverflow.com/questions/74537227", "https://Stackoverflow.com", "https://Stackoverflow.com/users/669774/" ]
74,537,236
<p>I have a table that contains a varchar column which is indexed. The values in this column consist of a prefix and an incrementing number value. It is not necessary the values will be in order.</p> <pre><code>ABC00010 ABC00011 ABC00015 ABC00012 ABC00017 ABC00016 and so on... </code></pre> <p>There may be missing valu...
[ { "answer_id": 74537542, "author": "Tim Jarosz", "author_id": 2452207, "author_profile": "https://Stackoverflow.com/users/2452207", "pm_score": 2, "selected": false, "text": "TOP 1 RIGHT JOIN DECLARE @myTable TABLE (\n Col nvarchar(8)\n);\n\nINSERT INTO @myTable\nVALUES ('ABC00001'), ...
2022/11/22
[ "https://Stackoverflow.com/questions/74537236", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1057202/" ]
74,537,246
<p>After installing the following NuGet packages:</p> <ul> <li>cef.redist.x64</li> <li>CefSharp.Common</li> <li>CefSharp.Wpf</li> </ul> <p>And following the following video tutorial: <a href="https://www.youtube.com/watch?v=qputn1dogHU&amp;ab_channel=CodingDotNET" rel="nofollow noreferrer">How to make a Cefsharp Web Br...
[ { "answer_id": 74537247, "author": "Denis G. Labrecque", "author_id": 4682228, "author_profile": "https://Stackoverflow.com/users/4682228", "pm_score": -1, "selected": false, "text": "C:\\Users\\username\\.nuget" } ]
2022/11/22
[ "https://Stackoverflow.com/questions/74537246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4682228/" ]
74,537,251
<p>I'm trying to implement a function that will count how many 'n' of rooks can there be in a chess board of 'n' size without colliding in a position that can be attacked by another rook. I have used as a base a 4*4 grid. I'm struggling with the concept to create the array and how to proceed with the recursion (it has ...
[ { "answer_id": 74537325, "author": "ControlAltDel", "author_id": 1291492, "author_profile": "https://Stackoverflow.com/users/1291492", "pm_score": 0, "selected": false, "text": "while (n > 1) {\n // update solution var?\n solutions += n * recursively(n -1);\n}\n" }, { "answer_i...
2022/11/22
[ "https://Stackoverflow.com/questions/74537251", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19153279/" ]
74,537,314
<p>I am new to VBA, and i would need some help in dealing with my data.</p> <p>I want to delete the column if every value it contains are equal to zero</p> <p>I have this so far:</p> <pre><code>Sub delete() Dim FinalCol As Integer FinalCol = Range(&quot;A1&quot;).End(xlToRight).Column For i = FinalCol To 1 Step -1 ...
[ { "answer_id": 74537333, "author": "BigBen", "author_id": 9245853, "author_profile": "https://Stackoverflow.com/users/9245853", "pm_score": 2, "selected": false, "text": "CountIfs Sub delete()\n Dim FinalCol As Long\n FinalCol = Cells(1, Columns.Count).End(xlToLeft).Column\n\n Dim ...
2022/11/22
[ "https://Stackoverflow.com/questions/74537314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20564413/" ]
74,537,340
<p>Why is &quot;internal const&quot; being overridden in a child class but &quot;protected const&quot; can't?</p> <p>Sample code:</p> <pre><code> class A { internal const string iStr = &quot;baseI&quot;; protected const string pStr = &quot;baseP&quot;; void foo() { st...
[ { "answer_id": 74537520, "author": "Sweeper", "author_id": 5133585, "author_profile": "https://Stackoverflow.com/users/5133585", "pm_score": 4, "selected": true, "text": "pStr B A override B B A B internal const string iStr = \"baseI\";\nprotected const string pStr = \"baseP\";\ninternal...
2022/11/22
[ "https://Stackoverflow.com/questions/74537340", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5844128/" ]
74,537,381
<p>When I change the enumerated type variables from 4 bit to 32 bit, my error is appeased. I am wondering why I cannot keep it at 4 bit in this code.</p> <p>Here are some pertinent snippets; I have deleted code related to non-pertinent variables:</p> <p>Testbench:</p> <pre><code>module ALUtestbench; //Variable Declar...
[ { "answer_id": 74537520, "author": "Sweeper", "author_id": 5133585, "author_profile": "https://Stackoverflow.com/users/5133585", "pm_score": 4, "selected": true, "text": "pStr B A override B B A B internal const string iStr = \"baseI\";\nprotected const string pStr = \"baseP\";\ninternal...
2022/11/22
[ "https://Stackoverflow.com/questions/74537381", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20575008/" ]
74,537,382
<p>I have a file, which contains strings separated by spaces, tabs and carriage return:</p> <pre><code>one two three four </code></pre> <p>I'm trying to remove all spaces, tabs and carriage return:</p> <pre><code>def txt_cleaning(fname): with open(fname) as f: new_txt = [] fname = f....
[ { "answer_id": 74537522, "author": "Johnny Mopp", "author_id": 669576, "author_profile": "https://Stackoverflow.com/users/669576", "pm_score": 3, "selected": true, "text": "def txt_cleaning(fname):\n new_text = []\n with open(fname) as f:\n for line in f.readlines():\n ...
2022/11/22
[ "https://Stackoverflow.com/questions/74537382", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3892557/" ]
74,537,431
<p>I have upgraded from react-navigation 5 to 6:</p> <pre><code>- &quot;@react-navigation/bottom-tabs&quot;: &quot;^5.10.6&quot;, - &quot;@react-navigation/material-top-tabs&quot;: &quot;^5.3.15&quot;, - &quot;@react-navigation/native&quot;: &quot;^5.8.6&quot;, - &quot;@react-navigation/routers&quot;: &quot...
[ { "answer_id": 74545314, "author": "Solly", "author_id": 4948751, "author_profile": "https://Stackoverflow.com/users/4948751", "pm_score": 2, "selected": true, "text": "ScrollView ScrollView react-native-gesture-handler" }, { "answer_id": 74599088, "author": "Florin Dobre", ...
2022/11/22
[ "https://Stackoverflow.com/questions/74537431", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1979861/" ]
74,537,453
<p>I saw a code snippet here some time ago that dealt with PowerShell and HTML. An HTML code was passed into a variable. The beginning and the end were delimited with @&quot; and &quot;@. In a response, the @ delimiter was labelled with a specific term. Unfortunately, I did not save the post. Can someone tell me what t...
[ { "answer_id": 74537591, "author": "frankM_DN", "author_id": 20034020, "author_profile": "https://Stackoverflow.com/users/20034020", "pm_score": 1, "selected": false, "text": "$html = @\"\n<body>\n <h1>Header 1</h1>\n <p>Paragraph</p>\n</body>\n@\"\n /" }, { "answer_id": 74...
2022/11/22
[ "https://Stackoverflow.com/questions/74537453", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10167615/" ]
74,537,476
<p>I have an object called <code>dataLookup</code>, the contents of which are <a href="https://pastebin.com/MG4xB8ht" rel="nofollow noreferrer">https://pastebin.com/MG4xB8ht</a>. This is what one item looks like in it:</p> <pre class="lang-js prettyprint-override"><code> { &quot;key&quot;: &quot;Andaman &amp...
[ { "answer_id": 74537634, "author": "Prabhu", "author_id": 6080567, "author_profile": "https://Stackoverflow.com/users/6080567", "pm_score": -1, "selected": false, "text": "let list = [{\n \"state\": \"Andaman & Nicobar\",\n \"fcra_registered\": 8,\n \"total\": 140\n}...
2022/11/22
[ "https://Stackoverflow.com/questions/74537476", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4112751/" ]
74,537,484
<p>So, I'm trying to make a grade calculator and I have run into some problems with my JS form table.</p> <p>I'm trying to find a way so that if the user does not type in numbers for all 3 of the b, c, and d values it will still give me the user's class grade.</p> <p>However, when the user is not typing in numbers for ...
[ { "answer_id": 74537634, "author": "Prabhu", "author_id": 6080567, "author_profile": "https://Stackoverflow.com/users/6080567", "pm_score": -1, "selected": false, "text": "let list = [{\n \"state\": \"Andaman & Nicobar\",\n \"fcra_registered\": 8,\n \"total\": 140\n}...
2022/11/22
[ "https://Stackoverflow.com/questions/74537484", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20549635/" ]
74,537,487
<p>I see equivalent operations being done several times in my Matlab code, and I think, there must be a way to condense these and do it all once. In this case it was checking whether some variables were less than a certain epsilon:</p> <pre><code>if abs(beta) &lt; tol beta = 0; end if abs(alpha) &lt; tol alpha ...
[ { "answer_id": 74537634, "author": "Prabhu", "author_id": 6080567, "author_profile": "https://Stackoverflow.com/users/6080567", "pm_score": -1, "selected": false, "text": "let list = [{\n \"state\": \"Andaman & Nicobar\",\n \"fcra_registered\": 8,\n \"total\": 140\n}...
2022/11/22
[ "https://Stackoverflow.com/questions/74537487", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4918319/" ]
74,537,518
<p>I'm trying to implement a class in order to pass the following <strong>test</strong> (Using bytewise operators &amp; and |</p> <pre><code>public void hasFlagTest1() { byte resource = ResourceUtil.getFlag(FLAG_PUBLIC_SECURITY, FLAG_PRIVATE_SECURITY, FLAG_BASIC_LIFE_SUPPORT); Assert.assertTrue(ResourceUtil.ha...
[ { "answer_id": 74537619, "author": "Ben Borchard", "author_id": 4054720, "author_profile": "https://Stackoverflow.com/users/4054720", "pm_score": 1, "selected": false, "text": "public class ResourceUtil {\n\n public static boolean hasPublicSecurity(byte resource) {\n return res...
2022/11/22
[ "https://Stackoverflow.com/questions/74537518", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15416320/" ]
74,537,546
<p>I'm using Airflow airflow-2.3.3 (through GCP Composer)</p> <p>I pass this yaml configuration when deploying my DAG:</p> <pre><code> dag_args: dag_id: FTP_DAILY default_args: owner: 'Dev team' start_date: &quot;00:00:00&quot; max_active_runs: 1 retries: 2 schedule_interval: &quot;0 7 * * *&quot;...
[ { "answer_id": 74537619, "author": "Ben Borchard", "author_id": 4054720, "author_profile": "https://Stackoverflow.com/users/4054720", "pm_score": 1, "selected": false, "text": "public class ResourceUtil {\n\n public static boolean hasPublicSecurity(byte resource) {\n return res...
2022/11/22
[ "https://Stackoverflow.com/questions/74537546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5940480/" ]
74,537,571
<p>I created rdd from CSV lines = sc.textFile(data) now I need to convert lines to key value rdd where value where value will be string (after splitting) and key will be number of column of csv for example CSV</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Col 1</th> <th>Col2</th> </tr> </...
[ { "answer_id": 74537619, "author": "Ben Borchard", "author_id": 4054720, "author_profile": "https://Stackoverflow.com/users/4054720", "pm_score": 1, "selected": false, "text": "public class ResourceUtil {\n\n public static boolean hasPublicSecurity(byte resource) {\n return res...
2022/11/22
[ "https://Stackoverflow.com/questions/74537571", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20573070/" ]
74,537,597
<p>I have an array of strings <code>a</code> that I would like to print like e.g.</p> <pre><code>'a1','a2','a3' </code></pre> <p>where <code>a1 = a[0]</code>, <code>a2 = a[1]</code>, <code>a3 = a[2]</code>.</p> <p>For some reason</p> <pre><code>printformat = '' for i in range(3): printformat+=a[i]+&quot;',&quot; </...
[ { "answer_id": 74537619, "author": "Ben Borchard", "author_id": 4054720, "author_profile": "https://Stackoverflow.com/users/4054720", "pm_score": 1, "selected": false, "text": "public class ResourceUtil {\n\n public static boolean hasPublicSecurity(byte resource) {\n return res...
2022/11/22
[ "https://Stackoverflow.com/questions/74537597", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2820579/" ]
74,537,598
<p>I am very new at this, so bear with me please.</p> <p>I do this:</p> <pre><code>example= index Date Column_1 Column_2 1 2019-06-17 Car Red 2 2019-08-10 Car Yellow 3 2019-08-15 Truck Yellow 4 2020-08-12 Truck Yellow data = example.groupby([pd.Grouper(fr...
[ { "answer_id": 74537619, "author": "Ben Borchard", "author_id": 4054720, "author_profile": "https://Stackoverflow.com/users/4054720", "pm_score": 1, "selected": false, "text": "public class ResourceUtil {\n\n public static boolean hasPublicSecurity(byte resource) {\n return res...
2022/11/22
[ "https://Stackoverflow.com/questions/74537598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20575159/" ]
74,537,603
<p>usually I use POST or GET requests except for GET.get paginations, but I don't understand the concept there are only two possibilities POST or GET .</p> <p>example even if there is the same effect I do not understand the difference between <code>request.GET.get('page') and request.GET[&quot;page&quot;] request.POST[...
[ { "answer_id": 74537661, "author": "Anton Shpigunov", "author_id": 8516606, "author_profile": "https://Stackoverflow.com/users/8516606", "pm_score": 1, "selected": false, "text": "request.POST dict dict d[x] dict x d.get(x, default) KeyError d.get()" }, { "answer_id": 74537719, ...
2022/11/22
[ "https://Stackoverflow.com/questions/74537603", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20575141/" ]
74,537,658
<p>I have a requirement where I need to Restart a set of windows services on a set of hosts sequentially with 60 seconds between service start. Appreciate your help</p> <p>Order of Services</p> <ol> <li>Polling Agent Service</li> </ol> <blockquote> <pre><code> wait 60 seconds then start 2) Memcached wait 30 seconds ...
[ { "answer_id": 74537661, "author": "Anton Shpigunov", "author_id": 8516606, "author_profile": "https://Stackoverflow.com/users/8516606", "pm_score": 1, "selected": false, "text": "request.POST dict dict d[x] dict x d.get(x, default) KeyError d.get()" }, { "answer_id": 74537719, ...
2022/11/22
[ "https://Stackoverflow.com/questions/74537658", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18279293/" ]
74,537,660
<p>I have two parallel datasets <code>dataset1</code> and <code>dataset2</code> and following is my code to load them in parallel using <code>SubsetRandomSampler</code> where I provide <code>train_indices</code> for dataloading.</p> <p>P.S. Even after setting <code>num_workers=0</code> and seeding <code>np</code> as we...
[ { "answer_id": 74538074, "author": "Pankaj Chandravanshi", "author_id": 17743521, "author_profile": "https://Stackoverflow.com/users/17743521", "pm_score": 1, "selected": false, "text": "dataset1 dataset1 dataset2 dataset2 dataset1 # combine the two datasets into a single dataset of tupl...
2022/11/22
[ "https://Stackoverflow.com/questions/74537660", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3306097/" ]
74,537,662
<p>I need help with creating relations between countries in neo4j using python. I have a code, but in neo4j browser it doesn't create relations.</p> <pre><code>from neo4j import GraphDatabase driver = GraphDatabase.driver(&quot;neo4j://localhost:7687&quot;, auth=(&quot;neo4j&quot;, &quot;t...
[ { "answer_id": 74540209, "author": "jose_bacoy", "author_id": 7371893, "author_profile": "https://Stackoverflow.com/users/7371893", "pm_score": 2, "selected": true, "text": " MATCH (a:Country) WHERE a.name = $name \n MERGE (a)-[:HAS_BORDER_WITH]-(:Country {name: $bcountry}) \n RETURN DIS...
2022/11/22
[ "https://Stackoverflow.com/questions/74537662", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20263206/" ]
74,537,667
<p>I want my code to concat a array with its index, using Join</p> <p>x=['G','r','e','e','t'] x.join(<code>${index}</code>) then x should be G0r1e2e3t4</p> <p>can I achieve this using join?</p>
[ { "answer_id": 74537695, "author": "Dimava", "author_id": 5734961, "author_profile": "https://Stackoverflow.com/users/5734961", "pm_score": 1, "selected": false, "text": "['G','r','e','e','t'].map((e, i) => e + i).join('')\n" }, { "answer_id": 74537712, "author": "Boguz", ...
2022/11/22
[ "https://Stackoverflow.com/questions/74537667", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7741379/" ]
74,537,690
<p>I have a dataframe column that looks like this:</p> <pre><code> paths 0 ['/api/v2/clouds', '/api/v2/clouds/{cloud}'] 1 ['/v0.1/book-lists/{type}/{date}', '/v0.1/book-lists] 2 ['/v1/Video/Rooms', '/v1/...
[ { "answer_id": 74537793, "author": "Tim Roberts", "author_id": 1883316, "author_profile": "https://Stackoverflow.com/users/1883316", "pm_score": 2, "selected": false, "text": "import pandas as pd\nimport re\n\ndata = [\n [['/api/v2/clouds', '/api/v2/clouds/{cloud}']],\n [['/v0....
2022/11/22
[ "https://Stackoverflow.com/questions/74537690", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17192742/" ]
74,537,763
<p>I am trying to work on a bash script that will take files from one github repo and copy them over to another one.</p> <p>I have this mostly working however 1 file I am trying to move over has spaces on all of its blank lines like so:</p> <pre><code>FROM metrics_flags ORDER BY DeliveryDate ASC ) ...
[ { "answer_id": 74537793, "author": "Tim Roberts", "author_id": 1883316, "author_profile": "https://Stackoverflow.com/users/1883316", "pm_score": 2, "selected": false, "text": "import pandas as pd\nimport re\n\ndata = [\n [['/api/v2/clouds', '/api/v2/clouds/{cloud}']],\n [['/v0....
2022/11/22
[ "https://Stackoverflow.com/questions/74537763", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14540137/" ]
74,537,823
<p>I'm having trouble understanding a very basic x86 instruction. The instruction is</p> <pre><code>0x080491d7 &lt;+1&gt;: mov %esp,%ebp </code></pre> <p>I know that it moves the value of esp into ebp. But I'm trying to understand the opcodes. The instruction is 2 bytes long, not 1 which I'm confused about. I ...
[ { "answer_id": 74537996, "author": "jcmvbkbc", "author_id": 1943346, "author_profile": "https://Stackoverflow.com/users/1943346", "pm_score": 2, "selected": false, "text": "8B /r /r — Indicates that the ModR/M byte of the instruction contains a register operand and an r/m operand." }, ...
2022/11/22
[ "https://Stackoverflow.com/questions/74537823", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20574523/" ]
74,537,834
<p>I'm working with OpenGL in rust currently.</p> <p>and i want to create objects like VAOs and Textures into structs</p> <p>now, i wrote a custom drop implementation that calls something like <code>glDeleteTexture</code> when the objects lifetime is finished so that it clears up the memory in VRAM.</p> <p>Will the act...
[ { "answer_id": 74537883, "author": "jthulhu", "author_id": 5956261, "author_profile": "https://Stackoverflow.com/users/5956261", "pm_score": 1, "selected": false, "text": "drop fn drop<T>(_: T) {}" }, { "answer_id": 74537888, "author": "Filipe Rodrigues", "author_id": 665...
2022/11/22
[ "https://Stackoverflow.com/questions/74537834", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14608746/" ]
74,537,839
<p>I get segmentation fault exception on the next code:</p> <pre><code>class A { public: A() {} virtual ~A(){} double m_d; }; class B : public A { public: B() {} virtual ~B(){} int x; }; int main() { A* ptr = new B[5]; delete[] ptr; return 0; } </code></pre> <p>If delete d'tors, no e...
[ { "answer_id": 74538139, "author": "HolyBlackCat", "author_id": 2752075, "author_profile": "https://Stackoverflow.com/users/2752075", "pm_score": 4, "selected": false, "text": "delete [expr.delete]/2 delete delete [expr.delete]/3" }, { "answer_id": 74538204, "author": "Maciej...
2022/11/22
[ "https://Stackoverflow.com/questions/74537839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17101210/" ]
74,537,844
<p>I have a table similar to the following</p> <pre><code>CREATE TABLE `main.viewings` ( event_time TIMESTAMP, other_columns INT64, more_columns STRING ) PARTITION BY DATE(event_time) OPTIONS( partition_expiration_days=365 ); </code></pre> <p>I then aggregate every new day's data and append that into a report...
[ { "answer_id": 74538139, "author": "HolyBlackCat", "author_id": 2752075, "author_profile": "https://Stackoverflow.com/users/2752075", "pm_score": 4, "selected": false, "text": "delete [expr.delete]/2 delete delete [expr.delete]/3" }, { "answer_id": 74538204, "author": "Maciej...
2022/11/22
[ "https://Stackoverflow.com/questions/74537844", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4635851/" ]
74,537,845
<p>I'm trying to synchronize two JTextFields. If I write in one JTextField, I want to write the same text in other JTextField simultaneously.</p> <p>I'm not sure what event use for this requirement.</p> <p>My example code:</p> <pre><code>private void txt_idEstablecimientoActionPerformed(java.awt.event.ActionEvent evt) ...
[ { "answer_id": 74538465, "author": "camickr", "author_id": 131872, "author_profile": "https://Stackoverflow.com/users/131872", "pm_score": 2, "selected": false, "text": "Document JTextField textField1 = new JTextField(...);\nJTextField textField2 = new JTextField(...);\ntextField2.setDoc...
2022/11/22
[ "https://Stackoverflow.com/questions/74537845", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12144967/" ]
74,537,855
<p>I am trying to create a demo website for users to test. I want to restore the databse every x hours. When I run the php script in browser it works. It drops the tables and restores the databse without any issues. When I add the same file in cron, the tables are dropped but it does not restore the databse. I am not s...
[ { "answer_id": 74537989, "author": "DoMajor7th", "author_id": 6654885, "author_profile": "https://Stackoverflow.com/users/6654885", "pm_score": 0, "selected": false, "text": "*/10 * * * * cd /home/demo/public_html/ && /usr/local/bin/php /home/demo/public_html/db.php\n" }, { "answ...
2022/11/22
[ "https://Stackoverflow.com/questions/74537855", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6504229/" ]
74,537,912
<p><a href="https://fr.wikipedia.org/wiki/Plus_petit_commun_multiple" rel="nofollow noreferrer">PPCM</a> which is the least common multiple, lowest common multiple, or smallest common multiple of two integers a and b, is the smallest positive integer that is divisible by both a and b. Since division of integers by zero...
[ { "answer_id": 74538108, "author": "Samwise", "author_id": 3799759, "author_profile": "https://Stackoverflow.com/users/3799759", "pm_score": 0, "selected": false, "text": ">>> def lcm(a, b):\n... a, b = sorted((a, b))\n... return next(i for i in range(b, a * b + 1, b) if i % a ==...
2022/11/22
[ "https://Stackoverflow.com/questions/74537912", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20522314/" ]
74,537,932
<p>How to use the <code>name</code> property in this object:</p> <pre><code>const obj = { name: 'root/branch/subbranch/leaf', value: 'my-value' } </code></pre> <p>To create an object with the following format:</p> <pre><code>{ root: { branch: { subbranch: { leaf: 'my-value' } } } } <...
[ { "answer_id": 74575531, "author": "Sedat Polat", "author_id": 668572, "author_profile": "https://Stackoverflow.com/users/668572", "pm_score": 1, "selected": false, "text": "const obj = {\n name: 'root/branch/subbranch/leaf',\n value: 'my-value'\n}\n\nconst recursiveNest = (result, val...
2022/11/22
[ "https://Stackoverflow.com/questions/74537932", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2667374/" ]
74,537,941
<p>I am quite new to VSTO and C# programming and am self-learning. I created an Outlook addin that does several things. One of the features is that it takes all sent items and adds them to our DB. When the user sends an email from Outlook it works as expected and prompts/adds it perfectly. But when they sent an ema...
[ { "answer_id": 74575531, "author": "Sedat Polat", "author_id": 668572, "author_profile": "https://Stackoverflow.com/users/668572", "pm_score": 1, "selected": false, "text": "const obj = {\n name: 'root/branch/subbranch/leaf',\n value: 'my-value'\n}\n\nconst recursiveNest = (result, val...
2022/11/22
[ "https://Stackoverflow.com/questions/74537941", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12699232/" ]
74,537,948
<p>I can't figure out why the system bars still remain in landscape although I have used</p> <pre><code>WindowCompat.setDecorFitsSystemWindows(window, true) WindowInsetsControllerCompat(window, nView).let { controller -&gt; controller.hide(WindowInsetsCompat.Type.systemBars()) controller.systemBarsBehavior = Wi...
[ { "answer_id": 74575531, "author": "Sedat Polat", "author_id": 668572, "author_profile": "https://Stackoverflow.com/users/668572", "pm_score": 1, "selected": false, "text": "const obj = {\n name: 'root/branch/subbranch/leaf',\n value: 'my-value'\n}\n\nconst recursiveNest = (result, val...
2022/11/22
[ "https://Stackoverflow.com/questions/74537948", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3288058/" ]
74,537,975
<p>This is a follow-up question to this: <a href="https://stackoverflow.com/questions/74510669/how-to-use-paste0-with-input-in-shiny">How to use paste0 with input$ in shiny</a></p> <p>I don't know if this is possible and I have been through all the persistent storage history the last years (here is a representative exa...
[ { "answer_id": 74613533, "author": "asd-tm", "author_id": 5043424, "author_profile": "https://Stackoverflow.com/users/5043424", "pm_score": 3, "selected": true, "text": "app.R library(shiny)\nlibrary(shinyWidgets)\nlibrary(dplyr)\nlibrary(openxlsx)\n\ndefaultDF <- data.frame(Name = c(\"A...
2022/11/22
[ "https://Stackoverflow.com/questions/74537975", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13321647/" ]
74,538,022
<p>I need to fetch my array field in dataframe and assign it to a variable for further proceeding further. I am using collect() function, but its not working properly.</p> <p><strong>Input dataframe:</strong></p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Department</th> <th>Language</th> ...
[ { "answer_id": 74538371, "author": "psychicesp", "author_id": 13741789, "author_profile": "https://Stackoverflow.com/users/13741789", "pm_score": 1, "selected": false, "text": "# To recreate your dataframe\n\ndf = pd.DataFrame({\n 'Department': [['A','B', 'C']],\n 'Language': 'Engl...
2022/11/22
[ "https://Stackoverflow.com/questions/74538022", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19701707/" ]
74,538,048
<p>So i'm basicly trying to fetch some data from the duolingo api and make all the different parts accesible via a class (I think that's the best way to make the data accesible in other files?)</p> <p>I currently have this code:</p> <pre><code>class DuoData: def __init__(self, username): self.username = use...
[ { "answer_id": 74538371, "author": "psychicesp", "author_id": 13741789, "author_profile": "https://Stackoverflow.com/users/13741789", "pm_score": 1, "selected": false, "text": "# To recreate your dataframe\n\ndf = pd.DataFrame({\n 'Department': [['A','B', 'C']],\n 'Language': 'Engl...
2022/11/22
[ "https://Stackoverflow.com/questions/74538048", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20561150/" ]
74,538,092
<p>So I was adding columns and the buttons wouldn't line up well is there a way to fix this?</p> <p><img src="https://i.stack.imgur.com/Do0LG.png" alt="enter image description here" /></p> <p><img src="https://i.stack.imgur.com/Do0LG.png" alt="" /></p> <p>Tried changing the div code inside but it still wouldn't do anyt...
[ { "answer_id": 74538371, "author": "psychicesp", "author_id": 13741789, "author_profile": "https://Stackoverflow.com/users/13741789", "pm_score": 1, "selected": false, "text": "# To recreate your dataframe\n\ndf = pd.DataFrame({\n 'Department': [['A','B', 'C']],\n 'Language': 'Engl...
2022/11/22
[ "https://Stackoverflow.com/questions/74538092", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20066054/" ]
74,538,102
<p>As per the title, I am trying to create a JS script that cycles through a series of images in the same <code>&lt;div&gt;</code>. The images will be cycled through to create a smooth animation. So far, I have this. The images cycle through but without a smooth transition.</p> <p><div class="snippet" data-lang="js" da...
[ { "answer_id": 74538242, "author": "edemaine", "author_id": 7797661, "author_profile": "https://Stackoverflow.com/users/7797661", "pm_score": 1, "selected": false, "text": "display: block opacity display: none position: absolute p-centered let slideIndex = 0;\n\nfunction showSlides() {\n...
2022/11/22
[ "https://Stackoverflow.com/questions/74538102", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1925934/" ]
74,538,164
<p>I need to run:</p> <pre class="lang-sql prettyprint-override"><code>select arrayagg(o_clerk) within group (order by o_orderkey desc) OVER (PARTITION BY o_orderkey order by o_orderkey ROWS BETWEEN 3 PRECEDING AND CURRENT ROW) AS RESULT from sample_data </code></pre> <p>But Snowflake returns the error <cod...
[ { "answer_id": 74538165, "author": "Felipe Hoffa", "author_id": 132438, "author_profile": "https://Stackoverflow.com/users/132438", "pm_score": 1, "selected": false, "text": "ARRAY_AGG() with numbered as (\n select o_orderkey, o_clerk, index\n from sample_data\n), crossed as (\n ...
2022/11/22
[ "https://Stackoverflow.com/questions/74538164", "https://Stackoverflow.com", "https://Stackoverflow.com/users/132438/" ]
74,538,172
<p>I have the code which is running properly, how can i write this piece of code better</p> <pre><code>if (!this.isThis) { return [ { label: this.$t('profile'), value: this.acc.AccountNumber, id: 'ProfileNumber' }, ] } else { return [ { label: this.$t('market'), value: th...
[ { "answer_id": 74538165, "author": "Felipe Hoffa", "author_id": 132438, "author_profile": "https://Stackoverflow.com/users/132438", "pm_score": 1, "selected": false, "text": "ARRAY_AGG() with numbered as (\n select o_orderkey, o_clerk, index\n from sample_data\n), crossed as (\n ...
2022/11/22
[ "https://Stackoverflow.com/questions/74538172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20045615/" ]
74,538,180
<p>I've seen plenty of threads on how to find all combinations that add up to a number with one list, but wanted to know how to expand this such that you can only pick one number at a time, from a list of lists</p> <p><strong>Question:</strong><br/> You must select 1 number from each list, how do you find all combinati...
[ { "answer_id": 74538165, "author": "Felipe Hoffa", "author_id": 132438, "author_profile": "https://Stackoverflow.com/users/132438", "pm_score": 1, "selected": false, "text": "ARRAY_AGG() with numbered as (\n select o_orderkey, o_clerk, index\n from sample_data\n), crossed as (\n ...
2022/11/22
[ "https://Stackoverflow.com/questions/74538180", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7787537/" ]
74,538,190
<p>Currently I'm using checkmarx to find vulnerabilities on mi code. The javascript files aparently haev some potential xss vulnerabilites when I use jquery val() function and then try to append this val. How should I solve, sanitize or encode this to avoid this problem?</p> <p>Here some examples about what checkmarx m...
[ { "answer_id": 74538356, "author": "Barmar", "author_id": 1491895, "author_profile": "https://Stackoverflow.com/users/1491895", "pm_score": 0, "selected": false, "text": "if (ContactId != \"\" && Type != \"\") {\n var ID = ContactId + \"_\" + Type;\n var Img = jQuery(\"<img>\", {\n ...
2022/11/22
[ "https://Stackoverflow.com/questions/74538190", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13502705/" ]
74,538,199
<p>Here is a small example of the kind of data I have:</p> <pre class="lang-r prettyprint-override"><code>transactions &lt;- tibble(id = seq(1:7), day = paste(rep(&quot;day&quot;, each = 7), seq(1:7), sep = &quot;&quot;), sent_to = c(NA, &quot;Garden Cinema&quot;, &quot;Pas...
[ { "answer_id": 74538279, "author": "stefan", "author_id": 12993861, "author_profile": "https://Stackoverflow.com/users/12993861", "pm_score": 3, "selected": true, "text": "change purrr::accumulate balance library(dplyr, warn = FALSE)\nlibrary(purrr)\n\ntransactions |> \n mutate(change =...
2022/11/22
[ "https://Stackoverflow.com/questions/74538199", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14315663/" ]
74,538,224
<p>Node's <code>path.relative</code> has an unexpected quirk when resolving a file that is in the <code>from</code> directory. Below the <code>path.relative</code> returns <code>meta_url.ts</code> instead of <code>./meta_url.ts</code>, is there a node path function to help me convert <code>meta_url.ts</code> to <code>....
[ { "answer_id": 74538279, "author": "stefan", "author_id": 12993861, "author_profile": "https://Stackoverflow.com/users/12993861", "pm_score": 3, "selected": true, "text": "change purrr::accumulate balance library(dplyr, warn = FALSE)\nlibrary(purrr)\n\ntransactions |> \n mutate(change =...
2022/11/22
[ "https://Stackoverflow.com/questions/74538224", "https://Stackoverflow.com", "https://Stackoverflow.com/users/340688/" ]
74,538,263
<p>I am using React and an API in order to fetch data and prefill it to form fields, so that the user can edit an existing record.</p> <p>However, the child component seems to only be receiving the version of the <code>longhorn</code> entity created in the beginning, instead of the one fetched by the API, also failing ...
[ { "answer_id": 74538279, "author": "stefan", "author_id": 12993861, "author_profile": "https://Stackoverflow.com/users/12993861", "pm_score": 3, "selected": true, "text": "change purrr::accumulate balance library(dplyr, warn = FALSE)\nlibrary(purrr)\n\ntransactions |> \n mutate(change =...
2022/11/22
[ "https://Stackoverflow.com/questions/74538263", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20489556/" ]
74,538,264
<p>For example, I have the word: <code>sh0rt-t3rm</code>. How can I get the <code>t3rm</code> part using perl regex?</p> <p>I could get <code>sh0rt</code> by using <code>[(a-zA-Z0-9)+]\[-\]</code>, but <code>\[-\][(a-zA-Z0-9)+]</code> doesn't work to get <code>t3rm</code>.</p>
[ { "answer_id": 74538365, "author": "Bill the Lizard", "author_id": 1288, "author_profile": "https://Stackoverflow.com/users/1288", "pm_score": 2, "selected": false, "text": "-([a-zA-Z0-9]+) -" }, { "answer_id": 74538368, "author": "zdim", "author_id": 4653379, "author...
2022/11/22
[ "https://Stackoverflow.com/questions/74538264", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17518144/" ]
74,538,311
<p>I need to merge/combine 4 objects inside and array. The objects are:</p> <pre><code>{&quot;field&quot;: &quot;name&quot;,&quot;lang&quot;: &quot;it&quot;,&quot;text&quot;: &quot;RegoleAziendali&quot;} {&quot;field&quot;: &quot;pdf_url&quot;,&quot;lang&quot;: &quot;it&quot;, &quot;text&quot;: &quot;docs/it/file.pdf&q...
[ { "answer_id": 74538406, "author": "cmgchess", "author_id": 13583510, "author_profile": "https://Stackoverflow.com/users/13583510", "pm_score": 3, "selected": true, "text": "lang reduce Object.values const x = [\n{\"field\": \"name\",\"lang\": \"it\",\"text\": \"RegoleAziendali\"},\n{\"f...
2022/11/22
[ "https://Stackoverflow.com/questions/74538311", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8488158/" ]