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.

Label not appear on 3D graph

25 January 2026 @ 10:26 am

So i want to try to plot of 3D trajectories (ground truth vs prediction) , the problem basically is that even though x,y labels appear normal, Z label its just disappeared, its like the 3D box that contains the trajectories is too big that it cut off Z label, (the values of Z axis though appear just fine) below is the code, i thought basically is there any way to make only the 3D BOX (not the whole figure smaller ) so Z label will appear on the screen just fine like x and y ? . Below is the code you can ask any more details i want to give if its needed. import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib.ticker import MaxNLocator forecast_step = 0 x_idx, y_idx, z_idx = 0, 1, 2 x_true = y_true_unscaled[:, x_idx, forecast_step] y_true = y_true_unscaled[:, y_idx, forecast_step] z_true = y_true_unscaled[:, z_idx, forecast_step] x_pred = y_pred_unscaled[:, x_idx, forecast_step] y_pred = y_pred_unscaled[:, y_idx, forecast_step] z_pre

Docker missing context

25 January 2026 @ 10:18 am

when trying to run docker compose, docker misses context and actually copying other files compose: bot: build: context: . target: bot restart: unless-stopped depends_on: - db - api dockerfile: FROM rust:1.93-bookworm as builder WORKDIR /app COPY Cargo.toml Cargo.lock ./ COPY api bot cron entity ./ RUN cargo build --release FROM debian:bookworm-slim as base WORKDIR /app FROM base as bot COPY --from=builder /app/target/release/bot /usr/local/bin/bot CMD ["bot"] project structure: enter image description here dockerignore: migration/ target/ .env so when i do docker compose up or docker compose build --no-cache i get error ERROR [bot bot 1/1] COPY --from=builder /app/target/release/bot /usr/local/bin/bot verifying sha of Cargo.tomls in result i see

Image doesn't exist, but it does

25 January 2026 @ 10:03 am

I'm working on a personal project that I'm going to use to spoof Discord emotes, and for the frontend I'm using Tkinter. I have the following lines of code that I'm using to cache emotes into a folder, however when using the async function to download the images, I get this error: File "C:\Users\Usuario\AppData\Local\Programs\Python\Python313\Lib\tkinter\__init__.py", line 2774, in __init__ self.tk.call( ~~~~~~~~~~~~^ (widgetName, self._w) + extra + self._options(cnf)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _tkinter.TclError: image "./img_cache/895847091056807996.png" doesn't exist I am aware that using async would lead to the button maker not finding images sometimes, and I tried to address that with a try/except clause and a while loop, however I cannot catch the error, even though I put the exact error I'm getting in the except clause. The code for that

How to disable line numbers in Markdown unformatted text blocks

25 January 2026 @ 10:01 am

I have the following in my Markdown code: ``` abc def ``` and it is rendered as 1 | abc 2 | def How can I get rid of the preceding line numbers?

The auto-completion for await changes the method's signature - how do I prevent that?

25 January 2026 @ 9:47 am

Reproduce by: Create a void method. In it type awa then press Tab. See the signature change from void to async Task. How can that be prevented?

CSS selectors with querySelector: Select only top level element(s) in shadow DOM

25 January 2026 @ 9:26 am

Assuming the following HTML content <template> <div> an amount of unknown content may contain: <div TAG>undesired node</div> </div> At the root level: <div TAG>desired node</div> </template> I wish to, in JavaScript, select the root level node with TAG. The following are statements I could come up with: tem.content.querySelectorAll("[TAG]") // => [div, div] // includes non-root tem.content.querySelectorAll("> [TAG]") // => Error // invalid syntax tem.content.querySelectorAll(":root") // => [] // no :root tem.content.querySelectorAll(":host") // => [] // no :host tem.content.querySelectorAll(":host([TAG])") // no :host tem.content.querySelectorAll(":scope") // => [] // no :scope

namespaces in headers(compiler-explorer)

25 January 2026 @ 9:22 am

I couldn't find a way to compile my project The namespaces are like this. namespace efanna2e { ... } project(multifile) cmake_minimum_required(VERSION 3.5) add_executable(multifile index_kdtree.cpp index_kdtree.h index.h index_random.h parameters.h exceptions.h util.h distance.h ) :6:10: fatal error: efanna2e/index_kdtree.h: No such file or directory 6 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. Compiler returned: 1

What would be the best way to manage separate processes in JavaScript

25 January 2026 @ 9:08 am

My project task is to query devices. I use JS and Bun as my API. Example. On the site user add a device, lets's say over MQTT. He enters MQTT connection parameters and save device. I store in in DB. Then he click start. I send request to my API. It should start a process and return HTTP 200. But process continue to run and store results in DB for a history graph and in Redis for current values. Somehow handler to that process have to be saved and if user click stop I have to terminate that process. I looked into Bun Workers but it does not looks like exactly what I need. Or is it? What would be a best technique to accomplish this? I know that there might be better suited tools for that like Go Routines and Channels but I need to understand what are my possibilities in JS.

Is there a concept in python 3 which integrates with the while statement like an iterator does with the for statement?

25 January 2026 @ 7:03 am

I am searching for a way, to accomplish the common algorithmic pattern prev_length = -1 while len(my_list) != prev_length: prev_length = len(my_list) # algorithmic code goes here in the following form, which reads like plain english while length_changed(my_list): # algorithmic code goes here I only was able to come so far: tracker = LengthTracker(my_list) while tracker.changed(): # algorithmic code goes here To keep focus on the actual question, I spare You reading the implementation of class LengthTracker because this client side code already shows why I dislike this approach: There is an the extra initialization of the tracker object plus it pollutes my code as the object needlessly keeps existing after the loop has ended. I guess, as I want automatic initialization, I might be looking for a concept that relates to while as t

"How to Remove Watermark in Gemini Code Assist on VS Code?" [closed]

25 January 2026 @ 3:42 am

I'm using Gemini Code Assist in Visual Studio Code, and I am trying to merge the split panels into one single window. No matter what I do, it keeps splitting the panels, and even when I try to use full-screen mode, the watermark still persists. I've already tried maximizing the editor to full screen, removing the split mode, and toggling Zen mode, but the watermark remains visible. Is there a way to remove the watermark, and is there a default panel-splitting behavior in VS Code that forces the Gemini assistant to keep splitting the editor? Is there a setting or configuration that could help me keep everything in one single window without the watermark? Please advise if it's just the way Gemini works in VS Code or if there's a workaround. enter image description here

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.