#dev-general

1 messages ยท Page 526 of 1

gusty glen
#

.-.

old wyvern
#

Try selecting the bin directory instead

gusty glen
#

it doesn't let me, the OK button keeps grayed unless I select an exe

old wyvern
#

Rip

gusty glen
#

am I doing something wrong?

#

oh no wait, I think I fixed it

#

After manually adding stack SDK through this interface, I was able to select the entry as SDK of the current project

#

it runs!

#

although this documentation sucks, maybe I'm missing some plugin

prisma wave
#

make sure you do a hoogle update

#

and also stack update

gusty glen
gusty glen
prisma wave
#

i mean the hoogle update option in intellij

gusty glen
#

where is it?

prisma wave
#

under the haskell tab somewhere

tranquil crane
#

fun fact I can safely chain 150 sql queries together with unions without the jvm segfaulting but 200 makes it segfault

obtuse gale
#

Couldn't be hotspot ๐Ÿ˜Œ

tranquil crane
#

Is there actually a way to check if it's running hotspot vs anything else

#

boolean hotspot = System.getProperty("java.vm.name").toLowerCase().contains("hotspot"); I suppose might work

jovial warren
#

you shouldn't really ever need to check if it's running hotspot

#
  1. 99% of the time it will be anyway
  2. you should 99% of the time be relying on functions within the JDK, which will pretty much work just fine no matter the VM
steel heart
#

ForkJoinPool is LIFO be default right?

jovial warren
#

LIFO?

#

ah

steel heart
#

yeah

jovial warren
#

FJP isn't a queue lol

tranquil crane
#

The point of checking is to change the max length of the query so it doesn't crash

jovial warren
#

it goes like this:

  • you submit a task
  • FJP asks "hey, which one of you isn't doing anything rn?"
  • thread #3 (thread #1 and 2 are occupied) responds: "yeah I'm free, give it here"
    @steel heart
jovial warren
#

set it to a safe default, and if users want to increase it, that's their choice

#

if they break the VM, that's their problem, not yours

steel heart
#

Oh but for the scheduling mode for tasks that are never joined bbg

jovial warren
#

wdym never joined?

steel heart
#

ForkJoinTask#join I believe or smtng

jovial warren
#

threads don't actually get "joined", the task just transfers over to the currently executing thread, in which that thread becomes free and can then execute more tasks

jovial warren
steel heart
#

Oh yeah it is lifo then

jovial warren
#

ah, I see how this works

#

every worker has its own list of tasks, and this concerns the order in which that list of tasks are executed

#

FJP is more complicated than I thought, wow

#

wait... I just noticed that Thread is in java.lang, wat

gusty glen
tranquil crane
#

if you know of a better way to do it by all means force me to change it

obtuse gale
tranquil crane
jovial warren
#

also someone please tell the creators of javac to make java.util auto import lol

gusty glen
#

have you heard of OR

tranquil crane
#

I have indeed and that would not work in this case I don't believe

gusty glen
#

how come?

jovial warren
#

what are you trying to do?

tranquil crane
#

Get the data in the database contained within a list of chunks

jovial warren
#

select all entries where the chunk X is in some range and the chunk Z is in some range?

tranquil crane
#

The range is practically random because it handles loading chunks from all points in the world at the same time

jovial warren
#

ah

#

also, how come these aren't bracketed? I'm assuming every single query after the first is a subquery

gusty glen
#

SELECT * FROM rosestacker_stacked_entity WHERE world = 'world_the_end' AND (BUNCH OF (chunk_x = someX AND chunk_z = someZ) OR (chunk_x = someOtherX AND chunk_z = someOtherZ))

tranquil crane
#

Nope there are no subqueries

gusty glen
#

just do something like this ^

tranquil crane
#

bunch of?

jovial warren
gusty glen
#

btw bunch of is just pseudocode

tranquil crane
#

oh lol

#

actually why didn't I think of doing that wtf

#

it would still be a long ass query but at least it wouldn't be full of unions

tranquil crane
#

turns on fan

#

off

jovial warren
#

lol

#

thinking of fans, it's so fucking hot today

gusty glen
#

Nicole, do you know what union is used for?

jovial warren
#

UNION is for joining tables one on top of another

gusty glen
#

union is used to join results from two diferent tables / use one field from the previous query to query another table

tranquil crane
#

you can also use it to join results from the same table

gusty glen
#

u never need union if you're dealing with 1 table

#

as far as i'm concerned

tranquil crane
#

I'm sure there's a case where that isn't true but I understand what you mean

jovial warren
#

