#dev-general

1 messages ยท Page 103 of 1

jovial warren
#

KORM, meaning Kotlin Object-Relational Mapping, kinda makes sense

errant geyser
#

Ok how hard are these normally KM?

jovial warren
#

depends

prisma wave
#

some are really easy

onyx loom
#

fairly easy

prisma wave
#

some are pretty tricky

jovial warren
#

yeah

prisma wave
#

some are weirdly worded but actually easy

errant geyser
#

I've never done one before

obtuse gale
#

are we doing it where we have to do a new language or na?

jovial warren
#

some are just impossible

prisma wave
#

nah not rn

onyx loom
#

15 seconds

prisma wave
#

yeah a few are insanely hard

onyx loom
#

10

prisma wave
#

use any language rn

errant geyser
#

7

jovial warren
#

what are the limits?

errant geyser
#

5

prisma wave
#

limits?

obtuse gale
#

limits?

jovial warren
#

shortest limits

prisma wave
#

using python is kinda a free win

#

but i guess that's ok

#

nice @errant geyser

errant geyser
#

Thanks

prisma wave
#

0%

errant geyser
#

I did very well

prisma wave
#

very well indeed

errant geyser
#

I fogot to split it

#

.-.

onyx loom
#

how i get a scratch file again bm

prisma wave
#

ctrl + shift + a

#

then type scratch

#

@errant geyser you can test it before you submit

errant geyser
#

Wait but

hot hull
#

KM, is there a way to run the scratch file btw?

prisma wave
#

yes

errant geyser
#

That should've worked BM

prisma wave
#

@errant geyser it's how many letters

errant geyser
#

OH

prisma wave
#

ie ignore spaces and things

hot hull
#

And then you can just run it?

errant geyser
#

See I'm smart

prisma wave
#

yes

#

very smart

hot hull
#

oh, didn't know that

onyx loom
#

yeah at first i thought it was really simple

#

one id actaully get right ๐Ÿ˜ญ

#

i can do this 1, just need to figure out how thonk

errant geyser
#
message = input()
total = 0

for char in message:
  if char in "abcdefghijklmopqrstuvwxyz" or char in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":
    total += 1

print(total)``` done
onyx loom
#

jesus christ

#

ignoreCase?

prisma wave
#

that's actually really verbose for python

errant geyser
#

^

prisma wave
#

usually you can do it in like 3 letters

errant geyser
#

Nah

obtuse gale
#

mine works for like the first 2 lol

errant geyser
#

Well yeah

#

But shut up

prisma wave
#

:/

errant geyser
#

It works

prisma wave
#

the challenge is smallest code possible tho

errant geyser
#

Wait

#
message = input()
total = 0

for char in message:
  if char.lower() in "abcdefghijklmopqrstuvwxyz":
    total += 1

print(total)``` done
prisma wave
#

can you not do it declaratively?

#

that's usually smaller

errant geyser
#

Ugh

jovial warren
#

okay lunch time

prisma wave
#

in kotlin it's just ```kotlin
readLine()!!.toCharArray().count { it.isLetter() }

errant geyser
#
def output(message):
  return char for char in message if char.lower() in "abcdefghijklmopqrstuvwxyz"

print(output(input()))
#

Better?

prisma wave
#

i guess

#

kotlin would still win tho >:)

#

surprisingly

onyx loom
#

lol

#

promise i didnt copy

prisma wave
#

looks very original

onyx loom
#

ty

prisma wave
#

wp wp

errant geyser
#

Hey no fair

errant geyser
#

We should do one in Python and watch me still lose

prisma wave
#

i've barely used python

onyx loom
#

i tried different ways first but couldnt get it working with .replace(" ", "")

prisma wave
#

you can use a regex

onyx loom
#

yeah and that

#

s* or smth right

topaz bay
#

write this in Java

onyx loom
#

u sent it to me the other day

prisma wave
#

i'm not sure there is a regex thing for just alphabetical apart from [a-zA-Z]+

onyx loom
#

val numbers = readLine()?.split(",s*".toRegex())?.map(String::toInt)?.average() xdxd

#

thats what u sent

#

so could .average be changed to .length?

prisma wave
#

hm

#

\s is for whitespace

#

i guess you could remove all whitespace with \s* and then count the characters

onyx loom
#

how the fuck are u so fast

#

im still reading

prisma wave
#

i just saw "sum of square numbers" which was the important bit

obtuse gale
#

oof

#

we did the exact same thing but you took 50 seconds less

prisma wave
#

speedy

obtuse gale
#

i also messed up once and did + instead of +=

prisma wave
#

ah rip

#

typos are so annoying

onyx loom
#

omg

#

im suck a fucking idiot

obtuse gale
#

lol

#

on a completely random note is it hard to convert currencies in java/kotlin?

prisma wave
#

not particularly

#

it's mostly just multiplication

errant geyser
#

Wait

#

How is this failing

prisma wave
#

you'd probably want to use an external service (as rates can change)

obtuse gale
#

the exchange rate changes tho

#

yeah

errant geyser
#
n = int(input())
n_list = []
total = 0

for i in input().split(" "):
    n_list.append(int(i))

for x in n_list:
    total += x ** x

