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.

iOS presentationDetents behaves incorrectly on iOS 16–18 but works correctly on iOS 26

5 December 2025 @ 5:33 pm

I'm using a custom modifier called AutoSheetDetentModifier to automatically size a sheet based on its content. (in SwiftUI) On iOS 26, it works as expected: the content height is measured and the sheet shrinks to match that height. However, on iOS 16, 17 and 18, the same code doesn’t work. The content height is still measured, but the sheet does not reduce its height. Instead, the sheet remains larger and the content appears vertically centered. public struct AutoSheetDetentModifier: ViewModifier { @State private var height: CGFloat = 380 // default value to avoid bouncing public func body(content: Content) -> some View { content .modifier(MeasureHeightViewModifier(height: $height)) .presentationDetents([.height(height)]) } } public struct MeasureHeightViewModifier: ViewModifier { @Binding var height: CGFloat public func body(content: Content) -> some View { content

custom OneTimeToken class causes IllegalStateException: No primary or single unique constructor found for interface

5 December 2025 @ 5:25 pm

I am trying to implement a concrete class from the interface org.springframework.security.authentication.ott.OneTimeToken. Nothing fancy, just a JPA Entity: @Entity @Component public class PersistentOneTimeToken implements OneTimeToken { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String tokenValue; private String username; private Instant expirationTime; ... constructors, getters, and setters Repository: public interface PersistentOneTimeTokenRepository extends JpaRepository<PersistentOneTimeToken, Long> { Optional<PersistentOneTimeToken> findByTokenValue(String tokenValue); Optional<PersistentOneTimeToken> deleteByTokenValue(String tokenValue); } OneTimeTokenService @Service public class JpaOneTimeTokenService implements OneTimeTokenService { private final PersistentOneTimeTokenRepository repository; p

Icon in the taskbar [closed]

5 December 2025 @ 5:19 pm

In the taskbar, the application icon remains the default icon even though it is in the resources, in Icon and manifest by Resources\Implication.ico, as well as in the body of the application by “this.Icon = Properties.Resources.Implication”; What should I do when the step-by-step guide ensures that the instruction “this.Icon = Properties.Resources.Implication” is actually executed?

configuration ingress traefik regex

5 December 2025 @ 5:19 pm

I installaed traefik, next to ingress-nginx to test it for possible migration, with helm on azure aks. I give it following values: podLabels: app: traefik service: enabled: true type: LoadBalancer annotations: service.beta.kubernetes.io/azure-load-balancer-ipv4: myip service.beta.kubernetes.io/azure-load-balancer-internal: "true" service.beta.kubernetes.io/port_80_health-probe_protocol: "Tcp" service.beta.kubernetes.io/port_443_health-probe_protocol: "Tcp" externalTrafficPolicy: Cluster loadBalancerIP: "myip" helm installaed correctly traefik. I did a test changing an ingress build for ingress-nginx: ingress-nginx ingress: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: ingress-myservice-health namespace: health annotations: nginx.ingress.kubernetes.io/rewrite-target: /myservice/health nginx.ingress.kubernetes.io/ssl-redirect: "

Intermittent “Could not reach driver of cluster” errors on DBR 16.4 LTS despite large driver size and normal driver metrics

5 December 2025 @ 5:16 pm

We recently upgraded our Azure Databricks cluster from DBR 12.2 LTS to DBR 16.4 LTS, and since then we have been seeing intermittent job failures with the error: Run failed with error message Failed to reach the driver This happens even though the cluster appears healthy, and re-running the same job immediately afterwards succeeds. Cluster Configuration: "driver": { "node_type_id": "Standard_E48as_v5" } "executors": { "node_type_id": "Standard_D8ds_v5" } Spark Config "spark_conf": { "spark.databricks.io.cache.enabled": "true", "spark.databricks.io.cache.maxDiskUsage": "50g", "spark.databricks.io.cache.maxMetaDataCache": "1g", "spark.databricks.service.port": "8804", "spark.databricks.service.server.enabled"

Alembic autogenerate creates tables in wrong order with multi-tenant PostgreSQL schema

5 December 2025 @ 5:16 pm

I have a FastAPI application with SQLAlchemy + Alembic managing a multi-tenant PostgreSQL database. My models use schema='per_tenant', and I translate this to actual tenant schemas (tenant_1, tenant_2, etc.) at migration runtime in env.py. When I run alembic revision --autogenerate, the generated migration creates tables in the wrong order, causing foreign key constraint errors because dependent tables are created before their referenced tables.

How to dynamically select latest file in Snowflake Copy into command?

5 December 2025 @ 5:14 pm

I'm having issues trying to parameterize my file name to be used in snowflake copy into script dynamically. I have a snowflake notebook that will be scheduled once a day. Here's what I have: SET today = TO_VARCHAR(CURRENT_DATE, 'MMDDYYYY'); -- Set transaction file path SET transaction_file_path = 'Transactions_' || $today || 'M.csv'; select $transaction_file_path correctly returns Transactions_12052025M.csv The flat file is uploaded to S3 as Transactions_12052025M.csv Then I want to use in my copy into script like this: COPY INTO SRC_TRANSACTIONS_TBL ... FROM @EXTERNAL_S3_STAGE/$transaction_file_path However, this is not working. But if I hardcode it it works: FROM @EXTERNAL_S3_STAGE/Transactions_12052025M.csv How can I make this work? Please help.

How can I combine two or more arrays into a unique set without changing the data type in Powershell?

5 December 2025 @ 4:40 pm

Say I have a combination of the following: # This is a [string[]] type $A = [string[]]@("Aasdf","Casdf","Basdfs") # This is a [string] type $B = "Dasdfs" # This is another [string[]] type $C = [string[]]@("Aasdf","Edasfa","Basdfs") The problem is that when I try to do something like this: @($A, $B, $C) | Sort-Object -Unique I always get an Object array data type. You'd think this would work: [string[]]@($A, $B, $C) | Sort-Object -Unique # or [string[]](@($A, $B, $C) | Sort-Object -Unique) But, it does not. I've used this repeatedly in my script to deal with the nuances around combining arrays: @((@($A) + @($B) + @($C)) | ForEach-Object { $_ }) | Sort-Object -Unique But, of course, the output is an Object array. I've wrestled with ChatGPT on this extensively. And through a millio

What Is The Best Way to Retrieve Vector Embeddings from AlloyDB Using Code [closed]

5 December 2025 @ 4:16 pm

How can I retrieve data from AlloyDB? My vector embeddings are already uploaded, and the table has four columns as shown in the screenshot. I’ve tried multiple methods suggested by ChatGPT, but none of them worked. What’s the best practice for retrieving this data through code?

ClassCastException Mono<Void> unit test Java

5 December 2025 @ 4:10 pm

i have the method in springboot that consume a endpoint public Mono<Void> mesaVisadoCalculadoraNotificar(NotificarIn in) { setTimeoutErrorCode("MVC-01"); return Mono.fromCallable(() -> { WebTarget path = target.path(MesaVisadoCalculadora.NOTIFICAR.getUri()); return restHelper.performRequest(path, in, new GenericType<Void>(){}, HttpAction.POST); }); } } and this test @Test public void mesavisadoCalculadoraNotificaTest(){ when(target.path(Mockito.anyString())).thenReturn(target); when(restHelper.performRequest(Mockito.any(WebTarget.class), Mockito.any(), Mockito.any(GenericType.class),Mockito.any(HttpAction.class))).thenReturn(Mono.empty()); Mono<Void> promise = agent.mesaVisadoCalculadoraNotificar(in); promise.block() Assertions.assertNotNull(pro

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.