#dev-general

1 messages ยท Page 133 of 1

onyx loom
#

i mean u do

pallid gale
remote goblet
#

or just memorise all our githubs

#

and pull request everything

topaz bay
#

@regal gale I hate you

remote goblet
#

just bullying us

topaz bay
#

Not only did you disrespect this place with a maven pom

#

BRUH

regal gale
#

I told you not to "get anxiety" :)

#

That was a quick fail

steel heart
#

Maven bad

pallid gale
#

sx can we get a week of you not being a bully

steel heart
#

Gradle good

glad spear
#

lmao

remote goblet
#

impossible

topaz bay
#

@pallid gale I am not a fucking bully

onyx loom
#

๐Ÿค”

pallid gale
#

A triggered one, that's for sure

steel heart
#

Sxt is possibly just sxt fingerguns_reversed fingerguns

topaz bay
#

Who do I bully?

#

WHO

regal gale
#

Yourself

topaz bay
#

The only person I really bully is Alex

steel heart
#

That mcacutt guy

topaz bay
#

But thats because he deserves it

pallid gale
topaz bay
#

EXAMPLE

#

Now.

steel heart
#

You said to him programming isnโ€™t for him thonking

hot hull
#

I mean..

steel heart
#

And his implementations were a mess

regal gale
#

Btw

heady birch
#

You could say that to anyone

pallid gale
#

You lack the ability to give constructive criticism, you instead flame people without actually suggesting how the problem could be fixed.

regal gale
#

Ready for the next "try not to get anxiety" challenge?

topaz bay
#

I said they were weird

steel heart
#

funny though itโ€™s kinda good sometimes

regal gale
#

@topaz bay ik you want it ๐Ÿ™‚

heady birch
#

up

#

town

#

funk

#

you

#

up

steel heart
#

Because whenever you go with the nice approach they donโ€™t even listen

remote goblet
#

sxtanna's constructive criticism is useful at times

topaz bay
#

@pallid gale That is just straight up false.

remote goblet
#

its just rare

topaz bay
#

If you only really look at the times I flame people, ofc youre going to believe that

#

When I tell people to do something, and they do the complete opposite

steel heart
#

Only way to counter xy problemers is with Sxt style

topaz bay
#

Or completely butcher it

#

Thats when I flame them

#

Or when what they come up with is hilariously wrong

pallid gale
#

There's no need to though

#

It doesn't solve anything

topaz bay
#

Yes it does.

#

Theres no need for you maybe

#

But you can be you

pallid gale
#

Then we just get oMg hElPcHaT sO tOXiC

regal gale
topaz bay
#

To say I am incapable of constructive criticism is just wrong

prisma wave
#

The only person I really bully is Alex
@topaz bay
But thats because he deserves it
@topaz bay
Wow

steel heart
#

Thien u go away

topaz bay
#

@pallid gale people will say literally anything is toxic

steel heart
#

Thatโ€™s so true

prisma wave
#

Why do I deserve it :(

topaz bay
#

90% of the people who would say that are people who ask to be spoonfed and are rejected

#

@prisma wave Because youre short

steel heart
#

Km how short are ya?

topaz bay
#

He's 4'7

prisma wave
#

I'm literally not

topaz bay
#

LOL

hot hull
#

I love how he asks how short he is, and not how tall he is

#

Damn

steel heart
#

4โ€™7?

#

How long are ya actually?

#

Long.MAX_VALUE or what

hot hull
#

Kinky

prisma wave
#

Like 5'11 idk

#

๐Ÿ˜

topaz bay
#

SMOL

#

Ew wait

topaz bay
#

gross get out

steel heart
#

LOMS

onyx loom
#

lol not 6 foot

topaz bay
hot hull
#

Someone go bully Scholtes for saying kt is ew

topaz bay
#

Yeah, just ignore everything before that

#

Just throw context out of the window

steel heart
#

Wait km 5 inches?

prisma wave
#

yes

pallid gale
#

I didn't? I just linked to it

#

If I wanted to remove context i'd screenshot it

#

lol

topaz bay
#

You extracted that single message

prisma wave
#

5 inches and 11 smaller things idk the imperial system

regal gale
#

I have to use a converter to understand ft...

pallid gale
#

you can't exactly link to multiple messages

#

lol

steel heart
#

How long is that in cm

topaz bay
#

You could screenshot the entire engagement

prisma wave
#

Absolutely no idea

onyx loom
#

5 inches and 11 smaller things idk the imperial system
@prisma wave micrometres fingerguns

topaz bay
#

What I said wasnt even criticism

steel heart
topaz bay
#

Nor was it bullying

onyx loom
#

2.5cm to an inch

steel heart
topaz bay
#

It was a response to him commenting on me commenting

steel heart
#

So 5*2.5

prisma wave
#

I see

#

Ah yes

topaz bay
#

After I already gave him the better solution

steel heart
#

12.5 cm

#

Daim

onyx loom
#

t0ll

topaz bay
#

@onyx loom "my chrom iter" or "micro meter"

#

GO

#

DISCUSS

steel heart
#

I think km just reached new heights

hot hull
#

So y'all wanna switch to metric now?

onyx loom
#

my chromosomes

topaz bay
#

LMFAO

prisma wave
#

metric good

pallid gale
#

It's a bannable offence to use the imperial system here.

prisma wave
#

good

topaz bay
#

5 inches

compact perchBOT
#
๐Ÿ”จ The hammer has been swung.

@topaz bay Banned!

topaz bay
#

HELPCOIN

#

LOL

steel heart
#

Thatโ€™s sad

#

Hope he isnโ€™t banned fr

topaz bay
#

Thats not even the good Thor gif

regal gale
#

Ban him for real pls

pallid gale
#

One day

#

Next to frosty

steel heart
#

Sxt is hcโ€™s clown

topaz bay
#

@pallid gale @regal gale you're both haters

pallid gale
steel heart
topaz bay
#

I bet its cause youre both short

#

4 feet

#

MAX

pallid gale
#

Sorry I don't speak feet

topaz bay
#

LOL

regal gale
#

Me too

#

Sucks on you :)

