Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Typos in EdgeDetect/Module.js #884 #950

Merged
merged 1 commit into from
Mar 29, 2019

Conversation

Michaellin250
Copy link

@Michaellin250 Michaellin250 commented Mar 27, 2019

Fixes #884

Fix Typo In EdgeDetect Module #884.

Fixed On line 10

  • options.hystereis = options.hysteresis || defaults.hysteresis;
  • options.hysteresis = options.hysteresis || defaults.hysteresis;

And on line 30

  •  pixels = require('./EdgeUtils')(pixels, options.highThresholdRatio, options.lowThresholdRatio, options.hystereis);
    
  •  pixels = require('./EdgeUtils')(pixels, options.highThresholdRatio, options.lowThresholdRatio, options.hysteresis);
    

@welcome
Copy link

welcome bot commented Mar 27, 2019

Thanks for opening this pull request!
There may be some errors, but don't worry! We're here to help! 👍🎉😄

@harshkhandeparkar
Copy link
Member

Hello @Michaellin250 I think your branch has conflicts. Can you create a fresh one from publiclab/main. Do you know how to do that or do you need the procedure?

@Michaellin250
Copy link
Author

How do I fix merge conflicts?

@harshkhandeparkar
Copy link
Member

Are you editing files locally(on your pc) or in the browser?

@Michaellin250
Copy link
Author

Editing files locally.

@harshkhandeparkar
Copy link
Member

Ok since your changes are small you can run the following commands

git remote add upstream https://github.com/publiclab/image-sequencer.git
git fetch upstream
git checkout main
git reset --hard upstream/main
git checkout fixTypo
git reset --hard upstream/main

Doing this will delete all of your changes(edits in files).
Please edit the files again and run the following commands.

git add .
git commit -m "fixed"
git push

Thanks!

@Michaellin250
Copy link
Author

Thanks for the instructions. I'm new to git! Did I fix it?

@harshkhandeparkar
Copy link
Member

Actually you didn't. What was that last commit?

@harshkhandeparkar
Copy link
Member

I think you are running the wrong commands for merging.
You have to run

git fetch upstream
git merge upstream/main

@Michaellin250
Copy link
Author

Should I do another pull request then?

@harshkhandeparkar
Copy link
Member

Can you please tell me the commands you are running?

@harshkhandeparkar
Copy link
Member

No need to open a new pull request.

@harshkhandeparkar
Copy link
Member

Are you there?

@Michaellin250
Copy link
Author

Yes I'm doing the same commands that was written

@harshkhandeparkar
Copy link
Member

Just do the following and nothing else. Tell me if it gives any errors.

git remote add upstream https://github.com/publiclab/image-sequencer.git
git fetch upstream
git checkout main
git reset --hard upstream/main
git checkout fixTypo
git reset --hard upstream/main

Doing this will delete all of your changes(edits in files).
Please edit the files again and run the following commands.

git add .
git commit -m "fixed"
git push

Thanks!

@Michaellin250
Copy link
Author

Screenshot from 2019-03-27 00-56-19 when I try to push

@harshkhandeparkar
Copy link
Member

Try

git pull

@harshkhandeparkar
Copy link
Member

After running git pull, Try doing what I had told.

@harshkhandeparkar
Copy link
Member

Your commit tells that you are merging your own branch fixTypo into the same branch. Can you please tell me the exact commands you have run? Maybe a screenshot of the terminal from the start.

@Michaellin250
Copy link
Author

Screenshot from 2019-03-27 01-07-54

@Michaellin250
Copy link
Author

Did I fix it?

@Michaellin250
Copy link
Author

I literally did all the commands. I'm pretty sure it's other files that are causing problems.

git remote add upstream https://github.com/publiclab/image-sequencer.git
git fetch upstream
git checkout main
git reset --hard upstream/main
git checkout fixTypo
git reset --hard upstream/main

Then I changed the typos.

Then I did..

git add .
git commit -m "fixed"
git push.

@Michaellin250
Copy link
Author

Can I merge now?

Copy link
Member

@harshkhandeparkar harshkhandeparkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! Thank you for your contribution. Also sorry for the late reply.

@harshkhandeparkar
Copy link
Member

@jywarren ready to merge!

@Michaellin250
Copy link
Author

Thanks for my first git contribution!! What do I do now?

@harshkhandeparkar
Copy link
Member

You can search through the other issues and try to solve one of them!

@harshkhandeparkar
Copy link
Member

@jywarren this is a small one. Won't cause any problems. Please try to merge it before it reaches a state where it will require a rebase.

@jywarren jywarren merged commit a516449 into publiclab:main Mar 29, 2019
@welcome
Copy link

welcome bot commented Mar 29, 2019

Congrats on merging your first pull request! 🙌🎉⚡️
Your code will be published to https://beta.sequencer.publiclab.org in a day or two.
In the meantime, can you tell us your Twitter handle so we can thank you properly?
Now that you've completed this, you can help someone else take their first step!
See: Public Lab's coding community!

@jywarren
Copy link
Member

Awesome, folks!!! Thank you!!!

@jywarren
Copy link
Member

BTW @Michaellin250 i wanted to say i appreciated your commit message 😂 🎉

commit a516449
Author: MichaelLin250
Date: Thu Mar 28 21:29:41 2019 -0400
TRYING SO HARD TO FIX IT (#950)

Thank you!!!! You did!!! 👍 🎉

@Michaellin250 Michaellin250 deleted the fixTypo branch March 30, 2019 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants