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,201,447
Template template argument mismatch<p>The following code</p> <pre><code>#include &lt;cstdint&gt; template&lt;typename T&gt; struct allo{}; template &lt;typename T, std::size_t a = alignof(T)&gt; struct AA{ constexpr std::size_t align() { return a; } }; template&lt;template &lt;typename&gt; typename AT&gt; str...
<p>Before C++17, template template parameters must use <code>class</code> instead of <code>typename</code>. In C++17, this restriction got lifted and the keywords are equivalent in this context.</p> <p>Your issue is actually that <code>AA</code> has two template parameters and you try to bind it to <code>AT</code> whic...
Template template argument mismatch
c++
9
147
1
72,201,505
72,201,505
10
true
2022-05-11T12:55:22.940Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Template template argument mismatch<p>The following code</p> <pre><code>#include &lt;cstdint&gt; template&lt;typename T&gt; struct allo{}; template &lt;ty...
72,180,995
Understanding Cro request/response cycle and memory use<p>I'm a bit confused about how Cro handles client requests and, specifically, why some requests seem to cause Cro's memory usage to balloon.</p> <p>A minimal example of this shows up in the <a href="https://cro.services/docs/intro/getstarted#Write_a_Cro_service" r...
<p>The Cro request processing pipeline is a chain of <code>supply</code> blocks that requests and, later, responses pass through. Decisions about the optimal number of processing threads to create are left to the Raku <code>ThreadPoolScheduler</code> implementation.</p> <p>So far as connection lifetime goes, it's up to...
Understanding Cro request/response cycle and memory use
raku|rakudo|cro
12
143
1
72,186,609
72,186,609
11
true
2022-05-10T05:09:35.407Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Understanding Cro request/response cycle and memory use<p>I'm a bit confused about how Cro handles client requests and, specifically, why some requests seem ...
72,146,352
Vitest defineConfig, 'test' does not exist in type 'UserConfigExport'<p>Trying to setup vitest on an already existing vite (vue 3, typescript) project.</p> <p>My vite.config.ts looks like this:</p> <pre><code>import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; export default defineConfig({ tes...
<p><strong>Short answer:</strong></p> <p>Because this is how TypeScript works. Vite config interface does not know anything about Vitest and TS does not allow excessive properties (properties not defined by the type/interface)</p> <hr /> <p>Because Vite itself does not know anything about Vitest and it's configuration....
Vitest defineConfig, 'test' does not exist in type 'UserConfigExport'
typescript|vite|vitest
9
2,931
2
72,149,404
72,149,404
12
true
2022-05-06T19:12:17.040Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Vitest defineConfig, 'test' does not exist in type 'UserConfigExport'<p>Trying to setup vitest on an already existing vite (vue 3, typescript) project.</p> <...
72,220,021
VSCODE Jump to the JS file definition (not the .d.ts file)<p>I'm sure thousands of other JS devs are feeling the pain I'm feeling. I love jumping to function definitions in <code>.d.ts</code> files while browsing code in VS Code.</p> <p>However, sometimes instead of going to the <code>.d.ts</code> file, I'd like to ju...
<p>Recently <a href="https://twitter.com/mattbierner/status/1517182624917340162" rel="nofollow noreferrer">announced</a>, VS Code Insiders (v1.67.2) supports a <code>Go to Source Definition</code> context menu option from right-clicking the symbol. This was <a href="https://github.com/microsoft/vscode/commit/d851ea5d49...
VSCODE Jump to the JS file definition (not the .d.ts file)
javascript|typescript|visual-studio-code
12
715
2
72,333,657
72,333,657
12
true
2022-05-12T17:41:58.327Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: VSCODE Jump to the JS file definition (not the .d.ts file)<p>I'm sure thousands of other JS devs are feeling the pain I'm feeling. I love jumping to functio...
72,051,754
apt-update in Azure Nvidia gives publickey error<p>I started a NVIDIA VM on AZURE and trying to do update using <code>sudo apt update</code> but gives error:</p> <pre><code>Hit:2 http://azure.archive.ubuntu.com/ubuntu focal InRelease Hit:3 http://azure.archive.ubuntu.com...
<p>the following worked for me</p> <pre><code>apt-key del 7fa2af80 rm /etc/apt/sources.list.d/cuda.list rm /etc/apt/sources.list.d/nvidia-ml.list wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-keyring_1.0-1_all.deb dpkg -i cuda-keyring_1.0-1_all.deb </code></pre> <p>I ran those com...
apt-update in Azure Nvidia gives publickey error
linux|azure|ubuntu
13
4,380
4
72,054,699
72,054,699
13
true
2022-04-29T01:06:35.837Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: apt-update in Azure Nvidia gives publickey error<p>I started a NVIDIA VM on AZURE and trying to do update using <code>sudo apt update</code> but gives error:...
72,166,259
Werkzeug server is shutting down in Django application<p>after updating the Werkzeug version from 2.0.3 to 2.1.0, I keep getting errors every time I run the server, and here is the error log:</p> <pre><code>Exception happened during processing of request from ('127.0.0.1', 44612) ...
<p>Literally just ran into this today. According to their (<a href="https://github.com/django-extensions/django-extensions/issues/1715" rel="noreferrer">git repo issue 1715</a>) and assuming you are running <code>runserver_plus</code>, there are three options that worked for some users. The first worked for me:</p> <ol...
Werkzeug server is shutting down in Django application
python|django|werkzeug
7
1,942
2
72,206,748
72,206,748
13
true
2022-05-09T01:48:13.353Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Werkzeug server is shutting down in Django application<p>after updating the Werkzeug version from 2.0.3 to 2.1.0, I keep getting errors every time I run the ...
72,235,984
Getting the ProductDetails price in android-billing-5.0<p>I have upgraded my Kotlin app to android-billing 5.0 from 4.0, and as such, SkuDetails is now deprecated so I am migrating to using ProductDetails using the <a href="https://developer.android.com/google/play/billing/migrate-gpblv5" rel="noreferrer">migration ins...
<p>Based on the <a href="https://developer.android.com/reference/com/android/billingclient/api/ProductDetails" rel="noreferrer">documentation</a> you can call <code>getOneTimePurchaseOfferDetails()</code> on ProductDetails to return a <a href="https://developer.android.com/reference/com/android/billingclient/api/Produc...
Getting the ProductDetails price in android-billing-5.0
android|kotlin|in-app-billing|android-billing|play-billing-library
12
1,985
2
72,240,996
72,240,996
13
true
2022-05-13T22:34:23.527Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting the ProductDetails price in android-billing-5.0<p>I have upgraded my Kotlin app to android-billing 5.0 from 4.0, and as such, SkuDetails is now depre...
72,218,645
Shared srcDirs between test and androidTest, unresolved references after upgrade to Android Studio Chipmunk (IntelliJ 2021.2.1)<p>I just upgraded from Bumblebee to Chipmunk, and I am having multiple dependency-resolution issues in my instrumented androidTests.</p> <p>These are what my source sets look like:</p> <pre><c...
<p>Looks like this feature is no longer supported in new iterations of the Android Studio IDE and IntelliJ platforms.</p> <p><strong>Edit: Sharing code this way no longer works. BUT, there is another method to make it work:</strong></p> <p>Basically, create an android library (sharedTestCode), depend on it in your app ...
Shared srcDirs between test and androidTest, unresolved references after upgrade to Android Studio Chipmunk (IntelliJ 2021.2.1)
android|android-studio|intellij-idea|source-sets|shared-resource
29
1,369
1
72,377,150
72,377,150
13
true
2022-05-12T15:50:40.900Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Shared srcDirs between test and androidTest, unresolved references after upgrade to Android Studio Chipmunk (IntelliJ 2021.2.1)<p>I just upgraded from Bumble...
72,166,085
Why does std::is_invocable_r reject functions returning non-moveable types?<p>I'm curious about the definition of <code>std::is_invocable_r</code> and how it interacts with non-moveable types. Its libc++ implementation under clang in C++20 mode seems to be wrong based on my understanding of the language rules it's supp...
<blockquote> <p>So is clang wrong about accepting this initialization, or is the implementation of <code>std::is_invocable_r_v</code> wrong?</p> </blockquote> <p>This is a bug of libc++. In the <a href="https://github.com/llvm/llvm-project/blob/58d9ab70aef3d7ad5b34c525afc430e122409054/libcxx/include/type_traits#L3514" ...
Why does std::is_invocable_r reject functions returning non-moveable types?
c++|language-lawyer|c++20|sfinae|typetraits
13
596
1
72,166,327
72,166,327
13
true
2022-05-09T01:05:59.523Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does std::is_invocable_r reject functions returning non-moveable types?<p>I'm curious about the definition of <code>std::is_invocable_r</code> and how it...
72,195,327
indexing an element from a volatile struct doesn't work in C++<p>I have this code:</p> <pre><code>typedef struct { int test; } SensorData_t; volatile SensorData_t sensorData[10]; SensorData_t getNextSensorData(int i) { SensorData_t data = sensorData[i]; return data; } int main(int argc, char** argv) { }...
<p>Your program is trying to copy a <code>SensorData_t</code> object. The compiler supplies a copy constructor with the following signature:</p> <pre><code>SensorData_t(const SensorData_t &amp;) </code></pre> <p>This copy constructor will not work with <code>volatile</code> arguments, hence the compilation error.</p> <...
indexing an element from a volatile struct doesn't work in C++
c++
18
974
2
72,195,437
72,195,437
14
true
2022-05-11T04:12:36.533Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: indexing an element from a volatile struct doesn't work in C++<p>I have this code:</p> <pre><code>typedef struct { int test; } SensorData_t; volatile Sen...
72,183,226
App not installing in emulator after upgrading to android studio chipmunk<p>So pushing the run app button in android studio compiles the app. But it does not install the compiled app into emulator. App is compiled successfully .</p> <pre><code>&gt; Task :app:packageGoogleDebug UP-TO-DATE &gt; Task :app:createGoogleDebu...
<p>Found the culprit.. looking at android studio logs.. Its the HMS toolkit.. if you guys have that installed... just disable the plugin until huawei fix it.. the run button will work properly..</p> <pre><code>2022-05-10 16:52:43,924 [ 10645] ERROR - e.plugins.cl.PluginClassLoader - JDK: 11.0.12; VM: OpenJDK 64-Bit S...
App not installing in emulator after upgrading to android studio chipmunk
android|android-studio|android-gradle-plugin
8
2,627
7
72,224,713
72,224,713
15
true
2022-05-10T08:47:05.557Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: App not installing in emulator after upgrading to android studio chipmunk<p>So pushing the run app button in android studio compiles the app. But it does not...
72,170,047
Why doesn't return default(T?) give a null when T is constrained to enum?<p>I have a parser that render text files into a datamodel. Some fields are optional, which are to be represented as null in the model.</p> <p>However, a strange behavior is giving me a headache. When I handle nullable concretely, it behaves as ex...
<p>enum constraints basically: don't work as you expect; the <code>T : Enum</code> doesn't mean it is treating it <em>as a primitive</em> - it is treating it as a boxed value (object) instead, that happens to be a sub-type of the <code>Enum</code> type (or <code>Enum</code> itself!). Emphasis: keep in mind that you cou...
Why doesn't return default(T?) give a null when T is constrained to enum?
c#|.net
13
629
1
72,170,256
72,170,256
16
true
2022-05-09T09:49:39.127Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why doesn't return default(T?) give a null when T is constrained to enum?<p>I have a parser that render text files into a datamodel. Some fields are optional...
72,225,191
How can I apply gettext translations to string literals in case statements?<p>I need to add gettext translation to all the string literals in our code, but it doesn't work with literals in case statements.</p> <p>This failed attempt gives <code>SyntaxError: Expected ':'</code>:</p> <pre><code>from gettext import gettex...
<h2>What does the error mean?</h2> <p>The grammar for the match/case statement treats the <code>_</code> as a <a href="https://peps.python.org/pep-0634/#wildcard-pattern" rel="nofollow noreferrer">wildcard pattern</a>. The only acceptable token that can follow is a colon. Since your code uses an open parenthesis, a <...
How can I apply gettext translations to string literals in case statements?
python|gettext|structural-pattern-matching
18
1,222
1
72,225,192
72,225,192
17
true
2022-05-13T06:17:41.570Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I apply gettext translations to string literals in case statements?<p>I need to add gettext translation to all the string literals in our code, but i...
72,157,296
Python Iterable vs Sequence<p>I don't understand the difference when hinting <code>Iterable</code> and <code>Sequence</code>.</p> <p>What is the main difference between those two and when to use which?</p> <p>I think <code>set</code> is an <code>Iterable</code> but not <code>Sequence</code>, are there any built-in data...
<p>The <code>Sequence</code> and <code>Iterable</code> abstract base classes (can also be used as type annotations) follow Python's definition of <a href="https://docs.python.org/3/glossary.html#term-sequence" rel="noreferrer">sequence</a> and <a href="https://docs.python.org/3/glossary.html#term-iterable" rel="norefer...
Python Iterable vs Sequence
python-3.x|type-hinting
20
2,879
1
72,158,086
72,158,086
19
true
2022-05-08T00:36:57.717Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python Iterable vs Sequence<p>I don't understand the difference when hinting <code>Iterable</code> and <code>Sequence</code>.</p> <p>What is the main differe...
72,197,242
What is wrong with my application of SFINAE when trying to implement a type trait?<p>I needed a type trait that decays enums to their underlying type, and works the same as <code>decay_t</code> for all other types. I've written the following code, and apparently this is not how SFINAE works. But it is how I thought it ...
<p>SFINAE applied to class templates is primarily about choosing between partial specialisations of the template. The problem in your snippet is that there are no partial specialisations in sight. You define two primary class templates, with the same template name. That's a redefinition error.</p> <p>To make it work, w...
What is wrong with my application of SFINAE when trying to implement a type trait?
c++|c++17|sfinae|typetraits
16
1,200
3
72,197,410
72,197,410
19
true
2022-05-11T07:45:19.313Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is wrong with my application of SFINAE when trying to implement a type trait?<p>I needed a type trait that decays enums to their underlying type, and wo...
72,233,178
library_private_types_in_public_api and StatefulWidget<p>After upgrade the linter to the new version (<code>flutter_lints: 2.0.1</code>) in my pubspec the linter enables this rule: <a href="https://dart.dev/tools/linter-rules#library_private_types_in_public_api" rel="noreferrer">library_private_types_in_public_api</a> ...
<p>I encountered the same issue, it seems that now when you generate a <code>StatefulWidget</code> instead of returning say <code>_ExampleState</code> in the <code>createState</code> method it now returns <code>State&lt;Example&gt;</code> which avoids returning a private type. I ended up updating all of my widgets to t...
library_private_types_in_public_api and StatefulWidget
flutter|dart|lint
14
887
2
72,234,157
72,234,157
21
true
2022-05-13T17:08:24.640Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: library_private_types_in_public_api and StatefulWidget<p>After upgrade the linter to the new version (<code>flutter_lints: 2.0.1</code>) in my pubspec the li...
72,201,637
Package is not specified in the manifest file<p>While trying to create and Extract string from the layout file it is showing the alert dialog that Package is not specified in the manifest file. It is happening from while I had updated my studio to the newest version(chimpunk 2021.2.1) and the newest gradle(7.2). any he...
<p>I had the same problem. Open AndroidManifest.xml and add your package name back.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;manifest xmlns:android="http://schem...
Package is not specified in the manifest file
android|android-layout
13
1,877
1
72,208,375
72,208,375
22
true
2022-05-11T13:08:46.767Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Package is not specified in the manifest file<p>While trying to create and Extract string from the layout file it is showing the alert dialog that Package is...
72,158,122
Expo Firebase Authentication "While trying to resolve module `idb` from file"<p>This is my first app. I'm trying to use Firebase for Email/Password authentication. I followed the basic tutorial <a href="https://firebase.google.com/docs/auth/web/password-auth#web-version-9" rel="noreferrer">https://firebase.google.com/d...
<p>To resolve this issue, create a <strong>metro.config.js</strong> file in the project root. In the file add the file extension <code>cjs</code>. <a href="https://docs.expo.dev/guides/customizing-metro/#adding-more-file-extensions-to--assetexts" rel="noreferrer">details</a></p> <pre class="lang-js prettyprint-override...
Expo Firebase Authentication "While trying to resolve module `idb` from file"
firebase|firebase-authentication|expo
15
4,521
2
72,201,122
72,201,122
22
true
2022-05-08T04:42:25.213Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Expo Firebase Authentication "While trying to resolve module `idb` from file"<p>This is my first app. I'm trying to use Firebase for Email/Password authentic...
72,233,476
Flutter Error: Member not found: 'UnicodeChar'<p>After upgrading to flutter 3.0.0. i am getting this error:</p> <pre><code>Error: Member not found: 'UnicodeChar'. int get UnicodeChar =&gt; Char.UnicodeChar; Error: Setter not found: 'UnicodeChar'. set UnicodeChar(int value) =&gt; Char.UnicodeChar = value; Error: M...
<p>In my case, it was one of the transitive dependencies that was outdated.</p> <p>Upgrading dependencies resolved the issue for me.</p> <h4>From the Terminal (inside the project's folder):</h4> <p><code>flutter pub upgrade</code></p> <h4>From Visual Studio Code</h4> <ol> <li>Open <strong>Command Palette...</strong> (<...
Flutter Error: Member not found: 'UnicodeChar'
flutter|dart
34
11,861
3
72,239,442
72,239,442
62
true
2022-05-13T17:33:44.870Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flutter Error: Member not found: 'UnicodeChar'<p>After upgrading to flutter 3.0.0. i am getting this error:</p> <pre><code>Error: Member not found: 'UnicodeC...
72,179,070
React-native bundling failure. ERROR MESSAGE: "While trying to resolve module 'idb'..... Indeed none of these files exist":<p><strong>ERROR MESSAGE IN QUESTION:</strong></p> <p>While trying to resolve module <code>idb</code> from file <code>C:\Users\OG\Desktop\programming\react_native\mealstogo\MealsToGo2\node_modules\...
<p>If you are using expo, to resolve this issue, create a <strong>metro.config.js</strong> file in the project root. In the file add the file extension <code>cjs</code>. <a href="https://docs.expo.dev/guides/customizing-metro/#adding-more-file-extensions-to--assetexts" rel="noreferrer">details</a></p> <pre class="lang-...
React-native bundling failure. ERROR MESSAGE: "While trying to resolve module 'idb'..... Indeed none of these files exist":
reactjs|firebase|react-native|expo|indexeddb
40
20,356
8
72,201,722
72,201,722
75
true
2022-05-09T23:07:03.937Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React-native bundling failure. ERROR MESSAGE: "While trying to resolve module 'idb'..... Indeed none of these files exist":<p><strong>ERROR MESSAGE IN QUESTI...
72,177,535
How can I include a C header that uses a C++ keyword as an identifier in C++?<p>I've been using C++ and compiling with clang++. I would like to include the <a href="https://code.woboq.org/qt5/include/xcb/xkb.h.html" rel="noreferrer">&lt;xcb/xkb.h&gt;</a> header for an X11 program I am writing.</p> <p>Unfortunately this...
<p>Use a macro to rename the fields:</p> <pre><code>#ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored &quot;-Wkeyword-macro&quot; #endif #define explicit explicit_ #ifdef __clang__ #pragma clang diagnostic pop #endif #include &lt;xcb/xkb.h&gt; #undef explicit </code></pre> <p>Using a key...
How can I include a C header that uses a C++ keyword as an identifier in C++?
c++|c|clang
73
5,938
4
72,177,598
72,177,598
80
true
2022-05-09T19:53:55.400Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I include a C header that uses a C++ keyword as an identifier in C++?<p>I've been using C++ and compiling with clang++. I would like to include the <...
72,199,493
How to make a hook from my code React.js/Next.js?<p>I try to make a hook from my code, but I got the issue. My code from hook file:</p> <pre><code> import { useRouter } from &quot;next/router&quot;; const useCurrentPath = () =&gt; { const { asPath, locale, defaultLocale } = useRouter(); if (locale === ...
<p>The issue is that you are returning a string/object from your hook and then trying to invoke it as a funciton.</p> <p>Minor changes, i would suggest :</p> <ol> <li>You should be returning a string from your hook. Return asPath instead of an object.</li> </ol> <pre><code> import { useRouter } from &quot;next/route...
How to make a hook from my code React.js/Next.js?
javascript|reactjs|next.js
-3
60
3
72,199,931
72,199,931
-3
true
2022-05-11T10:32:47.240Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make a hook from my code React.js/Next.js?<p>I try to make a hook from my code, but I got the issue. My code from hook file:</p> <pre><code> import...
72,229,589
Flutter: XCode error "Unable to boot the Simulator"<p>Iam running the latest OSX/Flutter/XCode Versions using flutter, android studio and firebase and 1 hour ago everthing works perfectly.</p> <p>Then i rebooted my macbook and when i try to launch an ios simulator i get this error &quot;Unable to boot the simulator&quo...
<blockquote> <p>After checking some other comments, it seems uninstalling XCode is not necessary.</p> </blockquote> <p>The issue is not directly related to Flutter but it is related to the <code>XCode 13.3.1</code> with the Simulator, specially for iPhone and iPad (tvOS and watchOS should have no issue so far).</p> <p>...
Flutter: XCode error "Unable to boot the Simulator"
xcode|flutter
59
18,925
7
72,231,704
72,231,704
-3
true
2022-05-13T12:26:09.093Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flutter: XCode error "Unable to boot the Simulator"<p>Iam running the latest OSX/Flutter/XCode Versions using flutter, android studio and firebase and 1 hour...
72,207,479
how to create a long format table from multiple columns<p>I would like to know, how can I do long format table.</p> <p><a href="https://i.stack.imgur.com/68eUF.png" rel="nofollow noreferrer">this is what I have:</a></p> <p><a href="https://i.stack.imgur.com/CSfVl.png" rel="nofollow noreferrer">and this is what I want</...
<p>Try:</p> <p>library(tidyverse)</p> <p>your_dataframe%&gt;% pivot_longer(-Date, names_to = &quot;plylum&quot;, values_to = &quot;percent&quot;)</p>
how to create a long format table from multiple columns
r|ggplot2|stacked-area-chart|proportions|long-format-data
-3
41
1
72,207,588
72,207,588
-2
true
2022-05-11T20:53:47.383Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to create a long format table from multiple columns<p>I would like to know, how can I do long format table.</p> <p><a href="https://i.stack.imgur.com/68e...
72,221,709
Find Textboxes != "" Transfer them to a label with a "," between each<p>I am looking for a solution I have several TexBoxes I would like to get the information when there is some and insert them in a label with a &quot;,&quot; between each. I had thought of a solution with Foreeach :</p> <pre><code> List&lt;...
<p>Use Join to join the strings and some linq</p> <pre><code>var ls = new List&lt;TextBox&gt;() { new TextBox() { Text = &quot;test1&quot; }, new TextBox() { Text = &quot;test2&quot; }, new TextBox() { Text = &quot;test3&quot; } }; var concat = string.Join(&quot;,&quot;, ls.Select(x=&gt;x.Text)); Conso...
Find Textboxes != "" Transfer them to a label with a "," between each
c#|wpf
-4
44
2
72,221,865
72,221,865
-1
true
2022-05-12T20:25:51.893Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Find Textboxes != "" Transfer them to a label with a "," between each<p>I am looking for a solution I have several TexBoxes I would like to get the informati...
72,162,366
Change image range using linear interpolation<p>so I want to change an image from lets say width=500 to width=100, using linear interpolation. How can I do that?</p>
<p>I'll try to help even though the question requires improvements:</p> <p>You can use <code>cv::resize</code> to resize the image. The <code>interpolation</code> parameter can be set to <code>cv::INTER_LINEAR</code> for linear interpolation.</p> <p>Code example:</p> <pre><code>cv::Mat bigImg(cv::Size(500, 500), CV_8UC...
Change image range using linear interpolation
c++|opencv
-3
115
1
72,162,519
72,162,519
-1
true
2022-05-08T15:11:37.843Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Change image range using linear interpolation<p>so I want to change an image from lets say width=500 to width=100, using linear interpolation. How can I do t...
72,191,532
I'm having trouble separating numbers with .'s in between<p>So, I've been trying to make a program that can change a regular ip (182.66.24.45 as example) to a binary number. I've got the converting part done, its just me trying to separate the .'s is not doing too well for me. When I try converting the str into an int...
<p>As Scott Hunter mentioned in comments, you might need to do following inside <code>main</code>:</p> <pre><code>public static void main(String[] args){ Scanner ip = new Scanner(System.in); System.out.println(&quot;Enter in the ip.&quot;); String ipstr = ip.nextLine(); for (String stri...
I'm having trouble separating numbers with .'s in between
java
-3
46
2
72,191,621
72,191,621
-1
true
2022-05-10T18:41:57.790Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I'm having trouble separating numbers with .'s in between<p>So, I've been trying to make a program that can change a regular ip (182.66.24.45 as example) to ...
71,909,083
How to solve the ongoing problem with Visual Studio Code and warnings, MDN Reference and more?<p>How do I disable typescript warnings and TS all together in Visual Studio Code for regular javascript files when working with sveltekit? When I create a project I say no to use of TS.</p> <p>Actually, how do I disable the a...
<p>The latest version of the SvelteKit template (the one you get when initializing a new project) has fixed many of the issue that come up for those of us using regular JavaScript. (there is now also an option to have <code>type-checked JavaScript</code> which gives you hints about types without the stranglehold of Typ...
How to solve the ongoing problem with Visual Studio Code and warnings, MDN Reference and more?
javascript|typescript|visual-studio-code|svelte
-4
278
2
71,917,019
71,917,019
1
true
2022-04-18T07:55:39.043Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to solve the ongoing problem with Visual Studio Code and warnings, MDN Reference and more?<p>How do I disable typescript warnings and TS all together in ...
71,949,224
Merge duplicates in array of objects while adding up specific field<p>I have an array of objects as follow :</p> <pre><code>const array = [ {poleId: 1, jobCount: 1}, {poleId: 1, jobCount: 2}, {poleId: 5, jobCount: 8}, {poleId: 7, jobCount: 1}, {poleId: 2, jobCount: 10}, {poleId: 2, jobCount: 3},...
<p>Try some thing like below. Build an object with keys as poleId and value as jobCount (combine jobCount when key is same)</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>cons...
Merge duplicates in array of objects while adding up specific field
javascript
-3
22
1
71,949,292
71,949,292
1
true
2022-04-21T05:11:31.483Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Merge duplicates in array of objects while adding up specific field<p>I have an array of objects as follow :</p> <pre><code>const array = [ {poleId: 1, j...
72,029,453
Making a table in HTML<p>What do you think should I do to make my code's output like in the photo? Thank you for answering.</p> <p>(I am typing any words in here because stackoverflow doesnt let me post this. This is the most detailed thing I can think of. I am new to the programming world and I have no one to assist m...
<p>make <code>table inside td</code></p> <pre><code>&lt;td rowspan=&quot;0&quot; style=&quot;padding: 0; border: none;&quot;&gt; &lt;table border=&quot;1&quot; cellpadding=&quot;10% &quot; width=&quot;20%&quot; cellspacing=&quot;0&quot;&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td&gt;&lt;/td&gt; &l...
Making a table in HTML
html
-3
27
1
72,029,609
72,029,609
1
true
2022-04-27T13:15:43.807Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Making a table in HTML<p>What do you think should I do to make my code's output like in the photo? Thank you for answering.</p> <p>(I am typing any words in ...
71,293,685
npm workspaces "WARN: some-package-name in filter set, but no workspace folder present"<p>I have a repo with many npm packages inside, using <a href="https://docs.npmjs.com/cli/v7/using-npm/workspaces" rel="noreferrer">npm workspaces</a></p> <p>The top-level <code>package.json</code> contains the line:</p> <pre><code> ...
<p>I ran into the same problem, using the name configured in the workspace's package instead of the folder name fixed the issue for me, even with an <code>@</code>.</p> <p><code>npm install --workspace=@mycompany/some-package-name</code></p>
npm workspaces "WARN: some-package-name in filter set, but no workspace folder present"
node.js|npm
8
1,545
2
71,432,719
71,432,719
2
true
2022-02-28T10:35:44.027Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: npm workspaces "WARN: some-package-name in filter set, but no workspace folder present"<p>I have a repo with many npm packages inside, using <a href="https:/...
71,956,940
Error npm is known not to run on Node.js v10.24.1 and how to fix it, don't update to the latest version?<p>I run : <code>npm run dev</code></p> <p>Error : <strong>npm is known not to run on Node.js v10.24.1</strong></p> <p>I have researched and know the command: <code>npm install -g npm@latest</code> and some other com...
<p>Thanks @Oduola Olumide Sunday for the response. I have followed your way but still not solved the problem.</p> <p>And I fix it by removing the latest nodejs version and using the normal <strong>node v10.24.1</strong></p> <p><a href="https://stackoverflow.com/a/47251263/16562529">enter link description here</a> -&gt;...
Error npm is known not to run on Node.js v10.24.1 and how to fix it, don't update to the latest version?
node.js|npm|npm-install
7
26,125
8
71,963,611
71,963,611
2
true
2022-04-21T15:20:14.947Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error npm is known not to run on Node.js v10.24.1 and how to fix it, don't update to the latest version?<p>I run : <code>npm run dev</code></p> <p>Error : <s...
71,977,106
seekp not seeking to proper location?<p>I have the following code:</p> <pre><code> file.open(fileName, ios::in | ios::out | ios::binary); // many lines later file.seekp(fooAddr, ios::beg); printf(&quot;foo_addr: %d\n&quot;, foo_addr); file.write((char*)fooStruct, sizeof(FooStruct)); </code></pre> <p>I know th...
<p>Your hex editor is displaying file offsets in hexadecimal format, not in decimal.</p> <p>Decimal 128 is hex 0x80.</p>
seekp not seeking to proper location?
c++|fstream
-3
26
1
71,977,125
71,977,125
4
true
2022-04-23T05:29:23.403Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: seekp not seeking to proper location?<p>I have the following code:</p> <pre><code> file.open(fileName, ios::in | ios::out | ios::binary); // many lines l...
71,973,152
go mod tidy error message: "but go 1.16 would select"<p>When I run <code>go mod tidy</code> a few packages show an error</p> <pre><code>&gt; go mod tidy github.com/myrepo/myproj imports go.k6.io/k6 imports go.k6.io/k6/cmd imports github.com/fatih/color loaded from github.com/fatih/color@v1.12.0, but go...
<p>This error is related to <a href="https://go.dev/ref/mod#graph-pruning" rel="noreferrer">module graph pruning</a> introduced in Go 1.17.</p> <p>With Go 1.16, the module graph for Minimal Version Selection used to include the full module graph, whereas with 1.17 the graph includes only up to transitive dependencies (...
go mod tidy error message: "but go 1.16 would select"
go|go-modules
7
3,605
2
71,974,997
71,974,997
11
true
2022-04-22T18:26:15.567Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: go mod tidy error message: "but go 1.16 would select"<p>When I run <code>go mod tidy</code> a few packages show an error</p> <pre><code>&gt; go mod tidy git...
71,984,449
How to add an extra middle step into a list comprehension?<p>Let's say I have a <code>list[str]</code> object containing timestamps in <code>&quot;HH:mm&quot;</code> format, e.g.</p> <pre><code>timestamps = [&quot;22:58&quot;, &quot;03:11&quot;, &quot;12:21&quot;] </code></pre> <p>I want to convert it to a <code>list[i...
<p>You could use an inner generator expression to do the splitting:</p> <pre><code>[int(hh)*60 + int(mm) for hh, mm in (ts.split(':') for ts in timestamps)] </code></pre> <hr /> <p>Although personally, I'd rather use a helper function instead:</p> <pre><code>def timestamp_to_minutes(timestamp: str) -&gt; int: hh, m...
How to add an extra middle step into a list comprehension?
python|list-comprehension
26
1,541
6
71,984,511
71,984,511
33
true
2022-04-23T23:51:30.377Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add an extra middle step into a list comprehension?<p>Let's say I have a <code>list[str]</code> object containing timestamps in <code>&quot;HH:mm&quot...
72,031,112
Advanced css form selectors<p>Hello guys I have this CSS selector and I can't figure out how to read it. Can someone explain? Thanks</p> <pre><code>.form__input:not(:placeholder-shown).form__input:not(:focus)+.form__label { </code></pre>
<p>The ideal is that in nested css classes you put them one below the other for easy reading, since it can contain many elements and about your question</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css p...
Advanced css form selectors
css|css-selectors
-3
32
1
72,031,405
72,031,405
-1
true
2022-04-27T15:08:57.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Advanced css form selectors<p>Hello guys I have this CSS selector and I can't figure out how to read it. Can someone explain? Thanks</p> <pre><code>.form__in...
43,987,917
Hide scrollbar in FlatList (React Native) in Android<p>I am trying to use FlatList (React-native) in my app. I am using it horizontally and can see the scrollbar. There is an option in ScrollView to hide the scrollbar but not in FlatList. Has anyone been able to hide it some other way. I tried using the solution of par...
<p>disable vertical and horizontal scroll indicator</p> <pre><code>&lt;ScrollView showsVerticalScrollIndicator={false} showsHorizontalScrollIndicator={false} /&gt; </code></pre>
Hide scrollbar in FlatList (React Native) in Android
react-native|react-native-flatlist
119
137,519
6
61,768,213
61,768,213
139
true
2017-05-15T20:06:09.393Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Hide scrollbar in FlatList (React Native) in Android<p>I am trying to use FlatList (React-native) in my app. I am using it horizontally and can see the scrol...
44,306,153
How do I refer to another typescript type in comments/JSDoc?<p>I'm familiar with Javadoc. In Javadoc, <a href="https://stackoverflow.com/questions/5915992/how-to-reference-a-method-in-javadoc">you can place a link that refers to the Javadoc placed on another type</a> like so:</p> <pre><code>/** * some java thingy. se...
<p>With VSCode 1.52 (Nov. 2020), you might also consider another tag:</p> <blockquote> <h2><a href="https://github.com/microsoft/vscode-docs/blob/7354aa9d3dabe4f458ddf5c6c09608d1d165ba05/release-notes/v1_52.md#typescript-41" rel="noreferrer">Initial support for JSDoc <code>@see</code> tags</a></h2> <p>JSDoc <code>@see<...
How do I refer to another typescript type in comments/JSDoc?
typescript|visual-studio-code|jsdoc
34
18,500
3
65,206,472
65,206,472
15
true
2017-06-01T11:21:52.757Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I refer to another typescript type in comments/JSDoc?<p>I'm familiar with Javadoc. In Javadoc, <a href="https://stackoverflow.com/questions/5915992/ho...
53,500,017
How to customise a Siri shortcut in the shortcuts app<h2>How do you customise a Siri shortcut in the shortcuts app?</h2> <p><em>This question is related to the new iOS 12 feature: Siri Shortcuts. Users can use Siri shortcuts to trigger app specific features (created by the developer) either through a custom defined vo...
<p>This feature was exclusive for some companies on iOS 12. In iOS 13 it's possible for anyone to customise your Siri Intents. More information can be found <a href="https://developer.apple.com/documentation/sirikit/adding_user_interactivity_with_siri_shortcuts_and_the_shortcuts_app" rel="nofollow noreferrer">here</a>...
How to customise a Siri shortcut in the shortcuts app
swift|xcode|siri|sirikit|sirishortcuts
9
822
1
56,628,917
56,628,917
1
true
2018-11-27T12:44:22.920Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to customise a Siri shortcut in the shortcuts app<h2>How do you customise a Siri shortcut in the shortcuts app?</h2> <p><em>This question is related to ...
53,638,667
Unrecognized WebSocket connection option(s) `agent`, `perMessageDeflate`, `pfx`, `key`, `passphrase`... Did you mean to put these under `headers`?<p>Have you ever met this message in a React Native application using a WebSocket ( SocketIOClient from 'socket.io-client') ?...</p> <pre><code>Unrecognized WebSocket connec...
<p>The one way to remove the error:</p> <pre><code>let socket = io.connect(SOCKET_URL, { timeout: 10000, jsonp: false, transports: [‘websocket’], autoConnect: false, agent: ‘-’, path: ‘/’, // Whatever your path is pfx: ‘-’, key: token, // Using token-based auth. passphrase: cookie, // Using cookie au...
Unrecognized WebSocket connection option(s) `agent`, `perMessageDeflate`, `pfx`, `key`, `passphrase`... Did you mean to put these under `headers`?
react-native|websocket
19
12,594
2
56,652,289
56,652,289
3
true
2018-12-05T18:34:02.003Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unrecognized WebSocket connection option(s) `agent`, `perMessageDeflate`, `pfx`, `key`, `passphrase`... Did you mean to put these under `headers`?<p>Have you...
53,490,661
How to return part of a list of Widgets in Flutter<p>I have a page comprised of multiple sections, each consisting of a header and list of text. I would like the whole collection to scroll uniformly, as one series, and am wondering how best to break apart this logic. Imagine the following tree of widgets:</p> <pre><co...
<p>As Dart 2.2.2 or later, you can use the spread operator:</p> <pre><code>ListView( children: &lt;Widget&gt;[ Text('Section 1 Header'), ..._buildSection1ListItems(), Text('Section 2 Header'), ] ) </code></pre>
How to return part of a list of Widgets in Flutter
dart|flutter|flutter-layout
8
23,060
3
56,859,995
56,859,995
14
true
2018-11-26T23:33:09.380Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to return part of a list of Widgets in Flutter<p>I have a page comprised of multiple sections, each consisting of a header and list of text. I would like...
53,726,587
Is there a way to flatten or merge single-folder folders in vs code explorer?<p>I don't know if there's a name for this kind of behavior.<br> I've seen it in IntelliJ, where single-folder folders are unified or flattened in the project tree pane, where instead of:</p> <pre><code>. ├── pom.xml ├── src │   ├── main │   ...
<p>It looks like it is in the iteration plan for June, 2019. </p> <p>See <a href="https://github.com/microsoft/vscode/issues/75103" rel="noreferrer">Iteration plan for June, 2019: release in July, 2019</a> and <a href="https://github.com/microsoft/vscode/issues/41627" rel="noreferrer">issue: merging single child dire...
Is there a way to flatten or merge single-folder folders in vs code explorer?
visual-studio-code|vscode-settings
16
8,212
1
56,655,326
56,655,326
37
true
2018-12-11T14:46:39.983Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there a way to flatten or merge single-folder folders in vs code explorer?<p>I don't know if there's a name for this kind of behavior.<br> I've seen it in...
53,510,998
sum up the currency with an equal 1 ID carrying other data<p>How do I sum up the currency(net due) with an equal 1 ID(employment_userid) carrying other data on the array below.</p> <p>How do I sum up the currency(net due) with an equal 1 ID(employment_userid) carrying other data on the array below.</p> <pre><code>[0]...
<pre><code>$newArr = []; foreach($bigArray as $key =&gt; $val) { if(isset($newArr[$val['employment_userid']])) { $newArr[$val['employment_userid']]['net_due'] += $val['net_due']; } else { $newArr[$val['employment_userid']]['employment_userid'] = $val['employment_userid']; $newArr[$...
sum up the currency with an equal 1 ID carrying other data
php|arrays|sum
-3
27
1
53,511,208
53,511,208
0
true
2018-11-28T02:01:29.693Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: sum up the currency with an equal 1 ID carrying other data<p>How do I sum up the currency(net due) with an equal 1 ID(employment_userid) carrying other data ...
53,515,256
Remove specific values from numpy array under certain conditions<p>I have a numpy array like this :</p> <pre><code>answer = [1, 0, 1, 0, 2, 1, 0...,1, 1, 0,] # of size m </code></pre> <p>each entry of answer is a digit between 0 and 2.</p> <p>I have another numpy array like this :</p> <pre><code>remains_doors = [ [...
<p>If you are not allowed to use any <code>for</code> or <code>while</code> loop, maybe a recursion can fit?</p> <pre><code>answer = [1, 0, 1, 2, 1 ,0] remains_doors = [[0,1], [1,2], [0,1], [2,0], [1,0], [0,1]] new_array = [0, 2, 0, 0, 0, 1] import random def do_the_job(answer, doors, idx = 0, new_array = [])...
Remove specific values from numpy array under certain conditions
python|arrays|numpy
-5
43
2
53,516,327
53,516,327
0
true
2018-11-28T08:39:10.640Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Remove specific values from numpy array under certain conditions<p>I have a numpy array like this :</p> <pre><code>answer = [1, 0, 1, 0, 2, 1, 0...,1, 1, 0,...
53,539,224
SAP: Unable to cast COM object of type 'System.__ComObject' to interface type 'sapfewse.GuiTextField'<p>I am trying to interface with a SAP gui window using c#. Using this solution here: <a href="https://www.codeproject.com/Questions/829500/How-do-I-connect-Csharp-to-SAP-GUI" rel="nofollow noreferrer">solution</a>, I h...
<p>Found the answer, leaving it here in case it can help someone else.</p> <p>Looking at </p> <pre><code>GuiComponent targetField = (GuiComponent)session.FindById("wnd[0]/tbar[0]/okcd"); </code></pre> <p>I found that targetField has a Type property:</p> <pre><code>var tmp = targetField.Type; </code></pre> <p>which...
SAP: Unable to cast COM object of type 'System.__ComObject' to interface type 'sapfewse.GuiTextField'
c#
-3
1,094
1
53,593,181
53,593,181
0
true
2018-11-29T12:35:15.760Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SAP: Unable to cast COM object of type 'System.__ComObject' to interface type 'sapfewse.GuiTextField'<p>I am trying to interface with a SAP gui window using ...
53,623,216
XQuery grouping<p>What XQuery will result in the following output ? Given the following XML </p> <p>XML - </p> <pre><code>&lt;build id="b0"&gt; &lt;dept&gt;IE&lt;/dept&gt; &lt;dept&gt;EE&lt;/dept&gt; &lt;name&gt;alpha&lt;/name&gt; &lt;type&gt;lib&lt;/type&gt; &lt;year&gt;1000&lt;/year&gt; &lt;/buil...
<p>Given the following (corrected) <code>input.xml</code></p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;root&gt; &lt;build id="b0"&gt; &lt;dept&gt;IE&lt;/dept&gt; &lt;dept&gt;EE&lt;/dept&gt; &lt;name&gt;alpha&lt;/name&gt; &lt;type&gt;lib&lt;/type&gt; &lt;year&gt;1000&lt;/ye...
XQuery grouping
xml|xquery
-3
37
1
53,624,106
53,624,106
0
true
2018-12-05T00:01:25.203Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: XQuery grouping<p>What XQuery will result in the following output ? Given the following XML </p> <p>XML - </p> <pre><code>&lt;build id="b0"&gt; &lt;dep...
53,658,347
How to move between divs with the scroll in wordpress?<p>I need to be able to display content using a scroll effect like this one on this page</p> <p><a href="http://www.quoplus.com/" rel="nofollow noreferrer">http://www.quoplus.com/</a></p> <p>Check it out!</p> <p>Any idea how could I do this in a web site based in...
<p>I dont think you can do this with elementor or some other wordpress plugin. You need some knowledge in javascript, here is a tutorial on how to do this:</p> <p><a href="https://css-tricks.com/pure-css-horizontal-scrolling/" rel="nofollow noreferrer">https://css-tricks.com/pure-css-horizontal-scrolling/</a></p> <p>...
How to move between divs with the scroll in wordpress?
javascript|jquery|wordpress|elementor
-3
38
1
53,658,524
53,658,524
0
true
2018-12-06T19:27:43.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to move between divs with the scroll in wordpress?<p>I need to be able to display content using a scroll effect like this one on this page</p> <p><a hre...
53,679,360
A method is called on each item selected in a listbox. I need to call the method with each item progromatically,<p>A method is called on each item selected in a listbox. I need to call the method with each item in the listbox progromatically without the need to select each item. Here is the method:</p> <pre><code>priv...
<p>Since it isn't part of your question, I believe you use listBox2.SelectedItem within the CreateFoldersMoveFiles method to get selected item and then process it. Instead, you need to allow CreateFoldersMoveFiles to accept an arguement and within your BtnMove_Click, loop through the listbox items and invoke the method...
A method is called on each item selected in a listbox. I need to call the method with each item progromatically,
c#|methods|foreach|listbox
-3
25
1
53,679,496
53,679,496
0
true
2018-12-08T03:58:01.713Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: A method is called on each item selected in a listbox. I need to call the method with each item progromatically,<p>A method is called on each item selected i...
53,605,558
After i hit enter for the blank page, no process takes place after this. Why is this happening?<p><a href="https://i.stack.imgur.com/AQjlU.jpg" rel="nofollow noreferrer"> I have attached the screen shot of the command prompt. Here it also gives the info for my current git version, ionic version, node version.</a></p>
<p>Looks like the latest version of node is creating the problem, some of the previous stable version like v8.11.4 works just fine</p>
After i hit enter for the blank page, no process takes place after this. Why is this happening?
node.js|ionic-framework
-3
14
1
53,690,061
53,690,061
0
true
2018-12-04T04:09:22.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: After i hit enter for the blank page, no process takes place after this. Why is this happening?<p><a href="https://i.stack.imgur.com/AQjlU.jpg" rel="nofollow...
53,683,340
How to set internal environment with public cloud service?<p>For Microsoft Azure cloud, with AKS service, we want to deploy an internal application that can been accessed only by our team.</p> <p>This scenario:</p> <ul> <li>Use public domain myawesomesite.com for production.</li> <li>Use subdomain internal.myawesomes...
<p>Finally, this is the right solution:</p> <p><a href="https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx/examples/whitelist" rel="nofollow noreferrer">https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx/examples/whitelist</a></p> <p>If use <a href="https://github.com...
How to set internal environment with public cloud service?
azure|networking|dns|kubernetes|azure-aks
-3
52
3
53,761,558
53,761,558
0
true
2018-12-08T14:09:38.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to set internal environment with public cloud service?<p>For Microsoft Azure cloud, with AKS service, we want to deploy an internal application that can ...
53,798,445
Wordpress download counter in post card<p><a href="https://i.stack.imgur.com/OD4RL.jpg" rel="nofollow noreferrer">Wordpress Download Counter</a></p> <p>I want to know about which wordpress plugin is this website to show download count as post card? Have a look at the blue post.</p>
<p>That site uses the "Gridly" Wordpress theme and Bootstrap. I could not nail down how they're <em>getting</em> the download counts but the icons are Bootstrap glyphicons. One Wordpress plugin that would let you track downloads (which you'd need to do to get the counts!) is here: <a href="https://wordpress.org/plugins...
Wordpress download counter in post card
wordpress
-5
63
1
53,799,019
53,799,019
0
true
2018-12-16T00:31:59.483Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Wordpress download counter in post card<p><a href="https://i.stack.imgur.com/OD4RL.jpg" rel="nofollow noreferrer">Wordpress Download Counter</a></p> <p>I wa...
53,531,330
What would be the appropriate syntax for clicking the "send to" drop down menu? (See image for reference)<p>I would like to know what the best syntax would be to click the"send to" button on the web page. </p> <p><a href="https://i.stack.imgur.com/vDVjH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.co...
<p>Try an <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors" rel="nofollow noreferrer">attribute = value</a> CSS selector to target the element by an attribute and its value.</p> <pre><code>IE.document.querySelector("[sourcecontent='send_to_menu']").click </code></pre> <p>Make sure you hav...
What would be the appropriate syntax for clicking the "send to" drop down menu? (See image for reference)
html|excel|vba|web-scraping
-6
49
1
53,531,545
53,531,545
1
true
2018-11-29T03:16:04.920Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What would be the appropriate syntax for clicking the "send to" drop down menu? (See image for reference)<p>I would like to know what the best syntax would b...
53,622,537
Compute bill for a gem store<p>Below is my code to compute the bill for the gem store. <strong>I'm able to get correct prices for the right elements from the list but I'm not able to figure out how to multiply them with the required quantity (reqd_qty list) and calculate the total price.</strong></p> <p>Following is t...
<p>I suggest you read up on dictionaries, looping over lists to match a value in another list is very inefficient. <a href="https://docs.python.org/3/tutorial/datastructures.html#dictionaries" rel="nofollow noreferrer">https://docs.python.org/3/tutorial/datastructures.html#dictionaries</a></p> <pre><code>gems_list = [...
Compute bill for a gem store
python|logic
-3
8,500
5
53,623,024
53,623,024
1
true
2018-12-04T22:41:06.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Compute bill for a gem store<p>Below is my code to compute the bill for the gem store. <strong>I'm able to get correct prices for the right elements from the...
53,619,189
Read file from drive in google colab<p>I Have read the <a href="https://colab.research.google.com/notebooks/io.ipynb" rel="noreferrer">notebook</a> about how to open drive. I already did as instructed using:</p> <pre><code>from google.colab import drive drive.mount('/content/drive') </code></pre> <p>After this, I can...
<p>I (partially) found out what was going on based on Bob Smith and Ami F's answers.<br> I believe google drive blocks read access from files converted to drive formats (gsheet, gdoc, etc.). And so, whenever I tried to use <code>!cat</code> or <code>open</code>, I got an "operation unsupported" error. When I tried Bob'...
Read file from drive in google colab
google-drive-api|google-colaboratory
10
28,231
7
53,623,489
53,623,489
1
true
2018-12-04T18:19:27.240Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Read file from drive in google colab<p>I Have read the <a href="https://colab.research.google.com/notebooks/io.ipynb" rel="noreferrer">notebook</a> about how...
53,641,013
How to make users able to send and receive messages in my chat website?<p>I have finished making a chat website using html, CSS, JavaScript and jQuery then I published it. Here its url <a href="http://redapple-chat.com/RedAppleChat.html" rel="nofollow noreferrer">http://redapple-chat.com/RedAppleChat.html</a></p> <p...
<p>You just made the front-end part of your chat application , in order to make a real working chat you need a web server nodeJs for example and on top of that websockets library to send and receive message in real time , or use a third party service like Firebase by google ( a real time nosql database)</p>
How to make users able to send and receive messages in my chat website?
javascript|jquery|html|css
-4
58
2
53,641,314
53,641,314
1
true
2018-12-05T21:26:04.920Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make users able to send and receive messages in my chat website?<p>I have finished making a chat website using html, CSS, JavaScript and jQuery then ...
53,677,522
Define functions and invoce in window.onload<p>So I have this code:</p> <pre><code>window.onload = function(){ function myFunction(a, b) { return a * b; } } </code></pre> <p>After the page loads, I want to invoce <code>myFunction()</code> but it isn't defined and I can't understand why. Thank you in a...
<p>You don't need to declare your functions inside the <code>onload</code> handler. So you can do this:</p> <p>This puts your <code>myFunction</code> function into the global scope and makes it available when you need it.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="fal...
Define functions and invoce in window.onload
javascript
-3
29
1
53,677,593
53,677,593
1
true
2018-12-07T22:22:40.113Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Define functions and invoce in window.onload<p>So I have this code:</p> <pre><code>window.onload = function(){ function myFunction(a, b) { retur...
53,690,689
Strategy parse response from server<p>I am using a library to make API call to the Instagram API. And I am getting a response like this:</p> <pre><code>POST: https://i.instagram.com/api/v1/feed/timeline/ DATA: is_prefetch=0&amp;feed_view_info=&amp;seen_posts=&amp;phone_id=4c14088a-94b7-49c3-bec3-12caad443c50&amp;reas...
<p>What you're probably looking for is the <a href="http://php.net/manual/en/function.apache-request-headers.php" rel="nofollow noreferrer">apache_request_headers()</a> function.</p> <p>You would use it like so:</p> <pre><code>$response = apache_request_headers(); print_r($response); </code></pre> <p>This will gener...
Strategy parse response from server
php|android|json|api
-3
70
1
53,690,824
53,690,824
1
true
2018-12-09T08:45:00.713Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Strategy parse response from server<p>I am using a library to make API call to the Instagram API. And I am getting a response like this:</p> <pre><code>POST...
53,791,917
How to order a list of numbers without changing the list<p>I am in need of ordering a list of numbers stored in a C++ vector:</p> <pre><code>#include &lt;vector&gt; #include &lt;iostream&gt; #include &lt;algorithm&gt; struct A { }; bool compare(A i1, A i2) { if(i1.vec.size() &gt; i2.vec.size()) return...
<p>your comparison is not based on the content of the vector but on their size</p> <p>furthermore you pass Oid by value rather than by const reference in compare, this is expensive for nothing because they are copied each time </p>
How to order a list of numbers without changing the list
c++|c++11
-3
42
1
53,791,937
53,791,937
1
true
2018-12-15T11:25:22.007Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to order a list of numbers without changing the list<p>I am in need of ordering a list of numbers stored in a C++ vector:</p> <pre><code>#include &lt;ve...
53,796,603
How to get object values inside array in laravel?<p>I received this data form{} from view in my controller ($rquest) How to get "product_id" values in product array with x items {} to use them in my controller ? </p> <pre><code>form: { id: null, sale_number: 2, client: null, products: [ { product_i...
<p>You can use <code>$request-&gt;products</code> and <code>foreach</code> them </p> <pre><code>foreach($request-&gt;products as $product) { $product['product_id'] } </code></pre> <p>if you want to save them in an array then do this</p> <pre><code>$product_id_array = array(); foreach($request-&gt;products as $pr...
How to get object values inside array in laravel?
php|laravel|laravel-5
-3
795
1
53,796,782
53,796,782
1
true
2018-12-15T19:36:07.880Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get object values inside array in laravel?<p>I received this data form{} from view in my controller ($rquest) How to get "product_id" values in produ...
53,586,108
THREE.JS - How To Detect Device Performance/Capability & Serve Scene Elements Accordingly<p>I'd like to be able to implement conditionals within the scene set up to serve different meshes and materials or lower poly model imports. This aspect is simple but I'm looking for the best or most efficient (/best practice) met...
<p>Browsers don't afford a lot of information about the hardware they're running on so it's difficult determine how capable a device is ahead of time. With the <code>WEBGL_debug_renderer_info</code> extension you can (maybe) get at more details about the graphics hardware being used, but the values returned don't seem ...
THREE.JS - How To Detect Device Performance/Capability & Serve Scene Elements Accordingly
three.js
8
1,543
1
53,626,225
53,626,225
2
true
2018-12-03T00:49:39.407Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: THREE.JS - How To Detect Device Performance/Capability & Serve Scene Elements Accordingly<p>I'd like to be able to implement conditionals within the scene se...
53,688,134
What is the meaning of admin" or "1"="1?<p>I ran <code>admin" or "1"="1</code> on a site i've got full permissions to run SQL injection on. The site was mis-configured and let me log straight on.</p> <p>What i'm not understanding, is why there is no need for a double quote after the final number 1?</p> <p>If the php ...
<p>Think about what the SQL query in the application might be.</p> <p>Probably something like <code>select * from users where username="&lt;&lt;username&gt;&gt;" and password=md5("&lt;&lt;password&gt;&gt;")</code> as you noted.</p> <p>After injecting <code>&lt;&lt;username&gt;&gt;</code> and <code>&lt;&lt;password&gt...
What is the meaning of admin" or "1"="1?
php|sql|security|sql-injection
-4
8,194
3
53,688,197
53,688,197
2
true
2018-12-08T23:48:50.787Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the meaning of admin" or "1"="1?<p>I ran <code>admin" or "1"="1</code> on a site i've got full permissions to run SQL injection on. The site was mis-...
53,739,642
How to disable/enable text field according to a selected value in b-form-select?<p><strong>I'm trying to enable/disable input text field according to values selected in b-form-select</strong></p> <p>I would be grateful if anyone can help me.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>new Vue({ el: "#app", data: { selected: 0, options: [ { value: 0, text: 'Enabled' }, { value: 1, text: 'Dis...
How to disable/enable text field according to a selected value in b-form-select?
vue.js|bootstrap-vue
-3
4,375
1
53,744,841
53,744,841
3
true
2018-12-12T09:17:58.553Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to disable/enable text field according to a selected value in b-form-select?<p><strong>I'm trying to enable/disable input text field according to values ...
53,718,955
Binding parameter to complex type<p>I have a navigation bar, with several links, like this:</p> <p><code>&lt;a href="MyController/Browse/2"&gt;MenuItem1&lt;/a&gt;</code></p> <p>This request would hit my action method:</p> <pre><code>public ActionResult Browse(int departmentId) { var complexVM = MyCache.GetComple...
<p>I can achieve this with little change and with one trick</p> <pre><code>&lt;a href="MyController/Browse?id=1"&gt;MenuItem1&lt;/a&gt; </code></pre> <p>Controller action</p> <pre><code>public ActionResult Browse(ComplexVM complexVM) { return View(complexVM); } </code></pre> <p>View model </p> <pre><code>public cl...
Binding parameter to complex type
asp.net-mvc|asp.net-mvc-5|asp.net-mvc-routing|model-binding
7
311
2
53,795,581
53,795,581
3
true
2018-12-11T06:59:56.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Binding parameter to complex type<p>I have a navigation bar, with several links, like this:</p> <p><code>&lt;a href="MyController/Browse/2"&gt;MenuItem1&lt;...
53,800,674
Find all dictionary keys with duplicate values<p>I have a dictionary where some of the values are duplicates. I want to print the Key: Value of each duplicate. So, with the below dictionary:</p> <pre><code>animal = {"cat" : "23", "dog" : "21", "lion" : "23"} </code></pre> <p>I want to print:</p> <pre><code>cat: 23 l...
<p>I would suggest re-thinking your solution. You can invert your dictionary by mapping values to lists of keys.</p> <pre><code>dupe = {} for k, v in animal.items(): dupe.setdefault(v, []).append(k) </code></pre> <p>Next, filter your dictionary to retain only those keys with multiple values.</p> <pre><code>dupe ...
Find all dictionary keys with duplicate values
python|python-3.x|dictionary
-3
65
1
53,800,703
53,800,703
3
true
2018-12-16T08:41:50.107Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Find all dictionary keys with duplicate values<p>I have a dictionary where some of the values are duplicates. I want to print the Key: Value of each duplicat...
53,715,609
Split column by multiple delimiters, keeping delimiters<p>How can I split a character column into 3 columns using %, -, and + as the possible delimiters, keeping the delimiters in the new columns?</p> <p>Example Data:</p> <pre><code>data &lt;- data.table(x=c("92.1%+100-200","90.4%-1000+200", "92.8%-200+100", "99.2%-5...
<p>In <code>data.table</code> the equivalent is <code>tstrsplit</code>:</p> <pre><code>data[, c("x1","x2","x3") := tstrsplit(x, "(?&lt;=.)(?=[+-])", perl=TRUE) ] data # x x1 x2 x3 #1: 92.1%+100-200 92.1% +100 -200 #2: 90.4%-1000+200 90.4% -1000 +200 #3: 92.8%-200+100 92.8% -200 +100 #4: 99....
Split column by multiple delimiters, keeping delimiters
r|regex|data.table|strsplit
7
1,826
3
53,715,816
53,715,816
4
true
2018-12-11T00:12:01.280Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Split column by multiple delimiters, keeping delimiters<p>How can I split a character column into 3 columns using %, -, and + as the possible delimiters, kee...
53,517,296
Grafana query to get unique tag values<p>I want to get unique values for specific tag of some metric. For example if I have metric 'metric_name' has tags 'tag_name1' and 'tag_name2':</p> <pre><code>metric_name{tag_name1='a',tag_name2='b'} metric_name{tag_name1='c',tag_name2='d'} metric_name{tag_name1='e',tag_name2='f'...
<p>TLDR;</p> <p><strong>Template with query <code>label_values(tag_name1)</code> would do the job.</strong></p> <p>More details:</p> <p>By the <code>prometheus</code> tag I guess you are working with this db.</p> <p>You can use the <a href="http://docs.grafana.org/v3.1/reference/templating/" rel="nofollow noreferrer">G...
Grafana query to get unique tag values
grafana|prometheus
7
12,601
2
53,518,861
53,518,861
5
true
2018-11-28T10:29:10.740Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Grafana query to get unique tag values<p>I want to get unique values for specific tag of some metric. For example if I have metric 'metric_name' has tags 'ta...
53,519,578
Forms as functional components with react<p>If I want to make a functional component that will contain a form ,to login for example, and I want to contain the state in App component and Login will be its child, can I mutate the state in App using the form in Login child?</p>
<p>Yes. Pass two props an object <code>data</code> and a method <code>onChange</code> to <code>Login</code> from <code>App</code>. <code>data</code> will set the values for the form in <code>Login</code>. </p> <p>Fire <code>onChange</code> with updated form values if there is any change in <code>Login</code> form.</p>...
Forms as functional components with react
reactjs|forms|authentication|functional-programming|components
12
29,227
7
53,519,700
53,519,700
5
true
2018-11-28T12:33:25.157Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Forms as functional components with react<p>If I want to make a functional component that will contain a form ,to login for example, and I want to contain th...
53,657,060
Entity Framework Core Inheritance creating child tables<pre><code>public class Product { public string Name { get; set; } public int Qty { get; set; } public decimal Price { get; set; }`` } public class CartItem : Product { public int CartItemId { get; set; } public string CartId { get; set; } } pu...
<p>What you are using is called "base class" as opposed to "base entity", i.e. class participating in database model inheritance.</p> <p>You are not forced to use database inheritance at all. Moreover EF Core currently supports only <a href="https://docs.microsoft.com/en-us/ef/core/modeling/inheritance" rel="noreferre...
Entity Framework Core Inheritance creating child tables
entity-framework-core
7
2,633
1
53,657,247
53,657,247
5
true
2018-12-06T17:48:18.757Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Entity Framework Core Inheritance creating child tables<pre><code>public class Product { public string Name { get; set; } public int Qty { get; set; ...
53,707,308
Ant Design form set values form props<p>I'm using <code>antd</code> design in my form. </p> <p>Here I'm setting value from reducer <code>profilereducer</code> by using <code>shouldComponentUpdate</code> method. </p> <pre><code>class ProfileForm extends Component { componentDidMount = () =&gt; { this.props.actions...
<p>You are setting state in a loop, hence you got the error. Here is a better approach of dealing it.. I just left selectBefore as a variable(in your code, i haven't found setting it).. Change it to string if you get error..</p> <pre><code>componentDidMount = () =&gt; { this.props.actions.getprofile() } render...
Ant Design form set values form props
reactjs|redux|state|antd|react-props
7
22,836
2
53,712,100
53,712,100
5
true
2018-12-10T14:02:49.267Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Ant Design form set values form props<p>I'm using <code>antd</code> design in my form. </p> <p>Here I'm setting value from reducer <code>profilereducer</cod...
53,699,121
How do I get all Gini indices in my decision tree?<p>I have made a decision tree using sklearn, here, under the SciKit learn DL package, viz. <code>sklearn.tree.DecisionTreeClassifier().fit(x,y)</code>. </p> <p>How do I get the gini indices for all possible nodes at each step? <code>graphviz</code> only gives me the g...
<p>Using <a href="https://scikit-learn.org/stable/modules/generated/sklearn.tree.export_graphviz.html#sklearn.tree.export_graphviz" rel="noreferrer"><code>export_graphviz</code></a> shows impurity for all nodes, at least in version <code>0.20.1</code>.</p> <pre><code>from sklearn.datasets import load_iris from sklearn...
How do I get all Gini indices in my decision tree?
python|machine-learning|scikit-learn|decision-tree
7
5,640
2
53,713,044
53,713,044
5
true
2018-12-10T03:29:54.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I get all Gini indices in my decision tree?<p>I have made a decision tree using sklearn, here, under the SciKit learn DL package, viz. <code>sklearn.t...
53,742,821
Remove logo from extent report<p>How to remove blue color "Extent" logo from extent report.</p> <p>Extend report version =3.1.5</p> <p><a href="https://i.stack.imgur.com/jP71f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jP71f.png" alt="enter image description here"></a></p>
<p>Find and edit extent-config.xml, copy and paste the script below over the existing 'scripts' tags.</p> <pre><code> &lt;scripts&gt; &lt;![CDATA[ $(document).ready(function() { $('.brand-logo.blue.darken-3').css('display','none'); }); ]]&gt; &lt;/scripts&gt; </code></pre...
Remove logo from extent report
extentreports|selenium-extent-report
-3
1,074
2
53,945,272
53,945,272
5
true
2018-12-12T12:14:55.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Remove logo from extent report<p>How to remove blue color "Extent" logo from extent report.</p> <p>Extend report version =3.1.5</p> <p><a href="https://i.s...
53,618,504
Azure SNAT exhaustion - how do I know when it is happening?<p>We think we are having Azure SNAT exhaustion issues with a group of virtual machines within Cloud Foundry. The machines are not going through a load balancer. I've been through this document: <a href="https://docs.microsoft.com/en-us/azure/load-balancer/l...
<p>I just got off the phone with Microsoft Azure support. At this time, there is no way for us as a customer to see SNAT exhaustion without opening a ticket.</p>
Azure SNAT exhaustion - how do I know when it is happening?
azure|networking|nat
8
13,328
5
53,637,336
53,637,336
6
true
2018-12-04T17:31:55.480Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Azure SNAT exhaustion - how do I know when it is happening?<p>We think we are having Azure SNAT exhaustion issues with a group of virtual machines within Clo...
53,695,165
Test fails only in Gitlab CI, locally successful<p>I'm just starting with Gitlab CI (using a docker executor). After facing and solving some beginner's issues, I'm now facing a pretty strange problem.<br> All my unit tests succeed locally but when I run them with CI some of them fail. </p> <p>One example: </p> <pre...
<p>The reason was a faulty configuration.<br> It turned out, that most of the tests which failed were testing some mail related stuff. I forgot to add my smtp credentials. </p> <p>Instead of complaining about missing/wrong credentials, it returned this strange absolutely not related error message.</p>
Test fails only in Gitlab CI, locally successful
laravel|phpunit|gitlab-ci
7
3,370
1
53,751,655
53,751,655
6
true
2018-12-09T18:03:58.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Test fails only in Gitlab CI, locally successful<p>I'm just starting with Gitlab CI (using a docker executor). After facing and solving some beginner's issue...
53,522,289
Embedding Stackblitz Editor on Medium<p>I <a href="https://medium.com/@ole.ersoy/proxying-file-upload-buttons-with-angular-a5a3fc224c38" rel="noreferrer">wrote this article</a> and I'm attempting to embed the corresponding Stackblitz example.</p> <p>I click on share and select <code>preview only</code> and then paste ...
<p>Just using this would work:</p> <pre><code>https://stackblitz.com/edit/html5-file-api2 </code></pre> <p>Get rid of the rest.</p> <p>Here's a <a href="https://medium.com/@siddajmera/-a4b5525355ce" rel="noreferrer"><strong>Draft Link</strong></a> to the preview.</p>
Embedding Stackblitz Editor on Medium
angular|typescript|medium-editor|medium.com|stackblitz
8
1,087
1
53,522,350
53,522,350
7
true
2018-11-28T14:57:56.487Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Embedding Stackblitz Editor on Medium<p>I <a href="https://medium.com/@ole.ersoy/proxying-file-upload-buttons-with-angular-a5a3fc224c38" rel="noreferrer">wro...
53,571,709
maven with JDK11: javac: invalid flag: --release<p>I'm trying to set up a simple maven project with java 11. As I want to keep JAVA_HOME to be version 8, I'm using <code>maven-toolchains-plugin</code> to make maven use jdk11 for this project.</p> <p>While maven successfully finds a matching toolchain for jdk-11.0.1, I...
<p>As I found out, the configuration is just fine. The problem was that <code>jdkHome</code> in <code>toolchains.xml</code> was pointing to the <code>\jdk-11.0.1\bin</code> direction instead of <code>\jdk-11.0.1</code> directly..... Using <code>&lt;jdkHome&gt;C:\Program Files\Java\jdk-11.0.1&lt;/jdkHome&gt;</code> solv...
maven with JDK11: javac: invalid flag: --release
java|maven|java-11|maven-toolchains-plugin
8
23,069
2
53,572,388
53,572,388
7
true
2018-12-01T14:22:12.047Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: maven with JDK11: javac: invalid flag: --release<p>I'm trying to set up a simple maven project with java 11. As I want to keep JAVA_HOME to be version 8, I'm...
53,595,157
AWS Sagemaker Deploy fails<p>I am following the <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/ex1-deploy-model.html" rel="noreferrer">sage maker documentation</a> to train and deploy an ML model. I am using the high-level Python library provided by Amazon SageMaker to achieve this. </p> <pre><code>kmeans_pr...
<p>I resolved the issue by changing the instance type:</p> <pre><code>kmeans_predictor = kmeans.deploy(initial_instance_count=1, instance_type='ml.t2.medium') </code></pre>
AWS Sagemaker Deploy fails
amazon-web-services|aws-sdk|amazon-sagemaker
7
5,932
2
53,607,200
53,607,200
7
true
2018-12-03T13:45:26.537Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: AWS Sagemaker Deploy fails<p>I am following the <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/ex1-deploy-model.html" rel="noreferrer">sage maker d...
53,662,717
Groupby two columns ignoring order of pairs<p>Suppose we have a dataframe that looks like this:</p> <pre><code> start stop duration 0 A B 1 1 B A 2 2 C D 2 3 D C 0 </code></pre> <p>What's the best way to construct a list of: i) start/stop pairs; ii) count of ...
<p><code>sort</code> the first two columns (you can do this in-place, or create a copy and do the same thing; I've done the former), then <code>groupby</code> and <code>agg</code>:</p> <pre><code>df[['start', 'stop']] = np.sort(df[['start', 'stop']], axis=1) (df.groupby(['start','stop']) .duration .agg(['count'...
Groupby two columns ignoring order of pairs
python|pandas|dataframe|group-by|pandas-groupby
7
1,316
2
53,662,762
53,662,762
7
true
2018-12-07T03:17:43.950Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Groupby two columns ignoring order of pairs<p>Suppose we have a dataframe that looks like this:</p> <pre><code> start stop duration 0 A B ...
53,637,328
Set connection string in Azure DevOps pipeline<p>I have some integration tests that I'd like to run against LocalDB.</p> <p>My config.json file has the following section...</p> <pre><code>{ "ConnectionStrings": { "DefaultConnection": "" } } </code></pre> <p>Is it possible to set this value in the build confi...
<p>You can achieve this in several ways. Like Powershell scripts to replace the values and ofcourse <a href="https://marketplace.visualstudio.com/items?itemName=qetza.replacetokens" rel="noreferrer">this replace token extension</a> </p> <p><img src="https://qetza.gallerycdn.vsassets.io/extensions/qetza/replacetokens/3...
Set connection string in Azure DevOps pipeline
asp.net-core|azure-devops
7
13,080
2
53,789,727
53,789,727
7
true
2018-12-05T17:04:40.503Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Set connection string in Azure DevOps pipeline<p>I have some integration tests that I'd like to run against LocalDB.</p> <p>My config.json file has the foll...
53,524,464
Read only kubernetes user<p>I'm trying to create a read only user. I want the user to be able to list nodes and pods and view the dashboard. I got the certs created and can connect but I'm getting the following error.</p> <pre><code>$ kubectl --context minikube-ro get pods --all-namespaces Error from server (Forbidden...
<p>You cluster role should contain Core group as resource <code>pods</code> are in Core group.</p> <pre><code>kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: namespace: '*' name: pod-reader rules: - apiGroups: ["extensions", "apps", ""] resources: ["pods"] verbs: ["get", "list", "watch"] <...
Read only kubernetes user
kubernetes
7
7,175
1
53,524,535
53,524,535
8
true
2018-11-28T16:55:03.310Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Read only kubernetes user<p>I'm trying to create a read only user. I want the user to be able to list nodes and pods and view the dashboard. I got the certs ...
53,529,338
A factory method may violate the Law Of Demeter?<p>quoting from here: <a href="https://en.wikipedia.org/wiki/Law_of_Demeter" rel="noreferrer">https://en.wikipedia.org/wiki/Law_of_Demeter</a></p> <blockquote> <p>More formally, the Law of Demeter for functions requires that a method m of an object O may only invoke ...
<p>I don't think so.</p> <p>Especially this:</p> <blockquote> <p>Any objects created/instantiated within <em>m</em></p> </blockquote> <p>I would apply that to the factory as well. Even though strictly the object's constructor is called in the factory, the object is still constructed by, and especially <em>for</em>...
A factory method may violate the Law Of Demeter?
php|oop|factory|law-of-demeter
11
525
2
53,529,448
53,529,448
8
true
2018-11-28T22:55:26.200Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: A factory method may violate the Law Of Demeter?<p>quoting from here: <a href="https://en.wikipedia.org/wiki/Law_of_Demeter" rel="noreferrer">https://en.wiki...
53,542,389
Modify JSON in Ansible<p>I have a management system where we define maintenance data to control virtual environment, and one of the options is VM shutdown timeframe for different teams. Now when new VM is created user should select from the available list of timeframes when his/her VM can be shut down without interrup...
<p>Not a direct answer to your question about the error with <code>modify_json</code> but a working solution.</p> <p>I would go with <a href="https://stedolan.github.io/jq/" rel="noreferrer">jq</a> for that. <code>jq</code> is a lightweight and flexible command-line JSON processor and available for nearly every Linux ...
Modify JSON in Ansible
python|json|ansible
9
18,470
2
53,546,229
53,546,229
8
true
2018-11-29T15:29:22.477Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Modify JSON in Ansible<p>I have a management system where we define maintenance data to control virtual environment, and one of the options is VM shutdown ti...
53,477,450
How to wrap column header in ag-grid using angular<p>I have some columns which has four words i.e Pre Trading Follow Up, Post Trading Follow Up and some of them having three words. I tried the below css to wrap the text to multiple lines.</p> <pre><code>::ng-deep .ag-theme-material .ag-header-cell-label .ag-header-cel...
<p>Please review the following stackblitz example.</p> <p><a href="https://stackblitz.com/edit/angular-ag-grid-angular-xmbm3p?embed=1&amp;file=styles.css" rel="noreferrer">https://stackblitz.com/edit/angular-ag-grid-angular-xmbm3p?embed=1&amp;file=styles.css</a></p> <p>In the global style sheet I applied the followin...
How to wrap column header in ag-grid using angular
javascript|angular|ag-grid|ag-grid-angular
9
9,512
3
53,547,820
53,547,820
8
true
2018-11-26T08:48:45.820Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to wrap column header in ag-grid using angular<p>I have some columns which has four words i.e Pre Trading Follow Up, Post Trading Follow Up and some of t...
53,771,668
Finding all the dicts of max len in a list of dicts<p>I have a list of dictionaries</p> <pre><code>ld = [{'a': 1}, {'b': 2, 'c': 3}, {'d': 4, 'e': 5}] </code></pre> <p>I need to get all the elements with the longest length from my list, i.e. </p> <p><code>{'b': 2, 'c': 3}</code> and <code>{'d': 4, 'e': 5}</code>.</p...
<p>You can find the length of the maximum dictionary in the structure, and then use a list comprehension:</p> <pre><code>ld = [{'a':1}, {'b':2, 'c':3}, {'d':4, 'e':5}] _max = max(map(len, ld)) new_result = dict(i for i in enumerate(ld) if len(i[-1]) == _max) </code></pre> <p>Output:</p> <pre><code>{1: {'b': 2, 'c': ...
Finding all the dicts of max len in a list of dicts
python|list|dictionary
7
2,607
4
53,771,723
53,771,723
8
true
2018-12-13T23:45:29.347Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Finding all the dicts of max len in a list of dicts<p>I have a list of dictionaries</p> <pre><code>ld = [{'a': 1}, {'b': 2, 'c': 3}, {'d': 4, 'e': 5}] </cod...
53,537,779
How to disable delete action in List view in react admin?<p>Before version 2 you could just not pass <code>remove</code> prop to <code>&lt;Resource/&gt;</code> component. However now delete action is included by default in <code>&lt;List/&gt;</code> view and I can't find anywhere in docs how I can disable it.</p>
<p>Well I figured it out. <code>&lt;List/&gt;</code> component has <code>bulkActionButtons</code> prop, where you can customize how bulk actions work. Here is the <a href="https://marmelab.com/react-admin/List.html#bulk-action-buttons" rel="noreferrer">link to docs</a></p>
How to disable delete action in List view in react admin?
react-admin
9
6,438
3
53,537,883
53,537,883
9
true
2018-11-29T11:15:10.313Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to disable delete action in List view in react admin?<p>Before version 2 you could just not pass <code>remove</code> prop to <code>&lt;Resource/&gt;</cod...
53,723,251
javascript: modifing an imported 'variable' causes 'Assignment to constant variable' even it is not a constant<p>I have two files, file1 exports a variable 'not a constant' var x=1 and file2 which imports this variable from it</p> <p>the problem is that I canno't modify that imported variable even it is not a constant...
<p>That's an effect of <a href="http://2ality.com/2015/07/es6-module-exports.html#es6-modules-export-immutable-bindings" rel="noreferrer">the immutable exported module values</a>. You can override that with another function in the same module</p> <p>In your file 1 :</p> <pre><code>export let x = 1; export function mo...
javascript: modifing an imported 'variable' causes 'Assignment to constant variable' even it is not a constant
javascript|node.js|ecmascript-6|es6-modules|es6-module-loader
8
2,078
2
53,723,394
53,723,394
9
true
2018-12-11T11:30:25.583Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: javascript: modifing an imported 'variable' causes 'Assignment to constant variable' even it is not a constant<p>I have two files, file1 exports a variable '...
53,742,803
Practical differences between Lazy<_> and thunk (fun () -> ...)<p>In the F# core library there are higher-order functions that take a thunk (<code>fun () -&gt; ...</code>), but could also conceptually take a <code>Lazy&lt;_&gt;</code>, such as <code>Option.defaultWith</code>. F# has good syntactical support for <code>L...
<p>Being a separate object which wraps a thunk, provides synchronization and holds the result reference, <code>Lazy&lt;_&gt;</code> has some additional overhead compared to a simple thunk.</p> <p>If you know you're only going to evaluate the thunk (at most) once, I don't think there's a reason why you wouldn't use a f...
Practical differences between Lazy<_> and thunk (fun () -> ...)
.net|f#|lazy-loading
8
314
1
53,743,260
53,743,260
9
true
2018-12-12T12:13:58.693Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Practical differences between Lazy<_> and thunk (fun () -> ...)<p>In the F# core library there are higher-order functions that take a thunk (<code>fun () -&g...
53,786,325
stream creating List of List (nested List) using forEach, Java 8<pre><code>class EntityCompositeId { private Long firstId; private Long secondId; // getter &amp; setter... } class EntityComposite { private EntityCompositeId id; private String first; private String second; // getter &amp; se...
<p>There are several different approaches in which you can accomplish the task at hand.</p> <p><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html#computeIfAbsent-K-java.util.function.Function-" rel="noreferrer"><h1>forEach + computeIfAbsent</h1></a></p> <pre><code> Map&lt;Long, List&lt;String&gt;&g...
stream creating List of List (nested List) using forEach, Java 8
java|java-8|java-stream|nested-lists
8
1,817
3
53,786,392
53,786,392
9
true
2018-12-14T20:11:35.123Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: stream creating List of List (nested List) using forEach, Java 8<pre><code>class EntityCompositeId { private Long firstId; private Long secondId; ...
53,799,059
Uploading a string to S3 using rusoto<p>I'm using <a href="https://github.com/rusoto/rusoto" rel="noreferrer">rusoto</a> S3 to create a JSON string and upload this string to an S3 bucket. I can create the string, but rusoto's S3 <code>PutObjectRequest</code> requires a <code>StreamingBody</code> and I'm not sure how I ...
<p><a href="https://docs.rs/rusoto_s3/0.36.0/rusoto_s3/type.StreamingBody.html" rel="noreferrer"><code>StreamingBody</code></a> is a type alias:</p> <pre><code>type StreamingBody = ByteStream; </code></pre> <p><a href="https://docs.rs/rusoto_core/0.36.0/rusoto_core/struct.ByteStream.html" rel="noreferrer"><code>ByteS...
Uploading a string to S3 using rusoto
amazon-s3|rust|type-conversion|rusoto
10
2,821
1
53,805,442
53,805,442
9
true
2018-12-16T02:55:28.857Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Uploading a string to S3 using rusoto<p>I'm using <a href="https://github.com/rusoto/rusoto" rel="noreferrer">rusoto</a> S3 to create a JSON string and uploa...
53,519,731
how to select form ngrx store within an Effect using a slector with parameters<p>I need to build an Effect and I need a value from the store, the problem is that the selector is a selector with parameters. </p> <p>following the example code:</p> <pre><code> @Effect() ExampleEffect$ = this.actions$.pipe( ...
<p>You can write an arrow function to pass parameters while creating a selector.</p> <pre><code>export const getAlbumById = (collectionId: number) =&gt; createSelector(getAlbumEntities, entities =&gt; entities[collectionId]); </code></pre> <p>More example</p> <p>// effect</p> <pre><code>@Effect({ dispatch: true }) ...
how to select form ngrx store within an Effect using a slector with parameters
angular|rxjs|ngrx|ngrx-effects
7
8,961
4
53,529,057
53,529,057
10
true
2018-11-28T12:41:12.390Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to select form ngrx store within an Effect using a slector with parameters<p>I need to build an Effect and I need a value from the store, the problem is ...
53,671,360
macOS Dark Mode and NSAboutPanelOptionCredits<p>I have a fairly straight forward App called Range in the app store that I want to make dark mode compliant for macOS 10.14. I've noticed is that the About window is not changing all of the text colors.</p> <p>I'm using the NSAboutPanelOptionCredits where I just need to ...
<p>The trick is to use semantic colors.</p> <p>Using Xcode, edit your RTF file. Select the text and bring up the text color picker.</p> <p>Xcode adds the <strong>Developer</strong> colors to the color picker. Select the appropriate semantic color for your text; I tend to use <code>labelColor</code>, <code>secondaryLa...
macOS Dark Mode and NSAboutPanelOptionCredits
objective-c|xcode|macos|appearance|macos-darkmode
9
810
3
53,679,540
53,679,540
10
true
2018-12-07T14:17:41.800Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: macOS Dark Mode and NSAboutPanelOptionCredits<p>I have a fairly straight forward App called Range in the app store that I want to make dark mode compliant fo...
53,721,635
How can i match fields with wildcards using jq?<p>I have a JSON object of the following form:</p> <pre><code>{ "Task11c-0-20181209-12:59:30-65611" : { "attributes" : { "configname" : "Task11c", "datetime" : "20181209-12:59:30", "experiment" : "Task11c", "inifile" : "lab1.ini", "iter...
<p>Filter keys that start with <code>Test</code> and get only the attribute of your choice using the <code>select()</code> expression</p> <pre><code>jq 'to_entries[] | select(.key|startswith("Task")).value.attributes.processid' json </code></pre>
How can i match fields with wildcards using jq?
json|jq
8
4,369
1
53,722,321
53,722,321
10
true
2018-12-11T10:01:37.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can i match fields with wildcards using jq?<p>I have a JSON object of the following form:</p> <pre><code>{ "Task11c-0-20181209-12:59:30-65611" : { ...
53,643,145
Kubernetes kubectl get secrets by type?<p>I want to run kubectl and get all the secrets of type = X. Is this possible?</p> <p>I.e if I want to get all secrets where type=tls</p> <p>something like <code>kubectl get secrets --type=tls</code>?</p>
<p>You can do it <a href="https://kubernetes.io/docs/reference/kubectl/jsonpath/" rel="noreferrer"><code>jsonpath</code></a>. Something like this:</p> <pre><code>$ kubectl get secret -o=jsonpath='{range .items[*]}{.metadata.name} {.type}{"\n"}{end}' | grep -i tls </code></pre> <p>For example, to get all the type <cod...
Kubernetes kubectl get secrets by type?
kubernetes|kubectl
15
4,111
3
53,643,267
53,643,267
11
true
2018-12-06T01:08:30.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Kubernetes kubectl get secrets by type?<p>I want to run kubectl and get all the secrets of type = X. Is this possible?</p> <p>I.e if I want to get all secre...
53,740,967
Checking the version of Databricks Runtime in Azure<p>Is it possible to check the version of Databricks Runtime in Azure?</p>
<p>Databricks Runtime is the set of core components that run on the clusters managed by Azure Databricks. It includes Apache Spark but also adds a number of components and updates that substantially improve the usability, performance, and security of big data analytics.</p> <blockquote> <p>You can choose from among ...
Checking the version of Databricks Runtime in Azure
azure|version|azure-databricks
12
12,587
3
53,741,477
53,741,477
11
true
2018-12-12T10:28:13.227Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Checking the version of Databricks Runtime in Azure<p>Is it possible to check the version of Databricks Runtime in Azure?</p>
37,748,105
How to use progressbar module with urlretrieve<p>My <strong>pyhton3</strong> script downloads a number of images over the internet using <strong>urlretrieve</strong>, and I'd like to add a progressbar with a <em>completed percentage</em> and <em>download speed</em> for each download. </p> <p>The <a href="http://progre...
<p>I think a better solution is to create a class that has all the needed state</p> <pre><code>import progressbar class MyProgressBar(): def __init__(self): self.pbar = None def __call__(self, block_num, block_size, total_size): if not self.pbar: self.pbar=progressbar.ProgressBar(m...
How to use progressbar module with urlretrieve
python|python-3.x|progress-bar
13
11,778
3
53,643,011
53,643,011
12
true
2016-06-10T12:17:56.080Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use progressbar module with urlretrieve<p>My <strong>pyhton3</strong> script downloads a number of images over the internet using <strong>urlretrieve<...
53,686,576
Styling a <select> on iOS<p>I'm developing a web-app for both <em>Android</em> and <em>iOS</em>.</p> <p>I have encountered a problem with the styling of the app.</p> <p>For some reason, styles applied to a <code>&lt;select&gt;</code> won't display on <code>MobileSafari</code> (aka iOS WebView)</p> <p>CSS:</p> <pre>...
<p>The quick &amp; easy fix is to apply <code>-webkit-appearance: none</code>. However, you might quickly notice your element has lost the <code>arrow</code> to indicate it's a <code>&lt;select&gt;</code> element.</p> <p>To address this, one workaround is to wrap your element with a div and mimic the arrow using CSS c...
Styling a <select> on iOS
ios|css|html|safari|mobile-safari
7
18,225
1
53,874,632
53,874,632
12
true
2018-12-08T20:16:49.467Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Styling a <select> on iOS<p>I'm developing a web-app for both <em>Android</em> and <em>iOS</em>.</p> <p>I have encountered a problem with the styling of the...
53,618,872
Angular 6: Unable to set Content-Type of http Header correctly<p>I'm trying to make a post call using HttpHeader in angular 6 And I set Content-Type to application/json. But the server get x-www-form-urlencoded instead of application/json for Content-Type.</p> <p>service.ts <div class="snippet" data-lang="js" data-hid...
<p>You need to set headers in option.</p> <pre><code>return this.http.post(this.URL , body, {headers : new HttpHeaders({ 'Content-Type': 'application/json' })}); </code></pre>
Angular 6: Unable to set Content-Type of http Header correctly
angular|http-headers|content-type
8
22,818
2
53,619,041
53,619,041
13
true
2018-12-04T17:57:42.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Angular 6: Unable to set Content-Type of http Header correctly<p>I'm trying to make a post call using HttpHeader in angular 6 And I set Content-Type to appli...
53,621,696
How to start from second index for for-loop<p>I have this for-loop. I want <code>i in range(nI)</code> to start from the second number in the <code>I</code> list. Could you guide me?</p> <pre><code>I=[0,1,2,3,4,5,6] nI=len(I) for i in range(nI): sum=0 for v in range(nV): for j in range(nJ): ...
<p>First thing is to remember that python uses zero indexing.</p> <p>You can iterate throught the list except using the range function to get the indexes of the items you want or slices to get the elements.</p> <p>What I think is becoming confusing here is that in your example, the values and the indexes are the same...
How to start from second index for for-loop
python|python-3.x|numpy
14
91,713
5
53,993,117
53,993,117
13
true
2018-12-04T21:29:04.153Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to start from second index for for-loop<p>I have this for-loop. I want <code>i in range(nI)</code> to start from the second number in the <code>I</code> ...
53,659,570
How to pass parameters to widgets in Flutter<p>I am opening a modal dialog in Flutter and wish to pass in a single parameter (postId) to the modal for further processing. But this is generating an error as shown.</p> <pre><code>class SharingDialog extends StatefulWidget { @override final String postId; // &lt;--- ...
<p>First: </p> <p>Remove override keyword above postId</p> <pre><code> @override &lt;-- this one final String postId; </code></pre> <p>Second:</p> <p>Because you are using named parameter , send the param like this way:</p> <pre><code> return new SharingDialog(postId: postId); </code></pre> <p>If you want mo...
How to pass parameters to widgets in Flutter
dart|flutter
10
32,013
1
53,659,612
53,659,612
14
true
2018-12-06T20:57:43.940Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to pass parameters to widgets in Flutter<p>I am opening a modal dialog in Flutter and wish to pass in a single parameter (postId) to the modal for furthe...
53,735,603
Extract outliers from Seaborn Boxplot<p>Is there a way to extract all outliers after plotting a Seaborn Boxplot? For example, if I am plotting a boxplot for the below data</p> <pre><code> client total 1 LA 1 2 Sultan 128 3 ElderCare 1 4...
<p>Seaborn uses matplotlib to handle outlier calculations, meaning the key parameter, <code>whis</code>, is passed onto <code>ax.boxplot</code>. The specific function taking care of the calculation is documented here: <a href="https://matplotlib.org/api/cbook_api.html#matplotlib.cbook.boxplot_stats" rel="noreferrer">ht...
Extract outliers from Seaborn Boxplot
python|matplotlib|seaborn|boxplot
9
12,323
2
53,736,994
53,736,994
14
true
2018-12-12T03:24:58.750Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Extract outliers from Seaborn Boxplot<p>Is there a way to extract all outliers after plotting a Seaborn Boxplot? For example, if I am plotting a boxplot for ...
53,518,053
How to inject a ViewModel into BottomSheetDialogFragment with Dagger2?<p>I inject my dependencies in Activities and Fragments on the preferred way with <code>AndroidInjection.inject(this)</code>. I have the recommended ViewmodelFactory to inject the viewmodel. My injections are working in Activities and Fragments. Howe...
<p>Here is how I have provided ViewModel into BottomSheetDialogFragment(). First of all set up Dagger in MyApp class.</p> <pre><code>class MyApp : Application(), HasActivityInjector, HasSupportFragmentInjector { @Inject lateinit var activityInjector: DispatchingAndroidInjector&lt;Activity&gt; @Inject lateinit var sup...
How to inject a ViewModel into BottomSheetDialogFragment with Dagger2?
android|dagger-2|bottom-sheet
7
6,916
1
53,542,733
53,542,733
15
true
2018-11-28T11:09:04.663Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to inject a ViewModel into BottomSheetDialogFragment with Dagger2?<p>I inject my dependencies in Activities and Fragments on the preferred way with <code...