e.g. | column_one | column_two | | 1 | 2 | | 3 | 6 |UNION| column_one | column_two | | 3 | 5 | | 10 | 8 |=```
| column_one | column_two |
| 1 | 2 |
| 3 | 6 |
| 3 | 5 |
| 10 | 8 |

#

iirc

tranquil crane
#

that is how it works yes

gusty glen
#

yeah, but that doesn't make sense here

#

since nicole is querying by the same columns always

jovial warren
#

JOIN will stick them next to each other, UNION will stack them

tranquil crane
#

there's still no nice way of doing it that I can tell by like just giving it a list of values though, I'd still have a build a massive query either way

jovial warren
#

oh btw Nicole, on another note, I accomplished the task you failed to do

tranquil crane
#

wdym by failed to do

boreal needle
#

bardy the show off

#

"hahaha im better than you"

jovial warren
#

or you just didn't have time to finish, my bad

gusty glen
#

(can be wrong though)

tranquil crane
#

I'd be curious what the performance difference is

#

I guess I can implement the other way around and find out

gusty glen
#

or you can also search for range and filter the results within the program

jovial warren
obtuse gale
#

Nicole T3 when ๐Ÿ‘€

#

eeeee long way

boreal needle
#

t3 is my job :(

jovial warren
#

Bardy the "I know what I'm doing"
2 minutes later after an argument
"Oh yeah, you are right, my bad"
more like

#

oh yeah, you got T3 didn't you lucy

steel heart
#

lol nah

tranquil crane
#

What's T3

boreal needle
#

tier 3

steel heart
#

tier 3

jovial warren
#

tier 3

obtuse gale
#

Tier 3

tranquil crane
#

jesus

jovial warren
#

goose

tranquil crane
#

tier 3 of what

obtuse gale
#

lmao

old wyvern
#

tier 3

boreal needle
#

level system

jovial warren
#

omg what do you think

#

goose

old wyvern
#

tier 3

tranquil crane
#

uh

#

I don't know

boreal needle
#

every 10 levels are put into a tier

#

atm youre tier 2

tranquil crane
#

I can see that

boreal needle
#

hence the name

tranquil crane
#

yes

#

I do be there

boreal needle
#

tier 3 is when you get to level 20

jovial warren
#

welp, guess this is one for the archives

boreal needle
#

ive gotta start grinding for t4 now :)

tranquil crane
#

grinding for levels smh

#

I just do nothing but complain about my own code in here and level up over time

steel heart
#

shake my smh

old wyvern
#

Its tedious without nitro hacks ๐Ÿฅฒ

jovial warren
#

I just get distracted most of the time and don't really pay attention to my level lol

obtuse gale
static zealot
jovial warren
obtuse gale
#

hahaahhahaha

jovial warren
#

I hope that was changed to "Now Java 16!" in 1.17

static zealot
#

some of these

#

are just great

jovial warren
#

I'm actually curious now, gonna go digging through the client to see if I can find that

boreal needle
#

it has been updated to "Now Java 16!"

#

also "OpenGL 2.1 (if supported)!" to "Now on OpenGL 3.2 core profile!"

static zealot
#

lmao I skipped it by accident but there was one Rule #1: It's never my fault! xD

#

o? I never seen this one

boreal needle
#

ive seen that a few times

static zealot
#

well tbh I didn't really pay attention to them. I did see a full list in like 1.15

#

but that's all

jovial warren
#

idk why but looking at the client code makes me want to start making a client

boreal needle
#

i share a birthday with ez and back before they removed the splash i thought it was a personal thing for everyone

#

i always wondered what ez meant before realising it was an actual person

static zealot
#

ah there was one

#

WOW, CLOSED SOURCE!

#

xD

distant sun
static zealot
#

that sucks

#

they made it child safe

obtuse gale
#

Alt Manager
๐Ÿ‘€

#

Man I really loved the 1.13 title screen background

static zealot
#

I haven't seen the 1.17 one yetr

#

yet*

obtuse gale
#

it's... meh

static zealot
obtuse gale
static zealot
#

oh yeah I've seen it. I Forgot about it

obtuse gale
#

yeah exactly

#

it's forgettable

#

lmao

static zealot
#

yeah its kinda meh

#

I would've loved for it to be in one of the large caves

obtuse gale
#

I can't wait for the mountains!!!

static zealot
#

have u seen CaptainSparklez's latest video? that cave looked fucking great man

obtuse gale
#

i haven't

steel heart
# obtuse gale

thats kinda their only cool world gen feature so understandable tho

static zealot
#

something like that as the screen would have been cool

obtuse gale
#

i don't watch minecraft youtube videos lmao

boreal needle
#

is the new world gen actually in the update

static zealot
#

nah. they made a datapack for caves tho

obtuse gale
#

sorta

#

there are things but it's not all they showcased

#

oh wait blitz wait

tranquil crane
#

I must say, that's a new one

obtuse gale
#

the other side of the splash screen

tranquil crane
#

axolotls

obtuse gale
#

โค๏ธ

sly sonnet
#

i like how they kill glow squids

boreal needle
#

theyre cute but do they actually do anything

obtuse gale
#

kill

static zealot
# obtuse gale

well I assume they just used the 1.17 generation I guess. they tried to display the most of what 1.17 is about. but just search for CaptainSparklez and see the thumbnail

obtuse gale
#

they are natural assassins

static zealot
#

its fucking cool

tranquil crane
#

they give you regeneration if you get hurt when you're near them

static zealot
#

hope they'll do something like that for 1.18

gusty glen
#

what am I doing wrong? ```HASKELL
main :: IO ()
main = do
putStrLn (show test 2)

test :: Int -> Int
test a = a * 2```

obtuse gale
#

haskell

static zealot
#

well first of all

#

the language

obtuse gale
#

that's what you're doing wrong

static zealot
#

ye

gusty glen
#
    * Couldn't match expected type `IO ()' with actual type `Int'
    * In a stmt of a 'do' block: test 2
      In the expression: do test 2
      In an equation for `main': main = do test 2
  |```
boreal needle
obtuse gale
#

wat

#

I watched a video about lambda calculus yesterday

#

Haskell is pretty much just lambda calculus

#

Almost a 1:1 representation lmao

static zealot
#

man fuck youtube quality changes

lunar cypress
#

eh

obtuse gale
#

oh no

static zealot
#

the quality selector changes *

obtuse gale
#

johnnyjayjay

gusty glen
static zealot
#

oh?

#

teach me sempai

lunar cypress
#

its core and (iirc) IR is pretty much pure lambda calculus. but there's a lot of shit on top of that in the language

obtuse gale
#

syntactic sugar mmmmmmm love it

#

๐Ÿฅฒ

static zealot
#

yeah

#

it sucks

#

its been like that for hours now

gusty glen
# static zealot teach me sempai

Fix for YouTube cancer quality selector

