#dev-general

1 messages · Page 226 of 1

onyx loom
#

all my homies hate kotlin dsl

ocean quartz
#

Kotlin gradle is pretty meh

onyx loom
#

yes

obtuse gale
#

with it I don't get warnings for literally everything

#

like

#

literally

tawdry ore
#

how to i make it so tpa doesn't work when someone is in spectator mode, or goes into spectator mode after they have accepted the tpa request

ocean quartz
#

Doesn't sound like a dev related question, also this is not support channel, you might wanna ask in #general-plugins

obtuse gale
#

isnt getClass() just ::class.java in kotlin?

ocean quartz
#

Depends

obtuse gale
#

im tryna steal ur setSkullTexture method from here but this lines giving problems

ocean quartz
#

Oh, from an instance it'd be skullMeta.javaClass

forest pecan
#

on a scale

#

of 1 - 10

#

how bad is this:

#
meta.setLore(Arrays.asList(Arrays.asList("Ewww Stinky", "Dirty Mess", "Dusty!").get(new Random().nextInt(3))));
obtuse gale
#

what the fuck is that

#

pulsebeat

#

please

forest pecan
#

lol

#

i didnt include it

#

xD

obtuse gale
#
  1. Lists created from Arrays.asList(T...) are immutable, (and even if it wasn't) so creating one each time you call that method is a bit.. :yikes:
  2. new Random no, please don't, have an instance of random somewhere or use ThreadLocalRandom.current() instead
forest pecan
#

yeah it was a joke

obtuse gale
#

geez

forest pecan
#

lol

obtuse gale
ocean quartz
#

What does it say?
Can't you just copy the method and let IJ convert it?

obtuse gale
obtuse gale
prisma wave
#

Send the code

obtuse gale
# prisma wave Send the code
    fun Entity.getHead():ItemStack?{
        val textureId = config.getString(type.name)
        val itemStack = XMaterial.PLAYER_HEAD.parseItem() ?: return null
        val meta = itemStack.itemMeta  as SkullMeta

        val profile = GameProfile(UUID.randomUUID(), null)
        profile.properties.put("textures", Property("textures", textureId))
        var profileField:Field = meta.javaClass```
hot hull
#

Hey Aj

#

Ever heard of spaces

obtuse gale
#

fun

#

_ _

steel heart
#

Function

hot hull
#

val meta = itemStack.itemMeta as SkullMeta
2 spaces???

fun Entity.getHead():ItemStack?{
No spaces???

obtuse gale
#

yes

#

now fix error pls

steel heart
hot hull
#

You disgusting creature

obtuse gale
prisma wave
obtuse gale
#

so how do i get the java class

steel heart
#

the skull meta class is package private

hot hull
#

It's not

prisma wave
#

what is the error

steel heart
#

yes the implementation is at least iirc

#

not the interface obv

prisma wave
#

the implementation is in cb... so yeah...

obtuse gale
#

is it because im making an extension function thats in a class or something?

prisma wave
#

i doubt it

obtuse gale
#

will that just compile to the same just not static?

prisma wave
#

yeah

#

if you do meta. what comes up?

obtuse gale
prisma wave
#

i mean

#

if you scroll down is javaClass there?

obtuse gale
#

nop

prisma wave
#

hold on

#

var profileField: Field = meta.javaClass

#

Field

#

javaClass

obtuse gale
#

well yeah I havent finished typing the thing lol

prisma wave
#

why have explicit typing at all

obtuse gale
#

thats hwaty it should be

prisma wave
#

val profileField = blah?

#

anyway

#

works fine for me

obtuse gale
#

cos i copied it from ur thing and let ij do stuff

#

yeah i did that before

prisma wave
#

my thing?

obtuse gale
#

oh hold up

#

bruh

#

what do i need in my build.gradle for kotlin again?

prisma wave
#

if you're on 1.4+ just the plugin

obtuse gale
#

o

#

idk thne

#

no dependencies?

prisma wave
#

dont think so

#

send it anyway i guess

obtuse gale
#

actualyl ive got the stdlib there anyway

#
plugins {
    id 'java'
    id 'org.jetbrains.kotlin.jvm' version '1.3.72'
}

group 'org.aj3douglas'
version '1.0-SNAPSHOT'

repositories {
    mavenCentral()
    mavenLocal()
    maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
    maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
}

dependencies {
    implementation 'com.github.cryptomorin:XSeries:7.6.0.0.1'
    implementation 'org.spigotmc:spigot:1.16.3-R0.1-SNAPSHOT'
    implementation "org.jetbrains.kotlin:kotlin-stdlib"
}
prisma wave
#

bruh

obtuse gale
#

what

prisma wave
#

"kotlin-stdlib" is the cross platform lib

#

without all the java specific stuff

obtuse gale
#

tell that to IJ i didnt add it

prisma wave
#

why not just use 1.4

#

smh

obtuse gale
#

how

prisma wave
#

change the plugin version

hot hull
#

:kek:

tranquil crane
#

use implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' for the dependency
and id 'org.jetbrains.kotlin.jvm' version '1.4.20' for the plugin

obtuse gale
#

bruh I just did
New project > Gradle > Kotlin / JVM

prisma wave
#

it adds it automatically

tranquil crane
#

you waht

#

let me test this

obtuse gale
#

eyyy

tranquil crane
#

ok so I just removed the dependency for it and now the .use thingy doesn't work thonking

prisma wave
#

maybe they changed the function in 1.4 or something

#

¯_(ツ)_/¯

#

it works most of the time

tranquil crane
#

that used to work but I guess it doesn't want to anymore

old wyvern
#

anyone up for some clash?

tranquil crane
#

clash?

prisma wave
#

of code

obtuse gale
#

i will

old wyvern
tranquil crane
#

I do not know of this

prisma wave
old wyvern
#

alrighty lemme make a clash

prisma wave
obtuse gale
#

private fun chance(chance:Double):Boolean = (1..100).random() < (chance * 100) if i pass this like .16 will it give me a 16% chance?

quiet depot
#

aj why are you using implementation for spigot

obtuse gale
#

idk should it be compileOnly?

prisma wave
#

yes

prisma wave
#

I think that will work yeah

obtuse gale
prisma wave
#

but jeez

old wyvern
#

or random() if thats a thing in kotlin

tranquil crane
#

just Math.random() < chance is all you need lol

prisma wave
quiet depot
#

anyone else joining clash?

#

nicole?

tranquil crane
#

uhh sure this is what I was planning to do at 4am

prisma wave
#

yeah it is

old wyvern
#

Deff

prisma wave
#

you won't regret it

quiet depot
#

owner should limit the lang to java

#

next round

old wyvern
#

Sure

prisma wave
#

hmm

#

could be interesting

#

java + shortest only fingerguns

tranquil crane
#

ok I'm in there now

#

time to go insane

quiet depot
#

eh I say keep all modes

old wyvern
#

that would actually be interesting

prisma wave
#

ok i think that's everyone

old wyvern
#

Java+Shortest

tranquil crane
#

I dare somebody to do it in VB.NET

obtuse gale
#

kotlin tho

prisma wave
#

oh god no

old wyvern
#

fuck, shortest

obtuse gale
#

BRUH

old wyvern
#

xD

hot hull
#

My PC is going brrrrrrrrrrrrrrrrrr rn so I'll join later if y'all still doing it

obtuse gale
#

how in the fuck am i meant to do this

tranquil crane
#

I don't even know what I'm reading

obtuse gale
#

^

prisma wave
#

omg

#

first try

#

it compiled and worked

quiet depot
#

in java so automatic loss D:

prisma wave
#

rip

obtuse gale
#

tf have i even done

quiet depot
#

if only aj could read

#

aj go back to school

obtuse gale
#

oh

#

hold on

#

tf is mod 256

quiet depot
#

yikes

tranquil crane
#

lol yikes

prisma wave
#

%

#

lol

obtuse gale
#

o

#

not going werll

hot hull
#

ew math

tranquil crane
#

hardly

obtuse gale
#

nah i give up

quiet depot
#

;-;

#

aj pls

obtuse gale
#

i had something somewhat similar to urs piggy

#

but different

#

i was splitting it @ weird places

quiet depot
#

yugi where'd you learn python?

prisma wave
#

aww python 😦

quiet depot
#

yeah that's why I said java only

#

because if someone goes lua or python, instant win for them

old wyvern
quiet depot
#

where'd you learn it? at school, on a project, etc

#

just a general question

old wyvern
#

oh just for random coding competitions

tranquil crane
#

ha beat piggy

#

all that matters

old wyvern
#

They didnt teach us python since I am from the gaming dept

#

probably next sem maybe?

#

not sure

tranquil crane
#

piggy go look how I did the sum :)

old wyvern
#

they gave us our OS course only this sem as well

quiet depot
#

eso you need to click share

tranquil crane
#

oh

obtuse gale
#

none of yall got 12 characters tho did you

tranquil crane
#

there lmao

#

sorry never used this site before

lunar cypress
#

My theory is still that most people don't learn python consciously

prisma wave
#

I agree with that theory

quiet depot
#

lol

prisma wave
#

python is so unbelievably easy

#

you just inately know it

quiet depot
#

is chars() java 11?

prisma wave
#

nah 8

lunar cypress
#

No

prisma wave
#

IntStream

tranquil crane
#

it's 8, returns an IntStream

quiet depot
#

i see

old wyvern
#

Shortest+Java now?

tranquil crane
#

that python code is crisp wth

quiet depot
#

sure yugi

tranquil crane
#

I like Aj's answer

obtuse gale
#

mines the best, only 12 chars

prisma wave
prisma wave
#

i guess because it was a char already so

#

this is gonna be interesting

quiet depot
#

bm fix your fucked up pfp on clash thx

obtuse gale
#

shes a bit squished

tranquil crane
#

shortest, does that mean I should delete all spaces and newlines

prisma wave
#

yeah

quiet depot
#

dunno if it counts those

prisma wave
#

it does

obtuse gale
#

it shouldnt

tranquil crane
#

time to make one line java code

#

prepare yourself

old wyvern
#

lol

lunar cypress
#

Yeah, you're calling int on char, which is like casting

prisma wave
#

makes sense

obtuse gale
#

fuckn hell terry

#

oh

#

i read that as candles

prisma wave
#

lmao

tranquil crane
#

I thought that said candles too

#

oml

#

eating candles

obtuse gale
#

I was about to say how fun terry was at parties

#

ugh 50% of the tests work

prisma wave
#

rip

#

cant shrink this anymore

tranquil crane
#

did you shrink it to a single line

prisma wave
#

yes

#

pretty much zero whitespace

obtuse gale
#

bruh

#

my browser just stopped responding

prisma wave
#

rip

heady birch
#

I have to actually read it? Can it speak the instruction for me?

prisma wave
#

dont think so lol

tranquil crane
#

is it required to close the scanner?

floral steeple
#

Hi, how do I connect the LiteBans Material UI?

prisma wave
#

no

tranquil crane
#

Candies

prisma wave
#

candles

tranquil crane
#

you right it's candles now

obtuse gale
#

im not crazy....

prisma wave
#

for (int x = 0; x < 16; x++) this will never be 16 right?

tranquil crane
#

right

#

0-15

prisma wave
#

ArrayIndexOutOfBoundsException: 16 Thonk

#

im so confused

hot hull
#

lol

tranquil crane
#

elara beating me by literally 3 characters

prisma wave
#

oof

heady birch
#

"Shortest Mode"? I didnt know it had modes

prisma wave
#

yes lol

#

minimum characters

#

import java.util.*;class Solution

heady birch
#
class CandleContext {
    private final int numberOfCandles;
    private final int sizeOfMouth;

    public CandleContext(final int numberOfCandles, final int sizeOfMouth) {
        this.numberOfCandles = numberOfCandles;
        this.sizeOfMouth = sizeOfMouth;
    }
}

class CandleContextFactory {
    public static CandleContext getContextFromInputString(final String string) throws CandleInputParseException {
        final String[] parts = string.split(" ");
        if (parts.length < 2) {
            throw new CandleInputParseException("Error");
        } 
    }
}

class CandleInputParseException extends Exception {
    private final String message;

    public CandleInputParseException(final String message) {
        this.message = message;
    }

    public String getMessage() {
        return message;
    }
}
``` What I had going
hot hull
#

import java.*

#

ez

prisma wave
#

LMFAO

tranquil crane
#

I just did that

obtuse gale
#

bruh

tranquil crane
#

doesn't work though lmfao

hot hull
#

Lmao Niall

quiet depot
#

welp

hot hull
#

Your ENTERPRISE CODE

prisma wave
#

enterprise clash of code

old wyvern
#

yo what

#

why didnt it submit mine

tranquil crane
#

why does it say 0% wtf

#

it passes all the tests fyi

old wyvern
#

You didnt submit?

prisma wave
#

bruh how did you all get 0%

tranquil crane
#

You could have changed the class name to S

old wyvern
#

tf

prisma wave
#

oh true

quiet depot
#

I would've got like 5% but I was trying to fix other shit

old wyvern
#

I had a soln

tranquil crane
#

wow if I renamed args to a I would have beaten you

old wyvern
#

I was waiting for its final submit button

prisma wave
#

rip

quiet depot
#

how did aj do kotlin

obtuse gale
#

i crashed

prisma wave
#

cheating

#

smh

old wyvern
#

I accidentally clicked outside the box and it exited me to results

obtuse gale
#

i didnt submit anything did i?

old wyvern
#

or not

#

lol

#

there we go

prisma wave
#

it submits automatically if you run out of time

old wyvern
#

not 0 now

prisma wave
#

tf lol

hot hull
#

Lemme open google, gimme a bit, I'll join fingerguns

prisma wave
heady birch
#

Wait was it Candies or candles?

tranquil crane
#

food

prisma wave
#

candles

old wyvern
#

ah overcomplicated it didnt i

obtuse gale
#

candles

prisma wave
#

a little bit lol

quiet depot
#

yeah ok mr smarty pants bm

prisma wave
#

:))

