#dev-general

1 messages Β· Page 231 of 1

ocean quartz
#

SQLClass.getPlayerDataSingleContentFromPlayerNameOrUUID

steel heart
#

its stringly typed

#

:]

onyx loom
#

ebic

prisma wave
#

dear god

obtuse gale
tropic cradle
#

Does anyone have any good plugins for Skywars?

ocean quartz
obtuse gale
#

boomer

ocean quartz
#

@prisma wave How would you turn this into functional forEach? Can't think of anything of the top of my mind

for (component in selectFormat().components.values) {
    if (component is MessageComponent) {
        appendMessage(component, ChatPermission.formatsForPlayer(player))
        continue
    }

    append(component, player)
}
forest pecan
#

Guys

#

this really

#

hurts my eyes

#

All those streams

#

:(

tawdry ore
#

do u guys know how to give creeper eggs

#

383:50 8 doesn't work

obtuse gale
ocean quartz
#

Dude..

obtuse gale
#

stop using the wrong channels lmao

static zealot
#

xD

tawdry ore
#

okay

#

i swear i will never put my shit in the wrong channel again

#

if u help me this last time

static zealot
#

lmao

#

/give player creeper_egg

tawdry ore
#

for essentials tho

#

/i 383:50 1 just gives me a white spawn egg

ocean quartz
#

It's pretty simple, none of your questions have been development related, so as long as it's not dev-general or development it's fine

tawdry ore
#

matt i will change my ways

#

forever

forest pecan
tawdry ore
#

after i figure out this 1 thing

static zealot
#

for essemtials ... /give player creeper_egg

tawdry ore
#

Error: unkown item name: creeper_egg

obtuse gale
#

/i creeperspawnegg?

static zealot
#

oh yeah its creeper_spawn_egg my bad

#

also try what Fefo said

static zealot
#

694 exp to go till tier 7

forest pecan
#

ogay

obtuse gale
#

I mean Essentials has like x30000 aliases for items

forest pecan
#

yeah

static zealot
#

/i ogay

tawdry ore
#

its not creeper_spawn_egg either

static zealot
#

what's your server version ?

tawdry ore
#

1.8.8

#

EssentialsX

obtuse gale
tawdry ore
#

wdym

static zealot
#

:))

#

just use the minecraft give command ..

tawdry ore
#

bro it doesn't woprk

#

/give @p minecraft:creeper_spawn_egg 1

static zealot
#

/minecraft:give player spawn_egg 1 0 {EntityTag:{id:Creeper}}

obtuse gale
#

because "minecraft:creeper_spawn_egg" didn't exist back then

ocean quartz
#

/minecraft:give player 383:50 1

tawdry ore
#

how do i put it in essentials kids

#

and non of those commands work

ocean quartz
#

That's not essentials

static zealot
#

pretty sure /minecraft give was a thing in 1.8

obtuse gale
#

it was, but named item IDs were not

static zealot
#

I know

#

wait

#

oh yeah

tawdry ore
#

/minecraft:give fortheboysusa monster_egg 1 0 {EntityTag:{id:Creeper}}

#

gives me a stone block

static zealot
#

no

#

use Matt's

obtuse gale
#

How can I remove all version control from a project in IJ

#

delete .git?

static zealot
#

yes Aj

obtuse gale
#

lol

ocean quartz
#

Delete .git

obtuse gale
#

is that it?

tawdry ore
#

[19:53:49 INFO]: fortheboysusa issued server command: /minecraft:give fortheboysusa 383:50 1
[19:53:49 INFO]: minecraft:give
[19:53:49 INFO]: [fortheboysusa: There is no such item with name 383:50]

obtuse gale
#

orr will intellij still think its there

static zealot
#

what about /minecraft: give spawn_egg:50 1

#

?

ocean quartz
#

Legacy is lovely

static zealot
#

nah

#

as much as I like its performance its trash to work with.

obtuse gale
#

minecraft:give <player> spawn_egg 1 50

#

I just recalled the metadata goes at the end

static zealot
#

well ...

#

Fefo

#

u kidding me?

obtuse gale
#

and I think named item IDs were introduced in 1.7 or 1.8

static zealot
#

yes

obtuse gale
#

alright i yeeted the .git,

static zealot
#

you can use spawn_egg

#

in 1.8

#

in 1.12.2

#

item ids

#

were removed

obtuse gale
#

now i told ntellij to reenable VCS, how do i set what repo it commits to and shit

static zealot
#

or 1.9 no idea but yeah in 1.12.2 is not a thing anymore

ocean quartz
obtuse gale
#

lol

#

git remote add origin <url> reversed_fingerguns

half harness
#

woah

#

fefo's pfp

obtuse gale
#

you just noticed?

ocean quartz
obtuse gale
#

lol

half harness
#

ye

ocean quartz
#

@obtuse gale Weeb

obtuse gale
#

i don't watch anime lol

static zealot
#

yes he doesn't

