r/stackoverflow • • Nov 23 '25

C++ Looking for a project based tutorial

Thumbnail reddit.com
1 Upvotes

r/stackoverflow • • Nov 22 '25

Question [HELP NEEDED] Unable to signup!!!

Post image
1 Upvotes

Can someone please help me. Tried with 2 different wifi connections still no luck. Unable to create a new account. This showsup after Google OAuth redirect


r/stackoverflow • • Nov 14 '25

Question Website logos not showing up in search results, Android 5. How to fix?

1 Upvotes

Whether I use google search itself or I use chrome 95.0.4638.74 (which is the latest chrome version supporting my mobile galaxy J5), whatever I search, in search results, website logos don't show up. I haven't had this problem till this month. Haven't changed any specific settings in chrome or google recently, and I almost hadn't been using that mobile for nearly 2 months. (Else than wake up alerts.)

The problem probably isn't from chrome (or is?) since even google search itself doesn't show website logos aswell.

Screenshot

Please help me fix this problem. Thanks

Please don't say advices like use another device. I'm looking for a solution to fix this problem on that phone, not to remove the question.


r/stackoverflow • • Nov 09 '25

Question How do you download videos from websites (teachcode.in) that doesnt allow downloading, not even through the developer tools (inspect element)?

1 Upvotes

So i have purchased this one course around 5 days ago, and i get access to the course content for only 1 week, now i want to download the videos so i can access it later. The website (teachcode.in) does not allow to download the videos directly (obviously), generally in this type of situation i download videos through Inspect element (Developer tools) by going to Network --> Media to find the .mp4 file and downloading it, but in this case, when i open the developer tools, the video shows that "Paused in debugger". Are there any ways to download it even through any type of third party extensions or any other possible ways (preferably free)?

Help will be really appreciated.


r/stackoverflow • • Nov 05 '25

Java ClassCastException when using Comparator in ArrayOrderedList extending ArrayList

1 Upvotes

I am trying to implement an ordered list that inserts elements in the correct position using a Comparator<T>.
I have the following class:

public class ArrayOrderedList<T> extends ArrayList<T> implements OrderedListADT<T> {

    private Comparator<T> comparator;

    public ArrayOrderedList(Comparator<T> comp) {
        this.comparator = comp;
    }

    u/Override
    public void add(T element) {
        if (count == array.length)
            expandCapacity();

        int i = 0;

        while (i < count && comparator.compare(element, array[i]) > 0) {
            i++;
        }

        for (int j = count; j > i; j--) {
            array[j] = array[j - 1];
        }

        array[i] = element;
        count++;
    }
}

This class extends a custom ArrayList that stores elements in an internal array:

public class ArrayList<T> implements ListADT<T> { 
    protected T[] array;
    protected int count;

    private static final int DEFAULT_CAPACITY = 10;

    @SuppressWarnings("unchecked")
    public ArrayList() {
        array = (T[]) (new Object[DEFAULT_CAPACITY]);
        count = 0;
    }
}

The problem is that when I run the code, I get a ClassCastException related to the internal array (Object[]) when comparing elements using the Comparator.

I have already tried adding Comparable<T> to the class declaration, but it did not solve the problem. I also do not want to use approaches involving Class<T> clazz, Array.newInstance, or reflection to create the generic array.

My question:
How can I keep the internal array generic (T[]) without causing a ClassCastException when using Comparator<T> to maintain the list ordered upon insertion?


r/stackoverflow • • Oct 31 '25

Question Can't make acct on Stack Overflow or friends

1 Upvotes

Reddit took this down, said not why. Ext ref in err msg? Dunno. Modified post follows:
---
A common issue, but i see no solutions offered. Please excuse the redundancy.

When I enter a valid email address and password, SO site says, "Something went wrong. Please contact us at (SO support email addr) for assistance."

I contacted support, but nobody got back to me. It's been about a week.

I tried the usual: diff browsers, clear cache and cookies, diff passwd chars, etc.

On the off chance it worked w/o saying so, I tried logging in with that address. Nope.

Our security policy doesn't allow logging into 3rd party sites using googl, fb, gh, etc.

My email addr has a subdomain, but even picky sites accept it. Is that ok on SO?

Many on SO use Linux, so hopefully I'm ok there.

Any clues? Thx in advance! :)


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.