#dev-general

1 messages · Page 201 of 1

hot heron
#

I'm just having the hardest time finding a project that I can really latch onto and commit to like this

quiet depot
#

what's your preferred genre of coding?

#

games, web, sys, frontend

hot heron
#

Not front end web, haven't done too much games, aside from plugins. Even then I never really made full plugins, I mainly just played around to learn something new

#

I think that's why I'm having a hard time deciding is that I don't really how to answer that haha

#

I think I'm going to have to just go with the db/api/web app idea and roll with it

#

I just don't know what data to use

#

I might even just make like a to-do/issue tracker type thing instead

#

But that's my cop out option

quiet depot
#

for the data, you could do people

#

then your api could find people based on queries

#

location, age

#

names, nicknames (similarity searches)

#

passwords (haveibeenpwned)

hot heron
#

That's a pretty good idea actually

quiet depot
#

yeah, I made the exact thing I'm describing a while back

#

last year, to demo my framework

hot heron
#

Would I be able to systemically generate fake people and input it into my database? Or would I be better off doing that part manually?

quiet depot
#

I found a website that allowed me to generate multiple ids at once, so I generated around 10k, and made a program that would input them into my db

hot heron
#

Sweet. That helps a ton!

old wyvern
#

Piggy

#

Any idea what something like this would refer to?

r6 = 32000(0x7d00, float:4.4842E-41)```
quiet depot
#

any other code that goes along with that?

old wyvern
#

(part of a failed decompiled file)

#

Yea sure one sec

quiet depot
#

what were you decompiling?

old wyvern
#

its mostly commented out by the decompiler due to some eroors

#

what were you decompiling?
@quiet depot
An app called CubeACR

#

for a project

quiet depot
#

what decompiler?

#

and is it java or kotlin?

old wyvern
#

Java, Decompiler im not completely sure, they added us Java developers after their initial rounds so we were straight up given the decompiled source

quiet depot
#

ah

#

what's the class?

#

I'll try decompiling it

old wyvern
#

what's the class?
@quiet depot
The name is probably going to be diff on diff decompilations, its obfuscated
it should be under the package com.catalinagroup.callrecorder.service.recorders

quiet depot
#

hm

#

I can't find that package in the apk

old wyvern
#

Try to find a similar structure to this maybe? The variables were renamed by me, it was mostly gibberish

#

Should I send you the class file maybe?

quiet depot
#

yes please

#

I might just not be decompiling this correctly, I've never tried to decompile an apk

old wyvern
#

ah

jade rock
#

Wassup

silk kite
jade rock
#

Any good devs on?

real venture
#

Only devilomen

jade rock
#

Good to know

silk kite
jade rock
#

Interested in being staff in a server?

#

Currently looking staffs for a network

silk kite
#

If there were more hours in a day maybe

jade rock
#

🤣🤣

remote goblet
#

$500/minute and i'll do it

silk kite
jade rock
#

Seems cheap

#

Lmaoooo jk

#

Nah for tho anyone who don’t charge? Will be paid in the future!

remote goblet
#

I'll work on the server as long as i can make all bees explode

#

aka make an bee stick that summons bees to explode whoever you attacked

silk kite
#

blobslightsmile💡

remote goblet
#

that's the most work i'll do for you

silk kite
#

You could actually be onto something here

remote goblet
#

i stole that idea from minecraft dungeons

#

it has enchantments that spawn 3 bees to fight for you

silk kite
#

Oh, never bothered to check that game out. I feel like it's just trying to smooch of off MC's reputation

jade rock
#

Lmaooo

#

😢

remote goblet
#

It's actually fairly good

silk kite
#

It very well could be, but it steers Minecraft away from what Minecraft is supposed to be.

obtuse gale
#

But its not minecraft....

silk kite
#

Nah you're right. It's Minecraft Dungeons PepeHappy 🔨 blob0w0

static zealot
#

I mean not every Minecraft games should be a sandbox with infinite everything imo. A game like Minecraft Dungeons is welcomed.

prisma wave
#

I'm good dev

#

Have you ever heard of clojure

silk kite
#

I mean not every Minecraft games should be a sandbox with infinite everything imo. A game like Minecraft Dungeons is welcomed.
@static zealot For sure. But dont call it Minecraft

static zealot
#

its not Minecraft ... its Minecraft Dungeons xD

silk kite
#

Pretty sure the only reason the game got the traction it did was because of whaT THEY NAMED IT

static zealot
#

yep

silk kite
#

ffs caps

static zealot
#

that's the idea ...

#

xD

silk kite
#

Slap "Minecraft" on anything and it'd get the attention of kids

obtuse gale
#

I mean yeah its good marketing

static zealot
#

^

obtuse gale
#

That doesnt mean its a bad game.... I havent played it so I cant say much, but yeah, all companies want is to make money so why WOULDNT they put minecraft in the title

static zealot
#

the thing is that not only kids play MC. That's why it is so big. Bcz its old as well and a lot of grown ups can have the nostalgia feeling when they play it. I played it 9-10 years ago and still play it. I did have breaks but it is and will be my favourite game.

silk kite
#

I can't judge whether it is or isn't a good game since I haven't played it. But I dont think I'd be comfortable with a game I loved being turned into something that is level-based/has a story or main objective

static zealot
#

ugh

#

have you only played survival mode?

#

on minecraft?

silk kite
static zealot
#

Welp then you don't like SkyBlock, SkyWars, BedWars,

#

etc.

#

?

silk kite
#

Do the characters have dialogue in Dungeons?

static zealot
#

only 1 guy I think

#

its the narathor or whatever its called

#

narrator*

jade rock
#

Anyone got a good forum that can connect to server

remote goblet
#

A custom made one

#

they usually work

jade rock
#

😭😭😭😭

#

No shi

real venture
#

XenoForo is highly customizable - but comes with a pretty sizable price tag

#

MCM uses XenoForo pretty sure.

remote goblet
#

So does hypixel

real venture
#

Has LagPickle fixed their issues yet? Last time I jumped on there it was unplayable..

remote goblet
#

YES

#

halloween helpchat

#

Spoopy seasson

west ether
#

@fluid crag I can do ur plugin but ur DMs are closed

fluid crag
#

add me

prisma wave
#

Interesting

#

Also @ocean quartz pdm time?

distant sun
#

People are stupid.

prisma wave
#

Indeed

heady birch
distant sun
#

I think the map is not on the same class on some versions

steel heart
#

it is

#

afaik plugin manager always got it

ocean quartz
#

@prisma wave Hell yeah

prisma wave
#

Yay

#

You can implement relocation

ocean quartz
#

That's what i want yeah, I'll try at least

prisma wave
#

tbh it will probably be pretty easy if you use lucko's thing

jovial warren
#

@heady birch still a really whacky way of registering your commands but I guess it's cleaner than the old one

obtuse gale
#

Why do it that way tho?

heady birch
#

How dare you

#

It dynamically registers the command alias

obtuse gale
#

oh you get them from config

#

that's what I get for reading the first half only lol

quiet depot
#

o shit

#

has hacktoberfest started?

prisma wave
#

i think so

quiet depot
#

shit

#

what does pdm need?

prisma wave
#

lmao

quiet depot
#

relocation?

prisma wave
#

uh

heady birch
prisma wave
#

relocation, general cleanup, optional dependency support

#

no

#

no

heady birch
#

"fixed numerous SPELLING mistakes"

#

"bump version"

onyx loom
#

RELOCATION

quiet depot
#

wait is it in kotlin?

#

just gonna say ugh in advance

prisma wave
#

no

quiet depot
#

phew

onyx loom
#

java

prisma wave
#

the majority is in java

quiet depot
#

I retract the ugh then

prisma wave
#

the gradle plugin is Kotlin but you probably won't need to edit that much

#

and matt / me can do that

heady birch
#

Ive been using this choco updater thing for about 2 years

prisma wave
#

choco

#

winget

quiet depot
#

you guys know ssamjh?

#

the spigot mod

heady birch
#

No

prisma wave
#

nope

heady birch
#

Is it a good mod?

#

Plugin is the correct term

quiet depot
#

spigot moderator

prisma wave
#

lmfao

#

what

onyx loom
obtuse gale
#

Someone remake it in VR please, I need to practise for tommorrow night

quiet depot
#

8bit vr

#

ouch

#

@prisma wave how does that profile views thing work?

prisma wave
#

Pretty sure it just updates whenever the image is queried

quiet depot
#

where's the img from

prisma wave
obtuse gale
#

😢

distant sun
distant sun
#

is the same for everyone 🙂

heady birch
#

me too!

prisma wave
#

it's impossible not to get a+ lol

quiet depot
#

lol

distant sun
#

you can do it niall!!

quiet depot
#

niall 130 issues

#

you complain too much

onyx loom
#

lol even i have A+

distant sun
#

is there any way to identify which build task(s) are used to build a project from github?

prisma wave
obtuse gale
#

it's impossible not to get a+ lol
tru

prisma wave
#

clojure on the most used languages

onyx loom
#

why java first 🙄

prisma wave
#

good question

hot hull
#

@prisma wave Why no Elara

onyx loom
#

😳

#

elara..... bad...?

prisma wave
#

absolutely not

distant sun
#

[19:18:12 WARN]: [BattlePass] Loaded class n3kas.ae.api.EnchantApplyEvent from AdvancedEnchantments v8.0.0-Pre5.6 which is not a depend, softdepend or loadbefore of this plugin.
Is spigot stupid or what lol, AE is literally a soft-depend on BattlePass' plugin.yml

hot hull
#

Spigot is stupid yes

prisma wave
#

relocation

#

pdm could do that

hot hull
#

And that's the most useless warning they could've added

distant sun
#

¯_(ツ)_/¯

obtuse gale
#

spooooky

#

oh wait

#

spoopy

lavish notch
#

"it's rlly good"

onyx loom
#

his name is MinecraftMan1013

#

its ended there

surreal quarry
#

I do skript development for cheap. Only $69 an hour. DM if interested. Thanks

onyx loom
#

ight bet

steel heart
#

Skript is op

#

doesnt have to be compiled and works

unreal briar
#

told you the kids from my old server server are hardcore

distant sun
#

Would be a bad idea not to store player's balance in memory and instead query / update the database everytime?

#

The biggest issue would be placeholders I assume

surreal quarry
#

yea I would have it in memory

#

thats a lot of db queries

distant sun
#

Interval saves here I come

surreal quarry
#

lots of fun

distant sun
#

Tell me about it

#

Wonder how hard would be to work with redis thonking to make stuff update through servers

surreal quarry
#

depends if you like know redis

#

i tried that a while back and it was kinda scuffed for me

#

but i also iddn't know much about redis

distant sun
#

Never tried it but took a look at their docs and doesnt look that bad

surreal quarry
#

i just found it easier to use lists and maps, but im sure it's not that hard

distant sun
#

For accessing data from multiple servers?

surreal quarry
#

oh no

#

also i didn't really know whether it was a substitution for mysql or if i should've used it standalone, so i had sorta a weird hybrid

distant sun
#

Mhm I thought you can use it to tell to other programs that a value was changed.

surreal quarry
#

oh maybe

distant sun
#

For example a player spend 10 tokens on server A and server B will update the balance stored in memory

#

It might not be redis

heady birch
#

redis is a cache i believe

surreal quarry
#

well i think that is how it works but i was never sure if those 10 tokens would always be stored in redis or if i had to still save the cache back to mysql

#

but thats what i ended up doing

#

so for multiple servers its good, but if you are on a single server its the same amount of work as a map of uuids and tokens for example

distant sun
#

Definitely

#

After the memory leak caused by tokenenchant's poor mysql integration on a server i was working for, I'm trying to learn more about performances and how to do stuff right

heady birch
#

most server owners don't want to setup a redis cache. I would store in map, even thousands of users wont be too much memory. then occasionally insert into database asynchronously. but dont just iterate the whole map. maybe have a hasChanged flag or similar so you only run UPDATEs when you actually need to

surreal quarry
#

gaby has multiple servers tho

#

so you either need pluginmessaging or redis

distant sun
#

Plugin messaging only works if a player is online =/

surreal quarry
#

that too

distant sun
#

Which is a dumb system imo

#

Ye I took that into account, Niall, I dont plan to add bungee support to any public project(s) anytime soon

#

Im talking about my own server

#

Is anybody good with deobfuscation? I have some issues with a plugin and wanted to take a look at the code but is obfuscated :(

onyx loom
#

bardy maybe?

#

he was deobfuscating kiteboard iirc, idk how well he did

frigid badge
#

@distant sun you clearly don’t understand how plugin messaging works, there is no way to communicate with other servers if there is no player online. It isn’t that they just thought eh let’s require a player online

#

and redis is an in-memory key value store

distant sun
#

Shut up lemmo >.<

frigid badge
#

smh

#

lyt

distant sun
#

:smh:

frigid badge
#

but yes redis is an excellent idea for sharing data between servers.

distant sun
#

Im smart, ik

#

Btw @frigid badge I got accepted at uni xd we are starting monday 🙌

frigid badge
#

nice

#

good job

distant sun
#

😋

#

Wanted to go to CS but my final grade wasnt enough so I went to engineering

distant sun
onyx loom
#

IntelliJ loves random access memory

gray elk
#

please how can i get a value from another plugin on my server

distant sun
#

use their api?

gray elk
#

yea

#

its about Vault

#

i included it into maven and i just wondering how to access his values

distant sun
#

what are you trying to do

gray elk
#

im trying to access the bank balance of players

distant sun
#

look on github, it has example on how to access the api

distant sun
#

adding the path to server jar on path doesn't seem to work

fluid walrus
#

so anyone wanna help me web scrape for my discord.js bot? reversed_fingerguns

#

but like fr

#

anyone wanna help with spiget xd

#

im too dumb for that :o

surreal quarry
#

idk javascript but its a json api

#

so if you know javascript i assume you know how to use json and make requests

#

so just make a request and get the json

fluid walrus
#

:(

#

im too dumb

#

ahhh

#

ok

potent vale
#

@fluid walrus i can help

#

till it works so ya know how to do it the next time

fluid walrus
#

:D

#

@fluid walrus i can help
@potent vale rly

potent vale
#

Yes

fluid walrus
#

I added u

#

@potent vale

eager leaf
#

I want to get into plugin development, but I'm used to vim for coding. Do I really need a big fancy IDE for Java to make it all work well?

quiet depot
#

No, but you're shooting yourself in the foot by not using an ide

#

you'll be significantly disadvantaged by not using a proper ide

surreal quarry
#

use intellij and the vim emulation plugin

eager leaf
#

I understand what you're saying

surreal quarry
#

thats what i do

#

and i love it

eager leaf
#

oh that sounds nice

surreal quarry
#

yea

#

i got it a few weeks ago and im loving it

eager leaf
#

Vim is just so lightning fast when editing

#

gotta have that flow

surreal quarry
#

yea once you get used to a lot of the shortcuts and whatnot it would suck to not have access to them lol

quiet depot
#

you'll still be sacrificing speed, that's the same when transferring to anything that isn't vim

#

nothing competes on that level

#

but it's still usable

#

just not as snappy

surreal quarry
#

yea but its definitely the next best thing to have the full features of an ide and still have access to all the powerful things that vim gives you

eager leaf
#

Worth it to look for java specific vim plugins, maybe?

surreal quarry
#

i think the slightly less snappy vim is definitely worth it for intellijs hints, warnings, build tool integration, etc

#

yea you could see if there are any out there

quiet depot
#

what features from an ide are you looking for paul?

eager leaf
#

Mostly docs hinting and doing all that maven stuff for me

surreal quarry
#

you can probably find vim plugins for docs and hints but idk about setting up your maven project for you

#

also i feel like vim might be a bit limiting if you have a large project you are working on

#

depending on how your vim is setup currently i guess

quiet depot
#

I doubt vim would be too limiting there

#

I'm not sure if it's comparable, I've never used vim

#

but I've used sublime for some pretty big projects

eager leaf
#

I can handle larger python project just fine with it, mostly it's just good organization

surreal quarry
#

idk ive never really used vim standalone for anything other than editing my vimrcs and some text files / python here and there. ive mostly used it with my intellij / pycharm / phpstorm etc, which is where i like it best

#

i think its all personal preference tho

eager leaf
#

I haven't touched Java in 10y or so, is there any reason the project layout would significantly differ?

quiet depot
#

are you asking if the layout would differ from a python project?

eager leaf
#

I mean, what about the layout would you believe to be unmanageable?

#

might not be too different

surreal quarry
#

well i only said that cause i dont have a ton of experience working with large projects using vim standalone

#

if you can quickly get around to all your files, and are great with windows and whatnot, it would probably be fine

#

i think the only real thing you would be missing is the hints and warnings that an ide would give you, but there are probably plugins available for that sort of thing

eager leaf
#

you mean things like hinting class/method names?

surreal quarry
#

yea

eager leaf
#

probably something for that

surreal quarry
#

yea most likely

eager leaf
#

well, thanks guys for your advice

#

It's back to tty land for me

surreal quarry
#

also you could always just start out with vim and if you find it to be too limiting then just open the project in intellij lol

sage shard
#

guys anyone knows how to set night time for a region?

prisma wave
#

A worldedit region?

heady birch
#

time set night

prisma wave
#

Or worldguard

sage shard
#

WG

prisma wave
#

loop over all players in the region, set their personal time to night

#

Probably the easiest way

#

Idk wg might natively support it

sage shard
#

there is /rg flag name time-lock

#

but it doesnt work

obtuse gale
#

yes it does lol

sage shard
#

it doesnt work

obtuse gale
#

get out of the region and go back in

#

it does work, but it also doesn't update as soon as you change the flag for those already inside the region

#

because

#

idk

distant sun
#

Fair enough

obtuse gale
#

because it works on boundary checks or whatever

sage shard
#

wait whats the value first

obtuse gale
#

tick time

sage shard
#

rg flag spawn time-lock night?

obtuse gale
#

that's not tick time

#

6000 is noon

#

1000 is (debatably) sunrise

sage shard
#

unknown flag tick time

obtuse gale
#

🤦‍♂️

sage shard
#

xS

obtuse gale
#

it takes a number

#

that number is the time in ticks

sage shard
#

cuz smart people can help me here

obtuse gale
#

it takes a number
that number is the time in ticks
6000 is noon
1000 is (debatably) sunrise
play around with them

prisma wave
#

general plugins

#

Plugins general

#

Les plugins générales

sage shard
#

fefo 12k is night right?

obtuse gale
#

that's about sunset

#

midnight is

#

18000?

sage shard
#

16k works too

#

ty

obtuse gale
#

I'm having a really hard time trying to understand how to work with adventure >->

prisma wave
#

Nbt tags

#

CanBreak etc

old wyvern
#

Looks like in about 3 weeks the leaderboard top is going to switch 😦

prisma wave
#

congratulations 🎉

old wyvern
#

😐

sage shard
#

one last question. anyone knows halloween plugin 👀

old wyvern
prisma wave
#

🙄

#

snowflakes nowadays scared of people asking things in the wrong channel

sage shard
#

oh sry

prisma wave
#

in my day everything was in #general

obtuse gale
#

Nbt tags
CanBreak etc
lol no I meant the adventure api

#

super reasonable and recognizable name

prisma wave
#

don't know what that is

obtuse gale
#

aka text

prisma wave
#

🙄

#

What happened to good old fashioned bungee chat api

obtuse gale
#

lol it used to be called text

#

now it's adventure

#

because

#

¯_(ツ)_/¯

distant sun
#

"use text"

prisma wave
#

kids these days will never know how to ComponentBuilder

distant sun
#

"google java text library"

obtuse gale
#

lol

heady birch
#

all they know if MF-msg

obtuse gale
#

yeah I may just use bungee chat api

#

not my main concern so meh

onyx loom
#

all they know if MF-msg
@heady birch and thats all we need to know 🌝

ocean quartz
#

Adventure was a bit confusing at first yeah

ocean quartz
#

@obtuse gale What are you having trouble with?

obtuse gale
#

well

#

for starters

#

I don't even know where to begin on how to use it lmao

#

and the docs aren't very suggestive >->

distant sun
#

who doesn't love this type of documentation

#

"Good luck figuring out how to use our stuff"

ocean quartz
#

It's pretty similar to Bungee's

#

The docs are pretty lacking though i agree

empty flint
#

I am derping really hard right now. What's the correct Kotlin way to do the following without a bunch of if/elses ?

      val group = matcher.group()
      when(group) {
        matches(Regex(hexPattern)) -> {}
        matches(Regex(legacyPattern)) -> {}
      }
#

I have a bunch of pattern strings (hexPattern, legacyPattern...) and the group matches one of them.

distant sun
#

do you use regex on a regex match?

empty flint
#

No, hexPattern is a string.

#

Or what do you mean?

distant sun
#

isn't it better to use precompiled regex?

#

val group = matcher.group()
matches(Regex(hexPattern))

empty flint
#

not sure what you mean...

#

So matcher is a Matcher from "$hexPattern|$legacyPattern|$...", right

#

matcher parses the input

#

and for each match, the matcher.group() matches one of the patterns

#

and I need to do different things with the string when it matches the different patterns

#

and I am too dumb to think of the right Kotlin way to do this

heady birch
#

me

#

i would just for each character

#

is it &?

#

ok

#

next character

#

is it #?

#

ok

#

get next 6 chars

#

no?

#

get the next single char

#

resolve from legacy code

#

done

empty flint
#

it's a bit more complex than that

#

with lookaheads and lookbehinds

#

@heady birch and I specifically want to avoid checking "is it a, do a(), is it b, do b()..."

#

with a when statement if possible

prisma wave
#

@empty flint just do when { group.matches(blah) }

empty flint
#

aaaaaah

prisma wave
#

But yeah you should be caching the regexes

empty flint
#

I completely forgot about the empty when

prisma wave
#

Also why are you mixing kotlin regex and Java matcher

empty flint
#

I didn't know there was such a thing as kotlin regex that differs from Java regex

prisma wave
#

you're literally using it?

#

kotlin.Regex is an alternative to Pattern and Matcher

#

Personally I think you should only use 1 rather than mixing them both

#

Gets messy

empty flint
#

No I know that Regex(...) is a Kotin thing but I didn't know it differed from the Java pattern and matcher stuff. In what way does it get messy?

#

Hm maybe I should read up on that stuff a little bit

#

I just dove in

#
return this.replace(hexRegex) { result ->
      ""
    }.replace(altRegex) { result ->
      ""
    }.replace(legacyRegex) { result ->
      ""
    }.replace(gradientRegex) { result ->
      ""
    }.replace(rainbowRegex) { result ->
      ""
    }
#

Why is kotlin so elegant 😄

#

Ty @prisma wave

heady birch
#

sorry

#

i have copyrighted that 🙂

distant sun
#

uh

#

who place the bracket on the 2nd line

#

also, cant just do { "" } for lambda?

empty flint
#

who place the bracket on the 2nd line
@distant sun It's obviously not gonna stay { "" }

#

Second line because the transformation will take up more than one line of code

obtuse gale
#

obviously

distant sun
#
return this.replace(hexRegex) { "" }
    .replace(altRegex) { "" }
    .replace(legacyRegex) { "" }
    .replace(gradientRegex) { "" }
    .replace(rainbowRegex) { "" }```
