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.

Call logs timestamp shows "Unknown" in my parental control app (but SMS works fine)

12 May 2025 @ 5:36 pm

I'm building a parental control app in Java with two parts: a child app and a parent app. The child app sends both SMS and Call History to Firebase. The SMS part works correctly: I get the message, date, and time as expected. But for the Call History, I get the correct phone number and call type (incoming/outgoing), but the timestamp/date/time shows as "Unknown" in the parent app. Why does the date show "Unknown" in the parent app for call logs, even though I correctly send the timestamp? How can I fix it?

How come #[macro_use] isnt bringing my macros into the global scope everywhere?

12 May 2025 @ 5:36 pm

i have a macro defined in src/utils/macros.rs and have this in src/utils/mod.rs: #[macro_use] pub mod macros; and then in my src/main.rs #[macro_use] pub mod utils; and now in the main.rs file, i can freely use that macro, but anywhere else within src, its not in scope for some reason? ive tried using #[macro_use] on all module definitions ive tried using #[macro_export] but it requires importing the macro from crate::<macro_name> wherever i want to use it which isnt what i want

Find files with specific name using glob [duplicate]

12 May 2025 @ 5:34 pm

I have a couple different files with names like xMain.png xSecondary.png xSecondary2.png Is there a way using glob to find a file using a portion of the name in the middle of the file? for example looking for files with 'Main' or 'Secondary' in them? I've tried using '*' as a wild card but didn't end up with any results. If I looked for the file extensions that worked as expected, finding all .pngs. but isn't what I'm looking for

Solr fq not applying stopword filter? Inconsistent behavior between q and fq

12 May 2025 @ 5:31 pm

I'm facing a strange issue in Apache Solr 9.4.0 related to stopword filtering. In my core, I have a field called titlex which is of type text and uses a stopword filter in both its index time and query time analyzer chains. One of the stopwords in the list is "manufacturing". Now, I have documents where the value of titlex is something like: "pvc pipe manufacturing machine" When I run the following query: q=pvc+pipe&fq=titlex:(manufacturing+machine) I get zero results. However, if I remove the word "manufacturing" from the filter query: q=pvc+pipe&fq=titlex:(machine) I start getting results. What I think is happening: Since "manufacturing" is a stopword, it doesn't get indexed. So technically, no document contains the token "manufacturing" in the titlex field. That would explain the lack of results. BUT, her

SwiftUI ScrollView with .scrollTargetBehavior(.paging) gets stuck between pages after background/foreground transition

12 May 2025 @ 5:31 pm

I have a horizontal ScrollView in SwiftUI with paging enabled. I bind its position to a @State selectedIndex and call .scrollTargetBehavior(.paging) and .scrollPosition(id:). Swiping to page 2 works, but if I background the app (Home button) and then re-open it, the scroll view ends up half-way between pages instead of snapping to page 2. It works normally when I use LazyHStack (without stuck) – but freeze between swipe (init next page), I don't want use it. video reproduce Steps to reproduce: Launch the view. Swipe to the second page (selectedIndex = 1) Send the app to background Reopen the app. Expected: Remains pinned to page 2. Actual: Offset stops halfway between pages 1 and 2. Environment: • iOS 17 / Xcode 16.2 • SwiftUI What’s ca

How to upload mapping file of an Android obfuscated library to Crashlytics

12 May 2025 @ 5:30 pm

We have an Android library that we obfuscate, we then have an application (un-obfuscated) that implements the library, which has Firebase Crashlytics implemented, is it possible to use the mapping file for de-obfuscated logs of the library? I know that it does not seem to be possible to add Crashlytics to the library itself. What are my options? Any help would be appreciated.

About react and Tailwind Project [closed]

12 May 2025 @ 5:28 pm

I have a little problem with design layout with react and tailwind. I don't know how to start code with this section. Can any one give me some advise?enter image description here and it would be pleasure if anyone tell me about how to split background color I need some advise how code layout.

boolean column VS smallInteger column for storing likes/dislikes in MySQL

12 May 2025 @ 5:27 pm