topaz bay
#

1.2 meters

#

SUCKS ON ME

#

WHAT'

steel heart
#

WAIT

#

@prisma wave u r 150 cm

regal gale
#

I'm 1.75 meters btw

onyx loom
#

what

steel heart
#

If my calculations are right

prisma wave
#

is that big

#

Or small

#

Idk

onyx loom
#

150cm is like 5.4

steel heart
#

Short

prisma wave
#

oh

hot hull
#

I'm 1.82, how much is that in imperial?

prisma wave
#

Shame

onyx loom
#

6 foot frosty

topaz bay
#

tHATS 5'9

onyx loom
#

exactly i believe

topaz bay
#

What

#

Thats short

onyx loom
#

180cm is 6 foot

hot hull
#

Then how tall are you mr I'm a chonk @topaz bay

topaz bay
onyx loom
#

what the fuck

hot hull
#

182 boi

onyx loom
#

since when

hot hull
#

It matters.

pallid gale
#

I'm actually 1.9m tall

#

so

topaz bay
#

@pallid gale short.

#

I knew it

onyx loom
#

how do we get different answers thonking

pallid gale
#

sx short?

steel heart
#

Oh km jk ur like frosty

topaz bay
#

@onyx loom Im pretty sure what its telling me is 5.9 feet and not 5 feet 9 inches

hot hull
#

Damn sorry for being "short" time to yeet myself I guess?

topaz bay
#

So Im wrong

#

But still

#

NOT 6 FEET

onyx loom
#

lol xd lmao

#

sx is wrong

topaz bay
#

@pallid gale nah

onyx loom
#

lol

topaz bay
#

I'm 6'9

pallid gale
#

frosty at least let me ban you

#

seems legit

hot hull
#

Nah I'm good

topaz bay
#

No thats a lie, I'm not 6'9

#

I'm 8'4

steel heart
#

6,9 inches

hot hull
#

Lmao

steel heart
#

Thatโ€™s short

topaz bay
#

I just didnt want to sound like a giant

hot hull
#

If you're 8'4, I know java

pallid gale
#

pls convert to the superior metric system

hot hull
#

Take that nerd

onyx loom
#

6 foot 9 inches = 3cm

pallid gale
#

knew it

#

short

steel heart
#

Yep

onyx loom
#

sx is short confirmed

topaz bay
#

wow 3 whole centimeters

prisma wave
#

classic sxtanna

topaz bay
#

I'm big tall

steel heart
#

9/(6*0.5)

prisma wave
#

8.4 << 10

onyx loom
#

OFFTOPIC2

prisma wave
#

Lol

steel heart
#

Wth

prisma wave
#

Kotlin

#

?

steel heart
#

This is dev general stuff

topaz bay
#

What... is this

onyx loom
#

kotlin

#

speak kotlin

#

and we dev general back

prisma wave
#

kotlin...good?

lavish notch
#

What is this

topaz bay
#

JAVA BAD

onyx loom
#

java....bad?

prisma wave
#

YES

onyx loom
#

eclipse...bad?

prisma wave
#

GIVE #dev-general

onyx loom
#

maven... bad?

prisma wave
#

absolutely

steel heart
#

Yes

prisma wave
#

we segwayed it back fellas

regal gale
#

Erm.. the channel name tho

steel heart
#

Using lib bad, reinvent the wheel good

regal gale
#

I just came back to see this

topaz bay
#

Could you fucking imagine using maven, eclipse, AND java

#

What a fucking nightmare

prisma wave
#

What a sad life

onyx loom
#

couldnt be me

frigid badge
#

slimey

heady birch
#

Uh..

#

Hi

pallid gale
#

I mean

#

it could be on light theme aswell

steel heart
#

Well the channel description is still here

topaz bay
#

AH

#

MY EYES

frigid badge
#

imagine using up more time talking about kotlin rendering it useless

topaz bay
#

Please

frigid badge
#

than it would take to use java

prisma wave
#

kotlin good

frigid badge
#

or better yet assembly

topaz bay
#

@frigid badge You see... the thing is

pallid gale
#

Imagine using light theme

regal gale
topaz bay
#

We can write more in Kotlin in less time

#

So it makes up for it

errant geyser
pallid gale
errant geyser
#

Cube this is bullying

topaz bay
#

Even with all the kotlin shilling, were more efficient

#

Imagine having to debug or fix NPEs

steel heart
topaz bay
#

Cannot. Relate.

steel heart
#

I am one as wel now

frigid badge
#

imagine having types

prisma wave
#

@regal gale shl is infix

topaz bay
#

Imagine not having kotlin type inference

#

๐Ÿคข

steel heart
#

Imagine wasting time

heady birch
#

Java type inference ๐Ÿ™‚

steel heart
#

Lol

frigid badge
#

imma just write bytecode instead

old wyvern
#

Imagine imagining

topaz bay
#

Do it

old wyvern
#

imma just write bytecode instead
Yes thats the way to go

topaz bay
#

No balls

steel heart
#

Imagine imagining about imagine imagining

frigid badge
#

imagine imagining about imagining imagining imagining

steel heart
prisma wave
#

scala good kotlin bad

onyx loom
#

i swear discord purposefully made their discord light theme look terrible

old wyvern
#

Imagine imagining about someone imagining that you are imagining in your imagination

