#dev-general

1 messages · Page 549 of 1

golden sun
#

o.o

quiet depot
#

cube would get mad at me if I added that

static zealot
#

xd

quiet depot
#

we are christian server

lunar cypress
#

attack and dethrone god

quiet depot
#

i've tried several times

static zealot
#

oh

quiet depot
#

but he just punished me to hell

lunar cypress
#

damn that sucks

old wyvern
quiet depot
#

was talking about cube not clip

golden sun
#

50 sided cube

old wyvern
#

oh yea misread the name

#

xD

quiet depot
#

50 sides of an edgeless cube

static zealot
#

ok gonna stop now

golden sun
#

d50

lunar cypress
#

mod btw

quiet depot
#

?

static zealot
#

xD

#

think he's talking about the secret emojis I've been sending

quiet depot
#

o

#

believe the "Norimaki Synthesizer" is the taste thing I was talking about earlier btw

golden sun
#

they are secret. don't talk about em

#

ah

#

I know the thing that does smells

#

but not taste

static zealot
quiet depot
#

well this one u've got a few tubes of different shits

static zealot
#

should I flashbang you guys?

quiet depot
#

u got citric acid

#

magnesium chloride

#

sodium chloride

#

all the good stuff

#

and then it simulates any taste

lunar cypress
#

ewwwww

static zealot
quiet depot
#

shit looks like fucked up sushi

static zealot
#

no ty

quiet depot
#

blitz you're gonna be licking this shit one day

#

i promise

#

everyone will be

lunar cypress
#

can you eat this

quiet depot
#

you can eat literally anything if you put your mind to it

half harness
#

can you eat a car

onyx loom
#

😋

quiet depot
#

assuming you don't die before you finish your meal

half harness
#

This is what happens when you forget to add -Xmx to your minecraft server 🥲

#

lol

#

-Xms256M -Xmx2G is this correct?

static zealot
#

