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.

Unsure about Weapon System Scope

11 January 2026 @ 2:47 am

I am making a small game, will take roughly 3 weeks to make. I am making a weapons system but I'm afraid is far too complicated and the scope is unnecessary for this game. However, it is modular and reusable, but will take me too long too make. Shall I make a more simpler, less advanced and reusable system. Note: The entire game will only have 2 simple weapons.

SVG Adding to Attribute using JS only appends the addition, doesn't add it

11 January 2026 @ 2:47 am

My issue is when I try to change an attribute like this: document.getElementsByTagNameNS('http://www.w3.org/2000/svg', "rect")[0].setAttribute("width", document.getElementsByTagNameNS('http://www.w3.org/2000/svg', "rect")[0].getAttribute("width") + 50); (or simplified) rect.setAttribute("attribute", rect.getAttribute("attribute") + 50); it appends what I want to add onto the excising value so if the width was 100, adding 50 would result in 10050, not the desired 150. What should I do to actually change the attribute, not append to it? Here's the full code if you need to mess around with it <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> &

Taking a server id, and resulting all channel id's in discord using python

11 January 2026 @ 2:43 am

I have some code, its main purpose was to take in a server id, and give me all the channel id's; i want to not have to add a bot to the server, and i have been struggling for like 4 days. Here is my code import requests import json import sys BOT_TOKEN = "not today you aint getting this" API_BASE = "https://discord.com/api/v10" def get_channels(server_id): headers = { 'Authorization': f'Bot {BOT_TOKEN}' } channels_url = f'https://discord.com/api/v10/guilds/{server_id}/channels' response = requests.get(channels_url, headers=headers) print(response.json()) # {'message': '401: Unauthorized', 'code': 0} get_channels(1454583875786506444)

java.lang.NoSuchMethodError: No such DSL method 'withAWS' found among steps

11 January 2026 @ 2:40 am

I want to create a Jenkins job which cleans all images from a list of defined repositories. I tried this: pipeline { agent any environment { AWS_DEFAULT_REGION = 'us-east-1' REPOS = '123456.dkr.ecr.us-east-1.amazonaws.com/service1' } stages { stage('Delete All ECR Images') { steps { withAWS(credentials: 'aws_credentials', region: 'us-east-1') { sh ''' set -e for REPO in $REPOS; do echo "Processing repository: $REPO" IMAGE_IDS=$(aws ecr list-images \ --repository-name "$REPO" \ --query 'imageIds[*]' \ --output json) if [ "$IMAGE_IDS" = "[]" ]; then echo "No images found in $

AWS Identity Center (SSO) 403 "No access" on SAML Assertion for Amazon OpenSearch Dashboards

11 January 2026 @ 2:10 am

Note: The question was generated by LLM, I double-checked it to make sure its good. I am unable to get SAML SSO working between AWS IAM Identity Center (IdC) and an Amazon OpenSearch Service domain (Dashboards). Despite aligning the Entity IDs and ACS URLs, I am getting a persistent 403 "No access" error from the AWS SSO portal immediately after logging in. Environment Details: Region: eu-west-3 OpenSearch Domain: company-it-logs (Public endpoint) Dashboards URL: https://search-company-it-logs-xxx.eu-west-3.es.amazonaws.com/_dashboards OpenSearch Version: 3.3 Current Configuration:

Operation is not allowed - firebase phone verification code

11 January 2026 @ 1:35 am

I'm trying to build a phone number OTP verification system using Firebase and Android studio java. I've set up the things in firebase, the SHA-1 and SHA-256, and the phone sign in method is Enabled. the error message is: This operation is not allowed. This may be due to the given sign-in provider being disabled of this Firebase project. I've tried talking to AI but with no luck. Here's the full code of the Java activity, note that the signIn() method is not finished yet: package com.example.mechat; import android.annotation.SuppressLint; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.ProgressBar; import android.widget.TextView; import android.widget.Toast; import androidx.activity.EdgeToEdge; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity;

How to delete a Git repository from C#? [duplicate]

10 January 2026 @ 8:55 pm

I have a simple Git repository: git init test cd test echo > file git add file git commit -m "test" I can't delete that Git repository from C# code. I tried a simple recursive delete: Directory.Delete(@"X:\test\.git", true); Where X: is the drive I ran above commands on. The error is: UnauthorizedAccessException: Access to the path '<some GUID of Git>' is denied. However, I can easily delete the .git folder from Windows Explorer (with or without recycle bin), so obviously I have enough permissions. The security tab says that I am the owner. When I check effective access for the .git folder with my user, I get a green checkmark on every item.

Why this code doesn't generate circles but instead does this?

10 January 2026 @ 8:35 pm

I was playing with this library, to try draw some 2d renders, and I decided to try to render the cosine of the distance, as a color. What I expected from this, was some concentric circles, with the color oscillating once, but this does not do that. Shouldn't the distance on the dots on the same circle be the same? What am I missing? Here is the code, and the file generated from it: #include <math.h> #include <stdint.h> #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" #define PIXEL_ROWS 400 #define PIXEL_COLS 640 uint32_t pixels[PIXEL_ROWS * PIXEL_COLS]; void render(uint32_t *data, int rows, int cols) { // Calculate middle row and column double midr = (double)rows/2, midc = (double)cols/2; // Calculate the maximum distance avaliable (from the first pixel, (0, 0)) double maxdistance = sqrt(midr * midr + midc * midc); for(int i = 0; i < rows; i+

SumIfs Spill Dynamic 3 Criteria. Issue SPILL 1st Criteria & 2nd Criteria refer to same SORT UNIQUE FILTER spill of 2 Columns

10 January 2026 @ 7:46 pm

UPDATE SOLUTION WAS THIS with extra SPILL & INDEX to it: SNAPSHOT 3D SUMIFS of SAME SPILL MULTIPLE COLUMNS FILE LINK, 3RD TAB: Perhaps someone can suggest a solution. I am trying to use SUMIFS with spill ranges and three criteria, where all criteria are dynamic spill references or named ranges. Issue in Excel 2021 The problem occurs when SUMIFS refers to the same spill range, but the first criteria uses column 1 and the second criteria uses column 2. Spill references N2# and O2# behave unexpectedly. N2# refers to the full spill range, but

what's going on with this circuit can someone tell me about this circuit [closed]

10 January 2026 @ 3:54 pm

I've made this circuit for jk flipflop's clock circuit this works well but I didn't get it how its working The led turns on for half of a second and turns off Can please someone describe me what's going on enter image description here This is the circuit I've made in both real life and in kicad

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.