print(total)
``` how is that 32?
hot hull
#

Find an api which gets the latest exchange rates

prisma wave
#

isn't ** power?

errant geyser
#

Yeah

hot hull
#

and you're set

prisma wave
#

so you want x * x

errant geyser
#

๐Ÿคฆ

prisma wave
#

not x ** x which is x^x

errant geyser
#

Nevermind me

prisma wave
#

:)

errant geyser
#

I'm very good at this

#

Ok well it worked at least

onyx loom
prisma wave
#

nice

onyx loom
#

thats what i did, so close

prisma wave
#

declare square above the loop

#

var square = 0

onyx loom
#

ya

#

omg
im suck a fucking idiot

obtuse gale
#

for those wondering when Id use my right hand monitor from earlier btw

prisma wave
#

then square += xi * xi

#

๐Ÿ˜ฆ

onyx loom
#

next 1?

obtuse gale
#

currently got clash of code on it, and ij on my main

prisma wave
#

nice

#

is that everyone?

#

i think so

topaz bay
obtuse gale
#

wtf is this bullshit

onyx loom
#

i know how to do it ๐Ÿ˜ 

#

but i cant get it working ๐Ÿ˜ 

obtuse gale
#

Whjy does the second y need to be lowecase?

#

AHH Ive got all the characters rigth

onyx loom
#

wait code size 230? bm

obtuse gale
#

its just the uppercase/lowecase

onyx loom
#

gimme a hint on what to do

#

because my way aint really working i dont think

#

if its regex im out

prisma wave
#

i did a massive hack

#

replace(k, v).replace(k.toLowerCase(), v)

obtuse gale
prisma wave
#

D|d

obtuse gale
#

i works but the casings fucked

prisma wave
#

well yeah

#

D|d matches both cases

errant geyser
#

Casing is screwed tho

#

Like I check if its an upper case letter yet it affects lower case too

prisma wave
#

imagine not using a Map<Char, Char>

#

smh

errant geyser
#

Bruh

#

This works for me

#

Completely fine

onyx loom
#

1000 chars incoming

errant geyser
#

What is this bs

distant sun
#

F

errant geyser
#

Actually kaliber its 662 god

#

Its a THICC boi

obtuse gale
#

this is bullshit.

onyx loom
#

bm if i wouldve carried on, could it have worked?

#

i really dont know

errant geyser
#

Bruh this site is shit

onyx loom
#

๐Ÿ˜ฆ

errant geyser
#

Why do if statements not work

#

In python

prisma wave
#

@onyx loom not exactly, because forEach can't modify the original String. doing it that way you would want something like kotlin s.map { when(it) { 'O' -> '0' //etc } }.joinToString()

obtuse gale
onyx loom
#

hmm k

#

idk any of this map shit before

prisma wave
#

map changes the list

#

eg ```kotlin
listOf(1, 2, 3).map {
it + 1
}
//will be [2, 3, 4]

#

it's functional programming

#

very nice stuff

onyx loom
#

tytyty

obtuse gale
#

imma stop lol

onyx loom
#

my brain is expanding with kotlin by the day

prisma wave
#

ok

onyx loom
#

i love it

obtuse gale
#

go work on my bedwars plugin

prisma wave
#

indeed

#

cya

hot hull
#

Aj

errant geyser
#

Ima have to forfeit this one guys, the site keeps rejecting it but it works on my end

prisma wave
#

rip

#

it can bug out occasionally

hot hull
#

you do realise it runs additional checks not just those to prevent what you were doing

errant geyser
#

eh

#

It worked tho

prisma wave
#

share code

errant geyser
#

never said it couldn't be inefficient and janky

prisma wave
#

it does extra checks behind the scenes

errant geyser
#

It wasn't supposed to be, sure

prisma wave
#

to make sure you've not cheated

errant geyser
#

heheh

#

You're going to hate this

#
import sys

s = input()
if len(s) < 1:
    sys.exit()

new_string = []

for char in s:
    if char == "O":
        new_string.append(0)
    elif char == "L":
        new_string.append(1)
    elif char == "Z":
        new_string.append(2)
    elif char == "E":
        new_string.append(3)
    elif char == "A":
        new_string.append(4)
    elif char == "S":
        new_string.append(5)
    elif char == "G":
        new_string.append(6)
    elif char == "T":
        new_string.append(7)
    elif char == "B":
        new_string.append(8)
    elif char == "Q":
        new_string.append(9)
    else:
        new_string.append(char)

print("".join(new_string))
prisma wave
#

dear god

onyx loom
#

๐Ÿ˜‚

prisma wave
#

yeah maybe the extra checks broke that

#

idk

errant geyser
#

Yep

#

Probably the check

#

But it kept saying it replaced lower case e's

#

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

onyx loom
#

who knows

hot hull
#

wait, listener priority lowest, is fired first correct?

errant geyser
#

MONITOR isn't it?

prisma wave
#

monitor is last

hot hull
#

You don't use monitor

prisma wave
#

lowest is first

errant geyser
#

Wait what

#

How does that make sense

onyx loom
#

why would monitor be first?

hot hull
#

Because you monitor shit?

errant geyser
#

No

#

I mean

#

Why would lowest be first

#

Why not HIGHEST

onyx loom
#

monitor must be last to see if another plugin has modified the event n shit no?

heady birch
#

because higher priority has final say

errant geyser
#

aaaaa

prisma wave
#

monitor must be last to see if another plugin has modified the event n shit no?
precisely

onyx loom
#

me smort

errant geyser
#

Yeah Kaliber you're not supposed to change anything about the event with MONITOR

prisma wave
#

Lowest happens first, because its effects have the lowest priority

onyx loom
#

ik katsu

#

me smort, and me hasnt even got to bukkit api yet

errant geyser
#

๐Ÿ‘€

hot hull
#