I have a question about 2 approaches of storing likes & dislikes in MySQL database boolean In this approach we will use true for likes and false for dislikes, if user wanna to remove his vote (unlike or undislike) we will delete record: Schema::create('likes', function (Blueprint $table) { $table->id(); $table->foreignId('user_id')->constrained()->cascadeOnDelete(); $table->foreignId('recipe_id')->constrained()->cascadeOnDelete(); $table->boolean('liked'); // 1 => like | 0 => dislike $table->timestamps(); $table->unique(['user_id', 'recipe_id']); }); smallInteger We will save the vote value in the vote field, where 1 will mean liked and -1 disliked. We will also set the value to 0 if a user removes any of t

How to add and remove border on an element when an event occurs?

12 May 2025 @ 5:15 pm

I want a border to be added and removed for an element when a certain event occurs. In the example below, how do I make so that when I click on the p element a border is added to div which stays for a second and goes away. The reason I am doing this is to draw the users attention to the element when an event takes place. document.querySelector(".clickedelement").addEventListener("click", function (e) { // add and remove border on div }); div { width: 100px; height: 100px; background-color: yellow; border-radius: 50%; } <p cla

Inexplicable Try/Catch behavior on object reference exception

12 May 2025 @ 4:59 pm

Our REST API contains a routine to validate UserID and Password. It supports older code using Basic Access and newer code using Bearer access with a JWT token. We are experiencing a problem with the Bearer authentication, and have added a number of log entries to pin it down. We are only experiencing this problem with input coming from a Java app and not from other C# and VB.Net apps. As far as we can tell, the Java app's headers and payload are identical to the non-failing apps. The first two statements, the log entry and setting the sequence code appear to execute correctly. It then throws an object reference exception and executes the first statement in the Catch block. But instead of executing the second statement in the Catch block, 'return false', it returns control to the beginning statement and this time executes without error. Excerpts from the log entries are as follows: Log E

jsfiddle.net

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

A playground for web developers, use it as an online editor for snippets built from HTML, CSS and JavaScript. The code can then be shared with others, embedded on a blog, etc.

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.

Integrating Design And Code With Native Design Tokens In Penpot

8 May 2025 @ 10:00 am

The Penpot team is not slowing down on its mission to build a free design tool that not only offers powerful design features but is also well-integrated with code and modern development practices. In its latest release, Penpot, as the first design tool ever, introduces support for native design tokens. Let’s take a closer look at this concept and how you can employ it in your process.

Smashing Animations Part 1: How Classic Cartoons Inspire Modern CSS

7 May 2025 @ 8:00 am

Have you ever thought about how the limitations of early cartoon animations might relate to web design today? From looping backgrounds to minimal frame changes, these retro animation techniques have surprising parallels to modern CSS. In this article, pioneering author and web designer [Andy Clarke](https://stuffandnonsense.co.uk) shows how he applied these principles to Emmy-winning composer Mike Worth’s new website, using CSS to craft engaging and fun animations that bring his world to life.

Masonry In CSS: Should Grid Evolve Or Stand Aside For A New Module?

6 May 2025 @ 1:00 pm

There were duelling proposals floating around for adding support for masonry-style layouts in CSS. In one corner is a proposal that extends the existing CSS Grid specification. In the other corner is a second proposal that sets up masonry as a standalone module. Well, not until recently. Now, there are three proposals with Apple WebKit’s “Item Flow” as the third option. The first two sides make strong points, and the third one merges them into one, all of which you will learn about in this article.

How To Launch Big Complex Projects

5 May 2025 @ 10:00 am

When was the last time your project wrapped up smoothly — no delays, no surprises, no last-minute compromises? In reality, most UX projects drift as timelines slip, budgets stretch, and features morph. How do we get better at navigating the chaos? An upcoming part of How To Measure UX and Design Impact by yours truly.

WCAG 3.0’s Proposed Scoring Model: A Shift In Accessibility Evaluation

2 May 2025 @ 11:00 am

WCAG is evolving. Since 1999, the Web Content Accessibility Guidelines have defined accessibility in binary terms: either a success criterion is met or not. But real user experience is rarely that simple. WCAG 3.0 rethinks the model — prioritizing usability over compliance and shifting the focus toward the quality of access rather than the mere presence of features. Could this be the start of a new era in accessibility?

Make Every Day Count (May 2025 Wallpapers Edition)

30 April 2025 @ 10:00 am

The new month is just around the corner, and that means: It’s time for some new desktop wallpapers! All of them are designed with love by the community for the community and can be downloaded for free. Enjoy!

How To Turn Your Figma Designs Into Live Apps With Anima Playground

29 April 2025 @ 10:00 am

As designers, it’s important to be able to transform visual ideas into concepts within minutes and into fully functional products within hours. Well, today we’re bringing you closer to AnimaApp, an app designed to make your life easier — whether you’re a designer, developer, product team member or entrepreneur.

UX And Design Files Organization Template

28 April 2025 @ 1:00 pm

Lost in a sea of UX files, docs, PDFs, and scattered decisions across Slack, Dropbox, Notion, and Figma? We talk a lot about organizing Figma, but what about a sensible folder structure for all UX assets? Let’s fix that. Kindly powered by [Smart Interface Design Patterns](https://smart-interface-design-patterns.com).

“Product Kondo”: A Guide To Evaluating Your Organizational Product Portfolio

25 April 2025 @ 1:00 pm

It starts with good intentions — a quick fix here, a shiny feature there — and suddenly, your product portfolio’s bursting at the seams. In this guide, Talke Hoppmann-Walton walks you through a “Product Kondo” exercise to declutter, realign, and spark some serious product joy for both your business and your customers.

Boosting Up Your Creativity Without Endless Reference Scrolling

24 April 2025 @ 10:00 am

While it is clear that creativity is driven by both the left and right hemispheres, an important question remains: how can we boost creativity while keeping the process enjoyable? It may not be obvious, but non-design-related activities can, in fact, be an opportunity to enhance creativity.

stackblitz.com

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

Create, edit & deploy fullstack apps — in just one click. From Angular to React or even just HTML, JS and CSS.

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.