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,197,077 | ImportError: No module named 'selenium' error in my script<p>This is the first time I have tried to use selenium. When I try to run my script on windows, I get this error:</p>
<pre><code>Traceback (most recent call last):
File "/Users/Rand/Desktop/test.py", line 15, in <module>
from selenium impor... | <p>You must install Selenium. Open the command prompt and run the following command to install selenium:</p>
<p>pip install selenium</p> | ImportError: No module named 'selenium' error in my script | python-3.x|selenium|selenium-webdriver | 0 | 45 | 1 | 72,197,088 | 72,197,088 | 0 | true | 2022-05-11T07:32:19.217Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
ImportError: No module named 'selenium' error in my script<p>This is the first time I have tried to use selenium. When I try to run my script on windows, I g... |
72,196,554 | I want to arrange my R code output(dataframe)containing multiple rows and columns in SQL table<p>I have my code written in R that gives me dataframe as an output. Now I want to insert dataframe that has multiple columns and rows in SQL table using some R code. For that purpose I connected my RStudio with SQL Server thr... | <p>There is the function <code>DBI::dbAppendTable</code> to append all rows and all columns of a data frame to a table of the data base. Keep in mind that there must be already a table in the data base having the same columns with the same types.</p>
<pre><code>library(DBI)
library(odbc)
# create an example data frame... | I want to arrange my R code output(dataframe)containing multiple rows and columns in SQL table | r|sql-server|dataframe | 0 | 33 | 1 | 72,197,126 | 72,197,126 | 0 | true | 2022-05-11T06:47:06.150Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I want to arrange my R code output(dataframe)containing multiple rows and columns in SQL table<p>I have my code written in R that gives me dataframe as an ou... |
72,151,698 | How do I change this React Navigation v5 code to v6?<p>I'm studying react native and discovered that <code>tabBarOptions</code> was already deprecated. I know that including it in <code>screenOptions</code> is the new way but how do I do this with this code? I am trying to combine them by enclosing them to a bracket bu... | <p>I wanted to share what I have learned and discovered that the solution is very simple. What I did was set the <code>screenOptions</code> set in v6 and put all of those above the <code>tabBarIcon</code>.</p>
<pre><code>const RNTabNavMaterialTab = () => {
return (
<NavigationContainer>
<Tab.Nav... | How do I change this React Navigation v5 code to v6? | javascript|react-native|jsx|react-navigation-v6|react-native-tabnavigator | 0 | 55 | 1 | 72,197,222 | 72,197,222 | 0 | true | 2022-05-07T10:37:59.560Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I change this React Navigation v5 code to v6?<p>I'm studying react native and discovered that <code>tabBarOptions</code> was already deprecated. I kno... |
72,186,209 | requirement failed: Provided Maven Coordinates must be in the form 'groupId:artifactId:version'<p>I get the following error</p>
<blockquote>
<p>requirement failed: Provided Maven Coordinates must be in the form
'groupId:artifactId:version'</p>
</blockquote>
<p>when I run the command below</p>
<pre><code>spark-submit --... | <p>The correct way to specify the packages for Snowflake is:</p>
<p>not:</p>
<pre><code>net.snowflake.snowflake-ingest-sdk:0.10.3
</code></pre>
<p>but:</p>
<pre><code>net.snowflake:snowflake-ingest-sdk:0.10.3
</code></pre>
<p>where:</p>
<pre><code><groupId>net.snowflake</groupId>
<artifactId>snowflake... | requirement failed: Provided Maven Coordinates must be in the form 'groupId:artifactId:version' | scala|sbt|snowflake-cloud-data-platform|spark-streaming|snowflake-connector | 0 | 72 | 1 | 72,197,243 | 72,197,243 | 0 | true | 2022-05-10T12:19:42.497Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
requirement failed: Provided Maven Coordinates must be in the form 'groupId:artifactId:version'<p>I get the following error</p>
<blockquote>
<p>requirement f... |
72,196,928 | BFS traversal, same node being accessed twice<p>I am trying to figure out how to write BFS algorithm in C
and I got this</p>
<pre><code>typedef struct graph {
int numnodes;
int **edges;
} graph;
void bfs(graph *g, int start) {
int visited[g->numnodes], queue[g->numnodes], front =- 1, rear =- 1;
for ... | <p>I am not sure if BFS is the right term for what you are doing. Your graph is not a tree and with a node having multiple parent nodes it is hard to tell on what level a node really is.</p>
<p>But to make your code work as expected, you just need to fix your missing use of <code>visited</code> array:</p>
<pre class="l... | BFS traversal, same node being accessed twice | c|graph-theory|breadth-first-search | 0 | 115 | 2 | 72,197,290 | 72,197,290 | 0 | true | 2022-05-11T07:19:25.883Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
BFS traversal, same node being accessed twice<p>I am trying to figure out how to write BFS algorithm in C
and I got this</p>
<pre><code>typedef struct graph ... |
72,162,668 | How to send data every hour to Database using ESP8266?<p>I would like to send hourly data to a database with my ESP8266. However, I don't know how to send the data exactly every hour. I don't want to use delay(). Can someone help me?</p> | <p>this is a skeleton of a sketch for retrieving time from Internet with the esp8266 into the internal RTC, set the time into the TimeLib and use TimeLib's <code>minute()</code> function to execute something at hh:00.</p>
<pre><code>#include <ESP8266WiFi.h>
#include <TimeLib.h>
#include <sntp.h>
#incl... | How to send data every hour to Database using ESP8266? | arduino-esp8266 | 0 | 146 | 1 | 72,197,309 | 72,197,309 | 0 | true | 2022-05-08T15:46:25.150Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to send data every hour to Database using ESP8266?<p>I would like to send hourly data to a database with my ESP8266. However, I don't know how to send th... |
72,188,284 | How to remove first dimension of an array without loosing keys?<p>How can i remove the first dimansion of a multidemensional Array without loosing the keys?
i have an Array that have multiple arrays inside
the firstkey is a Date and the secondkey is the hour.</p>
<p>my Output is:</p>
<pre><code>Array
(
[0] => Ar... | <p>okay found a solution on:
<a href="https://stackoverflow.com/questions/25712099/php-multidimensional-array-merge-recursive">PHP : multidimensional array merge recursive</a></p>
<pre><code>function array_merge_recursive_ex(array $array1, array $array2)
{
$merged = $array1;
foreach ($array2 as $key => &... | How to remove first dimension of an array without loosing keys? | arrays|multidimensional-array | 0 | 23 | 1 | 72,197,369 | 72,197,369 | 0 | true | 2022-05-10T14:34:01.397Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to remove first dimension of an array without loosing keys?<p>How can i remove the first dimansion of a multidemensional Array without loosing the keys?
... |
72,170,309 | From Snowflake query to python dataframe problem in data type mapping<p>I have a problem casting data type from a snowflake query into pandas dataframe. I want to use the smaller data types as possible in order to reduce my memory usage. Thus, I would like to have my pandas columns into int8 or int16 for integer, inste... | <p>Snowflake's INTEGER data types are all INT64 actually.</p>
<p>The various names (SMALLINT like in your example) are to simplify porting from other systems and to suggest the expected range of values for a column of the specified type, but they are still INT64.</p>
<p>For more information have a look <a href="https:/... | From Snowflake query to python dataframe problem in data type mapping | python|pandas|snowflake-cloud-data-platform|snowflake-connector | 0 | 230 | 1 | 72,197,370 | 72,197,370 | 0 | true | 2022-05-09T10:11:27.307Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
From Snowflake query to python dataframe problem in data type mapping<p>I have a problem casting data type from a snowflake query into pandas dataframe. I wa... |
72,168,606 | selenium.common.exceptions.WebDriverException: Message: target frame detached<p>every now and then this error appears when I launch my script. It doesn't happen all the time, I often only need to run the script again to not get this message anymore.
What could be the problem?</p>
<pre><code>Traceback (most recent call ... | <p>Try to check that:</p>
<ul>
<li>Selenium is upgraded to the latest available version</li>
<li>ChromeDriver and Chrome Browser are updated to the latest available version</li>
<li>Or, if you use Firefox, check that GeckoDriver and Firefox Browser are updated to the latest available version</li>
</ul> | selenium.common.exceptions.WebDriverException: Message: target frame detached | selenium|selenium-webdriver|error-handling | 0 | 249 | 1 | 72,197,458 | 72,197,458 | 0 | true | 2022-05-09T07:51:19.933Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
selenium.common.exceptions.WebDriverException: Message: target frame detached<p>every now and then this error appears when I launch my script. It doesn't hap... |
72,197,155 | I am trying to navigate home screen via Start screen through main.dart but failed to navigate. I am new to flutter and can't understand this error. Pl<p>This is my main .dart and the error is here that is In This Image this is the error that I got on the screen. I am trying to solve but it is not in my hand to solve, S... | <p>Try to initialize all your providers above MaterialApp, like in this code</p>
<pre><code>void main() {
runApp(
MultiRepositoryProvider(
providers: [
RepositoryProvider(
create: (context) => AuthRepository(),
),
RepositoryProvider(
create: (context) => StorageRepository(),
... | I am trying to navigate home screen via Start screen through main.dart but failed to navigate. I am new to flutter and can't understand this error. Pl | flutter|dart | 0 | 26 | 1 | 72,197,632 | 72,197,632 | 0 | true | 2022-05-11T07:39:04.403Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
I am trying to navigate home screen via Start screen through main.dart but failed to navigate. I am new to flutter and can't understand this error. Pl<p>This... |
72,193,761 | How to select multiple dates on android calender view<pre><code> val calendar: Calendar = Calendar.getInstance()
calendar.set(2022, 5, 10)
val dateSelected = calendar.timeInMillis
val calender2 = Calendar.getInstance()
calender2.set(2022, 5, 11)
val dateSelected2 = calender2.timeInMillis
... | <pre><code> val dateRangePicker =
MaterialDatePicker.Builder
.dateRangePicker()
.setTheme(R.style.ThemeOverlay_MaterialComponents_MaterialCalendar)
.setTitleText("Title")
.setSelection(
Pair(
... | How to select multiple dates on android calender view | android|kotlin|android-calendar | 0 | 76 | 2 | 72,197,644 | 72,197,644 | 0 | true | 2022-05-10T22:59:38.820Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to select multiple dates on android calender view<pre><code> val calendar: Calendar = Calendar.getInstance()
calendar.set(2022, 5, 10)
val dat... |
72,197,672 | How to display value by selecting from model in the controller ASP MVC<p>I want to display a name in the razor page by select it from a model and pass it through Viewbag in the controller.</p>
<p>Controller</p>
<pre><code>public IActionResult sheet()
{
var tp1 = _db.Topic.Where(t => t.sheet_id == 1).ToLi... | <p><code>tp1</code> is a list of topics.<br />
so when you do a select it creates a new Enumerable en for each item in <code>tp1</code> it selects the value of <code>topic1name</code>.</p>
<p>Thus creating an <code>Enumerable+SelectListIterator</code></p>
<p>I think you want the value of one item:</p>
<pre><code> va... | How to display value by selecting from model in the controller ASP MVC | c#|asp.net|asp.net-mvc | 0 | 120 | 1 | 72,197,818 | 72,197,818 | 0 | true | 2022-05-11T08:19:15.273Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to display value by selecting from model in the controller ASP MVC<p>I want to display a name in the razor page by select it from a model and pass it thr... |
72,190,083 | Spring boot jpa the FK pointing at the wrong PK<p>Hi when I adding two list to my ListA tabell where I use Rest Api ListA, the first list have id 1 and the other list have id 2</p>
<p>After I execute rest api for ListB just one time and also adding data from id 2 from ListA. I get status 200 in postman with right detai... | <p>That's what @MapsId , shared id,remove @MapsId.</p> | Spring boot jpa the FK pointing at the wrong PK | java|spring|hibernate|jpa|relationship | 0 | 40 | 1 | 72,198,001 | 72,198,001 | 0 | true | 2022-05-10T16:39:52.850Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Spring boot jpa the FK pointing at the wrong PK<p>Hi when I adding two list to my ListA tabell where I use Rest Api ListA, the first list have id 1 and the o... |
72,172,690 | How can I fill a map with a vector?<p>I have the following test code:</p>
<pre><code>class Person{};
shared_ptr<Person> sp1;
shared_ptr<Person> sp2;
shared_ptr<Person> sp3;
vector<shared_ptr<Person>> members = {sp1,sp2,sp3};
map<string, shared_ptr<Person>> mymap;
</code></p... | <p><code>map</code> is an associative container, so you need to specify the key in <code>string</code> type to associate it to the <code>shared_ptr<Person></code>. I don't know what you need, but the following loop should work:</p>
<pre class="lang-cpp prettyprint-override"><code>for (size_t i = 0; i < members... | How can I fill a map with a vector? | pointers|vector|shared-ptr|smart-pointers|stdmap | 0 | 18 | 1 | 72,198,028 | 72,198,028 | 0 | true | 2022-05-09T13:22:51.830Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I fill a map with a vector?<p>I have the following test code:</p>
<pre><code>class Person{};
shared_ptr<Person> sp1;
shared_ptr<Person>... |
72,196,998 | how to acess Struct property by name as a string in runtime in swiftui<p>i have an JSON RESPONSE</p>
<pre><code> result:
[
Result(date: "2022-04-24", abc: 1463, def: 0, ghi: 0.0),
Result(date: "2022-04-25", abc: 1451, def: 0, ghi: 0.0),
Result(date: &qu... | <p>A straightforward way is to add a function to your struct that returns the right value for a given key.</p>
<pre><code>func stringProperty(for path: String) -> String {
switch path {
case "abc":
return "\(abc)"
case "def":
return "\(def)"
cas... | how to acess Struct property by name as a string in runtime in swiftui | ios|swift|xcode|swiftui|runtime | 0 | 75 | 1 | 72,198,043 | 72,198,043 | 0 | true | 2022-05-11T07:26:02.910Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to acess Struct property by name as a string in runtime in swiftui<p>i have an JSON RESPONSE</p>
<pre><code> result:
[
Result(date: ... |
72,197,932 | Element implicitly has an 'any'. typescript error<pre><code>const getActiveMenu = (path: string) => {
const headerkey = {
"admin": "admin",
"pdesk":"pdesk"
}
const pathArray = path.split("/")
return headerkey[pathArray[1]] ... | <p>Typescript's basically complaining that string is too broad as a key for your <code>headerKey</code> object and it can't infer what the type should be for the key and so it is implicitly considered an 'any' type as a result of that.</p>
<p>In addition to the other answer (of casting the type) You can do one of the f... | Element implicitly has an 'any'. typescript error | reactjs|typescript | 0 | 71 | 3 | 72,198,050 | 72,198,050 | 0 | true | 2022-05-11T08:39:09.003Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Element implicitly has an 'any'. typescript error<pre><code>const getActiveMenu = (path: string) => {
const headerkey = {
"admin": &... |
72,197,982 | Sorting the result for sentence similarity in python<p>I am trying to find the similarity between the sentences tokenised document and a sentence getting the result saved in a list. I want to sort the results based on the similarity score. When I try to sort the output based on the similarity score I get an error?</p>
... | <p><code>set</code>s don't have indices or keys to indicate a value to sort by. You can create a list of <code>tuple</code>s or <code>dict</code>s instead, sort it and convert it to <code>set</code>s later on</p>
<pre><code>results.append((
sim_score1,
docs_sent_token
))
# results = [(0.91, 'Sentence 1'), (0.3... | Sorting the result for sentence similarity in python | python|list|set|cosine-similarity|sentence-similarity | 0 | 58 | 1 | 72,198,257 | 72,198,257 | 0 | true | 2022-05-11T08:42:50.877Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Sorting the result for sentence similarity in python<p>I am trying to find the similarity between the sentences tokenised document and a sentence getting the... |
72,165,362 | Movesense can't set DataLoggerConfig get error 400<p>I'm trying to set DataLogger Config to start measuring but get error 400.
Don't have problems reading config or starting DataLogger. But since setting config doesn't work there is nothing to store. I'm using Flutter with native Java code to communicate with Movesens ... | <p>The config json object should look like this:</p>
<pre><code> '{ "config": { "dataEntries" : { "dataEntry" : [{ "path" : "/Meas/HR" }] }}}'
</code></pre>
<p>or this for Acc and Gyro:</p>
<pre><code> '{ "config": { "dataEntries" : { &... | Movesense can't set DataLoggerConfig get error 400 | android|flutter|movesense | 0 | 44 | 1 | 72,198,323 | 72,198,323 | 0 | true | 2022-05-08T21:56:51.243Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Movesense can't set DataLoggerConfig get error 400<p>I'm trying to set DataLogger Config to start measuring but get error 400.
Don't have problems reading co... |
72,152,433 | How to use a css selector that refers to a element outside the shadow root<p>I need to style a component based on the class attached to the <code><body></code>.<br />
The <code>logo-placeholder</code> is contained inside a shadow root.<br />
The <code>body</code> is outside, of course.</p>
<p>This is what I would... | <p><strong>A complete solution would be as follows:</strong></p>
<pre class="lang-css prettyprint-override"><code>:host-context(body.dark) .logo-placeholder {
background: url(logo_DARK.png);
}
</code></pre>
<p><code>:host-context(body.dark)</code> means that the selector <code>body.dark</code> must be evaluated in th... | How to use a css selector that refers to a element outside the shadow root | html|css|shadow-dom | 0 | 132 | 2 | 72,198,337 | 72,198,337 | 0 | true | 2022-05-07T12:19:49.400Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to use a css selector that refers to a element outside the shadow root<p>I need to style a component based on the class attached to the <code><body>... |
72,189,311 | Why is my image making it so that my button is always at the top part of it? React native<p>I'm doing a little project and here is my issue: with this code :</p>
<pre><code> <View style={{ flex: 3, backgroundColor: "brown" }}>
<View
style={[
styles.container,
... | <p>You need to use the ImageBackground for each TouchableOpacity (note: you can set the background color at transparent in order to see your image)</p> | Why is my image making it so that my button is always at the top part of it? React native | reactjs|react-native|view|flexbox|touchableopacity | 0 | 39 | 1 | 72,198,399 | 72,198,399 | 0 | true | 2022-05-10T15:40:26.390Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why is my image making it so that my button is always at the top part of it? React native<p>I'm doing a little project and here is my issue: with this code :... |
72,197,880 | when i create a new .net core mvc project the Startup.cs file doesnt create in project<p>i create new .net core mvc project in vs 2022 .net6 it hasn't Startup.cs file
<a href="https://i.stack.imgur.com/dqDfA.png" rel="nofollow noreferrer">enter image description here</a></p> | <p>After .NET Core 6.0,</p>
<p>Program.cs includes Startup.cs as well.</p>
<p>You can do everything in Program.cs that you can do at Startup.cs</p>
<p>I guess they made this to simplify the code.</p> | when i create a new .net core mvc project the Startup.cs file doesnt create in project | asp.net-core-mvc | 0 | 17 | 1 | 72,198,461 | 72,198,461 | 0 | true | 2022-05-11T08:35:26.370Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
when i create a new .net core mvc project the Startup.cs file doesnt create in project<p>i create new .net core mvc project in vs 2022 .net6 it hasn't Startu... |
72,198,362 | using multiple useEffect in order. fetching API after fetching the location<p>this is my first time using react. im working on a basic weather app.
i have a problem with using multiple useEffect hook in order. i need to fetch both the geolocation and then the weather APP api in order when the page load.
but i the locat... | <p>For this you could make the second useEffect dependent on your latitude and longitude states:</p>
<pre><code> useEffect(()=>{
axios.get(`${api.base}weather?lat=${latitude}&lon=${longitude}&units=metric&appid=${api.key}`).then
((response) => {
console.log(response.data)
... | using multiple useEffect in order. fetching API after fetching the location | reactjs|use-effect | 0 | 52 | 2 | 72,198,470 | 72,198,470 | 0 | true | 2022-05-11T09:10:53.787Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
using multiple useEffect in order. fetching API after fetching the location<p>this is my first time using react. im working on a basic weather app.
i have a ... |
72,194,548 | Case function with an alias<p>I wish to use CASE statement with an alias that resulted of a quotient of two columns.
The code that I wrote is the follow, but it returns an error.
Could anyone help me with this?</p>
<pre><code>SELECT TOP 5(ROUND(Registered_Students/Total_Student * 100,2)) AS Porcentaje, C.Total_Student,... | <p>A column alias can't be referenced in the same <code>SELECT</code> clause as it is created. Have a <em>derived table</em> (i.e. subquery in the <code>FROM</code> clause), where you create the Porcentaje column.</p>
<pre><code>SELECT TOP 5 dt.*,
CASE WHEN Porcentaje >= 75 THEN 'Elected'
WHEN Por... | Case function with an alias | sql|case | 0 | 64 | 4 | 72,198,564 | 72,198,564 | 0 | true | 2022-05-11T01:44:41.623Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Case function with an alias<p>I wish to use CASE statement with an alias that resulted of a quotient of two columns.
The code that I wrote is the follow, but... |
72,198,556 | Strange error: ImportError: No module named PIL<p>When I run Python, I get this error:</p>
<pre><code>Traceback (most recent call last):
File "<console>", line 1, in <module>
ImportError: No module named PIL
</code></pre>
<p>I don't understand what the problem could be.</p> | <p>PIL is deprecated, you must now use pillow.</p>
<p>Run the command:</p>
<pre><code>pip install Pillow
</code></pre> | Strange error: ImportError: No module named PIL | python|python-imaging-library|importerror | 0 | 18 | 1 | 72,198,580 | 72,198,580 | 0 | true | 2022-05-11T09:25:23.867Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Strange error: ImportError: No module named PIL<p>When I run Python, I get this error:</p>
<pre><code>Traceback (most recent call last):
File "<con... |
72,198,195 | State becomes empty<p>Counter File</p>
<pre><code>import React, { useState } from "react";
import Widget from "./widget";
const Counter = () => {
const [form, setForm] = useState(<></>)
const [text, setText] = useState("")
const onCounterChange =() => {
setText(text... | <p>As I mentioned in my comment putting a component in state probably isn't the best way of approaching this. Instead I would have a boolean state that allows you to toggle the component on/off.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true">
<div class="snippet-code"... | State becomes empty | javascript|reactjs | 0 | 74 | 1 | 72,198,647 | 72,198,647 | 0 | true | 2022-05-11T08:58:11.813Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
State becomes empty<p>Counter File</p>
<pre><code>import React, { useState } from "react";
import Widget from "./widget";
const Counter ... |
72,198,671 | Can't find difference between Fetch and JQuery Ajax<p>I'm trying to do API request to a private API (hosted Itop), there's an example in the doc with JQuery Ajax but I did all my others calls with fetch and I wanted to do this one too but I don't get the right response.</p>
<p>The fetch method returns me a code 200 but... | <p>In jQuery.ajax, when you pass <code>data</code> an object:</p>
<ul>
<li>it will be encoded as <code>application/x-www-form-urlencoded</code> data</li>
<li>jQuery will include a <code>Content-Type: application/x-www-form-urlencoded</code> header</li>
</ul>
<p>In fetch, you are passing <code>body</code> a <strong>stri... | Can't find difference between Fetch and JQuery Ajax | javascript|jquery|ajax|fetch | 0 | 79 | 1 | 72,198,741 | 72,198,741 | 0 | true | 2022-05-11T09:32:21.580Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't find difference between Fetch and JQuery Ajax<p>I'm trying to do API request to a private API (hosted Itop), there's an example in the doc with JQuery ... |
72,198,089 | React Formik - not submitting form<p>I have a simple form with datepicker:</p>
<pre><code>export function ReportsFiltersForm() {
const customerId = useRequiredIntParam('customerId')
const params = new URLSearchParams(window.location.search)
const initialValues = useMemo(() => createDeliveryReportsQueryParams(O... | <p>I didn't realise I need to use <code>Form</code> tag as well in Formik, so this fixed the problem:</p>
<pre><code><Formik initialValues={initialValues} onSubmit={onSubmit} enableReinitialize>
<Form>
<ReportsDashboardFiltersFormFields />
</Form>
</Formik>
</code></pre> | React Formik - not submitting form | reactjs|formik | 0 | 53 | 2 | 72,198,773 | 72,198,773 | 0 | true | 2022-05-11T08:49:56.107Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
React Formik - not submitting form<p>I have a simple form with datepicker:</p>
<pre><code>export function ReportsFiltersForm() {
const customerId = useRequ... |
72,185,747 | Service to service authentication is not allowed using forge Autodesk<p>In 'Autodesk Construction Cloud APIs' I try to use GET method for projects/{projectId}/issues.
This is the link for the API: <a href="https://forge.autodesk.com/en/docs/acc/v1/reference/http/issues-issues-GET/" rel="nofollow noreferrer">Get issues ... | <p>It looks like your access token is 2-legged. Instead, you will need to use a 3-legged one since its <code>Authentication Context</code> is <code>user context required</code>.</p>
<p>See:</p>
<ul>
<li><a href="https://forge.autodesk.com/en/docs/oauth/v1/developers_guide/basics/" rel="nofollow noreferrer">https://forg... | Service to service authentication is not allowed using forge Autodesk | autodesk-forge|autodesk-construction-cloud | 0 | 34 | 1 | 72,198,787 | 72,198,787 | 0 | true | 2022-05-10T11:46:10.347Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Service to service authentication is not allowed using forge Autodesk<p>In 'Autodesk Construction Cloud APIs' I try to use GET method for projects/{projectId... |
72,197,934 | How to plot multiple data (bridge-objects) in R (networktools)<p>I'm using package "networktools" in R (<a href="https://cran.r-project.org/web/packages/networktools/networktools.pdf" rel="nofollow noreferrer">https://cran.r-project.org/web/packages/networktools/networktools.pdf</a>). I've created a three &qu... | <p>I don't think there's a way to do this inside <code>networktools</code>, but since the plot generic returns a <code>ggplot</code> object, we can harvest multiple plots and combine them with a legend like this:</p>
<pre class="lang-r prettyprint-override"><code>p <- lapply(list(DataT5_SDQ_network_b,
... | How to plot multiple data (bridge-objects) in R (networktools) | r|ggplot2|network-tools | 0 | 46 | 1 | 72,198,801 | 72,198,801 | 0 | true | 2022-05-11T08:39:11.200Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to plot multiple data (bridge-objects) in R (networktools)<p>I'm using package "networktools" in R (<a href="https://cran.r-project.org/web/pac... |
72,188,403 | Delete SharePoint Online site collections using powershell<p>I have been trying to delete site collections from a csv, I'm trying to use a powershell script to get the site URLs to be deleted.</p>
<p>I've tried everything, now that I've run out of ideas I'm opening this question. I'm accepting possibilities other than ... | <p>Please try to run the command <code>Remove-UnifiedGroup -Identity "group name"</code> to delete the Microsoft 365 group before run <code>Remove-SPOSite -Identity $site -NoWait -Confirm:$false</code>. Note: you may need to wait some time after deleting a group ,then the site can be successfully deleted.</p> | Delete SharePoint Online site collections using powershell | powershell|sharepoint|sharepoint-online | 0 | 267 | 1 | 72,198,910 | 72,198,910 | 0 | true | 2022-05-10T14:40:47.727Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Delete SharePoint Online site collections using powershell<p>I have been trying to delete site collections from a csv, I'm trying to use a powershell script ... |
72,197,791 | Gatsby i18n: How to avoid creating pages for all locales?<p>I use <code>gatsby-plugin-react-i18next</code> and <code>WP Polylang</code> for multilanguage site with headless WordPress + gatsby.</p>
<p>The logic is that for pages that haven't translate version in WP Admin I just redirect user to home.</p>
<p>I see that ... | <p>I think your only option is to add them manually in the <code>gatsby-plugin-react-i18next</code> or include them into a regular expression using <code>matchPath</code> and <code>excludeLanguages</code>:</p>
<pre><code> pages: [
{
matchPath: '/:lang?/blog/:uid',
getLanguageFromPath: true... | Gatsby i18n: How to avoid creating pages for all locales? | gatsby|react-i18next|polylang | 0 | 190 | 1 | 72,198,934 | 72,198,934 | 0 | true | 2022-05-11T08:28:35.323Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Gatsby i18n: How to avoid creating pages for all locales?<p>I use <code>gatsby-plugin-react-i18next</code> and <code>WP Polylang</code> for multilanguage si... |
72,198,590 | Find column location in matrix based on multiple conditions<p>I have a matrix in the following form:</p>
<pre><code>import numpy as np
matrix = np.array([[-2,2,6,7,8],[-3,7,1,0,-2]])
</code></pre>
<p>I want to find the location of the column with the highest possible value in the first row conditional on non-negative n... | <p>Simply:</p>
<pre class="lang-py prettyprint-override"><code>nn = np.where(matrix[1] >= 0)[0]
ix = nn[matrix[0, nn].argmax()]
</code></pre>
<p>On your data:</p>
<pre class="lang-py prettyprint-override"><code>>>> ix
3
</code></pre> | Find column location in matrix based on multiple conditions | python|numpy | 0 | 36 | 3 | 72,199,010 | 72,199,010 | 0 | true | 2022-05-11T09:27:28.007Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Find column location in matrix based on multiple conditions<p>I have a matrix in the following form:</p>
<pre><code>import numpy as np
matrix = np.array([[-2... |
72,198,831 | Azure pipeline shows an error but it is not<p>I have an Azure pipeline with a SSH command step. I need to run command <code>docker-compose up -d --force-recreate app</code> from a remote machine.</p>
<p>Command is executed and it works fine, but for some reason Azure says it exited with error. This is the output of the... | <p>I don't know why it's happening but I found a workaround. I used this command:</p>
<pre><code>docker-compose up -d --force-recreate app &>/dev/null ; echo $?
</code></pre>
<p>to be sure that exit code is 0. It works fine.</p> | Azure pipeline shows an error but it is not | azure|azure-devops|azure-pipelines | 0 | 138 | 1 | 72,199,027 | 72,199,027 | 0 | true | 2022-05-11T09:44:34.037Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Azure pipeline shows an error but it is not<p>I have an Azure pipeline with a SSH command step. I need to run command <code>docker-compose up -d --force-recr... |
72,141,119 | automatically read path to Razor page in Nav Menu<p>What I want to do is to read the path as indicated with the @page attribute of every Razor Page, to link to it in the Nav Menu. With the purpose of not having to manually redo a href when for whatever reason I want to change the url.</p>
<p>I did however not find a wa... | <p>Thanks to the input by Jesse Good I found the following relatively simple answer to my problem, using reflection.</p>
<p>The Navmenu:</p>
<pre><code> <div class="nav-item px-3">
<NavLink class="nav-link" href="@(PathTo<MyRazorPage>())">
... | automatically read path to Razor page in Nav Menu | razor|blazor | 0 | 64 | 2 | 72,199,055 | 72,199,055 | 0 | true | 2022-05-06T11:58:52.453Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
automatically read path to Razor page in Nav Menu<p>What I want to do is to read the path as indicated with the @page attribute of every Razor Page, to link ... |
72,198,891 | DeprecationWarning: find_element_by_* commands are deprecated<p>I'm trying to recover an old script of mine, which has always worked. Since I switched to Python 3 though, I'm having a lot of problems. This error came up after launching the script:</p>
<pre><code>DeprecationWarning: find_element_by_* commands are deprec... | <p>You need to add the following import:</p>
<pre><code>from selenium.webdriver.common.by import By
</code></pre>
<p>Then replace this:</p>
<pre><code>driver.find_element_by_xpath("//*[@title='Consent all cookies']").click()
</code></pre>
<p>with this:</p>
<pre><code>driver.find_element(By.XPATH, "//*[@t... | DeprecationWarning: find_element_by_* commands are deprecated | python-3.x|deprecation-warning | 0 | 31 | 1 | 72,199,060 | 72,199,060 | 0 | true | 2022-05-11T09:48:22.873Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
DeprecationWarning: find_element_by_* commands are deprecated<p>I'm trying to recover an old script of mine, which has always worked. Since I switched to Pyt... |
72,139,941 | Android >= 11 navigate between folder to find file without manage_external_storage permission<p>I have an app that have to update some machine firmware.
Until targeting API 29 there are no problem, now Google Play Store need to target at least API30... and the struggle started.</p>
<p>The file manager picker I've used ... | <p>As suggested me by @blackapps, removing the MANAGE_EXTERNAL_STORAGE permission and switching to System file picker solved the problem.</p>
<p>On MainActivity</p>
<pre><code>private void fileIntent() {
Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
i... | Android >= 11 navigate between folder to find file without manage_external_storage permission | android|android-11|android-12|android-api-30 | 0 | 197 | 1 | 72,199,365 | 72,199,365 | 0 | true | 2022-05-06T10:22:14.473Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Android >= 11 navigate between folder to find file without manage_external_storage permission<p>I have an app that have to update some machine firmware.
Unti... |
72,199,097 | Why does this boolean function return true (74) and the program display 74?<p>I am just messing around with the function and somehow <em>palindromes</em> returns 74. I am using Visual studio 2022. Was it supposed to not return anything and catch compiler error since false is never returned in the case below?</p>
<pre><... | <p>Seems that you ignored the warning:</p>
<pre><code>warning C4715: 'palindromes': not all control paths return a value
</code></pre>
<p>This is a sin.</p> | Why does this boolean function return true (74) and the program display 74? | c++ | 0 | 80 | 3 | 72,199,508 | 72,199,508 | 0 | true | 2022-05-11T10:02:55.077Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why does this boolean function return true (74) and the program display 74?<p>I am just messing around with the function and somehow <em>palindromes</em> ret... |
72,199,224 | Variable expansion in Windows containers<p>Consider the following <code>Dockerfile</code>.</p>
<pre><code>FROM alpine:latest
ARG MY_VAR="my value"
RUN echo $MY_VAR
</code></pre>
<p>When building the container, part of the output is <code>[2/2] RUN echo my value</code>, so the variable <code>$MY_VAR</code> has... | <p>It works when using batch-style notation for environment variables!</p>
<pre><code>FROM mcr.microsoft.com/windows/servercore:ltsc2022
ARG MY_VAR="my value"
RUN echo %MY_VAR%
</code></pre> | Variable expansion in Windows containers | docker|dockerfile|docker-for-windows | 0 | 55 | 1 | 72,199,528 | 72,199,528 | 0 | true | 2022-05-11T10:11:30.867Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Variable expansion in Windows containers<p>Consider the following <code>Dockerfile</code>.</p>
<pre><code>FROM alpine:latest
ARG MY_VAR="my value"
... |
72,194,792 | How do I scroll an internal scroll bar using Selenium Python<p>I am trying to scrape data off a website using Selenium in Python, where the data only appears once I click a 'Details' button, the problem is that this button isn't initially visible and requires scrolling on an internal scroll bar
<a href="https://i.stack... | <p>You could try ActionChains.</p>
<pre><code>from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains as AC
dr = webdriver.Chrome("[path_to_your_chromedriver]")
dr.get("https://www.abt-sportsline.com/tuning/configurator#80713308!5972E27")
aa = dr.find_eleme... | How do I scroll an internal scroll bar using Selenium Python | python|selenium|selenium-webdriver | 0 | 389 | 2 | 72,199,535 | 72,199,535 | 0 | true | 2022-05-11T02:37:49.580Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I scroll an internal scroll bar using Selenium Python<p>I am trying to scrape data off a website using Selenium in Python, where the data only appears... |
72,150,736 | python - lock process queue while queue.put() for n seconds<p>I have the following code (simplified):</p>
<pre class="lang-py prettyprint-override"><code>from multiprocessing import Process, Queue
def f1(queue):
while True:
# do some stuff and get a variable called data
# ...
queue.put(dat... | <p>For this particular case in which I was using the multiprocessing library, instead of <em>threading</em> or <em>asyncio</em>, I found the best way to do this by using a simple sleep, so the <code>f2()</code> will end up like:</p>
<pre class="lang-py prettyprint-override"><code>def f2(queue):
while True:
... | python - lock process queue while queue.put() for n seconds | python-3.x|python-multiprocessing | 0 | 40 | 1 | 72,199,598 | 72,199,598 | 0 | true | 2022-05-07T08:20:34.343Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
python - lock process queue while queue.put() for n seconds<p>I have the following code (simplified):</p>
<pre class="lang-py prettyprint-override"><code>fro... |
72,199,108 | How to send a Telegram message to a username using bot api or telegram api?<p>Hi I am trying to build a website login system where users are able to log in using their telegram. I would like to achieve this workflow:</p>
<ol>
<li>User selects to login/sign up via telegram.</li>
<li>User enters their username (@ExampleJ... | <p>That's not possible with the Bot API. You'd have to use a userbot for that. Note however, that TG provides a native <a href="https://core.telegram.org/widgets/login" rel="nofollow noreferrer">login widget</a> that you can use instead.</p> | How to send a Telegram message to a username using bot api or telegram api? | telegram|telegram-bot|telegram-api | 0 | 538 | 1 | 72,199,609 | 72,199,609 | 0 | true | 2022-05-11T10:03:52.287Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to send a Telegram message to a username using bot api or telegram api?<p>Hi I am trying to build a website login system where users are able to log in u... |
72,197,465 | How to configure Cloudfront Custom Cache Policy to consider all query parameters except one<p>I have an <strong>AWS Elastic Beanstalk</strong> instance that deals with search queries from my application, and a <strong>AWS CloudFront</strong> instance that caches duplicate queries because its cost alot less if CloudFron... | <p>I have resolved the issue</p>
<ul>
<li>Create a policy to use as a <em>Cache Policy</em> select the include all <strong>query strings except option</strong> and add the <strong>license1</strong> field to the Block list</li>
</ul>
<p><a href="https://i.stack.imgur.com/alMjW.png" rel="nofollow noreferrer"><img src="ht... | How to configure Cloudfront Custom Cache Policy to consider all query parameters except one | amazon-web-services|amazon-cloudfront | 0 | 58 | 1 | 72,199,696 | 72,199,696 | 0 | true | 2022-05-11T08:03:13.137Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to configure Cloudfront Custom Cache Policy to consider all query parameters except one<p>I have an <strong>AWS Elastic Beanstalk</strong> instance that ... |
72,198,612 | Cesium polygon callback using javascript<p>I am trying to edit the change the edit or redraw the polygon. this is my code.
Error</p>
<pre><code>An error occurred while rendering. Rendering has stopped.
TypeError: this._callback is not a function
TypeError: this._callback is not a function
</code></pre>
<p>using <code>... | <p>Here's <a href="https://sandcastle.cesium.com/#c=rVh7b+I4EP8qEX+sggRO4jxh2+roY2/R9gra9la6O1aVSQz4NjiRbdqyp373myS0vJI01V3aQrHn7ZnfjAkTLpX2z4RrB88FEYpKRrjdKduM4ykJf4xFklKh1mUkSZyIkvWIzhinUcnObSgo5bcpCenVA+XqM+FRTEUDyrt1SkvIvjH6SMX++rN2qj0yHiWP6ALcWy0/Tvg+RZhH5CHnBWJOHzeC9EkrzFkuEq4IOCEmrfYRe0yVJmg0TuL1POEfy2SnxR5EKKah... | Cesium polygon callback using javascript | javascript|cesiumjs | 0 | 246 | 1 | 72,199,701 | 72,199,701 | 0 | true | 2022-05-11T09:28:55.880Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Cesium polygon callback using javascript<p>I am trying to edit the change the edit or redraw the polygon. this is my code.
Error</p>
<pre><code>An error occu... |
72,198,614 | Azure Devops Pipeline Scheduled trigger on other repository<p>I have a repo with Yaml definition of pipelines, that reference other repo for steps.</p>
<p>I'm trying to have the pipeline triggered based on a scheduled (cron) definition (only when source code changed) of a repo that is not the repo of the pipeline.
I tr... | <p>This can't be done, the way you're trying. A repository resource can include a trigger, but not a schedule; see the docs at <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/process/resources?view=azure-devops&tabs=schema#define-a-repositories-resource" rel="nofollow noreferrer">https://docs.micro... | Azure Devops Pipeline Scheduled trigger on other repository | azure-devops|azure-pipelines|azure-pipelines-yaml | 0 | 274 | 1 | 72,199,763 | 72,199,763 | 0 | true | 2022-05-11T09:28:57.110Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Azure Devops Pipeline Scheduled trigger on other repository<p>I have a repo with Yaml definition of pipelines, that reference other repo for steps.</p>
<p>I'... |
72,198,071 | Trying to debug my bot but nothing shows up<p>Hi this is my code for my discord bot, I try to run it and it comes up without an error, even the "im alive" log comes up in console, but nothing else, thought it was my token but the bot logs in,
the only thing I can think of is the <code>client.on</code> but eve... | <p>For getting the message data, you need to enable the <code>GUILD_MESSAGES</code> intent in your client as well as you need to go to your <a href="https://discord.com/developers/applications" rel="nofollow noreferrer">Discord Developer</a> page and then in your application, go to the Bot option and the check the Mess... | Trying to debug my bot but nothing shows up | discord.js | 0 | 36 | 1 | 72,199,777 | 72,199,777 | 0 | true | 2022-05-11T08:48:45.900Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Trying to debug my bot but nothing shows up<p>Hi this is my code for my discord bot, I try to run it and it comes up without an error, even the "im aliv... |
72,199,624 | How to control the disability state of HTML inputs using Javascript<p>I have been trying to cycle between the disability states of two inputs on my website by using a button attached to some JavaScript. My current code has two buttons in use which both disable one input and enable the other, however this is not very pr... | <pre class="lang-html prettyprint-override"><code><script>
// use a variable to note which one is disabled
let selected = "monthlyexpenses"
function switchDisabled () {
// toggle the from "monthlyexpenses" to "monthlypexpenses" or vice versa
selected = selected === "mon... | How to control the disability state of HTML inputs using Javascript | javascript|html | 0 | 29 | 2 | 72,199,806 | 72,199,806 | 0 | true | 2022-05-11T10:42:15.797Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to control the disability state of HTML inputs using Javascript<p>I have been trying to cycle between the disability states of two inputs on my website b... |
72,184,982 | Core Data CloudKit - List not updating after done onMove sorting<p>I have a Core Data + CouldKit App where any changes made(sort order) via the onMove modifier will not show directly after tapping the done button. If I leave the view and come back the change is visible. I tried fetching the new updated items during the... | <p>I've managed to fix my issue by adding</p>
<p><code>.environment(\.editMode, self.$isEditMode)</code></p>
<p>to my List in the view where the <code>Editbutton()</code> is located.</p>
<p>With this variable <code>@State var isEditMode: EditMode = .inactive</code></p> | Core Data CloudKit - List not updating after done onMove sorting | ios|core-data|swiftui|cloudkit | 0 | 42 | 1 | 72,199,877 | 72,199,877 | 0 | true | 2022-05-10T10:49:06.400Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Core Data CloudKit - List not updating after done onMove sorting<p>I have a Core Data + CouldKit App where any changes made(sort order) via the onMove modifi... |
72,145,386 | Change Feed Processor Issue<p>I am trying to test change feed processor in .net. I have tried to use the change feed processor from the beginning (as mentioned in documentation). When I start the change feed processor, it is running as expected, if I make a change in COSMOS db, it is triggering HandleChanges method. I ... | <p>As I was using service fabric explorer, even after I stopped local debugging, the listener continued to run in the background, hence it was processing them in the background. There was no data loss and it worked fine.
I realized this when the continuation token with TS seemed to changed even after I stopped the list... | Change Feed Processor Issue | .net|azure|azure-cosmosdb|azure-cosmosdb-changefeed | 0 | 195 | 2 | 72,199,947 | 72,199,947 | 0 | true | 2022-05-06T17:31:48.197Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Change Feed Processor Issue<p>I am trying to test change feed processor in .net. I have tried to use the change feed processor from the beginning (as mention... |
72,185,954 | How can I get specific users posted data from Mongo dB?<p>In react application I used a form to inserted data and with express JS I post this data to mongo db.
when people is logged in the can insert data using form. and there is a page where user can view and delete their inserted data. <strong>Problem is how can I lo... | <blockquote>
<p>When any user log in and user insert data also store <strong>user_id</strong> with
every entry. Now get data from <strong>DB</strong> by using current user logged in
<strong>user_id</strong> and display that specific data on front end. That's it.</p>
</blockquote>
<p>Comment below for any query.
Thanks<... | How can I get specific users posted data from Mongo dB? | reactjs|mongodb|express|mern | 0 | 155 | 1 | 72,200,010 | 72,200,010 | 0 | true | 2022-05-10T12:01:15.123Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I get specific users posted data from Mongo dB?<p>In react application I used a form to inserted data and with express JS I post this data to mongo d... |
72,199,033 | FeathersJS cannot create user with ObjectionJS and SQLite<p>I am experimenting with FeathersJS. To do so, I generated a new feathers app
<code>$ feathers g app</code> with the following configuration:</p>
<pre><code>? Do you want to use JavaScript or TypeScript? JavaScript
? Project name test
? Description
? What folde... | <p>Found the problem. The feathers generator creates the following jsonSchema within the ObjectionJS model:</p>
<pre><code> static get jsonSchema() {
return {
type: 'object',
required: ['password'],
properties: {
email: { type: ['string', 'null'] },
password: 'string',
... | FeathersJS cannot create user with ObjectionJS and SQLite | node.js|sqlite|knex.js|feathersjs|objection.js | 0 | 48 | 1 | 72,200,071 | 72,200,071 | 0 | true | 2022-05-11T09:58:22.337Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
FeathersJS cannot create user with ObjectionJS and SQLite<p>I am experimenting with FeathersJS. To do so, I generated a new feathers app
<code>$ feathers g a... |
72,198,209 | using Microsoft.Identity.Client without Microsoft as identity provider, is it possible?<p>Can someone tell me if it's possible with the "Microsoft.Identity.Client" to do OpenIdConnect and get an access token which <strong>doesn't come from Microsoft/Azure</strong> but from another Identity Provider.
Thanks in... | <blockquote>
<p>Can someone tell me if it's possible with the "Microsoft.Identity.Client" to do OpenIdConnect and get an access token which doesn't come from Microsoft/Azure but from another Identity Provider</p>
</blockquote>
<p>No, it's <strong>not possible</strong> to get an access token from third party i... | using Microsoft.Identity.Client without Microsoft as identity provider, is it possible? | azure|api|openid-connect|access-token|idp | 0 | 104 | 1 | 72,200,176 | 72,200,176 | 0 | true | 2022-05-11T08:59:14.050Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
using Microsoft.Identity.Client without Microsoft as identity provider, is it possible?<p>Can someone tell me if it's possible with the "Microsoft.Ident... |
72,199,998 | MyPy error: "object" has no attribute "get"<p>I am converting PyArrow types to their json-schema.org equivalent. The code works, all unit tests pass but MyPy gives the error</p>
<pre><code>error: "object" has no attribute "get"
</code></pre>
<p>I have a dictionary as follows</p>
<pre><code>from py... | <p>Thanks to Joel for this.</p>
<pre><code>from pyarrow import DataType, bool_, date32, float64, int64, string
DATATYPE_MAPPING: dict[DataType, dict[str, object]] = {
string(): {"json_type": "string", "example_value": "Words"},
bool_(): {"json_type": "bool... | MyPy error: "object" has no attribute "get" | python|mypy | 0 | 393 | 1 | 72,200,222 | 72,200,222 | 0 | true | 2022-05-11T11:10:28.710Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
MyPy error: "object" has no attribute "get"<p>I am converting PyArrow types to their json-schema.org equivalent. The code works, all unit tests pass but MyP... |
72,199,499 | How to apply CORS by using Asp.Net Web Api Core 6 thought client side fetch?<p>I am trying to access my asp.net core 6 Web API (.NET6) from client side fetch api in ReactJS.</p>
<p>But I am getting the CORS error.</p>
<p>What I want is to get data from the server but only my client application can access (server data) ... | <p>Thank you everyone.</p>
<p>Issue has been fixed.</p>
<p>I just removed the slash and it worked</p>
<p>from</p>
<pre><code> policy.WithOrigins("https://localhost:7260/","https://localhost:44485/")
</code></pre>
<p>to</p>
<pre><code> policy.WithOrigins("https://localhost:7260","http... | How to apply CORS by using Asp.Net Web Api Core 6 thought client side fetch? | reactjs|asp.net-core|asp.net-core-webapi | 0 | 170 | 1 | 72,200,250 | 72,200,250 | 0 | true | 2022-05-11T10:33:13.230Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to apply CORS by using Asp.Net Web Api Core 6 thought client side fetch?<p>I am trying to access my asp.net core 6 Web API (.NET6) from client side fetch... |
72,196,760 | Meaning of diff_from_typical in ElasticSearch Machine Learning custom rules<p>When configuring Machine Learning jobs in ES, you can customise your detectors by using <a href="https://www.elastic.co/guide/en/elasticsearch/reference/master/ml-put-job.html#put-customrules" rel="nofollow noreferrer">custom_rules</a>.</p>
<... | <p>The question was answered in the ES forum: <a href="https://discuss.elastic.co/t/explain-diff-from-typical-meaning-in-custom-rules/304419" rel="nofollow noreferrer">https://discuss.elastic.co/t/explain-diff-from-typical-meaning-in-custom-rules/304419</a></p>
<p>Basically, it means absolute difference, so it covers b... | Meaning of diff_from_typical in ElasticSearch Machine Learning custom rules | elasticsearch | 0 | 7 | 1 | 72,200,300 | 72,200,300 | 0 | true | 2022-05-11T07:06:44.103Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Meaning of diff_from_typical in ElasticSearch Machine Learning custom rules<p>When configuring Machine Learning jobs in ES, you can customise your detectors ... |
72,199,503 | How to map an abstract class without an id in Hibernate<p>The background of this project is that there are two types of users, suscriber users and amdin users. There are also two types of sucriber users, students and professors. Admin users can register new classrooms, and suscriber users can suscribe to classrooms to ... | <p>The <code>User</code> class is just a collector of fields, therefore it can become a <code>@MappedSuperClass</code>.</p>
<pre class="lang-java prettyprint-override"><code>@MappedSuperClass
public abstract class User implements IUser {
private String name;
// some other fields
// constructors
//... | How to map an abstract class without an id in Hibernate | java|hibernate | 0 | 75 | 1 | 72,200,302 | 72,200,302 | 0 | true | 2022-05-11T10:33:37.547Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to map an abstract class without an id in Hibernate<p>The background of this project is that there are two types of users, suscriber users and amdin user... |
72,200,223 | Array reshape into n*n<p>I have this code where I create n * n entries and save out the inputed data, but I want to keep the shape of the matrix, for example when I create an 2*2, the matrix should look like after the save : [[1 2][3 4]]
But when I save it out it looks like: [1 2 3 4]</p>
<p>How can I reshape it?</p>
<... | <p>The <code>create</code> function should be modified to:</p>
<pre><code>def create():
numm = int(e1.get())
global my_entry
for x in range(numm):
row = []
for i in range(numm):
my_entry = Entry(root)
my_entry.grid(row=x, column=i)
row.append(my_entry)
entries.append(row)
</code></pr... | Array reshape into n*n | python|arrays|reshape | 0 | 37 | 2 | 72,200,393 | 72,200,393 | 0 | true | 2022-05-11T11:26:32.450Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Array reshape into n*n<p>I have this code where I create n * n entries and save out the inputed data, but I want to keep the shape of the matrix, for example... |
72,200,403 | c# parsing null to int from api fails<p>I am trying to parse a null from our api into an int like this:</p>
<p>API:</p>
<pre><code>"thresholdMax": 10,
"thresholdAvg": null,
"thresholdMin": 40
</code></pre>
<p>Datamodel:</p>
<pre><code>public int thre... | <p>if you want to allow <code>null</code> values you could easily do:</p>
<pre><code>public int? thresholdAvg { get; set; }
</code></pre> | c# parsing null to int from api fails | c# | 0 | 33 | 1 | 72,200,474 | 72,200,474 | 0 | true | 2022-05-11T11:39:11.607Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
c# parsing null to int from api fails<p>I am trying to parse a null from our api into an int like this:</p>
<p>API:</p>
<pre><code>"thresholdMax": ... |
72,194,515 | Assign value to interface element without previous instantiation of the implementation<p>I have a STRUCT (DUT) which one element is an interface.</p>
<pre><code>STRUCT myStruct
element : iInterf;
END_STRUCT
</code></pre>
<p>In declaration session, I have to instantiate first (with same implementation) before assign ... | <p>Not that I know of. Here's a quote from the CODESYS <a href="https://help.codesys.com/api-content/2/codesys/3.5.17.0/en/_cds_obj_interface/" rel="nofollow noreferrer">documentation</a>: <code>CODESYS always treats variables declared with the type of an interface as references</code>. If an interface is essentially a... | Assign value to interface element without previous instantiation of the implementation | codesys | 0 | 62 | 1 | 72,200,492 | 72,200,492 | 0 | true | 2022-05-11T01:38:04.877Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Assign value to interface element without previous instantiation of the implementation<p>I have a STRUCT (DUT) which one element is an interface.</p>
<pre><c... |
72,199,426 | Upload Django app to Heroku. ModuleNotFoundError:No Module named 'Name of Project"<p>I can not upload Django App to Heroku by command: git push heroku master. After uploading I have error: ModuleNotFoundError: No module named 'bot_diller'</p>
<p>Procfile:
web: gunicorn bot_diller.wsgi --log-file -</p>
<p><a href="https... | <p>From the directory structure the root of your Git project is not entirely clear to me.
It seems you reference <code>bot_diller</code> as python module probably in an import statement in one of your Python files, which is outside of the scope of the code you push to Heroku.</p>
<p>The Django project seems to be insid... | Upload Django app to Heroku. ModuleNotFoundError:No Module named 'Name of Project" | django | 0 | 75 | 1 | 72,200,526 | 72,200,526 | 0 | true | 2022-05-11T10:27:19.723Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Upload Django app to Heroku. ModuleNotFoundError:No Module named 'Name of Project"<p>I can not upload Django App to Heroku by command: git push heroku master... |
72,174,095 | Converting a pandas operation into a SPARK operation<p>I have a question regarding SPARK operations in python.</p>
<p>So the question I have is formatted nicely and enclosed in the following letter:</p>
<p><a href="https://cernbox.cern.ch/index.php/s/W3zWvparRP2WGJc" rel="nofollow noreferrer">https://cernbox.cern.ch/in... | <p>This is solution:</p>
<pre><code>SPLIT_COUNT = 90
SPLIT_SIZE = 1024
spark_p = data.select("profiles", '__record_timestamp__')
spark_p = spark_p.withColumn("profiles", F.col("profiles").getField("elements") )
slices = [F.slice(F.col('profiles'), i * SPLIT_SIZE + 1, SPLIT_SIZE... | Converting a pandas operation into a SPARK operation | python|arrays|pandas|dataframe|apache-spark | 0 | 19 | 1 | 72,200,528 | 72,200,528 | 0 | true | 2022-05-09T15:00:18.923Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Converting a pandas operation into a SPARK operation<p>I have a question regarding SPARK operations in python.</p>
<p>So the question I have is formatted nic... |
72,197,533 | How to set the <secret> tag in the remote_servers tag?<p>experts
I'm trying to configure a cluster setting that does not include < password >.</p>
<p>According to the ClickHouse documentation,( <a href="https://clickhouse.com/docs/en/engines/table-engines/special/distributed/#distributed-clusters" rel="nofollow n... | <p>You can put any random string. The idea that CH nodes with the same string trust each other.</p>
<p><a href="https://github.com/ClickHouse/ClickHouse/blob/b29e877f269e84ae452c446e70b406a695863470/tests/integration/test_distributed_inter_server_secret/configs/remote_servers_n2.xml" rel="nofollow noreferrer">https://g... | How to set the <secret> tag in the remote_servers tag? | clickhouse | 0 | 86 | 1 | 72,200,538 | 72,200,538 | 0 | true | 2022-05-11T08:08:00.213Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to set the <secret> tag in the remote_servers tag?<p>experts
I'm trying to configure a cluster setting that does not include < password >.</p>
<p>A... |
72,200,412 | Optimize the if else condition in the code<p>Below is my code.</p>
<pre><code>String perfIdValtxt = "";
try {
while (resultsOfSecurityDetails.next()) {
String perfIdVal = resultsOfSecurityDetails.getString(1);
if (perfIdVal == null) {
per... | <p>A handy way</p>
<pre class="lang-java prettyprint-override"><code>String perfIdValtxt = "";
try {
while (resultsOfSecurityDetails.next()) {
perfIdValtxt = Optional.ofNullable(resultsOfSecurityDetails.getString(1)).orElse("");
}
} catch (SQLException e) {
e.printStackTrace();
}... | Optimize the if else condition in the code | java | 0 | 83 | 5 | 72,200,583 | 72,200,583 | 0 | true | 2022-05-11T11:39:50.693Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Optimize the if else condition in the code<p>Below is my code.</p>
<pre><code>String perfIdValtxt = "";
try {
while (resultsOfS... |
72,200,631 | How do I change from the Checkbutton on tkinter<p>So I'm very new to Tkinter and don't really know how to use it.
I looked up some similar code and found a solution for how to get the text boxes(e1)(e6) I use to register the values, but the downside was that I needed to use the Checkbox that's in line 52.
Does anyone k... | <p>It's simple, just remove this checkbox and everything associated with it, like checks about this checkbox etc.</p>
<p>For starter, adjust tabulation after removing these lines:</p>
<pre><code>if (japp.get()):
...
japp = IntVar()
Checkbutton(hej, text="Kostnad per styck", variable=japp).place(x=10, y=50)
</... | How do I change from the Checkbutton on tkinter | python|tkinter | 0 | 28 | 1 | 72,200,753 | 72,200,753 | 0 | true | 2022-05-11T11:56:19.110Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I change from the Checkbutton on tkinter<p>So I'm very new to Tkinter and don't really know how to use it.
I looked up some similar code and found a s... |
72,139,246 | SAS assign group and accumulate<p>I have a dataset which have columns Event and Time. I need to create columns Group and Cumulative. What I need to measure is the duration of the Event 'Event1_Stop' until an 'Event1_Start' appears. Last group should sum the time meaning that the stop is ongoing and no start for the eve... | <p>Thanks to @mkeintz on SAS forum for the solution:</p>
<pre><code>data stop_to_start (keep=group cumulative);
set have end=end_of_have;
group+(event='Event1_Stop');
if event='Event1_Stop' then cumulative=0;
cumulative+time;
if end_of_have or event='Event1_Start' ;
run;
data want;
set have;
if _n_=1 or event='Event1_... | SAS assign group and accumulate | sas | 0 | 31 | 1 | 72,200,837 | 72,200,837 | 0 | true | 2022-05-06T09:32:59.027Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SAS assign group and accumulate<p>I have a dataset which have columns Event and Time. I need to create columns Group and Cumulative. What I need to measure i... |
72,169,125 | Custom Java unit length converter with options in json file<p>I have a length unit converter written in Java. How can I implement the ability to expand the list of supported units by setting conversion rules via a JSON file?</p>
<p>Сlass ConversionCalculator:</p>
<pre><code>package convert;
import java.util.Scanner;
p... | <p>Solved the problem. Code part:</p>
<pre><code>public static void main(String[] args) {
String userJson = "[{\"unit\": \"in\", \"value\": \"11\", \"conversionto\": \"cm\"}," +
"{\"unit\": \"ft\", \"val... | Custom Java unit length converter with options in json file | java|json|class|parsing|converters | 0 | 104 | 2 | 72,200,903 | 72,200,903 | 0 | true | 2022-05-09T08:36:56.810Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Custom Java unit length converter with options in json file<p>I have a length unit converter written in Java. How can I implement the ability to expand the l... |
72,200,870 | Button get specific input hidden value JQuery<p>I have a table in which the information is generated automatically
for each line I have a button which in turn has an input type = 'hidden' element:</p>
<pre><code><table>
<tr>
<td>ROW1</td>
<td>
<input type="hidden&qu... | <p>You can do it like this:</p>
<pre><code>$('button[id^=bttn_]').click(function() {
var val = $(this).siblings("input").val()
})
</code></pre>
<p><code>$('button[id^=bttn_]')</code> will select all buttons where the <code>id</code> starts with <code>bttn_</code></p>
<p><code>$(this).prev("input")... | Button get specific input hidden value JQuery | html|jquery|select | 0 | 22 | 1 | 72,200,911 | 72,200,911 | 0 | true | 2022-05-11T12:12:46.713Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Button get specific input hidden value JQuery<p>I have a table in which the information is generated automatically
for each line I have a button which in tur... |
72,200,628 | How to display db value in the dropdown as default value<p>i need your help, i got a project with a lot to do and to be honest i can't finish it without help.
As i'm new in Angular & Springboot with small basic knowledge i'm not able to continue the project they gave me.</p>
<p>One of the issue i have is some dropd... | <p>Use [ngValue]:</p>
<pre><code><option *ngFor="let option of config.values" [ngValue]="option">{{option.label | translate}}</option>
</code></pre>
<p>I assume you set the selected value with this.getControl('active'):</p>
<pre><code>getControl(): FormControl {
return this.formBuild... | How to display db value in the dropdown as default value | angular|typescript|spring-boot | 0 | 30 | 2 | 72,200,944 | 72,200,944 | 0 | true | 2022-05-11T11:56:09.863Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to display db value in the dropdown as default value<p>i need your help, i got a project with a lot to do and to be honest i can't finish it without help... |
72,171,987 | Unity IOS game does not pausing on Interstitial ads<p>Here is my question;
When I build the game as android target, Interstitials works fine, but when I try the game as an IOS, the Interstitial is shown but the game does not pause.</p> | <p>Ok, I find the solution</p>
<p>Open your AdManager Script and write this code at Start function;</p>
<p>MobileAds.SetiOSAppPauseOnBackground(true);</p> | Unity IOS game does not pausing on Interstitial ads | c#|ios|unity3d|admob|interstitial | 0 | 184 | 1 | 72,201,026 | 72,201,026 | 0 | true | 2022-05-09T12:26:10.117Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unity IOS game does not pausing on Interstitial ads<p>Here is my question;
When I build the game as android target, Interstitials works fine, but when I try ... |
72,201,105 | Android Bluetooth pairing dialog shows less than 1 second<p>This post is here to help people from my brief experience with a bug of the Bluetooth pairing dialog on my phone.</p>
<p><strong>Context:</strong>
I was unable to pair my smartwatch with my Google Pixel 5 running Android 12. When I try the pairing from the Blu... | <p><strong>Solution:</strong></p>
<ul>
<li>Go in the "Developer options" (search on Google if not already enabled)</li>
<li>Check "Enable Gabeldorsche"</li>
</ul>
<p>It is the new Android BLE stack written in Rust.
With this option checked, the dialog asking for the pairing PIN remains visible and g... | Android Bluetooth pairing dialog shows less than 1 second | android|bluetooth | 0 | 118 | 1 | 72,201,106 | 72,201,106 | 0 | true | 2022-05-11T12:30:43.137Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Android Bluetooth pairing dialog shows less than 1 second<p>This post is here to help people from my brief experience with a bug of the Bluetooth pairing dia... |
72,191,568 | Conditional navigation inside Tabs<p>i want to show a screen depending on a state.
So when I click on the bottom left tab, <code>if</code> there is a valid user, I want to be redirected to the UserProfile-screen, <code>else</code> redirect to the LoginScreen.
The react-native navigation confuses me, i just cant see wha... | <p>Inside the <code>BottomTabNavigator</code> you can check if the user is logged in. You can get the user in the same way you're getting it in <code>UserProfile.tsx</code> file.</p>
<pre class="lang-js prettyprint-override"><code>
export const BottomTabNavigator = () => {
const [user, setUser] = React.useState(nu... | Conditional navigation inside Tabs | react-native|expo|react-navigation | 0 | 156 | 1 | 72,201,160 | 72,201,160 | 0 | true | 2022-05-10T18:45:24.550Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Conditional navigation inside Tabs<p>i want to show a screen depending on a state.
So when I click on the bottom left tab, <code>if</code> there is a valid u... |
72,200,996 | Unable to load Pickled Glove 840b 300d in Jupyter Notebook<pre><code>%%time
glove_embeddings = np.load('https://www.kaggle.com/code/authman/pickled-glove-840b-300d', allow_pickle=True)
fasttext_embeddings = np.load('../input/pickled-crawl300d2m-for-kernel-competitions/crawl-300d-2M.pkl', allow_pickle=True)
</code></pr... | <p>The external website from the Kaggle link shows a 404 error message, so there is no file available under that URL. Try to log in into Kaggle, go to this URL: <a href="https://www.kaggle.com/datasets/authman/pickled-glove840b300d-for-10sec-loading" rel="nofollow noreferrer">https://www.kaggle.com/datasets/authman/pic... | Unable to load Pickled Glove 840b 300d in Jupyter Notebook | jupyter-notebook|nlp|data-science|kaggle | 0 | 20 | 1 | 72,201,272 | 72,201,272 | 0 | true | 2022-05-11T12:22:03.740Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Unable to load Pickled Glove 840b 300d in Jupyter Notebook<pre><code>%%time
glove_embeddings = np.load('https://www.kaggle.com/code/authman/pickled-glove-84... |
72,189,777 | Get latest API version for Azure Workspace SQL Pool using powershell<p>I've tried multiple options in powershell like Get-AzSynapseWorkspace but I cannot find anywhere the latest API version for Synapse Analytics.</p>
<p>I'm calling a REST API using the below code but it was failing due to the api version of the Micros... | <p>You can use PowerShell to check which API versions are available.</p>
<pre><code>$workspaces = (Get-AzResourceProvider -ProviderNamespace Microsoft.Synapse).resourcetypes | ? resourceTypeName -eq 'workspaces'
$workspaces.ApiVersions
2021-06-01-preview
2021-06-01
2021-05-01
2021-04-01-preview
2021-03-01
2020-12-01
... | Get latest API version for Azure Workspace SQL Pool using powershell | azure|azure-powershell|azureportal | 0 | 74 | 1 | 72,201,325 | 72,201,325 | 0 | true | 2022-05-10T16:15:09.363Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Get latest API version for Azure Workspace SQL Pool using powershell<p>I've tried multiple options in powershell like Get-AzSynapseWorkspace but I cannot fin... |
72,200,808 | Change spark dataframe columns name<p>Hi I have a spark data frame in the below format</p>
<pre><code>| id | Name | Round_1_id |Round_1_name|Round_2_id|Round_2_name|
| ---| ------|------------|------------|----------|------------|
| 12 | ABC | 45 |BCD | 34 | HRF |
</code></pre>
<p>there ... | <p>You can conditionally find the column name and replace the characters with the value from dict to get the new column and use withColumnRenamed to rename columns.</p>
<p>See the code below</p>
<pre><code>rename_col = {"id":"identity", "name":"Fullname"}
for col in df.columns:
... | Change spark dataframe columns name | python|apache-spark|pyspark | 0 | 34 | 1 | 72,201,499 | 72,201,499 | 0 | true | 2022-05-11T12:08:10.473Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Change spark dataframe columns name<p>Hi I have a spark data frame in the below format</p>
<pre><code>| id | Name | Round_1_id |Round_1_name|Round_2_id|Roun... |
72,186,661 | vue back button should close dialog if open<p>I have a vue.js project. The vue-component can create a dialog. If the user presses the back button I want to close this dialog (if it is open) instead of leaving the vue-component. How can I achieve this?</p>
<p>I tried this:</p>
<pre><code>beforeRouteLeave(to, from, next)... | <p>It works now with the hashtag/anchor as suggested by @Kapcash. If I press now the back button the dialog is hidden and my main component doesn't close.</p>
<p>MyComponent.vue:</p>
<pre><code><StockChooser v-if="showStockChooser" v-model="showStockChooser">
import StockChooser from "./... | vue back button should close dialog if open | javascript|vue.js|vuetify.js|vue-router | 0 | 300 | 1 | 72,201,533 | 72,201,533 | 0 | true | 2022-05-10T12:52:07.907Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
vue back button should close dialog if open<p>I have a vue.js project. The vue-component can create a dialog. If the user presses the back button I want to c... |
72,201,185 | Dockerfile with extension<p>Is it possible to have multiple Dockerfile's with different extensions to link some services separately or in other use cases. For example:</p>
<pre><code>\Dockerfile.web \Dockerfile.celery
</code></pre>
<p>and why?</p> | <p>You may have multiple Dockerfiles but you can only run one at a time when building an image. By default <code>docker build</code> looks for a file named <code>Dockerfile</code>. To specify another file use the <code>-f</code> flag.</p>
<pre class="lang-sh prettyprint-override"><code>docker build ... | Dockerfile with extension | docker|docker-compose|dockerfile|docker-swarm|docker-machine | 0 | 64 | 1 | 72,201,550 | 72,201,550 | 0 | true | 2022-05-11T12:36:48.180Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Dockerfile with extension<p>Is it possible to have multiple Dockerfile's with different extensions to link some services separately or in other use cases. Fo... |
72,201,429 | Map array of locales and change each locale to language name<p>Using Next.js, I'm getting the current locale and all available locales for a language selection menu:</p>
<pre><code>const {cl, al} = useContext(LangContext);
// cl = "en-US"
// al = ["en-US", "de-DE"]
</code></pre>
<p>I wrote... | <p>How about an object.</p>
<pre class="lang-js prettyprint-override"><code>const clAlias = {
"en-US": "English",
"de-DE": "Deutsch"
}
//...
al.map(x => clAlias[x])
</code></pre> | Map array of locales and change each locale to language name | javascript|next.js|internationalization | 0 | 241 | 2 | 72,201,669 | 72,201,669 | 0 | true | 2022-05-11T12:54:08.823Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Map array of locales and change each locale to language name<p>Using Next.js, I'm getting the current locale and all available locales for a language selecti... |
72,200,503 | when the page first renders it shows the whole list, then it checks and deletes the ones I subscribed to<p>I have a problem with react useMemo.</p>
<pre><code> const [cardlist, setCardList] = useState([]);
const [subs, setSubs] = useState([]);
useEffect(() => {
handleCardList(); // for rendering cards on p... | <p>If the subs array is fed with async data, the initial value of <code>subs</code> is an empty array. The <code>filteredCard</code> is calculated as is, without filter (<code>!subs.includes</code> returns true), thus you have the unfiltered data that you don't want. You can keep a <code>loading</code> state and wait f... | when the page first renders it shows the whole list, then it checks and deletes the ones I subscribed to | reactjs|use-effect|use-state|react-usememo | 0 | 29 | 1 | 72,201,694 | 72,201,694 | 0 | true | 2022-05-11T11:46:55.350Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
when the page first renders it shows the whole list, then it checks and deletes the ones I subscribed to<p>I have a problem with react useMemo.</p>
<pre><cod... |
72,201,212 | Wordpress: Get pll_the_languages inside my plugin<p>How can i get languages into my custom plugin of wordpress?
When i call pll_the_languages() it's output me error.
Maybe i should call some global method?</p>
<p><a href="https://i.stack.imgur.com/0nhRS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com... | <p>My issue is solved.
You should use admin_init action:</p>
<pre><code> function plugin_pll_register_string() {
if ( function_exists( 'pll_register_string' ) ) {
pll_register_string('woocommerce-admin-ajax-strings', 'Update');
pll_register_string('woocommerce-admin-ajax-strings', 'Published');
... | Wordpress: Get pll_the_languages inside my plugin | php|wordpress|plugins | 0 | 63 | 1 | 72,201,708 | 72,201,708 | 0 | true | 2022-05-11T12:38:55.437Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Wordpress: Get pll_the_languages inside my plugin<p>How can i get languages into my custom plugin of wordpress?
When i call pll_the_languages() it's output m... |
72,197,978 | Mapping self associated bidirectional entity issue<p>I have the following Parameter entity which has a self-association, I m trying to make a unit test to check my implementation, but it feels that I m doing some errors in my mapping and I can't detect where I m being mistaken.</p>
<p>My entity is as below</p>
<pre cla... | <p>I did fix the issue but I m still facing some interrogations as below :</p>
<p><strong>The Fix</strong></p>
<pre><code> @Transactional
@Modifying(clearAutomatically = false)
// @EntityGraph(attributePaths = {"dependences","expertSystem"})
@Query(value = "SELECT param.dependences F... | Mapping self associated bidirectional entity issue | java|spring|spring-boot|hibernate|jpa | 0 | 58 | 1 | 72,201,872 | 72,201,872 | 0 | true | 2022-05-11T08:42:40.487Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Mapping self associated bidirectional entity issue<p>I have the following Parameter entity which has a self-association, I m trying to make a unit test to ch... |
72,195,517 | how do I write test cases for __str__ method for a model having two ManyToManyFields in Django Rest FrameWork?<p>Here are the three models where in the 3rd model we relate the above two models.
#models.py</p>
<pre><code>class CategoryDetail(models.Model):
categoryCode = models.BigAutoField(
primary_key=True... | <p>The issue is happening, as the error states, because you're trying to set the many-to-many fields directly within your <code>.create</code> (<code>productCode=product1.productCode</code> and <code>categoryCode=category1.categoryCode</code>).</p>
<p>You should be using <code>.set()</code> afterwards:</p>
<pre><code>c... | how do I write test cases for __str__ method for a model having two ManyToManyFields in Django Rest FrameWork? | python|django|unit-testing|django-rest-framework | 0 | 44 | 1 | 72,201,878 | 72,201,878 | 0 | true | 2022-05-11T04:42:54.087Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how do I write test cases for __str__ method for a model having two ManyToManyFields in Django Rest FrameWork?<p>Here are the three models where in the 3rd m... |
72,201,575 | SQL calculate MTD out of YTD<p>I try to calculate in SQL MTD cost of a table.</p>
<p>I have following table:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>year</th>
<th>user</th>
<th>month</th>
<th>type</th>
<th>cost</th>
<th>blank</th>
</tr>
</thead>
<tbody>
<tr>
<td>2021</td>
<td>a</td>... | <p>You can use <code>LAG</code> to see the previous row's cost.</p>
<pre><code>select
year, user, month, type, cost,
cost - coalesce(lag(cost) over(partition by user order by year, month), 0) as costmtd,
0 as blank
from dbo.usercosts as
order by user, year, month;
</code></pre> | SQL calculate MTD out of YTD | sql | 0 | 30 | 1 | 72,201,891 | 72,201,891 | 0 | true | 2022-05-11T13:04:28.143Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SQL calculate MTD out of YTD<p>I try to calculate in SQL MTD cost of a table.</p>
<p>I have following table:</p>
<div class="s-table-container">
<table class... |
72,198,503 | Why is a FILE* pointer zero-initialized in C++'s default initialization?<p>Consider</p>
<pre class="lang-cpp prettyprint-override"><code>#include <iostream>
#include <cstdio>
using namespace std;
struct Foo {
FILE* fp;
Foo* mp;
};
int main()
{
Foo f1; // default initialization
cout <... | <p>You didn't initialize the pointers. They get random (undefined) values (specifically, whatever the runtime happened to leave on the stack during initialization before <code>main</code> was called). Sometimes those values happen to be <code>NULL</code>. C++ didn't initialize them, you just got "lucky". As n... | Why is a FILE* pointer zero-initialized in C++'s default initialization? | c++|initialization | 0 | 68 | 1 | 72,201,908 | 72,201,908 | 0 | true | 2022-05-11T09:22:42.040Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why is a FILE* pointer zero-initialized in C++'s default initialization?<p>Consider</p>
<pre class="lang-cpp prettyprint-override"><code>#include <iostrea... |
72,025,458 | How to pragmatically access the results of a website radio button?<p>I am trying to programatically download the results of a website using <code>wget</code>. <a href="https://www.ebi.ac.uk/gxa/genes/ensg00000177455?bs=%7B%22homo%20sapiens%22%3A%5B%22ORGANISM_PART%22%5D%7D&ds=%7B%22kingdom%22%3A%5B%22animals%22%5D%... | <p>I found the answer for this by contacting Gene Expression Atlas directly. This is an example link for a protein which gives the data stored in the download button in JSON format:</p>
<pre><code>https://www.ebi.ac.uk/gxa/json/baseline_experiments?geneQuery=%255B%257B%2522value%2522%253A%2522ENSG00000177455%2522%257D... | How to pragmatically access the results of a website radio button? | json|web-scraping|wget | 0 | 21 | 1 | 72,202,115 | 72,202,115 | 0 | true | 2022-04-27T08:17:26.963Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to pragmatically access the results of a website radio button?<p>I am trying to programatically download the results of a website using <code>wget</code>... |
72,202,079 | Remove Null value when delete a json portion using javascript<p>I am having an json object below. I want to delete a part if the question value is empty. So according to below json I need to delete the id=7602 portion.</p>
<pre><code> [ {
"id": 9333,
"component": &q... | <p>You could use filter instead.</p>
<pre class="lang-js prettyprint-override"><code>content_json.content_arr[i].sub_comp_arr = content_json.content_arr[i].sub_comp_arr.filter(q => q.value)
</code></pre> | Remove Null value when delete a json portion using javascript | javascript|json|null|extract|splice | 0 | 108 | 1 | 72,202,116 | 72,202,116 | 0 | true | 2022-05-11T13:37:13.717Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Remove Null value when delete a json portion using javascript<p>I am having an json object below. I want to delete a part if the question value is empty. So ... |
72,172,554 | Cannot create MicroStation .net project in Visual Studio<p>I am trying to create plugin for MicroStation, using .net framework following this tutorial :
<a href="https://communities.bentley.com/products/programming/microstation_programming/w/wiki/52303/introduction-and-prerequisite" rel="nofollow noreferrer">https://co... | <p>I found the answer myself :
In addition to what is listed in the tutorial, you need to install the extension "VS 2019 Tools for MicroStation CONNECT Edition", which can be found in the extension market inside VS.</p> | Cannot create MicroStation .net project in Visual Studio | visual-studio|microstation | 0 | 22 | 1 | 72,202,147 | 72,202,147 | 0 | true | 2022-05-09T13:12:05.780Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Cannot create MicroStation .net project in Visual Studio<p>I am trying to create plugin for MicroStation, using .net framework following this tutorial :
<a h... |
72,196,562 | How to connect to blob container using SAS url in javascript?<p>i want to connect straight to container not to storage account using container's url with SAS.</p>
<p>For now i have code that work:</p>
<pre><code>private async getContainer() {
const blobServiceClient = new BlobServiceClient(this.props.sasToken);
... | <p>Please use <a href="https://docs.microsoft.com/en-us/javascript/api/@azure/storage-blob/containerclient?view=azure-node-latest#@azure-storage-blob-containerclient-constructor-2" rel="nofollow noreferrer"><code>ContainerClient(string, PipelineLike)</code></a> constructor to create an instance of <code>ContainerClient... | How to connect to blob container using SAS url in javascript? | javascript|node.js|azure|azure-blob-storage | 0 | 145 | 1 | 72,202,184 | 72,202,184 | 0 | true | 2022-05-11T06:48:01.343Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to connect to blob container using SAS url in javascript?<p>i want to connect straight to container not to storage account using container's url with SAS... |
72,202,235 | How to set persistent cookies that stay even after closing window?<p>I am trying to set cookies that have to be persistent even if the user closes the browser.</p>
<p>document.cookie = <code>name=${generateString()}</code>; 'expires=Sun, 1 Jan 2023 00:00:00 UTC; path=/';</p>
<p>But when I close the window, and I open i... | <p>You should consider using <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage" rel="nofollow noreferrer">localStorage</a>. For example:</p>
<pre><code>// setting an item with name "expires"
localStorage.setItem('expires', 'Sun, 1 Jan 2023 00:00:00 UTC');
// retrieving the item
co... | How to set persistent cookies that stay even after closing window? | javascript|cookies | 0 | 192 | 1 | 72,202,255 | 72,202,255 | 0 | true | 2022-05-11T13:47:42.580Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to set persistent cookies that stay even after closing window?<p>I am trying to set cookies that have to be persistent even if the user closes the browse... |
72,202,279 | Incorrect 1ms delay at GD32VF103<p>I use GD32VF103C_START kit from GigaDevice and try LED blinking sample project. I found this project in the Internet and it compiles just fine (I've only changed from 500ms to 1000ms=1s).</p>
<p><em>main.c</em>:</p>
<pre><code>
#include "gd32vf103.h"
#include "gd32vf103... | <p>Problem is non in <em>main.c</em>, neither in <em>systick.c</em>, it's in <em>system_gd32vf103.c</em>.</p>
<p>There are:</p>
<pre><code>/* system frequency define */
#define __IRC8M (IRC8M_VALUE) /* internal 8 MHz RC oscillator frequency */
#define __HXTAL (HXTAL_VALUE) /* h... | Incorrect 1ms delay at GD32VF103 | c|embedded|clock|mcu | 0 | 66 | 1 | 72,202,280 | 72,202,280 | 0 | true | 2022-05-11T13:51:43.543Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Incorrect 1ms delay at GD32VF103<p>I use GD32VF103C_START kit from GigaDevice and try LED blinking sample project. I found this project in the Internet and i... |
72,200,240 | how to handle If a subquery (inner query) returns a null value to the outer query<p>I have a vertical table like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>id</th>
<th>Profile_id</th>
<th>feature_id</th>
<th>value</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
... | <p>You could use scalar subqueries in the select-list instead of your current Cartesian product:</p>
<pre><code>SELECT (SELECT `value` FROM `profile_features` WHERE `feature_id` IN (10, 64, 103) AND `profile_id` = 16752 LIMIT 1) as TelNum,
(SELECT `value` From `profile_features` WHERE `feature_id` IN (5, 61, 100) AND... | how to handle If a subquery (inner query) returns a null value to the outer query | mysql|null|subquery | 0 | 36 | 1 | 72,202,296 | 72,202,296 | 0 | true | 2022-05-11T11:27:48.653Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to handle If a subquery (inner query) returns a null value to the outer query<p>I have a vertical table like this:</p>
<div class="s-table-container">
<t... |
72,195,222 | SwiftUI swipeActions reload results in leading blank space and broken swipe<p>I am trying to use the <a href="https://developer.apple.com/documentation/SwiftUI/View/swipeActions(edge:allowsFullSwipe:content:)" rel="nofollow noreferrer">swipeActions</a> SwiftUI modifier setup as displayed in the code below but the swipe... | <p>I am still not sure why your implementation is causing this behavior, other than that you are completely switching between two separate views(<code>Zstack</code> vs. <code>ProgressView</code>). My suspicion is that the change back and forth is simply putting the <code>List</code> into some weird state. The fix, howe... | SwiftUI swipeActions reload results in leading blank space and broken swipe | swiftui|swiftui-swipeactions | 0 | 94 | 1 | 72,202,297 | 72,202,297 | 0 | true | 2022-05-11T03:53:34.283Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SwiftUI swipeActions reload results in leading blank space and broken swipe<p>I am trying to use the <a href="https://developer.apple.com/documentation/Swift... |
72,183,099 | How to share a file between two builds of same pipeline in Azure Devops?<p>I've recently started using Azure DevOps & I want to store a .json file generated during one nightly scheduled build run somewhere so that when the nightly scheduled build runs next time for the same pipeline, I should be able to use that st... | <p>You could use a pipeline tag to identify the right build:</p>
<ol>
<li>At the end of the nightly scheduled build, make it tag itself as "nightly" e.g. with a powershell task calling <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&tabs=powershe... | How to share a file between two builds of same pipeline in Azure Devops? | azure|azure-devops|azure-pipelines | 0 | 37 | 1 | 72,202,363 | 72,202,363 | 0 | true | 2022-05-10T08:35:53.913Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to share a file between two builds of same pipeline in Azure Devops?<p>I've recently started using Azure DevOps & I want to store a .json file genera... |
72,193,241 | Graph API Retire Device<p>I am trying to retire a device that exists in Endpoint Manager using the Graph API with Powershell. I have been following the Microsoft documentation here (<a href="https://docs.microsoft.com/en-us/graph/api/intune-devices-manageddevice-retire?view=graph-rest-1.0" rel="nofollow noreferrer">htt... | <p>We determined we were using the incorrect Id. We were initially using the Id field from the Uri <code>https://graph.microsoft.com/v1.0/users/$email/ownedDevices</code>, which returned the incorrect Id. We should have been using the Id from <code>https://graph.microsoft.com/v1.0/users/$email/managedDevices</code>. Us... | Graph API Retire Device | powershell|rest|microsoft-graph-api | 0 | 242 | 1 | 72,202,414 | 72,202,414 | 0 | true | 2022-05-10T21:41:48.640Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Graph API Retire Device<p>I am trying to retire a device that exists in Endpoint Manager using the Graph API with Powershell. I have been following the Micro... |
72,191,035 | How to use data file for jinja2 template<p>I'm creating a python3 jinja2 script that receives as parameters two files:</p>
<ol>
<li>The template file called depl.yaml.j2</li>
<li>The data file called data.dev</li>
</ol>
<p>The script is supposed to output a k8s file.
ps. I removed the argparse part of the script to kee... | <p>It was easier to change the data.dev file to pure yaml instead of working out a way to parse it.</p>
<p>The file became like:</p>
<pre><code>hostAliases:
- IP: 10.11.6.4
HOSTNAME: abc.com
- IP: 10.1.1.8
HOSTNAME: cde.com
server: https://bla.intern:8443
image: imagehost:5000/asc/image_a:latest
</code></p... | How to use data file for jinja2 template | python-3.x|jinja2 | 0 | 74 | 1 | 72,202,417 | 72,202,417 | 0 | true | 2022-05-10T17:59:08.713Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to use data file for jinja2 template<p>I'm creating a python3 jinja2 script that receives as parameters two files:</p>
<ol>
<li>The template file called ... |
72,175,611 | How to save last BFS of Edmonds-Karp algorithm?<p>I have implemented the following C++ Edmonds-Karp algorithm:</p>
<pre><code>#include <iostream>
// Part of Cosmos by OpenGenus Foundation //
#include <limits.h>
#include <string.h>
#include <queue>
using namespace std;
#define V 6
/* Returns tru... | <p>Okay so I found a solution.
We need to have the <code>visited</code> array as a global array (or you can pass it through every single parameter list). This way, every time the array is refreshed, it is also saved in the whole program.</p>
<p>From there, all we have to do is write the output function for the minimal ... | How to save last BFS of Edmonds-Karp algorithm? | c++|graph|breadth-first-search|ford-fulkerson|edmonds-karp | 0 | 64 | 1 | 72,202,473 | 72,202,473 | 0 | true | 2022-05-09T16:53:29.520Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to save last BFS of Edmonds-Karp algorithm?<p>I have implemented the following C++ Edmonds-Karp algorithm:</p>
<pre><code>#include <iostream>
// Pa... |
72,170,790 | Angular FormControl with async validator stays in pending status<p>I have Form which is not working correctly when I add an Async Validator without Sync validators.</p>
<p>When I add the async validator together with the sync validators the form works</p>
<pre><code>name: new FormControl(
'',
Va... | <p>I was able to fix this after following this thread
<a href="https://github.com/angular/angular/issues/13200" rel="nofollow noreferrer">https://github.com/angular/angular/issues/13200</a></p>
<p>The solution included returning a null observable when the control is prestine or does not have valueChanges using take(1) ... | Angular FormControl with async validator stays in pending status | angular|typescript|angular-forms | 0 | 179 | 1 | 72,202,477 | 72,202,477 | 0 | true | 2022-05-09T10:51:52.893Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Angular FormControl with async validator stays in pending status<p>I have Form which is not working correctly when I add an Async Validator without Sync vali... |
72,202,275 | Javascript Subtract between two arrays of objects<p>Hi can anybody help me to implement the right/clean way of subtracting between two arrays of object. My case (backend) is that I fetch Products data from mongodb, then I also have Trolley data that is fetched from MySql, what I'm trying to do is that if product stock ... | <p>You can convert <code>trolleyProducts</code> to an object whose keys are the product IDs. That way you won't need a nested loop to find the matching product.</p>
<p>Also, <code>map()</code> should be used when the callback function returns a value and you're making an array of those values. Use <code>forEach()</code... | Javascript Subtract between two arrays of objects | javascript|node.js|arrays|object | 0 | 57 | 1 | 72,202,846 | 72,202,846 | 0 | true | 2022-05-11T13:51:26.470Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Javascript Subtract between two arrays of objects<p>Hi can anybody help me to implement the right/clean way of subtracting between two arrays of object. My c... |
72,202,055 | How to set SO_REUSEADDR in a TCP Outbound Adapter?<p>I have several TCP/IP Outbound Adapters to send Messages to connecting clients. The TCP/IP protocol of communication requires the socket flags to be set: TCP_NODELAY, SO_REUSEADDR, and SO_KEEPALIVE.</p>
<pre><code> @Override
public void start(String context, i... | <p>Implement a custom <code>TcpSocketSupport</code>...</p>
<pre class="lang-java prettyprint-override"><code>public class MySocketSupport extends DefaultTcpSocketSupport {
@Override
public void postProcessServerSocket(ServerSocket serverSocket) {
...
}
}
</code></pre>
<p>then...</p>
<pre class="la... | How to set SO_REUSEADDR in a TCP Outbound Adapter? | spring|tcp|spring-integration|spring-integration-ip | 0 | 48 | 1 | 72,202,847 | 72,202,847 | 0 | true | 2022-05-11T13:36:08.690Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to set SO_REUSEADDR in a TCP Outbound Adapter?<p>I have several TCP/IP Outbound Adapters to send Messages to connecting clients. The TCP/IP protocol of c... |
72,179,641 | using LLVM-C api from MSYS2 returns exit code 1, but using WSL works fine<p>i installed llvm+clang using MSYS2, and all the tools work fine for me, but the LLVM-C always returns exit code 1, here is my sample code:</p>
<pre class="lang-c prettyprint-override"><code>#include <llvm-c/Core.h>
#include <stdlib.h&g... | <p>nvm i fixed it, my solution is that instead of using powershell, i used the MSYS2 (MinGW-w64) shell.</p> | using LLVM-C api from MSYS2 returns exit code 1, but using WSL works fine | c++|c|llvm | 0 | 38 | 1 | 72,202,870 | 72,202,870 | 0 | true | 2022-05-10T01:01:18.713Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
using LLVM-C api from MSYS2 returns exit code 1, but using WSL works fine<p>i installed llvm+clang using MSYS2, and all the tools work fine for me, but the L... |
72,200,192 | scss mixin only runs once in my Angular project<p>I have been messing with animations and I am trying to add one to my sidebar. Basically, I would like the items in the sidebar to fade in each time the drawer expands.</p>
<p>Which it does. But only once. Then, if I want it to do it again, I have to reload. Here's the s... | <p>A way that worked for me was to add a Boolean flag to toggle visibility. For whatever reason, this allowed the scss to reset each time the sidebar was opened, instead of just the first time.</p> | scss mixin only runs once in my Angular project | angular|sass|scss-mixins | 0 | 39 | 1 | 72,202,890 | 72,202,890 | 0 | true | 2022-05-11T11:24:18.913Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
scss mixin only runs once in my Angular project<p>I have been messing with animations and I am trying to add one to my sidebar. Basically, I would like the i... |
72,198,676 | jenkins question - Adding post section to script based & difference between methods<p>I have 2 questions regarding jenkins</p>
<p><strong>1. What is the difference between the 2 methods?</strong></p>
<p>Method 1</p>
<pre><code>pipeline {
agent any
stages {
stage('Example') {
steps {
... | <blockquote>
<p>What is the difference between the 2 methods?</p>
</blockquote>
<p>As <a href="https://stackoverflow.com/users/13110835/noam-helmer">Noam Helmer</a> wrote, <code>pipeline{}</code> is <a href="https://www.jenkins.io/doc/book/pipeline/syntax/#declarative-pipeline" rel="nofollow noreferrer">declarative</a>... | jenkins question - Adding post section to script based & difference between methods | jenkins|jenkins-pipeline|jenkins-groovy | 0 | 25 | 1 | 72,202,903 | 72,202,903 | 0 | true | 2022-05-11T09:32:44.957Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
jenkins question - Adding post section to script based & difference between methods<p>I have 2 questions regarding jenkins</p>
<p><strong>1. What is the diff... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.