#dev-general

1 messages ยท Page 91 of 1

old wyvern
#

xD

lunar cypress
#

ok I didn't find my error

old wyvern
#

shar

#

e

#

ok nvm clojure

#

xD

spring canyon
#

VBS? xd

lunar cypress
#

this was binomial coefficient wasn't it?

old wyvern
#

VBScript

prisma wave
#

I think so yes

#

nCr

spring canyon
#

Yeah, this was my first "language"

old wyvern
#

nC2

spring canyon
#

But you can do challenges with VBS? xd

lunar cypress
#

hm idk what I got wrong then

#

I just implemented the algorithm from wikipedia lol

old wyvern
#

But you can do challenges with VBS? xdIts in the lang list

spring canyon
#

lol

#

Can you even print things to the console

spring canyon
#

I don't think so

old wyvern
#

yes

lunar cypress
#

again?

old wyvern
#

nvm vbs is not there

#

oof

lunar cypress
#

jesus kotlin with the 62

#

not getting near that

prisma wave
#

absolutely not

#

it's a 1 liner

onyx loom
#

๐Ÿ˜Ž

lunar cypress
#

Well it would be shorter if I didn't have to do the compatibility stuff

#

lol

#

shame

#

56 characters is mine without the junk

#

I think I broke mine

#

no wait all good

prisma wave
#

uh oh

lunar cypress
#

I could save one character but that would make it less idiomatic

#

hmm

#

keeping it

prisma wave
#

i don't think being idiomatic matters in this lmao

lunar cypress
#

good thing that idiomatic clojure is shortest clojure ๐Ÿ™‚

#

well almost

#

but anyway, I got a nice number now

prisma wave
#

very nice

spring canyon
#

Well, I wrote this in Java and Go, but it is both not nearly as short as your solutions

#

I wish I'd know Kotlin better

onyx loom
#

go learn

spring canyon
#

I'm probably learning Go or C first

#

I mean... I know some Kotlin but without autocompletion...

prisma wave
#

It does autocomplete I thought

lunar cypress
#

I does for clojure at least

#

The editor isn't actually that bad

old wyvern
#

welp

lunar cypress
#

PHP :omegaLUL:

spring canyon
#

Kotlin Language Assist interrupted

old wyvern
#

xD

lunar cypress
#

oh my god

old wyvern
#

<?php $w=str_split(stream_get_line(STDIN,100+1,"\n"));$r=0;foreach($w as$v){if(ord($v)%2==1)$r+=ord($v);}echo("$r\n")?>

#

boi

prisma wave
#

oh god

old wyvern
#

xD

lunar cypress
#

you are not allowed to mock clojure anymore

spring canyon
#

I'll just go with Go, whatever

lunar cypress
#

this is terrible

old wyvern
#

xD

#

bm

#

@prisma wave

prisma wave
#

yep

#

i can only do 1 more for now

spring canyon
#

Expected: CAN'TNothing
What? xd

prisma wave
#

well gg

onyx loom
#

jesus

prisma wave
#

i gtg

onyx loom
#

yall are still going? xd

old wyvern
#

gg

#

xD

#

yup

#

john

#

@lunar cypress

lunar cypress
#

calm down mate

#

it's been like 10 seconds

#

excuse me

#

tfw your tests succeed but you still get 0%

#

well ok turns out I misunderstood the task

#

lmao

prisma wave
#

Rip

lunar cypress
#

but my tests succeeded nonetheless

spring canyon
#

My tests succeeded too ๐Ÿค”

lunar cypress
#

you made the same mistake as me

#

I think

spring canyon
#

But I got 50%

lunar cypress
#

different tests, I suppose

spring canyon
#

Is that possible?

lunar cypress
#

yes

spring canyon
#

I thought they were all the same

lunar cypress
#

what we should have done: ||first n odd numbers|| what we did: ||odd numbers up to n||

spring canyon
#

No, I did the right thing

lunar cypress
#

are you sure about that

spring canyon
#

Look at my code

#

I added a counter

lunar cypress
#

I am

old wyvern
#

yes its first n odd