lavish comet
#

How do you set a potion effect on a player?

static zealot
#

please

#

oh wait

obtuse gale
#

lmfao

static zealot
ocean quartz
#

And everyone watches anime, my favorite is Cory in the white house

static zealot
#

I don't ...

#

I tried watching one but it was trash

#

so I just quit after like 1 and a half episode

#

and that was like 3 years ago or something

onyx loom
#

not everyone πŸ™‚

ocean quartz
static zealot
#

:)))

ocean quartz
#

Anyways, anime is great if you watch good ones, like Full Metal Alchemist, One Piece, Demon Slayer, but watch it subbed, don't get into dub, you'll lose a lot of the experience

static zealot
#

ye the thing is I tried watching a netflix anime lmao

oak raft
#

yo matt

#

just finished naruto

#

and it isn't even that bad of an ending

tawdry ore
#

%server_tps_1%

static zealot
#

liar

#

yes @tawdry ore what's with that?

ocean quartz
#

They did my boy Madara dirty

tawdry ore
#

@obtuse gale how do i give it in essentials

#

i want to add it to kits

static zealot
#

you don't ... you can just hold it in hand and do /createkit Something

#

it will automatically create the kit

tawdry ore
#

btw guys meet me in #minecraft i have changed my ways

onyx loom
#

clojuremoon

tawdry ore
#

blitz i did that while holding the item, when i type /kit cegg it says- that kit is improperly defined

static zealot
#

then you can't use eggs in essentials kits on 1.8.8 I guess

ocean quartz
#

@oak raft Wait, were you talking about original or the post time skip?

oak raft
#

shippuden

#

ending

ocean quartz
#

Oh, yeah that was the bad one

static zealot
#

I need to find another Tv show to watch

ocean quartz
#

Blitz, watch Demon Slayer, join the weeb culture

oak raft
#

how bro

#

how was it bad

static zealot
#

nah

oak raft
#

like sure it wasn't that good but it wasn't bad

static zealot
#

I just watched one of the worst and best shows at the same time

#

the show was the worst and the best at the same time

#

xD

#

I just finished watching*

ocean quartz
# oak raft how was it bad

The main villain was too strong, so the only way to defeat it was to throw in random bullshit of bringing back Kaguya
Even the author said he was running out of ideas so he threw in a rushed solution

static zealot
#

I have like 100 shows and movies in my list but I don't feel like watching any

#

I think I'll just re watch venom since its on netflix now

ocean quartz
#

You're losing this by not watching what i recommended ;p

static zealot
#

k lmao

onyx loom
#

wow! epic!

static zealot
#

not a lot I'll lose

#

I guess

ocean quartz
#

Fair

onyx loom
#

πŸ™ƒ

ocean quartz
#

Have you watched The Boys?

static zealot
#

yes S1

#

good thing you reminded me

#

lmao

#

thats a good show

#

going to finish it

ocean quartz
#

Yeah s2 is out

static zealot
#

also Mandalorian

#

I'll watch that as well

#

I forgot about these 2 but they're good shows

#

I got a few spoilers from the boys tho 😦

#

I watched Corridor Crew's latest react video and they reacted just to the boys

ocean quartz
#

Yeah, pretty cool the head explosion effect

static zealot
#

its all cool lmao

#

welp talk to you guys tomorrow after I finish the boys :))))

forest pecan
#

is there any efficient way to check if the player walks over a block

#

i really dont want to playermoveevent 😰

obtuse gale
#

Player::inOnGround?

#

lol

#

and check the x and z velocity

#

idk

forest pecan
#

kekw

forest pecan
#

guys I think i wrote the world's worst O(N!) code for the PlayerMoveEvent

#
    @EventHandler
    public void onPlayerMove(PlayerMoveEvent event) {
        Map<UUID, Participant> participants = game.getParticipants();
        Player player = event.getPlayer();
        if (!participants.containsKey(player.getUniqueId())) {
            return;
        }
        Location pLoc = event.getPlayer().getLocation();
        pLoc.setY(pLoc.getY() - 1);
        Room[] rooms = game.getArena().getRooms();
        Map<UUID, Map.Entry<Room, Integer>> playerRooms = game.getPlayerRooms();
        for (Room room : rooms) {
            for (EntryWay way : room.getEntries()) {
                for (Location loc : way.getEntry()) {
                    if (loc.equals(pLoc)) {
                        int originalValue = playerRooms.get(player.getUniqueId()).getValue();
                        if (originalValue == 2) {
                            playerRooms.get(player.getUniqueId()).setValue(0);
                            playerRooms.remove(player.getUniqueId());
                        } else {
                            playerRooms.put(player.getUniqueId(), new AbstractMap.SimpleEntry(room, 1));
                            player.sendTitle(ChatColor.GOLD + room.getName(), "", 20, 20, 20);
                        }
                        break;
                    }
                }
            }
        }
    }
obtuse gale
obtuse gale
#

