#dev-general

1 messages · Page 598 of 1

eternal compass
#

nope

#

the server ID

#

eg. 164280494874165248 for us

obtuse gale
#

910852797371670538

eternal compass
#

you sure that's the ID?

obtuse gale
#

yeah i double clicked the server name and selected copy ID

eternal compass
#

well no clue then

obtuse gale
#

Can I invite you to my server so you can check if thats fine?

eternal compass
#

nope

obtuse gale
#

nice

wintry plinth
eternal compass
#

it gets the data from the API

#

as there's a non authenticated (atleast iirc) endpoint for things like server banner, name, etc

#

maybe the server needs to be public though?

#

idk

wintry plinth
#

Oh right

#

It may need to be a community server

#

That’s why the member count wasn’t showing

#

As far as I know

eternal mica
#

I have a member count

eternal compass
wintry plinth
#

i think

#

Not 100%, but I know that community stuff is opt in, it could be why

eternal compass
#

being public is a thing too though

#

like how you can see a server through emojis

#

that could be it

wintry plinth
#

You can make it public? :o

#

I didn’t know

eternal compass
#

click that emoji

wintry plinth
#

I thought it was just the community server

#

Oh wow

eternal compass
#

its from 1k+ members

#

and enabling discovery

wintry plinth
#

Ohh

eternal compass
#

iirc

wintry plinth
#

Yeah that’s what I meant the community thing

eternal compass
#

that's different from community

eternal compass
#

community is what gives things like announcement channels

wintry plinth
#

Oh

#

