#general
3141 messages · Page 1345 of 4
Hello z
hello
:peepoClapJammin:
oh god
best subreddit
@mental meadow 
krusic irl

literally @ashen cliff
wasnt reddit down yesterday
yes
between what hours? i was using it
uhh it was like 3-4 pm cst
oh ok i was asleep at that time
💤
hi
simple needs his beauty sleep
I m new in learning java and I try to make a player event that do a sound do somone know what the event name is called ? so player.soundmessage for example
or is there a way to find all playerevents
perfectly balanced
@tidal ravine
But #paper-dev
Thanks a lot
:3
quick game of dota 2 before bed i thought
ded moment
God my windows partition is just barely staying together at this point
Need to rebuild soon but it's impossible to buy any components right now
its a long game too
Techies?
bax 
ofc haha
oof
👋
is it safe for me to update from java 8 to 11
like nothing could potential break my shit
Backup first ofc
i mean you should be running regular backups anyway
I can't say not to back up
but I will say I wouldn't bother to back up just for upgrading java 8 to java 11
yeah i don't see a need simply for that, but in general backing up is good practice if you have none i would at least have at least one regardless kek
I always recommend backing up before doing anything demon or simple tell you to do however
get the covid vaccine
demon 
Demon you underestimate people's ability to fuck things up lol
good morning uwuwuwuwu
I'm kind of surprised how far along https://pcsx4.com/ appears to be
It just uses virtualization for the CPU and Vulkan or Metal to emulate the GPU API
Dunno if they run the PS4 "firmware" directly or do high level emulation of it
Probably run it directly because who wants to write an OS?
ill probably be able to emulate a ps5 before I'll be able to buy one at a sane price
Fuck the sane price, I just cannot find stock anywhere lol
Following a twitter account that alerts when there's stock online/in-store at places here, but they still sell out in minutes.
all i want is a switch
It’s relatively obtainable in the US
Not easy but much easier than other countries
@viral hornet what do you want?
some stores over here still have low & high end GPUs & CPUs; nothing middle-end, and shipping is fairly expensive, though
do your stores have tacos though?
yes
well then what are you still doing here

3080?
Hola alguien de los staff habla español?
sorry lol, I didn't see this on my phone 😂
But wanting a PS5
I've seen 3090 here but I decided that I rather suffer with my slow 2080ti /s
One of these days I'm getting a 3080...
no, este es un servidor ingles. use el traductor google :)
Hello please help, On my server I have sharpness 15 swords and all the settings at lvl 15, but look, I have a sharpness 15 sword and I hit a full skin player, it kills him with 2 hits and I would have to kill him with 1 hit and do much more damage, please help
[Traductor Google]
así que, tenes espadas con sharpness 15 pero por alguna razón no matan de un solo golpe?
so, you're saying you have sharpness 15 swords in your server, and they should kill the player with a single hit but they don't?
also, use #paper-help (even though this doesn't seem like a paper issue)
paper-help is general server support so that's good
can't find anything newer than PS4 :/
nope, but 3090s are!
Same here lol 3090 in stock everything else empty
1181 hour uptime isnt bad right
there are some sold secondhand, but the prices aren't too sane lol
i had 50 years once
why would anyone buy a 3090
1.5k EUR for a MSI 3080 Suprim X if anyone wants though kek
it is like buying a threadripper for a gaming pc
Yeah, it's bullshit. I'm happy to wait until June though, because that's when Ratchet & Clank comes out and that's what I'm sweating over 👀
god, joys of being a council estate
I played the demo on the ps2 like, far too many times
@viral hornet there are some secondhand here, but still bad prices at 850-ish€
Jesus
What about 6900? :)
Friend has been looking. Lemme ask if he thinks that's worth it:)
hi proxi and ocelot
everytime I see that nick https://www.youtube.com/watch?v=f4FpJ-PSnpQ
i forgot this was even my nick
what don't you forget these days
next you're gonna forget that this ain't your grass
my brain is mush
Hey blue

can someone tell me what tf is alpha and beta
what do they doooo
i like the part where you gave some form of remote context
I have no idea where they came from in class
.-.
last class we were doing ez stuff
now we're here doing alpha and beta
yes, and we tooootallly know what class you're in...
these 2 are alpha and beta apparently
oooooh
so we don't have to know what they are
we are just assuming them to be zeros of a quadratic polynomial
smh why this is confusing
those are hieroglyphics
ye an ur a potatis
ikr
if this is mathematics, they're just unassigned variables