#

another gimmick one?

old wyvern
#

I swear the questions in random are fucking much harder than these

prisma wave
#

maybe we all have to use VB.NET or something

obtuse gale
#

ok

frigid badge
#

all use c

tranquil crane
obtuse gale
#

imma be googling stuff left right & centre but ill try

old wyvern
#

I guess maybe to not remove their hard questions to bots?

heady birch
#

Please start the competition

old wyvern
#

c and shortest?

obtuse gale
#

c is probs better tho

obtuse gale
#

just cos its probably easier

prisma wave
#

this will be interesting

quiet depot
#

yikes I don't know either of these languages

#

awesome

tranquil crane
#

you making me try to remember random C jank

prisma wave
#

me neither lol

frigid badge
#

I can’t join 😦

tranquil crane
#

c is just java but impossible

prisma wave
#

😦

quiet depot
#

why lemmo

obtuse gale
#

you making me try to learn c

old wyvern
prisma wave
#

not anymore

frigid badge
#

cause I have stuff do to and I’m on ohone

#

phone*

tranquil crane
#

will it pick one at random?

prisma wave
#

unless you wanna join a new one

quiet depot
#

again lemmo, why

prisma wave
quiet depot
#

just drop whatever ur doing

#

and go to pc

#

this is more important

old wyvern
#

