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.

Printing - Python

14 January 2026 @ 4:15 am

I am making this basic movie booking system without interface which runs in the terminal.But when I want to print he list of movies to book the multi line printing is having a problem code: print("Welcome To MovieBooking") movies = [] def load_movies(): with open(r"Data\Movies.txt","r") as moviefile: for movies1 in moviefile: movies.append(movies1) load_movies() print(f"""Movies: 1.{movies[0]} 2.{movies[1]} 3.{movies[2]} 4.{movies[3]} 5.{movies[4]} """) and this is the output: Welcome To MovieBoking Movies: 1.Lokah 2.Mission Impossible:Final Reckoning 3.Jurassic World:Rebirth 4.Pet Detective 5.Polar Express I want to know how I can fix the gaps in the output like the Mission impossible (One line Gap) polar express

How to design an AI-assisted Angular application architecture

14 January 2026 @ 4:09 am

Any recommendation to create angular app using AI which has intelligence to address user query.

How can I get AppSheet to allow users to update a single field where main table is a view and links to updateable table?

14 January 2026 @ 4:02 am

New to AppSheet. Creating an app where the main data table is sourced from a BigQuery view (read-only). Two columns in that view are project_no (a four digit integer) and month (a string in format yyyy-mm). Second data source is from a BigQuery table having the same two fields plus a field for comments. I want the initial screen to list project records from the view. The last column should display the comment value from the table row matching on project_no and month. There should be at most one row in the table. On clicking a row this opens the detail view. In the detail view I want the last column to be a textarea in which the user can edit the comment - and changes are saved back to the table in BigQuery. I've been working with various AI tools to get steps to solve this problem. Have tried numerous things including generating a new 'month-project' field (concatenate(month, '-', project_no) in both the view (as a virtual field) and table.

CI/CD problem in the VoIP/RTC development

14 January 2026 @ 3:50 am

My team develops VoIP/ Real-Time Communication system (WebRTC/SIP/custom protocol). The core feature is to make the phone call and the actual call quality. I am not aware of any automation tool can validate the actual user experience of a phone call. Without an effective automation test tool I feel CI/CD pipeline is less useful here. I think the entire premise of CI/CD is: "Automate quality verification → gain confidence → deploy frequently and safely", but in my case it may end up with "continuous deployment of unknown quality" - which is arguably worse than careful manual releases. (But merge frequently is always good) So how can CI/CD help in my case ? And a specific question , what kind of unit test code that is worth developing in my case ?

Flutter DevTools fails to connect from host when app runs in VS Code devcontainer

14 January 2026 @ 3:45 am

I'm developing my Flutter app inside a vscode devcontainer, and everything is working except the devtools. Dart DevTools failing to connect inside a devcontainer The "Dart DevTools" page comes up on my host PC, but it can't connect to ws://127.0.0.1:44456/xxxx=/ws, because the websocket server is not running at 127.0.0.1 from my host PC's perspective. I think I need the server to run on 0.0.0.0:44456, but that doesn't seem possible based on my findings. I even tried running a reverse proxy on 0.0.0.0:4457 to automatically route traffic to 127.0.0.1:4456 -- But that didn't work either. I think I'm the problem at this point. Is this just a me problem? Do the dev tools work for anyone else when developing inside a devcontainer? I've spent enough time on it to realize I should probably stop and ask. Thank you for your tim

What is this software that appears when i go to factory reset? It hasnt appeared since i reset the phone. The 769 software and the sync software [closed]

14 January 2026 @ 3:45 am

enter image description hereWhat is this software that appears when i go to factory reset my phone? I have been having phone issues for about 2 years and it hasnt come back since I did a factory reset. Also unsure what the sync thing is. Any help would be greatly appreciated explaining what the software is.

gRPC request returns a response that missing fields while these fields are not zero-value when debugging

14 January 2026 @ 3:09 am

Background: A gRPC request from Apifox(a API platform, like postman) sent from local machine to the service also running at local, it's a pageing query for customer_id, here is what response proto looks like and what apifox get proto: message ListCustomerIDReply { repeated uint32 list = 1; uint32 total_count = 2; bool has_next_page = 3; } apifox: { "list": [ 15, 14, 13 ] } Problem: I don't get the last two fields, but when i start debugging it appears they do has value debugging and outside this method is proto-generated code, so here is the last place my own code could have reach outside the method: func _CustomerService_ListCustomerID_Handler(srv inte

How do I copy to the system clipboard in/using Java on Windows 10? [duplicate]

14 January 2026 @ 3:05 am

I'm using IntelliJ IDEA (to the best of my knowledge it's the Community Edition).

Nested Sets: which languages support this?

14 January 2026 @ 2:56 am

What functional or mixed functional programming languages support nested sets, akin to the usage in mathematics and set theory? Specifically those with a REPL? I tried Python and couldn't get nested sets to easily work. I tried frozenset() and set().

How to debug and identify if the component or a specific part of the component was rerendered?

14 January 2026 @ 1:51 am

In Angular, assuming I have this component where automationId is updated every new content while txt is updated less frequent. During those times that txt is NOT updated or the value remains as the previous one, would this-comp html (including txt) be rerendered? If so, how would someone debug it? @Component({ selector: 'this-comp', standalone: false, templateUrl: './this-comp.component.html', changeDetection: ChangeDetectionStrategy.OnPush }){ export class ThisComp { @Input() txt: string; @Input() automationId: string; constructor() { } } } this-comp template <span automation-id="automationId">{{txt}}</span> I have tried of couple of things but the result is conflicting: Enabling Chrome's Rendering > Paint Flashing. And I see the green highlight in that component - So I assumed that it was rerendered. I have tried replacing txt with input setter and