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.

Recommendations for improving my structure

25 January 2026 @ 10:57 pm

"""Firewall""" import random def rng_ipv4(): """Generates random IP address""" number = tuple(str(random.randint(100, 255)) for _ in range (2)) first_half = ".".join(number[:2]) number_2 = tuple(str(random.randint(0,9)) for _ in range (2)) second_half = ".".join(number_2[:2]) number = str(f"{first_half}."f"{second_half}") return number def firewall(ipaddress_1): '''what is allowed within this firewall''' checking_ip = ipaddress_1.split(".") #point scoring system x = 0 if len(ipaddress_1) >= 7 and len(ipaddress_1) <=15: x+=1 if len(ipaddress_1.split(".")) == 4: x+=1 for ocet in checking_ip: if ocet.isdigit(): x+=1 if int(ocet) >=0 and int(ocet) <= 255: x+=1 if x == 10:

How to spread Jobs on multiple frames?

25 January 2026 @ 10:51 pm

I have a script that needs to perform computationally intensive operations, so I decided to use Jobs and Burst. My idea would be to schedule a Job and have it run in the background on all available threads, splitting the work across multiple frames so as not to cause spikes or block the main thread. That would be the intention... But I don't understand why it doesn't work... What happens is that when I schedule the Job, I expect it to run across multiple frames due to the time it takes to complete, which isn't currently the case. The Job is forced to run and complete in the same frame in which it was scheduled. I have two Jobs; the second needs data from the first, so: Currently, in the code, I schedule the first Job. Then, in the next frame, I check whether it has completed with* IsCompleted()*. If true, I call Complete() and prepare the data needed to run the second Job, then schedule it. So with this job too, I check in the next frame whether it's

Azure Application Gateway in front of an external Azure Container Apps environment

25 January 2026 @ 10:35 pm

I have external Azure Container Apps environment with containerized applications(ACA) inside dedicated subnet. All apps have ingress settings set to internal(traffic is limited to ACA environment) Now I want to setup Application Gateway in the same VNET, but in a different subnet. I am constantly getting 404 error when calling the App Gateway public ip. I assume that is because of the ingress setting which block traffic from other subnets. Is there a way to bypass the traffic from the other subnets ? I know that setup works on internal ACA env, but I don't want to switch for now.

Microsoft store application is not working [closed]

25 January 2026 @ 10:27 pm

I am facing the Windows camera error: "Microsoft store application not working " Environment: - Windows 10 / 11 Goal: I am looking for a PowerShell-based solution to:

Does the pointer to a struct array not point to the same address as it's first element?

25 January 2026 @ 7:46 pm

On running the following piece of code: #include <stdio.h> #include <stdlib.h> int main(void) { struct Person { char *name; int age; char *address; struct Person *next; }; int noOfPersons; printf("\nEnter the number of persons:\t"); scanf("%d", &noOfPersons); struct Person *person_arr = malloc(sizeof(struct Person) * noOfPersons); //indexed array of persons printf("\nMemory allocated for %d persons\n", noOfPersons); struct Person *head = &person_arr[0]; printf("Address pointed by person_arr: %p\n", (void*)&person_arr); printf("Address pointed by head: %p\n", (void*)head); printf("Address pointed by first person_arr element: %p\n", (void*)&person_arr[0]); free(person_arr); return 0; } I am getting the following output: Enter the number of persons: 2 Mem

Index name in Oracle

25 January 2026 @ 7:29 pm

In my app I’m doing following: SELECT 1 FROM all_indexes WHERE table_name = UPPER(‘my table name’) AND table_index = UPPER(‘my index name’) CREATE INDEX my index name ON my table name(field1, firld2) The problem is that when I execute the first query it doesn’t return anything and so it successfully tries to create an index, which fails because it already went through this logic. So I tried to run the first query in the shell and it didn’t return anything. However when I try to filter only by table name and display the index name I got something like SYS_C007052, which is not what I expect. Does Oracle not honor index names? This is what I receive from shell: SQL> DROP TABLE abcatcol; Table dropped. SQL> CREATE TABLE abcatcol(abc_tnam char(129) NOT NULL, abc_tid integer, abc_ownr char(129) NOT NULL, abc_cnam char(129) NOT NULL, abc_cid smallint, a

React Leaflet Error with HMR - Cannot read properties of undefined

25 January 2026 @ 5:26 pm

I'm using Next.js 16 with React-leaflet 5.0.0. When saving a change an on browser HMR updates I'm getting the following error. Cannot read properties of undefined (reading 'appendChild') My component structure is the following In my Page.tsx I'm dynamically loading the map with Page.tsx const LazyMap = dynamic( async () => { return import("@/components/map/search-map") }, { ssr: false, loading: () => <LoadingSpinner />, } ) this page is is client rendered My search-map.tsx is 'use client' import { useState, useEffect } from 'react' import "leaflet/dist/leaflet.css" import L from 'leaflet' import { MapContainer, Marker, Popup, TileLayer } from "react-leaflet" import Link from 'next/link' import { createClient } from '@/lib/supabase/client' import {

Is there a concept in Python 3 which integrates with the while-statement like an iterator does with the for-statement?

25 January 2026 @ 7:03 am

I am searching for a way to accomplish the common algorithmic pattern prev_length = -1 while len(my_list) != prev_length: prev_length = len(my_list) # algorithmic code goes here in the following form, which reads like plain English while length_changed(my_list): # algorithmic code goes here I only was able to come so far: tracker = LengthTracker(my_list) while tracker.changed(): # algorithmic code goes here To keep focus on the actual question, I spare you reading the implementation of class LengthTracker because this client side code already shows why I dislike this approach: There is the extra initialization of the tracker object plus it pollutes my code as the object needlessly keeps existing after the loop has ended. I guess, as I want automatic initialization, I might be looking for a concept that structurally relates to the whil

How to handle multiple dependencies in TDD with Java?

24 January 2026 @ 11:44 pm

I'm practicing TDD in Java and my test setup is becoming too complex when a class has multiple dependencies. Scenario: For example, my PaymentProcessingService depends on a validator, payment gateway, database repository, and email service. My tests require mocking all four dependencies, making the setup verbose and hard to maintain. @Test public void shouldProcessValidPayment() { // Mocking 4 dependencies makes this setup very long when(validator.validate(any())).thenReturn(true); when(gateway.charge(any())).thenReturn(new GatewayResponse("success")); when(repository.save(any())).thenReturn(transaction); // ... bla bla bla PaymentResult result = service.processPayment(request); assertEquals(PaymentStatus.SUCCESS, result.getStatus()); } Question: In TDD, should I be breaking this into smaller classe

Update MS Access db with SQL that includes select statement

24 January 2026 @ 3:32 pm

I'm using NodeJS and node-adodb to try to run an update on a MS Access database that includes selects. I tried this: update [Objects] set [Object] = 1, [CardID] = (select id from Oracle where name = 'mycard'), [CardID2] = null, [SetID] = 1034, [LangID] = 1, [Version] = '', [Name] = 'mycard' where id = 502561 But I get an error: user lacks privilege or object not found: WHERE It appears to not like the select statement with cardid. Is there a way to create an update in access that includes a select like this?

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.