^

prisma wave
#

shortest only 😬

obtuse gale
#

ive GOT TIME

quiet depot
#

shortest sucks because i'm bad at it

old wyvern
#

oh we werent going for that?

prisma wave
#

dont think so

old wyvern
#

Alrighty

prisma wave
#

ez

#

alright

#

let's go

#

ooh

tranquil crane
#

ayy time to suffer

prisma wave
#

good luck everyone

#

Note: The product will be very large, you have to optimize your code well

#

oh no

tranquil crane
#

shortest

old wyvern
#

LMAO

#

ha

tranquil crane
#

you want me to optimize c code

#

bruh the whole reason I'd ever write c is so I won't have to optimize it

prisma wave
#

wait this is easy?

#

i think

old wyvern
#

not optimize

#

minimize it

prisma wave
#

both

old wyvern
#

there are no time limits tho

#

as in runtime limits

prisma wave
#

yea

tranquil crane
#

that's a long long

obtuse gale
#

tf us scanf

tranquil crane
#

it scans

#

f

old wyvern
#

input function aj

hot hull
#

I've no idea what I can delete and not lmao

tranquil crane
#

technically whatever you want

old wyvern
#

reads from io using the specific format in args 1

obtuse gale
#

scanf("%lld", &x); brings the next long long to the x variable or some shit?

