r/AskProgramming • • 56m ago

C# filestream writing to bitlocker drive binary files are corrupt, any ideas?

2 Upvotes

I wrote a program in c# that stores multiple files in a single file similar to zip or tar. That program just uses filestream writing, nothing fancy. I recently got a new computer, so I copied my compressed file onto the computer and was able to extract files from it.

After using my program, I used bitlocker on the ssd. Bitlocker gives you two options, use the old aes-cbc or new xts-aes cypher and if you want to do the entire drive or just existing files. I took the default of new xts-aes and only existing files. Let it run until the drive was encrypted and rebooted.

First thing I did after reboot was try to extract more files using my program and it found the input file corrupted. That shouldn't happen, but I just reloaded the file from a backup and things seemed to be working again. However, when I extracted to the encrypted ssd, text files were ok but media files like images and videos were corrupted. I used a diff tool and confirmed every single text was ok and every other file corrupted. Extracting from the same file on the encrypted ssd to a flash drive worked perfectly and nothing was corrupted. So only writing to the encrypted ssd from my app was having issues. Copying from the extracted files on the flash drive to the ssd also did not corrupt the files.

My understanding is bitlocker shouldn't care about the file type and it should be completely transparent to the application, yet thats not the behavior I was getting.

I then turned bitlocker off on the ssd, let it decrypt the drive and rebooted. The file on the ssd was not corrupted by the decrypt and extracts from the same file to the ssd now worked for all file types.

I turned bitlocker back on for the ssd and used the older aes-cbc and told it to encrypt everything including free space. After it completed and I rebooted, my program now correctly extracts files to the ssd.

So clearly other applications like the windows file copy didn't have issues with the bitlocker ssd and only my applcation did. I'm not able to come up with a theory as to how this could happen. I could see if everything was corrupted but the fact that text files are all ok is even more confusing. I used crystaldiskinfo to confirm there were no read or write failures on the ssd and the event logs don't show any errors reading or writing files to the ssd or bitlocker issues.

I guess my next step would be to decrypt the drive again and try the original bitlocker options to see if the problem returns. Any ideas what could be going on? Everything I've been able to read says bitlocker shouldn't care about the file type and bitlocker presence should be transparent to filestream writing in c#.


r/AskProgramming • • 13h ago

Career/Edu how to study/read technical books like "Hands on Machine learning with Scikit-learn, keras and tenserflow"

0 Upvotes

ive recently got Hands on Machine learning with Scikit-learn, keras and tenserflow after going through a lot of recommendations on starting machine learning, im a second year college student pursuing my bachelors in AIML and i do have ML as my major. My major concern now is how do i study from a technical book? Im quite an avid reader but technical is a genre ive never touched except now. Any advice or tips to start my ml study journey from this book?


r/AskProgramming • • 4h ago

what is more complicated in CS between Bill built OS Windows vs Sergey, Larry invented a new algo PageRank for search engine?

0 Upvotes

r/AskProgramming • • 14h ago

WebRTC on localhost?

0 Upvotes

For a personal project, I needed to create a video call and screen sharing service, but to avoid paying for a server, I was wondering if it’s actually possible to run the server on localhost and have the other person connect through a Cloudflare tunnel. Do you know if this is possible? How feasible is it, and what problems might arise?


r/AskProgramming • • 17h ago

Other SpecKit experience?

0 Upvotes

What your experience regarding spec driven development especially using SpecKit?

Rather positive or different opinion?

For me personally Im a bit overwhelmed with all the bureaucracy with those constitutions and later having walls of text to digest.

Maybe my org done something wrong with this but it opened a Pandora box of problems we never had before.


r/AskProgramming • • 22h ago

How can you prevent the Windows SmartScreen warning from appearing the first time you create a Windows application?

1 Upvotes

I've been working as a software engineer for the past 13 years, but I've never built applications for Windows. I'm now testing an idea, but I've run into an issue with SmartScreen protection and am unsure whether I need to verify my application at all.

