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 can I define and reference variables in flake.nix inputs?

19 March 2026 @ 7:13 pm

Consider a flake used in a home-manager configuration where I specify a release version (25.11) three times: { description = "Home Manager configuration"; inputs = { # Specify the sources of Nixpkgs and Home Manager . nixpkgs = { url = "github:nixos/nixpkgs/nixos-25.11"; # first time }; home-manager = { url = "github:nix-community/home-manager/release-25.11"; # second time inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = { nixpkgs, home-manager, ... }: let system = builtins.currentSystem; pkgs = nixpkgs.legacyPackages.${system}; in { homeConfigurations = let user = builtins.getEnv "USER"; homedir = builtins.getEnv "HOME"; release = "25.11"; # third time in { ${user} = home-manager.lib.homeManagerConfiguration { inh

How to configure/debug Python chat application on a production Ubuntu system

19 March 2026 @ 7:12 pm

I have developed an application using Python and Django. As part of a recent update I have added a chat window. This all worked fine on my development system (Windows 11 using runserver) using both InMemoryChannelLayer and RedisChannelLayer. I am now trying to get a test production server configured correctly. The production environment is Ubuntu running under apache2. So far I have installed: channels, daphne, django-redis, and redis-server. I have added this configuration to /etc/systemd/system/daphne.socket [Unit] Description=daphne socket [Socket] ListenStream=/run/daphne.sock [Install] WantedBy=sockets.target I have added this configuration to /etc/systemd/system/daphne.service [Unit] Description=daphne daemon Requires=daphne.socket After=network.target [Service] Type=simple User=root WorkingDirectory=/home/csrmedical/CSRMedical/medical ExecStar

Editing SQL view to include description

19 March 2026 @ 7:12 pm

I have created the following view (below) now I need to edit it to include showing the WOTEMPLATEID as the DESCRIPTION: SELECT WOTEMPLATEID, COUNT(AR) AS Armondale, COUNT(CB) AS [Central Business District], COUNT(DL) AS [Dayton Lane], COUNT(EE) AS [East End], COUNT(GV) AS [German Village], COUNT(EP) AS [Enterprise Park], COUNT(HP) AS [Highland Park], COUNT(JEF) AS Jefferson, COUNT(LWALD) AS Lindenwald, COUNT(MIL) AS Milikin, COUNT(NL) AS [New London], COUNT(NE) AS [North End], COUNT(PH) AS [Prospect Hill], COUNT(RV) AS Riverview, COUNT(ROSV) AS Rossville, COUNT(TPGH) AS [Taft Place/Governors Hill], COUNT(WASH) AS Washington FROM (SELECT WORKORDERID, WOTEMPLATEID, CASE WHEN Mappage = 'Armondale' THEN Mappage END AS AR, CASE WHEN Mappage = 'Central Business District' THEN Mappage END AS CB, CASE WHEN Mappage = 'Dayton Lane' THEN Mappage END A

Visual Studio Git, pull from remote origin?

19 March 2026 @ 6:55 pm

I'm using Git with Visual Studio (2026). In VS I clone a branch from our DevOps. Let's call this branch "A". Then from branch "A" I make branch "B". So far so good. Any remote changes to remote origin/A I would like merged into my branch "B". So I went to "Git Changes", clicked the ellipses, selected "Pull From", but the only option is "origin". In this case I assume "origin" is remote/A (which wouldn't exist until I first push)? I'd like to pull from the remote/A. How do I do this? I know I can do the following, but it's tedious: Click the ellipses in Git changes Choose "Manage Branches" Expand "remotes/origin" Right click on the remote branch and "Fetch" Right click on the remote branch again and choose the option to merge into branch "B" AI

Counting Binary Palindromic Numbers

19 March 2026 @ 6:53 pm

I'm trying to solve the Leet Code question #3677 (Count Binary Palindromic Numbers) in javascript. The algorithm works correctly, but I keep getting a 'Time Limit Exceeded' error when I submit. I've tried to optimize it, but doesn't work. My current approach compares the first and last bits of every number up to n, but checking every value bit-by-bit seems to be too slow. So, is there a way to optimize? Here's the code: var countBinaryPalindromes = function(n) { if (n === 0) return 1; else if (n === 1) return 2; let i, j, amount, numberOfDigits, firstDigit, lastDigit, palindrome; i = 1; amount = 1; while (i <= n) { j = 0; numberOfDigits = Math.floor(Math.log2(i)) + 1; lastDigit = 1 << (numberOfDigits - 1); palindrome = true; while

error: "EldersWidget" requires a provisioning profile with the App Groups feature. Select a provisioning profile in the Signing & Capabilities editor

19 March 2026 @ 6:50 pm

I am new to iOS application code building and archiving. When I try to archive the project using the Xcode@5 task in my Azure DevOps YAML pipeline, I keep getting the same error (shared below). I have already uploaded the required certificates and two provisioning profiles—one for the main Elder app and one for the Elder Widget extension. I verified that the provisioning profiles and the .p12 certificate are valid, but I still encounter the error repeatedly. I am sharing my YAML file and the error logs below. Can someone please help me understand what is causing this issue and how to fix it? trigger: - main pool: vmImage: 'macOS-latest' # Consider pinning to macOS-15 for consistency variables: - group: Weatherzone-iOS - name: scheme value: 'Elders' - name: workspace value: 'mobile-app-eldersweather-ios/Elders.xcworkspace' - name: configuration value: 'Release' - name: exportPath value: 'iOS-ipa' - name: artifactName value: 'ios_build' steps: - t

What is the !! operator after a parameter name in C#?

19 March 2026 @ 6:48 pm

In the .NET Runtime Source Code, on this line, we will see: public override string Get( string value!! ) { if ( value.Length == 0 ) { return string.Empty; } // ... } The value parameter has two exclamation marks after it. At first, I thought this may be some C# language feature that I missed related to nullability annotations, until I realized, this is not even valid C# code, and is still compiled in the .NET Runtime. The !! does not make sense for Visual Studio. I'm using the latest C# language features and does not compile: Error It is definitely

Why does 'white dot' badge sometimes appear on the taskbar icon?

19 March 2026 @ 5:49 pm

Windows 11: VS Code and extensions always kept updated. I generally keep the taskbar hidden, but when it is revealed, VS Code's taskbar icon sometimes displays a white dot, as shown in the attached image. I can't reproduce it on demand - does anyone know what might cause it? The badge persists until the entire PC is restarted—no action within VS Code clears it (closing the application, restarting VS Code, etc.). Windows 11 VS Code taskbar icon with white dot

Adapt table size to window [duplicate]

19 March 2026 @ 3:37 pm

I'm new in Pyqt and triing to do something simple. I have a table in my window where I color some cells. Everything works but I struggle to find a way to adapt the table to the size of the window. What I want is to have all the cells always visible with no scrollbar and let them expand or reduce depending of the space the table has because the point of what I want to do is to have an overview of all the cells. Below is a sample of the code I use : class ProductsTable(QTableWidget): def __init__(self, table_rows, table_columns): super().__init__() self.setDragEnabled(True) self.setDragDropMode(QtWidgets.QAbstractItemView.DragDrop) self.setAcceptDrops(True) self.setRowCount(table_rows) self.setColumnCount(table_columns) self.viewport().installEventFilter(self) self.controllers = None self.verticalScrollBar().setVisible(False) self.horizontalScrollBar().setVisible(Fal

Java this Keyword used to call other Constructors

19 March 2026 @ 3:05 pm

In class, our teacher showed us this: The third is a way to call alternate constructors from within a constructor. Use this to call alternate constructors. When you have multiple constructors for a single class, you can use this(arg0, arg1, ...) to call another constructor of your choosing, provided you do so in the first line of your constructor. class Foo { public Foo() { this("Some default value for bar"); // Additional code here will be executed // after the other constructor is done. } public Foo(String bar) { // Do something with bar } // ... } However, we didn't get a chance to talk about why one would do this before class ended. I am trying to prepare for Friday lecture, but am not sure I see the need for implementing constructors this way. I suppose that constructor

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

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

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

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.