frigid badge
#

python is the real deal tho

prisma wave
#

Not in the slightest

frigid badge
#

def best language ever

prisma wave
#

hehe

#

def

#

Nice

topaz bay
#

@prisma wave do you want death?

pallid gale
#

coin Imagine not investing into HelpCoin

prisma wave
#

always

topaz bay
#

Thats a good way to get death

frigid badge
#

I mean kotlin is good but have you seen python

regal gale
#

Fix that to deaf k thx

frigid badge
#

that's just

#

too good

steel heart
#

Funny there is no such way to obtain those yet :/

prisma wave
old wyvern
#

GoOdD

frigid badge
#

lmfao

#

y'all may be hating on java

#

but can we instead

#

hate on python together?

#

in harmony

topaz bay
#

No

topaz bay
#

Fuck Java

regal gale
#

Is it stupid of me to actually do a py evaluation for my bot...

frigid badge
#

kotlin wouldn't exist without it

steel heart
#

Bruh

prisma wave
#

Yes

steel heart
#

Lol

prisma wave
#

don't do that

topaz bay
#

Thats not true

steel heart
#

Nice post

frigid badge
#

so you have to have some respect for it

prisma wave
#

add a frigga evaluation

topaz bay
#

Kotlin was inevitable

regal gale
#

Idk what frigga is ๐Ÿ˜‚

prisma wave
#

the Language that works

topaz bay
#

LOL

#

OMG

pallid gale
#

eval bad

prisma wave
#

It's a great language

frigid badge
#

jetbrains wouldn't have been so big

topaz bay
#

Get fucking rekt Alex

prisma wave
#

It supports modern features such as broken for loops

#

and more

topaz bay
#

Odin is better

#

Just saying

frigid badge
#

jetbrains became popular due to java ides

prisma wave
#

Nah

regal gale
#

Oh i see how it is ๐Ÿ˜‚

pallid gale
#

eval = danger

frigid badge
#

and jetbrains made kotlin as an improvement on java

topaz bay
#

@frigid badge java ides?

#

Theres literally 1...

#

All the other ones are not Java

frigid badge
#

let a man fuck up his sentence smh

#

stop being nit picky

#

it isn't about if i have a s behind or not

topaz bay
#

And kotlin is not just an improvement on Java

frigid badge
#

it's about the fact that kotlin wouldn't exist without it period

#

๐Ÿ˜‰

#

xD

steel heart
onyx loom
#

It supports modern features such as broken for loops
@prisma wave very modern ๐Ÿ‘

prisma wave
#

thank you

topaz bay
#

The only thing kotlin has thats even similar to Java is that one of the backends runs on the JVM

prisma wave
#

Frigga good kotlin bad

#

it's very obvious

onyx loom
#

ok i wouldn't go that far

topaz bay
#

Almost everything else in Kotlin is derived from other languages

#

@prisma wave wrong

#

Frigga Bad, Odin Good.

regal gale
#

Another try not to get anxiety challenge then? ๐Ÿ‘€

prisma wave
#

Odin trash

steel heart
#

YES

prisma wave
#

Yes

topaz bay
#

WRONG

prisma wave
#

odin is literally kotlin with fewer features

#

Downgrade

topaz bay
#

WHAT

steel heart
#

I LOKE swift

topaz bay
#

Literally the only reason some parts look like kotlin are because you fucking gave me the suggestion to do so

prisma wave
#

False

topaz bay
#

How fucking dare you

regal gale
#

Eclipse is best than IntelliJ because I've used it for 2012 and I want to stick on it forever! - quote from someone recently

#

Good luck

prisma wave
#

My original suggestion was what turned into frigga

#

And you said it was trash

topaz bay
#

WRONG

prisma wave
#

Find the messages if you want

steel heart
#

Thien

#

Who

#

Said that

prisma wave
#

Anyway

topaz bay
#

effort

steel heart
#

Needs to bamboozle himself

regal gale
#

Figure it yourself :)

topaz bay
#

Just know at the end of the day

prisma wave
#

The REAL best language is irrevocably Haskell

topaz bay
#

Frigga cannot compete

steel heart
#

Is it that spigot mod?

topaz bay
#

omg

regal gale
#

No idea?

topaz bay
#

Are you on drugs???

prisma wave
#

No

topaz bay
#

How could you say such a thing

prisma wave
#

Haskell good kotlin bad

obtuse gale
#

eclipse is better performance wize isnt it?"

topaz bay
#

D;

steel heart
#

I think I failed your challenge

topaz bay
#

CRUSADE

steel heart
#

Aj with the including horrible ui

obtuse gale
#

just wondering, ive heard some people use that excuse

steel heart
#

And the default white theme

prisma wave
#

Haskell has REDEFINED FP

#

Therefore

steel heart
#

I mean eventually they have a potato pc then

prisma wave
#

Kotlin bad

pallid gale
#

Random question, but in intellj is there a way to use the windows file explorer instead of the shitty built in one

topaz bay
#

@prisma wave you disgust me'

#

No

#

There is not

steel heart
#

@obtuse gale cuz thatโ€™s not really true

prisma wave
#

What's wrong with the intellij one

topaz bay
#

^

pallid gale
#

its shit to navigate quickly

steel heart
#

Only reason youโ€™d want eclipse is the overall project view

topaz bay
#

How so?

pallid gale
#

I want my side bar with bookmarks

prisma wave
#

@topaz bay the only thing that disgusts me are non-haskellian languages

steel heart
#

And perhaps to make other people triggered

topaz bay
#

Everything is presented straight up

pallid gale
#

Switch drives easily

topaz bay
#

Its also not a file explorer

#

what??

lavish notch
#

a

old wyvern
#