in physics & probably chemistry, they're sometimes assigned with some constant some smart person found out a couple hundred years ago
e

employee
thats very epic
that means benefits right
someone i know was a contractor and they couldn't get benefits
tonnes of them, yes
Proxi being epic 
ok here's a question
if i learn kotlin will that help me understand gradle build scripts
because i cannot understand them at all
Haha
I mean, it's like java
perhaps a bit
syntax is one thing
its the syntax i have problems with
it's mostly syntax ^
understanding how the shit it's all bolted together and what on the hell of a... chemical assistance... the dev was on
properties are java beans, getProp, setProp with pretty syntax
closures are just lambdas; it is the single argument
extensions are "pretend I'm T"
nullability is Optional<T>
cat wtf is that from
proxi that helps a bit
thank you
i think i'm gonna try writing my school project's backend in kotlin
just to learn it
and remember that {} always creates a closure if it's not attached to special syntax such as if, when, when, fun
this means kotlin { println("wee") }
will never print "wee"
from some discord am in full of nerds basically
so what you're saying is that code would kinda be the same as doing this in javascript?
(() => {
console.log("hi");
});
yes
dumcord that bigclive preaches about in his streams
it's never called, so never ran
you can use the invoke operator (x()), or a variant of the run method (run {})
the run method exists as run, let, apply, and also, which all do different things but also the same thing
and wait till we get to delegates, you'll hate those :D
@coarse lily smh open your server to the public already
we do be lookin doe
you can try wafflecraft
yeah its vanilla
basic SMP
yes
how may people?
bet ip?
I mean, I could be quoting worse
Everything takes longer in the winter. Reasons.
Does anyone know why I get these errors and the sv shuts down sometimes they appear and not shut down?
https://hatebin.com/mrctksbqmh
Es de paper
You should probably ask in the Purpur Discord, as you're running Purpur and not paper.
and in purpur they will tell you to ask the dev of whatever net.brcdev.shopgui is
And fix whatever that HolographicDisplays error is
bigclive has streams?
Yea
A second channel for live streams and face videos, to protect the innocent from the harsh reality that my face does not match my voice. It will also be the home of the MBC - Manx Beard Club videos (just a group of beardy friends).
A British TV licence is NOT required to view my videos or almost every other video on YouTube.
Try to think of th...
He looks pretty much exactly how I thought he would
he shaves with a funnel too
Maybe not as many wrinkles but I guess that just means he isn't a welder and/or doesn't smoke
A British TV licence is NOT required to view my videos or almost every other video on YouTube.
wow I thought I needed one
BBC would tell you you had to if they could
kek
You can always tell welders cheat on their mask because the have farmer tans and wrinkles
apparently some woman was told that she'd be breaking the law if people with a license watched sports, etc in her house on their mobiles
so, you know, sorta makes sense why he would have that there
el bastardos
The TV license folks are like the mafia, they pretend they have power and try to push you around
Unlike the mafia they won't burn your house down or break your legs for telling them to fuck off
What
am saying that the people who designed some stuff in gradle where probably taking a little something when designing stuff
I think he's implying that people do drugs and write bad code
That's the sex, weed, and booze chill channel 😛
You got a license for that?
sadly i live in california so yes
I think I got confused about what license you were talking about though
gradle is an experience
it is indeed
well, tv, and was kinda a joke about the age verification for adult content that the UK was proposing
what about me @spiral robin
you're not allowed to sleep yet
I was gonna joke and say to set you both on fire and then I dropped my keyboard on my foot, sooo...
gg
u too @potent fossil peepo heart wave
bye qt
simple is also an experience 
That's what she said
@minor badge @minor badge @minor badge @minor badge @minor badge @minor badge




Now that's epic.
is there a way to downgrade a map?
Load a backup
Also good morning (?)
Good morning
23:11 
I haven't slept yet but it's morning now
thank u <3

Gib Gib Gib

