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.

Calculating number of patches, patch sizes, and probability from epiphy::sadie output in R

5 December 2025 @ 4:33 am

I'm using the epiphy package output (object sadie_d1) to investigate spatial patterns of diseased plants. The summary(sadie_d1) returns clustering indices and permutation results, but it does not provide: patch sizes number of patches p values for indices of clustering for patches and gaps. This the output I have: Call: sadie.data.frame(data = d1[, c("x", "y", "infected_plants")], nperm = 999, threads = 2) First 6 rows of clustering indices: x y i cost_flows idx_P idx_LMX prob 1 1 1 1 -1.984876 -1.1957035 NA NA 2 1 2 3 -1.368189 -1.1349948 NA NA 3 1 3 4 1.000000 0.8133815 NA NA 4 1 4 5 1.000000 0.7113903 NA NA 5 1 5 2 -1.045661 -0.6927521 NA NA 6 1 6 5 1.000000 0.6742557 NA NA Summary indices:

What replaces the deprecated page.type method in playwright?

5 December 2025 @ 4:30 am

The deprecated page.type(selector, text, options) method has been replaced by page.keyboard.type(text, options). In most cases, you'll want to use locator.fill when typing, but sometimes this doesn't work and you need to manually send text directly into the page. For these edge cases, page.keyboard.type is not deprecated as of December 2025 and can be used safely. TypeScript: await this.page.keyboard.type('Hello, Playwright!'); Java: page.keyboard().type("970-867-5309"); Python: page.keyboard.type("Goodbye, Playwright!")

How to detect Spark application failure in SparkListener when no jobs are executed?

5 December 2025 @ 4:28 am

I have a class that extends SparkListener and has access to SparkContext. I'm wondering if there is any way to check in onApplicationEnd whether the Spark application stopped because of an error or exception in the logic, or if the application simply completed all its processing. I'm looking for a solution that doesn't require any changes to the Spark job code. Context: I'm one of the committers for OpenLineage. Its integration for Spark uses OpenLineageSparkListener, which implements the following methods: onApplicationStart, onApplicationEnd, onJobStart, onJobEnd. Based on the information from the objects in these methods and some context, we emit OpenLineage messages. The problem is that while jobs have a success/failure status, the application itself doesn't. For

WooCommerce How to Display Stripe Based on PostCode

5 December 2025 @ 4:20 am

In WordPress 6.9 version and WooCommerce version 10.3.6, I want to display the Stripe based on the shipping zone. Shipping zone 1 consists of Post code 3000 Shipping zone 2 consists of Post code 4000. ex: Post Code 3000 should display Stripe. Post Code 4000 or any other postcodes should hide Stripe. Currently, I am using woocommerce_available_payment_gateways webhook to display. add_filter('woocommerce_available_payment_gateways', 'payment_gateways_based_on_chosen_shipping_method'); function payment_gateways_based_on_chosen_shipping_method($available_gateways) { $shouldReturnAll = true; if( is_checkout() && ! is_wc_endpoint_url() && WC()->cart ) { $shouldReturnAll = false; } if($shouldReturnAll){ return $available_gateways; } $chosen_shipping_methods = (array) WC()->session->get('chosen_shipping_methods'); $insideSelectiveDe

sudo ubuntu-drivers autoinstall fails due to missing dependencies for nvidia drivers

5 December 2025 @ 4:20 am

Unfortunately, I recently broke my installation of NVIDIA drivers and so I had been purging them for reinstallation. However, after purging, running sudo ubuntu-drivers autoinstall raises an error about missing dependencies. After installing the listed dependency, the same error still shows up. More explicitly, the process for purging and reinstalling nvidia packages was as follows: sudo apt remove --purge nvidia-* cuda-* libnvidia-* sudo apt autoremove sudo apt autoclean reboot sudo ubuntu-drivers autoinstall The final step yielded the error Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: linux-modules-nvidia-580-open-6.

For loop skipping the last index in each row of my 2D list

5 December 2025 @ 4:01 am

Basically what i'm trying to do is loop through the whole list and have each "-" symbol be replaced with a number that indicates the number of "#" symbols next to them similar to minesweeper with this being the code i'm using to perform the horizontal check. It sort of works but for some reason it skips the last index in a row (the far right side) and I can't figure out what i'm doing wrong with it. At first I thought it might be the -1 I added to the second for loop but I get an error saying it's out of range when I do. I also tried seeing if it might have had something to do with the conditional statement to skip over the hash symbols but I was still having the same issue. board = [["-", "#", "-"], ["#", "#", "-"], ["-", "-", "#"]] for row in range(0, len(board)): for col in range(0, len(board[

Forcing A Web Page To Reload From The Server When Accessed

5 December 2025 @ 3:53 am

On my website, morikoboshi.com, I regularly update many of the pages. On certain pages, I'd like them to load from the server each time, not from the cache. I'm looking for the new content, not the previous content, to be loaded each time a page is accessed. Would the following code be an effective way to do this? <meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Expires" content="0"> Any advice would be much appreciated.

How to Generate a Zip with password in flutter | dart

5 December 2025 @ 3:43 am

Which package dependency is best for generating zip file protected with password in flutter (dependency site: pub.dev, file: pub.yaml). I used archive, flutter_archive, native_zip but all of them does not supporting the password protected zip file generation. They only give zip file and making it accessible by anyone.

MATLAB scatteredInterpolant: Why are input points not returned exactly (Approximating vs. Exact)?

5 December 2025 @ 3:28 am

I have a math question, not really an antenna or electronics question, though knowing a little about antenna arrays might help in thinking about the question. Mainly that antenna arrays are often designed to focus energy in a particular direction, but they are not perfect and have lower levels of energy which spread throughout a sphere or hemisphere. The Goal: I am interpolating a set of 106 2D Radome Loss Factor (RLF) maps to 19,440 RLF maps at new beam pointing directions. This is essentially scattered data interpolation using the (Theta, Phi) look angles as the independent variables (X, Y), and the RLF map values as the dependent variable (Z). I can increase the 106 directions to 212 because the results are symmetrical over the "center axis." This creates a dense output (360 Phi directions x 54 Theta directions). The Problem (Lack of Exactness): If I query the interpolant

long wait of BrowserContext.new_page

5 December 2025 @ 3:25 am

After running the test on playwright+ pytest, the browser opens immediately, but then the page is blank for 18-25 seconds. Based on the traces, I realized that the entire time was spent processing the BrowserContext.new_page which is base method of PW. What could be wrong?enter image description here

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.