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.

Conditionally running tasks in Airflow

24 April 2026 @ 9:19 pm

I'm trying to write a DAG that conditionally executes another task. The simplified version of what I'm working with is this: to_be_triggered = EmptyOperator(task_id="to_be_triggered") @task.branch() def trigger_dag(**kwargs): config = kwargs.get("dag_run_config") if config.get("run_trigger") is True: return ["to_be_triggered"] return None with DAG("example") as dag: dag_run_config = { "run_trigger": True } t0 = trigger_dag(dag_run_config=dag_run_config) t1 = EmptyOperator(task_id="end", trigger_rule=TriggerRule.ONE_SUCCESS) t0 >> t1 So I want to conditionally run to_be_triggered if the run_trigger variable in the config is True. I am unable to do this because branch_task_ids must contain only valid task_ids, and for some reason, to_be_triggered is invalid: Following

What does the future holds for programmers

24 April 2026 @ 8:59 pm

Good day everyone, I'm honestly feeling a bit lost right now and could really use some advice about my career, my growth, and my place in programming. This is my background: I work with an international organization, but my role is basic mainly reviewing pictures and vetting work done by field engineers through tickets. I wanted more, so I've been learning Python for a while now. I pushed my self hard and started growing in pythong. Recently, I got an opportunity to move into the tools team. I spoke with the manager, passed an internal interview, and was given a chance at the Tools and Automation Engineer role. I was really excited it felt like things were finally moving forward. There's also a big project to automate the manual, repetitive reporting everyone struggles with, and I was eager to be part of it. More recently, our R&D team from the headquarters introduced a powerful AI solution. Honestly, it's astonishing. Now Solutions that would take exp

The parameters don't match the method signature for SpreadsheetApp.Range.setBorder

24 April 2026 @ 8:30 pm

I am getting a failed execution on my script when trying to set the border of a range. The exception is Exception: The parameters (null,null,null,null,(class),(class),String,number) don't match the method signature for SpreadsheetApp.Range.setBorder. My code is: Logger.log("Changing color of range " + timelineRange.getA1Notation() + " to " + color); timelineRange.setBorder(null,null,null,null,true,false,color,SpreadsheetApp.BorderStyle.SOLID); The log output is "Changing color of range C33:N33 to #b7e1cd" so we can see that timelineRange and color are both ok as variables. The only issue I can potentially see is that it's not recognizing true and false as Boolean, because the error says "(class)" where for color it says String and for the BorderStyle it says Number. I've also tried creating explicit variables bT = true; and bF = false; but get the s

Plymouth BGRT theme with console logs

24 April 2026 @ 7:51 pm

I saw some beautiful splash screens and decided to make my own. Theme planned features: - different behavior on boot an shutdown modes - displaying vendor's logo - displaying boot logs (with custom font) but, i could not find the way i can implement this. script does not support bgrt, and two-step seems to not support displaying logs. have someone tried do same thing? how did you succeeded?

Why doesn’t copy-pasting from a terminal preserve the original bytes?

24 April 2026 @ 6:50 pm

I’m working on a simple encryption/decryption program (C++), where I encrypt a string and then decrypt it back. If I write the encrypted data directly to a file using binary mode and then read it back, everything works correctly. However, if I print the encrypted data to the terminal, copy-paste that output into a .txt file, and then try to decrypt it, I get incorrect results (wrong characters for space, comma and exclamation mark). My understanding is that the encrypted data is just raw bytes (0–255), not valid text. So I suspect the issue is related to how the terminal handles encoding (e.g. UTF-8) when displaying and copying the data. So what exactly happens during terminal output and copy-paste that causes this corruption? Edit: to clarify the issue, here is a concrete example. Original text: Dobber dan, danes sem zasspana! If I encrypt it, write it to a file (binary), and then decrypt it, I get: Dobber dan, d

Fastest rolling window method for datetime

24 April 2026 @ 5:46 pm

