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.

narrowing warnings while initializing an array

6 December 2025 @ 5:50 am

I have a class that I'm using across a somewhat large project, and it has a set of functions which need to take, as one argument, an array-like argument full of integral values. The size of the array has to match a template parameter in the class. Here's a simplified analog: template<std::size_t N> struct mystruct { void func(const std::array<std::size_t,N>&) { // code } }; int main() { mystruct<2> ms; ms.func({1,2}); return 0; } This compiles without issue. However, if I do something like this: int n = 3; ms.func({n,n}); I get a warning warning: narrowing conversion of ‘n’ from ‘int’ to ‘long unsigned int’ [-Wnarrowing] Fair enough. I think this warning should be taken seriously, and I do not want to use the -Wnarrowing option globally. Does anyone know if this warning can be turned off for just one function? If I try this,

How to implement free WhatsApp notifications internally without external APIs?

6 December 2025 @ 5:45 am

I’m trying to build a health-monitoring system in Python that needs to send alert messages through WhatsApp. The problem is that my company doesn’t allow any third-party services or paid APIs, and they want the solution to be completely free. We are using SQL Server as the database (already licensed by the company). I only know a bit of Python, so I’m not sure what options I have without using third-party tools like Twilio or Meta’s Cloud API. Is there any way to send WhatsApp messages directly from Python under these restrictions? Or are there alternative approaches I should consider? Any ideas, suggestions, or guidance would really help. Thank you!

vba, assign a function param to a local variable

6 December 2025 @ 5:39 am

This is an embarrassingly basic question to have to ask, but I'm getting incredibly frustrated by VBA and it's unhelpful errors and poor documentation, and I need help. All I want to do is copy the value of a function parameter into a local variable. It's such a fundamental programming concept but with VBA I can't get it to co-operate. It just gives me 'BASIC runtime error, argument is not optional', pointing at that line, and I'm finding nothing helpful through google to figure out what simple mistake I'm making. I've stripped the function down to the following example: Public Sub IHateYouVBA(ByVal row As Integer) Dim test as Integer, test2 as Integer test = 1 test2 = 2 test = test2 test = row End Sub The error points to the last line. As you can see, it's perfectly happy creating local variables, assigning values to them, and even copying the value from one to the other. But as soon as I ask it to copy the function

want to Swift Popup massage quite using outer screen clicked

6 December 2025 @ 5:31 am

I am learning swiftUI ant I have shown a add new note using $isAlertShowing now I want to close that small screen when User click to outer screen of that popup not using any cancel button or like that. using click on outer screen.

How to properly configure transaction isolation levels when using columnstore indexes in PolarDB MySQL IMCI?

6 December 2025 @ 5:08 am

I've been working with PolarDB MySQL IMCI for a few days now and have successfully implemented columnstore indexes on several analytical tables. I've read through the transaction isolation documentation, but I'm still unsure about the proper configuration for my mixed workload. From what I understand in the documentation: Columnstore indexes officially support READ_COMMITTED and REPEATABLE_READ isolation levels For REPEATABLE_READ, you need to use a custom read-only endpoint that only connects to nodes with columnstore indexes There's a parameter called imci_ignore_unsupported_isolation_level that can help with compatibility for tools like Metabase I'm using a PolarDB cluster with one primary node and two read-only nodes, and I've created a custom endpoint for my analytical queries as recommended. My specific questions: For the imci_ignore_unsupported_isolation_level=ON setting, does this simply downgrade unsupported isolation levels

Rs232 Checksum calculation

6 December 2025 @ 4:47 am

I am try to calculate the RS232 Crc checksum for the rs232 frame following is the sample rs232 protocol frame 01 37 37 1D 30 30 33 1D 30 03 34 37 33 39 37 04 Here 37 37 is the slave id that is 77 and 34 37 33 39 37 is the crc checksum (47397) i am unable find the method to get this crc checksum, please guide me to get the crc checksum algorithm the following is the 2nd sample 01 37 37 1D 30 30 34 1D 30 03 31 34 36 35 33 04

Review FMCG business inventory system DB design normalization and ERD

6 December 2025 @ 4:43 am

My case study project inventory system tracks stock and updates stock after every sale of a FMCG (Fast-moving consumer goods) business. Since it is FMCG, they get stock by consignment and the database should be able to track if there are payments overdue and how much needs to be paid to suppliers. ERD after being normalized. enter image description here What are problems with my FMCG business inventory system DB design normalization and ERD?

trouble in microsoft input method

6 December 2025 @ 3:58 am

I'm using the Microsoft Input Method Editor (Chinese simplified) right now and my goal is to enter a back slash in chinese mode, but instead of the backslash I get a chinese comma instead. In my case the key on my keyboard that would allow me to enter a backslash has both the chinese comma and the backslash character printed on. Assuming it works the same as other keyboards I just have to use a modifyer key like Ctrl, Alt or Shift to access it. A different approach was to switch to english mode in the OS or the keyboard. But this way I have to constantly switch back and fourth. Which should not be necessary. This handycap forces me to use a copy&paste approach where I have to store a backslash in my clipboard. I was also willing to explore the option of using some shortcuts but in the end I treat the situation as a bug. Firstly, I tried to write some script in Auto Hot Key, which doesn't work. Then I tried to use Powertoy keyboard manager, turns out t

Java - Resize JFrame When Moving to New Screen

6 December 2025 @ 2:10 am

I have two monitors with different resolutions. I would like for a JFrame to dynamically resize when dragged to a different monitor. This has proven surprisingly difficult. Here is a reproducible example. When dragging to a new frame, the label will update, but the frame will not change size. I've tried various combinations of revalidation, repainting, everything I can think of. Any help is appreciated. import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.SwingUtilities; import java.awt.Dimension; import java.awt.GraphicsDevice; import java.awt.event.ComponentEvent; import java.awt.event.ComponentListener; public class ResizeTest extends JFrame { private GraphicsDevice currentScreen; public ResizeTest() { currentScreen = getGraphicsConfiguration().getDevice(); JLabel screenLabel = new JLabel(currentScreen.getIDstring()); getContentPane().add(sc

I have a problem with the request module in Automate Boring Stuff With Python - Chapter 13

6 December 2025 @ 1:50 am

I am new to python and programming in general and I got to Chapter 13 of Automate The Boring Stuff With Python which teaches Web Scraping, I succeeded in some projects but I'm having trouble getting the HTML from pypi.org, the task is to get the response from a search page in there and open the first few links, I can do it if I manually download the page as a .html file but i can't do it through the URL. Here is the code that's supposed to work: import requests, sys, webbrowser, bs4 print('Searching...') # Display text while downloading the search results page. res = requests.get('https://pypi.org/search/?q=' + ' '.join(sys.argv[1:])) res.raise_for_status() # Retrieve top search result links. soup = bs4.BeautifulSoup(res.text, 'html.parser') # Error happens here # Open a browser tab for each result. link_elems = soup.select('.package-snippet') # Returns an empty list num_open = min(5, len(link_elems)) for i in range(num_o

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

ThemeForest.net

VN:F [1.9.22_1171]
Rating: 7.0/10 (2 votes cast)

WordPress Themes, HTML Templates.

Interface.eyecon.ro

VN:F [1.9.22_1171]
Rating: 6.0/10 (1 vote cast)

Interface elements for jQuery
Interface.eyecon.ro

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.