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.

Trying to convert .cdr to .iso with hdiutil and getting errors

16 December 2025 @ 2:39 am

this is my first post here so you must forgive me if I do not understand protocols on this site. I am trying to convert a .cdr disk image to a .iso. Once in the correct directory, I was told to try hdiutil makehybrid -iso -joliet -o FILENAME.iso FILENAME.cdr and was met with... hdiutil: makehybrid: attach of disk image failed: 35 hdiutil: makehybrid failed - internal error I have no clue what this command is supposed to do behind the scenes, but no other forum I've encountered has had this problem.

SwiftUI: Vertical Scrollview does not work with .scaledToFill Image background in Portrait mode

16 December 2025 @ 2:35 am

I have a horizontal scrollview that will display cards that have a vertical scrollview for some text. The vertical scrollview has a background image scaled to fill. The .scaledToFill modifier makes it so the vertical scrollview will no longer work in portrait mode. It works fine in landscape. Here is an example: struct ImagedScrollView: View { @State private var currentIndex: Int? = 0 var body: some View { GeometryReader { geoProxy in let size = geoProxy.size ScrollViewReader { scrollProxy in ScrollView(.horizontal, showsIndicators: false) { LazyHStack { ForEach(0...35, id: \.self) { index in let width = size.width-16 let height = size.height-16 ScrollView(.vertical, showsIndicators: false) { VStack {

Spring LDAP 2 to 3 Migration - Cannot search without binding

16 December 2025 @ 2:30 am

I am working on Spring LDAP migration from 2 to 3 in a Java agent running on Windows Active Directory server. In one piece of my code I authenticate as Administrator and perform a LDAP search using the token. After the migration, I see the following error: Caused by: javax.naming.NamingException: [LDAP: error code 1 - 000004DC: LdapErr: DSID-0C090CE5, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v4563] Are there some default value changed in the major version upgrade? I struggled to find Spring documentation - their official doc only mentioned what is new in 2.2 but not the change of 3. Any pointers will be appreciated!

How to Prevent Auto-Scroll During Streaming When User Manually Scrolls Up?

16 December 2025 @ 2:28 am

I'm building a chat interface where AI responses are streamed chunk by chunk (similar to ChatGPT). The current implementation automatically scrolls to the bottom as each chunk arrives, which works well. However, if a user tries to scroll up to read previous content while the stream is still coming in, the auto-scroll forces them back to the bottom, making it impossible to read previous messages. What I need is, when the user manually scrolls up during streaming, I want to pause the auto-scroll feature. When they scroll back to the bottom, auto-scroll should resume. Here's my current streaming and scroll management code: // Streaming function that processes chunks function sendStreamingRequest(question, country, conversationHistory) { console.log('🚀 Starting STREAMING request...'); // Create AbortController for this request currentController = new AbortController(); // Add assistant message placeholder to chat const chatMe

Querying resource values using LocalContext.current

16 December 2025 @ 1:58 am

I am doing this - val context = LocalContext.current val credentialManager = CredentialManager.create(context) Button( onClick = { CoroutineScope(Dispatchers.IO).launch { try { val accounts = AccountManager.get(context).accounts Log.d("Accounts", accounts.joinToString { it.name }) val interactiveRequest = GetCredentialRequest.Builder() .addCredentialOption( GetGoogleIdOption.Builder() .setServerClientId(context.getString(R.string.default_web_client_id)) .setFilterByAuthorizedAccounts(false) .setAutoSelectEnabled(false) .build()

Google Cloud Marketplace Equivalent to CloudFormation/ARM Templates for Multi-Resource Deployment?

16 December 2025 @ 1:55 am

I am preparing to publish a complex, multi-resource solution (e.g., several VMs, databases, networking rules) as a single click-to-deploy package on the Google Cloud Marketplace. On competing platforms, there are well-established, integrated methods for this kind of "solution packaging": AWS: CloudFormation templates define the entire solution and are used directly for Marketplace offers. Azure: ARM templates serve the same purpose for Azure Marketplace. My primary difficulty is identifying the Google Cloud Marketplace's required or officially preferred method for defining these multi-resource deployments within a single Marketplace offer. Does Google Cloud Marketplace officially support a single template/manifest file that orchestrates the deployment of multiple GCP resources, serving as the functional equivalent of CloudFormation or an ARM Templat

how to hide printf mesages?c++

16 December 2025 @ 1:45 am

i want to hide this print after you awner it but i dont know how: i need help as soon as posible if posible. i tried looking it up but i didnt find anything #include <iostream> int main() { int password={}; bool running = true; while (running) { std::cout << "password: "; int input; std::cin >> input; if (input){ password=input; while(1){ std::cin >> input; if(input==password){ input={}; fflush() --> std::cout << "password again: "; } else{ printf("wrong"); return 0; } } } } std::cout << "end.\n"; return 0; }

How to play ULAW 8kHz sound in Java today?

16 December 2025 @ 1:43 am

An older Java-program I maintain comes with a bunch of little .au files to play different sounds. All of these are identified by file as: Sun/NeXT audio data: 8-bit ISDN mu-law, mono, 8000 Hz. The program fails to play them complaining of unsuitable format. Having modified its format-selection to dump debug information, I came up with the following Java-code: protected static AudioFormat getFormatForPlaying(byte [] audioData) throws UnsupportedAudioFileException, IOException{ ByteArrayInputStream bais = new ByteArrayInputStream(audioData); AudioFormat format = AudioSystem.getAudioFileFormat(bais).getFormat(); DataLine.Info info = new DataLine.Info(SourceDataLine.class, format); if (AudioSystem.isLineSupported(info)) { System.err.println("Audio format ``" + format + "'' can be used straight"); return format; } System.err.

Shortcode use for Advanced Custom Fields (ACF) Wordpress plugin

16 December 2025 @ 1:37 am

I have a wordpress site that displays information about Projects (custom post type). I use the Advanced Custom Fields (ACF) plugin to create custom fields about each Project post, e.g. town and state. I'd like to display a left-aligned string for the Project location... <town>, <state> Example: Boston, MA or Albuquerque, NM. I use the latest Wordpress, BuildPro theme, WPBakery for a page builder and ACF plugin 6.7.0. For security reasons, I've read that shortcode support in ACF plugin was disabled in an update release. Documentation exists to re-enable it on a per-field basis. However, I'm unable to get any values for town and state fields using shortcodes in a text element. I just get blank values for ... [acf field="town"], [acf field="state"] I have tried the following workaround code, injected in functions.php by WPCode... /** * Enable ACF shortcodes

Loss of reference

16 December 2025 @ 12:16 am

I am trying to create a event emitter similar to the nodejs: // emitter.cc // ------------------------------------------------------ #include "event/emitter.h" namespace game { void Emitter::on(std::string eventName, Listener *listener) { std::list<Listener *> *listenersByEventName; try { listenersByEventName = listeners.at(eventName); } catch (const std::out_of_range &ex) { listenersByEventName = new std::list<Listener *>; listeners.insert({eventName, listenersByEventName}); } listenersByEventName->push_back(listener); }; void Emitter::off(std::string eventName, Listener *listener) { try { std::list<Listener *> listenersByEventName = *listeners.at(eventName); std::list<Listener *>::iterator iterator = listenersByEventName.begin(); while (iterator != listenersByEventName.end()) { if ((*iterator)->name

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.