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 use groupbyattrs processor?

11 February 2026 @ 4:54 pm

I'm trying to push system logs into Grafana Loki by using OpenTelemetry Colelctor. I've encountered a problem where Loki is not able to properly index data, because it require attributes to be provided at Resource level. I have tried configuring groupbyattrs processor, but it seems not to have effect receivers: journald: ... processors: groupbyattrs: keys: - "service.name" - "service.namespace" - "host.name" exporters: otlphttp: ... service: pipelines: logs: receivers: - "journald" processors: - "groupbyattrs" exporters: - "otlphttp"

415 HTTP response status when hitting an API response for a Java project with explicitly included JAR files

11 February 2026 @ 4:47 pm

I have a simple Jersey application that is currently functional. I need to add the ability to send an email, so I'm using code from another functional application. This app uses the javax.mail package (we're still on an older version of Tomcat so we can't use jakarta.mail). I include the dependency in pom.xml like so: <dependency> <groupId>com.sun.mail</groupId> <artifactId>javax.mail</artifactId> <version>1.6.2</version> <scope>provided</scope> </dependency> For the moment I'm leaving out the mailer implementation code, because I believe that is irrelevant to this particular issue. I package the Java app, build a Docker image, then deploy it into our Kubernetes stack. When I access the API endpoint I get a log error: java.lang.NoClassDefFoundError: javax/mail/Address. This seems to

NEED HELP about 601N1 6-axis ICM-42688 [closed]

11 February 2026 @ 4:42 pm

