#dev-general
1 messages · Page 43 of 1
its not over cheap its bulk sale over a selling less for more money
anyway hetzner network is not good its the main reason why they are bad beside it no scams or anything like that.
own datacenter parks, they also usually choose cpus with lower power usage, also iirc they undervolt some of their cpus, etc etc
hm
its not about that
its about their datacenter ISP routes and shit
eletrcity bills arent pain if u can place ton of solar panels / renewing electrcity
Ehh I wouldn't say their routes are bad if that even means anything noticable
Their ddos isn't too good though
If you mean from your phone, I use Ampere, it's fairly accurate
Wait syke I thought you meant testing the actual output nvm
nah i ftook mintcp
thanks..
nah i need to also get a schematic to order a PCB from a factory ^^
ill check EasyEDA im really new to the topic ;p
because i dont remember what i studied 6 years ago
but it should be simple based on true and falses
not the device but eletricity curcuits
I don't want to advertise another Discord so check out the YouTuber Voidstar Lab
thanks ill take a look rn
cyberpunk glasses haha
thats... what they use, i was replying to what makes them cheap
the things i said def does let them provide very cheap prices, (not all the reasons, but still)
Hey everyone, could you guys kinda judge my code lol, I wanna clean it up before I publish the plugin itself lmao. https://github.com/xMrAfonso/Runway
seems good
but why using pl lib?
widely used, packetevents is not that common + this was originally made for my own server where some plugins require ProtocolLib. And I didn't want to listen to packets myself "manually" cause that would require even more maintenance lol
i see , then if u r fine witth itt looks very nice clean and organized
fr? I thought I was missing something
the main processComponent method looks a bit cluttered, maybe will modify it a bit
didn't run any performance tests so... hope there are no issues on that side on bigger servers
lol
performance tests r pretty useless now adays as long as u dont have infinity loop haha
or leaks
like modern cpu's r really good ngl
good question
it disables the plugin, so I would assume it wouldn't run the rest of it?
although no idea tbh
unless it throws an exception it'll still run 🥲
fixed that
I am concerned about the scoreboard part since it worked on my end, but not all scoreboard plugin works the same from what I recall
so, will see
will probably just add a command to manually parse text or an item
and after that it should be fine
I mean, packetevents can be shaded
that is..... a good point.
eh but I already had to use protocollib for other stuff
so, why not I suppose
this was originally not meant to be public
just making it public cause other people might need something familiar
I also hope to send a tiny middle finger to the fkers that don't update their plugins to support minimessage
xd
Either way, code pogging? Free to publish it?
idk I didn't read it lol
relatable
If only developers weren't assholes about everything and stopped shaming others
impossible reality
That’s me
And then you get a job and see the actual shit, literally 
if (thing) return true;
else return false;
The amount of bad code I have written because we didn't have time to make it better lmao
Yup
Professional Devs don't shame others for their code, hobbyists do
At least from my experience
I‘d say it’s often the Dunning-Kruger effect
What category did you submit the ticket to? They probably don’t have a lot of staff for the lesser ticket “issues”
considering previous replies were within 2-3 days, this is fairly uncommon to me, thought its discord support nonetheless
it's regarding server ownership
our current server owner (he was the one that created the server being an admin) is inactive and been offline for months and he's technically off the staff team
I've been trying to get them to transfer it, but every time I do, during the time they take to reply, the current owner miraculously logs-in (the current owner needs to be offline for at least a month) and they deny the request and suggest moving 4000 members + losing all the message history and integrations, to another server.
Are there any alternatives to configurate?
Only found out now that their YAML configs don't have support for comments
which quite sucks
not snakeyaml 💀
DazzleConf supports comments
although it may be as not as convenient, still decent
Snakeyaml does support comments on more recent versions
^
Yeah, you can use the public repos for a base if you need to source dive
It's really solid
those are nice, I remember this 3rd alternative... hmm I think it was named oe yaml or sth lol
What about hocon? More robust structure than yaml
yea I think hocon is cool, tbh as long as a given ecosystem has some sort of consistency/standard for which format they use its pretty nice
I heard pkl is the new thing everyone should use
Pro kabaddi league?
apples new thing right?
yeah
Interesting
configurate does support hocon, but not all minecraft server owner understands hocon
https://github.com/Simplix-Softworks/SimplixStorage looks interesting ngl
There's also https://github.com/WiIIiam278/Annotaml which is based ontop of boostedyaml
Is not that different from yaml
yeah, but yaml is the standard xd
that's unfortunate
Json!!!!
You guys need to stop being weak and use .txt with Scanners 😎
dazzleconf is nice
https://github.com/A248/DazzleConf
Not perfect but alr for most things
Othwrwise id just write ur default config manually cuz theres usually too much preference that cant easily be expressed as code
dazzleconf has a few issues, like SortedMap not being supported, and https://github.com/A248/DazzleConf/issues/31
cant you just make ur own sorted map serialiser?
and im not sure what you mean in the issue you linked
no, i tried, FlexibleType just uses the normal Map, it is impossible to use the original order in the config
if you have a Map of string and value of a sub section, and you add new values to the sub section or user removes one key value, the whole tree will reset for no reason
oh i think ik what u mean
like when you load and save it it can't save the sub section because it's invalid so it just deletes it?
After having moved on to modding instead of plugin development, coming back to this feels sooooo much easier and more relaxed
The modding community is way more toxic too compared to this one
real
Modded servers is a nightmare for hosters
Do you mean the minecraft servers or discord servers
Minecraft, you can't host modded Discord
I'm confuse dxD
https://github.com/meetDeveloper/freeDictionaryAPI/blob/master/modules/dictionary.js#L180
Anyone know how this function works?
Running this request myself just returns json )]}' {"feature-callback":{"__err__":null}} (the )]}' is normal, and the github code also substrings that out) but I get an empty response 🤔
And I couldn't find anything online on what https://www.google.com/async/callback:5493 was, or even https://www.google.com/async (or any of the params in the code)
Any reason getResource is returning null? Its in the jar file.```java
Path animationsPath = Paths.get(MinionCore.class.getClassLoader().getResource("Animations").toURI());
Files.list(animationsPath).forEach(path -> {});
@static zealot
I don't think getResource works on folders
oh maybe it does
idk
but what happens if you getResource a file
Works with files... Not with folder. But I don't want to write down the name of all the files I have in the jar.
real
I wonder why there are no alternatives to bstats
well, at least ones with a more modern UI
bstats hasn't even been updates in 2 years
Charlie isn't this what anylse is for?
Ironically I’ve started building one 🫣
No for game servers pal
👍
Currently just Minecraft servers, but will expand to FiveM etc.
I’ve been planning a bStats alternative in stealth, using what I have learnt whilst building Tebex Analytics
I feel like it's the lack of profit detering a similar system. You could put ads on the page but 🤷
I agree, monetising this kind of thing would be hard. I would be able to take the hit to host it on something similar to the specs used for Tebex Analytics, due to database optimisations etc
👀 but like, started = stopped or started = still working on it?
Lol I feel that
It’s been planned for a while, in stealth, I’ve been starting to build the foundations lately
I mean, feel like this shouldn't be for profit imo
You can ask Gian, this has been planned for a long time
bstats is sponsored by a host and is fully free
No way you're gonna git clone another repo from me and steal all my work as your own and get aquired for another $10,000,000 that you don't deserve
☕
Charlie caught what I meant. It would take a lump some for hosting and upkeep.
I think being for-profit isn’t an issue IMO, every business has to make money. I’ve had some ideas to build an alternative for a while, that could allow a “freemium” approach
FastVM still sponsors bstats so I assume they are getting some money back?
The value they get back is knowing what's popular and basing their arc on that
tbh no idea how you could monetize this without limiting the system too much
but welp, we will see
I feel like I’m in a great position to build a bStats alternative, given the experience I’ve had over 2 years building “Analyse”. I’ve had a lot of experience with database tuning, to allow us to handle like 100’s of millions of monthly events
Shhh don’t expose me again, I don’t want another twitter thread with a google doc 😭
😮
another?
No idea, I’m the process buying my first house - it’s stressful 😂😂
Yeah, I’m lucky to be in the position I could take the hit for a while until it gets off the ground (if any) to do it
😮
I presume you already bought the domain? in a typical charlie fashion xd
Ironically, no 😂
😮
😭😭 Mr Domain Addiction me
xD
But yeah, this has been an idea I’ve been planning for a long while. I haven’t had much time to actually build it fully yet.
I am very picky when it comes to what ideas I work on, it has to be based around an issue I personally face to do it. We’ve had an issue at Tebex for plugin stuff, which has sort of pushed me to build this.
Plus, I am very picky with UI - if I do this, it has to be my best work yet by far in terms of design
Hosting has always been my projects downfalls. Eventually it just got to expensive. So new projects that require hosting are always just an idea for me.
That's why I just host everything on a $10/m VPS
Yeah, I think hosting is often the most expensive part. I’ve been planning to write a blog post to discuss what I’ve learnt, hosting can be cheaper if done right, but most lean towards the “serverless” crap which I don’t believe in
I am a big preacher that “cheap” hardware goes a long way
Even that's to expensive for me lol
My projects don't have a steady income to keep them up.
That’s understandable though! What I would do is work on a project, and then put aside $5-10 a month for hosting.
After you’ve built it (however many months it takes) you should have some funds to put towards it
that's why I use Oracle Cloud xD
Some places like digital ocean offer $$ for free when signing up, you could use something like that
Oh yeah definitely but after years it's at the point where it won't ever keep itself going so I just drop it.
You could always use Oracle Cloud or even Cloudflare Pages
both free
and tbh, Pages is looking awesome
I have only used it for testing on a very old project of mine
which had 0 backend
but they have workers and what not now
For in house projects I just use what I have, phones, old pc/laptops etc.. but for things like servers or websites yeah I could look into those.
github pages too
i think is like the equivalent of cloudflare pages
supports React, Svelte, Vue, etc.
feel like cloudflare is better imo
oh
I think fred use/used it
I haven't used it myself tho (or github pages)
My personal server died a little over a year ago so that sucked. But it was old when I got it.
Ddr2 64gb dual quad core amd
unsure why it's not common for people to have an oracle cloud server
Sigh masked links are blocked
60 days free
Or yeah, Cloudflare pages works
I know @jade raven preaches it
it def. is good, I will use it whenever I start working on my SaaS
which btw charlie, I haven't touched yet 😢
It appears that my final year of HS is a bit more stressful than I imagined
can confirm, pages is great
my math grades are not pogging rn lmao
i used it 2021-2022 however there is a big rarely mentioned issue
?
if you try to spin up your own instance right now you probably wont be able to
they only have so much capacity
and people literally use scripts to auto claim space as soon as it becomes available
yeah, a friend of mine terminated his instance to start a complete new one
and got fked
yep
cause "out of capacity"
thats what happened to me
I did this, had to wait 2-3 days before I could recreate it 😂
same
happened to me once
after 2-3 days I got it again
they are constantly terminating inactive instances
I already got emails twice cause my instance didn't have enough activity
lmao
I have 2, luckily they have enough activity it's not an issue but yeah that's annoying
On a very side note, @wintry plinth if ya need any help in either direct frontend coding or just general feedback, you know where to get me. Afterall, don't tell me I took an UX Design course for nothing 😢
(I actually have barely used my knowledge from that course yet lol)
Hehe thank you, I’ll consider it — hopefully I can squeeze in some time to properly start. I’ve been planning it for many many months, as my experience with “Analyse” would make a bStats alternative a bit easier given the experience
yeah, 100%
- you have had enough time to see what's bad about bstats
and can fix it
in the meantime, gonna add bstats to my plugin
Yeah, it’s also taught me a lot about why competition in the space is needed. It helps a lot when you can learn from what others do, as the saying goes.. competition breeds innovation
factsss
I saw this today when looking through a friend's project, I dont even know what to say.
switch (File.Exists(jsonSavePath))
{
case true:
Achievements_SaveFile save = JsonUtility.FromJson<Achievements_SaveFile>(File.ReadAllText(jsonSavePath));
Achievements_Earned = save.earnedAchievements;
break;
}
the fuck
Si many wrong things
Nightmarish code
Is YamlConfiguration.getDefaultSection() not the same as YamlConfiguration.getConfigurationSection("")?
Has anybody messed with display in spigot.yml? I assumed this would include TextDisplays but with animals and display set to equal values, TextDisplays as the passenger of animals don't seem to unload but the animals do?
hell I might have to switch to ProtocolLib again
packetevents has some issues
and I doubt the dev will fix it in the next 12 business days
hell why are there no alternatives to protocollib and packetevents?
protocollib and packetevents (although i never used packetevents) are already good libraries
protocollib is more low level than packetevents I think, but there's packetwrapper which tells you how to use the packets (the exception being when the packet changes and packetwrapper isn't updated)
yeah but protocollib cant be shaded and packetevents has some issues.... that take ages to be fixed
PR 😛
I have 0 ideas how to fix it
are the devs aware of the issues?
i am a dev, and i am aware of this issue now
not a protocollib or a packetevents dev but i did make a hello world in java a few times
opened an issue but no response yet
sounds like you are going to have to figure it out
already did, switched back to protocollib.
It's best to ping retrooper in the Discord
eh will try that
Has anyone ever had an issue where IntelliJ randomly changes font and you cannot change it back?
no
I got VSCode doing wild font and font spacing with JUnit tests. 💀
VSCode is absolutely wild when it comes to java
had multiple cases where reformatting just straight up deleted code
and every time I was confused why it doesn't compile anymore suddenly
I am too lazy to import Uni projects into Intellij, especially since they use Eclipse on campus.
If you're not using the Minecraft font, are you really a Blockgame Developer?
minecraft font to me truly is the most readable
Reading that makes me want to play code. 
Of course
😂
Holy shit I'm going to use that for work 🤣
ligatures :-(
That actually looks pretty good besides all the italics
You can turn them off! :-)
But why would you? 😔
Ligatures ftw >>
I've seen scoreboards removing the Red-Numbers in 1.20.3+. Does anybody know if this done with NMS or through the API or if anybody has done this
I would ask on spigot but md gets mad at the thought of somebody using NMS scoreboards instead of the API and locks the threads 
Legend, thank you 🙏
imagine it makes lint failures into &k obfuscated
they bother me weirdly
this commit took 2 lunar year to complete and yet there are still bugs hidden inside 😭
typical
Why can you not search through a repo on github without being logged in?
You can go through all the files but the search option will always show 0 results.
So download the source or login lol
I mean, GitHub users are typically logged in
I rarely am.
sounds like a you problem
jeeeeez that guy is mad
How can you use github and not be logged it all the time LOL
I don't blame github and any other service (twitter, etc.) that does it even though I find it very annoying
I get why some websites do it. But Github lets you view everything. It just won't let you search for it to find it easier.
searching is fundamentally different from browsing when it comes to computation cost
From what I can tell, they updated their search engine when they made login being required. I do find it a bit scummy that they're using that as an excuse. They could always just give the not logged in users the old search but that is extra work for their developers.
🤷 Like I said I can login or I can download. I feel like downloading would "cost more" then just allowing us to search.
you feel like or did you run the numbers?
because I'm certain it isn't a hunch for them and they actually have the numbers for it :p
downloading is traffic and takes up your resources and time otherwise
missing 0.5 offset moment
i changed it to pitch to see what it would do
how quirky
centering the entity isnt really the fix for the problem
i have now learnt that block displays just select a corner and when the yaw is modified the whole thing spins around that corner
Would you guys say that plugins are better to learn Java than minecraft mods are?
I know it's better to learn Java independently, that's what I did a few years ago
Just curious to see what everyone thinks, I feel like in modding you are so much more involved in understanding how the API works and how the source code works that you end up not learning as much Java
While in plugin development there is less complexity when it comes to API usage, resulting in an easier time when trying to learn Java?
plugins are easier imo
Note that responses are likely to be heavily biased towards plugins here bc it's a plugin server
But I'd agree with M0dii
Plugins have a more stable and well documented API than modded does, in my experience forge/fabric are kinda just guessing games
heavy on forge api being a guessing game
there are probably also far more resources on plugin development on the internet
I can vouch that fabric is painful to use, plugins are much nicer
I have used fabric, although as said my opinion might be biased, fabric is way more difficult than plugins
cant speak for forge
I could kinda compare it to server jar development, whereas for plugins you just use a fairly well built api
I mean plugins are only half of the whole game, you only do server side. Mods have a lot more going on since you also handle client side, so you get a lot more practice doing like networking and UI and stuff
You likely end up using a lot more of Java doing mods than you ever will doing plugins
Looking at it outside of the plugin ecosystem, irl you'll (usually, your experience may vary) be working with decently documented modular libraries regardless of the language you use. This is better reflected by plugin development than the modding ecosystem at the moment, so you'd get more transferrable skills from plugin dev work.
deez
Hey guys anyone Herę made bruteforce for 4 pin app?
No limit attempts 30sec time limit per attempt
???
thats... a odd question
Considering 0 time for putting it in, it'll take you 3 and a half days
A odd question??
No no i meant it gives only 30 sec time to try
Then request is over
What best to use?? Via android simulator
From what I know Java can’t do it without external libraries
Python?
well you have to try 10000 different combinations
I can try many times as I want I believe 1 out of 10 times gonna work
3ms per req
I’ll try with C# today I hope the android simulator gonna be friendly lol
I’ll just take locations within the app screen
Odd
It’s Friday all the devs out partying
Lmfao
Could someone help me? 1.20.2 works but when I upgrade to paper or in my case pufferfish 1.20.4, it fails and crashes to do registry of lit_redstone_ore? I’ve tried paper 1.20.4 as well as spigot 1.20.4 and all fail. Please help?
Paste it in /paste
ChatChat not very active now is it
how the fk am I supposed to work with net.kyori.adventure components when ChatChat returns at.helpch.chatchat.libs.net.kyori.adventure.text.Component
is it net.kyori.adventure at compile time?
well turns out it was kinda my mistake because I didn't have any other options
I've included the ChatChat jar itself, not the API, since I had the error above when I included the API as dependency
I assume the API is kinda outdated
lmao codemc is fked
Getting this error everytime I try to restart server, server randomly crashed @ 60 players
57921 Portal: 34222645
[17:05:35 INFO]: Max TNT Explosions: 100
[17:05:35 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[17:05:35 INFO]: Preparing start region for dimension minecraft:chunkworld
Stuck here in the console, does nothing when I try kill it - removed the world but it says the same thing just with another world, any ideas?
dont crosspost
Sorry bro
is there any discord integration for guilds plugin?
like they can have their guild chats connected to a discord channel
I don’t think so
I might be wrong tho
what is the sorting algorithm that moves the items the least amount? I am in a scenario where swapping the place of two items is expensive (assume 50ms per swap), so I would like to minimize swapping by implementing a different sorting algorithm (what I'm sorting is a live list)
I googled this, and found this sus post in Quora https://www.quora.com/Which-of-the-sorting-algorithms-require-the-least-amount-of-swapping-or-memory-copying-operations saying that Selection Sort is the algorithm that minimizes swapping, but I'm not sure
whats the use case?
inserting elements to a sorted list for example?
sorting items in a bank of a game, so the sort must be in-place
and whats stopping you from sorting then calculating differences and just doing those to minimize changes?
nothing, but the stored values must be only the index of the items then (for example, a struct with the two items to swap, ex.: swap items 5 and 8)
ya, thats what i meant do your comparison and see what needs to get changed
then only apply the changes that are needed and nothing else
I already have an algorithm to sort things, but it sometimes do too many unnecessary moves, so what I need is an algorithm to minimize the total amount of swaps I perform on the live list, that's what I want to know, the name of an algorithm that specializes in minimizing the total swaps needed to sort the list
then you want selection sort afaik
is using StringUtils good for hex colors?
MiniMessage >
is that also a dependency?
Yes
if you are like any modern dev and use paper, 1.18+ already has it built-in
otherwise you have to add it yourself
has anyone else run into a weird Failed to validata message acknowledgements from <player> warning, resulting in their kick?
It's just started happening randomly half the time I use a command
No Chat Reports mod?
does java have any inbuilt sort method?
if there is use it
should probably abstract the sorting to some cheap model like a list of ints representing your items, then only apply the difference between the original order and the final sorted order to your expensive scenario
also, are you limited to only swapping the place of two items at a time? or can you perform a more complicated operation like setting the position of many items at once
also wait lol
why do you want to sort it
aint data being stored in a db?
just use the db query
yes
Collections.sort()
But the objects inside the list need to be able to be compared
love u sweetheart
also which editor you use for coding?
you can use the Codeium extension its an free (maybe be better) alternative to GitHub CoPilot
Why do you ping me? lol
fail, stop pinging me pls
@static zealot where is my code review
done
aight thx, will fix in a few
also, any reason for UID over world name?
since I have been thinking about an option to define the global range shared worlds, so the config entry would contain world names
well, technically world names are probably unique, the unique identifier is probably better to use
not that familiar with the spigot api
but I assume there's a reason to have both an id and name
I suppose in this case it shouldnt really matter.
I think one would use UIDs if you store them say in a database and want a reference to an exact world, i.e. if you delete the world and re-create it, you would know its not the exact same world.
maybe world name changes?
Still the same world with same uuid but different name.
yeah I guess. that won't affect this particular case though
Saw this in another discord, if you get nauseous easily don’t click https://hasteb.in/88myOMoZdeRj9Ln
I've seen worse
Hi, I am making a clan plugin and I want to integrate two commands, one is /vote leader <player> to select a new leader and /vote apply, but I don't know how to do it, can someone helpme?
- #development 2. we need more than a "help me"
he wants to be spoonfed the entire plugin from what I can tell
Think about and then clearly articulate what you're trying to accomplish, where you're at, and what you're struggling with.
It's ok to need help, but if you're not overly clear about what situation you're in people will treat you like the above
My problem is that I don't know how to manage that after 5 minutes of there being no leader, the one with the most votes is selected.
That's more specific, hopefully you'll get help in #development
allow them to vote, after 5 minutes, with a scheduler, you close the votes.
also, great resource @golden plume: https://xyproblem.info/
No need for a scheduler, just delta time, time when it started time it stops, if current is more don't allow votes
Yeah, that would be my approach, but try explaining the little math behind that, I swear beginners understand schedulers faster than that
somehow
idk why
but it happens
lol
you think? I doubt it
hell from 9 people that I explained it to, 8 of them said they understand schedulers better lmao
Why does that sound like 9 out of 10 dentists recommend schedulers
lmao
nha but it was actually 9 people
at school, we had nothing to do so the teacher just said "lets code some mc plugins"
while him being like, literally not familiar at all with the api
lmao
so I kinda had to teach the whole class the basics
a few already knew, others wanted to try alone
9 of them I had to teach
and literally 8 of them understood schedulers but not the logic behind the delta time 💀
Probably a question for #minecraft
Okey
Thanks @wind patio for your PRs. I have merged them. Now you can start working on cross-server support because I can't bother with this shit anymore 🤣
Provided to YouTube by WM Sweden
S.O.S. (The Tiger Took My Family) · Dr Bombay
The Hits
℗ 1998 Metronome Records AB
Producer: Robert Uhlmann
Producer: Robin Rex
Writer: Ceazar Zamini
Writer: Robert Uhlmann
Auto-generated by YouTube.
youtube music suggested this to me so I am sharing with you all this gem
no problem, glad to contribute
I dont have a multi-server setup so thats very unlikely 😄
good time to make one
amazonwebshit
That is insane
using IPv4 should be illegal
Imagine not being able to memorize yout servers ipv6 address
AAAA record
Opinion on Lombok?
It's just so confusing to use lol
But I'd probably get used to it
I just recently started trying out Lombok and it removes soooo much boilerplate code
?plsnolombok
Why is Lombok bad?
- It's a compiler hack - the Java compiler isn't designed to modify code, so it can cause difficult to debug errors, or worse
- It requires an IDE plugin, so unless you've properly configured Maven, Gradle and your IDE, you'll get hundreds of compilation errors. This process takes time too, it's not easy
- Lombok'd code won't show in Javadocs
- The code generation is often unpredictable and difficult to debug, and often you'll have to do it "the hard way" anyway
- Java is supposed to be explicit, Lombok hides a lot of key functionality into a subtle annotation which can be easy to miss
- While IDEs support it with a plugin, it's usually more difficult to find specific things, like usages of a getter because they don't exist in the source code
- Finally, Lombok'd bytecode doesn't match the source code, so it causes a pretty annoying warning in IntelliJ
you can just use kotlin as java, although not the ideal way to use kotlin, it's an easy way to get comfortable with it, it's pretty similar
Hmm yeah makes sense, but when making the same type of class hundreds of times or whatever, it's so nice to have
But I should probably just learn kotlin
Sounds like a design issue
with a modern ide you can have most of the functionality of lombok but without the unpredictability
To be honest, most of Lomboks “attraction” is not needing to type constructors, getters and setters - but actually IDEs like IntelliJ offer that exact thing. I use it a lot as it can be tedious to write, but with a keybind you can write it quickly
you can do constructors easily as well
@Builder
@NoArgsConstructor
@RequiredArgsConstructor
@AllArgsConstructor
@ToString
@Data
@Synchronized
@Cleanup
I prefer Java over Lombok, and everyone else should too
I love when I open a class from someone else's project and I see @NoArgsConstruct @Builder and whatever else 🤌
How can i make a kits menu in a kits menu?
Because i have a gui if you do /kits. But i want to make gui for ranked, and members and tools
But it must be make a category
I never understood the whole lombok thingy, I dont see the issues on it besides readability on open sourced projects... @Builder, etc are cool
Yeah I mean I just use it for getters setter and constructors, it's very nice to have
And the SuperBuilder
idk, if someone can explain it, ping me I suppose ¯_(ツ)_/¯
I assume it's just this #dev-general message
I don't use it, I rather have all the code that will be in the final jar at hand, but I also don't blame anybody who's using it
How.
might mean use effectively
sure it's easy to use, but using it to actually get a quality outcome can sometimes be difficult
It's all about engineering the response.
Gotta be a top tier proompter
github student gives you a prompt engineering guide
made by microsoft
lol
Wait really?! I didn’t realise that lmao
Does anyone know how to put a community made Jekyll template into my Github Pages repo?
Is this discord or are there actually multiple chsnnels?
restart your client
CTRL + R btw
why is a voucher plugin almost 1.5mb
when I just wrote entire voucher system in like 100 lines of code
mine is made with kotlin
3.8mb
dependencies
💀
Hey smart people,
my webhost jacked up pricing for Plesk licenses and I'm looking to switch to a different control panel.
I need to host a bunch of LNMP stack websites (nginx + mysql + php), support multiple php versions and multiple domains, support LetsEncrypt certificates and must run alongside portainer.
Ideally, it would also have pgsql support and a UI for file manager, database creation and firewall.
Any recommendations?
Either free or less than 60 bucks a year.
do you need diff php vers? how different are they?
It's all 8.X
I just need to be able to run one web application on let's say 8.0.30 and another on 8.3.2
But technically it shouldn't matter what PHP versions exactly I want to run, should it?
Usually it should all work fine, I'd just recommend trying it on 8.2 and seing if your sites work
Sure, but my question was whether you guys can recommend any cheap or free control panel that allows to do this 😄
I installed a couple (like Hestia) but I wanted to hear what my fellow Helpchat devs use.
man i'm getting too much enums in my api
oracle free tier vps

I mean I think we'd need to know more about the overall situation, cause this could go a few ways
wdym
If you're like hosting client websites, then getting a VPS/dedi and just running Docker containers + a single Nginx for reverse proxying on all of em would be very nice
I don't really know of any like free hosting services for that kind of stuff, so that's where other people here could come in clutch
no no, maybe I wasn't clear. I'm not looking for a server. I already got a vServer that I'm using and plan to keep on using. I'm just looking for control panel recommendations because I don't feel like shoving money into Plesks throat 😄
It's just a bunch of my personal web projects, some personal APIs, services. I ideally want a classic control panel that does virtual hosts and host portainer on the same machine for a few containers such as vaultwarden etc.
ok chatgpt 🤣
imagine using chatgpt
...
(that was the first result of a google search)
pff
imagine using chatgpt, frfr
pure old google for the win
Oh I mean yeah in that case if it's all yours, then I would just have like one Apache/Nginx setup that just reverse proxies all your PHP stuff. If it's like straight vanilla PHP, should be super simple, if it's like Laravel/Symfony or something, fast-cgi and stuff should come in handy pretty nice
well, i can google too. Obviously I'm looking for recommendations. hpanel is hostinger, cpanel and plesk are not an option as i have explained above. Tried webmin, but hated the UI.
Would teach you a lot about sysadmin and get you away from relying on poor abstractions (web panels)
Star that seems like more work :-:
Also tried Hestia, which looked ok. And about to install cloudpanel as we speak.
how is that more work lol
You just setup Nginx like once and then bam
add your .php files wherever
ngl this looks good
yup thats the one I meant 😄
I do webdev for a living. I am definitely not the greatest sysadmin out there, but I certainly could do it by hand - but I gotta admit I like myself a graphical interface for certain tasks. Especially when it's for hobby projects 😄
makes life easier
yeah idk, I just find it not worth the effort of trying to get a panel for websites
whole reason I install ptero to manage my stuff
actually, doesn't ptero also allow web hosting?!
Like I'm at the point where I can slap together a docker-compose.yml and get an Nginx reverse proxy config in like 30 minutes
Yeah I do use Ptero for my game server stuff, never tried it for web, but I guess it could work
you need a nginx egg I believe
yeah
I mean you could run Nginx outside of Ptero
or node.js, or whatever
for nginx stuff but you can use JavaScript/Java/etcetera if you use them
which you like probably are already doing if you're hosting Ptero yourself
idk Docker just makes life simple 😌
I mean, if you already use ptero for mc servers, etc. why not for websites
If you want more control
only reason I don't host my websites in oracle cloud is because I fear it's not secure enough lmao
I have. It works. It is nice. I used ptero to control my website, discord bots and minecraft servers.
idk, might be stupid and misinformed
I have a lot of mounts and stuff I use for my website stuff I run so I need the control
or at least was. this was ~ 2 years ago
I support this, I do that and will always do that
Redis, MariaDB, SCP: Secret Lab, Gmod, etc.
I find myself creating plenty of smol websites, apps and services every now and I don't want to containerize every tiny little php file or python script I create. Clicking on "Add website" and uploading an index.php seems way more straightforward to me.
yeah I suppose
is oracle cloud VM safe enough to host a website though?
it's not worth my time to setup nginx again while I already have pterodactyl panel
Idk I am not a small single file kind of guy lol
Like, I always had the assumption it wasn't safe cause of firewalls, etc.
If I'm making a website, it's going to be like a full Laravel situation
or like, in any other framework, in which case you'd want the whole Docker setup anyways
PHP is really just the notable exception
i mean you can configure the firewalls
my experience with firewalls be like:
yeah I'm not saying you're wrong. I actually thought about using only portainer and putting everything in containers, but it didn't feel practical for my case.
or actually aren't firewalls based off the OS/distro/software?
not the actual host
I am pretty sure I messed with firewalls to make ptero panel work
I legit had 0 idea what I was doing
I mean if you have a ton of small stuff, could just run a single php-fpm container and configure a few virtual hosts for all the small things
so I am afraid I messed up somewhere
then full Docker containers for all the big stuff
which could easily expose it
Man, I really can't get behind PHP. I know people just say "user Laravel" and I had, but I still don't enjoy it. I'd rather use python with jinja
I don't do that, but I'd rather
and since I will be running stuff that contains user data, preferably having 0 data breaches would be nice
I've found PHP more and more attractive, it's a lot like Java and the ecosystem is just so great
same, PHP is literally the least language I'd want to touch again, even though I do use it sometimes, I regret it instantly
I literally just rewrote my shitty Discord bot I inherited in discord.js into a wrapper over DiscordPHP and it is absolutely beautiful
Laravel makes it quite better ( charlie I love u) but it's still not good imo.
and like, Laravel's Blade templates are so much better than Django's
it's like not even funny
Svelte 🔛 🔝
I'm more into python, typescript (not JavaScript anymore) and Java
I've gotten into Vue a lot recently
it's growing quite fast though.
I mean, I don't like js either. don't get me wrong. I realy dislike frameworks like react. I've recently started using HTMX and I want to see how that would go with Kotlin and Ktor
I need to learn angular 😭 thanks for reminding me guys
💀
Modern PHP is actually quite nice. You just need to stay away from ancient tutorials written in 2010
Everyone is legit moving to Svelte, if you check surveys etc, almost everyone is interesting in svelte
well in like 5 years maybe I'll reevaluate lol
hm then u might like EJS
it's just a matter of time until it becomes as big
And Laravel is just a mvc framework like any other. It certainly does the job and has a huge community.
Vue's template syntax being valid HTML has been a huge huge boon in my recent projects
I don't recommend EJS since it's client side rendering and terrible
Svelte 5 is coming out soon, that will make it even better with runes
but seems like you might like it
It has the absolute best ecosystem and docs from what I've used so far
whoever is not working with svelte does not know what he's missing imo
why would I like EJS lol
saying that to blitz
okay, eco system sucks a bit, but it's growing fast and the dev experience in svelte is simply good af.
ah sorry
I just learnt a new word
lmao
several things like shadcn are being ported to svelte too: https://www.shadcn-svelte.com/
but yeah just being able to slap in Vue into any html and a little script tag is so so so nice
no preprocess step required
I did try svelte, I found it not really comfortable when it comes to file simplicity (as in organizing stuff)
I hate messy stuff
in what sense? Only thing I dislike about it is that every page now relies on the folder, then the actual page is just +page.svelte, but there are extensions for VSC/WebStorm that remove that
anyways, https://laracord.com/ is literally the best experience I've ever had with Discord bots lol
discord.py and discord.js were both quite awful to use
I've only ever used jda
there is??
yeah idk I want to like Java a lot more, and like get into Spring, but the docs and ecosystem are just so awful
I only ever wrote 2 bots though. One of which is still in small use
I don't like how everything is handled by folder so
I just used kotlin lol
no nice database ORMs, no nice migrations, all the docs either use .yml or like .xml files for config, etc.
I use Webstorm but yeah
I might move then
I've been using Kotlin a lot for mc plugin stuff
But for like anything else, it just doesn't do great for me
Hibernate is nice tbf
eh
Why's that? I find it pretty nice to use for discord bots. But again, I've only ever experienced Kotlin + JDA for that
idk it's just not the vibe
I'm using ejs cause it's easy to handle and isn't messy, and seems similar to javalin
all the libraries feel dated, poor documentation, etc.
like looking at the Hibernate docs rn is painful
only downsides I found is that it's server side not client side and terrible for performance
I mean it's similar to ERB lol
that's literally what it's built to be, ERB but for JS
I like HTML bcz I don't have to do that much JS. LOL.
HTMX*
in JS we have Prisma which is good
idk never really liked Prisma
I would say Svelte is going to be the future main frameworks, Svelte 5 is going to bring a lot to the table, eco system is growing fast, several hosts/frameworks/libraries/etc are starting to support svelte too. Dev experience is the best I have ever had comparing to React and Vue.
all that translation layer stuff was quite weird
planning on using it!
ehh?? I got used to Prisma literally an hour after using it
What's so much better than Vue? I've recently gone from React -> Vue for real stuff, and I love all the Vue stuff. Can't really remember any big niceties in Svelte that I don't get in Vue.
It's so good that I'm having issues going back to Java's usual long and terrible handling
I am planning on making an SQL library similar to Prisma for java
Please, please do
just copy it and name is PrisJava or something I don't care
I've been spoiled by Django ORM and Laravel's Eloquent lol
I actually already started, but stopped it cause I got busy with some other stuff
just send me a message whenever you do that
If I remember xD
defining models as just objects in the language is so nice 😌
you could always check if I posted it on github since whenever I finish it, it will be on github xD
🤔 that sounds interesting
We recently switched from Vue to React but the main reason was that it's way easier to hire React devs than to find someone who knows their way around Vue 😄
ah yeah I can see that
idk I have really fallen off of React, obviously I'll probably end up at a job using it, but Vue has been good to me
Dev experience is way better imo, sure, you can do most things with Vue too, but the question is how you do it, you require way less code in svelte and it's also way cleaner. imo ofc
oh im dumb, i thought u were talking about react vs vue but we still on svelte
I need to start using react again, last time I did I had a mental breakdown as to how terrible it was from my perspective, but hopefully, and I really do hope that I just won't dismiss the possibility of not using REACT for my web projects
I mean idk? Side-by-side, not really. And I kinda dig the templating system of Vue.
Imagine using an ORM. Raw SQL + cls.from_dict() 🎉
tbh I have tried to force myself to use react and just couldn't. Once in svelte, you will never want to switch back haha
how much are they paying you Afonso? /s
yes, runes are solving some other issues, but they also make way more sense
should I just stay in svelte and not go with react? I want to learn go a bit so I can do a few things that require me to use go
like, whoever saw svelte before with stuff like $: would be like "tf is that?"
exactly me
derived(), state(), etc make it easier to understand
it's also a smart move from svelte, that will probs make it easier for devs to switch from other frameworks
then I might as well stick with my original plan with:
svelte -> go (basics) -> angular
up to you. React is 100% more used in the industry, but I believe you should go with what you are comfortable with, not what everyone else says.
Now say, I go react, how much will my brain be able to handle react?
probably not that much but would be enough sure, but doing a website with react seems out of the way
according to stats, svelte has constantly dominated the top interest from the community for a few years now xD
React, Vue, all going down according to stats
I've been focusing on html, tailwindcss and typescript that I've also almost forgotten Java, thankfully I have a private "pass time" project in java that allows me to remember it
Alpine js is good though
Vue templating language strikes again!
Alpine is in 9th place in interest
6th place in retention
according to the survey, svelte has a 90% retention rate xD
Alpine is good if you know how to use it
tbf if I have the chance I'd use it anywhere as it's easy to integrate
I made a simple change between 2 languages with alpine, it took me 30minutes (incl testing & fixing issues)
proof?
xD
I don't have internet unfortunately so can't, mobile data on phone since today's morning, waiting for ISP to solve it tomorrow when they open
remind me tomorrow
"remind me tomorrow" - an easy way to get out of any situation
he gave a reason in the message right before that-
Good ol r/haskellmemes
TRUE
@tribal plinth how it looks with the plugin (routes)
tbf usually you also do classes with tailwind and use @apply lol
man can't wait for my ISP to come fix my stuff so I can try this, called them was told they'd come now they closed and didn't come yet 😭
also works with dynamic routes
(ignore productid xD supposed to be blogid)
this is really interesting but I'd rather just have a blog/[Id].svelte but seems impossible
guess gotta sometimes sacrifice a few things for better performance overall
yeah, the plugin just visually replaces the +page with the name, folder, etc are still needed.
I usually don’t 0.0 it isn’t really recommended as such
Just abstract into a component, then boom
yeah. biggest point of tailwind is that you have your css embedded in your html
so you don't have to look for it
yeah
yes true, very good point
hell this is an annoying webstorm thing?
why th doesn't it complete it?! (it's tab)
wtf no you do not lol
using @apply with tailwind is the definition of an antipattern
just use the tools your framework provides to segment stuff so it doesn't get too crazy, components should very much just wrap it nice enoughj
yes. I was smoking (not actually), to be fair, I am dead tired lmao
and make sure to use the prettier auto-sort tailwind classes, because it makes it super super easy to find a specific class in any tailwind list and change it
tailwind my beloved 😌
had to use Bootstrap for a project, holy shit i miss tailwind so much bro
they don't use the tailwind style like md:w-32 or whatever
they just put the size thing in different places in each class
and you can't like do custom since it doesn't do a JIT or anything, so sad
💀
I will always say, and I doubt anyone will ever change my mind
Vite + Svelte + SvelteKit + Tailwind is just the best stack ever
Once you use it once, you never wanna go back xD
yeah idk I like the backend maturity too much to just rawdog Nuxt/SvelteKit, and I've really been liking Vue and the ecosystem recently
but tailwind is my ride or die for sure
each one with their own thing I suppose, there is only one thing that is not acceptable
Havent had time to mess around with other frameworks
tbf I am a Svelte simp, but justified simp
Used react in most of my projects involving frontend
And kinda got used to it
So also kinda hard to switch and try new stuff
But anyways, svelte is something I will probably try next
yeah I understand React, idk I'm just as the point where I value simplicity and a useable template syntax
and Vue has served that need very well
especially with the whole new future stuff of Vue like Vapor, which is taking all the benefits of Svelte (compiled away framework) and bringing it to Vue
yeah legit all frameworks are copying svelte stuff lmao
I mean it is a very good innovation lol
And thankfully all the nice ideas are being shared around to all the stuff people already use!
Signals in Angular, Vapor in Vue, React Forget in React, etc.
Meanwhile runes in svelte 5
although this is the funniest page for me https://svelte.dev/blog/write-less-code
literally shows the power of svelte compared to react and vue
basically, 145 characters of svelte code does what 442 characters of react and 263 characters of vue do lmao
it's simply almost 4x faster coding than react and almost 2x than vue
I’ve loved Vue, I want to fully get into react, is a book worthwhile to buy?
Laravel + Vue has been my 🐐 stack, but now I want to dive into Laravel + React primarily due to libraries like Framer Motion
To be fair, that's using the old Vue class syntax. It's a lot more like Svelte now with just ```html
<script setup>
const a = ref(0);
const b = ref(0);
</script>
its also an old blog xD, but the difference is still a decent bit tbf
eh
it's getting a hell of a lot smaller with runes lol
and with a compiler to compile away the framework, the big differentiator will end up being the template syntax
and i think there's definitely pros and cons for both styles
Vue Vapor will be dope
fr
Vue Vapor looks interesting too
Star, when you learnt react - did you use a book or online resources?
Mostly online resources
The new react docs at https://react.dev are superb, and I just got a lot of use from Next.js stuff, specifically the T3 stack
I have never personally learned any framework with books. There are recommendations I can do of some REALLY great free youtube courses for svelte(kit) though if anyone is interested
overall, glad other frameworks are adapting svelte features
anyways, time to go sleep
I’ll check this out, thank you - I learnt html/css from a book, Vue I picked up from vids, but wasn’t sure how good books are these days
Yeah idk, I find books too formulaic and generally slow-to-update for real usage
Having real examples and stuff to look at from real repositories is a great great way to learn imo
Cause you can just get your hands dirty and mess around with stuff
That's one of the things I love about Laravel lol, it's super super easy to just get a simple setup going, with Inertia if you want, etc.
Yeah I love Laravel tbh, do you ever use memorisation and such? I think that’s been my biggest fear, the performance side of things
Memoization in React?
I've done a bit yeah, but meh
generally the kind of stuff I'm doing doesn't really need it that much
and with React 19 coming soon with a compiler, you likely won't ever really need to lol
useMemo and useCallback will be basically obsolete
Yeah I am looking forward to this 😂
As performance is always thr biggest worry
yeah idk I've been quite happy with Vue recently honestly
the template syntax just like, is so nice actually
also Blade templates are so much fucking nicer than Django templates
I never realized until I did some stuff with basic Laravel templates, it's so nice to just be able to run native programming language code in the template renderer
I wish Vue had framer motion, I am a “make things pretty and feel cool” type of guy. React sadly has all the fancy shit
And yeah, I’d love to find a good use case for blade
When you wanna be minimal, Blade templates are just some of the best static backend templating systems there are
I guess probably because PHP was originally intended to be basically an HTML templating language lol
but like, so much better than Django templates or ERB or like EJS or anything
Yeah 😂 what type of use cases do you have for blade rn? Project wise
Smaller project stuff for my capstone class, just quick setup kinda stuff
like using native custom XML elements and slots as a layout rather than weird inheritance like Django is so nice
and you can like do functions and stuff in the template, ugh just so nice
Single Page Applications > MVC Applications
cant say really
I learned React in like 3 days
With just the docs and youtube
I don't have the best technical understanding, but I have enough to get done what needs to be done
react docs currently are quite good imho
That and the Next.js docs (I used Next.js as well) had a lot of React content in them
Ah wow, thanks for this - I'll check them out
hiiii
is it possible to make a alambic gui with the api
fun fact: AWS will start charging $0.005 per hour for ipv4 usage
and some others are also starting to do the same
they are trying to make people move to ipv6
Good
np
Does anyone know a plugin which allows us to customize the damage on swords and resistence/abosrption on armor?
Custom values on each item and they have seperet identifictation code in a config.
not the place to ask that
What OS would you use if you wanted to run 1-2 docker containers on a tiny vserver (1vcpu / 1GB RAM)?
alpine is pretty great for how small it is
i posted that question and fell asleep 😄
debian is usually my go to but I think it's too resource-intensive for a smol server. I've actually only ever used Alpine as base image for containers, never as an actual OS for a machine, but that should definitely be way slimmer than a chonker like ubuntu 👍
I love Debian, it’s my go-to
Years ago Ubuntu was my go to but i don't like the boat anymore
I have discovered i apparently havent known how hashmaps function for almost 3 years at this point
apparently 
Map<String, Object> map = new HashMap<>();
Object object = map.get("hello");
object.sethello(true); // this updates it in the map??
ive been convinced if i changed an object that i retrieved from the map, i would have to reassign it
Considering the hashmap doesn't copy the object it should be updated I think?
Maps store references
Yeah not really anything to do with the map lol
I thought this too!! Wtf
So if you guys thought this way about maps... Do you think the same with other storage types? List, Set, etc...?
i actually
cant tell you
i think i just dont actually remember the last time that i stored anything in a list
What do you normally use?
what
since when you dont know objects are passed by ref
wait until you figure out that changing the hashCode of an object after inserting it into a hashmap breaks the hashmap basically
isnt it changing the hashcode of the key?
yes
not the value
value doesn't matter
well thats, uh, normal
when putting a key, you're storing the value at the key's hashCode, same for retrieve
and well, changing it messed the map up
well you don't store it explicitly, but the place where the object is stored depends on the hash code
How is the hash code stored by default? I remember you can override it, but does it use certain properties of the class or something?
its kinda jvm specific
the default hashCode is a JVM specific value stored ⭐ somewhere ⭐
current OpenJDK implementations use a random function to calculate it once and it's then stored in the object header
(although you can specify to use a few other mechanisms to calculate the hash code, e.g. there's one so all default hash codes are just 0 for debugging)
A quick example of how funky mutable keys can be
some of the known methods is using marsaglia xor-shift alg
but the impl itself is not rly known
ah it's 1, yeah
im gonna use that as default in prod
jshell> new Object().hashCode()
$1 ==> 1
jshell> new Object().hashCode()
$2 ==> 1
jshell> new Object().hashCode()
$3 ==> 1

I like value = 0xBAD; , value equals bad lol
And what does that mean?
Hexspeak is a novelty form of variant English spelling using the hexadecimal digits. Created by programmers as memorable magic numbers, hexspeak words can serve as a clear and unique identifier with which to mark memory or data.
Hexadecimal notation represents numbers using the 16 digits 0123456789ABCDEF. Using only the letters ABCDEF it is pos...
Basic Git (3+ year work experience)
O.o
What's better to do? Using Laravel as a separate application from the front-end or using Laravel and the front-end together?
i'd just do both
you can pair any frontend framework with it using Inertia
Inertia.js lets you quickly build modern single-page React, Vue and Svelte apps using classic server-side routing and controllers.
(any being Vue2/3, React, Svelte)
well I heard good things about Svelte
personally I'd go with React since I know it best, so that's a biased opinion.
svelte on top
Laravel+Vue is easier to pick-up, we use it at https://analyse.net
Does anyone know a good API for particles? To spawn for example a wave of particles?
But otherwise Laravel+React is good
I know it can be done with just math but yeah
I dont think one exists
ParticleBuilder from paper can help you eliminate the boilerplate though
I do Laravel + Svelte, both goated frameworks
jQuery is pretty nice :)
Yeah, 15 years ago boomer
yeah blade is also very cool
Blade is surprisingly nice, coming from like Django Templates and ERB and Thymeleaf
erb 😔
