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.

WinVerifyTrust is displaying a UI even though the WTD_UI_NONE flag is specified

15 April 2026 @ 11:10 pm

I have a specific file that is signed with a digital signature. The digital signature is valid. If I open the file's properties, I can see the signature is correct. The signtool verify /pa Project1.exe command also succeeds, returning no errors. I use the following code: WinTrustData.dwUIChoice := WTD_UI_NONE; // - don't display any UI WinTrustData.fdwRevocationChecks := WTD_REVOKE_WHOLECHAIN; // also tried WTD_REVOKE_NONE - made no difference WinTrustData.dwProvFlags := WTD_REVOCATION_CHECK_CHAIN; // also tried WTD_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT - made no difference WinTrustData.dwUnionChoice := WTD_CHOICE_FILE; WinTrustData.InfoUnion.pFile := @FileData; WinVerifyTrust(INVALID_HANDLE_VALUE, WINTRUST_ACTION_GENERIC_VERIFY_V2, WinTrustData); Calling this code will show a "Security warning" dialog with the following call stack:

How to load a Delphi TService driver early?

15 April 2026 @ 10:53 pm

I am wondering what the best approach is to writing a Delphi service (using the TService class) to load my basic driver that simply writes a message to a file on disk. No network access is needed, or anything advanced. I am unsure of the StartType setting and LoadGroup name I need to use. AI keeps suggesting a load group of "System Reserved" from a quick search, but I want better real-world advice from developers that have implemented Delphi TService apps that use early loading for executing a driver load. I use ZwLoadDriver directly, in case this matters, as I don't use the Service Control Manager that is built-in to Windows. Any suggestions for loading a very basic "Hello world!" driver from an early-started service?

BigQuery: How to replace 0 with NULL in a FLOAT64 column during a SELECT statement?

15 April 2026 @ 10:43 pm

I am trying to clean a dataset in BigQuery where missing entries were uploaded as 0. I want these to be NULL so they don't affect my AVG() calculations. My attempt: SELECT Date, NULLIF(Sales, 0) AS Sales_Cleaned FROM `my_project.my_dataset.my_table` The Issue: I'm getting an error: No matching signature for function NULLIF for argument types: INT64, FLOAT64. How do I handle this type mismatch?

How do I check if a deviation has a "Created using AI tools" disclaimer with the DeviantArt API?

15 April 2026 @ 9:53 pm

I am trying to use the DeviantArt API to check if a deviation has a "created using AI tools" disclaimer. (Example). I wrote Python code that authorizes and retrieves a deviation's extended metadata, but the response doesn't include the AI notice disclaimer. Code: import requests import os # Authorize url = "https://www.deviantart.com/oauth2/token"; params = { 'grant_type': 'client_credentials', 'client_id': os.environ['client_id'], 'client_secret': os.environ['client_secret'], } response = requests.get(url, params=params) access_token = response.json().get("access_token") # Get deviation metadata url = 'https://www.deviantart.com/api/v1/oauth2/deviation/metadata' params = {

Unspecific error for Firebase Data Connect nested SQL inserts

15 April 2026 @ 9:10 pm

I need to insert data in multiple tables at once in my Firebase Data Connect db with native SQL. When calling the mutation from my cloud function it fails and Data Connect will always throw the same Invalid SQL statement error without any further information, making it really difficult to find the cause. I cannot find documentation on how to debug this Firebase Data Connect error further. When extracting each insert and testing it by individually calling it from my app sequentially via the standard mutations.gql, everything works, however calling the inserts together in a nested SQL statement from my cloud function does not and I just get the error "Invalid SQL statement", even though the SQL and input data is definitely correct as each insert individually works. Does anyone else have experience with nested raw SQL inserts in Fire

How can I implement modulo (%) using only addition, multiplication, and comparison on the natural numbers (excluding 0)?

15 April 2026 @ 8:45 pm