Since I'm validating my idea, I don't want to register a company before I know whether my application is useful. It would mean extra expense and bureaucracy. If I understand correctly, without a company, I can sign my application as an individual (I'm based in the EU), but SmartScreen won't go away; it will just show my name as the publisher. And even if I sign as a company, users will still see a warning the first time they install each version. Since I release several versions per week and get up to 10 downloads a day, signing as a company wouldn't help much either.

I've added anonymous tracking to see whether users install my application, and I see that more than 90% don't. So I'm leaning toward the idea that the SmartScreen warning is scaring away my first users.

So my question is: is it worth it? How do people usually get started with a new Windows application? I don't think I'm the first to face this. Is there another option besides registering a company and signing the application under its name?

P.S. I also have a Mac version, and I was able to sign it with my personal identity, which resolved the issue.


r/AskProgramming • • 1d ago

Other I want to build a tool to transfer liked songs between YouTube Music accounts but I have no idea how to start ?

1 Upvotes

so i have this annoying problem where all my youtube music liked songs are also showing up in my main youtube liked videos playlist and it's getting pretty messy.

i want to move all my liked songs to a separate google account but doing that manually would take forever since i have thousands of songs. i was wondering if there's any tool that can transfer all my liked songs from one youtube music account to another. something where i can connect both accounts and just transfer everything at once. or maybe select specific songs and playlists to transfer. it'd also be nice to have an option to remove songs from the original account after transferring them.

i couldn't really find anything that does exactly this so i'm thinking of trying to make one myself. if anyone knows something similar please let me know.

i'd also like to add spotify support at some point so people can transfer liked songs between spotify accounts too but that's something for later. for now i just want to figure out the youtube music part.

basically i want the tool to fetch all my liked songs and let me transfer my entire library to another account or select specific songs and playlists. and also remove songs from my liked songs because that's actually the main reason i want to make this. i do have some coding experience but i'm still a beginner so i'm not really sure where to start with something like this and also i know APIs and hosting can cost money but is there a way to make something like this completely free? like can i build and run the whole thing without spending anything? what libraries or technologies should i look into?

i mainly want to build this as a learning project. if i manage to get it working i'll probably put it on github so other people can use it too. just need some guidance on where to start and what approach would make sense.

not looking for anyone to build it for me. just trying to figure out how to get started. any help would be appreciated.


r/AskProgramming • • 19h ago

Learning Python in an age of AI?

0 Upvotes

I am doing a degree apprenticeship in Cybersecurity over the next four years, and I’m lucky that my employer is paying me to do this, despite not “needing” it for my role.

One module in the first year is Python and, I won’t lie, I’m struggling. Initially, I enjoyed the learning, though it doesn’t come naturally to me. Despite spending lots of evenings and weekends on it, I’ve struggled to learn fast enough to keep up. I’ve got two big projects due in after Xmas, and I’m feeling a bit demoralised.

I think part of it is that I can see how easily AI blasts through this stuff. In a way, I’m quite excited about this. I enjoy using Claude to make my own small projects, and AI-assisted PowerShell scripting at work has been a real force multiplier. But nobody is ever going to pay me to sit there and write code. I can, however, see myself increasingly using it to make tools for my team's workflows.

When I finish this module, I’m going to have lots of other work to balance alongside my day job and home life, and I know I’ll forget a lot of this. It can leave me wondering what the point is.

Anyway, this isn't meant to be a downer. I’d like to take the positives from this experience. What would you say are the most important things to take away from learning programming that are still important and/or useful in an age of AI?


r/AskProgramming • • 19h ago

I keep seeing a number of vibe coded applications on GitHub

0 Upvotes

For the avoidance of doubt: I am not a programmer and I am not discussing code. My question concerns the production of code and avoidance of AI to support a marginalised business model of software as a product. It is contextual and not output based hence seeking expertise on the subject matter.

I am hesitant and don't feel it's correct to suggest that Claude is a contributor. What are the security implications of the wave of imitations of industry applications without the quality control, performance and security testing? In other words the conditions of producing code.

Edit: For context I don't have a programming background but from what I do know of coding the labour isn't merely the code itself it's all the other aspects involved as well. I find the suggestion that you can exclude the necessary and complicated work because Claude can perform a parlour trick extremely concerning.

Thanks for the comments about Cluade. I didn't occur to me that visibility is important to avoid it. I am not so idealistic to believe that no software is developed without it. When Serif developed the Affinity Suite I paid for it similarly with Softmaker's office suite.

I am always keen to purchase quality software as it supports my own work but I also believe in the merit of delivering quality work. I don't see that same appreciation with this approach to AI. I recognise it plays a part in much the same way as typing a document doesn't involve a grammarian or copyediting.

I am happy to support independent and secure apps from developers but I don't know where to start beyond say the App Store, I guess?


r/AskProgramming • • 1d ago

Other What language should I use for my app's backend?

0 Upvotes

Hi!

I'll try to keep this short:

I'm going to start building a social media-like app for my university and I'm wondering which language i should use for the backend.

The frontend will be typescript, react native + expo (unless I end up switching it for some reason).

For the backend I'm between python and typescript + nestjs.

If you want more context, I'm studying computer engineering, I'm halfway through my studies, and I've already build two other big apps, one for desktop and one web app, so the size of this app is not a problem don't worry.

The idea of this app is to have class notes, discussions, news, etc. all in one place, and also add some instagram-lime entertainment (allowing the users to upload pictures and stories). I know it will most likely not blow up or anything like that, again, don't worry, i just want something fun to build. Also if i see a oart of the idea isn't good I'll just scrape it.

The main reason as to why I'm building this is because I want to learn new things during summer and try coding more by myself than with AI. I want to practice things i saw in class but we haven't really implemented. I also want this to add to my resume and i think having a full stack app will do the job.

Now, my options for the backend are python because it's the one i know the most and i want to learn even more, and typescript because chatgpt (yes, i know. Sorry) told me it's a good option for the frontend and if i use it for the backend ill be able to share types and a few other things. One con is that I don't know typescript but ill learn it anyway for the frontend.

I'll use typescript for the frontend because i want the app to be available on android ios and web and ts works for all three.

I think I'm not missing anything of my mind-dump here.

Then, should i use python, ts, or another option?

Thanks


r/AskProgramming • • 2d ago

Career/Edu Am I ready to start working on a real project as a beginner?

7 Upvotes

I've been thinking about working on a small project based on a problem I've noticed at my university.

The library has a pretty basic seating system. You ask a staff member for an available seat, they give you a number, and then you have to walk around looking for it. During exam periods, this can get pretty frustrating.

I'm currently in my second year of CS. I've spent about a year learning C and covered things like pointers, linked lists, trees, and data structures. However, most of my experience so far has been solving exercises. I haven't really built anything substantial on my own.

I thought this could be a good opportunity to apply what I've learned and understand how programming works beyond exercises.

I'm just not sure whether I'm ready for something like this or if I'm getting ahead of myself.

For those who have been in a similar situation, how did you get started? Any advice would be appreciated.


r/AskProgramming • • 1d ago

Other What exactly is vibe coding ?

0 Upvotes

I started a project of porting a PSP game on 3DS and when i started the project, i didnt really know how to start as i didnt saw videos about this type of project so i asked about how to do it. Later on, i've found a subject about vibe coding and im scared that me asking about how to work on my project result in me being a vibe coder


r/AskProgramming • • 2d ago

Career/Edu If you were starting from scratch in 2027, which tech stack would you learn and why?

0 Upvotes

Hey everyone,

I'm currently pursuing my M.Tech, and I want to start learning programming and software development from scratch. I don't have any practical experience yet.

Considering the current job market, the rapid growth of AI, and future industry demand, I'm confused about which tech stack to focus on.

My main goals are to:

  • Learn a tech stack from fundamentals to an advanced level.
  • Improve my chances of securing a good software engineering job.
  • Develop skills with strong demand and long-term career potential.
  • Build my own products, pursue freelancing, or start a startup if campus placements don't work out.

I would love to hear your thoughts on:

  • Which programming languages and tech stack should I focus on?
  • What additional technologies and advanced concepts should I learn alongside them?
  • Which skills are worth investing time in considering the rise of AI?
  • What would your learning roadmap look like if you were starting from zero today?

I'd especially appreciate advice from experienced developers and people currently working in the tech industry.

Thanks in advance for sharing your experience and suggestions!


r/AskProgramming • • 3d ago

Other I am brand new to basic programming and looking for some advice

5 Upvotes

So, I know a very baseline knowledge of coding and am looking here for some help. My goal is to automate edits made from exported playlists so they work with my phone for MP3 files.

The edits that would need to be made for these playlists is as just turn location X to Y and switch \ to /

From brief google searches, it recommended python, but I am unsure how much to trust google. I also am curious if it is fairly simple to export it as an executable and run the above edits to all m3u8 files in the same folder as the executable.

Edit: Thank you all for the help, has been rather informative


r/AskProgramming • • 3d ago

Why don't browsers have "Pause" features to limit RAM usage?

0 Upvotes

Situation / Background Info (if TL;DR skip to the actual question at the bottom):

I'm currently playing a CRPG (Pathfinder: Kingmaker, just think of Baldur's Gate 3 if you're unfamiliar) which, for an optimization-inclined player such as myself who is not super familiar with the mechanics, requires a LOT of open Wiki pages to see how things work and what skills/spells/items/etc do. I go back to reference many of these pages occasionally, so it's easiest to keep them open.
At times I also have Youtube open, I'm sometimes taking a break and browsing other stuff, or even letting something download in the background while I play.

I think to myself:
Right now I have 8 wiki/guide tabs open, and that's after closing over 10 others, ones which I don't have to check as frequently. I also have 6 other tabs open unrelated to the game, most of which I only touch once a day or even once every couple of days.
Why the heck does my Internet Browser take up 5+ GB of my RAM, just to "hold" these pages in the background? And when I do check on them, I don't require to actually do anything advanced? They might as well be a large screenshot for my purposes.
I googled and found this answer:
https://www.reddit.com/r/AskProgramming/comments/s8ogk6/how_do_browsers_use_so_much_ram/
If I understand correctly, the short of it is that each tab runs its own instance of an engine for various purposes. That much makes sense.

The first available (lacking) solution:
I use OperaGX, which at least in its advertising seemed to be very proud of its "RAM Limiter" feature. All it does is give you a slider where you can limit your RAM usage for the browser - essentially I can set the slider to [X] GB and it will only ever take up [X] GB at a time.

Why it is lacking:
As far as I can tell, if I set the limit to, say, 1 GB, there is no differentiation between what I care or don't care about. Maybe my youtube video will be affected all the same, resulting in stuttering or being unable to play at all. Maybe that download I'm doing in the background will be affected.

The other available solution:
I did a little googling on "Tab Suspender" extensions, which claim to reduce memory usage by hibernating tabs you haven't used in some amount of time. It's not my perfect solution, as I don't even care to have the tabs run all their garbage even when I AM accessing the page, but maybe it's good enough.
I find "The Great Suspender Reloaded" which seems to be the #1 recommendation (or at least, the original Great Suspender was...), go to download it, and OperaGX pops up with a warning window:
"This extension's contents have not been verified by Opera"
"It can: Read and change all your data on all websites."
"It can: Read and change your browsing history on all your signed-in devices."
Well if that's not the biggest red flag I've ever seen, I don't know what is. I ain't touching that.

-----------------------------------

Anyways, my preferred solution:
Have a way to "pause" a tab by "converting" a page into a simple screenshot. You click a button, the browser automatically takes a screenshot of the page, and displays it as such. All other memory or CPU requirements are killed. I don't need each of my 20 wiki pages to constantly be running muted videos/ads when I access them (and maybe even in the background? I wouldn't put it past them), I just need them to display text and look as pretty as they did when I first loaded them. If I want to access the actual page again, I can just hit the "reload" button and it reloads the actual web page again.