#
            c+=i;```
lunar cypress
#

but you limited it to 1000

spring canyon
#

And if this counter is greater then n it should stop

#

lol

#

You're right

lunar cypress
#

1000 was the upper bound of n

#

in clojure this could have been so great smh

old wyvern
#

its n^2 btw

#

xD

lunar cypress
#

I am too stupid

#

(reduce + (take n (filter odd? (range))))

old wyvern
#

arithmetic series

#

answer was just n*n

#

welp

lunar cypress
#

lol

#

what

#

omg

ocean quartz
#

50% what

lunar cypress
#

we're a bunch of idiots aren't we

old wyvern
#

Litrally that loop

#

r = 2

spring canyon
#

Same problem

old wyvern
#

a = 1

#

Sn

spring canyon
#

First n odd numbers, not just up to 1000

old wyvern
#

we're a bunch of idiots aren't weyup xD

lunar cypress
#

tfw you don't realise that literally every other number is odd

lunar cypress
#

oof

ocean quartz
#

Yugi, should have used list instead

lunar cypress
#

no that's not the problem

old wyvern
#

true

#

rip

lunar cypress
#

the problem is that sorting strings only works for positive numbers

old wyvern
#

wait

ocean quartz
#

Oh true

#

You're making it string array

old wyvern
#

Integer was my first go

#

but string join is weird then

#

welp

#

int cant be reverse sorted

lunar cypress
#

of course?

#

also you could use Integer

old wyvern
#

that is litrally what i ust said

#

Integer was my first go

lunar cypress
#

Why can't it be reverse sorted

old wyvern
#

it can

#

int cant

lunar cypress
#

int can too, just not with that particular method

old wyvern
#

mhm

#

what function to sort int rev?

lunar cypress
#

write your own sorting algorithm :^)

old wyvern
#

xD

spring canyon
#

Uhm, I had some weird issues

#

Sorry

ocean quartz
#

Did you need to sort then sort reverse?

old wyvern
#

directly reverse sort

lunar cypress
#

christ i need a dictionary for this

ocean quartz
#

Same

lunar cypress
#

I don't get it, tbh

#

so is it interest of interest of interest and so on?

#

probably

ocean quartz
#

I don't get it either

lunar cypress
#

Nah got it

spring canyon
#

I don't get it too

lunar cypress
#

If the price is 200 and the interest rate is 50%, you pay 100 in the first month, 50 in the second, 25 in the third and so on

#

I think

#

that plus the initial price

old wyvern
#

got it

lunar cypress
#

ok I got it wrong apparently lol

ocean quartz
#

Does the interest increase 50% each month?

old wyvern
#

its amount * (1+(monthly-interest/100))^months-counting

jovial warren
#

depends if it's compound or simple interest

lunar cypress
#

compound

jovial warren
#

you can do compound interest by taking the decimal value of the interest and raising it to the power of how many times you want to apply that interest

brave minnow
#

how do you retrieve player's language of OfflinePlayer ? (I'm using playerOffline.getPlayer() but don't have getPlayerLanguage())

jovial warren
#

e.g. 1000 x 1.05^2 would be a 5% interest over two months/years

old wyvern
#

I just gave the same eqn bruh

#

xD

jovial warren
#

how do you retrieve player's language of OfflinePlayer ? (I'm using playerOffline.getPlayer() but don't have getPlayerLanguage())
you can get players' language?

#

also Bukkit probably doesn't cache that

brave minnow
#

you can get it

jovial warren
#

how getting offline players works is Bukkit saves details about players who have joined before in a file somewhere

brave minnow
#

@topaz bay help pls D:

prisma wave
#

Iirc language is sent on player login and it can change at any time

#

So it isn't cached

jovial warren
#

I don't imagine the player's language is something they would save

prisma wave
#

Apart from in memory

jovial warren
#

yeah

brave minnow
#

Sxtanna told me to use getPlayerLanguage() provided by bukkit api

jovial warren
#

you'd be better off storing the language yourself

prisma wave
#

Yes

jovial warren
#

for online players that works I think

prisma wave
#

Player#getPlayerLanguage

jovial warren
#

but Player implements OfflinePlayer, not the other way around

brave minnow
#

yep that's why I use OfflinePlayer.getPlayer()

jovial warren
#

is that even possible?

prisma wave
#

That will be null if the player is offline

jovial warren
#

^^^^

prisma wave
#

But it exists

frail glade
#

Really? Lol I don't think I've ever used that.

brave minnow
#

the player is supposed to be on don't worry

prisma wave
#

Yeah it exists

#

Player#getPlayer is technically a thing lol

old wyvern
#

true

#

lol

jovial warren
#

why the actual hell are you using offline player if the player is online @brave minnow ?

lunar cypress
#

man this fucking sucked

ocean quartz
#

This was awful

brave minnow
#

because it's PAPI provided expansion java class

frail glade
#

Papi also works on offline players

old wyvern
#

n, i, m = [int(i) for i in input().split()];print(round(n*((1+(i/100))**m)))

lunar cypress
#

you already sent the solution above...

#

no need to spoiler tag this now lol

spring canyon
#

I couldn't get it to work ยฏ_(ใƒ„)_/ยฏ

#

Type conversion in Go

brave minnow
#

Waffle is it wise to ask you that on PAPI ? Why do on expansion we are using OfflinePlayer class ?

frail glade
#

Because sometimes you don't really want to have to worry about a player to show the data

#

For stuff like server tps and whatnot

ocean quartz
#

This is the type of problems Kotlin shines on, there is always a useful functions to solve this easily

lunar cypress
#

I got several exceptions because I forgot the order of parameters for one function

old wyvern
#

welp

brave minnow
#

why can't I retrieve playerLanguage() on a Player object ?! >.<

spring canyon
#

I had this weird bug again where it detects nothing if you have a space at the end of the output line

lunar cypress
#

Yeah that sucks

#

I transitioned to always joining the result

spring canyon
#

I'm not playing for the next minutes

lunar cypress
#

what a task

ocean quartz
#

For some reason it fails on task 3 what

old wyvern
#

digits i think

lunar cypress
#

^

#

I wish I could leave out that boilerplate

#

are you kidding me matt

ocean quartz
#

What? xD

lunar cypress
#

I'm at 93

#

and can't get lower

ocean quartz
#

I literally removed everything i could xD

lunar cypress
#

me too

#

Without the boilerplate the site requires me to write this would be a win ๐Ÿ˜ฆ

ocean quartz
#

Oh i actually i think i could have made it smaller damn

#

If i had replaced the {} with = i would have gotten 91

lunar cypress
#

I have to write ```clj
(ns Solution
(:gen-class))
(defn -main [& a])

