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.

CoreImage: Store LUT in a CIImage and sample from it in a shader

20 May 2026 @ 8:51 pm

I am working on a tonemapper (see this repository) which I implement using a CIFilter. On my branch simplerFirstStep, I store parameters in a CIImage which I pass to the metal shader which corrects the lightness of the image. // calc my parameters here (these are correct) let f_G = calcToneCurve(globLuminance: globLuminance, segBorders: segmentationBorders, means: means) // store in a Databuffer let lut = f_G.withUnsafeBufferPointer { Data(buffer: $0) } // create CIImage with dims 256x1 pixel containing the data let lutImage = CIImage(bitmapData: lut, bytesPerRow: MemoryLayout<Float32>.size * f_G.count, size: CGSize(width: f_G.count, height: 1), // 256x1 pixel format: .Rf, colorSpace: n

Is a webview dominant app with native-like transitions possible?

20 May 2026 @ 8:43 pm

During the last few months I built a website (nextjs) with a member dashboard, now I am building the mobile (expo) counterpart. The website changes all the time, and I do not have the time or the money to have a dedicated mobile codebase, therefore I am building it completely out of webviews. Both website and mobile have the same file router structure, so each index.tsx just has a Webview with uri set to its current pathname and that correctly routes to the corresponding website page. The problem is the navigation sucks. I dont want to just have a continuous webview with typical safari-like navigation, I want smooth inter-screen navigation. Problems: The tabs transition is ok but you cant swipe between them, additionally loading 4 webviews at once (4 tabs in the dashboard) worries me performance wise. I could just load one at a time, but then every new tab (even if you just visited it) will have to be reloaded. The stack transiti

Nothing happens on a vanilla ajax request

20 May 2026 @ 8:41 pm

I'm trying to do some ajax in completely vanilla javascript — no libraries. And simply nothing happens. Nothing shows up in the network tab. Nothing shows up in the console tab. No errors. No HTTP requests. Nothing. I've created a simple standalone version below. <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Title</title> </head> <body> <script> function JSON_to_URLEncoded(element,key,list){ // https://gist.github.com/lastguest/1fd181a9c9db0550a847 var list = list || []; if(typeof(element)=='object'){ for (var idx in element) JSON_to_URLEncoded(element[idx],key?key+'['+idx+']':idx,list); } else { list.push(key+'='+encodeURIComponent(element)); } return list.join('&'); } var xhr = new XMLHttpRequest(); xhr.open("POST", "/ajax.php", true); xhr.setRequestHeader("Content-Type", "application

Is 'sleep .1' in swaybar status_command bad?

20 May 2026 @ 8:34 pm

To add more status to my sway-bar, I created a Shell script and used it in my Sway config file (~/.config/sway/config), in the bar section. This is the Shell script (~/.config/sway/status.sh): #!/bin/sh BAT_CAPACITY=$(cat /sys/class/power_supply/BAT1/capacity) BAT_STATUS=$(cat /sys/class/power_supply/BAT1/status) DATETIME=$(date +'%Y-%m-%d %X') VOLUME=$(wpctl get-volume @DEFAULT_SINK@) echo "${VOLUME} | ${BAT_CAPACITY}% ${BAT_STATUS} | ${DATETIME}" Where the script is being used (~/.config/sway/config): bar { position top # When the status_command prints a new line to stdout, swaybar updates. # The default just shows the current date and time. status_command while ~/.config/sway/status.sh; do sleep .1; done } My question is whether using sleep .1 or sleep 0 in this case is bad, an

How to hide and disable Android navigation bar

20 May 2026 @ 8:33 pm

I am developing a full screen app. To show it, I use this in `initState` method: SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky); That way, bar is hidden, however, it get back when user swipe from the edge, what I don't want. How can I disable that feature completely? Jaime

Multiple delimited strings insert in nested while loop

20 May 2026 @ 8:01 pm

