#dev-general

1 messages · Page 203 of 1

heady birch
#

AppCode?

potent vale
#

Yes but how else will i make ios apps

quiet depot
#

yea

heady birch
#

Nah Ive seen it though

quiet depot
#

it requires xcode

#

kinda stupid

#

ig apple enforces that

frigid badge
#

nah otherwise you can't sign etc

#

and for testing and emulating

potent vale
#

React is JS and web ported

heady birch
#

Anything like phpmyadmin I can run locally (not sql workbench)

frigid badge
#

datagrip

quiet depot
#

heidisql

frigid badge
#

or tableplus

#

I have both open rn

potent vale
#

No sql workbench?

frigid badge
#

tableplus for redis & datagrip for all other sql dbs

quiet depot
#

i never figured out how to use datagrip as a replacement for phpmyadmin

#

I highly recommend heidisql

heady birch
#

XP time

quiet depot
frigid badge
#

now use the rest repositories 😉

#

or elide

#

or crnk

quiet depot
#

yeah gonna use rest repositories

#

gotta figure out the security stuff first

frigid badge
#

they better make a way to change the json output to follow the json:api spec

heady birch
#

Will have to try that out in ecloud- instead of crnk

#

"spec" I hate specs.

prisma wave
#

th:value

frigid badge
#

nah the reason for that is because then you can use a library in your frontend

#

which knows the spec

#

and then you don't make calls yourself

heady birch
#

th:if="${@someCoolBean.getSomeValue()}"

frigid badge
#

then it feels like you are using an ORM in the frontend

heady birch
#

Ah thats clever

#

So you duplicate the code 🙂

quiet depot
#

niall

frigid badge
#

it removes even more boilerplate code

quiet depot
#

any chance you know off the top of your head, how to make spring security token based, supplied via headers?

frigid badge
#

allowing rapid development in an incredibly clean way

quiet depot
#

cuz currently it just shows a login page

#

don't want that

frigid badge
#

use JWT

#

and pass the jwt token as bearer

#

in the authentication header

#

ez

heady birch
#

I do not i'm afriad

#

Only used the login form stuff

frigid badge
#

he's never done non session stuff

quiet depot
#

i mean it's baeldung so ofc it is

#

but is it the right thing?

frigid badge
#

no idea, but baeldung is good

heady birch
#

Probably yeah- I never undertood the token servers though

quiet depot
#

aight well that's a good read, for tomorrow

#

gn peeps

heady birch
#

Goodnight

frigid badge
#

goodnight

empty flint
#

Can a plugin create a new folder outside it's own plugins/<plugin> folder?

#

I remember the access being restricted and all that but can I create a plugins/<arbitrary new folder>?

ocean quartz
#

Pretty sure you can, since you are able to delete files like worlds which are completely outside

prisma wave
#

You absolutely can

#

Nothing in plugins is sandboxed afaik

hot hull
#

You should download Fuck1.8

#

And see magic happen

empty flint
#

And see magic happen
@hot hull Not this again. That's how I got to re-install my last VM windows dist. I wanted to see the magic happen and little did I know the magic was a russian ransomware 😂

potent vale
#

Good idea

#

Lets program a botnet

frigid badge
#

you have access to everything the server has access to

#

so if the server is ran by root you can access everything

#

which I hope not

prisma wave
#

what's wrong with that? there's no such thing as a malicious plugin

static zealot
#

right xD

potent vale
#

If it has access its possible

prisma wave
#

/s

hot hull
#

Ah yes just go download the dudes homework folder reversed_fingerguns

steel heart
#

I mean selfop plugins is kinda lit although idm if root or not

heady birch
frigid badge
#

ew

heady birch
#

Why's it using plural lol

frigid badge
#

dunno

prisma wave
#

@frigid badge you might know this:
i'm trying to make a docker image that wraps miniserve (a lightweight file serving http server) with the args I need and a few default files.
I currently do this CMD ["miniserve", "--index index.html", "images"] but miniserve errors (invalid syntax apparently).
When I run it in bash with miniserve --index index.html images, it works fine.

Am I doing something wrong here?

frigid badge
#

you should use ENTRYPOINT ["miniserve", "--index", "index.html", "images"]

#

@prisma wave

prisma wave
#

aha

#

lemme try

#

hmm

#
ERRO[0001] error waiting for container: context canceled 
#

odd

frigid badge
#

did you rebuild it

prisma wave
#
FROM svenstaro/miniserve:0.10.0

ENV PORT 8080

EXPOSE ${port}

WORKDIR /app

COPY . /app

ENTRYPOINT ["miniserve", "--index", "index.html", "images"]```
this is the full file
#

yeah pretty sure I did

#

do I need to clean build or something

frigid badge
#

just give it a diff tag

prisma wave
#

how would I do that lol

frigid badge
#

-t

prisma wave
#

i'm just doing docker build FolderName rn

#

ah

#

ty

#

hm same thing

frigid badge
#

did you run with the new tag

prisma wave
#
docker build ImageServer -t lol
docker run -t lol
#

I think so?

frigid badge
#

let me test

#

brb

prisma wave
#

ok

#

Do you need the folder or anything?

frigid badge
#

for me it says it can't find miniserve

#

so you need to specify the absolute path

#

instead of just miniverse

#

(is my guess)

prisma wave
#

hmm

#

so now I have to work out where it's installed to?

#

or is there a fancy docker way of doing it

frigid badge
#

ohhh

#

no

#

I already know the problem

#

this copies to /app

#

so miniserve is already in /app

#

and you are overwriting it

prisma wave
#

ahhhhhh

#

i see

#

never would've thought of that lmao

frigid badge
#

so change your workdir

#

and instead of miniserve => /app/miniserve

prisma wave
#

should I change the COPY too?

frigid badge
#

yes

prisma wave
#

Okay

frigid badge
#

to the correct workdir

prisma wave
#

YES

#

working

#

ty

frigid badge
#

np

prisma wave
#

well kind of, it's not exposing the port but I think I can figure that out

#

possibly

#

is there anything special you need to do?

#

shouldn't the EXPOSE 8080 be enough?

#

nvm

#

got it

steel heart
#

You can't use reflection to access variables inside the init block right?

class Class {
  {
    var something;
  }
}```
prisma wave
#