perfect 🙂
prisma wave
#

No I know that Regex(...) is a Kotin thing but I didn't know it differed from the Java pattern and matcher stuff. In what way does it get messy?
@empty flint

My point is it doesn't differ, they're 2 different ways of doing the same thing

#

You should be using 1 for consistency imo

heady birch
#

@empty flint we are not going to get along 🙂

ocean quartz
#

Another way to do it

return with(this) {
    replace(hexRegex) { "" }
    replace(altRegex) { "" }
    replace(legacyRegex) { "" }
    replace(gradientRegex) { "" }
    replace(rainbowRegex) { "" }
}
#

Less .

onyx loom
#

o.o

#

thats cool

heady birch
#

poor design

distant sun
#

does it work?

#

apply

ocean quartz
#

I should
Though idk if it will, because it's probably not mutating this, can test in a sec

prisma wave
#

Don't think that will work

#

You'd need chaining

ocean quartz
#

Yeah it needs the chaining because it always returns a new string after replacing

#

Sad

prisma wave
#

elara will not have this problem

onyx loom
#

elara will not have any problems, if the features dont even exist yet

prisma wave
#

no string replacement in elara

#

no strings

#

there are integers actually

#

and print functions

onyx loom
#

what actually works in elara atm

prisma wave
#

ez

