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.

Trying to do absolute paths in Vite

11 June 2026 @ 8:51 pm

I want to stop using relative paths and just do a basic absolute path, no @ symbol, just something like "component/General/Button" type thing. Here is what I currently have in my config but it does not seem to resolve any of the paths I have set up: import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; import path from "path"; // https://vite.dev/config/ export default defineConfig({ base: "/", plugins: [react()], resolve: { alias: { "api": path.resolve(__dirname, "./src/api/*"), "context": path.resolve(__dirname, "./src/context/*"), "components": path.resolve(__dirname, "./src/components/*"), }, }, server: { port: 3000, }, }); What am I doing wrong or how can I set up my resolver? I just want to start at src and all the paths are set fro

Cloudfront api-gateway internalalb eks istio pods

11 June 2026 @ 8:39 pm

I have deployed frontend and backend as pods in eks and configured istio ingress gateway for routing. I have configured internal alb and configured api-gateway and cloudfront. I am not able to see frontend ui on browser. Can anyone reach me and help immediately. Pls anyone connect with me to help.

xml: uncapturable attribute

11 June 2026 @ 8:18 pm

xidel 'https://en.wikipedia.org/wiki/List_of_trigonometric_identities' -e '/html/body/div[3]/div/div[3]/main/div[3]/div[3]/div[2]/table[1]/tbody/tr[2]/td/span/a/img' --output-format=xml outputs <?xml version="1.0" encoding="UTF-8"?> <img src="//upload.wikimedia.org/wikipedia/commons/thumb/4/48/Trig_Functions.svg/250px-Trig_Functions.svg.png" decoding="async" width="250" height="250" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/48/Trig_Functions.svg/500px-Trig_Functions.svg.png 2x" data-file-width="419" data-file-height="419"/> , but then xidel 'https://en.wikipedia.org/wiki/List_of_trigonometric_identities' -e '/html/body/div[3]/div/div[3]/main/div[3]/d

Best practice for updating nested resume data in PostgreSQL: delete-and-reinsert vs differential updates?

11 June 2026 @ 7:33 pm

I'm building a resume builder application using FastAPI and PostgreSQL (via Supabase). My data is normalized across multiple tables: personal_info locations skills experience education projects certifications technical_participation co_curricular extra_curricular achievements Each table has a user_id foreign key. The frontend sends the entire resume as JSON whenever the user clicks "Save": { "personal_info": { ... }, "skills": [...], "experience": [...], "education": [...], "projects": [...], "certifications": [...], "technical_participation": [...], "co_curricular": [...], "extra_curricular": [...], "achievements": [...] } A user can make any combination of changes before saving: Update an existing experience entry Delete an experie

How can my rotating image gallery be made to fit within the main container of a responsive website?

11 June 2026 @ 6:56 pm

I am attempting to make my own website. The layout is lifted from here. I found a guide on making a marquee here (it's a div with a CSS animation) and combined it with a flexbox horizontal image gallery based off what I found here to make a rotating image gallery. This is my second attempt making one, and the first time it's worked. However, the problem is that the marquee's width must be smaller than the horizontal image gallery's width for the images to actually scroll (and not elongate the entire web page, which has been the problem I am running into). But this set pixel width means my website is no longer responsive; I want for when the window is downsizes, for the marquee width to also be shrunk. H

How can I get a source code of Python function which was declared by using 'exec' inside other function?

11 June 2026 @ 6:49 pm

I need to get a source code of Python function which was declared via using exec inspect.getsource can't help me with that. Simplified Example: from inspect import getsource def declare_func(): func_code=\ '''def new_func(): print("Hello, world!")''' exec(func_code) return locals()['new_func'] func = declare_func() print('=run=') func() print('=func=') print(func) print('=code=') print(getsource(func)) Output: =run= Hello, world! =func= <function new_func at 0x000001DF77173E20> =code= ... OSError: could not get source code How can I get source code of the 'func' ? Note1: I can't avoid using exec for declaration of functions, because it happens in 3d-party Python module which I unable to edit. Note2: fun

javascript-based annotations for text?

11 June 2026 @ 6:42 pm

I'm converting a latex document to html, and the document contains many annotated code listings, made using tikz. An example is shown below. Currently, I'm just converting these into images to use them in the html document. It would be much better if I could use actual text on the web page, and have the annotations drawn with javascript. Do you know of anything that would let me annotate text with javascript in this way, ideally leaving the annotated text still selectable and copyable? A small C program with annotations pointing to various parts of the program

Centered ScrollView content doesn't return to position after pull-to-refresh with a large navigation title in SwiftUI

11 June 2026 @ 4:07 pm

Q: Is there a way to keep centered ScrollView content from shifting down after .refreshable completes in SwiftUI? Expected effect: The placeholder content stays centered in the middle of the screen after pull-to-refresh finishes. Outcome: The content shifts downward after refresh and only returns to its centered position if I manually scroll. What I tried: I also tried using a GeometryReader to center the content inside the ScrollView, but I got the same result with the .refreshable ScrollView combination. Environment: Deployment target: iOS 26 Reproduced on: Preview / Simulator / real device iOS versions tested: iOS 18.x, iOS 26.x Minimal reproducible example

Merge rows of a SQL table to fill null with existing values

11 June 2026 @ 3:36 pm

I have a SQL table like this Id A B 1 value1 null 1 null value2 Is there a nice way to make a select query returning Id A B 1 value1 value2 Of course, I have many more rows lines and many more columns in my real table. A generic approach would be appreciated.

WSGI start_response or add_header()

11 June 2026 @ 3:22 pm

Should I be using the WSGI start_response() or the Header.add_header() method in a WSGI application? Problem I have is that when using start_response() the headers which are set don't seem to be accessible in any way afterwards, which I wanted to do for logging purposes. Also will want to set additional headers but not sure if I can do that with start_response(). from wsgiref.simple_server import make_server from wsgiref.headers import Headers def hello_world_app(environ, start_response): status = "200 OK" # HTTP Status headers = [("Content-type", "text/plain; charset=utf-8")] # HTTP Headers start_response(status, headers) h = Headers() print(h.get_all('Content-type')) h.add_header('Content-type', 'text/plain') print(h.get_all('Content-type')) return [("%s: %s\n" % (key, value)).encode("utf-8") for key, value in environ.items()]

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

ThemeForest.net

VN:F [1.9.22_1171]
Rating: 7.0/10 (2 votes cast)

WordPress Themes, HTML Templates.

Interface.eyecon.ro

VN:F [1.9.22_1171]
Rating: 6.0/10 (1 vote cast)

Interface elements for jQuery
Interface.eyecon.ro

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.