#

also tf is long long

prisma wave
#

long but longer

hot hull
#

A long long fingerguns

prisma wave
#

128 bit iirc

old wyvern
#

long long long

prisma wave
old wyvern
#

really long long long

prisma wave
#

oh jesus the impossible test

old wyvern
#

much longer long long log

quiet depot
#

wth is the impossible test

prisma wave
#

impossible

#

does C have biginteger

old wyvern
#

cpp does in boost lib

hot hull
#

google to the rescue

old wyvern
#

dont think c has it

prisma wave
#

c has basically nothing though

#

gonna need some number theory here i think

hot hull
#

long long is longest in C right?

#

largest*

old wyvern
#

it has everything you need I think?

prisma wave
#

unsigned long long is in theory longest

hot hull
#

Tried that, still failed :p

prisma wave
#

yeah gonna need something clever

#

odd * even optimisations etc

#

nope

lunar cypress
#

You're all doing C right now?

obtuse gale
#

image ur code compiling

prisma wave
#

but yeah i think most are using C

onyx loom
tranquil crane
#

I still don't even know what the first sentence of the problem means

hot hull
#

ints * next int

#

Just result *= int

prisma wave
#

product(N) % D == 0

tranquil crane
#

wdym product(N) it only gives you one integer N

hot hull
#

Wait could you shorten the number using bitwise BM?

#

in theory?

tranquil crane
#

is it supposed to be fibonacci or something

#

sorry I mean uh

#

I can't think right now it's 5am

prisma wave
#

no lol it gives a list of numbers

#

and you have to product them

prisma wave
tranquil crane
#

it w h a t

prisma wave
#

take the product of N integers

tranquil crane
#

is that not a single integer that N is assigned to

obtuse gale
#

i feel like im misunderstanding this lol

prisma wave
#

N is how many integers there are

tranquil crane
#

oh that's a for loop

prisma wave
#

yeah

obtuse gale
#

im producting all of the xs together

#

is that right

tranquil crane
#

sorry I'm working with 2 brain cells right now

prisma wave
onyx loom
#

besides the point tho niall, vb good fingerguns

obtuse gale
#

then if theres a decimal doesnt that mean its not perfect?

prisma wave
#

yeah

#

% d == 0 means perfect

obtuse gale
#

is that it?

heady birch
#

Product Mod D = 0

prisma wave
#

god

obtuse gale
#

im using isDigit(product)

#

mine works for all except the last one

prisma wave
#

i feel like you could do prime factorising or something

hot hull
#

So Impossible 2 succeeds, Impossible doesn't :sad:

heady birch
#

Yeah I just submitted it but I want to edit it now 😦

obtuse gale
#

for whatever eason ive gotta invert isDigit for most to work

hot hull
#

If only you could specify more time for these kinds of questions

obtuse gale
#

ok ive scrapped isDigit

old wyvern
#

yo got it

obtuse gale
#

i still fail the impossible one

old wyvern
#

||just properties of modulus||

obtuse gale
#

yeah like i know what that means

hot hull
#

Yugi

#

gtfo with your fancy terminology

onyx loom
#

😂

old wyvern
#

what is fancy in that?

quiet depot
#

yeah nah I can't do this

old wyvern
#

modulus = %

quiet depot
#

I've literally got no clue

obtuse gale
#

imma just accept im failing the impossible one

hot hull
#

oh well

#

You suck Aj

obtuse gale
#

lol what

hot hull
#

Yugi didn't even try to minize it smh

obtuse gale
#

does yugi know c tho

tranquil crane
#

I still dont' even know what the question is

prisma wave
#

oof

hot hull
#

What does Yugi not know

quiet depot
#

yugi I don't get it

#

pls explain

prisma wave
#