onyx loom
#

😳

#

🥶

prisma wave
#

absolutely

#
let a = 3
print(a + 2)
``` this works
onyx loom
#

lol

prisma wave
#

eh

#

quite a bit

#

yes

#

no multiplication yet

#

you can do subtraction though

onyx loom
#

wait do u need to use brackets there?

prisma wave
#

for now yeah

onyx loom
#

ah

prisma wave
#

haven't figured out how to parse the fancy calls yet

onyx loom
#

fair enough

prisma wave
#

yugi seems to think it's impossible

onyx loom
#

print a + 2 👀

prisma wave
#

i'm not convinced

onyx loom
#

nothing is impossible

empty flint
#

@empty flint we are not going to get along 🙂
@heady birch What did I do 😦

heady birch
#

nothing lol

#

i just felt like saying that

#

sorry

empty flint
#

lmao do you often feel like emotionally scaring strangers? I am not going to sleep tonight because you said that 😦

onyx loom
#

he said sorry

empty flint
#

he said sorry
@onyx loom but did he mean it this time or did he just feel like saying it again?

onyx loom
#

🤔

ocean quartz
#

Niall is a tricky mind

heady birch
#

whos good at CSS?

onyx loom
#

me

#

i can make a navigation bar for my website in school 🙂

empty flint
#

Anybody bored enough to debug regexes? I swear this is sopposed to work according to the explanation...

onyx loom
empty flint
distant sun
#

mf-msg

empty flint
#

pretty sure the lookbehind doesn't work with the +, but idk how to fix that

#

mf-msg
@distant sun Yeah working on expanding it as it doesn't quite suffice my needs...

distant sun
#

I mean, it has a regex for that iirc

ocean quartz
#

Could never get the lookbehind to work correctly when matching with java

#

Nope, no regex in mf-msg

distant sun
#

you are just bad

#

ah

empty flint
#

you are just bad
@distant sun lmfao

#

step up or shut up gaby 😛

#

Could never get the lookbehind to work correctly when matching with java
@ocean quartz Non-capturing group solved it

#

I think the desaturation now works

ocean quartz
#

Also why the fuck does plugin.yml have author and authors instead of you just one with a list of 1 or more .-.

empty flint
#

How does your parser work without regex btw?

ocean quartz
#

Character scanning

empty flint
#

ah

ocean quartz
#

It's much faster

heady birch
#

kiteboard years ahead of all technologies

steel heart
#

Matt I assume author would be the main author

#

and authors would be collaborators

distant sun
#

what does bukkit wiki says?

onyx loom
ocean quartz
#

But what if the main author is more than one person? thonking

steel heart
#

or maybe the just concatenate author and the authors later

ocean quartz
prisma wave
#

Nothing

#

No type is Nothing

#

but so is every type

ocean quartz
#

Can't leave it blank but can't put anything in there either .-.

prisma wave
#

yeah you've probably got a type parameter problem

#

the * means out Nothing iirc

ocean quartz
#

Basically trying to print every property of a class

#

Got it to work noice

hot hull
#

"No type is Nothing, but so is every type" now that is a brain fuck

ocean quartz
#

Now to do the commands and permissions thonking

prisma wave
#

"No type is Nothing, but so is every type" now that is a brain fuck
@hot hull it's true

#

you can't manually get Nothing, but if you have Nothing, it can be any type

obtuse gale
#

author md_5

#

oh no

#

good god no please no

empty flint
#

@ocean quartz You said the color codes can be escaped with \<#...>, does that work with &#... and &c as well?

ocean quartz
#

Yup everything is escapable

empty flint
#

Good man

ocean quartz
#

\<hex>, \&hex, \&c, \&l, \<g>, \<r>, \[](), \|, \:

obtuse gale
#

Yup everything is escapable
\\\\

ocean quartz
#

That would also work actually xD

distant sun
#

<o/

prisma wave
#

This version includes

#

Addition and subtraction, integers but no floating points, strings, printing

#

It's fast tho

obtuse gale
#

what about

#

char

ocean quartz
#

Char is just a string with length 1!

prisma wave
#

exactly

#

Chars are obsolete

steel heart
#

ohlol forgot about thopse

ocean quartz
#

Hmm not sure how i'll do the commands in this 😩

prisma wave
#

elara

steel heart
#

arela

prisma wave
#

🤔

ocean quartz
#

alera

prisma wave
#

thinking

frigid badge
#

can someone kill me please

#

I'm so done with this shit

#

why in the hell would you want to have an entire email client onto your website

#

just use gmail or some shit

steel heart
#

reinvention of the wheel ?

frigid badge
#

yup

#

because they want to integrate it so they can make proposals from emails

#

and easily send invoices

distant sun
#

can someone kill me please
@frigid badge sure

steel heart
#

Doesn't sound easy, well gl

frigid badge
#

well I’ve build it months ago already just it stopped working and can’t figure out why

heady birch
#

Nice

prisma wave
#

Anyone ever used Crystal before?

ocean quartz
heady birch
#

@prisma wave What is it? sounds familiar.

prisma wave
#

A language

#

Never used it but it looks quite cool

steel heart
#

yeah

heady birch
#

Is it compiled

prisma wave
#

I think so

heady birch
#

Jvm/cobol

hot hull
#

@frigid badge :((

obtuse gale
#

Is that an

#

Icosahedron?

prisma wave
#

perhaps

#

The pdm repo, 2020 (colourised)

heady birch
#

Lol

prisma wave
steel heart
#

very relatable

distant sun
#

Fr

prisma wave
#

I'm not like other girls

heady birch
#

ffs

#

We are n't same Sis <android laugh>

prisma wave
#

are n't

#

class matrix{

heady birch
#

No spacing whatsoever

steel heart
#

Programmers never simps

hot hull
#

You simp for the compiler to compile your code without errors

empty flint
#

"Oh gorgeous javac, I will kiss the cpu you run on for a chance of one program execution without any errors."

#

Is that simping enough?

prisma wave
#

elarac

obtuse gale
#

Why does a matrix class have a main entry point method lol

heady birch
#

Because it can lol

obtuse gale
#

Ye lol

ocean quartz
obtuse gale
#

matt

#

Stop

#

Test

ocean quartz
#

Why?

#

o

obtuse gale
#

stop.foo

empty flint
#

@ocean quartz if a String contains an invalid hex string as part of a gradient, it breaks the parsing of the whole component.

<#abcdef>Hex!
&cColor!
<g:#abc:#defghi>Gradient!
\&#abcdefAltColor!
&#abcdef0Hex!
<r:0.5:1.0>

Note the gradient's second element is "#defghi" which is not a valid hex color.
The result is this:

#

the last color does not get parsed anymore

steel heart
#

ye base 16

empty flint
#

Oh and fixing the gradient revealed that the escaping of &#abcdef does not work as advertised:

ocean quartz
#

Interesting, I'll take a look at that later

heady birch
#

kite board unit test

#

error impossible

empty flint
#

Sure mate, I told you I'd abuse the shit out of that framework 😄

heady birch
#

Useful though because you pickup issues he may not find e.g

empty flint
#

yep

prisma wave
#

eg

steel heart
#

is there a way to find&replace with file names

#

like in intellij

surreal quarry
#

refactor?

#

or are you not in intellij

steel heart
#

in intellij but that can't replace partly and just one file at the time

empty flint
#

There's a windows batch rename utility, but that won't harmonize well with IJ

#

You could maybe find/replace in whole IJ project?

steel heart
#

basically wanna replace any file that has the token "baby" to "child"

surreal quarry
#

idk if this will work but does mv support wild cards?

#

like mv *baby* *child*

steel heart
#

mv ?

surreal quarry
#

that probably wont work

#

it lets you move files around

#

but it can also be used to rename stuff im pretty sure

steel heart
#

maybe I can write a java program to do it for me

onyx loom
#

kotlin program

surreal quarry
#

yea probably

steel heart
#

seems like this was a feature request some years ago

prisma wave
#

go program

#

Go best language for CLIs

steel heart
#

I dont know go that well

prisma wave
#

it's very easy to learn

#

and fast

steel heart
#

uh sure

#

you got link to docs?

ocean quartz
#

go is pretty speedy

onyx loom
winter iron
#

how would i do something like that but in kotlin

#

the class instance part

onyx loom
#

ctrl shift alt k

winter iron
#

that works

#

lol

heady birch
#

apt-get install rust

onyx loom
#

niall will u teach me rust

#

1 to 1 lessons

heady birch
#

fn main() {
println!("Hi!");
}

onyx loom
#

thanks

heady birch
#

Hi!

onyx loom
#

what's the ! for lol

heady birch
#

macro

surreal quarry
#

Hi!

prisma wave
#

macro

#

fmt.Println

onyx loom
#

semi colon 🙄

prisma wave
#

fmt.Printf

#

interface{}

fluid walrus
onyx loom
#

this seems familiar

#

😁

fluid walrus
#

ikr

prisma wave
#

toString impl

empty flint
#

@ocean quartz How many decimal places does the rainbow format accept? Float or Double or something custom?

#

and can it be just <r:1:1> or does it have to be <r:1.0:1.0>?

ocean quartz
#

It's a double, both are allowed, also <r:.75> for example

#

Or <r:1.>

steel heart
#

1d

ocean quartz
#

That one probably wouldn't work

#

@empty flint The problem wasn't anything to do with the gradient, it was .. my dumb brain only

steel heart
#

When you saved the entire universe in the last second

fluid walrus
empty flint
#

@empty flint The problem wasn't anything to do with the gradient, it was .. my dumb brain only
@ocean quartz I can only report what I find breaks something 😄 Glad you found the error.
Another quick question: can you use legacy color codes in a gradient? <g:&c:&2>?

ocean quartz
#

Yeah, apreciate it ;p
And no, it wouldn't work too well so didn't think about adding it

heady birch
#

Interesting

#

I need to upgrade kiteboards system because currently theres shared logic between 2 (and counting each time a new version is released) classes that are very closely tied into the version they are running on. So I must figure an efficient way to do the business logic centrally then delegate that to the adapters

ocean quartz
#

Add mf-msg support to in fingerguns

heady birch
#

Perhaps

#

If you meet the spec

steel heart
#

Wait how does live code with intellij works?

prisma wave
#

spring

steel heart
#

so no official feature?

prisma wave
#

what

steel heart
#

like live coding

#

thought intellij got an update for it

prisma wave
#

yeah it did

steel heart
#

how does that work?

prisma wave
#

websockets probably

steel heart
#

no but like how do I set it up

prisma wave
#

oh idk

steel heart
#

I was tryna google it and nothing appeared

prisma wave
steel heart
#

wtf I can only update to 1.4

#

:/

#

not 2.1

steel heart
#

@prisma wave Why would one use StringBuilder instead of String concatenation?

prisma wave
#

faster

steel heart
#

how much faster

onyx loom
#

a whole nanosecond

prisma wave
#

1 elarasecond

#

idk off the top of my head but pretty significant with big strings i think

distant sun
#

string concatenation 🤮

old wyvern
#

@steel heart
Its only useful if you a concatenating over a loop or something, coz you create a lot of unnecessary string objects. In normal cases the java compiler converts your concatenation to use StringBuilder anyway so you can safely just use normal string concatenation in that case

surreal quarry
#
Concat - 15200 ns```
#

