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.

How do I code a CSS Selector to find a specific button, click on it, and wait until the webpage has completed the clicked task?

30 November 2025 @ 12:01 am

I have a working web scraper written in Python, Selenium and Chromedriver (all up-to-date version wise) and various other software packages. The target webpage has a field for the phone number, but you have to click a button to reveal it: <button aria-busy="false" class="sc-adc2db3f-0 cLDdWI sc-608879d0-0 cbUwJX"> <div class="sc-eb45309b-0 kexGZq"> <svg aria-hidden="true" color="#373373" fill="none" focusable="false" height="24" viewbox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"> <path d="M18.078 14.702c-.502-.6-1.506-.5-1.908.2-.602 1-.903 1.3-1.204 1.3-2.21-.3-6.928-5-7.129-7.2 0-.1 0-.3 1.406-1.2.703-.4.803-1.3.2-1.8-2.61-2.4-2.71-3-3.513-3-1.607 0-3.113 4-2.912 5.7.502 4 8.835 12.3 12.

Looking for workaround for library with missing interface

29 November 2025 @ 11:59 pm

I have a Java library (FIHR) where there are conventions in a bean class hierarchy that were NOT formalized as an interface. For example many subclasses have a getStatus() property but there is no interface that formalizes that in a way that allows for me to share code as follows: if (bean instanceof HasStatusProperty bean2) { System.out.println("Status for this bean: " + bean2.getStatus(); } Can anyone think of a way to sortof project such an interface on a class that comes from a library. The best I can think of is to use the Reflection API to test if it has that property and get the value. But that's cumbersome.

How can I run Flux2 inference on 2 GPUs?

29 November 2025 @ 11:59 pm

I try to run Flux2 inference on 2 GPUs as follows: import torch from diffusers import Flux2Pipeline from accelerate import PartialState import argparse from pathlib import Path def main(): parser = argparse.ArgumentParser(description='Generate images using FLUX.2-dev with multi-GPU support') parser.add_argument('--prompt', type=str, default="Futuristic city", help='Text prompt for image generation') parser.add_argument('--output', type=str, default='flux2_output2.png', help='Output image filename') parser.add_argument('--steps', type=int, default=28, help='Number of inference steps (default: 28, max recommended: 50)') parser.add_argument('--guidance-scale', type=float, default=4.0, help='Guidance scale for generation (default: 4.0)') parser.add_argument('--seed', type=int, defau

How does Gboard on Android, when typing into a textfield on Chrome mobile does "select all"?

29 November 2025 @ 11:53 pm

I have a <input type="text"... ...on a page, and need to copy all the changes so that I can display them in a wasm app. I'm stuck with this "select all" operation on Gboard. Lets say that I type ab, then select all. (Select all command is reachable in the 4 black squares menu and then the "carret" icon). The series of events that I get, (and that can easily be checked with this tool InputEvent viewer) is: keydown: Unk beforeinput: a input: a keyup: Unk keydown: Unk beforeinput: b input: b keyup:Unk keyup: Shift keydown: Shift (this is were they become selected) keyup: Shift So, this unbalanced sequence of shift keys that starts with a keyup somehow does the select-all operation. What is going on here,

vllm failed to run because RM has detected an NVML/RM version mismatch

29 November 2025 @ 11:40 pm

trying to run vllm on the current machine with Tesla T4, cuda 12.4, ubuntu 22.0.4 the host info and cuda info is as followed nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2024 NVIDIA Corporation Built on Thu_Mar_28_02:18:24_PDT_2024 Cuda compilation tools, release 12.4, V12.4.131 Build cuda_12.4.r12.4/compiler.34097967_0 running the ollama is ok time=2025-11-30T07:24:49.679+08:00 level=INFO source=gpu.go:217 msg="looking for compatible GPUs" time=2025-11-30T07:24:50.126+08:00 level=INFO source=types.go:130 msg="inference compute" id=GPU-cd68373a-b857-7671-860b-0d17f4c2d4cf library=cuda variant=v12 compute=7.5 driver=12.2 name="Tesla T4" total="14.6 GiB" available="13.9 GiB" have installed the vllm through uv pip install vllm --torch-backend=auto but running the command comes with the errors v

JavaScript crossword input freezes and focus does not move to the next cell

29 November 2025 @ 11:36 pm

Problem When I type a letter into a cell, the focus does not move to the next cell in the word. After typing a letter, the entire input system becomes unresponsive — I can’t type more letters, delete them, or click on other cells. It feels as if an event handler throws an error and stops all further execution. I guess all problems are in renderGrid() but I don't know where exactly they are (I have all html elements written correctly) const GRID_ROWS = 10; const GRID_COLS = 10; const WORDS = [ // Across { word: 'READ', clue: 'To look at and comprehend written words', row: 0, col: 0, direction: 'ac

What is responsible for the extranuous text in the terminal window?

29 November 2025 @ 11:33 pm

I have this trivial test script: print('test sentence') When I press F5 to run and debug the script I expect to see the output "test sentence" but there is a lot of extra text mixed with the output: actual output: (venv) PS C:\Users\winne\OneDrive\Desktop\Python\lesson> c:; cd 'c:\Users\winne\OneDrive\Desktop\Python\lesson'; & 'c:\Users\winne\OneDrive\Desktop\Python\lesson\venv\Scripts\python.exe' 'c:\Users\winne\.vscode\extensions\ms-python.debugpy-2025.16.0-win32-x64\bundled\libs\debugpy\launcher' '56110' '--' 'C:\Users\winne\OneDrive\Desktop\Python\lesson\input.py' test sentenceauncher' '56110' '--' 'C:\x5cUsers\x5cwinne\x5cOneDrive\x5cDesktop\x5cPython\x5clesson\x5cinput.py' ;365da17d-7ed5-4b56-931f-2fcc1187c30dinput.py The environment seems to be set up correctly, the interpreter is selected from the environment...

Trying to create a method to verify time

29 November 2025 @ 11:16 pm

I'm new to python and i've been taking some courses to try and get the hang of it, as a proyect to challenge myself i tried to recreate a library method to check for borrowed books and etc. However i wanna do it manually without using python's functions However i am kind of lost in how to create the method to verify that the time has the correct format (it's supposed to be dd/mm/2023) I've been using this code i found as a guide import datetime i def check_date(year, month, day): correctDate = None try: newDate = datetime.datetime(year, month, day) correctDate = True except ValueError: correctDate = False return correctDate but i cannot find a way to make it work by myself

C# 12 - How do I make sense of this behavior? Passing an array of non-nullable reference type to a parameter expecting nullable reference type array

29 November 2025 @ 11:13 pm

I am on a quest to understand the nullable reference type system in C# (well, I guess the non-nullable reference types are the unique part). The mechanics of this particular situation are totally lost on me. I have a method private static void ArrayModify<E>(E?[] arr) where E : class { } (The class constraint is just to guarantee that null can actually be assigned to an element of the array in some hypothetical code.) If I write the following: string[] array = new string[3]; ArrayModify(array); I get no warnings or errors. This makes no sense to me. I understand why a non-nullable type can be implicitly converted to a nullable type normally. But being able to implicitly cast A to B doesn't mean you can implicitly cast A[] to B[]. Of course, nullable reference types are not actually implemented in that

Android Material3 Outlined Button Looks Different from Guideline

29 November 2025 @ 11:12 pm

XML: <Button android:id="@+id/send_button" style="@style/Widget.Material3.Button.OutlinedButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Send" /> Result: Solid black border enter image description here Guideline: Light gray border https://m3.material.io/components/buttons/guidelines enter image description here My project theme (default): Theme.Material3.DayNight.NoActionBar

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.