Almost everything else in Kotlin is derived from other languages
Mostly seems to be from C# for some reason I think?

topaz bay
#

Oh wait

prisma wave
#

why would you want this

topaz bay
#

Are you talking about when you go to open things?

prisma wave
#

oh

#

just navigate in explorer and copy the file path

pallid gale
#

No just in general

prisma wave
#

So the sidebar?

topaz bay
#

Cause the sidebar isnt a file explorer

pallid gale
#

wut

topaz bay
#

The only place thats a file explorer is when you go to open things

#

And even then thats barely an explorer

pallid gale
#

I just wanted to know if there was a way cause I don't like the inbuilt one

topaz bay
#

What are you referring to though?

pallid gale
#

erh, i'd need to open it to find what i mean

#

its been awhile

topaz bay
#

left or right?

pallid gale
#

right

topaz bay
#

Yeah, its neither of them are file explorers

#

If you have where you want open in explorer already, you could just drag and drop it into that

#

And it will just go there

pallid gale
#

Just seems unnecessary

prisma wave
#

"Scala"

topaz bay
#

Eh

prisma wave
#

Looks like you know a good language when you see one

topaz bay
#

What could you be doing that causes it to be that much of a hassle?

#

I dont even think I ever spend more than like... a couple of seconds in that window

#

@prisma wave I have folders for a ton of shit

pallid gale
#

I just find it annoying, hard to explain but I like to navigate quickly

prisma wave
#

Haskell folder?

topaz bay
prisma wave
#

YES

topaz bay
prisma wave
#

praise the lord

topaz bay
#

fuck haskell

prisma wave
#

no

#

why

topaz bay
#

Oh wow, I actually do still have the compiler and everything

#

I keep all of my language tools in 1 place too

old wyvern
#

ayy godot user

topaz bay
#

fuck godot

old wyvern
#

xD

hot hull
topaz bay
#

look at the type

#

You marked it as nullable

prisma wave
#

smh

topaz bay
#

Which is impossible

onyx loom
#

@topaz bay would u mind doing me a favour and deleting that Maven and Java folder please ๐Ÿ™‚

topaz bay
#

because of the elvis

hot hull
#

Ahhhhhh

prisma wave
#

also space before elvis pls

hot hull
#

yeye

topaz bay
#

@onyx loom thats my local repo and jdk installations D;

prisma wave
#

no excuses

topaz bay
prisma wave
#

you got enough jdks there

regal gale
topaz bay
#

Yeah, and I'm gonna keep em

prisma wave
#

is router caching a thing? like a website works fine on mobile data, but I get a connection_refused when on wifi. only thing I can think of is caching

distant sun
#

Random question but how do you guys work on a project through github with multiple people? Does one push his code and then the others start working on their part or how?

heady birch
#

๐Ÿ‘€

#

Kind of difficult

hot hull
#

With difficulty, keep communicating and just push whenever you change anything (even if it's a small change), telling the other people what you're doing beforehand ofc

distant sun
#

Mhm ok

hot hull
#

Make sure everyone uses a different code style so you know who wrote what :p

onyx loom
#

or just put the author in the comments fingerguns

distant sun
#

why code different lol

hot hull
#

(That was a joke, hopefully you aren't gonna have 5 different code styles kek)

steel heart
#

Oh

#

Thatโ€™s a thing btw

prisma wave
#

is there a single functional language that:
a) isn't really ugly or difficult to learn
b) isn't full of gimmicks
?

hot hull
#

Clojure

prisma wave
#

clojure is literally all of those things

hot hull
onyx loom
#

explain gimmicks

prisma wave
#

i guess that bit is kinda subjective

#

but prefix notation for lisps is a gimmick imo

ocean quartz
#

Soo, I just tested like 3 GUI libs, all of them suffer from the same issue mine does, items can be removed from it yikes

hot hull
#

Spigot doodoo

old wyvern
#

how are the items removed? o.o

hot hull
#

You can move em in gui's

#

Cause spigot shit

old wyvern
#

wait what

obtuse gale
#

just gotta go fast

old wyvern
#

huh

#

weird

ocean quartz
#

Basically you shift click on an item and close the GUI fast and you'll get the item

hot hull
#

It's spigot fingerguns_reversed

old wyvern
#

o.o

#

So the event is not fired in that case?

ocean quartz
old wyvern
#

Try in survival mode

hot hull
#

Time to implement IllegalStacks protection fingerguns_reversed

old wyvern
#

Creative mode inventory is very weird sometimes

hot hull
#

How iffy would it be having a runnable running every second checking every persons inventory looking for illegal items

old wyvern
#

ew

#

I think the issue might just mostly be creative mode

#

I have had issues with it while using IF a few months ago

ocean quartz
#

Hmm seems like in survival you get it but it's a ghost item, let me try more and see if i can be fast enough

old wyvern
#

yup

#

Creative inventory doesnt validate the items in the player's inv I think

hot hull
#

I mean considering people have done it and still keep doing those things in survival, it's still oof

old wyvern
#

It shouldnt happen in survival tho

#

The residue item you see is just client side

topaz bay
#

@old wyvern that is correct

#

inventory transactions in creative are mostly clientside

ocean quartz
#

Alright that is much better, means i don't have to create a funky solution for this

#

Yugi you just saved me some headache

old wyvern
#

๐Ÿ˜‡

hot hull
prisma wave
#

full code?

hot hull
#

Figured it out

#

I'm blind

prisma wave
#

well done

obtuse gale
#

Jemand deutsch?

prisma wave
#

oui

old wyvern
prisma wave
#

that's pretty hot

hot hull
#

@prisma wave Ich need guidance

Caused by: java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics

old wyvern
#

