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.

OpenMP schedule(dynamic) fails in RcppEigen on macOS Sequoia 15.6.1 (symbol not found in flat namespace)

4 December 2025 @ 3:57 am

I am running a straightforward parallelized computation using RcppEigen and OpenMP. Here is a minimal reproducible example of the code: // [[Rcpp::depends(RcppEigen)]] // [[Rcpp::plugins(openmp)]] #include <RcppEigen.h> #ifdef _OPENMP #include <omp.h> #endif Eigen::VectorXd test(const unsigned int& nthreads) { Eigen::VectorXd out(100); #ifdef _OPENMP omp_set_num_threads(nthreads); #endif #pragma omp parallel for schedule(dynamic, 1) for (int m = 0; m < 100; ++m) { out(m) = m; } return out; } When I try to compile this file with sourceCpp(), I get the following error: Error in dyn.load("/private/var/folders/wd/q0l84k7j0550fyqpqbgbrwjm0000gn/T/Rtmpva4klW/sourceCpp-aarch64-apple-darwin20-1.1.0/sourcecpp_1dc4c925a03/sourceCpp_4.so") : unable to load shared object '/private/var/folders/wd/q0l84k7j0550fyqpqbgbrwjm0000gn/T/Rt

How to fix bad animation when update UIView height from taller to smaller size in swift XIB?

4 December 2025 @ 3:24 am

Hello currently i'm facing bad behavior when update my bottomsheetview from taller size to smaller size. When it comes from smaller to taller size, the animation works well. But on the reverse condition, the behavior become the height shrink upward not downward like the video below I've set the bottomview.bottom to superview.bottom equals 0, but why when the height set to smaller size, it's going upward (not the top part going down)? design result XIB Bottom Part should be right The way resize the content extension BottomSheetViewController: ConfirmationDelegateBottom { public func resize(height: buttomHeightType){ contentViewHeight.constant = height.value

How to properly structure an aggregation pipeline builder for a product catalog (filters, sorting, pagination, min/max price)?

4 December 2025 @ 3:14 am

