#dev-general
1 messages · Page 521 of 1
I'm loving my new job but it's just a lot of work.
bois I'm gonna cry
that is a big oof indeed
I rolled out of bed thinking I could still grab a nice crunchwrap supreme
and I drive over and see the lights turned out
imagine my sadness when I had to go to Del Taco instead smh
Or anything made by vk :)
Hello!
Hello there
got some MC dev stuff here, specifically the AddNewChoices fix, and was wondering if/how I can fix https://paste.lucyy.me/awulibipuz
Lucy's Pretty Pastebin
it breaks on line 24
I've literally tried everything I swear
🇱🇷
if you change both the generics to ?, you get a "Required type: capture of ?, Provided: capture of ?" error, if you swap the hasType to be checked on the inputType, you get an error at line 27, and if you change both of the generics to Object, that fixes the cap code, but then you can't pass in the arguments, since findChoiceType returns TaggedChoiceType<?>
BBG can you explain that declaration site variance again thing y
Isn’t that just the kotlin extends and super
pretty much, but it gives you a good idea of how it works in general
So just without wildcard?
in out
no wildcards in Kotlin
But that’s what this declaration site variance is about or did I get it wrong
that's not a wildcard @old wyvern that's a type projection
they do similar things though
A star projection is equivalent to blank wildcard
oh also, you able to try and help me with my issue?
scroll up, look for the mention of MC dev and a link
Alrighty, one moment
What exactly breaks?
Unexpected execution? Syntax error?
read the message under that, about the generics stuff I tried
hasType requires a key of type K, which is the type of the input choice type
and that pair is a Pair<InputTypeKeyType, *>, and we need to return a Pair<OutputTypeKeyType, *>
what on earth
what
hey bardy wanna come help real quick
@quiet depot hes back
@quiet depot ❤️
wat
oh shit
Boom
Wait, Spigot applied mojang mappings, correct? Are these mojang mappings only for classes and packages, and not fields? :/
When will we get rid of this shit?
Hello, im currently trying to programm SmartHelp, to send the player any close commands as a help, with the Levenstein algorythm, but i dont know how to get 5 unique values with lamda? My current code:
hashMap.entrySet().stream().filter(integerStringEntry -> integerStringEntry.getKey() > 100).sorted(Comparator.comparingInt(Map.Entry::getKey))..forEach();
Doesn’t the stream api have a function to limit the amount of elements in it
Or if that’s what you wanted
.limit
From what I can tell it's decompiled and deobfuscated when spigot is compiling then reapplies the obfuscation for some reason
I'm assuming it's because spigot adds the server to the jar so they can't have it deobfuscated
Okay thanks
why they can't have it deobfuscated added to the jar, does it have to do with legal stuff or something like that?
Yeah legal stuff
couldn't they ask for permission to do that directly to mojang (microsoft) though?
(idk if they already tried)
Md made a meven plugin to make it so you can write plugins with the deobfuscated version, but well maven
Paper is going to have one for gradle
soon™️
nvm
idk ¯_(ツ)_/¯
Spigot uses mojang packages, Spigot class names for existing classes and mojang class names for new classes, Spigot method names and obfuscated field names
hey, does this plugin work on 1.17?
which one?
this plugin
lmao
this one
oh this one. my bad
I am going to come to your house and threaten your life with a gun if you don't switch your pfp back
D:
lmao
too far
message announcer
it will probably still work. I Didn't test it tho
ah ok thanks
[12:40:36] [Server thread/INFO] [STDERR]: [crazypants.enderio.base.config.recipes.RecipeFactory:copyCore_dontMakeShittyCoreModsPlease_thisIncludesShittyMixins:239]
you gotta love enderio
Lmao
gotta love @forest pecan
then give me tiers so i can screen share
i cant daddy 😓
pulse why aren't you in here
Yeah pulse
where do I find the settings to export them again? (intellij)
also is it possible to export settings for plugins as well?
no
Spigot didn't apply Mojang mappings
Paper is using Mojang mappings
they repackaged everything to officially mapped packages, but they're still using legacy mappings
Well they do now, just not in the final jar
oh Spigot actually use official mappings now?
Yeah
fucking finally
yeah these aren't official mappings
yeah no
these aren't official mappings
Paper is using official mappings, Spigot isn't
I am pretty sure they are
@obtuse gale back me up
that link I just sent to the Bukkit csrg is Bukkit mappings
I can just tell, the data fixes aren't prefixed with DataConverter, they're suffixed with Fix
#dev-general message @jovial warren
ah right
yeah that makes sense
afaik Paper is using official mappings for everything now, they're remapping all the patches
tuinuty is using deez nuts
lol
Tuinity will probably take ages to update, since leaf likes to do extensive testing before pulling Paper changes iirc
Fuck lead, I need tuinity fast
I'll give you a jar named tuinity that just spams "cheeseburger" in chat if you want
can anyone gimme a hand with decompiled MC dev stuff btw?
I asked this earlier and got nothing lol
That seems pretty broad
stack new tunity2
https://paste.lucyy.me/abasilisum this class here has an error on line 22 because it wants param1xx.getFirst() to be of type capture of ? and it's got type K
Lucy's Pretty Pastebin
♥️
Is param2, always going to be of type K in this instance?
param2 is of type TaggedChoiceType<?>
I kinda know what the issue is, just not sure how to fix it
looking at the bytecode for this tells me that the decompiler hasn't really made an error here either
This is an aspect of Java I've never personally understood.
I think it's in reference to type erasure? I might be off the mark with that though.
I can send the bytecode if that may help
it may help someone that isn't me lol
yeah I suspected that, until I saw that's not the case, since the types are actually TaggedChoiceType<K> and TaggedChoiceType<?> since the types are actually saved in the class files
@obtuse gale aren't you generally quite good at debunking whacky generics issues?
Wanna send the bytecode for the luls? I'm curious
An easy solution would be to not capture the type
Classic
ah
forgot to mention something: I'm converting this to Kotlin lol
it's so weird though, since the bytecode says this is what it actually is
Yeah that doesn't seem right, I didn't think types were passed in bytecode.
My understanding was that they were available during compile, but not runtime? Something along those lines
they're not available to use at runtime, but they are stored in the class files
how do you think things like Gson's TypeToken (which preserves generic types for runtime use) work?
I don't use Gson TypeToken, so I couldn't say, but you'd know better than me
lol
generic types are preserved for extended classes
It makes you create an anonymous class for it
yeah it forces you to
ah
you got any ideas here btw emily?
no idea, i don't have time rn
oh btw, can SomeType<*> be casted to SomeType<Any>? or will that fail? because the compiler seems to think that * = Nothing rather than Any
Does the second parameter need to be a wildcard?
Mood
no, but what would you suggest I make it?
yes
Yea then specify both of them to capture K ig
if I make them both TaggedChoiceType<K>, then we get errors again
oh? where
Lucy's Pretty Pastebin
14
it wants two Ks and gets two capture of ?s
findChoiceType returns TaggedChoiceType<?>
link
I think your earlier solution of casting to Any as the generic would be the only solution in kotlin
There isnt any other way to ensure two different wildcard captures are of the same type
And in that case you can change the K in the other methods and just replace them with Any
that won't fail though, right?
Yea it shouldnt fail
alright, thanks
Thats the only equivalent of rawtypes i can think of in kotlin
we'll see later lol
wait essentials has an API?
yes?
for some reason I always thought it doesn't
lmao
tho I could have always checked the github but didn't
@visual falcon You were one of the people having issues with the ping placeholder on 1.17, right?
Yes.
Can you tell me if this fixes it?
Is possible to display more than 64 items on a GUI? I tried to set the maxStackSize of the inventory to a higher value and it still displays 64
This works. No spam in console and actually pings.
That will be 25€ sir
Now just waiting for ProtocolLib... Surprise they dont have a discord.
they're working on it
the dev posted an issue on github. but said it will take a while
Thanks
has 1.17 fixed any of the performance issues with servers from 1.13+?
I mean every version since then has been a small improvement
yeah
1.17 spigot is still very early so not likely to be great
afaik paper 1.17 isn't even out yet
so give it a bit
but like is it as good as 1.12 and versions prior or still worse?
I mean I'm not sure, 1.16 was not too bad for an SMP I was hosting
yeah paper 1.17 isn't out yet I'm just wondering for the future
but wait 'till Paper comes out and then we'll see some real performance
nobody knows until it actually exists
yeah I ran a 1.16 smp for a bit as well and it was pretty good, just i know performance in general has gone way down since 1.12
good point
@quiet depot so I'm back at trying to install a driver for my nvidia graphics card. I've tried using sudo ubuntu-drivers autoinstall
and this is what I get: https://paste.helpch.at/usijekoqaf.coffeescript
I assume this is what's going to make it not look right. any chance u know what it means? google doesn't really help (talking about last 4 lines)
well I'm trying to install the propietary one
hmm
but gimme couple minutes. it looks fine now. just need to check it actually installed the proprietary ojne
one*
have you considered Pop!_OS
nope
or maybe I shouldn't
best experience I've had, though Arch is also nice
@cinder flare I just found a PR from you from 2018 LOL. https://github.com/darbyjack/SuperOof/pull/1
Boutta do my 1.17 support 😛
for superoof? haha
Yeah. I do it for fun each major version change.
awe I love that
What does it do?
lmao
man I'm starting to question mojang mappings 🥲
Fabric Yarn: Text message = Text.of("Simple and immutable text component");
Mojang: Component message = Component.nullToEmpty("Simple and immutable text component");
I have absolutely no idea how this has 5K downloads https://www.spigotmc.org/resources/58915/
Lol the description for that is sad
“have yet to see one that will work with offline players, simply because you can't.”
Can statistics be fetched for offline players now?
Some of them can, yeah.
Why is that sad?
Ah
I wrote that project before they implemented the ability to get it from offline players.
Yea, makes sense
So a few years ago I wrote this https://github.com/guilds-plugin/AnnouncementUtils and it's what I use to generate my changelogs for stuff. I was planning to rewrite this in WPF and was wondering if anyone had suggestions on what would be cool to put in it.
I'm going to abstract it from just guilds-focused to allow more people to use it.
Whats WPF?
Windows Presentation Foundation
😮
It's the replacement for Windows Forms.
I see
Maybe custom formats and placeholders in the announcement
Not sad just funny. And wdym you could use offline player in 1.7 even?
As long as bungee and ip forwarding was enabled
Yes but you couldn't get statistics of an offline players from the server data until like 1.15
Maybe 1.13
@frail glade
Why store in statistics?
What about actually auto sending it too
I’m just wondering
holly shit
Bukkit stores it by itself
Theres no reliable way to fetch those statistics that bukkit stores in some older versions
Yea I’d never use that rigged shit that’s why I don’t know. I’d store my own player time in memory lol
You have to manually parse the saved statistics data if you want to do that, which is quite tedious
XMonad?
😔
apparently xmonad is only worth the trouble if you have a really specific setup that you want
and considering how much i dislike configuration that doesnt seem right for me
ah
Fake haskell lover
You're only in it for the clout
NOT TRUE
Hi, I'm tryna learn Java on my own. where can I do it for the best experience? I will take my time for it, and can put 6-7 hours a day in it.
?learn-java
Online Courses:
Online courses are also great for learning java. Some websites that offer them are:
- Coursera - Free unless you want a certificate
- PluralSight - Great courses from what I've seen. Mostly Paid
- Udemy - Never used them myself but they seem to all or at least most be paid.
My first ever course was one from Coursera. - I can say it was pretty good at introducing me to the programming world as a whole not just java.
Oracle Docs:
Oracle docs can help a lot at learning and understanding java:
- Start with this,
- Breeze through this (skipping stuff that doesn't seem relevant like bitwise operators),
- Hit this.
They're the first three from this larger thing which you should definitely go through overall. But those three should be enough for slightly better understanding of what is happening here without feeling like a huge time sink.
That one is a small part of this larger site wherein "Essential Java Classes" and "Collections" also have good useful stuff
Other services:
Some other cool services that will help you learn java are:
As you can see there are plenty of good ways to learn as long as you're willing to invest the time. Have fun learning!
smh
Ite thanks.
.............................
🤦
!!!
i can't believe this actually worked lmao (without vars and static imports https://paste.helpch.at/sucuyogoqi)
can somone help me
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
are you gonna make me point you to the right channel again?
Wrong channel, might wanna ask on #minecraft
keksuccino did not distribute the remapped binary
that's a rip 🥲
One thing I have to credit craftbukkit for is you can tell the version simply by reading the stack trace
which is the same reason why we have to use reflection hhhhhhhhhhhhhhhhhhhh
for some reason this broke every command lmao
"worked" 🙃
Machine Maker over at paper mega call is saying this md5 remapper does not work for anything other than 10 line example plugins hhhhhhhhhhh
Classic
I did it boys. I'm using a proprietary driver and it doesn't break anymore
thanks to someone in the Ubuntu Hideout
Yeah unfortunately the proprietary drivers are usually better
oh is it that broken?
Did the paper team finish the gradle plugin?
👀
👀
omg I can run minecraft browser and discord without the laptop crashing. this is a first
on linux at least
@gusty glen https://mf.mattstudios.me/triumph-gui/updating-to-3-0-0 😌
Gg
man dont u love when an issue u have just randomly fixes itself???
¯\_(ツ)_/¯
😌
I have a question and someone might have a answer to it.
Okay
Have you considered asking the question or..? whoever might have the answer will not be able to respond without it
probs a troll
Man irs 3:35 and am conflicted. I want to sleep but also want to open my laptop and start working on something
Sleep
hi
Hi
Hi @junior aspen
How are you?
Perfectly fine @junior aspen. Thanks for asking @junior aspen
You are welcome @steel heart.
Hbu @junior aspen
I am not find @steel heart. Thanks for asking @steel heart.
why @junior aspen
I don't want to talk about it at the moment
Jesus what have I joined to
@ocean quartz perfectly normal civilised discussion @ocean quartz
Ah @quiet depot that's true my bad @quiet depot
why isnt @ocean quartz trusted yet @ocean quartz
I think @ocean quartz should be trusted because @ocean quartz is a very good canidate
Hi I’m @silk kite
@silk kite is pretty cool 😎
https://openjdk.java.net/jeps/406 holy shot java do be getting crazy switch flexibility
This is hawt case Integer i -> String.format("int %d", i);
case Triangle t && (t.calculateArea() > 100)
🥵
Now Java only needs a website that wasn't designed in 1992
@ocean quartz please tell me you also think she looks like one of those people in an English textbook
Totally, probably just a random stock photo lmao
Do you think the switch statement would be faster for type checking
Compared to like a conditional. Like switch statements aren’t better in just readability but also I think it’s a bit faster (at least for previous ones)
Either way still kinda hot
potentially
I believe that short switch statements with like 3 or 4 possibilities compile to if-else-if chains
but larger ones are like a mapped expressions or some shit
YES
lmao
java is looking each day more and more like Kotlin
though ky when(var) { is Long -> blah() } still better and more readable than kt switch(var) { case Long l -> blah(); }which is miles better than the old switch statement with break keyword
Someone PR a JEP for elvis operator 🥲
tier 3 pog
bro just JEP Kotlin's entire type system while we're at it
I'd kill for .?
Apparently there was already a JEP for that but they arent going that way
bruh
😔
we just stuck in NPE hell forever then?
Not if Elara can do anything about it!!
I'm actually learning about compiler optimization lmao
maybe I'll make the first elara interpreter/compiler
😌
We were almost ready to use Rust this time
But, the rust equivalent to asm seems to be just as incomplete as the go one 🥲
Not that star
A proper lib for writing jvm bytecode
Writing that ourselfs is probably unnecessary work
ah jvm bytecode
Are you not in the elara discord?
uh, I don't think so
Ah
you gonna invite me???
Sure, one min
anyone know wtf this error means:
> Entry plugin.yml is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.0/dsl/org.gradle.api.file.CopySpec.html#org.gradle.api.file.CopySpec:duplicatesStrategy for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
It's from gradle and I cant figure out whats wrong with it.
Send a screenshot of your directories
I dont haver perms
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
open the resources folder
It has a plugin.yml
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
hmm that is really weird
IKR
it thinks you have two plugin.yml's for some reason, maybe try removing processResources temporarily?
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}```
oh ok
just remove that temporarily
star
ye
why yaml
ew groovy is so lame
build folder gets deleted on clean so like kinda pointless
that seems to have built it well
nice
it literally is deleted when I click clean so like..
the process resources?
ye
well it looks like it replaces any mention of version in plugin.yml with your gradle version
it'll just replace @version@ in your plugin.yml with the version set in gradle
so uh, you might have to sync it yourself lmao
thats fine for now ig
thanks for the help @cinder flare ❤️
gradle is so much faster lol
yeye
Anyone know how to pass a method to a set a consumer?
wot
Consumer<PlayerInteractEvent> onRightClickConsumer;
public void setOnRightClickConsumer() {
}
This is what I'm trying to do
Not sure what datatype to pass to set the consumer, do I just send a consumer?
Wait that makes a lot of sense nvm
Wait that makes a lot of sense nvm
You're not making any sense
I think your terminology is a bit off
public void setOnRightClickConsumer(Consumer<PlayerInteractEvent> e) {
this.onRightClickConsumer = e;
}
why are you using a consumer for an event handler
Custom items
Structuring a class around it so I can easily add items in the future.
public void onRightClick(PlayerInteractEvent e) {
if(onRightClickConsumer != null) {
onRightClickConsumer.accept(e);
}
}
i still don't get why you'd use a consumer rather than a method or something, or even a new normal class
So I can attach a method to the items right click event without having to get to on hands.
The idea here is scalability.
https://imgur.com/a/g0TJiGI literally the first time this has ever happened to me, why tf is this not just working
ive done the same thing 100 times
it literally cant be null tho.
I hate it
if the command wasn't set in plugin.yml, then it can be null
press alt enter and select the disable warning action
only disable it for that line
or you could do the Objects#requireNonNull thing
also little quick pro tip
if this is a public plugin, you should fix up your package, you need the project name in the package otherwise it's not unique
This isn’t bad btw
If you use a consumer type system right with events you can make a more efficient wrapper :/
sounds kinda functional 😌
is there a particular reason nms's classes are structured differently in terms of package names and everything?
cuz I tried porting plugins across to 1.17
They no longer have the version strings in 1.17
I see
in theory it'll be a lot better in the long term
@quiet depot are you aware of anyway to know if a dependency is a platform dependency either from the pom or gradle api?
wym a platform dependency?
d;spigot Statistic%PLAY_ONE_MINUTE
public static final Statistic PLAY_ONE_MINUTE```
Name is misleading, actually records ticks played.
Similar to 'adventure-bom' or 'jackson-bom' @quiet depot
Its a dependency with only version constraints for other modules
but no actual source
what version was PLAY_ONE_TICK ?
1.8
<=1.8
okay thanks
anyone know the version number for 1.8?
since V1_11 = 1110; would it be V1_8 = 1080;?
How to make a plugin using Java ofc
😫
Is AMD Ryzen 7 3700X a good processor?
pretty good yeah
I mean do u feel a difference from 8 cores to 16 cores and 12 threads to 24 threads
you'd only notice it if you use applications which reap the benefits of high core counts
so basically csgo, fancy benchmarks, docdex, and image/video editing applications/renderers
csgo? is that a joke?
yes
docdex & csgo were jokes (although docdex can definitely use those cores, it's just not your average application)
just curious, but has anyone ever worked with android (app development) before?
yugi has afaik
i have a little bit too, but nothing serious
oh
is it hard to learn?
the api is a bit of a mess
shouldnt be too hard seeing as you actually know how to use the language
don't mind me just abusing my embed removing powers
Is some other process using the db?
Ah okay thanks piggy😇
arent they all the free ones
yes
I registered a free one so I could test something with the cf api
because I'm using my real domains for real stuff
anyone?
wdym version numbers?
do you mean protocol versions?
1.17 is 775
yeah so idk
That's just an easy system i came up with, you just remove the dots, but i just realized that the fix i did for 1.17 breaks 1.8 😫
O
1.8 always making things harder
Yeah
so i could do this
private static final int V1_8 = 1800;
public static final boolean IS_LEGACY = !IS_PAPER || V1_8 < 1890;```
uh
Nah I'll do a better fix when i get to the pc
I'll just try getting the actual protocol version
if Bukkit exposed that, it wouldn't be an issue
alright thanks 🙂
if they had kept it to PLAY_ONE_TICK id of been fine xD
public static int TicksPlayed(Player p) {
if (!Compatibility.IS_LEGACY) {
return p.getStatistic(Statistic.valueOf("PLAY_ONE_MINUTE")) / 20;
}
return p.getStatistic(Statistic.valueOf("PLAY_ONE_TICK")) / 20;
}
}```
im having todo this for it
we arent in C#
TicksPlayed -> ticksPlayed
lol
also is it probable that paper will eventually remove all the methods which accepts a string (when it should be an adventure component)
that was the only one i had like that in the plugin lol changed it just for you 🙂
could you tag me when you have updated it thanks
how do I get a player's ping in 1.17?
((CraftPlayer)player).getHandle().ping doesn't work
😌
oh thank you
oh god
?
why is nitro so expensive in the uk ;-;
The method e(EntityHuman) in the type EntityLiving is not applicable for the arguments ()
or am I misunderstanding
(CraftPlayer)player).getHandle().e probably
ah easy
public fields 🤢
if only there was a 1.17 hacked client so I could test out if it works xd
cuz im testing it locally so it will always show 0
and you can just pingspoof to see if it works
wurst seems to be updated
idk
hopefully xd
I was going to say try FakePlayers but pretty sure those are created locally as well so nvm
is there an easy already existing method in java to generate a random alphanumeric string? or maybe not even numeric
oh I guess UUID xD
unique and random
well random doesn't really matter
but yeah uuid xD
is what I Was looking for
aaaaaaaaaaaaaaa help
System.currentTimeMillis()
no
always unique
@static zealot UUID.randomUUID isn't guaranteed to be unique afaik
System.currentTimeMillis will be unique
unless you call it in like every 1 ms
its fine tho. uuid works in this case
and I Need it to start with a letter tho I Could use current time and just put a at the start
https://i.imgur.com/jKsQ8xZ.png
takes so long 😭
u suck
you love to see this
x2
lmao
O
no
might be because of slow pc 😭
so you literally have no antivirus
anticheat
"Kaspersky Lab is a Russian multinational cybersecurity and anti-virus provider headquartered in Moscow, Russia and operated by a holding company in the United Kingdom. It was founded in 1997 by Eugene Kaspersky, Natalya Kaspersky, and Alexey De-Monderik; Eugene Kaspersky is currently the CEO. Wikipedia"
totally not sus
lmao
How big do the projects have to be for the developer role?
a decent size xD
enough that we can actually review them
quality over quantity 
ok piggy
no quantity is quite important too
i'll apply in a few centuries 🙂
time to make a project that prints out Hello World
can't review it if it's only got like 5 classes
even if those classes are pristine quality
true
will I get 2 developer roles? xD
It would appear my orm isn't overly partial to primitives EDIT: nvm i'm just a spud and gson doesn't support records
I know what you're doing BM. it won't work on me
i won't question why android studio generated kotlin stuff in java folder
i can give you developer role 2
it is very exclusive
only for the best of the best
https://i.imgur.com/OQjSHkc.png i wonder what happens if i pressed the emergency button
death
yea that sadly is a thing xD
oh hi yugi
hi
lol
🎉 totally just didn't take the template and change the text
btw look into MVVM and the ViewModel class for ui elements, non saved activity state is lost easily
alr
Oh boy wait until you get to "how to share data between classes" v2.0: how to share data between fragments/activities
"Doesn't static do that?"
Huh 
You guys are pros so I wouldn't put it past you to have 2 ides open for double the work lmao
I use 2 IDEs because managing modules in IntelliJ is more work than its worth
Yup
funny thing. I Don't have access to IJ Ultimate
@ocean quartz cant check if it's < 100 / < 20 first?
I'll do a less hacky fix, probably get the nms protocol version
Matt
I think I found a way to fix the bom issue
Oh? 😮
yea, so Im adding another resolution for the pom file, the bom ones seem to have everything except the jar in the repo
so if it doesnt find the jar
it looks for the pom
and if pom is found but not jar, ignore the download and mark as resolved
I also tried asking on the gradle slack, but no replies yet
I like the current format tbh @ocean quartz
Ooh that sounds like a good idea ;o
And nice, classic gradle slack, i noticed it's better to just search for what i want in there and see if someone else asked already xD
I like it too, i might try fixing it instead of changing
ahh
I tried searching a lot
Couldnt find anything about getting data from the actual pom
😌
top 10 java variable names
😌
wait u guys like it? I thought u were going to hate me for it
consider renaming it to something clearer like l
Perhaps i, for istance from the player
perhaps $
Is it just me or is this regex kinda dumb?
To me it shouldn't match the patch group on the first one but it does .-.
https://regex101.com/r/56S2DP/1/
Yeah, which makes no sense because it's like completely ignoring a non optional group
Oh, is it after? I thought it was before 🥲
oh gaby the regex master
Yeah that works lmao
? matches the previous token between zero and one times, as many times as possible, giving back as needed (greedy)
@vagrant bobcat Pushed a fix, feel free to copy it now
A lot of things I didn't know was possible ;o
https://www.youtube.com/watch?v=N4CpLxGJlq0
In today’s episode of Kotlin Standard Library Safari, we’re learning all about advanced collection functionality!
We’ll see how the ‘any’, ‘none’, and ‘all’ functions can be used to check conditions for elements in our collections, and tease our brains with empty collections and the concept of the vacuous truth.
We will then learn different wa...
Who's gonna say it
You're the only one that would
🥲
Probably some "insert haskell does better here"
oh xD
Precisely!
man kotlin needs to add tuples back
zero cost tuples as a syntax sugar for value types
😮
What's the story behind it? All i can find is that tuples were replaced by pair and triple
Hot
very hot
Thanks for that
is GuiException part of your code as ive never heard of that before
Yeah
@ocean quartz<3 uwu
@obtuse gale <3 owo
Weirdos
Sodriew
Wait so would it now be
private static final int V1_8_9 = 1089;? @ocean quartz
or 0189
1890 xD
or do i leave it blank at 189 and no 0
1890
ty
I need help with math
What is the formula to get the num of all digits of a number (fatorial)? Example, the sum of all digits of 3! is 6, 4! is 6 (24 then sums both digits), 5! is 3 (120 then sum all digits) and so on...
The question I have goes like, for any a0, a1, a2, an, the next term is the sum of all digits from the previous element, so if for example a0 is 5! (120), a1 is 3, a2 is 3, etc.
But the issue is, I don't know what is the mathematical formula that for a given fatorial, it results in the result of the sum of all digits from the previous positions
I'm not following you
What do you want to calculate?
num of all digits of a number (fatorial)
idk what that is supposed to mean
can you give a definition
ah now I get it
This is just function composition?
first factorial, then sum digits
you should know how to do these individually
yeah pretty sure sum of digits doesn't have a formula in math
but n! is n * (n-1) * ... * 1
I already have a code that does that to me, but I need a mathematical formula to do that
he wants a formula that finds the sum of digits of a factorial
but I've never heard of anything that does that
not exactly that
ugh nvm then xD
I gave an example
well there is a closed formula for factorials
.
and I asked for clarification because it is not very clear
just define it
There'll be a sequence of numbers in which the next element is always the sum of all individual digits from the previous
Ohh yea
for example, if the first element is 123,the next element is 6 (1+2+3)
ohh Ic what you mean Secret. I don't know tho
So, you have a sequence s, where for each n s_(n + 1) = sum_of_digits(s_n)?
yes
and now what?
Then the question goes: then for a0 = 2021!, what number is at position a2021!
okay, I see.
here is the code that solves the question: https://paste.helpch.at/axoripibub.cs
but what I need is not the code, but the actual math behind it, cause I need to provide the formula proving my answer
what number do you expect which sum of digits will be bigger than int max value lol
How did you come up with this answer? I used my fucking brain.
do you know how big 2021! is?
2021!
im talking about sumDigits
I was just being safe
lol ok 🤣
btw the output of this code is: https://paste.helpch.at/dayuxogiza.makefile
because on the 3rd loop the sum of all digits from the previous element is already 9, I know that a2021! = 9
What's allowed in your formula?
anything that has to do with the question, I think
I just cannot have programming terms on it, it has to be mathematical, like, there's no loop in math
You can define a recursive function and you can sum over a set/up to a number
That's why I figured that I need a formula that is more or less like (factorial, position) -> sumDigits
(remember, not code, but math formula)
Well maths can be pretty much code if you want it to
just define a recursive function /shrug
I set up soo some slots has items you could not remove, was not easy to set up, I have to set itemmeta on the items for it to work 🙂 Now I can hope players not has items in inventory with same itemmeta (they cant move the items if they should have same meta). I mean it will be low chance both key and value match XD
Ofc it will only happen if they open a special gui I made, but it even trigger of items in player inventory too (so have to set meta on item in the gui).
I wonder how deluxe menu solve so items in inventory can´t trigger a command or similar (has not try it ether perhaps you can trigger an event in player inventory too).
f(0) = 2021!
f(n) = (s . f) (n - 1)
s(x < 10) = x
s(x) = s(x / 10) + (x % 10)
```maybe
yeah
hold on
no
ok nvm yes it's right
you could also build it from the other direction
f(2021!, 2021!)
Maybe you can diagonalise this and get it into a closed form but I cba to try that
😌
also looks the exact same as a pixel 🤔
i guess android studio doesn't like anything other than pixels
https://i.imgur.com/XZl4ORB.png I really wanna leave that in instead of calling it remove 
can you imagine marking your entities for removal by calling yeet() on them
like ```kotlin
val myEntity = // some entity
myEntity.yeet() // goodbye
Nah I can't imagine associating data and functionality 🤣
With side effects too 🥶 🥶 🥶
new pfp 😳
not even gonna bother to entertain your BS tonight BM

