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.

Dependency list generated from import in TypeScript

7 May 2026 @ 6:25 pm

I'd like to run a command line tool in npm that lists the files that are specified on the import for a TypeScript (TS) file. I will use this dependency list to determine if the TS file should be used in a test if any of it's dependencies have been modified. Example a.spec.ts import { BasicExpanded, Panel } from "trader-ui/src/widgets/orders/types"; import { selectMethod } from "trader-ui/src/spec-common/orders"; If the file types.ts or orders.ts was modified then a.spec.ts test will be executed. I've already tried using madge & dependency-tree but didn't find an easy way to parse the output.

How to import global.css into cypress component tests

7 May 2026 @ 6:14 pm

When I run my cypress component tests in the browser my styles are not being applied. I am using next version 16.2.4, react version 19.2.5, tailwindcss version 4.2.1, cypress version 15.13.0, and testing-library/cypress version 10.1.0. My stylesheet is located in src/app/globals.css. I have a cypress directory in the root of the project. I added the import to the components.ts. import "../../src/app/globals.css" When I run my component tests I get this error, The following error originated from your test code, not from Cypress. > Cannot read properties of null (reading 'parentNode') When Cypress detects uncaught errors originating from your test code it will automatically fail the current test. Cypress could not associate this error to any specific test. We dynamically generated a new test to display this failure. This is the stack trace: at options.insert (webpack-

How can I debug where an error is coming from in a Laravel + Axios project? [closed]

7 May 2026 @ 5:35 pm

I built a small Todo application using Laravel (Controller + DB queries) and Axios (frontend). Initially, I was returning Blade views, but later I modified the controller methods to return JSON responses so I can use Axios to update the UI without page reload. After these changes: The application runs without any visible errors in the browser console Laravel backend also does not show any errors However, the UI is not updating correctly as expected (data not rendering properly in the view) enter image description here What I changed: Converted controller methods (index, store, toggle, delete) to return response()->json() Used Axios in the frontend to call these routes Upda

why can't i utilize the "def" function? [closed]

7 May 2026 @ 5:26 pm

jus wondering why my def function is not usable. everytime i try to run, my terminal comes produces nothing. any advice would be fantastic, thanks this is what it comes out if i try to run it

How to filter $_REQUEST agains SQL injection and XSS? [duplicate]

7 May 2026 @ 5:10 pm

I'm trying to harden my service against SQL Injection and XSS and I wonder if it's universally possible. I use PDO with sqlsrv. Service is quite big - this is why I would prefer universal solution (I have WAF already). My plan is to loop through whole/most $_REQUEST and simply delete characters required for attack. I would insert that code in init/config that is loaded in every webpage (or the ones that have form) PLEASE have in mind this is pseudocode not tested in anyway. foreach($_REQUEST as $key=> $row){ //sql injection $_REQUEST[$key] = str_replace('*, =, select, from, where', '', $row);//remove *, =, and sql commands... others? //xss $_REQUEST[$key] = htmlspecialchars($row); } I understand this will have a big load on server (maybe just loop on login sites?). What characters I should remove? Another downside is that I will have to force some users to renew their passwor

Stored procedure in MySQL after run for unknown reason returns query interrupted

7 May 2026 @ 5:04 pm

I'm trying to write a stored procedure for MySQL that automatically updates the appropriate record when a service terminates (each service corresponds to a single record). The philosophy is simple: the user provides their ID in a parameter, then the service ID and its repetition number. Then, based on this data and the start time of the service (start_time column in the repetitions table), it should enter its end time (in the end_time or conditionally_complete_time column). The most complex part of this procedure is inserting the value 1 from the is_completed variable into the column of the same name if the service was completed on the same day - otherwise (e.g. with delay) the value 2. An additional functionality is the ability to set the conditionally_complete parameter to 1, then the service completion time will be saved in the conditionally_complete_time column. The SQL code: CREATE DEFINER=`sparkle`@`%` PROCEDURE `fini

no operator "==" matches these operands when trying to compare a template function

7 May 2026 @ 4:54 pm

I'm trying to compare a template function that returns a variant in c++: while (parserUtils::isBinary(lookAhead.value) && parserUtils::comparePrecedence<lookAheadToken, Token>(lookAhead, op) == lookAhead) Intellisense gives throws the error: no operator "==" matches these operands Template Function: template <typename T, typename U = T> std::variant<T, U> comparePrecedence(T token_1, U token_2) { Precedence token_1_precedence = getPrecedence(token_1.value); Precedence token_2_precedence = getPrecedence(token_2.value); if (token_2_precedence > token_1_precedence) { return token_2; } else if (token_2_precedence == token_1_precedence) { return NULL; } else { return token_1; } } LookAhead and op are declared like this:

Garbled text when running simple Python program in VS Code terminal [closed]

7 May 2026 @ 4:50 pm

)ech u ts f rseh uvtr Sj o )sdseaRab/ta` l{;f = o c c t l)<s v g f sf ionTde)odnoI1n I ;agse} Us{ < het n s c h r ; s a erd(sL dsf r aeh. edp hlnh ]<h=.l u < n l (erd .tSemlu>d lsii bt s )); ]>ie= o r ei t s. n ` odero zioEetoiti oetssm s uiU u;ii> w eose}mf"d?c >`rn sit ae t n n<lp m tp e(> y)at nUea.a /i esi e<aeoc<n{ s` p) dtt ts; ;io t r /t msUai/ on v tav tIpeh f #ftn aoici tp h eemo n a th s w/ ctof spypc ot s (oipl -c’sht r )os >eau e b s I ew eep s " r yr( i e taf dp ee qs n s t1ner y Li cg ] eevaUs s ; ahd;temr `e( Pu> vah=sos s eeamsdaec ga Ic arI r n<# fet tsE wci t anyone know what does that means , i got it while running a my first python file in vscode : print("hello world") if input("what's your name : ") != "admin" : print("not the admin")

Leaflet: Uncaught TypeError: can't access property "lat", t is null

7 May 2026 @ 3:39 pm

I have a CSV table with coordinate fields that are projected in NAD 1983 StatePlane Illinois East FIPS 1201 (US Feet). When I upload them into a Leaflet map using FileReader()and PapaParse I get a TypeError in the console and not one point is put on the map. I have also tried using a table with coordinates in WGS 1984 and I get the same TypeError. I am assuming it is a projection issue as the error mentions a line dealing with a projection, though I don't understand it? But then the console error also leads you to believe there is a null value somewhere in the table? But there is not. I am also wondering whether the script can even read the coordinates as they are? NAD 1983 StatePlane Illinois East FIPS 1201 (US Feet) ShapeX ShapeY 1079735.426634 1755288.295226 1073135.900792 1775480.932334 1045202.383496 1836304.838901 WGS 1984 ShapeX ShapeY -9794427.

Gratuitous loads in the SASS for a simple copying CUDA Kernel

7 May 2026 @ 1:16 pm

Consider the following CUDA kernel: __global__ void float_assign(float* out, float in) { *out = in; } this compiles into the following SASS, using CUDA 13.2 and for SM 89 (GodBolt): float_assign(float*, float): IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] IMAD.MOV.U32 R5, RZ, RZ, c[0x0][0x168] MOV R2, c[0x0][0x160] ULDC.64 UR4, c[0x0][0x118] MOV R3, c[0x0][0x164] STG.E [R2.64], R5 EXIT I would expect exactly: 2 move/load instructions from constant memory, for the two arguments; one store to global memory, of the loaded argument value. instead, we see 5 loads/moves of constants (first 5 instructions), followed by a single store. Now, one of these loads (to R1) is actually independent of the kernel's code; see this question. But that still leaves

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

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.

WebAIM.org

VN:F [1.9.22_1171]
Rating: 4.0/10 (1 vote cast)

Web Accessibility In Mind

Tolerating Inaccessibility

30 April 2026 @ 5:50 pm

The latest WebAIM Million report shows that detectable homepage accessibility errors increased over the past year. This article considers what those results may reveal about the organizational and societal forces that continue to deprioritize accessibility, and challenges us to imagine a world where inaccessibility is no longer tolerated.

Ask AIMee: An accessible accessibility-focused AI chatbot

31 March 2026 @ 4:49 pm

We’re happy to introduce AIMee – an easy-to-use, AI-powered conversational chatbot focused on accessibility. AIMee has been designed to be highly accessible to users with disabilities. Ask her accessibility questions to get quick answers and guidance. The name “AIMee” plays off of the “AIM” (Accessibility In Mind) from “WebAIM” and also “AI”. Here are some […]

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