Latest Tech News

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

Filtered by: script Clear Filter

How to safely escape JSON inside HTML SCRIPT elements

<script> tags follow unintuitive parsing rules that can break a webpage in surprising ways. Fortunately, it’s relatively straightforward to escape JSON for script tags. Just do this Replace < with \x3C or \u003C in JSON strings. with or in JSON strings. In PHP, use json_encode($data, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES) for safe JSON in <script> tags. for safe JSON in tags. In WordPress, use wp_json_encode with the same flags. You don’t have to take my word for it, the HTML standard recom

Json2dir: a JSON-to-directory converter, a fast alternative to home-manager

json2dir : a JSON-to-directory converter, a fast alternative to home-manager for managing dotfiles TL;DR: file.json : { "file" : " Hello, world! " , "dir" : { "subfile" : " Content. " , "subdir" : {} }, "symlink" : [ " link " , " target path " ], "script" : [ " script " , " #!/bin/sh echo Howdy! " ] } cat file.json | json2dir Here, four files will be added to the current directory: file , dir , symlink , and script . Using json2dir as a home-manager alternative. Input schema Objects re

The Best Hearing Aids of 2025, Tested and Reviewed

How much money should you expect to spend on a hearing aid? The answer depends primarily on whether you’re looking into over-the-counter or prescription hearing aids. Unsurprisingly, the latter is a wallet guzzler, with average costs between $2,000 to $8,000. But OTCs can ring up quite a tab in their own right, and our most highly rated devices will still run you about $800 to $2,000 a pair. So far, we haven’t found an OTC device under this $800 price that is truly effective at treating hearing

The Browser Company launches a $20 monthly subscription for its AI-powered browser

The Browser Company has launched a Pro subscription plan for Dia, its new web browser that heavily integrates AI features. The plan costs $20 per month and provides unlimited access to Dia’s AI-powered chat and skills features. The introduction of a paid tier means free users will now face usage limits on AI features. While The Browser Company hasn’t specified exact limits, CEO Josh Miller told The New York Times in July that the browser will remain free for those who use AI features “a few tim

How to upgrade your deadbolt with a smart lock - and the one I recommend most

Nuki Smart Lock ZDNET's key takeaways The Nuki Smart Lock is now available for $159 on its own, and $229 when combined with the Keypad 2. This smart lock fits into an existing deadbolt, supports Matter for easy integrations with smart home systems, and features hands-free unlocking. Though innovative, the Nuki smart lock requires a subscription for full remote access; it's also very loud when locking and unlocking, and the Keypad 2 is somewhat slow. $159 at Amazon I'm all for smart home techn

Show HN: HMPL – Small Template Language for Rendering UI from Server to Client

Server-oriented customizable templating for JavaScript Introduction hmpl is a small template language for displaying UI from server to client. It is based on customizable requests sent to the server via fetch and processed into ready-made HTML. The language is syntactically block-based and integrated with JSON5 and DOMPurify. Reduce the size of your javascript files and display the same UI as if it was written in a modern framework! ☆ If you find HMPL useful, please consider giving us a star

Topics: div hmpl js script server

Best Home Security Cameras Without Subscriptions in 2025: Save on Safety

Does the camera have the ability to listen to audio and initiate a two-way conversation using the app? Does the camera have night vision that can cover the space you have in mind? Is the app easy to understand, control and use to change settings? Does the camera work with your existing home security system or your preferred voice assistant? Can video be stored without fees? Is it local storage under your control or cloud storage? Do you have to purchase your own storage device? Can you share

Browser extension and local backend that automatically archives YouTube videos

Starchive A browser extension and local backend system that automatically archives YouTube videos when visited. The system consists of a Firefox extension that detects YouTube video pages and a Go backend that downloads the videos using yt-dlp. Components Backend (Go) HTTP Server ( main.go ): Runs on port 3009 with two endpoints: / : Basic health check endpoint /youtube : POST endpoint that accepts video IDs and triggers downloads ( ): Runs on port 3009 with two endpoints: Video Downloader

Show HN: Astro dev blog template with 60 interactive colorschemes

Welcome to the example site. This site is meant to show off my custom Astro theme/template MultiTerm which creates a coder-ready blog complete with an interactive theme changer, RSS, sitemap, tagging, and markdown extensions. Tags Latest Posts # Showing Off Blog Features 2025-07-20 3 min read Since the post does not have a description in the frontmatter, the first paragraph is used. #astro Read # TypeScript's keyof and Mapped Types 2025-07-14 1 min read Explore the keyof operator and mapped