๐Ÿ‰

prisma wave
#

you're not shading kotlin

#

the stdlib that is

hot hull
#

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"

prisma wave
#

๐Ÿค”

#

full gradle script?

hot hull
prisma wave
#

oh

#

you're not using shadow?

#

you have to shade the standard library

hot hull
#

oof, spoonfeed, ktnx

prisma wave
#

๐Ÿ™‚

old wyvern
onyx loom
#
  relocate 'kotlin', 'YOURPACKAGE'
}```
prisma wave
#

@old wyvern a reified extension for SQLRepository would be nice

#

so we don't have to manually use the ``::class.java`

ocean quartz
old wyvern
#

Can you explain what you mean km?

prisma wave
#

that's pretty clean though

#

you know reified type parameters?

old wyvern
#

constructor cant be inline I assume

prisma wave
#

the invoke function can be I think

#

which is a slight hack

#

but works

old wyvern
#

ohhh

#

Lemme give it a try

#

one sec

#

wait wouldnt invoke be called on a instance? hmmm

#

I guess I can just have a reified function constructing the class separately

prisma wave
#

yeah

#

or a companion I think

old wyvern
#

hmm 1 sec

errant geyser
#

Yugi u working on an SQL framework or smth?

#

That looks pretty sick tho

prisma wave
#

nice

old wyvern
#

should work with noSQL too when its done but rn works with sql

prisma wave
#

you could have a reified pseudo-constructor though

topaz bay
#

I love reified

old wyvern
#

you could have a reified pseudo-constructor though
@prisma wave
Looking this up, one sec

prisma wave
#
inline operator fun <reified T> PDMExtension.Companion.invoke(): PDMExtension
{
    return PDMExtension()
}

val x = PDMExtension<Any>()
``` tested it out
#

works quite well

topaz bay
#

Does that even need to be reified?

prisma wave
#

not in my example

topaz bay
#

oh ok

old wyvern
#

I need the Class sx

prisma wave
#

but for yugi it does

topaz bay
#

I was talking about what Alex put

prisma wave
#

yeah

old wyvern
#

ah

topaz bay
#

ah

old wyvern
#

that works great km! thanks!

jovial warren
#

how exactly does reified work btw? because I've looked it up before but kinda never understood it tbh

surreal quarry
#

System.getenv("github.token")

    - name: Publish to GitHub Packages
      run: gradle publish
      env:
        github.username: Jaimss
        github.token: ${{ secrets.GH_TOKEN }}```
this should set my `github.token` environment variable to the secret `GH_TOKEN` for my repository right?
prisma wave
#

reified means that you can access the class of the type

frail glade
#

Hmm, sounds like I had to do some fixes for leaderboards. When I do time-ranges I do it based on literal ranges of the past 7 days vs adapting it to the days of the week.

topaz bay
#

@jovial warren reified works before the function is inlined

jovial warren
#

another thing I've never fully understood either

#

inlining

topaz bay
#

It basically makes the generic parameter an actual parameter of the method

prisma wave
#

inlined is compiler copy pastes

topaz bay
#

Also, I meant because* not before

prisma wave
#

the body of the function gets copied and pasted into the actual call site

topaz bay
#

@frail glade I feel like I brought that up before

frail glade
#

You might've.

jovial warren
#

the body of the function gets copied and pasted into the actual call site
ah okay

frail glade
#

You want to PR a fix for it? If not, I'll just do it soon.

jovial warren
#

yeah makes sense

topaz bay
#

Yup

#

big brain

#

massive

frail glade
#

Yeah, I suppose that should be changed.

topaz bay
#

@frail glade nah, you can go ahead

frail glade
#

Sounds good.

frail glade
#

I'm thinking the proper way to approach this is to just get an instance of the calendar and then set the time I need in that and then convert that to millis.

topaz bay
#

You dont need calendar for this?

#

You should be able to use the new java time entirely

frail glade
#

Oh?

topaz bay
#

Yeah?

frail glade
#

Ahh, I see they have a locale date thingy

topaz bay
#

LocalDate.now().with(TemporalAdjusters.previousOrSame(DayOfWeek.MONDAY))

frail glade
#

Oh that's more than I tried ๐Ÿ˜›

topaz bay
#

LocalDate.now().with(TemporalAdjusters.firstDayOfMonth())

#

and then ofc the normal LocalDate.now().atStartOfDay()

frail glade
#

And then just get them all as epoc seconds?

topaz bay
#

Yeah

#

You would probably want to add atStartOfDay to the other two as well

frail glade
#

Big brain plays. What's the best way to handle the ZoneOffset?

#

I guess I could just default to utc.

topaz bay
#

You should be able to get the timezone of the machine?

frail glade
#

Ahh yes

jovial warren
#

yeah that'll work

frail glade
#

ZonedDateTime.now(ZoneId.systemDefault()).offset

topaz bay
#

Where do you even need the offset?

frail glade
#

toEpochSecond seems to require one.

jovial warren
#

what are you using toEpochSecond for if you don't mind me asking btw?

topaz bay
#

Thats not the one you want

frail glade
#

Oh, I see getting it as an instant (but also requires zone offset) and I also see local date and time.

topaz bay
#

You could just compare them right?

frail glade
#

It currently takes in as a duration and creates an instant and does a minis on the duration then converts it to epoch millis.

jovial warren
#

what's this for btw?

frail glade
#

Leaderboard calculation.

#

I'm currently calculating it by literal values of past 7 days, 30, etc. Changing it to work via calendar data.

jovial warren
#

what are you actually calculating though?

frail glade
#

Amount of votes within the time range

jovial warren
#

I'm guessing you're only working with times up to the current time

frail glade
#