#

well, can't get it lower

#

I'll take it

old wyvern
#

xD

lunar cypress
#

you could have done much less matt

#

readLine() is a thing

ocean quartz
#

Ooh i didn't know that xD

lunar cypress
#

frick

#

got greedy again

topaz bay
#

Uhhh

#

the method is not getPlayerLanguage

#

Its getLocale

#

@brave minnow

ocean quartz
#

I don't get why the 2nd fails

brave minnow
#

yup just figure it out a bit after asking sry >.<

#

to acces (from yaml)

simpleTest:
    en_us: "simple test"

I must do myConfigFile.getString("simpleTest.en_us");
no ?

ocean quartz
#

this makes no sense wtf xD

lunar cypress
#

man i should have taken my time

#

I always have the wrong intuition

ocean quartz
#

I don't get why the second wants 100

lunar cypress
#

I felt like you were going to finish 1 second after me

ocean quartz
#

It's 80, 80 + 20% is 96

lunar cypress
#

share code

ocean quartz
#

I submitted i have no idea

lunar cypress
#

ok I actually did the same

#

I thought it didn't always expect an int and that's why it failed me

#

but apparently I ran into the same issue

ocean quartz
#

Idk, it wanted 100 on the second, but i don't understand how

#

It passed all others

old wyvern
#

second input is 120

ocean quartz
#

If it's 120 and M then female is 96

#

Still the same number

old wyvern
#

System.out.println((int)(0.84*W));this worke

#

didek

#

idek*

#

75%

#

ill take it

#

xD

lunar cypress
#

what the f

ocean quartz
#

Wut how

old wyvern
#

litrally did 24/120

#

xD

#

20/120*

lunar cypress
#

time to submit feedback

old wyvern
#

and used the value

#

xD

ocean quartz
#

Where did you the the 84 from? xD

old wyvern
#

wdym?

ocean quartz
#

0.84

old wyvern
#

1 - (20/120)

#

20 was the result to get wht they got

#

I guess their error

ocean quartz
#

I think so too

#

I left a feedback

old wyvern
#

same

#

left a 1 star on everything thonking โ˜ ๏ธ

#

welp

#

what other games do they have ? o.o

brave minnow
#

how can I check if a Yaml file is properly loaded ?

prisma wave
#

Define "properly loaded"

brave minnow
#

it is loaded

#

because I'm trying to get something inside of it and I think the file isn't loaded :c

ocean quartz
#

90??

#

Python wtf

old wyvern
#

xD

ocean quartz
#

I wonder if it would have worked for me too without all the replaces

old wyvern
#

hmm

ocean quartz
#

I think i could have used regex

#

Shit

old wyvern
#

xD

#

can regex do that?

ocean quartz
#

I think so

brave minnow
#

@prisma wave I want to know if there's something in it that's all

old wyvern
#

I mean wouldnt you still have to do the replace calls?

prisma wave
#

contains?

ocean quartz
#

But probably only one call I think

#

idk tbh

brave minnow
#

well I got a poblem then '-'

lunar cypress
#

the code I just wrote is the most digusting thing ever

old wyvern
#

xD

brave minnow
#

to get something from a Yaml file you use
configFile.getString("nameOfMyParent.nmaeOfMyChild")
to get the text inside nameOfMyChild @prisma wave ?

lunar cypress
#

oh my god matt

#

yours is even more terrible

ocean quartz
#

Ikr

old wyvern
#

welp the thing i di in python was from bardy

#

he did that in a earlier round

lunar cypress
#

ah the cheating

old wyvern
#

how is that cheating?

#

I remembered

prisma wave
#

@brave minnow yes

brave minnow
#

it's returning me null ...

ocean quartz
#

I hate the reverse ones

lunar cypress
#

got it

old wyvern
#

what the hell is this

brave minnow
#

@prisma wave
getting the path of the string (here it is simpleTest.en_us)

String placeholder = configFile.getString(fileCheck[1] + "." + player.getPlayer().getLocale());

This is the yaml config

simpleTest:
    en_us: "This is a simple test!"
    fr_fr: "C'est un texte simple!"
#

and I got null in returns

prisma wave
#

what's fileCheck[1]

#

Also iirc the locale is in the format en-us

brave minnow
#

it's mli_default_simpleTest
so mli_{file}_{placeholder}

#

I printed it in console and it returns with _

prisma wave
#

Hm

brave minnow
#

will try with -

prisma wave
#

Debug I guess

#

Make sure fileCheck is right

brave minnow
#

fileCheck is right

ocean quartz
#

I am pretty stupid, i can't figure this one out xD

brave minnow
#

I printed my file path --- fileCheck[1]

#

plugins\PlaceholderAPI\mli\default.yml --- simpleTest