sup
hai
now im learning docker because pterodactyl exists
Docker is nice. And have surprisingly good docs for most of the features.
"surprisingly good"
a huge portion of the software industry uses it, so it does make sense
A huge portion also uses Ansible and their docs are a mess. Though would be nice to know exact numbers to compare.
Didn't they say that DockerHub's data usage was up in the petas?
It's at least no small number 😄
Apparently 15PB of images, but that doesn't mean much. Some people are just stupid and make 5GB docker images and push them from each CI build (had that happen sadly)
Worth noting that 15PB isn't actually that much
And that also doesn't say how much people are actually exposed to docker.
Since it's what matters when talking about documentation.
looks at krusic
Hello! If someone here rooted a phone before, I have a few questions:
- What is the safest way of doing it?
- Which application would you recommend if the method requires one?
morning
just go on xda-developers, find your phone model, and open a rooting guide
There is a billion tutorials on YouTube, I can't decide which one is the best.
use xda-developers, not youtube
Okay, thank you! 👍
it became harder to root your phone these days... SafetyNet is one of the biggest threats since it blocks a lot of stuff...
also A/B Rom phones are a pain to work with
can't we go back to android 4.4 times and just root our phones with "KingRoot" lol
I've got a few options
can confirm, magisk is the best way nowadays
Oh, it's open source too.. Thank you, I think I will go with Magisk than
https://github.com/topjohnwu/Magisk/
Magisk is also somewhat good at fooling securitynet, but idk what the state of that is nowadays
Google updated the Secnet in new versions and afaik Magisk cannot stop it atm
McDonalds Antiroot is not fooled by it tho!
what part of DO sucks
The fact they (used to?) only give you 16 IPv6 addresses
Yes they 100% did
and yes
still only 16
Enabling IPv6 on a Droplet gives you access to its 16 additional IPv6 addresses.
Unique hostnames for each address, useful for IRC and other things where hostnames are visible to users
imagine using ipv6 
Pure magic
Also
Meanwhile in Germany: Police chase "suspect" who ran away after breaking coronavirus rules
Nice slide.
It's hamburg ^^
The sentence at the end is the best
"junge der hat das Polizeiauto gerippt" 😂
They got him btw
but at what cost
Electric, the peer issue got "solved" by assigning a subdomain to the server address. Using cloudflare. Is this because most ISPs got CloudFlare cached?
I am now quite happy with the package we got from ReliableSite
Thought you might be interested in knowing : -)
Only issue is that we have to assign subdomains for those who want to host with us. Trying to figure out a better way to tackle this issue as some may want to have their raw address pinged in one second instead of five.
@mossy vessel 
I assume he couldn't just run him over / hit him, since the car auto engages brakes. 🤔
That sucks bro!
Bro!
Balkan cars don't have this kind of "NEW" technology.
But we do have adaptive cruise control from 2005.
Balkan cars don't need "NEW" technology bro.
Just put a "CIGEL" on that gas pedal.
We have 1989 Mercedes Benz bro.
.g cigel
700k or nothing.
krusic have you seen the balkan internet switch i sent yesterday
Best* bro.
Michale sux
wtf 
I have never driven a car with cruise control 😢
Bro. I see everything bro.

