r/stackoverflow • • Oct 30 '25

Question Help: Any way to cross build Cordova apps in Termux?

Post image
1 Upvotes

I know it can be hard but there should be a way to do it in this OS. Can someone help me. Does anybody tried to build Cordova apps in a phone?


r/stackoverflow • • Oct 05 '25

Question Why stack over flow do this ?

Post image
1 Upvotes

They banned me for 2 days wtf


r/stackoverflow • • Sep 11 '25

Question Auto save email to PDF from outlook

1 Upvotes

As the title suggests I am trying to automatically save an email to PDF every time a specific email hits an outlook folder.

I already have the outlook rule set in place where a specific email get moved into a folder and I am using the script below. The issue I am having is that the email does remain unread but I have to manually run the process each time. Is there any way that this can be automatic?

Sub SaveEmailsAsPDF()

Dim ns As Outlook.NameSpace

Dim inbox As Outlook.MAPIFolder

Dim mail As Outlook.MailItem

Dim Item As Object

Dim wordApp As Object

Dim wordDoc As Object

Dim savePath As String

Dim folderName As String

Dim fileName As String

 

folderName = "test folder"

savePath = "test path”

 

Set ns = Application.GetNamespace("MAPI")

Set inbox = ns.GetDefaultFolder(olFolderInbox).Folders(folderName)

 

If inbox Is Nothing Then

MsgBox "Folder not found!", vbExclamation

Exit Sub

End If

 

Set wordApp = CreateObject("Word.Application")

wordApp.Visible = False

 

For Each Item In inbox.Items

If TypeOf Item Is Outlook.MailItem Then

Set mail = Item

fileName = savePath & CleanFileName(mail.Subject) & ".pdf"

 

' Save email as .mht

tempMHT = Environ("TEMP") & "\tempEmail.mht"

mail.SaveAs tempMHT, olMHTML

 

' Open in Word and export as PDF

Set wordDoc = wordApp.Documents.Open(tempMHT)

wordDoc.ExportAsFixedFormat OutputFileName:=fileName, ExportFormat:=17 ' 17 = wdExportFormatPDF

wordDoc.Close False

End If

Next Item

 

wordApp.Quit

MsgBox "Emails saved as PDFs in: " & savePath

End Sub

 

Function CleanFileName(str As String) As String

Dim invalidChars As Variant

Dim i As Integer