#

and got this

old wyvern
#

same

#

test 3 fails me

spring canyon
#

Idk why but this one was hard xd Although the solution is pretty simple

lunar cypress
#

tip: ||it's a combination of two simple maths operations||

ocean quartz
#

I haven't even wrote anything can't even figure it xD

brave minnow
#

@prisma wave added player.getLocale() in third
plugins\PlaceholderAPI\mli\default.yml --- simpleTest --- en_us

old wyvern
#

(sum+first element)*2
Am i on the right track?

spring canyon
#

Nop

lunar cypress
#

no it's easier

#

not in terms of length but generally

spring canyon
#

Don't separate the values

lunar cypress
#

not so specific

spring canyon
#

They're all the same

lunar cypress
#

Okay this is it: ||sum of the squares||

spring canyon
#

๐Ÿ˜ฎ

ocean quartz
#

Ooh

old wyvern
#

rip

#

I went all the way to (sum + first )*second element ๐Ÿ’€

#

xD

spring canyon
#

The sum of xi ^ N worked in 4 out of 6 test cases somehow

#

xd

#

That was confusing

old wyvern
#

xD

lunar cypress
#

In these you just have to try everything that comes to mind

ocean quartz
#

Yikes

spring canyon
#

I'm afk for this round

lunar cypress
#

that one took me a lot longer lol

ocean quartz
#

+ x y pretty weird syntax xD

lunar cypress
#

It's called prefix notation

old wyvern
#

xD I still wonder how you read that

lunar cypress
#

operator comes first

old wyvern
#

I wanna try learn that sometimes

lunar cypress
#

then operands

ocean quartz
#

Ooh interesting

lunar cypress
#

It does have some benefits

old wyvern
#

but looking at that feels weird

lunar cypress
#

for example you can do (< 0 x 50) whereas in other languages you'd have to do x > 0 && x < 50

ocean quartz
#

Another revers ugh

#

And that's pretty nice yeah, i like Kotlin for that with x in 0..50

lunar cypress
#

It looks weird at first but it turns out that this avoid a lot of the problems you have with infix

#

for example you don't have to think about precedence anymore

#

like, at all

#

it's always explicit

brave minnow
#

@prisma wave I found whet it comes from ... File is correctly loaded but configFile.load(new File(filePath)); does not work properly
if I do getName() on File it is good but not on FileConfiguration (returns null)

ocean quartz
#

Also how tf did you two figure this one what xD

lunar cypress
#

FizzBuzz?

old wyvern
#

multiples

lunar cypress
#

it's a classic

prisma wave
#

@brave minnow send code

brave minnow
prisma wave
#

you should not be doing that much in a placeholder

#

you should load each file once, possibly lazily

#

but not every time

brave minnow
#

I will but at the moment I'm testing ^^'

ocean quartz
#

Got it

#

Or not

old wyvern
#

same line issue

prisma wave
#

idek what FileConfiguration#getName is supposed to do

old wyvern
#

one can be a multiple of 5 and 7

prisma wave
#

but try with YamlConfiguration.load

old wyvern
#

then FooBar

lunar cypress
#

you didn't use N

ocean quartz
#

Shit

#

Good point

lunar cypress
#

1..N

ocean quartz
#

I put the example number instead

lunar cypress
#

that would have been it

brave minnow
#

btw how can I do like I load 3 file => aSimpleFile, anotherFile, lastFile
I insert them into a File[]
How can I load aSimpleFile from the name of it ?

ocean quartz
#

Well, i'll be back in a bit

old wyvern
#

alrighty

brave minnow
#

@prisma wave I already have a load

prisma wave
#

don't use an array lol

#

use a Map<String, File>

brave minnow
#

ow nice ๐Ÿ˜ฎ

#

thx ๐Ÿ˜„

prisma wave
#

also I mean YamlConfiguration.load(new File(blah))

old wyvern
#

ayy km is back

prisma wave
#

yep ๐Ÿ˜„

lunar cypress
#

shit

#

now I'll start losing again

#

leave, bm ๐Ÿ˜ 

brave minnow
#

can't

prisma wave
#

haha

#

why not @brave minnow

brave minnow
#

because it's underlined red with no fix '-'

#

;-;

#

@prisma wave it is -> YamlConfiguration.loadConfiguration(new File(filePath));

prisma wave
#

ah ok

#

@lunar cypress you were saying?

lunar cypress
#

lol

#

I used the split function in a previous round so fortunately I remembered how it works

prisma wave
#

damn

#

how does yours work?

#

don't you need to make it lowercase?

lunar cypress
#

no

prisma wave
#

oh

lunar cypress
#

I didn't pay attention lol

#

but I don't think so

prisma wave
#

but one of the tests was ABCDEF => Abcdef

#

how did you pass lol

lunar cypress
#

I have no clue

brave minnow
#

@prisma wave still getName() (supposed to give name of the file) empty and placeholder not working ;-;

#

oh wait '-'

lunar cypress
#

Oh I do

#

@prisma wave s/capitalize already does that

prisma wave
#

oh

#

that's weird

#

seems almost like a side effect

lunar cypress
#

It's not though

brave minnow
#