Yeah. So what I can do is convert it to a locale time, get the nano of that, then convert it to epoch

#

So, theoretically, I should be able to do TimeUnit.MILLISECONDS.convert(LocalDate.now().atStartOfDay().toLocalTime().toNanoOfDay(), TimeUnit.NANOSECONDS)

jovial warren
#

so you need to get the time now, the time in the past, then create a section in time between those two points

frail glade
#

I think I got it, but it's ugly, going to try and clean it up.

jovial warren
#

okay

#

yeah for some reason I can't seem to find any sort of object that represents a period in time rather than a period of time

frail glade
#

LocalDate.now().atStartOfDay().toLocalTime().toNanoOfDay() should give me the nanoseconds it was when the day started.

#

Which is all I needed.

jovial warren
#

okay atStartOfDay() creates a LocalDateTime at the start of the date you give it apparently

frail glade
#

Yup!

jovial warren
#

ah okay so it's just representing the beginning of a day

#

I'm guessing what you're doing isn't taking time in to account?

frail glade
#

It gets the timezone of the machine

jovial warren
#

but if you're getting it at the start of the day, the time's surely always gonna be 00:00

#

or am I just talking out of my ass at this point

surreal quarry
#
dependencies {
    implementation project(":common")
}```
if I do this should it include the classes from the common project in the project that has this dependency?
#

or if not, how can I make that happen

errant geyser
#

Yeah I think that's it

surreal quarry
#

hmm

#

it doesn't seem to be working

errant geyser
#

You might have to shade it

#

Idrk

steel heart
#

implementation?

#

oh nvm

ocean quartz
#

So I can return @participants since there is nested forEach there

#

@topaz bay What is your stance on this? ^
Is it fine to use labels and label returns? Codacy likes to scream at me for using them

surreal quarry
#
dokka {
    outputFormat = 'jekyll'
    outputDirectory = "$projectDir/docs"
    subProjects = ["bukkit", "bungee", "common"]
}```
i am doing this to generade docs, and then in my github, i set my github pages to read from the docs folder.
it causes an issue though cause docs puts a subfolder there which hides my index file from github pages. is there a way i can make it so dokka doesn't add a folder which hides the index
#

the mcutils directory is the issue

#

or is there a way with github to take the contents of mcutils and automatically move it to a gh-pages branch

topaz bay
#

@ocean quartz that is completely fine

#

I would say only to label the nested ones though

ocean quartz
#

Oh okok thank you

regal gale
#

Evil question for a bit

#

Can I make KtEval expansion for PlaceholderAPI.....

obtuse gale
#

Does anyone know a good api for a discord rpc?

heady birch
#

I think the only official one is in C or C++

#

Probably have libraries with bindings

obtuse gale
#

I would need it for Java cuz im coding a minecraft client and i would like to have a dc rpc

analog crater
heady birch
#

Effectivley they all wrap the C/cpp library

distant sun
#

Heard they want to release an official lib :0

obtuse gale
analog crater
#

You could try using the c++ one with JNI

hot hull
#

@prisma wave Wake up fingerguns_reversed

prisma wave
#

I'm awake

#

What's up @hot hull

prisma wave
#

Interesting

#

Error?

heady birch
#

I literally told you

hot hull
heady birch
#

Don't think it adds them to classpath

#

When kotlin configured

#

But ask the experts

prisma wave
#

Oh hold on

#

I know what's going on here

heady birch
#

intellij bad exclipse good

onyx loom
#

expert knows whats happening dw dw

prisma wave
#

Java files have to be in src/main/java

#

Because things in the kotlin source set get compiled with the kotlin compiler, which ignores Java files

hot hull
#

Oh god

#

This is gonna be hella ugly then..

mystic horizon
#

just dont use java

#

ez

heady birch
#

you see rust is good for this

#

good for anything

prisma wave
#

why ugly?

hot hull
#

Aj, I wouldn't, but considering I've spent 3 hours trying to figure that shit out with no luck, I honestly give up with it

prisma wave
#

I'll PR

#

To convert all the annoying stuff

hot hull
#

It's a single method in the action executor that fucks me over

prisma wave
#

Hm

#

Which method?

prisma wave
#

I'm sorry to say

#

It's literally a 1 character fix

heady birch
#

Maybe programming isn't for you

#

Lol

prisma wave
#

You have to use the spread operator

hot hull
#

Niall, stfu

heady birch
#

Who was it who said that?

prisma wave
#

to use an array in varargs

#

invoke(object, *arrayOfArgs)

hot hull
#

ffs

heady birch
#

Lol

old wyvern
#

explode

#

๐Ÿ˜†

heady birch
#

Poor frosty

#

Frosty why you remaking Color.java

#

Awt has it

hot hull
#

I'm not, it was a colorize method I use for java

#

Just deleted it since I can convert everything to kotlin now

prisma wave
#

that appendPlayerType function could be cleaned up a bit too

#

return arrayOf(class1, class2, *otherArray)

#

then you don't need a nullable type

regal gale
#

I don't think having kotlin engine for PlaceholderAPI would be a good idea xD

prisma wave
#

why not?

regal gale
#

The compile time of course

prisma wave
#

it only has to be compiled once though

#

And in my experience single file compiling is pretty quick

onyx loom
#

thien bad pc

errant geyser
#

Niall I know this is probably starting to count as harassment somewhere in the world, but you're the only person I know of that knows Spring. I even asked in TJ and haven't gotten a response in over 12 hours. ๐Ÿ˜ญ

heady birch
#

Who's TJ?

errant geyser
#

Together Java

#

The server

regal gale
#

Idk, let me take a quick research

#

The 1st one is actually first boot

heady birch
#

25 seconds

regal gale
#

You can clearly see the difference there

