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 achieve the same effect as clearRect with fill?

23 January 2026 @ 6:17 pm

I have 2 canvases - 1 on top of the other, the top one overlaying some effects on the bottom one. If I want to clear what's on the top layer I can use clearRect and what's on the bottom canvas just shows through. But sometimes I need to achieve the same effect with a non-rectangular shape. Everywhere I look the info says that clearRect sets the pixels to transparent black. But it can't do. If I use fillStyle = "rgba(0 0 0 0)" it doesn't do anything. To be clear, in the real code I use beginPath(), lineTo() ... closePath(), fill() but the test below is just to illustrate the issue. What fillStyle do I use to achieve the same effect as clearRect? <!DOCTYPE html> <html> <body style="height:100%; display:block; overflow: hidden"> <canvas id="canv" style="width:100%; height:100%; position:absolute; z-index:1"></canvas> <canvas id="canv2" style="width:100%; h

AutoCad ObjectArx VB.Net sub-routine to Insert a Block Reference into ModelSpace is not working

23 January 2026 @ 6:13 pm

The following function is called as shown. The "CIRCUIT" Block exists. The returned Block Handle is a reasonable (4) digit Hex value and allows a move to new layer. The new Circuit does not appear on the page and when opened has no attributes. The actual "CIRCUIT" block has 29 attributes. It is Block gone when the DWG file is saved and reopened. 'Setup the Function Call Dim naInsPnt3D As New Point3d(0, 0, 0) 'set a location at the start of the polyline Dim sHandle As String = fInsertBlock("CIRCUIT", naInsPnt3D) 'go insert the new Circuit and return the new handle 'The Function Public Shared Function fInsertBlock(ByVal sBlockName As String, ByVal naInsPnt3D As Point3d) As String 'Block Name Is one of the custom blocks for PVcDes 'naInsPnt3D Is the location in ModelSpace to drop the block 'returns the block handle fInsertBlock = "

Flutter CarouselView.weighted empty space

23 January 2026 @ 6:07 pm

I am currently trying to replicate the look of the HorizontalCenteredHeroCarousel from native android jetpack compose. The problem that I am facing right now is, that when I scroll to the end of the flutter CarouselView.weighted (which is the recommended way to archive this), I get a dead space which would normally display another item. But since I am already at the end of the list it has nothing to display and leaves the space empty. Is there a way to resolve this? CarouselView.weighted( flexWeights: [5, 1, 1], enableSplash: false, itemSnapping: true, children: meal.images.map( (image) => Container( decoration: BoxDecoration( borderRadius: BorderRadius.circular(24), ), clipBehavior: Clip.antiAlias, child: _MealImage(image: image), ), ).toList(), ) How the ca

Pharmacode and ocr [closed]

23 January 2026 @ 6:03 pm

I need person make developed of any industrial camera to detect OCR,OCV and pharmacode and 21CFR I need person make developed of any industrial camera to detect OCR,OCV and pharmacode and 21CFR

Why is async code sometimes slower than synchronous code in Python / JavaScript?

23 January 2026 @ 6:00 pm

async / await is often described as a way to make applications faster or more scalable, especially for I/O-bound workloads. In theory this makes sense, but in real systems I’ve repeatedly observed cases where introducing async actually makes performance worse. For example, compared to a synchronous implementation, the async version can show higher CPU usage, lower throughput under load, and worse tail latency, even when there are no obvious blocking calls or mistakes like using time.sleep() or synchronous database drivers. This has happened in scenarios that are usually presented as good fits for async, such as web APIs handling many concurrent requests + background task processing or services that spend a lot of time waiting on external APIs. I’m trying to understand where the performance penalty comes from and how to reason about it before committing to an async design. Some specific points of confusion:

Howto execute ansible one host group at a time?

23 January 2026 @ 5:50 pm

