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.

Spring Boot + Auth0: Health endpoint returns 401 on Azure App Service but works locally even though path is excluded from SecurityFilterChain

11 March 2026 @ 8:19 am

I'm implementing authentication with Auth0 in a Spring Boot application using the OAuth2 resource server. Everything works correctly locally, but after deploying to Azure App Service, I cannot access my health endpoint without a Bearer token anymore. I always receive 401 Unauthorized, even though the endpoint is explicitly excluded from authentication in my SecurityFilterChain. Expected behavior /health and /actuator/health should be accessible without authentication. Actual behavior When deployed to Azure App Service, accessing: GET /health GET /actuator/health returns: 401 Unauthorized However, the same endpoints work locally without a Bearer token. Additional troubleshooting I also tried moving the health endpoints into a separate

Handling seperated values inside a pandas dataframe item? [closed]

11 March 2026 @ 8:06 am

I am trying to translate Google Forms data from a classroom survey into .md files for Obsidian to use. I have downloaded dummy survey results as csv and using pandas have managed that much. The problem is that I need to hand in an anonimized version and that students should be able to select multipe classmates per question. This leads to values in the df like studentName1;studentName2. Using a simple .replace, these values get skipped over. I have thought about dumping the df to a temporary JSON file, going through that using string replacement/regex and then loading the JSON back in. This seems like a roundabout way to do this though and frankly a bit silly. What else can I try?

Convert relative time (in hours before or after a point in time) to clock time

11 March 2026 @ 8:03 am