US moves to ban shady subscription auto-renewals after FTC court loss

Canceling a subscription should be easy, Democratic lawmakers insisted Wednesday, introducing a bill to revive the Federal Trade Commission's so-called "Click-to-Cancel" rule. The FTC hoped to enforce the rule due to "increasing reports of consumers losing time and money from intentionally difficult subscription cancellation processes," lawmakers said. But cable companies sued to block the FTC rule last year, arguing that the FTC failed to conduct an economic impact study before making it easie

How to trigger a command on Linux when power switches from AC to battery

After thinking about BusKill product that triggers a command once the USB cord disconnects, I have been thinking at a simple alternative. BusKill official project website When using a laptop connected to power most of the time, you may want it to power off once it gets disconnected, this can be really useful if you use it in a public area like a bar or a train. The idea is to protect the laptop if it gets stolen while in use and unlocked. Here is how to proceed on Linux, using a trigger on an

How to trigger a command on Linux when disconnected from power

After thinking about BusKill product that triggers a command once the USB cord disconnects, I have been thinking at a simple alternative. BusKill official project website When using a laptop connected to power most of the time, you may want it to power off once it gets disconnected, this can be really useful if you use it in a public area like a bar or a train. The idea is to protect the laptop if it gets stolen while in use and unlocked. Here is how to proceed on Linux, using a trigger on an

Futurehome smart hub owners must pay new $117 subscription or lose access

Smart home device maker Futurehome is forcing its customers’ hands by suddenly requiring a subscription for basic functionality of its products. Launched in 2016, Futurehome’s Smarthub is marketed as a central hub for controlling Internet-connected devices in smart homes. For years, the Norwegian company sold its products, which also include smart thermostats, smart lighting, and smart fire and carbon monoxide alarms, for a one-time fee that included access to its companion app and cloud platfo

Acquisition sends thousands of Whistle pet trackers to IoT graveyard

Whistle pet trackers are headed to the Internet of Things (IoT) graveyard. After releasing its first product in 2013, the Seattle-based Whistle has just been acquired by a competitor that has decided to brick all of Whistle's smart GPS and activity monitors. Tractive, an Austrian company that has also been selling Internet-connected GPS trackers for pets since 2013, on Monday announced its acquisition of Whistle from Mars Petcare, as spotted by The Verge. Mars Petcare is the pet food subsidiary

KernelScript eBPF-centric programming language

KernelScript ⚠️ Beta Version Notice KernelScript is currently in beta development. The language syntax, APIs, and features are subject to change at any time without backward compatibility guarantees. This software is intended for experimental use and early feedback. Production use is not recommended at this time. A Domain-Specific Programming Language for eBPF-Centric Development KernelScript is a modern, type-safe, domain-specific programming language that unifies eBPF, userspace, and kernel

Do variable names matter for AI code completion? (2025)

Do Variable Names Matter for AI Code Completion? When GitHub Copilot suggests your next line of code, does it matter whether your variables are named current_temperature or just x ? I ran an experiment to find out, testing 8 different AI models on 500 Python code samples across 7 naming styles. The results suggest that descriptive variable names do help AI code completion. The Experiment Each code sample was transformed into different naming conventions: Descriptive ( process_user_input )

Futurehome smart hub owners must pay new $117 subscription or lose access

Smart home device maker Futurehome is forcing its customers’ hands by suddenly requiring a subscription for basic functionality of its products. Launched in 2016, Futurehome’s Smarthub is marketed as a central hub for controlling Internet-connected devices in smart homes. For years, the Norwegian company sold its products, which also include smart thermostats, smart lighting, and smart fire and carbon monoxide alarms, for a one-time fee that included access to its companion app and cloud platfo

Bankrupt Futurehome suddenly makes its smart home hub a subscription service

Smart home device maker Futurehome is forcing its customers’ hands by suddenly requiring a subscription for basic functionality of its products. Launched in 2016, Futurehome’s Smarthub is marketed as a central hub for controlling Internet-connected devices in smart homes. For years, the Norwegian company sold its products, which also include smart thermostats, smart lighting, and smart fire and carbon monoxide alarms, for a one-time fee that included access to its companion app and cloud platfo

Aeneas transforms how historians connect the past

