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.

AWS Lightsail node.js blueprint + nginx conf file editing

14 June 2026 @ 1:31 am

A few years ago on the Bitnami Node.js servers at AWS Lightsail I would set up an instance to forward traffic from port 80 to port 3000 by rewriting the 'etc/nginx/sites-enabled/defualt' configuration file. The process was something like sudo rm etc/nginx/sites-enabled/default sudo nano etc/nginx/sites-available/myConfFile New Configuration File server { listen 80; server_name tutorial; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $http_host; proxy_pass http://127.0.0.1:3000; } } Link the new file to 'sites-enabled' sudo ln -s /etc/nginx/sites-available/myConfFile /etc/nginx/sites-enabled/myConfFile and restart nginx sudo service nginx restart So I could call the Node.js app from php file from a web server explicitly without using Port:3000 "http://nodejs2.example.com:3000&q

What is the difference between Rust memory safety and Ada type safety?

14 June 2026 @ 1:29 am

Rust provides strong memory safety guarantees. Ada provides type safety. Rust numeric types are structural, based on machine memory layouts. Ada numeric types are nominative and are defined by an explicit valid data set.

Intentionally warn typescript compiler with inline flag/preprocessor

14 June 2026 @ 12:55 am

Is there a similar syntax to //@ts-ignore, with the effect of creating a compiler warning at that location? If not natively in the typescript transpiler, are there preprocessors/tools that could do this or something similar? I occasionally push debug code on accident, I normally use console warnings at runtime to remind me to change X back to Y. Having a preprocessor warn me or be able to strip debug symbols out with a production flag, similar to #ifdef in c++, would be nice. //@ts-warn('remove before publish') console.log(wtv); //@ifdef DEVELOPMENT example(); //@endif I'm also not opposed to making a tool myself, what should I look into for making something like that?

Testing SoundTouchJS with Web Audio API, sanity check, failing test

14 June 2026 @ 12:54 am

Im following the README here: https://github.com/cutterbl/SoundTouchJS/tree/master/packages/formant-correction-worklet I created a test case as a sanity check: Testing = { defineTestProcessor: async function(audioBuffer){ var sourceNode = new AudioBufferSourceNode(Audiodata.context, { buffer: audioBuffer }) var blob = new Blob([AudioProcess], {type: "application/javascript" }) var processorBlobURL = URL.createObjectURL(blob) await Component.nodes.FormantCorrectionNode.register(Audiodata.context, processorBlobURL) var node = new Component.nodes.FormantCorrectionNode({ context: Audiodata.context }) node.pitchSemitones.value = 7 node.formantStrength.value = 1 node.connect(Audiodata.co

Why does my BigQuery query return NULL for AVG() when the column has values?

14 June 2026 @ 12:37 am

Problem details: I'm working with a weather dataset in BigQuery and trying to calculate the average temperature for a specific date range. The temperature column contains numeric values, but my AVG() query keeps returning NULL instead of a number. I've confirmed the table has data in that range when I run a basic SELECT. What I tried/expected vs. actual: I expected AVG() to return the mean temperature across the filtered rows. Instead, it returns NULL. Here's my query: SELECT AVG(temperature) FROM `my_project.demos.nyc_weather` WHERE date BETWEEN '2020-06-01' AND '2020-06-30' I suspect it may be related to how missing values (stored as 9999.9 in the source) were handled, or a data type issue with the temperature column, but I'm not sure how to confirm or fix it. Tags: sql, google-bigquery, aggregate-functions, null,

I want to run Forge Neo on Google Colabratoly

13 June 2026 @ 11:27 pm

!pip install -U protobuf !pip uninstall -y tensorflow tensorflow-cpu tensorflow-gpu tf-keras !pip install -U "protobuf\>=5.28.0" !pip install gradio-rangeslider %cd /content/sd-webui-forge-neo !python launch.py --share I tried to install forge-neo using the syntax above to run ZIT on Colab, but I’m getting the error below and can’t generate images. When I asked ChatGPT, it told me to check if “ControlNet’s Resize / Processor Resolution” is set to -1, but that option isn’t even showing up due to the error. I’ve tried everything I can to get it working, but it’s become a never-ending cycle. Please help. Traceback (most recent call last): File "/usr/local/lib/python3.12/dist-packages/gradio/routes.py", line 1298, in predict output = await route_utils.call_process_api( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File &

Struggling to understand how to have some text inside an unordered list bold

13 June 2026 @ 10:56 pm

A simple example of my unordered list that seems to render but breaks the rules: <ul>My household pets <li>There is a fluffy <b>cat</b></li> <li> The <b>dog</b> is small</li> <li> The <span class="something">Mongolian Gerbil</span> is cute</li> </ul> In this simple example how would I have the animals using bold, while the rest of the text stays normal? Let me add that I also want to use <span> for some text formatting instead of the <b> tag and I'm hoping that the same solution (if it exists) works for both. Thank you.

ORA-01858 when doing BULK COLLECT INTO a PL/SQL record type with JSON_TRANSFORM on VARCHAR2 JSON columns

13 June 2026 @ 7:30 pm

ORA-01858 when using JSON_TRANSFORM in BULK COLLECT INTO a PL/SQL record type I have a PL/SQL procedure that does a BULK COLLECT INTO a collection of a custom record type. Two of the fields in the record type are VARCHAR2 columns that store JSON. When I include JSON_TRANSFORM on those columns in the SELECT, I get ORA-01858. Error: ORA-20011: *** Error **** While executing sp_process @ Insert into MY_POLICY_TABLE. Error Details - ORA-01858: a non-numeric character was found where a numeric was expected ORA-06512: at "MY_SCHEMA.MY_PACKAGE", line 4151 Record type and collection definition: TYPE rec_my_policy IS RECORD ( MY_KEY MY_POLICY_TABLE.MY_KEY%TYPE , MY_REF_ID MY_POLICY_TABLE.MY_REF_ID%TYPE , START_DATE MY_POLICY_TABLE.START_DATE%TYPE , END_DATE MY_POLICY_TABLE.END_DATE%TYPE , CHANGE_

In Asio, how to resume async_read / async_write after cancellation?

13 June 2026 @ 11:37 am

Asio cancels other awaitables when one branch of awaitable<>::operator|| finishes. Cancelling async_read / async_write may lose data. How to save the read/write progess on cancellation and resume afterward? e.g. How to implement a custom cancellation_type::partial async_read using async_read_some, and async_write using async_write_some? Asio version is 1.38.0 #include <asio.hpp> #include <asio/experimental/awaitable_operators.hpp> #include <assert.h> #include <iostream> #include <stdio.h> using asio::as_tuple_t; using asio::awaitable; using asio::buffer; using asio::co_spawn; using asio::detached; using asio::io_context; using asio::steady_timer; using asio::ip::tcp; using namespace asio::experimental::awaitable_operators; using std::chrono::steady_clock; using namespace std::literals::chrono_literals; using asio::use_awaitable_t; using default_token = as_tuple_t<use_awaitable_t&

RevenueCat offerings empty — StoreKit returns no products for READY_TO_SUBMIT subscription on both simulator and real device (Flutter/iOS)

13 June 2026 @ 6:50 am

I'm integrating RevenueCat into a Flutter iOS app. Offerings always fail to load regardless of whether I test on simulator or a real device. StoreKit receives a response but returns no products. Environment: purchases_flutter: ^10.2.2 (RC SDK 5.76.0) Flutter 3.x, iOS target Product ID: my_product (auto-renewable monthly subscription) App Store Connect status: READY_TO_SUBMIT RC dashboard: default offering configured, my_product mapped to my_product entitlement Error: No existing products cached, starting store products request for: ["my_product"] Store products request received response Store products request finished Error fetching offerings - The operation couldn't be completed. (RevenueCat.OfferingsManager.Error error 1.) There's a problem with y

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

An Extension is Not an Excuse

28 May 2026 @ 9:20 pm

The Department of Health and Human Services recently announced a one-year extension of the compliance dates for web content and mobile app accessibility requirements under Section 504 of the Rehabilitation Act. The requirements themselves are not new in substance: covered recipients of HHS federal financial assistance must make covered web content and mobile apps conform […]

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

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.