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.

Android ACTION_SEND Intent: PDF attachment drops when saving to Gmail drafts or sending

2 April 2026 @ 1:27 am

I am writing an Android application that dynamically generates a simple PDF document and then fires an intent to open an email client (like Gmail) with the recipient, subject, body, and the PDF attached. The Problem: The intent successfully opens the app chooser, and when I select Gmail, the compose screen opens perfectly. The "To", "Subject", "Body", and the PDF attachment are all visible in the compose UI. However, when I tap "Send", it does not actually send. It just goes straight to the drafts folder, and the PDF attachment is missing. Only the plain text remains. What I've Tried (and didn't work): To fix this, I have tried the following based on modern Android (API 30+) best practices: 1. Used `FileProvider` to correctly serve a `content://` URI instead of a `file://` URI. 2. Added `Intent.FLAG_GRANT_READ_URI_PERMISSION` to the intent. 3. Added `intent.setClipData(ClipData.newRawUri("

How to Set Up Qt6 Kits in Qt Creator for TI AM437x (Unable to Select Kit)

2 April 2026 @ 1:26 am

I have completed porting the Linux kernel on a custom board based on TI AM437x. The kernel version is 6.12.49, and I am using the TI Processor SDK. Now I am trying to develop an application using Qt (Qt6) with Qt Creator. However, I am having difficulties configuring the Kits. I configured the toolchain using the SDK provided by TI: -Device type: Generic Linux Device -Sysroot: /root/SDK/ti-processor-sdk/linux-devkit/sysroots/armv7at2hf-neon-oe-linux-gnueabi -Compiler(C): /root/SDK/ti-processor-sdk/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc -Compiler(C++) /root/SDK/ti-processor-sdk/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-g++ -Qt version: None -CMake Tool: /root/SDK/ti-processor-sdk/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/cmake enter

How to add selectable thumbnails below the layout field?

2 April 2026 @ 1:07 am

In TYPO3, the backend layout fields are able to show large thumbnails beneath the dropdown: TYPO3 backend showing the page properties tab, with large thumnails below the backend layout fields Is it possible to have these same kind of large thumbnails for other fields, specifically the Layout field of a content element: Appearance Tab of a TYPO3 content element, showing the Layout dropdown I know you can add small icons to this dropdown, but they are very small and only display after you've selected an item...

changing barplot to show percentage

2 April 2026 @ 12:23 am

I'm trying to make a barplot using ggplot. I want the bars to show the percentage of models "eaten" by birds for four different color types. I made this one, but thecode makes a stacked barchart and I don't want that, I want it to show only the precentage eaten by birds. #library tidyverse #data df <- data.frame( type = c("black", "brown", "border", "inside"), survival = c("survived", "bird"), n = c(20, 31, 20, 30, 39, 29, 34, 26)) #graph ggplot(data = df, aes(x = type, fill = survival, y = n)) + geom_col(position = "fill") + labs(y = "Počet atrap [%]", x = "Typ atrapy", fill = "Přežívání") + scale_fill_discrete(labels = c("přežil", "pták")) + theme_classic() + scale_x_discrete(label = labels) then I tried this code with the same data, but it doesn't actually show the percentages,

In a lexer, for n = 48, is linear search or binary search faster here?

2 April 2026 @ 12:06 am

Context I'm just getting back into programming as a hobby, and I wanted to try making a compiler. Im currently making the lexer, and when checking if a token is an operator I use a binary seach to search a vector of operators. I can think of 3 solutions: Using a map for O(1) lookup time, but I already have one that is sorted by operator id so it feels like code redundancy. I could lexocographically sort the vector and use my binary approach I have already programmed. Or I could just use a linear search algorithm which is simpler but Im not very familiar with little o and it feels wrong. I tried using some math and estimating that linear search will on average take n/2 comparisons, and that the binary search will take x * 3log_2(n) because the maximum operator length is 3 and base 2 because its binary, I got the roots as 1.43 meaning the math says its 1.43x faster to use a binary search

Python: send an email - pywintypes.com_error:

1 April 2026 @ 10:22 pm

I am attempting to inplement a send email function in python 3.14. I'm getting this error: pywintypes.com_error: (-2147467260, 'Operation aborted', None, None) at the code line: mail = outlook.CreateItem(0) total code: import win32com.client as win32 def testEmail(): # Initialize Outlook application #outlook = win32com.client.Dispatch("Outlook.Application") try: outlook = win32.GetActiveObject('Outlook.Application') except: outlook = win32.Dispatch('Outlook.Application') # Create a new email item mail = outlook.CreateItem(0) # 0 represents an email item # Set email properties mail.Subject = "Hello from Python!" mail.Body = "This is a test email sent using Python and Outlook." mail.To = "[email protected]" # Replace with recipient's email address # Send the email mail.Send() testEmail() How do I resolve this erro

Excel Power Query: Renaming Queries Already Associated with Pivot Tables

1 April 2026 @ 8:34 pm

I created a massive workbook for a client and parameterized the geography and vintage of my queries in the Power Query Editor so that I can easily make a similar file with different parameters. The problem is I named the queries themselves too specifically (see attached) and now I want to change them but it breaks all of my associated pivot tables and charts. For example, I would like to change ACS_Poverty_County_1YR to ACS_Poverty so that the query names are not misleading when I create an MSA/Zip Code version of the file. This file is way too big to remake so I'm desperate to find a way to fix it. Power Query Names: enter image description here

Root provider injected into service resolved from provider of new scope

1 April 2026 @ 7:50 pm

I have a Blazor Server application. I have an IHostedService that is meant to do startup tasks in the "StartAsync()" method. builder.Services.AddHostedService<StartupTask>(); It has a constructor injected IServiceScopeFactory. It creates a new scope: var provider = serviceScopeFactory .CreateScope() .ServiceProvider; provider .GetRequiredService<EntityService>() .ReturnMyCtorInjectedProvider() .GetRequiredService<EntityService>(); Where EntityService is a DbContext, which receives a constructor injected IServiceProvider. As far as I know, since EntityService has been derived from a particular scope's IServiceProvider, it should receive an IServiceProivder which is also tied to the same scope, and resolving the same service from it should produce the same behavior as resolving it from the IServiceProvider of the newly created scope, but I get a well known error: "

input text Remove operation by condiiton

1 April 2026 @ 12:35 pm

I have a operation logic to do in two simples steps into a input value. For me it's like a input cleaning operation I would love to do. Inside of my input I have some blocks of numbers, for instance: 548 601 **002** 847 147 Then what I need: Firstly, after the bloc of numbers selected 002 at the left side. Jump the blank space and the block of numbers just after 847, Then remove all the rest of numbers. Secondly, after that be removed. At the final step remove the block of numbers selected include all the rest of blocks of numbers. All these operations are excecuted into one button. Attention: These numbers 548 601 002 847 147 are just an example to help you to understand what I would love to do. <?php $initialValue = $_POST['phpInput']; $searchTermPHP = "002"; ?> <input type="text" id="phpInput" style="width:100em" va

Performing calculations on elements of lists within a list

1 April 2026 @ 2:05 am

I have 12 separate dataframes for 3 subjects and 4 activities for each subject. Using the following code, I have created a list of lists containing indices or "markers" from the 12 separate data frames df_list <- lapply(file_paths, \(f) read.csv (f, header = FALSE)) |> setNames(variable_name) results <- list() for (i in seq_along(df_list)) { current_df <- df_list[[i]] markers <- which (current_df[1] == "Sample") results[[names(df_list)[i]]] <- markers Resulting list: dput(results) list(subj1_act1 = c(5L, 169L, 1119L), subj1_act2 = c(2L, 156L, 1310L, 1815L), subj1_act3 = c(484L, 504L, 1685L), subj1_act4 = c(2L, 67L, 1234L), subj2_act1 = c(2L, 172L, 1346L), subj2_act2 = c(3L, 132L, 1311L), subj2_act3 = c(2L, 62L, 1206L), subj2_act4 = c(2L, 97L, 1266L), subj3_act1 = c(5L, 1219L), subj3_act2 = c(2L, 459L, 1563L), subj3_act3 = c(2L, 443L, 1592L), subj3_act4 = c(2L, 558L, 1675L))

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.