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: 9.2/10 (11 votes cast)

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

Pytorch Sentiment analysis model AcceleratorError: CUDA error: device-side assert triggered

7 November 2025 @ 11:25 am

import torch from torch import nn from transformers import AutoTokenizer from torch.utils.data import DataLoader, TensorDataset, Dataset from torch.nn.utils.rnn import pad_sequence import pandas as pd device = torch.device("cuda" if torch.cuda.is_available() else "cpu") print(f"Using device : {device}") ds = pd.read_csv("YoutubeCommentsDataSet.csv") def clean(ds): n_comments = [] n_things = [] for comment, sentiment in zip(ds['Comment'],ds['Sentiment']): if type(comment) == str and len(comment) < 512: n_comments.append(comment) if sentiment == "positive": n_things.append(1) elif sentiment == "negative": n_things.append(0) else: n_things.append(2) return n_comments, n_things comments, sentiments = clean(ds) tokeniser = AutoTokenizer.from_pretrained("bert-base-uncased") def encoder(xs): encoded = [] for x in xs: enco

MacOS client (Remote Desktop Protocol) screen sharing using SignalR

7 November 2025 @ 11:17 am

Animations and typing delayed (no WebRTC) I’m building a Remote desktop app for macOS, where the screen is captured, H.264 encoded, and streamed to a web client using SignalR. For some reasons I cannot use WebRTC, so I’m manually handling encoding, transport, and decoding. The stream works, but it’s laggy and stutters — animations, typing, and cursor movement are noticeably delayed. The architecture consists of three main parts: a macOS client, a SignalR server, and a web client. The macOS app uses ScreenCaptureKit to capture the screen and VideoToolbox (H.264) to encode frames, which are then sent as binary data to the SignalR server using the Swift SignalR client. The .NET 8 SignalR server simply relays these encoded frames to connected web clients and also forwa

TypeError: Cannot read properties of undefined (reading 'data') - Cant login in my aplication

7 November 2025 @ 11:15 am

My errors that I get, I was searching web what might Err_connected_timed_out might say, and everything that is connected with internet stability is off, because I checked it already. What my problem is, is that I cant login in my app : -> Denying load of chrome-extension://aggiiclaiamajehmlfpkjmlbadmkledi/popup.js. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.Understand this error ->Denying load of chrome-extension://aggiiclaiamajehmlfpkjmlbadmkledi/tat_popup.js. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.Understand this error chrome-extension://invalid/:1 ->Failed to load resource: net::ERR_FAILEDUnderstand this error 172.20.8.103:7100/api/Auth/login?email=manager1%40gmail.com&password=1234:1 ->Failed to load resource: net::ERR_CONNECTION_TIMED_OUTUnderstand th

How to prevent data coming from Pixhawk to overflow?

7 November 2025 @ 11:10 am

I receive data from Pixhawk through MAVLink and I send it to a react application through a websocket. However, it overflows due too much data and the application gets laggy to a point that it is not usable anymore. I want to be able to show all the Pixhawk registries and their sub data. This can be done once and stop the stream but since websocket has continues stream of data I haven't find a way to prevent that issue. Tested it with setInterval() to reduce the times of data being sent but it does not seem to have any effect. What I also had in mind is implementing GraphQl to it and requesting the data only once but I feel it is still not a good solution. Do you have any suggestions with the approach I can take?

Laravel migration creates wrong columns and data mismatch in employers table

7 November 2025 @ 11:08 am

I’m building a job board project in Laravel, and I’m trying to establish a one-to-one relationship between User and Employer. However, my database table is not being generated correctly — the columns appear mismatched. Here’s what I did: Migration (database/migrations/xxxx_xx_xx_create_employers_table.php) use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { public function up(): void { Schema::create('employers', function (Blueprint $table) { $table->id(); $table->foreignIdFor(\App\Models\User::class); $table->string('name'); $table->timestamps(); }); } public function down(): void { Schema::dropIfExists('employers'); } }; But after running: php artisan migrate:fresh --seed My database ta

setup F5vpn using key stored in TPM?

7 November 2025 @ 10:47 am

Can I setup an F5VPN connection using a key generated and stored inside the TPM of my Linux laptop? Platform is Debian 13? AFAICT f5fpc is based upon openssl (which could imply PKCS#11 support), but the documentation doesn't mention it. https://techdocs.f5.com/en-us/edge-client-7-2-4-1/big-ip-access-policy-manager-edge-client-and-application-configuration-7-2-4-1/clients-for-linux.html The openconnect F5 implementation is not an option, unfortunately, due to company policy.

C# EFCore nullable type return vs not found or multiple database record

7 November 2025 @ 10:39 am

I have the following use case. The database contains a record with a nullable field and I would like to request only that filed value from the database for a single record. This can easally be done using this Linq-query: var value = await context.Table .Where(r => r.Id == recordId) .Select(r => r.Field) .SingleOrDefaultAsync(); This wil return the field value or 'null' when the record does nog exist. So when the field has a value, one gets that value. But when the field is 'null', you also get 'null'. And that's where my probleme kicks in. I want to distinct between the situation where the field value is 'null' and when the record doens't exist (error). You can try this try { var value = await context.Table .Where(r => r.Id == recordId) .Select(r => r.Field) .SingleAsync(); } catch { throw new NotFoundException(""); }

Using SUM and EXCEPT in one query

7 November 2025 @ 10:35 am

I'm using Microsoft SQL Server. I have two tables and I want to remove some rows from table 1 if the ID exist in table 2, and then do a sum of the AMT column for the remaining rows. I currently have two queries to do this which works: Query 1: SELECT ID, AMT INTO #temptable FROM table1 EXCEPT SELECT ID, AMT FROM table2; Query 2: SELECT SUM(AMT) FROM #temptable; However, is there a way to combine these two queries into one to make it more efficient?

Sum of a binary tree

7 November 2025 @ 10:29 am

I have a binary tree which leafs have a size of 1, and the parent double in size at each level. I project those nodes on a linear axe (memory space). I need to get the equation that gives the adress of the node with the id of the node. Here is the tree : 7 <- size=8 3 11 <- size=4 1 5 9 13 <- size=2 0 2 4 6 8 10 12 14 <- size=1 The address space with the sizes of the nodes : 1 2 1 4 1 2 1 8 1 2 1 4 1 2 1 So the first results are : f(0) = 0 f(1) = 1 f(2) = 3 f(3) = 4 f(4) = 8 f(5) = 9 f(6) = 11 f(7) = 12 f(8) = 20 What is the formula of this layout ?

How to read a spicific text file format in C

7 November 2025 @ 10:22 am

I just wanted to ask if it's possible to read to a specific file format, say if I wanted to read from a file that has a format of something "info.uc" or "main.uc", how would I go about doing that in C? This is a little something I am making and I want to know how to read from a specific text file format: #include "include/load_uc_file.h" bool find_file_format() { FILE* fileptr; fileptr = fopen("", "r"); if (fileptr == NULL) { printf("The file was not found"); } return false; } If anyone has an answer to this, that would be great. Thank You! -ShizamDa_Geek

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.