qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,346,847 | <p>I am working on a complex web application in which from time to time, I need to fetch data from backend API. Sometimes, I need to call 2 future functions in Future Builder to use their values. However, it makes code messy because for each FutureBuilder I need to check, if it has data or not and return the widget. It... | [
{
"answer_id": 74346934,
"author": "eamirho3ein",
"author_id": 10306997,
"author_profile": "https://Stackoverflow.com/users/10306997",
"pm_score": 4,
"selected": true,
"text": "class ResultModel{\n final object1 result1;\n final object2 result2;\n ResultModel({required this.result1, r... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1161518/"
] |
74,346,850 | <p>I am creating a function to view data from 1 of 3, each category has its own unique list of headings.</p>
<p>The function has two args: <code>function openReport(category , report)</code></p>
<p>With types, I want to the category value to be the condition to set the report type.</p>
<pre><code>type reportCategory= '... | [
{
"answer_id": 74346938,
"author": "mickl",
"author_id": 6238977,
"author_profile": "https://Stackoverflow.com/users/6238977",
"pm_score": 3,
"selected": true,
"text": "reportCategory type reports = {\n 'financial': 'financial workspaces' | 'financial datacenter',\n 'operational': 'ope... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17580280/"
] |
74,346,859 | <p>How to add column named "ref" with value "1" in table DT1, for existing rows in table DT2, using join on 2 columns (id1=id3 and id2=id4)?</p>
<pre><code>DT1 <- data.table(
id1 = c('A','B','C', 'D'),
id2 = c(1,2,3,4)
)
DT2 <- data.table(
id3 = c('B','D','F'),
id4 = c(2,4,5)
)
</code... | [
{
"answer_id": 74346939,
"author": "Maël",
"author_id": 13460602,
"author_profile": "https://Stackoverflow.com/users/13460602",
"pm_score": 1,
"selected": false,
"text": "%in% DT1[, ref := +(id1 %in% DT2$id3)]\n\n id1 id2 ref\n1: A 1 0\n2: B 2 1\n3: C 3 0\n4: D 4 ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19123441/"
] |
74,346,897 | <p>I've recently had to debug a cython library for a specific version of python on ubuntu and I needed python, venv, distutils, cython, pip, a compiler, and a text editor. I had to go fishing around the web for instructions on how to do this, so I'm asking this question to answer with what I did.</p>
<p>I googled it a... | [
{
"answer_id": 74346939,
"author": "Maël",
"author_id": 13460602,
"author_profile": "https://Stackoverflow.com/users/13460602",
"pm_score": 1,
"selected": false,
"text": "%in% DT1[, ref := +(id1 %in% DT2$id3)]\n\n id1 id2 ref\n1: A 1 0\n2: B 2 1\n3: C 3 0\n4: D 4 ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4127286/"
] |
74,346,919 | <p>Is it possible that <strong>2 azure functions</strong> can get <strong>triggered by one eventhub</strong>? One azure function will write its data to database1 and the other azure function writes its data to database2</p>
<pre><code>[FunctionName("EventToDB1")]
public async System.Threading.Tasks.Task Run([... | [
{
"answer_id": 74348794,
"author": "Peter Bons",
"author_id": 932728,
"author_profile": "https://Stackoverflow.com/users/932728",
"pm_score": 1,
"selected": false,
"text": "ConsumerGroup $Default public class EventToDB1\n{\n [FunctionName(\"EventToDB1\")]\n public async System.Thre... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20440213/"
] |
74,346,960 | <p>I need to create a UDF in pyspark that converts letter grades ('A', 'B', 'C', 'D', 'F') to numerical grades (4, 3, 2, 1, and 0). I then need to register this function as a spark UDF.
Next, I have a dataframe 'current_gpa'. Current_gpa has a column named 'grade' I need to add a column to the dataframe current_gpa cal... | [
{
"answer_id": 74356398,
"author": "samkart",
"author_id": 8279585,
"author_profile": "https://Stackoverflow.com/users/8279585",
"pm_score": 1,
"selected": false,
"text": "when().otherwise() map letter_class_dict = {\"A\": 4, \"B\": 3, \"C\": 2, \"D\": 1, \"F\": 0}\n\n# create individual... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20438731/"
] |
74,346,961 | <p>I have a future, that returns a Future response.</p>
<pre><code>class FutureInformation extends StatelessWidget {
const FutureInformation({Key? key}) : super(key: key);
Future<List<SliderDetails>> getSliderDetails() async {
try {
var response = await http.get((Uri.parse("/path/to/json... | [
{
"answer_id": 74347204,
"author": "BLKKKBVSIK",
"author_id": 11550065,
"author_profile": "https://Stackoverflow.com/users/11550065",
"pm_score": 0,
"selected": false,
"text": "Future<List<SliderDetails>> Future await async Future List<SliderDetails> Future<List<SliderDetails>> List<Slid... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1348731/"
] |
74,346,964 | <p>I'm trying to change the value in xml.</p>
<p>XML file:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<settings>
<setting name="Attach" defaultValue="False" value="" />
<setting name="Connections" defaultValue="" v... | [
{
"answer_id": 74347122,
"author": "frankM_DN",
"author_id": 20034020,
"author_profile": "https://Stackoverflow.com/users/20034020",
"pm_score": 1,
"selected": false,
"text": "$xmldata.settings.ChildNodes | where {$_.name -eq \"Connections\"} | foreach {$_.value = \"new-value\"}\n"
},
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8137621/"
] |
74,346,979 | <p>I want to go inside frame name "body", but it isnt work. I can go to first frame and everything works, but problem is when I try to go inside indeed frameset. Selenium cant see it</p>
<p>This is my code:</p>
<pre><code>frame = driver.find_element(By.XPATH, "/html/frameset/frame[2]")
driver.switch... | [
{
"answer_id": 74347122,
"author": "frankM_DN",
"author_id": 20034020,
"author_profile": "https://Stackoverflow.com/users/20034020",
"pm_score": 1,
"selected": false,
"text": "$xmldata.settings.ChildNodes | where {$_.name -eq \"Connections\"} | foreach {$_.value = \"new-value\"}\n"
},
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346979",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20440282/"
] |
74,346,994 | <div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>LastName</th>
<th>FirstName</th>
</tr>
</thead>
<tbody>
<tr>
<td>Mr.</td>
<td>Bean</td>
</tr>
<tr>
<td>Mr.</td>
<td>Jobe</td>
</tr>
</tbody>
</table>
</div>
<p>How to use like operators when input name is “Obe ”
Wanna match both column for the inp... | [
{
"answer_id": 74347122,
"author": "frankM_DN",
"author_id": 20034020,
"author_profile": "https://Stackoverflow.com/users/20034020",
"pm_score": 1,
"selected": false,
"text": "$xmldata.settings.ChildNodes | where {$_.name -eq \"Connections\"} | foreach {$_.value = \"new-value\"}\n"
},
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20078523/"
] |
74,346,998 | <p>After converting a Plotly graph to an HTML Page by this code:</p>
<pre><code>import plotly
import plotly.express as px
df = px.data.stocks()
fig = px.line(df, x='date', y="GOOG")
plotly.offline.plot(fig , filename = 'filename.html', auto_open=False)
</code></pre>
<p>How can I store this HTML Page on an ... | [
{
"answer_id": 74347122,
"author": "frankM_DN",
"author_id": 20034020,
"author_profile": "https://Stackoverflow.com/users/20034020",
"pm_score": 1,
"selected": false,
"text": "$xmldata.settings.ChildNodes | where {$_.name -eq \"Connections\"} | foreach {$_.value = \"new-value\"}\n"
},
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74346998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,347,026 | <p>I leave the error. I was working with this module until yesterday. Whn I try to run appear this error. If I create a new project when install it, Appear always the same
`</p>
<pre><code> ^
</code></pre>
<p>F:\lantis_new_and_updated\node_modules\react-native-c... | [
{
"answer_id": 74347122,
"author": "frankM_DN",
"author_id": 20034020,
"author_profile": "https://Stackoverflow.com/users/20034020",
"pm_score": 1,
"selected": false,
"text": "$xmldata.settings.ChildNodes | where {$_.name -eq \"Connections\"} | foreach {$_.value = \"new-value\"}\n"
},
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18666916/"
] |
74,347,062 | <p>I have my Blazor component with some <code>JavaScript</code> code. When there is a click detected by the JavaScript code, I want to call an <code>JSInvokable</code> function in my Blazor component to update the UI.</p>
<p>So, I created a function like this</p>
<pre><code>[JSInvokable]
public static async Task Change... | [
{
"answer_id": 74347122,
"author": "frankM_DN",
"author_id": 20034020,
"author_profile": "https://Stackoverflow.com/users/20034020",
"pm_score": 1,
"selected": false,
"text": "$xmldata.settings.ChildNodes | where {$_.name -eq \"Connections\"} | foreach {$_.value = \"new-value\"}\n"
},
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5201985/"
] |
74,347,063 | <p>I had previously modelled a ManyToMany relation in JPA but now I had to make it OneToMany and ManyToOne. I had some input from a friend but now I am unable to save the join table correctly.</p>
<p>These are my entities:</p>
<p>Label:</p>
<pre><code>public class Label implements Serializable {
@Id
@Generated... | [
{
"answer_id": 74347122,
"author": "frankM_DN",
"author_id": 20034020,
"author_profile": "https://Stackoverflow.com/users/20034020",
"pm_score": 1,
"selected": false,
"text": "$xmldata.settings.ChildNodes | where {$_.name -eq \"Connections\"} | foreach {$_.value = \"new-value\"}\n"
},
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11903423/"
] |
74,347,108 | <p>Our app works fine without problems during the OAuth flow, that is, the following URL:
<a href="https://accounts.google.com/o/oauth2/auth" rel="nofollow noreferrer">https://accounts.google.com/o/oauth2/auth</a></p>
<p>However, if the account is under the <a href="https://landing.google.com/advancedprotection/" rel="... | [
{
"answer_id": 74347122,
"author": "frankM_DN",
"author_id": 20034020,
"author_profile": "https://Stackoverflow.com/users/20034020",
"pm_score": 1,
"selected": false,
"text": "$xmldata.settings.ChildNodes | where {$_.name -eq \"Connections\"} | foreach {$_.value = \"new-value\"}\n"
},
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347108",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4976038/"
] |
74,347,112 | <p><a href="https://i.stack.imgur.com/KXxj4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KXxj4.png" alt="enter image description here" /></a></p>
<p>I want to call the state method in answer file.
<a href="https://i.stack.imgur.com/Lf0vt.png" rel="nofollow noreferrer"><img src="https://i.stack.img... | [
{
"answer_id": 74347967,
"author": "Duck Programmer",
"author_id": 12858184,
"author_profile": "https://Stackoverflow.com/users/12858184",
"pm_score": 1,
"selected": false,
"text": "final VoidCallback selectHandler"
}
] | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20019751/"
] |
74,347,114 | <p>I have the following dataset:</p>
<pre><code>my.df <- data.frame(my_function=rep(c("Var1+Var 2","Var 2-Var1","(Var 2-(Var 2-Var1))/Var 2"), 1),
`Var1`=rep(1:1,3),
`Var 2`=rep(5:5,3), check.names = FALSE)
my.df
# my_function V... | [
{
"answer_id": 74347247,
"author": "Ric Villalba",
"author_id": 6912817,
"author_profile": "https://Stackoverflow.com/users/6912817",
"pm_score": 0,
"selected": false,
"text": "my.df <- data.frame(my_function=rep(c(\"1000+2000\",\"2000-1000\",\"(2000-(2000-1000))/2000\"), 1), `1000`=rep(... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6072684/"
] |
74,347,125 | <p>I was looking at this post <a href="https://stackoverflow.com/questions/17016175/c-unordered-map-using-a-custom-class-type-as-the-key">C++ unordered_map using a custom class type as the key</a></p>
<ol>
<li>I understand that we need to redefine <code>equality</code> and <code>hash code</code> for a custom type key.<... | [
{
"answer_id": 74347201,
"author": "Some programmer dude",
"author_id": 440558,
"author_profile": "https://Stackoverflow.com/users/440558",
"pm_score": 3,
"selected": true,
"text": "std::unordered_map std::hash operator() int int key = 123; // Or whatever value...\n\nstd::hash<int> hash... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347125",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13316849/"
] |
74,347,128 | <p>I created a confirm sell wherein the seller will be able to click a specific transaction in React JS, and once that transaction is complete, the status will be <code>completed</code> and the button should be disabled permanently.</p>
<p><a href="https://i.stack.imgur.com/QX49N.png" rel="nofollow noreferrer"><img src... | [
{
"answer_id": 74347256,
"author": "Jan",
"author_id": 12271495,
"author_profile": "https://Stackoverflow.com/users/12271495",
"pm_score": 1,
"selected": false,
"text": "<Button id=\"submit\" variant=\"contained\" \n onClick={(e) => confirmSell(recent._id)} \n disabled={executing} \n... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20088885/"
] |
74,347,138 | <p>i'm trying to make cartesian coordinate for my coursework and can only get here, I'm grateful if anyone can help me to fix this "0" line</p>
<pre><code><?php
$n=10;
for($i=-10;$i<=$n;$i++){
for($j=-10;$j<=$n;$j++){
if($i==0 || $j==0){
echo " $i ";
} else... | [
{
"answer_id": 74347256,
"author": "Jan",
"author_id": 12271495,
"author_profile": "https://Stackoverflow.com/users/12271495",
"pm_score": 1,
"selected": false,
"text": "<Button id=\"submit\" variant=\"contained\" \n onClick={(e) => confirmSell(recent._id)} \n disabled={executing} \n... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347138",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16412398/"
] |
74,347,141 | <p><a href="https://i.stack.imgur.com/cJF1O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cJF1O.png" alt="enter image description here" /></a></p>
<p>so, i want to hide "Overtime AC" Value when i choose Balikpapan Office.</p>
<p>This is my code, still not working</p>
<pre><code>var ddlLoc... | [
{
"answer_id": 74347256,
"author": "Jan",
"author_id": 12271495,
"author_profile": "https://Stackoverflow.com/users/12271495",
"pm_score": 1,
"selected": false,
"text": "<Button id=\"submit\" variant=\"contained\" \n onClick={(e) => confirmSell(recent._id)} \n disabled={executing} \n... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16564771/"
] |
74,347,142 | <p>I am encountering a issue that is ECU waked up by error frame.
Then, I got report from the testing team for this issue.
I am wondering why error frame can wake up the ECU in sleep mode? how can?</p>
<p>who know this issue or encountered this one, Please help me</p>
<p>I really appreciate your willing to support!</p>... | [
{
"answer_id": 74347256,
"author": "Jan",
"author_id": 12271495,
"author_profile": "https://Stackoverflow.com/users/12271495",
"pm_score": 1,
"selected": false,
"text": "<Button id=\"submit\" variant=\"contained\" \n onClick={(e) => confirmSell(recent._id)} \n disabled={executing} \n... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18519005/"
] |
74,347,147 | <p>i have a form where user can upload pictures with text fields. Image isn't mandatory. But when user don't upload the image, then on result page a broken image icon appears. i am using angular 14.</p>
<p>Here is what i have tried so far but that didn't work</p>
<pre><code><div id="task-description" data-... | [
{
"answer_id": 74347203,
"author": "Matthieu Riegler",
"author_id": 884123,
"author_profile": "https://Stackoverflow.com/users/884123",
"pm_score": 0,
"selected": false,
"text": "onerror <img src=\"Error.src\" onerror=\"this.style.display='none'\"/>\n"
},
{
"answer_id": 74347314,... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347147",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16903358/"
] |
74,347,149 | <p>I have a stringified data from which I'm trying to print a character that occurs before a matching pattern. This matching pattern will occur multiple times so the result can also be a list of characters</p>
<p>E.g</p>
<p>Stringified data is <code>[[1, "[{\"name\": \"john\", \"id\":... | [
{
"answer_id": 74347293,
"author": "Cobra",
"author_id": 17580381,
"author_profile": "https://Stackoverflow.com/users/17580381",
"pm_score": 2,
"selected": true,
"text": "astring = '[[1, \"[{\\\"name\\\": \\\"john\\\", \\\"id\\\": \\\"1\\\"}]\", [2, \"[{\\\"name\\\": \\\"john\\\", \\\"id... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11496645/"
] |
74,347,157 | <p>I'm currently trying to understand why this little piece of code doesn't work as expected:</p>
<pre><code>// ContentView.swift (before var body: some View)
let name = "Emma"
// ContentView.swift (inside var body: some View)
Text("hello-name \(name)")
// Localizable.strings
"hello-name %@&q... | [
{
"answer_id": 74347293,
"author": "Cobra",
"author_id": 17580381,
"author_profile": "https://Stackoverflow.com/users/17580381",
"pm_score": 2,
"selected": true,
"text": "astring = '[[1, \"[{\\\"name\\\": \\\"john\\\", \\\"id\\\": \\\"1\\\"}]\", [2, \"[{\\\"name\\\": \\\"john\\\", \\\"id... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18547664/"
] |
74,347,181 | <p>I have a problem when logging in, <strong>it does not show me the data in the database</strong>, it seems that the problem is in the function that <strong>fetches the data</strong>, but I don't know where the problem is</p>
<p>This is the function that fetches data from the database:</p>
<pre><code>Future<void>... | [
{
"answer_id": 74347377,
"author": "Remy",
"author_id": 20398469,
"author_profile": "https://Stackoverflow.com/users/20398469",
"pm_score": 0,
"selected": false,
"text": "try {} catch(e) {} response"
},
{
"answer_id": 74348160,
"author": "Frank van Puffelen",
"author_id":... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20358871/"
] |
74,347,193 | <p>I have a PHP array like so:</p>
<pre><code>$booleans = array(true, '||', false, '&&', true, '||', false);
</code></pre>
<p>Now I would now like to convert this array to a condition, e.g.:</p>
<pre><code>if(true || false && true || false){
// Do something
}
else{
// Do something else
}
</... | [
{
"answer_id": 74347511,
"author": "Stranger",
"author_id": 13349935,
"author_profile": "https://Stackoverflow.com/users/13349935",
"pm_score": 0,
"selected": false,
"text": "function validate($params) {\n return true || false && true || false; // Maybe you'd want to use $params in th... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347193",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3289949/"
] |
74,347,196 | <p>For example i inputted "ABC"</p>
<p>The output should be:</p>
<pre><code>*** ** ***
* * * * *
*** ** *
* * * * *
* * ** ***
</code></pre>
<p>I only tried the letter A but it results an error.
Can someone help me do it in plain python without any modules</p>
<pre><code>text = input("Enter my text: &... | [
{
"answer_id": 74347267,
"author": "Cory Kramer",
"author_id": 2296458,
"author_profile": "https://Stackoverflow.com/users/2296458",
"pm_score": 1,
"selected": false,
"text": "A = [[1,1,1], [1,0,1], [1,1,1], [1,0,1], [1,0,1]]\n for row in A:\n print(''.join('*' if s == 1 else ' ' for ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20440485/"
] |
74,347,209 | <p>I have created two new python notebooks for databricks in /workspace/Shared/Notebooks.</p>
<p>I would share some functions between the both notebooks. I have created a python file containing a few generic functions.</p>
<p>It exists a way to import my functions into my both notebooks ?</p>
<p>Thanks for your help.</... | [
{
"answer_id": 74347267,
"author": "Cory Kramer",
"author_id": 2296458,
"author_profile": "https://Stackoverflow.com/users/2296458",
"pm_score": 1,
"selected": false,
"text": "A = [[1,1,1], [1,0,1], [1,1,1], [1,0,1], [1,0,1]]\n for row in A:\n print(''.join('*' if s == 1 else ' ' for ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347209",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8094916/"
] |
74,347,235 | <p>I'm currently exploring using snakemake as a workflow tool.</p>
<p>In my specific use case I don't start from a list of files but rather from a list of values that should result in the creation of a list of files.</p>
<p>In my example, I create the files with a small python snippet which works fine but when I want t... | [
{
"answer_id": 74347267,
"author": "Cory Kramer",
"author_id": 2296458,
"author_profile": "https://Stackoverflow.com/users/2296458",
"pm_score": 1,
"selected": false,
"text": "A = [[1,1,1], [1,0,1], [1,1,1], [1,0,1], [1,0,1]]\n for row in A:\n print(''.join('*' if s == 1 else ' ' for ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/680164/"
] |
74,347,246 | <p>I am trying to select the last string after splitting it in Azure Data Factory.</p>
<p>My file name looks like this:</p>
<p><code>s = "cloudboxacademy/covid19/main/ecdc_data/hospital_admissions.csv"</code></p>
<p>With Python I would use <code>s.split('/')[-1]</code> to get the last element, according to <a... | [
{
"answer_id": 74347267,
"author": "Cory Kramer",
"author_id": 2296458,
"author_profile": "https://Stackoverflow.com/users/2296458",
"pm_score": 1,
"selected": false,
"text": "A = [[1,1,1], [1,0,1], [1,1,1], [1,0,1], [1,0,1]]\n for row in A:\n print(''.join('*' if s == 1 else ' ' for ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347246",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8913983/"
] |
74,347,276 | <p>Sometimes we get text like reversed when people scan documents in reverse, which will look like this:</p>
<pre><code>stri = "1234 ᔭƐᘔІ "
</code></pre>
<p>I would like to count occurance of the each number in this cases like.</p>
<pre class="lang-none prettyprint-override"><code>1 - occured 2 times includin... | [
{
"answer_id": 74347413,
"author": "The Myth",
"author_id": 15042008,
"author_profile": "https://Stackoverflow.com/users/15042008",
"pm_score": 1,
"selected": false,
"text": "UNICODE 1 1 UNICODES # Create a dict with the matching values\nstring_and_reverse = {\n \"1\": [\"1\", \"І\"],... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20440524/"
] |
74,347,279 | <p>I have a go struct which I'm using for my POST of an entity</p>
<pre><code>type Student struct {
ID string `json:"id" firestore:"id"`
Name string `json:"name" validate:"required" firestore:"name"`
}
</code></pre>
<p>From the POST body re... | [
{
"answer_id": 74347413,
"author": "The Myth",
"author_id": 15042008,
"author_profile": "https://Stackoverflow.com/users/15042008",
"pm_score": 1,
"selected": false,
"text": "UNICODE 1 1 UNICODES # Create a dict with the matching values\nstring_and_reverse = {\n \"1\": [\"1\", \"І\"],... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20261665/"
] |
74,347,282 | <p>Problem:
I have a ndarray (2000,7) and I want to count the numbers of Nan's per column and save it in an ndarray</p>
<p>Tried:</p>
<pre><code>number_nan_in_arr = np.count_nonzero(np.isnan(arr))
</code></pre>
<p>But this count the total number of nan's over all columns</p>
<p>Solution: ?</p>
| [
{
"answer_id": 74347337,
"author": "Hamzah",
"author_id": 16733101,
"author_profile": "https://Stackoverflow.com/users/16733101",
"pm_score": 2,
"selected": true,
"text": "axis=0 number_nan_in_arr = np.count_nonzero(np.isnan(arr), axis=0)\n import numpy as np \n\na = np.array([[0, np.nan... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19738291/"
] |
74,347,331 | <p>I have one column in MySQL which is return me comma separated value , I want to convert that column in to rows.</p>
<p>Better answer then <a href="https://stackoverflow.com/questions/22732151/how-to-convert-comma-separated-parameters-to-rows-in-mysql">How to convert comma separated parameters to rows in mysql?</a></... | [
{
"answer_id": 74347402,
"author": "Akina",
"author_id": 10138734,
"author_profile": "https://Stackoverflow.com/users/10138734",
"pm_score": 2,
"selected": true,
"text": "CREATE TABLE response (id INT, value TEXT)\nSELECT 1 id, 'honda,activa,pleasure,car' value;\n SELECT response.id, jso... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347331",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8823231/"
] |
74,347,358 | <p>I want to pass a property getter method reference as one of the function arguments, and have that argument be of my own functional interface type, but ran into an issue.</p>
<p>Here's a stripped down minimal reproducible case, I changed the variable from an argument into a property, but the issue is the same.</p>
<p... | [
{
"answer_id": 74347720,
"author": "Tarmo",
"author_id": 3020903,
"author_profile": "https://Stackoverflow.com/users/3020903",
"pm_score": 0,
"selected": false,
"text": "class Foo(\n val bar: Bar\n)\n\ndata class Bar(\n val value: String\n)\n\ninterface FooBarSelector {\n fun select(f... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347358",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5999354/"
] |
74,347,384 | <p>I am trying to find a specific element inside a certain parent element "table_list". However, the webdriver finds all the occurence of my required element on the web page.</p>
<pre><code>def value():
table_list = driver.find_element(By.ID,"table_list")
print(table_list.text)
value_inf... | [
{
"answer_id": 74347720,
"author": "Tarmo",
"author_id": 3020903,
"author_profile": "https://Stackoverflow.com/users/3020903",
"pm_score": 0,
"selected": false,
"text": "class Foo(\n val bar: Bar\n)\n\ndata class Bar(\n val value: String\n)\n\ninterface FooBarSelector {\n fun select(f... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347384",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18459359/"
] |
74,347,406 | <p>I have 2 lists</p>
<p><code>l1 = [['a',1],['b',2],['c',3]]</code>
<code>l2 = [['b',2,10],['c',3,8]]</code></p>
<p>I want the below code to be replicated using list comprehension in python:</p>
<pre><code>for i in range(len(l1)):
cnt = 0
for j in range(len(l2)):
if (l1[i][0]==l2[j][0]) & (l1[i][1]... | [
{
"answer_id": 74347720,
"author": "Tarmo",
"author_id": 3020903,
"author_profile": "https://Stackoverflow.com/users/3020903",
"pm_score": 0,
"selected": false,
"text": "class Foo(\n val bar: Bar\n)\n\ndata class Bar(\n val value: String\n)\n\ninterface FooBarSelector {\n fun select(f... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347406",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20440489/"
] |
74,347,411 | <pre class="lang-js prettyprint-override"><code>var tablNum = prompt("enter numberr");
var tableCout = (tablNum * 10) + 1 ;
for (let i = tablNum; i < tableCout; i = i + 10) {
console.log(i)
}
</code></pre>
<p>This is my code but when I run my code, the loop works. I am trying to make math table g... | [
{
"answer_id": 74347460,
"author": "Mtdt",
"author_id": 12966265,
"author_profile": "https://Stackoverflow.com/users/12966265",
"pm_score": 2,
"selected": false,
"text": "var tablNum = Number(prompt(\"enter number\"));\n"
},
{
"answer_id": 74347488,
"author": "ncpa0cpl",
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20081031/"
] |
74,347,443 | <p>I am using Spring Boot framework for my backend application and Keycloak for my user and access management system. I have a problem regarding creating a costume exception handler for 403 forbidden error.</p>
<p>I already read <a href="https://stackoverflow.com/questions/48306302/spring-security-creating-403-access-d... | [
{
"answer_id": 74347552,
"author": "Mohammad Javad",
"author_id": 16038483,
"author_profile": "https://Stackoverflow.com/users/16038483",
"pm_score": 0,
"selected": false,
"text": "@ControllerAdvice\npublic class AccessDeniedExceptionHandler implements AccessDeniedHandler {\n\n@Override\... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19584950/"
] |
74,347,458 | <p>Any help in figuring this out would be appreciated. I would like a forumla to calculate the number of times a code number appears more than once AND where type is A.</p>
<p>A sample set of data looks like the following:
<a href="https://i.stack.imgur.com/Y3duI.png" rel="nofollow noreferrer"><img src="https://i.stack... | [
{
"answer_id": 74347552,
"author": "Mohammad Javad",
"author_id": 16038483,
"author_profile": "https://Stackoverflow.com/users/16038483",
"pm_score": 0,
"selected": false,
"text": "@ControllerAdvice\npublic class AccessDeniedExceptionHandler implements AccessDeniedHandler {\n\n@Override\... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20440588/"
] |
74,347,463 | <p>I'm trying to update the stock field or create it when the model doesn't exists</p>
<p>The eloquent :</p>
<pre><code>\App\Models\MarketingStock::updateOrCreate(
['marketing_id' => $attr['marketing_id']],
['product_id' => $attr['product_id']],
)->increment('stock',$attr['qty']);
</code></pre>
<p>The ... | [
{
"answer_id": 74352138,
"author": "Mahmoud",
"author_id": 10094324,
"author_profile": "https://Stackoverflow.com/users/10094324",
"pm_score": -1,
"selected": false,
"text": "$table->integer('stock')->nullable();\n"
}
] | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12355557/"
] |
74,347,474 | <p>I'm struggling with mocking a method when mocking an ES6 class, using <a href="https://jestjs.io/docs/mock-function-api#jestmockedsource" rel="nofollow noreferrer"><code>MockedClass</code></a> of the jest library.</p>
<p>Example:</p>
<pre class="lang-js prettyprint-override"><code>export default class CalculatorServ... | [
{
"answer_id": 74352138,
"author": "Mahmoud",
"author_id": 10094324,
"author_profile": "https://Stackoverflow.com/users/10094324",
"pm_score": -1,
"selected": false,
"text": "$table->integer('stock')->nullable();\n"
}
] | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6094030/"
] |
74,347,486 | <p>I'm writing a fairly large text file (it's actually more like ascii-encoded data), and it's... very slow. And uses a lot of memory.</p>
<p>Here's a minimalistic version of the code I'm using to test how to write files more quickly. <code>writeFileIncrementally</code> writes one line at a time in a for loop, while <c... | [
{
"answer_id": 74348058,
"author": "Duncan C",
"author_id": 205185,
"author_profile": "https://Stackoverflow.com/users/205185",
"pm_score": 2,
"selected": false,
"text": "autoreleasepool() for i in 0..<size {\n autoreleasepool {\n let s = \"\\(i)\\n\"\n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1031253/"
] |
74,347,498 | <p>I had and issue when I Instantiate a game object.
I have a list of targets and when I instantiate my game object, I add this object to a list and set an Id to my object using PlayerPrefs.
my issue is that I have call a method onEnable that use the list and because OnEnable happen before the next line on the script, ... | [
{
"answer_id": 74351507,
"author": "derHugo",
"author_id": 7111561,
"author_profile": "https://Stackoverflow.com/users/7111561",
"pm_score": 2,
"selected": true,
"text": "OnEnable OnEnable private Action<YourTargetClass> onEnableDisable;\nprivate bool initialized;\n\npublic int Index => ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9343039/"
] |
74,347,549 | <p>I'm new to Docker and I'm trying to deploy a Discord music bot on a remote Ubuntu Linux server in a Docker container.</p>
<p>The problem is that when the bot is launched in the container, the music does not play, while other parts of the bot that are not related to music playback work fine; at the same time, if the ... | [
{
"answer_id": 74351507,
"author": "derHugo",
"author_id": 7111561,
"author_profile": "https://Stackoverflow.com/users/7111561",
"pm_score": 2,
"selected": true,
"text": "OnEnable OnEnable private Action<YourTargetClass> onEnableDisable;\nprivate bool initialized;\n\npublic int Index => ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18452428/"
] |
74,347,600 | <p>Here is an example of the csv</p>
<pre><code>17/10/2022 23:00;10
18/10/2022 00:00;10
19/10/2022 19:00;9
</code></pre>
<p>I want to remove specific rows depends on a date.
How would you do that?
Thank you so much.
I would like to do it as you introduce a range of dates, and it deletes everything out of the range.</p... | [
{
"answer_id": 74351507,
"author": "derHugo",
"author_id": 7111561,
"author_profile": "https://Stackoverflow.com/users/7111561",
"pm_score": 2,
"selected": true,
"text": "OnEnable OnEnable private Action<YourTargetClass> onEnableDisable;\nprivate bool initialized;\n\npublic int Index => ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347600",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20440754/"
] |
74,347,606 | <p>Sample code:</p>
<pre><code>library(tidyverse)
iris <- iris
test_tidyeval <- function(data, col_name, col_name_2, column1) {
mutate(
data,
{{col_name}} := case_when(Species == "setosa" ~ column1 + Sepal.Width + Petal.Length,
TRUE ~ column1),
{{col_name_2}} := case_w... | [
{
"answer_id": 74347878,
"author": "Andy Baxter",
"author_id": 10744082,
"author_profile": "https://Stackoverflow.com/users/10744082",
"pm_score": 1,
"selected": false,
"text": "library(tidyverse)\nlibrary(rlang)\n\n\ntest_tidyeval <- function(data, col_name, col_name_2, column1) {\n \n... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347606",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8487930/"
] |
74,347,646 | <p>I have a vue.js project and am using Vuex for my store. I am trying to process all notifications to users within the store and I am having some issues with async/await.</p>
<p>I am sure its something very simple and trivial but I am stuck. Any help is much appreciated.</p>
<p>Here is my function</p>
<pre><code>async... | [
{
"answer_id": 74347878,
"author": "Andy Baxter",
"author_id": 10744082,
"author_profile": "https://Stackoverflow.com/users/10744082",
"pm_score": 1,
"selected": false,
"text": "library(tidyverse)\nlibrary(rlang)\n\n\ntest_tidyeval <- function(data, col_name, col_name_2, column1) {\n \n... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347646",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2646266/"
] |
74,347,679 | <p>I have this dataset and list of dataframe matrixes as follows :</p>
<pre><code>set.seed(222)
df = data.frame(x = trunc(runif(10,0,2)),
y = trunc(runif(10,4,6)),
z = trunc(runif(10,19,21)),
m = trunc(runif(10,28,30)))
df
t1 = table(df$x,df$y)
t2=table(df$z,df$m)
L =... | [
{
"answer_id": 74347782,
"author": "Jilber Urbina",
"author_id": 1315767,
"author_profile": "https://Stackoverflow.com/users/1315767",
"pm_score": 3,
"selected": true,
"text": "sapply L1 rowSums sapply(L1, function(x) {\n tmp <- x[1, ]\n tmp <- tmp/rowSums(tmp)\n tmp\n})\n [,1] ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19720935/"
] |
74,347,701 | <p>I have the dataframe:</p>
<pre><code>df = batch Code
a 100
a 120
a 130
a 120
b 140
b 150
c 100
</code></pre>
<p>I want to add a column 'add_code' that will be the value of the column 'Code' from the next row, per batch.
So the output will be:</p>... | [
{
"answer_id": 74347724,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 2,
"selected": true,
"text": "DataFrameGroupBy.shift fill_value df['next_code'] = df.groupby('batch')['Code'].shift(-1, fill_value='END')\nprint (d... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6057371/"
] |
74,347,740 | <p>In Power Query, how is the first table transformed into the second? In the second table the categorical values are counted for every column. The set of values for every column is limited to: Strongly agree, Agree, Neutral, Disagree, Strongly disagree.</p>
<div class="s-table-container">
<table class="s-table">
<thea... | [
{
"answer_id": 74347914,
"author": "horseyride",
"author_id": 9264230,
"author_profile": "https://Stackoverflow.com/users/9264230",
"pm_score": 2,
"selected": true,
"text": "let Source = Excel.CurrentWorkbook(){[Name=\"Table1\"]}[Content],\n#\"Changed Type\" = Table.TransformColumnTypes... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9308858/"
] |
74,347,754 | <p>I read in the Julia doc page <a href="https://docs.julialang.org/en/v1/manual/variables/#:%7E:text=Variable%20names%20must%20begin%20with,Sm%20math%20symbols" rel="nofollow noreferrer">https://docs.julialang.org/en/v1/manual/variables/#:~:text=Variable%20names%20must%20begin%20with,Sm%20math%20symbols</a>)%20are%20a... | [
{
"answer_id": 74347914,
"author": "horseyride",
"author_id": 9264230,
"author_profile": "https://Stackoverflow.com/users/9264230",
"pm_score": 2,
"selected": true,
"text": "let Source = Excel.CurrentWorkbook(){[Name=\"Table1\"]}[Content],\n#\"Changed Type\" = Table.TransformColumnTypes... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/945738/"
] |
74,347,766 | <p>I have data similar to this:</p>
<pre><code>library(data.table)
library(stringr)
dt <- data.table(id=1:20,
month_1=rep(sample(1:12, 20, replace = T)),
month_2=rep(sample(1:12, 20, replace = T)),
month_3=rep(sample(1:12, 20, replace = T)),
month_4=rep(sample(1:12, 20, r... | [
{
"answer_id": 74347914,
"author": "horseyride",
"author_id": 9264230,
"author_profile": "https://Stackoverflow.com/users/9264230",
"pm_score": 2,
"selected": true,
"text": "let Source = Excel.CurrentWorkbook(){[Name=\"Table1\"]}[Content],\n#\"Changed Type\" = Table.TransformColumnTypes... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347766",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10455998/"
] |
74,347,794 | <p>I have an example data set</p>
<pre><code>data test;
input ID 1-4
var1 $ 5-13
;
datalines;
1 Apples
2 Chocolate
3 Milk
3 Cocoa
3 Cake
3 Sugar
4 Marmelade
5 Banana
6 Rice
6 Beef
;
run;
</code></pre>
<p>I want to create a third variable all_names where I group all entries for var1 given that the I... | [
{
"answer_id": 74347910,
"author": "PeterClemmensen",
"author_id": 4044936,
"author_profile": "https://Stackoverflow.com/users/4044936",
"pm_score": 3,
"selected": true,
"text": "data test;\ninput ID 1-4\nvar1 $ 5-13\n;\ndatalines;\n1 Apples\n2 Chocolate\n3 Milk\n3 Cocoa\n3 Cak... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11820022/"
] |
74,347,814 | <p>I'm new to HTML and CSS and I have a problem. I'm working on responsive design and where I have a <code>media screen</code> of <code>min-width 860px</code>. I want my navigation text to be next to my logo. I managed to do this, but the navigation text is placed on top of my line instead of in the center.</p>
<p>(hop... | [
{
"answer_id": 74347886,
"author": "Aleksandre Geladze",
"author_id": 17348589,
"author_profile": "https://Stackoverflow.com/users/17348589",
"pm_score": 2,
"selected": false,
"text": ".netflix-logo && nav a .netflix-container {\n display:flex;\n justify-content:center\n align-item... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20440859/"
] |
74,347,822 | <p>I can't find a correct solution to this problem and I'm stuck. Let's say I have this method</p>
<pre><code> @GET
@Path("/testingAsync")
public Uni<List<String>> testingMutiny() {
List<String> completeList = new ArrayList<>();
completeList.add("hello&q... | [
{
"answer_id": 74347886,
"author": "Aleksandre Geladze",
"author_id": 17348589,
"author_profile": "https://Stackoverflow.com/users/17348589",
"pm_score": 2,
"selected": false,
"text": ".netflix-logo && nav a .netflix-container {\n display:flex;\n justify-content:center\n align-item... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10839527/"
] |
74,347,842 | <p>I need to copy a lot of files and use the same sort of folder structure where the files needs to go.
So for instance if I have the following two documents:</p>
<pre><code>\\Server1\Projects\OldProject\English\Text_EN.docx
\\Server1\Projects\OldProject\English\Danish\Text_DA.docx
</code></pre>
<p>I would need to move... | [
{
"answer_id": 74347886,
"author": "Aleksandre Geladze",
"author_id": 17348589,
"author_profile": "https://Stackoverflow.com/users/17348589",
"pm_score": 2,
"selected": false,
"text": ".netflix-logo && nav a .netflix-container {\n display:flex;\n justify-content:center\n align-item... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16713387/"
] |
74,347,869 | <p>I'm receiving the below XML response from an API call and am looking to iterate through the "Results" and store all of the data points as a pandas dataframe.</p>
<p>I was successfully able to grab my data points of interest by chaining .find() methods shown below, but don't know how to loop through all of ... | [
{
"answer_id": 74347886,
"author": "Aleksandre Geladze",
"author_id": 17348589,
"author_profile": "https://Stackoverflow.com/users/17348589",
"pm_score": 2,
"selected": false,
"text": ".netflix-logo && nav a .netflix-container {\n display:flex;\n justify-content:center\n align-item... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9982613/"
] |
74,347,888 | <p>I am trying to nest two components by writing their Element selector into each other like this <code><outerElementSelector><innerElementSelector></innerElementSelector></outerElementSelector></code> in the HTML file of another third component. I found that my <code><innerElementSelector>... | [
{
"answer_id": 74347886,
"author": "Aleksandre Geladze",
"author_id": 17348589,
"author_profile": "https://Stackoverflow.com/users/17348589",
"pm_score": 2,
"selected": false,
"text": ".netflix-logo && nav a .netflix-container {\n display:flex;\n justify-content:center\n align-item... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347888",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19410750/"
] |
74,347,890 | <p>I have a Datafaame like this:</p>
<pre><code> dt <- tibble(
TRIAL = c("A", "A", "A", "B", "B", "B", "C", "C", "C","D","D","D"),
RL = c(1, NA, 3, 1, 6, 3, 2, 3, 1, 0, 1.5, NA),
SL = c(6, 1.5, ... | [
{
"answer_id": 74348295,
"author": "Ricardo Semião e Castro",
"author_id": 13048728,
"author_profile": "https://Stackoverflow.com/users/13048728",
"pm_score": 3,
"selected": true,
"text": "RL SL ifelse across dt %>%\n group_by(TRIAL) %>%\n mutate(cond = any(RL > 5.0 | SL > 5.0, na.rm =... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17445085/"
] |
74,347,952 | <p>I want to separate string from the digits using regex. I don't want to replace anything just add space. I don't want to add space in digit and special character or string and special character.
for example</p>
<pre><code> "A-21PHASE-1,ASHOK VIHARA-21, PHASE-1, - ASHOK VIHAR110052"
</code></pre>
<p>output ... | [
{
"answer_id": 74348061,
"author": "treuss",
"author_id": 19838568,
"author_profile": "https://Stackoverflow.com/users/19838568",
"pm_score": 2,
"selected": true,
"text": "thestring = re.sub(r'(\\d)([A-Z])', r'\\1 \\2', thestring)\nthestring = re.sub(r'([A-Z])(\\d)', r'\\1 \\2', thestrin... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12362316/"
] |
74,347,954 | <p>Something like:</p>
<pre class="lang-py prettyprint-override"><code>string_one = "hello world one"
string_two = "hello john one"
if string_one = string_two:
do something
</code></pre>
<p>So if it detects 2 words in 2 (or more) strings that are the same do something. But I can't figure out how... | [
{
"answer_id": 74347988,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 3,
"selected": true,
"text": "split() set len >>> string_one = \"hello world one\"\n>>> string_two = \"hello john one\"\n>>> set(string_one.split()... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20440977/"
] |
74,347,961 | <p>I am struggling to stop my entire List from rerendering. When I select an item it should be underlined. It should suffice if the newly selected and the previously selected elements are rerendered.<br />
In a worst-case scenario, this List can get hundreds of entries long and it's getting really slow. So I tried usin... | [
{
"answer_id": 74348236,
"author": "Ji aSH",
"author_id": 6108947,
"author_profile": "https://Stackoverflow.com/users/6108947",
"pm_score": 2,
"selected": false,
"text": "for (let i = 0 ; i < 10000 ; i++) {\n data.push({ id: String(i), exampledata: `Value ${i}`})\n}\n"
},
{
"ans... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19633641/"
] |
74,347,966 | <p>I have some statements like this in notepad ++</p>
<pre><code>INSERT INTO ZZZZZZZ (A,B,C,D)
VALUES (1,2,3,4)
;
</code></pre>
<p>I need to put the semicolon after the end of line 2 for all the occurrences.
Desired output :</p>
<pre><code>INSERT INTO ZZZZZZZ (A,B,C,D)
VALUES (1,2,3,4);
</code></pre>
<p>How to do that ... | [
{
"answer_id": 74347995,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": true,
"text": "Find: $\\R;\nReplace: ;\n"
}
] | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5846981/"
] |
74,347,977 | <p><strong>here is my class model</strong></p>
<p>do not pay attention to hivefield and hivetype</p>
<p>I know how to read the data from my Patient list but not from ListNote which is in my Patient list</p>
<pre><code>import 'package:hive_flutter/hive_flutter.dart';
part 'listpatient.g.dart';
@HiveType(typeId: 0)
cla... | [
{
"answer_id": 74348174,
"author": "LacticWhale",
"author_id": 11962301,
"author_profile": "https://Stackoverflow.com/users/11962301",
"pm_score": 1,
"selected": false,
"text": "children: [\n ...widget.patients.listOfNotes.map((e) -> Card(child: Text(e.title)))\n]\n"
},
{
"answe... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74347977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17817878/"
] |
74,348,006 | <p>I've set up this opening hours timetable for my website, but I wanted to get rid of unnecessary javascript and therefore wanted to do with liquid only.</p>
<p>I'm not very familiar with it but could anyone maybe point me in the right direction? Is it possible to do "if certain day between this and that time&quo... | [
{
"answer_id": 74349231,
"author": "Fabio Filippi",
"author_id": 343794,
"author_profile": "https://Stackoverflow.com/users/343794",
"pm_score": 1,
"selected": false,
"text": "date {% assign openings = \"MON,TUE,WED,FRI,SUN\" | split: \",\" %}\n{% assign opening_hour = \"09\" %}\n{% assi... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17621645/"
] |
74,348,035 | <p>With MAP I can easily return single cell values, like in</p>
<pre><code> =MAP(SEQUENCE(5),LAMBDA(x,x*x))
</code></pre>
<p>However, if I try to return compound values 8ranges or arrays) it doesn't seem to work, like in</p>
<pre><code> =MAP(SEQUENCE(5),LAMBDA(x,HSTACK(x,x*x)))
</code></pre>
<p>... and I get a CALC! er... | [
{
"answer_id": 74348108,
"author": "JvdV",
"author_id": 9758194,
"author_profile": "https://Stackoverflow.com/users/9758194",
"pm_score": 3,
"selected": true,
"text": "REDUCE() MAP() A1 =DROP(REDUCE(\"\",SEQUENCE(5),LAMBDA(a,b,VSTACK(a,IF({1,0},b,b*b)))),1)\n =DROP(REDUCE(\"\",SEQUENCE(5... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6304284/"
] |
74,348,036 | <p>I have a table and I need to get rows which matche a list of values. I've created a <a href="http://sqlfiddle.com/#!4/280d0/15" rel="nofollow noreferrer">SQLFiddle</a> where you can see the result.</p>
<p>This query is used to populate a DropDownList which uses or not autocompletion.
So there are two possible uses f... | [
{
"answer_id": 74348583,
"author": "MT0",
"author_id": 1509264,
"author_profile": "https://Stackoverflow.com/users/1509264",
"pm_score": 3,
"selected": true,
"text": "N L PN COUNT SELECT sms, pgm, pn, team, num\nFROM (\n SELECT a.*,\n COUNT(CASE PGM WHEN 'N' THEN 1 END) OVER (... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348036",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4191101/"
] |
74,348,037 | <p>I have huge data and I want merge it on a specific column where values from df1 is not available in df2 and vice versa.</p>
<p>Example:</p>
<p>df1:</p>
<pre><code>Domain Sales
google.com 100
facebook.com 200
youtube.com 300
</code></pre>
<p>df2:</p>
<pre><code>Domain Sales
google.com 100
yahoo.c... | [
{
"answer_id": 74348087,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 3,
"selected": true,
"text": "pd.concat([df1, df2]).drop_duplicates('Domain', keep=False)\n"
},
{
"answer_id": 74348089,
"author": ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11834577/"
] |
74,348,070 | <p>I have some rows in an SQL table.
I have attributes as: id, name, etc.
Some of the names (in the name column) are built from some name ("xyz") and the id</p>
<pre class="lang-none prettyprint-override"><code>id name
333 regularName
555 somename.555
666 myName.... | [
{
"answer_id": 74348287,
"author": "a_horse_with_no_name",
"author_id": 330315,
"author_profile": "https://Stackoverflow.com/users/330315",
"pm_score": 2,
"selected": true,
"text": "select * \nfrom MY_TABLE \nwhere name not like concat('%.', id::text);\n"
},
{
"answer_id": 743482... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11492153/"
] |
74,348,073 | <p>assume a table has id and date columns, is there a way to apply different date filter to each id?</p>
<p>one way I can think of is to add a flag column that is populated with an if ladder</p>
<p>if id=A and date>date1 then 1</p>
<p>elseif id=B and date>date2 then 1</p>
<p>elseif id=C and date>date3 then 1</... | [
{
"answer_id": 74348214,
"author": "jarlh",
"author_id": 3706016,
"author_profile": "https://Stackoverflow.com/users/3706016",
"pm_score": 2,
"selected": true,
"text": "where (id=A and date>date1)\n or (id=B and date>date2)\n or (id=C and date>date3)\n"
},
{
"answer_id": 7434... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348073",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18398254/"
] |
74,348,116 | <p>The data in the column does not align with the headers.</p>
<p>I have tried to set the display in the head to</p>
<pre><code> display: table-header-group;
</code></pre>
<p>to no avail.</p>
<p>Thanks</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snip... | [
{
"answer_id": 74348214,
"author": "jarlh",
"author_id": 3706016,
"author_profile": "https://Stackoverflow.com/users/3706016",
"pm_score": 2,
"selected": true,
"text": "where (id=A and date>date1)\n or (id=B and date>date2)\n or (id=C and date>date3)\n"
},
{
"answer_id": 7434... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13811854/"
] |
74,348,124 | <p>I am using React with Typescript.</p>
<p>I am passing <code>id</code> as a prop to my button component. Still getting the mentioned error on <code>e.target.id</code></p>
<pre><code> function handleButtonClick(e: React.MouseEvent<HTMLButtonElement>) {
someOperation(e.target.id)
}
</code></pre>
<p>React:... | [
{
"answer_id": 74348214,
"author": "jarlh",
"author_id": 3706016,
"author_profile": "https://Stackoverflow.com/users/3706016",
"pm_score": 2,
"selected": true,
"text": "where (id=A and date>date1)\n or (id=B and date>date2)\n or (id=C and date>date3)\n"
},
{
"answer_id": 7434... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20002028/"
] |
74,348,134 | <p>I'm aware that the question is awkward. If I could phrase it better I'd probably find the solution in an other thread.</p>
<p>I have this data structure...</p>
<pre class="lang-r prettyprint-override"><code>df <- data.frame(group = c("X", "F", "F", "F", "F", "... | [
{
"answer_id": 74348214,
"author": "jarlh",
"author_id": 3706016,
"author_profile": "https://Stackoverflow.com/users/3706016",
"pm_score": 2,
"selected": true,
"text": "where (id=A and date>date1)\n or (id=B and date>date2)\n or (id=C and date>date3)\n"
},
{
"answer_id": 7434... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2996802/"
] |
74,348,189 | <p>I try to show the contents of a dictionary that has to return this output:</p>
<pre><code>'Watermeloenen': 466, 'Appels': 688, 'Sinaasappels': 803
</code></pre>
<p>So I have this method:</p>
<pre><code> def total_fruit_per_sort(self, file_content):
file_contents = self.extractingText.extract_text_from_ima... | [
{
"answer_id": 74348214,
"author": "jarlh",
"author_id": 3706016,
"author_profile": "https://Stackoverflow.com/users/3706016",
"pm_score": 2,
"selected": true,
"text": "where (id=A and date>date1)\n or (id=B and date>date2)\n or (id=C and date>date3)\n"
},
{
"answer_id": 7434... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7713770/"
] |
74,348,193 | <p>I want to create a randomized bool array with a given length a given number of True values efficiently in Python. I could not find a single command to do so, the following does what I want (twice). Is there anything more elegant way to do it?</p>
<pre><code>import numpy as np
def randbool(length,numtrue):
index... | [
{
"answer_id": 74348336,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 1,
"selected": false,
"text": "def randbool3(length, numtrue):\n return np.random.choice(length, length, replace=False) < numtrue\n"
},
{
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348193",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3373796/"
] |
74,348,197 | <p>reading the <a href="https://redux-toolkit.js.org/rtk-query/usage/mutations" rel="nofollow noreferrer">documentation</a> I saw that mutations can share their result using the fixedCacheKey option:</p>
<blockquote>
<p>RTK Query provides an option to share results across mutation hook instances using the fixedCacheKey... | [
{
"answer_id": 74617860,
"author": "lucataglia",
"author_id": 9099269,
"author_profile": "https://Stackoverflow.com/users/9099269",
"pm_score": 1,
"selected": true,
"text": "// This is the custom hook that wrap the useLazy logic\nconst useCustomHook = () => {\n const [trigger] = useLazy... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348197",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9099269/"
] |
74,348,219 | <p>I was wondering if there is a way to set a default function for a getter or a setter.
For example, let's say I have this:</p>
<pre><code>public class MyClass
{
public bool IsDirty {get; private set; } = false;
private string _property;
public string Property1
{
get
{
... | [
{
"answer_id": 74348555,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 2,
"selected": true,
"text": "get Property someBool IsDirty"
},
{
"answer_id": 74348773,
"author": "Klaus Gütter",
"author_id": 214... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16009197/"
] |
74,348,245 | <p>I have an object named <code>responses</code> that consists of arrays as keys like this</p>
<pre class="lang-js prettyprint-override"><code>responses = {
'Day': [1,2,3,4,5,6,7,8,9,10],
'Score': [9,10,9,8,8,9,10,9,8,7],
'Grade': ['A','O','A','B','B','A','O','A','B','C']
}
</code></pre>
<p>I want to loop throug... | [
{
"answer_id": 74348555,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 2,
"selected": true,
"text": "get Property someBool IsDirty"
},
{
"answer_id": 74348773,
"author": "Klaus Gütter",
"author_id": 214... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13333430/"
] |
74,348,276 | <p>The Button receives the onClose method as a prop, which is used in the handleKeyDown.
The handleKeyDown itself is added as a dependency for the useEffect, therefore I wrapped it with a useCallback so in case I want to add a state change in the future in the useEffect, this won't cause an infinite rerender.
However, ... | [
{
"answer_id": 74348555,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 2,
"selected": true,
"text": "get Property someBool IsDirty"
},
{
"answer_id": 74348773,
"author": "Klaus Gütter",
"author_id": 214... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11494348/"
] |
74,348,301 | <p>New Common Lisper here. I have seen <a href="https://github.com/zkat/cl-ffmpeg/blob/master/ffmpeg.lisp#L1" rel="noreferrer">packages being declared with the pound colon syntax</a>, as in <code>(defpackage #:foo)</code>, but I have also seen them <a href="https://github.com/fukamachi/quri/blob/master/src/quri.lisp#L1... | [
{
"answer_id": 74349240,
"author": "coredump",
"author_id": 124319,
"author_profile": "https://Stackoverflow.com/users/124319",
"pm_score": 3,
"selected": false,
"text": "1. (defpackage foo ...)\n2. (defpackage \"FOO\" ...)\n3. (defpackage :foo ...)\n4. (defpackage #:foo ...)\n #:foo def... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/850326/"
] |
74,348,311 | <p>Please have a look at the reprex at the end of the post.
I need to read a column as a string, perform several manipulations and then save convert it to a numerical column.
The blanks ("") in the string column give me a headache because arrow does not convert them to numerical missing values NA.</p>
<p>Does... | [
{
"answer_id": 74348585,
"author": "Ruam Pimentel",
"author_id": 13015865,
"author_profile": "https://Stackoverflow.com/users/13015865",
"pm_score": 0,
"selected": false,
"text": "read_csv open_dataset library(readr)\ndata <- read_csv(\"test_string.csv\")\n"
},
{
"answer_id": 743... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2952838/"
] |
74,348,335 | <p>(New to Julia)</p>
<p>I'm trying to run this operation. Here's a minimal working example:</p>
<pre><code>df = DataFrame(A = 1:4)
Row A
Int64
1 1
2 2
3 3
4 4
</code></pre>
<p>Just a dataframe with four values, 1-4. I want to add a new column where each value is equal to the element, plus the previous element... | [
{
"answer_id": 74348525,
"author": "Przemyslaw Szufel",
"author_id": 9957710,
"author_profile": "https://Stackoverflow.com/users/9957710",
"pm_score": 2,
"selected": false,
"text": "julia> df.B = cumsum(df.A);\n\njulia> df\n4×2 DataFrame\n Row │ A B\n │ Int64 Int64\n─────┼─────... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3727079/"
] |
74,348,348 | <p>I have a table of users that are owned by various Owners. One person left and the list of users needs to be split up between two owners. How would you use SQL to randomly assign the users between two ownerIds . For example, a function that theoretically behaves like below</p>
<pre><code>UPDATE Users
set OwnerId = RA... | [
{
"answer_id": 74348535,
"author": "Stuck at 1337",
"author_id": 20091109,
"author_profile": "https://Stackoverflow.com/users/20091109",
"pm_score": 3,
"selected": true,
"text": "CHECKSUM(NEWID()) % 2 UPDATE dbo.Users\n SET OwnerId = CASE \n WHEN CHECKSUM(NEWID()) % 2 = 0 THEN 64 ELS... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1441143/"
] |
74,348,360 | <p>I have a form that using ajax for update data client. In that form there is an input file. Everything is going fine except for updating the file. File is sent, it changed on storage too, but it gives error on validation and didn't change data on database.
Here is the code on the controller :</p>
<pre><code>public fu... | [
{
"answer_id": 74348477,
"author": "ericmp",
"author_id": 14569750,
"author_profile": "https://Stackoverflow.com/users/14569750",
"pm_score": 1,
"selected": false,
"text": "Validator validated() $validated = $validator->validated();\n"
}
] | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19625260/"
] |
74,348,362 | <p>I have two classes. One class(Person) has a vector collection composed of pointers of the other class(Student). At run time, the Person class will call a method which will store a pointer to a Student class in the vector. I have been trying to do this with smart pointers to avoid Memory leak issues that can arise bu... | [
{
"answer_id": 74348420,
"author": "Ayxan Haqverdili",
"author_id": 10147399,
"author_profile": "https://Stackoverflow.com/users/10147399",
"pm_score": 4,
"selected": true,
"text": "std::vector<Student> collection;\n\ncollection.emplace_back(name);\n"
},
{
"answer_id": 74348764,
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16879173/"
] |
74,348,387 | <p>I am using the Azure DevOps REST API to create a serviceendpoint/serviceconnection which works fine. I am using the following endpoint: <a href="https://learn.microsoft.com/en-us/rest/api/azure/devops/serviceendpoint/endpoints/create?view=azure-devops-rest-6.0&tabs=HTTP" rel="nofollow noreferrer">https://learn.m... | [
{
"answer_id": 74348420,
"author": "Ayxan Haqverdili",
"author_id": 10147399,
"author_profile": "https://Stackoverflow.com/users/10147399",
"pm_score": 4,
"selected": true,
"text": "std::vector<Student> collection;\n\ncollection.emplace_back(name);\n"
},
{
"answer_id": 74348764,
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16896703/"
] |
74,348,393 | <p>I am new to data.table, but I need to speed up a dplyr code and so far I divided the processing time by 20, so needless to say I'd like to master that library. Understand by that introduction that processing time is the essence.</p>
<p>I have to modify rows using a loop because some columns are inter-connected. The ... | [
{
"answer_id": 74348420,
"author": "Ayxan Haqverdili",
"author_id": 10147399,
"author_profile": "https://Stackoverflow.com/users/10147399",
"pm_score": 4,
"selected": true,
"text": "std::vector<Student> collection;\n\ncollection.emplace_back(name);\n"
},
{
"answer_id": 74348764,
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19143801/"
] |
74,348,398 | <p>I have a simple makefile with a variable for the compiler flags, it also contains some targets that modify that variable and append some flags.</p>
<p>My point with it is to be able to run, for example:</p>
<pre><code>make debug perf
</code></pre>
<p>that would in turn add to the variable the flags required to build... | [
{
"answer_id": 74348717,
"author": "MadScientist",
"author_id": 939557,
"author_profile": "https://Stackoverflow.com/users/939557",
"pm_score": 0,
"selected": false,
"text": "executable executable executable executable executable make foo make foo"
},
{
"answer_id": 74349366,
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15999533/"
] |
74,348,472 | <p>I have this program which takes two lists as input from the user and then combines the two while alternating the items of each list. The thing is if one list is larger in length than the other i want it to print the rest of the items at the end of the result. I apologize for the bad writing of this i am new to the s... | [
{
"answer_id": 74348717,
"author": "MadScientist",
"author_id": 939557,
"author_profile": "https://Stackoverflow.com/users/939557",
"pm_score": 0,
"selected": false,
"text": "executable executable executable executable executable make foo make foo"
},
{
"answer_id": 74349366,
... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20441255/"
] |
74,348,474 | <p>Using an image-generation AI I'm getting centered objects on a dark background. My goal is to convert all pixels outside this object to transparent. I figured a good-enough approach would be to flood-fill from all 4 corners using a fuzzy threshold, so that similar colors are erased too. But using e.g. the following ... | [
{
"answer_id": 74349684,
"author": "JonasH",
"author_id": 12342238,
"author_profile": "https://Stackoverflow.com/users/12342238",
"pm_score": 2,
"selected": true,
"text": "fillColor originColor bool[][] HashSet<(int x, int y)> width*height var stack = new Stack<(int x, int y)>();\nstack.... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34170/"
] |
74,348,509 | <p>I just to display No Reviews message for the user who don't have any reviews. Currently when the Review button is pressed, it shows the reviews for the user who have the reviews, but if any user who don't have any review, Review Button pressing show nothing.</p>
<p>Here is the code</p>
<pre><code><div class="... | [
{
"answer_id": 74348632,
"author": "Eudz",
"author_id": 11549319,
"author_profile": "https://Stackoverflow.com/users/11549319",
"pm_score": 1,
"selected": false,
"text": "<ng-container *ngIf=\"reviews?.length > 0; else noReview\">\n <div class=\"container\" *ngFor=\"let items of reviews... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348509",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16903358/"
] |
74,348,538 | <p>trying to making scrollbar out of the layout as pic 2</p>
<p>is there any way with custom scrollbar or with any plugin?</p>
<pre><code>.notification-container>div{
scrollbar-color: #CFD8DC #FFFFFF;
scrollbar-width: thin;}
.notification-container>div::-webkit-scrollbar-track
{
background-color: #FFFFFF... | [
{
"answer_id": 74348621,
"author": "Jonas Grumann",
"author_id": 1254917,
"author_profile": "https://Stackoverflow.com/users/1254917",
"pm_score": 3,
"selected": true,
"text": ".container {\nwidth: 400px;\nheight: 400px;\nborder: 2px solid black;\n}\n\n.scroller {\nheight: 100%;\nwidth: ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15160448/"
] |
74,348,547 | <p>I want achieve the following result using the MudBlazor library.</p>
<ol>
<li>The (A) element i want to be a MudToolBar with secondary color pinned in the top of the Container</li>
<li>The (C) element i want it to be a MudToolBar again stuck in the bottom of the Container</li>
<li>The (B) element i want it to be a S... | [
{
"answer_id": 74348621,
"author": "Jonas Grumann",
"author_id": 1254917,
"author_profile": "https://Stackoverflow.com/users/1254917",
"pm_score": 3,
"selected": true,
"text": ".container {\nwidth: 400px;\nheight: 400px;\nborder: 2px solid black;\n}\n\n.scroller {\nheight: 100%;\nwidth: ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5371749/"
] |
74,348,572 | <p>within a data frame, I need to count and sum conescutive row values in column A into a new column, column B.</p>
<p>Starting with column A, the script would count the consecutive runs in 1s but when a 0 appears it prints the total count in column B, it then resets the count and continues through the remaining data.<... | [
{
"answer_id": 74348621,
"author": "Jonas Grumann",
"author_id": 1254917,
"author_profile": "https://Stackoverflow.com/users/1254917",
"pm_score": 3,
"selected": true,
"text": ".container {\nwidth: 400px;\nheight: 400px;\nborder: 2px solid black;\n}\n\n.scroller {\nheight: 100%;\nwidth: ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19238175/"
] |
74,348,584 | <p>So I'm reading every line with this code:</p>
<pre class="lang-py prettyprint-override"><code>with open ('file.txt') as f:
for line in f:
</code></pre>
<p>but I want to save every line as a global accessible string. Any way I can do that?</p>
| [
{
"answer_id": 74349391,
"author": "Achxy_",
"author_id": 17242950,
"author_profile": "https://Stackoverflow.com/users/17242950",
"pm_score": 1,
"selected": false,
"text": "foo.txt Hello there\n def can_we_read_it():\n print(\"Here is the contents:\")\n print(foo)\n\n\ndef get_text... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20440977/"
] |
74,348,598 | <p>I already have a Macro in Excel that pulls through data from specific tables, rows and columns in a specified Word doc and returns it to cells in my Excel s/sheet. I need to make 2 alterations to the code but my knowledge is not advanced enough.</p>
<ol>
<li><p>I need to run this code on multiple Word docs in a spec... | [
{
"answer_id": 74349391,
"author": "Achxy_",
"author_id": 17242950,
"author_profile": "https://Stackoverflow.com/users/17242950",
"pm_score": 1,
"selected": false,
"text": "foo.txt Hello there\n def can_we_read_it():\n print(\"Here is the contents:\")\n print(foo)\n\n\ndef get_text... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19562745/"
] |
74,348,619 | <p>My team is currently facing an issue distributing a mass of reports from OBIEE. I was just wondering what tools any oracle developers have used to distribute OBIEE reports to a LOT of users at once. Also, the users are not permissioned to OBIEE. Therefore, the reports have to be exported then distributed.</p>
<p>I'm... | [
{
"answer_id": 74349391,
"author": "Achxy_",
"author_id": 17242950,
"author_profile": "https://Stackoverflow.com/users/17242950",
"pm_score": 1,
"selected": false,
"text": "foo.txt Hello there\n def can_we_read_it():\n print(\"Here is the contents:\")\n print(foo)\n\n\ndef get_text... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348619",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20441409/"
] |
74,348,634 | <p>I want help in creating a Input box with only a submit button which redirect user to another site.</p>
<p>when user typed a url in the input box and clicked submit button</p>
| [
{
"answer_id": 74349391,
"author": "Achxy_",
"author_id": 17242950,
"author_profile": "https://Stackoverflow.com/users/17242950",
"pm_score": 1,
"selected": false,
"text": "foo.txt Hello there\n def can_we_read_it():\n print(\"Here is the contents:\")\n print(foo)\n\n\ndef get_text... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74348634",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20441389/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.