You can't use reflection to access any variables inside a method afaik

steel heart
#

ok good

#

so they're completely protected againist any power right?

prisma wave
#

I think instrumentation might be able to do something, but idk

#

probably safe

steel heart
#

But who uses instrumentation?

prisma wave
#

¯_(ツ)_/¯

#

who uses reflection to change things inside an init block?

steel heart
#

"professional spigot dev" just learned reflection wouldn't be able to access it

prisma wave
#

@frigid badge what's the cleanest way of running an sftp server alongside the miniserve instance for file uploading? I presume they'd both have to be in the same container

frigid badge
#

no never

#

you have to use file sharing

#

basically you have a persisten volume

#

which you mount on both the sftp container and the miniserve container

prisma wave
#

I see

#

this is getting hectic

frigid badge
#

meh

#

should probably use docker-compose

heady birch
#

Lemmo do you think things would break If I added @GeneratedValue to a column that previously wasn't. Like I wouldn't want it to insert a same id

frigid badge
#

idk, probably not

#

since hibernate has no such thing as migrations right

#

so it should just resolve stuff like that on it's own

heady birch
#

Lol honestly sadly I think creating a duplicate entity might resolve this best

#

Airframe2 e.g

#

Add it all back in

heady birch
#

@frigid badge So it kind of worked so far... lol.... but the table has a load of random ids as the primary key 😬 will just have to see if the generation strategy takes care of it

#