I have a vector containing double values that represent hours before or after midnight: hours <- c(-2, -1.5, 0, 2.5, 4) These values correspond to clock times: -2 22:00 -1.5 22:30 0 00:00 2.5 02:30 4 04:00 The values of the hours can range between -24 (previous midnight) and 24 (following midnight), and the sequence increments by half hours (-24, -23.5, -23, -22.5, -22, ...), that is, all times are either full hours or half past the hour (00:00, 00:30, 01:00, 01:30, ...). How can I convert from the numeric representation of a relative time of day to a time of day in HH:MM notation? The HH:MM notation should not indicate whether it is on the day preceding or following midnight (or if it does, that indication should be easy to strip from the output, e.g. by something like abs(time_of_day) or gsub("-", &q

Megajs 0.17.2 root property broken

11 March 2026 @ 7:44 am

Im using megaJS 0.17.2 in my nodeJS program, but it seems like the root object is not being added to the storage (megaDB) object as a property, as seen in the following code clip of my initMega() function: async function initMega(){ const { Storage } = require('megajs'); try { let megaDB = new Storage({ email: process.env.MEGA_EMAIL, password: process.env.MEGA_PASSWORD }); megaDB.on('ready', () => { console.log("MEGA filesystem loaded."); console.log(Object.keys(megaDB)); //As you can see, it is run in the 'ready' event, so it should display inbox trash and root among others //root = megaDB.root; The root property is broken, so this line is also broken. }); console.log("MEGA connected"); return megaDB; } catch (err) { console.error("Mega failure: " + err); setTimeout(initMega, 3000); } } Does anyone know why the root property isn't appearing?

What is an Interface in Java?

11 March 2026 @ 7:44 am

i am currently lost. I am learning Java at school and we have a Project in which a group needs to explain a certain thing in Java. Mine is Interfaces. I am trying to research on what exactly Interfaces now are but i dont see any use cases in which it would be good to use let alone im questioning if i understand it correctly. Could anybody explain what exactly an Interface is and how i use it efficiently? Currently i know that it just gives methods to the class which implements the Interface but i dont see a use case for it due to the Method just being empty. You need to override it either way so why go through all this trouble to make an Interface if you just give the interface implementing class the Method anyway? I do apologize for my bad english, its not my first Language and im not that familiar with gramatically correct writing. Cheers

How to properly add a new section in internal RAM without breaking this linker script?

11 March 2026 @ 7:40 am

I am working on an embedded project in a microcontroller based on Cortex M7 and I've been asked to modify this linker script to add a new section .new_section which will always stay at the beginning of internal RAM. /* Section Definitions */ SECTIONS { .text : { . = ALIGN(4); _sfixed = .; KEEP(*(.vectors .vectors.*)) KEEP(*(.reset_handler)) *(.text .text.*) . = ALIGN(4); _efixed = .; } > rom . = ALIGN(4); _etext = .; .relocate : AT (_etext) { . = ALIGN(4); _srelocate = .; *(.ramfunc .ramfunc.*); *(.data .data.*); . = ALIGN(4); _erelocate = .; } > ram } I added the .new_section right after _etext = .; in order for it to end up at the beginning of the internal RAM. It so happens that there is a library in my code which declares parameters with __attribute__

How to execute the executables (packed as shared lib) from dynamic module on Android 10+?

11 March 2026 @ 6:56 am

I'm working on a IDE that runs on Android and includes SDK (actually GCC toolchains for various MCUs). To workaround Google Play 200Mb aab file size limitation i decided to pack every SDK as a dynamic module containing executables as shared libs and various files as assets. I expected to follow the native lib workaround (symlinking to the shared lib with human-readable executable lib symlinked from some fs directory) that works as expected on Android 10+ (if shared lib is a part of the apk/aab, not dynamic module). However the same workaround does not work with dynamic modules. To be more detailed. I renamed "xtensa-esp32-elf-g++" executable to "libesp32_xtensa-esp32-elf-g++.so", put it into into dynamic module "jniLibs/arm64-v8a" folder, installed the dynamic module programmatically in the app so the file path is "/data/user/0/%package%/files/splitcompat/7900/native-libraries/esp32_sdk.config.arm64_v8a/libesp32_xtensa-esp32-el

PHP built-in webserver cannot find PDO

10 March 2026 @ 10:18 pm

I run php -S 127.0.0.1:8000 on my computer and open in the browser my.php with the following content: <?php $pdo = new PDO("..."); $sql = "SELECT 'Hello, World!\n' AS message"; $stmt = $pdo->query($sql); $result = $stmt->fetch(PDO::FETCH_ASSOC); echo $result['message']; ?> Then I get an exception "Fatal error: Uncaught Error: Class 'PDO' not found" However, the class PDO is found without any problems when I run in shell the command php my.php. It is totally unclear to me why the code which works fine in the shell does not work for the built-in server. Any hints would be welcome! From phpinfo() I see "--disable-pdo" in Configure Command. But php -m outputs, in particular, PDO, pdo_sqlite, pdo_pgsql and other modules. And in

Compare the sum of two different values group by another column (distinct), and group by of "opposite" value

10 March 2026 @ 8:21 pm

I'm trying to write a query to find "matching" data from two different fields within the same table. For example, a table has a client column, amount charged column and location column. I want find the opposite charges that exist in both location columns. So for example client Richard Lewis has the same charge ($25 dollars) in both (location = A, location = B). Also the tricky part is I want to SELECT SUM(AMOUNT) FROM client_payments WHERE client_name = "Richard Lewis" AND location = 'A'; For example for Client John Smith (location A), the amount = 25, for (location B), amounnt = -25. I'm trying to find all the "pairing" like the John Smith example in the database. There are couple things I'm stuck on: SELECT * FROM ( SELECT * FROM client_payments LEFT JOIN amounts ? GROUP BY location, client ) ? How ca

Why do ANSI 256-color render incorrectly when running through Gradle rich console?

10 March 2026 @ 5:17 pm

I style my terminal output with ANSI 256-color. fun main() { val reset = "\u001B[0m" val colors = listOf(66, 219, 153, 221, 203) for (c in colors) { val bg = "\u001B[48;5;${c}m" println("$bg BG $c $reset") } } While running my Kotlin code with .\gradlew run --console=rich, I got the following render: console rich output This is incorrect render. For instance, according to this external source the color 153 should be sky blue, as shown when running the same code with .\gradlew run --console=plain: console plain output System Info: Kotlin 2.3 Gradle 9.14 JDK

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

ThemeForest.net

VN:F [1.9.22_1171]
Rating: 7.0/10 (2 votes cast)

WordPress Themes, HTML Templates.

Interface.eyecon.ro

VN:F [1.9.22_1171]
Rating: 6.0/10 (1 vote cast)

Interface elements for jQuery
Interface.eyecon.ro

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

A New Path for Digital Accessibility?

27 February 2026 @ 7:02 pm

Please note This post will explore how an adaptive, intelligent system could empower users with disabilities to optimize their experience in digital environments. Even were such a system available tomorrow, developers of digital content, services, and products would still be responsible for providing equal access to ALL users. Consider a few of the many exciting […]

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

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.