I’m building a product catalog API using MongoDB’s aggregation pipeline. On the Node.js side I have a TypeScript “builder” that dynamically constructs the pipeline based on filters, sorting, and pagination. The general model looks like this: category: ObjectId[] brand: ObjectId thumbnail: ObjectId gallery: ObjectId[] attributes: [{ attribute, unit, value, blockType }] pricing fields (priceRegular, priceSale) stock, analytics.*, etc. Right now the builder does something like this (simplified): public build(): any[] { const pipeline = [] pipeline.push(...this.buildBaseMatchByCategory()) // $match categories pipeline.push(...BASE_PIPELINE_BEFORE_FILTERS) pipeline.push(...this.addBaseFields())

How do I disable the annoying AI assist feature? [migrated]

4 December 2025 @ 3:09 am

Stack overflow has deployed a mandatory AI assist feature at the top of their user experience. There is no way to hide it or disable it using stack overflow's settings. How, as a user of stack overflow, can I use ublock origin to remove this kind of toxic UX injection? Ideally in a way that is modular enough so if it spreads it will work elsewhere. Or is there a more pure JS way to solve this problem?

iOS 26 Spacer doesn't work in keyboard toolbar when the item's size has infinite repeating decimals

4 December 2025 @ 2:51 am

I need to layout a few text & image buttons on keyboard toolbar, and want to insert spacers to evenly lay them out. For image button, I notice that if the size contains infinite repeating decimals (e.g. .666666..., then the spacer doesn't work. For example: public var body: some View { // Spacers don't work let width: CGFloat = 18.0 + (2.0 / 3.0) let height: CGFloat = 26.0 + (2.0 / 3.0) Image(uiImage: uiImage) .renderingMode(.template) .frame(width: width, height: height) } See picture: enter image description here However, if I round the numbers, it works: // this works .frame(width: width.rounded(), height: height.rounded()) I suspect this has nothing to do with infinite repeating decimals, because CGFloat is binary, so it cannot represent 2/3 accurately. So out of

AWS S3 pre-signed URL upload is returning 200 OK but the file never appeared in the bucket

4 December 2025 @ 1:29 am

Using Node.js and Express.js, I am generating an AWS S3 pre-signed upload URL.The request to S3 returns 200 OK but the uploaded file file never appeared in the bucket. There is no error in AWS console. server.js import express from "express"; import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3"; import { getSignedUrl } from "@aws-sdk/s3-request-presigner"; const app = express(); const s3 = new S3Client({ region: "ap-south-1", credentials: { accessKeyId: process.env.AWS_KEY, secretAccessKey: process.env.AWS_SECRET } }); app.get("/presign", async (req, res) => { const command = new PutObjectCommand({ Bucket: process.env.BUCKET_NAME, Key: "test-image.png", ContentType: "image/png" }); const url = await getSignedUrl(s3, command, { expiresIn: 60 }); return res.json({ url }); }); app.listen(3000, () => console.l

Lost access to my 2FA device – need reset

3 December 2025 @ 7:39 pm

I have lost access to my two-factor authentication (2FA) device and I cannot log in to my Heroku account. I no longer have the code or backup codes. Help me reset or disable 2FA on my account so that I can access it again.

Parsed CSV rows are coming through as Buffers instead of arrays when loading files from S3

3 December 2025 @ 2:45 pm

I'm pulling multiple CSV files from S3. Each CSV contains several rows in this format: 45,ABC,800046,HJN,9000 The first column is the employee ID. I want to loop through all the files, parse each CSV, and filter rows where the employee ID matches a given list (e.g., [118, 675]). However, when I log the parsed rows, they are still coming through as a Buffer instead of arrays of CSV fields. Here is the relevant part of my code: function filterCsvRows(allCsvBuffers, employeeIds) { let resultRows = []; for (const { key, buffer } of allCsvBuffers) { const csvText = buffer.toString("utf8"); const rows = parse(csvText, { columns: false, skip_empty_lines: true, trim: true, delimiter: ",", }); console.log("Parsed rows:", rows); // <-- This still logs Buffer } return resultRows; } And I'm collecting the S3 objects like th

can't connect my phone to debug my Android app in Android Studio on my Chromebook

3 December 2025 @ 2:28 pm

I'm having trouble debugging an Android app on a physical device using Android Studio on my Chromebook. My Setup: Device: HP Dragonfly Chromebook Plus (i7 13th Gen, 32GB RAM, SSD, 13" Touch). OS: ChromeOS (Up to date). Target Device: Huawei Mate 20 Pro (Android 12). The Issue: I am unable to see my phone in the 'Available Devices' list in Android Studio, even though: Cable is verified: The USB-C cable is data-capable (tested and working on my Ubuntu PC and Windows laptop). Connection mode: The phone is set to 'File Transfer' mode. ChromeOS recognition: The phone shows as 'Connected' in the ChromeOS settings (Connected Devices section). Settings: USB Debugging is enabled on the phone, and 'ADB Debugging' is enabled in the Chromebook's Linux Environment settings. Despite working perfectly on my Ubuntu machine and my Windows machine, Android Studio on the Chromebook simply won't list the device."

.NET auto Postman collection update

3 December 2025 @ 8:16 am

I always add new endpoints, and I manually add these endpoints one by one into Postman. This takes a lot of our time and sometimes gets forgotten. I want to automate this so that when the project runs, the new endpoints are automatically added to Postman. There are libraries that do this in PHP. How can I achieve this in .NET? But please don't suggest Swagger or similar tools. Thank you.

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

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

Decoding WCAG: “Change of Context” and “Change of Content” 

31 July 2024 @ 4:54 pm

Introduction As was mentioned in an earlier blog post on “Alternative for Time-based Media” and “Media Alternative for Text,” understanding the differences between terms in the Web Content Accessibility Guidelines (WCAG) is essential to understanding the guidelines as a whole. In this post, we will explore two more WCAG terms that are easily confused—change of […]

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.