1. Download the .apkm from here https://www.apkmirror.com/apk/team-vanced/youtube-vanced/youtube-vanced-15-43-32-release/
2. Install SAI https://play.google.com/store/apps/details?id=com.aefyr.sai
3. Uninstall YouTube if it's custom installed and disable it if it's the YouTube that comes preinstalled in the system
4. Open SAI and select the .apkm you just downloaded, accept everything and just wait, it should take about a minute or two to finish installs
5. ???
6. Profit!

static zealot
#

how the fuck did they hold 190k just fine

#

yeah nah. to much work xD

boreal needle
#

alternatively, just install vanced manager and let it do the work for you

obtuse gale
#

^ lol

static zealot
#

what's that?

gusty glen
boreal needle
#

you can install old versions

old wyvern
#

It should be show (test 2) or show $ test 2

gusty glen
cinder flare
old wyvern
#

Otherwise what you're doing is passing test and 2 as arguments to show

obtuse gale
#

i fell off the island ๐Ÿฅฒ

#

thonking is the ping reported to the client by the server or something?

static zealot
#

time to find a movie to watch

gusty glen
#

lmao

static zealot
#

seen it 100 times

obtuse gale
boreal needle
#

make it 101 then

static zealot
#

think I've seen that more than WallE

gusty glen
#

now it's the time, watch it once more then

obtuse gale
#

The one about the Boston marathon bombing

static zealot
#

or whatever it name is

gusty glen
#

then you'll have watched it 101 times ๐Ÿคก

static zealot
#

btw have u guys seen the mortal kombat movie ? the new one

#

if not, u should watch. its great

obtuse gale
#

Yes, Minihud

#

highly customizable

cinder flare
#

but what format is its customizing in

obtuse gale
#

wat

cinder flare
#

like a yaml file?

#

JSON/

#

?

#

or do you like click around

obtuse gale
#

Most of it is in game and it's really convenient given that it updates in real time so you see what you're doing

cinder flare
#

Ah now that's very cool

obtuse gale
#

You can touchy touchy the json files in the config folder though

#

But eh

cinder flare
#

ah json

#

classic

obtuse gale
#

yaml ๐Ÿคก

#

that's not a thing in the fabric world

static zealot
#

@half harness u working on a phone app rn correct?

half harness
#

not rn

#

experimented a bit tho

#

just using tornadofx rn

static zealot
#

ah

#

I just remembered I wanted to do an app a while ago and I Just made the project and never actually worked on the app

half harness
#

lol

gusty glen
tranquil crane
#

your suggestion lmfao

#

that rather than unions

gusty glen
#

if you need a range of numbers, query by range then lol

tranquil crane
#

They aren't ranges

#

sometimes they're close to ranges but they aren't actually ranges

old wyvern
#

What determines the chunks?

tranquil crane
#

Whatever chunks happen to have loaded within the past 3 ticks

gusty glen
#

just select by range and filter in site

#

it'll be much cleaner than that mess

tranquil crane
#

I don't really have a good way of determining a range

gusty glen
#

actually you have

#

or to be honest, what determines the coordinates of the chunks, show us some code

tranquil crane
#

The chunk coordinates are literally whatever players are loading at the given time

gusty glen
#

I can almost garantee that the way you're doing is not the best way

tranquil crane
#

It listens for ChunkLoadEvent and puts it into a queue to be loaded

gusty glen
#

have you considered change the way you store chunk coordinates?

tranquil crane
#

I have yeah

gusty glen
#

you could serialize the location entirely, then just query for the exact strings

sweet cipher
#

You can store the coordinates as Longs, but I have no clue what both of you are discussing

gusty glen
#

you can also use batch query to run multiple selects at a once

tranquil crane
#

yeah I have thought about using strings instead but was slightly concerned with what the lookup times with that would be vs what it is now

gusty glen
#

then just migrate the results from the result set into a list/set/map

tranquil crane
#

I think there was a reason I avoided batch queries but I could definitely look at that again

gusty glen
#

I still feel that you are definitely doing it wrong

#

where did you take that coordinates from in the first place?

#

cause there's a lot of ORs there

tranquil crane
#

Those are the chunk coordinates

#

I'm simplifying it to remove all the ORs real quick

#

now it's pretty obvious to see what I can turn into a range check

#

I don't think I'll be able to turn them into a range check 100% of the time but it should be possible for most of it

sweet cipher
#

What are you trying to do?

static zealot
#

use the suislide

#

but can't figure out how it works

tranquil crane
#

Load entity data from chunks as they load

sweet cipher
#

Are you using SQL Queries?

tranquil crane
#

yes

sweet cipher
#

Why is it so big?

tranquil crane
#

In that example it's loading 1058 chunks worth of data

sweet cipher
#

Why not have multiple PreparedStatements and use batch?

obtuse gale
#

holy fuck

sweet cipher
#

Also you can convert coordinates to longs

obtuse gale
#

i regret clicking that link

tranquil crane
#

lmao

#

you'll regret clicking the earlier ones even more

#

It's already cut down to 15% of what it used to be

gusty glen
sweet cipher
#

I just look it up lol

obtuse gale
#

nicole what the fuck

#

why

#

have you considered not?

tranquil crane
#

long chunkKey = (((long) chunkX) << 32) | (chunkZ & 0xFFFFFFFFL);

#

that's effectively how you'd store it as a long I think

obtuse gale
#

yeah just some bit shifting around

gusty glen
tranquil crane
#

I have considered it and it's probably the next approach I'll be taking, it just requires database modifications

#

I have a db migration system set up though so that shouldn't be a problem

obtuse gale
#

versioning at its best

jovial warren
#

I didn't know that Minecraft packed chunk coordinates into longs

#

actually yes I did

obtuse gale
#

lmao

jovial warren
#

the 3d coordinate encoding is:

  • first 26 bits for X
  • middle 12 bits for Y
  • last 26 bits for Z
sweet cipher
#

Easy short query: SELECT *

tranquil crane
#

nailed it