concat was faster?

old wyvern
#

Depends on the use case

surreal quarry
#

true

distant sun
#

mhm

#

How does toString work on a StringBuilder?

old wyvern
#

As I said, your normal concatenation is inlined with string builders anyway

distant sun
#

How does it create a string without concatenating the objects

old wyvern
#

How does toString work on a StringBuilder? creates a string object with the charsequence

#

StringBuilder itself is an instance of CharSequence aswell I think

#

As in it extends that

distant sun
#

Ah

ocean quartz
prisma wave
#

Elara: 0.0002ms

distant sun
#

Elara: null

onyx loom
#

kotlin... bad...?

ocean quartz
distant sun
#

Try 10000

#

:)

steel heart
#

@old wyvern frick I'm looping

distant sun
#

How do you even check how long it took to finish @ocean quartz

ocean quartz
onyx loom
#

o

ocean quartz
#

measureNanoTime Gaby

steel heart
#

wow

distant sun
#

what is that

ocean quartz
#

That's with 10k

#

Kotlin's time measurement function

steel heart
#
                    Subspecie subspecie = new Subspecie();
                    String texture = PrehistoricEraMod.ID+":"+baseTexturePath+subspecieName+"/"+name+"_",
                            child, childSleeping,
                            teen, teenSleeping,
                            female, femaleSleeping,
                            male, maleSleeping;
                    if (hasChildTexture) {
                        child = texture+"baby_"+subspecieName;
                        childSleeping = child+"_sleeping"+".png";
                        child = child+".png";
                        subspecie.child = new ResourceLocation(child);
                        subspecie.childSleeping = new ResourceLocation(childSleeping);
                    }
                    if (hasTeenTexture) {
                        teen = texture+"teen_"+subspecieName;
                        teenSleeping = teen+"_sleeping"+".png";
                        teen = teen+".png";
                        subspecie.teen = new ResourceLocation(teen);
                        subspecie.teenSleeping = new ResourceLocation(teenSleeping);
                    }
                    female = texture+"female_"+subspecieName;
                    femaleSleeping = female+"_sleeping"+".png";
                    female = female+".png";
                    subspecie.female = new ResourceLocation(female);
                    subspecie.femaleSleeping = new ResourceLocation(femaleSleeping);

                    male = texture+"male_"+subspecieName;
                    maleSleeping = male+"_sleeping"+".png";
                    male = male+".png";
                    subspecie.male = new ResourceLocation(male);
                    subspecie.maleSleeping = new ResourceLocation(maleSleeping);
                    subspecieMap.put(i,subspecie);

