Skip to content
← Back to Community
HackTalk
Profile icon
EpicGamer007

Hello everyone!

This is a project I have been working very hard on for the past 2-3 weeks.
So after my chat thing i made with node and socket.io, I learned about how socket.io was "bad" and slow.
I decided to use actual post and get requests here with HackTalk.
I also got feedback from many people that I should save the messages in my chat app and create mod powers.
So that is what i did!
I used repldb as the database for this project and I used the replitdb-client by @Coder100, not the official repl client.
Additionally, I created moderation powers! Moderators can delete messages and posts, and ban users!
If you want to be a mod, tell me in the comments :)
Finally, I also learned how to use replauth. I used https://auth.turbio.repl.co/script.js as the login.

I never actually explained what HackTalk is so far

HackTalk is a place to ask coding questions. Kind of like stackoverflow or repl ask but worse imo. Though I think it is a good try to get better at node :).

Feedback

  • Go to this post in HackTalk and reply there(Feedback for the site)
  • Reply in the comments if you have suggestions to improve code.

Credits:

@EpicGamer007 - Main creator

Hope y'alls enjoy and stay safe! ;)

A few side notes

  • Do any of you have any good links to learn how to use google firebase with nodejs? Thanks.
  • This was actually gonna be my submission to the 10th code jam but wow it took way more time than expected lol
Voters
Profile icon
SneakyEel
Profile icon
silentdart
Profile icon
Vinzj
Profile icon
CapnDom
Profile icon
GamerCoder215
Profile icon
nguyenhny
Profile icon
Gowthamreddy8
Profile icon
AgastyaSandhuja
Profile icon
FECW
Profile icon
TheJamCoder
Comments
hotnewtop
Profile icon
GEISTCODER

Maybe its my internet or my laptop but this took a long time to load and it still didn't

Profile icon
EpicGamer007

@GEISTCODER question 12 and question 4 are broken. everything else should be working fine, i am looking into this right now

Profile icon
GEISTCODER

What a coincidence I chose EXACTLY question 4 @EpicGamer007

Profile icon
JBloves27
Profile icon
GEISTCODER
Profile icon
19wintersp

@GEISTCODER We've made some performance optimisations recently, expect improvements as soon as our development branch is merged back.

Profile icon
GEISTCODER

Oh ok. I'm quite interested in having a look at your new improvements in action @19wintersp

Profile icon
xxpertHacker

@GEISTCODER Omg, we made more than a few. we rewrote everything

Profile icon
EpicGamer007
Profile icon
GEISTCODER

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! @xxpertHacker

Profile icon
ch1ck3n

Put the newest questions at the top, also include the title of the question

Profile icon
EpicGamer007

@ch1ck3n a title... hmmm.. i tried to get newest questions at the top but i could never get it to work sorry.

Profile icon
19wintersp

@EpicGamer007 If you invite me back to the original, I can fix that; I've got a few things I wanted to do to the frontend

Profile icon
xxpertHacker

@19wintersp I can too, I know how to prepend elements and unshift arrays :)

Profile icon
19wintersp

@xxpertHacker That's not the only thing I want to change...

Profile icon
xxpertHacker

@19wintersp That's not the only thing I would change either, so I guess we're on the same page

Profile icon
Kookiez

very kewl, some feedback that i have for this site is when you post a question, can a question have a title, it might be easier to know what to answer before you click on it

Profile icon
EpicGamer007

@Kookiez adding a title may be difficult, but i can try...

Profile icon
sought25

https://menuprices-canada.website/taco-bell-menu-canada/
Taco Bell Menu Prices: The menu at Taco Bell is brimming with fast food staples as well as some hidden gems. Here are the latest Taco Bell menu prices and the best menu items available in Canada as well as a few of their most sought-after secrets!

Do you want something that’s crunchy and chewy and also satisfying? Try the Steak Chalupa Supreme!

