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.

MS Enterprise Website connector authentication

8 December 2025 @ 8:26 pm

I'm working on building a new intranet for our company using Umbraco as the CMS and we want a "universal" search so that we can get results from our intranet alongside documents and other info stored in MS graph. We are working on implementing the MS Enterprise Website On-prem connector to crawl our intranet, but have hit a road block with the authentication. We recently switched to Entra Id Oauth from Windows auth, which seemed like it would work great because the connector supported Oauth as well. The problem is that it uses App authentication but our site require a username so it fails the login process. Does anyone know of a way to either allow the App authentication to work with .NET Membersip, or is there a way that I can have the default Auth method be Oauth while only using Windows auth for the Connector?

How to use a separate classes (stubs) in vitest?

8 December 2025 @ 8:24 pm

I've migrated my angular 21 tests from jasmine to vitest. And for some of my tests I use separate helper classes (like Page object models). For example: export class SignUpPageObject { constructor(fakeVerificationSvc: IUserVerificationService) { TestBed.overrideProvider(UserVerificationService, { useValue: fakeVerificationSvc }); this.fixture = TestBed.createComponent(IlgSignUpForm); this.fixture.detectChanges(); this.component = this.fixture.componentInstance; this.loader = TestbedHarnessEnvironment.loader(this.fixture); this.docRootLoader = TestbedHarnessEnvironment.documentRootLoader(this.fixture); } get emailInput(): Promise<MatInputHarness> { return this.loader.getHarness(MatInputHarness.with({ label: "Email" })); } async getErrorDialog(): Promise<MatDialogHarness> { const dlgHarnesses = await this.docRootLoader.getAllHarnesses(MatDialogHarness.with({ selector: "#ilgError

Why does mysqli_num_rows() produce the error “expects parameter 1 to be mysqli_result?

8 December 2025 @ 8:23 pm

I checked the connection was successful, the database also exists. But the mysqli_query function apparently returns false. I've tried: Check table name: correct Check column name: correct Running query directly in phpMyAdmin: success Added mysqli_error($conn) for debugging

IIncrementalGenerator and AdditionalFiles

8 December 2025 @ 8:23 pm

I'm getting into IIncrementalGenerator Source Code Generation, but I keep getting weird behavior in Visual Studio. The Generators are working perfectly, but after building, most of my c# files that go through them as additional files end up as showing as plain text. I have to close VS and reopen. Even then it can take several attempts. I have gotten close by editing my MSBuild settings like this: <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>net8.0-windows</TargetFramework> <Nullable>enable</Nullable> <ImplicitUsings>enable</ImplicitUsings> <UseWPF>true</UseWPF> </PropertyGroup> <ItemGroup> <AdditionalFiles Include=".\**\*_cg.cs" /> <AdditionalFiles Include=".\**\*_cg.xaml" /> </ItemGroup> <ItemGroup> <Compile Include=".\**\*_cg.c

Tableau checkbox filters for multiple fields with 1,0 values

8 December 2025 @ 8:19 pm

I've been researching for hours and cannot seem to figure out if this is possible. I have a about 40 fields that have a 1 or 0 value. I want to have a filter for each field and the ability to select 1 or 0. Preferably a check box filter. If field 1 is filtered to 0, that would filter the field to show all records with a 0. If a user chooses field 2 and filters to 1, then that would filter results with field 1 having a 0 and filed 2 having a 1, so on and so forth. This would be utilized to allow the end user to update visualizations, counts etc. accordingly. Is this possible? on tableau 2025.1.2

Trying to subtract from IMPORTRANGE

8 December 2025 @ 8:14 pm

I would like the cell F4 to subtract from the corresponding F4 cell via IMPORTRANGE to get a week-over-week variance in item inventory. This is what I have so far, but this looks like it's just pulling data from my current spreadsheet and not subtracting, since it is not zero-ing out.. as the data on both sheets is currently the same. =MINUS(F5,IMPORTRANGE("doc link", "Liquor!F:F"))

ASP.NET Core Web API: LinkCollectionWrapper<T>.Values always null in JSON despite being populated

8 December 2025 @ 8:07 pm

I'm building a HATEOAS implementation in ASP.NET Core using a LinkCollectionWrapper<T> class that wraps a collection of entities and stores links. My classes look like this: public class Link { public string? Href { get; set; } public string? Method { get; set; } public string? Rel { get; set; } public Link() { } public Link(string href, string rel, string method) { Href = href; Rel = rel; Method = method; } } public class LinkResourceBase { public List<Link> Links { get; set; } = new List<Link>(); } public class LinkCollectionWrapper<T> : LinkResourceBase { public List<T> Values { get; set; } = new List<T>(); public LinkCollectionWrapper() { } public LinkCollectionWrapper(List<T> values) { Values = values; } } In my service, I populate a list of EmployeeDto objects (each with its own list of links) and wrap them like this: var col

SwiftUI WKWebview encounters javascript error on every function call after the first succeeds

8 December 2025 @ 8:06 pm

I'm working on a SwiftUI project that embeds a couple WKWebviews in a tabview and uses flatbuffers for serialization. I've just added the second webview which acts as sort of 'details' sheet, which should be much easier than the other that includes an entire codemirror editor, but it refuses to run the setNoteDetails function only after the first function call succeeds. I'm getting this error: JavaScript execution returned a result of an unsupported type I've tried wrapping the function in an iife, emitting an event in the function instead of calling a function attache to the window, and still I can't get the view to run the function successfully only after the first one runs successfully. Also, when I copy and paste the generated function string into the safari devtools, everything works as expected. I've even tried serializing everything as a base64

jXchange Endpoint for Changing Customer Email Address Associated to Netteller ID or Online Banking ID

8 December 2025 @ 8:05 pm

We are attempting to automate a process that will change customer's contact information in our core system. We are using the jXchange CustMod operation to change the customer's email addresses. However, our current manual process involves syncing the new primary email address on a customer profile with their assigned NetTeller ID or Online Banking user. So far, I've yet to find an endpoint/operation in the jXchange SOAP docs that will accomplish this. This is the screen we go to when adjusting their Email address on their NTID in SilverLake. screenshot Is there a method to automating this change that anybody is aware of?

Multiplayer programming advice for new game (C# & Mono)

8 December 2025 @ 8:05 pm

I am programming a tetris style game in mono and c# that I want to add multiplayer to. It will be both single player and multiplayer. The way I want it to work - I want dynamic lobbies (say 10 of them), each having spaces for up to 8 people. When someone joins a lobby, they will wait there until someone else joins. The game will then start a timer (10 seconds), and anyone can join while it is counting down. game starts, and that lobby can still be joined by SPECTATORS only, but thats it (up to 8, including existing players). I dont know if there is an api or library that would make this easier, or if steam has a way of helping, whether it could be done without a actual server(p2p), or ideally with a server. ANY suggestions/advice would be extremely helpful. Of course, I am shooting for best connection possible - traffic I imagine being sent would be keystrokes, and the position the piece ends up on the board, as well as some powerup attributes that will aff

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.