I just found out of all the different kinds of breakpoints IntelliJ has

#

so good

obtuse gale
#

There are different kinds?!?

#

yeah

#

I'm sure you know the Method breakpoint

#

but there are more

obtuse gale
#

bruh day 7 panicbasket

hot hull
#

Damn Fefo seriously gonna pass us all

obtuse gale
hot hull
#

Sheesh

obtuse gale
#

ezpz kekwhyper

#

k time to sleepo 02_Sleep

static zealot
#

what is day 7 :((

obtuse gale
#

your nightmares

#

all of them

static zealot
#

oh

#

ye probably not going to do it xD

obtuse gale
#

it's uuuh it involves regex :)) or at least my solution did

#

tbh it was easier than I though it would be

#

specially part 2

static zealot
#

ye idk. Its the fact that I have to read 3 pages xD

obtuse gale
#

yeah it's huge

hot hull
#

Fefo, can you quickly just tell me the instructions

obtuse gale
#

how quickly?

#

it's been 5 minutes already and I read your message just now

hot hull
#

Nvm read it myself

obtuse gale
#

you store bags

hot hull
#

Should be fairly simple with regex

obtuse gale
#

inside bags

#

inside other bags

#

and on and on and on

hot hull
#

Yeye bag inception

obtuse gale
#

and you have to count the number of bags that contain one bag

#

or that contain bags that contain that bag

#

etc

hot hull
obtuse gale
#

recursion is fine

#

fun*

#

not fine

#

it sucks

hot hull
#

Very

obtuse gale
#

my very first attempt threw a stackoverflow kek

hot hull
#

Ofc it did

#

||You'd get the second group, after contains, split it at , and then just parse properly||

#

Effort tho

obtuse gale
#

part 2 was actually easier CH_facewhy

#

but now it's time for me to go

static zealot
#

yesterday was easier tho

steel heart
#

@obtuse gale

steel heart
old wyvern
frigid badge
#

lmfao

wanton sentinel
#

?docs

compact perchBOT
prisma wave
#

Day 6 was so easy

obtuse gale
#

tfw ur bot breaks and somehow yeets discords rate limit out the window and does stuff at 300* speed

hot hull
#

Time to try this day 7 challenge

remote goblet
#

Plugins made by sxtanna

#

have awful code

prisma wave
#

what

#

No

#

Impossible

regal gale
#

How thonking

obtuse gale
#

Huh?

hot hull
#

I guess just looping until the bag can contain gold?

obtuse gale
#

You gotta check how many bags recursively contain the shiny gold bag

prisma wave
#

I've made the terrible mistake of trying to do 7 in c++

obtuse gale
#

C++ has Regex too, doesn't it?

#

hahahhh

#

hhhhhhhhhh

hot hull
#

I used 0 regex in this :))

prisma wave
#

Hopefully

#

I just haven't even figured out how to make a class yet

hot hull
#

Well that's a lie

#

Since splits

prisma wave
#

Smh

hot hull
#

This doesn't seem right

'4' Bags Can Contain A Shiny Gold Bag.

distant sun
hot hull
obtuse gale
hot hull
#

Another one

prisma wave
distant sun
#

public:
void doX() {}

old wyvern
#

Try a breadth first search instead then

obtuse gale
#

It was very good to know that there were no circular inheritances in that entire input file

#

Relieving

#

Made shit fuck lots easier

forest pecan
#

Is day 7 just

#

make a graph?

#

and like

#

bfs

hot hull
#

Day 7 is ew

forest pecan
#

its like

#

bags into one another

#

and you can just make a class Bag

hot hull
#

rEcUrSiOn

forest pecan
#

which stores arraylist of bag

#

and then do a deep recursion or dfs

#

yeah it is

#

im learning about this anyways kekw

#

imma try with stack recursion

obtuse gale
#

arraylist 🀒

forest pecan
#

then use a set

#

but i used an arraylist

#

because some problems

#

require order

obtuse gale
forest pecan
#

lol

#

i dont think this one

#

needs order anyways

obtuse gale
forest pecan
#

did you use

#

floodfill using recursion (methods)

#

or a loop

obtuse gale
#

used what CH_facewhy

#

flood-fill yeah sounds like I used that

forest pecan
#

floodfill/bfs

#

when you recurse through each "layer"

#

of the search while returning

#

to the original cell recursed

obtuse gale
forest pecan
#

no

#

i dont think you understand kekw

#

it means

#

you recurse through each of the children first

#

instead of recursing through deeply

obtuse gale
#

and then the children of the children

forest pecan
#

you recurse through children first

#

no

#

thats dfs

#

they are different

#

bfs is recursing through each of the children

#

in order

#

then once finished recursing through the children like all of them

#

you then go to the next layer

#

to those children

#

and for each of the children

#

you get the children of children

#

etc

#

you dont recurse deeply

obtuse gale
forest pecan
#

through one of them thats dfs

#

let me get an example

obtuse gale
#

look man

#