yessssnnn'''t

half harness
static zealot
#

man I just can't stop playing systemd

cinder flare
#

i think that is why openrc exists lmao

#

or runit

eternal compass
#

OpenRC?

cinder flare
#

alternative init system

#

for all the systemd haters in the world

eternal compass
#

Wierdos

cinder flare
#

yea seriously

golden sun
#

OpenRollerCoasterTycoon2?

old wyvern
jovial warren
eternal compass
dense flicker
#

Has anybody edited datapacks before, not made one but changed files inside one to suit a need? i'm trying to remove custom itoms from a datapack but keep its terrain generation and I have zero idea where to start sadly

jovial warren
#

anyone here who's used reposilite before got any idea how to mirror central? should I just set it to proxy https://repo.maven.apache.org/maven2?

old wyvern
#

Yup

jovial warren
#

alright, thanks

#

trying to make it so you can depend on the Krypton API by only using one repo lol

old wyvern
#

lol

jovial warren
old wyvern
jovial warren
#

yeah that's what I have

old wyvern
#

lit

jovial warren
#

okay I have some really strange behaviour

#

if I enable SSL, it throws an error about the key store and resolves fine

#

if I disable SSL, it starts up without errors but Caddy can't dial it (resulting in a 502)

#

tf

old wyvern
#

I just have ssl setup on nginx and have the reposilite one turned off

jovial warren
#

it can't connect

#

and with SSL enabled, the port is opened properly and I can telnet it

old wyvern
#

You need to pass a few headers

jovial warren
#

maybe it's time I just switch to NGINX

cinder flare
#

yes it is boss

#

dude i used certbot and I think it did the header passing for me

ocean quartz
#

So, I know you can do something like this in gradle:

root 
  project // inherits from root's `subprojects`
  folder
    project (with build.gradle) // declaring dependency 1 here
    project (with build.gradle) // Has to repeat declaring dependency 1 again

Basically this way the projects inside the folder repeat the same dependencies (project outside of the folder doesn't need it)
But I wanted to know if this was possible instead

root 
  project // inherits from root's `subprojects`
  folder // works as a secondary root with `subprojects` on it, projects inside no longer need to repeat dependencies
    project (with build.gradle)
    project (with build.gradle)

I tried earlier but didn't seem to have worked

obtuse gale
#

Not sure if this I'm gonna say is valid but can't you stick a new settings.gradle inside a folder or somewhere?

#

And like

#

Do the thing

ocean quartz
#

I can try that, the way i had it was with just one settings.gradle

frail glade
#

So CoreProtect is open source now 👀

cinder flare
#

what no way

#

this?

ocean quartz
#

It needs an ant file as well

cinder flare
#

maybe a cargo.toml while we're at it

jovial warren
#

and, like a lot of other non-open-source plugins that go open-source, I see the codebase is pretty terrible lol

cinder flare
#

mmm proprietary software go brrrr

#

wonder what the windows source code looks like 👀

half harness
#

something called command aliases

cinder flare
#

but just think, you get a whole new TabHandler per alias

#

insane value!

half harness
#

lol

jovial warren
#

I imagine a decent chunk of the codebase hasn't been touched in the last 20 years or something

cinder flare
#

still including technical debt from Windows NT!

obtuse gale
jovial warren
#

Windows NT is the kernel, not an OS 🙂

#

sorry, just had to correct that

old wyvern
#

Didnt linus show like the function dependency graphs in windows being very very very "sphegetti"

obtuse gale
cinder flare
#

🙂

ocean quartz
jovial warren
#

oh yeah, NT was an OS once, it's the name for the family nowadays though

cinder flare
#

yessir

jovial warren
#

I'm gonna finally rewrite all of the massively outdated Krypton documentation lol

#

this is gonna be fun

old wyvern
#

Does jshell provide any way to change the working directory?

old wyvern
#

Does that mention changing jshell directory somewhere in there or was just unrelated?

obtuse gale
#

🥲

old wyvern
#

🥲

jovial warren
#

thinking about the SecurityManager btw, someone please explain to me why tf it's in java.lang lol

ocean quartz
#

Sadge 😩

jovial warren
#

composite builds OP

#

... until you realise that yours somehow breaks on Gradle 7.1 🥲

cinder flare
half harness
#

What's the best way to kick a player from a world?

obtuse gale
#

to where..

half harness
#

¯_(ツ)_/¯

#

like if I was regenerating my bedwars map, and a player was in the world, and there was no main lobby set, where would they go?

cinder flare
#

into the void

half harness
#

I couldn't find any way to get the default world

half harness
cinder flare
#

send 'em to 8.8.8.8

forest pecan
#

that wouldnt be too bad

#

lol

half harness
cinder flare
#

mmm kotlin

#

very useful

half harness
#

lol

astral python
#

Hi, do you know if oracle sets up a default password for the default admin vm agent?

quiet depot
#

tf is a vm agent

#

you add your public key when creating the instance

astral python
#

nevermind haha

#

I'm having a problem now, I'm trying to intall docker in CentOS, but somehow it tells me that i need "slirp4netns" and "fuse-overlayfs" dependencies to install it, but when I try to install them they it returns that they don't exist :,c

#

Should I just skip them?

stuck harbor
#

anyway centos bad ;)

astral python
#

Yea I just did it haha, had to "localinstall" every mirror

distant sun
#

any good sound for removing something, like a chat tag?

old wyvern
#

villager hmm thing

distant sun
#

was looking for something like an eraser sound, but there's nothing like this

distant sun
#

IC

#

now let's figure out how to use kiory sounds

timber oak
#

fak, I closed a server without stopping it first, how do I now stop the server lol

#

Like I just pressed the x to close it

hot hull
#

Kill it?

eternal compass
#

I currently use me.fredthedoggy in java

#

But it's more expensive, and seems less professional

prisma wave
#

.me is kinda intended for personal portfolios and stuff, I don't think there's anything unprofessional about it

eternal compass
#

$20/y

sly sonnet
#

it's not that much

eternal compass
timber oak
#

Does everyone use the default command handler or custom ones?

prisma wave
#

god no

#

most people here will use some sort of framework

#

triumph-commands, ACF, and Cloud are all pretty popular

timber oak
#

I just started using another framework also, noticed how bad the standard one actually is, or well, just inefficient

prisma wave
#

the vanilla system is fine, but yeah it's pretty verbose

#

it leaves all the work up to you

timber oak
#

Do you by any chance know which framework this is?

    @Command(identifier = "duel start",
            description = "Start a duel against another player")
    public void duelStart(CommandSender sender,
                            @Arg(name = "playerName", description = "Player Name")String playerName
                        ){
prisma wave
#

hmm

#

matt's maybe?

#

i.e triumph

#

it's not ACF or cloud

ocean quartz
#

nope

prisma wave
#

possibly worldedit's one then

timber oak
#

Hmmm

#

Wait worldedit got a command handler?

quiet depot
#

yes

prisma wave
#

well, it uses one

quiet depot
#

isn't it called piston or something

prisma wave
#

no idea

timber oak
#

Hmmm cant find it

quiet depot
timber oak
#

Ah ty

onyx loom
#

mf better

prisma wave
#

shut

onyx loom
#

no u

timber oak
quiet depot
#

yes that's piston

#

looks like it at least

timber oak
#

Ohhh alright, ty! Couldn't find examples of Piston in the git

quiet depot
#

actually no

#

that might not be piston

#

seems piston calls description "desc", not "description"

#

and I'm just looking at w/e for examples

timber oak
#

Rip

potent nest
#

looks like a clone tho 🤔

quiet depot
#

where'd you see it?

potent nest
#

I mean it's pretty similar in the things you see in that example, besides the annotation parameter names

timber oak
steel heart
#

Don’t they use intake?

steel heart
potent nest
#

intake is pre 1.13/WE 6

steel heart
#

Oh lol

timber oak
potent nest
#

?

#

I linked you the code of the "command framework" you're looking for

#

it's all in core there

timber oak
#

Yeah ik, just looking for where it was originated from

quiet depot
#

could be unique

timber oak
#

It's not, they got it from somewhere

#

The current owner couldn't find where it was from either, but the old developers didn't make it themselves

#

Looks a lot like Piston though, might just be a clone of it with a few changes

prisma wave
#

Why is it so hard to get a nice polybar theme

#

I hate customisability

#

I just want something that looks nice and works, not having to install and clone 59 different scripts and packages

#

copy some shitty git repo that uses an in house colour scheme util that doesn't even work

#

ugh

#

If anyone uses i3 and polybar and has a theme that looks nice please send me it

dark fjord
#

When I add a datapack to a java server. I have to add it to the datapack of a world. Do I have to add the data pack to EACH world if I have multiple? Or just one?

static zealot
sly sonnet
#

rm -rf'd

distant sun
#

Topless

static zealot
#

damn. that's sick

#

how much will one of those be/

distant sun
#

:))

#

So I don't quite like PHP but I need to do some server side stuff for a web project, would java be an acceptable alternative?

prisma wave
#

why wouldn't it be?

#

spring is OP

distant sun
#

just saying

ocean quartz
#

kotlin

#

ktor

#

do it

#

gaby

old wyvern
#

Ruby on Rails 😌

distant sun
#

It needs to be in Java, Matt

#

I mean, the result will be displayed in front end but still, dont want the code to be accessible

old wyvern
#

What?

ocean quartz
#

What does that have anything to do with being in Java?

distant sun
#

I need it to be made in java

onyx loom
#

🤨

distant sun
#

Stuff will be processed on server side and displayed on client side or whatever front end is called

obtuse gale
#

What does the code being in kt or java have to do with accessibility

onyx loom
#

which can still be done with like, any language no?

distant sun
#

I didnt said it does

distant sun
#

Let me rephrase that

I need to do a web project, using java will be a big bonus. The main stuff will be done on server side and then just display the final result on a page.

I could probably use js but im not a big fan and the code is accessible by anyone through inspect.

ocean quartz
prisma wave
#

I could probably use js but im not a big fan and the code is accessible by anyone through inspect.
i know a language that's really good for frontend web development as an alternative to js!

distant sun
#

Maybe, is not a full website, but yea

#

No bm, tyvm

ocean quartz
#

Still don't understand why it needs to be in java, but yeah you can do it any language

prisma wave
#

☹️

distant sun
#

Where I want to apply for a job they use java and having projects in java and possible spring, will be a good thing to have in portfolio

prisma wave
#

you can still use spring!

#

spring + elm

obtuse gale
ocean quartz
#

Wrong channel

distant sun
#

No bm

prisma wave
#

🙁

#

😶‍🌫️

ocean quartz
#

Ah okay, that makes sense Gaby

distant sun
#

Yeah sorry xd

eternal compass
#

very appreciated

#

its helpful code change doesn't work

prisma wave
#

i

#

Alt enter

distant sun
#

Dont you have an expansion to fix?

onyx loom
#

oooooooooooooooooooooo

old wyvern
distant sun
#

I actualy dont, unlike you :)

ocean quartz
eternal compass
#

its typescript

eternal compass
#

for the camera

#

and anyway alt enter doesn't do it, it brings up the menu

old wyvern
prisma wave
#

happily*

old wyvern
#

^

distant sun
#

Nope

eternal compass
#

Anyone know how to view how many messages a bot has cached?

#

In djs

#

I've got these 3

#

But not messages

steel heart
#

FrogBot

#

Possibly the best name

eternal compass
#

now its basically just a server meme

static zealot
#

you're a meme

steel heart
#

Lmao

static zealot
#

ur mama made only so others have things to laugh at

steel heart
#

No need to be so harsh

static zealot
#

oh sorry. from now on I'll start lying

steel heart
#

Good

#

You’re lying about you’re going to start lying then?

eternal compass
#

definitely

static zealot
#

no!?

eternal compass
steel heart
#

Maybe you’re lying about that too ASpikaThonk

eternal compass
static zealot
#

yes!?

eternal compass
#

that one's true

static zealot
#

damn you're a lie detecter too now?

#

detector *

eternal compass
#

always have been

static zealot
#

you're such a bad boy. I wanna marry you

eternal compass
#

another lie

static zealot
#

true!

eternal compass
#

that one's right ^

dawn hinge
#

😳 Blitz

static zealot
ocean quartz
eternal compass
steel heart
#

Btw spigot #help-dev if someone wanna code review this guy who made an async plugin

ocean quartz
#

Oh no

distant sun
#

where's "Async entity add to world" when you need it

forest pecan
#

that kid literally has a class for global variables (for the whole program)

#

global variables are a preschool programming concept

forest pecan
#

? wdym

distant sun
tranquil crane
eternal compass
# forest pecan ? wdym

you were saying preschool and I got really confused if you meant a class in-school about global variables or a java class lmao

forest pecan
#

no. i meant like its something we may have done in the beginners (something i did at least when i used to make games in only one file)

#

id have these "global variables" up at the top of the header

#

its something common for beginners to do

tropic echo
#

Hey ya'll. I'm losing my mind updating NMS code to 1.17. Is there anywhere I can get an mc-dev -> mojang mapping

hot hull
#

Google?

cinder flare
static zealot
#

idk

#

probably 5th one

cinder flare
#

damb

hot hull
#

Third one would make most sense of the 4

cinder flare
#

already hit em with a New API Feature

#

hopefully he can add an option for that while he's at it too!

static zealot
#

oh u PRIng to the PAPI wiki directly ?

cinder flare
#

no made an issue

static zealot
#

ah

hot hull
#

Do I still have perms to that I wonder

#

If I ever even had them

cinder flare
#

i mean it's open source

hot hull
#

Yea but I mean repo perms

cinder flare
#

ah

static zealot
#

repo perms? how do those work?

cinder flare
#

permissions to commit to a repo and stuff

#

write perms essentially

hot hull
#

Bruh everyone became dumb, or am I speaking in such a high english form

static zealot
hot hull
#

Ah okay, that was going to be my second guess

carmine ledge
#

hello does this server help anarchy players?

old wyvern
timber oak
#

When I add a value to an arraylist it goes to the index of the length of the list right? And not at the beginning index of the list

distant sun
#

d;jdk collection#add

ruby craterBOT
#
boolean add(E e)
throws NullPointerException, IllegalArgumentException, UnsupportedOperationException, IllegalStateException, ClassCastException```
Description:

Ensures that this collection contains the specified element (optional operation). Returns true if this collection changed as a result of the call. (Returns false if this collection does not permit duplicates and already contains the specified element.)

Collections that support this operation may place limitations on what elements may be added to this collection. In particular, some collections will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. Collection classes should clearly specify in their documentation any restrictions on what elements may be added.

If a collection refuses to add a particular element for any reason other than that it already contains the element, it must throw an exception (rather than returning false). This preserves the invariant that a collection always contains the specified element after this call returns.

Parameters:

e - element whose presence in this collection is to be ensured

Throws:

NullPointerException - if the specified element is null and this collection does not permit null elements
IllegalArgumentException - if some property of the element prevents it from being added to this collection
UnsupportedOperationException - if the add operation is not supported by this collection
IllegalStateException - if the element cannot be added at this time due to insertion restrictions
ClassCastException - if the class of the specified element prevents it from being added to this collection

Returns:

true if this collection changed as a result of the call

cinder flare
#

d;jdk ArrayList#add

ruby craterBOT
#
public boolean add(E e)
throws UnsupportedOperationException, ClassCastException, IllegalArgumentException, NullPointerException```
Description:

Appends the specified element to the end of this list (optional operation).

Lists that support this operation may place limitations on what elements may be added to this list. In particular, some lists will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. List classes should clearly specify in their documentation any restrictions on what elements may be added.

Parameters:

e - element to be appended to this list

Throws:

UnsupportedOperationException - if the add operation is not supported by this list
ClassCastException - if the class of the specified element prevents it from being added to this list
IllegalArgumentException - if some property of this element prevents it from being added to this list
NullPointerException - if the specified element is null and this list does not permit null elements

Returns:

true (as specified by Collection.add(E))

cinder flare
#

Appends the specified element to the end of this list (optional operation).

prisma wave
#

😭

ocean quartz
#

😭

onyx loom
#

send an invite 🙂

prisma wave
#

man

#

im scared

#

i dont want things to be awkward

obtuse gale
#

Kiss me then

onyx loom
#

what could be the worst thing that could happen 🙂

jovial warren
#

public static final ConfiguredSurfaceBuilder<SurfaceBuilderBaseConfiguration> NOPE = register("nope", SurfaceBuilder.NOPE.configured(SurfaceBuilder.CONFIG_STONE)); lol

#

SurfaceBuilders.NOPE

obtuse gale
#

Rip

distant sun
#

@jovial warren whats that?

jovial warren
#

a surface builder, used in world generation

#

well, more specifically, it's the configuration for a surface builder

#

it's from vanilla lol

static zealot
#

@onyx loom can you link me the Kotlin expansion please? I keep forgetting its not on the ecloud and I finally want to give it a try xD

onyx loom
static zealot
#

ah in papi github. ty

#

will remember that (nah I won't bcz I have a bad memory)

timber oak
#

Does it take a lot performance when getting strings from config.yml instead of just a variable

steel heart
#

Depends

#

If you cache it then no obv

#

But if it’s like reading the file each time yeah

#

Not so good idea

timber oak
#

Hmm, I'll work on a caching system then

static zealot
#

just use a lib for config. that does the caching for u xD

steel heart
#

Object mapping ValdemarF

#

The superior way PES_Blush

timber oak
static zealot
#

k

timber oak
onyx loom
#

pretty sure spigot already caches the config values if thats what u mean

steel heart
#

I usually have some static final fields as keys then map then with their corresponding values from a file and cache that into a map

timber oak
steel heart
#

Yes

#

It uses YamlConfiguration which caches its latest invocation of #load() to a LinkedHashMap

#

iirc

#

Well FileConfiguration does

#

But yeah same shit

timber oak
#

Oh yeah, so it actually only updates when running the methods, ic

#

as in saveDefaultConfig() or smth

steel heart
#

Yes my bad I meant load up there but save also does some io stuff

timber oak
#

Not sure what the difference between Option#copyDefaults() and JavaPlugin#saveDefaultConfig() is tho

#

I always just use both

steel heart
#

Tbf Idk nevertheless

#

Never touches the former and was long time I ref the latter

#

@obtuse gale we need your wisdom PES_SadGePray PES_SadGePray

timber oak
steel heart
#

Oh

#

Still don’t know, the Bukkit config is kinda meh

#

And I am used Configurate hehe

timber oak
#

Configurate?

#

Config API?

steel heart
#

Yes

#

The superior config api

timber oak
#

Worth looking into ig

steel heart
#

It’s worth learning (:

timber oak
#

Does it have a docs / wiki?

steel heart
#

Yeeeeeeeehaw

old wyvern
#

They missed an opportunity to name it configur8

steel heart
#

🥲

old wyvern
#

🥲

cinder flare
#

MF-CFG gang

onyx loom
#

they missed an opportunity to call it Konfigurate 🙂

old wyvern
#

😌

#

Honfigurate 🔜

#

Or maybe ConfigHurate

#

🌞

cinder flare
#

hey do you guys think I can link my WSL mariadb database with one on a separate linux drive that I dual boot lmao

steel heart
#

Yes you can (:

cinder flare
#

orly

#

hmm

#

benefits of running mariadb in a docker container vs natively?

stuck harbor
#

uhhh

#

well ya know

#

docker advantages

cinder flare
#

like?

stuck harbor
#

ya know

#

keeping things in containers

#

pretty klean

cinder flare
#

i mean is there really a difference tho

#

like to me

#

they both work basically the same right

#

sudo /etc/init.d/mysql start vs docker start mysql or whatevs

old wyvern
#

Easier to cleanup? idk

cinder flare
#

hmmm

old wyvern
#

ask lemmo

#

hes the docker man

#

Man runs himself in a container

cinder flare
#

can i get two dockers to share the same persistent storage

#

cause that could solve my problem

old wyvern
#

Yes

cinder flare
#

😮

onyx loom
#

ok but can u run docker inside docker

stuck harbor
#

probably

old wyvern
#

🙂

stuck harbor
#

stonccs

onyx loom
#

pog

timber oak
obtuse gale
#

GitHub SpongePowered/Configurate

timber oak
#

tyty

rugged oyster
#

wtf

compact perchBOT
#
📋 Your paste: Sdegno
https://paste.helpch.at/asipagakeg

A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.

dark fjord
#

Anyone know why some players are getting this error when trying to connect to my server? Paper 1.17.1. No plugins, a few Vanilla-Tweaks data packs. [03:45:45 INFO]: com.mojang.authlib.GameProfile@4c4cd544[id=<null>,name=Enthur,properties={},legacy=false] (/71.84.172.36:62682) lost connection: Disconnected

forest pecan
#

Try removing the data packs and seeing if anything is better

stray depot
#

I want add 1 second delay in PlayerInteractEvent .But when i add it ,it is not work.
Bukkit.getScheduler().scheduleSyncDelayedTask(this.plugin, new Runnable() {
@Override
public void run() {
playercooldown.remove(player);
}
},20L);
Can someone help me?

stuck harbor
#

use codeblocks

#

?codeblocks

compact perchBOT
#
FAQ Answer:

Use codeblocks for formatting code or configuration files:
```<language name>
<your code here>
```

For example:
```yaml
test:

  • “hi”
  • “there”
    ```

Produces:

test:
- “hi”
- “there”```
steel heart
#

When using gradle is it advised to use the term subproject instead of module.

frail glade
#

I think it's just subproject

#

I've seen it used interchangeably.

steel heart
#

Alright cuz in maven it’s module.

#

Cool ty

last mural
#

I have a problem with deluxemenu, when I put for example %player% or something related to placeholderapi those papi do not work

static zealot
normal talon
#

Now I need to figure out how to get the type of block that is falling and what kind of mob etx

#

😁

half harness
prisma wave
#

Normal fields should be too

#

It's the worst convention ever invented

half harness
#

but then how do you tell the difference from a class-

prisma wave
#

you don't

half harness
prisma wave
#

just saying it how it is

#

without an ide or context you can't really tell the difference

half harness
#

ripp

prisma wave
#

consider using F# instead, which has actual nice conventions :)

half harness
#

🤔

#

im using c# for unity

prisma wave
#

Guess what F# compiles to

half harness
#

uhhhhhh

#

but

prisma wave
#

😄

half harness
#

there's more support for c#

#

too complicated 😖

prisma wave
#

your loss

half harness
#

why does this remind me of haskell

prisma wave
#

well

#

They share some history

#

Both of them were inspired by ML (and OCaml)

#

But f# isn't as complicated or academic

forest pecan
hot hull
#

Die.

old wyvern
stuck harbor
steel heart
#

@old wyvern I need your help

old wyvern
#

Yes?

steel heart
#

What’s the difference between adapter and bridge pattern

#

Find them very similar

#

In fact identical imo but they’re not probably

lunar cypress
#

Adapter adopts one interface and delegates to an implementation with a different interface
Bridge decouples different hierarchies, i.e. when you have "2 directions" in which a class can vary

steel heart
#

Ah

lunar cypress
#

Bridge is a hard one for me too

steel heart
#

Feels a lot better not being alone on that one then lol but yeah trying to learn these patterns lol

lunar cypress
#

One example would be a "Weapon" interface with the implementations Hammer, Axe and Sword

#

And now you also want all of these with different enchantments

#

as own classes

#

They fit nowhere in your current hierarchy

old wyvern
cinder flare
#

man I thought we were talking about like vm network orientations lol

#

i barely know how those work and now it's all generic 😦

#

LuxPerms smiling_face_with_3_tears

steel heart
#

Oo thx Johnny and Yugi NPCStylistuwu

steel heart
#

LuxPerms, the successor of LuckPerms

old wyvern
#

Fork incoming???

obtuse gale
#

LuckPex

cinder flare
#

LuckyGroupMan

old wyvern
#

LuckyPermys

forest pecan
#

BetterPerms

lunar cypress
#

LuckPerms ?? more like SuckPerms amirite 😂 🤣

cinder flare
#

DeluxePerms

forest pecan
#

PermBan

cinder flare
#

FrozenPerms 🥶

old wyvern
#

😔

forest pecan
#

HotPerms

old wyvern
#

sPerms

cinder flare
lunar cypress
#

yes

cinder flare
#

so the scenario is: I dual boot windows and linux

obtuse gale
#

cringe

cinder flare
#

can I have one docker container on each, and when I start it, it uses the shared sql data

#

Obviously both will never be running at the same time

winter iron
#

Trio boot for windows linux and macOS

#

🙂

cinder flare
#

But that way I can share a dev mysql server between operating systems

forest pecan
#

😫😫😫

old wyvern
#

Apple bad!

forest pecan
#

Apple for rich people

winter iron
#

so i can use safari

#

🙂

forest pecan
#

And we aren’t all Bill Gates

cinder flare
#

safari haha

#

nah g, it's for that sweet, sweet Logic

forest pecan
#

I actually hate safari lol

forest pecan
obtuse gale
#

and this was with --depth 1 🥲

cinder flare
#

only 1.2GB!

#

weak

old wyvern
#

👀

#

git lfs?

forest pecan
#

What repo is that

#

LuckPerms?

old wyvern
#

I dont think that would come to 1.2 gb

forest pecan
#

Hm true

cinder flare
#

Whelp boys, looks like I'm updating to Windows 10 Insider Build 20211

#

Gotta mount my linux drive 🥲

cinder flare
#

ugh i can't believe I'm not allowed to get the preview build that allows drive mounting because my pc doesn't "qualify" for windows 11

#

oh sick

stuck harbor
#

i can't get windows 11 sadge

cinder flare
#

intel 8th gen processors or higher 🥲

stuck harbor
#

rip

distant sun
#

Lol

cinder flare
#

i need my goddamn mounting!!!

#

im looking to see if I can do it with plain old hyperv now

steel heart
#

Bruh this guy keeps talking about records should have public final fields instead of accessors like wat

cinder flare
#

let's just use properties in java okay

#

we aren't cavemen

steel heart
#

Ye

#

Oh I forgot no need to invoke a method if the field is public

#

Damn he outsmarted me PC_SusChamp

cinder flare
#

lmao

obtuse gale
#

you can't use method references on fields

cinder flare
#

i mean if you're using them as data classes

obtuse gale
#

the method is literally named exactly like the field lmao

cinder flare
#

i mean yeah but it's extra code

#

or does it create it anyways

obtuse gale
#

??

#

they aren't "created"

#

it's not like it "compiles" to a regular class

cinder flare
#

not gonna lie, don't know how records work

obtuse gale
#

a record class is a record class with record components

obtuse gale
#

which is neat

distant sun
obtuse gale
#

a record class is not your regular class with getters

distant sun
#

Yea just a data holder

steel heart
old wyvern
#

I thought they did

obtuse gale
#

They are kinda like enums

#

you can't extend java.lang.Enum and enum classes implicitly do so

#

same with records

#

There are special reflection methods for both of those too

old wyvern
#

Yes but they compile down to classes just like the same

obtuse gale
#

Well but there are markers saying "hey jvm this is a record class, i'm a special boy"

steel heart
#

Yeah has to be that

obtuse gale
#

if you decompile a classfile it won't be a regular class with getters, tostring hashcode and equals

steel heart
#

Else those new record methods wouldn’t exist

#

Or like reflection thingies

steel heart
#

Believe so

old wyvern
#

Id doubt that

steel heart
#

I think it uses invoke dynamic for the generated toString and hashCode and equals not sure

#

But heard someone say that

#

So might not be new ones

old wyvern
#

Why would it use invoke dynamic?

#

it should be invoke virtual since its part of Object

steel heart
obtuse gale
#

huh this is interesting

obtuse gale
#

This is the decompiled code according to fernflower

public record StupidRecord(String hehehaha) {
  public StupidRecord(String hehehaha) {
    this.hehehaha = hehehaha;
  }

  public String hehehaha() {
    return this.hehehaha;
  }
}
#

but the bytecode has methodhandles stuff?

steel heart
obtuse gale
#

I wonder what makes records special from other classes for one to not be able to reflectively modify the fields

#

besides... y'know.. being a record

#

lmfao

steel heart
#

hmm enums can’t have type params right

#

Can records?

obtuse gale
#

yes

steel heart
#

Oo

steel heart
obtuse gale
#

what?

steel heart
#

this.hehehaha

#

You never had to declare it explicitly

obtuse gale
#

it's the record component

steel heart
#

It’s inferred then hmm

obtuse gale
steel heart
#

Probably to avoid missing initializing those components

#

“record components”

old wyvern
steel heart
#

Can we have a normal class that extends Record? :0

old wyvern
#

the compiler may prevent it

#

but technically, yea

obtuse gale
#

and I take like 99% of what I said back

#

wow

#

this is why you don't trust what you read but try things yourself

old wyvern
#

lol

steel heart
#

🥲

old wyvern
#

capslock

#

💀

obtuse gale
#

lmfao

old wyvern
#

Oh wow. Sim cards run java

#

Java Card refers to a software technology that allows Java-based applications (applets) to be run securely on smart cards and similar small memory footprint devices. Java Card is the tiniest of Java platforms targeted for embedded devices. Java Card gives the user the ability to program the devices and make them application specific. It is wid...

onyx loom
#

intriguing

obtuse gale
old wyvern
#

😂

obtuse gale
#

angry Star noises

half harness
#

😂

old wyvern
#

Any idea which html purifier github uses?

obtuse gale
#

the best one fingerguns

old wyvern
#

🌞

obtuse gale
half harness
#

|| i just had to create a new text object since copy and paste didn't work :c ||

old wyvern
#

No like im looking for the one github is specifically using 🥲 , like for the about page in a user's profile

obtuse gale
#

probably that one?

cinder flare
old wyvern
#

I guess worth a shot

#

any attempts to google that just returns every html purifier on github

#

🥴

cinder flare
#

the bytecode for ```java
record CityRecord(Integer id, String name) {}

cinder flare
#

is

public java.lang.String toString();
    Code:
       0: aload_0
       1: invokedynamic #19,  0             // InvokeDynamic #0:toString:(Ledu/forty/bits/records/equals/CityRecord;)Ljava/lang/String;
       6: areturn

  public final int hashCode();
    Code:
       0: aload_0
       1: invokedynamic #23,  0             // InvokeDynamic #0:hashCode:(Ledu/forty/bits/records/equals/CityRecord;)I
       6: ireturn

  public final boolean equals(java.lang.Object);
    Code:
       0: aload_0
       1: aload_1
       2: invokedynamic #27,  0             // InvokeDynamic #0:equals:(Ledu/forty/bits/records/equals/CityRecord;Ljava/lang/Object;)Z
       7: ireturn```
#

makes the same constructor and accessor bytecode tho

obtuse gale
#

AH

compact perchBOT
#
📋 Your paste: Starmism
https://paste.helpch.at/xirikomutu

A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.

cinder flare
#

that is the bytecode for a normal class like that lol

obtuse gale
#

this all makes me wonder how the jvm prevents reflective field modification on records but not other classes with final fields too

#

but anything past java 9 regarding is so damn weird with jigsaw n all

obtuse gale
#

MethodHandles API 🙏

obtuse gale
#

Like, does it run a jvm and prints the defined class?

#

How does javap work 🥲

old wyvern
#

Seems to be correct

obtuse gale
#
  • the fact that Record::toString, ::hashCode and ::equals are all abstract
cinder flare
#

oh woah records use "accessors"

#

which are basically properties

cinder flare
#

yea haha

obtuse gale
#

this is all a discovery

#

g

cinder flare
#

man I wish I knew all this stuff that like Yugi knows

#

also what's javap lol

obtuse gale
#

🥲

obtuse gale
#

bytecode

#

thing

cinder flare
#

ah I see

obtuse gale
#

e.g. javap SomeClass.class

#

it can also take a shit load of flags, all described in javap --help ofc

forest pecan
#

am i funi

obtuse gale
forest pecan
#

My guy was literally storing like

#

INSTANCE(MainPluginClass.getInstance())

#

im not kidding lol

#

and his enum would take in a JavaPlugin or smthing

#

its so funny

#

then hes like, "its easier to get!"

old wyvern
#

oh lord

obtuse gale
#

what the fuck

#

man at that point just suggest using JavaPlugin.getPlugin or whatever lmfao

forest pecan
#

exactly

cinder flare
#

just use reflection obviously

#

harvest the this from a class forcefully

old wyvern
#

😌

obtuse gale
#

man I love how IJ highlights the method calls that may throw an exception when the cursor is standing on the catch keyword or on an exception in the throws declarations

frail glade
#

Catch it faster.

frail glade
#

Slimjar release when

old wyvern
#

By night, gonna wait 2 more hours for someone from the gradle slack to reply

#

Otherwise Ill just use the runtime resolver to generate an initial resolution file at compile time

obtuse gale
#

slack

#

what a place

old wyvern
#

yea they reply once in a blue moon

obtuse gale
#

lmao yea

old wyvern
#

Last time I asked, they replied after like 3 days

#

And I never noticed till like day before yesterday

#

omg

#

someone replied

#

YES

#

ok what

obtuse gale
#

LMAO

old wyvern
#

it says replied yesterday 11 am, but I swear i checked at midnight and it wasnt there

frail glade
#

Smh my head.

old wyvern
#

and... I dont think the answer is what I was asking for... 🥶

#

or wait no

#

it does

#

it points to an issue

frail glade
#

So basically an issue that is going no-where.

old wyvern
#

😷

#

I guess I'll just use what we already have

obtuse gale
#

opened this issue on Jun 20, 2019

old wyvern
cinder flare
#

damn Yugi really got on slack for these guys

#

that's dedication

old wyvern
#

I already had slack

#

lol

#

Some hackathons and ctf require you having slack

cinder flare
#

ah I have it for my work

old wyvern
#

I see

humble silo
#

I just have no idea sometimes... (also before i was returning null on the catch, dont worry)

#

Ok am i dumb?

inline fun <reified E> PersistenceManager.query(key: Any): E? = try {
    getObjectById(E::class.java, key)
} catch (_: JDOException) {
    null
}

Should this not return the object if it is found and if an exception is thrown return null?

hot hull
#

Uh, I believe so

humble silo
hot hull
#

So exception every time

humble silo
#

this couldnt possible be a kotlin bug or smth?

humble silo
#

there isnt one

#

look at the video

old wyvern
#

Are you sure its actually going into the catch block?

humble silo
#

ok well it works as expected just with a basic test:

fun main() {
    println(doThis())
}

fun doThis(): String? = try {
    "Something cool"
} catch (_: Exception) {
    null
}
humble silo
#

Its really weird

#

but the getObjectById is perfectly fine

#

Ill send a video, one second

old wyvern
#

ok

humble silo
#

I dont know anymore

#

now its working

#

though the debugger says its doing the same thign as before

#

Im just gonna go cry in a corner somewhere

old wyvern
#

Probably some issue with kotlin's generated bytecode

#

might have generated wrong line number meta

#

these issues seem slightly common xD

cinder flare
#

i stg picking a DE is the hardest decision there is to make on linux

old wyvern
#

plasma is nice

cinder flare
#

you know what I want

#

I want literally exactly what I have on Windows visually

#

but with a linux backend

#

that's the dream

old wyvern
#

What specifically from windows? Because a lot look similar enough

cinder flare
#

literally just exactly what I have now

#

sadly there's no wallpaper engine on linux

old wyvern
#

welp

cinder flare
#

but like, the translucent taskbars

#

and the clock/date display

#

every DE gets that wrong

old wyvern
#

Wasnt there a distro that tried to mimic windows, maybe check out what de it used?

cinder flare
#

ReactOS? they mimic like windows xp lmao

old wyvern
#

No not react

#

I meant mimic, not remake

cinder flare
old wyvern
#

It was mostly just a skin I think

cinder flare
#

i just want exactly that

humble silo
cinder flare
#

I've literally never had problems with gradle dude

#

and it compiles way faster than maven

humble silo
#

you've never used jpms

#

well i guess im assuming

cinder flare
#

ah jigsaw

humble silo
#

How about JDO?

old wyvern
#

This isnt gradle's issue

humble silo
#

have you used JDO?

humble silo
#

100%

#

maven supports it way better

old wyvern
#

kotlin just has some quicks here and there

humble silo
#

like WAY better

old wyvern
#

Dude

humble silo
#

convince me otherwise

cinder flare
#

I have not used jigsaw or JDO

old wyvern
#

Neither of the build systems affect this

cinder flare
#

but everything else I've made has been awesome

humble silo
#

yes they do

#

its directly related

old wyvern
#

They have absolutely nothing to do with them

humble silo
#

....

old wyvern
#

I've had similar issues with maven as well

cinder flare
#

yeah like what's the problem?

distant sun
old wyvern
#

Its just minor issues with the kotlin compiler here and there, just report an issue

humble silo
#

so many issues with split packages and gradle has pretty much no tools to resolve them

#

and the modularity thing they have just straight up doest work as far as i can tell

cinder flare
#

you don't know how to use gradle modules?

humble silo
#

It patches modules during compile time but not runtime

cinder flare
#

no wonder you're having a hard time lmao

humble silo
obtuse gale
#

I've never had a single problem with jigsaw with gradle

humble silo
#

with kotlin?

cinder flare
#

this sounds like user error

old wyvern
#

you dont need to deal with gradle directly for jpms

#

You create the module file

#

like normal

humble silo
#

and then when you run into split packages?

obtuse gale
#

Yeah gradle doesn't really care about the module descriptor lol

humble silo
#

if you are using a library that doesnt quite support jpms

humble silo
#

like spring JPA

#

just doesnt work with it

#

all the rest of their libraries do

obtuse gale
humble silo
#

like when two jars have the same packages in them

#

thats not allowed

obtuse gale
#

It isn't, no

humble silo
#

but in old libraries it kinda worked

#

but then in java 9 it just throws when it happens

#

so you can get around it

#

and then have to patch the modules, which gradle really doest do well at all

#

and most of the time the answer is just to exclude some dependency, which sucks

cinder flare
#

this sounds like a case for relocation

old wyvern
#

patch them how?

humble silo
#

Im not going through some java 8 library and fixing all their issues

cinder flare
#

can you not just relocate one of them?

old wyvern
#

Im asking what patching would do here?

humble silo
humble silo
#

which would then combine the two modules you specify into one

humble silo
cinder flare
#

wtf no

#

you can rename packages

#

so they don't conflict

#

it's very easy

humble silo
#

with gradle libraries?

#

I mean that would cause issues for every other thing that uses them

#

like jakarta websockets, i dont use it but jetty does, so if i renamed those packages alot of jetty websockets wouldnt work

cinder flare
#

like you'd change an entire tree

#

so you'd change all of jetty

#

and all its dependencies

humble silo
#

that sounds pretty hard, then i would have to have a lib folder with static jars right?

#

and if i wanted to update versions?

cinder flare
#

no?

#

gradle does it for you homecicle

humble silo
#

really? how?

#

give

#

lol

humble silo
#

is this using the shadow jar plugin?

cinder flare
#

yeah

humble silo
#

that doesnt work with gradle 7

old wyvern
#

it does

humble silo
#

last i checked*

cinder flare
#

uh yes it does

old wyvern
#

use 7

cinder flare
#

i literally use it every day

old wyvern
#

the latest version

humble silo
#

can you send the github of it?

cinder flare
#

it's version 7.0

humble silo
#

I thought it only officially supported 6?

old wyvern
cinder flare
#

homie

cinder flare
#

go to the top of your gradle file

humble silo
#

oh ok

cinder flare
#

change the version

#

to 7.0

old wyvern
#

7.0.0

cinder flare
#

7.0.0

#

yea

humble silo
old wyvern
#

Ignore that

humble silo
#

lol

#

alr

cinder flare
old wyvern
#

Check the plugins portal always instead

humble silo
cinder flare
#

ima blame you for not looking at the latest release version

humble silo
#

that works

old wyvern
#

Why blame that developer instead of making a pr?

cinder flare
#

lol

obtuse gale
#

It's easier to complain

humble silo
#

becuase thats alot of work

old wyvern
#

🌞

humble silo
#

star loves my complaining

#

i can tell

old wyvern
#

lol

cinder flare
#

i'm still waiting on that pr for fixing using minimize, kotlin, shadowjar 7.0, and gradle 7.1 together to be accepted

obtuse gale
#

the what now?

old wyvern
#

which ?

cinder flare
humble silo
#

isnt asm on 9 now?

obtuse gale
#

Oh that stuff yeah I remember

cinder flare
#

actually records, not kotlin

obtuse gale
#

Well I never minimize so idrc l m a o

cinder flare
#

yeah i kinda stopped too

humble silo
#

Ok well thank you star for the shadow jar stuff, i think that will fix alot of gradle being the worst build tool

cinder flare
#

yeah turns out you were ignoring the really obvious solution to all your classpath problems lmao

obtuse gale
#

the worst

#

If it's so bad then why use it in the first place lmfao

cinder flare
#

it's not

#

it was user error

humble silo
#

so i have an excuse

obtuse gale
#

Pebkac

cinder flare
#

cause you didn't update the shadowjar version too numnuts

humble silo
#

nah i had the latest

cinder flare
#

obviously not

obtuse gale
#

X doubt

cinder flare
#

your version checking skills are obviously not up to par

humble silo
#

I took it directly from the gradle site when i tried it

cinder flare
#

so you swapped to gradle 7 like, a week after it came out? lmao

humble silo
#

well idk, that doesnt seem likely either

#

im probably just dumb, but i like to blame it on others 🤢

obtuse gale
#

Yeah we can tell lmfao

#

In other news

#

Star

#

Hi

cinder flare