StackOverflow.com

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

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

When loading the library for the first time via GlobalScope.BasicLibraries.loadLibrary, an error occurs. Is that correct?

6 July 2025 @ 4:57 pm

Environment: LibreOffice Calc My program loads the ScriptForge library when a button is clicked: Function ParseInequality(inequality As String) as Variant GlobalScope.BasicLibraries.loadLibrary("ScriptForge") When I click the button for the first time, I see an error: Basic runtime error. Named arguments are not supported by this object. match = SF_String.FindRegex(leftPart, regexPattern, startPos, CaseSensitive := False) On the second try, everything works as expected. I attempted to handle it using On Error Handler, but it didn't help because the error occurred multiple times.

Android Enulator (WHPX) won't start

6 July 2025 @ 4:53 pm

Enulator won't start in Android Studio. A pop-up saying "Install Android Emulator hypervisor driver" appears, and then it ends abnormally. I'm a Windows 11 user, so I have been using WHPX: Windows Hypervisor Platform, not AEHD. I'm currently struggling with Windows Update not completing, and unfortunately it seems that many of the settings have been rolled back. When I checked "Turn Windows features on or off", Hyper-V / Windows Hypervisor Platform and Windows Subsystem for Linux were also Un-Checked. I ”Checked” these, restarted Windows, and confirmed that they were saved. But the situation did not improve. When I run "emulator -avd Pixel_8_API_34 -verbose -show-kernel" on the command line, I get the following information: INFO | Android emulator version 35.5.10.0 (build_id 13402964) (CL:N/A) INFO | Found AVD name 'Pixel_8_API_34' INFO | Found AVD target architecture: x86_64 INFO | Checkin

Persistent "Undeclared identifier" errors (line, label, plot) in Pine Script v6. Compiler issue?

6 July 2025 @ 4:42 pm

The errors appear when attempting to declare arrays of these types or call their constructors/functions: line (e.g., var line[] fibLines = array.new_line(), line.new(...)) label (e.g., var label[] fibLabels = array.new_label(), label.new(...)) plot (e.g., plot(close, ...)) The script aims to dynamically draw Fibonacci levels and labels on the chart. What We've Tried: Resolved Previous Syntax Errors: We successfully addressed earlier "Syntax error at input 'options'" by adjusting input.string parameters to use tooltip instead of options. Addressed Line Continuation Errors: We also fixed "end of line without line continuation" errors by ensuring all instructions, especially longer ones, were on a single line and that the script was cleanly formatted to avoid any hidden characters or unexpected line breaks. Code Review and Regeneration: The code has been thoroughly reviewed and regenerated multiple times to ens

Switching to the chainable setter style, how to declare setters in a base class a way they still allow access to concrete class after being called?

6 July 2025 @ 4:41 pm

For a few years a new setter style appeared, and I'm switching to it. Old style in a MyObject class: void setMyAttribute(MyAttribute value) { this.myAttribute = value; } Chainable style: MyObject setMyAttribute(MyAttribute value) { this.myAttribute = value; return this; } and I'm enjoying it a lot. Here's a transitioning code where I still have both styles present: this.organigramme.setCivilite(civilitePresident); this.organigramme.setNomPresident(nomPresident); this.organigramme.setPrenomPresident(prenomPresident); Commune communeSiege = new Commune(); communeSiege.setSirenCommune(sirenCommuneSiege); communeSiege.setCodeCommune(codeCommuneSiege); communeSiege.setNomCommune(nomCommuneSiege); communeSiege.setArrondissement(arrondissementSiege); communeSiege.setP

Module parse failed: Unexpected token (210:22) You may need an appropriate loader to handle this file type. |

6 July 2025 @ 4:18 pm

I am forking a copy of the following repo https://github.com/wassgha/digital-signage. The issue I am having is when loading part of the pages, I get the following error below: Failed To Compile ./node_modules/react-grid-layout/node_modules/react-resizable/node_modules/react-draggable/build/cjs/Draggable.js 210:22 Module parse failed: Unexpected token (210:22) You may need an appropriate loader to handle this file type. | // the underlying DOM node ourselves. See the README for more information. | findDOMNode() /*: ?HTMLElement*/{ > return this.props?.nodeRef?.current ?? _reactDom.default.findDOMNode(this); | } | render() /*: ReactElement<any>*/{ my package.json is: { "name": "DigitalSignage", "version": "1.0.0", "description": "This is a user interface for a dynamic digital

Space characters in SimpleName 'use streaming syntax' are not allowed prior to DEX version 040

