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.

android build not applying theme.res without migrating to Maven

10 February 2026 @ 2:09 am

I’ve made the required changes and the app is working correctly in the simulator. However, when I build for Android, the theme.res styles are not being applied. It appears that androidTheme.res is being used instead. When I open androidTheme.res, the styling reflected there matches what I see on the device, which suggests it is overriding theme.res. I’ve tried multiple approaches to force the use of theme.res, prevent androidTheme.res from being generated, or stop it from being applied, but without success. Below are the build hints I added in the codenameone_settings.properties file: codename1.android.theme=theme

Find a media file embedded in a web page - not obvious

10 February 2026 @ 1:50 am

I want to find the video playing in this web page: instagram.com/reel/DICVb06udC8 note: the character between 'D' and 'C' is an eye, not an ell ordinarily, I would open Developer tools, select the 'network' tab, choose 'media' and see the file, but nothing shows up, even when the video is playing. I'm using Chrome on Windows 10, if that is significant.

Line does not appear on R plot

10 February 2026 @ 1:45 am

I am running a linear regression and trying to overlay lowess regression line. The code is below: plot(Data$X,Data$Y, pch = 12, col = "blue") lines(lowess(Data$X, resids , f = 0.99)) abline(h = 0, col = "green") The first command is to creat the plot, the second line with lowess regression requesting a line for X against the residuals (resids) with 99 bandwidth. However, the line does not appear on the plot? and abline does not show up the horizontal line at 0? Any suggestions to make it work is appreciated. Thank you. The range for resids is (-1.560654 , 2.971360) and the range for X is ( 1 , 665).

Keycloak 26 – How to persist invalid login attempts permanently?

10 February 2026 @ 1:35 am

I’m using Keycloak 26.3.0 with Brute Force Detection enabled: Max Login Failures = 3 Lockout permanently enabled Using Direct Grant (token endpoint API) for login I noticed that while permanent lockout works, the invalid login attempt counter resets automatically after some time because it’s stored in Keycloak’s internal cache. I want the invalid attempt count to be stored permanently in the database, so I can track all failed logins and enforce policies reliably. Is there any built-in way to do this, or do I need a custom SPI/extension to persist login failure attempts permanently?

Login/Password protection with Quartz 4 (Obsidian Digital Garden)

10 February 2026 @ 1:27 am

I'm trying to figure out the simplest way to provide authentication/password protection for a Quartz deployment. I'd like the solution to be something that minimizes both complexity and cost, even a simple password to access the site is enough. Right now I've only found: Cloudflare Access, which is perfect except it charges 7 dollars per user above 50, which I think is expensive. Supabase, which I've used before, however, using it on top of Quartz adds a level of complexity I'd rather avoid. Netlify password protection is the best option I can see right now but it requires a $20 per month subscription. Has anyone done this before and have any advice or tools I'm missing? Thanks for your help!

Is there a way to await a Console.ReadLineAsync and another Task in parallel with WaitAny()?

10 February 2026 @ 1:18 am

I'm working on a toy CLI debugger in C#/.NET. I have a REPL loop that looks something like this: this.backgroundTcs = new TaskCompletionSource(); bool quit = false; while (!quit) { Task<string?> inputTask = Console.In.ReadLineAsync(); await Task.WhenAny(inputTask, backgroundTcs.Task); Console.WriteLine($"Status: {inputTask.Status}, {backgroundTcs.Task.Status}"); // do something with either of the tasks, depending on their IsCompleted properties if (inputTask.IsCompletedSuccessfully) { quit = DispatchDebuggerCommand(inputTask.Result); } } There is a background thread that simulates the execution of the debugged program. When that threads hits a break instruction, it calls the backgroundTcs completion source's SetResult method: void OnBreakInstruction() { backroundTcs.SetResu

What is the proper way to validate glooey EditableLabel in real time (pyglet error)?

10 February 2026 @ 1:08 am

I am using pyglet 1.5.31 (glooey doesn't work with later versions) and glooey 0.3.6. I am subclassing EditableLabel and trying to implement a validation to make sure it is a number whenever it is edited: import pyglet import glooey class Label(glooey.EditableLabel): def __init__(): super().__init__(*args, **kwargs) self.previous_text = "" self.push_handlers(on_edit_text=self.prohibit_entry) def prohibit_entry(self, label): update_text = False if label.text == "": update_text = True else: if self.isFloat(label.text): #Function to try to parse string as float and return false if fails update_text = True if not update_text: self.text = self.previous_text else: self.previous_text = label.text This code fails with this traceback: Exception ignored on calling ctypes callback function: <

Fastapi CORS error when trying to fetch static files

10 February 2026 @ 1:06 am

getting CORS error when trying to fetch statically served images from Fastapi server even though i defined my frontend domain in the allowed origins. but everything works fine other than this app.mount("/public", StaticFiles(directory="public"), name="public") origins = [ "http://localhost:5173", ] app.add_middleware( CORSMiddleware, allow_origins=origins, allow_credentials=True, allow_methods=["*"], allow_headers=["*"], ) my frontend code //http://localhost:8000/public/e2f4e1... const response = await fetch(`${BASE_URL}/public/${image.link}`); the error i get Access to fetch at 'http://localhost:8000/public/e2f4e1e4-33a4-4704-8e07-a02a3dfc2390.jpeg' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resour

When to use standalone functions in C++?

9 February 2026 @ 11:09 pm

I am a beginner C++ programer and I am trying to make a very simple random number generator for my program. I started doing this by creating a struct in a header file but I am wondering if this is a good idea. All my methods and variables would be static since I don’t know what an object of this struct would even look like or why I would use it. So if everything is static, whats the point of having a struct. I was told having standalone functions was a bad practice but how bad is it really. Is there a scenario where you shouldn’t use OOP and use isolated functions?

How to use Kimi via REST API calls?

9 February 2026 @ 8:46 pm

Trying to curl Kimi K2.5 using my generated API key but I keep getting an "Invalid Authentication" error: curl https://api.moonshot.cn/v1/models \ -H "Authorization: Bearer sk-kimi-secret" {"error":{"message":"Invalid Authentication","type":"invalid_authentication_error"}}% I am able to access the model through opencode however. How do I use this model via REST calls?

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.