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.9/10 (12 votes cast)

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

How to place a permanent mark on scroll bar in BBEdit?

23 November 2025 @ 5:10 am

In BBEdit, when I leave the cursor at a word - the occurrences of that word are highlighted in the document and shown on the scroll bar: Like this Is it possible to leave a permanent mark on the scroll bar? (I need that to help me visually separate the document).

Looking for proportion of prime numbers in a list, error in code (Python)

23 November 2025 @ 5:09 am

I know my code doesn't work for this task, as it's too slow, but I also want to find what my error is, and I can't. The task is to find the point at which the proportion of primes in a list drops below a certain percentage (the diagonals in this spiral of numbers below) I generated primes up to a point, then compare the list of numbers to it, but the answer I get is much, much lower than the correct answer, and I don't know why. My answer was 631 (for below 10%), correct answer is 26000 something. As said, I know my approach doesn't work, so I'll redo that, but I also want to know why I'm getting the wrong answer anyway. Thanks for any help. spiral numbers len_limit = 6 # for generating primes. I've adjusted this limit based on how far I get up to limit = 10 ** len_limit primes2 = [True] * (limit + 1) pri

How is Datadog able to collect trace data without any modification of application code?

23 November 2025 @ 5:03 am

when running a flask app just have to prepend ddtrace-run to python app.py Just by doing this datadog can collect informtion like api paths, latency, response status, etc. I searched online about it and found out stuff like: monkey patching Bytecode Instrumentation Aspect-Oriented Programming (AOP) Can you explain how this is being done? I am trying to achieve the same thing in python sources for context: https://docs.datadoghq.com/tracing/trace_collection/automatic_instrumentation/dd_libraries/python/ https://www.youtube.com/watch?v=tQck10GCC90

Running Command with Command Prompt

23 November 2025 @ 4:56 am

I am facing an issue while running a command in the Command Prompt on one specific server. The same command works fine on all other remote servers, but on this server I receive the error message “This app can’t run on your PC.” All servers are configured the same, but this issue appears only on this one during installation. I have attached the screenshot of the error. Can anyone help me resolve this?

The Selector comes after @apply doesn't work

23 November 2025 @ 4:53 am

when I try to write a selector after been use @apply that selector doesn't work For Example: @layer components { .icon { @apply p-1 hover:bg-gray-200 rounded hover:cursor-default; } #welcome { @apply text-gray-200 flex flex-col justify-center items-center absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 select-none max-sm:h-screen max-sm:w-full max-sm:px-10; .small-screen { @apply sm:hidden m-7 bg-red-300/20 backdrop-blur-lg p-3 rounded-md absolute top-10; p { @apply flex-1 text-[16px] text-center font-roboto text-gray-400; } } } } now the selector (.small-screen) doesn't work I'm useing Tailwindcss V4.1 so we don't need tailwind config file please give me a helping hand

How to install flash attention at the login node of a SLURM GPU cluster?

23 November 2025 @ 4:49 am

I'm trying to install flash attention 2.8.2 on a Centos 7 SLURM GPU cluster. But as the login node does not have NVCC, direct installation at login node is not successful. Direct installation command: pip install --no-build-isolation flash-attn==2.8.2 Error output: Looking in indexes: https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple Collecting flash-attn==2.8.2 Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/63/91/91bcbd7424877fa8da4e7cc04b8a777247a33037b9c1fd976a5ad426c047/flash_attn-2.8.2.tar.gz (8.2 MB) Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [30 lines of output] No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda' torch.__version__ = 2.5.1+cu124 Traceback (most recent call last): File "/ho

Possibility to create vectorize screenshot on android?

23 November 2025 @ 4:47 am

With root access, is it possible to create vectorize screenshot for android device? I used to use uiautomator dump, but it lacks of style information,esicially font size

JWT authentication: req.user is undefined in protected routes even though token is valid

23 November 2025 @ 4:44 am

I’m implementing JWT Authentication in a full-stack (React + Node.js + Express) application. Login works, token is generated correctly, and the client sends it in the Authorization header. However, inside my protected route, "req.user" is always undefined even though the token verifies successfully. Frontend: axios.get("http://localhost:5000/api/profile", { headers: { Authorization: "Bearer " + localStorage.getItem("token") } }) .then(res => console.log(res.data)) .catch(err => console.error(err)); Middleware: const jwt = require("jsonwebtoken"); module.exports = function (req, res, next) { const authHeader = req.headers["authorization"]; if (!authHeader) return res.status(401).json({ message: "No token" }); const token = authHeader.split(" ")[1]; jwt.verify(token

Cloudfront Cache policy headers vs Vary header

23 November 2025 @ 4:35 am

Why can we set which request headers should make up the cache key in a cloudfront distribution behaviour? If the origin responds with a Vary header, shouldn't the cache just use the headers in there as the cache key? Would there ever be a reason to include headers in the cache key that are not part of the Vary response header?

Ulaa Browser Microphone Access [closed]

23 November 2025 @ 4:06 am

Whenever I am trying to access microphone in Ulaa browser in Desktop/Laptop, it doesn't work even after giving all permissions. When I click on the microphone button to speak, it turns from red to grey immediately and says 'no internet connection'. It happens in every website, Google, Youtube, Duolingo etc. Tried resetting browser and clearing data, but same problem. Anyone else facing the same problem? Please help with suggestions. #Ulaa #Ulaabrowser #Zoho #indianbrowser #micrphoneaccess

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

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

Decoding WCAG: “Change of Context” and “Change of Content” 

31 July 2024 @ 4:54 pm

Introduction As was mentioned in an earlier blog post on “Alternative for Time-based Media” and “Media Alternative for Text,” understanding the differences between terms in the Web Content Accessibility Guidelines (WCAG) is essential to understanding the guidelines as a whole. In this post, we will explore two more WCAG terms that are easily confused—change of […]

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.