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.

Storing JWT token in protected local storage returns null due to prerender issue and giving 401 error when calling API endpoint

10 March 2026 @ 5:55 am

I am developing an Employee Management System in Blazor Server using PostgreSQL for the database and JWT for authentication. I am using Microsoft Identity tables for user data. I have created a login page that accepts an email and password, and I can authenticate the user and generate a token. The problem occurs when I am trying to store the token in protected local storage so I can reuse it to attach it to the API header as a bearer token. My current architecture is below. WebPortal │ .gitignore │ readme.md │ WebPortal.slnLaunch.user │ WebPortal.slnx │ ├── WebPortal.API │ └── WebPortal.API.Authentication │ │ appsettings.Development.json │ │ appsettings.json │ │ Program.cs │ │ WeatherForecast.cs │ │ WebPortal.API.Authentication.csproj │ │ WebPortal.API.Authentication.csproj.user │ │ WebPortal.API.Authentication.http │ │ │

How can my microbit display a full string from an external Python script via serial communication if it only displays half the string?

10 March 2026 @ 5:41 am

I created a microbit serial communication project for my college's Intro to Computer Science course. My external Python script can receive data from the microbit, but the microbit cannot read from the script. My computer is a Windows 11 Lenovo Yoga. laptop. Below is the Python code from my external as provided in the assignment, with the lines beginning at the msgStr variable being my only addition. I already imported the PySerial library using the pip install command before building the project. import serial import serial.tools.list_ports as list_ports PID_MICROBIT = 516 VID_MICROBIT = 3368 TIMEOUT = 0.1 def find_comport(pid, vid, baud): ''' return a serial port ''' ser_port = serial.Serial(timeout=TIMEOUT) ser_port.baudrate = baud ports = list(list_ports.comports()) print('scanning ports') for p in ports: print('port: {}'.format(p)) try: print('pid: {} vid: {}'.format(p.pid, p.vid)) except Attribu

React Native Stripe Connect Express account onboarding failure on android

10 March 2026 @ 5:39 am

Stripe Connect Express Onboarding — "User Not Found" error on Android only (React Native Expo) Problem I'm implementing Stripe Connect Express account onboarding in a React Native Expo app. The flow works perfectly on desktop browsers and iOS, but consistently fails on Android devices with a "User Not Found" error. Steps to Reproduce User taps the "Connect to Stripe" button in the app Backend generates and returns a Stripe Connect Express onboarding URL URL opens in either an Android external browser or a WebView Stripe onboarding page loads and prompts for a phone number I enter the Stripe-provided test phone number (test mode) After submitting, the error "User Not Found" is displayed What I've Tried

Impact of Deployment Pipelines on Fabric/Premium Capacity

10 March 2026 @ 5:30 am

I am currently evaluating the performance impact of implementing Power BI Deployment Pipelines within our organization. We are operating on a A2 capacity and I want to ensure that our CI/CD process doesn't lead to unexpected throttling or "Carryforward" issues. Specifically, I am looking for insights or documentation regarding: Memory Footprint: Since each stage (Dev, Test, Prod) creates a unique workspace, does the capacity treat these as three distinct resident models in memory? If we have a 2GB dataset, should we plan for a 6GB overhead across the pipeline? CPU (CU) Spikes during Deployment: What is the typical "Compute" cost of the deployment operation itself? I am concerned about background credit consumption when moving large metadata models from Test to Production during peak hours. Post-Deployment Refresh Impact: Ho

Running AOSP Emulator causes host reboot on Ubuntu 22.04 (Ryzen 9, KVM, NVIDIA GPU)

10 March 2026 @ 5:05 am

I'm having a bad experience running Android Emulator (both Cuttlefish and Goldfish) on my Linux Ubuntu 22.04 - AMD Ryzen 9. First of all, I am trying to execute the basic tutorial of https://source.android.com/docs/setup/build/building , and after the compilation steps, the emulator open, stays on for a short period and randomly restarts my computer. ~/aosp$ emulator -accel-check accel: 0 KVM (version 12) is installed and usable. accel Setup: CPU: AMD Ryzen 9 | MB: AORUS B650 GPU: NVIDIA GeForce RTX 4060 - Driver Version: 580.119.02 OS: Ubuntu 22.04 KVM: working SVM Mode: enabled in BIOS AOSP: android-14.0.0_r1 CPU cores: 24 RAM 32GB + SWAP 36GB I’ve tried multiple tutorials and r

How can an AI assistant interact with Aspen plus through Python?

10 March 2026 @ 3:47 am

I am experimenting with a Python-based MCP server to connect AI assistant with Aspen Plus. The idea is that the AI assistant can interpret user instructions and trigger simulation-related tasks through Claude code. For example, the AI could help: Analyze simulation workflows Suggest parameter settings Trigger simulation runs Interpret results My current approach is to use Python as the middle between Claude Code and Aspen Plus. The Python layer would translate AI's instructions into commands that interact with Aspen Plus. I am wondering what architecture is commonly used for this type of system. Is it better to build a modular tool interface that the AI can call (for example, functions like run_simulation() or modify_parameters()), or should the AI interact directly with the Aspen Plus API? Any suggestions or best practices for integrating AI assistants w

Stopping fixed div from going off screen after being resized

10 March 2026 @ 3:37 am

I have a div that is fixed and contains an img inside to display images, but it shows images that are different sizes, and that means it goes off screen when it tries to display vertical images how do I make it so it sizes down (in both horizontal and vertical size so the image is not stretched) when it goes outside the bounds of the window ? I tried using height but then other parts like the text and exit button become misaligned with the image here is the relevant parts of code: HTML <div class="showcase"> <button onclick="closeshowcase()">X</button> <img id="showcaseimg" src="images/photography/image0.webp"> <p>this is an image</p> </div> CSS .showcase{ pointer-events: none; opacity: 0; scale: 90%; position: fixed; width: 85%; z-index: 5; top: 50%; lef

Implementing GOLANG's "defer"/C++ destructors in C using macros - how to create a clang label from the concatenation of a title and an identifier?

10 March 2026 @ 3:12 am

I have recently taken a break from regular C++ (hobby) programming in order to try implementing some basic destructor functionality in C (in a way which appears more elegant than simply writing the destructor at the end of the function). I have tried attempting to implement the "defer" keyword found in GO, using C macros. However, this appears more difficult than initially seems, due to being unable to concatenate an identifier with a number generated by a constant and then create a label. This may be impossible due to the way the clang compiler processes code. Here are my main.c main file: #include <stdio.h> #include <stdlib.h> #include "defer.h" int main(void) { #define DEFER_ID __COUNTER__ DF_BEGIN(int, 0); void *text = malloc(256); if (text == NULL) { DF_RETURN(1); } DF(free(text); printf("Text Freed!\n")); printf("Put regular code he

BYD in-vehicle software development

10 March 2026 @ 3:08 am

When developing software for BYD's in-vehicle infotainment system, the app lacks a system signature, and the system is not rooted. How can I obtain information from the system? package com.findCar.app import android.hardware.bydauto.speed.BYDAutoSpeedDevice import io.flutter.embedding.android.FlutterActivity import io.flutter.plugin.common.MethodChannel class MainActivity: FlutterActivity() { private val CHANNEL = "byd_auto" override fun configureFlutterEngine(flutterEngine: io.flutter.embedding.engine.FlutterEngine) { super.configureFlutterEngine(flutterEngine) MethodChannel( flutterEngine.dartExecutor.binaryMessenger, CHANNEL ).setMethodCallHandler { call, result -> if (call.method == "getSpeed") { val device = BYDAutoSpeedDevice.getInstance(this) val speed = device.currentSpeed result.success(speed) } else { result.notImplemented() }

MathJax is not defined while doing tex to svg

10 March 2026 @ 3:04 am

My HTML minimally relevant code is here <!DOCTYPE html> <html> <body> <canvas id="surface">Canvas not Supported</canvas> <script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"> </script> <script> var canvas = document.getElementById('surface'); var ctx = canvas.getContext('2d'); canvas.width = 202; var tex = "F=ma"; var svg = MathJax.tex2svg(tex); var svg = svg.childNodes[0] var ssvg = new XMLSerializer().serializeToString(svg); var base64 = "data:image/svg+xml;base64, " + window.btoa(unescape(encodeURIComponent(ssvg))); base64.addEventListener("load", (e) => { ctx.drawImage(base64, 105, 15, 102.3,23.93); }); </script> </body> </html> By loa

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

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.