invalidChars = Array("\", "/", ":", "*", "?", """", "<", ">", "|")

For i = LBound(invalidChars) To UBound(invalidChars)

str = Replace(str, invalidChars(i), "_")

Next i

CleanFileName = Left(str, 100) ' Limit filename length

End Function

 


r/stackoverflow • • Sep 01 '25

AWS AWS SigV4 not working with form-data type request body

1 Upvotes

Hello. I have used HTTP API in AWS with lambda, to integrate an endpoint hosted on a private EC2. I am using AWS SigV4 as authorization. It works fine with one route of this API (api.com/abc) where I am sending JSON data as request body. For another route (api.com/xyz), I am sending form-data request body with the key' data' and some JSON text as value, and another key called 'file' with an attached pdf file as the value. In this case, when I send the request after authorizing using AWS SigV4, I get the response 'Forbidden'. In this request I can see that the automatically generated Header 'X-Amz-Content-Sha256' and its value, are missing, that are present in the first request, which I understand is the reason for such response. How do I resolve this?


r/stackoverflow • • Aug 19 '25

SQL SSIS Pipeline Fails on Early Dates (0001-01-01) After Upgrading to Microsoft Oracle Connector 2019 / SQL Server 2019

1 Upvotes

Hello all,

I have an SSIS pipeline that reads from an Oracle database and inserts into the same rows with dates like 0001-01-01 and 9999-12-31. It uses the Attunity Oracle Connector v5.0 and runs on SQL Server 2017. This setup works fine.

However, after upgrading to SQL Server 2019 and switching to the Microsoft Oracle Connector 2019, the package fails during inserts to the destination with the following error:

SQLSTATE: 22008 Message: [Microsoft][ODBC Oracle Wire Protocol Driver] Datetime field overflow. Error in parameter 2.

According to research (e.g chatgpt ,….) the new Microsoft Oracle Connector does not accept dates earlier than 1753, which causes the pipeline to fail.

Is there any solution to keep these dates without changing the overall logic of the pipeline?


r/stackoverflow • • Jul 03 '25

Question What do you think about my Stack Overflow profile?

1 Upvotes

what do you thin about my stackoverflow profile ?

I've been working on building my presence on Stack Overflow, answering questions, improving my profile, and trying to contribute meaningfully to the community. I'd really appreciate it if some of you could take a look at my profile and share your thoughts.

  • What stands out (good or bad)?

  • Are there areas where I could improve?

  • Any tips on how to grow further or get more involved?

Here’s the link to my profile: https://stackoverflow.com/users/17541709/fiad

Thanks in advance for your feedback!


r/stackoverflow • • Jun 22 '25

Other code [HELP] NestJS/TypeORM Multi-tenancy (Schema-based) - DataSource Inject & Repository Init Issue in Specific Service

1 Upvotes

I'm implementing schema-based multi-tenancy with NestJS, TypeORM, and PostgreSQL, following a pattern similar to https://github.com/thomasvds/nestjs-multitenants/tree/master.

Most services work fine, but in AssignmentsService, the findAll() method throws an error because the assignmentsRepository is uninitialized with the undefined

My code:

//assignments.service.ts

@Injectable()
export class AssignmentsService {
  private assignmentsRepository: Repository<AssignmentsEntity>;
  constructor(
    @Inject(forwardRef(() => SubmissionService))
    private readonly submissionService: SubmissionService,
    @Inject(forwardRef(() => AssignmentQuestionsService))
    private readonly assignmentQuestionsService: AssignmentQuestionsService,
    private readonly batchesService: BatchesService,
    private readonly topicsService: TopicsService,
    private readonly coursesService: CoursesService,
    private readonly teacherProfileService: TeacherProfileService,
    private readonly batchMappingService: BatchMappingService,
    @Inject(CONNECTION) connection: DataSource,
  ) {
    
this
.assignmentsRepository = connection.getRepository(AssignmentsEntity);
  }

async findAll(): Promise<AssignmentsEntity[]> {
    return this.assignmentsRepository.find({
      relations: ['teacher', 'subject', 'batch', 'course'],
    });
  }

// assignment.module.ts

import { forwardRef, Module } from '@nestjs/common';
import { BatchesModule } from 'src/batches/batches.module';
import { CoursesModule } from 'src/courses/courses.module';
import { StudentsModule } from 'src/students/students.module';
import { TeacherProfileModule } from 'src/teachers/teacher.module';
import { TopicsModule } from 'src/topics/topics.module';

import { AssignmentQuestionsModule } from './assignment-questions.module';
import { AssignmentSubmissionReviewController } from './assignment-submission-review.controller';
import { AssignmentSubmissionReviewService } from './assignment-submission-review.service';
import { AssignmentsController } from './assignments.controller';
import { AssignmentsService } from './assignments.service';
import { SubmissionModule } from './submission.module';

@Module({
  imports: [
    BatchesModule,
    StudentsModule,
    TopicsModule,
    CoursesModule,
    TeacherProfileModule,
    forwardRef(() => SubmissionModule),
    forwardRef(() => AssignmentQuestionsModule),
  ],
  controllers: [AssignmentsController, AssignmentSubmissionReviewController],
  providers: [AssignmentsService, AssignmentSubmissionReviewService],
  exports: [AssignmentsService],
})
export class AssignmentsModule {}

The problem is that findAll is executed before the connection is established. After it throws an error(the repository is undefined) then the constructor is run and the connection is established. Every function in this service is failing.


r/stackoverflow • • Jun 21 '25

Question Rejection of edit

1 Upvotes

Hi, I made an account to sumbit an edit for a proposed solution in a thread with many proposed solutions. Some of them use a function of interest wrong. This edit comes after applying the solution in the company i work and identifying that there is an extra -1 when copying from a buffer to another one. I dont understand why there is a rejection, i tried two times and still got rejected. The function BIO_get_mem_ptr returns a pointer which has a length field. The length is supposed to be the length of the raw buffer so when copying from this buffer, there is no point of adding -1. Actualy this way, considering the problem this thread tries to solve, the base64 string is 1 less byte than supposed to be (thus making it not divisible by 4)

https://stackoverflow.com/questions/5288076/base64-encoding-and-decoding-with-openssl


r/stackoverflow • • Jun 16 '25

Question Quick question for devs: Ever been x-raying legacy code and wondered:

1 Upvotes

“Why did they add this?”

You check the commit history:

• “Fix bug”  

• “Update code”  

• “Temp patch”  

…and still get zero context.

We hit this exact wall building side projects. So we started building "GitsWhy":

An AI-powered VS Code extension.  

It reads commit diffs + history ,  then explains the intent behind each change.

Perfect for:

• Untangling legacy logic  

• Onboarding without guesswork  

• Detecting risky past changes

We’re opening early access, in case you want to try it:

👉 https://www.gitswhy.com

Curious : How do you currently figure out "Why" a change was made?  

Do you rely on commit templates, PR reviews, doc comments? I’d love to hear what works  or doesn’t.


r/stackoverflow • • Jun 11 '25

Question Is it OK to override a base class method in a trait?

1 Upvotes

I have a parent class and two child class, the two child classes have two overriden methods but both of them are same in the two child classes. Is it right to extract out these protected overriden methods as is to a common trait which contains other utils being used in the two classes as well.

If the overridden methods are completely identical in both child classes and you want to enforce a single source of truth, moving the override into a trait is correct.

or

Confusing and code smell

WDYT?


r/stackoverflow • • Apr 30 '25

Javascript Creating a form that displays a confirmation message with info inputted (relatively new to web dev)

1 Upvotes

So I'm working on a website for a school project (wish me luck), and I don't know much HTML, CSS, nor JS. I'm trying to create a joke form where the user can input some sensitive information and it gets 'stored on our unencrypted servers' and sent to them through 'an unsecure protocol'.

It's clearly fake, and I don't intend to share it nor publish it. It doesn't even have the capability of storing any other private info once the user reloads the file page.

I created the form itself, but the part where I'm stuck at is where the values of the input are fetched and then restated on the same page (a box shows up under the form with info). I was planning on adding two buttons; a confirm and edit button. However, the box under the form just won't show, even after hours of troubleshooting and tutorial watching.

Can someone help?

confidential-info-storage.html

<div class="content info-storage-content">
            <p><strong>This application was made with convience in mind. With this application, you no longer need to worry about forgetting your credit card, your SSN, your banking info, as you can just scroll through our database, past other people's info, and look at yours! </strong></p>
            <p><strong><em>And if you're worrying about your data being stolen, don't worry about it! We send your requests over to our home-server unencrypted through the outdated and very likely to be unsecure HyperText Transfer Protocol!</em></strong></p>
            <br>
            <br>
            <form class="confidential-info">
                <fieldset>
                    <br>
                    <br>
                    <legend>Input Your Confidential Data Here!</legend>
                    <label for="SSN">Social Security Number:</label>
                    <input id="SSN" type="text" placeholder="SSN">
                    <br>
                    <label for="BANKACCOUNT">Bank Account Number:</label>
                    <input id="BANKACCOUNT" type="password" placeholder="Account Number">
                    <br>
                    <label for="BANKACCOUNTPASS">Bank Account Password:</label>
                    <input id="BANKACCOUNTPASS" type="password" placeholder="Password">
                    <br>
                    <label for="CREDITCARD">Credit Card Info:</label>
                    <input id="CREDITCARD-NUM" type="password" placeholder="Card Number">
                    <input id="CREDITCARD-SC" type="password" placeholder="Security Code">
                    <input id="CREDITCARD-EXP" type="password" placeholder="Expiration Date">
                    <br>
                    <label for="OTHERINFO">Other Info You Want to Save:</label>
                    <br>
                    <textarea id="ADDITIONALINFO" placeholder="Phone Numbers... Additional Credit Cards..." class="other-info"></textarea>
                    <br>
                    <br>
                    <br>
                    <input type="checkbox">
                    <p>
                      <em>I'm not a robot or AI. ^</em>
                    </p>
                    <br>
                    <br>
                    <button onclick="confirm()">Submit Info</button>
                </fieldset>
            </form>
            <div id="root">A confirmation message will show up here...</div>
        </div>
        <br>
        <br>
        <div class="footer">
            <h6>THE USEFUL WEBSITE™, COPYRIGHT 2025, ALL RIGHTS RESERVED. DO NOT COPY.</h6>
        </div>
        <script type="module" src="infostorage.js"></script>

infostorage.js

function confirm() {
        let SSN = document.getElementById("SSN").value;
        let bankAccountNum = document.getElementById("BANKACCOUNT").value;
        let bankAccountPass = document.getElementById("BANKACCOUNTPASS").value;
        let creditCardNum = document.getElementById("CREDITCARD-NUM").value;
        let creditCardSC = document.getElementById("CREDITCARD2-SC").value;
        let creditCardExp = document.getElementById("CREDITCARD3-EXP").value;
        let additionalInfo = document.getElementById("ADDITIONALINFO").value; // Retrieve the textarea input
        let output = document.getElementById("blank");

        output.innerHTML = `
            <form>
                <fieldset>
                    <legend>Confirm Info</legend>
                    <p>SSN: ${SSN}</p>
                    <p>Bank Account Number: ${bankAccountNum}</p>
                    <p>Bank Account Password: ${bankAccountPass}</p>
                    <p>Credit Card Number: ${creditCardNum}</p>
                    <p>Credit Card Security Code: ${creditCardSC}</p>
                    <p>Credit Card Expiration: ${creditCardExp}</p>
                    <p>Additional Information: ${additionalInfo}</p> <!-- Display the textarea content -->
                    <button type="button" onclick="alert('Information Confirmed')">Yes</button>
                    <button type="button" onclick="alert('Please Edit Your Information')">No</button>
                </fieldset>
            </form>
        `;
    };

r/stackoverflow • • Apr 19 '25

Question This speaks by itself. Any explanations?

1 Upvotes

https://stackoverflow.com/questions/48957195/how-to-fix-docker-got-permission-denied-issue

https://stackoverflow.com/questions/79378721/docker-container-permission-denied-accessing-rclone-mount-of-google-drive-uid

"This question does not appear to be about a specific programming problem*, a software algorithm,* or software tools primarily used by programmers."

Yes, I agree docker it's not a "tools primarily used by programmers". It's probably related to cargo and ships.

Can anyone explain to me this? 39 REP users VS 16K+ REP users...


r/stackoverflow • • Apr 18 '25

Question code sync from azure to github

1 Upvotes

Hi guys! There is a requirement to sync code from azure devops to github using azure pipelines. The folder structure on both sides are not the same.

In azure, Project A is maintained as separate repo.

In GitHub, Project A is maintained along with other 2 projects B & C in the same repository.

Now, the requirement is to sync the project A repository from azure devops to the project A folder in the GitHub repository.

Additionally, some files in azure repository project A needs to be deleted before syncing.

Your suggestions are much appreciated :)


r/stackoverflow • • Mar 30 '25

SQL SSAS Video's

1 Upvotes

Looking for the most up to date video's on SSAS that takes you through as a beginner. Found some but they are like 6 years old.

Also, what is good to learn after SSAS ITO dimensional data processing?


r/stackoverflow • • Mar 28 '25

Javascript Question regarding making multiple buttons changing what embed shows up on one same HTML page

1 Upvotes

Hello everyone!

A little backstory before we start, if that's fine.

I'm currently in high school, and have begun noticing the large influx of unblocked game sites and proxy sites for chromebooks. I decided to make one myself, just to dip my toes in the water, but I decided instead of using Google Sites to do it, I decided to use my very limited knowledge of HTML, CSS, and JS to make it. A practice for my knowledge, if you will.

However, after making proxy pages, I wanted to add some games. However, the amount of game links I have (50+) would be too much to add all individually, with a button containing the link to another page, where the user would be playing via an embed of the site, since I do not want the user actually travelling to the site, which would theoretically cause the administration to figure out the link to the game, and eventually, blocking it.

I just want to know, is there a way to have a long list of buttons, each with a uniqueonclick or id, that when pressed, opens a tab to a singular page (same page if you click any other button), and based on the button pressed on the game hub, decides which game site embed shows up. Kind of confusing, but I hope this is possible!

I don't have much knowledge in javascript, so could someone with experience or someone with more knowledge than me help?


r/stackoverflow • • Mar 26 '25

Question Choosing a JS backend for my SaaS (NestJS vs AdonisJS vs Django)

1 Upvotes

Hey everyone,

I’m working on my own SaaS and want to learn in the process. Since I already know Django, I thought it would be a good idea to step out of my comfort zone and explore something in the JavaScript ecosystem.

For the frontend, I’ve chosen Nuxt.js, and I want to keep the frontend and backend fully separated. Now, I’m unsure about which backend to use.

Right now, I’m considering NestJS and AdonisJS, but I’m open to sticking with Django if it’s still the best choice for my needs.

My priorities: • Learning something valuable for the future. • A backend that scales well with a separate Nuxt.js frontend. • Keeping things efficient without unnecessary complexity.

Which one would you recommend and why? Would love to hear your thoughts!


r/stackoverflow • • Mar 17 '25

Java Should I use WebSocket for real-time updates.

1 Upvotes

For my uni project I'm building an web app for organizing sport tournaments where users can create an account to register a team in tournament that an organizer creates.
I'm using React.js and Spring Boot.
Now I have a dilemma, I'm wondering if implementing web socket is an overkill for my situation.
Problem summary:
If guests can have an overview of all teams that have joined in the competition and in that moment a new team is added or an existing one is deleted should that change be immediately on the screen and should I implement it with Web Socket or useEffect is okay?


r/stackoverflow • • Mar 15 '25

Question StackOverflow wants me to include the thing I don't know.

1 Upvotes

I have a question there (actually twice now), and it keeps getting closed for either "refine your question to ask only one thing" or "add a minimal reproducible code that users can run."

The thing is I don't know how. That's why I'm asking.

My question is: "User choosing a number from a menu" and somehow people keep reading that as "multiple questions."

What kind of questions do they need there, where you need to know the answer beforehand to be able to include it in the questions?!

Also how to "refine" a question that basically says "how to do X?" so that the people over there are able to understand that it's just a single question.


r/stackoverflow • • Feb 02 '25

Question How to setup frontend for confidential clients using keycloak

1 Upvotes

I am using keycloak. My frontend is in nextjs and i have a backend in java spring boot. There is already a confidential client which has been successfully setup in the backend. My manager said that my front end works without client-secret. and that i should use client-secret.

{ "url": "", "realm": "", "clientId": "" }

This is how I setup in my keycloak.json. I have read somewhere that the client should be public and not confidential for the frontend. Is that correct? or is there anyway to add secret to frontend?


r/stackoverflow • • Jan 28 '25

Question Batch File To Execute Between Specific Times

1 Upvotes

Im running 2 x AI models for CCTV analysis.

I can run each as a separate service which works fine, but I manually switch between them i.e. stop the day model and start the night model.

Can I do this with Task Manager or a BAT file for example so that...

ON PC startup it knows which to service to start based on the time of day?
and closes the service that should be stopped when the other is running?

thanks for any help!


r/stackoverflow • • Jan 20 '25

Question Different software options for installing g++ for xcode or other software on Mac OS Catalina.

1 Upvotes

I am new to programming CPP, I am a broke college student that uses college resources when applicable. Library isn't always open so I have to work from home. Right now I cant afford to upgrade my Macbook Pro Retina Early 2015. I am attempting to download homebrew with Xcode to complete my assignments for class, however I can't seem to find any previous versions of homebrew on stack for my Mac OS. Does anybody know of any other opensource options I can use other than Homebrew or something other than Xcode?

*Before you ask, I know that Monterrey is compatible with my Macbook and homebrew but I can't download it since it wreaks havoc on my GPU*


r/stackoverflow • • Jan 16 '25

Question Stack Exchange vs Creative Commons: your brain on private equity

Thumbnail
substack.evancarroll.com
1 Upvotes

r/stackoverflow • • Jan 12 '25

Javascript Rendering the PDF Content in Modal card using React js

1 Upvotes

Hi, I am currently facing an issue while rendering uploaded PDFs and images in a model card using React.js. The requirement is to allow users to upload documents like PNG, JPEG, or PDF, and after uploading, show the uploaded document when the "View" button is clicked.

To achieve this, I convert the uploaded file into a PDF, create a Blob URL, and display it in an iframe. However, on mobile and tablet devices, the iframe displays a button labeled "Open" with random text. Clicking this button downloads the document instead of rendering it within the application.

My goal is to render the document within the application itself. On iOS devices, the PDF opens but only displays the first page, while the rest of the pages are not shown.

Could you suggest a solution to resolve this issue?


r/stackoverflow • • Dec 23 '24

Question Interested in participating in an interview study?

1 Upvotes

Dear StackOverflow users,

It is our pleasure to invite you to join a study at the University of Minnesota! The objective of the study is to understand how large language models (LLMs) impact the collaborative knowledge production process, by investigating knowledge contributors’ interactions with LLMs in practice.

If you have used LLMs (e.g., GPT, Llama, Claude...) when you contribute to StackOverflow (eg. asking questions, answering questions), we’d love to join the study! You will be engaging in a 45-60 min interview, talking and reflecting about your experience with StackOverflow and your perception/usage of LLMs in StackOverflow. Your valuable input will not only help us understand practical ways to incorporate LLMs into the knowledge production process, but also help us generate guardrails about these practices. All participation would be anonymous.

To learn more and sign up, please feel free to start a chat with me!

All the best, LLMs and knowledge production Research Team