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.

How to resolve abydos version issue involving numpy.float and numpy.cfloat

29 January 2026 @ 12:59 pm

I am using the name matcher hmni for the first time. I am getting the error ImportError: cannot import name 'float' from 'numpy' (C:\Program Files\Python312\Lib\site-packages\numpy\__init__.py). Did you mean: 'cfloat'? I can see for myself that this is a version mismatch. This question tells me that numpy.float was deprecated in numpy 1.20 and removed in numpy 1.24. But I installed hmni and all its dependencies using pip so I don't expect to find a line in abydos trying to import a name only present in a previous version of numpy. Do I install an earlier version of numpy, overriding the stated dependency requirement of hdmi or abydos? Or is there a better approach?

How to scroll and select individual columns in Android DatePicker using uiautomator2 (Python)

29 January 2026 @ 12:58 pm

I’m developing a Python desktop application to control Android devices using uiautomator2. I’m having trouble interacting with an Android DatePicker that consists of three scrollable columns (day, month, year). The intended behavior is to select values by swiping each column vertically, but I haven’t been able to achieve this. What I’ve tried: Performing swipe gestures on the DatePicker and its child elements Attempting to focus the fields and input values via double-click / text input When I try to enter values manually, the input skips the first and second columns and writes the day, month, and year sequentially into the third column only. Is there a recommended way in uiautomator2 to reliably target and scroll individual DatePicker columns (e.g., NumberPicker components), or is there

How to prevent PowerShell command in Batch from displaying return value?

29 January 2026 @ 12:56 pm

Here is a minimal working example which turns off all screens: @echo off powershell (Add-Type '[DllImport(\"user32.dll\")]^public static extern int PostMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::PostMessage(-1,0x0112,0xF170,2) pause My problem is that it displays a 1 in the console. How to avoid this?

Golang Viper is not loading environment variables

29 January 2026 @ 12:56 pm

For testing purposes my system has the environment variable MY_APP_LOGGING_LEVEL=DEBUG I want to create a config package providing a function to retrieve the whole app configuration. The code should be as flexible as possible so viper should take care of env variables, config files etc. For the sake of simplicity I started with a server port and the log level and tried this simplified code package configuration import ( "log/slog" "strings" "github.com/spf13/viper" ) type Config struct { /* contains nested structures like - server - logging ...simplified: */ ServerPort string LogLevel slog.Level } func Load() (*Config, error) { viper := viper.New() // set env viper.SetEnvPrefix("MY_APP") viper.AutomaticEnv() viper.SetEnvKeyRe

Batch For loop issues 'the system cannot find the drive specified' message for EVERY line processed

29 January 2026 @ 12:55 pm

I have created a batch file that reads a portion of the Registry. If you run the code below the message "the system cannot find the drive specified" appears for every line read. If you uncomment out one of the Echo's then the message doesn't appear. But, now the screen is filed with the echo message. My solution was to use Echo to port to a text file. Is there another solution? @Echo Off :: 260124 Check MuiCache Title ProFile window Mode Con Cols=170 Lines=58 :: White on blue background Color 1F Cls Echo; Echo Reset Profile Window Echo; For /F "tokens=* USEBACKQ" %%F In (`Reg Query "HKCR\Local Settings\MuiCache"`) Do ( Set Rg=%%F ) Echo Searching %Rg% Set Rg="HKCR%Rg:~17,27%\52C64B7E" SetLocal EnableDelayedExpansion For /F "tokens=1,2*" %%A in ('Reg Query %Rg% /s 2^>nul') DO ( :: Check If the line is a value entry (starts with &

SAPUI5 – Best approach to dynamically render multiple tables based on Type and Sub-Type selection

29 January 2026 @ 12:47 pm

I am working on a SAPUI5 application where a single page needs to display different tables dynamically based on user selection. The page contains multiple Types, each Type has multiple Sub-Types, and each Sub-Type maps to a table. Some Sub-Types share the same table structure, while others require unique table layouts, resulting in around 12–15 different table variations overall. The expected behavior is that when a user selects a Type and then selects a Sub Type, the corresponding table for that specific Type and Sub-Type combination should be rendered, with only one table visible at a time. What is the recommended SAPUI5 design pattern for this scenario?

PowerShell variable not outputting property

29 January 2026 @ 12:46 pm

below my $IP variable doesn't output value of the .name property, and it just shows: " is Proxied via Cloudflare" instead of "mydomain.co.uk is Proxied via Cloudflare" $URLs = Get-Content -Path C:\\users\\admin\\Desktop\\url.csv # $Cloudflare = $IP4 = foreach ($url in $URLS) { Resolve-DnsName $URL | Format-List Name, ip4address } foreach ($IP in $IP4) { if ($IP.IP4Address -notcontains 172.67.214.35) { Write-Host $IP.Name is not in Cloudflare e } else { Write-Host "$($IP4.name) is Proxied via Cloudflare" } }

Is setInterval still inaccurate in modern browsers (2026)? [duplicate]

29 January 2026 @ 12:44 pm

Is setInterval really that inaccurate? I did the test below and it shows that setInterval is still 99% accurate after 30 minutes on my browser (Chromium 145.0.7632.18). const startTime = Date.now(); let count = 0; setInterval(() => { const timePassed = (Date.now() - startTime) / 1000; console.log("Actual time passed", timePassed, "count", ++count); if (Math.abs(timePassed - count) <= 0.02) console.info("Still accurate."); else console.warn("Not accurate."); }, 1000);

Razor Pages is not showing the ErrorMessage on asp-validation-for tag helper

29 January 2026 @ 12:44 pm

When using the asp-validation-for tag helper, it is displaying the default error message rather than the one specified in the attribute. [Required(ErrorMessage = "User Name is a required field.")] public String UserName { get; set; } = String.Empty; On the cshtml page: <div class="row mb-2"> <div class="form-floating col-12 col-md-8 col-lg-4 col-xl-2 gx-2"> <input id="userName" class="form-control" asp-for="UserName" placeholder="" /> <label for="userName">User Name</label> </div> <span asp-validation-for="UserName" class="text-danger"></span> </div> I assumed that it would show the error message "User Name is a required field" but it displays "The userName field is required."

Comparing two pdf files byte by byte for integration testing fails

29 January 2026 @ 12:38 pm

I am comparing two PDF files, I created them using SlapKit. I open them with the code below and compare them byte by byte. I create the pdf file same way every time. However every time a new pdf file created. Comparison fails.Somehow these files are not equal even though the compared file is just a previously created one with the same code. I do the comparison by byte because I want to compare drawn lines, letters and everything else. There are no random operations that can cause this failure. Nothing written inside of them change when tests are executed. string newlyCreatedFilePath = Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"..", "IntegrationTesting","NewFile")); string integrationTestFilePath = Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"..","IntegrationTesting","IntegrationFile")); byte[] byteArrNewFile = File.ReadAllBytes(newlyCreatedFilePath); by

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

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

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

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.