Yes bro.
Always.
Everywhere. Not just on highway bro.
Red!
you guys are crazy
Fact!
YOLO bro.
Bro. Just come to Balkan. We will show you around.
which country in specific?
Balkan.
Yes.
did you do the impossible and unite the Balkan region?
Always united bro!
What is Balkan region? Every "balkan country" is autonomous province of Balkan.
ah
Also don't forget bro! Always start in third gear.
happens from time to time, I guess that's what I get for being Balkan's neighbor
Yes bro. And don't use turn signal.
okay, I do not wish to go to Balkan
Bro! What is a turn signal? Is that the thing Elon promoted on Twitter?
And when someone honk at you stop, drag them out, and beat them up bro.
Bro, Mitteleuropa say "good for driving" or something but they drive 5kmph so don't care too much for them bro.
I think that's the US, not central europe
No bro. That's everyone except Balkan.
Yes you do bro.
Fact!
@slim nymph i have a question regarding emails. What flags emails as spam? We currently have an application that goes through sendgrid, but we noticed a lot of our mails end up in the junk/spam folder depending on the inbox (provider?). Would getting a dedicated ip for the mails solve this at all? I'm asking since that feature is at least 80euro/m and then whatever extra for x amount of mails. And since you're working in the business i figured i'd ask you 
Basically magic
Email suck so much
Might be worth to check your email content on one of those spam Check Sites
Since that's also something they flag, not just the infrastructure
Also tell the providers you aren't spam.
DED just put too much sand in his grid.
so yeah we think it might be the fact we share ip's with other users that use it for malicious intent
Try smth like this https://www.mail-tester.com/
mail-tester.com is a free online service that allows you to test your emails for Spam, Malformed Content and Mail Server Configuration problems
yeah
port fowarding is hurt
Ok nevermind 9.9/10
What's the missing 0.1?
No DKMI
Well DMARC
mfw gandi cucked me again
this time my existing username is too long for their login page
proxi 😔
here's to hoping resetting password automatically logs me in...
it's checked on their side
wtf
mfw hating on open source software
thank god LibreOffice works pretty good
I've used it for 15 years exclusively and never had issues lol
Thank God I don't need to use any office related shit anymore
There's a website that allows you to look through everyday food boxes from different providers (not sure how to best translate it).
It allows you to create account with email alias (email containing + sign) and logs you in automatically. You can use the service and get emails normally. You can reset your password just fine too. The only thing you can't do when you have such email is log in xD
or whenever open office came out lol
It all sucks and IJ is much better
Add more than 60 images to a single slide. 
a dedicated IP could actually work against you in some cases
also at least suggest OnlyOffice instead of gdocs lmao
only thing I can suggest is switching to postmark
sendgrid and the other free services are used a lot for spam
a $10 monthly fee can help mitigate that
we already have everything set up with sandgrid, i dont think we'll be switching anyway
sendgrid?
idk
words are hard
I REMEMBER ALDERAAN. NEVER FORGET ALDERAAN.
IT WAS IN STAR WARS
AND NOW, A WOOKIEPEDIA ARTICLE IN CASE YOU FORGOT ALDERAAN.
"The galaxy knows Alderaan as 'the planet of beauty.' Nature, poetry, philosophy, art, couture, cuisine—we freely share all with all."
Bail Organa
Alderaan, located in the Core Worlds, was a terrestrial planet cove...
Why won't google lemme access this
I mean, the error says so?
learn to read
lol
have you tried giving yourself access?

have you tried yeeting yourself
working on it lol
shouldn't I be having access to my own account tho
by default?
Not if it’s under parental control runs

@warm anchor are you gonna watch dragons blood when it comes out?
dead men tell no tales
Heheee
its been a good day
yay
VERY COOL
life is hell
What you working with kash?