I wear a mask with a smile on my face
they tell me I need glasses
@prisma wave Weeb goes away but now becomes a kpop stan smh
I can't even hate kpop
Some of it is genuinely decent
Anyway
Type inference or not in Java, C, LLVM, C++, Rust, Crystal, Haskell, & PureScript.
Code: https://github.com/contextfreecode/infer
Related Context Free videos:
Where do the types go? - https://youtu.be/0dGkkbVnVyg
Pluggable types and (un)soundness: https://youtu.be/XQHGRvuD1hY
Other links:
https://typing-is-hard.ch/
https://forums.swift.org/t/...
This guy has such interesting videos
man Krita takes a bit to get used to
Yeah he does
I remember seeing him on r/ProgrammingLanguages for the first time
He had 50 subscribers
Yeah I've been watching him since like 500 or something
Definitely one of the best coding channels on youtube
oh lol that's an old video
look at the comments
you might find a familiar face (profile picture)
just randomly promoting your channel I see? xD
4 year old overwatch games 👀
HELlo gamERS
I do was be gaming 😎
lmao
in JavaFx, there are Parents, and so each fxml file can have its own Parent, does android have something similar?
basically in the same app, there are two entirely different pages
note that im super new to android, only worked for a couple minutes with it xD
I think that's kinda similar to what a Fragment is no?
basically with javafx i can do something like getStage().getScene().setRoot(game) or getStage().getScene().setRoot(lobby)
Although it's not entirely clear what you're asking
game being a parent
or getStage().getScene().setRoot(menu)
maybe thats a better example
or getStage().getScene().setRoot(gameEnd)?
or like a slideshow - getStage().getScene().setRoot(slide1)
So like the active scene or what?
Yeah I suppose Fragments is what you're looking for? All part of the same Activity
Still not entirely sure what you're wanting to do
uhh i don't know what activities are yet but ill take a look at fragments ty
How the hell did you make an app without knowing what an activity is
it's like
Activities are to Android what classes are to Java
oh
You can't work with it without using them
idk if u used tornadofx but in tornadofx it'd be called a View i think
I haven't
https://github.com/dkim19375/Tag/blob/master/src/main/kotlin/me/dkim19375/tag/view/LobbyView.kt#L20-L24
https://github.com/dkim19375/Tag/blob/master/src/main/kotlin/me/dkim19375/tag/view/GameView.kt#L55-L82
for example here each View has its own properties and stuff, so when i switch views, it basically looks like a new program
so if i switched to an empty view it'd be a white blank screen
Sorry dude, I only understand haskell-Qt bindings 😎
sounds horrendous
biased
How do I download the latest version of spigot? Is buildtools spigot?
yes, you use buildtools for that
so I set that as my server jar?
run buildtools
copy the spigot jar built to the server folder
and replace the current server jar with it
It says I can't run it in onedrive
But I am just trying to run it on my desktop
nvm I got it to work
Wait wtf why did it make like 5 folders, I just want the server jar
because it has to build it
and it needs extra folders
when it's finished you'll get your jar
it's not instant
It will just be where I started it, not in one of the folders?
it will be wherever the buildtools jar is
Okay thank you
If I was to buy a domain, where should I buy it from as I presume some domain sellers are better.
I normally buy from namecheap
hmm thx will check that out then
Namecheap they are the best
@steel heart what tld?
io
@steel heart buy on namecheap then transfer to cloudflare registrar
i can’t remember if cf supports io but if it does, definitely transfer
Oo tyty 
It gave me 1.16.5 jar..
How do I make it so it gives 1.17
Did you do java -jar BuildTools.jar --rev 1.17?
did you specify 1.17?
Where do I type that?
No I was reading it now
in the terminal/shell/console/whatever
you didnt cd
did you cd to the buildtools dir..?
not really, no
Oh they're pretty fun tho
I still have to play the modpack piggy recommended me lol
Oh I think I got it working
which one
enigmatica2
the ui and everything designed bad
oo i heard of that
rn im playing MC Eternal with some friends lol
but im hosting the server while playing at the same time 💀
lmao that's a rip
maybe i can get sponsored by BH and use their promotional oppurtunity to
"benefit my project"
mhm
But are you sponsored by Raid Shadow Legends?
bruh intellij created an express app instead of react wtf
That's a sign
found 14526 vulnerabilities (7254 low, 251 moderate, 7019 high, 2 critical) 🥲
what’s that

❓
