StackOverflow.com

VN:F [1.9.22_1171]
Rating: 8.5/10 (13 votes cast)

Random snippets of all sorts of code, mixed with a selection of help and advice.

Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:

27 November 2025 @ 1:36 pm

I'm using an old version of Android Studio, 3.1.6. This error appears when the gradle project sync failed. I also have a new version of android studio installed, I dont know if this could be related, I have apps in both versions. Here i pasted part of the error because is longer but it's the same error but with another url. I pasted another screenshots of my gradle version, I'm not an expert so i dont know if it's all the info I should give. Build.Gradle screenshot Android Gradle Plugin Version > Could not resolve all artifacts for configuration ':classpath'. > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72. Required by: project : > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72. > Could not get resource

Google map displays the message "This page did not load Google Maps correctly."

27 November 2025 @ 1:36 pm

My Google map displays the message "This page did not load Google Maps correctly." But enabled Billing in Google Cloud but I'm still getting the error BillingNotEnabledMapError. Any idea what could be causing this error?

How to install league/csv bundle with Doctrine v3.3 on Symfony?

27 November 2025 @ 1:23 pm

I am having a problem today installing the league/csv bundle (v9.27) on my Symfony (v7.2) project with doctrine/orm (v3.3)! When I run command php require league/csv, I get this message: Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires clickandmortar/import-bundle ^1.0 -> satisfiable by clickandmortar/import-bundle[1.0, 1.0.1]. - clickandmortar/import-bundle[1.0, ..., 1.0.1] require doctrine/orm ^2.4.8 -> found doctrine/orm[v2.4.8, ..., 2.20.8] but it conflicts with your root composer.json require (^3.3). Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. You can also try re-running composer require with an explicit version constraint, e.g. "composer require league/csv:*" to figure out if any version is installable, or "composer require league/csv:^2.1" if you know w

Filter on worksheet columns re-triggering excel office.js custom functions even when it is not volatile functions

27 November 2025 @ 1:17 pm

Excel re-triggers custom functions created in office.js api addin, but from documentation it should only re-trigger the formulas which are volatile function and in office.js api to specify custom function as volatile it should be specified as @volatile which is not there in this case. what my guess is it is because of invocation object but still it should not re-trigger as filter only hides the row and not changes the value but still it is getting re-triggered. the strange part is it only re-triggers when there is cell-reference passed as arguments in custom function. I am attaching how we have setup our custom function. Need to know if this can be fixed ? if yes how and if not then what is the root cause ? @customfunction Q.GET @param en * @param attri * @param [date] * @param [period] * @param [fu] * @param [Up] * @param [uploadDate] * @param [ver] * @param [curr] * @param [uni] * @param [seg] * @param [sec] * @param [fx]

Huawei devices open Huawei Pay instead of my Flutter NFC app when scanning a tag during on my app

27 November 2025 @ 1:17 pm

I’m building an NFC app in Flutter, and on Huawei devices I have a problem: when I scan any NFC tag, Huawei Pay automatically opens, and my app goes to the background. My app receives the NFC event, but Huawei Pay still takes over the screen. I’m using standard NFC reading (no payment protocols), and this does not happen on Samsung/Pixel devices. How can I prevent Huawei Pay from launching and force my Flutter app to stay in the foreground when an NFC tag is scanned? Is there any way to override this behavior via Flutter or Android native code?

Recommended RStan compiler flags for gcc

27 November 2025 @ 1:14 pm

I need to install RStan and I want to make sure that it's as efficient as possible. I'm using gcc. I'm reading this guide from 2022. Luckily, the Stan developers built an option called STAN_CPP_OPTIMS which implements recommended compiler flags. The guide is from 2022, is this option still current? How exactly do I implement this? The guide says you can enable these by adding to make/local This is not enough information for me. I haven't seen any more information about this file, and exactly where it should go. I tried editing the ~/.R/Makevars , but it seems like RStan is ignoring this.

How to display a lot of line_strips efficiently with ModernGL

27 November 2025 @ 1:14 pm

I need to display many (a lot) 3d trajectories with modernGL. For now, I chain the trajectories and I create two arrays only (one for all the vertices and one for their colors) that I pass as params of context.vertex_array. See the code below: vao = ctx.vertex_array(prog, [(ctx.buffer(all_vertices.tobytes(), "3f", "in_vert"), (ctx.buffer(all_colors.tobytes(), "4f", "in_color")] ) vao.render(mode=mGL.LINE_STRIP_ADJACENCY) To avoid "color gradient lines" in-between each trajectory, I double the last and the first point of each trajectory, and I give to these new points a transparent color. I also fight with the dedicated shader to give these points a far z-depth. I wonder if another solution exists, more efficient, without fps loss ? For exemple providing one vertex_array and several index buffers ? Thanks in advance for your answers !!

Flummoxed by problem with javascript setInterval [duplicate]

27 November 2025 @ 1:13 pm

I am trying to call an object method every X milliseconds (in order to increment a counter every X milliseconds). This const x = { _count: 0, inc(){ this._count = this._count + 1; console.log(Date.now()); console.log(this._count); }, }; setInterval(x.inc(), 1000); returns the two lines: 1764248031172 1 while the removal of the brackets from the (first) setInterval parameter .... const x = { _count: 0, inc(){ this._count = this._count + 1; console.log(Date.now()); console.log(this._count); }, }; setInterval(x.inc, 1000); returns 1764248289636 NaN 1764248290638 NaN 1764248291655 NaN 1764248292656 NaN 1764248293657 NaN 1764248294657 NaN ... ... ... ... ... ... ... ... Obviously neither works for my needs. Any advice would be gratefully received!

CircleMarker SVG classes/animations not updating reliably when reactive state changes (Vue 3 + Vue-Leaflet)

27 November 2025 @ 1:03 pm

I’m using Vue-Leaflet + Leaflet to display dynamic CircleMarkers whose styling depends on reactive Vue state. When a marker enters the list, it should fade in via CSS. When it leaves the list, it should get a fade-out class, animate, and only be removed afterwards. This works except for one thing: the fade-out animation never plays — the marker disappears instantly, even though the correct CSS class is applied. Here’s how the markers are rendered: <LCircleMarker v-for="item in displayItems" :key="item.url" :lat-lng="[item.lat, item.long]" :radius="6" :class-name="[ 'map__circle-marker', item._fadeOut ? 'map__circle-marker--fadeout' : 'map__circle-marker--fadein' ].join(' ')" :color="'#FE581B'" :fill-color="'#000'" :fill-opacity="1" :layerType="'overlay'" :pane="'marker

How to open Outlook Web with a pre-filled search query (Gmail-style email filtering link)?

27 November 2025 @ 1:01 pm

I’m implementing a password-reset and email-verification flow. After we send an email to the user, we want to provide quick-access links such as: “Search this email in Gmail” “Search this email in Outlook (Web)” Here is the code we currently use: public openGmailSearch(): void { const gmailQuery = encodeURIComponent(`from:${this.domain} subject:"${this.subject}"`); window.open(`https://mail.google.com/mail/u/0/#search/${gmailQuery}`, "_blank"); } public openOutlookSearch(): void { const outlookQuery = encodeURIComponent(`from:${this.domain} AND subject:"${this.subject}"`); window.open(`https://outlook.live.com/mail/0/search?keyword=${outlookQuery}`, "_blank"); } For Gmail, this works perfectly. I can open Gmail with a pre-filled search filter, for example: https://mail.google.com/mail/u/0/#search/