looping this

onyx loom
#

1 million? 😳

distant sun
#

Well that's how you test stuff :)

ocean quartz
#

1 million?
gonna take some time but sure

distant sun
#

Show the code :0

steel heart
#

matt can u test time on mine

#

looping it 10 times

#

or how do I do that myself

onyx loom
#

just use matts paste and change the sample amount in a scratch file

#

ez

ocean quartz
#

Just a sec, running 1M xD

onyx loom
distant sun
#

Just a sec, running 1M xD
@ocean quartz actually more seconds

ocean quartz
onyx loom
#

bruh xd

steel heart
#

shit

ocean quartz
#

Gotta remember it's 3M since it'll do it 3 times

distant sun
#

:))

#

Is there an equivalent for that in java?

onyx loom
#

go make urself a drink in the meantime matt :)

#

stay healthy 💯

prisma wave
ocean quartz
#

Going to assume it can't handle 3M xD

onyx loom
#

hey look

#

kotlin kinda good

surreal quarry
#

holy

#

sb so much faster there lol

ocean quartz
#

Gonna try 500K xD

surreal quarry
#

lmao

steel heart
#

jesus why do I forget = on the <=

onyx loom
#

time to only use String Builder from now on for those micro optimizations fingerguns

steel heart
#

"micro"

