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 rectangle distorts when rotated around a pivot

22 April 2026 @ 7:14 pm

I have two perpendicular rectangles in an "L" shape and I'm trying to pivot the vertical one towards the other (the corner of the L should be the pivot point) but I'm running into two issues: the vertical one begins to skew into a parallelogram and also it seems to lose some height as it rotates around. Can you help me figure out what I can change to fix this? :root { --vdilation_factor: 2; --vdilation_factor_inv: calc(1 / var(--vdilation_factor)); /* Compute the inverse of dilation_factor */ --hdilation_factor: 10; --hdilation_factor_inv: calc(1 / var(--hdilation_factor)); /* Compute the inverse of dilation_factor */ } .container { position: relative; height: 400px; /* Increased height to accommodate animati

What are good ways to improve a simple React user administration app?

22 April 2026 @ 6:57 pm

I built a simple user administration app in JavaScript/React. It covers the basics, listing users, adding, editing, and deleting them, but I feel like there's a lot of room for improvement and I'm not sure where to focus next. Here is my App.jsx import { useState } from 'react' import './App.css' import { Users } from './components/Users' import { createUser, deleteUser, getUsers } from './services/user.service' import { UserEdit } from './components/UserEdit' function App() { const [users, setUsers] = useState(getUsers()) const handleNewUser = (user) => { createUser(user) setUsers(getUsers()) } const handleDeleteUser = (user)=> { deleteUser(user) setUsers(getUsers()) } return ( <> <h2><i className="bi-person text-primary me-2"></i>User-Administration</h2> <div className="card"> <h4>New User</h4> <UserEdit onNewUser={handl

How can I validate and pretty-print JSON in JavaScript?

22 April 2026 @ 6:18 pm

I have a JSON string and I want to: Validate if it's correct JSON Format (pretty-print) it for better readability What is the best way to do this in JavaScript? Answer: You can validate and pretty-print JSON in JavaScript using built-in methods like JSON.parse() and JSON.stringify().

Why is Rust's sort much faster than C++'s std::sort?

22 April 2026 @ 4:10 pm

g++ .\test_sort.cpp -O3 -march=native -mtune=native -flto -funroll-loops -fomit-frame-pointer -DNDEBUG C++: 8577.17 ms ------------------------------- rustc -C opt-level=3 main.rs Rust: 1379.375 ms I noticed that Rust’s sorting functions, especially sort_unstable, often seem significantly faster than C++’s std::sort in benchmarks. I understand that Rust’s sort_unstable is based on ipnsort (previously pdqsort-related work), while C++ implementations of std::sort are typically introsort-based depending on the standard library implementation. What specifically makes Rust’s implementation faster in practice? Is it mainly due to algorithmic differences (ipnsort vs introsort)? Is it because Rust specializes more aggressively for primitive types? Does branch prediction, partitioning strategy, or handli

How to use chokidar

22 April 2026 @ 3:11 pm

I m trying to upload videos automatically to cloudinary using chokidar but it's is not uploading the videos to the cloudinary although the code is correct. Suggest me some code so that i can use the code properly and upload the videos to the cloudinary

Creating an non constructible object: issue with trivially copyable definition?

22 April 2026 @ 2:00 pm

It is possible to design non-constructible classes, but I managed to instantiate an object of such a class: #include <bit> #include <cstring> #include <iostream> // Not constructible // Not implicit lifetime struct Test { int val{1}; Test() = delete; Test(Test const&) = delete; Test(Test&&) = delete; Test& operator=(Test const&) = default; Test& operator=(Test&&) = default; ~Test() = default; operator int() { return val; } }; int main() { char storage[sizeof(Test)]; int i{666}; std::memcpy(storage,&i,sizeof(Test)); auto HeWhoMustNotBeNamed = std::bit_cast<Test>(storage); std::cout << HeWhoMustNotBeNamed.val; } LIVE All tested compilers (gcc, clang and msvc) recognize Test as trivially copyable.

Spring gRPC multiple channels in Kubernetes

22 April 2026 @ 12:58 pm

I am looking for best practices on how to implement horizontal architecture with the latest Spring gRPC [1] in Kubernetes. In my Kubernetes cluster, I have one main service, which connects to multiple so-called worker services via gRPC and a load-balancer. However, when executing a simple for-loop to send requests to the workers, only a single one of those receives the requests. I am asking speficially, because to my understanding, a gRPC channel might contain multiple connections (sub-channels), but our Kubernetes cluster distributes requests to other pods according to channels, not simply connections (sub-channels) therein, i.e., L4 balancing, confer gRPC Load Balancing. Thus, do I need to setup a pool of gRPC channels [2] manually, as described in a very recent article here:

The multiple choices in a database

22 April 2026 @ 11:08 am

I'm building a web application that has ~34 independent dropdown lists (e.g. currency codes, country names, user types, example statuses, etc.). Each list has no relation to the others — they're purely used to populate <select> elements in forms. Which approach is standard for admin-managed dropdown lists? Would it be good to create a single table that have all this options or what.

I am getting this error "error 1004 method range of object _global failed"

21 April 2026 @ 10:56 am

I am working on a code where I am fetching the Data from 1 workbook to another workbook. But I am getting error "error 1004 method range of object _global failed". the error is debugging on "'This will find the last Row of the Tracker sheet Range("A2:P2000" & l_Row).Copy. Kindly help. Sub Get_Abc_Rates_Collate() Dim n As Integer Dim wb As Integer Dim master As String Dim Userfile As String Dim l_Row As Long Dim l_Dest As Long Application.DisplayAlerts = False Application.ScreenUpdating = False master = ThisWorkbook.Name With Application.FileDialog(msoFileDialogOpen) .AllowMultiSelect = True .Title = "Locate Your Files" .Show n = .SelectedItems.Count For wb = 1 To n Path = .SelectedItems(wb) Workbooks.Open (Path) Userfile = ActiveWorkbook.Name For Each Sheet In ActiveWorkbook.Worksheets If Sheet.Name = "abc_Collate" Then

Elegant and simplest way to monitor List<T> for changes of both list and items

20 April 2026 @ 7:45 pm

I need to be notified when an object is added or removed from an list and also when one of the objects in it is modified: var myList = [1, 2, 3]; myList.add(4); -> need a notification myList[1] = 0; -> need a notification var myVar = myList[2]; myVar = 3; -> need a notification I'm trying to figure out if it's possible to avoid installing third-party components, such as: https://flutter-it.dev/documentation/listen_it/collections/list_notifier or avoid writing dedicated methods, such as: void addItem(int number) { myList

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

Ask AIMee: An accessible accessibility-focused AI chatbot

31 March 2026 @ 4:49 pm

We’re happy to introduce AIMee – an easy-to-use, AI-powered conversational chatbot focused on accessibility. AIMee has been designed to be highly accessible to users with disabilities. Ask her accessibility questions to get quick answers and guidance. The name “AIMee” plays off of the “AIM” (Accessibility In Mind) from “WebAIM” and also “AI”. Here are some […]

A New Path for Digital Accessibility?

27 February 2026 @ 7:02 pm

Please note This post will explore how an adaptive, intelligent system could empower users with disabilities to optimize their experience in digital environments. Even were such a system available tomorrow, developers of digital content, services, and products would still be responsible for providing equal access to ALL users. Consider a few of the many exciting […]

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> […]

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.