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.

Is it possible to add a column to a datatable read from a file?

24 November 2025 @ 11:23 pm

I have a DataTable read from a csv file: ID,ItemCode,ItemDescription 1,Test0,test item 2,Test2,second test item When I try to create an additional column as in https://learn.microsoft.com/en-us/dotnet/framework/data/adonet/dataset-datatable-dataview/adding-columns-to-a-datatable, it silently fails. The code: dataTable.TableName = "test" dataTable.Columns.Add("MyTestColumn", GetType(String)) dataTable.AcceptChanges() Using sw As StringWriter = New StringWriter() dataTable.WriteXml(sw) Console.WriteLine(sw) End Using has output <DocumentElement> <test> <Column1>ID</Column1> <Column2>ItemCode</Column2> <Column3>ItemDescription</Column3> </test&g

NsResize plug-in not working in Windows 11

24 November 2025 @ 11:17 pm

I've been using the NsResize plug-in for years, primarily to make it easier to read End User Licence Agreements in rich text format. In Windows 11, the nsResize.dll is failing. Is there a workaround, or an alternative?

Mondial Relay SOAP API "Invalid XML" error with Unexpected close tag despite correct XML in Node/React

24 November 2025 @ 11:15 pm

I am integrating Mondial Relay’s SOAP API in a Node.js application using the soap npm package. I am trying to create a shipment with the WSI2_CreationExpedition method and then generate the shipping label with WSI2_CreationEtiquette. My code generates the SOAP XML request, which looks well-formed when I log it, but the server consistently responds with a 500 error: **> Invalid XML Error: Unexpected close tag Line: 158, Column: 19, Char: >** I properly clean empty fields from the request object to avoid empty XML tags. I calculate the security key (MD5) according to the exact field order required. I use the official WSDL URL: https://api.mondialrelay.com/Web_Services.asmx?WSDL I have verified: The XML request logged is well-formed. The namespaces and SOAP versions match the documentatio

Getting Homebrew to stay on an old PHP version

24 November 2025 @ 11:14 pm

PHP was upgraded to version 8.5 this week. Now Homebrew wants to upgrade my PHP 8.4 installation to 8.5, but I want to stay on 8.4. Is there a way to do this, short of uninstalling the php package and re-installing the [email protected] package? That seems like a hassle, especially since it won't be in a standard path any more. But, if that's my only option, what about other packages like php-intl? There doesn't seem to be a [email protected].

Parse json object in sql with list

24 November 2025 @ 11:11 pm

I have a table with data structured like this. Each product ID has a list of element IDs--for each element, there is a dictionary including a list of elements and their assigned IDs. Not every element will have an ID on every product product_id element_id product_1 {"FIRE": ["1630808"],"WATER": ["188028","234"],"SHADOW": ["213181"] For each product I'd like to be able to count how many of each element ID appear, in a table like this: product_id fire_count water_count shadow_count forest_c

SVN to GIT conversion: Mismatched email address

24 November 2025 @ 11:10 pm

I have been tasked with moving various projects from SVN to GIT. This is not code that I have ever worked on so my name is not in the git log. Some code has moved to GIT no problem but other projects I get the following (many Mismatched email address lines): remote: Mismatched email address for: 7d4fc3345fb664f9cd5184c11b03e5323036d21c remote: Your email address: [email protected] remote: Committer address in git log: [email protected] remote: -------------------------------------------------------------------------------- remote: Mismatched email address for: 90acfe0366d77223faf56d820d552b73879c2f3f remote: Your email address: [email protected] remote: Committer address in git log: [email protected] remote: ------------------------------------------------------------------------------- remote: Mismatched email address for: 90acfe0366d77223faf56d820d552b73879c2f3f remote: Your email address: [email protected] remote: Committer address in git log: person2.nam

emberjs tests not running

24 November 2025 @ 10:59 pm

My tests are not running anymore, abort with this error: Error: No tests were run. at ProcessingQueue.done (webpack://__ember_auto_import__/./node_modules/qunit/qunit/qunit.js?:819:583) at ProcessingQueue.advanceTestQueue (webpack://__ember_auto_import__/./node_modules/qunit/qunit/qunit.js?:802:136) at ProcessingQueue.advance (webpack://__ember_auto_import__/./node_modules/qunit/qunit/qunit.js?:795:176) at unblockAndAdvanceQueue (webpack://__ember_auto_import__/./node_modules/qunit/qunit/qunit.js?:1198:135) unfortunately I cannot see more of the error-stack. (could I somehow?) my test-helper.js is a default: import Application from '../app'; import config from '../config/environment'; import * as QUnit from 'qunit'; import { setApplication } from '@ember/test-helpers'; import { setup } from 'qunit-dom'; import { start } from 'ember-qunit'; setApplication(Application.create(config.APP)); // setup(QUnit.assert);

C++ compile type endianness for use in macros

24 November 2025 @ 10:40 pm

I need to layout a structure in two different ways depending on the endianness of the target platform. Currently I'm using an additional pre-compile phase to run a program to test the endianness, and define pre-processor macros that can be used thus: struct { #if MACH_BYTE_ORDER_LSB Byte a; Byte b; #else Byte b; Byte a; #endif }; I'd really like to get rid of this pre-compile ./configure alike phase, but AFAIK there's no standard-defined macro that I can rely upon to exist in every C++20 compatible compiler. While C++20 introduced std::endian in the <bit> header, this only appears to be of use for run-time tests, and in static_assert compile-time tests. Is there a way I can use this from within the C++ pre-processor instead, or otherwise change my structure layout to put the

LZSS - handling the compression of data that contains token-like strings

24 November 2025 @ 10:30 pm

I've been working on implementing some compression algorithms in C/C++ and JavaScript, I've started by building out LZSS. So far everything seems good. I check my dictionary buffer for matches, and if the match is bigger than the token, I output the token, else I output the match. I know that there's multiple ways to implement this; but the way I have it now, I convert the following string: this is my compression algorithm. It is very cool. I like compression. into this is my compression algorithm. It is very cool. I like<12,46>. This appears good, and successfully reduces the size of the text; but there's an edge case! What if the original text contains data that looks like a tag; but has no matches to encode, resulting in a false tag in the compressed data output? What is the standard method for addressing this potential problem?

Electron: Alternative to navigator.geolocation.getCurrentPosition without API key?

24 November 2025 @ 5:24 pm

In my Electron app, navigator.geolocation.getCurrentPosition always fails. It seems that Electron (Chromium) no longer provides free geolocation and expects a third-party service with an API key (e.g., Google). Is there any Electron native alternative to get the user’s location without requiring an external API key? Maybe a native module or OS-level API I can call from the main process? Thanks, everyone!

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.