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.9/10 (12 votes cast)

Random snippets of all sorts of code, mixed with a selection of help and advice.

How to manage DTO proliferation for different API operations

22 November 2025 @ 3:13 am

I'm having trouble managing DTOs. I'm working as follows: I have a reusable DTO called PhoneResponseDTO that is used in both findAll and findByID. Then I created a DTO for each operation like Created, Update, and Delete. Well, I was thinking: I receive a RequestDTO, if everything goes well, I convert this RequestDTO to an Entity using the toEntity() method. After saving, and now to respond that it has been created, I convert it to a CreatedResponseDTO using the toResponseDTO() method. And then the same with the Update and Delete operations. RequestDTO -> Entity -> ResponseDTO Response DTOs public record PhoneResponseDTO( String description, String brand, // ... String personId, String personName ) { } public record PhoneCreatedResponseDTO ( String message, // Successfully created phone String description, String personId, Strin

Which IDE and tools for gcc C development?

22 November 2025 @ 3:12 am

Which IDE and tools are best suited for gcc C development? I currently use vscode and the tried using the ms-vscode.cpptools extension which "supports" gcc C. But extensions like nested functions, are not supported, and come up as errors in my ide even though it compiles fine with gcc (note: clang does not support nested functions in C).

Restarting backend container became unreachable for traefik(504 Gateway timeout)

22 November 2025 @ 2:39 am

I’m having a problem and I can’t find a solution. I have deployed a Django backend and a React frontend using Docker. I’m using Traefik as a reverse proxy for the web server. When I start Traefik, the backend, and the frontend, everything works perfectly. However, when I try to upgrade my apps, the backend becomes unreachable (504). To fix it, I have to restart Traefik and then start the backend after Traefik. After that, it works again. This is my backend Docker Compose: services: backend: image: backend-v3:latest container_name: dashboard-backend restart: always env_file: - ./dashboard/.dockerenv volumes: - .:/app - ./infra/static:/app/staticfiles networks: - traefik - db_network ports: - "8000:8000" labels: - "traefik.enable=true" - "traefik.http.routers.django-api.rule=Host(`domain.com`)" - "traefik.http.route

Deploying embedded Javascript to a remote server

22 November 2025 @ 2:39 am

I am an experienced programmer, but am new to Web Development. I have become familiar with several technologies, including embedded Javascript, which I would like to use for my employer's project. However, the examples I have worked with require access to the server to run the 'nodemon index.js' command. However, I don't think that I would have access to the remote server, so how do I go about deploying this module?

How to correctly call an iOS completionHandler block from Delphi without crashing?

22 November 2025 @ 2:24 am

I’m trying to implement this iOS delegate method in Delphi: - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task willBeginDelayedRequest:(NSURLRequest *)request completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSURLSessionDelayedRequestDisposition disposition, NSURLRequest * _Nullable newRequest))completionHandler API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0)); My Delphi translation looks like this: procedure TURLSessionDelegate.URLSession(session: NSURLSession; task: NSURLSessionTask; willBeginDelayedRequest: NSURLRequest; completionHandler: Pointer); var LCompletionHandlerBlock: procedure(disposition: NSURLSessionDelayedRequestDisposition; newRequest: NSURLRequest); cdecl; beg

Docker - how to launch a container with non-variable name?

22 November 2025 @ 2:24 am

I launch a container in docker (using powershell) by running the first command however I have a couple other operations I need to do on start-up like connecting the gotenberg to a network. Powershell launch command for gotenberg The problem is - every time I launch gotenberg it has a different container name so I immediately need to rename it so I can copy paste the other operations. Is it possible to launch the container with the name already specified in the docker run command so I don't have to constantly rename it to gotenberg?

determine cpu after c++ compilation with gcc?

22 November 2025 @ 2:17 am

Does anyone know if there is, in c++, any way to determine at runtime the cpu characteristics of the machine that compiled the code? For example, in gcc (which I'm using) the preprocessor variable _OPTIMIZE_ indicates compile-time optimization, but I can't find anything on cpu type. I'm doing some cloud computing on a heterogeneous cluster. Some of the nodes are non-interoperable (code compiled on one will not run on another), while others are partly interoperable (code compiled on one will run on another, but at sub-optimal speed). The first case is easy to check for and deal with, but second case is trickier to detect in an automated way.

tbl_regression not showing p-values when compiler is running on R Markdown

21 November 2025 @ 10:34 pm

I am trying to run tbl_regression() on lme4 models. In R Markdown, the p-values can be seen in the output there. However, when I try to compile to a pdf or html, the p-values disappear, while the confidence intervals stay. I have no clue what is going wrong and would appreciate any help with this. Additionally, any help with keeping tbl_regression output from moving around in pdf compilers would be much appreciated. fit <- lmer(va_int ~ (MMP9 == "TT") + age + Sex + BMI + smoking + (1 | id), data = eye_data) cat("Sample Size (n): ", nobs(fit), "\n") tbl_regression(fit) Is the code being ran. For note, the issues still occurred without results="asis" being present. In R Markdown, the p-value column shows up. But once the document is compiled, the p-value column completely disappears from tbl_regression output. I have also atte

Why are rows returned as stale when fetching TimeSeries data with multiple sequential queries on the same RowSet?

21 November 2025 @ 9:33 pm

I’m using GridDB Cloud with the Python client (griddb_python) and found a reproducible issue where executing multiple sequential queries on a TimeSeries container causes the second query to return stale data unless I recreate the RowSet. Schema import griddb_python as griddb conInfo = griddb.ContainerInfo( name="ts_metrics", column_info_list=[ ("ts", griddb.Type.TIMESTAMP), ("cpu", griddb.Type.FLOAT) ], type=griddb.ContainerType.TIME_SERIES, row_key=True ) store.put_container(conInfo, True) Insert test data import datetime container = store.get_container("ts_metrics") base = datetime.datetime(2024, 6, 1, 0, 0) for i in range(5): container.put((base + datetime.timedelta(minutes=i), 0.5 + i)) Query 1 (works) query

Declaring aliases for anonymous classes

21 November 2025 @ 9:14 pm

This is an attempt to make an alias to an anonymous class: struct { int i = 0; } a; // error C7626 in MSVC using A = decltype(a); This produces an error in Visual Studio: error C7626: unnamed class used in typedef name cannot declare members other than non-static data members, member enumerations, or member classes According to Microsoft's documentation, it was done to comply with P1766R1 that prohibits typedef names for linkage purposes. Is MSVC correct to rejecting the program? And, if it is correct, then must the following alias be rejected as well since it gives a name to the same class?

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.