Wonder if hibernate can regenerate a tables PK? I expect not. If the sequence now starts at the highest value orignally present (to be safe I will assume the maximum theoretical value of 16777215. (24 bit integer) (as the ID was originally the hex value of a string) I have quite a few IDs left! And even then can upgrade to a long in the future!

#

I have yet to test inserting a value. Might do that now fingers crossed it will work

frigid badge
#

you can literally see everything of the sequence in the db

#

it's in INFORMATION_SCHEMA

#

and even change it

prisma wave
#

@frigid badge how would I make a dockerfile that wraps docker run -p blah blah/blah?

#

CMD doesn't seem to work

frigid badge
#

nono

#

what are you even doing

prisma wave
#

for the sftp server

frigid badge
#

why would you have a docker run inside a dockerfile?

heady birch
#

Oh dear I do not think this is good

frigid badge
#

that wouldn't even work since you don't have docker installed on the image

prisma wave
#

using caprover to get everything setup easily, but you can only provide either a Dockerfile or an image name - you can't pass arguments

#

so apparently you're supposed to wrap the thingy

#

idk

frigid badge
#

??

prisma wave
#
FROM atmoz/sftp:latest
CMD ["atmoz/sftp", "admin:password:::/var/data/images/"]
``` I have this atm, but it's very wrong
frigid badge
#

just use docker-compose

#

and have 2 containers with 1 volume

#

and bind the ports

#

ez

#

I'll make the file in a sec

prisma wave
#

hmm

#

ok

#

I've got 1 of the containers + volume working already

#

just need sftp to hook into it now

heady birch
#

Top query is a newly inserted row

#

It's ID is lower than ones that already exist.

#

So I'm worried in future- its gonna hit an existing one and crash 😬

#

@frigid badge 🥺

prisma wave
#

Lemmo is in high demand tonight

heady birch
#

He's mine!

#

I feel so bad I cant imagine how annoying i've been

prisma wave
#

imagine how everyone in #development feels asking how to make variables

heady birch
#

arabic variable

#

5 = a

prisma wave
#

scary

#

that would be a good esoteric language

prisma wave
#
{
    "Hello")println(
} main)( fun
heady birch
#

Sorry ive never worked with sql 🤷‍♂️

prisma wave
#

lmao

distant sun
#

smh

hot hull
#

Kek

frigid badge
#
version: '3.7'

services:
  sftp:
    image: yoursftpimage:tag
    volumes:
      - sftp_volume:/whatever

  miniserve:
    image: yourminiserveimage:tag
    ports:
      - 80:8080
    volumes:
      - sftp_volume:/whatever

volumes:
  sftp_volume:
    driver: local
#

untested

#

change your images & volume mounts respectively

#

and optionally change the port

#

where the left port is the host and the right port is the container

#

@prisma wave

#

@heady birch uhm

#

so how did you generate the ids then?

#

like what did you do

heady birch
#

I didnt

#

Which probably wasn't the best idea. but i can get hibernate to generate for a new column

frigid badge
#

that's not smart to do

#

no shit that you are now having collisions

#

you need to generate different ids

#

just normal sequence ids

heady birch
#

Yeah I assumed hibernate would bump its sequence number to the highest id in the table

frigid badge
#

no

#

and you don't want gaps either

heady birch
#

True- however on an unrelated note the default generation uses a global sequence 😐

frigid badge
#

yeah iknow which you can change as it's a column in the db

heady birch
#

So its not per table. Also how can you do batch inserts with hibernate using the database sequence generation

frigid badge
#

idk I'm no hibernate expert

heady birch
#

`7. @Id Generation Strategy
When we want to use batching for inserts/updates, we should be aware of the primary key generation strategy. If our entities use GenerationType.IDENTITY identifier generator, Hibernate will silently disable batch inserts/updates.

Since entities in our examples use GenerationType.SEQUENCE identifier generator, Hibernate enables batch operations:`

#

When you say let the database generate the ids that is GenerationType.IDENTITY

#

[42000][1075] Incorrect table definition; there can be only one auto column and it must be defined as a key. And why then heck am I getting this when adding an auto increment

#

there is no other auto key, and I assigned it UNIQUE

#

Uh nvm. got an AI column added.

hot hull
#

What a professional I must say

heady birch
#

I should have just given lemmo access @frigid badge

#

You dont think you would be able to repair it with access do you?

empty flint
#

Today, I saw a real block of Diorite

#

Anybody wanna see?

heady birch
#

yeah

empty flint
#

I think the texture is pretty fitting 🙂

frigid badge
#

@heady birch idk

#

I don't even understand anymore what you've done lmao

heady birch
#

Me neither

#

Im kind of deleting foreign keys and re adding them with sql manually

prisma wave
#

@frigid badge thanks, how would I specify arguments to miniserve with this?

#

or should I still have a dockerfile

frigid badge
#

entrypoint:

prisma wave
#

Alright thanks

steel heart
#

@prisma wave yo how to train your dragon, absolutely pog music

prisma wave
#

absolutely

#

good soundtrack

steel heart
#

The entire story and the music is epic

prisma wave
#

Ive not even seen the third film lol

#

It just came up on a spotify mix

#

but yeah the soundtracks are very good

hot hull
#

Yes Conclubablebleble how to train your dragon good af

prisma wave
#

@frigid badge sorry for all the pings, but I'm incredibly dumb
I have my root domain being served by nginx, I only just realised that means I can't have miniserve listening to port 80 too (for img.bristermitten.me)

If i was to reverse proxy img.bristermitten.me with nginx, surely I'd lose a lot of the speed that miniserve gives?
Any fancy dns tricks you can do to replace img.bristermitten.me:80 with img.bristermitten.me:8080 or something?

Or maybe I should just use nginx for everything and not worry about 2 webservers

#

Conclubablebleble

#

🤔

steel heart
#

@hot hull yes also I have good update for Dino mod

#

Also can you make some models?

#

Or is that beyond your level?

#

I mean yeah, I got like a ton of Disney soundtracks recommended alex and all of those was literally hot lava fire water

hot hull
#

Time is not existant for me right now, but I could probably play around if and when I have some free time

prisma wave
#

lmao

#

kids movies have the best soundtracks

steel heart
#

Ok frosty noice, yes like Kung fu panda had some really delicious steaks as well

heady birch
#

Bro it worked

#

I did it

hot hull
#

Can't relate Niall :(

prisma wave
#

the kung fu panda soundtrack is amazing

heady birch
#

But now I kind of have 1 table with database id generation and the rest using hibernate

#

Ill just change it and leave a gap

#

Genius I am

frigid badge
#

nginx is very fast

#

you won't lose to reverse proxy

prisma wave
#

ah great

frigid badge
#

just change the port to 8080

prisma wave
#

miniserve does seem to be faster for static files so I didn't want to lose out on that

#

yeah

#

ty

frigid badge
#

in the docker-compose file

heady birch
#

So lemmo I'm kind of annoyed now

#

Everythings up. just got thymeleaf stuff to change

#

But the ID's on the airframe table are using the database generation, might just switch it back to hibernate, there would be a pretty massive gap though

frigid badge
#

no no

#

what you do is

#

you manually (or programatically) make those ids without gaps just normally

#

then you switch back to hibernate

#

and then you set hibernate's sequence number to the highest id

#

which you can change

#

since it's stored in INFORMATION_SCHEMA

heady birch
#

No

#

Its done

frigid badge
#

your database sucks

heady birch
#

Also what you described

#

Is what I was going to do earlier

#

Then you said no or something

#

I added AI like you said

#

I changed foreign keys like you said

#

so DONT go telling me to do it another way Lol

#

@frigid badge

#

I'm pretty sure it's fine?

#

@frigid badge What's the standard way of changing a column type, say I upgraded the PK from int to bigint, would it upgrade the foreign key constraints? Or would I need to do those manually?

frigid badge
#

you have to do that manually

#

just pls fix those gaps

heady birch
#

I don't think you understand

#
id            id         id
0             2          1
1             3          2
4             5          3
6                        4
``` Just how it works for some reason
frigid badge
#

hibernate is ass

heady birch
#

Just added my table in (using the AI generation)

#

Seems like the better choice, but cant really change to AI now

#

Or atleast it certainly is not worth it

#

Just got to update a couple hundred thymeleaf fields

prisma wave
#

ok lemmo, update:
docker compose didn't work, i think caprover messed some stuff up. it isn't running the commands properly, and if I just run compose normally, then the port bindings or something get messed up. is there any way to run the sftp image with arguments with just a plain dockerfile?

#

oh no he's offline

#

D:

prisma wave
#

oh ffs

#

it was all working fine, I was just using -p instead of -P for sftp

steel heart
#

elera

#

How does reflection work in kotlin?

#

Very same as java?

prisma wave
#

internally?

#

or just how to use it

steel heart
#

Yeah how to use it?

#

Would it be like the exact same?

prisma wave
#

you can use java reflection for kotlin

#

but bear in mind that some things might be renamed by the compiler

#

there's kotlin-reflect which is more idiomatic and supports the kotlin specific stuff

steel heart
#

Hmm okay nice

#

I’m going to learn kotlin inside out without writing a single line of it

frigid badge
#

@prisma wave ?

prisma wave
#

uh

#

i think i've fixed it

frigid badge
#

alright

heady birch
#

Hi lemmo you free tomorrow 7am - 10pm?

prisma wave
#

just trying to figure out permissions for the shared volume now

#

remote open("/index.html"): Permission denied
hmm any ideas?

heady birch
#

Lol joking lemmo thank you for your help today it all worked out in the end

prisma wave
#

someone suggested adding user: root to docker-compose but that didn't seem to change anything

#

seems like a bad idea too

frigid badge
#

@prisma wave you’ll have to run as a diff user

#

don’t run as root lol

#

bad practice

prisma wave
#

yeah I figured

#

wdym?

#

make a new user and chown the volume or something?

frigid badge
#

@heady birch np how did you end up getting everything done?

#

how are you running it now? @prisma wave

prisma wave
#

which bit?

#

the sftp image?

frigid badge
#

everything

prisma wave
#
version: '3.7'

services:
  sftp:
    image: atmoz/sftp
    volumes:
      - images:/img
    ports:
     - "2222:22"
    command: user:pass
    user: root
  img:
    image: svenstaro/miniserve:0.10.0
    ports:
      - 8080:8080
    volumes:
      - images:/img
    entrypoint: ["/app/miniserve", "--index", "index.html", "/img"]

networks:
  default:
   external:
     name: captain-overlay-network

volumes:
  images:
    driver: local
frigid badge
#

why the network

#

also it looks nicer to have entrypoint below the image directive

#

but that’s besides the point

#

you could just ssh into the container and run chown

prisma wave
#

why the network
@frigid badge caprover needs it to proxy apparently... i'm beginning to think this software isn't worth it

#

okay

#

docker attach?

frigid badge
#

never heard of caprover 😛

#

no

prisma wave
#

it's like a web gui for docker containers

frigid badge
#

docker-compose exec container sh

#

where container is sftp or ing

#

img*

fluid walrus
#

This is the memes channel right

#

?

prisma wave
#

close enough

fluid walrus
#

LMFAO

prisma wave
#

@frigid badge so I should:
make a new user
ssh into container
chown the /img/ dir

correct?

#

and then set compose to run as that user

frigid badge
#

the image is a completely different environment

#

so everything you do in your vps doesn’t go over to the container

#

so you cannot create a user outside of the container

prisma wave
#

oh wait

#

so the mapped img/ dir on the img container will have the same permissions as the images volume?

frigid badge
#

yes

prisma wave
#

i see

frigid badge
#

but honestly the best way is probably just making your own image

#

and chown in there

#

but you can test it using the ssh method

prisma wave
#

but I should still be making a new user and chowning rather than chmoding?

#

hm

#

what would this image do?

frigid badge
#

but doesn’t the sftp image not make a user and give permissions

prisma wave
#

idk the documentation is a bit vague

#

it makes a user yes

#

oh

#

wait

#

yeah...

#

chown -R user img/?

#

ah nvm I think I've found the problem

#

Each user is jailed in their home directory (for security). That means root is owning the home directory, and the user can not modify it's content. The user can only do changes inside sub-directories.

You have to create a directory (i.e. mount a volume) inside the user's home directory, and then you can upload files there. In your case, this will be the "share" directory.

frigid badge
#

well there you go

prisma wave
#

omg

#

it works

#

thanks a lot for the help and patience lol

static zealot
#

we finished reading the w3schools wiki boizz. Time to read another 😦

obtuse gale
#

w3 🤔

hot hull
#

@quiet depot So what do I compile now to test the placeholders?

quiet depot
#

@hot hull are you using the test subproject?

hot hull
#

Idk should I?

quiet depot
#

yes

#

that's what I said when we were first setting it up

hot hull
#

Could not set process working directory to 'C:\Users\Frosty\Desktop\Projects\IntelliJ\PlaceholderAPI3\test': could not set current directory (errno 2)

quiet depot
#

?

#

idk what that means

hot hull
#

Neither do I, that's what I get when I shadowJar the joint

quiet depot
#

show me your test subproject, file structure

hot hull
#

cba to mess with this right now cause I gotta leave soon, I'll mess with it when I get home if I have time

#

You explained it to Gaby in #development right? so I can just read that

quiet depot
#

yea

obtuse gale
#

Anyone else got a project thats like... never finished?

#

Like I always work on it but its never finished

quiet depot
#

rpf

steel heart
#

Yes Aj that’s happens

#

Although it’s better if you’d finish it

distant sun
#

Fr

obtuse gale
#

France

distant sun
obtuse gale
#

Normandy

obtuse gale
#

Yeste

remote goblet
#

Gimme some copypastas to type to fill my time

#

I’m incredibly bored

static zealot
#

oh man designing a bounty system is hard. 😦

eternal blade
#

how i can obtain a jar file of purely nms without spigot or bukkit?

obtuse gale
#

There 👆 👆 👆

#

¯_(ツ)_/¯

#

As pure as it gets

eternal blade
#

it doesnt contians the packets

#

it is needs to be like this on the same path

obtuse gale
#

Run buildtools then

eternal blade
#

i did

obtuse gale
#

It will install the deobfuscated compiled jar on your local maven repo

#

Do I smell 1.8. 🤔🤔🤔

eternal blade
#

well it is an example

remote goblet
#

Burn it

eternal blade
#

i have it for more version all

#

all i saw is md_5

obtuse gale
#

1.8 bad, latest good

eternal blade
#

path there as well

remote goblet
#

+1.16 > -1.16

obtuse gale
#

At very minimum 1.12

#

But 1.16 bettee

eternal blade
#

jeez drop the version trash talk like eclipse and IntelliJ

hot heron
#

The packets are in net.minecraft.network anyway

obtuse gale
#

run buildtools

hot heron
#

According to minidiggers tools

obtuse gale
#

it will install the deobfuscated compiled jar under org.spigot:minecraft-server:<version> in your local repo

dusky drum
#

umm

java.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;
```?
obtuse gale
#

lol wth

#

that shit ain't in java 8

dusky drum
#

?

obtuse gale
#

idk lmao

#

nor 11

dusky drum
#

same like wtf is this

#

its java 1.8.0_261

obtuse gale
#

like bruh when did that get introduced

#

it doesn't have a "since" thingy in the docs

dusky drum
#

works fine for me but just 1 user has issues

dusky drum
#

why da fk do i have to login on oracle to download JDK 1.8?==0'

onyx loom
#

?jdk

compact perchBOT
onyx loom
#

dont bother with oracle jdk 🌝

dusky drum
#

danke

#

that download speed tho

distant sun
#

Cuz it's an old version I guss

ocean quartz
#

Hello fellow skin dwellers

#

How's everyone been?

#

I gotta check pdm, haven't had time yet 😫

prisma wave
#

dw you're not alone

#

I haven't either

onyx loom
#

@hot hull what u gonna do about it

hot hull
#

Smack u

onyx loom
#

ok

#

bet

#

can i smack u back thO?

hot hull
#

Ooo a smack fest

#

I like it

ocean quartz
#

Frosty killed Kali

#

Vote him out

umbral mica
#

idk red kind of sus tho

hot hull
#

Red do be sus

umbral mica
#

vote glare!

onyx loom
hot hull
#

Good thing I'm always aqua 😎

ocean quartz
#

Watch disguised toast, he's always cyan and many times impostor and most of the times wins

onyx loom
#

lmao im black 👀

umbral mica
#

but toast is always teal lol

#

also dammit I guess that means I'm always sus since I'm always the carrot

hot hull
#

Bruh cyan, teal, y'all colorblind?

ocean quartz
#

That is cyan lol

hot hull
#

That's aqua

ocean quartz
hot hull
#

Whoever made that emoji is a 4head

ocean quartz
#

The creators of the game lol

hot hull
#

Bunch of idots

umbral mica
#

ugh I forgot defaults don't have embed image perms here ARGH

hot hull
#

Get gud

onyx loom
#

its 100% not teal lmao

hot hull
#

Nor is it cyan

#

It's literally aqua

umbral mica
#

Get gud
hi am from planet mc can I have trusted to test your discord server?

ocean quartz
#
Among Us Wiki

Cyan is one of the main colors in Among Us that the player can customize. Trivia Cyan was not in the original game, and was added later with Lime at the 2019.4.24 version., In the wallet that you...

hot hull
#

Completely blind idots

onyx loom
#

maybe u blind 🤔

hot hull
obtuse gale
#

bro frosty

#

got any more of them pixels?

#

also, needs more jpeg

hot hull
#

It's a screenshot of a screenshot

#

Gimme a break

umbral mica
#

wait why can fefo embed stuff but I can't 😦

#

oh dammit you need to be rank 10 dammit

obtuse gale
#

lul

prisma wave
obtuse gale
#

It was me

#

I program in Maven

onyx loom
#

yea idk why u didnt put gradle on the pic tho bm lol

prisma wave
#

gradle sucks too

#

Elara build tool

onyx loom
#

😳

hot hull
#

Frozen build tool

#

Where it freezes your pc reversed_fingerguns

onyx loom
#

😮

#

exciting

#

whens it coming?

hot hull
#

When my pc unfreezes

onyx loom
#

o

#

have fun with that 😅

#

and good luck

prisma wave
#

while true {}

surreal quarry
#

while false {}

obtuse gale
#

while !false

prisma wave
#

average elara syntax

obtuse gale
#

while;

surreal quarry
#
val foo = true
val bar = !foo
while (!bar) {}```
old wyvern
#

ew

surreal quarry
#

i think thats the best option tbh

obtuse gale
#

for (;;)

old wyvern
#
let foo = true
let bar = !bar
while !bar {}
surreal quarry
#

let me -> slap you

old wyvern
#

how about -> no u

surreal quarry
#

me -> z_UnoReverse

#

wow thats really small

ocean quartz
#

Also wise people, can you enlighten me on what the fuck is this?

old wyvern
onyx loom
#

NOOP

ocean quartz
prisma wave
#

like Function.identity()

#

Just awful syntax

ocean quartz
#

What is it used for?

obtuse gale
#

nothing

#

no-operation

#

maybe my method takes a transformation function, but if when calling the method I don't want to transform anything, I pass noop

prisma wave
#

The identity function is as useful as 0 is

#

Especially in functional programming

steel heart
#

Basically an empty function

#

Maybe it’s used in case you have to fill in a function parameter or something

obtuse gale
#

String::toString

steel heart
#

That’s just for strings

prisma wave
#

T => T

#

Haskell

obtuse gale
#

That’s just for strings
I know

#

still applies to that case lol

prisma wave
#
identity :: a -> a
identity a = a
#

I think that's right

obtuse gale
#

I think I've used String::toString more times than Function.identity()

empty flint
#

Has anybody used ResourceBundles to translate your plugins before?

steel heart
#

Yeah I mean when it comes to strings that would be perfect fefo

narrow sandal
#

lads, anyone able to give me the regex to find an instance of
@<string> but ignore * @<string>

obtuse gale
#

^ means "the beginning of a line" so you might want to stick that at the beginning of the pattern @narrow sandal

narrow sandal
#

I know that much

#

Just confused af with negating

#

Oh someone fixed my group

empty flint
steel heart
#

\(^$^)/

#

^epic regex

obtuse gale
#

you forgot to escape

#

everything

#

java be like ^\\\\\\(\\^\\$\\^\\)/$

#

cuz strings

surreal quarry
#

""" """

steel heart
#

lol true

prisma wave
#

Yet another problem that elara solves natively

steel heart
#

genius?

surreal quarry
#

no escaped characters?

obtuse gale
#

elara escapes everything you type

prisma wave
#

^

obtuse gale
#

e v e r y t h i n g

prisma wave
#

Exactly

#

Everything is automatically escaped

steel heart
#

even the automatic escape is escaped

prisma wave
#

It's a very elegant solution really

onyx loom
#

elara sm0rt

surreal quarry
#

wild

prisma wave
#

It's honestly quite embarrassing that no other language has thought of this before

empty flint
#

It's honestly quite embarrassing that no other language has thought of this before
@prisma wave HMMM??? """ """

#

Also, can you "unescape" anything? How do you use \n in elara?

prisma wave
#

you don't

#

@prisma wave HMMM??? """ """
@empty flint hardly an elegant solution

#

trimIndent() sucks and is badly optimised

#

Incidentally I am joking, automatically escaping everything is an awful idea

old wyvern
prisma wave
#

elara will have regex literals

surreal quarry
#

@ocean quartz how would I broadcast a markdown message with mf-msg

ocean quartz
#

Prolly need to get all players

surreal quarry
#

yea but that won't include console i dont think

ocean quartz
#

Needs to be done manually though, can't really do much about that since it's component related

surreal quarry
#

alright

surreal quarry
#

officially using mf-msg for chat styling lol

#

first time ive actually played around with it. pretty cool stuff matt

ocean quartz
#

Noice ;p

#

@prisma wave Do you by any chance know how to add a file to the jar when compiling? Like, from a gradle plugin
The docs are horrible

prisma wave
#

A file or a dependency?

ocean quartz
#

A single file

#

Like creating a yaml file inside the jar when building

prisma wave
#

I do indeed

#

Iirc you can make a file in project.buildDir/resources/main and it'll be included

#

That's what pdm does anyway

ocean quartz
#

Ooo let me give that a try

surreal quarry
#

idk i guess not

#

i feel like they are usually almost black but maybe someone else

ocean quartz
#

That was github fingerguns

surreal quarry
#

ah lmao

normal talon
#

Matt u the owner of mattstudios.mf ?

ocean quartz
#

Yeah

normal talon
#

oh xd noice

steel heart
#

Lol

ocean quartz
steel heart
#

F

static zealot
#

Oh man I'm so afraid to compile this plugin xD

ocean quartz
#

God, testing a gradle plugin is so annoying

static zealot
#

same

ocean quartz
#

Was dreading having to write recursion to loop through all the files but Kotlin is like "here have some saving functions"

ocean quartz
#

Trying to check for an annotation on a class file after being compile, it's been so hard, won't sleep till i do it xD

frail glade
#

Ooo whatcha up to

ocean quartz
#

Making a gradle plugin to generate plugin.yml, what I want is for simply marking the main class with like @Plugin and let the compiler get the package and file for the main class

frail glade
#

Check how sponge does it?

ocean quartz
#

Sponge isn't done on compile time is it?

umbral mica
#

uh that already exists matt I think

ocean quartz
#

I know

frail glade
#

I could've sworn it was

#

Maybe not

#

Does velocity do it?

umbral mica
ocean quartz
#

I can check Glare
And i know i know, just doing it so i can learn
(also that one requires you to add the main class path, that's what i am trying to change)

frail glade
#

He's trying to scan for the main class via an annotation

ocean quartz
#

Now I think i can class load it

frail glade
#

That's so wack. Compiling and load the class at the same time

ocean quartz
#

Aight i give in, too late, i'll leave this for tomorrow me

static zealot
#

yo this plugin turned out pretty good. Not to many errors xD I was expecting the whole plugin to be broken

#

gn Matt

#

I didn't sleep the entire night. 7:30 am already

frail glade
#

What plugin?

static zealot
#

I'm working on a BountySystem

#

for my own server.

#

Got like 10 errors but fixed all of them so far.

frail glade
#

Ayyy! Nice!

static zealot
#

I just have to see why players can take items from the GUI even tho they shouldn't be able to

frail glade
#

Ooo

static zealot
#

the only thing I know for sure I can optimize is the way I store data 😦

#

but I'm to lazy to learn sql

distant sun
#

Do it

frail glade
#

It'll help over time.

static zealot
#

well actually now that I think about it all I store is id, 2 UUIDs and an int(Bounty) which is not that much

#

I know it will but its to hard for me xD

ocean quartz
#

5am for me, have a bunch of stuff i still wanna try, like checking if the classloader has the classes, and maybe even bytecode reading, but i know if i don't sleep now I'll regret it xD

frail glade
#

Go sleep

distant sun
#

Go to sleep nerd

static zealot
#

yeah I understand you. I just broke my sleep times after I tried so hard to sleep at night and stay awake during the day. What I'll try to do now is stay awake til like 8-9 PM xD

ocean quartz
#

Aight imma head out
Night everyone xD

frail glade
#

Yeah it's almost midnight here, I'ma head out too. 👋

regal gale
#

Is it really dangerous to have a module dependency on js expansion though?

obtuse gale
#

This might be a dumb question

#

is there a difference between

class A{
private final Thing thing = new Thing();
}```

And
```java
class A{
private final Thing thing;
public A(){
this.thing = new Thing();
}```
hot hull
#
       ˇ Space here.
class A{
static zealot
#

xD

distant sun
#

The compiler will move it inside constructor i believe

static zealot
#

sane here A()X{

obtuse gale
#

so theres no difference really

#

other than ones cleaner

hot hull
#

yus

hot hull
#

@quiet depot How do you mark a repo as hackoberfest?

quiet depot
#

add hacktoberfest as a topic

hot hull
#

I'm kinda blind, mind telling me where one does that

distant sun
#

Main page, about

hot hull
#

Neat, thanks

#

Now if anyone wants to contribute to FJ fingerguns

frigid badge
#

there is definitely a difference lol

distant sun
#

Enlight us then @frigid badge

hot hull
#

There isn't a difference tho?

prisma wave
#

There's definitely a difference

hot hull
#

Englighten us please

prisma wave
#

afaik field values are evaluated before constructor calls

#

or it's in the order

#

So

frigid badge
#

fields are indeed intialised before the constructor is called

hot hull
#

Meaning there's a small order difference

#

Which means there's no difference cause noone cares fingerguns

prisma wave
#

It can lead to subtle NPEs lol

distant sun
#

@SupressWarming("all")

hot hull
#

But your IDE would be yelling at you from the start tho

distant sun
#

Dont rely on your ide

#

Esp on a slow computer lol

hot hull
#

Everyone keeps saying that, bruh I'm not going to code on a piece of paper, so I'll keep relying on the ide

#

It's there for a reason

distant sun
#

Mine is broken on kotlin

#

It sometimes say I can remove a variable even if its used

frigid badge
#

u prob f up

distant sun
#

:(

#

Dont want to install it again

hot hull
#

Can someone seriously explain to me why I shouldn't rely on my IDE

regal gale
distant sun
#

Sometimes it can give you false warnings or be unsure about stuff like casts

regal gale
#

I might add that if I wanted to 👀

static zealot
old wyvern
#

Making a gradle plugin to generate plugin.yml, what I want is for simply marking the main class with like @Plugin and let the compiler get the package and file for the main class
@ocean quartz
Its probably better to just use an annotation processor than reading the classes for it

static zealot
#

in javascript can you multiply floats with integers ?

old wyvern
#

Yes

static zealot
#

so if I have a var test = 100 I can just do var newVar = test * 2.5 ?

old wyvern
#

sure

#

Thats a thing in other languages as well, not specific to js

static zealot
#

oh

#

I actually didn't know that. Never tested it

#

thanks

old wyvern
#

🍉

#

Also the specific diff in js would be that there is only 1 number type there, there is no specific int in a sense

#

its all just doubles 🤷‍♂️

static zealot
#

yeah kinda makes sense.

ocean quartz
#

@old wyvern Don't I need the class' instance to process the annotation?

old wyvern
#

No just the annotation names

#

the round environment argument has a function to get all classes annotated with a specific annotation

ocean quartz
#

I can give it a shot

languid ore
#

any ideas what i could code tho?

#

I'm not very creative

obtuse gale
#

a brainfuck interpreter

ocean quartz
#

@old wyvern How do you get a RoundEnvironment?

old wyvern
#

You get it as an argument in your process method

ocean quartz
old wyvern
#

use the earlier method I linked, youd need to check and cast to TypeElement

#

@ocean quartz

ocean quartz
#

But that's what i mean though, idk how to get to there xD
For that i would need the RoundEnvironment which i don't have either
Basically all I have is a File which is a .class file

old wyvern
#

Could you explain what you are working on atm?

ocean quartz
#

Basically I have a gradle plugin, on compile it'll loop through the compiled files and check for a specific annotation then get the path to the class that has it, that's all

old wyvern
#

Oh you would require a normal dependency for this to work

#

I assume you can add it just by them applying the plugin tho?

ocean quartz
#

I am not sure, though that means i'd have to do the annotation stuff on the main project no?
All i want on the main project is to add the annotation, the plugin should handle everything else
Which means i can't really get any instances of any class or anything like that, only compiled class files

#

Which is why i was trying to use the url class loader

old wyvern
#

Yea the annotation processor would go in the main project

#

It doesnt need the instance of anything

#

You simply need to register it in your META-INF

ocean quartz
#

I can try it again in a sec, going to see if i can do the classloader one more time

old wyvern
#

Alrighty

ocean quartz
onyx loom
#

but is the annotation present 🤔

ocean quartz
#

No xD

onyx loom
#

o

#

pog

ocean quartz
#

Could have done that yesterday smh, the only error i had was because i was doing package.ClassName.class instead of package.ClassName..

prisma wave
#

annotation present: maybe

#

Then it's always correct

umbral mica
#

lol I saw that but I assumed you were reading the raw file and so needed that

onyx loom
#

or is it??

ocean quartz
#

5am brain doesn't think well

distant sun
#

lmao

onyx loom
#

a typical programmers day

prisma wave
#

anyone got a mirror repo of mvdw's that isn't constantly going down?

umbral mica
#

I mean couldn't you just clone from gh & mvn clean package?

prisma wave
#

just tried that

#

transitive dependencies

#

honestly cba

#

placeholder api depends on updater, which depends on spigot 1.9 (not spigot-api)

#

im just gonna use the jar for now

#

elara will have a centralised package manager that just works

#

none of this "sonatype nexus" rubbish

leaden sparrow
#

hey i would like to make something in maven which automatically increases the version in plugin.yml by 1 (this should also include if the version is for example 0.0.9 and i add 1 it should switch to 0.1.0)

#

can someone help me with that?

umbral mica
#

(this should also include if the version is for example 0.0.9 and i add 1 it should switch to 0.1.0)
what versioning system is that thonking

leaden sparrow
#

it says for example

umbral mica
#

anyways, what's your end goal here?

leaden sparrow
#

in plugin.yml i have major.minor.patch everytime i build the project i want the patch to increase by 1, but also if it reaches 9 and it adds 1 it should increase the minor (major is increased manually)

umbral mica
#

why are you automatically increasing the major version if the minor version exceeds 9?

leaden sparrow
#

oops wait i need to edit the message

#

now

#

btw this is for a friend he wants it that way, so idk why it is made like this

#

but hes german so i am asking for him

empty flint
leaden sparrow
#

so @umbral mica any idea how i could achieve this?

prisma wave
#

There's a plugin for this iirc

#

Although it's for gradle I think

#

@steel heart didn't you make it?

leaden sparrow
#

I hope its for maven

steel heart
#

oh no I have one for gradle

prisma wave
#

One probably exists

#

But gradle better than maven anyway

steel heart
#

I think its pinned on my gh profile

#

facts

ocean quartz
#

Isn't it better to just use the maven version as the plugin.yml version?

obtuse gale
#

I think at the add of the day it's just better to use local dependencies, and we all know it

prisma wave
#

probably

#

wait

#

I'm replying to Matt

#

Not you

#

That is wrong

obtuse gale
#

I don't believe it

ocean quartz
#

Now to figure how to add dependencies to the plugin 😩

onyx loom
#

😩

obtuse gale
#

no

leaden sparrow
#

Hey i am looking for a YamlConfiguration class to modify yml files without spigot, i had one it was standalone and didnt need anything else does anybody have one?

prisma wave
#

there's SnakeYaml but that doesn't have most of the bukkit stuff, there's also a port I just can't remember what it's called

obtuse gale
#

Simply-Yaml is identical to Bukkit's just without getItemstack or whatever

prisma wave
#

you could also just serialize a Map with Snakeyaml

obtuse gale
#

simple yaml**

leaden sparrow
#

oh i dont need bukkit/spigot related stuff, i had a file which was just to modify simple yml files

#

but without dependencies

#

like just get, set and the basic stuff

#

but i will take a look at simpleyaml

#

@obtuse gale do you have experience with simpleyaml if i need help and stuff

prisma wave
#

it's simple

#

🙂

leaden sparrow
#

haha SimpleYaml is Simple?

obtuse gale
#

Can't you set a file with an object that implements serializable or something, then just read it back and deserializable it too

#

and yea, simple yaml is simple

#

it's almost like it's in the name or something

prisma wave
#

Can't you set a file with an object that implements serializable or something, then just read it back and deserializable it too
@obtuse gale yes, but not to Yaml

leaden sparrow
#

uhmm i cant seem to export it ( i am doing a maven plugin i get the following error : ) Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:3.2:descriptor (default-descriptor) on project SpigotVersion-maven-plugin: Execution default-descriptor of goal org.apache.maven.plugins:maven-plugin-plugin:3.2:descriptor failed: 13737

#

google wasnt a help at all

dusky drum
#

any idea why my php throws html 500 error?

leaden sparrow
#

check php error log

dusky drum
#

wheres that?

leaden sparrow
#

you on linux?

dusky drum
#

yes

#

php7.4 and nginx

#

linux ubuntu

prisma wave
#

check nginx logs then

dusky drum
#

ok

#

found it :9

leaden sparrow
#

check /var/log/nginx

dusky drum
leaden sparrow
#

is this file in the root directory?

dusky drum
#

nah

#

wait

#

idk

#

works now

#

just did ctrl+f5

leaden sparrow
#

uhmm i cant seem to export it ( i am doing a maven plugin i get the following error : ) Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:3.2:descriptor (default-descriptor) on project SpigotVersion-maven-plugin: Execution default-descriptor of goal org.apache.maven.plugins:maven-plugin-plugin:3.2:descriptor failed: 13737
@leaden sparrow Bump

ocean quartz
#

@prisma wave You messed with adding dependencies already?
Managed to add it but right now it requires me to add my repository to the buildscript which i don't want to (if it was on maven central it'd be simple i guess)

prisma wave
#

as in dependencies for a gradle plugin?

ocean quartz
#

Yeah, like the plugin itself adds a dependency to the project

prisma wave
#

oh that's easy

#

but yeah the repository has to be added too

#

but that's not really a problem imo

#

pdm implicitly adds my repo, it just doesn't show up in the actual buildscript

ocean quartz
#

This is what i have, the dependency works, but the repository doesn't, it never searches on that repository

prisma wave
#

uh pretty sure it doesn't need to be that complicated

#
            project.repositories.maven {
                it.setUrl(PDM_REPO_URL)
            }```
#

this is what pdm does

ocean quartz
#

Doing it like that still doesn't search on the repository when resolving the plugin 😦

prisma wave
#

hm

#

probably something to do with the afterEvaluate

#

pdm does it when the plugin gets "called"

ocean quartz
#

Same thing >.<
I might just send it to central i guess

prisma wave
#

I don't think that's a good solution

#

the user might not even have central declared

ocean quartz
#

Good point

leaden sparrow
#

@obtuse gale any replacement for simpleyaml it doesnt seem to work with a Maven Plugin

obtuse gale
#

it works with maven?

leaden sparrow
#

no i am making a maven plugin and once adding it, it wont package anymore

obtuse gale
#

oh, you can always just serialize an object and write it to a file, then reserialize it or something

#

I guess it depends on what you're doing

leaden sparrow
#

no i am modifying the plugin.yml using a maven plugin

#

oh nvm i think i fixed it

obtuse gale
#

I think I know your problem

#

php

dusky drum
#

php = good

obtuse gale
#

doubt

leaden sparrow
#

emtpy?

#

isnt it empty?

#

@dusky drum

dusky drum
#

but how is it empty

leaden sparrow
#

you check for emtpy($mail)

dusky drum
#

yes

leaden sparrow
#

but it should be empty

dusky drum
#

no?

leaden sparrow
#

not emtpy or is it a custom method?

#

what is emtpy?

dusky drum
#

php default

#

check if variable is emtpy

leaden sparrow
#

no there is no such word

#

its empty

#

check if something is empty

#

oops

obtuse gale
#

Hey

#

I’m starting in dev

#

Anyone can help me by sending me a video or a website to learn how to begin

#

ThNks

prisma wave
#

lol

#

gonna need more information

#

developing what?

#

with what language?

#

etc

obtuse gale
#

I can work in English

#

And developing minecraft servers

old wyvern
#

...

prisma wave
#

lmaoo

#

hm

obtuse gale
#

I just wana know the basics

prisma wave
#

that's still pretty ambiguous

#

do you mean making plugins?

obtuse gale
#

And then I can go into specified stuff

#

Yea I guess ?

prisma wave
#

you don't sound too sure lol

obtuse gale
#

Well dev a server

#

Like modded stuff

prisma wave
#

mods?

#

or plugins?

#

or both?

obtuse gale
#

Both

#

Add new items with special uses

#

And plugins

prisma wave
#

Both of them require knowledge of Java, with the Forge/Fabric and Spigot/Sponge APIs

obtuse gale
#

I want to learn in a 1 year time to start working for some money

#

Yes, can you refer me to something to learn to use them ?

prisma wave
#

I'd recommend you learn pure java (or another JVM language but Java is probably best to start off) and then start learning whatever framework you want to use

obtuse gale
#

Is there a good website or good vids about it

onyx loom
#

(or another JVM language
do i say it

old wyvern
prisma wave
#

uh there's loads, I used sololearn personally but if you want videos there's Hyperskill/Jetbrains Academy or a few udemy courses

#

do i say it
no

#

well

onyx loom
#

😦

prisma wave
#

depends what "it" is

#

there's a very good jvm language coming soon

onyx loom
#

starts with a E

prisma wave
#

yes

#

say it

onyx loom
#

KOTLIN

prisma wave
#

TRAITOR

obtuse gale
#

Is it worth dev for money ?

prisma wave
#

what

old wyvern
#

KOTLIN
@onyx loom
You seem to have spelt that wrong, let me correct you
ELARA*

onyx loom
#

o

obtuse gale
#

Cuz I’m french and there a big French community that opens servers like weekly

onyx loom
#

my bad

obtuse gale
#

And they need dev

#

They pay 500+ for a project or a %

#

It’s very often

#

It depends

#

I don’t know if it’s more worth going into dev or into graphic

prisma wave
#

you will probably need at least a year of experience for professional development

obtuse gale
#

Like doing images and sites and all

prisma wave
#

but yes, it can pay very well

obtuse gale
#

Yes I know

#

That’s why I’m gonna start training in my free time

#

I’m 15 and my classm8 got a selling website

#

He basically works like amazon but he doesn’t ship