errant geyser
#

If anyone can think of anything for my 404 pls ping me, I will actually proverbially suck your toes

#

๐Ÿ™‚

prisma wave
#

JS is an interpreted language

#

not a fair comparison

#

Although those speeds are slower than I would've expected

errant geyser
#

Just like, make your own interpreted kotlin that functions exactly like regular compiled kotlin

#

smh

prisma wave
#

Wise words

regal gale
#

My brain's not big enough for that ๐Ÿ‘€

#

Ask sx ๐Ÿ‘

hot hull
#

KM, it's all KT now GWseremePeepoHappy

prisma wave
#

now that's what I like to hear

hot hull
#

Time to see if it works tho

prisma wave
#

Probably

heady birch
#

@errant geyser I'll have a look

#

Can you send the repo again?

errant geyser
heady birch
#

Waiting for it to index...

errant geyser
#

oof

heady birch
#

This is going to take a little while...

errant geyser
#

It shouldn't take that long right?

#

Or is it just cos Spring

heady birch
#

so baseUri is the baseUri

#

Where does it redirect you to again?

prisma wave
#

so baseUri is the baseUri
Such wise words ๐Ÿ˜ฉ

errant geyser
#

when u click the "log in with discord" button you get redirected to/oauth2/authorization/discord, once you hit authorise you get redirected to /login/oauth2/code/discord?code=thediscordauthcode, and once you're logged in, I want it to redirect you to /panel, which is where the 404 happens

heady birch
#

Where does it redirect you to instead of /panel

#

Wonder if a normal success handler works

errant geyser
#

It doesn't redirect you from /login/oauth2/code/discord?code=thediscordauthcode, it just gives you a 404, which doesn't happen if you comment out these lines

heady birch
#
defaultSuccessUrl("/panel", true)
#

Try that under the userInfoEndpoint line

errant geyser
#

With or without everything else

#

commented out

heady birch
#

with everything else

#

just add that line

errant geyser
#

Can't do defaultSuccessUrl there

heady birch
#

My bad

#

Put .and() before it

errant geyser
#

Trying it now

#

Nope, same thing

#

Keeps you on http://localhost:8080/login/oauth2/code/discord?code=discordsAuthCode and throws a 404

heady birch
#

Hm

#

Just for a try comment out the .antMatchers("/panel", "/panel/**").authenticated()

#

Just this line

#

Actually wait

#

I have absolutley no idea

errant geyser
#

Just for a try comment out the .antMatchers("/panel", "/panel/**").authenticated()
Nop, still a 404

#