I'm dumb @prisma wave I'm sorry ๐Ÿ˜ญ๐Ÿ˜ญ

prisma wave
#

no problem lol

#

how come?

#

I'd expect capitalize to make all the characters capitals

#

not lowercase them all except the first

lunar cypress
#

The function is completely pure, no side effects

#

It just uses a different definition of capitalisation

#

that is not a side effect

prisma wave
#

true

#

seems a strange definition though

#

@old wyvern you ok?

old wyvern
#

I hate life

#

xD

#

ABCD

prisma wave
#

ah ok lol

old wyvern
#

ABCDDEF

#

FEFEFGgefeGF

prisma wave
#

wat

old wyvern
#
Expected: Abcdef```
#

fuck it

#

xD

#

next round

prisma wave
#

bruh just toLowerCase it

#

or is that only a kotlin thing

prisma wave
#

oh it is

old wyvern
#

wdym to lowercase it?

#

it would lowercase the whole thing right?

#

oh the input was ABCDEF

#

shit

#

im dumb

prisma wave
#

smh

#

println(S.split(" ").joinToString(" ") { it.toLowerCase().capitalize() })

lunar cypress
#

yeah it is sort of a strange definition

#

guess I was lucky

#

didn't check

#

ohhh collatz

prisma wave
#

it's not looking good for kotlin i gotta say

lunar cypress
#

is it integer division ?

#

probably

#

it's got to be lol

#

im dumb

prisma wave
#

idk

spring canyon
#

Sorry for my code, sometimes everyone is eliminating all newlines, sometimes not

old wyvern
#

is it integer division ?not neccessarily

prisma wave
#

and no I don't think so

lunar cypress
#

is it integer division ?not neccessarily
@old wyvern yes absolutely

#

you only divide by 2 if it's divisible by 2

old wyvern
#

yes

#

nvm

#

xD

lunar cypress
#

well I can't beat python but I can beat the others at least

prisma wave
#

please don't

old wyvern
#

@obtuse gale

spring canyon
lunar cypress
#

there would have been a much better way to do this in clojure but unfortunately it's slightly longer

prisma wave
old wyvern
spring canyon
#

Last round for me

lunar cypress
#

the grammar in this one

prisma wave
#

it's horiffic

lunar cypress
#

"non-decreasing order"

#

bro

#

Not beating kotlin again :/

prisma wave
#

:)

lunar cypress
#

yep I'm gonna leave it at that

old wyvern
#

๐Ÿ™‚

#

โ˜ ๏ธ

lunar cypress
#

shit

#

couldve sorted strings

#

you're right

old wyvern
#

How did you get to the result?

lunar cypress
#

but I wouldn't have gotten a better place than this anyway

#

parsed it to ints first

prisma wave
#

what's wrong with you julia

#

unless it's some weird scoping thing

old wyvern
#

let n = 3

#

@prisma wave

prisma wave
#

i should probably read the docs here

old wyvern
#

or

lunar cypress
#

yeah you should

old wyvern
#

alternatively you could infer you were using a global var

prisma wave
#

it's definitely a scoping issue

old wyvern
#

global n =4654464

spring canyon
#

That's it for me for today, bye

prisma wave
#

ok cya

old wyvern
#

ciao man

lunar cypress
#

bye

prisma wave
#

global doesn't seem to fix it

old wyvern
#

global doesn't seem to fix itnot at init

#

when using inside the loop scope

heady birch
#

Who wanna help me fix performance

old wyvern
#

Im in nial

heady birch
#

mass insert form json

#

works fine just using the Session

prisma wave
#

@old wyvern ty

heady birch
#

So just doing

#

new Aircraft();
aircraft.set...

session.save(aircraft)

#

Works fine

#
Aircraft aircraft = session.get(Aircraft.class, addr);
if (aircraft == null) {
  Aircraft aircraft = new Aircraft();
  aircraft.setAddress(addr);
}

Model modelDao = modelRepository.findByNameIgnoreCaseAndTypeDesignatorIgnoreCase(model, type);

if (modelDao == null) {
  modelDao = new Model();
  modelDao.setName(model);
  modelDao.setTypeDesignator(type.toUpperCase());
  session.save(modelDao);
}

aircraft.setModel(modelDao);```
#

This is where it gets slow when I start checking and relations

#

Takes over 2 hours (havnt actually had it complete yet) to insert

#

Whereas just inserting the aircraft is done within a minute or so

prisma wave
#

i'm no expert but that doesn't look like enough kotlin to me

heady birch
#

๐Ÿ˜

#

Idiot

#

saveOrUpdate exists

lunar cypress
#

This kind of java code is my worst nightmare

heady birch
#

yeah my bad

#

I plan to neaten it up

old wyvern
#

rip

lunar cypress
#

not your fault

#

I mean that's industry standard

#

more or less

heady birch
#

joys of enterprise programming

prisma wave
#

wut

#

/ and รท mean different things in julia

obtuse gale
#

hi guys

#

i hooked into papi

prisma wave
#

ah yeah รท truncates to an int

obtuse gale
#

i was wondering how i can reactivate placeholders when you do /papi reload

prisma wave
lunar cypress
#

