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.

Ubuntu 24.0 Docker - PHP-FPM + NGINX - PHP-FPM gives /index.php 404 error

18 February 2026 @ 11:08 pm

I have a docker setup with Laravel Application that works fine on local Mac however, I am facing issues with the deployment on Ubuntu server 24.0. All my paths are correct All my volumes are mapped correctly I checked the file location which exists I have correctly pointed the root for NGINX i.e. both the NGINX and PHP-FPM has the same folder structure /var/www/api/public User & Group ID matches the host OS i.e. 1000:1000 in all containers Permissions: api: 755 api/storage : 775 api/bootstrap/cache: 775 Where could be the issue? I have created a git repo for this setup here. The folder structure I have is: Project Folder |- dock

Read text strings from binary file in Rust

18 February 2026 @ 11:04 pm

Some binary files, such as the .WAV files I'm working with, contain text strings. Some text editors, such as BBEdit are able to open the file, showing the text strings along with gibberish like "˚x‹(˝ÿËÔ§Û$˜ÿ¸,¿" for the binary data. When I try a naive approach such as "fs::read_to_string()" I get the understandable error "stream did not contain valid UTF-8". Is there a straight forward way to just pluck out the text strings I'm looking for?

Javascript/Typescript style: Why is function assignment preferred to function declaration syntax?

18 February 2026 @ 10:57 pm

I have an extensive background in several languages (java, C, python, perl, etc) and am starting to work more with Typescript (and React). I see lots of code which uses an assignment form of method declaration, such as: const handleChangeComplete = (color: { hex: any; }) => { setBackground(color.hex); onChangeComplete(color.hex); } Obviously this is a perfectly valid syntax, and so is: function handleChangeComplete(color: { hex: any; }) { setBackground(color.hex); onChangeComplete(color.hex); } Even though both forms work in the contexts I've encountered, the first form seems more prevalent. Are they not completely equivalent? Is there a particular reason to prefer one form over the other? So far I prefer the function syntax. It is more concise, and more familiar to devs experienced in other languages. As a reader, to me it seems to more directly expres

s3 table maintenance failing and Athena query: PERMISSION_DENIED error

18 February 2026 @ 10:39 pm