idk no bfs or dfs

forest pecan
#

im too lazy

#

lmfao

#

whatever

obtuse gale
#

I just did my thing

forest pecan
#

idea is

#

just do recursion

obtuse gale
#

and it works perfectly

forest pecan
#

well

#

its technically called

#

dfs?

#

i think

#

yeah

obtuse gale
hot hull
#

Mine almost works with the example

forest pecan
#

Does the input data give you a certain like

obtuse gale
#

I too used the example to test kekw

forest pecan
#

tree or graph

#

to work with

#

or its always that one

steel heart
#

puuuuuuuuulseeee

#

coc

obtuse gale
#

πŸ˜‰

forest pecan
#

fuck

steel heart
#

coc

#

rn

#

or

forest pecan
#

im

#

using

#

intellij

#

nerd

hot hull
#

Fefo, I mean I don't even know how I'm going to parse all the data since it'll always just overflow..

steel heart
#

then coc

#

rn

forest pecan
#

o

#

k

#

ogay

steel heart
#

ovirgin

#

mspaint though

obtuse gale
forest pecan
#

if i gave an example it would be easier

steel heart
#

pulse im waiting

obtuse gale
#

and I think my solution is more of a bfs approach

forest pecan
#

yeah

obtuse gale
#

by the looks of it

steel heart
#

how do I start one then

forest pecan
#

wdym

#

start one

old wyvern
#

use a Queue

hot hull
#

Got the example working

#

Now what lol

old wyvern
#

Push every child of visited element onto the queue

#

and the element being polled with be the next

forest pecan
#

why not stqaack

obtuse gale
steel heart
#

there ugo coc

obtuse gale
steel heart
#

join or ban

hot hull
old wyvern
forest pecan
#

why not use a stack

#

oh

hot hull
#

Did that Fefo

#

:kek:

forest pecan
#

yeah

obtuse gale
#

lmfaooo

forest pecan
#

Last In First Out

hot hull
#

It's too much data for it to handle

forest pecan
#

First in last out

#

And also what the fuck

#

is this input

#

vibrant bronze bags contain 3 dim olive bags.

old wyvern
#

use a queue frost

#

lol

obtuse gale
#

yes

#

that's me

hot hull
#

Smart

steel heart
#

no

#

u r fefo

obtuse gale
#

yes

forest pecan
#

Gay or FIFO

obtuse gale
#

both

forest pecan
steel heart
forest pecan
#

but im gay

steel heart
#

taken

obtuse gale
prisma wave
#

I will join

#

Wait

steel heart
#

aye

old wyvern
obtuse gale
#

I just used maps mmlul

#

because

#

uniqueness

steel heart
#

just use a ConcurrentHashIdentityDequeueQueueMapStack?

old wyvern
#

huh?

prisma wave
#

@steel heart invite me on the website pls

#

My laptop can't handle opening discord

obtuse gale
#

lol

steel heart
#

name

prisma wave
#

BristerMitten

old wyvern
hot hull
#

Invited you

steel heart
#

wtf how do I do that

#

oh nice

hot hull
#

You need to follow him

prisma wave
#

Wut is this

obtuse gale
prisma wave
#

Tree

obtuse gale
#

Then I was like "yuh uuuh" and encountered something and I ended up with the bag class having no set and had a "root" Map<Bag, Set<Bag>> outside mmlul

#

although I probably could have done the first approach

#

but I had to sleep CH_pepesleepy

hot hull
#

bruh you need to consider spaces as well

forest pecan
#

kekw

obtuse gale
#

what spaces thonking

old wyvern
obtuse gale
#

yuh

old wyvern
#

yea thats dfs

obtuse gale
#

in an bfs approach

#

breh

old wyvern
#

How so?

forest pecan
#

kek

old wyvern
#

lol

obtuse gale
#

I didn't go through the branches one at a time

forest pecan
#

bfs -> breadth first search for each layer

#

dfs -> depth first search deep recursion

old wyvern
#

in proper order as well

forest pecan
#

yeah

hot hull
#

ofc kotlin has nice shit for this

old wyvern
#

recursion doesnt really allow bfs without maybe a queue argument or something

obtuse gale
#

well first I check if the current bag can contain the shiny gold one

#

if it does k cool cct

#

if it doesn't, I check if

#

o wait

#

it is dfs kekw

hot hull
prisma wave
#

Rip gtg

hot hull
#

I mean it works, just can't handle that much recursion

prisma wave
#

Enterprise

old wyvern
#

xD

obtuse gale
#

lol

hot hull
#

No clue how I'd make a queue for this tho

old wyvern
#

simple

#

initialize a queue

#

add the first element, i.e, the shiny gold thing

hot hull
old wyvern
#

then do a while loop till the queue is empty

obtuse gale
#

lmfao

old wyvern
#

xD

obtuse gale
old wyvern
#

Basically on every poll add all the childen of the polled bag to the queue