wait do you actually have to use that symbol

prisma wave
#

Yes lol

#

Idk how you get it without copy pasting

rotund egret
#

Draw it

#

Or program from your phone

#

:o

brave minnow
#

@prisma wave sry for the ping but bro I really would like to thank you it's all working now and I love you af '-'

prisma wave
#

Haha no problem lol glad it's working

brave minnow
#

wanna see the code ? ๐Ÿ˜„

wise sundial
#

who here codes in python

echo cradle
#

on double x; double y; double z and x y z it cause error call " The method cos(double) is undefined for the type new BukkitRunnable(){} " and " The method sin(double) is undefined for the type new BukkitRunnable(){} " on other line

ocean quartz
#

It's Math.cos and Math.sin

echo cradle
#

ty

obtuse gale
#

anyone have any recommendations for forum software

#

Xenforo is really expensive

#

Nameless is basic

#

mybb isnโ€™t cutting it

quiet depot
#

what's wrong with mybb?

obtuse gale
#

half of the plugins Iโ€™ve downloaded donโ€™t work for me

#

errors in all of them

quiet depot
#

are they updated?

obtuse gale
#

for example, the staff page plugin

#

yes

quiet depot
#

have you asked the developers for support, or their community?

obtuse gale
#

people have the exact same error

#

No response from Devs

quiet depot
#

there's namelessmc as an alternative

#

gl finding anything as polished as mybb for free tho

obtuse gale
#

I used to use nameless

#

Itโ€™s not cutting it for me

#

do you use mybb?

#

??

trim hare
#

I don't know why, but I've changed the name of a relocation for the shading plugin in my pom.xml, but when the jar is generated it keeps the relocation that was there previously. Which is throwing a ClassNotFoundException when I start my server, because it's looking for the previously shaded name.
I've checked the META-INF folder in the jar and sure enough the old relocation is still in the pom.xml
I've run mvn clean and yet I'm still seeing the wrong thing, anyone know how to resolve that?

quiet depot
#

@obtuse gale I used to use mybb when I ran a server

obtuse gale
#

I might get Flarum

quiet depot
#

I'm not a fan of flarum

obtuse gale
#

why not

#

mybb just seems really scarce on plugins for minecraft servers

quiet depot
#

I think most people see how ugly the default theme is, and don't look any further

obtuse gale
#

thatโ€™s true

#

I got a nicer theme tho

quiet depot
#

why not
Just don't like it compared to more traditional forums (like xenforo & mybb)

#

iandrew makes really nice mybb themes

obtuse gale
#

thanks for the recommendation!

#

that is true

#

Xenforo is overpriced imo

#

but itโ€™s the only super well made one so they can price it high

#

but like

#

$300 to get rid of the Xenforo label

#

$160 for a liscence

quiet depot
#

yeah it's pretty expensive

#

I don't think it's overpriced though

obtuse gale
#

ooh thank you

#

is there anyway to add custom pages for mybb

#

like a voting link page

#

Or a discord page

quiet depot
#

yeah, but sorry, it's been so long since I've used mybb

#

I don't know how off the top of my head

obtuse gale
#

at least I know it is possible

quiet depot
#

it's fairly easy iirc

obtuse gale
#

it should be

runic flume
#

What Bungeecord fork do you guys suggest? I use Waterfall at the moment

hot hull
#

pfft Imaging not making ur own

runic flume
#

:/

#

I dont have time for that

obtuse gale
#

nerds

hot hull
#

weak

jovial warren
#

imagine making your own

old wyvern
#

โ˜ ๏ธ

jovial warren
#

@runic flume waterfall is fine, use travertine (basically a fork of waterfall to support 1.7) if you want 1.7 support

runic flume
#

Hmm aight

#

Thanks

distant sun
#

imagine making your own
Frosty nerd

jovial warren
hot hull
#

I have that ee

#

It just times out if you don't work on it and just have IJ opened

#

So it displays blank

prisma wave
#

anyone up for some more clash of code

#

i'm bored

obtuse gale
#

ye

jovial warren
#

go on then lol

#

I can get us a game if ya want

hot hull
#

Sec lemme close all the unncesarry shit

prisma wave
#

i've almost got one

#

who's AlkhilJohn

obtuse gale
#

^

prisma wave
#

bruh who are these people

obtuse gale
#

lol

prisma wave
#

how do you make a private game

obtuse gale
#

no clue

#

we all gonna get destroyed by these nerds

hot hull
#

We boutta get f'ed hard

distant sun
#

:)))

#

Noobs

onyx loom
#

ruby and python users incoming

#

with their 10 characters

#

and java 100 chars :)

prisma wave
#

this is a speed one tho

onyx loom
#

o

obtuse gale
#

ive got no clue on this lol

prisma wave
#

:/

#

on the bright side I figured out how to make a private one

#

so we won't get owned by random nerds anymore

obtuse gale
#

look at all these nerds with their 100% score

hot hull
#

idfk, my logic was fucked

old wyvern
#

im in

#

linkk

hot hull
#
        int even = 0;
        int odd = 0;
        for (char c : N.toCharArray()) {
            if (Integer.valueOf(c) % 2 == 0) {
                even += Integer.valueOf(c);
                continue;
            }
            odd += Integer.valueOf(c);
        }