Trying how to create grammar/lexer for something
but that is impossible, jeez
hoooooowwww
yes
hi kneny
hello oskar
whats up
alright
you want to define a grammar for a file format?
define grammar/lexer for a scripting language basically :P
existing scripting language?
This was my project
yes @next frost
The grammar is generate by right clicking somewhere iirc
And you need a intellij plugin dev plugin
seems like there's an antlrv4 adapter, so if there's an antlr grammar you probably can use that
There is no existing grammar for it
oof
Iirc i had to right click on one file and it generates something
Or what no i think that bnf is what you write
It's the grammar
The first things are config options, where you define java classes
let me IM you something
Then you define tokens
And but them together to expressions
This seems like a smallish grammar
that looks super chaotic without syntax highlighting
^
MMM
At that point they should probably think about making it multi file
But I think it wouldn't be that bad with syntax highlighting
an mc server with 120k+ average users on a daily basis, yeah that about makes sense to me
It shows a random company afaik
"online gaming" more like minecraft
doesent appear to randomise it unless its stored in cookies or something
Hypixel was basically driving that CloudFlare product, it was like created for them, or with them at least
I'm not writing a compiler :P
I just want to be able to have IntelliJ syntax highlight it, and then maybe add completion suggestions after
Yeah i know
But it's similar, the parser and Lexers are pretty much the same i guess
I have no clue where to begin
I cannot even find a BNF file for the Java language
nor Kotlin
what the heck happened here?
probably everyone saying the exact same thing
excellent deduction
the jls uses a bnf style syntax for their grammar
but... but... that's the glory of Reddit...
It's like when someone says "nice". There has to be a massive chain of just "nice"
yeah its so funny when they say the same thing again 😀
bah
i like it when one of them randomly gets downvoted its so hilarious !
feel like giving up with this
It's kashike what aren't they doing
and also hi stef :)
Reddit culture
Do you, like, need advanced highlighting? Cause if not, IntelliJ has an option to generate some super basic highlighting depending on the file type.
yes, the public smtp servers get used for spam, im having issue with mailgun too where a mailgun ip is blacklisted. so yeah dedicated ip can help ensure your reputation isnt tarnished by spammers using same service
its not really blacklisted tho, at least not on the blacklists that were shown on the mail validation site
unless they use different criteria
Trying to write BNF grammar for an existing scripting language
is there any documented grammar for that lang?
which scripting language? and also good luck ;p that sounds pretty hard lol
ok, money talk. if you had to choose, would you sell your VIP packages as subscription-based or one-time purchases?
subscription based
i'm trying to decide but I can't lmao
monthly guarantees more steady income, whereas one time could be higher price so guaranteed one time income
subscription based if you want to make money and also make everyone hate you
low subscription based might work fine though
^
depends what you have to offer
both!
I saw a server last year that offered both - I think it was one rank that was one-time, and another that was subscription based
subscription-based on gave new pets that followed you around as they were released or something
plugin jars
now I can just copy paste a bat from somewhere and run it using task scheduler
made it cos i kept losing jars in my downloads folder
hypixel does that too! it seems to be working pretty well for them
yeah it works for them
I bought VIP+ lifetime when it was like 70% off, and they often have pretty good deals
but then again, it is hypixel
then make it subscription based
when you have tons of money
make it like hypogxel
the best way to accept payments at the moment is tebex or what
craftingstore i would suggest
make your own
ya know i thought that at first
then i realised my code would be in charge of peoples payments

