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.

parsing HTML table in dataframe column

11 March 2026 @ 9:15 pm

I've got a dataframe that contains a pretty simple HTML table, here's a over-simplified example <table> <thead> <tr> <th>Foo</th> <th>bar</th> </tr> </thead> <tbody> <tr> <td>Blah</td> <td>More Blah</td> </tr> </tbody> </table> I'm attempting to parse this using read_html, with the idea of ultimately being able to read the foo and bar columns and adding them to the dataframe: key foo bar 1 blah more blah I tried using pandas read_html wrapped in a UDF, but that was thoroughly unsuccessful, I think because read_html is returning a list, not a string. How can I parse this HTML table into a dataframe?

Display problem using UnevaluatedExpr in Sympy with python

11 March 2026 @ 9:11 pm

When I add another expression to Unevaluated(), then try to print it, the unevaluated output is surrounded by (). The problem comes when the first coefficient in the resulting expression to be displayed inside of Unevaluated is negative, it will take the first (and only first) '-' and put it in front of the whole expression in front of the (). Note: This does not affect later computations, but it does display incorrect results since I am wanting to print the content at this stage. I've looked around for a while and there doesn't seem to be a great solution to resolve this. (e.g. using custom string manipulation, converting to LateX then back, etc) from sympy import symbols, simplify, UnevaluatedExpr, sstr, Eq, Add, S, latex x, y = symbols('x y') r1 = 0 r2 = -2 r3 = -9 uexpr = Add(S.One, UnevaluatedExpr(r1*x**3 + r2*x**2 + r3*x + 5)) print(f"Unevaluated: {uexpr}") # Note the '-' in front of the parenthesis should not be applied to ever

Amazon Developer Account Verification [closed]

11 March 2026 @ 8:54 pm

I'm trying to gain access to our Amazon Developer Account after receiving an email on Feb 27 2026 from [email protected] informing us that "As part of our ongoing efforts to keep Amazon Appstore safe, we are requiring you to verify your identity in the Amazon Appstore developer portal." I clicked through the instructions and links which led me to a page where I was instructed to provide my face shot via webcam and my government issued id. This process failed even though the id is valid. It then directed me to call a help number. They had absolutely no idea what to do. We are now locked out because the verification with id process does not work and the phone support line does not know how to handle this. Has anyone else run into this? Thanks!

Adding default queryParams in Angular21

11 March 2026 @ 8:53 pm

Before Angular 21, it was possible to add default queryParams like this, to avoid putting them in every link in our application: @Directive({ selector: "[myRouterLink]", standalone: false }) export class MyRouterLinkDirective extends RouterLink { @Input() set myRouterLink(commands: any[] | string | null | undefined) { super.routerLink = commands; } get urlTree(): UrlTree { const { myCustId } = this.activatedRoute.snapshot.queryParams; const urlTree = super.urlTree; urlTree.queryParams.myCustId = myCustId; return urlTree; } } So instead of a link being created with routerLink, I used myRouterLink throughout the application. This is useful for feature-gating features (controlling the feature-gate with a queryParam) and for multi-tenant applications (where every page has a customerId queryParam). The code

Permanently disable the Dev Tools Button in Expo

11 March 2026 @ 8:48 pm

When starting my expo app during development, there is a circular, blue, floating button that opens the Dev Menu when clicking it. In the dev menu, there is an option to hide the "Tools button". I find this button disturbing, is there an option to disable it permanently?

Is it possible to badfilter a filter exception?

11 March 2026 @ 8:26 pm