Taco Bell takes the soft Gordita flatbread and fries it to create a crunchy-on-the-outside, soft-on-the-inside taco treat you’re not soon to forget.

Profile icon
billwest14

I like your way of creating informative posts! As I am studying now I very often use prime essay https://prime-essay.net/ website services. It helps me to improve my grades. Also, I think it saves a lot of students' time.

Profile icon
larrybrenda665

Visit TGI Fridays Happy Hour nights, when each day is like a Friday. The lively and fun atmosphere will keep you moving and help get your evening starting off in the right way. https://happy-hours-menu.info/tgi-fridays-happy-hour/

Profile icon
heewoonkim2020

This is amazing! Good job on this!

Profile icon
EpicGamer007
Profile icon
xxpertHacker

Did you delete the Repl?

Profile icon
EpicGamer007
Profile icon
EpicGamer007
Profile icon
EpicGamer007

@xxpertHacker also, can you help me fix it

Profile icon
xxpertHacker

@EpicGamer007 Wtffffff I swear, I used the exact URL. I'm mad at Repl now >:(

What's wrong?

Profile icon
EpicGamer007

@xxpertHacker idk, can you come fix it

Profile icon
xxpertHacker

@EpicGamer007 I checked, I don't see what's wrong; if nothing is wrong, then how can I fix it?

Profile icon
EpicGamer007

@xxpertHacker whenever i try to post a question or answer, i get a 403. and i think its a problem with something on lines 105 - 207

Profile icon
xxpertHacker

@EpicGamer007 Oh yeah, that cropped up after I finished work on it... months ago, that was also when I said that I'd leave the site to you and Winters, so one of you caused it, but all I know was that the code was messy and I don't have enough soap to wash my hands off again if I touch that code.

Sorry.

Profile icon
EpicGamer007

@xxpertHacker oh ok, rip

Profile icon
xxpertHacker

@EpicGamer007 Well, no one on Repl has noticed it anyway; it's been months, so it should be fine.

Profile icon
EpicGamer007

@xxpertHacker i know, but i still want to fix it, i am making a portfolio website and i kinda want to put this on there cuz this was by far, the ¨best¨ thing I(we) made with nodejs

Profile icon
FortuneIfeanyi

When i reload it takes time for all the chat to come up

Profile icon
EpicGamer007

@FortuneIfeanyi what chat?

Profile icon
FortuneIfeanyi

Like the website very awesome and innovative

Profile icon
xxpertHacker

Winter & I rewrote everything, the only thing that remains the same is that it uses Repl DB.

It's practically done...

Profile icon
EpicGamer007

@xxpertHacker imma head over there.

Profile icon
xxpertHacker

@EpicGamer007 Gonna post it separately or update this post?

Profile icon
xxpertHacker

@GEISTCODER
Bugs are fixed, all of 'em!

@Kookiez
You can now see the poster and a glimpse of their question!

@CT2224
We've got Markdown!

@ZDev1

It's more amazing!

@Bookie0

We have a favicon now!

@Sethster1

I noticed that too, I tried to help someone out and the message broke :/ fixed now!

@Nanowrimoijk

Back up and running better than ever!

@ProgramerMov

Probably fixed?

All of this is at the new Repl:
https://hacktalk.epicgamer007.repl.co


Oh, and moderators, plz don't get me for spam pinging!

Profile icon
Kookiez

@xxpertHacker wow the new one is really good!

Profile icon
Bookie0
Profile icon
xxpertHacker

@Bookie0 (o_o)

Log in maybe?
What page URL are you on?

What browser?

@19wintersp we... may have a bug.

Profile icon
xxpertHacker
Profile icon
EpicGamer007

@xxpertHacker i think new post would be good, the changes are extremely drastic and its almost unrecognizable

Profile icon
Bookie0

Screen Shot 2020-12-11 at 5.02.40 PM
actually sorry no it doesn't =/

Profile icon
EpicGamer007

@Bookie0 no, this is the old one not the new one

Profile icon
xxpertHacker