you could use paypals api
not much that can go wrong there
either it works or it doesnt
bro wut
sad
Yeah, I was thinking about this too. The only problem is that our serves is (at least for now) purely a survival server, so options there would be a bit limited
ALTHOUGH
Mojang did loosen the commercial usage guidelines a while back, should probably familiarize myself with the updates..
MFW out server is the only server in our country that still has permanent ranks. 
sure
so here, I'm writing a bot that should be able to centralize user and verification handling, for umm, some things
I want to be able to take the group in json, and load the user and the reason as to why they're verified
I manage to get it set up where I could load the users and what groups they are verified in, but I'm trying to reverse it
see, i want to reverse it so it can be like
Found User @foo verified in group @bar for reason: pizza
maybe i'm not explaining this properly
see, this is kinda what i want to do
but it's not, because like
the "reason" string isn't binded to the user "user", that's just like, counted as another user
you know?
would this be what i want?
or maybe, alternatively
i can create a new json file for each group, and then just store it like username and reason
yeah maybe that's what i want
i have no clue what ur saying tbh
yeah i don't know
i have issues putting what i want into words
uhh ok
nvm i might know how to do this
Cursed associative arrays.
I genuinely don’t understand memes like this
maybe I’ve had it too good with Java and intelllij but if I remove a piece of code that other code relies on, even without IntelliJ’s clear indexing and whatnot, Java’s compiler gives me clear explanation of what went wrong
why would people want to hear software student memes anyways
wdym?
what if you cause a bug and not an error brian
computers are best when you don't have to think about them
i think i found the best way to store passwords and backup certificates
that’s literally not possible. bugs are incorrect code. if you remove methods or classes, the code will either function just as well or not at all, at least in imperative programming
That usually happens on web projects or non compile stuff.
PHP is hell.
declarative programming gets a bit fuzzier though, and also programming languages which have GOTO and COMEFROM there can be issues
All these memes are generally people who programmed for 3.5 days and got a bug
ah yes COMEFROM, the perfect instruction
python is hell imo and I can’t stand doing anything other than basic scripting with it
its hell untill you discover pycharm
anything with dynamic typing is really really horrible to use
me: sends message to player
message: sends to server
me: wait, thats illegal
vscode has gotten fairly nice Python support
I mean, I've had java's compiler errors go ten miles to shit before
Like, linting is hard af, and am surprised that the java devs have seemingly spent a good chunk of time getting it right
yeah, the variety of error checking and static analysis tools available in Java is really incredible
It's easy to accidentally remove something which causes breakage down the line
it means kotlin has a ton of catching up to do too
Ie, a method call that seems useless
I dunno. I just recently made a small project with JavaScript and I really disliked the dynamic typing. Having only runtime errors made debugging and testing a pain, and their JSDocs type “hinting” whatever is also incredibly frustrating, and is basically back to strong typing where you have to specify the types but without the compile-time type checks
well that explains it 
lol
well done as always sir ded
i was born for this
ded is best coder
oh, yeah. very good point. I was just more talking about code in terms of methods and classes, not method calls
but yeah very true I didn’t think about that mini lol
i tend to not touch other peoples code to prevent that lol
You might delete method override which is necessary.
Oh good recent example, a coworker refactored some lib i wrote into a new maven structure (to use different parent poms and split modules a bit). He nuked the meta-inf folder because he thought it's useless, since non of his other projects used then, and they always container dum manifest files nobody really needs.
Turns out, this project was a spring project and I added a spring.factories file to do some spring auto configuration magic. Nobody noticed until in prod i randomly saw mah gzip headers where missing, removing the auto config had the effect of not enabling my gzip filter
I made him write integration tests downstream to check that compression is always enabled going forward :P
i hope he was fired for that /s
yikes, that sounded like a pain to debug
its more of an issue when no one knows why its breaking xD
Was ok, I knew where gzip was getting set, so i just had to figure out why the filter wasn't being added, took me an hour or so to remember that spring factory thingy
I apparently had two classes accidentally using javax's Nullable instead of JetBrains's for apparently years. I didn't have javax included in my project. A couple days ago, WE marked a dependency in a dependency of theirs as excluded. The code now broke. And it was supposed to be a non-breaking update dammit /s
Oh transitive dependencies are so fun
Wasted 3 days on that last week
Did a maintinance update on the monolith that does the backend for our websites, bumped all maven and npm deps, had a fun time
I also compile like every app using java 11 at work now, so that's nice
Maven enforcer plugin with the dependency convergence rule is god send btw
dependabot: heres an update
me: MERGEEE
CI: excuse me sir, its broken now
😄
I wish we had automatic PRs for dep Updates at work then I wouldn't only do it 3 times a year :/
If I remember right Spring Boot is able to define factories without stuff in meta inf.
DED guess Gitlab
yuck
going on to say that I'm running paper with about 50 plugins and media confusion, with about 10 bungeecord players with fake network at 1gb of ram 😆
btw if anyone is looking for a more lightweight Spring Boot alternative, maybe look into Spark. I did some web server stuff a bit ago and tried Spring, but I hated how much it took ahold of your project, and it didn’t integrate into a plugin nicely (which is what I was trying to do). found Spark and it’s super easy to use and integrate into just about any plugin, would highly recommend
spark looks interesting but it's nowhere on the same level as spring
I was just doing a basic web API kinda thing so it worked for me
not really a fan of spring
emphasis on the lightweight part
maybe partially cuz i need to retake my spring boot final 
yeah I much prefer fall
xd ded, x-fricking-d
zml that’s a great opinion and I approve of fall as well
Selfhosted gitlab
spring is epic
ur epic
wtf
Spark is nice if you just need a quick and dirty rest endpoint
For anything bigger it's useless
I mean, you're comparing an enterprise level microservice style library to a quick and dirty server
spring offers a looooot of crap built in which is amazing if not a bit scary
you wanna try my bean, cat? ;)
I didn’t really go into spring boot much, so again take what I’m saying with a huge grain of salt
if you insist
proxi can you elaborate on what that means please
wait no, don’t.
beans!
it means exactly what you think it means
hey can i change gamemode in console?
Ktor is a similar little Framework just optimized for using it with
otlin.
If you want modern cloud native alternatives to spring, micronaut and quarkus

did you mean azure and asp
where do I see examples of paper.yml with beautiful settings other than that spgot guide?
.docs
additional tips for improving server performance - https://www.spigotmc.org/posts/3684550
All the resources!
well ok then
oh i already saw that
unbelievable 😔
Turn off mipmap.
whomsnt
does adventure being built-in to paper also mean that MiniMessage is built-in too?
or is minimessage still separate?
alright, so just the adventure paper lib is included then?
Whenever I get my shit together basically
The cute little foxes. I think we do not have an api for item representing like foxes represent food in its mouth.
yea brian
mini btw thank you for mm it is amazing 



