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,218,738
LZMA Returns Input Format not supported<p>It seems that when I try to decode some bytes that where decoded from base 64 it gives an <code>Input Format not Supported</code>. I cannot isolate the issue, as when I bring the decoded logic alone into a new file, the error will not happen, making me think that this is somet...
<p>You are passing a base64-encoded string as a part of the URL, and that string may contain characters that gets mangled in the process.</p> <p>For example, visiting <code>/encode/hello</code> will give the following URL:</p> <pre><code>https://text-viewer-from-bsace-64-url.inyourface3445.repl.co/view//Td6WFoAAATm1rRG...
LZMA Returns Input Format not supported
python|lzma
0
71
1
72,247,405
72,247,405
0
true
2022-05-12T15:57:12.850Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: LZMA Returns Input Format not supported<p>It seems that when I try to decode some bytes that where decoded from base 64 it gives an <code>Input Format not Su...
72,188,897
Truncate long strings inside json in python<p>Given some json</p> <pre><code>[ { &quot;default_value&quot;: &quot;True&quot;, &quot;feature_name&quot;: &quot;feature_1&quot;, &quot;active_on&quot;: &quot;remote_1,remote_2,remote_3,remote_4,remote_5,remote_6,remote_7&quot; }, { ...
<p>Here's my take on it:</p> <pre><code>import collections ... def truncate_strings(obj: collections.abc.Iterable, truncate: int, suffix: str = &quot;...&quot;) -&gt; int: &quot;&quot;&quot; @param obj: generic iterable - object to truncate. Implemented for dicts and lists. ...
Truncate long strings inside json in python
python|json|string|dictionary|truncate
0
53
3
72,247,423
72,247,423
0
true
2022-05-10T15:13:53.267Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Truncate long strings inside json in python<p>Given some json</p> <pre><code>[ { &quot;default_value&quot;: &quot;True&quot;, &quot;featu...
72,235,846
What is the difference between running pyspark program with and without cluster?<p>I have a program that contain few lines of functions that uses pyspark (the rest is normal Python).</p> <p>The portion of my code that uses pyspark:</p> <pre><code>X.to_csv(r'first.txt', header=None, index=None, sep=' ', mode='a') # loa...
<p>There are no differences in terms of the result you will get.<br /> Depending on your workload, you might have resource issues when running locally.</p> <p>Spark enables you to use a resource manager (such as YARN) in order to scale your application by acquiring executors from the resource manager.</p> <p>Please che...
What is the difference between running pyspark program with and without cluster?
python|apache-spark|pyspark|cluster-computing
0
39
1
72,247,566
72,247,566
0
true
2022-05-13T22:11:35.057Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the difference between running pyspark program with and without cluster?<p>I have a program that contain few lines of functions that uses pyspark (th...
72,197,601
Why did the Django model return an empty queryset in the thread pool?<p>I used ThreadPoolExecutor in my API. in the test case, I generated a Movie instance and saved it in the database (PostgreSQL). I printed movie count in the test case, API, and thread pool function. why in the thread pool return an empty queryset?</...
<p>I found the answer.</p> <p><a href="https://stackoverflow.com/questions/44450533/difference-between-testcase-and-transactiontestcase-classes-in-django-test">Difference between TestCase and TransactionTestCase classes in django test</a></p> <blockquote> <p>the APITestCase wraps the tests with 2 atomic() blocks, one f...
Why did the Django model return an empty queryset in the thread pool?
python|multithreading|django-rest-framework|threadpool|django-tests
0
51
1
72,247,594
72,247,594
0
true
2022-05-11T08:13:30.010Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why did the Django model return an empty queryset in the thread pool?<p>I used ThreadPoolExecutor in my API. in the test case, I generated a Movie instance a...
72,234,214
Rspec and SQL: Index 0 is out of range<p>I am trying to run my code and I get the following error:</p> <pre><code>Failure/Error: Bookmark.new(id: res[0]['id'], title: res[0]['title'], url: res[0]['url']) IndexError: Index 0 is out of range </code></pre> <p>I checked my database table and saw it is all good, there is d...
<p>Apologies, it was an error on my part. My spec_helper file was referring to a different ENVIRONMENT compared to my code. That's why it couldn't find the data it needed. It's at least a good learning curve for next time</p>
Rspec and SQL: Index 0 is out of range
sql|ruby|database|rspec
0
56
1
72,247,770
72,247,770
0
true
2022-05-13T18:48:55.213Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Rspec and SQL: Index 0 is out of range<p>I am trying to run my code and I get the following error:</p> <pre><code>Failure/Error: Bookmark.new(id: res[0]['id'...
72,228,387
How can i ignore Uppercase or lowercase in ado.net linq to sql?<p>i have this query i want the user to search with the name without uppercase or lowercase , how can i do this ?</p> <pre><code> join Materiel in ds.Materiel on Accessoir.id_mat equals Materiel.id_mat ...
<ul> <li><p>Posting here as an answer based on ɐsɹǝʌ ǝɔıʌ's, it's useful for other community members as well.</p> </li> <li><p>In your code, change the where condition like below,</p> </li> <li><p>First make it <strong>Client.Nom</strong> either <strong>Upper</strong> or <strong>lower</strong> case then search with the...
How can i ignore Uppercase or lowercase in ado.net linq to sql?
c#|sql-server|linq-to-sql
0
75
1
72,248,231
72,248,231
0
true
2022-05-13T10:49:58.207Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can i ignore Uppercase or lowercase in ado.net linq to sql?<p>i have this query i want the user to search with the name without uppercase or lowercase ,...
72,234,010
NLTK find german nouns<p><strong>I want to extract all german nouns from a german text in lemmatized form with NLTK.</strong></p> <p>I also checked spacy but NLTK is much more preferred because in english it already works with the needed performance and requested data structure.</p> <p>I have the following working code...
<p>I have found a way with the HanoverTagger:</p> <pre><code>from HanTa import HanoverTagger as ht tagger = ht.HanoverTagger('morphmodel_ger.pgz') words = nltk.word_tokenize(text) print(tagger.tag_sent(words) ) tokens=[word for (word,x,pos) in tagger.tag_sent(words,taglevel= 1) if pos == 'NN'] </code></pre> <p>I get th...
NLTK find german nouns
python|nltk
0
162
1
72,248,425
72,248,425
0
true
2022-05-13T18:28:31.430Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: NLTK find german nouns<p><strong>I want to extract all german nouns from a german text in lemmatized form with NLTK.</strong></p> <p>I also checked spacy but...
72,169,536
windows-rs GetNamedSecurityInfoW error 87<p>I'm trying to use <a href="https://github.com/microsoft/windows-rs" rel="nofollow noreferrer">windows-rs</a> to use <a href="https://docs.rs/windows-sys/latest/windows_sys/Win32/Security/Authorization/fn.GetNamedSecurityInfoW.html" rel="nofollow noreferrer">GetNamedSecurityIn...
<p><a href="https://docs.microsoft.com/en-us/windows/win32/api/aclapi/nf-aclapi-getnamedsecurityinfow" rel="nofollow noreferrer"><code>GetNamedSecurityInfoW</code></a> is an API call with somewhat complex semantics. Besides a description of the object, there's</p> <ul> <li>a bitmask (<code>SecurityInfo</code>) describi...
windows-rs GetNamedSecurityInfoW error 87
winapi|rust
0
71
1
72,248,907
72,248,907
0
true
2022-05-09T09:11:48.523Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: windows-rs GetNamedSecurityInfoW error 87<p>I'm trying to use <a href="https://github.com/microsoft/windows-rs" rel="nofollow noreferrer">windows-rs</a> to u...
72,187,594
Stringbuffer access by index or range<p>TLDR: I am looking for a datastructure with the properties of a string buffer that I can access by index in dart.</p> <p>Long version: I need the properties of Stringbuffer (very efficient at adding characters/bytes) but with the added capability of accessing characters/bytes at ...
<p>To answer my own question: After playing around with the <a href="https://pub.dev/packages/typed_data/install" rel="nofollow noreferrer">typed library</a> and some custom data structures for a bit, it seems that a simple list of Strings is actually the fastest, assuming that I need half as many insertions as I need ...
Stringbuffer access by index or range
flutter|dart|stringbuffer
0
96
2
72,248,916
72,248,916
0
true
2022-05-10T13:50:27.760Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Stringbuffer access by index or range<p>TLDR: I am looking for a datastructure with the properties of a string buffer that I can access by index in dart.</p>...
72,235,156
Provide run time environment variable path (e.g. LD_LIBRARY_PATH) to third party dependency in bazel<p>In the code base I am working with we use the oracle instant client library as a third party dependency in Bazel as follows:</p> <pre><code>cc_library( name = &quot;instant_client_basiclite&quot;, srcs = glob(...
<p>One possibility is to add the following command line option:</p> <pre><code>--test_env=ORACLE_HOME=&quot;$(bazel info output_base)/external/instant_client_basiclite&quot; </code></pre> <p>It is a pity that it cannot be put in .bazelrc.</p>
Provide run time environment variable path (e.g. LD_LIBRARY_PATH) to third party dependency in bazel
c++|oracle|environment-variables|bazel|instantclient
0
115
1
72,249,468
72,249,468
0
true
2022-05-13T20:33:09.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Provide run time environment variable path (e.g. LD_LIBRARY_PATH) to third party dependency in bazel<p>In the code base I am working with we use the oracle i...
72,183,994
check ProxyEnable in a batch file<p>I currently have two batch files: proxy_enable.bat</p> <pre><code>reg add &quot;HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings&quot; ^ /v ProxyEnable /t REG_DWORD /d 1 /f </code></pre> <p>and proxy_disable.bat</p> <pre><code>reg add &quot;HKCU\Software\Microsoft...
<p>The following script should toggle the value, each time it is run:</p> <pre class="lang-sh prettyprint-override"><code>@Echo Off SetLocal EnableExtensions DisableDelayedExpansion Set &quot;Fnd=%SystemRoot%\System32\find.exe&quot; Set &quot;Reg=%SystemRoot%\System32\reg.exe&quot; Set &quot;Key=HKCU\Software\Microsof...
check ProxyEnable in a batch file
batch-file
0
62
2
72,250,618
72,250,618
0
true
2022-05-10T09:39:10.107Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: check ProxyEnable in a batch file<p>I currently have two batch files: proxy_enable.bat</p> <pre><code>reg add &quot;HKCU\Software\Microsoft\Windows\CurrentVe...
72,211,024
How to create glass widget in flutter app?<p>I need to make glass card view widget in the flutter (like image). Its mode without using the package. But if there is no solution, if there is a package for it, thank you for introducing that package as well.</p> <p><a href="https://i.stack.imgur.com/N3WEO.jpg" rel="nofollo...
<p>thanks to all. I wrote my own package for answer of my question. <a href="https://pub.dev/packages/flutter_glass" rel="nofollow noreferrer">https://pub.dev/packages/flutter_glass</a></p>
How to create glass widget in flutter app?
flutter|flutter-layout
0
78
4
72,250,715
72,250,715
0
true
2022-05-12T06:33:47.310Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to create glass widget in flutter app?<p>I need to make glass card view widget in the flutter (like image). Its mode without using the package. But if th...
72,146,597
Firebase id token generation is broken<h3>Context</h3> <p>I am making an Angular web application using firebase messaging. I followed a tutoriel and the documentation to configure firebase successfully (I guess).<br /> Everything was okay to generate a firebase id token on client and then use it to subscribe to some to...
<p>I finally fixed this going to F12 (developer tools) &gt; Application &gt; Storage &gt; Clear site data. Firebase now generate a new valid token that works for calling API functions.</p>
Firebase id token generation is broken
angular|firebase|token
0
199
1
72,252,064
72,252,064
0
true
2022-05-06T19:36:31.917Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Firebase id token generation is broken<h3>Context</h3> <p>I am making an Angular web application using firebase messaging. I followed a tutoriel and the docu...
72,223,534
Using Vision and RealityKit Rotates Counterclockwise and Distorts(Stretches?) Video<p>I am attempting to learn object detection in iOS, and then mark the place of the detected object. I have the model trained and installed in the project. My next step is to show an AR View on screen. That is working. When I turn my vis...
<p>After days of trying to figure this out, with research and more research, I came across <a href="https://stackoverflow.com/q/60681063/7129318">this question and answer</a> that provides the solution. Please note that both answers are valid, it just depends upon the structure of your app.</p> <p>The crux of the issue...
Using Vision and RealityKit Rotates Counterclockwise and Distorts(Stretches?) Video
swift|arkit|coreml|realitykit|visionkit
0
124
1
72,252,900
72,252,900
0
true
2022-05-13T01:18:42.240Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using Vision and RealityKit Rotates Counterclockwise and Distorts(Stretches?) Video<p>I am attempting to learn object detection in iOS, and then mark the pla...
72,206,342
Client permissions on serverless Azure Web PubSub<p>I've successfully followed the <a href="https://docs.microsoft.com/en-us/azure/azure-web-pubsub/quickstart-serverless?tabs=javascript" rel="nofollow noreferrer">Tutorial - Create a serverless chat</a> using the Azure Web PubSub service.</p> <p>Now I require giving the...
<p>After a lot of digging around, I finally found this repository with examples on what I wanted to accomplish: <a href="https://github.com/Azure/azure-webpubsub/blob/main/samples/functions/js/simplechat-wpscontext/connected/index.js" rel="nofollow noreferrer">https://github.com/Azure/azure-webpubsub/blob/main/samples/...
Client permissions on serverless Azure Web PubSub
azure|azure-functions|azure-web-pubsub
0
60
1
72,253,285
72,253,285
0
true
2022-05-11T19:04:36.417Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Client permissions on serverless Azure Web PubSub<p>I've successfully followed the <a href="https://docs.microsoft.com/en-us/azure/azure-web-pubsub/quickstar...
72,236,316
How to get attribute of dynamically generated element ASP.NET<p>I know there are tons of questions on this topic and I've tried many of them to no avail. If anyone has any suggestions, it would be greatly appreciated. I'm trying to get the inputs' id attribute. I've stripped the code to just focus on the issue.</p> <p>...
<p>In your click event, <code>this</code> represents the whole Window so that it cannot find your clicked element.</p> <p>Change your js to:</p> <pre><code>@for (var i = 0; i &lt; Model.DieRouteChecks.Count; i++) { &lt;div class=&quot;col-9&quot;&gt; &lt;div class=&quot;form-group newThresholdInput&quot;&gt...
How to get attribute of dynamically generated element ASP.NET
javascript|jquery|razor|asp.net-core-mvc
0
58
1
72,253,872
72,253,872
0
true
2022-05-13T23:43:58.207Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get attribute of dynamically generated element ASP.NET<p>I know there are tons of questions on this topic and I've tried many of them to no avail. If ...
72,232,655
How to Capitalize the First Letter of the Kendo-DatePicker format in Angular?<p>I have a kendo-datepicker and it's always displaying the format in the field like following. <a href="https://i.stack.imgur.com/uvELT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uvELT.png" alt="enter image description...
<p>It's fixed by overriding the <strong>k-input</strong> CSS class.</p> <pre><code> :host::ng-deep .k-input { text-transform: capitalize; } </code></pre>
How to Capitalize the First Letter of the Kendo-DatePicker format in Angular?
angular|kendo-ui|format|kendo-datepicker
0
41
2
72,254,231
72,254,231
0
true
2022-05-13T16:22:12.143Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to Capitalize the First Letter of the Kendo-DatePicker format in Angular?<p>I have a kendo-datepicker and it's always displaying the format in the field ...
72,229,341
Extract WebClient GET response values within a Spring Cloud Gateway filter<p>My end goal with this is to implement a way to make composite API calls within the body of a gateway route filter. I have a very basic demo application running on port <code>9000</code> and exposing a few endpoints. Here is the REST controller...
<p>Thanks to the advice of <a href="https://stackoverflow.com/users/1840146/toerktumlare">Toerktumlare</a>, I was able to make it work properly. Here's the entire filter for reference:</p> <pre class="lang-java prettyprint-override"><code>import org.springframework.beans.factory.annotation.Autowired; import org.springf...
Extract WebClient GET response values within a Spring Cloud Gateway filter
java|spring-webflux|spring-cloud-gateway|spring-webclient|spring-mono
0
525
1
72,255,481
72,255,481
0
true
2022-05-13T12:06:06.443Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Extract WebClient GET response values within a Spring Cloud Gateway filter<p>My end goal with this is to implement a way to make composite API calls within t...
72,228,908
Matplotlib graph with multiple y axis shows and doesn't save<p>I am plotting a graph with 3 y axis, and it shows in the plot window of Spyder instead of saving correctly in a folder. The graph saved in a folder is blank. Here's my code :</p> <pre><code>fig, ax1 = plt.subplots() ax2 = ax1.twinx() ax3 = ax1.twinx() plt.f...
<p>I found what went wrong : I stead of writing <code>fig = plt.figure(figsize=(121, 75)) fig, ax1 = plt.subplots()</code>, I had to write <code>fig, ax1 = plt.subplots(figsize=(121, 75))</code> The graph then plots at the size indicated, and doesn't shows in the window of Spyder.</p>
Matplotlib graph with multiple y axis shows and doesn't save
python|matplotlib|plot
0
81
2
72,255,641
72,255,641
0
true
2022-05-13T11:33:29.360Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Matplotlib graph with multiple y axis shows and doesn't save<p>I am plotting a graph with 3 y axis, and it shows in the plot window of Spyder instead of savi...
72,228,618
Symfony5: Recommended pattern for using DataTransformers within Entities<p>I am currently trying to make our Symfony project type-safe and thereby refactoring it a bit, because it uses some anti-patterns here and there. My problem is that I cannot come up with a good pattern for transforming entity properties. Let me e...
<p>I found my problem: Our Entities are instantiated manually (i.e. by calling something like <code>new LanguageTranslation()</code>), so Symfony cannot instantiate the required services for these Entities.</p> <p>I have decided to extract the import/export logic (i.e. <code>toArray</code> and <code>fromArray</code>) f...
Symfony5: Recommended pattern for using DataTransformers within Entities
php|symfony|autowired
0
34
1
72,255,681
72,255,681
0
true
2022-05-13T11:09:39.103Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Symfony5: Recommended pattern for using DataTransformers within Entities<p>I am currently trying to make our Symfony project type-safe and thereby refactorin...
72,214,435
How to do 1 URL re-write rule for multiple ids?<p>I have these URLs:</p> <p><a href="https://www.example.com/amp/articles/10/title" rel="nofollow noreferrer">https://www.example.com/amp/articles/10/title</a></p> <p><a href="https://www.example.com/amp/videos/11/title" rel="nofollow noreferrer">https://www.example.com/a...
<p><strong>My rule is correct. I figured out I had to place it before other article rules, for priority, for the rule to take effect.</strong></p> <p>From microsoft: The rules are evaluated in the same order in which they are specified.</p> <p>Reference: <a href="https://docs.microsoft.com/en-us/iis/extensions/url-rewr...
How to do 1 URL re-write rule for multiple ids?
asp.net|url-rewriting|web-config|amp-html
0
61
1
72,255,864
72,255,864
0
true
2022-05-12T11:06:11.597Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to do 1 URL re-write rule for multiple ids?<p>I have these URLs:</p> <p><a href="https://www.example.com/amp/articles/10/title" rel="nofollow noreferrer"...
72,158,497
Nginx constant writes causes CPU I/O wait<p>I'm running nginx/1.20.1 on a G9 CentOS 7 machine for serving static video files with the following specs:</p> <ul> <li>32 cores of CPU</li> <li>32GB of RAM</li> <li>6TB of HDD storage</li> </ul> <p>Nginx config:</p> <pre><code>user root; worker_processes auto; error_log /va...
<p>The problem was the missing Nginx <code>multi_accept</code> directive. Since we were serving video files and they were typically huge by size, Nginx couldn't respond to new connections if it was serving video files to some users.</p> <p>Adding <code>multi_accept on</code> to the <code>events</code> block solved the ...
Nginx constant writes causes CPU I/O wait
nginx|iowait
0
199
2
72,255,869
72,255,869
0
true
2022-05-08T05:57:00.553Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Nginx constant writes causes CPU I/O wait<p>I'm running nginx/1.20.1 on a G9 CentOS 7 machine for serving static video files with the following specs:</p> <...
72,220,131
usleep in Swifter degrades overtime<p>I have the following server:</p> <pre><code>import SwiftUI import Swifter @main struct MacInputServer: App { let server: HttpServer; var body: some Scene { WindowGroup { ContentView() } } func sleep(req: HttpRequest) -&gt; HttpResponse...
<p>Well looks like it's swifter's fault - in HttpServerIO.swift it dispatches the requests to global queue like this:</p> <p><code>DispatchQueue.global(qos: priority).async</code></p> <p>Replacing it with</p> <p><code>DispatchQueue.init(label: &quot;httpserver&quot;, qos: DispatchQoS.userInteractive)</code></p> <p>Fixe...
usleep in Swifter degrades overtime
swift
0
33
1
72,255,937
72,255,937
0
true
2022-05-12T17:51:51.287Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: usleep in Swifter degrades overtime<p>I have the following server:</p> <pre><code>import SwiftUI import Swifter @main struct MacInputServer: App { let s...
72,227,170
Powershell Azure Function Fails<p>First and foremost I'm new to Azure Functions and have only been working with it for a couple of weeks, so please bear with me. I was tasked with taking one of our Powershell script that gets users and licenses from our Office 365 Tenants, output them to CSV and then email them to a m...
<p>So it seems like I may have found the issue myself, however it doesn't really explain what exactly is going on, but it seems to be related to Generating the &quot;Graph Access Tokens&quot; to access Office 365 itself.</p> <p>After some playing around last week, I got to a point where I was no longer able to run the ...
Powershell Azure Function Fails
azure|powershell|azure-functions
0
74
1
72,256,120
72,256,120
0
true
2022-05-13T09:15:34.100Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Powershell Azure Function Fails<p>First and foremost I'm new to Azure Functions and have only been working with it for a couple of weeks, so please bear with...
72,226,668
Open CV snap points to a rectangle of a specific size<p>I am attempting to detect an image of a certain type on a page of degraded quality, that has rotational and translational variance. I need to &quot;cropped&quot; the detected image out of the page, so I will need the rotation and coords of the detected image. For ...
<p>I stumbled on a post that show you how to extract the minimum bounding box from a set of points. This works really well as it also discloses the rotation.</p> <pre><code>def detect_ICP(img, frame, detector): frame = frame.copy() kp1, desc1 = detector.detectAndCompute(img, None) kp2, desc2 = detector.detectAndCompute...
Open CV snap points to a rectangle of a specific size
opencv|object-detection|sift|surf
0
71
1
72,256,137
72,256,137
0
true
2022-05-13T08:35:51.697Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Open CV snap points to a rectangle of a specific size<p>I am attempting to detect an image of a certain type on a page of degraded quality, that has rotation...
72,219,067
Find index of element within a list of elements with the same class<p>I have a div:</p> <pre><code>&lt;div class=&quot;container&quot;&gt; &lt;div class=&quot;info&quot; style=&quot;display:block;&quot;&gt;&lt;/div&gt; &lt;div class=&quot;result-image-slides&quot;&gt;&lt;/div&gt; &lt;div class=&quot;result-...
<p>Since it's been a few days and no answer has been provided that corrects this issue, I will add this as the answer.</p> <pre><code>var arr = []; var slideIndex = 0; arr = $(this).siblings('div.result-image-slides'); for (var i = 0; i &lt; arr.length; i++) { if (arr[i].style.display == 'block') { slideIn...
Find index of element within a list of elements with the same class
html|jquery
0
36
2
72,256,345
72,256,345
0
true
2022-05-12T16:20:36.770Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Find index of element within a list of elements with the same class<p>I have a div:</p> <pre><code>&lt;div class=&quot;container&quot;&gt; &lt;div class=...
72,232,911
JetBrains rider IDE => Hosting Environment<p><a href="https://i.stack.imgur.com/5P8ri.png" rel="nofollow noreferrer">enter image description here</a>I am trying to move from Visual Studio 2022 to JetBrains rider with my .NET full-stack project.</p> <p>I am using Webpack for my front-end side if it gives anyone a clue (...
<p>You're mixing up two things: ASP.NET vs. ASP.NET Core. The environment variable <code>ASPNETCORE_ENVIRONMENT</code> is used by ASP.NET Core, whereas the method <code>HostingEnvironment.IsDevelopmentEnvironment</code> is only part of old ASP.NET.</p> <p>As you already discovered, you have to set <code>DEV_ENVIRONMENT...
JetBrains rider IDE => Hosting Environment
c#|.net|webpack|configuration|rider
0
261
2
72,256,541
72,256,541
0
true
2022-05-13T16:44:32.183Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JetBrains rider IDE => Hosting Environment<p><a href="https://i.stack.imgur.com/5P8ri.png" rel="nofollow noreferrer">enter image description here</a>I am try...
72,226,547
404 Problem with Sapper on github pages using a custom domain<p>I have been trying to get my portfolio working on Github Pages with a custom domain, I have build everything with Sapper / Svelte. Locally everything works great, but when I deploy the site, I get my 404 error page when first loading the domain, if I then ...
<p>After looking into the issue with colleagues, turns out that the problem was slightly different.</p> <p>For custom domain, no base path adjustments need to be made. So no url in server.js and no --basepath in package.json.</p> <p>The reason it did not update was because my gh-pages.js still used the wrong sapper exp...
404 Problem with Sapper on github pages using a custom domain
deployment|github-pages|svelte|domain-name|sapper
0
36
1
72,256,570
72,256,570
0
true
2022-05-13T08:26:48.577Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: 404 Problem with Sapper on github pages using a custom domain<p>I have been trying to get my portfolio working on Github Pages with a custom domain, I have b...
72,211,606
ftrace cannot trace some kernel functions<p>I'm using ftrace to trace ip_local_out() in kernel 5.4.20.</p> <p>I'm sure ip_local_out() is available to trace:</p> <pre><code>/sys/kernel/debug/tracing # cat available_filter_functions |grep ip_local_out __ip_local_out ip_local_out </code></pre> <p>So I set up ftrace and st...
<p>After a week's experiment, I finally find the reason: ip_local_out() was auto-inlined! When I use noinline attribute like this:</p> <pre><code>noinline int ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) { int err; err = __ip_local_out(net, sk, skb); if (likely(err == 1))...
ftrace cannot trace some kernel functions
linux|debugging|linux-kernel|ftrace
0
108
1
72,256,581
72,256,581
0
true
2022-05-12T07:27:51.577Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ftrace cannot trace some kernel functions<p>I'm using ftrace to trace ip_local_out() in kernel 5.4.20.</p> <p>I'm sure ip_local_out() is available to trace:<...
72,208,586
How can I upload the data to my p-multiSelect?<p>I'm working with the primeNG component, but I can't load the data.</p> <p><a href="https://i.stack.imgur.com/hxNuC.png" rel="nofollow noreferrer">MultiSelect</a></p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div cla...
<p>I see that you set <code>description</code> as <code>optionLabel</code>, but the data don't have this key.</p> <p>Moreover, PrimeNG said this: <a href="https://i.stack.imgur.com/6px1e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6px1e.png" alt="enter image description here" /></a></p> <p><code>...
How can I upload the data to my p-multiSelect?
angular|primeng
0
77
1
72,256,928
72,256,928
0
true
2022-05-11T23:24:34.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I upload the data to my p-multiSelect?<p>I'm working with the primeNG component, but I can't load the data.</p> <p><a href="https://i.stack.imgur.com...
72,188,714
Add record for each array elements if missing in table<p>I feel like I need a little push to break through this one.</p> <p>I have this array of players <code>$playerids = ['1', '2', '3', '4'] </code></p> <p>I have this array of periods <code>$periods = ['March 2022', 'April 2022', 'May 2022'] </code></p> <p>I have a t...
<p>After 5 days of refusing to let go, I have come up with this :)</p> <p>Step 1 - Create a reference table with all periods for each player</p> <pre><code>$reference = $mysqli-&gt;query(&quot;create temporary table reference (periodid int(3), period varchar(15), playerid int, score int); &quot;); foreach ($playerids ...
Add record for each array elements if missing in table
php|mysql
0
31
1
72,257,110
72,257,110
0
true
2022-05-10T15:01:37.820Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Add record for each array elements if missing in table<p>I feel like I need a little push to break through this one.</p> <p>I have this array of players <cod...
72,232,636
How can i Change tab item Content on Xamarin forms shell<p>I need to change one of my tabs' content depending on the condition of the user logged in or just a guest this is my shell</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt; &lt;Shell xmlns=&quot;http://xamarin.com/schemas/2014/for...
<p>There are many methods to achieve this.</p> <p>1.You can save your user information first and access the information once page <code>AccountDetails</code> appears.</p> <p>For example, you can use <a href="https://docs.microsoft.com/en-us/xamarin/essentials/secure-storage?context=xamarin%2Fandroid&amp;tabs=android" ...
How can i Change tab item Content on Xamarin forms shell
c#|shell|xaml|xamarin|xamarin.forms
0
178
2
72,257,133
72,257,133
0
true
2022-05-13T16:20:34.510Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can i Change tab item Content on Xamarin forms shell<p>I need to change one of my tabs' content depending on the condition of the user logged in or just ...
72,218,819
How to group data list from Preferences in Xamarin<p>I have lists of Order information stored in Preferences as follows:</p> <pre><code>public class CartUser { public int IDProduct { get; set; } public string NameProduct { get; set; } public string SupplierID { get; set; } } </code></pre> <p>I want ...
<p>We need to set the template for group header, try the code below .</p> <pre class="lang-cs prettyprint-override"><code> &lt;CollectionView ItemsSource=&quot;{Binding SupplierList}&quot; IsGrouped=&quot;true&quot;&gt; &lt;CollectionView.GroupHeaderTemplate&gt; &lt;DataTemplate&gt; ...
How to group data list from Preferences in Xamarin
xamarin.forms
0
76
1
72,257,166
72,257,166
0
true
2022-05-12T16:03:32.123Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to group data list from Preferences in Xamarin<p>I have lists of Order information stored in Preferences as follows:</p> <pre><code>public class CartUser...
72,229,878
Angular/Leaflet/OpenStreetMap - clicking on pin for pop-up throws error about an already defined service variable, doesn't display binded pop-up<p>The error appears in the browser, when I click on any pin. No pop-up is displayed, nothing happens, just the error in the console.</p> <p><a href="https://i.stack.imgur.com/...
<p>This is the correct answer after some modifications:</p> <pre><code>import { Component, OnInit } from '@angular/core'; import * as L from 'leaflet'; import { PowerPlantService } from 'src/app/services/power-plant.service'; import { PowerPlant } from 'src/app/models/power-plant.model'; import { Observable } from 'rxj...
Angular/Leaflet/OpenStreetMap - clicking on pin for pop-up throws error about an already defined service variable, doesn't display binded pop-up
javascript|angular|typescript|leaflet|popup
0
215
2
72,257,242
72,257,242
0
true
2022-05-13T12:48:18.590Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Angular/Leaflet/OpenStreetMap - clicking on pin for pop-up throws error about an already defined service variable, doesn't display binded pop-up<p>The error ...
72,224,857
Compilation deep learning model is important if we unfreez the layers for fientuneing?<p>I am classifying a medical images dataset into <em><strong>normal vs abnormal</strong></em> where I am applying transfer learning with <code>ResNet50v2</code>. I did a little change in the last layer and then for finetuning I unfr...
<p>Thank you @Noltibus for your answer but at that time I was looking for some technical details which I explored now and I am sharing my experiences here.</p> <p>First thing first, we have two types of training while we use pre-trained <code>models</code> trained on <code>imagenet</code> dataset.</p> <p><strong>&gt; C...
Compilation deep learning model is important if we unfreez the layers for fientuneing?
python|tensorflow|keras|model|classification
0
26
2
72,257,287
72,257,287
0
true
2022-05-13T05:34:36.127Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Compilation deep learning model is important if we unfreez the layers for fientuneing?<p>I am classifying a medical images dataset into <em><strong>normal v...
72,213,596
Change borderBottomColor of MUI TextField when input is filled<p>I'm creating a form using MUI, by default <strong>TextField</strong> bottom border is grey, blue on focus then again grey on focus loss. I aiming to make it not lose blue color after filling the field:</p> <p><a href="https://i.stack.imgur.com/qYpq9.png" ...
<p>Solved this by simply passing sx with conditional styles to TextField.</p> <pre><code> sx={{ &quot;&amp; .MuiInput-underline::before&quot;: textInputValue !== &quot;&quot; ? { borderBottomColor: &quot;blue&quot; } : { borderBottomColor: &quot;grey&quot; }, }} </code></pre>
Change borderBottomColor of MUI TextField when input is filled
css|reactjs|material-ui|material-design
0
150
1
72,257,542
72,257,542
0
true
2022-05-12T10:01:27.580Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Change borderBottomColor of MUI TextField when input is filled<p>I'm creating a form using MUI, by default <strong>TextField</strong> bottom border is grey, ...
72,211,707
YouTube Playlist inside a Page with x-amount of videos<p>I want to display a YouTube Playlist, where i have the main/current selected video in the top and x-amount of videos of that playlist underneath it.</p> <p>Sadly it seems to stop inside the function loadVids right before $.getJSON, but i cant seem to find the err...
<p>When downloading and including jQuery instead of using it from external source, the problem is gone. Get it from here and make sure to get the compressed production version: <a href="https://jquery.com/download/" rel="nofollow noreferrer">https://jquery.com/download/</a></p>
YouTube Playlist inside a Page with x-amount of videos
javascript|youtube-api
0
147
1
72,257,644
72,257,644
0
true
2022-05-12T07:37:02.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: YouTube Playlist inside a Page with x-amount of videos<p>I want to display a YouTube Playlist, where i have the main/current selected video in the top and x-...
72,182,593
Make FileAlterationListenerAdaptor.onFileCreate() always single thread, apache.commons.io.monitor<p>I'm overriding the <code>onFileCreate()</code> method of the <code>org.apache.commons.io.monitor.FileAlterationListener</code> interface.</p> <p>The method works, but I found that sometimes it spawns two threads and I do...
<p>I removed the SprigBoot <code>@Bean</code> notation over my <code>startFolderPolling</code> method and now only one thread is created.</p>
Make FileAlterationListenerAdaptor.onFileCreate() always single thread, apache.commons.io.monitor
java|spring-boot|resttemplate|apache-commons|monitor
0
87
1
72,257,994
72,257,994
0
true
2022-05-10T07:55:14.367Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Make FileAlterationListenerAdaptor.onFileCreate() always single thread, apache.commons.io.monitor<p>I'm overriding the <code>onFileCreate()</code> method of ...
72,185,725
How to identify groups of interindividual revisitation?<p>I have an output data frame from the &quot;recurse&quot; package calculating the revisitation rate of several individuals based on GPS points. In the data frame I have 18 columns, including &quot;site&quot; and &quot;id&quot;, and &gt; 43,000 rows.</p> <p>I have...
<p>Okay, I found a work-around. Might not be the most elegant, but in case someone has the same question:</p> <p>I used again <code>dplyr</code> and collapsed all the ids per group to then group it by the new group:</p> <pre><code>df &lt;- filtered2 %&gt;% group_by(site) %&gt;% mutate(groups = paste0(id, collapse...
How to identify groups of interindividual revisitation?
r|grouping|cluster-analysis
0
25
1
72,258,017
72,258,017
0
true
2022-05-10T11:44:43.257Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to identify groups of interindividual revisitation?<p>I have an output data frame from the &quot;recurse&quot; package calculating the revisitation rate ...
72,229,394
catch git output from flask<p>I'm trying to roll out a quickie flask app to get git statistics from a certain repo for coworkers to see.</p> <pre><code>import os, sys from flask import Flask, Response app = Flask(__name__) @app.route('/git') def zooi(): out = os.popen('git -C /mygitrepo status').read() retu...
<p>it's working with subprocess.check_output:</p> <pre><code>m = subprocess.check_output('git status', shell=False) </code></pre> <p>note that shell must be set to False</p>
catch git output from flask
python|flask
0
39
1
72,258,254
72,258,254
0
true
2022-05-13T12:10:20.880Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: catch git output from flask<p>I'm trying to roll out a quickie flask app to get git statistics from a certain repo for coworkers to see.</p> <pre><code>impor...
72,174,634
MapStruct - Map Generic List to Non-Generic List containing different types<p>I am attempting to use MapStruct to convert between 2 internal models. These models are generated from the same specification and represent a large tree-like structure that is constantly being added to. The goal of using MapStruct is to have ...
<p>Based on suggestions by @chrylis -cautiouslyoptimistic-, I managed to successfully accomplish the mapping by using Jackson to perform the mapping directly from type to type, but that is tangential to the MapStruct problem. I was able to accomplish the stated goal of mapping a generic list to a non-generic list by ad...
MapStruct - Map Generic List to Non-Generic List containing different types
java|generics|mapping|mapstruct
0
110
1
72,258,439
72,258,439
0
true
2022-05-09T15:38:08.283Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MapStruct - Map Generic List to Non-Generic List containing different types<p>I am attempting to use MapStruct to convert between 2 internal models. These mo...
72,168,159
IP tables TEE command changes source mac address<p>I am trying to forward/clone traffic from my host machine to my docker container using IPtables command.</p> <p>I am able to receive traffic inside my container via iptables TEE command. However, this command changes the ethernet header by replacing SRC ethernet mac wi...
<ol> <li><p>IPtables operate at the network layer and route the packet from the host where the rules were added. Therefore, we cannot avoid update of the source mac. I've tried using TPROXY, FORWARD, ACCEPT. Found the documentation for this at <a href="https://ipset.netfilter.org/iptables-extensions.man.html#lbDU" rel=...
IP tables TEE command changes source mac address
linux|docker|networking|iptables
0
15
1
72,258,672
72,258,672
0
true
2022-05-09T07:11:05.407Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: IP tables TEE command changes source mac address<p>I am trying to forward/clone traffic from my host machine to my docker container using IPtables command.</...
72,180,634
ARM - Create Key Vault via private endpoint using existing VNet / Subnet<p>I am trying to Create a Key Vault via private endpoint - &quot;using existing VNet/Subnet&quot; using ARM custom template. The QuickStart template available in Azure creates a new VNet/Subnet it does not have option of using already created Vnet...
<blockquote> <p>Is their a way to create it in already existing Vnet ?</p> </blockquote> <p>As per above discussion with <a href="https://stackoverflow.com/users/662285/bokambo">Bokambo</a>, adding gist as a community wiki answer to help community members who might face a similar issue.</p> <p>You can add <code>subnetR...
ARM - Create Key Vault via private endpoint using existing VNet / Subnet
azure|azure-resource-manager|azure-keyvault
0
83
1
72,258,764
72,258,764
0
true
2022-05-10T04:05:23.333Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ARM - Create Key Vault via private endpoint using existing VNet / Subnet<p>I am trying to Create a Key Vault via private endpoint - &quot;using existing VNet...
72,224,140
How to create a Slanted wall with Revit API?<p>Im trying to develop script for myself in dynamo(Revit 2021), but I don't understand how can I create the slanted wall? According to this <a href="https://thebuildingcoder.typepad.com/blog/2020/04/whats-new-in-the-revit-2021-api.html#4.1.9" rel="nofollow noreferrer">blog o...
<p>So I figured it out on my own. If anybody have the same question, there is a cod:</p> <pre><code># Points p_tp_1_1 = XYZ(x_tp_1_1, y_tp1, levels.get_Parameter(BuiltInParameter.LEVEL_ELEV).AsDouble() + size_of_batten_1v_width) p_tp_1_2 = XYZ(x_tp_1_2, y_tp1, levels.get_Parameter(BuiltInParameter.LEVEL_ELEV).AsDoubl...
How to create a Slanted wall with Revit API?
python|revit-api
0
96
2
72,258,818
72,258,818
0
true
2022-05-13T03:27:17.633Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to create a Slanted wall with Revit API?<p>Im trying to develop script for myself in dynamo(Revit 2021), but I don't understand how can I create the slan...
72,214,462
Javascript Autocomplete doesn't clear suggestion with no input<p>I watched a tutorial on how to use Javascript with Autocomplete using a JSON file and Fetch. Everything works fine; except for the following:</p> <ul> <li>If I clear the input, it shows all of the results in the file. I have included a comment in the code...
<p>I played around with the code and researched it. I had to separate the code into two events. The one that was missing was when the DOM is loaded, then grab a list of states. Here is the revised code:</p> <pre><code>const search = document.getElementById('search'); const matchList = document.getElementById('match-lis...
Javascript Autocomplete doesn't clear suggestion with no input
javascript|json|autocomplete
0
40
2
72,259,119
72,259,119
0
true
2022-05-12T11:08:13.937Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Javascript Autocomplete doesn't clear suggestion with no input<p>I watched a tutorial on how to use Javascript with Autocomplete using a JSON file and Fetch....
72,221,601
Delphi 10 Seattle IDE assertion failure when debugging project<p>I'm working on a project using Delphi 10 Seattle with Update 1. It's a new installation on a Windows 10(64bit) box.</p> <p>When I debug the program, I get this strange error dialog:</p> <pre><code>--------------------------- Error ------------------------...
<p>The security software CyberArk APM was causing the problem, after adding bds.exe to exclusion list solved the issue.</p>
Delphi 10 Seattle IDE assertion failure when debugging project
delphi
0
93
1
72,259,224
72,259,224
0
true
2022-05-12T20:13:50.313Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Delphi 10 Seattle IDE assertion failure when debugging project<p>I'm working on a project using Delphi 10 Seattle with Update 1. It's a new installation on a...
72,226,380
Spring boot authorization issue with fetching roles from Azure AD auth server<p>As per this we implemented Spring boot auth with Azure AD: <a href="https://ordina-jworks.github.io/security/2020/08/18/Securing-Applications-Azure-AD.html" rel="nofollow noreferrer">https://ordina-jworks.github.io/security/2020/08/18/Secur...
<ul> <li>Sometimes token is an access token may not be for your app. The roles you are looking for can be present in the id token.</li> <li>Please make sure to check both id token and access token in authentication blade or try by checking both individually.</li> </ul> <p><a href="https://i.stack.imgur.com/xy36E.png...
Spring boot authorization issue with fetching roles from Azure AD auth server
spring-boot|azure-active-directory|openid-connect
0
212
1
72,259,293
72,259,293
0
true
2022-05-13T08:12:23.813Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Spring boot authorization issue with fetching roles from Azure AD auth server<p>As per this we implemented Spring boot auth with Azure AD: <a href="https://o...
72,183,457
Pandas Rolling window to calculate sum of the same items of the last n days<p>Following up with <a href="https://stackoverflow.com/questions/71952088/pandas-rolling-window-to-count-the-frequency-fastest-approach">this question</a>, now I would like to calculate the sum/mean of a different column given the same grouping...
<p>This answer is based on @jezrael post so thank you very much for it. The difference is that this solution</p> <ol> <li>uses left join to make sure we won't be changing the shape of the original data</li> <li>filters out the duplicates in case there are the same ['Date', 'Name'] in the data.</li> </ol> <pre><code>def...
Pandas Rolling window to calculate sum of the same items of the last n days
python|pandas|dataframe|time|rolling-computation
0
430
2
72,259,443
72,259,443
0
true
2022-05-10T09:02:39.153Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pandas Rolling window to calculate sum of the same items of the last n days<p>Following up with <a href="https://stackoverflow.com/questions/71952088/pandas-...
72,204,314
Qwt: log scale and ticks every 10th of a decade<p>I made a QwtPlot with an x log scale and a y linear scale. The x axis range is fixed from 10 to 1000, i.e. 3 decades. A added a grid with major and minor divisions.</p> <p>The problem : the minor ticks fall at some automatically calculated positions.</p> <p>What I want ...
<p>I figured it out. In a subclass of QwtPlot :</p> <pre><code>setAxisAutoScale(QwtPlot::xBottom, false); xlogScale = new QwtLogScaleEngine(); QwtScaleDiv xDiv = xlogScale-&gt;divideScale(10.0, 1000.0, 2, 10, 1.0); setAxisScaleEngine(QwtPlot::xBottom, xlogScale); setAxisScaleDiv(QwtPlot::xBottom, xDiv); </code></pre> <...
Qwt: log scale and ticks every 10th of a decade
logging|scale|qwt
0
48
1
72,259,516
72,259,516
0
true
2022-05-11T16:10:30.503Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Qwt: log scale and ticks every 10th of a decade<p>I made a QwtPlot with an x log scale and a y linear scale. The x axis range is fixed from 10 to 1000, i.e. ...
72,235,844
Why is Buffer assignment triggering an unsafe assignment error?<p>I have a TypeScript project that is leveraging ESLint. I have a class that utilizes a <a href="https://nodejs.org/api/buffer.html#buffer" rel="nofollow noreferrer">Buffer</a> as a class attribute. I want to be able to set the buffer as part of construc...
<p>Silly me!</p> <p>The issue is that I had not added <code>@types/node</code> as a project dependency. Since <code>Buffer</code> exists within Node (rather than TypeScript) the type was not defined when linting without that addition.</p> <p>Running <code>yarn add --dev @types/node</code> (or <code>npm install @types/...
Why is Buffer assignment triggering an unsafe assignment error?
node.js|typescript|eslint
0
53
1
72,260,319
72,260,319
0
true
2022-05-13T22:10:56Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is Buffer assignment triggering an unsafe assignment error?<p>I have a TypeScript project that is leveraging ESLint. I have a class that utilizes a <a h...
72,226,428
Command is run before the previous one is finished<p>Consider the following <code>Dockerfile</code>. It attempts to install Visual Studio Build Tools by downloading, installing, and then deleting the installer in a single <code>RUN</code> command.</p> <pre><code>FROM mcr.microsoft.com/windows/servercore:ltsc2022 SHELL...
<p>A workaround is to use <code>cmd</code> instead of <code>powershell</code>.</p> <p>Both the following approaches work:</p> <pre><code>RUN Invoke-WebRequest \ -Uri https://aka.ms/vs/17/release/vs_buildtools.exe \ -OutFile vs_buildtools.exe; \ cmd /c &quot;vs_buildtools.exe --nocache --norestart --...
Command is run before the previous one is finished
docker|powershell|dockerfile
0
68
1
72,260,349
72,260,349
0
true
2022-05-13T08:17:26.987Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Command is run before the previous one is finished<p>Consider the following <code>Dockerfile</code>. It attempts to install Visual Studio Build Tools by down...
72,227,945
Databricks DataLakeFileClient Returns Error<p>I have a databricks notebook running every 5 mins, part of the functionality is to connect to a file in Azure Data Lake Storage Gen2 (ADLS Gen2).</p> <p>I get the following error in the code, but it seems to have &quot;come out of nowhere&quot; as the process was previously...
<p>For some reason, after restarting the cluster, something changed and the following &quot;endpoint suffix&quot; was required for this to continue working, couldn't find any docs on why it would work without this, but until a few days ago, it had always worked:</p> <pre><code>&quot;DefaultEndpointsProtocol=https;Accou...
Databricks DataLakeFileClient Returns Error
azure|databricks|azure-data-lake
0
54
1
72,260,755
72,260,755
0
true
2022-05-13T10:16:58.613Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Databricks DataLakeFileClient Returns Error<p>I have a databricks notebook running every 5 mins, part of the functionality is to connect to a file in Azure D...
72,227,968
troubleshooting ansible SSH can't reach a root cause<p>I'm having issues running some playbooks where I define ansible_user_ssh=root in the command line and the ssh command through ansible, returns permission denied.</p> <pre><code>HOST | UNREACHABLE! =&gt; { &quot;changed&quot;: false, &quot;msg&quot;: &quot;F...
<p>the issue was still related with key share. found out that a key has changed (someone ran keygen by mistake) the keys between the ansible user and root user wasn't correct.</p>
troubleshooting ansible SSH can't reach a root cause
ansible
0
123
2
72,260,858
72,260,858
0
true
2022-05-13T10:18:58.843Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: troubleshooting ansible SSH can't reach a root cause<p>I'm having issues running some playbooks where I define ansible_user_ssh=root in the command line and ...
72,218,870
Why would hibernate not close its session after select query?<p>When calling the following method 10 times there are 11 open sessions on the database:</p> <pre><code>public void readHsql() { SessionFactory sessionFactory = getSessionFactory(); if (sessionFactory != null) { try (Session sessi...
<p>Since getSessionFactory() is the only part not under control of hibernate I checked this one and found out that my implementation was not thread safe and under some circumstances returned multiple session factory instances for the same target which resulted in a growing number of sessions.</p>
Why would hibernate not close its session after select query?
hibernate|session|select
0
45
1
72,260,876
72,260,876
0
true
2022-05-12T16:06:57.167Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why would hibernate not close its session after select query?<p>When calling the following method 10 times there are 11 open sessions on the database:</p> <p...
72,192,958
Avoid hearing my own voice on PlayFab Party Voice Unity SDK with Photon - PUN 2<p>I have tested one user on Windows and the other on Android Device. I went away from my computer for making sure that my Laptop does not receive any audio. When I talk on my Android Device, I can hear my own voice and vice-versa. I think t...
<p>In any case If you could not find it out, here is how I solved it:</p> <p><a href="https://community.playfab.com/answers/62144/view.html" rel="nofollow noreferrer">Avoid hearing my own voice on PlayFab Party Voice Unity SDK with Photon - PUN 2</a></p>
Avoid hearing my own voice on PlayFab Party Voice Unity SDK with Photon - PUN 2
android|unity3d|multiplayer|photon|playfab
0
66
1
72,261,222
72,261,222
0
true
2022-05-10T21:07:53.590Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Avoid hearing my own voice on PlayFab Party Voice Unity SDK with Photon - PUN 2<p>I have tested one user on Windows and the other on Android Device. I went a...
72,203,848
Log into WSJ using Python requests<p>I am trying to log into the Wall Street Journal's website using the Python module <code>requests</code>. I know that other people on these boards here have successfully used Selenium to accomplish the same. However, I would like to understand the workflow for this process.</p> <p>Un...
<p>For what it's worth, I ended up going the Selenium way. It turned out that logging in manually and then snatching the session cookie (using <code>browser-cookie3</code>) and adding it to Selenium was much, much simpler and acceptable within the parameters of my project.</p>
Log into WSJ using Python requests
python|oauth-2.0|python-requests|requests-oauthlib
0
29
1
72,261,465
72,261,465
0
true
2022-05-11T15:36:44.867Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Log into WSJ using Python requests<p>I am trying to log into the Wall Street Journal's website using the Python module <code>requests</code>. I know that oth...
72,113,624
PFXExportCertStoreEx to export private and public keys<p>I have used PFXExportCertStoreEx API to successfully export public and private key of a RSA certificate from Windows key store. Can the same PFXExportCertStoreEx be used to export public and private keys of DSS and ECDSA certificates from the Windows key store? I...
<p>After days of analysis and discussions, finally I was able to identify the root cause. It is related to privileges. If I run with Admin privilege, I can use PFXExportCertStoreEx to extract keys for ECDSA certificate as well from the Local Machine certificate store. If you do not intend to use Admin privilege, just t...
PFXExportCertStoreEx to export private and public keys
windows|security|ecdsa|wincrypt
0
21
1
72,261,647
72,261,647
0
true
2022-05-04T13:16:47.150Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PFXExportCertStoreEx to export private and public keys<p>I have used PFXExportCertStoreEx API to successfully export public and private key of a RSA certific...
72,210,210
Microsoft Key Storage Provider get keys<p>I am trying to get the details of keys in Microsoft Key Storage Provider. For this I open the storage provider using the below API call: <code>NCryptOpenStorageProvider(&amp;prov, MS_KEY_STORAGE_PROVIDER, 0);</code> Then I call NCryptEnumKeys in a while loop to get the key deta...
<p>After days of analysis and discussions, finally I was able to identify the root cause. It is related to privileges. If I run with Admin privilege, I can extract keys for ECDSA certificate as well from the Local Machine certificate store. If you do not intend to use Admin privilege, just take the certificate manager ...
Microsoft Key Storage Provider get keys
c++|cng|microsoft-key-storage-provider
0
144
1
72,261,716
72,261,716
0
true
2022-05-12T04:41:30.580Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Microsoft Key Storage Provider get keys<p>I am trying to get the details of keys in Microsoft Key Storage Provider. For this I open the storage provider usin...
72,186,823
SSLHandshakeException in Eclipse Temurin JRE8 Alpine container for self-signed certificate<p>TL;DR: After installing my CA in a Docker container from image <code>eclipse-temurin:8-jre-alpine</code> I still get <em>javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure</em> when accessing an URL wi...
<p>After some deeper digging and some help by @JockX I found the actual issue: Java8 Temurin does not support any of the SSL cipher suites my internal app requires.</p> <p>As the same goes for @JockX's example <a href="https://jockx.net" rel="nofollow noreferrer">https://jockx.net</a> I'll use that site for the example...
SSLHandshakeException in Eclipse Temurin JRE8 Alpine container for self-signed certificate
docker|java-8|ssl-certificate|alpine-linux
0
800
2
72,262,143
72,262,143
0
true
2022-05-10T13:01:33.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SSLHandshakeException in Eclipse Temurin JRE8 Alpine container for self-signed certificate<p>TL;DR: After installing my CA in a Docker container from image <...
72,233,197
Intermittent 502 errors on local nginx-ingress router in microk8s cluster<p>I'm new to Kubernetes and am experiencing a weird issue with my nginx-ingress router. My cluster is run locally on a raspberry pi using Microk8s, where I have 4 different deployments. The cluster uses an ingress router to route packets for the ...
<p>Leaving this up if anyone has a similar issue. My issue was that in the ingress configuration, the backend services referenced the deployments themselves instead of a nodeport/clusterIP service.</p> <p>I instead created two cluster IP services for the UI and API, like follows:</p> <ul> <li>UI</li> </ul> <pre class="...
Intermittent 502 errors on local nginx-ingress router in microk8s cluster
http|kubernetes|nginx-ingress|microk8s
0
79
1
72,262,704
72,262,704
0
true
2022-05-13T17:09:36.393Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Intermittent 502 errors on local nginx-ingress router in microk8s cluster<p>I'm new to Kubernetes and am experiencing a weird issue with my nginx-ingress rou...
72,177,835
Bash Scripts (even trivial ones) stuck when invoked on the terminal<p>I have a server on which we execute multiple bash scripts to automate tasks (like copying files to other servers, kicking off backups, etc). It has been working for some months, but today it started to get erratic.</p> <p>What is happening, is that t...
<p>Issue solved, posting this as an answer so people can find it quicker.</p> <p>Turns out, as multiple users suggested in the comments (thanks to all!!) the problem was caused by a security monitor, which analyzed each of the scripts that were executed. The team changed some settings on that end to prevent it from hap...
Bash Scripts (even trivial ones) stuck when invoked on the terminal
bash|shell
0
73
1
72,262,898
72,262,898
0
true
2022-05-09T20:24:24.287Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Bash Scripts (even trivial ones) stuck when invoked on the terminal<p>I have a server on which we execute multiple bash scripts to automate tasks (like copyi...
72,204,844
Permission denied for virtual disk<p>I try</p> <pre><code>[root@host1 81936aba-1f00-4fac-a69b-dfd69d290c3d]# qemu-img info 6c96bc5c-b6ac-442d-8581-2fb89f3d9a10 </code></pre> <p>result:</p> <pre><code>qemu-img: Could not open '6c96bc5c-b6ac-442d-8581-2fb89f3d9a10': Could not open '6c96bc5c-b6ac-442d-8581-2fb89f3d9a10': ...
<pre><code>sudo -u vdsm -g kvm </code></pre> <p>solved my problem</p>
Permission denied for virtual disk
virtual-machine|qemu|kvm
0
46
1
72,263,576
72,263,576
0
true
2022-05-11T16:52:12.887Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Permission denied for virtual disk<p>I try</p> <pre><code>[root@host1 81936aba-1f00-4fac-a69b-dfd69d290c3d]# qemu-img info 6c96bc5c-b6ac-442d-8581-2fb89f3d9a...
72,188,752
Host heroku changes with each code loaded or when reloading the service<p>I have an application on heroku and I try to connect and fetch information from a remote database. I need to give permission on that remote database, informing the host, but every time I load new code in the heroku app, with heroku cli, or when i...
<p>If you have the % wildcard possibility, the solution is <code>%.amazonaws.com</code>, putting that as permissive host.</p>
Host heroku changes with each code loaded or when reloading the service
heroku|dns|host|heroku-cli|heroku-ci
0
60
1
72,263,889
72,263,889
0
true
2022-05-10T15:03:46.050Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Host heroku changes with each code loaded or when reloading the service<p>I have an application on heroku and I try to connect and fetch information from a r...
72,234,125
Office.Interop.Word - app.DisplayAlerts = WdAlertLevel.wdAlertsNone; Not Disabling Alerts<p>I'm trying to disable read-only alerts when opening word files in C#. I initially tried <code>app.DisplayAlerts = false</code>. This did not work and I believe it's because I have a newer version of word. Now, using <code>word.D...
<p>Have you considered opening the document readonly? That prevents the readonly alert. You have to pass the readonly:=true to the document.open method.</p>
Office.Interop.Word - app.DisplayAlerts = WdAlertLevel.wdAlertsNone; Not Disabling Alerts
c#|ms-word|office-interop|word-interop
0
95
1
72,264,490
72,264,490
0
true
2022-05-13T18:38:38.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Office.Interop.Word - app.DisplayAlerts = WdAlertLevel.wdAlertsNone; Not Disabling Alerts<p>I'm trying to disable read-only alerts when opening word files in...
72,235,994
Amazon EKS on public subnets<p><a href="https://docs.aws.amazon.com/eks/latest/userguide/creating-a-vpc.html" rel="nofollow noreferrer">This</a> article from AWS states that recommended production setup for EKS is a mix of private and public subnets. Unfortunately it does not explain the 'why'. What is wrong with the o...
<p>This <a href="https://stackoverflow.com/questions/22188444/why-do-we-need-private-subnet-in-vpc">SO</a> seems to actually answer my question:</p> <p>In particular the question in one of the comments:</p> <blockquote> <p>What is the advantage of a server on a private subnet with a NAT instance and a a server public s...
Amazon EKS on public subnets
amazon-web-services|kubernetes|amazon-vpc
0
342
1
72,264,718
72,264,718
0
true
2022-05-13T22:36:18.823Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Amazon EKS on public subnets<p><a href="https://docs.aws.amazon.com/eks/latest/userguide/creating-a-vpc.html" rel="nofollow noreferrer">This</a> article from...
72,234,218
JRuby - loading resource from classloader failed<p>I am running a <code>mvn install</code> goal with the plugin <code>gem-maven-plugin</code>, see below <code>pom.xml</code> -</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;de.saumya.mojo&lt;/groupId&gt; &lt;artifactId&gt;gem-maven-plugin&lt;/artifactId&gt; &lt;exec...
<p>This was caused by a corrupted JRuby <code>.jar</code> file, copied from a corrupt repository.</p> <p>Might help someone in the future.</p>
JRuby - loading resource from classloader failed
maven|jruby
0
55
1
72,264,964
72,264,964
0
true
2022-05-13T18:49:19.563Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JRuby - loading resource from classloader failed<p>I am running a <code>mvn install</code> goal with the plugin <code>gem-maven-plugin</code>, see below <cod...
72,233,802
Hasura Event trigger include foreign key data sent to webhook<p>I have a case management system that uses Hasura and would like to add the case number to the users record in a separate crm via a Zapier webhook.</p> <p>I have two tables, Cases and Users.</p> <p>The cases table has a foreign key (userID) to the users tab...
<p>Unfortunately the ability to include data from foreign key relationships as part of the event trigger is not currently supported by Hasura.</p> <p>You'd have to implement your own backend which would process the webhook first and then query extra data before sending it off to Zapier.</p> <p>I imagine that since you'...
Hasura Event trigger include foreign key data sent to webhook
webhooks|eventtrigger|hasura
0
99
1
72,265,859
72,265,859
0
true
2022-05-13T18:06:28.043Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Hasura Event trigger include foreign key data sent to webhook<p>I have a case management system that uses Hasura and would like to add the case number to the...
72,188,951
Unable to display GUI application from Windows container : Windows 2019 Server<p>I need to use Docker Windows containers for Windows applications to run on it. I build an image with Windows 2019 Server and installed x server for the display like the ubuntu image but it doesn't work .</p> <p>so Is there a way to acces...
<p>The short answer here is no. Windows containers don't have the underlying GUI components available, so you can't run any desktop application on Windows containers.</p> <p>The longer answer is that this depends on what you're trying to achieve. The actual components for the GUI (GUI APIs) are present on the Server Co...
Unable to display GUI application from Windows container : Windows 2019 Server
windows|docker|docker-compose|dockerfile|windows-container
0
1,325
1
72,266,005
72,266,005
0
true
2022-05-10T15:17:17.477Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unable to display GUI application from Windows container : Windows 2019 Server<p>I need to use Docker Windows containers for Windows applications to run on ...
72,231,685
Sending audio message with Twilio Conversations<p>I am trying to send audio message with twillio conversations. According to the documentation I should send a contentType and a media of type string or Buffer. The Buffer constructor is missing in JS so I used the following method to create a buffer: Here is my send mess...
<p>It looks as though you are working with the client side JS library, so using Node features like Buffers won't work.</p> <p>The <a href="https://www.twilio.com/docs/conversations/media-support-conversations#javascript" rel="nofollow noreferrer">media documentation</a> for the JS SDK says:</p> <blockquote> <p>For Java...
Sending audio message with Twilio Conversations
twilio|twilio-conversations
0
80
1
72,266,544
72,266,544
0
true
2022-05-13T15:03:31.350Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Sending audio message with Twilio Conversations<p>I am trying to send audio message with twillio conversations. According to the documentation I should send ...
72,237,072
Why is the value not assigned to a variable inside forEach in Angular?<p>how can I have the return of the variable &quot;this.qdDias&quot; assigned a value to it. I don't know why when I use subscribe I can't get the value at the end of the method. In this &quot;console.log(this.qdDias) &quot; I see the value, but it l...
<p>I resolved this that way:</p> <pre><code>Promise.resolve(2);         Promise.all([           this.service.obterParametrosgeraisMap()                 .then((lista: any) =&gt; {                     this.listParametrosGerais = lista.data;                 })             , this.service.obterParametrosEspecificosMap()  ...
Why is the value not assigned to a variable inside forEach in Angular?
angular|typescript
0
88
2
72,266,903
72,266,903
0
true
2022-05-14T03:18:32.153Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is the value not assigned to a variable inside forEach in Angular?<p>how can I have the return of the variable &quot;this.qdDias&quot; assigned a value t...
72,199,077
Is there any way to outout blank as &nbsp; in lxml or other python xml lib?<p>my code is:</p> <pre><code>&gt;&gt;&gt; from lxml.html import tostring, HtmlElement &gt;&gt;&gt; a = HtmlElement() &gt;&gt;&gt; a.tag = &quot;div&quot; &gt;&gt;&gt; a.text = &quot; &quot; &gt;&gt;&gt; tostring(a) b'&lt;div&gt; &lt;/div&gt;' <...
<p>I solved this problem by replace blank to '\xa0' (160 is <code>&amp;nbsp;</code> ascii code)</p>
Is there any way to outout blank as &nbsp; in lxml or other python xml lib?
python|xml|lxml
0
25
1
72,267,675
72,267,675
0
true
2022-05-11T10:01:37.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there any way to outout blank as &nbsp; in lxml or other python xml lib?<p>my code is:</p> <pre><code>&gt;&gt;&gt; from lxml.html import tostring, HtmlEle...
72,200,605
How to generate and preview a presigned url of a file in jsf?<p>I am trying to preview any type of file such as image,pdf,doc,odt,xlsx,csv,text etc in my web app using jsf.</p> <h1>My flow of code:</h1> <ol> <li>Generating a presigned url using aws s3 bucket, java sdk.</li> <li>Then passing this to google doc or micros...
<p>After a hard and searching Got the solution</p> <pre><code> public String previewFile; public void preview(String path, String fileName) { try { //file path path += fileName; File file = new File(path.toString()); if (file.exists()) { fileType = ne...
How to generate and preview a presigned url of a file in jsf?
java|amazon-web-services|amazon-s3|jsf-2|pre-signed-url
0
116
1
72,267,980
72,267,980
0
true
2022-05-11T11:54:32.910Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to generate and preview a presigned url of a file in jsf?<p>I am trying to preview any type of file such as image,pdf,doc,odt,xlsx,csv,text etc in my web...
72,205,290
How to use peerjs (import and require both fail)<p>I want to use peerjs in a script (that I use in a html file). When I try <code>import Peer from &quot;peerjs&quot;</code>, I get an error saying &quot;Cannot use import statement outside a module&quot;. When I try <code>var Peer = require(&quot;peerjs&quot;)</code>, I ...
<p>if you want to use a library inside an HTML file you need to include its file in a script tag.<br /> for example in your case, PeerJS documentation instructs to add this line:</p> <pre><code>&lt;script src=&quot;https://unpkg.com/peerjs@1.3.2/dist/peerjs.min.js&quot;&gt;&lt;/script&gt; </code></pre> <p>and then you ...
How to use peerjs (import and require both fail)
javascript|import|require|peerjs
0
45
1
72,268,738
72,268,738
0
true
2022-05-11T17:31:59.150Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use peerjs (import and require both fail)<p>I want to use peerjs in a script (that I use in a html file). When I try <code>import Peer from &quot;peer...
72,224,878
Error "Keyset does not exist" from creating a RSACryptoServiceProvider<p>My code</p> <pre><code>csp = new RSACryptoServiceProvider(cspParms); </code></pre> <p>causes the error: &quot;Keyset does not exist&quot;.</p> <pre><code>string keyContainerName = &quot;abcd&quot;; CspParameters cspParms = new CspParameters(24, &...
<p>I found the reason.</p> <p>If I run as an admin, then there is no these error.</p> <p>I was using windows 10, and I made everyone could read/write my users folder. But recently my windows was auto upgraded to win 11. The security setting for the users changed, this caused the trouble.</p>
Error "Keyset does not exist" from creating a RSACryptoServiceProvider
c#|rsacryptoserviceprovider
0
115
1
72,268,765
72,268,765
0
true
2022-05-13T05:37:23.563Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error "Keyset does not exist" from creating a RSACryptoServiceProvider<p>My code</p> <pre><code>csp = new RSACryptoServiceProvider(cspParms); </code></pre> ...
72,228,731
Get request body in Quarkus Interceptor<p>I have written an interceptor in Quarkus based application.</p> <pre><code>@AccessPolicy //custom annotation @Interceptor public class PolicyInterceptor { @AroundInvoke Object authorize(InvocationContext context) throws Exception { HttpServerRequest request = Resteas...
<p>Using <code>ContainerRequestFilter</code> worked for me as I needed <code>InvocationContext</code> only to get the method name of the Rest API and it was available in the ContainerRequestContext.</p> <pre><code>String methodName = ((PostMatchContainerRequestContext) requestContext).getResourceMethod().getMethod().ge...
Get request body in Quarkus Interceptor
quarkus|interceptor|vert.x
0
461
1
72,269,088
72,269,088
0
true
2022-05-13T11:20:32.827Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get request body in Quarkus Interceptor<p>I have written an interceptor in Quarkus based application.</p> <pre><code>@AccessPolicy //custom annotation @Inte...
72,196,778
Pad a struct so its size is a multiple of 16 bytes<p>I'm trying to have my C# struct match up some complex <a href="https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-packing-rules" rel="nofollow noreferrer">padding and packing rules</a>.</p> <ul> <li>Fields should be aligned on 4 byte boundar...
<p>After more searching, it indeed does look like I have to manually set the Size and FieldOffset to get to the right packing rules for Constant Buffers in DirectX/HLSL/C# interop code.</p> <p>In my own project this is even a bit more complex. Since I use source generators to create these structs. But in the end I was ...
Pad a struct so its size is a multiple of 16 bytes
c#|struct|padding|structlayout
0
96
1
72,269,645
72,269,645
0
true
2022-05-11T07:07:42.617Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pad a struct so its size is a multiple of 16 bytes<p>I'm trying to have my C# struct match up some complex <a href="https://docs.microsoft.com/en-us/windows/...
72,199,990
Google analytics integration with Java api<p>I want to integrate google analytics with my Spring boot API. Whenever I send an event request, I always get forbidden in google analytics response. the request I'm using is</p> <pre><code>http://www.google-analytics.com/mp/collect?api_secret={API_SECRET}&amp;measurement_id=...
<p>The correct endpoint for the <a href="https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference?client_type=gtag" rel="nofollow noreferrer">google analytics measurement protocol ga4</a> is</p> <blockquote> <p>https://www.google-analytics.com/mp/collect</p> </blockquote> <p>You are using</p>...
Google analytics integration with Java api
spring|api|google-analytics
0
109
1
72,270,083
72,270,083
0
true
2022-05-11T11:09:53.940Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Google analytics integration with Java api<p>I want to integrate google analytics with my Spring boot API. Whenever I send an event request, I always get for...
72,226,831
How would I add a auto scroll feature to this code?<pre><code>https://codepen.io/hexagoncircle/pen/jgGxKR?editors=0110 </code></pre> <p>I was looking around for cool code to play around with and found this. I tried the classic google the question but my experience in what I think is react (might be java?) is about zero...
<p>as far as I understood you are trying to implement an auto scroller for the Slides, basically making it an Automatic Slide-Show.</p> <p>My Solution for this would be using Lifecycle Methods &amp; calling nextClick at the desired interval using setInterval.</p> <p><a href="https://codepen.io/ShivangamSoni/pen/jOZBNeQ...
How would I add a auto scroll feature to this code?
javascript|html|css|reactjs
0
50
1
72,270,159
72,270,159
0
true
2022-05-13T08:49:39.780Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How would I add a auto scroll feature to this code?<pre><code>https://codepen.io/hexagoncircle/pen/jgGxKR?editors=0110 </code></pre> <p>I was looking around ...
72,204,117
React function based component wont return component inside nested map function<p>I am trying to output different components based on the inputType, however the component or anything that goes into the DOM does not render (aka console.logs fire correctly to confirm the if/if else statements are working correctly. Not q...
<p>As per a comment suggested above, I removed the nested maps and instead used forEach loops which worked a charm, so for future reference here's the solution:</p> <pre><code>const ServiceQuestions = filter =&gt; { const { allWpService } = useServiceQuery() const renderQuestions = id =&gt; { allWpService....
React function based component wont return component inside nested map function
reactjs|wordpress|headless-cms
0
25
2
72,270,587
72,270,587
0
true
2022-05-11T15:55:17.853Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React function based component wont return component inside nested map function<p>I am trying to output different components based on the inputType, however ...
72,214,198
Cannot connect to MongoDB Atlas despite allowing all IP address to access<p>I am unable to access MongoDB database for some reason. I have run through the usual suspects such as removing &lt;&gt; brackets around the password and also making my cluster accessible from any IP address. I am trying to connect to one of the...
<p>I am not sure what happened but I did nothing and suddenly it works</p>
Cannot connect to MongoDB Atlas despite allowing all IP address to access
node.js|mongodb
0
35
2
72,270,672
72,270,672
0
true
2022-05-12T10:46:40.347Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cannot connect to MongoDB Atlas despite allowing all IP address to access<p>I am unable to access MongoDB database for some reason. I have run through the us...
72,198,999
Why do I got TypeError: cannot pickle '_thread.RLock' object when using pyspark<p>I'm using spark to deal with my data, like that:</p> <pre><code> dataframe_mysql = spark.read.format('jdbc').options( url='jdbc:mysql://xxxxxxx', driver='com.mysql.cj.jdbc.Driver', dbtable='(sele...
<p>I got it, <code>dataframe_mysql</code> is already a <code>Dataframe</code>, if want to get a <code>RDD</code>, just use <code>dataframe.rdd</code> instead of <code>parallelize</code></p>
Why do I got TypeError: cannot pickle '_thread.RLock' object when using pyspark
python|python-3.x|apache-spark|pyspark|apache-spark-sql
0
286
1
72,270,981
72,270,981
0
true
2022-05-11T09:55:53.417Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why do I got TypeError: cannot pickle '_thread.RLock' object when using pyspark<p>I'm using spark to deal with my data, like that:</p> <pre><code> dat...
72,212,677
Unauthorized when attempting to post tweet api v1 (C#)<p>Morning all,</p> <p>I've not posted on SO for quite some time, but I need to ask the question, I’ve spent a day and a half trying to get this to work - it’s super frustrating considering I managed to implement v2 with posting a tweet in 2 - 3 hours but because I ...
<p>Not really an answer per-se, but rather notable actions.</p> <p>At this point in time, you cannot upload media with V2 of the API, whilst you can integrate quite quickly and send a tweet, it's almost pointless without media.</p> <p><strong>So, you'll need to build/integrate with V1.</strong></p> <p>The unknowns and ...
Unauthorized when attempting to post tweet api v1 (C#)
c#|twitter-oauth|tweetinvi|sttwitterapi
0
60
1
72,271,182
72,271,182
0
true
2022-05-12T08:55:55.260Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unauthorized when attempting to post tweet api v1 (C#)<p>Morning all,</p> <p>I've not posted on SO for quite some time, but I need to ask the question, I’ve ...
72,234,938
PHP array_search is very slow - how can i speed up?<p>I have two arrays one is a response from an API call where I get information about which email-addresses are already uploaded in the <code>System -&gt; $array_emails_found</code></p> <p>The other array is data which was uploaded by a <code>form -&gt; $array_data</co...
<p>Thank you @Barmar for your comment, now it works much faster</p> <pre><code>$arraycolumn = array_column($array_data, 'Email'); for ($i = 0; $i &lt; $count_emails_found; $i++){ $key = array_search($array_emails_found[$i], $arraycolumn); $key = $key + 1; $array_data[$key][&quot;InEloqua&quot;]...
PHP array_search is very slow - how can i speed up?
php|multidimensional-array|compare
0
84
1
72,271,480
72,271,480
0
true
2022-05-13T20:09:30.397Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PHP array_search is very slow - how can i speed up?<p>I have two arrays one is a response from an API call where I get information about which email-addresse...
72,197,999
Installing Oro on Windows with Docker fails<p>I tried to install OroCommerce 5.0.0 Community Edition on my Windows machine following these documentations.</p> <p><a href="https://doc.oroinc.com/backend/setup/dev-environment/docker-and-symfony/" rel="nofollow noreferrer">https://doc.oroinc.com/backend/setup/dev-environm...
<p>The Oro team recently <a href="https://doc.oroinc.com/backend/setup/dev-environment/docker-and-symfony/windows/" rel="nofollow noreferrer">extended the instruction with much more detail</a>. Please start over to make it work. From what I see, the main issue is that you've installed the application in the Windows fil...
Installing Oro on Windows with Docker fails
installation|orocommerce
0
34
1
72,271,605
72,271,605
0
true
2022-05-11T08:44:05.123Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Installing Oro on Windows with Docker fails<p>I tried to install OroCommerce 5.0.0 Community Edition on my Windows machine following these documentations.</p...
72,187,704
Can't use onCompletion route scope with transacted routes<p>I didn't manage to customize transacted route with rollback/commit post-processing. Any help on how to write this kind of transacted route will be really appreciated. Based on some <a href="https://camel.apache.org/manual/oncompletion.html#_oncompletion_consu...
<p>We finally achieved kind of route scope of onCompletion and onException, by separating global route and transacted route in two distinct route builders.</p> <p>But we decided to handle a transaction in java (spring) rather than in camel. Mainly because the transaction scope is difficult to figure out in camel. the t...
Can't use onCompletion route scope with transacted routes
java|apache-camel
0
78
1
72,271,667
72,271,667
0
true
2022-05-10T13:56:41.110Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can't use onCompletion route scope with transacted routes<p>I didn't manage to customize transacted route with rollback/commit post-processing. Any help on ...
72,211,727
(ESP32 Arduino Wrover-E) How to make the following snippet allocate resources only in External RAM?<p><strong>The goal is to allocate an array of classes purely in External Ram of the ESP32.</strong></p> <p><em>They say that the compiler will allocate big chuncks of space automatically in external ram, but this is not ...
<p>I will answer to my own question.</p> <p>The new arduino framework will put things in external ram if the allocatable memory is more than 4k. If it isn't, it will put things into internal ram, but if the internal ram is not sufficent for the allocation, it will try to allocate from ext ram.</p>
(ESP32 Arduino Wrover-E) How to make the following snippet allocate resources only in External RAM?
dynamic|arduino-esp32|psram
0
170
1
72,271,828
72,271,828
0
true
2022-05-12T07:38:41.113Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: (ESP32 Arduino Wrover-E) How to make the following snippet allocate resources only in External RAM?<p><strong>The goal is to allocate an array of classes pur...
72,188,255
How can I make sure `iostream` is available to the linker?<p>I have the following C++ code in a file called <code>helloworld.cpp</code>:</p> <pre><code>#include&lt;iostream&gt; int main() { std::cout &lt;&lt; &quot;Hello, World!\n&quot;; } </code></pre> <p>I would like to compile this manually so I can really unde...
<p>Based on the comments and posted answer I realized that the blog from which I was copying those commands makes things more complicated than they really need to be for my purposes. It's definitely possible to isolate every step of the compilation process using solely the <code>g++</code> command. Here's a Makefile I ...
How can I make sure `iostream` is available to the linker?
c++|gcc|compilation|linker|iostream
0
59
2
72,271,889
72,271,889
0
true
2022-05-10T14:31:31.240Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I make sure `iostream` is available to the linker?<p>I have the following C++ code in a file called <code>helloworld.cpp</code>:</p> <pre><code>#incl...
72,227,746
How can I upload a model to the viewer by refering to a file?<p>I initialize the viewer using this example <a href="https://forge.autodesk.com/en/docs/viewer/v7/developers_guide/viewer_basics/initialization/" rel="nofollow noreferrer">https://forge.autodesk.com/en/docs/viewer/v7/developers_guide/viewer_basics/initializ...
<p>I'd suggest that you look at the <a href="https://forge-tutorials.autodesk.io/tutorials/simple-viewer/" rel="nofollow noreferrer">Simple Viewer</a> tutorial. It guides you through the implementation of a simple Forge app where you can upload/translate/view designs during runtime.</p>
How can I upload a model to the viewer by refering to a file?
autodesk-forge|autodesk-viewer
0
100
2
72,271,957
72,271,957
0
true
2022-05-13T10:00:02.440Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I upload a model to the viewer by refering to a file?<p>I initialize the viewer using this example <a href="https://forge.autodesk.com/en/docs/viewer...
72,166,368
What is the MaterialConverterPrism Extension for autodesk-forgeviewer?<p>What kind of design is autodesk-forgeviewer's MaterialConverterPrism Extension used for in Revit?</p>
<p>&quot;Prism&quot; is an internal name for PBR (physically-based rendering) material system used by Forge Viewer. Not sure where exactly you've seen this, but I believe the viewer simply uses this internal implementation detail to take &quot;non-Prism&quot; materials from Revit designs, and update them so that they m...
What is the MaterialConverterPrism Extension for autodesk-forgeviewer?
autodesk-forge|autodesk-viewer
0
44
1
72,272,259
72,272,259
0
true
2022-05-09T02:13:42.980Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the MaterialConverterPrism Extension for autodesk-forgeviewer?<p>What kind of design is autodesk-forgeviewer's MaterialConverterPrism Extension used ...
72,141,578
.Net 6: Enable Windows and Anonymous authentication for one<p>I work on a .Net core application and I need to mix windows and anonymous authentication within the same endpoint(s). So the goal is to be able to determine the windows user but the endpoint should also work when no windows user is present (aka windows authe...
<p>I (or better we) have found a solution that works even when Windows authentication is disabled on IIS. It is not very elegant but this is what we came up with. The idea is basically to trigger another call to an endpoint to determine if the user is actually a windows loging or not. If this call is successful, then ...
.Net 6: Enable Windows and Anonymous authentication for one
authentication|.net-6.0
0
758
1
72,272,311
72,272,311
0
true
2022-05-06T12:35:42.887Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: .Net 6: Enable Windows and Anonymous authentication for one<p>I work on a .Net core application and I need to mix windows and anonymous authentication within...
72,226,648
How to Display Data in Yajra Datatables Laravel 7?<p>I want to display data in Laravel using Yajra Datatables, but the problem is that the data can't sync yet.</p> <p><a href="https://i.stack.imgur.com/t7Qqf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t7Qqf.png" alt="enter image description here"...
<p><strong>SOLVED</strong></p> <pre class="lang-php prettyprint-override"><code>public function index(Request $request) { if (request()-&gt;ajax()) { //Query Builder $startDate = Carbon::parse(request()-&gt;startDate)-&gt;format('Y-m-d H:i:s'); $endDate = Carbon::parse(request()-&...
How to Display Data in Yajra Datatables Laravel 7?
php|jquery|laravel|datatables|laravel-7
0
788
2
72,272,373
72,272,373
0
true
2022-05-13T08:34:20.513Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to Display Data in Yajra Datatables Laravel 7?<p>I want to display data in Laravel using Yajra Datatables, but the problem is that the data can't sync ye...
72,191,915
When sorting by multiple fields in Firestore with startAt and endAt not working correctly<p>I am doing a document filter functionality.</p> <p>The problem is that when I receive a filter for the &quot;max_players&quot; and &quot;name&quot; fields, it returns an empty array when there are documents that meet the conditi...
<p>Firebase limitation</p> <p>Documentation: <a href="https://github.com/firebase/firebase-js-sdk/issues/2577#" rel="nofollow noreferrer">https://github.com/firebase/firebase-js-sdk/issues/2577#</a></p>
When sorting by multiple fields in Firestore with startAt and endAt not working correctly
firebase|google-cloud-firestore|angularfire
0
158
1
72,273,045
72,273,045
0
true
2022-05-10T19:17:29.427Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: When sorting by multiple fields in Firestore with startAt and endAt not working correctly<p>I am doing a document filter functionality.</p> <p>The problem is...
72,213,877
Conditional Data Validation on an Excel Sheet with NPOI<p>I'm trying to do an excel where to import some data with validations and I've never used npoi before (and my knowledge of excel is as user) so I'm kinda lost about my objective here and neither founded a straight answer on internet.</p> <p>What I have is a Data...
<p>I finally could achieve my objective via java poi documentation (which is more extensive than npoi in my opinion). What I finally did is this:</p> <pre><code>//ColumnA/B List Range var namedRange = workbook.CreateName(); namedRange.NameName = &quot;Columns&quot;; string reference = &quot;Data!$A$1:$B$1&quot;; named...
Conditional Data Validation on an Excel Sheet with NPOI
.net|excel|validation|npoi
0
83
1
72,274,467
72,274,467
0
true
2022-05-12T10:22:53.087Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Conditional Data Validation on an Excel Sheet with NPOI<p>I'm trying to do an excel where to import some data with validations and I've never used npoi befor...
72,233,376
pass variables from a chef resouce to other resources in the same chef recipe<p>I'm new to Chef and Ruby, I'm very confused how to handle variables in Chef, and I am trying to pass a variable [Var] from ruby_block resource to http_request resource and assign the [Var] value to the value in <code>&quot;value&quot;:&quo...
<p>Since you are running some Ruby code to get the file contents, you can even do it outside Chef resources. Something like:</p> <pre class="lang-rb prettyprint-override"><code>if File.exists?(&quot;/work/customer/Var.js&quot;) var = File.read(&quot;/work/customer/Var.js&quot;) end http_request 'cusromer update' do ...
pass variables from a chef resouce to other resources in the same chef recipe
chef-infra|chef-attributes
0
133
1
72,274,751
72,274,751
0
true
2022-05-13T17:24:05.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: pass variables from a chef resouce to other resources in the same chef recipe<p>I'm new to Chef and Ruby, I'm very confused how to handle variables in Chef, ...
72,235,537
Can not configure hazelcast monitoring center health check (different port) on GKE<p>I'm kind of new with K8s things, and now run into the problem that I can not configure health check on Google Cloud ingress/load balancer. The hazelcast man-center has health check on port 8081, but the working port is 8080. When I'm d...
<p>The problem was solved by configuring Backendconfig as default config to the service. The healthcheck for external load balancer is using nodePort, so I had to specify it.</p> <pre><code>apiVersion: v1 kind: Service metadata: annotations: cloud.google.com/backend-config: '{&quot;default&quot;: &quot;hazelcast-...
Can not configure hazelcast monitoring center health check (different port) on GKE
google-kubernetes-engine|kubernetes-ingress|hazelcast|gke-networking|google-cloud-load-balancer
0
82
1
72,274,868
72,274,868
0
true
2022-05-13T21:21:33.680Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can not configure hazelcast monitoring center health check (different port) on GKE<p>I'm kind of new with K8s things, and now run into the problem that I can...
72,200,229
ADF Pipeline format datetime from XML source<p>I have an Azure Data Factory pipeline with an xml file as a source. The target sink is an Oracle table containing a datetime column.</p> <p>The mapping for most of the columns has been simple, as shown below:</p> <p><a href="https://i.stack.imgur.com/hSKwO.png" rel="nofoll...
<p>In copy data activity <a href="https://docs.microsoft.com/en-us/azure/data-factory/copy-activity-overview#add-additional-columns-during-copy" rel="nofollow noreferrer">Additional columns</a>, you cannot pass the dynamic expression to use functions with the existing column.</p> <p>Using dynamic content, you can only ...
ADF Pipeline format datetime from XML source
azure-data-factory
0
97
1
72,275,065
72,275,065
0
true
2022-05-11T11:27:03.403Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ADF Pipeline format datetime from XML source<p>I have an Azure Data Factory pipeline with an xml file as a source. The target sink is an Oracle table contain...
72,223,406
Can I disable pointer events on a container but still allow it to be scrolled with the mouse?<p>I think the answer is no and thus I'm going to need a new approach.</p> <p>Essentially what I'm trying to do is put a group of floating action buttons on top of a leaflet map. There may be a lot of buttons and thus I want to...
<p>It can be done with the <a href="https://drafts.csswg.org/selectors-4/#has-pseudo" rel="nofollow noreferrer">:has pseudo selector</a>.</p> <pre class="lang-css prettyprint-override"><code>.scroll-area:not(:has(:hover)) { pointer-events: none; } </code></pre> <p>This selector hasn't been rolled out to all browsers ...
Can I disable pointer events on a container but still allow it to be scrolled with the mouse?
css
0
73
1
72,275,640
72,275,640
0
true
2022-05-13T00:46:30.423Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can I disable pointer events on a container but still allow it to be scrolled with the mouse?<p>I think the answer is no and thus I'm going to need a new app...
72,232,842
Saving entity with Spring JPA Repository resets enum ttype value<p>I have an <code>TimelineEntity</code> entity, that uses <code>HoTimelineType</code> enum with custom integer value. That custom integer value is stored in the database. Implemented via <a href="https://www.baeldung.com/jpa-persisting-enums-in-jpa" rel="...
<p>It seems there is no way to control the saving behaviour of spring jpa repository proxy.</p> <p>Possible solutions for issue:</p> <ol> <li>Via <code>javax.persistence.Converter</code>. It is pretty clear, the structe of an entity is simple. Can confirm it works fine with Spring Jpa Repository generation.</li> <li>Ex...
Saving entity with Spring JPA Repository resets enum ttype value
java|spring|hibernate|jpa|spring-data-jpa
0
45
1
72,275,976
72,275,976
0
true
2022-05-13T16:38:07.133Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Saving entity with Spring JPA Repository resets enum ttype value<p>I have an <code>TimelineEntity</code> entity, that uses <code>HoTimelineType</code> enum w...
72,201,803
SQL Developer - Add new connection is greyed out<p>suddenly, my SQL Developer turned off, i can't add any connection to connect to my work remote databases, i tried to factory reset the views, uninstalled and reinstalled the app. still can't figure out how to fix it !</p> <p><a href="https://i.stack.imgur.com/muhqQ.png...
<p>Found the solution, i needed to configure the JDK under AppData\Roaming\sqldeveloper\21.4.1\product.conf</p> <p>&quot;SetJavaHome C:\Program Files\Java\jdk1.8.0_301&quot;</p>
SQL Developer - Add new connection is greyed out
oracle|oracle-sqldeveloper
0
70
2
72,276,300
72,276,300
0
true
2022-05-11T13:19:23.117Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL Developer - Add new connection is greyed out<p>suddenly, my SQL Developer turned off, i can't add any connection to connect to my work remote databases, ...
72,203,897
How can I address a Netlify function with Svelte?<p>I have written a vanilla html app to test a Netlify function and it works</p> <p>I have attempted to write a Svelte application to mimic the same functionality</p> <p>The two versions have fundamentally the same directory structure, but replace <em>App.svelte</em> wit...
<p>There seems to be a problem with the version of <em>sirv-cli</em> in my <em>package.json</em> which stops the Netlify server starting correctly</p> <p>It should read</p> <pre><code>&quot;dependencies&quot;: { ... &quot;sirv-cli&quot;: &quot;^1.0.11&quot; } </code></pre>
How can I address a Netlify function with Svelte?
svelte|netlify
0
51
1
72,276,401
72,276,401
0
true
2022-05-11T15:39:29.193Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I address a Netlify function with Svelte?<p>I have written a vanilla html app to test a Netlify function and it works</p> <p>I have attempted to writ...