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.

Chainlit triggers header_auth_callback before OAuth and shows error UI when header auth fails

12 February 2026 @ 9:00 am

I am implementing a Chainlit application that needs to support two authentication methods depending on how users access the app. Use Cases Microsoft Teams Tab App Users are automatically authenticated by Teams I use header_auth_callback to extract user identity from request headers This works correctly inside Teams Web Browser Access Users authenticate using OAuth SSO Implemented using oauth_callback Current Behavior When both authentication callbacks are defined: Chainlit always triggers header_auth_callback first When accessing from a browser, Teams headers are not present header_auth_callback fails and Chainlit displays an authentication error UI However

Custom .NET file logger does not rotate file after reaching max file size limit

12 February 2026 @ 8:49 am

I have written a custom logging DLL in .NET that writes logs to a specific file path. When I provide a file path, the logger successfully creates the file and writes logs into it. However, I also implemented a feature to rotate the log file when it exceeds a certain size (for example 1 MB). The expected behavior is: - If the file size exceeds 1 MB, - A new file should be created (e.g. log_1.txt, log_2.txt), - Logging should continue in the new file. Here is the interesting part: • If I do NOT specify a custom file path, and let the logger write to the application's default output directory (e.g. bin/Debug), log rotation works perfectly. The file splits correctly into 1 MB chunks. However, if I provide a custom file path (for example: D:\Logs\app.log), logging works, but rotation does NOT happen. Even after exceeding the size limit, logging continues in the same file. Here is a simplified version of my logic:

PHPMailer SMTP Error: Failed to connect to SMTP server (0)

12 February 2026 @ 8:24 am

I am trying to send an email via gmail app password using current version of PHPMailer library in Core PHP for a contact form. but I keep receiving this following error: 2026-02-12 06:34:55 SMTP ERROR: Failed to connect to server: (0) SMTP Error: Could not connect to SMTP host. Its working on localhost but doesn't work on server (Server name is Webuzo). $mail = new PHPMailer(true); $mail->isSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true; $mail->Username = '[email protected]'; // gmail which i used to create app pass $mail->Password = 'xxxxxxxxxxxxxxxx'; // gmail App Password $mail->SMTPSecure = 'ssl'; $mail->Port = 465; $mail->SMTPDebug = 2; $mail->setFrom('[email protected]', 'Contact'); $mail->addAddress('[email protected]'); $mail->isHTML(true); $mail->Subject = 'Enquiry from Rodevra'; $mail-&g

Union vs (Distinct + Union All)

12 February 2026 @ 8:12 am

I am doing Union All in multiple sub query and then on the final result doing distinct of whole record. Since data is huge, is this safe in terms of performance? Eg: select distinct idn from ( sq1 union all sq2 union all sq3 )

Nested if vs. separate if statements in Java: which is better practice? [closed]

12 February 2026 @ 8:11 am

I’m trying to decide between different ways of writing conditional checks in Java. All of them technically produce the same output for certain values, but I want to follow best practices for readability and maintainability. Here are the approaches: Separate if statements (low to high): if (temperature > 50) System.out.println("Alarm active!"); if (temperature > 80) System.out.println("HIGH LEVEL ALARM!"); Nested if statements: if (temperature > 50) { System.out.println("Alarm active!"); if (temperature > 80) { System.out.println("HIGH LEVEL ALARM!"); } } Separate if statements (high to low): if (temperature > 80) System.out.println("HIGH LEVEL ALARM!"); if (temperature > 50) System.out.println("Alarm active!"); Obser

UIMA Ruta how to add negative condition

12 February 2026 @ 7:55 am

Solution: (N & MorphologicalFeatures.case =="nom" & Token{-PARTOF(xx.HASARTICLE)}) I have to say I really don't understand why I am getting downvotes -- maybe the community is the reason why stackoverflow is used less and less. QUESTION: I am working in UIMA Ruta and I want to annotated nouns only if they do not have a determiner. I am thinking of something like this (I do Mark the nouns beforehand) (N & MorphologicalFeatures.case == "nom" & -PARTOF(xx.NULLARTIKEL) But I get this syntax error Mismatched Input: Expecting "SEMI" but found ")". - Mismatched Input: Expecting "RPAREN" but found "(". - Syntax error: - I also tried (N & MorphologicalFeatures.case == "nom" ) W*? V {-PARTOF(ConstructsA1.HASARTICLE), -> CREATE(type.annotation.Construct,1,1,"constructID"=xx, "span"=t

Same Dockerfile, different docker image [closed]

12 February 2026 @ 7:37 am

I have docker files for sample AdventureWorksLT datatbase docker image (MSSQL and Postgres): https://github.com/openentity/adventureworksltdb If I build Dockerfile locally via Docker Desktop for mssql2022 using command line: docker build . -t adventureworkslt:mssql2022 The built image size is 2.26GB; If I build Dockerfile via GitHub action: https://github.com/openentity/adventureworksltdb/actions/workflows/docker-publish.yml and pull the image from GitHub packages: docker pull ghcr.io/openentity/adventureworksltdb:mssql2022 the image size is only 1.46MB, apparently not runnable: enter image description here

What is the difference between 'Map.entry(k, v)' and 'AbstractMap.SimpleImmutableEntry::new'?

12 February 2026 @ 4:09 am

What is the difference between Map::entry and AbstractMap.SimpleImmutableEntry::new? I tried to do research, and I really couldn't find much. It seems like Map::entry is a factory method, while AbstractMap.SimpleImmutableEntry is a class, but I don't really know the logic behind it or anything. While this question sounds like something that would have already been asked, I surprisingly couldn't find anything. If I just failed to find it, please let me know, and I will take down this question.

Removing duplicates in a sequence

12 February 2026 @ 2:25 am

I have recently investigated an audit table that had a wee bit of a bug with events that led to its data population, which I identified and fixed. Now there is the issue of past data that has duplicate rows that I'd like to clean up. I can remove duplicate rows easily enough using a CTE and row number, but that removes all duplicates, where I ideally only want to remove duplicates appearing in series. For example: This works as expected with the CTE and row number: 1, 2, 2, 2, 3, 4 => 1, 2, 3, 4 1, 2, 2, 2, 3, 2, 4 => What I get: 1, 2, 3, 4; what I would ideally want: 1, 2, 3, 2, 4 The CTE approach will remove all duplicates, so above it would remove the clearly duplicated "2" instances between 1 & 3, but would also remove the "2" instance between 3 & 4. Example Statement: WITH CTE AS( SELECT *, RowNum = ROW_NUMBER()OVER(PARTITION BY DebtId, AgreementId ORDE

Row hide/Show in CBCGPGrid [closed]

11 February 2026 @ 9:55 am

I am working with CBCGPGridCtrl(BCGControlBar Pro grid). I want to hide and show a row dynamically. In previously the from in VsFlex now I covert to BCGPGrid In VsFlex it's use Setrowhidden () for hide and show So is any replacement for that function. So I can use that function or method I stuck from last 3 day In my there is two grid on the basis list the following row is hide and show

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.