oh you can just mod the product each time

#

i think

tranquil crane
#

oh you modulus it while doing the product

#

yeah

#

he's right that it's just a basic modulus property lol

prisma wave
#

welp

#

that was interesting

#

another gimmick?

heady birch
#

Piggy how the heck does your work?

tranquil crane
#

still have no idea what the question is

hot hull
#

My brain too small to understand that Nicole so..

obtuse gale
#

^

quiet depot
#

wym niall

prisma wave
#

anyone here used D before?

hot hull
#

The fuck is D

quiet depot
#

I've never used vb.net before, so I've got no clue

prisma wave
#

The D programming language is an object-oriented, imperative, multi-paradigm system programming language. D language originated as a re-engineering of C++, and D's design goals try combining the performance of compiled languages with the safety and expressive power of modern dynamic languages

quiet depot
#

you've probs got a better idea than I do

lunar cypress
#

yeah I've used it once where we all used langs we've never used before

prisma wave
#

yeah

lunar cypress
#

not that interesting tbh

prisma wave
#

oh

hot hull
#

So long the syntax isn't cancer sure BM

#

cough Clojure cough

old wyvern
prisma wave
#

my shortlist is:
D
Dart
F#
Lua
Objective-C
OCaml
Pascal
Perl
Ruby
Swift

quiet depot
#

news to me yugi

#

I've never seen that before

old wyvern
#

ah

prisma wave
#

any preferences?

quiet depot
#

do you get taught this shit in school?

heady birch
#

rust

hot hull
#

Let's go down the list I guess BM

prisma wave
#

alrighty

#

D time

#

:))

quiet depot
#

lua bm

tranquil crane
#

let's just suffer with Lua

old wyvern
quiet depot
#

i'm not playing, gonna go get some food

prisma wave
#

aww

#

ok

#

anyone else?

tranquil crane
#

I think I was taught that in discrete

hot hull
#

