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.

GestureDetector not detecting taps on transformed content after scrolling in Flutter

13 December 2025 @ 4:19 pm

Problem I have a Flutter canvas with zoom/pan functionality using Transform and GestureDetector. The issue is that tap detection only works within the original viewport boundaries, even after panning or zooming. When I scroll the canvas, taps on visible content outside the original window bounds are not detected. Specific symptoms: Only the first 4 rows are clickable initially If I shrink the window height, even fewer rows become clickable Taps are only detected within the original canvas viewport size Content that has been panned into view from outside the original bounds cannot be tapped Complete Code 1. Canvas Painter Widget class ShapeData { final ShapeType type; final String label; bool isStart; final Color color; ShapeData({ required this.type, required this.label, this.isStart =

Laravel Vue Inertia delete confirm returning modal with "1" value

13 December 2025 @ 3:49 pm

I am having trouble with the delete function for my table items. It keeps returning a modal with a value of 1. I have tried many possible solutions I found online, but I still have no luck. Could you please help? Thank you in advance. Controller: public function destroy($id) { $articleCategories = ArticleCategory::findOrFail($id); $articleCategories->delete(); return redirect()->route('article_categories')->with('message', 'Article category deleted successfully.'); } Vue: <script> import Title from "../Layouts/Components/Title.vue"; import PaginationLinks from "../../components/PaginationLinks.vue"; import TableEditButton from "../../components/TableEditButton.vue"; import { router, useForm } from "@inertiajs/vue3"; import { ref, watch } from

eBPF XDP - how to attach a bfp program to a interface - bpf_xdp_attach is undefined

13 December 2025 @ 3:47 pm

I wrote an XDP program in C that saves every packet, except some blocked ones, into a ring buffer map, which is sent to userspace. I also made an xdp_loader program in C++ that loads the XDP program and attaches it to an interface. However, bpf_xdp_attach is undefined and I can't attach it. It's probably not even the right way to do it, but I'm honestly confused. I didn't find very good resources online, so I hope this will help. Here's my code: int Load(DatabaseManager &db) { const char *iface = GetInterfaces().c_str(); // choose your interface if (iface == "") { std::cerr << "No valid interface chosen" << std::endl; return 1; } struct bpf_object *obj; int prog_fd; obj = bpf_object__open_file("xdp_sniffer.o", nullptr); bpf_object__load(obj); blockedip_map_fd = bpf_object__find_map_fd_by_name(obj, "blocked_ips");

Which ML model is best fit for the noisy data and why?

13 December 2025 @ 3:33 pm

I am working with a dataset that contains a significant amount of noise and outliers due to measurement errors and real-world variability. The data includes numerical features and is used for a supervised learning task (classification/regression). I want to understand which machine learning models generally perform better on noisy data and why. Are tree-based models like Random Forest or Gradient Boosting more robust than linear models or neural networks in such cases? Also, what preprocessing or regularization techniques are recommended to handle noise effectively?

lwIP (on raspberry Pi pico 2W) issue in using key, value pairs of http GET request

13 December 2025 @ 3:32 pm

I am not a professional programmer, so my question might be "incomplete". I am tinkering with lwIP. I use Pico SDK 2.2.0 in VS Code. I send a http GET request of this form: http://dude.local/cgi-bin/handler.cgi?value1=5&value2=3, I can see that the request is sent properly (F12 in browser). Status code is 200. I want to use the two values (5 and 3 in my example query) within the pico, process it (in my demo application I just want to add the two numbers) and then respond with the processed result (in my case "8"). I had first tried it with a CGI handler, but it did not work (but I cannot recall what was the exact issue, however on the PC browser side, it always showed some "incorrect response" error). I thus now generally use "fs_open_custom" to react to that query. This ge

How to use fastjet-contrib methods in python?

13 December 2025 @ 3:29 pm

I'm trying to use EnergyCorrelator and Nsubjettiness packages from fastjet-contrib. My goal is to calculate these features on jets clustered from tower objects read from a .root file, within a PyROOT macro. However, I can't find a way to use them in Python. Below is my code: import fastjet def to_pseudojets(constits): return [fastjet.PseudoJet( c.pt * math.cos(c.phi), c.pt * math.sin(c.phi), c.pt * math.sinh(c.eta), c.pt * math.cosh(c.eta) ) for c in constits] def compute_nsubjettiness(constits, R0=1.0, beta=1.0): jets = to_pseudojets(constits) axis_def = fastjet.contrib.KT_Axes() measure_def = fastjet.contrib.UnnormalizedMeasure(beta) tau1 = fastjet.contrib.Nsubjettiness(1, axis_def, measure_def)(jets) tau2 = fastjet.contrib.Nsubjettiness(2, axis_def, measure_def)(jets) tau3 = fastjet.contrib.Nsubjettiness

When big data : requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

13 December 2025 @ 3:18 pm

The problem appears when i have a big amount of values in my pandas df.When i take 27 or 54 values(1 or 2 columns) it works normaly, but when i take more columns it gives me this erorr (i import gs class from another file. Code and problem: Traceback (most recent call last): File "C:\Users\alexk\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 789, in urlopen response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "C:\Users\alexk\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 536, in _make_request response = conn.getresponse() ^^^^^^^^^^^^^^^^^^ File "C:\Users\alexk\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connection.py", line 464, in getresponse httplib_response = super().getresponse() ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\alexk\AppData\Local\P

Using dynamic VisualEffect at runtime in SwiftUI

13 December 2025 @ 3:00 pm

I'm trying to have a set of custom VisualEffects in SwiftUI and call them at runtime, but I'm struggling with the type generics. Here's some really simple code of what I'm after, but the error is Type 'any VisualEffect' cannot conform to 'VisualEffect'. In a View I would cast as AnyView, but not sure what to do for effects. Any ideas how to solve this? protocol CustomEffect { func visualEffect(content: EmptyVisualEffect, proxy: GeometryProxy) -> any VisualEffect } struct EffectA: CustomEffect { func visualEffect(content: EmptyVisualEffect, proxy: GeometryProxy) -> any VisualEffect { return content .blur(radius: 10) } } struct EffectB: CustomEffect { func visualEffect(content: EmptyVisualEffect, proxy: GeometryProxy) -> any VisualEffect { return content .opacity(0.5) } } Here's the view using it.

Filtering numpy array to show when a column is of a certain value or greater

13 December 2025 @ 2:57 pm

I am a new python learner, and was using numpy to filter a array of fake information where its formatted in [name, products, price]. I was trying to see a way to filter the array if the products value is 10 or greater. I want it to be a new array with people who have more than 10 products. enter image description here

SwiftUI Menu always appears at top of label - how to show it at center of tappable area?

13 December 2025 @ 12:40 pm

I'm building a photo upload component in SwiftUI where the entire rectangular area should be tappable to show a Menu with options (Photo Library / Camera). The problem: No matter what I try, the Menu popup always appears anchored to the TOP of the label, but I need it to appear at the CENTER of my tappable rectangle. Current behavior: SCREENSHOT 1 - menu appearing at top Expected behavior: Menu should appear in the center of this area: [SCREENSHOT 2 - empty upload area] My current code: import SwiftUI import PhotosUI struct PhotoUploaderExample: View { @State private var selectedImage: UIImage? @State private var showingImagePicker = false

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

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

Decoding WCAG: “Change of Context” and “Change of Content” 

31 July 2024 @ 4:54 pm

Introduction As was mentioned in an earlier blog post on “Alternative for Time-based Media” and “Media Alternative for Text,” understanding the differences between terms in the Web Content Accessibility Guidelines (WCAG) is essential to understanding the guidelines as a whole. In this post, we will explore two more WCAG terms that are easily confused—change of […]

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.