#

let me just go ahead and select a couple hundred mb worth of data

jovial warren
#

oh come on, that's nothing on modern hardware, what are you complaining about? /s

sweet cipher
#

Exactly

#

Your query is taking up a couple hundred mb in your code file

tranquil crane
#

lol

obtuse gale
#

decompiled code ๐Ÿ‘Œ

jovial warren
#

nice

#

what decompiler you using?

obtuse gale
#

I think a fork of fernflower?

#

Whatever fabric uses

forest pecan
#

int int

#

it wouldnโ€™t compile lol

obtuse gale
#

at.helpch.placeholderapi.fabric.mixin.ducks.ItemStackFlagsRecorderMixinDuck
๐Ÿ‘Œ ๐Ÿ‘Œ ๐Ÿ‘Œ

#

@ocean quartz you're loving this one ^

cinder flare
#

I like ducks

#

so sounds good to me

ocean quartz
#

Lmao love it

half harness
#

helpch

ocean quartz
#

Cuz helpch.at

steel heart
old wyvern
#

Had a look at the nick, -10/10

steel heart
#

wow

#

why

#

๐Ÿ˜ฆ

old wyvern
#

Haskell good!

steel heart
#

Aww man

#

now

#

then

cinder flare
#

I love how it's called Concled

#

what is it a discord bot or somethin

onyx loom
#

Clonc

cinder flare
#

Cloncled yea u rite

onyx loom
#

Clonk

ocean quartz
cinder flare
#

Really tells a lot

#

and look at all those Inital Commits

steel heart
#

Yeah so from a scale 1 - 10

obtuse gale
#

Yeah it's in there

cinder flare
#

lmao

steel heart
#

sadasdqwjd9jqw89dqw

old wyvern
#

10

#

in binary

steel heart
#

oh

#

nice

old wyvern
#

๐Ÿฅฒ

#

jk

#

I havent checked

obtuse gale
#

just kidding, it was base 3

old wyvern
#

^

steel heart
#

๐Ÿฅฒ

ocean quartz
#

Writing in Java 16 to see if there is no issue with reflection but gonna have to compile for Java 8, but IJ keeps tempting me ๐Ÿ˜ซ

obtuse gale
#

oooohh... are sub-lists safe to .stream()?

#

oh boy this is such a big mess

#

uuuuuugh it probably isn't ๐Ÿฅฒ

potent nest
#

normally yes

obtuse gale
#

Haven't tested it but it (probably) isn't for a sub-list of an Arrays.ArrayList (by "unsafe" I mean all elements pass through the pipeline instead of the ranged view)

#

Gotta hate it

potent nest
#

that would be a bug then ig

obtuse gale
#

๐Ÿ˜ฉ whyy

#

I need to test it anyway

potent nest
#
jshell> Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10).subList(3, 6).stream().map(String::valueOf).collect(Collectors.joining(", "))
$1 ==> "4, 5, 6"
obtuse gale
#

Reeeee

#

Thanks ily<3

potent nest
#

yw :D

static zealot
#

does the git blame thing show the latest person that changed a line? Or does it show the first person to add it?

lunar cypress
#

Well, what does it mean to "add a line". If there used to be something completely different on the same line number in the past it wouldn't really make sense to show who did that

#

"Changes" are just removals and additions

static zealot
#

yeah. so basically there was a method call with a boolean parameter and maybe someone changed it from true to false, would it show the latest change?

lunar cypress
#

yes

static zealot
#

alr. ty

quiet depot
#

anyone have an example of a gradle publishing config for subprojects?

boreal needle
#

i have a really crappy one

jovial warren
#

the way I did it was with some buildSrc hackery, now I use a separate build-logic module that I can use to apply logic to projects

boreal needle
quiet depot
#

I just have 2 subprojects that I want to deploy to a maven repo

#

but I've never done it through gradlebefore

jovial warren
#

can 100% recommend the build-logic route

quiet depot
#

link pls

boreal needle
jovial warren
boreal needle
#

bit hacky but it works

jovial warren
#

I mostly stole mine from Adventure lol

#

it is a Kotlin build script, but that's what everyone uses these days anyway

#

I don't think you do though, but you can give it a try, it should still work with Groovy just fine

quiet depot
#

thank you both

jovial warren
#

yw

quiet depot
#

how do you set maven password and username

jovial warren
#

I use gradle.properties for that, then load it from a property

quiet depot
#

can u pls show example

#

feel free to leave your credentials in there

boreal needle
#
repositories {
                maven {
                    val releasesUri = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
                    val snapshotsUri = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
                    url = if (version.toString().endsWith("SNAPSHOT")) snapshotsUri else releasesUri

                    val ossrhUsername: String? by project
                    val ossrhPassword: String? by project

                    if (ossrhUsername != null && ossrhPassword != null)
                        credentials {
                            username = ossrhUsername
                            password = ossrhPassword
                        }
                }
            }```
jovial warren
#

you can put properties in $HOME/.gradle/gradle.properties and they'll apply to all Gradle projects

quiet depot
#

no I mean can u actually show me the gradle.properties

jovial warren
#

lol

boreal needle
#

then in that fileossrhUsername=username ossrhPassword=password

quiet depot
#

ah

#

ez

#

thanks

boreal needle
#

ye

jovial warren
#
signing.keyId=DDC5DDE6
signing.password=REDACTED
signing.secretKeyRingFile=/home/bombardygamer/.gnupg/secring.gpg

mavenUsername=BomBardyGamer
mavenPassword=REDACTED

maven.username=bardy
maven.password=REDACTED

github.username=BomBardyGamer
github.token=REDACTED
```this is my properties file lol
quiet depot
#

is that signing stuff for maven?

jovial warren
#

yeah

#

that'll get auto-configured by the signing plugin

quiet depot
#

ah okie