Reviewing that PR would be helpful
With stuff you want changed or you find still missing
now code is something I cannot write, but English? I can try ;D I’ll see about contributing a bit tonight if I have the time (I might not)
:+1:

better make time then
yes sorry all my time is being dedicated to nfptp unfortunately
wut now
ninety fine percent tp smh get with the acronyms bruv
looking at this code from first glance, this probably won't work
how could i check if something exists, and if it does not, try to load it then
or maybe i should check if it exists and try to load if not in my get method?
yeah yeah, makes sense bruv
how would you load something that doesnt exist?
it looks like it’d work, but I’d usually get it with a try catch, then check if it’s null
well
most likely also want to catch IOExcetion and not Exception (depending on what error it throws if it cant find it)
if it doesn't exist
then i want it to exist, like i want it to be made fresh
you know
are these files?
json files yes
if getData called loadData if the data was null, that might look a bit cleaner, but what you have seems like it’d work fine.
get the data, if it’s null load it with a try catch, and/else return the data
makes sense to me
its the same like you'd load any file in java really https://www.w3schools.com/java/java_files_create.asp (oh look its w3schools)
create if not exist
might want to look into using completablefutures or optionals instead of null if it’s a public API
if it’s not and you’re sure that null will always be checked, then it’s fine
i dont see how this is related to completable futures tho
I’m assuming load data does some blocking network io
if it doesn’t, I don’t really see why loading and getting are separate if it’s already in memory. possibly a cache?
also @void void next time you ask a question like this, #paper-dev might be a better place to put it
yup no worries
i didn't ask there because i'm writing more of like
a central bot
it's not like, on the paper api
asking it in #paper-dev still a bit better than #general imo. you never get much constructive talk out of paper general lol ;p
ah ok
I mean, paper dev is paper dev
Хай
same

if you're not doing paper dev, paper-dev is off topic

where is best to put off-topic programming talk, then?
general is the general offtopic channel
ah ok, sorry @void void lol I was wrong
shoving people into domain specific dev channels just causes headaches given the assumption that, if you're asking in there, you're working on something in that domain
understood, sorry
you better be

o ok

