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.

"TypeError: <class> is not reversible" -- what does it mean?

3 December 2025 @ 3:36 pm

Something called reversed() on an instance of a class of mine, which resulted in the error TypeError: 'HBox' object is not reversible What does it mean for an object to be reversible?

MCP Connect Fail

3 December 2025 @ 3:36 pm

In the context of writing a simple token or access control smart contract, why is it considered a major security vulnerability to use require(tx.origin == owner) for access control, while require(msg.sender == owner) is the standard and secure practice?

How to obtain ios live activity pushToUpdate token?

3 December 2025 @ 3:34 pm

I’ve implemented a Live Activity for my React Native application. When the activity is started from within the app, I’m able to execute the pushTokenUpdates asynchronous sequence from the widget extension and successfully send the resulting token back to my server. I then use this token to update the Live Activity via APNS notifications. I also obtained the pushToStartToken and have been able to start a Live Activity remotely through APNS without issues. According to the documentation (“Construct the payload that starts a live activity”): https://developer.apple.com/documentation/activitykit/starting-and-updating-live-activities-with-activitykit-push-notifications For devices running iOS 18 and iPadOS 18 or later, you can add input-push-token: 1 to your payload to start a Live

How does garbage collection differ between Python and Java, and when do objects actually get destroyed?

3 December 2025 @ 3:29 pm

I'm trying to understand how garbage collection works in Python vs Java. From what I know: Python uses reference counting + a garbage collector Java uses an automatic garbage collector based on JVM But I'm confused about when objects are actually destroyed in both languages. For example: Python code class A: def __del__(self): print("Destroyed") obj = A() obj = None print("End") Sometimes __del__ prints immediately, and sometimes it doesn't (especially when using circular references). Java code class A { protected void finalize() { System.out.println("Destroyed"); } } public class Main { public static void main(String[] args) { A obj = new A(); obj = null; System.ou

How do I add pan and zoom to a vega lite candlestick chart

3 December 2025 @ 3:26 pm

I can see how to pan a scatterplot in vega-lite using the examples. I can also see how to create a static

Analyze a directory in a performant (cross-platform) way for what file types (file extensions) it (recursively) contains?

3 December 2025 @ 2:44 pm

Aim My aim is to analyze a (big) (sub)directory and just find out what file extensions all files have there (recursively). Additionally, these conditions apply: I am on Windows, but I could use WSL if need for Linux commands There are a lot of files. I need to access a network file share (\\), also guess this is most easy on Windows It would be good if I can analyze/visualize the results later. Edit: "no file extension" being listed too would be nice, too Tries so far One first approach would be using Linux shell commands but given the requirements above, I guess this is harder (access needs to be done via samba or WSL mounting somehow? Visualization is harder than if you already have a Jupyter notebook/Python script) and I also don't think it would be really fast. One could try

c how to display the contents of allocated memory byte by byte

3 December 2025 @ 2:32 pm

Just for information/debugging purposes (and to check if I understood pointers correctly), I want to display the contents of some allocated memory byte by byte. My code so far: #include <stdio.h> #include <stdlib.h> typedef struct { int len; int* vec[]; } vec_t; int main(void) { int n=3; int size = sizeof(vec_t) + n * sizeof(int*); vec_t* vector = malloc(size); vector->len = n; vector->vec[0] = NULL; vector->vec[1] = NULL; vector->vec[2] = NULL; char* line = (char*) vector; printf("memory content: "); for (int i=0;i<size;i++) { printf("%2x,", line[i]); } printf("\n"); free(vector); return 0; } This gives me something like: memory content: 3, 0, 0, 0,ffffffc8,22,ffffffa8, 1, 8,23,ffffffa8, 1,48,23,ffffffa8, 1, I was expecting 16 hex numbers in chunks of 1 byte, but it seems as if I read chunk

Unexpected conversion from pointer to object during function call

3 December 2025 @ 2:16 pm

This piece of code is a synthetic example extracted from a real world app. This code doesn't make much sense, its only purpose is illustration and everything that is not relevant has been stripped. #include <iostream> class st { public: int m = 1; st() { std::cout << "st()\n"; }; st(const st *source) { m = source->m; std::cout << "st(const st *source) " << m << "\n"; }; }; void Foo(const st& bar) { std::cout << "Foo" << "\n"; } int main() { st foo; const st* p = &foo; Foo(p); //(1) } Output st() st(const st *source) 1 Foo The problem here is when I call the void Foo(const st& bar) function with a pointer to st as in the line with comment //(1)

How to dynamically create an unknown number of tasks in Airflow based on output of a previous task?

3 December 2025 @ 2:10 pm

I have an Airflow DAG where the number of downstream tasks is unknown until an upstream task finishes. The workflow looks like this: |---> Task B.1 --| |---> Task B.2 --| Task A -----|---> Task B.3 --|-----> Task C | ... | |---> Task B.N --| Task A determines how many Task B instances are required. Each Task B.* runs for several hours and cannot be merged into a single task. Task C should run only after all dynamically created Task B tasks complete. Since the number of Task B tasks is not known at DAG parse time, standard static DAG definitions and SubDAGs do not work. I considered using TriggerDagRunOperator + ExternalTaskSensor by triggering a second DAG that dynamically creates Task B.*, but t

Hibernate: Invalid stream header "[-0." when trying to deserialize pgvector embedding into JPA entity

3 December 2025 @ 11:19 am

I created a PGvector database: CREATE TABLE IF NOT EXISTS vector_store ( id uuid DEFAULT uuid_generate_v4() PRIMARY KEY, content text, metadata jsonb, embedding vector(1024), created_at timestamptz DEFAULT now() ); and defined a JPA entity following Hibernate's documentation regarding vectors: @Entity @Table(name = "vector_store") public class Document { @Id @Column(columnDefinition = "uuid") private UUID id; @Column(columnDefinition = "text") private String content; @JdbcTypeCode(SqlTypes.JSON) @Column(columnDefinition = "jsonb") private LogMetadata metadata; @JdbcTypeCode(SqlTypes.VECTOR) @Column(columnDefinition = "vector(1024)")

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

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

Decoding WCAG: “Change of Context” and “Change of Content” 

31 July 2024 @ 4:54 pm

Introduction As was mentioned in an earlier blog post on “Alternative for Time-based Media” and “Media Alternative for Text,” understanding the differences between terms in the Web Content Accessibility Guidelines (WCAG) is essential to understanding the guidelines as a whole. In this post, we will explore two more WCAG terms that are easily confused—change of […]

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.