I am implementing a Natural class where the natural numbers are defined as {1, 2, 3, ...}, and 0 is deliberately excluded. For this exercise, subtraction and division are not allowed, because they would take us outside the set of naturals. Only these operations are permitted: addition multiplication comparison (<) equality I want to implement the modulo operator (a % b) under these constraints. Note: In my question as originally posed, I did not account for what happens when we take the mod of a natural with itself. Zero is explicitly not allowed. A comment by user @JaMiT suggests returning from this operation the original value. Here is the relevant class structure: class Natural: """ The set of natural numbers: {1, 2, 3, ...}. They are commutative, distributive, and associative under addition and multiplication. Subtraction a

How to build artificial dataset for simulation power calculation in simr R for between-within subject deisgn

15 April 2026 @ 8:34 pm

I am running a power calculation in R for a linear mixed model analysis using simr in R. I would like to double-check if I understood correctly how to build my artificial dataset prior to running makeLmer and PowerCurve. I plan a between-within-subject design. There are 2 groups (A & B). Each person in each group has 2 time points. I built an artificial dataset including time, group, and 1000 IDs. Half IDs are from group A and half IDs from group B. ID is stored as factor. I run powerCurve along ID to estimate the power for 40, 60, 80, and 100 levels of ID to detect an interaction effect between group and time. Originally, I structured the data so that all IDs belonging to group A came first, followed by all IDs belonging to group B (See example). When I do so, I obtain a power of 0%. Using Gemini, I understand that this option is wrong because PowerCurve would consider only the ID belonging to one group.

Visual Studio Extension - Cannot Import Any Converters in User Control XAML When Using Metalama

15 April 2026 @ 7:56 pm

In my extension, there is a tool window with a WPF UserControl. For one of the bindings, I am attempting to implement an enum <--> string value converter. I have my converter defined: enter image description here and Visual Studio sees it: enter image description here However the project won't build. There are no errors after I fully added it, but if I add it then close Visual Studio, delete the hidden .vs folder, as well as the bin & obj folders (based on suggestions I have seen), re-open the solution, do a clean of the solution, and then rebuild the solution, I get a bunch of errors: enter image description here If I take out <converters:EnumToStringConverter x:Key="EnumToStringConverter"></co

Delphi, hooking TBitmap.Create & stack trace

15 April 2026 @ 5:43 pm

Posting this because I could not find an answer and code produced by two AIs I queried, would not compile. And when I did get it to compile it crashed at some point. I needed to hook TBitmap.Create and log the calling function/procedure name. I did not parse the stack dump from madExcept madExcept and DDetours is required. I am using Delphi 10.2 Here is code to hook the constructor: unit Main; interface uses Winapi.Windows,Winapi.Messages,System.SysUtils,System.Variants,System.Classes,Vcl.Graphics,Vcl.Controls,Vcl.Forms,Vcl.Dialogs,DDetours,Vcl.StdCtrls; type TForm2 = class(TForm) CreateBitmapBtn: TButton; RemoveHookBtn: TButton; procedure CreateBitmapBtnClick(Sender: TObject); procedure RemoveHookBtnClick(Sender: TObject); private

How to instantiate a connected PowerSyncDatabase by calling a suspend function inside a synchronized block?

15 April 2026 @ 2:50 pm

I'm trying to create a singleton to return an instance of a PowerSyncDatabase. class OnlineSyncDatabase { companion object { // @Volatile private val instance: PowerSyncDatabase? = null val dotenv = dotenv() suspend fun getDatabase(applicationContext: Context): PowerSyncDatabase { return instance?: synchronized(this) { val driverFactory = DatabaseDriverFactory(applicationContext) val supabaseClient = createSupabaseClient( supabaseUrl = dotenv["SUPABASE_URL"], supabaseKey = dotenv["SUPABASE_KEY"] ) { install(Postgrest) install(Auth) } val powerSyncDatabase = PowerSyncDatabase( factory = driverFactory, schema = AppSchema, dbFilename = "powersync.db"

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

Ask AIMee: An accessible accessibility-focused AI chatbot

31 March 2026 @ 4:49 pm

We’re happy to introduce AIMee – an easy-to-use, AI-powered conversational chatbot focused on accessibility. AIMee has been designed to be highly accessible to users with disabilities. Ask her accessibility questions to get quick answers and guidance. The name “AIMee” plays off of the “AIM” (Accessibility In Mind) from “WebAIM” and also “AI”. Here are some […]

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

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.