6 July 2025 @ 4:17 pm

I am facing this issue after changing the Ktor version to 3.2.0. com.android.tools.r8.internal.Qf: Space characters in SimpleName 'use streaming syntax' are not allowed prior to DEX version 040 I am using Kotlin version 2.2.0. I rechecked my whole code there is no special character inside any class name.

Stuck on SQL Lab 6.2.3 (Cisco Data Analytics Essentials) – Query Not Working

6 July 2025 @ 2:31 pm

Currently stuck on 6.2.3 SQL Lab: SQL Around the World in the Data Analytics Essentials course (CISCO Networking Academy). I've tried both: SELECT * FROM shapes WHERE color = 'red' and SELECT * FROM shapes WHERE color LIKE 'red' ...but I keep getting the same error and now I can't claim my badge Anyone know what I might be missing? enter image description here

Smoothing scroll animations in js

6 July 2025 @ 2:21 pm

So my question is extremely simple, i see it on lots of websites https://www.jordangilroy.com/#work this one for example is my reference, when you scroll it feels alot smoother and the animations kinda like "catch up" to your scroll. only thing i can find is scroll-behaviour:smooth; which is obviously not what i need. im very new to js so idk most of the functions ive tried to replicate a scrolling feature. im not entirely sure how im supposed to show my example so ill just use a screenshot my attempt as you can see its kind of like splitting the images between the two parallax backgrounds, but the scrolling and animations feel too rigid. The code below is mainly just for the image cutting kinda feature so yea. not sure how i can do the smooth animation //#region history image changer (scro

Make sound or vibration when message arrives

6 July 2025 @ 1:13 pm

