Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: string Clear Filter

Python f-string cheat sheets (2022)

Python f-string cheat sheets See fstring.help for more examples and for a more detailed discussion of this syntax see this string formatting article. All numbers The below examples assume the following variables: >>> number = 4125.6 >>> percent = 0.3738 Example Output Replacement Field Fill Width Grouping Precision Type '4125.60' {number:.2f} .2 f '4,125.60' {number:,.2f} , .2 f '04125.60' {number:08.2f} 0 8 .2 f ' 4125.60' {number: 8.2f} 8 .2 f '4.1e+03' {number:.2g} .2 g '4125.6' {number:

YouTube Music could soon let you comment on playlists, here’s what we know (APK teardown)

Joe Maring / Android Authority TL;DR YouTube is working on bringing comments to YouTube Music playlists. YouTube Music already allows comments on audio, video, and podcast content. If it succeeds, YouTube might also bring comments to video playlists on the main app. Two years ago, Google rolled out YouTube’s most hotly debated feature to YouTube Music. The comments section, which is both a treasure chest of insights and a bottomless pit of bullying remarks, is currently available for audio,

Type-machine

Using Template Haskell to derive the structure of records and simulate structural subtyping Type-machine Code available on GitHub, package available on Hackage. Introduction In Haskell, we usually model data using algebraic data types, like this: 1 data Maybe a = Nothing | Just a Here we defined a Maybe type, which has two constructors, Nothing and Just . The Just constructor has one argument, while Nothing as none. It is common to consider these constructors’ arguments as fields, which c

Topics: data id int string type

Google Photos wants to help you spot deepfakes and AI edits (APK teardown)

Ryan Haines / Android Authority TL;DR Google is working on adding a new section called “How was this made” to the details view. This section will tell a user if certain photos or videos were edited with AI or not. The feature uses Content Credentials to maintain a history of edits, both with and without AI tools. An error message will appear if the media history has been modified or is missing. As AI continues to blur the lines between what’s real and what’s fake, it’s becoming increasingly

Here’s how Google Find Hub satellite location sharing is going to work (APK teardown)

TL;DR Google announced back in May that the newly renamed Find Hub would be adding support for satellite-based location sharing. That’s still not here yet, but a recent app update reveals text strings that hint at how things will work. Users will be able to share their location once every 15 minutes, with a daily limit on maximum shares. Satellite support is changing the rules of the game when it comes to mobile connectivity, and we are still right now only in the early days of its evolution.

Dear String-to-Integer Parsers

These are very useful functions that any language with distinct string and integer types will include in their standard library. Pass in a string with decimal digits and it’ll return the equivalent in the binary integer form that you can do mathematics with. I’d like to make a modest proposal that I’d find very useful, and maybe you, dear reader, would too. “The rich man in his castle, the poor man at his gate. He made them, high or lowly, and ordered their estate.” Who me? Specifically, I’m

Activity? Journeys? Library? Google just can’t stop renaming this history view (APK teardown)

Edgar Cervantes / Android Authority TL;DR The Google Android app offers a tab that displays your search history and saved items. Previously called Saved, Google changed it into Activity earlier this year. Now we’re also seeing Journeys and Library labels in testing, with even more names in the running. What’s in a name, anyway? Maybe a lot, actually, and if you’re trying to design a user interface that’s as intuitive as possible, the choice of labels you apply can end up mattering quite a bi

How we made JSON.stringify more than twice as fast

JSON.stringify is a core JavaScript function for serializing data. Its performance directly affects common operations across the web, from serializing data for a network request to saving data to localStorage . A faster JSON.stringify translates to quicker page interactions and more responsive applications. That’s why we’re excited to share that a recent engineering effort has made JSON.stringify in V8 more than twice as fast. This post breaks down the technical optimizations that made this impr

C++26 Reflections adventures and compile-time UML

The first thing I do every time I need to learn a new codebase is to start drawing the UML diagram of its classes, and usually give up soon after I started. The process of doing it manually is certainly useful, but now with reflections I figure it would be fun to try generate it instead. With C++26 reflections[1] the general consensus is that the magnitude of language change is comparable to what happened with C++11. After my little experiment with it, I would cautiously agree. So how does one

Topics: info int meta std string

Android TV is getting ready to kill off the Discover tab… last month? (APK teardown)

Aamir Siddiqui / Android Authority TL;DR Android TV currently offers a Discover tab for getting recommendations and building your watchlist. A new update to the system launcher suggests that Google’s planning to drop Discover and move your watchlist to the Home tab. Confusingly, Google’s messaging in the app suggest that this change was supposed to take place in July. What does your usage of Android TV look like? Google’s big-screen entertainment platform certainly tries to act as a hub that

Here’s how Android Identity Check will start taking advantage of your smartwatch (APK teardown)

Joe Maring / Android Authority TL;DR Identity Check offers an extra layer of protection when someone steals both your phone and your PIN. By requiring biometrics, Identity Check attempts to limit the harm bad actors could do. Google is working to let you bypass that biometric requirement when your device is connected to a trusted smartwatch. We all want our devices to be secure, but practical considerations mean we’re often striking a balance between security and convenience. That’s not a ba

Here’s how ChatGPT’s upcoming ‘Study Together’ tool could enhance learning (Updated: Rolling out)

Calvin Wankhede / Android Authority TL;DR OpenAI is working on a dedicated “Study Together” mode to help users grasp concepts better. Study Together is likely to help break down concepts into simpler terms and follow up with quizzes for more engaged learning. It is being tested with both free and paid users, suggesting non-paying users might also have access when it launches. Update, July 30, 2025 (03:10 AM ET): ChatGPT has officially announced Study Mode, which is available for free to logg

Google ‘Magic Cue’ AI will read your screen to provide helpful suggestions

Google TL;DR New code in an Android Canary build corroborates previous leaks of a new on-device AI assistant, likely called Magic Cue. The assistant will proactively suggest info and actions relevant to what you’re doing on screen. Google is expected to debut the feature on the Pixel 10 series next month. The Google Pixel 10 series is launching in a little over three weeks, but as usual, a lot of information has already leaked about it. We previously reported on one of its biggest new featur

Google is working on AI-powered custom icon themes for your Pixel phone

Rita El Khoury / Android Authority TL;DR Google may be working on new AI-powered icon customization features for Pixel phones. This feature could solve the inconsistent look of the current “Themed icons” feature, which many apps still do not support. Code discovered in a recent update points to new “AI icon” and “Create” style options. Google Pixel devices offer many unique software features, but they lag behind when it comes to basic customization options, at least out of the box. For insta

Google Contacts Calling Cards sound more and more like iOS Contact Posters (APK teardown)

Adamya Sharma / Android Authority TL;DR Google Contacts has been working on a new “Calling Cards” feature for a few versions now. Earlier analysis has suggested that this could function very similarly to iOS Contact Posters. New text strings and a promo image add further support to that interpretation. What is it they say about mobile operating systems? Good platforms copy, but great platforms steal? Android and iOS have definitely traded ideas more than a few times over the years, and just

A Python tool to parse PDF statements from Poste Italiane

Poste Italiane Documents Parser agli sventurati che hanno un conto postale A Python tool to parse PDF documents from Poste Italiane and convert them into structured JSON or CSV data. It automatically identifies the document type and validates financial data to ensure integrity. Key Features Automatic Document Detection : Identifies the document type (e.g., BancoPosta statement, Postepay report) from the PDF content. : Identifies the document type (e.g., BancoPosta statement, Postepay report

(Python) Poste Italiane document parser

Poste Italiane Documents Parser agli sventurati che hanno un conto postale A Python tool to parse PDF documents from Poste Italiane and convert them into structured JSON or CSV data. It automatically identifies the document type and validates financial data to ensure integrity. Key Features Automatic Document Detection : Identifies the document type (e.g., BancoPosta statement, Postepay report) from the PDF content. : Identifies the document type (e.g., BancoPosta statement, Postepay report

Snapchat could soon offer free Snapchat Plus if you invite your friends (APK teardown)

Edgar Cervantes / Android Authority TL;DR Snapchat is working on a referral program that grants users a free month of Snapchat Plus if they get three friends to sign up for the service. Snapchat is also looking to integrate the recently acquired Saturn app, allowing students to link calendars and communicate more easily. Snapchat is credited for popularizing the trend of disappearing photos and videos, aka Snaps, as well as temporary broadcasts in the form of Stories. The app remains popular

Making a StringBuffer in C, and questioning my sanity

I've been writing a lot of C. Whilst doing so I have been questioning my sanity. Am I an awful programmer? You know what, I think I might be. Kudos to all those devs that created monumental feats with C. Because it is not an easy tool to use. That said, I do enjoy writing C, just as long as I don't have a deadline or any business critical software to deliver. But when I say enjoy, I mean enjoyment in the sense of using a sycthe to cut a lawn, whilst my lawnmower watches on. It's lovely using th

Here’s how ChatGPT’s upcoming ‘Study Together’ tool could enhance learning (APK teardown)

Calvin Wankhede / Android Authority TL;DR OpenAI is working on a dedicated “Study Together” mode to help users grasp concepts better. Study Together is likely to help break down concepts into simpler terms and follow up with quizzes for more engaged learning. It is being tested with both free and paid users, suggesting non-paying users might also have access when it launches. AI tools, such as ChatGPT, have accelerated learning by making concepts much easier to find and summarize. Now, OpenA

Strategies for Fast Lexers

In this blog post I’ll explain strategies I used to make the purple garden lexer really fast. purple-garden is an s-expr based language I am currently developing for myself. Its my attempt at building a language I like, with a battery included approach, while designing it with performance in mind. This doesn’t mean all approaches are feasible for your use case, architecture and design. I tried to bring receipts for my performance claims, so watch out for these blocks at the end of chapters: I

Topics: cc input pos str string

Monitoring My Homelab, Simply

Monitoring my Homelab, Simply Date: 2025-07-09 I have a middling self-hosted/homelab setup, and it occasionally breaks. Alas, no monitoring tool has ever sparked joy in me. Don’t get me wrong, I understand that they’re essential for large fleets of services with fast-changing software and teams of oncallers working around the clock to understand the complex ways that complex systems fail… but my stuff doesn’t change that often, failures are mundane and low-scope, and I’m the only person comi

Show HN: BinaryRPC – Lightweight WebSocket-based RPC framework in modern C++

BinaryRPC 🧭 Motivation While working at my company, I had previously developed a WebSocket server prototype in Java. However, over time, we started to experience performance issues. This led me to turn to C++, a language that offers more speed and low-level system control. Through my research, I discovered that uWebSockets was one of the best options in terms of performance, so I began developing with this library. However, since uWebSockets is a very "core" library, I had to handle many deta

Samsung could take inspiration from iOS’s Live Voicemail and Pixel Call Screen (APK teardown)

Apple TL;DR Samsung is working on an on-device voicemail feature similar to iOS’s Live Voicemail. This feature would allow calls to be screened and corresponding voice messages to be stored directly on the device. Unlike Apple’s version, Samsung’s will let users customize ring time before redirecting a call, but lacks transcription functionality, at least for now. The feature was spotted within One UI 8 beta code and may initially be rolled out only in select regions. With iOS 17, Apple intr

Ruby 3.4 frozen string literals: What Rails developers need to know

Ruby 3.4 Frozen String Literals: What Rails Developers Actually Need to Know Ruby 3.4 takes the first step in a multi-version transition to frozen string literals by default. Your Rails app will continue working exactly as before, but Ruby now provides opt-in warnings to help you prepare. Here’s what you need to know. The Three-Phase Transition Plan Ruby is implementing frozen string literals gradually over three releases: Ruby 3.4 (Now): Opt-in warnings when you enable deprecation warnings

(Experiment) Colocating agent instructions with eng docs

kayce@kayce0 ~/p/pigweed (main)> gemini ███ █████████ ██████████ ██████ ██████ █████ ██████ █████ █████ ░░░███ ███░░░░░███░░███░░░░░█░░██████ ██████ ░░███ ░░██████ ░░███ ░░███ ░░░███ ███ ░░░ ░███ █ ░ ░███░█████░███ ░███ ░███░███ ░███ ░███ ░░░███ ░███ ░██████ ░███░░███ ░███ ░███ ░███░░███░███ ░███ ███░ ░███ █████ ░███░░█ ░███ ░░░ ░███ ░███ ░███ ░░██████ ░███ ███░ ░░███ ░░███ ░███ ░ █ ░███ ░███ ░███ ░███ ░░█████ ░███ ███░ ░░█████████ ██████████ █████ █████ █████ █████ ░░█████ █████ ░░░ ░░░░░░░░░ ░

Features of D That I Love

10 features of D that I love This is a beginner-friendly post exploring some of my favourite parts of the D programming language, ranging from smaller quality of life stuff, to more major features. I won’t talk much about D’s metaprogramming in this post as that topic basically requires its own dedicated feature list, but I still want to mention that D’s metaprogramming is world class - allowing a level of flexibility & modelling power that few statically compiled languages are able to rival.

Google’s answer to Apple’s Handoff is coming with a welcome upgrade for Android (Updated)

Rita El Khoury / Android Authority TL;DR Google is working on an Android-wide “Handoff” feature for multi-device syncing. This feature will enable access to apps and media across your devices, and even sync notifications between them. Apple has a similar Continuity feature called Handoff, albeit without notification syncing. Update, July 1, 2025 (04:46 AM ET): We’ve managed to enable the UI for the Handoff feature within Cross-device services. The feature is still a work in progress and doe

Samsung is cooking up a privacy and security powerhouse in One UI 8 (APK teardown)

Joe Maring / Android Authority TL;DR Samsung seems to be developing a new “Alert Center” in One UI 8 to notify users about sneaky apps, security risks, and aging account settings. Code strings describing “Alert Center” and its features were discovered in an internal One UI 8 build. It’s unclear when Samsung will launch the new security hub, but it should be available in your phone’s Settings when and if it goes live. Samsung seems to be going one step above Android’s built-in security and pr