I'm currently trying to apply a bit of a convoluted function to a rolling window of 30 minutes on time data within a loop, and I'm finding that it's taking too long to be reasonable. I've included a minimal example below that's currently coming in at 94 ms, which with the actual size of the dataset and the loop is unfortunately not feasible. import pandas as pd import numpy as np from datetime import datetime,timedelta import statsmodels.tsa.api as smt def instrument_variance(ts): #Lernschow et al 2000 ts_acov = smt.acovf(ts)[:3] #Find first few lags of autocovariance M_0 = ts_acov[0] #Get autocovariance at lag 0 M_fit = np.polyfit(range(3),ts_acov,1) #Get linear fit of the first few lags M_lim0 = M_fit[0] #Get limit as fit goes to 0 var_inst = M_0-M_lim0 #Get error variance from M11(0)-lim>0(M11) return var_inst start = datetime.now() base = datetime.today() date_list = [base + timedelta(minutes=x) for x in range(100)] df = pd.Data

How to localize core data content?

24 April 2026 @ 4:06 pm

I have a core database where an entity has a String type attribute. I wonder how I can localize the content of this attribute to have it translated in the local language. I red many tutorials on string catalogs like this Apple doc but none seem to mention if it can be and how to apply it to core data content. Any advice ?

Why Postgres stores primary key indexes in the pg_default tablespace?

24 April 2026 @ 3:58 pm

Consider the following table, created on a specific tablespace: CREATE TABLE example ( example_id int4 NOT NULL, name VARCHAR(12) NOT NULL, CONSTRAINT example_pkey PRIMARY KEY (example_id) ) TABLESPACE tbspc01; Accessing pg_class and pg_tablespace one may verify the good outcome: SELECT c.relname, t.spcname FROM pg_class c JOIN pg_tablespace t ON c.reltablespace = t.oid WHERE c.relname LIKE '%example%'; This query returns this result: relname | spcname ---------+------------- example | chinook_spc (1 row) However, as the table grows in size, there will be a mismatch between the table size reported by pg_total_relation_size() and that reported by pg_tablespace_size(), the table being larger than the tablespace. T

A valid exception to "Never touch managed resources in the finalizer"?

24 April 2026 @ 3:07 pm

I've read in several places that one should never touch managed resources in the finalizer. Makes a lot of sense. But I am wondering about the assumptions that lie behind that advice. What if the managed resource I want to touch from my class finalizer is not allocated with operator new() but rather from something like ArrayPool<byte>.Shared.Rent? In that case, I am supposed to return it to the pool with the ArrayPool.Return function. I know I am supposed to ensure the object of my class is always disposed but the object in question here might be handed off to different threads. I cannot simply put a using statement in there or call Dispose() every time. I want to give it a finalizer to be sure the array is returned to the pool. Here is an example of what I am talking about. Does the advice "never touch managed resources from a finalizer" still apply here? public class CameraImage : ID

Javamelody and Spring cloud

24 April 2026 @ 12:00 pm

I'm currently using Javamelody with Spring boot 4.0.3 I wanted to add a refresh feature of my configuration properties (loaded from file and database). Using PropertySourceLocator, I'm fine but when calling actuator/refresh endpoint the datasource is refreshed causing an exception. Javamelody wraps/decorates the Datasource with a Proxy and Spring calls Bindable and now detect that the Proxy class is not an instance of the HikariDatasource There are some old issues on Javamelody tracker (2027/2018) about proxy. Am I missing something or not ? Update_1: here a sample build.gradle generated by spring initialzr. When POST to /actuator/refresh java.lang.IllegalArgumentException: 'existingValue' must be an instance of com.zaxxer.hikari.HikariDataSource at org.springframework.util.Assert.isTrue(Assert.java:136) ~[spring-core-7.0.7.jar:7.0.7] at org.springframework.boot.context.properties.bind.Bindable.withExistingValue(Bindable.java:

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

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

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

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.