Actually wait
I have absolutley no idea
:((((((((((((((((((((((
So essentially I'm fucked then right? Or is there something else I've done wrong and I should just kill it all with fire and try do something else. Its a web panel for my discord bot so I sorta need to have people log in with discord

heady birch
#

Are you sure its authentication properly

#

Add logging.level.root=DEBUG in properties

#

just to see what going on

errant geyser
#

I have no idea how I'd check that.
Ok I'll do that one sec

heady birch
#

2020-07-21 14:09:09.278 DEBUG 25508 --- [nio-8080-exec-6] o.s.s.w.a.i.FilterSecurityInterceptor : Authorization successful

#

So that worked

#

And it redirects here

#

I mean

#

Easy fix would just be

#
@GetMapping("/login/oauth2/code/discord")
public String whenDiscordLoginDone(final @RequestParam("code") String code) {
return "redirect:/panel";
}```
#

Idk what you do with that code

quiet sierra
#

I don't think you should have shared that code

heady birch
#

(also keep your current controller mapping for /panel)

errant geyser
#

evidence has been yeetused

heady birch
#

Might wanna reset it

errant geyser
#

Ok that resulted in a 500 internal server error Niall

surreal quarry
#

im adding a new package here

#

and it does this

#

and i literally have no clue why lmao

#

any ideas?

#

its acting like im right clicking the kotlin folder to add it

prisma wave
#

you got flatten packages turned on?

surreal quarry
#

nope

prisma wave
#

interesting

#

it could just be a visual glitch

surreal quarry
#

it just did this when i turned it on lol

prisma wave
#

what does the actual file structure look like?

surreal quarry
#

thats my whole project

prisma wave
#

I mean in file explorer or something

surreal quarry
#

oh

#

thats probably the issue

prisma wave
#

probably

surreal quarry
#

it made it a directory not a package lol

#

alr its fixed

#

ty

prisma wave
#

np

errant geyser
heady birch
#

org.springframework.security.oauth2.client.resource.UserRedirectRequiredException: A redirect is required to get the users approval

#

I have never used Oauth

#

I got no idea I'm afraid

errant geyser
#

Damn it Barry

#

Let me cry in peace

gilded basin
#

lol

errant geyser
#

nooooooooooooooo

hot hull
#

@prisma wave This is the java method, which works, but the kotlin one doesn't

    public void execute(Player player, Object[] parameters)
    {
        parameters = UtilArray.prepend(parameters, player);
        
        try
        {
            getExecutionMethod().invoke(null, parameters);
        }
        catch (IllegalAccessException /* ignored */ | InvocationTargetException ex)
        {
            ex.printStackTrace();
        }
    }
errant geyser
#

Niall anywhere u know of I can ask?

#

Even Together Java seems to be stumped

prisma wave
#

๐Ÿค”

#

what line npes?

hot hull
#

invoke

#

due to the null object

heady birch
#

maybe The Coding Den

errant geyser
#

I'll ask, thx

old wyvern
#

Allow the invoke function to accept a nullable type frost

prisma wave
#

send the converted code

hot hull
#
fun execute(player: Player, parameters: Array<Any?>) {
        var parameters = parameters
        parameters = prepend(parameters, player)
        try {
            executionMethod.invoke(null, *parameters)
        } catch (ex: IllegalAccessException) {
        } catch (ex: InvocationTargetException) {
            ex.printStackTrace()
        }
    }
old wyvern
#

You can call invoke with just executionMethod(null, *parameters) btw

prisma wave
#

it's reflection

#

you need the operator function for that I think

#

hold on

#

isn't executionMethod null?

old wyvern
#

^

prisma wave
#

also, those try catches are unnecessary btw

old wyvern
#

you need the operator function for that I think
ah true

#

but kotlin seems to allow it

ocean quartz
#

*parameters
From what I've heard the spread operator is pretty slow though

prisma wave
#

it is

#

works though

ocean quartz
#

I think toTypedArray does the same but faster

old wyvern
hot hull
#

Sec, it takes time for me to test, cause ya know, I've got a godly pc

old wyvern
#

lol

prisma wave
#

I think toTypedArray does the same but faster
you still need the spread operator for varargs

hot hull
#

Y'all are free to PR ๐Ÿ˜ to fix anything y'all think can be improved (which most things probably can)

old wyvern
#

link frost

ocean quartz
#

You sure?
I remember using that so Codacy would stop yelling at me for using the operator before, I could be wrong though

hot hull
#

java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "obj" is null
at java.lang.reflect.Method.invoke(Method.java:557) ~[?:?]
I mean is it the executionMethod that's null, or the object param?

prisma wave
#

what actually is executionMethod?

#

is it a platform type?

ocean quartz
#

Send the github link frosty

old wyvern
#

@hot hull Linkk

hot hull
#

Lemme push sec

lavish notch
#

yuck

hot hull
#

pushed

lavish notch
#

binned

hot hull
#

(Can't wait when they see those !! I spammed in a class >:))

lavish notch
#

imma fork your shit

hot hull
#

And do what?

lavish notch
#

make an equally shit version

#

jk

hot hull
#

Oh wow, heck out bish

lavish notch
#

uno reverse card

prisma wave
#

listOf(*actions)) => actions.toTypedArray()

#

what's the class with the error @hot hull ?

hot hull
#

ActionData

#

(action/actions)

prisma wave
#

where does it get instantiated?

#

also, this code is hideous

hot hull
#

Indeed, it's Gian's lib, I haven't had the patience to clean it up yet

prisma wave
#

smh

old wyvern
#

What does that lib do?

hot hull
#

actions

old wyvern
#

uh? xD

ocean quartz
#

Use Gaby's

hot hull
#

Matt, if it worked properly I would fingerguns_reversed

#

But it doesn't

old wyvern
#

Actions as in like when you click an item?

hot hull
#

Yugi, are you even reading the chat sheesh

#

I see you're a nerd, not even knowing what plugin it is ;C

old wyvern
#

FrozenJoins right?

regal gale
#

Someone really gonna appreciate how I did all of the system (NPC, Spinning part, Action Bar chat, etc. ) without an API

old wyvern
#

I havent seen Gians lib so i dont really understand what that action defines

onyx loom
#

yugi, actions for executing shit through the config, so like [console], [playercommand] [message] etc etc

ocean quartz
#

@regal gale Still used one API, spigot smh

onyx loom
#

im sure u can work out which 1 does

old wyvern
#

ahhh

hot hull
#
  • '[BROADCAST] &8[&a+&8] &7A wild &f%player_name% &7appeared.'
    Broadcast being the action
regal gale
#

@ocean quartz i mean, apart from that

#

So shush

ocean quartz
#

๐Ÿ˜ข

#

@hot hull Where is executionMethod coming from?

light venture
#

when frosty no lazy

hot hull
#

val method = actionClass.getMethod("execute", *prependPlayerType(parameterTypes))

#

ActionExecutor

#

Line 107

ocean quartz
#

Why is this even using reflection?

hot hull
#

I don't actually know how it works exactly so don't ask me fingerguns_reversed

old wyvern
#

๐Ÿ‘€

ocean quartz
#

Sounds like this could all be just a functional interface type of problem

#

Can you show me where registerActionClass is called?

hot hull
#

ActionUtil line 32

ocean quartz
#

Why not instantiate the class MessageAction() instead of passing it's class? .-.

#

I am confusion

hot hull
#

Again, ask Gian fingerguns_reversed

ocean quartz
#

@kindred hatch Any specific reason for this? ^
Just curiosity really

kindred hatch
#

idk

ocean quartz
#

Fair xD

onyx loom
#

gian bad dev

#

๐Ÿ™ƒ

light venture
#

yep

hot hull
#

I mean Matt, it'd probably be good to remake a lib specific for this, but ya know I don't think I have the braincells for this fingerguns_reversed

ocean quartz
#

I think i see why reflection was used, due to each action having different execute parameters

prisma wave
#

kotlin-reflect >>>

hot hull
#

Well yea, but could take Gaby's action lib approach

#

I don't think that uses reflection

old wyvern
#

kotlin-reflect >>>
@prisma wave
Wait what?

prisma wave
#

kotlin has a reflection library

old wyvern
#

isnt it slower?

prisma wave
#

yes

#

but it's nicer than java reflection

#

sooo

old wyvern
#

๐Ÿ˜‚

ocean quartz
#

He doesn't yeah, it's all functional
I think it's a better approach
Also Frosty you might wanna change your wildcard settings

hot hull
#

Yea gotta fix that ik

ocean quartz
onyx loom
#

yuck

ocean quartz
hot hull
#

Ayy he found it fingerguns_reversed

onyx loom
#

might wanna check that too

ocean quartz
#

Aight i'll take a look at this in a sec, brb
Also what's wrong with Gaby's lib?