Latest Tech News

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

Filtered by: html Clear Filter

Differences between stal/IX and regular Linux

stal/IX This document contains a regularly updated list of differences between stal/IX and regular Linux. Minimalism “UNIX is simple and coherent…” - Dennis Ritchie “GNU’s Not UNIX” - Richard Stallman stal/IX is not UNIX or Linux in the usual sense of these terms. stal/IX is an attempt to rethink some fundamentals without touching the Linux API and ABI. One of the goals of stal/IX is to build the system from the ground up in such a way that it is easy to understand how it works, not just

Topics: com html https ix stal

Pico CSS – Minimal CSS Framework for Semantic HTML

With just the right amount of everything, Pico is a great starting point for a clean and lightweight design system. Class-light and Semantic Thriving on simplicity, Pico directly styles your HTML tags, using fewer than 10 .classes overall. It also comes with a class-less version for wild HTML purists. Discover the class-less version Great Styles with Just CSS No extra baggage needed. Pico works seamlessly without dependencies, package managers, external files, or JavaScript, achieving elegant

Topics: class color css html pico

<template>: The Content Template element

The <template> HTML element serves as a mechanism for holding HTML fragments, which can either be used later via JavaScript or generated immediately into shadow DOM. This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨November 2015⁩. Attributes This element includes the global attributes. shadowrootmode Creates a shadow root for the parent element. It is a declarative version of the Element.attachShadow() method and ac

How I Made Ruby Faster Than Ruby

How I Made Ruby Faster than Ruby If you’re a Ruby programmer, you most probably will be familiar ERB templates and the distinctive syntax where you mix normal HTML with snippets of Ruby for embedding dynamic values in HTML. I wrote recently about P2, a new HTML templating library for Ruby, where HTML is expressed using plain Ruby. Now this is nothing new or even unique. There’s a lot of other Ruby gems that allow you to do that: Phlex, (my own) Papercraft and Ruby2html come to mind. What is d

Topics: code erb html node p2

Web apps in a single, portable, self-updating, vanilla HTML file

Experience the Zen of making, hosting, and sharing great software in a single, portable, self-updating, vanilla HTML file Build web apps like you're sculpting clay, not managing infrastructure. Modern web development forces you through layers of abstraction: config files, build steps, magic frameworks, deployment pipelines. Hyperclay returns to a simpler model: your app is a single HTML file you (and your clients) manipulate directly. Edit the file through its visual UI and it persists its own

Topics: app apps build html like

Show HN: Understanding the Spatial Web Browser Engine

Understanding the Spatial Web Browser Engine ​ 1. What Is a Spatial Web Browser? ​ A Spatial Web Browser is a user agent that loads, interprets, and presents Web content (HTML, CSS, JS, WebGL/WebGPU, WebXR, media) directly inside a 3D coordinate space instead of flattening everything onto a 2D rectangular viewport. Every DOM element (text nodes, images, canvas, form controls, SVG, etc.) can be: Positioned, rotated, and scaled in world / XR reference spaces Layered with true depth ordering (n

Topics: 3d html jsar spatial web

The Joy of Mixing Custom Elements, Web Components, and Markdown

The Joy of Mixing Custom Elements, Web Components, and Markdown I love Markdown. I write faster and more natively in it than any other format or tool. If we zoom way out, here’s the most basic philosophy of Markdown: replace complicated stuff with simpler stuff. That’s all it does, really. It replaces some tedious nested taggy stuff with way simpler stuff that makes more visual sense and is faster to type. At its core, Markdown is really just a bunch of macros. This website runs on 6,000-ish

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

ScreenCoder: An intelligent UI-to-code generation system

ScreenCoder: Advancing Visual-to-Code Generation for Front-End Automation via Modular Multimodal Agents Yilei Jiang1*, Yaozhi Zheng1*, Yuxuan Wan2*, Jiaming Han1, Qunzhong Wang1, Michael R. Lyu2, Xiangyu Yue1✉ 1CUHK MMLab, 2CUHK ARISE Lab *Equal contribution ✉Corresponding author Introduction ScreenCoder is an intelligent UI-to-code generation system that transforms any screenshot or design mockup into clean, production-ready HTML/CSS code. Built with a modular multi-agent architecture

My website is one binary (2022)

my website is one binary 2022-04-06 ---------------------------- a.k.a. this one weird trick that inspires me to program creatively i have struggled for years to figure out a website framework that feels good to me. i tried all of the classics, including but limited to: - ghost - hugo - jekyll - sr.ht + tarball - manual html editing i have very high and unusual standards, and none of the above felt correct to me. more importantly, none of the above excited me. i have uncovered the secret. i have

A valid HTML zip bomb

Many sites have been affected by the aggressiveness of web crawlers designed to improve LLMs. I’ve been relatively spared, but since the phenomenon started, I've been looking for a solution to implement. Today, I present a zip bomb gzip and brotli that is valid HTML. The initial problem is the aggressiveness of LLM web crawlers that don't respect robots.txt . The first idea that comes to mind is IP blocking. However, web crawlers have circumvented this restriction by using individual IPs via

What should a native DOM templating API look like?

If you read my previous post, The time is right for a DOM templating API, you might be wondering what such an API would look like. Let's dive into that question now. What are we building? First, let's clarify what we're trying to design here, because when people hear the abstract template API idea described, before there's a concrete proposal or examples, they can sometimes think of very different things. In webcomponents/1069 I propose that we add a "declarative JavaScript templating API"

New FileFix attack runs JScript while bypassing Windows MoTW alerts

A new FileFix attack allows executing malicious scripts while bypassing the Mark of the Web (MoTW) protection in Windows by exploiting how browsers handle saved HTML webpages. The technique, was devised by security researcher mr.d0x Last week, the researcher showed how the first FileFix method worked as an alternative to 'ClickFix' attacks by tricking users into pasting a disguised PowerShell command into the File Explorer address bar. The attack involves a phishing page to trick the victim in

XSLT – Native, zero-config build system for the Web

XSLT XSLT (1999): native, zero-config build system for the Web. From: Grug brain Paco To: Paco Subject: XSLT most static websites created like this data ( .json , .md , .txt ) , , ) build system (Hugo, Next.js, Astro, …) output (static HTML) me make many website, find build system has much complexity. not understand big project like React Next.js, need many PhD for understand how my markdown blog work me want remove framework (many grug do), want use simple HTML and CSS, use sacred spec

Topics: blog html like web xml

String Interpolation in C++ Using Glaze Stencil/Mustache

Glaze provides string interpolation for C++ structs through the stencil and mustache formats. These provide templating mechanisms for formatting structured data into strings, inspired by the Mustache templating language. This enables the generation of dynamic output by combining predefined templates with C++ structs. Basic Usage¶ struct person { std :: string first_name {}; std :: string last_name {}; uint32_t age {}; bool hungry {}; bool employed {}; }; // Basic interpolation std :: string_vi