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.

Live camera feed API for spring backend

21 February 2026 @ 5:01 pm

we are working on an integration with our mobile application where we are trying to create a live feed backend API that connects to an RTSP URL and returns some video data. The process we thought about is the following: mobile application -> /api/realtime/camera -> starts an FFMPEG process that connects to an RTSP url -> write process' input stream to API's response using webflux. This is a code snippet: ----------- process init ----------------------------- ProcessBuilder ffmpegBuilder = new ProcessBuilder( "ffmpeg", "-rtsp_transport", "tcp", "-i", rtspConnection, "-c:v", "libx264", "-preset", "ultrafast", "-tune", "zerolatency", "-b:v", "2000k", "-an", "-f

Failing to create a Zurb-Foundation project

21 February 2026 @ 4:50 pm

Trying to create new foundation project on Windows, but it fails with errors: > foundation new ? What are you building today? A website (Foundation for Sites) ? What's the project called? (no spaces) test ? Which template would you like to use? Panini Template: includes Handlebars templates and Sass/JS compilers < - - - > Installing dependencies... up to date, audited 18 packages in 16s 1 package is looking for funding run `npm fund` for details found 0 vulnerabilities undefined There were some problems during the installation. ✓ New project folder created. ✗ Node modules not installed. Try running yarn install manually. Once you've resolved the above issues, run foundation watch while inside the test folder. Please forgive my ignorance, but I have no idea what module is missing or how to install it. And when I try "foundation watch", again it fails: > cd test > foundation watch C:\Users\

Looking for mobile app design platform like old school Visual Studio 2010

21 February 2026 @ 4:47 pm

About a decade ago I used and became proficient in using Visual Studio 2010 for development of large Windows Forms Applications. I recently was asked to develop a small smartphone app and am looking for a modern IDE to use as a similar visual development platform to prototype this mobile app, probably in java. Specifically, what I am looking for is a development environment with a window displaying code, a window showing available UI controls, and a design canvas onto which controls can be placed. I downloaded VS2026, Eclipse, and Android studio but do not see anything like the old school visual studio IDE I'm used to. Am I missing something here or is this type of prototyping platform no longer available? Thanks.

Mouse pointer (double arrow) for ImGui window resize

21 February 2026 @ 4:41 pm

Using Windows 11 and Vulkan: I was experimenting with the ImGui examples and noticed that the double arrow (horizontal, vertical and diagonal accordingly) is shown while resizing an ImGui window. In my programs, I can resize an ImGui window but I get the regular mouse pointer. What setting controls this behavior?

using children in ripple-ts

21 February 2026 @ 4:36 pm

I am new to ripple and currently i am working on a project where i tried to use twmerge along with ripple - tried doing something like this import type { Component } from 'ripple'; import { cn } from '../utils'; import { buttonVariants } from './buttonVariant'; export component Button( { variant = 'default', size = 'default', class: className }, props: { children: Component }, ) { <button class={cn( buttonVariants({ variant: variant as 'default', size: size as 'default' }), className, )} > {props.children} </button> } and inspect console says props is not defined

Live Preview for images changed in real time then applied on a mesh

21 February 2026 @ 4:35 pm

I want an answer as to whether this could be possible and how in theory? This is a VERY specific thing. In Ogre meshy you can load a mesh and load on a texture on the mesh and only AFTER a .material file is edited to point to a .png/.jpg with that texture does it appear. Since this texture is made in an art program, its original extension is going to be one specific to its program with its layers intact (like .kra for krita files) This is fine but what if you have to edit the texture immediately after because it takes a lot of tweaking to get it to look right on the model? You have to edit the texture file, then save it with the same file extension and name and basically replace the previous version of it. (Continuously doing this you could lose your file with layers if you forget to save it with another extension at some point and exit) I work around this currently but is there any way to make this so that it somehow makes a smoother live preview experience? I feel li

How to extend image in SwiftUI?

21 February 2026 @ 4:17 pm

How can I achieve the Apple-style effect in SwiftUI where an image extends beyond its bounds and transitions into a blurred continuation of the same image, creating the appearance that the image fills and blends naturally into the surrounding background, like in App Store banners and Apple TV+ episode cards?Apple TV+, extended image.

WP Native Shortcodes Failing to Display in JetEngine Listings and Popups – Seeking Assistance =)

21 February 2026 @ 3:58 pm

The problem: I was designing an online store and needed to perform a simple mathematical calculation between meta fields of custom post types (CPTs). Since there is no clear documentation on how to do this using the native JetEngine tools embedded into your Elementor plugin, I resorted to the old-fashioned way by adding a PHP custom code. In this case, I modified the theme’s functions.php file. I then assigned the required variables to the native WordPress shortcodes and attempted to display them in JetEngine listings, popups, and custom posts. Here's where the issue begins: If the value I’m trying to display via the WordPress shortcode is static and not fetched from the CPTs using $var = jet_engine()->listings->data->get_meta($var2) it somewhat works for all the listed elements, th

Can someone explain file management to me for Pycharm/ IDEs

21 February 2026 @ 2:46 pm

I'm nearly a complete noob to development/ scripting but not to tech or computer work. I've had a hard time finding content explaining how file management works with IDE's like pycharm. In every other software I've used, you simply make a project folder and start saving files in there. Open them up and start working. All you need to do in other softwares is find the working file and open it. I know you have to install python to your machine, and this works as an interpreter but even for simple things like trying to import a project folder or a python file, it seems way more complicated than it should be. I've gotten errors just trying to do something as simple as that (SDK seems invalid), so I'm wondering if anyone could elaborate at a high level of what is happening with file management so I can effectively backup, import and save project files properly for use on other machines if need be.

Vertex AI Script does not open chatbox

21 February 2026 @ 10:22 am

enter image description hereI have created an AI agent using Google Vertex AI and would like to integrate it into my website via a widget. The integration works fine with the standard script provided by Google. However, the standard styling does not meet our design requirements, which is why I have customized the widget code accordingly. Since making these adjustments, the following problems have arisen: When I click on my customized widget, the chat window no longer opens. In addition, after opening, the chat window should appear at a position on the page that I have defined (not at the default position of the original widget). Does anyone have experience with how to restore the opening behavior correctly and how to overwrite the position of the chat window cleanly without affecting the fu