Discord making so many confusing things :(

eternal compass
#

mhm

#

the good ol' days

wintry plinth
#

Yeah haha

steel heart
#

Yo

obtuse gale
#

hm, what's generated as a record class hashCode if it has no components? Thonk

steel heart
#

Maybe just System::identityHashCode

frail glade
#

So uh

#

Md5 just released 1.18 pre builds

dense dew
#

😳

half harness
#

We would also welcome the addition of a Gradle example, please share one if you have it.
👀

dense dew
#

java 17 required nice

obtuse gale
#

Please also note that current versions of Java 17 have a bug which may affect users on single-core systems. If you have such a system consider adding -Djava.util.concurrent.ForkJoinPool.common.parallelism=1 as a Java argument.

you've got to be fucking with me, right?

obtuse gale
#

I cannot find a single paper, blog or issue talking about a "bug" on java 17 about available core count

#

Not to shit on md5 but holy fuck

#

But hey

#

Spigot pre-release is big!

#

There are plans underway to change the way many enums in the API are handled so that custom content can be better supported.
prayga about time

#

Okay so this is very good news

steel heart
obtuse gale
#

I think it's time for me to stop shitting on md5 now

sweet cipher
#

What would changing enums fix?

obtuse gale
#

e.g. custom biomes, dimensions, statistics etc

#

all those and many more things can be added by datapacks and, ideally, plugins

#

by having an enum you are constraining it to a very specific and unmodifiable set of values

#

with a proper registry system that wouldn't be the case

urban sleet
#

Yay

forest pecan
#

Theres also probably going to be separate registries for blocks/items

fresh birch
#

Hello, so i got weird question

#

How for example the big servers are making their rewards by chance, quantity and quality(like items,blocks etc.)

#

For example how the devs are thinking in vote chest for example what items should they put at what quantity at what chance

#

Also that question apply for /shop(buy,sell)

#

Is there any general system ? Or are they thinking their way

forest pecan
#

wot

fresh birch
#

Ok ill give example

#

Lets say we play on survival and there is a vote crate, there in that crate

#

There are bunch of rewards

#

16xSand at 76% chance

#

Pure example

#

How they think that i mean i guess they follow some system isnt just random items and random drop chances

#

Some1 told me about weight system but i have no clue the fk is that

forest pecan
#

search it up, the outputs are weighted

#

so its not completely random

#

but its still random

fresh birch
#

Cus i want to make coin shop, like tokens

#

But duno how to play with prices

#

The thing is i have to think how coins are gona be earned

#

Like slaying mobs

#

I need to know chances of spawning for every mob and to put base for 1

#

Then to calculate the chances

#

Ahh so complicated

#

Any idea how to find those weights, i searched like minecraft weight system but cant find anything useful

obtuse gale
#

O

#

Looks like it was fixed for 18 and backported to 17(.0.2)

potent nest
#

Yeah not sure when it‘s going to be released

#

But that was a fun experience

static zealot
#

you're welcome glare!!!

wintry plinth
#

😂

ocean quartz
#

Interesting for Kotlin 1.7 they are wanting a namespace-based solution for static extensions, this will be awesome, will allow for any class to have static extensions without even needing to declare companion object which should interop with Java
Also should allow something Sxtanna suggested a while ago companion val or companion fun

#

Interesting

onyx loom
#

🥴

ocean quartz
#

Also @old wyvern 1.7 blurryeyes

#

They also said they want to add more platforms, i'd love to see C# added ugh
Imagine coding in Unity with Kotlin 🥺

onyx loom
#

👀

sick belfry
#

so

#

instead of enums

#

there will be registries?

#

and with that

#

making custom world gen will be easier?

hot hull
#

You good Yugi?

dawn hinge
#

where is the guy in the right corner staring at 👀

sick belfry
#

how do me setup jetbrains runtime

#

with dcevm

#

me like hotswapping

upbeat grail
#

How for a scoreboard do you show how many players are on each realm ?

sick belfry
sick belfry
#

@desert horizon "no"

steel heart
brittle leaf
#

ive rewritten my entire custom enchant gui plugin fresh and now it supports custom enchantments that i may decide to create

sly sonnet
#

script is cool for fast little additions to the server, but not for big-ass systems

#

why the f you would need to obfuscate it

brittle leaf
#

but it also requires me to register every vanilla enchantment aswell at the same time which is gunna take some time but i dont mind

sweet cipher
#

Failed to load staging profiles, server at https://s01.oss.sonatype.org/service/local/ responded with status code 401, body:
Does anyone know why I am getting this error when trying to publish my repository to MavenCentral?

half harness
#

maven central 🤩

#

show build.gradle

#

uhhh

#

💀

sweet cipher
#

It was working a while ago, do I need to update an SSH key or something possibly?

half harness
#

i dont remember getting that error ¯_(ツ)_/¯

sweet cipher
#

I haven't uploaded it in a while, its my first time getting the error

half harness
#

btw do u use publish-plugin to publish?

#

or just maven-publish?

sweet cipher
#

Maybe I'm using the wrong command

half harness
#

what cmd r u using?

sweet cipher
#

gradle clean publishToSonatype closeAndReleaseSonatypeStagingRepository

half harness
#

ye thats correct

#

whats the error again?

sweet cipher
#
Caused by: java.lang.RuntimeException: Failed to load staging profiles, server at https://s01.oss.sonatype.org/service/local/ responded with status code 401, body: 
    at io.github.gradlenexus.publishplugin.internal.NexusClient.failure(NexusClient.kt:142)
    at io.github.gradlenexus.publishplugin.internal.NexusClient.findStagingProfileId(NexusClient.kt:73)
    at io.github.gradlenexus.publishplugin.InitializeNexusStagingRepository.determineStagingProfileId(InitializeNexusStagingRepository.kt:63)
    at io.github.gradlenexus.publishplugin.InitializeNexusStagingRepository.createStagingRepo(InitializeNexusStagingRepository.kt:50)
#

Oh wait

#

I'm dumb

#

I think its because I had to change my password

half harness
#

oh

#

🥲

sweet cipher
#

Whoops

#

Yeah seems to be working now

tranquil crane
#

the new jar format for 1.18-pre5 is kinda wack

#

everything is bundled as libraries now and loaded at runtime

potent nest
#

it's always loaded at runtime

tranquil crane
#

well what I mean is the main server jar now only contains Main.class and everything else is bundled as individual jars in the META-INF directory

potent nest
#

it's actually a cleaner way

tranquil crane
#

it is I'm just having a bit of trouble finding a way to depend against it

static zealot
#

what's happening there

tranquil crane
#

that's the new particle called block_marker lol
barrier and light got replaced by it and it's capable of displaying any block as a fixed texture in space that rotates with the player's camera

static zealot
#

oh. I probably saw this somewhere but its cool

potent nest
#

that sounds useful for a lot of stuff ngl

tranquil crane
#

that was the easiest plugin update of my life

static zealot
#

lol

tranquil crane
#

don't tempt me

old wyvern
#

Do it

#

make it 3d this time

tranquil crane
#

I'd have to make an rgb -> texture mapping though

old wyvern
#

mhm

tranquil crane
#

which frankly sounds awful, if somebody else does it then I'll do it

#

I can add a new display type in a matter of minutes it's just making the rgb to block mapping which sucks

old wyvern
#

xD

tranquil crane
#

just pretend this has the new particle in it

distant sun
#

nice nicole

tranquil crane
#

tyty

#
GitHub

A set of utilities designed for incremental building, merging and optimization of data transformations. - DataFixerUpper/ProfunctorFunctorWrapper.java at 8b5f82ab78b30ff5813b3a7f3906cd3f4f732acf · ...

potent nest
#

DFU is a complex piece of sh*t

tranquil crane
#

I'm trying to find where the com.mojang.serialization package is hosted in and thought it was that project but apparently not

tranquil crane
#

oh it is in datafixerupper

sturdy swan
tranquil crane
#

probably because it is scary

sturdy swan
#

Thats probabbly their, it works no one touch it ever class

tranquil crane
#

I think that's used to convert chunks from the old format to the newer ones

#

no idea how though lmao

sturdy swan
#

Wow, im mad, why dont I have dev role

#

this is racism

distant sun
#

that's ... something Nicole

old wyvern
#

Its beautiful

sturdy swan
old wyvern
#

shh

old wyvern
#

I just took a random avatar from google 2-3 years ago and just stuck with that

sturdy swan
#

lmao

#

well now you know, its a picture of luffy dabbing

old wyvern
#

I literally searched "Profile avatar"

old wyvern
#

I wanted to watch one piece

sturdy swan
#

Its great

old wyvern
#

But knowing how many episodes there are

#

I dont think I have the patience

sturdy swan
#

I dont see why thats an issue for everyone though tbh

#

like just start it

old wyvern
#

I got annoyed of naruto after 200 of series 1 and 252 of shippuden

sturdy swan
#

if you dont finish it who cares

old wyvern
#

It kills me to leave this like that

sturdy swan
old wyvern
#

Either you binge it till you have no life

#

or you dont watch it

sturdy swan
#

I stopped watching after episode 7

old wyvern
#

Theres a hell of a lot of annoying filler

#

I just started jujutsu kaizen today, 5 episodes in

sturdy swan
#

only thing with one piece is the pacing sucks at some points

sturdy swan
#

I need to read the manga now though

old wyvern
#

😌

sturdy swan
#

welp, ima reapply for dev role, I have no idea what it does but everyone else has on and im jelly

#

I applied for one like 6 months ago, but I never got a responce or anything so PanShrug

prisma wave
#

You're not missing much

sturdy swan
#

no

#

I will never be complete in life without this role

old wyvern
#

I will never be complete in life

sturdy swan
#

Dont you TestSticker me

onyx loom
old wyvern
#

What have I done...

#

haha python

static zealot
#

imagine playing without us

old wyvern
#

You up for a round?

#

@static zealot

#

join fast its a public game

#

closes fast

static zealot
#

welp. I'm a bit late xD

old wyvern
#

dammit

#

I dont think I can shorten it more

#

welp

#
main=interact$show.(\(a:b:c:d:_)->max 0$a-b-sum[d..d+c-1]).map read.words
prisma wave
#

jesus christ

old wyvern
#

is there anything in there that can be shortened/simplified?

prisma wave
#

nothing obvious

old wyvern
#

💀

#

ok python wins this one

quiet depot
#

that's python?

prisma wave
#

Shame

old wyvern
old wyvern
quiet depot
#

o

old wyvern
#

🥲

quiet depot
#

@prisma wave is the file manager u were working on earlier os?

prisma wave
#

file manager?

quiet depot
#

the one that was like mine

prisma wave
#

Oh the annotation thingy?

quiet depot
#

yes

prisma wave
#

yeah

quiet depot
#

link ples

prisma wave
#

Most of the stuff is in core/config

quiet depot
#

okie thx

prisma wave
#

except the annotation processor stuff ofc

prisma wave
#

yep

quiet depot
#

good thonk

prisma wave
#

yea it's pretty cool

#

Worked first try too which was nice

#

You can inject a provider and it'll just auto update

quiet depot
#

i hate this situation

#

when it happens to me

#

i try to avoid a plural in enum names

#

but sometimes u gotta do what u gotta do

old wyvern
#

I use plural for utils

quiet depot
#

same

old wyvern
#

😌

quiet depot
#

it makes sense for utils because there are multiple utils in the class

#

whereas with enum it makes sense with both

#

it makes sense with plural or singular because there's two different perspectives

prisma wave
#

plural enum kinda makes sense

#

Yea

#

It's not ideal but I can't think of a better way

quiet depot
#

singular enum makes sense too though

#

because you can view the object as an implementation of the enum

#

so it's like NamingPattern.DEFAULT

#

you either think about it as picking a pattern from a list (plural) or referencing an implementation of a parent class (singular) - to elaborate on this think about List, it's List, not Lists, evidently the logic transfers over to enums as loads of people name their enums singularly

#

maybe plural is better now that I'm thinking about it properly idk

old wyvern
#

xD

quiet depot
#

@prisma wave is there still no way to specify destination?

prisma wave
#

Not exactly

#

Gonna add an annotation for that

#

Need to make the annotation processor work with the default file and stuff too

quiet depot
#

ah

prisma wave
#

It's kinda confusing because default values could either come from a static field or a default file

quiet depot
#

which takes priority?

prisma wave
#

and it needs to work with records which don't support the static fields

prisma wave
#

Idk what it is atm

quiet depot
#

I'm gonna try switch to moshi for mine

#

not for mc

prisma wave
#

I've heard Moshi is nice

#

Using gson in mine to keep jar size down but if that's not a concern then go for it

quiet depot
#

just hope moshi can do the weird instance stuff

#

instance creator

#

well rip conversion to moshi

#

back to gson

old wyvern
#

generate a class with the required names 😷

#
class Human {
     @FieldName("elon")
    String name;
     @FieldName("musk")
    int age;
}

class Human$Json$Formatted {
    String elon;
    int musk;
}
quiet depot
#

not necessary

#

they have an annotation for it

#

@still creek

#

k then

#

yugi it's not really worth the effort

old wyvern
old wyvern
hot hull
static zealot
#

yeah. well his friend's homework

hot hull
#

kek

#

I don't understand people who study CS yet don't want to do the hw projects, cause most times they aren't boring

static zealot
#

hehe. good joke

#

I laughed

#

I have to do the same homework twice bcz both my lab and my class teacher gave me similar problems. and they're like 70 for each

#

also all they are, is highschool problems I did before just in C++ not C#

hot hull
#

But I mean then again, I'm not a dweeb so I don't study CS like the rest of you losers

onyx loom
#

what did u just call me

hot hull
#

A loser

onyx loom
#

😠 😠 😡 😡 🤬

static zealot
#

how dare you call me a loser

#

only my mom can call me a loser

quiet depot
#

loser

static zealot
quiet depot
#

something awesome happened

static zealot
#

your mom finally disowned you?

quiet depot
#

not that awesome

#

school ended

#

might work on papi 3

static zealot
#

wait what?

#

school ended?

hot hull
#

Oh yea aussies

quiet depot
#

also for the record I don't have a mom

#

I have a mum

static zealot
quiet depot
#

hah

hot hull
#

sthu Piggy

quiet depot
#

no

#

you can work on dchat

static zealot
#

I won't lol

quiet depot
#

did u look at it?

#

it needs to be rewritten entirely

static zealot
#

yeah. I also said that I won't work on the rewrite. just trying to see if I can get a quick build with hex.

hot hull
#

Just make it from Star scratch Star

static zealot
#

they were working on it but piggy is lazy af so he never finished it

#

ugh

#

man... school ends on the 24th for me

hot hull
#

Don't blame others for you laziness, you could've made it yourself

static zealot
#

or 23rd

#

actually

quiet depot
#

today is the 23rd my dude

static zealot
#

december

quiet depot
#

rip

static zealot
#

yeah lol

#

I get 2 weeks then exams start

#

🥲

hot hull
#

I finish 17th jan, then I got finals in april or june or some shit

obtuse gale
#

@quiet depot hello good sir

quiet depot
#

hi

obtuse gale
#

The fuck is a TimTam

static zealot
#

Tim Tam is a brand of chocolate biscuit introduced by the Australian biscuit company Arnott's in 1964. It consists of two malted biscuits separated by a light chocolate cream filling and coated in a thin layer of textured chocolate.

quiet depot
#

yes

#

that

#

they’re also the only australian food item americans like

obtuse gale
#

An old friend who lives in aus came last week, she brought me a pair of airpods and… a pack of TimTams lmao

#

Still gotta try them

static zealot
#

the airpods?

obtuse gale
#

No

#

Those sound lit

obtuse gale
#

Bunch of asswipes

static zealot
#

my brother got the samsung buds few days ago. never thought earphones can sound good lmao but damn

obtuse gale
#

ikr

quiet depot
#

do u like vegemite?

static zealot
#

wtf is vegemite

obtuse gale
#

I think I tried once? But I don't remember trying it

quiet depot
static zealot
#

yeah. looks like poop

quiet depot
obtuse gale
#

Those I do remember eating a few times

#

Nothing outstandingly spectacular but they're pretty good; I should look up a recipe now

static zealot
#

man. I had american style pie a while ago. its actually not bad. I had apple pie

quiet depot
#

feel like apple pie isn’t american

static zealot
#

idk. but I havent tried it before

obtuse gale
quiet depot
#

can u give me a visual example of what you’ve tried

#

there’s different types of meat pies

#

they can vary hugely

quiet depot
#

apple pie is good

static zealot
#

yeah lmao. whenever I heard someone say pie I always thought about this since this is what we call pie here at least in our area but its usually filled with potatoes, or/and cheese

#

and its not sweet

quiet depot
#

yeah that

#

idk what that is

#

but it’s not pie

static zealot
#

its pie. according to google translate. lol.

#

and its very good

quiet depot
#

they look like munted pancakes

static zealot
#

well. you don't have them like that

#

you just take one at a time lol

obtuse gale
static zealot
#

oh you can also have them with cabbage

quiet depot
#

yeah ok that’s food

static zealot
#

those are also very good

quiet depot
#

good*

#

I mean technically it’s food too

obtuse gale
#

That is food indeed

quiet depot
#

but meant to say good

#

idk if a recipe is the way to go

#

think pies are pretty hard to make

#

but I recommend using chunks of meat, not mince, if u do make one

#

or if u buy one, always ask for chunky beef

static zealot
quiet depot
#

best pie

quiet depot
#

doesn’t really matter if you add other stuff

#

mashed potato, cheese, bacon, pepper, mushrooms are popular additives

#

can also put other shit entirely in the pie, a butter chicken pie slaps

winter iron
#

GuYs LeTS TaLk ABoUt FooD In #off-topic plEaSE 🤓 ☝️

static zealot
#

I'm spending way to much time trying to figure out how to play a sound in C# than I should

#

what would be the best is if it was just my sound being on mute the whole time and it actually working

obtuse gale
#

Can you not use SoundPlaher

#

Like what’s your problem

static zealot
#

yeah idk what was happening. I was trying and it didnt play. The task was asking me to just play a sound anyways so I Just used Console.Beep which worked

#

I also had problems with getting the path of the sound but that I figured out in the end but for some reason playing the sound didn't work even if I gave it the direct path

obtuse gale
#

Ah I’m pretty sure you can use wavs

#

With sound player at least

static zealot
#

no sound

#

it doesn't matter at this point. won't even try anymore. I was just gonna play the joe biden hello sound because the tasks did not specify what sound so I thought I'd go with something funny lol

#

but a beep works

obtuse gale
#

Damn that sucks is it for school?

static zealot
#

ye

deep vapor
#

Is there a version for deluxechat 1.17?

static zealot
short adder
#

Guys

#

Is codecademy good for learning java lang

lavish notch
#

?learn-java

compact perchBOT
#
FAQ Answer:

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!

short adder
#

No but

lavish notch
#

My bad, anyhow - there is a list above

short adder
#

Which one of the three link in other services do you prefer

static zealot
#

pluralsight is one of the best for courses (from what I've seen personally.) tho but its paid

short adder
#

Ok

onyx loom
#

HUH

oak raft
#

LOL

onyx loom
#

I dont wanna talk about food

oak raft
#

I feel u

short adder
half harness
#

you can try sololearn and google

the thing with sololearn is that the practice questions are usually extremely easy (most of the times you just have to fill in a couple blanks), and if you just zoom through it all you might just forget it the next day

distant sun
half harness
#

idk what that means

#

🥲

#

oh

#

ic

#

lombok bad

distant sun
#
public static Route of(HttpMethod method, String url) {
  return new Route(method, url);
}```
short adder
#

Ok its sololearn then

half harness
#

(although i'd recommend an ide)

lavish notch
#

If anyone here is familiar with PayPal's API, does PayPal's API only call events on a application's webhook when the event stems from the application or just all notifications...

For reference, it's in relation to my recent project seen here; #showcase message

Currently I'm trying to see if there is an error when paying an invoice that was made on Paypal's site, and not through the bot (thus, it's not in the database).... so payment notifications may break the system. Though when I pay a a invoice not currently managed by the bot, it doesn't receive a notification about it :/

wintry plinth
#

PayPal mmLol

oak raft
#

I learned but never practiced, resulting in forgetting a lot of things

sick belfry
#

@somber tulip looks good, just dark mode so my eyes dont burn

somber tulip
#

See the light my friend

sick belfry
#

no

somber tulip
#

Kidding, I’ll look into that

#

Or adding an option rather

#

Thanks 🙂

half harness
#

dark reader 😎

#

what if you just copy dark reader's theme? 🥲

#

why is my ip in "Saved data" 🥲

#

why am i using the 🥲 emoji so much 🥲

eternal compass
#

🥲

young kettle
#

does anyone know of a website that would sell like a whole bunch of random 2d item textures. tried googling the hell out of it but didn't get anything relevant

obtuse gale
#

Minecraft NFTs

urban sleet
#

How would you send players across servers seamlessly?

#

(meaning no loading screen)

#

I know it's possible, just not sure how

forest pecan
#

like bungeecord, waterfall, velocity or smthing?

urban sleet
#

Yeah

old wyvern
urban sleet
#

How does that work? I'm not too much of a developer, probably going to be relaying this to someone else so just want a general idea

wintry plinth
#

I don’t think it’s possible iirc

#

I thought that’s why people want transfer packets

#

Which don’t yet exist

quiet depot
#

@urban sleet It's impossible to actually transfer a user's connection from one server to another, no such functionality exists in minecraft

#

however you can get around it by forwarding a user's packets like yugi said (this is what bungeecord does)

#

as for making it seamless, there are public plugins that remove the loading screen, I can't remember their names, you'll have to google it

#

this is for changing worlds but I don't see any reason why it couldn't be adapted to bungee

wintry plinth
#

I thought we needed the transfer packet for that?

quiet depot
#

no

#

transfer packet just allows you to transfer servers without a proxy (e.g. like in source games - think tf2 & csgo)

wintry plinth
#

oh I see

obtuse gale
#

Your best bet is to go clean it up/recode a fair bit in spigot since thats the way to lower the world transfer time/teleporting with dimension changes

feral notch
#

I know it doesn't belong here

#

but please be aware

#

There is a new token grabbing methode

obtuse gale
#

With what

forest pecan
#

Yeah I heard of it too

static zealot
#

you know its bad when biginteger throws a stack overflow in C#

humble silo
#

👀

static zealot
# humble silo 👀

I need to solve combinations, where the number of elements is an int. (positive part only) and yeah. it goes bad since basically the formula for that is
n! / (k! * (n-k)!) and this can get very big when n is big

#

and k is small

prisma wave
#

how big?

static zealot
#

well as big as an int can get. 2.4B or something like that

#

that's how big n can get

prisma wave
#

yikes

#

yeah but

#

that's not practical

#

2.4B! would take weeks to compute

quiet depot
#

believe guava has combinations util

#

oh

#

c#

static zealot
#

the thing is, I was not told what types actually n and k need to be. bcz... why would I be told that 🥲

#

but I guess making n and k short would be better

quiet depot
#

make them bytes

static zealot
#

hmm

#

that's actually not a bad idea

prisma wave
#

what?

quiet depot
#

byte is 255 max right?

#

lower domain

static zealot
#

yeah

prisma wave
#

so it's not "as big as an int can get" lol

#

ok

quiet depot
#

it wasn’t in the design brief and is therefore up to blitz

prisma wave
#

there's a way more efficient algorithm for n choose k

#

1 sec

static zealot
# quiet depot it wasn’t in the design brief and is therefore up to blitz

fun fact. most of the problems are copy pastes from random websites xD. I found like the full solutions with the problems on those website. in a lot of cases you lose data. for example when its power, the website are not using the ^ and so when the teacher copied the problems it became xy instead of x^y xD

#

ok BM. ty btw

quiet depot
#

sounds like a great uni

static zealot
#

best of em

static zealot
# quiet depot sounds like a great uni

I probably mentioned this before but one of our teachers legit told us: "I've only been doing this for a year or so, so I'm basically learning at the same time you are"

quiet depot
#

lol

static zealot
#

yeah smiling_face_with_3_tears

prisma wave
#
int choose(int n, int k) {
  if (k == 0) return 1;
  if (n == 0) return 0;

  return choose(n - 1, k - 1) * n / k;
}
#

should work

#

i think that's O(n) time rather than O(n!)

static zealot
#

interesting. thank you

prisma wave
#

yeah i just stole it from google so idk how it works

static zealot
#

lmao

prisma wave
#

but np

static zealot
#

Also out of the 70 problems we got, a lot are just duplicates. and not in the sense they're similar. Theyre the exact same ones xD

quaint isle
#

So I take a class called "advanced programming" and we have to do a short 15min presentation on some software development techniques next week.
The proposed topics are unit testing, test driven development, clean code or refactoring, but we can also bring our own.

All these topics are kinda broad, you could easily fill a whole semester with them. Do you have any cool ideas what would be an interesting thing to talk about that fits into a 15min presentation?

old wyvern
#

n!/(n-k)! Can be simplified to reduce most of that

static zealot
#

how would you simplify that bcz its n! / (k! * (n-k)!)

old wyvern
#

Also use iteration to calculate factorial instead of recursion, should be faster

prisma wave
#

😩

static zealot
#

Yugi. I'm testing recursive vs iteration and seems like recursion is faster

#

and it seems to be quite noticeable

#

oh. oops

#

I had a mistake but corrected them and seems to stay the same

#

lmaooooooo. fuck me. I want to die rn. nvm you were right

potent nest
#

i mean it makes sense as long as it doesn't do tail call optimization

steel heart
#

the things you learn

half harness
#

^

short adder
#

How

#

Make a project right away after i learn a new type of variables etc?

prisma wave
#

would you say it's safe to assume that if a server has worldedit, they will also have worldguard?

short adder
#

ok i completed the entire sololearn java learning

#

What now

winter iron
#

:/

#

GriefProtection and shit

prisma wave
#

yea

#

i dont wanna couple things too much

sick belfry
#

wait

short adder
#

Can anyone further ecplain whats the difference between: public class main(), and private class main()

sick belfry
#

I just found out you can change mojang backgroud loading lel

#

color only

#

and with resource pack

short adder
#

Red to black?

sick belfry
#

no

#

with 1.17 core shaders

sick belfry
short adder
#

its monchrome setting in 1.17.1 optifine

short adder
sick belfry
static zealot
static zealot
#

wait no

eternal compass
static zealot
#

Private for class means its only accessible from isnide that class @short adder

static zealot
short adder
#

oh ok

#

In which kind of scenarios would you use private for

sly sonnet
#

-_-

static zealot
sick belfry
#

pink goes well with you

short adder
#

Blitz

static zealot
#

yes?

short adder
#

pls answer the question i need info.

#

Up above

old wyvern
#

To hide implementations

short adder
#

okay

sick belfry
#

1.17 core shaders are interesting

#

so basically

#

you can do shaders on vanilla

sly sonnet
short adder
#

learned what boolean, int, double, string, and char is

sly sonnet
#

pink is cool color tho

sick belfry
#

I also like it

sly sonnet
#

yeah i didnt say you said that

obtuse gale
#

okay but

#

purple is better

sly sonnet
#

which purple?

#

send rgba

static zealot
#

rgba

obtuse gale
#

any shade? but I mean purple is just dark pink so

static zealot
#

@half harness nice

half harness
fleet mauve
#

whats a good crates plugin?

half harness
remote goblet
#

EternalCrates ASevil

#

ez promo

hot hull
remote goblet
#

yeah it is

#

polymart tho because it's not unique enough Sadge

#

it works which is pretty unique imo

hot hull
#

Yea sadly it is

remote goblet
#

i may end up making it free doroLost

hot hull
#

Is it not

#

If so, OS or not

remote goblet
#

yeah it's OS

#

i put a ton of work into it so i wanted to make it premium but spigot said no

#

so polymart was my last choice if i wanted to keep it premium

#

which it's a pretty good site

#

they're hella fast but it just doesn't have the same audience or ever will tbh

viral grove
#

Polymart also has built in Obfuscation tools. Can't say I'm a fan of that

remote goblet
#

they're not as restrictive as spigot is which is cool catpeek

hot hull
#

Only losers obfuscate their code

eternal compass
#

That makes me okay

old wyvern
#

Why is it even obfuscated then?

#

Thats only going to make things harder for you

eternal compass
#

That... was a joke

old wyvern
#

Ah xD

#

welp nvm

eternal compass
#

Have a private repo with a github action to obfuscate and commit to public repo/s

sly sonnet
#

10$ for an expert java developer

#

hmm

#

seems legit

hot hull
#

10$ and I open IJ, after that 5$ a minute

old wyvern
#

I have a look at #904591269005770762 once in a while, and it reminds me of the good old days where slavery didn't need to be disguised /s

hot hull
#

Lmao

old wyvern
#

Uhh 😂

#

The Rise of the Null Pointer ™️

steel heart
tranquil crane
#

the heck

old wyvern
#

Why are they returning it if its just mutating 🥴

#

I almost mistook it to be creating a new location

oak coyote
#

It’s so you can make a chain cause voodoo 🤷‍♂️

#

.add(5,5,5).toString();

old wyvern
#

🥴

static zealot
hot hull
static zealot
#

so whats the point? you can just as well use location instead

dense dew
#

why people say thst spigot/bukkit api is bad

hot hull
#

Also readability

obtuse gale
tranquil crane
static zealot
#

o damn

hot hull
#

You disgust me Nicole

real pilot
#

Hi, I am wondering which way of saving data is best (SQL, MongoDB, txt file...)

lavish notch
#

Json file 💯

hot hull
real pilot
hot hull
#

Assumed that already since you're in this discord, what's the use case

real pilot
#

So simply: I have hashmap in main class and I need to save it on server stop and on start load it from the db

hot hull
#

So just persistency

real pilot
#

Yeah, maybe

hot hull
#

File would probably do the job, but a db would also work nicely

real pilot
#

I think file would reset with new jar file (on plugin update)

hard sable
#

No, it shouldnt if you dont remove the file

eternal compass
#
static zealot
#

Yoo. On github is there a way to disable pinned projects on the profile page? Because if I just remove the pinned, it changes it to Top repositories. I dont want to see that at all

prisma wave
#

am i tripping or is there literally no way to return from an extension lambda in kotlin

#

this doesnt work

#

return@outerFunction doesnt work

obtuse gale
#

I am laughing out loud

prisma wave
#

😷

#

🤮

#

🤧

#

🦠

#

😞

steel heart
#

Welcome to Kotlin

obtuse gale
#

tf lol

static zealot
#

Welcome to penisland

tranquil crane
lavish notch
#

In a small town with an unfortunate name, let's talk about filtering and innuendo. And use it as an excuse for as many visual jokes as possible.

I'm at https://www.tomscott.com
on Twitter at http://twitter.com/tomscott
on Facebook at http://facebook.com/tomscott
and on Instagram as @tomscottgo

(Thanks to James Paulsen for prompting me to do th...

▶ Play video
prisma wave
#

scunthorpe

zinc plinth
#

hey good afternoon guys

#

i have a question

compact perchBOT
#

There is no time to wait! Ask your question @zinc plinth!

zinc plinth
#

anyone knows here if is there possible to use iptables with pterodactyl panel for a minecraft network? i mean working properly to evade attacks

#

tag me for answer pls

gusty glen
gusty glen
tranquil crane
old wyvern
prisma wave
distant sun
#

Can you even do that?

old wyvern
distant sun
#

What bm wants to

old wyvern
#

yea, you can return a lambda

distant sun
#

Nice

old wyvern
distant sun
#

I just got this from work, nice @ocean quartz

jovial warren
#

I wanna see that so bad lol

#

I mean, what is that even using to display that?

#

because whatever it is, I want to add a powerful API for it lol

#

or at least, an API that can be extended easily to add that sort of functionality

tranquil crane
#

oh

#

wrong one

jovial warren
#

isn't block_marker new to 1.18?

tranquil crane
#

yes

#

I didn't see the actual gif you pinged and just assumed it was the particle one

jovial warren
#

lol

tranquil crane
#

the actual thing in the gif you replied to is just armor stand holograms updated very fast

#

and it's just screensharing my second monitor basically

#

even though that's in an entirely different channel

jovial warren
#

armour stand holograms? you mean like the ones that we have support for because TAB uses them? 🙂

tranquil crane
#

yes

jovial warren
#

because TAB has official support for Krypton now

tranquil crane
#

and it just sends metadata packets to update their names really fast

old wyvern
#

Is krypton usable now?

jovial warren
#

define "usable"

old wyvern
#

Is vanilla gameplay implemented?*

jovial warren
#

it's usable as a lobby, or maybe as a lightweight minigame, sure

old wyvern
#

Ah

jovial warren
old wyvern
#

💀 💀

tranquil crane
#

enjoy the 1.18 chunk changes

old wyvern
#

Shouldnt completion be the priority before porting plugins ☠️☠️

jovial warren
jovial warren
#

and people like plugins

#

being able to use Krypton for a lobby with a few plugins is better than being able to use it for nothing with no plugins

old wyvern
#

But how does one use the plugins without the server itself 🥲

jovial warren
#

and the API is becoming more and more developed

#

I mean, @steel heart is starting to work on an Essentials-like plugin for Krypton

#

and we'll have Hangar ready soon, so we'll have a place to share plugins with others

#

having a good ecosystem is just as important as having a good server

#

oh btw, on that note, if anyone wants to make plugins for Krypton, please do, It'd really make me smile to see more people wanting to get involved 🙂

gusty glen
# prisma wave eh? It's if X, return a lambda

the solution is simple in cases like that (if you don't want to use blah@), instead of returning lambdas, just create a method and return its reference in the if else with ::methodName

jovial warren
#

can't wait to see it

#

I mean, we have the JoinEvent and QuitEvent with modifiable messages that you need to make it work

#

if LuckPerms and TAB can function properly with all features that matter implemented (for TAB, we're only missing the pet fix because I couldn't be assed and the wither boss bar because it's server version <= 1.8) then FJ can function no problem lol

#

the only thing missing from LuckPerms is a context update on world switch, but that's because we don't support world switching yet

old wyvern
hot hull
#

When and if I have time I'll make it, can't be arsed with development

kindred hatch
#

Is it possible to make it so leather armor adds more armor bars above the hearts?

Just as a cosmetic since the tiers would be handled internally

hot hull
#

Don't think you can

forest pecan
#

yeah it might be handled client side

#

cause that doesnt seem to be something the server has to handle

static zealot
#

resource packs. tho that's probably not going to be an option huh

hot hull
#

Get gud Gian

distant sun
#
Minecraft Wiki

Armor tiers. From left (weakest) to right (strongest): no armor, leather, golden, chainmail, iron, diamond and netherite. (Note that the turtle shell is not pictured. The turtle shell is between iron and diamond, having equal armor points and greater durability than iron.)
Armor is a category of items that provide players and certain mobs ...

prisma wave
prisma wave
#

btw pls ping me cuz I wouldn't have seen that message if it wasn't for yugi

gusty glen
static zealot
#

Anyone know if there's a way to improve the terminal Rider uses when running a C# Console Applications? Its so messed up.

#

I've asked before but basically, here's a few examples on how its broken:

#

backspaces show up as spaces

#

Sometimes the first 1 or 2 characters I type don't show up

#

tho rn I can't replicate it

#

here we go

#

and it really messes with my brain when testing shit

prisma wave
static zealot
forest pecan
#
public final class Nill {

  private Nill() {}

  public static <T> void ifNot(@Nullable final T obj, @NotNull final Runnable consumer) {
    if (!isNull(obj)) {
      consumer.run();
    }
  }

  public static <T> void ifSo(@Nullable final T obj, @NotNull final Runnable consumer) {
    if (isNull(obj)) {
      consumer.run();
    }
  }

  private static <T> boolean isNull(@Nullable final T obj) {
    return obj == null;
  }
}
#

lol

static zealot
#

👍

forest pecan
#

i was tired of seeing if (obj == null)

#

it just looked so god damn ugly

prisma wave
#

Optional.ofNullable#ifPresent 😵

forest pecan
#

Nill.ifSo shorter

#

😎

static zealot
#

They also fixed Console#Clear

obtuse gale
static zealot
#

why are C# errors so bad

prisma wave
#

C# bad

static zealot
#

ok. that answers my question

#

🥲 to use multi dimensional arrays, I need to initiate every element.

#

so I have to do this ```c
var next = new int[length][];

        for (var i = 0; i < height; i++)
        {
            next[i] = new int[length];
        }```
#

why can't I Just do new int[length][height]; 😦

steel heart
#

AbstractRecursiveGenericArrayFactoryBase

potent nest
#

to quote BM: C# bad

static zealot
#

what is the difference between int[][] and int[,] in C#? I can't find anything about this

#

oh. found their names. jagged array vs multidimensional array

static zealot
#

if I had a string something like Some Random string with possible multiple spaces spliting words and I wanted to get each word, I could split using this pattern right? ?

#

the ? means 1 ore more spaces

#

?

old wyvern
#

+

static zealot
#

oh

#

ty

#

LINQ is interesting

old wyvern
#

With the help of simon

static zealot
old wyvern
#

He works at Microsoft 😌

static zealot
old wyvern
static zealot
old wyvern
frail glade
#

Spigot rc3 out

obtuse gale
#

o

sick belfry
obtuse gale
#

no?

#

mc rc3 came out today lmao

forest pecan
#

Yeah lol

sick belfry
#

oh right I'm a dumbass

frail glade
#

Smh

frail glade
#

Did y'all see the bug with Java 17 on single core systems that it's breaking tab complete stuff in MC?

#

It's really bizzare, there's a startup flag to fix it, but just weird.

wintry plinth
#

No? :o

hot hull
#

Who even uses java anymore jesus

wintry plinth
#

Arm Java is where it’s at

hot hull
#

Y'all got snow yet charlie?

frail glade
#

Apparently the JDK patch isn't till January

wintry plinth
hot hull
#

Yes

#

It's raining now tho so it's gonna be gone soon

#

Probably gonna get more throughout the night and the rest of the weekend tho

wintry plinth
#

I’d love snow, it’s cold as fuck here tho

onyx loom
#

I got snow !!!!!

#

only a little kek

wintry plinth
#

Lucky

hot hull
#

British losers

wintry plinth
#

Yeah :( us tea drinkers don’t get snow

#

Not lucky enough

hot hull
#

I keep forgetting, do you put milk in your tea or no?

#

So I know if I need to remove you from my friends list

old wyvern
sly sonnet
#

why the f would you want to do that

old wyvern
#

Tea is better with milk 🤷

wintry plinth
#

Why wouldn’t you put milk in?! ^^^^

hot hull
#

Fucking psychopaths

old wyvern
#

What!

potent nest
hot hull
#

big brains as always

hot hull
old wyvern
#

1.17 paper issues?

sly sonnet
#

first time seeing this error

#

from all the ones i have seen

potent nest
#

more like mojang issue most likely

old wyvern
#

💀

#

Maybe has to do with me running the map I used in 1.16?

potent nest
#

yeah that's upgrade stuff

#

you can find a lot of such issues on mojira lol

forest pecan
old wyvern
#

ahh

forest pecan
#

there was this bug with like 100 watchers i had on jira

#

and mojang took like 4 months

#

to fix it

#

lol

old wyvern
#

lol

forest pecan
#

it was pretty bad too

#

like chunk corruption

old wyvern
#

💀

obtuse gale
#

Yup spigot gets worst by the day

hot hull
#

worse

alpine inlet
#

Wurst?

quaint isle
#

Hello I'm German, did someone call me? 👀

static zealot
#

yes. your mom. she's worried. where have you been for the past 2 days?

quaint isle
#

I'm sorry, it's been a few busy days, mom. I will be back to ask dumb and semi-dumb questions in the dev channel tomorrow 🥺

obtuse gale
#

Hmmmm unless I’m comparing it to something. Which I guess I am cause old spigot 10x better

half harness
#

you'd say like spigot is the worst

obtuse gale
#

Yea I guess it all matters if it’s in comparison

prisma wave
obtuse gale
forest pecan
#

it gets worse every day

hot hull
sly sonnet
prisma wave
forest pecan
obtuse gale
#

BetterDiscord-Windows.exe

prisma wave
forest pecan
#

Brister es calvo!!!

prisma wave
#

Konichiwa 😊

obtuse gale
#

💀

alpine inlet
obtuse gale
forest pecan
#

Bonjour motherfuckers

hot hull
prisma wave
alpine inlet
#

Not really xD

hot hull
#

yes really

#

Where you from?

alpine inlet
#

Germany

obtuse gale
#

Kek W

hot hull
#

Ah

prisma wave
#

I don't think that's true

forest pecan
obtuse gale
potent nest
#

kek vv

forest pecan
#

Oh no

hot hull
#

kek sthu

prisma wave
#

kek uu

sly sonnet
#

kek v on my balls

alpine inlet
hot hull
#

kek uwu

obtuse gale
#

yes

forest pecan
#

chokek on my balls

hot hull
#

I'm gonna go ride the suislide now

obtuse gale
#

Damn @forest pecan didn’t know you wanted emily to do that

#

skull

forest pecan
#

Lol

prisma wave
sly sonnet
#

aight imma go play need for speed w/ my dad's car

hot hull
#

Too small to choke on

forest pecan
obtuse gale
#

I cant blame you tho 😉

alpine inlet
forest pecan
#

I have big meat

obtuse gale
#

emat

#

I vouch

#

PulseMeat

alpine inlet
#

Colorful in here today btw

forest pecan
#

Mm

half harness
#

more colorss

static zealot
#

more

obtuse gale
#
  • Not configuration help -
static zealot
#

help me with my config please