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.

i don't understand boolean

3 April 2026 @ 2:27 pm

public class Main { public static void main(String[] args) { boolean isLightOn = false; if (isLightOn == false) { System.out.println("The light is on."); } else { System.out.print ("the light is off"); } } } /* ok so I made isLightOn false, and if isLightOn is false which it is, its ment to print "light is on". I ran the code and it printed the opposite, it ran what should only run when isLightOn is true "the light is off". the code works, its not broken I just don't understand the output. I'm sorry btw, i am very knew to java. */

ImageMagick batch file

3 April 2026 @ 2:19 pm

I have a written batch file which only works with one image at a time. Basically, it converts any other format to a .png and deletes the originals changes aspect to 600x600px draws a circle makes the outer areas transparent. It works fine BUT only with one file. Multiple files produces unwanted extra named -0.png, , -1.png, , -2.png, , etc. What am I doing wrong here, please? This is the batch file: "C:\Users\Admin\PortableApps\ImageMagick\mogrify.exe" -format png *.jpg "C:\Users\Admin\PortableApps\ImageMagick\mogrify.exe" -format png *.gif "C:\Users\Admin\PortableApps\ImageMagick\mogrify.exe" -format jpg *.jfif "C:\Users\Admin\PortableApps\ImageMagick\mogrify.exe" -resize 600x600! *.png del "*.gif" "*.jfif" "*.png~~" "*.jpg" "C:\Users\Admin\PortableApps\ImageMagick\convert.exe" conv

Index vs whole assignment in verilog

3 April 2026 @ 2:13 pm

In verilog, how do I assign values if I’m not allowed to use indexing for any reason: wire [7:0] c c[0]=1 c[1]=1 c[2]=1 c[3]=0 c[4]=0 c[5]=0 c[6]=0 c[7]=0 How do I do it in one line ie c=?

How to create dynamically-named objects in a for loop in Python where the name is based on the items in the list that you are iterating through?

3 April 2026 @ 2:07 pm

Apologies if this question has been asked before but I have searched all over the internet and Stack and I can't seem to find a comparable question or explanation. I'm working in Pandas specifically, but I think this is a more generic Python question. Let's say I have a list of string characters: my_lst = ['cat', 'dog', 'rat'] I want to iterate through the list, using each value and return a new object whose name is based on the value, so that ultimately I have a bunch of objects called, let's say: tbl_cat, tbl_dog, tbl_rat But I can't quite figure out how to code that? My initial thought was something like... for var in my_lst: tbl_name = 'tbl_' + var tbl_name = //a function that uses var as a parameter// But I know that can't be right because that would just reassign the value to the object called "tbl_name". I also know that this won't work but it is esse

How to remove text from an image quickly and for free?

3 April 2026 @ 2:04 pm

I need to download quickly and for free, I want to do a lot of work, I need to remove watermarks, extra text on diagrams, pictures, and so on. What are the best free tools (online or offline) to erase text or watermarks from images without losing quality? I’m looking for something fast, batch processing if possible, and no paid subscriptions. Any recommendations for software, websites, or even open-source programs?

Pycharm: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position 1023

3 April 2026 @ 2:02 pm

When I use Pycharm's debugger and I inspect a dictionary in the debug window, if there are characters in the dictionary which are somewhat unusual, (Greek, for example), sometimes the debugger will crash, yielding the following error message: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position 1023: unexpected end of data From my research I've learned that possible the cause is that the characters use a lot of memory and pycharm sets a limit which is 1024 bytes. i've tried to increase the byte length with the following hack: os.environ['PYDEVD_MAX_STRING_LENGTH'] = 70_000 try: import pydevd pydevd.MAX_STRING_LENGTH = 30000 except ImportError: p ('debugger not attached') pass # Debugger isn't attached yet But I'm still getting the same error. I've been suffering from this error now for about 2 years and have contacted Pycharm numerous times about it and they are aware of it but they don't

Recovering a conversation from an audio with a lot of noise using MATLAB

3 April 2026 @ 1:57 pm

I am working on a personal project to recover a human conversation from an audio file using MATLAB, but after careful inspection, I've realized that it might be close to impossible, as the noise energy is too strong compared to the signal's energy. I've tried applying a band-pass filter withing the human speech frequency, but when I plot the FFT graph, it seems like the noise is somehow mixed with the speech and I am unable to isolate and amplify it to hear it clearly. What are some possible suggestions that I could try to isolate the conversation and amplify it, so that it can be heard clearly? Here is a link to the audio file: (https://we.tl/t-ZCs2irR60HcHgnXg)

Angular SSR + cpanel + Node.js: UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token '??='

3 April 2026 @ 1:56 pm

I have a new Angular SSR project with this specs: ts.config: { "compileOnSave": false, "compilerOptions": { "strict": true, "noImplicitOverride": true, "noPropertyAccessFromIndexSignature": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, "skipLibCheck": true, "isolatedModules": true, "experimentalDecorators": true, "importHelpers": true, "target": "ES2022", "module": "ESNext", "moduleResolution": "bundler", "resolveJsonModule": true, "esModuleInterop": true, "lib": ["ES2022", "dom"] }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false, "strictInjectionParameters": true, "strictInputAccessModif

Alignment issue on context switch on a custom kernel

3 April 2026 @ 1:56 pm

I'm writing a kernel in rust and assembly for embedded system in RISC-V 32 bits for several month now. I just notice today that when I run some task, after a certain amount of time, my kernel panic with that error: { message: is_aligned_to: align is not a power-of-two, location: Location { file: "/Users/elouan/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs", line: 1374, column: 13 }, can_unwind: true, force_no_backtrace: false } I try to retrace the cause of the error, and I think it came from my context switch. After a certain time, maybe the task sp became unaligned. Here's my context switch: That's the save context function: .global trap_save_context .type trap_save_context, @function trap_save_context: # Clear mstatus.MPP and mstatus.mie to avoid interruption while saving and switching context li t0, ((3 << 1

Seeking Roadmap and Advanced Resources for Deepening JavaScript Knowledge

3 April 2026 @ 1:55 pm

Hi everyone, I am a developer with a deep interest in JavaScript. I have been working with the language for some time, but I’ve reached a plateau where I'm unsure of my current proficiency level or what specific advanced topics I should tackle next to truly master the language. I am looking for guidance on: Assessment: How can I effectively evaluate my current JS level (Intermediate vs. Advanced)? Learning Path: What are the "must-know" advanced concepts (e.g., Closures, Event Loop, Prototypal Inheritance, Memory Management, or Design Patterns) that I should focus on tomorrow to move forward? Resources: Could you recommend any specific books or advanced documentation that offer a deep dive into the engine's internals or complex patterns? I want to move beyond just "making things work" t

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

Ask AIMee: An accessible accessibility-focused AI chatbot

31 March 2026 @ 4:49 pm

We’re happy to introduce AIMee – an easy-to-use, AI-powered conversational chatbot focused on accessibility. AIMee has been designed to be highly accessible to users with disabilities. Ask her accessibility questions to get quick answers and guidance. The name “AIMee” plays off of the “AIM” (Accessibility In Mind) from “WebAIM” and also “AI”. Here are some […]

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

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.