The problems I'm having: s3 tables maintenance fails, cannot access s3 tables in Athena s3 table maintenance fails: I make my s3 tables in a glue etl job, they show up in my s3 table bucket, but if i click on the table and go to the maintenance section, it says that maintenance failed and gives the following error: Encountered Iceberg validation exception when trying to read table. Ensure that your table is readable, adheres to the Iceberg specification, and contains only S3 paths that begin with your S3 Table alias. Athena error: My s3 tables appear in Athena, but i get the following when trying to query the table, PERMISSION_DENIED: null (Service: S3, Status Code: 403) Below is the configuration I've set for my glue etl notebook (using this [aws community answer](https://repost.aws/questions/QUwVF6859STAC

USB Device refuse to show up in the boot menu

18 February 2026 @ 10:35 pm

My laptop is ASUS Vivobook S14. System is UEFI, non-CSM. I have 2 USB that I did this test on : 16GB TOSHIBA, 8GB Lexar. The OS that I've been meaning to boot is the newest Tails OS (7.4.2) that's downloaded from the "Windows Installation" window from the official tails.org website itself. Both my devices has been flashed with : - Rufus, with the settings of GPT partition, and UEFI (non-CSM)* - BalenaEtcher And yes, it's fully cleaned before it was flashed. I tried both left side and right side port of the laptop. I've disabled secure boot and fast boot. There's no UEFI firmware settings user nor admin password. Both devices works on other machines, so clearly, it's the laptop's issue. It does the same thing when flashed with other OS including arch installer. I've tried the laptop's boot menu first. The USB devices did not show up at all. I tried the windows startup settings "Use other devices" menu. It also doesn't appear

What is the struct tag of anonymous structs in C?

18 February 2026 @ 9:55 pm

I need some advice from C language gurus (not necessarily C development gurus). Earlier, I was fiddling with a new C23 feature typeof (I know it's been there for GCC/Clang for a while, but from the standard point of view, it's new). I thought anonymous struct types with the same exact members were compatible with each other (https://en.cppreference.com/w/c/language/compatible_type.html), so I thought maybe the following code would work; it didn't. so_question.c #include <stdio.h> struct { int x; double y; } __my_var1__; struct { int x; double y; } __my_var2__; void foo(typeof(__my_var2__) aaa) { printf("%d %lf\n", aaa.x, aaa.y); } int main() { typeof(__my_var1__) bbb = { 1, 2.0 }; foo(bbb); return 0; } The exact error message from Clang 18.1.3 wa

How do I create a dictionary of dictionaries in Python?

18 February 2026 @ 9:51 pm

I've done some research, but couldn't find a reasonable answer to my problem. It's fairly simple. I have two Python dictionaries, d1 and d2. Let them be: d1 = {'a':1 , 'b':2} d2 = {'a':3 , 'b':4} Those dicts would be united as a new one, say new_dict: new_dict = {1:{'a':1 , 'b':2} , 2:{'a':3 , 'b':4}} Would that be possible? How? I know I can do this: new_dict = {1:d1 , 2:d2} But this doesn't seem to be smart/efficient, especially when the number of dictionaries to be appended to new_dict grow (d1, d2, d3, ..., dn). Thanks.

Azure AI Search semantic ranker degrades vector search quality with text-embedding-3-large

18 February 2026 @ 9:47 pm

Problem A Microsoft moderator has confirmed that the semantic ranker not working well with vector search is a "documented limitation": "If vector similarity dominates the top results, the semantic reranker may not have sufficient textual context to apply meaningful reranking or boosting." "This is not a bug, but a documented limitation." Our testing with 8,068 real user queries confirms this — enabling the semantic ranker on hybrid search with text-embedding-3-large drops Hit@1 by 27 percentage points. Setup Azure AI Search, ~254K documents, 8 languages Embeddings: text-embedding-3-large (1536 dimensions) Evaluation: 8,068 real user queri

Weird `std::variant::operator==` error with clang + libc++ and specific number of variants

18 February 2026 @ 7:06 pm

This is super weird and most likely a clang bug, but I want to be sure first, to avoid spamming devs with invalid issues. I've distilled my use case to a simple example, where clang produces the error, that I'm pretty sure should not be there. Weirdly enough, if I tinker with the number of alternatives the issue miraculously disappears. Other compilers don't emit any errors, as well as clang with libstdc++ (live on godbolt.com). // Set 1/2/3 to pick different use cases #define USE_CASE 1 #include <vector> #include <variant> struct Array; struct A1 { auto operator<=>(const A1 &) const = default; }; struct A2 { auto operator<=>(const A2 &) const = default; }; struct A3 { auto operator<=>(const A3 &) const = default; }; struct A4 { auto operator<=>(const A4 &) const = default; }; struct A5 { auto operator&

Would that be a good idea to make tuples like initializer_list of different types?

18 February 2026 @ 5:53 pm

std::initializer_list is baked into the language. If std::tuple had the same treatment, std::initializer_list would become "speacial" case for std::tuple where all types are the same. I wanted to simplify some code that calls the same function with different set or params: auto val = QueryRegString(HKEY_LOCAL_MACHINE, L"Windows Kits\\Installed Roots", L"KitsRoot10"); /// work with val val = QueryRegString(HKEY_LOCAL_MACHINE, L"Windows Kits\\Installed Roots", L"KitsRoot81"); /// work with val val = QueryRegString(HKEY_LOCAL_MACHINE, L"Microsoft SDKs\\Windows\\v7.1", L"InstallationFolder"); /// work with val I wanted to rewrite it like that: const auto regs[] = { {HKEY_LOCAL_MACHINE, L"Windows Kits\\Installed Roots", L"

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.