Quirks:
I imagine this wouldn't be very compatible with resizing the browser window. I don't care. If I care, I can reload & pause it again at the new size.
Maybe we'd still want page links to work, so even on a "paused"/"screenshotted" page I can still click a link and then the next page is accessed as normal. I'm sure this would be extremely easy to implement - if adblockers can detect specifically ads and block them, I'm sure this "pause" feature can detect text/image links and overlay clickable zones onto a PNG.
Maybe this could conflict with logins? But I highly doubt that, and even if so, I'm the one choosing to pause the page - I'll relog if I have to when I get back to the real website.

Questions:
Is this unfeasible for some reason?
Does something like this exist and I'm just ignorant?
Why doesn't every browser include this kind of thing as a baseline option? Is the use case too narrow? Are the browser companies too symbiotic with sneaky advertising to allow for this?

Thanks!


r/AskProgramming • • 3d ago

Other Where to commission Rpg Maker MZ filter plugin (no AI), and a fair asking price

1 Upvotes

Title; I really want a filter that makes the game look like how pictures do on the ntsc-rs website except for the glitch bar at the bottom. I've never commissioned code before so I'm wondering where to look and what's fair!


r/AskProgramming • • 2d ago

Architecture Advice needed

0 Upvotes

Hey guys, I started developing an app which is mostly ai internet search based, my problem is, I always hit usage limits, since I only use free options. (It will change in the future)
Do you guys have any other idea how an ai could search on the internet without a subscription?
My other question is, Is it a good idea to have a fallback system on free plan gemini api keys?
Are there any other way an AI could search the internet for me, totally free?
Thanks for your time and reply!