jovial warren
#

well, when I say auto-configured, I mean it'll get auto-loaded, you still need to put the properties in there for it to find

prisma wave
#

@quiet depot if you want a non kts one then the pdm repo has one

jovial warren
#

for a much better build than mine with more submodules and a similar design btw, check out Adventure's

static zealot
#

was there no way to close a branch on github? ONly to delete?

#

I remember there being a way to close somehow

jovial warren
quiet depot
#

will probs go to pdm then

#

idk if I can convert either of these kts configs

jovial warren
#

maybe you should just upgrade fingerguns

quiet depot
#

i gotta figure out how to ditch nexus first

#

trying to migrate to reposilite

jovial warren
#

I meant upgrade to KTS lol

quiet depot
#

i know what you meant

jovial warren
#

everyone seems to be using it over Groovy these days

quiet depot
#

eh

jovial warren
#

I see more Kotlin build scripts than I do Groovy ones

prisma wave
jovial warren
#

lol

static zealot
#

hmm so I have a remote branch called origin/development. On github I removed this branch but I can't tell how to remove it locally. Just git branch -D origin/development does not work

quiet depot
#

blitz

static zealot
#

oh nvm

quiet depot
#

why do you still not use a client

static zealot
#

just forgot the -r tag

#

bcz its deluxemenus

#

(closed source)

#

smh

#

I am not a student either

#

and also am kinda getting used to this. there's a few things I still haven't learned but hey soon I'll be a master at git cli

#

xD

quiet depot
#

surely gitkraken has an os license

#

actually that might be counter intuitive for their business

static zealot
#

but I Don't have any meaningful projects for OS license...

#

like I have a few plugins but who cares about that?

quiet depot
#

ยฏ_(ใƒ„)_/ยฏ

static zealot
#

if I had a library or something like that, that people actually used (even if a few) maybe

#

but nah

boreal needle
#

would be trying to put plugins on curseforge a bad idea?

lunar cypress
quiet depot
#

yes

#

so is gitkraken

lunar cypress
#

gitkraken is bloat

boreal needle
#

^

quiet depot
#

ssh clients are bloat

lunar cypress
boreal needle
#

cli does everything you need it to

quiet depot
#

but git is complicated at times

#

gitkraken helps

static zealot
lunar cypress
#

ah

static zealot
#

it was looking for origin/development on a local branch

lunar cypress
#

Oh yeah remote

static zealot
#

and yeah cli is pretty nice. I like it more now than even using the IJ Integration

#

it just takes a while getting used to it

quiet depot
#

I only use ij integration to push & commit, frankly don't know how to use anything else in it

prisma wave
#

CLI is what cool kids use

lunar cypress
#

I gotta be honest, I've used GitHub Desktop, then GitKraken, then the CLI, all of them for a considerable amount of time

prisma wave
#

Although magit is kinda hot

lunar cypress
#

But so far my favourite git client has been magit

prisma wave
#

YEAH

#

it's so nice

#

Much more responsive than IJ's

static zealot
#

never heard of Magit.

lunar cypress
#

It's simple, text based, but also fast and gives you a lot of convenience over the CLI

quiet depot
#

i wonder if sublime merge is any good

#

that's because it's an emacs thing blitz

static zealot
#

o

prisma wave
#

๐Ÿ˜Œ

lunar cypress
#

After that I'd place the CLI, although I could probably get into GitKraken again

quiet depot
#

when did you last use gitkraken?

#

was it a few years ago?

lunar cypress
#

It's been a hot year or two

quiet depot
#

frankly I've been using gitkraken for years though and I don't think its changed that much

#

your mind probably wouldn't change if you tried it out again

prisma wave
#

Using the mouse is so cumbersome

#

Slowly transitioning to 100% keyboard based

quiet depot
#

star was shocked the other day when I showed him me manipulating a bunch of lines with just the keyboard

static zealot
#

