Nifty Corners Cube

VN:F [1.9.22_1171]
Rating: 7.0/10 (1 vote cast)

Rounded corners the javascript way
Nifty Corners Cube

StackOverflow.com

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

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

Is this floating-point thermistor beta equation robust?

7 February 2026 @ 8:45 pm

I'll try to be judicious in how much context I include here. I will lead with my primary question and then fill out more context. Question Is there a different form of my equation that will be more numerically robust, especially against risks like catastrophic cancellation? Context I wrote an implementation of the beta equation thermistor beta from semiconductor physics. The implementation should use single precision, is in C, and targets a small Arm Cortex-M4F core with an FPU that supports FPv4-SP: The Cortex-M4F FPU implements the FPv4-SP floating-point extension. The FPU fully supports single-precision add, subtract, mult

Merging the headers then concatenate the records of a huge number of text files

7 February 2026 @ 8:40 pm

I would like to fuse a huge number of big (~10GiB) text files in VCF format. The operation requires to parse all the headers in order to generate and output a new, merged, one and then concatenate all the records while keeping the input files order; I was planning to do it with awk but stumbled with a few problems. The first problem is that I can't concatenate the records after reading the headers; here's a simple example illustrating it: #!/bin/bash awk ' BEGIN { getline a < ARGV[1]; getline b < ARGV[2]; print "#", a; print "#", b; } 1 ' <(printf '%s\n' A a1 a2) <(printf '%s\n' B b1 b2 b3) #A #B awk: warning: close of fd 62 (`/dev/fd/62') failed (Bad file descriptor) awk: warning: close of fd 63 (`/dev/fd/63') failed (Bad file descriptor) T

"from torch_geometric.data import Data" throwing an error

7 February 2026 @ 8:25 pm

If I run a py module with only these imports (no additional code) it works fine and the output is Process finished with exit code 0: import torch.utils.data from torch.utils.data.dataloader import default_collate But if I add this third import: import torch.utils.data from torch.utils.data.dataloader import default_collate from torch_geometric.data import Data The output is: Process finished with exit code 139 (interrupted by signal 11:SIGSEGV) I haven't the slightest idea of what is happening. If I do a pip list these are the packages installed in the venv: Package Version ------------------------ ---------------- aiohappyeyeballs 2.6.1 aiohttp 3.13.3 aiosignal 1.4.0 attrs 25.4.0 autograd 1.8.0 autograd-gamma 0.5.0 certifi 2026.1.4 cha

How can I match attributes with a value of A, B, or C in a single uBlock Origin filter?

7 February 2026 @ 8:23 pm

I am trying to create a filter in uBlock Origin that blocks elements where an attribute value is equal to one of several different values. (A, B, or C). For example, let's say I want to block span elements where the author attribute was an exact match for "alice", "bob", or "carol". I could write separate rules for each author name: example.com##span[author="alice"] example.com##span[author="bob"] example.com##span[author="carol"] However, this becomes difficult to maintain when working with more complex filter rules or matching against a large list of values. (For example, blocking posts from 170 subreddits or

How can I draw a square with a linear gradient fill inside a TPaintBox in Delphi FMX?

7 February 2026 @ 8:03 pm

I'm trying to draw a simple square with a gradient fill using a TPaintBox in Delphi FMX. I can draw shapes and solid colors without any issues, but I can't figure out how to apply a gradient inside the square during the OnPaint event. Here’s the basic structure of what I have so far: procedure TForm1.PaintBox1Paint(Sender: TObject; Canvas: TCanvas); begin Canvas.BeginScene; try // I need to draw square here with gradient fill finally Canvas.EndScene; end; end; I’m not sure how to correctly configure and apply them to a rectangle drawn manually on a TPaintBox. What is the correct way to draw a square with a gradient fill inside a TPaintBox?

Are soft object pointers guaranteed to async resolve if they are given a correct path to a correct object?

7 February 2026 @ 6:21 pm

By correct object I mean something that would otherwise be created when resolving a normal pointer. Suppose I async load a soft pointer and store it in an object pointer at completion (to create a hard reference), are there realistic scenarios where that TObjectPtr is invalid?

Local variables aren't displaying in Codelite

7 February 2026 @ 6:00 pm

I have installed the latest version of Codelite which is 18.0 and I have the latest version of MinGW on my system. When, however, I use this IDE in my projects and I want to debug the projects, the window that's supposed to display local variables is empty: Image of Debugger, showing no local variables How can I fix this?

VS Code suddenly slow to open, how to fix?

7 February 2026 @ 5:36 pm

Suddenly, my VS Code (version 1.109) has started taking 8-10 seconds to open. Earlier, it used to open instantly. My laptop is fast and other apps open quickly, but VS Code is slow. How can I resolve this?

MimeKit Memory access violations after repeated runs

7 February 2026 @ 5:14 pm

I have a VB.NET (.NET Framework 4..6.2) application that runs as a Scheduled Task (Windows Server) every 5 minutes. On each run it checks a database and, if anything is there, fetches a collection of class objects, clsMailQ, the properties of which include the necessary information for creating emails: .sTo - the email address of the recipient, sSubject = the subject line, etc etc. All pretty obvious. It runs fine... for a few hours, then crashes, with Task Scheduler returning the error 0xC0000005 which appears to denote a memory access violation. This is a new application, with MimeKit installed through Visual Studio and Nuge4.14.0.0t, and the MimeKit dll tells me it's version 4.14.0.0 Below is the basic code (I've stripped this down to the essential bits - ie removed error catching etc) -. I'd be grateful in anyone can tell me what I can do to avoid the memory issue. Am I doing something wrong / silly? This application needs to run every 5 minutes 24/7 ...