#

I assume I'm missing the entire point

prisma wave
#

idk that looks right

old wyvern
#

what sthe quetion?

#

question

ocean quartz
#

Yugi is addicted someone help him

prisma wave
#

sum of odd digits - sum of even digits or something

old wyvern
#

xD

prisma wave
#

I think Integer.valueOf gives the ascii code

#

kotlin toInt() does

#

so I had to do toString().toInt()

hot hull
#

kOtLiN

old wyvern
#

koTLin

onyx loom
#

yes

prisma wave
#

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

onyx loom
#

kotlin

#

i heard kotlin

hot hull
#

The completion is so annoying

prisma wave
#

yeah lol

old wyvern
#

what does goated mean?

hot hull
#

Cause and the error showing, like it sometimes shows and error on something which doesn't even have an error lol

old wyvern
#

God of all timed?

prisma wave
#

this one's private

#

yeah I think so

#

just us 4?

onyx loom
#

5

old wyvern
#

5*

hot hull
prisma wave
#

wow

#

ok let's go

onyx loom
#

i dont get it

obtuse gale
#

idk what im meant to do lol

hot hull
#

You slow ass site

old wyvern
#

2 sec xD

hot hull
#

The input are deceiving

onyx loom
#

do we have to add the numbers, then return true if odd?

hot hull
#

Look at the numbers :))

prisma wave
#

not as complex as that

onyx loom
#

like the first 2 numbers

obtuse gale
#

๐Ÿค”

onyx loom
#

if its not that then idk

old wyvern
#

ignore first number btw

prisma wave
#

^

onyx loom
#

thats the only pattern i see

prisma wave
#

the first number just says how many there are

#

so ignore that

old wyvern
#

^

onyx loom
#

oh

hot hull
#

Yugi I would have beaten you if I used the same printout as you :p

old wyvern
#

xD

onyx loom
#

so i know what to do

old wyvern
#

but you didnt ๐Ÿ˜›

prisma wave
#

yay

old wyvern
#

welp

obtuse gale
#

i still dont lol

hot hull
#

Unfortunatelly :c

onyx loom
#

BUT HOW

#

FUCK

hot hull
#

%

prisma wave
#

||% 2 == 0 -> it's an even number||

old wyvern
#

Your first answer was partially right goat

onyx loom
#

i know its modulos

obtuse gale
#

im lost lol

old wyvern
#

||are each numbers even?||

hot hull
#

||server world files||

old wyvern
#

||wha??||

prisma wave
#

||println(N % 2 == 0)||

obtuse gale
#

๐Ÿ˜ฎ

onyx loom
#

โ˜น๏ธ

old wyvern
#

next round bois

onyx loom
#

oh right

onyx loom
#

i overcomplicated it

prisma wave
#

yours was almost right lol

hot hull
prisma wave
#

you just had to do it inside the loop

#

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

onyx loom
#

yeah

#

i thought that was juts getting the input

#

for me

prisma wave
#

it was

#

kind of

#

join

obtuse gale
#

bruh

#

wtf is this

hot hull
#

uh what?

obtuse gale
#

these reverse ones seem hard lol

onyx loom
#

are we counting the numbers or the letters

prisma wave
#

hm

hot hull
#

In some numbers, in some letters?

#

I'm confused

onyx loom
#

yeah

obtuse gale
#

yeah

prisma wave
#

i thought i had it

#

but no

onyx loom
#

im clueless

#

@old wyvern halp

#

oshit

prisma wave
#

oh

onyx loom
#

BM

#

HALP

prisma wave
#

it's actually very simple

hot hull
#

Something easy I assume

prisma wave
#

yeah

#

i just did it wrong at first

onyx loom
#

._.

#

i still dont understand

obtuse gale
#

^

hot hull
#

I'm dumb

#

I've no idea about the method to use for this..

prisma wave
#

||11223h = 5, 1z = 1 ||

#

||Character.isDigit||

onyx loom
#

huh

obtuse gale
#

still no clue

prisma wave
#

first example was wrong lol

onyx loom
#

still no clue

obtuse gale
#

OH

#

hol up

#

no

#

nvm lol

prisma wave
#

||println(ROW.toCharArray().filter { it.isDigit() }.size)|| is the answer

hot hull
#

If I knew these methods jesus

onyx loom
#

shouldve said that before i submitted :)

obtuse gale
#

that presumes i know what .filter even does

old wyvern
#

electricity just came back

#

oof

lunar cypress
#

lol

onyx loom
#

.filter

#

filters?

prisma wave
#

^

#

yes

obtuse gale
#

lol

prisma wave
#

as the name suggests lol

onyx loom
hot hull
#

BM, you got advantage cause you know all these methods smh

obtuse gale
#

nerd

onyx loom
#

well its actually ur disadvantage

prisma wave
#

only bc kotlin

onyx loom
#

as u dont know them

hot hull
#

Also, was I the only one the mistake the l for a 1 in test 2 case 1 ?

obtuse gale
#

yes

hot hull
#

That's the thing that was throwing me off

obtuse gale
#

no