I'm using SQL Server 2014 so no split string function is available. I have two delimited strings (Brand and Location) to insert in my stored procedure to create (potentially) multiple rows in the destination table. This is my stored procedure: ALTER PROCEDURE [dbo].[Add_Reviewer] @FirstName NVARCHAR(MAX) ,@LastName NVARCHAR(MAX) ,@Email NVARCHAR(MAX) ,@Brand NVARCHAR(MAX) ,@Location NVARCHAR(MAX) ,@Department NVARCHAR(MAX) ,@ProductLine NVARCHAR(MAX) AS BEGIN WHILE CHARINDEX('|', @Location) > 0 BEGIN DECLARE @templocation VARCHAR(max) SET @templocation = SUBSTRING(@Location, 1, ( CHARINDEX('|', @Location) - 1 )) WHILE CHARINDEX('|', @Brand) > 0 BEGIN DECLARE @tempbrand VARCHAR(max) SET @tempbrand = SUBSTRING(@Brand, 1, ( CHARINDEX('|', @Brand) - 1 )) INSERT INTO [Reviewers] ([FirstName], [LastName],

Templates for C#

20 May 2026 @ 7:32 pm

I am just starting to learn C# and I want to build a robust and well-structured console application as my first project. While I understand the basic syntax like Console.WriteLine and Console.ReadLine, I am not entirely sure about the best practices for structuring a slightly larger console app. Specifically, I am looking for advice, best practices, or starter templates regarding: How to properly structure the main loop and handle menu navigation. How to cleanly separate the core logic from the user interface (console input/output). Are there any standard design patterns or recommended boilerplate setups for modern C# console applications? Any guidance, recommended resources, or GitHub template links to help me start on the right foot would be greatly appreciated. Thank you in advance!

How to Replace Text on Many Character Sheets in Google Sheets

20 May 2026 @ 6:59 pm

I have over 500 documents which I need to change at my job. These are character sheets for a live action role playing group. All of them share the same format. Right now there is text in many of the cells but I need to change the text in certain cells on every document. Is there a function or a specialized use of find/replace I can use to change all of this text. This is all done in google sheets. I need the following outcomes: -current text in T13 replaced with "Grapple/Resist Grasp" -current text in C 21 replaced with "Telepathy* or Break Focus" -current text in L20 replaced with "Dispel MAgic/M. Sense" -current text in C32 replaced with "Identify or I Have an Idea" -current text in C33 replaced with "Fix It or Break It^" -Current Text in C34 replaced with "Weapon Power" -Current Text in AA20 replaced with "Arcanist" This image is ho

Sync reset used as async reset

20 May 2026 @ 6:52 pm

I'm looking at a Verilog module that handles reset in an unusual way: An async reset input goes through a synchronizer chain of flip-flops The synchronized reset output (sync_rst_n) is then used in the sensitivity list like an async reset: "always @(posedge clk or negedge sync_rst_n)" This seems incorrect. Even though sync_rst_n went through synchronization, using it in the sensitivity list means it's being treated as an asynchronous signal again. This bypasses the timing analysis that applies to normal synchronous paths. Potential issues I see: Clock skew between different registers could cause them to exit reset on different clock cycles Static timing analysis may not properly constrain sync_rst_n when it's used asynchronously Is this assessment correct?

How to create a function object from a non static member function

20 May 2026 @ 6:43 pm

I'm still pretty new to how function objects work in C++. I'm trying to create a function object that maps to a non static member function of a class. Here's what I'm trying to do: #include <functional> template<typename T, T v> struct MyClass { T internal_state; T foo() { T x = v; internal_state = v; return x; } }; int main() { MyClass<int, 20> obj; std::function f0 = obj.foo; // Try 1 std::function f1 = std::bind(obj.foo, &obj, std::placeholders::_1); // Try 2 std::function f2 = std::bind(decltype(obj)::foo, &obj, std::placeholders::_1); // Try 3 std::function f3 = std::bind(&decltype(obj)::foo, &obj, std::placeholders::_1); // Try 4 return f(); } I wanna create a function object that maps to the function foo of MyClass. I need this function to not be a static function. I tried using std::function to create a fu

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

Tolerating Inaccessibility

30 April 2026 @ 5:50 pm

The latest WebAIM Million report shows that detectable homepage accessibility errors increased over the past year. This article considers what those results may reveal about the organizational and societal forces that continue to deprioritize accessibility, and challenges us to imagine a world where inaccessibility is no longer tolerated.

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

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.