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.

jinja2.exceptions.TemplateNotFound: Abi-10-100m-Back.html

5 February 2026 @ 1:26 pm

Trying to produce bar charts and then render it to webpage but facing the above error constantly. enter image description here below are all the necessary functions swimclub.py import os import hfpy_utils FOLDER="swimdata/" CHARTS="charts/" def read_swim_data(filename): #unpacks the filename into different variales and removes the .txt suffix swimmer, age, distance, stroke = filename.removesuffix(".txt").split("-") #gets the path, opens the file, reads the lines, and splits the first line into a list of times with open(FOLDER + filename) as file: lines = file.readlines() times=lines[0].strip().split(",") #print(times) time_in_hun=[] for f in times: if ":" in f: minutes, rest= f.split(":") seconds, hundredths= rest.split(

How to reproduce the exact cost from GCP billing dashboard

5 February 2026 @ 1:16 pm

I am trying to reproduce the numbers am seeing in the Billing reports .But my query below is failing to do this. I am retrieving data from billing exports . Please advise what is missing or how best to get the data behind the dashboard .I have tried [this dbt package for ingesting BQ related cost data][1] but still numbers are not matching SELECT DATE(_PARTITIONTIME) AS cost_date, project.id AS project_id, SUM(cost) AS net_cost FROM `dwingestion.log.gcp_billing_export_v1_019151_FACE6C_8473E1` WHERE service.description = 'BigQuery' AND project.id = 'my_project_id' AND sku.description LIKE 'Analysis%' AND DATE(_PARTITIONTIME) BETWEEN '2026-01-01' AND '2026-01-15' GROUP BY cost_date, project_id ORDER BY cost_date. ``` [1]: https://bqbooster.github.io/dbt-bigquery-monitoring/using-the-package

What should I use for secure my backend - Java spring boot?

5 February 2026 @ 1:14 pm

What's up guys? I'm building a scheduling app and thinking about using Spring Security + OAuth2 so I don't have to handle user credentials (email, password, etc.). Keycloak will handle that, so I won't be responsible for persisting the user. honestly, I don't have experience with OAuth2 or Keycloak, so I'm learning as I go. I'm in trouble now because, according to my business rules, I need a user entity so I can save its PK as an FK in other tables. What should I do? Should I forget about OAuth2 and handle users myself, or is there an option to make this work? I thought I could delegate registration/login to Keycloak and only save the name and email, which is all I need. Any hints?

How can I capture Waze traffic? [closed]

5 February 2026 @ 1:08 pm

For a class project, I had to choose an official app from the Play Store and perform a full analysis of it. The static analysis went fine, but when I got to the dynamic analysis part (nothing fancy, just analyzing the traffic with Burp Suite), I ran into a lot of trouble. First, I tried Genymotion, but it didn't work because Genymotion Desktop only has x86 images, and Waze only runs on ARM64. Then, I tried using my own phone, but that didn't work either. The traffic wasn't being intercepted correctly. I'm pretty sure it was because of SSL pinning. It captured other apps, but not Waze. I know there are workarounds, but they require rooting the device. Since it's my personal phone, that's not an option. Lastly, I tried the Android Studio emulator, but I'm fairly certain that it doesn't support bridged mode, which would allow me to set up a proxy for Burp. I'm also unsure if it has ARM images. If anyone has a solution for any of these issues or another way t

Modify numeric values with Perl one-liner

5 February 2026 @ 1:06 pm

I would like to use a Perl one-liner to modify numeric values in a text file. My data are stored in a text file: 0, 0, (1.263566e+02, -5.062154e+02) 0, 1, (1.069488e+02, -1.636887e+02) 0, 2, (-2.281294e-01, -7.787449e-01) 0, 3, (5.492424e+00, -4.145492e+01) 0, 4, (-7.961223e-01, 2.740912e+01) These are complex numbers with their respective i and j coordinates: i, j, (real, imag). I would like to modify the coordinates, to shift them from zero-based to one-based indexing. In other words I would like to add one to each i and each j. I can correctly capture the i and j, but I'm struggling to treat them as numbers not as strings. This is the one-liner I'm using: perl -p -i.bak -w -e 's/^(\d+), (\d+)/$1+1, $2+1/' complex.txt How do I tell Perl to treat $1 and $2 as number

How to show class method comments (docstrings?) from the implementation section in hover hints?

5 February 2026 @ 12:34 pm

I'd like to document the code I currently have to write as good as poosible. According to the lazarus documentation: The Lazarus IDE can display tooltip hints when mouseovering identifiers. From my understanding, by standard Lazarus takes the first comment associated with some identifier as the tooltip hint (Can either be behind it or above it). For classes, any comment needs to be made in the interface section, not the implementation section, because that's where the identifier first appears. (That's my main problem) For some reason however, even then for function identifiers I must comment what the function does above and not behind the declaration. For properties on the other hand, a comment behind the property declaration will get shown as hint. In my opinion, this behaviour heavily clutte

Are dynamic property tags in JS object literals possible?

5 February 2026 @ 12:26 pm

I'm building my first framework. I need to be able to generate a semi-dynamic object, to which end, I want to re-use a single variable that points to a unique-value-returning function. I have a JS object literal like this: let myObject = { [test] : "placeholder text 1", [test] : "lorem ipsum 2" }; The [test] bit refers to a function of this sort: const test = (function() { return String("morePlaceholderText" + getRandomInt() ) })(); function getRandomInt() { return Math.floor(Math.random() * 15); }; But if I console.log it after running this, I get only one of the properties: console.log(JSON.stringify(myObject)); {"morePlaceholderText7":"lorem ipsum 2"} Demo:

Map Services to anyRunning property

5 February 2026 @ 12:25 pm

What is the most concise way to map a Collection of JavaFX Services to a property "anyRunning" — true, if at least one of the services is running? import javafx.beans.binding.BooleanExpression; import javafx.concurrent.Service; import java.util.Collection; // ... BooleanExpression anyRunning(Collection<? extends Service> services) { // ... } Java 8.

How to apply numpy vectorization to a function with optional arguments?

5 February 2026 @ 12:09 pm

Suppose I have a function with the following signature: def f(x,**kwargs) Here, **kwargs are some optional arguments that may be passed to other functions called in the body of f. I want to apply numpy vectorization to f, but only to the first variable x. How can this be done? I am aware of the option excluded, but I do not see what index/indices I should specify, since I do not know the number of parameters that may be passed as **kwargs. I should be able to call the function like f(x,a), f(x,a,b), etc.

How to process subelements of array created by split?

5 February 2026 @ 12:06 pm

I am parsing output from the docker container ls --format json command and trying to process and format the content to keep only what I need. /usr/bin/docker container ls --format json | jq ". | select(.Labels | split(\",\") | index(\"com.docker.compose.project=$1\")) | { id: .ID, ports: .Ports | split(\",\"), labels: .Labels | split(\",\") }" | jq -cs This transforms the source returned by docker container ls (abridged): [ { "Command": "\"/docker-entrypoint.…\"", "CreatedAt": "2025-09-05 23:04:34 +0200 CEST", "ID": "4d3f1dbc7ddc", "Labels": "com.docker.compose.service=arc,org.opencontainers.image.version=22.04,com.docker.compose.container-number=1,com.docker.compose.project=dcm4che

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.