Boutta shit on mcmmo because it cancells my events and just unregister all of it's listeners

heady birch
#

lol

onyx loom
heady birch
#

I got annoyed yesterday with my expansion

errant geyser
#

That seems like a bad idea Frosty

onyx loom
#

class loaders can f off

heady birch
#

So I just decided to unregister all events on PlayerQuitEvent.

#

good luck server owners finding that

hot hull
onyx loom
hot hull
#

And it cancells mine..

#

(even using lowest priority)

heady birch
#

ignoreCancelled = false?

onyx loom
#

any more clashes or nah?

hot hull
#

It's default as false Niall

heady birch
#

the clash

onyx loom
#

clash of clans

hot hull
#

@prisma wave Any suggestions as to how I'm supposed to approach this if another plugin is being a bitch?

onyx loom
#

make ur own mcmmo

#

i promise it wont take months

hot hull
#

I don't have the braincells

onyx loom
#

is mcmmo os?

hot hull
#

Yes

onyx loom
#

just modify the source then. problem solved ๐Ÿ™ƒ

hot hull
#

Using the 1.8.8 version and it's effort to find the right source

prisma wave
#

what exactly is the problem?

heady birch
#

@prisma wave Any suggestions as to how I'm supposed to approach this if another plugin is being a bitch?
@hot hull

#

Unregister its listener

hot hull
#

But I kinda need it

heady birch
#

Just disable the plugin

#

dont let it intefere

prisma wave
#

hm

heady birch
#

ITs their fault

prisma wave
#

you could unregister the listener and call it manually

#

glorious hacks

heady birch
#

No just unregister it completely

prisma wave
#

you might need it tho

heady birch
#

Delete the jar from plugins folder

onyx loom
#

^

#

i second this

#

very good option

prisma wave
#

hack into Github and delete the repo

hot hull
#

Imma check what the fuck they're doing first

heady birch
#

๐Ÿ˜•

#

We regret to inform you that the CEO of niallib has redirected our funds

#

NiallLib Lib will not longer be produced

onyx loom
#

LMAO

prisma wave
#

NO

onyx loom
#

wait.

prisma wave
#

wtf

onyx loom
#

this is a very sad time

#

i am deeply saddened by this.

prisma wave
#

start a gofundme

#

the people want to see it

onyx loom
#

๐Ÿ˜ญ

#

We regret to inform you that the CEO of niallib has redirected our funds
where the funds going now

#

to niallLib again in 2 months?

heady birch
#

KaLIBer

onyx loom
#

๐Ÿ˜ฎ

#

yo

#

when i create a lib

#

thats the name

#

ty niall

errant geyser
#

KaLib

onyx loom
#

both are very good options

heady birch
#

Kalib sounds better

hot hull
#

Mother f**rs