Query deeply nested document with dynamic key

7 February 2026 @ 5:03 pm

I want to return a specific subdocument which is nested in a second level array. My problems are: The document is deeply nested The fields (keys) are dynamic and based on req.body values The collection looks something like this (simplified values for the example): leagues:[ { "_id": "693ae6dc320b2bb92635361e", "cards": [ { "_id": "600056266", "users": [ { "_id": "EafXiJktdKSM45OcnniU4gpcGWc2", "vote": { "234": { "W": "56", "M": "543", "R": "322" },

960.gs

VN:F [1.9.22_1171]
Rating: 8.0/10 (1 vote cast)

CSS Grid System layout guide
960.gs

IconPot .com

VN:F [1.9.22_1171]
Rating: 7.0/10 (1 vote cast)

Totally free icons

Interface.eyecon.ro

VN:F [1.9.22_1171]
Rating: 6.0/10 (1 vote cast)

Interface elements for jQuery
Interface.eyecon.ro

ThemeForest.net

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

WordPress Themes, HTML Templates.

kuler.adobe.com

VN:F [1.9.22_1171]
Rating: 8.0/10 (1 vote cast)

color / colour themes by design

webanalyticssolutionprofiler.com

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

Web Analytics::Free Resources from Immeria
webanalyticssolutionprofiler.com

WebAIM.org

VN:F [1.9.22_1171]
Rating: 4.0/10 (1 vote cast)

Web Accessibility In Mind

2026 Predictions: The Next Big Shifts in Web Accessibility

22 December 2025 @ 11:22 pm

I’ve lived long enough, and worked in accessibility long enough, to have honed a healthy skepticism when I hear about the Next Big Thing. I’ve seen lush website launches that look great, until I activate a screen reader. Yet, in spite of it all, accessibility does evolve, but quietly rather than dramatically. As I gaze […]

Word and PowerPoint Alt Text Roundup

31 October 2025 @ 7:14 pm

Introduction In Microsoft Word and PowerPoint, there are many types of non-text content that can be given alternative text. We tested the alternative text of everything that we could think of in Word and PowerPoint and then converted these files to PDFs using Adobe’s Acrobat PDFMaker (the Acrobat Tab on Windows), Adobe’s Create PDF cloud […]

Accessibility by Design: Preparing K–12 Schools for What’s Next

30 July 2025 @ 5:51 pm

Delivering web and digital accessibility in any environment requires strategic planning and cross-organizational commitment. While the goal (ensuring that websites and digital platforms do not present barriers to individuals with disabilities) and the standards (the Web Content Accessibility Guidelines) remain constant, implementation must be tailored to each organization’s needs and context.   For K–12 educational agencies, […]

Up and Coming ARIA 

30 May 2025 @ 6:19 pm

If you work in web accessibility, you’ve probably spent a lot of time explaining and implementing the ARIA roles and attributes that have been around for years—things like aria-label, aria-labelledby, and role="dialog". But the ARIA landscape isn’t static. In fact, recent ARIA specifications (especially ARIA 1.3) include a number of emerging and lesser-known features that […]

Global Digital Accessibility Salary Survey Results

27 February 2025 @ 8:45 pm

In December 2024 WebAIM conducted a survey to collect salary and job-related data from professionals whose job responsibilities primarily focus on making technology and digital products accessible and usable to people with disabilities. 656 responses were collected. The full survey results are now available. This survey was conducted in conjunction with the GAAD Foundation. The GAAD […]

Join the Discussion—From Your Inbox

31 January 2025 @ 9:01 pm

Which WebAIM resource had its 25th birthday on November 1, 2024? The answer is our Web Accessibility Email Discussion List! From the halcyon days when Hotmail had over 35 million users, to our modern era where Gmail has 2.5 billion users, the amount of emails in most inboxes has gone from a trickle to a […]

Using Severity Ratings to Prioritize Web Accessibility Remediation

22 November 2024 @ 6:30 pm

So, you’ve found your website’s accessibility issues using WAVE or other testing tools, and by completing manual testing using a keyboard, a screen reader, and zooming the browser window. Now what? When it comes to prioritizing web accessibility fixes, ranking the severity of each issue is an effective way to prioritize and make impactful improvements. […]

25 Accessibility Tips to Celebrate 25 Years

31 October 2024 @ 4:38 pm

As WebAIM celebrates our 25 year anniversary this month, we’ve shared 25 accessibility tips on our LinkedIn and Twitter/X social media channels. All 25 quick tips are compiled below. Tip #1: When to Use Links and Buttons Links are about navigation. Buttons are about function. To eliminate confusion for screen reader users, use a <button> […]

Celebrating WebAIM’s 25th Anniversary

30 September 2024 @ 10:25 pm

25 years ago, in October of 1999, the Web Accessibility In Mind (WebAIM) project began at Utah State University. In the years previous, Dr. Cyndi Rowland had formed a vision for how impactful the web could be on individuals with disabilities, and she learned how inaccessible web content would pose significant barriers to them. Knowing […]

Introducing NCADEMI: The National Center on Accessible Digital Educational Materials & Instruction 

30 September 2024 @ 10:25 pm

Tomorrow, October 1st, marks a significant milestone in WebAIM’s 25 year history of expanding the potential of the web for people with disabilities. In partnership with our colleagues at the Institute for Disability Research, Policy & Practice at Utah State University, we’re launching a new technical assistance center. The National Center on Accessible Digital Educational […]

CatsWhoCode.com

VN:F [1.9.22_1171]
Rating: 7.0/10 (1 vote cast)

Titbits for web designers and alike

Unable to load the feed. Please try again later.