@austere ivy do you think i should just load all chats at initialization?
or should i load a chat and store it into the cache only when it's demanded
maybe initialization is better
I mean, I got half a clue what you're doing and don't have the mental capacity to care but, like
if your intent is to create files for each whatever, that's not gonna scale too well
chats? like, messages that the bot sends?
damn, maybe my original design was better
well
right now, I want to make a very general purpose whitelist bot
bot for discord?
so let's say you are in a marketplace that only allows verified sellers, i want to create a bot that tracks down the seller, so if they change the username it's updated, etc
nah, telegram
ah k
wait if they "change their username"
their telegram username, not first / last name
how are you storing said whitelist? and what do you mean by “tracks down the seller”?
so, there's a big problem in some marketplace chats
think of minecraft
one i'm in right now, the current way to verify users is that there is a channel list with the @s of the verified sellers
you change your username, your UUID still stays the same
^
though sometimes they will either change their username, etc, and then someone else snatches it up
thats what i was speaking about
but UUID's exist
why do you not just grab the current UUID of whatever name was white listed and permanently store that
Oh seems like what you’re doing
setting up auto backups using rclone and python is exhausting
ok, well
if creating a new file for each chat that uses it is a problem
here was what my original design looked like
setting up pterodactyl is more of a pain
especially with cloudflare and ssl
lol im sure it is
your average desktop FS ain't designed to scale well
once again how are you storing the whitelist? just as channel chats?
uhh
idk anymore man
that's often why apps split up folders instead of having dozens of 12028319319043829432 files in a single folder
im about to start from the ground up
FSes like btrfs make stupid metric fucktons of files in a single folder less performance eating, but, when you got actual databases available 🤷♂️
oh I see, so you were going to do a file per server (chat?)?
nice, cant hotswap classes when some file doesnt compile in a module that isnt even on the classpath 
yes
but now i want to do this
that technically would work but using literally any database would probably work a lot better
how are you planning on hosting the bot? can you also run an SQL server of some kind?
what about something like this?
@spaghetti is the spaghetti chat, where tehbrian and awesome are both verified, but in the pasta chat, tehbrian is still verified while awesome is not
just like, that's how i want it to work
if you like how json stores data, then you might wanna look into mongodb
yeah i'm going to host the bot myself
but i also wanted it to be open source, so people who don't trust me or you know, whatever, can run it too
you can pay for them to host your data or you can just host a server yourself
oh, hmmm
at the end of the day, don't turn minamalism into a dildo for you to fall on
minimal setup for the end user probably means that you don’t want them trying to find a way to host a databas-
things like sane databases have been designed to deal with stupid issues like "what happens if the server dies mid save", etc
cat what in the heck is that analogy
if this is info that you wanna ensure is safe and have some form of scalability, like, use proven tech, no need to re-invent the wheel here
ah i was going to just periodically save every 5 mins
but like
this isn't going to be used like, a lot lot
like there will probably be like, 2-3 users that can easily be re-added per day in the event of a crash
and every other user (100+ users usually) will be already cached
yea, but, are you going to be watching it 24/7? are you gonna know when it fails?
no but in the case that it does, it's no biggie
there's not gonna be like a bunch of mad user adds or anything
don’t say that on yourself. build the project well initially so that if it grows big, no worries, it’s scaleable.
you're working on something you felt that you had the justifiable need to do it properly
take it as the time to learn how to toy with stuff and you'll have more knowledge/experience and have the tool you wanted which will last until oracle breaks it one day
the way I see it, you’ve got three main choices for storing the data:
- an actual (no)SQL server, such as mongodb or some other database. pros is that it’s quite scaleable, cons is that the end-user has to set up a database.
- litesql, which is like an sql database but stored on files. much much easier for users, and you get to use a proper(ish) database in the code. (note, I’ve never personally used litesql, so I might have no idea what I’m talking about)
- flatfile. store json files or something to disk. I do this in one of my discord bots and it works relatively well, but the performance is most definitely not as good as a proper database, and you don’t get fancy features that sql has like what cat said (what if the server crashes? etc.)
if you want local store, use h2
well, local db
never used it but it's basically seems to be the accepted alternative to sqlite
i like the idea of having config options between json/mongo
but i have a quick question
that would probably be the path I would take. make a database controller interface that outlines what the databases do, and then add implementations for each type (mongodb, flatfile, etc) and pick whichever one based on the config
I knew how to read the data when it was sorted by individual chats
but how would i do it in this new case scenario
depends on the database :p
json
so i want a Map<String, Chat>
the string should be the chat name, i.e @spaghetti and the Chat should have a list of User which has constructor perms for id and the reason
- json isn’t a database, it’s a file type, make sure you get the jargon out (it’s annoying I know lol) 2. if you’re handling json, then there are a whole lot of libraries for parsing the json to and from Java objects. I like moshi, but jackson and gson are also widely used
is that it’s quite scaleable
might want to rename Users in the Chat to verifiedUsers just to be a bit more explicit
ok
private Map<String, String> loadData(String name) {
Gson gson = new Gson();
InputStream inputStream = Main.class.getResourceAsStream("/" + name + ".json");
if (inputStream == null) {
return new HashMap<>();
}
InputStreamReader reader = new InputStreamReader(inputStream);
Type type = new TypeToken<Map<String, String>>() {
}.getType();
return gson.fromJson(reader, type);
}
this was my method of loading data from the .json files
it loaded data that was like
basically just like
{
"brian": "awesome"
}
what i'm confused on is how do i get the chat name
then get the contents there
hm, it seems like you’re on the right track overall, but I’ve got some things I need to do. I’m sure someone else will help with this specific thing. just keep writing implementations for different database types and you should be on the right path
ping me later if you need anymore help though
awesome thanks
please can anyone review my code https://paste.helpch.at/ogiwefiqec.coffeescript
you know you can do bitwise operations right
1 or 2, 1 and 2, 1 xor 2, 1 shr 2, 1 shl 2
ok can u do it so i can see?
can anyone else hepl please
...
@here









