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.

Adding geom_text in patchwork with shared y-axis and both positive and negative values

25 November 2025 @ 11:45 am

Hello everyone, I have a patchwork plot consisting of a total of four plots, but the procedure here is mainly relevant for two of them because it can be applied to both, I guess. These two plots share a common y-axis (with y = 0), and both positive and negative values are displayed in each plot. I would like to add geom_text for both the positive and negative values in each plot. How can I implement this so that geom_text is always positioned correctly? Thank you very much for any help or suggestions! # Data for p1 and p3 = plot_oben data_schule_schulform <- structure(list(Schuljahr = c("2017", "2017", "2017", "2017", "2018", "2018", "2018", "2018", "2019", "2019", "2019", "2020", "2020", "2020", "2020", "2021", "2021", "2021", "2021", "2022",

Sub-connection to secure main connection

25 November 2025 @ 11:44 am

in our package that we use for connecting to database and perform stuff on it (like read table, insert data, ...) we have a special method that we pass to pandas.to_sql method to insert data to SQLServer using SQLalchemy. The method has a part (the method and the comment was made by person who created that method, and he is not working with me anymore) : # By using a new connection we secure the main connection # from getting invalidated in the case of connection drop. # Otherwise, the transaction for inserting the whole dataframe # gets rolled back once the main connection is invalidated with conn.engine.connect() as new_conn: new_conn.execute(table.table.insert(data)) and after updating the SQLalchemy in our repo to the newest version this part of code was raising errors: TypeError: TableClause.insert() takes 1 positional argument but 2 were given

React RTK Typescript: Using `ReturnType<AppStore['getState']>` vs `ReturnType<typeof store.getState>` when inferring RootState type

25 November 2025 @ 11:42 am

I've been reading up on React/Redux documentation, specifically on setting up types for the main redux application store, and was wondering if there are any significant differences when it comes to inferring the RootState (and Dispatch) type. Consider a simple store: store.ts import { configureStore } from '@reduxjs/toolkit' // ... const store = configureStore({ reducer: { posts: postsReducer, comments: commentsReducer, users: usersReducer, }, }) Two approaches I have seen when inferring types for RootState and AppDispatch : Approach A (as seen in the Redux docs) // Get the type of our store variable export type AppStore = typeof store // Infer the `RootState` and `AppDispatch`

How to manage multi-region branding (colors + UI variations) in a single Next.js repo without increasing code complexity?

25 November 2025 @ 11:42 am

I’m working on a telco project that will be deployed across eight different regions. Each region will have: Different color branding Possibly some UI component variations However, all API integrations, logic, and features remain the same across regions. I want to maintain a single centralized repository, instead of creating eight separate repos. The challenge is: if I keep all regions in one codebase, it may lead to multiple if/else checks, which will increase code complexity and reduce maintainability. Project stack: Next.js (App Router)

Most Underrated Frontend Best Practice for Performance?

25 November 2025 @ 11:41 am

In modern front-end development, there are many techniques to improve performance like lazy loading, code splitting, and memoization. In your experience, which underrated best practice has made the biggest impact on real-world performance, and why do you think more developers overlook it?

Why is cargo build not rebuilding my module?

25 November 2025 @ 11:40 am

I feel this must be very basic stuff. I haven't been doing much Rust for about a year. I have a lib.rs file in which I've changed a line: let logging_root_dir = if production_run {"ephem"} else {"temp"}; let platform = env::consts::OS.to_ascii_lowercase(); let _logging_project_dir = ""; if platform.starts_with("win"){ let _logging_project_dir = format!("D:/{logging_root_dir}/logging/{project_name}/"); } else if platform.starts_with("lin"){ let _logging_project_dir = format!("/media/mike/aaa/{logging_root_dir}/logging/{project_name}/"); } else { return Err(anyhow!("*** Failed to configure logging: OS |{}| not yet catered for platform: |{}|, for logging...", env::consts::OS, platform)) } That final line was previously return Err(anyhow!("*** Failed to configure logging: OS |{}| not yet catered for, for logging...", env::consts

AltiumDesigner script leaves visual artifacts after moving components

25 November 2025 @ 11:38 am

Moving components from a script causes persistent visual artifacts that don’t disappear even after restarting. Here is what I've tried: All code that moves components executes between these 2 procedure calls: PCBBoard.BeginModify; [...] PCBBoard.EndModify; I update the components as such: Component.MoveToXY(MMsToCoord(X), MMsToCoord(Y)); [...] Component.GraphicallyInvalidate; At the end I also call these procedures: PCBBoard.ViewManager_FullUpdate; PCBBoard.ViewManager_UpdateLayerTabs; which (I expected) should fully redraw PCB editor without leftover graphics. What is the correct way to force a clean redraw or invalidate the viewport?

Cannot build jar from spring jms source code

25 November 2025 @ 11:37 am

I need to build a jar for the Spring Framework's JMS component. I'm running into a problem compiling classes for the Spring AOP component used within Spring JMS. It requires classes from org.springframework.aop.target, but I can't compile them because the compileJava task already requires them. What am i doing wrong? enter image description here

Custom LaTeX snippets intermittently trigger multi-cursor mode in VS Code 1.104.2

25 November 2025 @ 11:31 am

The video that shows the problem I am experiencing an intermittent issue where triggering custom user snippets in VS Code causes the editor to unexpectedly enter multi-cursor mode. Environment VS Code Version: 1.104.2 (x64) OS: Linux (Ubuntu) The Snippets I have defined the following snippets in ~/.config/Code/User/snippets/latex.json. They use standard tabstops ($1, $2) and placeholders. { "Sine Function": { "prefix": "i", "body": [ "\\sin\\left(${1:x}\\right) " ], "description": "Sine Function" }, "Inline-Math": { "prefix": "a", "body": [

Is Thymeleaf still maintained, and is there a Thymeleaf version compatible with Spring Boot 4 / Spring Framework 7?

25 November 2025 @ 11:28 am

Spring Boot 4.0 and Spring Framework 7.0 were recently released, and I’m considering upgrading my project. However, my application uses Thymeleaf, specifically the thymeleaf-spring6 integration module, which is tied to the corresponding Spring Framework major version. When checking the Thymeleaf GitHub repository, development activity for the Spring integration modules (e.g., thymeleaf-spring6) appears to be minimal in recent months/years. This raises a few questions: Is Thymeleaf still actively maintained? Will there be a Thymeleaf-Spring7 integration module for Spring Framework 7 / Spring Boot 4? Or is Thymeleaf effectively discontinued, meaning I should consider an alternative server-side template engine for the upgrade? Any official information or guidance from the Thymeleaf maintainers or the community would be appreciated.

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

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.