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 to output a row from Table B based on a value in a row for Table A for every value of table A (SQL in PHP)

15 February 2026 @ 3:24 pm

So I have a table with 2 columns, parent ID and course ID. there is also a table with several columns, the course table, which has course ID as a column. I can isolate the current parent ID based on the log in data. for every row in the first table matching the current parent ID, I want to output the relevant course data via the course ID associated. a parent ID can have many course IDs linked to it. I am programming in php linked to a html site, and my tables are in SQL. Im sorry if this isn't very clear, I am an A level CS student and this is my first time with any of these languages. <?php include 'pHeader.php'?> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>University</title> <style> .university-grid { display: table-column; flex-wrap: wrap;

How to setup next-auth 5 beta for Google?

15 February 2026 @ 3:08 pm

I started with a new Next project using version 16 and want to setup next-auth ( v5 beta 30 ) for Google. For the database I want to use my Supabase instance ( with the schema described here ) My .env file is following the required next-auth pattern AUTH_SECRET... AUTH_GOOGLE_ID=... AUTH_GOOGLE_SECRET=... AUTH_GITHUB_ID=... AUTH_GITHUB_SECRET=... SUPABASE_URL=... SUPABASE_SERVICE_ROLE_KEY=... I started with the auth.ts file in the root dir and passed my own sign in page to the pages field import { SupabaseAdapter } from "@auth/supabase-adapter"; import NextAuth from "next-auth"; import type { Provider } from "next-auth/providers"; import GoogleProvider from "next-auth/providers/google"; export const providers: Provider[] = [GoogleProvider]; export

How can I get my table to sort columns and keep the rows intact in egui?

15 February 2026 @ 3:05 pm

I am trying to build a Rust app with an egui interface that loads a JSON file, put it in a sortable table. It is a simple CRUD app that let you edit the JSON. I have 7 colums of which 5 are sortable and that works fine. Only the last two columns containing the edit button and delete button, doesn't change order with the other column, and stay in the same order as how it was loaded from JSON. What am I missing here? // Sort waypoints based on sort criteria if let Some(column_index) = self.sort_column { filtered_waypoints.sort_by(|a, b| { // Determine sorting direction let compare_result = match column_index { 0 => a .lat .partial_cmp(&b.lat) .unwrap_or(std::cmp::Ordering::Equal), 1 => a .lon .partia

why this site TTFB is slow on many location except few [closed]

15 February 2026 @ 3:03 pm

we are exepreincing site slow loading issue on some ISPs, check ttfb of this domain freelogocreator.com, its load slow on some location and fine on many internet. server load seemingly fine, cloudfront, cdn,gzip being used for static content.

How to ensure correct widget receives clicks in GTK Broadway

15 February 2026 @ 2:49 pm

I've built an app in GTK. It runs as expected on multiple machines. However, when I run it via Broadway (https://docs.gtk.org/gtk4/broadway.html) there's a strange phenomenon: When you click a clickable widget (e.g. text view, button) that widget "keeps" the focus So the widget you clicked says "hovered" if applicable And when you click something else, the original widget responds to the click Indeed, if you select a text view with text inside, and click a button to the left of the widget, the cursor within the text view will move to the far left, and so for the right too The one way to reset things is to move the pointer out of the window, which resets things, at which point you can click any widget and the correct widget will receive the click, but it will keep t

Cellfie Transformation Errors

15 February 2026 @ 2:40 pm

Suppose I already have my individuals in Protege. I want to import new data that is are properties of those individuals through Cellfie excel import tool. What transformation rule should I use? Currently, I use: Individual: @A* Facts: rdfs:label @B*, hasDateLiteral @C*, occurs_at @D* and it is giving me an error saying the data already exists. Note: I already have columns A and B in Protege. I tried all sorts of tweaks like removing rdfs:label @B* etc. and I get an error. The most frustrating part is that I am not even able to copy the errors. I am using Protege 5.6.7.

Text Editor in C++

15 February 2026 @ 1:42 pm

I study at university right now and I want to develop a text editor as a course project. I want to make it CLI-based (as Ed, but with more laconic commands). But the problem is that I can't use containers (such as string, vector, etc. I mean I have to use pointers instead) and C++ has strange dynamic RAM work (personally I think that it is easier to work with RAM in C. But I can't use C for this project, unfortunately. I have already developed another ed-like text editor in C, so I know that it is not really hard to make it). Suddenly, I made an idea: make a text editor, which has text area (for example, as Vim, Nano, etc.), but it works with commands, which are written in the bottom 2-line text input. Is it worth it making a text editor (a config edit tool) or would it be a better idea to pick, for example, pong game and use a C++ library (SFML, for example) for it?

Pencil Tool creating multiple lines simultaneously

15 February 2026 @ 11:20 am

I am implementing a pencil tool in my code using HTML and JS, all I need is to be able to draw on a canvas Firstly, I got to understand that for me to be able to draw I need the canvas context and use its methods (beginPath, moveTo, lineTo and stroke) to draw on the context via the canvas context. My problem here is that when drawing the line, I end up with multiple lines from my last point of the mouse on my canvas to any current point of the mouse on the canvas. Reading through this I still find it difficult to obtain a solution to it HTML <!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="description" content="An online use to draw, import and edit imges and share too"

How to implement idempotency across multiple servers with non-shared databases and private caches?

15 February 2026 @ 8:00 am

Server A → DB1A ↕ Private Cache A (Redis/Memcached) Server B → DB1B ↕ Private Cache B (Redis/Memcached) Problem I have a POST endpoint (e.g., domain registration) where the client sends: { accountID, domainName } I want to ensure idempotency so that: If the user double-clicks the button Or retries due to timeout Or requests hit different servers (A and B) The domain is created only once. Current Concern If I generate an idempotency key and store it in: Cache A → Server B won’t see it Cache B → Server A won’t see it So if: First request goes to Server A Retry goes to Server B Both servers think it's a new request. Additionally, if the client accidentally generates a new idempotency key on retry,

Trying to make a command similar to "time" in Ubuntu using C++

15 February 2026 @ 5:53 am

I am trying to make a command similar to time in Ubuntu that will give me the time taken by the command which follows it on the command prompt. My logic here is to use fork to create a duplicate process within my program and run the second command using this process. I get the time value just before the start of, and just after the end of, the forked process and then display the difference between these two time values. I could think of no other method to get control back from the second program back to the first. Clearly, this is inferior to the built-in time command in Ubuntu, and that could be one reason why my values don't exactly match the values reported by time. Can you please explain the logic of the built-in time command, and how I could improve my program? Of course, I just want to display the overall time taken by the process. To measure the "user" and "sys" times is

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.