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.

css linked but having issues with hover

24 December 2025 @ 12:44 am

I'm making a site and it has 3 index files as of now, but one of my index file isnt working with the hover in CSS I gave it, it has the same class with no changes, but nth works. I double-checked the CSS and nth worked. Is it my HTML?

Azure Communication Services Room Call stuck in "None" state - SDK shows roomJoin: false

24 December 2025 @ 12:16 am

I'm trying to join an ACS Room call using the JavaScript Calling SDK. The room is created successfully, participants are added via the Rooms REST API, but when calling callAgent.join({ roomId }), the returned call object stays in "None" state indefinitely. SDK telemetry reveals roomJoin: false and IsGroupCall: true, suggesting the SDK isn't recognizing the join attempt as a room call despite using the correct locator format. I've tried AI (Codex and Claude Code) but no success figuring it out. I seem to be going in circles on this now and could use some human insight. Environment: @azure/communication-calling: 1.40.1 @azure/communication-common: 2.4.0 @azure/communication-rooms: (backend, latest) Platform: React + Vite, deployed to Azure Static Web Apps

Canvas 2D hidden line removal for 3D wireframe - depth buffer approach fails on complex meshes

24 December 2025 @ 12:08 am

I'm implementing hidden line removal for a 3D wireframe renderer using HTML5 Canvas 2D. When rendering a solid object with wireframe overlay, edges behind solid faces should be hidden. Drag to rotate. Toggle "X-Ray" to see the difference between with/without hidden line removal. The hidden line removal is not working correctly - edges that should be hidden are visible, and edges that should be visible are sometimes hidden. Approaches I've Tried 1. Depth Buffer Simulation Create an offscreen canvas as a depth buffer, render front-facing faces with grayscale values encoding depth (darker = closer), then sample points along each edge and compare depths: function drawFaceToDepthBuffer(verts, nearZ, farZ) {   for (let i = 1; i < verts.length - 1; i++) {     const v0 = verts[0], v1 = verts[i], v2 = verts[i + 1];     const avgZ = (v0.z + v1.z + v2.z) / 3;     const normDepth = (avgZ - near

Avoid storing empty arrays in MongoDB

24 December 2025 @ 12:00 am

I have a product schema. Each product will have default fields: title, price, stock, description, and category. Depending on the category (clothing, technology) selected from the front end, I send additional fields: clothing: sizes: [String], gender: String, colors: [String], typeClothing: String, technology: brand: String, techType: String The problem I'm having is that when I send a technology product, which doesn't have sizes or colors in the database, these values ​​are saved as empty arrays. I understand this is because their data type is an array of strings. How can I prevent this? Adding `default: undefined` worked for me, but I'm not sure if this is correct.

How to vectorize (ensemble) nnx.Modules with separate parameters using nnx.vmap in JAX/Flax

23 December 2025 @ 11:59 pm

I have a vectorized (ensemble) Q-network implemented using Flax Linen that works as expected. Each critic in the ensemble has separate parameters, and the output is stacked along the first dimension (n_critics). I am trying to port this implementation to Flax nnx, but I am struggling because nnx.vmap does not have the same API or semantics as flax.linen.nn.vmap. In particular, I am unsure how to correctly create an ensemble of nnx.Modules with independent parameters. import jax.numpy as jnp from flax import linen as nn from typing import Optional class QNetwork(nn.Module): action_dim: int rew_dim: int hidden_dim: int = 256 @nn.compact def __call__(self, obs, w, deterministic: bool): x = nn.Dense(self.hidden_dim)(obs) x = nn.relu(x) x = nn.Dense(self.action_dim * self.rew_dim)(x) return x clas

gemini cli and mcp of mssql extension

23 December 2025 @ 11:52 pm

from reading : https://docs.cloud.google.com/sql/docs/sqlserver/pre-built-tools-with-mcp-toolbox#mcp-configure-your-mcp-client-geminicli-sqlserver i get this error : ✕ Error during discovery for MCP server 'sql_server': MCP error -32000: Connection closed in the page : Set environment variables to connect to your SQL Server instance part i don't understand the export MSSQL_HOST="AKRAM-PC\EXPRESS" and the rest

I had to restart my Windows OS on my computer. I had TDM-GCC and Virtual Studio Code. Now that I've reinstalled VSC, it gives me an error

23 December 2025 @ 11:37 pm

My computer had a black screen saying "Couldn't connect to the network," and it wouldn't start, so I had to restart my OS, removing all of my apps but retaining most of my files. After I reset my computer, only TDM-GCC was still there, so I just reinstalled VSC. When I tried to run a program in C++ that I had made, it gave me the following error: "PS C:\Users\thebe\OneDrive\Fortran Projects> cd "c:\Users\thebe\OneDrive\Fortran Projects\" ; if ($?) { g++ something.cpp -o something } ; if ($?) { .\something } g++ : The term 'g++' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:60" I knew the g++ function had something to do with TDM-GCC, so I figured that it was the issue. All of my extensions were already there when I reinstalled VSC, so it couldn't hav

How do I create name roller?

23 December 2025 @ 11:11 pm

Using this regex: // Match plural words (cats, dogs, boxes) - including words ending in x/ch/sh which add 'es' $pattern = "/^[a-zA-Z]+(s|es|xes)?$/"; Can I apply this as a suffix on $_POST['USER']? A suffix is the end of a string, like a namestring for example. So in Stanley's ' and s are suffix

java.lang.ExceptionInInitializerError com.sun.tools.javac.code.TypeTag :: UNKNOWN

23 December 2025 @ 10:34 pm

I get this error when trying to launch my spring boot application on IntelliJ at the build : java: java.lang.ExceptionInInitializerError com.sun.tools.javac.code.TypeTag :: UNKNOWN The jdk installed is the jdk 25 but the project is set to java 21. I made some research i find that the problem is linked usually to lombok and try differents solutions, but still can't resolve the problem. I try to compile the project using mvnw but i get this error : ./mvnw clean install The JAVA_HOME environment variable is not defined correctly, this environment variable is needed to run this program. Or the JAVA_HOME is correctly set in my environments variables. Here is a part of my pom.xml : <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=

How do you create a `preg_match` with plural s and '

23 December 2025 @ 10:03 pm

How do you create a preg_match with plural s and '?

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.