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.

How to detect system clock tampering (jumps) for a security product using C++20?

7 January 2026 @ 11:26 am

I am developing a cross-platform security agent mainly focused on Windows. In future I might need a similar approach for macOS. One of the critical features is a "temporary suspension" mode which is controlled by the IT admin where the agent stops monitoring for a specific duration. The Problem: Users might try to extend suspension periods by manually changing the system clock (wall clock) while the agent is offline. (I can use a trusted server to retrieve current time when the agent is online) Since my product relies on time-based logic, I need to ensure that the system time hasn't been tampered. Current Approach: I am currently using a background thread that polls every 2 seconds. It compares the std::chrono::system_clock (which can be affected by user) against std::chrono::steady_clock (which is monotonic and should not jump). This approach doesn't seem a correct way. I am looking

How can i set a variable primary color dynamically while using tailwind colors in different shades?

7 January 2026 @ 11:26 am

Is it possible to write something like this: <div classname="bg-primary-200"></div> and then set the primary color to one of the colors from the tailwind colors in my global css: --primary-color: blue and then the 200 shade of blue is applied.

aws cloud shell not launching

7 January 2026 @ 11:21 am

enter image description here I am trying to use aws cloud shell. I am getting this error since 4 month not resolved. I have tried everything. "Unable to create the environment. Your account verification is in progress. This may take up to two days for new accounts. If you have any further questions, contact AWS Support . To retry, delete the environment by selecting Actions, Delete and then try again." Not sure what account permissioned I messed up.

Python passes by reference integer values in lambdas [duplicate]

7 January 2026 @ 11:09 am

I'm trying to figure out how does this lazy initialization make any sense. As far as I knew, integer values are always passed by values, but it seems like it's not: class Lazy: def __init__(self, factory): self._factory = factory self._value = None def _init(self): if self._value is None: self._value = self._factory() def __getattr__(self, name): self._init() return getattr(self._value, name) tmp = [] for el in [1, 2, 3]: tmp.append( Lazy(lambda : {"value":el}) ) print(tmp[0].get("value")) I'd expect to see `1` as output, but instead it's `3`... reason? because `el` seems to be assigned by reference. However: class Lazy: def __init__(self, factory): self._factory = factory self._value = None def _init(self): if self._value is None: self._va

How to avoid "Not a HASH reference at ..." in regex like "qr/^${\CONSTANT}{3,}$/"

7 January 2026 @ 11:06 am

In a script I'm using constants (use constant ...) to allow re-use ion actual regular expressions, using the pattern from https://stackoverflow.com/a/69379743/6607497. However when using a {...} repeat specifier following such constant expansion, Perl wants to tread the constant as a hash variable. The question is how to avoid that. Code example: main::(-e:1): 1 DB<1> use constant CHARSET => '[[:graph:]]' DB<2> x "foo" =~ qr/^[[:graph:]]{3,}$/ 0 1 DB<3> x "foo" =~ qr/^${\CHARSET}{3,}$/ Not a HASH reference at (eval 8)[/usr/lib/perl5/5.26.1/perl5db.pl:738] line 2. DB<4> x "foo" =~ qr/^${\CHARSET}\{3,}$/ empty array DB<5> x $^V 0 v5.26.1 According to https://stackoverflow.com/a/7984501

I made this using ChatGPT [closed]

7 January 2026 @ 11:04 am

So, this is my best idea at getting around Steam's rate limit that ChatGPT made into reality, I wonder how bad this is? I have 0 coding knowledge btw. If you see this, could you give some suggestions to improve it? I would appreciate it. It is supposed to work like this: Open a web browser and open the urls that have been put in automatically After the pages load, it runs another script which looks for stickers and charms (keychain) Then, if something that satisfies a condition is there it leaves the page open, outputs a checkmark Otherwise, every page closes. const puppeteer = require('puppeteer'); (async () => { const urls = [ 'https://steamcommunity.com/market/listings/730/AK-47%20%7C%20Slate%20%28Battle-Scarred%29', 'https://steamcommunity.com/market/listings/730/AK-47%20%7C%20Slate%20%28Field-Tested%29', 'https://steamcommunity.com/market/listings/730/AK-47%20%

Building 64-bit windows code on ARM64EC, compilation is failing with a compiler crash

7 January 2026 @ 10:42 am

I’m hitting an internal compiler error (ICE) with MSVC 19.44 when building a C++ project targeting ARM64EC on Windows. Environment OS: Windows on ARM Compiler: MSVC 19.44 (Visual Studio 2022) Host/Target: HostArm64 → arm64 Language standard: C++20 Build system: CMake + MSBuild Architecture flags: /arm64EC PCH enabled: /Yu + /Fp Build type: Release (optimizations disabled: /Od) Parallel build: /MP Build Characteristics Large C++ codebase Compiling multiple .cpp files in a single cl.exe invocation Heavy use of third-party headers (e.g. Qt, Boost, TBB) /bigobj enabled Warnings treated as errors (/WX) Failure Details The compiler crashes with repeated INTERNAL COMPILER ERROR messages and eventually fails with: cl : command line error D8040: error creating or communicating with child process The stack trace repeatedly shows i

Database and query design

7 January 2026 @ 10:35 am

We are encountering a PostgreSQL exception stating that the maximum number of columns (1664) has been exceeded. The query in question attempts to select more than 3,000 columns as there are multiple huge forms. The data is going to increase eventually. Each column extracts a value from a table that contains a JSON column. Our use case involves large survey-style forms with hundreds of questions, each identified by a unique field ID. All responses are stored in a single table, where: Each row represents a respondent A JSON column maps field IDs to their corresponding answers To analyze this data, we currently generate a very large query that reads individual values from the JSON column and exposes them as separate columns. This approach results in a query that exceeds PostgreSQL's column limit, triggering the exception. Could you suggest a better approach to handle this use case?

What is the correct way of using Highcharts with an export button in React?

7 January 2026 @ 10:35 am

I'm using React 18.3, Highcharts 12.3.0 and highcharts-react-official 3.2.2. I had a problem setting up Highcharts to show the export button before but I somehow managed to make it work with those lines : import Highcharts from "@/lib/highcharts_config"; import HighchartsReact from 'highcharts-react-official'; import * as expData from "highcharts/modules/export-data"; import * as exp from "highcharts/modules/exporting"; import * as offExp from "highcharts/modules/offline-exporting"; console.log(exp); console.log(expData); console.log(offExp); Originally, I just put the console logs for debugging purposes and also to avoid the ESLint warnings because expData, exp and offExp are never called in my code and everything just worked somehow. Yesterday I was working on an API from which I get the data to plot on the c

Replace elements in a List column with multiple other elements

7 January 2026 @ 9:55 am

Consider the following DataFrame: df = pl.DataFrame({ "a":[ ["55", "87.19"], ["55.11","55.12"], ["55", "27.89"] ] }) I would like to replace all "55" with "55.11", "55.12". That is, I would like the end result to be: df = pl.DataFrame({ "a":[ ["55.11","55.12", "87.19"], ["55.11","55.12"], ["55.11","55.12", "27.89"] ] }) How can I achieve that?

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.