@Bookie0 You're on the wrong site lol.

https://hacktalk.epicgamer007.repl.co

EpicGamer007 just took it back down, but when it's back up, it should work.

Profile icon
Bookie0
Profile icon
EpicGamer007
Profile icon
Bookie0
Profile icon
GEISTCODER

U R Reeeeeeeeeeeeeeeeeeeeeeeeeeeally good at what you do @xxpertHacker!

Profile icon
xxpertHacker

@GEISTCODER I saw the reee... and thought that you were mad at the ping, especially the spam ping.
But thank you!
Winter did a whole lot too, I think I did less that them.

Profile icon
GEISTCODER

That don't matter. To me quality is better than quantity! @xxpertHacker

Profile icon
EpicGamer007

@GEISTCODER dang @19wintersp and @xxperthacker did literally everything lol

Profile icon
GEISTCODER

Yor username is epicgamer. do u play [email protected]

Profile icon
zplusfour

@xxpertHacker amazing!

Profile icon
Nanowrimoijk

@xxpertHacker im still getting an endless loop of signing in

Profile icon
xxpertHacker

@Nanowrimoijk That's... concerning, hopefully @EpicGamer007 can deal with it.

Profile icon
19wintersp

@Nanowrimoijk @xxpertHacker Can I have some more details of the device you are using? I think I've fixed it now...

Profile icon
Nanowrimoijk

@19wintersp just a mac using the brave browser

Profile icon
19wintersp

@Nanowrimoijk Can you reload and try again?

Profile icon
xxpertHacker

@Nanowrimoijk I've had problems with parts of Repl being insecure when using Brave, but the login?

Can you check your browser console for any logs or errors?

Profile icon
Nanowrimoijk

@19wintersp wierd its working now

Profile icon
19wintersp

@Nanowrimoijk Yeah, I changed something to do with the login; you were on the wrong domain.

Profile icon
EpicGamer007

@GEISTCODER yes i do play roblox

Profile icon
GEISTCODER
Profile icon
EpicGamer007

@GEISTCODER why tho lol. im not very active

Profile icon
GEISTCODER

Eh IDK and its ok @EpicGamer007

Profile icon
EpicGamer007

@GEISTCODER [Removed]

Profile icon
EpicGamer007

@GEISTCODER whats yours?

Profile icon
GEISTCODER

GEISTBREAKER @EpicGamer007

Profile icon
GEISTCODER

The name GEISTBREAKER is from where I thought of GEISTCODER + I sent a [email protected]

Profile icon
EpicGamer007

@GEISTCODER ok i will check it out later

Profile icon
GEISTCODER
Profile icon
zplusfour

Amazing!

Profile icon
EpicGamer007

@ZDev1 ty!

Profile icon
zplusfour
Profile icon
anikuya2626

Hey so for school i have to "design a program that can compare data from two students to identify who deserves an award.

You must compare three grades per student: Test grade, conduct grade and social involvement grade .

The best student will be the one that has better grade average. If the two students have the same grade average, you must compare their conduct grades. If both have the same conduct grade, must use the social involvement grade to break the tie.

If all grades are the same, the program must display the message "AWARD CAN NOT BE ASSIGNED".

Test grades are graded from 0 to 100.

Conduct grades are graded from A to F (A=100, B=90, C=80, D=50, and F=0)

Social Involvement is graded as follows: OUTSTANDING (=100), EXCELLENT (=70), REGULAR (=50) and NORMAL (=40)

Write the program using a function to calculate the average. The function must be called averageGrade(student)

Write a function called StudentComparison(student 1, student 2) that will return 1 if the first student wins and 2 if the second student wins.

Write a procedure called displayWinner(student) to display the message

"Student LASTNAME, FIRSTNAME has been awarded with the "Supreme Mister Del Valle Award" for Oustanding Students.

"Final Test Grade = GRADE - - Final Conduct Grade = GRADE - - Social Involvement Grade GRADE"

