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.

How should i fix MapMarkers on Map from crashing

9 February 2026 @ 12:30 pm

So i got this code inside Mapview for mapmarkers. This error only happens in android devices. <MapView key={darkMode ? 'dark' : 'light'} ref={mapRef} style={{ flex: 1 }} initialRegion={mapRegion} onRegionChange={() => { isUserInteractingRef.current = true; }} onRegionChangeComplete={(region) => { isUserInteractingRef.current = false; handleRegionChangeComplete(region); }} customMapStyle={darkMode ? darkMapStyle : undefined} moveOnMarkerPress={false} rotateEnabled={false} pitchEnabled={false} scrollEnabled={true} // Always enabled zoomEnabled={true} // Always enabled loadingEnabled={false} loadingIndicatorColor={tint} loadingBackgroundColor={background} showsBuildings={true} showsIndoors={true} onMapReady={() => { console.log('Map is ready'); // Give map time to initialize properly setTimeout(() => { if (mapRegion) { mapRef.current?.animateToRegion(mapRegion, 0); }

can someone please provide jolt spec for this?

9 February 2026 @ 12:30 pm

input: { "request": { "jobData": { "jobId": "2736" } }, "results": [ { "jobReqId": "1234", "applicationId": "1987" }, { "jobReqId": "2736", "applicationId": "1181" }, { "jobReqId": "7879", "applicationId": "1280" } ] } output: { "applicationId": "1181", "applied": "true" } Summary: The values of jobId, jobReqId, and applicationId are dynamic. Compare the request.jobData.jobId value with each jobReqId in the res

Qt 6 QML: Why does PointHandler in lower-z item activate despite DragHandler in higher-z item?

9 February 2026 @ 12:29 pm

I have two overlapping rectangles: The red one (higher z) has a DragHandler with dragThreshold: 0. The blue one (lower z) has a PointHandler. When I click the overlapped area, I expect only the red rectangle's handler to respond, but the blue PointHandler activates instead. (If I drag, then both are active simultaneously). import QtQuick Window { width: 300; height: 300; visible: true Rectangle { width: 100; height: 100; color: "blue" PointHandler { onActiveChanged: if (active) print("blue PointHandler activated") } } Rectangle { x: 50; y: 50; z: 1; width: 100; height: 100; color: "red" DragHandler { target: null; dragThreshold: 0 } } } Setting grabPermissions: PointerHandler.CanTakeOverFr

Animate accordions with WAAPI

9 February 2026 @ 12:29 pm

I'm using HTML tag to create an accordion with multiple tabs. I'm also using Javascript with Web Animation API (WAAPI) to animate the height to open/close each tab. The issue is, I can't find the proper way to close the open active tab when opening a new one. Right now when you open a new tab, the previous one still keeps open. class Accordion { constructor(el) { this.el = el; this.summary = el.querySelector('summary'); this.content = el.querySelector('.content'); this.animation = null; this.isClosing = false; this.isExpanding = false; this.summary.addEventListener('click', (e) => this.onClick(e)); } onClick(e) { e.preventDefault(); this.el.style.overflow = 'hidden'; if (this.

How to prevent browser password suggestions across subdomains (e.g., ONE.abc.ai, TWO.abc.ai)?

9 February 2026 @ 12:29 pm

I have multiple web applications hosted on different subdomains of the same parent domain: ONE.abc.ai TWO.abc.ai THREE.abc.ai Each application has its own login form (email + password). Problem When I log in to ONE.abc.ai and save the credentials in the browser, those credentials appear as autocomplete / password suggestions when I focus the login fields on TWO.abc.ai or THREE.abc.ai. I want to prevent passwords saved for one subdomain from appearing as suggestions on the other subdomains. What I’ve tried Setting autocomplete="off" on the form and inputs Using different name attributes for email/password fields Using: autocomplete="new-password" Verified that each app has its own backend and login logic None of these reliably prevent the browser from showing saved credentials from other subdomains. Constraints / Notes

E2E test tools for Lucy Framework

9 February 2026 @ 12:17 pm

I know Lucy is based on Swing and the problem should be reframed as "How to make e2e test for a Swing app". However, below are the differences between my programme and a general Swing app. Since Lucy Framework is primarily an OSGi framework, I tried researching into the ways we perform tests for OSGi frameworks in general. However, it seems to me that modularity implies testing separately. What I want is a way to test e2e fully within an OSGi framework. May I know if there's a way/tool to achieve that? Constraints: I'm stuck with Swing for sure. No negotiations on this. It's an OSGi framework which means jar files are loaded on demand. The main app can launch another Swing/JavaFX window. This affects frameworks like AssertJ-Swing, where it is assumed to test only 1 main class. I tried looking into blackbox testing using WinAppDriver and ins

How do you structure test cases for APIs that change frequently without constant rework?

9 February 2026 @ 12:16 pm

I am working on a product where our APIs evolve pretty quickly. New fields get added, response shapes adjust, and validation rules shift as the domain model matures. Automation coverage is decent at the contract and integration level, but the friction shows up in how we structure and manage the test cases themselves. When tests are too granular, even small schema changes create a lot of maintenance churn. When they are too high level, we miss edge cases and validation gaps. I am trying to find a structure that keeps tests valuable without becoming brittle over time. A few specific areas I would love input on: Do you organize API tests by endpoint, business workflow, or risk area? How do you handle optional or frequently changing fields in assertions? Are you relying on schema validation, custom matchers, or snapshot style comparisons? When does a response change fail a test versus get treated as

PolarDB-PostgreSQL drastically underestimates JOIN result size, chooses Nested Loop over Hash Join

9 February 2026 @ 12:11 pm

I'm using PolarDB for PostgreSQL and experiencing a query performance issue where the planner severely underestimates the result size of a JOIN operation. CREATE TABLE orders ( order_id BIGINT PRIMARY KEY, customer_id INT, order_date DATE, status VARCHAR(20) ); CREATE TABLE order_items ( item_id BIGINT PRIMARY KEY, order_id BIGINT, product_id INT, quantity INT, price DECIMAL(10,2) ); CREATE INDEX idx_orders_customer_date ON orders(customer_id, order_date); CREATE INDEX idx_order_items_order_id ON order_items(order_id); CREATE INDEX idx_order_items_product_id ON order_items(product_id); -- orders: ~2M rows -- order_items: ~15M rows Query: SELECT o.order_id, o.customer_id, oi.product_id, oi.quantity FROM orders o JOIN order_items oi ON o.order_id = oi.order_id WHERE o.order_date >= '2024-01-01' AND o.order_date < '2024-07-01' AND o.status = 'completed' AND oi.product_id I

Touchend event triggers touchstart event

9 February 2026 @ 12:05 pm

I have two buttons. Open btn opens div element and close btn closes the div element. But as I found out if I touch the close btn the browser triggers the touchend event but emediatelly it triggers also the open event. I dont understand it. I have e.preventDefault() and e.stopPropagation(). The code looks like. Open btn // SET UP EVENT LISTENERS FOR OPEN BTN AND CLOSE BTN // TOUCHSTART IS USED TO AVOID COLLISION BETWEEN OPEN BTN AND CLOSE BTN WHICH LISTEN ON TOUCHEND ['click', 'touchstart'].forEach(function (event) { if ( self.config_activation_btn ) { self.html_open_btn.addEventListener(event, function (e) { __openCustomApp(false, self.config_items[0].source); }, {'signal': self.open_event_abort_controller.signal}); } else if ( self.config_activation_touch ) { document.body.addEventListener(event, function (e) {

ODR rule and namespaces/scope

9 February 2026 @ 12:01 pm

The one definition rule in the C++20 standard states that there can be no two definitions of a class type in a program unless the two definitions are in different translation units and have the same sequence of tokens (6.3/13.8) (plus some other requirements). The requirement does not mention scope or linkage. At face value, this would exclude code like this if a.cpp, b.cpp and c.cpp were part of the same program: a.cpp class T{}; b.cpp namespace N { class T{int i;}; } c.cpp void f() { class T{float f;}; } I'm quite sure that the example is fine; how could I justify that with the standard? I know that "a declaration of a name in a nested declarative region hides a declaration of the same name in an enclosing declarative region" (6.4.10); but visibil

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

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

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

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.