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.

Best way to conver HTML content in to PDF

20 April 2026 @ 4:55 am

I am working on a WPF application where I need to implement a document generation and printing feature. My Goal: I have dynamically generated HTML content (with CSS). I need to: Convert this HTML content into a PDF document. Ensure the output is strictly formatted to fit an A4 sheet (handling page breaks, margins, etc.). Send this generated PDF directly to a printer. My Question: What is the most reliable, industry-standard approach to achieve this in a modern WPF application? I am looking for recommendations on the best libraries or built-in approaches to use. Specifically, I’d love to know: Which libraries are best suited for this (e.g., WebView2, PuppeteerSharp, wkhtmltopdf, iText7, QuestPDF)? Are there any caveats I should watch out for regarding CS

How to generate SSR meta tags for both Next.js App Router and Remix v2 from a single shared config?

20 April 2026 @ 4:47 am

Problem I'm building a monorepo that has both a Next.js App Router app and a Remix v2 app. I need to manage SEO meta tags (title, description, Open Graph, Twitter Card, robots directives like maxSnippet, maxImagePreview, canonical URL) across both apps. Right now I'm maintaining two separate implementations: Next.js (app/blog/[slug]/page.tsx): export async function generateMetadata({ params }) { const post = await getPost(params.slug); return { title: post.title, description: post.excerpt, robots: { index: true, follow: true, }, openGraph: { images: [{ url: post.coverImage, width: 1200, height: 630 }], }, }; } Remix v2 (app/routes/blog.$slug.tsx): export const meta: MetaFunction = ({ data }) => { return [ { title: data.post.title }, { name: 'description', content: data.pos

Love Light , Light Love

20 April 2026 @ 4:40 am

If you use the uniform commercial code , fair accounting , contract law , commercial law, the view of a jurisprudence consultant you can evaluate a 0 can indeed be a -1 or 1 , no meeting of the mind exist among almost all commercial contracts using tacit agreement to get around facts. Michael I Aldrich

Web page/app that stores data accessible from any device on LAN?

20 April 2026 @ 4:15 am

Using LiveServer in VS Code, I have setup an html page that I can access from any device on my LAN. On this app I have it set to store and read data using localStorage in javascript(typescript is what I type in). Where would I go from here in order to have the stored data be accessible from anyone accessing that page from anywhere in the LAN? I presume I will have to learn something entirely different(like express, one of the pages I found that vaguely mentioned but had no detail as to the how?), but I have no idea what direction to go in to learn how to do this specific thing, and wanted to see if anyone had suggestions for how to proceed.

How to create an asset framework for both Android and iOS using Kotlin Multiplatform?

20 April 2026 @ 4:09 am

I'm trying to a framework to share webp files for Android and heic files for iOS for the same name of images? For example, I have a file called home . So we will have home.webp for Android and home.heic for iOS. I know we can just put the webp in androidMain/res/drawable-{density}/home.webp for Android. And call it like this: /// Common Main expect class PlatformImage class ImageAsset( val name: String ) { @Composable fun toImage(): PlatformImage? = getPlatformImage() override fun toString(): String = name } @Composable internal expect fun ImageAsset.getPlatformImage(): PlatformImage? /// Android Main /// Should manually copy the assets to `androidMain/res/drawable-{density}/` first actual typealias PlatformImage = Painter @Composable internal actual fun ImageAsset.getPlatformImage(): PlatformImage? { Resources resources = context.getResources(); final int resourceId = resources.getIdentifier(nam

choosing between setInterval() or setTimeout()?

19 April 2026 @ 9:53 pm

What is the difference between setTimeout and setInterval? When can each be used? is it a good practice to use both interchangeably since both can be used to time-related effects?

Why does JPA getResultStream() throw "ResultSet is closed" in a multi-threaded Spring service while JdbcTemplate works fine?

19 April 2026 @ 9:31 pm

I am developing a Spring Boot 3 application (Java 25) that periodically checks for updates from external APIs (GitHub/StackOverflow). I have two repository implementations: one using JdbcTemplate (SQL) and another using EntityManager (JPA/ORM). The application uses a fixed thread pool to process links in parallel. The Problem: When I use the SQL implementation, everything works perfectly. However, when I switch to the JPA implementation, I consistently get the following error during parallel execution: A problem occurred in the SQL executor : Error advancing (next) ResultSet position [This ResultSet is closed.] My JPA Repository method: Java @Override public OffsetDateTime getUpdatedAtByUrl(String url) { String query = "select l.lastUpdatedAt from Link l where l.url = :url"; return entityManager

Remove role from PostgresSQL [duplicate]

19 April 2026 @ 4:19 pm

Can't delete a role in Postgres. postgres=# \\c test_database; drop role user1; ERROR: role "user1" cannot be dropped because some objects depend on it DETAIL: privileges for schema public owner of default privileges on new sequences belonging to role user1 in schema public owner of default privileges on new relations belonging to role user1 in schema public I issue this command: ```sql SELECT pg_get_userbyid(defaclrole) AS owner, nspname AS schema, defaclobjtype AS type, defaclacl AS privileges FROM pg_default_acl a LEFT JOIN pg_namespace b ON a.defaclnamespace = b.oid WHERE pg_get_userbyid(defaclrole) = 'user1'; I get: owner | schema | type | privileges ------------+--------+------+----------------------- user1 | public | S | {backup=r/

How to perform the "uncollapsing" of a one row data frame or array to multiple rows in R

18 April 2026 @ 5:38 pm

I suppose this is kind of a strange question, but I want to "uncollapse" a row of data in R, as follows. The original data is, for example, a data frame row where v1 = 1, v2 = 2, as here: collapsed = structure(list(v1 = 1L, v2 = 2L, v3 = 3L, v4 = 4L, v5 = 5L), class = "data.frame", row.names = c(NA, -1L)) I want the end result to look like this: uncollapsed = structure(list(v1 = c(1L, 1L, 1L, 1L, 1L), v2 = c(NA, 2L, 2L, 2L, 2L), v3 = c(NA, NA, 3L, 3L, 3L), v4 = c(NA, NA, NA, 4L, 4L ), v5 = c(NA, NA, NA, NA, 5L)), class = "data.frame", row.names = c(NA, -5L)) There are packages like collapse and tidyr that provide functions for collapsing data, but I can't find functions that do the opposite. I am running a loop right now to create the "uncollapsed" data frame. I'm wondering if there are better ways to do this, since my real workflow involves billions of rows of data.

How to deploy an ios App on connect that is used by a private organization not public

18 April 2026 @ 12:54 pm

Im working on an app for australian government under a private company. The app will be used by a specific department of the australian government and it'll be available on ios. The confusion i have is this the app is private-use only and will not be for public but in order to be on ios it must be on appstore connect. Currently, I'm putting it on internal testing where through testflight the department officers can use it and test it but when it final what should be the proper way of delivering the app. Should i keep it on internal testing as it works fine on it and update a version before every 90 days or should I apply it for review but that'll be for public too and that is strictly not the requirement. How to deploy such app and if alternative then what?

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

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

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

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.