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.

Find records where a certain date falls between record start and due date

6 March 2026 @ 5:16 pm

There is probably a simple answer to this question but for the life of me I cannot find it. I have a table of records, each with a start and due date. I need to find all records which will include a certain date between the start and due date. For example, The date I need to find is 17/3/2026 (a bank holiday) Records: Start date: 1/1/2000 - due date 18/3/2026 - this would be returned Start date: 1/1/2000 - due date 18/3/2021 - this would NOT be returned etc any advice on a MSSQL query would be gratefully received. Thanks in advance

How can I make my tangent numbers generating class resumable?

6 March 2026 @ 5:14 pm

I have decided to implement code to generate tangent numbers as a self-imposed programming challenge. I have succeeded in doing so, but not as efficient as I want it to be. What are tangent numbers? Well they are the following series: 1 2 16 272 7936 353792 22368256 1903757312 209865342976 29088885112832 4951498053124096 1015423886506852352 246921480190207983616 70251601603943959887872 23119184187809597841473536 8713962757125169296170811392 3729407703720529571097509625856 1798651693450888780071750349094912 970982810785059112379399707952152576 583203324917310043943191641625494290432 It is A000182 on OEIS. I have implemented an infinite generator of tangent numbers using the following formula: a(n) = Sum_{k = 1..n-1} binomial(2 * n-2, 2 * k-1) * a(k) * a(n-k), with a(1) = 1, but I will not paste it here as it is quite long and not the fo

Putting 2 existing pdf pages side by side (half size) in a new pdf without loosing resolution

6 March 2026 @ 5:08 pm

In Swift, iOS, I have a pdf file with 2 pages. I want to put the 2 side by side, on a new page. For this, I have to scale initial pages half size and rotate .pi/2. I managed to achieve this by converting pdf pages to UIImages and using a UIGraphicsImageRenderer. But with a critical loss of resolution. I've tried improving the resolution by creating images as jpegData(withCompressionQuality: 1.0), to no avail. So I would need to work directly on the pdf pages using CGPDFDocument format. The code structure is as follows, to insert a single scaled page: if let _page = theCGPdfDocument.page(at: 1) { var _pageRect: CGRect = _page.getBoxRect(CGPDFBox.mediaBox) writeContextInDestination!.beginPage(mediaBox: &_pageRect) // translate to compensate for the flip caused displacement writeContextInDestination!.translateBy(x: _pageRect.size.width, y: _pageRect.size.height) Scale (-1, -1) // rotate 180°

PlacePictureInCell API for Office.js

6 March 2026 @ 5:07 pm

I've attached pictures to my worksheet using Office.js. After that's done, I want to place the pictures in the cells. This can be done in the Excel grid by right-clicking the image and then selecting Place in Cell. It can also be done with VBA using code like this: Option Explicit Sub placeWorksheetPictureInCell() Dim ws As Worksheet Set ws = ActiveSheet ws.Shapes.Range("picture_name").Select ws.Shapes("picture_name").PlacePictureInCell End Sub Is a similar API is available for Office.js? I also tried recording a macro to place the picture in the cell with Office Scripts and the macro recorder says that "This action currently can't be recorded."

Difference between ssh -X and docker with X11 socket forwarding

6 March 2026 @ 5:06 pm

When I try to start playwright in a docker container using X11 forwarding like this: docker run \ --rm \ -e "DISPLAY=:1.0" \ -e "XAUTHORITY=/tmp/.Xauthority" \ -v "/tmp/.X11-unix:/tmp/.X11-unix" \ -v "$XAUTHORITY:/tmp/.Xauthority" \ --add-host my-test-host=host-gateway \ -v "$(pwd):/work" -w /work \ -p 19323:9323 \ -u $(id -u) \ mcr.microsoft.com/playwright:v1.58.2-noble \ npx playwright test --ui It starts with a blank white window with only a title. Other commands: npx playwright wk - blank back window npx playwright ff - works npx playwright codegen - two blank white windows I think, the behaviour is dependent on the implementation, so the question is not really about playwright but for any UI-based X11 application: If i do the same thing using ssh -X (into the same container

Vue 3 component's v-html doesn't update after hydration

6 March 2026 @ 4:50 pm

I am experiencing a strange hydration behaviour in Vue 3 (Nuxt/SSR context). In my component, I have a reactive variable that initialises with a timestamp. On the initial client-side render, the standard mustache interpolation {{ processedHtml }} updates to the client-side time correctly, but the content inside v-html stays stuck on the server-side value. Both only "sync up" once a subsequent reactive change occurs (e.g., via a setTimeout). The Problem: Server Renders: Both values show Server Time (e.g., 12:00:00). Client Hydration: {{ processedHtml }} updates to Client Time (12:00:01), but v-html remains 12:00:00. After 2000ms: Both update to the new timestamp and are finally in sync. Minimal repr

Docker failed to setup nextcloud-aio-mastercontainer; how to fix?

6 March 2026 @ 4:47 pm

During the NextCloud AIO installation process, I first install Docker, which works as verififed by hello_world, but after running step 3, I get the following error: docker: Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint nextcloud-aio-mastercontainer (efb1272996b34c713eae46dfacd28bf1313b7852b46a0eae8991a61f106c6dec): failed to bind host port 0.0.0.0:80/tcp: address already in use [sudo docker ps -a] results in (none for port): CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e7f52142a028 ghcr.io/nextcloud-releases/all-in-one:latest "/start.sh" 6 minutes ago Created nextcloud-aio-mastercontainer f0f6e8490cb1 hello-world "/hello" 7 minutes ago Exited (0) 7 minutes ago vibrant_m

Sorting sets in an Upset plot

6 March 2026 @ 4:13 pm

I am trying to sort the set size from highest to lowest but that seems to not work. I tried custom sets but that doesn't work either. Here is my code: UpSetR::upset( modality_matrix_upset, nsets = 7, sets = c("AB (10000)","ND (9000)", "US (8000)","CA (7500)", "RF (7000)", "XA (6500)","NM (5000)"), #number.angles = 30, order.by = "freq", #decreasing = TRUE, keep.order = TRUE, mainbar.y.label = "Number of school", sets.x.label = "Number of participant schools", ) Example data: set.seed(123) # create example dataset modality_matrix_upset <- data.frame( "AB (10000)" = sample(0:1, 200, replace = TRUE), "ND (9000)" = sample(0:1, 200, replace = TRUE), "US (8000)" = sample(0:1, 200, replace = TRUE),

Developer python environments including DLLs

6 March 2026 @ 12:42 pm

I am developing a python package for reusable complex task automation against a software's python interface. To develop a clean interface, I want to develop in a distinct environment. I have tried anaconda, venv and virtualenv and all, when a new environment is created, do not copy the DLLs of the base installation into the environment's folder. Moreover, I found no way to force them to do so. The software I am developing against requires these DLLs for the python interface to work. The solution that I currently implement, revolves around a simple command line tool, that instead of creating an environment unzips an embeddable python distribution of a specific version in a certain directory, creates an environment and activates it. This is an issue, I really didn't see coming at all. Has anybody had a similar problem or knows what the best pratice in this case is? Thanks a lot

Is there a way to track local or foreign users on a website?

6 March 2026 @ 3:48 am

What I mean is that my website is based in my country. Since my website is related to foreigners, I want to know how to track whether the users of my website are foreigners or local users. I have tried several variables such as IP, browser language, ISP provider, and time zone. I know that these are not enough to determine whether the users of my website in my country are local or foreign. Does anyone know how to do this, or perhaps have suggestions for additional variables to make the accuracy a little closer to perfect?

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

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

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

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.