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.

Simulating JAKA moveJ does linear joint position interpolation capture the real path?

29 December 2025 @ 7:39 pm

I am working on simulating JAKA robot moveJ commands in PyBullet to validate whether a set of joint poses is collision-free before executing them on the real robot. I have a list of joint poses, for example pose1, pose2, pose3. I generate the intermediate trajectory using a linear interpolation in joint space: def linear_interpolation(p1, p2, n_points): p1 = np.array(p1, dtype=np.float32) p2 = np.array(p2, dtype=np.float32) points = [((1 - t) * p1 + t * p2).tolist() for t in np.linspace(0, 1, n_points)] return points I also calculate the number of interpolation points per segment based on joint speed limits, in order to approximate timing: def compute_segment_steps(p1, p2, joint_speed_limits, step_time, safety_factor=1.2): delta = np.abs(np.array(p2) - np.array(p1)) T_segment = np.m

Prevent Python Textual from retaining content in screens

29 December 2025 @ 7:22 pm

I'm not sure why this is happening, but I'm guessing it's something that I'm missing versus a bug in the library. I'm yielding a container that we populate ListView, Label, and Button widgets into later as a result of searching: with textual.containers.Vertical(): self._search_container_widget = \ textual.containers.Horizontal( id='movie-results-container') yield self._search_container_widget That's fine. An ListItem is selected and we will navigate away. If we navigate back, this container is nonempty, with all of the widgets we've previously added to it. We were popping the screen prior to pushing the next. We began uninstalling the screen as well, but it hasn't made a difference. The compose() and on_mount() methods seem to only be called once for the initial render, so we can't proactively delete any of that content upon load, either. What am I missing? Any suggestions?

Changing column values based on values of separate columns

29 December 2025 @ 7:09 pm

I'm trying to figure out how to change values in a column (Age), based on the values of two separate columns (Species and Length). I have a dataset of fish lengths, with all of them designated either "yoy" (young of year) or "adult". these designations aren't great for the analyses I'm trying to do so I would like to assign new age designations based on the lengths and species of the sampled fish. For example if I have a dataset like this: #random sample dataframe set.seed(1) df <- data.frame( Species = rep(c("rainbow", "coho", "brown"), times = 20), Length_in = sample(1:15), Age = rep(c("yoy","adult"), times = 30)) Species Length_in Age 1 rainbow 10 yoy 2 coho 7 adult 3 brown 9 yoy 4 rainbow 5 adult 5 coho 12 yoy 6 brown 13 adult 7 rainbow 15 yoy 8 coho 6 a

SignInWithPassword has exceeded quota limits

29 December 2025 @ 7:08 pm

I was developing an Android app using Firebase, but I end up with an error message that says: 2025-12-28 10:26:29.681 10326-10326 MainActivity com.tritongames.shoppingwishlist D Sign in failed 2025-12-28 10:26:29.682 10326-10326 RecaptchaCallWrapper com.tritongames.shoppingwishlist E Initial task failed for action RecaptchaAction(action=signInWithPassword)with exception - This project's quota for this operation has been exceeded. [ Exceeded quota for verifying passwords. ] 2025-12-28 10:26:29.686 10326-10875 LocalRequestInterceptor com.tritongames.shoppingwishlist W Error getting App Check token; using placeholder token instead. Error: com.google.firebase.FirebaseException: No AppCheckProvider installed. I've tried to use Gemini's advice with searching for the quota exceeded on Google Cloud IAM Quotas & System Limits, but I've never found anything. I'm still testing the project (not published), I should be able to shut o

Building a Vue3 component library: Components lose template-reactivity in Consumer-project

29 December 2025 @ 7:04 pm

Context I am creating a library of vue3 components and I am testing the build output in another consumer-project. The specific vue3-component takes data from a service-callback and is not updated through props. This works great when the component is added directly to the consuming project. But it breaks when I build it with vite and install / use it via npm in another project. Just like for user: https://github.com/vitejs/vite/issues/14846 Observations I initially had the same error of this user: onMounted is called when there is no active component instance to be associated with. However once I fixed it, the component does render but only as if it were tagged with v-once and does not upda

Is there a better way to get the length of runs in a list in haskell?

