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.

Why does DataWeave filter return an empty array when matching records exist?

25 March 2026 @ 4:06 am

I have a JSON array of employee records and I'm filtering for active employees in DataWeave: %dw 2.0 output application/json

Can OpenSSL-generated CSRs be used for Apple MDM APNs certificates (vs mdmctl)?

25 March 2026 @ 3:58 am

I am working on setting up an Apple Mobile Device Management (MDM) solution and need to generate an APNs certificate. I understand that this process requires creating a Certificate Signing Request (CSR), which is typically submitted to Apple via the Push Certificates Portal. I’ve seen tools like mdmctl generate CSRs specifically for MDM, and those seem to work without issues. However, I would prefer to generate the CSR manually using OpenSSL for more control over the process. I generated a CSR using OpenSSL with the following properties: RSA 2048-bit key SHA-256 PEM format The CSR appears valid, but when I upload it to the Apple Push Certificates Portal, it gets rejected with: "Invalid Certificate Signing Request" Can a CSR generated with OpenSSL be used for Apple MDM APNs certificates? Are the

How does C know the value of DBL_EPSILON in machines that do not follow the IEEE floating point convention

25 March 2026 @ 3:47 am

I was trying to solve the problem posed in this question where the author asks that the value of DBL_EPSILON be computed portably without using the macro. My solution : #include <stdio.h> int main(void) { double one = 1, next = 1, zero = -0.0; unsigned char * ptr_next = (unsigned char *)&next, * ptr_zero = (unsigned char *)&zero; int endianness; if (ptr_zero[7] >> 7) endianness = 0; if (ptr_zero[0] >> 7) endianness = 7; ptr_next[endianness] |= 1; printf("DBL_EPSILON = %e", (next - one)); return 0; } I determined the endianness of the machine by finding out at what position the 1 bit of -0.0 is located. I then incremented the mantissa of one by 1, obtaining the floating point number next to one. T

Is Apple MDM Vendor Certificate mandatory for internal (in-house) MDM solutions?

25 March 2026 @ 3:47 am

I am developing an in-house Mobile Device Management (MDM) solution for internal use within my company and trying to generate an APNs certificate. I understand that Apple typically requires a CSR signed with an MDM Vendor Certificate, but obtaining this vendor certificate requires special approval. In my case, I have an Apple Developer (Company) account and access to Apple Business Manager, but when I generate a standard CSR and upload it to the Apple Push Certificates Portal, it gets rejected, while third-party tools seem to work. Does this mean that obtaining a Vendor Certificate is mandatory in all cases, even for internal MDM solutions, or is there any supported way to generate and use a CSR without vendor signing for private deployments?

Precision Recall Curve Not Behaving As Expected

25 March 2026 @ 3:47 am

I am training a model in Python. The problem is a class-imbalance classification problem at ~1:50 ratio. In most problems, precision-recall curve follows a smooth drop from 100% precision & 0% recall to 0% precision and 100% recall (see: https://towardsai.net/p/l/precision-recall-curve) However, my model behaves such that it drops sharply. The first point is, as expected, 100% at 0% recall. Then it drops to 50% precision at ~5-10% recall. Afterward, it "behaves expectedly" as it increases recall all the way to 100% while precision drops from 50% to 0%. I am told that my graph looks unnatural because of that sharp drop. However, after exploring my own data and results, I concluded that this is unfortunately due to class imbalance problem. For example, if I have only 2 True Positive and 2 False Positive, my precision is 50%. But if I nudge the thres

MDM CSR without vendor signing – Unable to generate APNs certificate (“Invalid CSR” error)

25 March 2026 @ 3:41 am

Question: I am currently working on a prototype MDM (Mobile Device Management) solution, similar to JMAF, for internal use within my company. I have: An Apple Developer account (company) An Apple Business Manager account However, my Apple Developer account does not have permission to generate the MDM Vendor Certificate. What I’ve tried I was able to generate an APNs certificate using a third-party service (e.g., https://mdmcert.download), and I can successfully: Obtain an APNs certificate Push configuration profiles to devices However, when I try to generate my own CSR and upload it directly to the Apple Push Certificates Portal: https://identity.apple.com/

Why can't you pass props from +layout.svelte to +page.svelte files in SvelteKit?

25 March 2026 @ 3:39 am

From what I understand, $props from +layout.svelte are not inherited by its +page.svelte file (or any other child +page.svelte files), and there's no way to manually pass props from +layout.svelte using {@render children()} without setting up some kind of external scope. This seems a bit strange to me, having UI of +layout.svelte shared between pages but not the data, and no way to easily pass that data like I would with a normal component. I'm sure there's a good reason for this, which is why I'm asking this question, but I'm a bit confused as to why SvelteKit is structured that way.

Looking for assistance with a theory

25 March 2026 @ 3:35 am

I have a theory That solves : The suns 11 year cycle. Earths internal heat budget Discrepancy. The Heat Paradox in the Gas Giants in our Solar system. Thermal rings in Galaxy's I know this sound too good to be true, how ever there are a lot of unbelievable thing being said in the world. But just once in a while things are exceptional. I have been working on my theory for some time. Testing the theory to the best of my ability & it has held up to all of the testing that I can do. Need a specialist view for more testing. Can you help ?

C# Dependency Injection Without Objects?

25 March 2026 @ 3:33 am

When writing C# applications, it often feels like we’re encouraged to make methods instance-based even when they would naturally be static. Of course C# is an OOP-first language and patterns like dependency injection, mocking, and unit testing are built around instances. However C# 11 brought static methods in interfaces, so we can technically do this: public interface IFileHasher<T> where T : IFileHasher<T> { static abstract string ComputeHash(string filePath); } public class SHA256FileHasher : IFileHasher<SHA256FileHasher> { public static string ComputeHash(string filePath) {} } Traditionally we inject a dependency by creating and passing a new instance: FileProcessor<SHA256FileHasher> processor = new(new SHA256FileHasher()) But with this pattern, the dependency can be expressed purely as a type parameter: FileProcessor<SHA256File

How to implement multi-language support in a SaaS boilerplate with 33 themes?

25 March 2026 @ 3:30 am

I'm building a SaaS application and considering using a starter template that includes multi-language and theme switching capabilities. I found a boilerplate that claims to support 33 themes and multiple languages out of the box. I understand it uses a component-based architecture (React/Vue) with i18n and CSS variables for theming. What are the common patterns to: Dynamically switch themes without page reload Store user theme preferences securely Structure translation files for scalability I'm not asking for a specific product recommendation, but rather best practices to achieve this level of flexibility. Any code examples or architectural insights would be appreciated.

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.