Note: Students must be saved as an array of structures."

But idk HOW bcs im new to the class and idk how to do anything... can someone help??

Profile icon
19wintersp
Profile icon
RahulChoubey1

Hacktalk meta!

Profile icon
Ska6146

Hi

Profile icon
EpicGamer007
Profile icon
DominicHuieWhit

nice

Profile icon
EpicGamer007
Profile icon
Sethster1

Question #28 doesn't seem like it works. That might just be me, but even putting the URL into the browser didn't seem to work.

Profile icon
EpicGamer007

@Sethster1 a few questions are broken and idk why. if you look at the code, either everything should be working or none of them should be working, sorry :(

Profile icon
19wintersp

@Sethster1 We've found the cause of this problem, related to encoding of certain characters in the DB. These will be rectified soon.

Profile icon
Bookie0

pretty cool!

however, you should to find something to fill in the gaps of the sides, so much space! maybe some patterns moving in the bg a bit? or some weird shapes in the behind as 'modern art'?
Screen Shot 2020-12-08 at 8.29.44 AM

why not a flaticon?
Screen Shot 2020-12-08 at 8.30.37 AM

you should automatically redirect user to the all posts page.

Screen Shot 2020-12-08 at 8.31.34 AM

Also idk it might just be me, but why is everything centered? like maybe try to make that comment text more aligned, or add things on the sides like comment boxes so that it 'wraps' each comment individually so it's a bit less confusing. And maybe make the name of the user who commented in bold or something, and if you click the name it takes you to the profile of the dude, like repl.it! ;)

Screen Shot 2020-12-08 at 8.32.13 AM

And maybe add a preview of the questions and preview of people who answered? and maybe a search bar? and pfp for profiles!
Screen Shot 2020-12-08 at 8.33.54 AM

But cool job anyways!! :D

Profile icon
JBloves27

So long... @Bookie0

Profile icon
Bookie0

@JBYT27 that's what she said

also what's wrong with feedback being 'long' lol

Profile icon
JBloves27

LMAO, it's not wrong at least i think that's how the law goes... XD @Bookie0

Profile icon
RayhanADev

@Bookie0

that’s what she said

nonono, that what mai furret is:

64D14CD2-2DC4-42A3-92C7-52FB181BEEC0

Profile icon
Bookie0

@RayhanADev hokay hokay lol

Profile icon
EpicGamer007

@Bookie0 thanks for the feedback. i will look into what i can do :)

Profile icon
Bookie0
Profile icon
TalinSharma

Can I be a mod?

Cool Thing

Profile icon
GavinPena

Where are the questions?

Profile icon
EpicGamer007

@GavinPena in profile

Profile icon
MarcusWeinberger

This is incredibly well made, and I love the design!

Profile icon
EpicGamer007

@MarcusWeinberger tysm! Your repl.email is actually what inspired me to make this lol. as i said, 99% of the design goes to @19wintersp so give em credit for that lol

Profile icon
MarcusWeinberger

@EpicGamer007 ay im honored! repl.email has kinda died but in the near future, me and @rafrafraf are gonna start working on mail.dupl.tech

Profile icon
EpicGamer007

@MarcusWeinberger nice lookin forward to it

Profile icon
NoNameByProgram

I don't get it.

Profile icon
EpicGamer007

@NoNameByProgram wut do u mean?

Profile icon
NoNameByProgram

@EpicGamer007 Why... do we need this exactly?

Profile icon
IntellectualGuy

@EpicGamer007 It's not working anymore, the server is down.

Profile icon
EpicGamer007

@IntellectualGuy its back on, but question 4 is broken

Profile icon
IntellectualGuy
Profile icon
AmazingMech2418

Server down... :(

Profile icon
EpicGamer007

@AmazingMech2418 question 4 is broken.

Profile icon
littlepenguin

Very cool! What about markdown for the posts?

Profile icon
EpicGamer007

@CT2224 maybe, idk how i would make the html display md tho...

Profile icon
19wintersp

@CT2224 Markdown is in the development pipeline at the moment. Expect to see it soon.

Edit: Markdown is now available

Profile icon
EpicGamer007

SITE BACK UP :)