prisma wave
#

yeah I think so

obtuse gale
#

i made that mistake as well

onyx loom
#

is yugi here?

prisma wave
#

I thought it was unique digits at first

#

||spoilers||

onyx loom
#

oshit

old wyvern
#

yea i got back

old wyvern
#

Electricity went out in the first 30 seconds

obtuse gale
#

guys i just found myself on quora

prisma wave
#

rip

obtuse gale
onyx loom
prisma wave
#

lmao

#

F

lunar cypress
#

mood

prisma wave
#

get in here

hot hull
prisma wave
#

nice

onyx loom
#

we had this the other day

#

i dont remember how to do it :(

prisma wave
#

yeah we did

#

wait what

#

I got too cocky ๐Ÿ˜”

lunar cypress
#

yep hahaha

#

this time I looked at what they expect as output

prisma wave
#

let me guess

hot hull
#

I've no idea what the method for this is again...

prisma wave
#

you had to truncate doubles

lunar cypress
#

no

hot hull
#

You have to only get 1 decimal

old wyvern
#

chars().sum()

lunar cypress
#

wut

old wyvern
#

String format

prisma wave
#

it's average()?

old wyvern
#

oh I divided myself

#

lol

prisma wave
#

smh

obtuse gale
#

how do you get the ascii value lol

prisma wave
#

cast to an int

obtuse gale
#

o

old wyvern
#

cast it to int

hot hull
#

It's that, but how do I only get 1 decimal?

prisma wave
#

chars() gives you an IntStream of the int values

#

String.format probs ๐Ÿ˜ฆ

lunar cypress
#

string formatting

onyx loom
#

thats what im doing

#

but im getting number format exception โ˜น๏ธ

#

halp

old wyvern
#

||String.format("%.1f",val)||

lunar cypress
prisma wave
#

should've checked the output lmao

#

or DecimalFormat

obtuse gale
#

i tried this lol

#
    val charArray = s.toCharArray()
    charArray.forEach { 
        x + it as Int
    }
    println(x/charArray.size)```
#

not going well

prisma wave
#

+= ?

old wyvern
#

dont do int division?

obtuse gale
#

lol what

hot hull
#

I'm annoyed

prisma wave
#

||s.chars().average().asDouble.toString().format("%.1f")|| is probably right

obtuse gale
#

time to find out

prisma wave
#

avenge me

old wyvern
#

lol

obtuse gale
#

not even testing

old wyvern
#

xD

prisma wave
#

HA

onyx loom
#

i assume u cant do it from a user input?

old wyvern
#

share code

prisma wave
#

you need to get the average

#

not just 1 char lol

onyx loom
#

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

old wyvern
#

aj

#

share

prisma wave
#

well that was embarassing

hot hull
#

Lemme get some chips

prisma wave
#

kk

old wyvern
#

ninja game start

#

xD

hot hull
#

k ready

prisma wave
#

ez win

old wyvern
#

start

onyx loom
#

?

obtuse gale
#

start

hot hull
#

bM

old wyvern
#

start the game?

onyx loom
#

what

lunar cypress
#

I will lose this

prisma wave
#

bruh my wifi died

onyx loom
lunar cypress
#

?

onyx loom
#

that dont make sense

lunar cypress
#

it does?

prisma wave
#

Your program must calculate the sum of even digits in a number N.

onyx loom
#

OH WAIT

#

EVEN DIGITS

#

FUCK

#

i didnt see that

prisma wave
#

smh

hot hull
#

lol Kali

lunar cypress
#

Code size: 3

onyx loom
#

โ˜น๏ธ

old wyvern
#

ay

#

xD

lunar cypress
#

my optimisation is at a point where I replace (filter even?) with (remove odd?)

#

gotta save that char

obtuse gale
#

REEE

#

error

old wyvern
#

xD

lunar cypress
#

but as always, not beating python

old wyvern
#

Maybe we should ban python for the shortest ones

prisma wave
#

possibly

lunar cypress
#

nah it's fine

hot hull
#

Someone copy paste default imports please for java

#

I removed and now it don't work :c

lunar cypress
#

If I really wanted to win I could use python too

prisma wave
#

import java.util.* is for Scanner iirc

onyx loom
#

ye

hot hull
#

I was trynna cheeze it with only having this import java.*;

old wyvern
#

import *

#

๐Ÿšฌ

onyx loom
#

guys ive done massive code optimizations with only 3 chars yet u guys are still tryna figure out how to do this

#

cmon, its not hard

prisma wave
#

bruh i'm so close to python

obtuse gale
#

idk why my thing isnt working lol

#

im getting a stringindexoutofboundsexception

#
Failure
Found: 314
Expected: 26```
hot hull
#

Look at my code nerds

obtuse gale
#

lovely

hot hull
#

Is there anything I could've even compressed more?

onyx loom
#

frosty, why

obtuse gale
#

im tryna get mine to work lol

lunar cypress
#

I think using streams might actually be shorter

hot hull
#

goddamn it

onyx loom
#

it looks so disgusting on 1 line reeee

hot hull
#

Kali

#

gotta get them 3 less chars eeee

prisma wave
#

ah piss

#

i was so close to beating python