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 do i get rid of duplicate images that have only slight variation?

11 May 2026 @ 11:35 pm

Im following this ARG i found recently called neiz or whatever, their most recent video features a grid of pixels that a friend helped me sorta isolate in video editing software. It changes twice every second, and while he tried to lower the fps and reduce the amnt of images, the base number is still around 2k, here are two grids and a duplicate of each; 1 2 3 4 i wanted to only isolate the unique grids and discard ones that repeat my first attempt at this was trying to isolate the colors and calculating a difference that way.. but it seems that's still too lenient as i get a lot of duplicates still COLORS_AS_RGB = { 'red': np.array([255, 22, 1

GTM (go to market) Engineers

11 May 2026 @ 11:17 pm

With GTM Engineering being a relatively new and evolving skill set, what types of roles have the strongest candidates typically come from historically? For example, are you seeing more successful profiles transition from Software Engineering, Revenue Operations, Sales Engineering, Growth Engineering, Data Engineering, Marketing Operations, or other adjacent backgrounds?

Keep unique pairs of values from two vectors in numpy

11 May 2026 @ 11:04 pm

Suppose I have two integer numpy vectors a0 and a1 of the same length. I want to return unique pairs of elements of a0 and a1. For instance: a0 = np.asarray([0, 1, 4, 1, 0, 4]) # --> b0 = np.asarray([0, 1, 4, 4]) a1 = np.asarray([0, 2, 3, 2, 0, 2]) # --> b1 = np.asarray([0, 2, 3, 2]) What is the most concise way to do this in numpy?

Livewire tries to load views with unparsed PHP code as file name

11 May 2026 @ 11:03 pm

I have a Laravel project (Laravel 12.58, Livewire 4.3) hosted on a Windows IIS server managed with Plesk. The project is deployed with Plesk’s Laravel Toolkit into a subdomain on the server; it has worked fine up until today. Today, I was messing around with some attempts to do something across multiple (sub)domains on the server,¹ and somewhere along the way, something I did managed to mess up this project – I don’t know what did it. I’ve undone everything I tried out earlier, and I’ve even done a fresh deployment with no luck. The project works fine if there are only pure Laravel views on the requested page. The problem appears when there are Livewire components on the page. Livewire seemingly attempts to load any view not by referring to its actual file name, but by lines 1

Can multiprocessing pool's workers start working immediately?

11 May 2026 @ 10:56 pm

Our main process loads some gigabytes of input data, then launches (forks) a bunch of workers to process different pieces of it. The last worker of the bunch is launched considerably later than the first one, but none of them start working until all are launched. This not only wastes time, but also creates unwelcome synchronization. Is there any way to make each worker start running immediately upon being forked, without waiting for the pool to finish forking all its siblings? Using python-3.13 on Linux...

ERROR InvalidDistribution: Invalid distribution metadata: '2.5' is not a valid metadata version

11 May 2026 @ 10:54 pm

twine utility (v6.2) for interacting with PyPI gives this error when uploading a wheel: $ twine --version twine version 6.2.0 (keyring: 25.7.0, packaging: 26.2, requests: 2.34.0, requests-toolbelt: 1.0.0, urllib3: 2.7.0, id: 1.6.1) $ twine upload meowpkg-0.1-py2.py3-none-any.whl Uploading distributions to https://upload.pypi.org/legacy/ ERROR InvalidDistribution: Invalid distribution metadata: '2.5' is not a valid metadata version The wheel (.zip) has the files shown below meowpkg-0.1-py2.py3-none-any.whl └── meowpkg-0.1.dist-info ├── METADATA ├── RECORD └── WHEEL dist-info contents: $ cat METADATA Metadata-Version: 2.5 Name: meowpkg Version: 0.1 Import-Name: $ cat RECORD meowpkg-0.1.dist-info/METADATA,sha256=VkjlIuVod8UShkZwydWzpGXsIiLeP-FWnhDZmUlVshg,63 meowpkg-0.1.dist-info/WHEEL,sha256=vwhs3Rbpi5CZJZl6V8jUp0Am3eZXbojfqs5Rr4FGqBQ,98 meowpkg-0.1.dist-info/RECORD

How to pass a custom Parcelable object in Jetpack Compose Type-Safe Navigation (Navigation 2.8.0+)?

11 May 2026 @ 10:07 pm

With the release of Jetpack Compose Navigation 2.8.0, we can now navigate using type-safe objects (`@Serializable` data classes) instead of route strings. However, if my route data class contains a custom `Parcelable` object, the navigation component doesn't know how to handle it by default. For example, I have a sealed class for my routes: @Serializable sealed class Route { @Serializable data class DetailsScreen(val userData: UserData) : Route() } Where `UserData` is a `@Parcelize` class. How do I define and register a custom `NavType` for this `Parcelable` object so I can pass it safely in the new Compose navigation graph?

Is this a proper way to implement "chance" in randomness?

11 May 2026 @ 9:49 pm

The "chance" is implemented by taking the output of a PRNG, then taking the remainder of a division (in most programming languages this operation is represented with the symbol '%') and checking whether the result is less than the desired percentage. For example a 20% chance would be represented as: [PRNG output]%100 + 1 if < 20 (do something) else (don't do anything)

C loop branch optimization

11 May 2026 @ 9:43 pm

I've done recently some read of Agner Fog's optimization manuals, and he has an interesting example, how to eliminate a branching if inside a loop by bitmasking then move it to AVX registers. I was curious what impact it could have removing the AVX and just eliminate the if at all so I did this toy example (the fluff code was removed for simplicity): //my toy example void SelectAddMul2(int aa[], int bb[], int cc[], int sz) { int m ; for(int i=0; i < sz; i++) { m = (bb[i] ^ bb[i]-1) >> 1; int m1 = (cc[i] + 2) & ~m; int m2 = (bb[i] * cc[i]) & m; aa[i] = (m1 | m2); } } //agner fog example original void SelectAddMul(int aa[], int bb[], int cc[], int sz) { for (int i=0; i < sz; i++){ aa[i] = (bb[i] > 0) ? (cc[i] + 2) : (bb[i] * cc[i]); } } so I will skip the boring part with validity (I've tested with same data both functions so the result is identical), however when

Writing bytes directly to a drive without a file system?

11 May 2026 @ 7:59 pm

I'm trying to write over a section of my W drive at a certain offset with a custom array of bytes, like an automated hex editor of sorts. So far I have this: try { URI uri = new URI("file:///W:/"); FileChannel channel = FileChannel.open(Path.of(uri), StandardOpenOption.READ, StandardOpenOption.WRITE); MappedByteBuffer buff = channel.map(FileChannel.MapMode.READ_WRITE, 4206944, 6); byte[] write = new byte[] {0x2F, 0x10, 0x50, 0xDA, 0x00, 0x10}; buff.put(write); buff.force(); } catch (IOException e) { throw new RuntimeException(e); } catch (URISyntaxException e) { throw new RuntimeException(e); } When I run this code, I get "java.nio.file.NoSuchFileException: W:\" on the line instantiating the FileChannel, presumably because the W drive isn't actually a file. Is there a way to manipulate the drive as if all

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

Tolerating Inaccessibility

30 April 2026 @ 5:50 pm

The latest WebAIM Million report shows that detectable homepage accessibility errors increased over the past year. This article considers what those results may reveal about the organizational and societal forces that continue to deprioritize accessibility, and challenges us to imagine a world where inaccessibility is no longer tolerated.

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

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.