#

fkn peta optimizations

surreal quarry
#

im pretty sure its worse at smaller levels no?

ocean quartz
#

Difference in small values is pretty negligible

onyx loom
#

scroll up

prisma wave
#

Why's kotlin faster tho?

#

I thought they both would've compiled to the same thing

onyx loom
#

hm this is true

ocean quartz
#

I'll decompile in a sec to check

prisma wave
#

Unless the interpolation is doing something

obtuse gale
#

Why doesn't kotlin compile concatenation to string builder? Doesn't that make more sense

prisma wave
#

Probably

#

I'm pretty sure string interpolation is compiled into string builders

ocean quartz
steel heart
#

I just hope gc does a good job and I don't have to worry about my strin concatenations

ocean quartz
#

Took a while xD

steel heart
#

lol

ocean quartz
#

@prisma wave Only difference so far is that normal concatenation uses strings

#

Kotlin uses characters

prisma wave
#

Hm

#

I can't imaging that would make a massive difference, although it might make some

ocean quartz
#

So all calls StringBuilder at some point, it's just how it's handled i guess

obtuse gale
#

heap memory allocation taking ages since 1944 👌

dreamy thunder
#

im having issue making embed on discord bot

#

and also how can i make const Embed = require('./Embed');

#

@ me

#

oops wrong chat

hot hull
#

So app development boiz, will I want to yeet myself?

quiet depot
#

as in android?

hot hull
#

Yes

obtuse gale
#

It's cool I guess

hot hull
#

So the normal amount of wanting to yeet myself correct?

obtuse gale
#

I say give it a go ¯\_(ツ)_/¯

#

Unless you already do UI stuff, it's a pretty neat experience I used to learn how to properly separate the data you're working with with the end-user elements.
And a bit of threading too since anything that happens from the UI, methods will be called on the UI thread, and you don't want to block that lol

#

I found it a bit useful, fun maybe

hot hull
#

Trying to venture out from mc, so yea anything is a good experience

distant sun
#

Does kt also use xml for design? Or doesnt matter cuz android uses it?

hot hull
#

It's xml for design yea

distant sun
#

😔