git kraken is pretty nice indeed. but it can be a bit incovinient at times (when u don't have premium or when you have to open an app just for every small commit)

quiet depot
#

he needs to learn the way

quiet depot
#

well no it was actually sublime but I think most multi line things from sublime are doable in ij

prisma wave
#

I would be very surprised if they weren't possible in vim too

#

So seems weird

quiet depot
#

they're definitely possible in vim

#

cuz he did the same thing in vim

#

well a similar thing

#

he just didn't know how to do it in ij

#

and now I realise that my original point doesn't make much sense anymore

prisma wave
#

huh

quiet depot
#

nvm

#

point is I agree

#

keyboard good mouse bad

#

i wonder if gitkraken has nice keybinds

#

I might need to make an effort to learn these

lunar cypress
#

I hate that I now instinctively use the emacs keybinds everywhere

#

And in some weird places they work

quiet depot
#

linux did that to me with copying/pasting

lunar cypress
#

You can go down in menus in discord (when selecting a slash command) with C-n

quiet depot
#

goodbye to the days of control c/control v

ocean quartz
#

Yeah GitKraken's shortcuts are pretty nice

lunar cypress
#

But not up with C-p

quiet depot
#

hello to shift/control insert

lunar cypress
#

that opens the pinned messages lol

prisma wave
#

inconsistent

prisma wave
quiet depot
#

yea I do control shift c sometimes too

onyx loom
quiet depot
#

but for pasting, I nearly always do shift insert now

#

guess it really depends on where my fingers already are

lunar cypress
#

It's great that emacs has wildly different bindings for this

#

M-w is copy

#

C-y is yank (paste)

timber oak
#

What is best?

    private void utilHealingHeal( SpigotPlayer player, String amount ) {
        if(!(player == null)) {
            double maxHealth = player.getMaxHealth();

            if (!(maxHealth == 0)) {
                player.getWrapper().setHealth(maxHealth);
            }
        }
    }

---------------------------------------------------------------

    private void utilHealingHeal( SpigotPlayer player, String amount ) {
        if(player == null) return;
        double maxHealth = player.getMaxHealth();

        if(maxHealth == 0) return;

        player.getWrapper().setHealth(maxHealth);
    }
#

Focused on the if-statement readability btw

#

I've read about arrow-code but not sure when it's too much

cinder flare
#

Second

timber oak
#

But I've also been told to only have one entry point and one exit point

#

So

#

Idk

cinder flare
#

No that's dumb

winter iron
#

?

#

u can exit wherever

#

u should exit as early as possible

distant sun
#

Java 16 is stable, right?

cinder flare
#

It's much easier to see the path of the function like the second example

distant stump
#

Why Not?

cinder flare
distant stump
#

Also when you Upgrade to 1.17 u have.to use j16

distant sun
#

I thought the same Star, I just heard some bs lol

#

I know, Cloude.

cinder flare
#

Ah people smh

distant stump
#

We are using j16 since a half year now wothout any problems ๐Ÿ˜…

distant sun
#

so we are using java 15, so fingerguns

quiet depot
#

"major code smell"

distant stump
#

Jep before ibwas using j15 too

#

The step from 15 to 16 isnt that big the jump from 8 to 11 was bigger๐Ÿ˜…

onyx loom
#

u would hope a 3 version difference would be bigger lol

prisma wave
timber oak
prisma wave
#

probably, depends on your views on arrow code and things

#

I would personally write the latter (in java at least)

timber oak
#

latter?

prisma wave
#

2nd

timber oak
#

ight

gusty glen
obtuse gale
#

What?

gusty glen
obtuse gale
# jovial warren why is it duck

You can't reference a mixin class with "code" on it so you have to use what's called a duck interface

Example of Duck interfaces:

io/github/mymod/mixin/MyClassMixin```java
// This mixin implements the duck interface onto MyClass
@Mixin(MyClass.class)
public class MyClassMixin implements MyClassAccess {
@Override
public void access() {
System.out.println("Accessed!");
}
}


io/github/mymod/access/MyClassAccess```java
// The duck interface being implemented onto `MyClass`
public interface MyClassAccess {
    void access();
}

To use it:```java
public class Container {
public void slapHaykam(MyClass instance) {
((MyClassAccess)instance).access(); // Will print "Accessed!"
}
}

gusty glen
obtuse gale
#

Ah

static zealot
#

@half harness which discord integration plugin do you use for IJ btw?

half harness
#

uh

static zealot
#

ah. same.

#

bcz I saw it always say Coding

half harness
#

yep

#

u can change it

static zealot
#

IK

#

look at mine

half harness
static zealot
#

:))

#

I just enable it when I'm not in a project tho

#

idk why

#

will enable it always

half harness
#

lol press my status

#

sometimes i put it to this

static zealot
#

lmao

jovial warren
#

Sponge calls those bridge classes iirc

#

that's what I mean btw by bridge

#

I do wonder sometimes though if I could actually manage to write mixin classes in Kotlin, on another note

#

I mean, if the class generates exactly the same as a Java class then I don't see why not

steel heart
#

oo pog logback supports groovy configs

prisma wave
#

๐Ÿ˜–

half harness
#

yhwuajnksd intellij is being annoying to me

#

removing imports and forcing me to type out the whole package

#

if i manually type the import at the top it removes it and forces me to type the whole thing without imports Thonk (since i have auto-optimize imports enabled)

#

only happens in enums though

#

not even ctrl + shift + v to paste as plain text works ;-;

#

and the imports that are being used also shows as unused even though they're clearly being used

#

and now my code is magically working without imports

#

im confused

#

help

#

ill just restart intellij

#

lol

onyx loom
#

k

jovial warren
#

Log4J 2 on top

boreal needle
#

does anyone here understand how sponge works

jovial warren
#

yeah kinda

boreal needle
#

why are there so many versions

jovial warren
#

I mean, I study a lot of its code

jovial warren
boreal needle
#

and is sponge 8 actually implemented

jovial warren
#

you mean why do they properly and appropriately follow semantic versioning and Bukkit doesn't?

boreal needle
#

no

boreal needle
jovial warren
#

SpongeVanilla targeting API 8 exists, yes

boreal needle
#

where?

jovial warren
#

SpongeForge targeting API 8 hasn't been finished yet however

#

gimme a min

boreal needle
#

the download page only goes up to 1.12.2

#

oh is it just 1.12 with api 8?

jovial warren
#

it's still experimental, since the API hasn't been hard frozen yet

boreal needle
#

1.12.2

jovial warren
#

Sponge 8 likely won't be stable until around July time, or at least, I think that's what they said in the Discord

boreal needle
#

what

jovial warren
#

click my link

boreal needle
#

i did

steel heart
boreal needle
#

that's for 1.12

jovial warren
# steel heart ew

Log4J sucks ass, Logback is okay but not great, Log4J 2 is amazing

jovial warren
#

my bad

steel heart
#

wat

#

Log4J sucks ass and is amazing

jovial warren
#

don't think the downloads are on the sites

steel heart
jovial warren
#

read about it

steel heart
#

anyways the impl doesnt matter since I am just depending on slf4j literally

jovial warren
#

fair

steel heart
#

but logback is simple with its sole module that provides everything which is essentially needed

jovial warren
#

Log4J has that too

steel heart
#

looks like it has a lot of modules

jovial warren
#

yeah those are all extras

steel heart
#

oh well

#

time to blame JDA for using logback PES_Blush

jovial warren
#

they don't, I think they recommend Logback though

steel heart
#

yeah

#

they do

jovial warren
#

also, Log4J 2 also has its own API that's better than SLF4J (there's an SLF4J impl if you need it too), and it supports async logging, and beats both Log4J 1 and Logback on performance

steel heart
#

oo

#

hmm Log4j2 also has xml configs like logback so thats neat

#

well too bad JDA uses slf4j

jovial warren
#

(there's an SLF4J impl if you need it too)

boreal needle
#

oh nice thanks

steel heart
#

oh yeah I will go with logback for now

steel heart
#

๐Ÿฅฒ

half harness
frail glade
#

Looks to be down, yes.

half harness
#

oof

frail glade
#

Whatcha need?

half harness
#

was just running a program that uses it

#

but it had to compile

#

and then it showed that error

frail glade
#

Ahh

half harness
#

i just toggled intellij gradle offline mode and it works now tho

#

is it a feature of gradle?

#

or intellij?

frail glade
#

Uh

#

Probably Gradle.

#

Or IntelliJ.

#

๐Ÿ™‚

half harness
#

lol

onyx loom
#

gradle feature

half harness
#

oooooooooo

#

cooool

obtuse gale
#

Yeah maven sucks

#

-1

half harness
#

oof its ruining github actions too

#

maaaaaaaattttttttttttttttttttttttttttttttttt

obtuse gale
#

GitHub actions are overrated

half harness
#

> Cannot upload to 'https://s01.oss.sonatype.org/service/local/staging/deployByRepositoryId/iogithubdkim19375-1021/io/github/dkim19375/dkimcore/1.0.2/dkimcore-1.0.2.jar' in offline mode.

hwebfsuytawhdijwaodpwqakijdusihdas

#

does matt know about his repo being offline

obtuse gale
#

@ocean quartz :sip:

half harness
#

wat is dat

obtuse gale
#

๐Ÿ˜Œ

half harness
#

last day of using stickers

#

they made it nitro only iirc

#

hi matt

ocean quartz
#

Should be back up

half harness
#

tyyyyyyy

#

:))))))

half harness
#

uh

#

=remindme 2d "No more nitro :(("

compact perchBOT
#
New Reminder Set!
In 2 days, 0 hours, 0 minutes:

No more nitro :((

obtuse gale
#

=remindme in 2 days "get a femboy profile photo"

compact perchBOT
#
New Reminder Set!
In 1 day, 23 hours, 59 minutes:

get a femboy profile photo

prisma wave
#

why not do it now

#

pussy

obtuse gale
#

The one thing I don't have :(

prisma wave
#

โ˜น๏ธ

#

get a femboy profile picture

#

It will make you feel better

#

trust me

#

Or buff richard nixon

half harness
# compact perch

=remindme in 2 days "remind @obtuse gale to get a femboy profile photo"

compact perchBOT
#
New Reminder Set!
In 1 day, 23 hours, 59 minutes:

remind @rancid marlin to get a femboy profile photo

half harness
#

always on ur back ๐Ÿ˜‰

prisma wave
#

Please someone buy this for me

half harness
#

ok just pay me $15715.61

lunar cypress
#

This is the equivalent of someone putting a "kick me" sticker on your back

obtuse gale
#

Typical bri ish teenager

prisma wave
#

Nonsense

#

The world loves richard nixon

half harness
#

tbh idek who he is

obtuse gale
#

๐Ÿ˜Ÿ

lunar cypress
#

na education KEKW

old wyvern
#

Hes Richard Nixon. Ez

half harness
prisma wave
half harness
#

o

prisma wave
#

He's everyone's favourite because the people love him and he did nothing wrong

obtuse gale
#

๐ŸŒž

old wyvern
prisma wave
#

๐Ÿ˜ฎ

winged oyster
#

No way. Is your profile picture Richard Nixon, 37th president of the United States of America who held office from January 20, 1969 to August 9, 1974

obtuse gale
#

@half harness You are better dev now... Compared to old you

winged oyster
#

the muscles

tranquil crane
#

I think BM is just slowly quickly falling down the hole of insanity

half harness
#

lol

old wyvern
#

What if he was already insane? ๐Ÿ˜”

tranquil crane
#

His profile pictures would explain it

ocean quartz
#

He's been in that hole for a while now ๐Ÿ˜”

tranquil crane
#

Insane x2 then

#

๐Ÿ˜”

obtuse gale
#

oh yer typical brister mitten

old wyvern
#

blister mitten

obtuse gale
#

I need someone to make me feels good

#

I'll give $1

#

Jk jk

#

hookers aren't that cheap y'know

old wyvern
#

Dkims alt?

obtuse gale
#

bet

obtuse gale
half harness
#

;-;

obtuse gale
#

Tf

#

I am not alt

half harness
#

i dont type in caps

obtuse gale
#

Check me dammit

old wyvern
#

Maybe

obtuse gale
#

really

#

bruh

half harness
#

lol

obtuse gale
#

;-;

#

lol

#

no ban pls

ocean quartz
#

He does

half harness
tranquil crane
#

Discord isn't letting me check your name, there's some sort of syntax error

ocean quartz
#

type

obtuse gale
#

no picture

ocean quartz
#

like

#

this

#

though

wispy palm
#

hiiiiiiiiiiii

tranquil crane
#

tyty I'll be here all week for the next minute

prisma wave
#

hello everyone

frigid badge
#

hello

prisma wave
#

yo yo yo

obtuse gale
#

sup dog

half harness
#

sup cat

obtuse gale
half harness
#

๐Ÿ‘

timber oak
#

Someone want to take their time and explain cracked servers? Because I don't get what the difference is lol

winged oyster
#

cracked servers don't require mojang authentication

#

so you could technically log in with any account

#

at least that's my understanding of it

obtuse gale
#

sup god

#

dog*

timber oak
#

Makes sense, since cracked accounts are often used there

obtuse gale
#

Premium is for Paid-MC

half harness
#

non-paid mc = pirated mc

#

= bad

obtuse gale
#

More like... Leaked MC

half harness
#

eh

obtuse gale
#

eh

half harness
#

i mean they change the code

obtuse gale
#

;-;

timber oak
#

Sooo the servers make their own authentication to prevent bots?

obtuse gale
#

yes

half harness
#

since no auth = no real accounts

obtuse gale
#

yep

timber oak
#

True

half harness
#

the UUID is generated based on the username

timber oak
#

I feel like the auth they make is easy to bypass though, it's just /register code code most of the time

half harness
#

it's made so that u can play without internet... however people use it for the wrong purpose ๐Ÿ‘€

obtuse gale
#

when you have cracked server... leaked users can use premium acc to join

obtuse gale
#

ex... people using pewdiepie acc name then join your server

half harness
#

im surprised spigotmc allows plugins made specifically for cracked servers

obtuse gale
#

also suprised that mojang make the servers has offline mode

timber oak
#

Can Mojang not fix these cracked servers to prevent it?

half harness
obtuse gale
#

cuz it everywhere

half harness
#

they can make it so that u can only join with localhost

#

although plugins or modified server jars would be able to remove that

timber oak
#

Oh yeah

half harness
#

or they can include it in the client

obtuse gale
#

even so... people can hack the server to get your acc like hypixel... got leaked..

timber oak
#

It will always be bypassed

half harness
#

so every client must install a mod or special client

#

since they're not connecting to localhost

obtuse gale
#

dkim

half harness
#

ye?

obtuse gale
#

teach me how to make plugin

half harness
#

um

timber oak
#

fk cracked servers then

obtuse gale
#

i can't ask youtube person that show tutorial

#

most of them out of date

half harness
#

don't use youtube

#

learn java first

#

then spigot api

obtuse gale
half harness
#

isn't cracked = pirating

#

= illegal

obtuse gale
#

nah

#

still no banning the servers

timber oak
half harness
#

stealing = pirating

#

= illegal

timber oak
#

Yeah

obtuse gale
#

bruh

timber oak
#

Not wrong though

obtuse gale
#

search for blockstacker... huge server in asia

#

no banned

#

mojang don't really care about cracked servers

half harness
#

there are criminals that aren't in jail

timber oak
#

Not banned does not mean it's legal

obtuse gale
#

but no p2w servers

half harness
half harness
obtuse gale
#

yes

#

see

half harness
#

..

obtuse gale
#

i win

timber oak
#

bruh

#

lol

half harness
#

lmao

obtuse gale
#

2 v 1

half harness
#

it's not that they don't care, it's that they can't do anything about it anyways

obtuse gale
#

i win

#

yolo

half harness
#

ยฏ_(ใƒ„)_/ยฏ

obtuse gale
#

i am running

half harness
#

Offline mode indeed isn't illegal... but using offline mode to allow cracked copies of minecraft to join your server is.

#

wat

#

๐Ÿƒโ€โ™‚๏ธ๐Ÿƒโ€โ™‚๏ธ๐Ÿƒโ€โ™‚๏ธ๐Ÿƒโ€โ™‚๏ธ

obtuse gale
#

shows "you are running"

#

I am

half harness
#

โ“

obtuse gale
#

???

#

If you were sent to this page, you are running:

half harness
#

O

obtuse gale
#

dkim you should learn how to read

#

i can't send photo cuz this is channel don't give perm

half harness
#

A cracked version of Minecraft
A server that supports users of Minecraft cracks
Or a server running in offline-mode for any given reason.
This is also sometimes used as a reference for cracked plugins, and most (though not all) of the contents on this page still apply.

half harness
timber oak
obtuse gale
#

he can't read... dev eyes different

half harness
#

to

Minecraft cracks are illegal software piracy.

Creating, downloading, using, possessing, or distributing a Minecraft crack is a crime.

You should never download, use, or distribute illegal software.

winged oyster
obtuse gale
#

just dkim hhhhhh

#

i use cracked server for years

obtuse gale
half harness
obtuse gale
#

cracked minecraft, cracked server, cracked window, cracked houses

half harness
obtuse gale
#

btw

#

who good with javascript

half harness
#

not me mmLol

winged oyster
obtuse gale
#

i need someone that can make 2GB server to any number of GB using a plugin

#

like bad plugin ig

timber oak
half harness
obtuse gale
half harness
winged oyster
obtuse gale
half harness
#

if for ex u have a 2gb machine, you can't go above 2gb

#

that isn't physcially possible

#

lol

#

or else memory companies would go bankrupt

#

everyone buying 1gb

obtuse gale
#

i saw someone leaked software.jar... and made 2gb server to 10gb server

winged oyster
#

what problem are you having? you can't change how much memory a server is using?

timber oak
#

Lmao

obtuse gale
#

i was like wtf

half harness
#

๐Ÿคฃ

obtuse gale
#

he got banned and banned from hosting

half harness
timber oak
#

Mate just don't

half harness
#

wait

timber oak
#

It is

half harness
#

they may have bypassed the hosting company's restrictions

obtuse gale
#

the whole vps broken

winged oyster
half harness
#

since hosting companies use containers or smth to prevent server owners from bypassing the limit

obtuse gale
half harness
#

so they probably still bypassed it

timber oak
#

But yeah, you need to bypass the company restrictions, which is very difficult in most cases

half harness
#

somehow

obtuse gale
#

idk how tf someone can dothat

half harness
#

but then again, you're pirating mc

#

soooooooo

timber oak
timber oak
obtuse gale
#

can someone make a bypass plugin hosting gb for pterodactyl :>

half harness
#

no

#

i'm not going to participate in any illegal activities :))

obtuse gale
#

lol

winged oyster
#

ยฏ_(ใƒ„)_/ยฏ

obtuse gale
#

teach

winged oyster
#

Also the programming language would be java, not javascript

obtuse gale
#

c+?