r/AskProgramming • • 3d ago

Other Contracting a developer?

8 Upvotes

Hi! I have no idea what I’m doing or whether this would be worth it.

I run a commercial laundry service that is growing in volume rapidly. Unfortunately, the type of laundry industry I’m in is niche and there isn’t really an app or software specifically for it (I’ve tried them).

Currently, I use Google Sheets, forms, invoice ninja, Wix, and a few other programs just to run my business. I have to manually text/email hundreds of customers about their order status. I’d love to have my own management software to track all of this in one place and maybe export to invoice ninja.

The things I’d need are:
• Laundry tracking database
• Auto reminders (customer + me)
• Status alerts
• Pickup/delivery routing
• Scheduling form
• Data analysis
• Customer/order database
• Inventory tracking

Is it worth contracting someone to build this?

EDIT TO ADD: I have my own web domains, so the software can be an extension of those in just a browser version. Doesn’t need to be an app. This would be for my own use only.


r/AskProgramming • • 3d ago

C/C++ Need to translate multiple files from Rust to C, but can't understand C very well... is there any GitHub project or something similiar that translates Rust to C?

1 Upvotes

i know my question is kinda dumb, but with so many repositories out there, maybe theres a chance lol


r/AskProgramming • • 3d ago

Why can’t we invent something with the simplicity of python but the performance of C++?