Research Aeneas transforms how historians connect the past Share Copy link × Introducing the first model for contextualizing ancient inscriptions, designed to help historians better interpret, attribute and restore fragmentary texts. Writing was everywhere in the Roman world — etched onto everything from imperial monuments to everyday objects. From political graffiti, love poems and epitaphs to business transactions, birthday invitations and magical spells, inscriptions offer modern hist

The many JavaScript runtimes of the last decade

July 27, 2025 The many, many, many JavaScript runtimes of the last decade This last decade has seen an inundation of new JavaScript runtimes (and engines in equal measure), enabling us to run JavaScript in all manner of contexts with precise fitness for task. Through these, we've seen the language spread to the Cloud, the edge, Smart TVs, mobile devices, and even microcontrollers. In this article, we'll explore what's driving this diversity, and why no one runtime or engine suffices for all p

IBM Keyboard Patents

JavaScript disabled or not supported It appears you have prevented JavaScript from running in your web browser or are using a web browser that does not support JavaScript. Admiral Shark's Keyboards presently requires JavaScript for quality-of-life features like switching between light/dark mode, navigating via title or image and copying search query links, and is necessary for the keyboard matrix simulators, keyboard property modals, interactable slideshows and image size optimisation. Please c

The many, many, many JavaScript runtimes of the last decade

July 27, 2025 The many, many, many JavaScript runtimes of the last decade This last decade has seen an inundation of new JavaScript runtimes (and engines in equal measure), enabling us to run JavaScript in all manner of contexts with precise fitness for task. Through these, we've seen the language spread to the Cloud, the edge, Smart TVs, mobile devices, and even microcontrollers. In this article, we'll explore what's driving this diversity, and why no one runtime or engine suffices for all p

How we rooted Copilot

Microsoft has silently pushed an update back in April 2025 for Copilot Enterprise, enabling a live Python sandbox running Jupyter Notebook that can execute code in the backend. Well, that sounds like a terrific idea, let’s explore it for a bit! It turns out to be easy to have it execute exactly the code we want to on the underlying system using Jupyter Notebook syntax %command . Well, it worked most of the time. It feels like telling an 8-year-old child to do something. If it’s in a good mood

How We Rooted Copilot

Microsoft has silently pushed an update back in April 2025 for Copilot Enterprise, enabling a live Python sandbox running Jupyter Notebook that can execute code in the backend. Well, that sounds like a terrific idea, let’s explore it for a bit! It turns out to be easy to have it execute exactly the code we want to on the underlying system using Jupyter Notebook syntax %command . Well, it worked most of the time. It feels like telling an 8-year-old child to do something. If it’s in a good mood

Does Rocket Money Work? I’m Convinced After Saving $400 in Subscription Costs

You could be losing money to subscriptions you don't even use. This popular budgeting app can help you cut costs. Getty Images/Rocket Money/Amy Kim/CNET No one likes losing money, yet many of us are allowing dollars to drain from our bank accounts without realizing it. The average US consumer spends around $200 a year on subscriptions they don't even use, according to a recent CNET study. It's easy to see why. You sign up for a free trial or service and forget about it, but the subscription pr

Show HN: Tsbro – TypeScript for the browser, no build step

tsbro TypeScript for the Browser. No tooling, no build step, simply works. TypeScript is still second-class citizen with regards to browser adoption, there is a proposal to fix that, but until then we have to use tooling, bundlers, build steps that are an impediment for when you want to quickly create a short demo or PoC. There are ways to run TypeScript code but it can't import other files or make use of remote packages. tsbro solves this by completely bypassing the browser's import system u

Show HN: tsbro – TypeScript for the Browser, No Build Step

tsbro TypeScript for the Browser. No tooling, no build step, simply works. TypeScript is still second-class citizen with regards to browser adoption, there is a proposal to fix that, but until then we have to use tooling, bundlers, build steps that are an impediment for when you want to quickly create a short demo or PoC. There are ways to run TypeScript code but it can't import other files or make use of remote packages. tsbro solves this by completely bypassing the browser's import system u

Vet is a safety net for the curl | bash pattern

vet is a command-line tool that acts as a safety net for the common but risky curl | bash pattern. It lets you inspect remote scripts for changes, run them through a linter, and require your explicit approval before they can execute. Don't just run it, vet it. The Problem We've all seen this pattern for installing software: # This is convenient, but you're blindly trusting the remote script. curl -sSL https://example.com/install.sh | bash This is dangerous. The script could be malicious, th