question_id int64 37.6M 73.2M | input_text stringlengths 88 52.4k | output_text stringlengths 37 35.6k | title stringlengths 15 150 | tags stringlengths 1 107 | q_score int64 -19 397 | view_count int64 3 879k | answer_count int64 1 21 | accepted_answer_id int64 37.6M 73.8M | answer_id int64 37.6M 73.8M | a_score int64 -5 1.29k | is_accepted bool 1
class | creation_date stringlengths 20 24 | input_text_instruct stringlengths 251 52.6k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72,072,268 | Expect getting stuck when inside a foreach after first iteration<p>Output is stuck after the first iteration. Works fine when only one expect exists within the loop. Using exp_continue as well fails when used.</p>
<pre><code>#!/usr/bin/expect -f
exp_internal 1
set timeout -1
set passwords [list foo bar test]
set conne... | <p>The timeout value is the problem: expect is waiting forever to see "asd"</p>
<p>You need something like this (untested)</p>
<pre><code>set passwords {foo bar baz}
set idx 0
spawn ...
expect {
"assword:" {
if {$idx == [llength $passwords]} {
error "none of the password... | Expect getting stuck when inside a foreach after first iteration | foreach|expect|spawn | 0 | 31 | 1 | 72,073,319 | 72,073,319 | 0 | true | 2022-04-30T21:22:55.517Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Expect getting stuck when inside a foreach after first iteration<p>Output is stuck after the first iteration. Works fine when only one expect exists within t... |
72,073,510 | How to get the script to only return one letter of the first name they Input?<p>I am trying to figure out how to get only the first letter of the first name they input but everything I tried or look at other similar problems doesn't help.</p> | <p>this should work:</p>
<pre><code>name = input("name:")
first_letter = name[0]
print(first_letter)
</code></pre> | How to get the script to only return one letter of the first name they Input? | shell | 0 | 13 | 1 | 72,073,587 | 72,073,587 | 0 | true | 2022-05-01T02:06:09.020Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get the script to only return one letter of the first name they Input?<p>I am trying to figure out how to get only the first letter of the first name ... |
72,073,847 | Mongodb update a specific nested document in an array field<p>how can I update <code>discharged</code> field where id is like <code>111</code> ?</p>
<pre class="lang-js prettyprint-override"><code>{
address:'123',
txs:[
{id:'111',discharged:false},
{id:'222',discharged:false}
]
}
</code></pre> | <p><strong>Solution 1</strong></p>
<pre><code>db.collection.update({
address: "123",
"txs.id": "111"
},
{
$set: {
"txs.$.discharged": true
}
})
</code></pre>
<p><a href="https://mongoplayground.net/p/fieLKDhem2A" rel="nofollow noreferrer">Sample Mongo Playground for S... | Mongodb update a specific nested document in an array field | node.js|mongodb | 0 | 9 | 1 | 72,073,895 | 72,073,895 | 0 | true | 2022-05-01T03:49:44.003Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Mongodb update a specific nested document in an array field<p>how can I update <code>discharged</code> field where id is like <code>111</code> ?</p>
<pre cla... |
72,049,816 | Printed Table within a Table's cells not lining up<p>I'm making a <code>localhost</code> website that keeps track of my family's medications as well as has weekly print out sheets that we use to make sure all the meds to in all the proper containers, and if any are missing, we know what to pick up at the pharmacy...</p... | <p>I ended up deleting the whole thing and starting from scratch - it actually worked though, so I guess we're good...</p>
<pre><code>echo "<table id='mainMedList'><thead><tr><th colspan='100' style='text-align:center;font-weight:bold;font-variant:small-caps;font-size:1cm'>$patient</th&g... | Printed Table within a Table's cells not lining up | php|html|css|html-table | 0 | 31 | 1 | 72,074,493 | 72,074,493 | 0 | true | 2022-04-28T20:26:04Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Printed Table within a Table's cells not lining up<p>I'm making a <code>localhost</code> website that keeps track of my family's medications as well as has w... |
72,073,507 | Return a certain value from a table<p><a href="https://i.stack.imgur.com/gSyR4.png" rel="nofollow noreferrer">TABLE 1</a></p>
<p><a href="https://i.stack.imgur.com/36Zrk.png" rel="nofollow noreferrer">TABLE 2</a></p>
<p>Hi guys , might be a bit ''noob'' in terms of excel and the way i explain everything but here we go ... | <p>as the table data was not available, I created a few columns to demonstate what you would need to do.</p>
<p>VLOOKUP will not work as it expects the lookup value to be in the first column.</p>
<p>I have used the Index/match and it works fine. You can use similar one changing the column names to the correct columns i... | Return a certain value from a table | excel|indexing|match|vlookup | 0 | 31 | 1 | 72,074,604 | 72,074,604 | 0 | true | 2022-05-01T02:05:31.737Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Return a certain value from a table<p><a href="https://i.stack.imgur.com/gSyR4.png" rel="nofollow noreferrer">TABLE 1</a></p>
<p><a href="https://i.stack.img... |
71,996,572 | Unity HDRP Dark Pixels on random objects and edges<p>I have been trying to fix this problem for the past 5 days
There are a lot of annoying dark pixels on multiple random objects.</p>
<p>Examples:</p>
<p>Walls/Pillar: <a href="https://i.stack.imgur.com/DP6Lm.png" rel="nofollow noreferrer">https://i.stack.imgur.com/DP6L... | <p>I fixed the glitch by lowering the range of the lights down and increasing the environment lights the place looks a little different but its worth it</p>
<p>Before: <a href="https://cdn.discordapp.com/attachments/963813974669930516/970238045964087326/unknown.png" rel="nofollow noreferrer">https://cdn.discordapp.com/... | Unity HDRP Dark Pixels on random objects and edges | unity3d|graphics|3d|lighting | 0 | 265 | 2 | 72,075,135 | 72,075,135 | 0 | true | 2022-04-25T08:28:59.257Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unity HDRP Dark Pixels on random objects and edges<p>I have been trying to fix this problem for the past 5 days
There are a lot of annoying dark pixels on mu... |
72,074,979 | How I make AMPM to 24 Hours in PHP<p>I have this string from database - "08:30AM-09:30AM"
I want to make the string to 24H like this - "20:30-21:30"
Thank you!
Its Sentence (String Value)</p> | <p>First you need to use 'H' for get the hours on 24h format.</p>
<p>Second in this case, i propose to separate the hours first and come back together after change the date format like this:</p>
<pre><code>$from_database='08:30AM-09:30AM';
$hours=explode('-',$from_database);
echo date('H:i',strtotime($hours[0])).'-'.da... | How I make AMPM to 24 Hours in PHP | php | 0 | 19 | 1 | 72,075,277 | 72,075,277 | 0 | true | 2022-05-01T08:01:07.207Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How I make AMPM to 24 Hours in PHP<p>I have this string from database - "08:30AM-09:30AM"
I want to make the string to 24H like this - "20:30-... |
72,075,824 | Is there a way to get scrollstate from Lazyrow<p>I have made a LazyRow that i now want to be able to get the scrollposition from. What i understand Scrollablerow has been deprecated. (correct me if im wrong) The thing is that i cant make a scrollablerow so i thought lets make a lazy one then. but i have no clue how to ... | <p>For <code>Lazy</code>Scrollers, there are separate <code>Lazy</code>States.</p>
<p>I think there's just one, in fact, i.e. <code>rememberLazyListState()</code></p>
<p>Pass that as the scroll state to the row and then you can access all kinds of info. For example, you could get the index of the first visible item, as... | Is there a way to get scrollstate from Lazyrow | list|android-jetpack-compose | 0 | 23 | 1 | 72,076,176 | 72,076,176 | 0 | true | 2022-05-01T10:18:10.707Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there a way to get scrollstate from Lazyrow<p>I have made a LazyRow that i now want to be able to get the scrollposition from. What i understand Scrollabl... |
72,071,915 | Locally cached dns cannot be uncached through cache refresh linux<p>So I run a semi-private website for myself, locally hosted on my network, and port forwarded to the web. I changed from using one computer to another to host it, and whilst my public IP address correctly points to the new computer, the subdomain I'm us... | <p>I found it, it was set in my /etc/hosts file, I must've done that and forgotten about it</p> | Locally cached dns cannot be uncached through cache refresh linux | linux|ubuntu|dns|ip | 0 | 31 | 1 | 72,076,182 | 72,076,182 | 0 | true | 2022-04-30T20:21:33.703Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Locally cached dns cannot be uncached through cache refresh linux<p>So I run a semi-private website for myself, locally hosted on my network, and port forwar... |
72,049,308 | Is there any DSL (Domain Specific Language) in order to hold contracts?<p>I'm very used to protobuf, and the <code>.proto</code> files, I think it is such an amazing way of holding contracts between applications.</p>
<p>gRPC takes this to another level, but unfortunately, it isn't supported by default on the web, so we... | <p>If you are interested in code generation you should definitely look into the Eclipse Modelling Framework (EMF), if you haven't already.</p>
<p>In general, creating abstract descriptions (aka models), in the context of software engineering, can be referred to as model-driven engineering (MDE). A quick google search c... | Is there any DSL (Domain Specific Language) in order to hold contracts? | model|protocol-buffers|system|dsl | 0 | 19 | 1 | 72,076,989 | 72,076,989 | 0 | true | 2022-04-28T19:37:19.373Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there any DSL (Domain Specific Language) in order to hold contracts?<p>I'm very used to protobuf, and the <code>.proto</code> files, I think it is such an... |
72,077,364 | python select key in dict<p>have a simple request to Solr below</p>
<pre><code>response = requests.get("http://localhost:8080/solr/select?fl=id,title,description,keywords,author&q=domain:mydomain.com&rows=10&indent=on&wt=json&omitHeader=true")
result = response.json()
print type(result)
pr... | <p>Since the values you are addressing are fields of an array element, you have to address the element first.</p>
<p>Try something like:</p>
<pre><code>result['response']['docs'][0]['title']
</code></pre> | python select key in dict | python-2.7|solr|python-3.6 | 0 | 29 | 1 | 72,077,464 | 72,077,464 | 0 | true | 2022-05-01T13:58:17.490Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
python select key in dict<p>have a simple request to Solr below</p>
<pre><code>response = requests.get("http://localhost:8080/solr/select?fl=id,title,de... |
72,079,064 | Inserting string into list before specific strings and up to a certain point<p>I'm new to Python and I'm trying to figure out how I would insert a specific string that incrementally increases by 1 up to a certain point. Here's what I mean:</p>
<pre><code>my_string = ['Day1', 'RoomA', 'RoomB', 'RoomA', 'RoomB', 'Day2', ... | <p>Simple conditionals would do the trick.</p>
<pre><code>my_string = ['Day1', 'RoomA', 'RoomB', 'RoomA', 'RoomB', 'Day2', 'RoomA', 'RoomB']
ans = []
for x in my_string:
if 'Day' in x:
# reset the counter
counter = 0
else:
if 'RoomA' in x:
# RoomA observed increase counter
... | Inserting string into list before specific strings and up to a certain point | python | 0 | 29 | 1 | 72,079,128 | 72,079,128 | 0 | true | 2022-05-01T17:42:03.537Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Inserting string into list before specific strings and up to a certain point<p>I'm new to Python and I'm trying to figure out how I would insert a specific s... |
72,079,431 | How do I find a Problem file in function?<p>I'm trying to import ~160 files and reshape them, but beforehand I'm trying to bind a column to from a vector to them of the same length. They are all supposed to have 43 columns, but one has 41. Leading to the error below. Any chance I could identify which file that is?</p>
... | <p>you could use <code>map()</code> to load your data into list, give the the name of the file as list name using <code>set_names()</code> and keep only lists with 41 columns using <code>keep()</code>, i.e.</p>
<pre><code>library(purrr)
library(dplyr)
file_list <- list.files(pattern='*.xls', path = "yourdatapat... | How do I find a Problem file in function? | r | 0 | 28 | 1 | 72,079,789 | 72,079,789 | 0 | true | 2022-05-01T18:33:29.967Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I find a Problem file in function?<p>I'm trying to import ~160 files and reshape them, but beforehand I'm trying to bind a column to from a vector to ... |
72,073,774 | Limit number of entries in a list after its filtered<p>I have a list where I need to limit the number of entries that are <strong>already filtered by a tag</strong>. Since I need the limit to happen <strong>after the entries are filtered</strong>, I can't use " | limit(10)" as that only works in the for loop,... | <p>works if data.tags.includes() is a custom tag filter:</p>
<pre><code>eleventyConfig.addFilter('filterByTag', (posts, tag) => posts.filter(p => p.data.tags.includes(tag)))
</code></pre>
<p>so theres no need for if statement:</p>
<pre><code>{%- for review in collections.partner | filterByTag(pagecategory) | limi... | Limit number of entries in a list after its filtered | nunjucks | 0 | 24 | 1 | 72,080,322 | 72,080,322 | 0 | true | 2022-05-01T03:25:21.127Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Limit number of entries in a list after its filtered<p>I have a list where I need to limit the number of entries that are <strong>already filtered by a tag</... |
72,078,097 | Vue3 For-Loop with Computed Property triggers onDragEnd immediately<p>I am trying do develop my own simple drag and drop functionality for a form builder. I have got a list of items which is rendered in a v-for loop with a computed property. On onDragStart I set the state isDragging. This should alter the list in the c... | <p>I think the issue lies in choosing to use the <code>ondragstart</code> event. When this is fired, the DOM is re-rendered to display your slots, which moves things around so that your mouse cursor is no longer over the element itself. <code>dragend</code> is then fired before the drag actually commenced. Change this ... | Vue3 For-Loop with Computed Property triggers onDragEnd immediately | javascript|vue.js | 0 | 32 | 1 | 72,080,439 | 72,080,439 | 0 | true | 2022-05-01T15:30:35.833Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Vue3 For-Loop with Computed Property triggers onDragEnd immediately<p>I am trying do develop my own simple drag and drop functionality for a form builder. I ... |
72,010,927 | I want to retrieve the html attribute of a link and apply to a modal button<p>I have a list of links and a modal that pops up on click. All i want to achieve is whenever i click on any of the links, retrieve the html attribute of that link and apply to the modal button.</p>
<pre><code><body x-data="{ extModal :... | <p>Hi and welcome @demeyo.</p>
<p>I am currently on my phone and can not test it, but I will try to explain how you could simply achieve what you want.</p>
<ol>
<li>Create a reactive data property (f.e. "activeLink").</li>
<li>Bind that property to your href attribute.</li>
<li>Update that property on click b... | I want to retrieve the html attribute of a link and apply to a modal button | hyperlink|attributes|modal-dialog|alpine.js | 0 | 34 | 1 | 72,080,627 | 72,080,627 | 0 | true | 2022-04-26T08:44:03.947Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I want to retrieve the html attribute of a link and apply to a modal button<p>I have a list of links and a modal that pops up on click. All i want to achieve... |
72,081,345 | Type attribute with Condition in TypeScript<p>Currently I pass a Type Attribute to a class.</p>
<pre><code>public class MyClass<Type> {...}
</code></pre>
<p>But now I want the condition to exist that the given Type implements an interface.
This is my vain attempt to solve this problem:</p>
<pre><code>public class... | <p>In TypeScript these are called <a href="https://www.typescriptlang.org/docs/handbook/2/generics.html#generic-constraints" rel="nofollow noreferrer">generic constraints</a>.</p>
<p>This is how you would write it in your case:</p>
<pre><code>public class MyClass<Type extends MyInterface> {...}
</code></pre> | Type attribute with Condition in TypeScript | typescript|types | 0 | 25 | 1 | 72,081,369 | 72,081,369 | 0 | true | 2022-05-02T00:26:49.140Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Type attribute with Condition in TypeScript<p>Currently I pass a Type Attribute to a class.</p>
<pre><code>public class MyClass<Type> {...}
</code></pr... |
72,077,779 | Save server module<pre><code> let JoinedServer = ServerDoc.findOne({id: guild.id})
if (!JoinedServer) {
let server = new ServerDoc({ id: guild.id, ServerName: guild.name });
await server.save();
console.log(server);
}
let JoinedEmbed = new MessageEmbed({
title: "Joined Guild",
descriptio... | <p><code>ServerDoc.findOne(...)</code> returns a promise and thus has to be awaited before checking for existence.</p>
<pre class="lang-js prettyprint-override"><code>let JoinedServer = await ServerDoc.findOne({id: guild.id})
if (!JoinedServer) {
// ...
}
</code></pre> | Save server module | node.js|mongoose|discord.js | 0 | 18 | 1 | 72,081,644 | 72,081,644 | 0 | true | 2022-05-01T14:52:55.877Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Save server module<pre><code> let JoinedServer = ServerDoc.findOne({id: guild.id})
if (!JoinedServer) {
let server = new ServerDoc({ id: guild.id, Serve... |
71,993,513 | Github Repos are not showing the Languages statistics<p>I have the followings Githubs repos which are not showing the Languages used for the projects. I mean that the following bar that represent the percentage of different languages is not showing on these repos:</p>
<p><a href="https://i.stack.imgur.com/WgaLN.png" re... | <p>It seems that was a matter about the branch. In order to see the Languages statistics of the project, the project should be in the main branch. Now both projects has their content in the main branch and therefore is possible to observe the Languages.</p> | Github Repos are not showing the Languages statistics | github|statistics | 0 | 24 | 1 | 72,081,927 | 72,081,927 | 0 | true | 2022-04-25T00:59:34.447Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Github Repos are not showing the Languages statistics<p>I have the followings Githubs repos which are not showing the Languages used for the projects. I mean... |
72,081,514 | Fragments show before Views finish rendering in Android<p>I have a problem in my Android app: lately, when I switch between fragments, their layout shows as XML before children views are shown correctly.
For example, in a fragment's onCreateView, when I set a text in a TextView or change the visibility of a view, the f... | <p>I think your problem is that you are setting the text in the fragment's onCreateView. You should set it on your fragment's onViewCreated.</p>
<p>Like this:</p>
<pre><code>override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
# initialize
... | Fragments show before Views finish rendering in Android | xml|android-layout|view|android-view | 0 | 33 | 1 | 72,082,012 | 72,082,012 | 0 | true | 2022-05-02T01:09:51.793Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Fragments show before Views finish rendering in Android<p>I have a problem in my Android app: lately, when I switch between fragments, their layout shows as ... |
72,081,754 | How to Store Text with hyperlink inside base on User Input in Textfield PHP<p>I have a Problem when user ask me to create a input textarea form that could handle copy paste lots of wording at the ms word file and save them to mysql database, so that text could be displayed at website page blogpost, so i manage to creat... | <p>You can use <a href="https://www.tiny.cloud/" rel="nofollow noreferrer">Tinymce</a> on your textarea, this will handle your problem.</p> | How to Store Text with hyperlink inside base on User Input in Textfield PHP | php|html|mysql | 0 | 17 | 1 | 72,082,055 | 72,082,055 | 0 | true | 2022-05-02T02:12:17.630Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to Store Text with hyperlink inside base on User Input in Textfield PHP<p>I have a Problem when user ask me to create a input textarea form that could ha... |
72,082,841 | Creating a MySQL multilingual dictionary table that expands horizontally adding/removing columns<p>The goal is to create a <strong>multilingual dictionary MySQL table of words</strong> that use a key => value structure for any desired language. Current solutions (and threads) on stackoverflow refer to adding new key... | <p>There is a much better approach using joins.</p>
<p>Create one table "terms" with the all the keys/terms and then another table "translations" with the term, locale and translation.</p>
<p>To get all english translation use</p>
<pre><code>select term, translation
from terms
join translations ... | Creating a MySQL multilingual dictionary table that expands horizontally adding/removing columns | mysql|dictionary | 0 | 19 | 1 | 72,082,909 | 72,082,909 | 0 | true | 2022-05-02T06:00:41.430Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Creating a MySQL multilingual dictionary table that expands horizontally adding/removing columns<p>The goal is to create a <strong>multilingual dictionary My... |
72,082,849 | Solana method cannot convert string to Base58 format<p>I'm using <code>@solana/web3.js</code> and have this code:</p>
<pre class="lang-js prettyprint-override"><code>const web3 = require("@solana/web3.js");
const clusterApi = process.env.SOLANA_CLUSTER;
module.exports = {
getConfirmedSignaturesForAddress:... | <p>This is how I solved this problem. Generally speaking, you need to convert it not just by converting to pure <code>Base58</code>, but like this:</p>
<pre class="lang-js prettyprint-override"><code>const web3 = require("@solana/web3.js");
const bip39 = require("bip39");
const getKeyFromMemonic = ... | Solana method cannot convert string to Base58 format | javascript|solana|solana-web3js | 0 | 275 | 1 | 72,082,989 | 72,082,989 | 0 | true | 2022-05-02T06:01:25.117Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Solana method cannot convert string to Base58 format<p>I'm using <code>@solana/web3.js</code> and have this code:</p>
<pre class="lang-js prettyprint-overrid... |
72,083,902 | How to iterate through node while there is a relationship<p>I have nodes that are structured like folder, subfolder and files. Any folder can have a relationship with a subfolder, which can have a relationship with another subfolder, which can have a relationship with files. I'd like to iterate through every folder to ... | <p>Assuming you have labelled the nodes accordingly as Folder and File, the following query will fetch all the files belonging to the starting folder, directly or through a chain of one or more sub-folders:</p>
<pre><code>MATCH(ParentFolder:Folder)-[*]->(childFile:File)
WHERE ParentFolder.name='Folder1'
RETURN child... | How to iterate through node while there is a relationship | while-loop|neo4j|cypher | 0 | 27 | 1 | 72,084,206 | 72,084,206 | 0 | true | 2022-05-02T08:05:45.720Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to iterate through node while there is a relationship<p>I have nodes that are structured like folder, subfolder and files. Any folder can have a relation... |
72,085,071 | Extract sentences with specific word/patterns in it<p>I´m trying to extract sentences with the word "privacy|Privacy" in it. The sentences can be found in text inside my dataframe. The text is safed as a list of multiple chr. strings, because I´m working with a bunch of different files. I can´t manage to get ... | <p>You could use <code>str_extract_all</code> with an alternation:</p>
<pre class="lang-r prettyprint-override"><code>regex <- "[A-Z][^.]+\\b(?:Privacy|privacy)\\b[^.]+\\."
sentences <- str_extract_all(input, regex)[[1]]
[1] "Additionally, the Company collects and stores certain data, including pr... | Extract sentences with specific word/patterns in it | r|regex | 0 | 23 | 2 | 72,085,173 | 72,085,173 | 0 | true | 2022-05-02T09:54:49.017Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Extract sentences with specific word/patterns in it<p>I´m trying to extract sentences with the word "privacy|Privacy" in it. The sentences can be f... |
72,086,343 | I want an image next to a text using bootstrap, but why is it going on the next row?<p>I'm using Bootstrap 5 and I'm trying to put an image next to a text, but when I insert "col-lg-6" on both cols, one column is going on the next row.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console=... | <pre><code><div class="row bg-white">
<div class="col-sm-12 col-md-6 col-lg-6 col-xl-6 col-xxl-6">
<img src="/images/section3/wheel.jpg" class="img-fluid" alt="">
</div>
<div class="col-sm-12 col-md-6 col-lg-6 col-xl-6 col-xxl-6... | I want an image next to a text using bootstrap, but why is it going on the next row? | bootstrap-5 | 0 | 35 | 2 | 72,086,384 | 72,086,384 | 0 | true | 2022-05-02T11:58:03.697Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I want an image next to a text using bootstrap, but why is it going on the next row?<p>I'm using Bootstrap 5 and I'm trying to put an image next to a text, b... |
72,086,278 | Change value of a row and add a total row in SQL<p>For performance reasons, I have to adapt some of my SQL queries.
Here's my query and its result :</p>
<pre><code>SELECT
CODACT,
SUM(CASE WHEN etasup = 10 THEN CUMCOL END) AS aprep,
SUM(CASE WHEN etasup = 20 THEN CUMCOL END) AS encours,
SUM(CASE WHEN... | <p>First problem is easy - replace <code>CODACT</code> with <code>case when CODACT in ('AUA', 'AUF') then 'Auchan' else CODACT end</code>, both in <code>SELECT</code> (you need to add alias <code> as CODACT</code> there) and <code>GROUP BY</code> parts.</p>
<p>Second part (add row with total) is most easily solved by C... | Change value of a row and add a total row in SQL | sql | 0 | 28 | 1 | 72,086,596 | 72,086,596 | 0 | true | 2022-05-02T11:52:13.027Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Change value of a row and add a total row in SQL<p>For performance reasons, I have to adapt some of my SQL queries.
Here's my query and its result :</p>
<pre... |
72,083,193 | Dispatching store actions via utility files (RTK-Query)<p>I am currently implementing our websocket engine to our Redux-Toolkit store. Our websocket connection/reconnect & event handling logic is held in it's own utility file, because each RTK-Query endpoint uses the same websocket, and passes individual handlers t... | <p>Sure, you can just import <code>store</code> in the file where you need it and call <code>store.dispatch</code> - you just should not be doing that in React components.</p> | Dispatching store actions via utility files (RTK-Query) | redux-toolkit|rtk-query | 0 | 286 | 1 | 72,086,659 | 72,086,659 | 0 | true | 2022-05-02T06:46:43.100Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Dispatching store actions via utility files (RTK-Query)<p>I am currently implementing our websocket engine to our Redux-Toolkit store. Our websocket connecti... |
72,044,237 | Django forms.Form reflecting property field constraints<p>I'm implementing a Django Form witch should contain the field 'fieldA' from <code>modelA</code>:</p>
<pre class="lang-py prettyprint-override"><code>class ModelA(models.Model):
fieldA = models.CharField(max_length=8)
...
</code></pre>
<p>My question is:... | <p>I found a way how to achieve a validation of form Field reflecting constrains from model Field.</p>
<pre class="lang-py prettyprint-override"><code>class Foo(models.Model):
x = models.CharField(max_length=30)
y = models.IntegerField(null=True)
class FooForm(forms.Form):
foo_x = forms.CharField(validator... | Django forms.Form reflecting property field constraints | python|django|django-forms | 0 | 28 | 2 | 72,086,876 | 72,086,876 | 0 | true | 2022-04-28T13:07:52.990Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Django forms.Form reflecting property field constraints<p>I'm implementing a Django Form witch should contain the field 'fieldA' from <code>modelA</code>:</p... |
72,087,111 | String extract str_extract with R script<p>I have files which have this structure: <code>xxx_xxx_xxx_xxx_class0.png</code> and <code>xxx_xxx_xxx_xxx_class1.png</code>. I want to select only class0 or class1 images.</p>
<p>I did:</p>
<pre><code> ## List images in path
images_names <- list.files("/img/train"... | <p>use <code>sub</code> and a regex pattern <code>.*([a-z]+).png</code>. This claims that to delete everything until a <code>_</code> followed a word then <code>.png</code></p>
<pre><code>sub('.*_([a-z]+).png', '\\1', image_names)
</code></pre> | String extract str_extract with R script | r|string|extract|text-extraction|rscript | 0 | 23 | 1 | 72,087,147 | 72,087,147 | 0 | true | 2022-05-02T13:01:42.563Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
String extract str_extract with R script<p>I have files which have this structure: <code>xxx_xxx_xxx_xxx_class0.png</code> and <code>xxx_xxx_xxx_xxx_class1.p... |
72,087,087 | IllegalThreadStateException Error on Simple Chat Application using Socket Programmin, Code bellow<p>Client code:</p>
<pre><code>import java.io.BufferedReader;
import java.io.IOError;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.*;
import java.util.Scanner;
import javax.swing.*;
import ... | <p>I think you're confused about what <code>Thread</code>'s <code>start()</code> method does.</p>
<p>In your code:</p>
<blockquote>
<pre class="lang-java prettyprint-override"><code>Thread send = new Thread(new send());
Thread recieve = new Thread(new recieve());
</code></pre>
</blockquote>
<p>You create exactly one th... | IllegalThreadStateException Error on Simple Chat Application using Socket Programmin, Code bellow | java|sockets | 0 | 20 | 1 | 72,087,228 | 72,087,228 | 0 | true | 2022-05-02T12:59:28.850Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
IllegalThreadStateException Error on Simple Chat Application using Socket Programmin, Code bellow<p>Client code:</p>
<pre><code>import java.io.BufferedReader... |
72,086,983 | Repeated values in pyspark<p>I have a dataframe in pyspark where i have three columns</p>
<pre><code>df1 = spark.createDataFrame([
('a', 3, 4.2),
('a', 7, 4.2),
('b', 7, 2.6),
('c', 7, 7.21),
('c', 11, 7.21),
('c', 18, 7.21),
('d', 15, 9.0),
], ['model', 'number', 'price'])
df1.show()
+-----... | <p>You can do so with a window function. We partition by price, take a count and filter <code>count > 1</code>.</p>
<pre><code>from pyspark.sql import Window
from pyspark.sql import functions as f
w = Window().partitionBy('price')
df1.withColumn('_c', f.count('price').over(w)).filter('_c > 1').drop('_c').show()... | Repeated values in pyspark | pyspark|apache-spark-sql|pyspark-pandas | 0 | 31 | 1 | 72,087,240 | 72,087,240 | 0 | true | 2022-05-02T12:50:07.383Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Repeated values in pyspark<p>I have a dataframe in pyspark where i have three columns</p>
<pre><code>df1 = spark.createDataFrame([
('a', 3, 4.2),
('a... |
72,082,941 | How to get the amount of subfield nodes in a xml file<p>I am trying to extract data from an xml file. I get the xml file by accessing a previously generated url to the api of the xml provider. Normally the datafields I need are only present once, but sometimes, the datafield node is present multiple times.</p>
<p>This ... | <p>Although it is not how I wanted to solve it, this did the trick:</p>
<pre><code>append_author=0
no_aut = True
for datafield_node in root.iterfind(datafield_nodes_path, namespaces=namespaces):
if any(datafield_node.get(k) != v for attr_dict in datafield_attribute_filters for k,v in attr_dict.items()):
... | How to get the amount of subfield nodes in a xml file | python-3.x|xml-parsing | 0 | 30 | 1 | 72,087,376 | 72,087,376 | 0 | true | 2022-05-02T06:14:40.323Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get the amount of subfield nodes in a xml file<p>I am trying to extract data from an xml file. I get the xml file by accessing a previously generated ... |
72,087,295 | Best way to get Remote IP in Http Inbound Spring Integration<p>How can I get remote IP in spring integration (Http Inbound ).
I have searched through stack overflow , I could not relate answers to what I want to achieve.</p>
<pre><code> @Bean
public IntegrationFlow inquiry(IntegrationFlow outboundGateway){
... | <pre><code>log.info("REMOTE IP: {}",
((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getRequest().getRemoteAddr())
</code></pre>
<p>Also see this: <a href="https://mkyong.com/java/how-to-get-client-ip-address-in-java/" rel="nofollow noreferrer">https://mkyong.com/java/h... | Best way to get Remote IP in Http Inbound Spring Integration | spring-integration|spring-integration-dsl|spring-integration-http | 0 | 16 | 1 | 72,087,673 | 72,087,673 | 0 | true | 2022-05-02T13:16:36.073Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Best way to get Remote IP in Http Inbound Spring Integration<p>How can I get remote IP in spring integration (Http Inbound ).
I have searched through stack o... |
72,087,346 | Interpretation of a binary regression plot<p>I'm new to R and I created an avplot of a linear binary regression. I was wondering how do I interpret the regression residuals in the corner like that?</p>
<p>Would you say it follows a heteroskedastic pattern?</p>
<p>Thanks!</p>
<p>Note: My binary formatting is Sex: Male (... | <p>Linear probability models follow a heteroskedastic pattern by construction. You'll have to use robust standard errors.</p> | Interpretation of a binary regression plot | r | 0 | 26 | 1 | 72,087,746 | 72,087,746 | 0 | true | 2022-05-02T13:21:53.123Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Interpretation of a binary regression plot<p>I'm new to R and I created an avplot of a linear binary regression. I was wondering how do I interpret the regre... |
72,082,981 | The email address is badly formatted - Flutter firebase<blockquote>
<p>FirebaseAuthException ([firebase_auth/invalid-email] The email address is badly formatted</p>
</blockquote>
<p>when I uses flutter firebase email password auth it shows email adress badly formated. name and vehicle number is also pass to the databas... | <p>You're calling:</p>
<pre><code>signUp(
emailController.text,
passwordController.text,
role,
vehicleNo.text,
name.text);
</code></pre>
<p>And <code>signUp</code> is defined as:</p>
<pre><code> void signUp(String name, String email, String password, String role,
String vehicleNo) async {
</code>... | The email address is badly formatted - Flutter firebase | firebase|flutter|firebase-authentication | 0 | 283 | 3 | 72,088,193 | 72,088,193 | 0 | true | 2022-05-02T06:19:18.850Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
The email address is badly formatted - Flutter firebase<blockquote>
<p>FirebaseAuthException ([firebase_auth/invalid-email] The email address is badly format... |
72,089,053 | Flutter Range Error: Invalid Value JSON call<p>When reading a JSON like this:</p>
<pre><code>{
"altitude": 7,
"eoi_code": "08015021",
"last_calculated_at": "Sat, 30 Apr 2022 19:13:37 GMT",
"latitude": 41.443985,
"longitude": 2.2378986, ... | <p>JSON is a map not a list.</p>
<pre><code> Future<Map<String, dynamic>> getStation(String id) async {
final String url2 = url + id;
final response = await http.get(Uri.parse(url2));
if (response.statusCode == 200) {
return json.decode(response.body);
}
return {};
}
</code></... | Flutter Range Error: Invalid Value JSON call | flutter|dart | 0 | 32 | 1 | 72,089,188 | 72,089,188 | 0 | true | 2022-05-02T15:36:00.407Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flutter Range Error: Invalid Value JSON call<p>When reading a JSON like this:</p>
<pre><code>{
"altitude": 7,
"eoi_code": "0801... |
72,089,318 | How to handle same code on two button Click Event<p>I am using a Recyclerview to show some question and answer. On click on arrow button doing some stuff and on click on tvTitle doing same stuff.</p>
<p>Is there any way that I should not repeat the same code on two click listener. I can't use the method outside the onB... | <p>I achieved my desired answer by using a method and passing viewholder in it:</p>
<pre><code>viewHolder.btnArrow.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
doAction(viewHolder);
}
});
viewHolder.tvTit... | How to handle same code on two button Click Event | android|android-recyclerview|android-adapter | 0 | 23 | 1 | 72,089,655 | 72,089,655 | 0 | true | 2022-05-02T16:01:09.557Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to handle same code on two button Click Event<p>I am using a Recyclerview to show some question and answer. On click on arrow button doing some stuff and... |
72,089,499 | How can I use data from one table to create new rows in a second table when the two tables don't have any shared column names<p>I have a table called <code>leads</code> and a table called <code>call_logs</code>, each with various columns but only two columns from leads and three columns from call_logs are relevant.</p>... | <p>You can do 2 different things:</p>
<ol>
<li><p>Set a default value for the column <strong>call_sid</strong>. This way you don´t need to change your query.</p>
</li>
<li><p>If you don´t want to set a default value, and if that value it is not important (be carefull with that, it may be important for somer other proce... | How can I use data from one table to create new rows in a second table when the two tables don't have any shared column names | mysql | 0 | 21 | 1 | 72,089,701 | 72,089,701 | 0 | true | 2022-05-02T16:18:19.147Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I use data from one table to create new rows in a second table when the two tables don't have any shared column names<p>I have a table called <code>l... |
72,089,593 | dynamically assigning number after looping through list of names in dart<p>I was practicing for loop and lists and I was having a little problem assigning dynamic
number after looping through a list of names.
example: i have a list of names:</p>
<pre><code>final list = ['liam','james','jerry','owen'];
</code></pre>
<p... | <p>You have two loops in your code, thus making the names repeat.</p>
<p>You only need to use one loop, and access the names using <code>list[i]</code>:</p>
<pre class="lang-dart prettyprint-override"><code>void main() {
final list = ['liam', 'james', 'jerry', 'owen'];
if (list.isNotEmpty) {
for (var i = 0; i &... | dynamically assigning number after looping through list of names in dart | dart | 0 | 18 | 2 | 72,090,142 | 72,090,142 | 0 | true | 2022-05-02T16:27:02.983Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
dynamically assigning number after looping through list of names in dart<p>I was practicing for loop and lists and I was having a little problem assigning d... |
72,089,991 | What is the difference between optimization algorithms and Ensembling methods?<p>I was going through ensemblling methods and was wondering what is the difference between the optimization techniques like gradient descent etc. And ensembling techniques like bagging, boosting etc.</p> | <p>Optimization like Gradient Decent is a single model approach. Ensemble per Wikipedia is multiple models. Constituents in the ensemble are weighted for overall consideration. Boosting (per Wikipedia <a href="https://en.wikipedia.org/wiki/Ensemble_learning" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/En... | What is the difference between optimization algorithms and Ensembling methods? | optimization|methods|data-science|difference | 0 | 18 | 1 | 72,090,330 | 72,090,330 | 0 | true | 2022-05-02T17:04:58.487Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What is the difference between optimization algorithms and Ensembling methods?<p>I was going through ensemblling methods and was wondering what is the differ... |
72,086,653 | How to configure shared javascript runtime using Visual Studio?<p>I am using Visual Studio for creating excel add-in. I also have some server-side code because of which i am using Visual Studio. I wanted to configure shared javascript runtime so that i can open the taskpane using keyboard shortcut.</p>
<p>I see an exam... | <p>The manifest schema files that are installed with VS are out of date. You have to manually update them.</p>
<ol>
<li>In Solution Explorer, open the manifest.xml file. The manifest is typically in the first project under your solution.</li>
<li>Choose View > Properties Window (F4).</li>
<li>In the Properties Windo... | How to configure shared javascript runtime using Visual Studio? | visual-studio|xsd|office-js|office-addins|xsd-validation | 0 | 28 | 1 | 72,090,717 | 72,090,717 | 0 | true | 2022-05-02T12:23:31.413Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to configure shared javascript runtime using Visual Studio?<p>I am using Visual Studio for creating excel add-in. I also have some server-side code becau... |
72,088,295 | Replacement subjects stop for no reason in Anylogic<p>I am having a problem keeping my Gilt Replacement Rate slider continuing to add new animals to my model. I have added in a giltQuarantine delay of 8 weeks just after the source block, which helps to visualize how the gilt replacement rate is working.</p>
<p>Everythi... | <p>Probably because you limit the total number of arrivals in <code>enterHerd</code> to <code>breedingHerd</code>. Remove the limit and test it.</p>
<p>Also, you can see current rates and other charactistics of flow chart blocks by clicking on them at runtime. Maybe that helps you pinpoint the issue further.</p>
<p>if... | Replacement subjects stop for no reason in Anylogic | anylogic|discrete | 0 | 30 | 1 | 72,090,843 | 72,090,843 | 0 | true | 2022-05-02T14:36:32.737Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Replacement subjects stop for no reason in Anylogic<p>I am having a problem keeping my Gilt Replacement Rate slider continuing to add new animals to my model... |
72,090,899 | Can't scrape some tables with BeautifulSoup<p>I was able to write a simple script to grab tables from etfdb.com However, some of the tables are not working. I think because they are dynamic and not static tables. I was wondering if someone could share some insight on how I could grab these.</p>
<p>Does not work:
<a hre... | <p>Jeremy!</p>
<p>I have tested your code here, by changing this line:</p>
<pre><code>soup = BeautifulSoup(webpage.text, "lxml")
</code></pre>
<p>It worked! Usually, when I scrape some webpage, we access the text from the page. And also, I prefer to keep the standard parser - lxml.</p> | Can't scrape some tables with BeautifulSoup | python|beautifulsoup | 0 | 31 | 1 | 72,090,944 | 72,090,944 | 0 | true | 2022-05-02T18:30:15.043Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't scrape some tables with BeautifulSoup<p>I was able to write a simple script to grab tables from etfdb.com However, some of the tables are not working. ... |
72,091,201 | child route does not start my components (Angular13)<p>I am having problems when I access a child route of a child route, when I go to the url I still get the same component and it does not change it.</p>
<pre><code>
{ path: 'PMI', component: AppContainerComponent, children: [
{ path: 'home', component: HomeCom... | <p>Please add a router-outlet in IndexPatientComponent for child route to work.</p> | child route does not start my components (Angular13) | angular|angular13 | 0 | 16 | 1 | 72,091,275 | 72,091,275 | 0 | true | 2022-05-02T19:03:22.090Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
child route does not start my components (Angular13)<p>I am having problems when I access a child route of a child route, when I go to the url I still get th... |
72,091,231 | Calculate average value per day based on single date column<p>My data is as follows:</p>
<pre>
ID DATE_ADM DRUG_NAME DRUG_VALUE
2 2010-12-01 05:00:00.00 FORMULA VI 50
2 2010-12-01 10:30:00.00 FORMULA VI 40
2 2010-12-02 01:00:00.00 FORMULA V 20
1 2014-01-0... | <p>Your desired results would seem to be just:</p>
<pre><code>select *,
Avg(drug_value) over(partition by id, Convert(date,date)) Avg_Day_Value
from t
order by id desc, date;
</code></pre> | Calculate average value per day based on single date column | sql-server | 0 | 30 | 1 | 72,091,616 | 72,091,616 | 0 | true | 2022-05-02T19:06:09.530Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Calculate average value per day based on single date column<p>My data is as follows:</p>
<pre>
ID DATE_ADM DRUG_NAME DRUG_VALUE
2 2010-... |
72,021,530 | Flutter won't compile a release build of my app?<p>After working on this app I tried to build my app to iOS using the <code>flutter run --release</code> command. But whenever I do I get this error <code>*Could not build the precompiled application for the device.*</code></p>
<p>I've tried <code>flutter clean</code> the... | <p>I finally found a solution!</p>
<p>The problem ended up being that CocoaPod wasn't installed correctly.</p>
<p>After digging for what felt like a lifetime! I installing HomeBrew again, then reinstalled cocoapod using <code>brew install cocoapods</code> command. After that I ran <code>flutter clean</code> and followe... | Flutter won't compile a release build of my app? | ios|xcode|flutter|dart|cocoapods | 0 | 538 | 2 | 72,091,682 | 72,091,682 | 0 | true | 2022-04-26T23:11:46.140Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flutter won't compile a release build of my app?<p>After working on this app I tried to build my app to iOS using the <code>flutter run --release</code> comm... |
72,086,109 | How to combine multiple mp4 files into one using android's MediaMuxer api?<p>I want to combine multiple mp4 fiels into one video. There is an MediaMuxer class in Android framework and it seems that can do that. But I didn't find any clear sample for that. Is it possible to combine multiple video files(containing both v... | <p>According to the <a href="https://developer.android.com/reference/android/media/MediaMuxer#History" rel="nofollow noreferrer">docs</a> MediaMuxer supports multiple video/audio tracks just for <code>mp4</code> format and only for <code>api +26</code> and not earlier versions. Also Some good samples can be found <a hr... | How to combine multiple mp4 files into one using android's MediaMuxer api? | java|android|kotlin | 0 | 32 | 1 | 72,092,104 | 72,092,104 | 0 | true | 2022-05-02T11:36:20.807Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to combine multiple mp4 files into one using android's MediaMuxer api?<p>I want to combine multiple mp4 fiels into one video. There is an MediaMuxer clas... |
72,090,568 | SQL Server: Generate squashed range data from daily dates by an id<p>Basically to sum up the goal. I want to generate something using the following data. Where it subtotals like excel where "each change in ... ordered however" generate summary records and only generate summary records and squash date ranges... | <pre><code>WITH [ag]
AS (SELECT *,
LAG([Fee_ID]) OVER (ORDER BY [FeeTypeID], [FeeBeginDate]) [FirstFee],
LAG([Fee_ID]) OVER (ORDER BY [FeeTypeID], [FeeBeginDate] DESC) [LastFee]
FROM [dbo].[HHTFees]
WHERE [Retailer] = 517),
[agf]
AS (SELECT *,
'Beg' [FeeSto... | SQL Server: Generate squashed range data from daily dates by an id | sql|sql-server | 0 | 22 | 1 | 72,092,656 | 72,092,656 | 0 | true | 2022-05-02T17:59:31.450Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SQL Server: Generate squashed range data from daily dates by an id<p>Basically to sum up the goal. I want to generate something using the following data. W... |
72,092,447 | MVVM ListBox won't update with filtered Collection<pre><code>in XAML:
<ListBox x:Name="AllJobListBox" MinHeight="200" MinWidth="500" HorizontalContentAlignment="Stretch" ItemsSource="{Binding Path=AllJobList}" >
in CodeBehind:
DataContext = new LoadJobWindowV... | <p>Make sure <code>AllJobList</code> raises the <code>INotifyPropertyChanged.PropertyChanged</code> event.</p>
<p>Your current solution is very expensive in terms of performance. You should always avoid to replace the complete source collection instance as it will force the <code>ListBox</code> to discard all container... | MVVM ListBox won't update with filtered Collection | wpf|binding|listbox|observablecollection | 0 | 32 | 1 | 72,092,682 | 72,092,682 | 0 | true | 2022-05-02T21:09:46.847Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
MVVM ListBox won't update with filtered Collection<pre><code>in XAML:
<ListBox x:Name="AllJobListBox" MinHeight="200" MinWidth=&quo... |
72,092,891 | Random Numbers In Range Not Random<p>I've been trying to generate random numbers between 1 and 10 million, but was finding that none of the numbers generated were lower than 1 million. I wrote this code to test the problem. This code selects ten million random numbers between 1 and ten million and outputs the lowest nu... | <p>You should output <code>lowest</code> and not <code>g</code> at the end of your loop:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>var lowest=1e8;
for (let i = 0; i < ... | Random Numbers In Range Not Random | javascript|random | 0 | 23 | 1 | 72,092,956 | 72,092,956 | 0 | true | 2022-05-02T22:08:35.753Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Random Numbers In Range Not Random<p>I've been trying to generate random numbers between 1 and 10 million, but was finding that none of the numbers generated... |
72,093,897 | Onsubmit function refreshes page<p>Very basic code that I can't get to work. The onsubmit function gets called, but the page refreshes back to its original form as if it executes but then restarts the HTML. The console.log flashes but then disappears as if we've restarted the page.</p>
<p>I've commented out the "r... | <p>You miss <strong>action</strong> and <strong>event.preventDefault();</strong> to prevent sending the form</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code> function valida... | Onsubmit function refreshes page | forms|onsubmit | 0 | 19 | 1 | 72,093,969 | 72,093,969 | 0 | true | 2022-05-03T01:08:35.680Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Onsubmit function refreshes page<p>Very basic code that I can't get to work. The onsubmit function gets called, but the page refreshes back to its original f... |
72,093,963 | prevent writings to document depending on user type in firebase?<p>I have a collection called shared in this collection I will have a doc that will serve as a connection between admin and clients (so clients can push theirs online status so does the the admin) , what I want to make is a security rule that allows the ad... | <p>Yup, that is totally possible and covered quite well in the Firebase documentation on <a href="https://firebase.google.com/docs/rules/basics#attribute-based_and_role-based_access" rel="nofollow noreferrer">role based access control</a>. From there come these example rules for when you define the roles in Firestore d... | prevent writings to document depending on user type in firebase? | google-cloud-firestore|firebase-security | 0 | 19 | 1 | 72,094,129 | 72,094,129 | 0 | true | 2022-05-03T01:22:50.467Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
prevent writings to document depending on user type in firebase?<p>I have a collection called shared in this collection I will have a doc that will serve as ... |
72,090,073 | Custom layer caused the batch dimension mismatch in pytorch. How to fix this problem?<p>I have tried to train a GCN model.I defined the custom layer I needed. However, It cause some dimension mismatch when I do some batch training.
the codes are as following :</p>
<pre><code>import math
import numpy as np
import torch
... | <p>the error you're seeing is due to you trying to matrix multiple a 3d tensor (your input) by your 2D weights.</p>
<p>To get around this you can simply reshape your data, as we only really care about the last dim when doing matmuls:</p>
<pre><code>def forward(self, input, adj):
b_size = input.size(0)
input = i... | Custom layer caused the batch dimension mismatch in pytorch. How to fix this problem? | python-3.x|pytorch | 0 | 25 | 1 | 72,094,265 | 72,094,265 | 0 | true | 2022-05-02T17:12:38.193Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Custom layer caused the batch dimension mismatch in pytorch. How to fix this problem?<p>I have tried to train a GCN model.I defined the custom layer I needed... |
72,090,202 | Xamarin Forms binding Swift and Android libs<p>I have need to create C# bindings for Swift and Android libs. I am looking for a tutorial on doing same.</p> | <p><strong>For Android</strong></p>
<p>Binding Java libraries: <a href="https://docs.microsoft.com/en-us/xamarin/android/platform/binding-java-library/" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/xamarin/android/platform/binding-java-library/</a>.</p>
<p>Binding Kotlin libraries: <a href="https://docs.m... | Xamarin Forms binding Swift and Android libs | xamarin|xamarin.forms | 0 | 30 | 1 | 72,095,106 | 72,095,106 | 0 | true | 2022-05-02T17:24:48.010Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Xamarin Forms binding Swift and Android libs<p>I have need to create C# bindings for Swift and Android libs. I am looking for a tutorial on doing same.</p> |
72,087,117 | Is there any ways to store firestore datetime stamp with writebath in android studio java?<pre><code> WriteBatch batch = firebaseFirestore.batch();
DocumentReference doc1 = firebaseFirestore.collection("Order").document();
batch.set(doc1, ProductList);
... | <p>public class ProductList {</p>
<pre><code>public FieldValue Timestamp;
public double totalPrice;
public String userId;
public List<String> productList;
public ProductList(double totalPrice, String userId, List list, FieldValue fieldValue) {
this.totalPrice = totalPrice;
this.userId = userId;
this.... | Is there any ways to store firestore datetime stamp with writebath in android studio java? | java|android | 0 | 17 | 1 | 72,095,646 | 72,095,646 | 0 | true | 2022-05-02T13:02:16.077Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there any ways to store firestore datetime stamp with writebath in android studio java?<pre><code> WriteBatch batch = firebaseFirestore.bat... |
72,096,995 | Whats The Correct Syntax to input the Own IP into an SED Command<pre><code>sed -i 's/# ListenIP=0.0.0.0/ListenIP=$[hostname -I]' /etc/some.conf
</code></pre>
<p>I need to Change the Listen Ip to its own IP, so what's the correct way of inserting <code>hostname -I</code> into the SED command?</p> | <p>Use command substitution <a href="https://stackoverflow.com/a/27472808/5625547"><code>$()</code></a> to call a subshell:</p>
<pre class="lang-sh prettyprint-override"><code>sed -i "s/# ListenIP=0.0.0.0/ListenIP=$(hostname -I)/" /etc/some.conf
</code></pre> | Whats The Correct Syntax to input the Own IP into an SED Command | bash | 0 | 16 | 1 | 72,097,030 | 72,097,030 | 0 | true | 2022-05-03T08:56:26.010Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Whats The Correct Syntax to input the Own IP into an SED Command<pre><code>sed -i 's/# ListenIP=0.0.0.0/ListenIP=$[hostname -I]' /etc/some.conf
</code></pre>... |
72,049,479 | meteor How to use upsert | Exception while simulating the effect of invoking ” TypeError: Cannot read properties of undefined (reading ‘_id’) react.js<p>I’m having trouble with <code>upsert</code> with meteor.js. I could update questions finely with the below codes but I won’t be able to insert new data.</p>
<p>file in... | <p>You still need to set the <code>questionId</code> on insert:</p>
<pre class="lang-js prettyprint-override"><code> modifyQuestion(question) {
check(question, Object);
Measures.upsert(
{ questionId: question._id },
{
$set: {
title: question.text,
},
$setOnIns... | meteor How to use upsert | Exception while simulating the effect of invoking ” TypeError: Cannot read properties of undefined (reading ‘_id’) react.js | javascript|reactjs|mongodb|meteor|meteor-react | 0 | 30 | 1 | 72,097,277 | 72,097,277 | 0 | true | 2022-04-28T19:53:08.343Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
meteor How to use upsert | Exception while simulating the effect of invoking ” TypeError: Cannot read properties of undefined (reading ‘_id’) react.js<p>I’m ... |
72,062,930 | Exception while simulating the effect of invoking '' When the validation object contains mongo operators, you must set the modifier option to true<p>There is another question about the same issue, but I really couldn’t get it.</p>
<p><a href="https://forums.meteor.com/t/how-to-fix-error-exception-while-invoking-method-... | <p>This is part of the schema validation. Somehwere you use a simpl-schema library with a validation method and this schema is not created with the <code>modifier: true</code> flag, so it's expecting a document and not a modifier.</p>
<pre class="lang-js prettyprint-override"><code>import SimpleSchema from "simpl-... | Exception while simulating the effect of invoking '' When the validation object contains mongo operators, you must set the modifier option to true | mongodb|meteor|mongodb-query|meteor-react | 0 | 31 | 1 | 72,097,441 | 72,097,441 | 0 | true | 2022-04-29T19:36:40.237Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Exception while simulating the effect of invoking '' When the validation object contains mongo operators, you must set the modifier option to true<p>There is... |
72,096,340 | How to add to junction table?<p>I have three tables <code>users</code>, <code>projects</code> and my junction table <code>user_projects</code></p>
<p>I did this association on sequelize</p>
<pre><code>User.belongsToMany(Project, { through: User_Project });
</code></pre>
<p><a href="https://i.stack.imgur.com/4DQbi.png" ... | <p>If you have a defined junction table model then just use its <code>create</code> method:</p>
<pre class="lang-js prettyprint-override"><code>const projectOne = await Project.create({
createdBy: thomas.id,
})
const userProjectRecord = await User_Project.create({
userId:thomas.id,
projectId: projectOne.id
})
<... | How to add to junction table? | sequelize.js | 0 | 34 | 1 | 72,097,708 | 72,097,708 | 0 | true | 2022-05-03T07:55:48.503Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to add to junction table?<p>I have three tables <code>users</code>, <code>projects</code> and my junction table <code>user_projects</code></p>
<p>I did t... |
72,098,711 | How is it possible that querying base entity in joined inheritance strategy also fetches sub entities?<p>I have an abstract base class:</p>
<pre><code>@Inheritance(strategy = InheritanceType.JOINED)
@Getter
@Setter
@Entity
@ToString
public abstract class BillingDetails {
@javax.persistence.Id
@GeneratedValue(strategy... | <p>What I have missed here was I think polymorphism. When I tried to get Class of results like</p>
<pre><code> List<BillingDetails> details=billingDetailsRepository.findAll();
details.forEach(x-> System.out.println(x.getClass()));
</code></pre>
<p>I got the following output :</p>
<pre><code>class com.rumlor... | How is it possible that querying base entity in joined inheritance strategy also fetches sub entities? | java|hibernate|spring-data-jpa | 0 | 24 | 1 | 72,098,878 | 72,098,878 | 0 | true | 2022-05-03T11:27:40.087Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How is it possible that querying base entity in joined inheritance strategy also fetches sub entities?<p>I have an abstract base class:</p>
<pre><code>@Inher... |
72,099,591 | How to not get this warning? DB2 Warning SQLSTATE=02000 No row was found for FETCH, UPDATE, or DELETE; or the result of a query is an empty table<p>The way we have our error handling setup this warning will shoot an email out to everyone when it occurs (I can't change this). I really don't care that no rows were found ... | <p>Maybe this will do</p>
<pre><code>with delete_rows as (
select * from old table (delete from schema.table where key is null)
)
select count(*) from delete_rows
</code></pre> | How to not get this warning? DB2 Warning SQLSTATE=02000 No row was found for FETCH, UPDATE, or DELETE; or the result of a query is an empty table | sql|db2|warnings | 0 | 278 | 2 | 72,099,894 | 72,099,894 | 0 | true | 2022-05-03T12:47:04.343Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to not get this warning? DB2 Warning SQLSTATE=02000 No row was found for FETCH, UPDATE, or DELETE; or the result of a query is an empty table<p>The way w... |
72,098,111 | How to solve the "Intervention Slow network is detected." error in React Native<p>I have been getting the following error:</p>
<p><strong>"[Intervention] Slow network is detected. See <a href="https://www.chromestatus.com/feature/5636954674692096" rel="nofollow noreferrer">https://www.chromestatus.com/feature/5636... | <p>I had multiple instances running and hadn't restarted my PC in a while. After a restart it was fixed and back to loading almost instantly...</p> | How to solve the "Intervention Slow network is detected." error in React Native | react-native | 0 | 264 | 1 | 72,100,354 | 72,100,354 | 0 | true | 2022-05-03T10:29:15.027Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to solve the "Intervention Slow network is detected." error in React Native<p>I have been getting the following error:</p>
<p><strong>"[Intervention... |
72,100,934 | JS Regex Help Domain Catcher<p>I'm currently creating a JavaScript Regex and I can't seem to figure out how to match a specific domain. Here is an example.</p>
<p>I need to create a regex that matches any domain that strictly contains (text.com) but not two domain levels deep. For example:</p>
<ul>
<li>text.com --> ... | <p>This regex will match domains ending with text.com and not having more than 1 subdomain:</p>
<pre><code>^([^.]+?\.)?text\.com$
</code></pre>
<ul>
<li><code>^</code> from the start of the string</li>
<li><code>([^.]+?\.)?</code> an optional string group ending with one dot</li>
<li><code>text\.com</code> following te... | JS Regex Help Domain Catcher | javascript|regex | 0 | 25 | 1 | 72,101,011 | 72,101,011 | 0 | true | 2022-05-03T14:27:06.717Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
JS Regex Help Domain Catcher<p>I'm currently creating a JavaScript Regex and I can't seem to figure out how to match a specific domain. Here is an example.</... |
72,099,488 | "onChange" event not firing in component, html Angular<p>I have this html template for a component that renders all the doctors in the database, and an array of colors as a dropdown list.
when a value is chosen from the dropdown color list, the onChange event should fire, and call a function that sends a query to the d... | <p>Put your listener in the select element. Option elements don't have change listeners.</p>
<pre><code><select (change)="changeColor($event)">
<option
*ngFor="let color of colors"
[ngStyle]="{ backgroundColor: color }"
>
{{ color }}
... | "onChange" event not firing in component, html Angular | angular|components | 0 | 291 | 1 | 72,101,740 | 72,101,740 | 0 | true | 2022-05-03T12:37:52.773Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
"onChange" event not firing in component, html Angular<p>I have this html template for a component that renders all the doctors in the database, and an array... |
72,098,287 | Jmeter Calculate Value Response Thread Group<p>how to jmeter calculate response data value</p>
<p><strong>example</strong></p>
<p>Number of thread = 3</p>
<p>Ramp Up = 1</p>
<p>Loop Count = 1</p>
<p>Thread 1 value extract = 3</p>
<p>Thread 2 value extract = 7</p>
<p>Thread 3 value extract = 10</p>
<p><strong>how to get... | <ol>
<li><p>Add <a href="https://jmeter.apache.org/usermanual/component_reference.html#JSR223_PostProcessor" rel="nofollow noreferrer">JSR223 PostProcessor</a> after the extractor and put the following code where</p>
<pre><code>props.put('value_' + ctx.getThreadNum(), vars.get('extracted_value'))
</code></pre>
</li>
<l... | Jmeter Calculate Value Response Thread Group | jmeter|jsr223 | 0 | 29 | 1 | 72,101,818 | 72,101,818 | 0 | true | 2022-05-03T10:46:28.383Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Jmeter Calculate Value Response Thread Group<p>how to jmeter calculate response data value</p>
<p><strong>example</strong></p>
<p>Number of thread = 3</p>
<p... |
72,102,017 | Makefile variable to hold a rule<p>I'm trying to employ the <code>ALSO</code> option detailed in <a href="https://gitlab.com/bztsrc/posix-uefi#available-makefile-options" rel="nofollow noreferrer">this table</a>, which is then called as such:</p>
<pre><code>all: $(ALLTARGETS) $(EXTRA) $(ALSO)
</code></pre>
<p>For this ... | <p>I was over complicating, just store the name of your rule:</p>
<pre><code>ALSO = myrule
myrule:
echo I made it!
</code></pre>
<p>Nonetheless, is there anyway to do what I was originally trying to accomplish? Maybe to dynamically create rules?</p> | Makefile variable to hold a rule | makefile | 0 | 14 | 1 | 72,102,018 | 72,102,018 | 0 | true | 2022-05-03T15:44:58.033Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Makefile variable to hold a rule<p>I'm trying to employ the <code>ALSO</code> option detailed in <a href="https://gitlab.com/bztsrc/posix-uefi#available-make... |
72,102,185 | Using sep_apply in a semax context with VST<p>Nika Pona asked this question on vst-user, and I have the same question:</p>
<p>I have a goal of the form <code>semax _ PROP()LOCAL()SEP(a;b;c;d)</code> and a lemma of the form <code>a*c |-- k</code> or <code>a*c = k</code>. How do I get form SEP(a;b;c;d) to SEP(k;b;d)?</p... | <p><code>sep_apply</code> should work, but you may need to fully instantiate the arguments of the lemma, e.g., <code>sep_apply (my_lemma a c k)</code></p> | Using sep_apply in a semax context with VST | verifiable-c | 0 | 15 | 1 | 72,102,292 | 72,102,292 | 0 | true | 2022-05-03T15:58:02.353Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using sep_apply in a semax context with VST<p>Nika Pona asked this question on vst-user, and I have the same question:</p>
<p>I have a goal of the form <code... |
72,102,883 | how to include Notification in listStatusChange method<p>I use ListStatusChange method to track the sent envelopes in my app.
So, I get a list including Recipients collection, the different columns in the view are shown in the following code. The view uses Envelope as Model</p>
<p>The problem is that I just added the l... | <p>It doesn't appear like this can be done with <a href="https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/envelopes/liststatuschanges/" rel="nofollow noreferrer">ListStatusChanges</a>.</p>
<p>The only way would be to make a <a href="https://developers.docusign.com/docs/esign-rest-api/reference/en... | how to include Notification in listStatusChange method | c#|docusignapi | 0 | 16 | 1 | 72,102,945 | 72,102,945 | 0 | true | 2022-05-03T16:56:57.337Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to include Notification in listStatusChange method<p>I use ListStatusChange method to track the sent envelopes in my app.
So, I get a list including Reci... |
72,102,891 | I don't know how to delete a list created from an observable<p>I was trying to delete something from a project I'm working on, and I don't know how to do a put server request.
The put request works properly, but the view is not updated after receiving the response.</p>
<pre><code> markNotificationsAsReaded(not): Promis... | <p>you need to update the variable 'notificationService.notificationsList$. By default http request is made only once.</p>
<p>So even with the asynchronous pipe you will have to call the function that creates this list again.</p> | I don't know how to delete a list created from an observable | angular | 0 | 34 | 1 | 72,103,068 | 72,103,068 | 0 | true | 2022-05-03T16:57:21.947Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I don't know how to delete a list created from an observable<p>I was trying to delete something from a project I'm working on, and I don't know how to do a p... |
72,103,105 | State variable not updated when changed in another View<p>I want to better understand binding data across view, so I made this demo app</p>
<p>First View - if <em>isShowing</em> is true, navigating to <em>SecondView</em> (binding <em>value</em>)</p>
<pre><code>struct ParentView: View {
@State var isShowing = false
@St... | <p>The way you have things set up, it won't change. When <code>value != 5</code>, your `NavigationLink does not exist in the view. Instead, you want to trigger it programmatically like this:</p>
<pre><code>struct ParentView: View {
@State var isShowing = false
@State var value = 5
var body: some View {
... | State variable not updated when changed in another View | swiftui | 0 | 29 | 1 | 72,103,549 | 72,103,549 | 0 | true | 2022-05-03T17:15:50.803Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
State variable not updated when changed in another View<p>I want to better understand binding data across view, so I made this demo app</p>
<p>First View - i... |
72,103,668 | How to close privacy pop ups with selenium that rewrites the html<p>I am working on python and i am trying to close the privacy pop up in this page: <a href="https://www.fotocasa.es/es/comprar/vivienda/-barcelona-capital/163381243/d?RowGrid=2&tti=1&opi=300" rel="nofollow noreferrer">https://www.fotocasa.es/es/c... | <p>It's working.You have to select <code>accept button</code>
correctly which is <code>[data-testid="TcfAccept"]</code></p>
<pre><code>import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome impo... | How to close privacy pop ups with selenium that rewrites the html | python|selenium | 0 | 32 | 1 | 72,103,841 | 72,103,841 | 0 | true | 2022-05-03T18:09:00.207Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to close privacy pop ups with selenium that rewrites the html<p>I am working on python and i am trying to close the privacy pop up in this page: <a href=... |
72,103,678 | Reactjs firebase authentication action link for Email address verification and Password reset<p>I have Reacts app and using firebase authentication. So I have sent the Email address verification and Password reset email. So user got the both emails.</p>
<p>For email address verification, when they click action link, th... | <p>There isn't any direct way to customize the URL only for a single email template. It says them same in the console.</p>
<p><a href="https://i.stack.imgur.com/mL1qe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mL1qe.png" alt="enter image description here" /></a></p>
<p>There's a query parameter ... | Reactjs firebase authentication action link for Email address verification and Password reset | reactjs|firebase-authentication | 0 | 32 | 1 | 72,103,893 | 72,103,893 | 0 | true | 2022-05-03T18:10:16.673Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Reactjs firebase authentication action link for Email address verification and Password reset<p>I have Reacts app and using firebase authentication. So I hav... |
72,103,849 | Fill NA only between two values in the same column<p>I have a dataframe like this:</p>
<pre><code> VESSEL_NAME FAILURE
0 AAGI - AKAGISAN LCA
1 AAGI - AKAGISAN NaN
2 AAGI - AKAGISAN NaN
3 AAGI - AKAGISAN NaN
4 AAGI - AKAGISAN NaN
5 ... | <p>What about:</p>
<pre><code>import pandas as pd
df = pd.DataFrame({'FAILURE':['TCA', np.nan, 'LCA', np.nan, np.nan, 'TCA', np.nan, 'LCA', np.nan]})
fill_value = 'FILL'
where_value = 'LCA'
df['FAILURE'] = df['FAILURE'].fillna(fill_value).where(df['FAILURE'].fillna(method='ffill').eq(where_value) | df['FAILURE'].not... | Fill NA only between two values in the same column | python|pandas|dataframe|anaconda | 0 | 35 | 1 | 72,104,180 | 72,104,180 | 0 | true | 2022-05-03T18:26:37.653Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Fill NA only between two values in the same column<p>I have a dataframe like this:</p>
<pre><code> VESSEL_NAME FAILURE
0 AAGI - AK... |
72,104,193 | react typescript object is possible undefined<p>In my react typescript project I am trying to update a value in my redux state.</p>
<p>When I try to update the x1.quantity, I get the following error. (VS code puts a red line under x1)</p>
<pre><code>Object is possibly 'undefined'
</code></pre>
<hr />
<pre><code>mySecon... | <p>There is an error because <code>find</code> can return <code>undefined</code> if no value was found. And to fix this there are many ways!</p>
<ol>
<li><p>Using optional chaining:</p>
<pre><code>if (x1?.quantity !== undefined) {
</code></pre>
</li>
<li><p>Using <code>&&</code> short-circuiting:</p>
<pre><code... | react typescript object is possible undefined | reactjs|typescript | 0 | 19 | 1 | 72,104,242 | 72,104,242 | 0 | true | 2022-05-03T18:57:03.020Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
react typescript object is possible undefined<p>In my react typescript project I am trying to update a value in my redux state.</p>
<p>When I try to update t... |
72,104,235 | Get all posts except with specific post meta<p>So I have the following conditional:</p>
<pre><code>$args = [
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => 50,
'paged' => $page,
'orderby' => 'date',
'order' => 'desc',
'meta_query' => [
[
... | <p>Have you tried <code>NOT EXISTS</code> for the <code>compare</code>? Would look like this:</p>
<pre><code>$args = [
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => 50,
'paged' => $page,
'orderby' => 'date',
'order' => 'desc',
'meta_query' => [
... | Get all posts except with specific post meta | php|wordpress | 0 | 27 | 1 | 72,104,289 | 72,104,289 | 0 | true | 2022-05-03T19:00:17.783Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Get all posts except with specific post meta<p>So I have the following conditional:</p>
<pre><code>$args = [
'post_type' => 'post',
'post_status' ... |
72,104,334 | ReferenceError: websiteCheck is not defined discord.js<p>So I was basically coding a discord.js v12 bot and NodeJS keeps giving me this error even though websiteCheck is defined. If you can help thank you so much <3</p>
<pre class="lang-js prettyprint-override"><code>
function websiteCheck() {
// im not showing ... | <p>So basically <code>function</code> wasnt being read somehow in the script, it started working with <code>const websiteCheck = async function(){</code>. Now its defined and everything is normal.</p>
<p>I don't know why <code>function</code> wasn't being read but oh well.</p> | ReferenceError: websiteCheck is not defined discord.js | javascript|node.js|discord.js | 0 | 10 | 1 | 72,104,440 | 72,104,440 | 0 | true | 2022-05-03T19:08:21.877Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ReferenceError: websiteCheck is not defined discord.js<p>So I was basically coding a discord.js v12 bot and NodeJS keeps giving me this error even though web... |
72,103,858 | Concatenate array of json values PostgreSQL<p>I have a table below</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Column</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>integer</td>
</tr>
<tr>
<td>caseworker</td>
<td>uuid</td>
</tr>
<tr>
<td>data</td>
<td>jsonb</td>
</tr>
</... | <p>If you can live with a JSON array for the dates, this is quite easy.</p>
<p>Use <code>->></code> to extract a key value as a string. The dates can be extracted as a JSON array using <code>jsonb_path_query_array()</code></p>
<pre><code>select caseworker,
data ->> 'CaseNumber' as casenumber,
... | Concatenate array of json values PostgreSQL | json|postgresql | 0 | 33 | 1 | 72,105,001 | 72,105,001 | 0 | true | 2022-05-03T18:27:22.707Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Concatenate array of json values PostgreSQL<p>I have a table below</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Column</th>
<... |
72,105,223 | Display info from text file based on name submited in a form?<p>I’m not sure how to accomplish this.</p>
<p>In the index page I have a form (as seen below) where someone can type in Biden, Trump, Obama, etc for example and then press submit and on the next page it will display information about the presidents. I have t... | <p>Instead of</p>
<pre class="lang-php prettyprint-override"><code>$file = fopen("<?php echo $_POST["potus"]; ?>.txt", "r") or exit("unable to open file!");
</code></pre>
<p>try</p>
<pre class="lang-php prettyprint-override"><code>$file = fopen($_POST["potus"] . &... | Display info from text file based on name submited in a form? | php|txt | 0 | 26 | 1 | 72,105,258 | 72,105,258 | 0 | true | 2022-05-03T20:40:01.213Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Display info from text file based on name submited in a form?<p>I’m not sure how to accomplish this.</p>
<p>In the index page I have a form (as seen below) w... |
72,105,291 | How to change wpf richTextBox background color in the designer and not in code?<p>This is by code :</p>
<pre><code>public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
RichTextBoxLogger.Background = Brushes.Black;
CenterWindowOn... | <p>Usually a RichTextBlox contains a <a href="https://docs.microsoft.com/en-us/dotnet/api/system.windows.documents.flowdocument?view=windowsdesktop-6.0" rel="nofollow noreferrer">FlowDocument</a>, try by setting the background of the document instead.</p> | How to change wpf richTextBox background color in the designer and not in code? | c#|wpf | 0 | 32 | 1 | 72,105,713 | 72,105,713 | 0 | true | 2022-05-03T20:46:59.427Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to change wpf richTextBox background color in the designer and not in code?<p>This is by code :</p>
<pre><code>public partial class MainWindow : Window
... |
72,105,742 | Display "No Results" message with jQuery checkbox filter<p>I found a jQuery filter that works really well for my needs (<a href="http://jsfiddle.net/n3EmN/171/" rel="nofollow noreferrer">http://jsfiddle.net/n3EmN/171/</a>). My only issue is that I want it to display a "No results found" message when the filte... | <p>Add the css class for hide</p>
<pre><code>.hide{display:none; }
</code></pre>
<p>Add this div at the bottom of all your .flowers div</p>
<pre><code><div id="NoResult" class="hide" >No results found, try changing your filters.</div>
</code></pre>
<p>Add this inside your change event</... | Display "No Results" message with jQuery checkbox filter | jquery|forms | 0 | 15 | 1 | 72,105,953 | 72,105,953 | 0 | true | 2022-05-03T21:39:44.247Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Display "No Results" message with jQuery checkbox filter<p>I found a jQuery filter that works really well for my needs (<a href="http://jsfiddle.net/n3EmN/17... |
72,105,061 | Update nested array mongodb<p>I want do an updateMany() operation on a nested array for all documents of my collection.<br />
Here is the documents format :</p>
<pre><code>{
"number": 1,
"products": [{
"name": "test",
"compositions": ["water... | <p>You can use <strong>all positional operator <a href="https://www.mongodb.com/docs/manual/reference/operator/update/positional-all/" rel="nofollow noreferrer"><code>$[]</code></a></strong> to update all elements in the array.</p>
<pre><code>db.getSiblingDB("mydatabase").getCollection("stock").upda... | Update nested array mongodb | mongodb|mongodb-query | 0 | 29 | 2 | 72,105,996 | 72,105,996 | 0 | true | 2022-05-03T20:22:51.467Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Update nested array mongodb<p>I want do an updateMany() operation on a nested array for all documents of my collection.<br />
Here is the documents format :<... |
72,105,355 | "The operation couldn’t be completed. Device was allocated but was stuck in creation state." (Xcode 13 iOS simulator on external device)<p>In order to save some of the precious 256GB of disk space on the internal drive of my (M1, 2020) MacBook Pro (MYD82LL/A) I ran the following commands in my macOS Terminal after inst... | <p>Ended up simply moving all the simulator stuff back onto my local drive anyway and the problem disappeared. Not sure why Xcode complains when the simulators aren’t on the system drive though.</p> | "The operation couldn’t be completed. Device was allocated but was stuck in creation state." (Xcode 13 iOS simulator on external device) | ios|swift|ios-simulator|apple-m1|xcode13 | 0 | 522 | 3 | 72,106,436 | 72,106,436 | 0 | true | 2022-05-03T20:53:48.930Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
"The operation couldn’t be completed. Device was allocated but was stuck in creation state." (Xcode 13 iOS simulator on external device)<p>In order to save s... |
72,105,184 | Unity PUN 2 Get Room Playercount Without Joining The Room<p>i want to have a little player count next to each room in my room list but getting the playercount using <code>playerCount.text = PhotonNetwork.PlayerList.Length.ToString();</code>
wouldnt work because it will return 0 since you're not in a room yet.</p> | <p>Room has a PlayerCount property</p>
<blockquote>
<p><code>byte</code> <code>PlayerCount</code>[get] The count of players in this Room (using this.Players.Count)</p>
</blockquote>
<p>However, it seems to conflict with the <code>Players</code> property referenced above (<em><code>using this.Players.Count</code></em... | Unity PUN 2 Get Room Playercount Without Joining The Room | unity3d|photon | 0 | 28 | 1 | 72,106,576 | 72,106,576 | 0 | true | 2022-05-03T20:35:24.153Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unity PUN 2 Get Room Playercount Without Joining The Room<p>i want to have a little player count next to each room in my room list but getting the playercoun... |
72,106,845 | change font direction in word with python3<p>I want to get a text from a word doc and make some change to it and put it into a new word doc</p>
<p>how can I change direction to Right-to-Lift and font size to 35</p>
<pre><code>from docx import Document
doc = Document("nameOfTheFile.docx")
doc2 = Document()
n =... | <p>You can work using this -</p>
<p>Also <a href="https://stackoverflow.com/questions/55882611/how-to-set-right-to-left-for-text-in-word-using-python-docx">refer</a> -</p>
<pre><code>import docx
from docx.shared import Pt
doc = docx.Document('file_name.docx')
doc1 = docx.Document()
style = doc1.styles['Normal']
font =... | change font direction in word with python3 | python-3.x|python-docx | 0 | 24 | 1 | 72,107,465 | 72,107,465 | 0 | true | 2022-05-04T00:47:18.230Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
change font direction in word with python3<p>I want to get a text from a word doc and make some change to it and put it into a new word doc</p>
<p>how can I ... |
72,108,390 | How can I render user's input (which is stored in an array) with LINE BREAKS using react.js?<p>I've been trying to render <code>{ingredients}</code> with line breaks, each time the user presses <code>Enter</code> and keys in another ingredient. I've been getting all the user's inputs in one line e.g. <code>grapeonionle... | <p>first of all don't use document.getElementById("ingredients") in react app.
second of all you can put each ingredient in paragraph or div;</p>
<pre><code>import { useState} from "react";
import {Paper} from "@material-ui/core";
const CRBUploadRecipe = () => {
const [recipeName, setR... | How can I render user's input (which is stored in an array) with LINE BREAKS using react.js? | css|arrays|reactjs|render|use-state | 0 | 29 | 1 | 72,108,528 | 72,108,528 | 0 | true | 2022-05-04T05:40:30.197Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I render user's input (which is stored in an array) with LINE BREAKS using react.js?<p>I've been trying to render <code>{ingredients}</code> with lin... |
72,055,772 | Python 3.9 logger RotatingLogger doesn't write anything into file<h4>I created a simple demo to test my Django project.</h4>
<p>when i invoke unittest, everything passed and i set logger.info to record log into <code>debug.log</code>.
There should be some records appeared in my target file but nothing in it.
<a href="h... | <pre><code> if type(datas[key]) == 'str' and datas[key].startswith('<') and datas[key].endswith('>'):
</code></pre>
<p>In the decoration use eval function to deal with datetime format</p>
<p>After i changed if to this it works:</p>
<pre><code>if type(datas[key]) == str and datas[key].startswith('<')... | Python 3.9 logger RotatingLogger doesn't write anything into file | python|logging | 0 | 35 | 1 | 72,109,730 | 72,109,730 | 0 | true | 2022-04-29T09:29:48.763Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python 3.9 logger RotatingLogger doesn't write anything into file<h4>I created a simple demo to test my Django project.</h4>
<p>when i invoke unittest, every... |
72,110,507 | Python Tuple Index Out of Range error after assignment to list<p>I jumped into some Python courses a little while ago and have gotten to a milestone project to make a simple tic-tac-toe game.</p>
<p>But I am running into a bit of a wall due to an index error that keeps happening and I cannot figure out why.</p>
<p><str... | <p>The <code>insert_choice()</code> method returns a tuple of your <code>game_list</code> and <code>position</code>:</p>
<pre><code>return (game_list, position)
</code></pre>
<p>Thus, during your main loop, you store this tuple as the new <code>game_list</code> and try to access indices greater than 1 which leads to th... | Python Tuple Index Out of Range error after assignment to list | python-3.x|list|tuples|variable-assignment | 0 | 266 | 1 | 72,110,648 | 72,110,648 | 0 | true | 2022-05-04T09:12:57.537Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python Tuple Index Out of Range error after assignment to list<p>I jumped into some Python courses a little while ago and have gotten to a milestone project ... |
72,110,805 | Writing filesize and filepath of a folder to a text file with Python 3.7<p>I am using Python 3.7.
I want to check the file sizes of a directory with the file path to a text file.</p>
<p>This is my code:</p>
<pre><code>import os
import glob
# folder path
folderpath = 'C:/Test'
# Get a list of files in my folder
list_... | <p>I would ameloriate your code following way</p>
<pre><code>for file_path, file_size in files_with_size:
with open('c:/Test/filesize.txt', 'a') as f:
print(file_size, ' -->', file_path, file=f)
</code></pre>
<p>changes: use <code>a</code> (append) mode and use <code>f</code> as value for named argument ... | Writing filesize and filepath of a folder to a text file with Python 3.7 | python|text-files|filesize | 0 | 16 | 1 | 72,110,849 | 72,110,849 | 0 | true | 2022-05-04T09:36:23.790Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Writing filesize and filepath of a folder to a text file with Python 3.7<p>I am using Python 3.7.
I want to check the file sizes of a directory with the file... |
72,110,791 | Python, Remove duplicate values from dataframe column of lists<p>I've got a dataframe column containing lists, and I want to remove duplicate values from the individual lists.</p>
<pre><code>d = {'colA': [['UVB', 'NER', 'GGR', 'NER'], ['KO'], ['ERK1', 'ERK1', 'ERK2'], []]}
df = pd.DataFrame(data=d)
</code></pre>
<p>I w... | <p>You can remove duplicates values from the list using <code>apply()</code> method of pandas function as follows.</p>
<pre class="lang-py prettyprint-override"><code>import pandas as pd
d = {'colA': [['UVB', 'NER', 'GGR', 'NER'], ['KO'], ['ERK1', 'ERK1', 'ERK2'], []]}
df = pd.DataFrame(data=d)
df['colA'].apply(lambda... | Python, Remove duplicate values from dataframe column of lists | python|list|set|tuples | 0 | 25 | 2 | 72,111,079 | 72,111,079 | 0 | true | 2022-05-04T09:34:53.133Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Python, Remove duplicate values from dataframe column of lists<p>I've got a dataframe column containing lists, and I want to remove duplicate values from the... |
72,111,103 | Is dotCover coverage accurate even if some tests fail?<p>I have some nUnit tests that are currently failing. For some corporate reasons, I don't want to spend any time trying to fix those tests right now. But I am running a dotCover coverage report on these tests, and I want to know whether the "Uncovered" li... | <p>dotCover's 'Uncovered' line count is inclusive of the failing tests, meaning that if you fixed the tests it should decrease as more 'lines' are now covered by successful tests.</p>
<p>Yes, the coverage percentage would also increase in proportion to the number of lines covered increasing.</p>
<p>Failing tests -> ... | Is dotCover coverage accurate even if some tests fail? | .net|nunit|dotcover | 0 | 29 | 1 | 72,111,126 | 72,111,126 | 0 | true | 2022-05-04T10:00:15.827Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is dotCover coverage accurate even if some tests fail?<p>I have some nUnit tests that are currently failing. For some corporate reasons, I don't want to spen... |
72,111,111 | slider display not updated when value is changed by another window<p>I have a window with 2 buttons and a slider.
button1 creates a new window and the button2 changes the slider value of the new window. But slider display not updated when button2 is clicked. What is wrong?</p>
<pre><code>public Window1 newWindow1;
... | <p>In <code>Button1_Click</code> you are creating a local instance of the window instead using the field.</p>
<p>Change your code like this.</p>
<pre><code>private void Button1_Click(object sender, RoutedEventArgs e)
{
newWindow1 = new Window1();
newWindow1.Show();
newWindow1.mySlider.Value = 20;
}
</code><... | slider display not updated when value is changed by another window | c#|wpf | 0 | 28 | 1 | 72,111,174 | 72,111,174 | 0 | true | 2022-05-04T10:00:55.267Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
slider display not updated when value is changed by another window<p>I have a window with 2 buttons and a slider.
button1 creates a new window and the button... |
72,111,410 | Return UI components from functions in react-native<p>The following code is working fine</p>
<pre><code><View>
<ViewShot ref={viewShotRef}>
<Grayscale >
<Image style={styles.imgstyle}
source={{ uri: sourceImage, }}
onLoadEnd={o... | <p>You cannot call a function inside a JSX block without using curly braces. The following will fix your issue.</p>
<pre class="lang-js prettyprint-override"><code><View>
<ViewShot ref={viewShotRef}>
{renderFilter()}
</ViewShot>
</View>
</code></pre> | Return UI components from functions in react-native | react-native | 0 | 33 | 1 | 72,111,868 | 72,111,868 | 0 | true | 2022-05-04T10:22:30.763Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Return UI components from functions in react-native<p>The following code is working fine</p>
<pre><code><View>
<ViewShot ref={viewShotRef}>
... |
72,111,802 | How to make columns within a row unique<p>Suppose that I have a Room entity in a postgresql database which consists of</p>
<pre><code>Room {
id:uuid, //PK of Table
participant1: uuid, //foreign key to a user entity
participant2: uuid //foreign key to a user entity
}
</code></pre>
<p>I want to ensure that the in ... | <p>Use a check constraint:</p>
<pre><code>create table room
(
id integer primary key,
participant1 uuid,
participant2 uuid,
constraint unique_participant
check (participant1 <> participant2)
);
</code></pre>
<p>The above would allow NULL values in any of the columns or both.</p> | How to make columns within a row unique | postgresql | 0 | 19 | 1 | 72,111,921 | 72,111,921 | 0 | true | 2022-05-04T10:54:18.953Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to make columns within a row unique<p>Suppose that I have a Room entity in a postgresql database which consists of</p>
<pre><code>Room {
id:uuid, //PK ... |
72,111,322 | How to append from iterated dataframe row a calculated value into a new column into same row<p>unfortunately I can't get it to write a calculated value from one row to the same row, so that it creates a new dataframe that has two new columns of calculated values.</p>
<p>My dataframe looks like this:</p>
<div class="s-t... | <h4>solution</h4>
<p>using <code>loc</code>, <code>data.loc[index,'error_count1'] = error_count_1</code></p>
<h5>btw</h5>
<p>I tested your code, but got result like this</p>
<pre class="lang-py prettyprint-override"><code>for idx, row in data.iterrows():
data[idx,'add col'] = idx
</code></pre>
<pre><code> text1 te... | How to append from iterated dataframe row a calculated value into a new column into same row | python|pandas|dataframe | 0 | 27 | 2 | 72,112,343 | 72,112,343 | 0 | true | 2022-05-04T10:16:32.110Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to append from iterated dataframe row a calculated value into a new column into same row<p>unfortunately I can't get it to write a calculated value from ... |
72,109,514 | Disable dropbox Apps files.metadata.read permission<p>For some security reason I hope to enable files.metadata.write and disable files.metadata.read in dropbox app permission setting but failed.</p>
<p>Is any that I can disable files.metadata.read permission?</p> | <p>The Dropbox API scope "files.metadata.write" depends on "files.metadata.read", so it's not possible to enable "files.metadata.write" without also enabling "files.metadata.read".</p> | Disable dropbox Apps files.metadata.read permission | dropbox-api | 0 | 26 | 1 | 72,113,018 | 72,113,018 | 0 | true | 2022-05-04T07:48:42.190Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Disable dropbox Apps files.metadata.read permission<p>For some security reason I hope to enable files.metadata.write and disable files.metadata.read in dropb... |
72,112,286 | How to extract and replace not lower case letters in a file using python code?<p>I am able to extract and replace the Directory names by using below code, but same way iwould like change the paths in a file. How do we do?</p>
<pre><code>count = 1
temp = os.walk(folder_path, topdown=False)
for root, dirs, files in temp:... | <p>to open file use <code>open()</code> then use regex <code>[a-z]+_</code> to replace lowercase before the <code>_</code></p>
<pre><code>import re
with open('a.txt','r') as f: # `r` for read file
newText = re.sub(r'[a-z]+_', '_', f.read()) # replace lowercase
# save results
with open('a-result.txt', ... | How to extract and replace not lower case letters in a file using python code? | python | 0 | 34 | 1 | 72,113,327 | 72,113,327 | 0 | true | 2022-05-04T11:35:22.087Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to extract and replace not lower case letters in a file using python code?<p>I am able to extract and replace the Directory names by using below code, bu... |
72,113,138 | How to implement token validation linked to a PDF document?<p>So, I am developing a website for my university that manage courses and online activities (like panels, lectures, etc) and I created a module that sends a PDF document with a participation certificate to the people that attended to these activities, and now ... | <p>You can generate QR code and put it footer of the document. When user scan the QR code user will be redirected your web site with query parameters. Now you can get URL in Angular and show the document.</p> | How to implement token validation linked to a PDF document? | java|angular|spring|spring-boot | 0 | 31 | 1 | 72,113,543 | 72,113,543 | 0 | true | 2022-05-04T12:37:52.270Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to implement token validation linked to a PDF document?<p>So, I am developing a website for my university that manage courses and online activities (like... |
72,113,004 | Reversing the y axis on discrete data<p>I have a chart built with ggridges, as below, for which I would like to reverse the date order:</p>
<p><a href="https://i.stack.imgur.com/7oa7b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7oa7b.png" alt="enter image description here" /></a></p>
<p>To do thi... | <p>Use:</p>
<pre><code>ylim("20220427", "20220420", "20220413")
</code></pre> | Reversing the y axis on discrete data | r|ggplot2 | 0 | 29 | 1 | 72,113,682 | 72,113,682 | 0 | true | 2022-05-04T12:28:47.097Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Reversing the y axis on discrete data<p>I have a chart built with ggridges, as below, for which I would like to reverse the date order:</p>
<p><a href="https... |
72,113,850 | "Sorted List Output" Powershell Script<p>how can i format the output in a powershell script from this command? When i just type it in the console it sorts nicely but in the script it just throw all in one row</p>
<p>$diskpartitions = Get-Partition |Select PartitionNumber, DriveLetter, Size, DiskId | Sort-Object DiskId
... | <p><code>Write-Host</code> converts any input given to it into the form of a string. A string has to take a nicely formatted PowerShell object and convert it into, well, a string.</p>
<p>You should use <code>Write-Output</code> instead, which will render your object as you have it.</p>
<pre><code>PS>Write-output $d... | "Sorted List Output" Powershell Script | list|powershell|script | 0 | 29 | 1 | 72,113,968 | 72,113,968 | 0 | true | 2022-05-04T13:33:58.237Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
"Sorted List Output" Powershell Script<p>how can i format the output in a powershell script from this command? When i just type it in the console it sorts ni... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.