I am using uBlock-Origin and Firefox. There is this exception in EasyList list of filters (https://ublockorigin.pages.dev/thirdparties/easylist.txt): @@||www.google.*/search?$xmlhttprequest,domain=google.ae|google.at|google.be|google.bg|google.by|google.ca|google.ch|google.cl|google.co.id|google.co.il|google.co.in|google.co.jp|google.co.ke|google.co.kr|google.co.nz|google.co.th|google.co.uk|google.co.ve|google.co.za|google.com|google.com.ar|google.com.au|google.com.br|google.com.co|google.com.ec|google.com.eg|google.com.hk|google.com.mx|google.com.my|google.com.pe|google.com.ph|google.com.pk|google.com.py|google.com.sa|google.com.sg|google.com.tr|google.com.tw|google.com.ua|google.com.uy|google.com.vn|google.cz|google.de|google.dk|google.dz|google.ee|google.es|google.fi|google.fr|google.gr|google.hr|google.hu|google.ie|google.it|google.lt|google.lv|google.nl|google.no|goog

python argparse bug? 'nargs' and 'action' crashes with unexpected keyword 'nargs'

11 March 2026 @ 8:14 pm

Sanity check, please. This code: import argparse def parse_cmd_line(): parser = argparse.ArgumentParser( ) parser.add_argument('-c', '--create', nargs='*', action="store_true") args, flist = parser.parse_known_args() if __name__ == "__main__" : parse_cmd_line() when run as: python3 parse.py -c generates this: raz@WS-5N2PCV2:~/dev/tools/arc$ python3 parse.py -c Traceback (most recent call last): File "/home/raz/dev/tools/arc/parse.py", line 13, in <module> parse_cmd_line() File "/home/raz/dev/tools/arc/parse.py", line 7, in parse_cmd_line parser.add_argument('-c', '--create', nargs='*', action="store_true") File "/usr/lib/python3.12/argparse.py", line 1489, in add_argument action = action_class(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^ TypeError: _StoreTrueAction.__init__() got an unexpected keyword argument 'narg

Dealing with brackets in email subject line

11 March 2026 @ 7:34 pm

I am using VBA to search for an email sent by a different department. The issue is that the email subject has brackets in it and that causes a bug in the code. Due to bureaucracy, the simplest solution of having the other department simply change their email subject syntax is blocked as they will need to update documented procedures and get managers approvals.... Is there a workaround? I have attached my code below: Sub checkemail() 'Searches through email folder and populates table if email found with given subject Dim myOlApp As Object, myNameSpace As Object, myFolder As Object, myitem As Object Dim yesterdayMail As Object Dim rowCount As Long On Error Resume Next Dim folder As String Dim subject As String folder = "Inbox" subject = "Test Email Subject (March XX, 20xx)" Set myOlApp = GetObject(, "Outlook.Application") If Err.Number = 429 Then Set myOlApp = CreateObject(

How to improve FPS when using MediaPipe hand tracking with OpenCV in Python?

11 March 2026 @ 2:57 pm

I am building a simple AI hand tracking application using MediaPipe and OpenCV in Python. The program reads frames from a webcam, processes them with MediaPipe Hands, and draws the hand landmarks on the screen. However, I noticed that the FPS sometimes drops to around 15–20 FPS, which makes the tracking less smooth. I would like to understand if there are ways to improve the performance when using MediaPipe with OpenCV. My environment: - Python 3.10 - MediaPipe - OpenCV Here is a simplified version of my code: import cv2 import mediapipe as mp mp_hands = mp.solutions.hands hands = mp_hands.Hands() cap = cv2.VideoCapture(0) while True: ret, frame = cap.read() if not ret: break image = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) results = hands.process(image) if results.multi_hand_landmarks: for hand_landmarks in results.multi_hand_la

How to select elements from list in random order

11 March 2026 @ 1:06 pm

Character string list contains fixed values 'I','Q','C','K','X','T','S','NE' known in query creation time. This list should be returned in random order. Tried select unnest( ARRAY['I','Q','C','K','X','T','S','NE'] ) order by random() but this returns rows is same order in every run. How to change this so that list or rows appear in random order in each run? Using Postgres 17 Update Tried answer to update rows using create temp table test ( test text ); insert into test values (null); insert into test values (null); update test set test= (SELECT string_agg(val,',' order by random()) FROM ( SELECT unnest(ARRAY['I','Q','C','K','X','T','S','NE']) AS val ) t ORDER BY random()) returning test but both rows have same value. How to get different values?

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

A New Path for Digital Accessibility?

27 February 2026 @ 7:02 pm

Please note This post will explore how an adaptive, intelligent system could empower users with disabilities to optimize their experience in digital environments. Even were such a system available tomorrow, developers of digital content, services, and products would still be responsible for providing equal access to ALL users. Consider a few of the many exciting […]

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 […]

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.