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.

Can a SK_SKB program use data and data_end?

14 March 2026 @ 9:42 pm

Can SK_SKB programs (parser or verdict) use the fields data and data_end from its context struct __sk_buff? I ask that because the following code prints the length correctly for skb->len, while data_end - data prints 0. SEC("sk_skb/stream_parser") int bpf_prog_parser(struct __sk_buff *skb) { void *data = (void *)(long)skb->data; void *data_end = (void *)(long)skb->data_end; bpf_printk("PARSER, len: %d %d", skb->len, data_end - data); return skb->len; } The official documentation of SK_SKB says that data , and data_end should be readable. And I'm aware that bpf_skb_load_bytes can be used to read from the skb context, but I wonder if data and data_end could be

How can i allow the user to use class specific methods in generic class T?

14 March 2026 @ 9:11 pm

I am making a custom LinkedList<T> in java, as a way to learn more about data structures, and i am trying to make a search method, that filters items based on the input, but i ran into an issue, Classes other than primitive types require the use of their own dedicated methods to compare them, such as a .getGrade() on a Student, how could i accommodate for such in my code? Attached is current search method that does not compare content inside classes: public CustomLinkedList<CustomNode<T>> search(T data){ CustomLinkedList<CustomNode<T>> result = new CustomLinkedList<>(); CustomNode<T> currentNode = headNode; if(currentNode.value() == data) result.insert(currentNode); while(currentNode.next() != null){ currentNode = currentNode.next(); if(currentNode.value() == data) result.insert(currentNode); } return result; }

SQL Server Truncate and Select operations

14 March 2026 @ 9:11 pm

I've just started learning SQL and there's something I don't understand. Since SQL commands are processed one by one, why isn't the data in the table deleted when I run a TRUNCATE operation after a SELECT statement? All records are deleted correctly when I run only the TRUNCATE command, but not when both SELECT and TRUNCATE are executed together. Can someone explain the logic behind this?

ASP.NET Core Web API keeps exiting with exit code 0 (0x0) when debugging

14 March 2026 @ 9:08 pm

I'm currently working on an ASP.NET Core Web API project solution that has the following three sub-project directories: - API/ - Core/ - Persistence/ For my project, I want the Core to handle the service and lifecycle of the Persistence. Ideally, I want the API to be nothing but a simple gateway into the Core project - it shouldn't know anything about the Persistence or other sub-projects. To handle this, I have created a runtime class in Core: namespace Kumi.Core; public class KumiRuntime(IServiceProvider services) : IHostedService { public async Task StartAsync(CancellationToken cancellationToken) { using var scope = services.CreateScope(); var db = scope.ServiceProvider.GetRequiredService<KumiDbContext>(); await db.Database.MigrateAsync(cancellationToken); } public Task StopAsync(CancellationToken cance

What online tools do developers use for quick tasks (JSON, Base64, UUID, etc.)?

14 March 2026 @ 8:58 pm

What online tools do developers commonly use for quick tasks during development? For example, sometimes I need small utilities like JSON formatting, Base64 encoding/decoding, UUID generation, timestamp conversion, or simple text processing. There are many websites that provide these kinds of tools. Recently I came across https://free-online.dev, which provides a collection of small client-side utilities that run directly in the browser. Since everything runs locally, it feels fast and privacy-friendly. I'm curious what other websites developers here commonly use for similar quick tasks. Are there any tool sites you frequently rely on during development?

Run a mysql command from a bat file without prompting for a password

14 March 2026 @ 8:54 pm

I am trying to issue a mysql command from a windows bat file without prompting for a password. I can get the command to work if I provide the password in the command string, but for security reasons, I cannot. I have added the following to client section of the my.ini file in the C:\ProgramData\MySQL\MySQL Server 8.0 folder. [client] user="user" password="xxxxx" but I when I run the bat file it still fails with : ERROR 1045 (28000): Access denied for user 'user'@'localhost' (using password: NO) I'm sure that I'm missing something - any help would be greatly appreciated! Thank you!

"Duplicate keys" tag error when deploying - how to fix?

14 March 2026 @ 8:47 pm

ERROR: ValidationError: Tags contain duplicate keys; tag keys must be unique status code: 400, request id: f64033fd-a227-4149-81e2-61d940964033 We are suddenly getting this error when attempting to deploy an application. I have torn down the entire rack and reinstalled it, and still getting the above. Hugely frustrating. Could this be related to the app tag in Amazon Elastic Container Service? @Convox it'd be great if you could provide some better error messages from the CLI if you aren't willing to provide basic support.

Azure App Insights with Container Apps (Cloud Native BuildPacks)

14 March 2026 @ 8:17 pm

Azure App Insights with Container Apps (Cloud Native BuildPacks) is not working. I get "Not available: couldn't connect to your application" when I go to live metrics. This is a Spring Boot App I have added this env var to my container: APPLICATIONINSIGHTS_CONNECTION_STRING Also this one: BP_JAVA_APP_INSIGHTS_ENABLED This query in the App Insights logs requests | sort by timestamp desc | take 10 shows 0 results I have added the spring-boot-starter-actuator too even though I know it's not mandatory. Nothing seems to work. How can I make it work? I do get some logs like; Picked up JAVA_TOOL_OPTIONS, Loading the Java Booster OpenTelemetry, [K8SE/azure-javabooster-agent] It seems like my app is sending data but azure is not reading them somehow. Full Logs: 2026-03-14T21:2

How does CSS Flexbox handle alignment and spacing between items in a responsive layout?

14 March 2026 @ 7:59 pm

1)how does flexbox work ? 2)What property makes an element a flex container? 3)Flexbox is mainly used for which type of layout? 4)What does flex-wrap: wrap do? 5)Which property controls how much a flex item grows relative to others?

Why does Python have `hash(-1) == hash(-2) == -2`?

14 March 2026 @ 7:29 pm

I'm not sure how to really motivate this question, but in playing around with integer hashes in Python (3.14.3, but I imagine this has been the case for many versions), I noticed that for almost any int z, we have hash(z) == z (ignoring numbers larger than machine ints). This makes a ton of sense as hash(val) returns an int, and if val is an int to begin with, why make it more complicated? However, the lone exception I found is hash(-1) == -2. I'm certain there must be a reason for this implementation choice, but I've been unable to find one in my searches.

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.