@EventHandler(priority = EventPriority.LOWEST,ignoreCancelled = true)
    public void onPlayerInteractLowest(PlayerInteractEvent event)
{
onyx loom
obtuse gale
#

Anyone know a good currency exchange convertor thingy api/lib/whatever lol

onyx loom
#

yourself

#

convert it yourself

obtuse gale
errant geyser
#

Well I mean

#

Make it start with a {

#

๐Ÿค”

obtuse gale
#

but.....

#

how

#

i think the libs broken lol

#

hasnt been updated in 3 years

#

ah nvm

#

I just found an issue on the github

hot hull
#

eeee

[16:11:55 INFO]: Plugin: mcMMO, Priority: LOWEST
[16:11:55 INFO]: Plugin: DistrictCore, Priority: LOWEST
[16:11:55 INFO]: Plugin: DistrictHarvesterHoes, Priority: LOWEST
[16:11:55 INFO]: Plugin: DistrictHarvesterHoes, Priority: LOWEST
[16:11:55 INFO]: Plugin: Essentials, Priority: LOW
[16:11:55 INFO]: Plugin: DistrictCore, Priority: NORMAL
[16:11:55 INFO]: Plugin: DistrictCore, Priority: NORMAL
[16:11:55 INFO]: Plugin: DistrictCore, Priority: NORMAL
[16:11:55 INFO]: Plugin: DistrictCore, Priority: NORMAL
[16:11:55 INFO]: Plugin: Essentials, Priority: NORMAL
[16:11:55 INFO]: Plugin: SilkSpawners, Priority: HIGHEST
[16:11:55 INFO]: Plugin: mcMMO, Priority: MONITOR
[16:11:55 INFO]: Plugin: ViaVersion, Priority: MONITOR
errant geyser
#

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

#

Update it AJ if you have to

obtuse gale
#

na, something they were grabbing the currencies or something shutdown, and instead of putting that anywhere they just replied to someones issue

woeful sigil
#

Okay, here's the thing...

#
const imap = {
  user: "user@gmail.com",
  password: "hotdogs123",
  host: "imap.gmail.com",
  port: 993, // imap port
  tls: true,// use secure connection
  tlsOptions: { rejectUnauthorized: false }
};

notifier(imap)
  .on('mail', mail => console.log(mail))
  .start();

// Loop

const n = notifier(imap);
n.on('end', () => n.start()) // session closed
  .on('mail', mail => console.log(mail.from[0].address, mail.subject))
  .start();

I am using this code (source: https://github.com/jcreigno/nodejs-mail-notifier) to receive new emails. Now I would like to perform a certain action when I receive a new email from a specific email. How should I do that?

#

I'm going to make a very embarrassing attempt to demonstrate what I'm going for... ๐Ÿ˜…

if mail.address('important@news.com') {
console.log('New important mail!')
}
#

I'm using NodeJS

prisma wave
#

if(mail.address == 'blah')?

woeful sigil
#

i tried this

#
if mail.from[0].address === "important@news.com" {
console.log('New important mail!"
}
#

but it says mail not defined

prisma wave
#

that's not remotely the correct syntax

woeful sigil
#

hehe

#

im sure that is the placeholder

prisma wave
#
on('mail', mail => {
  if(mail.address === 'blah') {
    console.log('hello')
  }
})
woeful sigil
#

im not sure if its mail.addresss

#

but ill give it ago

prisma wave
#

if not, stringify mail or something and find out what it is

woeful sigil
#

like parse it?

#

like how we parse a placeholder in placeholderapi ๐Ÿ˜›

prisma wave
#

stringify it to json

#

to find out the properties

woeful sigil
#

i'll google how to stringify something

prisma wave
#

JSON.stringify

woeful sigil
#

uh

#

yeah ill google

prisma wave
#

it's literally JSON.stringify(mail) lol

woeful sigil
#

oh

#

wait im trying the thing u sent

#

it might work

#

@prisma wave it worked!

prisma wave
#

great

woeful sigil
#
const n = notifier(imap);
n.on('end', () => n.start()) // session closed
  .on('mail', mail => {
  if(mail.from[0].address === 'putsmail@putsmail.litmus.com') {
    console.log('New mail arrived!')
  }
})
  .start();

prisma wave
#

nice

#

well as nice as Javascript can get

woeful sigil
#

initially i thought this was going to be my first python project

#

but since i had to do this fast because of something (important mails) i decided to do this on the language i can understand (but not code)

#

heheh

jovial warren
#

evening

woeful sigil
#

night

jovial warren
#

anyone know what Java's String#trim does?

#

since Kotlin's trim takes a predicate

old wyvern
#

it removes spaces from both ends

jovial warren
#

ah okay

old wyvern
#

Kotlins String.trim() does the same I think

#

it just has a extension function with the predicate

signal tinsel
#

I stole a pen from work and its now the only pen I have

onyx loom
#

๐Ÿ˜ฑ

normal talon
#

amateur

signal tinsel
#

Lol

#

Ok look

#

Its not that I threw all my pens away

#

I didn't have any pens before

steel heart
#

Does anyone know a IntelliJ plugin where you can teletype ?

rotund egret
#

Teletype?

steel heart
#

Write together like so I can see what my friend is typing and he can see what I am typing

prisma wave
#

live coding i believe is the term

steel heart
#

Yeah

#

@prisma wave You know any plugins for that?

steel heart
#

thx

topaz bay
#

Im pretty sure theyre adding this

prisma wave
#

They are

old wyvern
prisma wave
#

Soon

errant geyser
#

I use Floobits for it

#

Works pretty well

#

The other person doesnt even need to be in IJ

old wyvern
#

lol

prisma wave
#

I find it a gimmick anyway

#

Unless you both use the same code styles and structures, it'll just end up a mess

rotund egret
#

That's what style guides are for

errant geyser
#

Yeah but it's useful for organisations, and it's nice to casually collab with someone for a project, which is why I used Floobits in the first place

steel heart
#

floobits doesnt exist when searching plugins

errant geyser
#

I have it installed ยฏ\_(ใƒ„)_/ยฏ

prisma wave
#

Yeah style guides are all well and good but different people usually use different structures and things

old wyvern
quiet depot
#

floobits is eh

#

problems arise when you're both working towards the same thing in a project, as you'll inevitably end up editing the same file, which floobits will scream at you for

obtuse gale
#

isnt this on IJs roadmap?

quiet depot
#

it is

obtuse gale
#

didnt you write a guide on this on the spigot forums?

quiet depot
#

bit different

obtuse gale
#

ah

topaz bay
#

@ocean quartz kotlin reflection is honestly fucking evil

#

I just increased the performance of korm by (not a joke) 500%

#

By using Java reflection instead of kotlin reflection

#

Took it from an average of 5ms to <1 on a 100 run average

#

top is gson bottom is korm

quiet depot
#

why is kotlin reflection so slow?

topaz bay
#

Because everything has to populated at runtime

grim karma
topaz bay
#

Everything about classes is already known to the JVM

#

But kotlin has to gather all of that information

#

fields and methods have to be wrapped in kcallables

quiet depot
topaz bay
#

spigot plugin in the wild boys

#

Weve made it

#

Although, not in a very good light

obtuse gale
#

38 upvotes on r/badcode ._.

regal gale
#

You mean u/TeamTraitor?

obtuse gale
#

no?

#

unless I just dont know how reddit works

topaz bay
#

r = sub
u = user

#

its r/badcode, posted by the user u/TeamTraitor

regal gale
#

I was about to say that

obtuse gale
#

so yeah, r/badcode

regal gale
#

You know, that is posted by an invidual

obtuse gale
#

yes

#

on r/badcode

regal gale
#

But the u/TeamTraitor has 38 votes, get it?

obtuse gale
#

well yeah

topaz bay
#

users dont have votes

obtuse gale
#

the post has 38

topaz bay
#

posts have votes

#

users have karma

#

which isnt 1 to 1

regal gale
#

I didn't clarify enough thonking

#

Also, that's some pepe code right there xD

obtuse gale
#

whats guice?

#

ive heard people talking about it

regal gale
obtuse gale
#

Put simply, Guice alleviates the need for factories and the use of new in your Java code.

old wyvern
#

Dependency Injection framework

obtuse gale
#

do people use it for plugins?

old wyvern
#

I guess so

obtuse gale
#

I mean like, how much would it benefit just a general preson making a plugin

quiet depot
#

depends if you care about code quality

#

if so, it may help a lot

obtuse gale
#

I mean like Ive been trying to improve it

hot hull
#

Guice is one of those things, which improves it, but it's overkill in most cases :p

quiet depot
#

overkill never

#

i use it in all my stuff

hot hull
#

You're a 4head

heady birch
#

My time with guice was good

obtuse gale
#

"my time" as in past ๐Ÿค”

errant geyser
#

Niall's retired to take pictures of clouds or smth

trim hare
#

Iโ€™ve been trying to squeeze as much as possible out of guice

quiet depot
#

use child injectors if you want that

#

they're godly

#

I made a 2mb framework around them, that should tell you how useful they are

#

i lied

#

it's 10mb

#

oh woops that includes binaries

trim hare
#

What is Size, if itโ€™s not on disk?

quiet depot
trim hare
#

In memory

quiet depot
#

memory impact should be relatively low

trim hare
#

I meant your earlier screencap

quiet depot
#

oh uh

#

it's probably some sort of redundancy built into windows

#

like a high level of raid

trim hare
#

Well it definitely is redundant

quiet depot
trim hare
#

Gotcha

#

Sector size

quiet depot
obtuse gale
#

Why do I not wanna click any links an admin posts now

pallid gale
#

lol

quiet depot
#

there, embed

regal gale
#

Cool ๐Ÿ‘

heady birch
#

๐Ÿ˜•

heady birch
#

Im parsing a large json (27mb) or something into memory.. and shapefiles which can be even larger is this good?

#

Reading from file each time is extremely slow

#

1.5 seconds to find the correct row in json

#

Well actually- the shapefile is less in memory as I store floats and not doubles

regal gale
#

Oh god.. trying to make Whack-a-Mole game timing system on dm the whole time just to realize that spigot only accept 20 ticks as 1s...

hot hull
#

What else would it be thonking

onyx loom
obtuse gale
hot hull
#

allman better

quiet depot
#

said literally no one ever

jovial warren
#

yeah that looks about right @obtuse gale

#

I hate people who put their toilet roll that way round lol

obtuse gale
#

same

jovial warren
#

allman better
@hot hull whatever you're on, I want some of it

topaz bay
#

@quiet depot thats not true

#

Many people think allman is better

quiet depot
#

yeah ik ๐Ÿ˜ฆ

distant sun
#

sxtanna and sxtanna

quiet depot
#

allman is actually a majority

topaz bay
#

In fact, allman and K&R are the two most popular

quiet depot
#

by a lot

distant sun
#

which are the other formats?

quiet depot
#

they don't matter lol

topaz bay
#

There are tons

#

They are language specific though

#

Some* are

#

In computer programming, an indentation style is a convention governing the indentation of blocks of code to convey program structure. This article largely addresses the free-form languages, such as C and its descendants, but can be (and often is) applied to most other program...

prisma wave
#

the other ones are weird

distant sun
ocean quartz
#

As long as no one use Haskell i'm fine with it

distant sun
#

I was about to say that lmao

#

wtf is that

#

worse than @hot hull's commas on the 2nd line

prisma wave
#
while (x == y)
    {
    something();
    somethingelse();
    }

finalthing();``` this is hideous
#

literally disgusting

quiet depot
#

is that gnu?

prisma wave
#

Whitesmiths

ocean quartz
#

Also @topaz bay nice, holy shit, that's a huge difference (talking about the ping from yesterday, sorry i was already asleep)

hot hull
#

How bout you heck out Gaby

prisma wave
#

gnu is similar

distant sun
#

:)

#

but even worse km

topaz bay
#

Braces are used even when the block is empty or contains a single statement

#

Interesting

#

@ocean quartz RIGHT

#

Gonna be a nice little update

ocean quartz
#

Ngl Korm's syntax is pretty nice

topaz bay
#

Its pretty much json without quotes

ocean quartz
#

Simplified Json, easier to read

topaz bay
#

And without the 100% need for commas

signal tinsel
#

What program do I use to count the amount of lines of code in a project?

ocean quartz
#

Statistics

topaz bay
#

^

#

Great plugin

obtuse gale
#

^ Indeed

signal tinsel
#

?

#

Intellij plugin?

topaz bay
#

Yes

hot hull
#

Imagine it actually working ;c

topaz bay
#

?

signal tinsel
#

Link

ocean quartz
#

it does

signal tinsel
#

Nvm got it

hot hull
#

For me it doesn't, probs cause I'm using an ancient version

ocean quartz
#

Just search for Statists on on IJ lol

signal tinsel
#

Where are they showed

hot hull
#

View > Statistic

topaz bay
#

You can also just double hit shift

#

And type literally whatever you want to find

obtuse gale
#

ur fonts weird

topaz bay
#

Its.... jetbrains mono

prisma wave
#

imagine using a monospaced font for non-code

topaz bay
#

Imagine not

rotund egret
#

Polyspaced font ftw

obtuse gale
#

tf is the difference

#

oh

#

i see

halcyon geode
#

Which channel is the support channel

hot hull
#

Depends

halcyon geode
#

I found it

#

Thanks

topaz bay
#

๐Ÿ™‚

weak apex
#

Hi, I try to replace with javascript "(F)" with "" but only the F get replaced xd....

Code:
text.replaceAll("(F)", "") Can somebody help me?

#

Also text.replaceAll("()", "") doesn`t work

topaz bay
#

replaceAll is regex

weak apex
#

what should I use instead of it?

topaz bay
#

Went from taking 300+ milliseconds

#

to 0.4 milliseconds

#

Actually no, thats microseconds

#

300 to 4 milliseconds

#

Actually insane how slow kotlin reflection is

heady birch
#

What profiler is that

#

What profiler is that

#

No way is that the inbuilt one

topaz bay
#

Its jprofiler

#

Which I just got an OS license for

#

yaayyyy

heady birch
#

he

#

maybe you could uh.. share

#

joking ofcourse..

#

unless?

topaz bay
#

Its not like its hard to get a license?

#

They responded in literally less than 24 hours

heady birch
#

Didnt even know they did open sourced ones

topaz bay
heady birch
#

Did you add an additonal notes

topaz bay
#

Nope

#

This literal singular call to objectInstance

#

takes 3 fucking hundred milliseconds

#

That is so beyond unacceptable

#

And now extractFrom takes no time at all

#

๐Ÿ˜„

signal tinsel
#

It kicks for illegal char in chat

hot hull
#

Strip it before they send it

signal tinsel
#

How lol

#

I'm using matts framework

steel heart
#

Tell Matt to add it if it doesn't exist ๐Ÿ˜ฎ

signal tinsel
#

How would you do that even

hot hull
#

Make your own PlayerPreChatEvent

#

(If there isn't one) and strip it :p

signal tinsel
#

Hm

#

I mean I kinda can't like make my own jar

steel heart
#

What's useful with making your own event Frosty?

distant sun
#

he's frosty

#

don't ask questions

steel heart
#

Valid point

foggy axle
remote goblet
#

i swear if its literally just like

#

upload files into the directory

ocean quartz
#

It's literally that yeah, you point the subdomain to a directory and put images in it

prisma wave
#

Pretty much yeah

#

get a bit of software (eg sharex) to upload files via SFTP or something

#

and have nginx or another web server serve files in the directory

#

ez

remote goblet
#

okay this will be fun

distant sun
#

Fr

distant sun
errant geyser
#

Damn it you had me excited then Gaby thinking Python settled the longest standing debate ever

#

Then I saw the semi colon

#

Disappointment

prisma wave
#

semicolons are optional in JS

errant geyser
#

KM

#

If he left that without it I would've been so excited, only to have my dreams crushed

#

Getting let down gently is the way to go

#

@quiet depot sorry for the ping, do you think I could fit the unlootable loot rooms from the Opus into your build? You know the ones where you put the two carpets on the roof and then you can put 2 locked large boxes on them with a half wall in front?

topaz bay
#

@prisma wave kill me now

prisma wave
#

I suggest you spend 2 hours making a thing to programmatically add .java to all the calls

#

Rather than spending 10 minutes doing it by hand

topaz bay
#

Oh no, I'm not changing that

#

I'm completely rewriting all reflection to use java

#

java reflection*

#

not java code

old wyvern
topaz bay
#

It... it was already heavily using java reflection xD

prisma wave
#

imagine not using frigga reflection

errant geyser
#

KM

#

Change your name to FM

#

Then I can make fun of you for being a radio frequency or whatever

old wyvern
#

It... it was already heavily using java reflection xD
Oh ๐Ÿ˜‚

topaz bay
#

kill.

#

meeeeeeeeeeeeeeeeeeeeeeeeeee

#

I broke inner class deserialization

errant geyser
#

Sx if you wanna pay for my flight out I'll kill you

#

Dunno what with

rotund egret
#

With her own code

errant geyser
#

her?

rotund egret
#

Yeah, she's a her

errant geyser
#

Oh boi

#

Your about to get roasted when Sx checks this again

rotund egret
#

Nah, she wont care

errant geyser
#

Keep digging that hole

#

I'll just sit here and watch the show

#

๐Ÿฟ

rotund egret
#

What's she gonna do, type at me?

errant geyser
#

Yup

rotund egret
#

Ohno

#

Spooki

errant geyser
#

Ikr

rotund egret
#

She'll just have to get over it ๐Ÿ˜›

topaz bay
#

First of all bitch

#

My code is immaculate

#

How dare you

#

But also yeah, I don't really care if people call me she or her

errant geyser
#

Allman is not immaculate

topaz bay
#

It doesnt really matter

#

YES IT IS

errant geyser
#

Get out

#

Allman bad

topaz bay
#

Your pfp is an animal

#

You are automatically wrong

#

I dont make the rules

errant geyser
#

Allman -> ๐Ÿคข
My pfp -> ๐Ÿค—

errant geyser
topaz bay
#

I...

#

Please no.

errant geyser
#

You couldn't possibly snif blast a poor dog could you?snif

topaz bay
#

Oh dear god in heaven

rotund egret
#

I mean

#

I could

#

Is the dog a terrorist?

errant geyser
#

No

#

Not yet anyway

rotund egret
#

So they will be a terrorist?

ocean quartz
#

yet

rotund egret
#

Sorry man, dogs gotta die

errant geyser
#

ight I'm off guys, my tired brain goes places it really shouldn't.

#

It's not guaranteed Zod

rotund egret
#

Anyone know how to force a window to open on a specific window (if for example it's opening off of display?)

errant geyser
#

Windows key, shift, arrow keys

rotund egret
#

Perfect, ty.

#

It still thinks I have a 3rd display despite it being unplugged

errant geyser
#

Just for that ima need a protection deal for the dog

snow jackal
#

after World Downloading a world, for some reason the boss bar is still there
how do I remove that?

errant geyser
#

Theres like a 60/40 he's a terrorist

rotund egret
#

Is it 60 or 40 that's he's a terrorist?

errant geyser
#

Agree or the cat kills you

#

Simple

rotund egret
#

That's a bear

errant geyser
#

Its 60 that he is a terrorist

#

Lies

#

Lies and deceit

rotund egret
#

Too high of a chance

errant geyser
#

Damn it Zod

#

You got what you wanted

#

Now leave the dog alone

#

snif

#

Theres a lot more of that if you dont agree zod

#

Ok I really should go now before I make this weird

topaz bay
#

KILL IT

rotund egret
#

Dog may live

errant geyser
#

Yay

#

Thanks

#

Screw you Sx, allman bad

#

You know magicians have a smokescreen thing that they vanish into?

#

Internet equivalent

#

Surprise alien invasion

#

Bye

topaz bay
errant geyser
#

I'm not sure what to think of that Sx tbh

topaz bay
#

Its a great song, with a very memey music video

#

Its honestly iconic

errant geyser
#

So are my animals

#

Smhmh

topaz bay
#

wrong.

errant geyser
#

In ur opinion yeah

#

But my opinion is better obv

topaz bay
#

It is scientifically proven. My opinion is always better.

errant geyser
#

Yet you use allman

#

Kinda conflicting statements there

rotund egret
#

That's true

topaz bay
#

Allman is very popular, and objectively better

rotund egret
#

allman is objectively bad

errant geyser
#

^

topaz bay
#

Elaborate

#

Explain how that is so

errant geyser
#

Ok everyone, start the circlejerk

rotund egret
#

Looks like shit, reads like shit

errant geyser
#

It looks worse to me

topaz bay
#

Thats not an argument

errant geyser
#

What's the argument for it then?

rotund egret
#

It very much is,
bad design, and less readable

#

If anything is an argument its that

topaz bay
#

Except thats objectively wrong

#

The brace on the next line aligns with the closing brace of the current block

#

Making traversing them much more readable

rotund egret
#

The function already does that

errant geyser
#

For you

topaz bay
#

And the extra line between it and the statement allows for clear chunks of code, rather than bunched up messes

#

The function does not already do that

rotund egret
#
    fun {
    }
}```
errant geyser
#

We all have our own coding styles, and they're all ok. Except Sx is a 4head so obviously his is wrong. Oh and dont forget to start the Kotlin and Gradle circlejerk guys

rotund egret
topaz bay
#

You have no right to an opinion when you have an image background on your code

rotund egret
#

Smh

topaz bay
#

Not to mention, youre breaking several style guides

#

RIGHT THERE

#

And you have the nerve to complain about allman

rotund egret
#

I copied from a site smh

errant geyser
#

Just wait until mine and BMs audio visual molestation machine is ready Sx

topaz bay
#

Dont back up your opinion with shit code

rotund egret
#

You have no right to an opinion when your mustache looks like you're 12 :^)

errant geyser
#

Its gonna be great

rotund egret
#

New emoji

topaz bay
#

dis you??!?!?!?!

rotund egret
#

That's a sexy man

topaz bay
#

Thats a delusional man

rotund egret
#

Aint even got anything to say lmaoo

errant geyser
#

You think that's a yikes?

#

Look at my snapchat

topaz bay
#

Yes

#

Major Yikes

errant geyser
#

What the hell

#

Is this

topaz bay
#

?

rotund egret
#

Snapchat trying to make money as a failing platform

topaz bay
#

Looks pretty normal to me

errant geyser
#

Wait this is NORMAL?

#

wth

rotund egret
#

I mean yeah

topaz bay
#

Is this like... your first time opening snapchat?

errant geyser
#

This year yeah

topaz bay
#

Thats another yikes

errant geyser
#

Hey, I have no reason to use it

rotund egret
#

Snapchat is for prepubescent teens

#

Objectively true

errant geyser
#

I'm not interesting enough for anyone to ask for any form of contact/social media, so I just use discord + reddit for looking through stuff and chatting with friends

#

Zod is right

topaz bay
#

Having no reason to use it is yikes

#

nofriendsmegalul

rotund egret
#

That's what texts are for

#

smh

topaz bay
#

?

#

You can text in snapchat?

rotund egret
#

I can text without it

errant geyser
#

Why would I use it over this for friends? Me and my friends never actually text each other Zod, idk why. We use Steam, GoG, or this

rotund egret
#

Man if I want nudes I'll just get the picture that doesn't fade in 3 seconds smh

topaz bay
#

WHAT

rotund egret
#

Your simp ass out here looking at temporary pics

topaz bay
#

You're joking right

rotund egret
#

No, I'm just that much of a chad ๐Ÿ˜Ž

errant geyser
#

Tbf it's annoying snapchat deletes messages quickly, tho not for Zods situation

topaz bay
#

Not a single soul on this planet sends pictures that timeout

rotund egret
#

Now you're just making wild assumptions

topaz bay
#

Theres also a setting for chat where the messages only delete after 24 hours

#
  • you can save chat messages
rotund egret
#

My messages delete never via text ๐Ÿ‘€

#

Always

remote goblet
#

@topaz bay ur gay

topaz bay
#

Why do I care

remote goblet
#

cus its illegal to be gay

errant geyser
#

Ori out here lookin to get slapped

topaz bay
#

I can't see what he said

#

ez block

#

ez life

errant geyser
#

When Sx pulls a Niall

#

:pepe:

topaz bay
#

?

errant geyser
#

Oh I said something to Niall yesterday and he responded with "2 blocked messages" lol

topaz bay
#

nice

#

Its what you deserve

#

For having stupid opinions

errant geyser
#

Uh

#

K

topaz bay
#

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

errant geyser
#

allman bad, even Piggy agreed

#

You cant come back from that

remote goblet
#

well someone's mad kekW

errant geyser
#

My phones on 2%, sad times

#

Bye guys:(

topaz bay
#

I don't determine my opinions from the opinions of others

remote goblet
#

I don't stay petty and bitching about shit that happened a week ago

#

but here we are

errant geyser
#

F

topaz bay
#

Someone is rather chatty

errant geyser
#

I'm pretty sure I detect a pinch of salt in that Sx

remote goblet
#

That someone is not a lil bitch who's too scared to challenge your thoughts peepoShrug

topaz bay
#

In what?

hallow crane
#

Hey do you guys like chicken?

errant geyser
#

No

remote goblet
#

only on good days

errant geyser
#

Vegetarian

topaz bay
#

Gross

hallow crane
#

Yeah me neither

#

๐Ÿ˜ข

errant geyser
#

You use allman Sx, you cant have an opinion on my meat eating status

topaz bay
#

Yes. Those 100% relate.

rotund egret
#

What's wrong with being vegetarian?

remote goblet
#

vegetarians are cool people

hallow crane
#

I like beef

#

apparently you do too, Ori

#

๐Ÿ˜‰ jokes

remote goblet
#

first thing that came to my mind

hallow crane
#

2002

#

meme

errant geyser
#

It doesnt have to make sense Sx, we're internet acquaintances

remote goblet
#

i wasn't even born then CBPepeChristianServer

topaz bay
#

@rotund egret I said being gay was gross earlier

#

Why does this shock you

rotund egret
#

It doesn't shock me, I'm just wondering what lead you to be such a shitty person

topaz bay
#

How... does that make me a shitty person

rotund egret
#

You don't see how shitting on someone's life style wouldn't make you a shitty person?

errant geyser
#

I mean we were doing the same thing to his coding style

topaz bay
#

It's.... sarcasm...

rotund egret
#

You're bad at it.

topaz bay
#

LMFAO

#

Or maybe you're bad at detecting it?

rotund egret
#

No, you're just bad at it

#

It's objectively true.

topaz bay
#

Thank you.

rotund egret
#

You're welcome.

topaz bay
#

Thank you.

rotund egret
#

You're welcome.

errant geyser
#

Ok I cant tell whether this is just passive aggressive or salty

remote goblet
#

the way you speak to people and act towards others 99% of the time is also pretty shitty but we won't get into that one HR_HatDab

#

but im blocked so it doesn't matter what my opinions are, as they're someone elses datSips

topaz bay
#

homophone

#

Its whether*

errant geyser
#

Thanks

#

I cant spell

topaz bay
#

I can never spell the word necessary

#

I always mix up the double letters

errant geyser
#

Congrats on getting it this time ๐Ÿ’™

topaz bay
#

spell check

#

lol

errant geyser
#

F

topaz bay
#

Honestly one of the greatest inventions

errant geyser
#

Do you have some kind of discord grammarly thing you built in Kotlin

topaz bay
#

?

errant geyser
#

Rather than the default red lines

topaz bay
#

No?

errant geyser
#

It was a joke

#

Nvm

errant geyser
#

Hey yako just looked in request-paid, how did you get to working for those guys?

hallow crane
#

Connections

#

Originally for JackSucksAtLife because the Systems admin reached out to me after seeing my github & website

#

With that, I met some talented people that already worked there and they contacted me to help them out which got me in with other yters

errant geyser
#

furiously scribbling notes

rotund egret
#

tldr; connections are important for anything in life

hallow crane
#

yes much ^

#

After the first run in with a big dog, I pretty much am "famous" in the server development community when owners look for someone to hire

#

After the first big job, you have leverage and a status boost that will get your career started

topaz bay
#

Famous

hallow crane
#

I thought it'd never happen, but it eventually does for everyone who puts in the effort

topaz bay
#

Thank you

#

Lol

rotund egret
#

You're welcome.

topaz bay
#

Thank you.

errant geyser
#

Oh god not again

rotund egret
#

You're welcome.

hallow crane
#

"famous" = Has status that others look for in an employee

topaz bay
#

Thank you.

#

Status

errant geyser
#

Well I got my first like, actually worth it commission today after I started working for a server network, so I hope that's the start of something better but probably not lol

hallow crane
#

nice boost

errant geyser
#

Sx and Zod I feel like you guys have history

hallow crane
#

commission for network? is that like freelance longterm?

#

when I am employed I just track hours

errant geyser
#

Yeah pretty much

hallow crane
#

Ah.

topaz bay
#

I have no idea who that person is

hallow crane
#

?

#

Zod

#

who

#

@rotund egret

#

that

rotund egret
#

what

topaz bay
#

I was replying to @errant geyser

errant geyser
#

Pretty sure he was on about what I said about him and Zod having history

#

Yeah

hallow crane
#

yeah i was saying "who zod"

#

that zod

rotund egret
#

Yeah Sx and I used to date

#

๐Ÿ˜˜

topaz bay
#

Absolutely fucking not

rotund egret
#

ahaha

topaz bay
#

Hard pass