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.

Join two date tables (hive)

12 December 2025 @ 1:49 pm

I have two tables that I need to join together and i'm possibly overthinking the issue. Baseline table has a entry for each month. In the actual table most applications have 12 monthly values, but there are app id's that do not have activity for all twelve periods. When I join on the appid & date, i'm not returning 12 records. Ideal scenario is a record by app id for each month with the baseline value and the actual volume. When there is no actual volume, return a null or zero.

Converting lambda-expression to named-method

12 December 2025 @ 1:45 pm

Following is part of the execution sequence when a middleware gets configured in ASP.NET Core - // my code app.Use(some middleware); // class UseExtensions / namespace Microsoft.AspNetCore.Builder public static IApplicationBuilder Use(this IApplicationBuilder app, Func<HttpContext, RequestDelegate, Task> middleware) { return app.Use(next => context => middleware(context, next)); } // class WebApplication / namespace Microsoft.AspNetCore.Builder public IApplicationBuilder Use(Func<RequestDelegate, RequestDelegate> middleware) { ApplicationBuilder.Use(middleware); return this; } I was trying to understand how the lambda-expression - next => context => middleware(context, next) (used as parameter in the second method above) equivalents to - Func<RequestDelega

Child widgets not shown correctly if parent Frame is gridded later

12 December 2025 @ 1:38 pm

I have an application that divides the main window in two: Left: a canvas, where a map will be displayed Right: a frame, where several other frames will share space and one of them will be shown with tkraise() enter image description here In the previous screenshot, the data frame can be seen on the right side of the window, with information about a vehicle, and a vertical scrollbar to accommodate all the possible vehicles and people that share the same coordinates as the selected vehicle. If I click on a person's name, the right frame changes (by means of tkraise()) and we can see this: enter image description here I can cycle through the list of vehicles and people, clicking on Next or Previous, and I can also see person and vehicle information by clicking on the color

DAX Minimum of a count within a Group

12 December 2025 @ 1:17 pm

I have a dataset with dates and hours and a count of the number of events within each hour. I want a measure to take the minimum value of the count within each hour. data So the min count by hour column at hour 0 in the above example would show 1 and at hour 1 it would show 2 etc. I have tried the following DAX but it just shows the same value as the count. Min count by hour = var _table = SUMMARIZE('Arrivals Predictions', 'Arrivals Predictions'[Hour], "count", COUNT('Arrivals Predictions'[AE_AttendNo])) return MINX(_table, [count]) Thanks in advance

Swift iOS 26 Tab Bar how to remove bottom spacing

12 December 2025 @ 1:12 pm

I am trying to remove the spacing under the iOS 26 Liquid Glass tab bar. I want the to remove it or align the Liquid Glass tab bar to bottom. It is the yellow part under the tab items. It looks good on devices before iOS 26. But with Liquid Glass design it gets to much spacing. enter image description here I have tried but I can't find any options in storyboard. Is it possible to do this in storyboard or by code?

Im a beginner learner and id like some feedback on this really simple program calculating an employees pay

12 December 2025 @ 1:10 pm

hours = input("Enter hours: ") try: hours = float(hours) except: print('Please enter a valid number') quit() rate = input("Enter rate: ") try: rate = float(rate) except: print('Please enter a valid number') quit() if hours > 40 : overtime = hours - 40 overpay = overtime * (rate*1.5) + (40*rate) print("Pay: " + str(overpay)) else : pay = hours * rate print("Pay: " + str(pay)) I had to make a program for the following exercises: Exercise 1: Rewrite your pay computation to give the employee 1.5 times the hourly rate for hours worked above 40 hours. 2: Rewrite your pay program using try and except so that your program handles non-numeric input gracefully by printing a message and exiting the program Im a complete beginner and i want to learn python. This code works but i feel like there could be a much easier way to do this. Im not sure but i feel like th

Postgres 23505 duplicate key exception in EF Core AddOrUpdate (race condition on initial insert)

12 December 2025 @ 1:05 pm

I am encountering a duplicate key value violates unique constraint error in my ASP.NET Core application, and while I understand why it happens, I am unsure about the best practice to handle it using EF Core and PostgreSQL (Npgsql). I have a high-frequency endpoint that receives GPS coordinates from mobile apps. [HttpPost("{courierId:guid}/locations")] public async Task<IActionResult> ReceiveLocations(Guid courierId, [FromBody] LocationsDto locationsDto) { I store the latest location in a table called LastLocations. The Primary Key is CourierId, so there is a strict 1-to-1 relationship (one record per courier). The logic is simple: if the record exists, update it; otherwise, insert it. Here is my repository method: public async Task AddOrUpdate(LastLocationEntity lastLocationEntity) { var existingCourierLocation = await applicationDbContext.LastLocations

manim package installation problem from directly 3b1b GitHub

12 December 2025 @ 1:01 pm

I want to directly download the manim package from https://github.com/3b1b/manim using git. The guide recommends running example_scene.py, and I successfully run it. Nevertheless, it turns to be syntax error with full page, which indicates that the class wasn't imported correctly. a screenshot showing the part of the code How to solve it? Please give specific steps, and do not abstractly point out what the problem is, so I can follow it.

How to `FetchContent_...` with legacy packages?

12 December 2025 @ 12:59 pm

I must build some legacy code using CMake and gl2ps and run into problems. First some setup details: Windows 10, Visual Studio 2022, CMake v4.0.2 Gitlab provides the gl2ps package. Build is with CMake but there are no install CMake hooks. The CMakeLists.txt file states: cmake_minimum_required(VERSION 2.8 FATAL_ERROR) I can build the gl2ps package without problems. With intall the following files are published: .../gl2ps +-- bin/gl2ps.dll +-- include/gl2ps.h +-- lib/gl2ps.lib `-- share/doc/gl2ps/ +-- gl2psTest.c +-- gl2psTestSimple.c `-- ... No CMake hooks are published. I am considering/trying two options Use include(FetchContent) and build gl2ps with the legacy code project. Create FindGL2PS.cmake Due to no experience with creating Find*.cmake this is

React Native and expo for web

12 December 2025 @ 12:39 pm

I wanted to ask you what you would suggest for this situation. I am developing a mobile app for a client with React Native and Expo. In addition, the client has just asked us if they can also have the same app, but on the web. My question is whether the development done so far is suitable for the web or whether you recommend doing it separately with React Common. The app is for internal use by users of a neighbourhood association.

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.