Profile icon
JBloves27
Profile icon
EpicGamer007

@JBYT27 yes yay :D

Profile icon
JBloves27
Profile icon
EpicGamer007

SITE GOING DOWN FOR A FEW MINUTES. SORRY!

Profile icon
IntellectualGuy

Can I be a moderator? @EpicGamer007

Profile icon
Nanowrimoijk

@EpicGamer007 is it still down? when i try to login it take me straight back to the login page

Profile icon
EpicGamer007

@Nanowrimoijk yea its still down, we are editing right now

Profile icon
EpicGamer007

SITE BACK UP EVERYONE :)

Profile icon
xxpertHacker

If you want to be a mod, tell me in the comments :)

I wanna be mod, lol

#xxpertHacker Code Improvement
#dakshg - Helper/Tester
#19wintersp - 99% of the CSS
#FatBanana - Font Chooser(Actually chose the font)
Some people I know who will remain anonymous - Testing

If you pinged me, I could've helped with... everything else too?
No jk, I have nothing to do, so I'm trying to give myself something to do.

Actually nvm, I probably would've been able to help with the CSS though.

Profile icon
EpicGamer007

@xxpertHacker sure i will add u.

Profile icon
xxpertHacker

@EpicGamer007 Do you have to take down the entire site to add someone? Lmao, that's not good.

Screenshot 2020-12-07 at 1.02.22 PM

@19wintersp
Comments regarding the CSS
Screenshot 2020-12-07 at 1.02.13 PM

And even WebAim agrees that the site is laid out oddly.
Screenshot 2020-12-07 at 1.00.59 PM

May I... edit the HTML? (I'll refrain from using XHTML lmao)

Profile icon
EpicGamer007

@xxpertHacker wait wait, i have to stop it to do it as i found a bug with question 2 and i need to fix that. i will invite you soon

Profile icon
19wintersp

@xxpertHacker Yes, please do (but ask him first): I wasn't really able to change the website layout the way I wanted, I was only adding basic styling.

Profile icon
EpicGamer007

@xxpertHacker i will invite you now

Profile icon
xxpertHacker

@19wintersp I asked them right there, since I pinged you both at once.

I probably should've created a separation and been more explicit in who I was referring to there.

Profile icon
RayhanADev

@xxpertHacker wow you use WebAim too?

Profile icon
EpicGamer007

@RayhanADev wuts webaim? also r u able to use a comp now lol.

Profile icon
RayhanADev

@EpicGamer007 webaim is like web accessiblity tool (or in other words, how good is your site).
i’m not on a computer yet.. (after-school psychology club, then car drive, then computer :D)

Profile icon
EpicGamer007

@RayhanADev ok thanks for explaining.

Profile icon
xxpertHacker

@RayhanADev Who else do you know who uses WebAIM?

My process on Repl is normally:

  • Use WebAIM to show that someone's site is bad needs to be fixed
  • Bring up my personal web development experience and markup language expertise
  • Show that I am the right person to fix their site

lol

Profile icon
RayhanADev

@xxpertHacker well me and my cs teacher
HAHAHAHHAHA lmao good idea!

Profile icon
xxpertHacker

@RayhanADev

HAHAHAHHAHA lmao good idea!

I literally just did it here ^
By tomorrow I'll have radically rewritten the HTML.

Also, I don't know how to feel about calling a web dev teacher a CS teacher :/

Profile icon
RayhanADev

@xxpertHacker he is a CS teacher not web dev.

Profile icon
IntellectualGuy

Maybe you can add something like cycles and upvotes.

Profile icon
ProgramerMov

How do I log in with repl.it?
I click and it only takes me to repl.it home page

Profile icon
EpicGamer007

@ProgramerMov what device are you using?