I have a problem with Ansible 2.16.3(and can't perform upgrade to newer version in an easy way) I didn't expect to face. I have a playbook I need to execute on multiple host groups but only one host group(HG) at a time(dependencies between services). - Hosts in HG2(50 hosts) can be executed after all hosts in HG1(20) finished. - Hosts in HG3(600 hosts) can be executed after all hosts in HG2(50 hosts) finished. I have ANSIBLE_FORKS set to 300 (infra limit). It would be good keep it due to total number of hosts that must be handled. Problem: ANSIBLE_FORKS allows execution of HG1 and HG2 and part of HG3 in parallel to match total 300. Things explored: - keyword serial but see no option to limit to "one HG at a time up to limit ANSIBLE_FORKS". - --limit CLI parameter - doesn't seem to work. - keyword delegate - works for one host only - import_task but by the t

Django-axes seems to ignore ipware settings behind Nginx

23 January 2026 @ 5:50 pm

I'm struggling to set up my django-axes behind Nginx reverse proxy to take the HTTP_X_FORWARDED_FOR instead REMOTE_ADDR. I've tried all three variations as outlined here: https://django-axes.readthedocs.io/en/latest/4_configuration.html. I've tried setting the ipware fields in isolation as well as in combinations. Left-most and right-most also didn't make any difference., ip_address from Axes' attempts was always populated with REMOTE_ADDR. I'm 100% sure that request.META contains both HTTP_X_FORWARDED_FOR as well as REMOTE_ADDR. I checked this by inserting a debugging middleware in front of axes. My logs show that both values are valid and I can manipulate the IP logged by Axes by modifying REMOTE_ADDR in my middleware: class OverwriteRemoteAddrMiddleware: def __init__(self, get_response): self.get_response = get_response def __call__(self

How can I add a number only once, and not continually?

23 January 2026 @ 5:21 pm

I'm very new to coding, I'm creating a peggle style game and I want to make a score system that when I hit some balls, each ball has its respective score and those points are added to a general points, because it's round based and if I reach certain points in that round, I get an extra ball. Can someone help me? I would be very thankful - I don't know what to do. I need to say more things to post and I don't know how I can explain this in more detail; it looks like a very simple thing to do. void Update() { Ballcounter.text = Scriptholder.balls.ToString(); NewBall(); //if (ballcollision.roundpoints >= 750 && extraball = true) // { // Scriptholder.balls += 1; // extraball = false; // } } void NewBall() { if (Scriptholder.balls <= 2) { Ballcounter.color = Color.red; } else if (Scriptholder.balls >= 2) { Ballcounter.color = Color.green; } if (ballcollision.roundpoi

NamedEntityGraph with Graalvm

23 January 2026 @ 12:51 pm

Is it possible to use JPA named entity graphs with GraalVM? For example, I have an entity annotated with: @NamedEntityGraph(name = "user-all", attributeNodes = { @NamedAttributeNode("departments"), @NamedAttributeNode("dataAccessors"), @NamedAttributeNode("users"), }) that works fine when running with the JVM but produces java.lang.IllegalArgumentException: No EntityGraph with given name 'user-all' when attempting to run the application as a native executable.

Removing $null or Blanks from CSV Results [closed]

23 January 2026 @ 7:11 am

I have a CSV that contains this information: TEST1,TEST2,TEST3,TEST4 100,200,300,400 ,,, ,,, ,,, ,,, ,,, ,,, ,,, 101,202,303,404 If I run this script Tester Script It returns the following: Script Results It includes the $Null results from the empty rows, that only contain the , separators. If I use $TEST1 = $TESTCSV | Select-Object -ExpandProperty TEST1 For each header and then write host, this omits the $nulls and just returns: 100 101 instead of: 100 long gap 101

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

ThemeForest.net

VN:F [1.9.22_1171]
Rating: 7.0/10 (2 votes cast)

WordPress Themes, HTML Templates.

Interface.eyecon.ro

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

Interface elements for jQuery
Interface.eyecon.ro

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.