0 Upvotes

r/AskProgramming • • 4d ago

Other Has anyone ever tried creating an alternative set of technologies for the web?

8 Upvotes

Poor title, sorry.

People generally don't like JS. I know why we don't replace it. But I do wonder if anyone's actually tried, even as just an experiment?

Even if it's never gonna be practical, there's nothing preventing someone from making a browser that doesn't follow HTML5 standard to the letter and interprets a different scripting language, yes? Similarly, it could render other things than HTML/CSS if it wanted to. Has that been tried?

(To be clear, I'm very much not talking about a language that compiles to JS like TypeScript)


r/AskProgramming • • 4d ago

Architecture We counted 12 notations in a pretty standard React/FastAPI/Postgres setup. Where do you draw the line on seams?

0 Upvotes

Take a pretty standard stack for a task manager with an AI feature: React and TypeScript, FastAPI, Postgres with an ORM and migrations, Redis doing double duty as cache and Celery broker, a hosted LLM API, all of it in Docker with GitHub Actions, Terraform and Kubernetes around it. Nothing weird, every piece is the usual choice for what it does.

If you tally what someone has to read to work in that repo, it comes to twelve notations. Four carry logic (TypeScript, Python, SQL, shell in CI), two are presentation (JSX and CSS) and six are config (JSON, TOML, three unrelated YAML schemas, Dockerfile, HCL, dotenv). That's an undercount, since it leaves out the ORM's query language and the prompt templates that are half English and half JSON.

What bothers us more than the number is what happens to a single click. "Prioritize my tasks" goes from a TypeScript handler to a generated client, then JSON over HTTP, a Python route, schema validation, a queue job, a prompt, the model, a parsed reply, an ORM write, and finally a cache invalidation where the key is just a string two codebases agree on because people remember to. By our count that's at least eight times the same intent changes shape, and no compiler sees both sides of any of those changes.

We'd put the real cost in the crossings, not in any single tool. Each one is two descriptions of the same thing that humans keep in sync by hand, so each side can pass its own tests while the pair is wrong. That's probably why drift bugs get through review and CI so reliably. We suspect a lot of it is inherited convention and not something the problem requires.

Full disclosure, this is the exact question our founder, Jason Mars, spent about a decade on. Jac, the language he created, is where he landed: one language and one type checker across the frontend, backend and data layer, so those seams are the compiler's problem and not yours. We're more curious about the other side of it, though.

Where do you draw the line? Do you accept the seams and put your effort into contract tests and codegen, or have you found ways to cut down how many there are?


r/AskProgramming • • 4d ago

Algorithms Help me please

0 Upvotes

Hey guys, I have a DSA exam in about 4 hours and I’ve just started studying. The topics are mostly beginner friendly (Bubble sort, recursion, quick sort, merge sort etc). What’s the most efficient way to study rn in order to get a pass?
(I’ve just started studying because I’ve been ill)


r/AskProgramming • • 5d ago

Why are vague error messages such as "Something went wrong" so prevalent in software nowadays?

123 Upvotes

I tried logging in to my bank today and the page said "Something went wrong. Please try again".

Personally I find these error messages very frustrating and borderline infantile, because they give me no hints about what could be done about this error, and whether there is something I can actually do myself to remedy them? Is this "something" that "went wrong" on the bank side (i.e. it is malfunctioning at the moment)? Or is it something with my Internet connection? Or my browser configuration (like browser extensions that play badly with the page's code)? If the bank system is not working properly, why don't they say it plainly: "It is our system's operation that went wrong". If something else, why doesn't the error message say so?

I understand that the opposite such as "Error 0x804634FF in module blahblah.dll address 0x0001:0x37E5" is also frustrating, but I think this has gone too far in the other direction. Every possible error is now "Something went wrong, good luck next time" with no context whatsoever.