There we go with mentions of food :((

lunar cypress
#

D docs pulled up 👍

obtuse gale
#

I hate not having an IDe for this shit

prisma wave
#

D looks like C++ kinda

obtuse gale
#

like normally i use scratch files in ij

prisma wave
#

oh no a long one

old wyvern
#

ayy got into 3k

obtuse gale
#

fuck calvin

lunar cypress
#

Yeah D is just another c family one

tranquil crane
#

this is just c but with auto

prisma wave
#

yeah

tranquil crane
#

and it's excited !

lunar cypress
#

has the same stuff as any other of those

tranquil crane
#

I hate that way of casting

old wyvern
#

auto?

tranquil crane
#

but I'm impressed it can do that

lunar cypress
#

syntax is different here an there but yea

tranquil crane
#

auto means it just figures out the type on its own

#

I would assume

prisma wave
#

yeah

old wyvern
#

oh inference

prisma wave
#

like val or var etc

old wyvern
#

I see

lunar cypress
#

or... auto

#

in cpp

prisma wave
#

^

#

lol

#

long questions suck

old wyvern
#

havent used that

#

🤷‍♂️

lunar cypress
#

shortest really sucks here because none of us can do anything interesting

#

unless someone is lucky and finds something by accident

prisma wave
#

yeah true

hot hull
#

Would be nice to have more time available tho

tranquil crane
#

yeah sorry but screw this I'm too tired at this point

prisma wave
#

fair enough

#

this question is weird

hot hull
#

Very

prisma wave
#

and so is this language

#

it's like functional c++

obtuse gale
#

wait

#

how do we get the amount of gifts he can give

#

since isnt that in the first input?

#

Thats where im stuck atm

hot hull
#

I've no clue, I didn't get the question at all

prisma wave
#

the number of gifts he can give is G

obtuse gale
#

tf is G

#

I dont have G

#

which one is G

hot hull
#

It's your first variable

#

0 split iirc

prisma wave
#
    int N = inputs[0].to!int;
    int G = inputs[1].to!int;```
?
obtuse gale
#

o

hot hull
#

Ah second

#

smh

obtuse gale
#

then whats calvins score?

#

M?

hot hull
#

yes

obtuse gale
#

what do i use for equals in D?

#

==?

hot hull
#

Yes Aj

obtuse gale
#

bruh what

#

Error: undefined identifier writeIn

#

o

prisma wave
#

writeln

obtuse gale
#

its writeLn

prisma wave
#

smh

hot hull
#

What a massive 4head you have

obtuse gale
#

ehhh

prisma wave
#

45%

#

i'll take that

#

D is kinda nice

obtuse gale
#

eyy

#

63

prisma wave
#

wow nice

hot hull
#

Did you just print false

#

smh Aj

obtuse gale
#

no lol

hot hull
#

Okay good

obtuse gale
#

I made like arrays and shit

prisma wave
#
    if(b == true){
        writeln("true");
    }else{
        writeln("false");
    }```
😐
obtuse gale
#

and sorted them

tranquil crane
#

you can probably just do

import std;
void main() { writeln(true); }
``` and get the smallest with best score
obtuse gale
#

oh wait

#

bruh i did not think about that bm lol

hot hull
#

Nicole, was thinking of doing that, but that's cheating

obtuse gale
#

lets just ignore that tho

prisma wave
#

bruh

lunar cypress
#

dang

tranquil crane
#

go look at my code

hot hull
#

Went with a better output instead

prisma wave
#

you're using ~= and everything wtf

lunar cypress
#

will mine still submit?

prisma wave
#

yeah

lunar cypress
#

I got 100% i think

prisma wave
#

nice

old wyvern
#

nice

lunar cypress
#

but I choked

prisma wave
#

the algorithm confused the shit out of me

hot hull
#

You piece of shit Nicole

prisma wave
#

oh or not

tranquil crane
#

LOL

lunar cypress
#

shit

old wyvern
#

welp

lunar cypress
#

nvm

prisma wave
#

NO

#

that was interesting

#

what now

lunar cypress
#

it sucked ngl

prisma wave
#

the question sucked

tranquil crane
#

now you go view my code

prisma wave
#

the language was kinda nice

tranquil crane
#

:)

obtuse gale
#

tbh tho i probs wouldve failed this on java as well so

hot hull
#

Let's do D again

prisma wave
#

alrighty

lunar cypress
#

the question was completely fine, you are all such crybabies

hot hull
#

But hope we get a better question

prisma wave
#

no shortest now

hot hull
#

Johnny

hot hull
#

:C

prisma wave
#

johnny nobody got 100% lol

#

so

old wyvern
#

same?

prisma wave
#

it was obviously hard

#

yea same lang

lunar cypress
#

that wasn't because the question was hard

prisma wave
#

no shortest anymore

tranquil crane
#

I feel like Aj's code just picks random true/false values

prisma wave
#

probably

#

join new one

#

:))

obtuse gale
#

wow

hot hull
#

Could probably make a random and just output randomly and get the highest score lol

obtuse gale
#

mine should in theory work 100%

prisma wave
#

in theory

tranquil crane
#

I'll join just to see the question

prisma wave
#

johnny you joining?

obtuse gale
#

just adds everything to an arrays, sorts it backwards, loops over the first X values, where X is the amount of gifts given, and if whats his names value is in there then it is true

prisma wave
#

nice

#

sort!("a < b") this is weird asf though

obtuse gale
#

yeah lol copied right from here

old wyvern
#

you didnt need that tho?

lunar cypress
obtuse gale
#

oh wait

#

did i do it the wrong way or smthn

#

idk lol

old wyvern
#

its sorts ascending by default from the docs

lunar cypress
#

tf do I know

obtuse gale
#

i think i meant to do a > b tbh i cant remember

prisma wave
#

welp

#

let's go

tranquil crane
#

oh wtf is this

obtuse gale
#

.-.

tranquil crane
#

we're playing a puzzle

obtuse gale
#

oh

#

i think i might have it

#

oh yeah i think i know

old wyvern
#

I got the soln but the language..

lunar cypress
#

I also think I know just from that lol

obtuse gale
#

i dont got the language

old wyvern
#

that was worded wrong

tranquil crane
#

I know what it is but I don't know the language so uh

#

:)

obtuse gale
#

sajme lol

hot hull
#

These types eeeeee

#

My brain

obtuse gale
#

help

#

core.exception.RangeError@Answer.d(14): Range violation

??:? _d_arrayboundsp [0x7ff5976cdd01]
??:? _Dmain [0x55e55a72271c]

prisma wave
#

lol

#

how

obtuse gale
#

i wish i knew

old wyvern
#

finally

obtuse gale
#

maybe its a index out of bound sor something similar??

old wyvern
#

god that took so long

old wyvern
obtuse gale
#

string.split

old wyvern
#

have you used any other arrays?

obtuse gale
#

no

#

whats the error mean

hot hull
#

Yugi, hulp

part.toCharArray()

prisma wave
#

oh boy

obtuse gale
#

its accessing the array thats giving the error

prisma wave
#

this language definitely likes its quirks

#

@obtuse gale send code

old wyvern
obtuse gale
#

string sentence = readln.chomp;
string[] split = sentence.split(" ");
string output = "";
for(int x = 0; x < split.sizeof; x++){
string str = split[x];
}

old wyvern
#

string is just a char array

prisma wave
#

^

old wyvern
#

sizeof is a function

prisma wave
#

@obtuse gale d foreach (string str; split) { blah }

old wyvern
#

call it?

hot hull
#

bruh what

char[9] greeting1 = "Hello all";

prisma wave
#

pretty sure function calling doesn't need parens

hot hull
#

This is supposed to be valid, yet it's not eee

old wyvern
prisma wave
#

possibly

old wyvern
#

I see

#

anyway

prisma wave
#
void main()
{
    stdin
        .byLineCopy
        .array
        .sort!((a, b) => a > b) // descending order
        .each!writeln;
}```
this for example
#

doesn't have any parens

obtuse gale
#

is there if(conditionOne || conditionTwo)?

old wyvern
#

.length worked for me to get array length

obtuse gale
#

like or

old wyvern
obtuse gale
#

is it just ||?

old wyvern
#

yes?

obtuse gale
#

ok

prisma wave
#

ngl this language is kinda nice

#

it's like c++ mixed with kotlin

hot hull
#

idfk

prisma wave
#

mixed with c#

hot hull
#

The docs are fucking shite

old wyvern
#

eh

#

"RangeError : thrown when a range error occurs"

#

yes thanks

obtuse gale
#

bruh i timed out

prisma wave
#

descriptive

#

rip

#

y'all doing it imperatively smh

#

real d users use filter!

old wyvern
#

meh meh xD

obtuse gale
#

alrihgt imma go

prisma wave
#

yea im done for now too

#

gg

#

was interesting

old wyvern
#

maybe

prisma wave
#

i'll be adding "proficient in D" to the portfolio

hot hull
#

kek

old wyvern
#

lol

hot hull
#

Am I just being hella dumb right now or?

java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0).

final PreparedStatement dbCreationStatement = connection.prepareCall(
    "CREATE DATABASE IF NOT EXISTS `?`;"
);

dbCreationStatement.setString(1, getDatabaseName());
dbCreationStatement.execute();
old wyvern
#

dont use '?' frost

#

just use ?

#

'?' is counted as a string

prisma wave
#

^

hot hull
#

Tried using just ?

#

Gave me errors for invalid syntax

#

Also it's ` not ' which is supposed to be correct no?

old wyvern
#

Wait

#

you were trying to create a db with a parameter?

distant sun
#

Can you even use ? for db name?

old wyvern
#

You're not supposed to use prepared statements for that afaik

old wyvern
distant sun
#

^

old wyvern
#

its only for column values

distant sun
#

Yup

hot hull
#

Ah

lunar cypress
#

yeah, just values, not names

#

if you want to make that dynamic you can most likely just format it regularly

#

because if users can create databases with your app something is wrong

hot hull
#

Ah, I see what you mean yea

lunar cypress
#

I assume this is for a plugin or something and the server admins can set a name in the config?

distant sun
#

is there anything for free i can use as maven repo for private projects, other than my local repo?

#

I can try github packages but I heard is a pain to setup >.<

hot hull
#

Use a file dir to include it in the project

#

Ask Piggy what exactly that is

distant sun
#

already got that

#

will probably stick to it

lunar cypress
#

that sucks though

distant sun
#

ye ik

lunar cypress
#

local repo is better, why not that

hot hull
#

I assume coop project?

distant sun
#

cuz I might not always be on my main computer =/

#

that too frosty

hot hull
#

oh wow mr fancy pants

distant sun
#

shut up

#

didn't meant it to sound like that lol

hot hull
#

hehe

lunar cypress
#

of course you could also host a repo yourself

hot hull
#

That's effort tho

lunar cypress
#

meh

hot hull
#

AsyncPlayerPreLoginEvent#setKickMessage
I could've swore \n worked for this

distant sun
prisma wave
#

you can use mine if you want

distant sun
#

Will let you know, thanks bm

prisma wave
hot hull
#

@ocean quartz Can I get the repo and dep for mf messages, I really don't wanna open google cause my pc go boom

ocean quartz
hot hull
#

❤️

frigid badge
#

I mean just use gh pickages or a private github repo as your maven repo

distant sun
#

Smh

#

How does system env variables for github and other services login work? I have to set them manually?

quiet depot
#

pls just take bm up on his offer for a repo

distant sun
#

Ok but I still need an answer :(

#

Most examples use system env for passwords and usernames

quiet depot
#

they're provided by github

#

you place them in, and github will inject them

#

think of them as placeholders

distant sun
#

Ye I figured that out

#

But my question is, do I have to set them manually on my pc env or?

quiet depot
#

yes

distant sun
#

Good

#

Github packages work with gradle as well, right?

quiet depot
#

yes

distant sun
#

Great, ty p1g

frigid badge
#

y'all hating on gh packages for no reason

quiet depot
#

cuz gh packages is anti open source imo

#

it requires auth to access public stuff, that's not very open

prisma wave
#

bristermitten repo is pro open source 🙂

lunar cypress
#

Pls don't hate on gh packages, we all need more MS in our stack >:(

prisma wave
#

full stack Microsoft

#

F# backend, Laravel frontend, azure infrastructure

heady birch
#

Laravel?

#

Isnt that php

prisma wave
#

Xamarin*

#

Got them confused lol

lunar cypress
#

Isn't one of the js dialects also from ms

prisma wave
#

typescript is i think

#

as is VSC obviously

lunar cypress
#

Great

#

Now do typescript frontend and backend and you get an extra point for npm

prisma wave
#

good point

lunar cypress
#

How long do you think until the big monopolies control the rest of open source and you'll have to watch a 20 second ad before you can download a package

#

Oh wait that already happened with npm once

prisma wave
#

nah, there will always be more startups

#

and elara package manager will destroy microsoft

obtuse gale
#

@marble flame hi

distant sun
#

is it normal if I don't have a settings.xml file on my .m2 folder? I see on the github packages wiki that you have to add smth there

#

nvm Create a new ~/.m2/settings.xml file if one doesn't exist.

distant sun
#

Is possible to upload a javadoc jar to github packages?

forest pecan
#

Yes it is normal

#

Oh nvm lol

#

You answered your own question

tawdry ore
#

yo anyone know a plugin to stop natural monster spawners from spawning

remote goblet
onyx loom
#

u dont need a plugin i dont think

#

isnt there a gamerule for this?

remote goblet
#

It stops all mobs

onyx loom
#

oh right

remote goblet
#

He asked specifically for monsters

tawdry ore
#

well any natural mob spawners

onyx loom
#

spawners

#

ye

#

idk then

tawdry ore
#

yo how do I do a logo when typnig something in a config file

#

like ⛁ for mobcoins

steel heart
#

what

#

send screen

tawdry ore
#

check dms

distant sun
#

search on google for copy paste symbols

distant sun
#

@prisma wave any reason why a project on kotlin 1.3.21 would compile "nullableOnject >= x" and many others?

obtuse gale
#

how would one add a config default like this for each mob

#
ZOMBIE:
  chance: 10
  texture: X```
#
    private fun setupConfig(){
        for(entity in EntityType.values()){
// What here?
        }
    }``` I just dont know how to like make a category or section or whatever
obtuse gale
#

how make multiple conifgs?

#

val texturesConfig = YamlConfiguration.loadConfiguration(File(dataFolder.path + "/textures.yml"))?

#

????

obtuse gale
remote goblet
tawdry ore
#

yall how know to put symbols in text? \u27a4 doesn't work and putting the main symbol doesn't work either ✫✫✫

#

fr ill pay u if u help me w this

quiet depot
#

old

obtuse gale
#

^

#

still good tho

distant sun
#

@prisma wave I have to fix someone's project and it has like 30 errors related to null stuff

#

And I was wondering how they were able to compile the plugin in the first place lol

prisma wave
#

huh

#

Idk

distant sun
#

Ok

hot hull
#

Well probably warnings?

prisma wave
#

Maybe it wasn't nullable for them?

#

If it's coming from java then it could be a platform type

distant sun
#

@prisma wave stuff like Entity#getPotionEffect() which is @harsh kettleable

prisma wave
#

Maybe because you have the source available (and therefore nullability annotations) whereas they didn't

distant sun
#

idk 😦

lunar cypress
#

that can't be the reason

#

No jsr 305 compliant annotations only exist in source

distant sun
#

I thought it might be because of the difference between kotlin version and my kotlin plugin version

#

but even then, I assume kotlin always had ?. and stuff

lunar cypress
#

yes it did

prisma wave
#

Using Gradle I assume?

distant sun
#

ofc

regal gale
#

Oh no 👀

#

OpenJDK 15 already removed the Nashorn engine

hot hull
#

Feels bad

distant sun
#

The IDE is running low on memory and this might affect performance. Please consider increasing available heap.
....

#

omg this shit is getting annoying

runic flume
#

Is this millis or what

hallow willow
#

That definitely millis or tick

hot hull
#

Duration of what potatoes?

runic flume
#

uptime

#

idk

hot hull
#

Ticks then mostlikely

runic flume
#

ok

hot hull
#

Format it using date and you'll see what it is :p

runic flume
#

oki doki

hallow willow
#

that would be converted into 4.38month

runic flume
#

yuh

static zealot
#

then its ms

runic flume
#

yuh

hot hull
#

Imagine not having a 3month uptime smh

#

Weak

static zealot
#

imagine not restarting your server when Gianluca said it in his optimisemyserver post

#

smh

hot hull
#

Which is never?

static zealot
#

he said to restart it daily

#

smh

#

not even seen his website?

onyx loom
#

fuck his website 💯

static zealot
#

xD

#

?optimize

compact perchBOT
#
FAQ Answer:

You're looking to optimize your minecraft server?

Well fortunatelly for you, Gianluca was kind enough to make a website that will somewhat guide you on the path to get better performance from your server.

Link: https://niceserver.tech/optimise/

static zealot
#

well his website is in this faq

onyx loom
#

OMG

#

u spelt fortunately wrong 🌝

static zealot
#

ok

#

lol

#

xD

#

?optimize

compact perchBOT
#
FAQ Answer:

You're looking to optimize your minecraft server?

Well fortunately for you, Gianluca was kind enough to make a website that will somewhat guide you on the path to get better performance from your server.

Link: https://niceserver.tech/optimise/

static zealot
#

here

#

better? xD

onyx loom
#

no

static zealot
#

k

onyx loom
static zealot
#

time to go thru all FAQs and see what needs uptdating lol

#

updating*

steel heart
#

@static zealot I think we need more faqs

static zealot
#

?more-faqs

compact perchBOT
#
FAQ Answer:

made this for Conclure LOL

static zealot
#

k

#

lol

onyx loom
static zealot
#

we only got 5 votes ..

#

no one will vote

obtuse gale
#

how do i link accounts?

static zealot
#

read that

#

also I think now its =mspigot instead of =spigot

#

but read that page first

#

then just use =mspigot instead of `=spigot

#

yo

#

Poll:

#

Should I name it ?java-dependency-injection or ?java-di ?

hot hull
#

Leave as is

static zealot
#

first one is long

steel heart
#

no

static zealot
#

well they said

hot hull
#

It's totally fine.

static zealot
#

its missleading