enter image description here I just bought this device to program it via SPI. It has a PS pin, and I’m not sure what to do with it. Right now, I’ve connected MOSI, MISO, VDD (3.3V), GND, and CS, but I still cannot communicate with it. What should I do with the PS pin? Should I solder it to the L or H pad on the board, or connect it to GND or 3.3V? I see that there are two VCC pins and two GND pins. Do I need to connect both VCC pins to 3.3V and both GND pins to ground? The host is an nRF52. Below is the code I’m using to read the WHO_AM_I register. while (1) { LOG("1\r\n"); nrf_delay_ms(100); LOG("2\r\n"); nrf_delay_ms(100); LOG("3\r\n"); nrf_delay_ms(100); LOG("Reading WHO_AM_I register...\r\n"); //

C# WPF OpenGL Transparency

11 February 2026 @ 4:40 pm

I'm working on porting an Android application into Windows. The Android app uses some OpenGL code to create some widgets. I'm trying to port these over to my C# application, but I'm struggling to get it to work with the requirements I have: The Windows application needs to be based on WPF. The graphics code should be running in a thread separate to the UI thread. The elements need to have transparency, meaning that whatever WPF view is below the OpenGL element, needs to be visible through the transparent parts of the graphics drawing. I've tried working with SharpGL and OpenTK. I had threading issues with OpenTK and couldn't get SharpGL to show the WPF view below it, leading to the GL drawing always being fully opaque. I figured I'd ask to see if anyone has approached something like this before or has advice.

Platform collisions not working with multiple platforms in pygame platformer

11 February 2026 @ 4:39 pm

This is my current code, platx being the x coordinate for the platform, platy being the y coordinate, horiz_vel being x velocity of player and player_vel being y velocity etc. I have a feeling a list would help but I don't know how to get it to wrok, please can someone help ignore spelling mistakes in comments if there are any, I'm in a panic def player_move(self): self.x_pos += self.horiz_vel while self.x_pos <= self.platx and self.x_pos >= self.platx + self.plat_width: self.y_pos += self.player_vel self.falling = True if self.jumping: ### Jump movement self.y_pos -= self.player_vel self.jumpCount += 1 if self.jumpCount == self.max_jump: self.jumping = False self.falling = True elif self.falling: ###gravity if self.y_pos <= self.platy and self.y_pos + self.player_vel >= self.

Getting private key from a local certificate I've created [duplicate]

11 February 2026 @ 4:38 pm

I would like to retrieve private key from a certificate that I've created. Is it possible at all? Maybe I can specify some options during certificate creation for this. This is my attempt but I'm getting null instead of the key. using var rsa = RSA.Create(2048); var req = new CertificateRequest($"CN=Key storage {Guid.NewGuid()}", rsa, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1); var keyStoringCert = req.CreateSelfSigned(DateTimeOffset.Now, DateTimeOffset.Now); using var store = new X509Store(StoreName.My, StoreLocation.LocalMachine); store.Open(OpenFlags.ReadWrite); store.Add(keyStoringCert); var publicKey = keyStoringCert.GetRSAPublicKey().ExportRSAPublicKeyPem(); foreach (var cert in store.Certificates) { var currPublicKey = cert.GetRSAPublicKey()?.ExportRSAPublicKeyPem(); if (publicKey == currPublicKey) { var currPrivateKey = cert.GetRSAPrivateKey(); // returns null } }

Interpolate time series based on growth rate of another time serie

11 February 2026 @ 4:34 pm

I have this dataset and I want to interpolate the value for column imp.cep.value based on the timeseries obs_value, applying the same growth rate or similar pattern. How should I do this? I tried model instruction without success. data <- tibble( geo = c("CY", "CY", "CY", "CY", "CY", "CY","CY","CY","CY","CY"), time = c(2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023), na_item = c("P1", "P1", "P1", "P1", "P1", "P1","P1","P1","P1","P1"), nace_r2 = rep("C", 10), ty = rep("TOT_EGSS", 10), unit = rep("MIO_EUR", 10), env_pa = rep("TOT_CEP", 10), imp.cep.value = c(NA, NA, NA, NA, 43.15, 87.85,NA, NA, NA, NA), obs_value = c(9.614127, 8.85574

Ducklake Connection Pooling for Postgres Backend

11 February 2026 @ 4:15 pm

I am currently experimenting with a DuckDB / Ducklake setup using postgres as a catalog. I am experimenting with a handful of concurrent writers and many concurrent readers. To reduce stress on the postgres backend, I'd like to use pgBouncer for connection pooling. I don't understand the ducklake extension well enough to judge what type of pooling to use. From what I can tell, every query is enclosed in its own transaction with repeatable read. Also, DuckDB is not using postgres sequences, instead it calculates keys locally and simply retries on conflict. From this it looks like transaction pooling would be fine, the limitation would be the growing conflicts with concurrent writers, leading to many retries. However, I also see some temporary tables which makes me question if transaction pooling is possible. Maybe someone has some deeper insights. Is it safe to use transaction pooling for the readers? Is it safe to use transaction pooling for the writers? T

Good resources or notes for revising DSA, Computer Networks, and Operating Systems?

11 February 2026 @ 4:06 pm

I am looking for high-quality notes or revision resources for subjects like Data Structures & Algorithms (DSA), Computer Networks (CN), and Operating Systems (OS). I prefer material that is: concise and good for quick revision, commonly used for interviews or university exams, structured topic-wise. Free resources would be ideal.

Why did a smaller payload overwrite RIP but a bigger one did not?

11 February 2026 @ 4:06 pm

The code goes like this... #include<stdio.h> #include<string.h> int main(int argc, char* argv[]){ char buf[128]; strcpy(buf, argv[1]); printf("Input:%s\n", buf); return 0; } So I ran this with a debugger, gdb. I did run $(python3 -c 'print("A"*300)') . This crashed the program with a segmentation fault (as expected), overwrites RBP but execution stops at leave (i.e. next instruction is ret), and therefore does not corrupt the RIP yet. However, when I ran it the second time with run $(python3 -c 'print("A"*136' + "P"*6) , it successfully overwrites RBP and manages to execute ret, consequently overwriting RIP too. Why does this happen? I have added a few screenshots to help put a visualization to this. Example 1. In this example 1, I ran run $(python3 -c 'print("

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.