I use the program on the PC via the web and also this phone.html on the phone, but there was no sound or vibration; what can I do? The purpose of the program is to send the recorded messages and reminders in the desktop application to the phone. I did this, but the phone needs to make a vibration or sound in order to notify of the incoming message. /* ▼ Sekme değiştir */ document.querySelectorAll('.tab').forEach(btn => { btn.onclick = e => { document.querySelectorAll('.tab').forEach(b => b.classList.remove('active')); document.querySelectorAll('.pane').forEach(p => p.classList.remove('active')); btn.classList.add('active'); document.getElementById(btn.dataset.id).classList.add('act

Remove only odd lines' line breaks, with Vim, sed or awk

6 July 2025 @ 11:59 am

I have the following file: line 1 abc line 2 def line 3 ghi ..... ..... I need it to become: line 1 abc line 2 def line 3 ghi ...... ...... I'm new with awk and sed and while I found clues how to There are information to remove new lines but not odds or even line breaks

SmashingMagazine.com

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

Digital media magazine for designers and developers
Web design plus tips and tricks.

CSS Intelligence: Speculating On The Future Of A Smarter Language

2 July 2025 @ 1:00 pm

CSS has evolved from a purely presentational language into one with growing logical powers — thanks to features like container queries, relational pseudo-classes, and the `if()` function. Is it still just for styling, or is it becoming something more? Gabriel Shoyombo explores how smart CSS has become over the years, where it is heading, the challenges it addresses, whether it is becoming too complex, and how developers are reacting to this shift.

Turning User Research Into Real Organizational Change

1 July 2025 @ 10:00 am

Bridging the gap between user research insights and actual organizational action — with a clear roadmap for impact.

Never Stop Exploring (July 2025 Wallpapers Edition)

30 June 2025 @ 12:00 pm

July is just around the corner, and that means it’s time for a new collection of desktop wallpapers. Created with love by artists and designers from across the globe, they are bound to bring some good vibes to your screen. Enjoy!

Can Good UX Protect Older Users From Digital Scams?

25 June 2025 @ 12:00 pm

As online scams become more sophisticated, Carrie Webster explores whether good UX can serve as a frontline defense, particularly for non-tech-savvy older users navigating today’s digital world.

Decoding The SVG <code>path</code> Element: Curve And Arc Commands

23 June 2025 @ 10:00 am

On her quest to teach you how to code vectors by hand, Myriam Frisano’s second installment of a `path` deep dive explores the most complex aspects of SVG’s most powerful element. She’ll help you understand the underlying rules and function of how curves and arcs are constructed. By the end of it, your toolkit is ready to tackle all types of tasks required to draw with code — even if some of the lines twist and turn.

Meet Accessible UX Research, A Brand-New Smashing Book

20 June 2025 @ 4:00 pm

Meet “Accessible UX Research,” our upcoming book to make your UX research inclusive. Learn how to recruit, plan, and design with disabled participants in mind. Print shipping in August 2025. eBook available for download later this summer. Pre-order the book.

CSS Cascade Layers Vs. BEM Vs. Utility Classes: Specificity Control

19 June 2025 @ 3:00 pm

CSS can be unpredictable — and specificity is often the culprit. Victor Ayomipo breaks down how and why your styles might not behave as expected, and why understanding specificity is better than relying on `!important`.

What I Wish Someone Told Me When I Was Getting Into ARIA

16 June 2025 @ 1:00 pm

[Accessible Rich Internet Applications (ARIA)](https://www.w3.org/WAI/standards-guidelines/aria/) is an inevitability when working on web accessibility. That said, it’s everyone’s first time learning about ARIA at some point.

Creating The &ldquo;Moving Highlight&rdquo; Navigation Bar With JavaScript And CSS

11 June 2025 @ 1:00 pm

In this tutorial, Blake Lundquist walks us through two methods of creating the “moving-highlight” navigation pattern using only plain JavaScript and CSS. The first technique uses the `getBoundingClientRect` method to explicitly animate the border between navigation bar items when they are clicked. The second approach achieves the same functionality using the new View Transition API.

Decoding The SVG <code>path</code> Element: Line Commands

9 June 2025 @ 8:00 am

SVG is easy — until you meet `path`. However, it’s not as confusing as it initially looks. In this first installment of a pair of articles, Myriam Frisano aims to teach you the basics of `` and its sometimes mystifying commands. With simple examples and visualizations, she’ll help you understand the easy syntax and underlying rules of SVG’s most powerful element so that by the end, you’re fully able to translate SVG semantic tags into a language `path` understands.

firebase.com

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

An on-line real-time database for your apps.

#FirebaserFriday: Frank van Puffelen

18 March 2022 @ 3:58 pm

Paulette McCroskey Social Media Manager, Advanced Systems Group, LLC

How Firebase Performance Monitoring optimized app startup time

9 March 2022 @ 4:58 pm

Viswanathan Munisamy Software Engineer

Using Machine Learning to optimize mobile game experiences

15 February 2022 @ 4:58 pm

Sachin Kotwani Senior Product Manager Elvis Sun Software Engineer Mobile app and game developers can use on-device machine learning in their apps to increase user engagement and grow revenue. We worked with game developer HalfBrick to train and implement a custom model that personalized the user's in-game experience based on the player's skill level and session details, resulting in increased interactions with

Accept Payments with Cloud Firestore and Google Pay

11 February 2022 @ 8:00 pm

Stephen McDonald Developer Relations Engineer, Google Pay Back in 2019 we launched Firebase Extensions - pre-packaged solutions that save you time by providing extended functionality to your Firebase apps, without the need to research, write, or debug code on your own. Since then, a ton of extensions have been added to the platform covering a wide range of features, from email triggers and text messaging, to image resizing, translation, and much more. Google Pay Firebase Extension We're now

Everything you need to know about Remote Config’s latest personalization feature

26 January 2022 @ 6:22 pm

Jon Mensing Product Manager An important part of turning your app into a business is to optimize your user experience to drive the bottom line results you want. A popular way to do this is through manual experimentation, which involves setting up A/B tests for different components of your app and finding the top performing variant. Now, you can save time and effort - and still maximize the objectives you want - with Remote Config’s latest personalization feature. Personalization harnesses the power of machine learning to automatically find the optimal e

What’s new at Firebase Summit 2021

10 November 2021 @ 5:31 pm

Kristen Richards Group Product Manager

Automate your pre-release testing with the App Distribution REST API

8 November 2021 @ 5:59 pm

Liat Berry Product Manager

Improving the Google Analytics dashboard in Firebase

5 November 2021 @ 6:03 pm

Sumit Chandel Developer Advocate If you’ve visited the Firebase console’s Analytics section recently, you might have noticed something new… an updated Analytics dashboard, a new Realtime view and a few other UI enhancements.

How to get better insight into push notification delivery

27 October 2021 @ 3:45 pm

Charlotte Liang Charlotte Liang Software Engineer

Pinpointing API performance issues with Custom URL Patterns

20 October 2021 @ 3:45 pm

Ibrahim Ulukaya Ibrahim Ulukaya Developer Advocate

bitbucket.org

VN:F [1.9.22_1171]
Rating: 8.4/10 (5 votes cast)

The alternative to Github, private and open git repositories.