#
Queue q
while (q is not empty) {
     current_element = q.poll()
     q.add(current_element.getChildren())
     // Do what you want with the cur element
}```
obtuse gale
#

because I would have needed the actual instances

#

for the children nodes

#

bags

#

w/e

hot hull
#

Well I mean it is too much

obtuse gale
hot hull
#

Can't I just Thread#sleep till it's finished :kek:

#

As in pausing after every loop

#

or will it kill my pc

obtuse gale
steel heart
old wyvern
#

ah lol I see your issue

#

I solved it in inverse

#

Started from shiny gold

obtuse gale
#

and made your way up?

old wyvern
#

yes

obtuse gale
#

I thought of that as well, storing the parents instead of the children

hot hull
#

Yugi, I honestly am not sur ehow to solve this

obtuse gale
#

but I'd rather have the children :^)

hot hull
#

Y'all sound like a bunch of kidnapers rn

obtuse gale
#

lmfao

steel heart
#

is that the code advent thing?

old wyvern
#

Yes

steel heart
#

too late to start now?

old wyvern
#

Nope

hot hull
#

Can someone parse this for me since logic works, fingerguns

steel heart
hot hull
#

plz

steel heart
#

Ye

hot hull
steel heart
#

throw new Frosty()

#

Holy shit

obtuse gale
#

okay what am I supposed to do with that

#

like

half harness
#

lol

obtuse gale
#

it gave me two numbers and I'm assuming they are correct

#

but idk your input set lol

hot hull
#

my what

obtuse gale
#

your input data

old wyvern
obtuse gale
#

how do I know the results are correct without putting them in your thingu :^)

hot hull
#

If yours were correct, then mine are as well

#

The syntax is the same for everyone, just different sequences

obtuse gale
#

I know

#

but

hot hull
#

Tell me the number and I'll tell you if it's correct πŸ˜‰

obtuse gale
hot hull
#

It can handle 41 lines, after that overflow :sad:

#

And there's 594 lines

obtuse gale
#

lol

#

what does it throw

#

soe?

hot hull
#

ye

obtuse gale
#

a few days ago I found out about terminal ANSI escape codes, colors, decorations and cursor navigation

#

I was like ShockedPikachu

steel heart
#

Ye it’s big pepe

obtuse gale
#

.

#

,

ocean quartz
#

;

forest pecan
#

->

steel heart
#

We continue here

#

if (you) me;

forest pecan
#

gay

prisma wave
#

I wonder if there's a language that could detect all possible errors at compile time

#

No runtime exceptions

lunar cypress
#

depends on how you define error

hot hull
#

Error = error

#

:))

lunar cypress
#

there can't be a program that can verify the correctness of any other program

#

that's theoretically impossible

#

can you detect a specific set of errors with static analysis? sure

hot hull
#

Who the hell is jolheiser on the leaderboard

ocean quartz
#

Frosty can you make me a faq? For doesn't work or it's not working

prisma wave
#

So a language without any runtime exceptions

#

All errors have to be handled

lunar cypress
#

what about things that are out of your control

prisma wave
#

like what?

#

External programs?

lunar cypress
#

like I give the process no memory

prisma wave
#

Good question

lunar cypress
#

because if you can look over that Rust is basically such a language

#

the second one that comes to mind for me is Elm, dunno if you know that one

#

similar to Haskell

prisma wave
#

Does rust guarantee 100% safety though?

#

Heard of it, not used it

lunar cypress
#

there are no exceptions in rust. when you get a result type, you need to handle the error case or it won't compile

prisma wave
#

Yeah similar to Go

#

Although stricter?

#

I guess that's close enough

#

Upon thinking about it, Rust + Kotlin seem to do most of this. But there are still some things that could slip through

lunar cypress
#

how does kotlin do this

prisma wave
#

Index out of bounds, using things before initialisation

#

Null safety

#

I don't mean Kotlin does it

lunar cypress
#

it's even less restrictive than java

prisma wave
#

I mean a language with features similar to Kotlin + Rust + other stuff

#

Compile time overflow checking, out of bounds checking, referential transparency, no "lateinit" values

obtuse gale
#

@hot hull did you solve day 7? zoom

prisma wave
#

Etc

hot hull
#

No Fefo, I told you, stack overflows galore

obtuse gale
prisma wave
#

Tail recursion

hot hull
#

I've no idea what y'all talking about with your different acronyms, I don't use recursion, nor do I ever want to again

obtuse gale
#

Your input gave results way higher than mine

#

Like

#

x20

prisma wave
#

How you getting Stackoverflows without recursion

obtuse gale
#

too many variables fingerguns

#

Huge as fuck array

#

lol

hot hull
#

BM, ooh I got ways dw

#

Fefo, just gimme the number

obtuse gale
#

8

hot hull
#

Bruh

hot hull
#

I see how it is

obtuse gale
ocean quartz
frail glade
#

Damn, that was quick.

half harness
#

Is there any way (with IntelliJ) for me to edit a spigot plugin's code while it's running?

forest pecan
#

uhh

#

that requires byte code manipulation

#

if you want to edit code while a plugin is running you need to use a library like bytebuddy, asm, etc

obtuse gale
#

Android Studio lets you modify and patch classes while the app is running

#

it's really neat

prisma wave
#

Hotswapping is possible

#

Fairly easy

#

Piggy has a good guide on spigot

steel heart
#

its very good

distant sun
forest pecan
#

the issue that is going on is that you are using eclipse

steel heart
#

^

distant sun
#

...

steel heart
#

Eclipse == tried that Indian tutorial on yt

hot hull
#

White theme

#

What the fuck @distant sun

distant sun
#

dude stfu

steel heart
hot hull
#

Make me 😏

obtuse gale
radiant condor
#

Is there a way to report someone for scamming on here?

obtuse gale
#

Yes, message @compact perch

#

Report the person in question and provide as much info as you possibly can, chat histories, screenshots, etc

static zealot
radiant condor
#

Thanks, done.

static zealot
#

I assume that having some values saved and just updating them on /plugin reload or whatever is better than getting them from the file each time they are needed right? xD

#

and restart of course

obtuse gale
#

or attach a Watcher to the Path to the file and when it changes, update the values

obtuse gale
#

oh god

#

day 8 please no

#

an assembly language parser cryIgnore

#

it's simple as fuck tsk tsk I've made way worse things than this

static zealot
#

yo in knotlin, when only executes the code after the first true check and it breaks right?

old wyvern
#

Yes

static zealot
#

omfg

#

welp that's a good one

hot hull
#

If you're on the AoC leaderboard, and your name happens to be jolheiser, let me know. Otherwise I'm removing that dude

obtuse gale
obtuse gale
#

reEE

#

Description:

Web server failed to start. Port 42069 was already in use.

#

no πŸ‘ its πŸ‘ not

frail glade
#

Calm down, Jerome.

obtuse gale
#

o... not many people know that

frail glade
#

Yeah, you mentioned I was the first one to notice it or something awhile back.

obtuse gale
#

o yeah....

frail glade
#

Did you know they have a podcast now?

obtuse gale
#

didnt one of them commit suicide?

frail glade
#

I believe so, back in 2015.

obtuse gale
#

yeah....

frail glade
#

The others have a podcast called SuperMegaShow.

obtuse gale
#

o... ill check it out

frail glade
obtuse gale
#

Can I make IJ so I can run a command or smthn and it uploads the compiled jar to my web server?

errant geyser
#

@obtuse gale you a furry now?

static zealot
#

no ....

#

fury != furry

#

how many times I got to say that

steel heart
#

yes

#

fury = furry

static zealot
#

no

#

google it

#

here

steel heart
#

bs

#

cap

#

hoax

obtuse gale
#

few-ree vs fur-ree

errant geyser
#

I know what fury is Blitz, but Fefo's more likely to be a furry than furious

prisma wave
#

few-ree

#

Gross

#

All my homies say fyur-ree

quiet depot
#

the pronunciations of both are identical with my accent

steel heart
#

What would be a good term that represents something which is non persistent, just in memory and might be changed next runtime

quiet depot
#

data

steel heart
#

getDataId

#

hmm

#

getIdData

quiet depot
#

getDatumId

steel heart
#

its like an auto increment

#

integer id thing

quiet depot
#

that doesn't clear anything up at all

steel heart
#

yeah ig

old wyvern
steel heart
#

Actually, I use it for keeping track of inventories during runtime

#

but I was just thinking that the name getId is ambiguous

obtuse gale
#

How does one setup IJ deployment so it uploads a compiled jar to my server...

#

if fhtats how deployment works

distant sun
#

So minecraft-mp.com has this system where you can add ?username=username-here at the end of the vote url and it will set the value on the Username field located on the site. Is possible to do the same for a site that doesn't have such system? Maybe with an iframe on our website or something (I'm talking about topg.org)

obtuse gale
#

bruhhhhh I just realised my code could be so much neater if I did something

#

but I didnt and now its like too late to change

obtuse gale
#

dumb question here lol
Where should I put my .jar app on my VPS...
like whats the normal place people put their apps on their VPS lol

frigid badge
#

home folder of the app user

obtuse gale
#

lol what

#

wheres that... atm all i see is like /var /usr /bin /etc stuff like that lol

lunar cypress
#

~

obtuse gale
#

so what do i set as the path lol....

#

this stuff confuses me lol...

lunar cypress
#

~ is your home directory, at least on debian based dists

#

so see what that is

#

cd ~
pwd

prisma wave
#

Lunix

#

Is actually GNU + Linux

#

But that's not important

#

/s

obtuse gale
#

Lunix

prisma wave
#

Lunix

#

Rach Lunix

obtuse gale
#

pwd after cd ~ just prints /root

#

is that where i make a new folder for my thingo

#

oh i see

#

Oh right ok

#

thats the path ig?

lunar cypress
#

yes, that is the home dir of the root user

#

although you should perhaps not put it there

obtuse gale
#

yeah ik im not meant to use root buttttttt

lunar cypress
#

some people put stuff like this in some /usr directory, /opt or /dev

prisma wave
#

I usually use /opt

obtuse gale
#

I use /🌝/πŸ₯²

prisma wave
#

/clojuremoon/πŸ₯Ά/πŸ₯²

heady birch
#

say goodbye to the emojis ☹️☹️☹️ > /dev/null

obtuse gale
#

☹️

prisma wave
#

☹️

obtuse gale
#

I was trying to get a resource from the jar

#

so I did the thing

#

and it kept returning null

#

no matter what

#

an hour later I realize I never embedded the file in the jar πŸ™ƒ

prisma wave
#

πŸ₯Ά πŸ€ͺ elaramoon2 πŸ˜• | grep good-emoji

elaramoon2

#

lol nice

obtuse gale
#

lol

steel heart
forest pecan
#

wtf

#

why are you saying hes yours

steel heart
#

ye efe

#

u mad mad sus

#

just like fefo kappa

#

no

#

u

#

yes

steel heart
#

bruh u use that meme after

#

but yes good old memes is da shit

forest pecan
#

efe is mega sus

steel heart
#

^

forest pecan
#

conclure get him out

#

lets get him out

steel heart
#

humongous, enormous, immensely sus

#

I vote efe

forest pecan
#

Omwae

#

Mo Shindaru

steel heart
#

Nani

#

MisstΓ€nkt >:[

forest pecan
#

Sus

#

:}

steel heart
#

anyone thought of final + NotNull + Objects.rnn + assert + lombok + Contract ?

thin basin
#

what is a good plugin to reduce lag

steel heart
#

PermissionsEx

forest pecan
#

KEKW

steel heart
#

20_teaBesluP ok nice name

forest pecan
#

ty

steel heart
#

I'm jealous

#

platyypus

thin basin
#

yea?

#

like one goood plugin not multiple

forest pecan
#

Uhm

#

well have you tried

#

Aikar's Arguments

#

and also have you tried using a high performant fork of Spigot

thin basin
#

what

steel heart
#

basically add every jvm beta flag

#

== tremendous performance boost

#

get a slot?

forest pecan
steel heart
#

u alr have them

#

getItem(int)

#

or smtng

thin basin
#

should i just use papermc

#

but like are there any specific plugins like ClearLag to reduce lag

steel heart
#

oh yeah

#

I mean most likely

#

its cuz of plugins u get lag in the first place

thin basin
#

oh so suppose i setup a server on a free hosting website like aternos should i add plugins (to reduce lag) if so what plugins

prisma wave
#

development general

thin basin
#

?

half harness
steel heart
#

if (!developmentTopic) leave();

thin basin
#

oh ok

steel heart
#

well

#

most other channels is more appropriate to discuss this

obtuse gale
steel heart
#

mind blowing facts with fefo

obtuse gale
#

what do i need to ask for when ordering a custom plugin

#

i've heard you have to ask the dev proof of something but i forgot what it was

obtuse gale
steel heart
#

well

#

ask him for his github

#

I can control his "work"

full pagoda
#

Hey, Im curious if there's a plugin that gives permission on entering worldguard area and removes it upon leaving it for 1.16.3 spigot? I can't find one, but this seems to be a quite common issue πŸ€”

steel heart
#

unsure

#

have you tried?

distant sun
#

tried what xd

forest pecan
#

anyone ever noticed

#

part 2 of the advent of code day 7

#

is easier than part 1

lunar cypress
#

meh, not really

#

depends on how you parse it

forest pecan
#

yeah ig

#

its more about like

#

efficency

#

i cant spell

prisma wave
#

Idk how you were getting Stackoverflows

#

I managed to do part 1 recursively with like 3 lines

#

And no errors

forest pecan
#

yo same xD

#

i didnt get the error tho

#

i think it someone else

prisma wave
#

Yeah it was frosty I think

lunar cypress
#

how fast are your day 7s?

forest pecan
#

2 hours

#

it could be shorter

lunar cypress
#

runtime, I mean

prisma wave
#

How fast to execute?

#

Ah

forest pecan
#

oh lol

prisma wave
#

Pretty fast

forest pecan
#

its pretty small data

prisma wave
#

I've not benchmarked but no noticable delay

#

Yea

forest pecan
#

i used

#

priorityqueue

prisma wave
#

wut

#

For what?

forest pecan
#

recursion

prisma wave
forest pecan
prisma wave
#

Oof

#

No recursion

forest pecan
#

its recursion in a loop

lunar cypress
#

Because I gave up doing it in C, tried it in datalog (where the first part alone took like 30 seconds), now I wrote it in just Clojure and it's 15ms

prisma wave
#

Isn't that iteration then?

forest pecan
#

well you keep adding to the set

#

and you keep recursing through each of the children

#

of the elements

prisma wave
#

Yeah, I tried C++ at first, realised I knew literally nothing, and then tried Scala and then Kotlin

forest pecan
#

you can say both ig

prisma wave
#

I see

#

Yeah

lunar cypress
#

in contrast to C

forest pecan
#

there's Stack right?

#

in C?

lunar cypress
#

?

prisma wave
#

Afaik C doesn't have any predefined data structures

forest pecan
#

oh

lunar cypress
#

Oh you mean as a data structure? no

forest pecan
#

yeah it doesnt

#

it has linkedlist

lunar cypress
#

no

#

it doesn'T

forest pecan
#

or nope

#

kekw

#

arrays

prisma wave
lunar cypress
#

it only has string handling, syscalls and utils for memory allocation and such

#

that's it

prisma wave
#

Linked lists are fairly trivial to implement though

forest pecan
#

theres also

#

struct?

prisma wave
#

Yeah

lunar cypress
#

Well yeah, but struct is for you to define own stuff

forest pecan
#

yeah

lunar cypress
#

but so far I've managed without anything other than arrays/pointers

#

except for day 7 lol

prisma wave
#

Yeah it's possible, just tricky

lunar cypress
#

Tried implementing a hash table, took me ages, parsing was awful and so far I've only gotten segfaults

prisma wave
#

πŸ₯Ά

lunar cypress
#

For the others it was fairly trivial without other data structures

obtuse gale
lunar cypress
#

no bullshit at all

obtuse gale
#

It's literally the language I started with and learned the most with

#

How come

lunar cypress
#

so what?

#

that is not an argument against what I'm saying

obtuse gale
#

You are saying "you really can't jump into it"

#

You absolutely can

lunar cypress
#

I'm saying C++ is a lot more bloated and there are many more language features you need to know before you can become productive

obtuse gale
#

I wouldn't consider it bloated, the STL is huge yes, but so is the JDK

lunar cypress
#

What does the jdk have to do with this

obtuse gale
#

There is a tool for everything and there are libraries everywhere

lunar cypress
#

yeah, and that makes it a lot more complex

#

for memory management alone you have like 4 different ways of doing it

obtuse gale
#

You don't have to know how pointers work to use an std::vector, do you?

lunar cypress
#

dude

obtuse gale
lunar cypress
#

take someone who has never written any C or C++

#

you're proving my point lmao

obtuse gale
#

You don't have to guide them through the nastiness of memory management

#

It's good to know if you want well "performant" code, yes, but it's not a requirement

lunar cypress
#

So far you haven't made an argument

#

I'm not saying C is easier

#

or better

obtuse gale
#

You are?

lunar cypress
#

no?

obtuse gale
#

C++ is worse in that you really can't jump into it
in contrast to C

lunar cypress
#

I'm saying there is less mental load

obtuse gale
#

That by itself implies that C is easier to learn than C++

lunar cypress
#

no

prisma wave
#

C, while it requires more effort, is simpler

lunar cypress
#

it doesn't

obtuse gale
#

How does it not

lunar cypress
#

do you know what words mean

prisma wave
#

there's less to consider in my experience

obtuse gale
#

I'm wasting my time

prisma wave
#

C++ seems to have a lot of syntax and keywords, whereas C is significantly simpler to get an initial grasp of

lunar cypress
#

yes

#

exactly

steel heart
#

C++ is epic

lunar cypress
#

(also I do think C++ sucks, but that is unrelated to my point)

prisma wave
#

While C++ might be easier to use in the long term, there's no denying it's harder to initially learn

lunar cypress
#

yes

#

ease is not static

#

it can get easier or less easy progressively

#

the bigger your applications become

distant sun
#

fucking pointers and references

steel heart
#

Why

#

does java allow infinitely long names for classes?

scarlet pivot
#

I'm not sure where to ask this in here, but what permission would I need to input for players to open a custom gui shop? currently the command is /ceshop but i'm not sure what the permission would be to allow players to do that. Any help would be appreciated, thank you!

surreal quarry
surreal quarry
scarlet pivot
#

Thanks!

steel heart
#

hmm interesting

lunar cypress
#

you'll most likely run into some limitation of your file system first

surreal quarry
#

Why do you want an infinitely long name lol

steel heart
#

I need to describe what my class does

surreal quarry
#

You probably wont run into a limit doing that

steel heart
#

bet

dense roost
#

how do I code plugin with yml?=??

frail glade
#

GitHub Dark Mode Pog

ocean quartz
#

Ooh finally!
No longer need Stylus

obtuse gale
#

😩

steel heart
#

OMG

#

GH DARK MODE

#

NOWAY

blazing walrus
#

✨ yes ✨

surreal quarry
#

No way thats awesome

forest pecan
#

the github dark mode

#

takes everything i once thought was good for dark mode

#

onto another level

steel heart
#

GitHub phone users had this for so long πŸ˜