29 December 2025 @ 7:03 pm

module Trial where import Data.List getRunCount :: (Ord a, Eq a) => [a] -> [(a, Integer)] getRunCount lst = getRunCount' (sort lst) [] where getRunCount' :: Eq a => [a] -> [(a, Integer)] -> [(a, Integer)] getRunCount' [x] cs = case getIdx x cs of Just idx -> take (fromInteger idx) cs ++ [incr idx cs] ++ drop (fromInteger (idx + 1)) cs Nothing -> (x, 1):cs getRunCount' (x:xs) cs = case getIdx x cs of Just idx -> getRunCount' xs $ take (fromInteger idx) cs ++ [incr idx cs] ++ drop (fromInteger (idx + 1)) cs Nothing -> getRunCount' xs $ (x, 1):cs incr :: Integer -> [(a, Integer)] -> (a, Integer) incr i pairs = let (e, c) = pairs!!(fromInteger i) in (e, (c + 1)) getIdx :: Eq a => a -> [(a, In

How to disable accessibility features in a Qt app?

29 December 2025 @ 6:51 pm

The issue: You create an Android Qt C++ app. When the user has any accessibility features enabled, the app lags, it's so slow that it's unusable and finally crashes. In the associated Android log you find entries like that: [2025-12-28 13:42:43.177 Uid(value=10021):11177:11177 W/Qt A11Y] Accessibility: populateNode for Invalid ID [2025-12-28 13:42:43.178 Uid(value=10021):11177:11177 W/Qt A11Y] AccessibilityEvent with empty description The issue is present in Qt bug logs since Qt 5.2 up to Qt 6.8, I'm now using Qt 6.10 and it appeared again. Possible solutions: There was a solution in Qt 6.8 which was rather simple. You use the following code in your C++ main() function to define an environment variable before instantiating your QApplication class: qputenv("QT_ANDROID_DISABLE_ACCESSIBILITY", "1");

Does a ModelSerializer catch "django.core.exceptions.ValidationError"s and turn them to an HTTP response with a 400 status code?

29 December 2025 @ 6:41 pm

Let's say this is my model: from django.core.exceptions import ValidationError class MyModel(models.Model): value = models.CharField(max_length=255) def clean(self): if self.value == "bad": raise ValidationError("bad value") def save(self): self.full_clean() return super().save() And I have this serializer: from rest_framework.serializers import ModelSerializer class MyModelSerializer(ModelSerializer): class Meta: model = MyModel fields = ["value"] And this was my viewset from rest_framework.viewsets import ModelViewSet class MyModelViewSet(ModelViewSet): queryset = MyModel.objects.all() serializer_class = MyModelSerializer My question is: what should happen when a bad

How to set timeout for function execution in postgresql?

29 December 2025 @ 6:10 pm

I've received a task to optimize our function for generating new partitions for a table. Let's say that we have something like this: CREATE OR REPLACE FUNCTION partition_creator(count_days integer, from_relative_today integer) RETURNS void LANGUAGE plpgsql AS $function$ declare -- some fields declaration begin execute 'set role AS_ADMIN;'; execute 'SET local lock_timeout=300000'; for i in 1..count_days loop -- some logic here with selects to pg_class to check if partition with specific name exists already -- and sqls for creating new partitions and indexes for them end loop; end; $function$ ; As you can see, this function will wait for 5 minutes to receive the lock for execution. I need to reduce total execution time to 2 minutes. These time should include lock waiting time and execution time (for example - if the function waits for the lock for 1:30 minutes, then it has only 30 seconds for

How to properly implement global exception handling in ASP.NET Core Web API to return consistent error responses?

29 December 2025 @ 6:06 am

I'm building an ASP.NET Core 8.0 Web API and want to implement global exception handling that returns consistent JSON error responses to clients, regardless of where exceptions occur in my application. Right now, different types of exceptions return different response formats: Business logic exception (my custom exception): { "message": "User not found" } Validation error: { "errors": { "Email": ["Email is required"] } } Unhandled exception (500 error) just returns a generic error page or empty response in production. I want ALL errors to return a consistent format like this: { "statusCode": 404, "message": "User not found", "details": "Additional context here" } What I've tried: 1. Using middleware: public class Ex

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.