hot hull
#

My PC is not liking me right now

obtuse gale
#

I wanna make cool plugin someone give idea kthx

empty flint
#

@ocean quartz I did some more testing with rainbow:
Note the last and second to last lines here.
The Doubles input into the function exceed the logical spec limit of a saturation and brightness value:

<r:0.5:1.2>blablablabla
<r:2.045234234234242:1.2>blablablabla
empty flint
#

Also, you sait it uses a Double but the RainbowColor class uses Floats. Am I missing something here?

dusky drum
#

any idea how to optimize sign editing (50+ signs at once)?

dusky drum
#

i dont like this

heady birch
#

Some are 0

dusky drum
#

cauzse there is 0 signs ther 🙂

heady birch
#

Oh

dusky drum
#

yeh

#

and thats like just 15 sings and it takes 33ms

#

kinda need to check if i can do this faster using NMS

#

but i kinda dont know how to use multiversion NMS

heady birch
#

packets will probably be alot faster

dusky drum
#

idk if i want packets..

#

i mean users already need protocollib so i guess i could add packets

#

but again i would need to use CraftSign

distant sun
dusky drum
#

just 409?

#

40*

#

i saw someone using 128 cores

distant sun
#

Ye :(

dusky drum
#

and i was like WTF

#

i have 2 users using 48

distant sun
#

@quiet depot do you think it will be worth trying to add sponge support to my plugin? For fun, idk. Most likely not as advanced as papi

dusky drum
#

trying to edit signs using NMS any idea how to?

quiet depot
#

what's your plugin?

distant sun
#

GUIHelper

#

Dunno what gui plugins exist on sponge though

#

Btw can I join a sponge server with the normal client?

quiet depot
#

yes

distant sun
#

Nike

dusky drum
distant sun
#

Perhaps send it only to players around that sign?

dusky drum
#

shot thats wrong packet

onyx loom
#

Dunno what gui plugins exist on sponge though
@distant sun deluxemenus? 😳 👀

distant sun
#

Do a research for me, ty bb

onyx loom
#

no

distant sun
#

Smh

#

Why do I pay you

static zealot
#

to waste the time you don't have duh?

distant sun
#

:))

dusky drum
#

this is new

#

invisible sign

prisma wave
#

@ocean quartz I guess the compiler can't optimize the string builder calls as well as a person can

dusky drum
#

i guess my JSON formatting isnt right?

#

nbt.put("Text" + (i + 1), "{"extra":[{"text":"" + lines.get(i) + ""}],"text":""}");

dusky drum
#

why da fk are they friking invisible?=???

distant sun
dusky drum
#

thanks

#

but i do it like that but sign is still invisible ...

static zealot
#

Time to learn java boys. See ya all in 5 years maybe when I've learnt the basics.

dusky drum
#

:;

quiet depot
#

fun

dusky drum
#

its fun to send packets that dont work :=

#

and make signs invisible

static zealot
#

I mean invisible signs sounds like a good plugin idea.

#

and you just made it

dusky drum
#

thete is no text

static zealot
#

oh

#

well then

dusky drum
#

its like barrier

#

but sign

static zealot
#

anyone got some good tutorials I can read or watch? Like for the basics of the basics. Or is any Java Tutorial link from googling that ok? xD.

#

Oh wait nvm I think w3schools has a tutorial

#

will be checking that

dusky drum
quiet depot
#

minecademy 5/5

static zealot
#

thank you piggy. Idk what my life would be if you wouldn't be here to send me to that wonderful place of peace and prosperity called mineacademy.

hot hull
#

Piggy, poggers

quiet depot
#

yes kangarko and his team know their shit

heady birch
#

Gasper if performance is your #1 aim would suggest direct NMS not through the Protocol Lib

dusky drum
#

that doesnt help if signs are invisible

regal gale
#

Well that's kinda funny

dusky drum
#

eh whatever i'll try NMS but can someone help me convert this Kotlin to java

private fun Any.updateField(name: String, value: Any)
            = this::class.java.getDeclaredField(name).apply { isAccessible = true }.set(this, value)
regal gale
#

In Spigot NMS, some of the classes have a comment codes saying we should use ProtocolLib for better approach

dusky drum
#

lel

steel heart
#

blame the renderer

dusky drum
#

okay got packets to work

#

now it dropped from 32ms to 5-6ms 🙂

static zealot
#

every program must contain the main() method. is this true?

prisma wave
#

yes

static zealot
#

hmm in java should I do the same as in kotlin and make variables final as much as possible? Or does it not make a difference?

prisma wave
#

yes

#

it's a good practice in pretty much any language

static zealot
#

Ok ok.

#

I hate ; 😦

steel heart
#

I mean I don’t use final because it fkn stretches the lines

#

except for when it’s actually needed

#

but for params, nono

static zealot
#

I mean the small amount I used kotlin I almost never used var. Only val. Since I don't rly need it.

empty flint
onyx loom
#

val good

#

var bad

winter iron
#

!! good

#

🙉 🙈 🙊

prisma wave
#

😐

winter iron
#

I always spam use !!

#

as much as possible

onyx loom
#

dont ever joke about !!

#

he is everyones enemy

static zealot
#

yes !!

onyx loom
#

evil

prisma wave
#

elara will crash your pc if you type !!

onyx loom
#

great feature

#

i approve

ocean quartz
#

@empty flint Oh yeah you're right it's float, I started it as double but the method takes a float so had to change

prisma wave
#

@potent vale have you ever heard of "elara"

#

it's like kotlin but good

ocean quartz
#

Kotlin haters everywhere
At least 3 haters here tried it and now love it

onyx loom
prisma wave
#

who's the third?

#

bardy and frosty

ocean quartz
#

Gaby

prisma wave
#

oh

empty flint
#

Kotlin haters everywhere
At least 3 haters here tried it and now love it
@ocean quartz Did you have a chance to look at the &#ABCDEF notation? That doesn't compile for me...

prisma wave
#

gaby hasn't circlejerked about it

potent vale
#

No elara

prisma wave
#

that's a shame

quiet depot
#

lol what