#dev-general

1 messages · Page 229 of 1

old wyvern
#

finally

#

@prisma wave

prisma wave
#

😳

#

About time

old wyvern
#

ikr

hot hull
#

Oo

hot hull
#

Time to do this puzzle manually

hot hull
#

This second one is an oof

tacit cave
#

hello

#

anyone know about HTML & Javascript?

#

i want to ask somethin tho

hot hull
#

Don't ask to ask

tacit cave
#
  <div id="killdaserver">
  </div> 
    <script>
        @can('power-kill', $server)
            var cbText = document.getElementById("killdaserver");
            var confirm = cbText.innerHTML = '<a data-attr="power" data-action="kill">I am sure.</a>';
        @endcan
        $('#killserver').on('click', function (event) {
            if ($(this).hasClass('disabled')) {
                return;
            }

            swal({
                icon: 'warning',
                title: 'Are you sure you want to stop by force?',
                html: 'The forced stop shuts down the server instantly. Running atasks (such as saving player information) does not terminate properly when the server is shut down. Forced stopping can cause data loss on the server.',
                showCancelButton: true,
                focusConfirm: false,
                cancelButtonText: 'Cancel',
                confirmButtonColor: '#10c45b',
                cancelButtonColor: '#d33',
                confirmButtonText: confirm
            }).then((result) => {
                if (result.value) {
                    Socket.emit('set status', 'kill');
                }
            });
        });
    </script>```
#

so the inner html doesnt work

#

is there anyway to parse the html in the javascript?

hot hull
#

@old wyvern Can I show you my results in dms and you give me a hint perhaps? fingerguns

tacit cave
#

soo anyone ?

#

ping me if u can help me

hot hull
#

Did you do the puzzle yet Piggy?

quiet depot
#

what puzzle?

prisma wave
#

@tacit cave it probably gets escaped to stop injection

hot hull
#

AOC

prisma wave
#

Why not have the "I am sure" element hidden by default, and then show it when they click?

quiet depot
#

no i've been busy with exams

hot hull
#

ah

#

I'm messing up this second part, but I've no clue how

prisma wave
#

have the <a blah> present but hidden, and then set display: auto or whatever it is when the click

#

Rather than changing the button text

tacit cave
#

but the code doesnt work tho

#

it doesnt stop the server

prisma wave
#

Oh

#

You didn't mention that lol

tacit cave
#

without the javascript

#

it works

#

i wonder why

#

lol

prisma wave
#

Wdym

#

Without which JavaScript

#

What works

obtuse gale
#
const x = whatever;

or

const { x } = whatever```?
distant sun
#

isnt { } used to import certain parts from a module?

#

like const { Client } = Discord; > const client = Discord.Client;

hot hull
old wyvern
#

ill get you tmr fingerguns

hot hull
#

Gonna do the challenge at 1 am so no!

old wyvern
#

We'll see

hot hull
#

Gotta see if it's written anywhere as to how it's rated

old wyvern
#

time based

#

I checked

hot hull
#

Time based from when

old wyvern
#

Getting a star first is worth 100 points, second is 99, and so on down to 1 point at 100th place.

hot hull
#

Oh damn

old wyvern
#

There are probably more points than that

hot hull
#

That might be worth staying up late for

old wyvern
#

or maybe its per leaderboard

hot hull
#

It's not per leaderboard, otherwise we'd all have a lot more points

old wyvern
#

maybe it dependent on amount of people in the leaderboard?

#

I was at 12 today morning

#

24 after gettings 2 stars

#

uh wait, that still doesnt add up

hot hull
#

Gonna switch it to local score

old wyvern
#

ah

hot hull
#

So it's fair

old wyvern
#

What is it rn?

hot hull
#

I'd assume stars

#

Wait no

old wyvern
#

I think we're already on local score

hot hull
#

Yea we are

#

It's N - 1 and so on

old wyvern
#

ah

hot hull
#

Probs best to leave it like this

hot hull
#

We need more ppl tho :C

old wyvern
#

barry the advent manager when?

quiet depot
#

i'll join tomorrow

#

=advent

compact perchBOT
#
hot hull
#

Piggy, go make a leaderboard for this so Barry handles it fingerguns

quiet depot
#

no

old wyvern
#

Maybe a temporary Christmas Larry?

quiet depot
#

looks like cube is dead so guess I better do the giveaways

distant sun
#

why do I have less points than frosty lol

hot hull
#

Cause I'm the best <o/

lunar cypress
#

tryhards

remote goblet
#

Attempting to figure out how to use EzPrestige to get this commission done peepoSad

kindred hatch
#

Pain.

hot hull
#

Spain.

forest pecan
#

Cocaine

steel heart
#

Rain

distant sun
blazing walrus
#

so true

obtuse gale
#

holy fuck why is there so much blood

#

dude should be dead

half harness
#

😂

distant sun
steel heart
#

ye

hot hull
forest pecan
#

wait

#

am i being left out

#

😭

cold shard
#

Hi, how can I retrieve the current vote count with the VoteParty API?

prisma wave
#

ok firstly you should declare your main function with (defn -main [& args]), -main is a special name and the vector of arguments, & indicates a vararg

cold shard
#

Excuse me but I'm French, I can't understand everything

#

i don't understand how i should use these methods

prisma wave
#

those aren't methods

#

they are events

#

that you'd listen to

cold shard
#

so i have to use @EventHandler?

prisma wave
#

yes

cold shard
#

like that?

prisma wave
#

Umm

#

No

cold shard
#

hmm

#

ouch

prisma wave
#

What exactly do you want to do here?

#

Lol

frigid badge
#

listen to the events

prisma wave
#

^

frigid badge
#

but he's just copying the constructors

cold shard
#

Retrieve the total number of current votes to include it in my scoreboard

frigid badge
#

then you'd also not listen to the events

prisma wave
#

Well idk the API, but surely you wouldn't need the events?

frigid badge
#

just retrieve the count rather than using an event

remote goblet
prisma wave
#

what

remote goblet
#

I DONT KNOWW

#

wait wrong thing

forest pecan
#

kekw

remote goblet
#

THIS works

#

IT Sets the NBT Tag

prisma wave
#

Okay

remote goblet
cold shard
#

i wan't to do that

remote goblet
#

get featherboard

frigid badge
#

just use papi

cold shard
#

noo i have mi scoreboard

prisma wave
#

Yea use papi

#

Much easier

cold shard
#

PlaceHolderAPI ?

remote goblet
#

screech

prisma wave
remote goblet
#

i have no ideaaaaaaaaaaaaaaaaaaaaaaa

frigid badge
remote goblet
#

i am mid mental breakdown and i am suffering

cold shard
#

There is a documentation for PAPI ?

frigid badge
#

yes

prisma wave
#

Ouais

frigid badge
#

go to the wiki yohan

cold shard
#

Ouais x)

prisma wave
#

Idk what you want me to do but

#

Ok

remote goblet
#

explain why it no work

obtuse gale
#

Blame md5

cold shard
#

what should i do with this ?

#

i'm so bad x)

#

Yeesss

#

It works

#

thanks you

obtuse gale
#

do i come here if im a mc dev?

#

it stopped

#

lets go

#

Also your pfp sucks lol

prisma wave
#

no

#

only the finest roblox devs here

frigid badge
#

you know what would be a sick project

#

designing and making a infrastructure like digitalocean etc

#

hard AF but still very cool and a real challenge

prisma wave
#

that would be very cool

#

no idea where you'd even start though

frigid badge
#

docker 🙂

#

kubernetes

prisma wave
#

can you allocate different resources to docker containers?

frigid badge
#

nah but like they have such nice simplicity yet they're so expensive

prisma wave
#

to make different vps tiers and stuff

#

yeah

#

digitalocean is really expensive

frigid badge
#

azure portal for example too is incredibly expensive

prisma wave
#

Azure is obscenely expensive

frigid badge
#

at my work we pay loads of money to such services even though if we were to use pure dedi's we'd save so much

#

and that's purely due to simplicity

prisma wave
#

that's probably the point though

frigid badge
#

I wonder how simple you could make it while keeping costs low

#

which is impossible when starting out ofc

#

but just imagine you are already a big company

#

how hard would it be to make a low cost simple system

prisma wave
#

probably not too hard

#

buy a few dedis

#

setup some virtualization shit

#

make a website

#

profit?

frigid badge
#

brb making a repo

#

;p

#

an org*

#

no but like I pay what 60$ a month for quite a bad server when I can get what x5 the specs for the same price

prisma wave
#

convenience tho

frigid badge
#

well honestly

#

it was a pure vps

#

sure it has the benefits of not losing your data etc due to that it's all scattered etc

#

but it was pretty barebones

#

trying to get it as cheap as possible for what I needed

#

yet if I went to a smaller host I'd pay so much less

#

but there must be already open-source stuff that uses k8s & docker to make such platforms

#

like there must be more people thinking like this right

#

without money in their mind lol

prisma wave
#

Probably

#

Although there's clearly a lot of money to be made

frigid badge
#

I think that plays a big role in companies like digitalocean & azure (microsoft)

prisma wave
#

Thinking out loud, scalability as a service could be cool. so you set a budget, provide a docker image, and it spins up x instances depending on budget and demand, and adjusts to compensate

frigid badge
#

yeah

worldly portal
#

привет, как мне создать аккаунт на сервисе?

Hi, how can I create an account on the service?

#

Registration is currently locked. If you feel it is necessary to create an account, please join our discord and get in touch with us.

#

ecloud

static zealot
#

@worldly portal contact @funnycube#0001 on discord. he'll help you out

steel heart
#

@obtuse gale

#

so what would be most convenient way of storing itemstacks in a mysql database 😮

obtuse gale
#

byte[] kek

steel heart
#

srsly?

#

or should I use gson

obtuse gale
#

those are two completely different things tho

#

paper has a toByteArray or w/e method for itemstacks for a reason

forest pecan
#

gson is json parsing and shit

#

wat

steel heart
#

gson > json though

obtuse gale
forest pecan
#

wat lol

onyx loom
#

no

ocean quartz
obtuse gale
#

yes matt

#

that's old news now

#

and kashike PRed adventure into paper too

static zealot
#

xD

obtuse gale
static zealot
#

k lol

obtuse gale
#

what

static zealot
#

k lol

prisma wave
#

jeez

#

adventure becoming canon?

obtuse gale
#

eyup

static zealot
#

I don't even know what AdventOfCode is

#

joined but don't understand a thing

#

xD

forest pecan
#

you do problems

#

and shit

#

i did problems yesterday

#

each problem has 2 parts

#

and each part is worth 1 star

#

you need to get at least 50 stars by December 25th if you want to succeed

static zealot
#

ye

#

figured it out

#

thanks to Gaby

#

but thanks

forest pecan
#

You think that there is a valid way for fingerprints in plugins

#

like how forge has fingerprint violation events

#

that checks if the jar is from some repost or sketchy site

prisma wave
#

possibly

forest pecan
#

it uses sha from what i heard

prisma wave
#

spigot could easily add a signing / hashes thing

forest pecan
#

yeah

distant sun
#
        return sequenceOf(identifier, category, value, manager, lockedGuiItem, unlockedGuiItem, equippedGuiItem)
            .map { it.hashCode() }
            .reduce { total, hash -> 31 * total + hash }```
Would be this a bad way to calculate `hashCode`? xd
#

just trying new stuff

#

@prisma wave this

prisma wave
#

uh

#

probably not actually

#

that's just the functional equivalent of a normal hash function, so sure that works

distant sun
#

rude

old wyvern
#

wdym?

static zealot
old wyvern
#

You ignored the fact that the character should only be at either one and not both positions

static zealot
#

oh wait

#

is it

#

I didn't read the question correctly then lmao

#

oh lmao. I didn't even noticed the last example

old wyvern
#

lol

static zealot
#

welp it worked now

#

fuck day 3 part 1 is to long 😦

#

to read

#

again

deft mauve
prisma wave
#

I'm pretty sure any language apart from the S word is fine

deft mauve
#

okay

#

and yeah we dont speak of the S one

#

😳

hot hull
#

Thou shall not sin in thy holy land.

distant sun
#

@static zealot btw String#char will return the first character

prisma wave
#

charAt?

quiet depot
#

okie time to do this advent shit

distant sun
#

Noob

quiet depot
#

what's new in the ij update

#

this'll come in handy

prisma wave
#

New projects window is nice

#

The VCS tab got changed to Git or whatever VCS you're using

quiet depot
#

yeah I use git

#

We’ve started using a new ranking mechanism based on machine learning for Java code completion suggestions.

#

ok so basically tabnine

prisma wave
#

I thought it already did use ML

quiet depot
#

idk

#

ah so they've got their floobits thing in now

#

tbh would've thought they'd have tried to add that on the first release for 2020

#

seemed like a big thing

distant sun
#

CodeWithMe

quiet depot
#

yes

#

floobits thing

distant sun
#

CWM!

quiet depot
#

The Run/Debug Configurations feature a new UI that groups the most frequently used settings together on one screen and gives you the option to add more parameters if needed.
underlined was already possible in vanilla ij but ok

distant sun
#

🤓

#

Today puzzle is ught

quiet depot
#

i'm on day 1 part 2 lol

prisma wave
#

They fixed Material class killing IDE

quiet depot
#

oh that's nice

#

how does it handle editing like 13 material classes?

prisma wave
#

No idea

distant sun
#

Test

quiet depot
#

because that's what I deal with in papi3

distant sun
#

Tf 13?

quiet depot
#

was just a guess

#

hence the like

hot hull
#

It's better Piggy, or so people have said

quiet depot
#

there's 10 classes

#

technically 11 actually

#

nope 12

hot hull
#

Day 4 challenge is actually interesting

static zealot
#

still stuck at day 3 part 1 lmfao

#

entered like 15 different answers so far

hot hull
#

Gaby why not

#

Blitz, just debug it at a smaller scale

distant sun
#

You have to count the trees you hit when go down by 1 line

quiet depot
#

guys

#

spoilers

#

pls

hot hull
#

Typing random stuff won't help you, also everyone has a different input

static zealot
#

I didn't type random stuff xD

hot hull
#

Just debug

static zealot
#

just every time I read the thing I think I have something different to do

#

ye I'll debug on a smaller scale

hot hull
#

Piggy, sorry bb

quiet depot
#

ok day 3 part 1 is confusing me

#

it says go 3 right 1 down on an input like this (which is actually much longer)

#

but it also says go to the very bottom of the input

#

how do you get to the bottom like that

#

does it start at the other side when you reach the right side?

#

pls help

hot hull
#

Piggy

#

clone the path to the right

quiet depot
#

what

hot hull
#

Stack the input to the right a bunch of times

#

It's a repeating pattern

quiet depot
#

how many times?

hot hull
#

However many you need

quiet depot
#

k

hot hull
#

I went with 150

#

Wait no, 1500*

quiet depot
#

ugh

#

i thought you guys said ij was fast now

#

it's still fucking dick

hot hull
#

kek

quiet depot
#

shit is literally frozen

#

I went to type on every line and paste the line a bunch of times

#

only held control v for a few secs

#

it's frozen

hot hull
#

I mean I waited 30min for IJ to open for me, but I'm still on 2018.3 and my pc is shit so that's understandable

#

It also keeps fucking up key shortcuts

#

Piece of shit

static zealot
#

Or just if (pos > lenght) pos -= lenght smh.

hot hull
#

@quiet depot Where do you change key shortcuts again, I keep forgetting

quiet depot
#

settings

#

keymap

hot hull
#

danke

distant sun
#

join the leaderboard noob

hot hull
#

bruh I got the answer wrong cause I forgot a space at the end smh

old wyvern
#

use modulo instead

hot hull
#

nvm I'm dumb

#

@old wyvern y u slacking

old wyvern
#

?

hot hull
old wyvern
#

Ill do it after my work fingerguns

quiet depot
#

wym use modulo

prisma wave
#

I'm unbelievably dumb

#

Been getting the same result each time no matter what I changed, realised I was running part 1 not part 2

old wyvern
# quiet depot wym use modulo

The map repeats itself to the right so even if the index goes over bound, (index%width) would point to the right object in path

prisma wave
#

Number 3 is tricky

hot hull
#

BM I thought you were a professional developer

prisma wave
#

Not a professional advent of coder though

quiet depot
#

oh nice

#

idk why my method isn’t working tho

#

tried 2 ways

#

multiplied each line length by 1500, that stays true for both attempts

#

first attempt condensed it all onto one line

#

got the char every 1500 * 31 + 34

#

might have been * 30 can’t remember

#

second attempt was putting it into a 2d array

prisma wave
#

I'm using a map of tuples

#

python 🥲

molten basalt
#

Hi

forest pecan
#

Isn't number 3 like

#

just a ternanry

#

kekw

obtuse gale
forest pecan
#

I just made a boolean array, checked if the current one is a tree and if so add to the count

#

then i increment x and y by the specified right and left values

obtuse gale
#

what

forest pecan
#

its advent of code

obtuse gale
#

ah that thing

forest pecan
#

yeah

hot hull
forest pecan
#

im already in it

#

im Brandon Li

#

it uses my full name

#

😪

hot hull
#

I assume that's your GH

forest pecan
#

yeah

hot hull
#

@obtuse gale I know you're not in it

#

wHy

obtuse gale
#

;(

forest pecan
#

@obtuse gale join the private leaderbord

#

or

#

ban

obtuse gale
#

tomorrow will do, today's gonna be one busy day

forest pecan
#

the problems will accumulate lmfao

#

you are going to have like 20 problems to do at the end xD

hot hull
#

idk why Matt is slacking :c

forest pecan
#

kekw

ocean quartz
hot hull
#

shame

quiet depot
#

how do aoc points work

#

cuz i've got more stars than blitz

#

but i'm 8th

hot hull
#

Sec, I'll show you in a bit

forest pecan
#

I got a cool idea for a plugin. I should make a plugin which doesn't allow tools to break, but if they reach 0 durability, you can use the material you desire and place it next to the "broken" tool in a crafting grid to replace like 20% of the durability

#

or something like that

#

And broken tools have the same mining level of fists

#

and same mining speed of fists

ocean quartz
#

Ayy i have something like that

forest pecan
#

Yeah it comes from a mod

#

skyfactory 4 😊

ocean quartz
#

Tinkers

forest pecan
#

yeah

ocean quartz
#

The basics is pretty easy to do for it

forest pecan
#

Yeah

#

just like make a block break event

#

or smthing like that

ocean quartz
#

Yeah then i add a broken nbt to the item

forest pecan
#

yeah

#

I bet it is possible to make tinkers construct in minecraft spigot

#

thats actually a sick idea

#

but its hard

ocean quartz
#

The only sad thing is that you don't have the cool blocks and liquids and stuff

forest pecan
#

texturepacks/resourcepacks

#

thats the only thing doe

#

does model data apply to liquids

#

or can it only have one texture

#

rip colors

#

kekw

ocean quartz
#

It's not a plugin lol

forest pecan
#

oh

#

lmfao

steel heart
#

MAIN

forest pecan
#

@steel heart DOGGO

steel heart
#

PLUSEEABET

forest pecan
#

@steel heart ❤️

steel heart
forest pecan
#

kekw

static zealot
#

Anyone that solved CoA Day 3 Part 2 and wanna share the code? smileycry

forest pecan
#

kekw

old wyvern
#

Sure

hot hull
#

Yugi, give em a hint

forest pecan
#

its just incrementing two variables

static zealot
#

no don't lmao I was joking

hot hull
#

Let's not go copy pasting, hints allowed tho

static zealot
#

I solved part 1... I just need to fix the one that goes 2 down 1 right

old wyvern
#

Sure

static zealot
#

xD

old wyvern
#

kip odd lines

static zealot
#

its fine I'll get it eventually

old wyvern
#

skip*

prisma wave
#

isn't part 2 just part 1 with diff numbers?

hot hull
#

Wanna bet his last one is wrong

#

Yes BM

forest pecan
#

I just made a method

#

lmfao

#

just make a method

#

then plug it in like 5 times

#

with different values

#

and ez answer

static zealot
#

yes BM just last one goes 2 down 1 right its not right something down 1 anymore

#

and I think I messed it up

#

idk I hadn't looked at the code in the past 8 hours

#

9

prisma wave
#

@forest pecan me too

forest pecan
#

I used two variables in a loop like
for (int i = 0; j = 0; ...)

#

then in the indexing

#

you get the modulo

#

but in this case you actually dont need it for this particular input

#

you just need to set it at the 3rd index when you reach the last one

hot hull
#

We need more people in the leaderboard

forest pecan
#

ping everyone?

#

jkjkjkj

hot hull
#

I'll try to bargain a deal with our lord and savior cube

steel heart
#

Epic

hot hull
#

Old news

steel heart
#

so you imply, you’re 1 of the 7000 who watched?

onyx loom
#

pretty sure matt posted it in here before

#

ive watched it already 🥲

steel heart
#

fuck

#

Why Im I always late

hot hull
#

I watched it for like 2min

static zealot
#

Could someone take my input and just tell me what the fuck are the trees suppose to be for each step?

#

because it seems like all the other steps are working (I assume this since the one that I already got in part 1 returns the correct amount of the trees) so I assume its my last one that's broken

#

day 3 part 2 btw

#

wait a minute

#

fuck

heady birch
#

My new LIB, MAGICCAST I call it. So magic

prisma wave
#

no

#

no

half harness
#

Anyone know an alternative to jitpack but for private repositories?

steel heart
#

mavenLocal

prisma wave
#

brister mitten repo

steel heart
#

Oh yeah

#

That one is epic

half harness
#

huh/

heady birch
#

MagicCast.registerCast(from, to, provider<from, to>)

#

A compiler plugin that replaces instanceof with is and casts to as might be quite neat

prisma wave
#

?

steel heart
#

Did I hear maven

prisma wave
half harness
#

How come so many people use maven (instead of gradle)?

ocean quartz
#

They haven't been taught the way of life

static zealot
#

xD

#

I think I'll start watching star wars for the 6th time

steel heart
#

and that it's "advanced" and at the end they accomplish nearly the same

half harness
#

so

#

in your opinion

#

which is better

ocean quartz
#

If you get all the files from gradle and check the lines it'll still probably be less than a maven single file :kek:

#

Gradle

static zealot
#

dkim... have you not red Piggy's post?

#

like there's no need to argue when someone tells you Maven is better just give them a link to that post lmao

forest pecan
#

You know what

#

Fuck it

onyx loom
#

i dont know what ur on about, but:

#

💯

obtuse gale
#

Who was making that IJ plugin that downloaded all the shit for MC and setup hotswappnig and stuff for you, and di you ever fniish it lol?

half harness
#

Whats the intellij theme that everyone uses again?

ocean quartz
#

Atom One Dark is the best one fingerguns

half harness
#

how do I get that theme without the buttons becoming super big

ocean quartz
#

It shouldn't affect your buttons
Which buttons are you talking about?

half harness
#

o

#

how do I install themes

#

😅

ocean quartz
#

Install the plugin Material UI

half harness
#

AHHH

#

my Eyes

#

the lIGht MODe

#

and

#

the stuff

#

is so big

#

such as the files on the left

#

it used to be more compact

#

same with the problems

ocean quartz
#

I mean just change your settings again

half harness
#

wdym

#

idk what settings it is

#

it's back to normal if I disable plugin tho

quiet depot
#

@half harness most people use maven due to misinformation in the community

half harness
#

oh

quiet depot
#

influential people telling essentially lies

half harness
#

misinformation?

quiet depot
#

yes, lots of people genuinely believe maven is objectively better than gradle

#

that's my personal take on it

half harness
#

thx

obtuse gale
#

piggy

quiet depot
#

hello

obtuse gale
half harness
quiet depot
#

.idea

#

.iml

half harness
#

oh

#

thx

quiet depot
#

I think

#

might be build.gradle and stuff actually

#

I've got no clue, I usually click always add

half harness
#

lol

lavish wigeon
#

well i haven't buy deulexchat but i want to know if there are a option to hook or chat through discord?like discord srv

wanton sentinel
#

Hey

#

anyone know a bungeecord server manager

#

so i can group servers?

#

so like if i group servers (eg, hub1 hub2 hub3) and i do a command such as /hub it will send me to one of the hub servers depending on the player count

remote goblet
quiet depot
#

ew

#

org.reflections

hot hull
#

Piggy, can ya yeet the dude spamming his yt vid lol

quiet depot
#

where

hot hull
#

Like every channel..

#

Even bot commands

quiet depot
#

yeah gone

hot hull
#

Thanks

hot hull
#

This day 5 challenge is difficult, I legit can't figure it out lol

lunar cypress
#

easier than yesterday imo

hot hull
#

For me yesterdays was easier, less to think about

hot hull
#

@lunar cypress Cause like this si what I have so far :kek:

Starting Row Index: 63
Current Row Index: 94
Current Row Index: 47
Current Row Index: 70
Current Row Index: 105
Current Row Index: 53
Seat Row is '53' and Seat Column is '4' for input 'FBFBBFFRLR'.
#

Which is completelly wrong

old wyvern
#

0101100 101

hot hull
#

Elaborate

old wyvern
#

FBFBBFF RLR
0101100 101

#

lol

hot hull
#

smh

#

Now what

Row: 010110, Column: 101

#

@old wyvern ,-,

lunar cypress
#

@old wyvern i didn't even notice that and it still works without issues

old wyvern
#

mhm

old wyvern
#

You pretty much have everything you need

hot hull
#

convert them back to an int?

#

Lemme try

#

Holy shit

old wyvern
#

lol

half harness
obtuse gale
#

aa yes

#

202

hot hull
half harness
#

Also, why can't I edit md files 😦

#

in IntelliJ

obtuse gale
#

you can

half harness
#

I can't

obtuse gale
#

you have to disable the read only mode

half harness
#

how

#

I can edit other files

#

but just not the md

obtuse gale
#

it has a lock button somewhere at the bottom

#

sec

half harness
#

(from github)

#

ohh

obtuse gale
#

huh I swear there used to be a lock button to make it read only

half harness
#

I found it

#

I just locked then unlocked then it worked...

obtuse gale
half harness
#

im confused

#

wut

obtuse gale
#

aa found it

#

nvm yes I'm just blind

#

I'm assuming you meant the lock

forest pecan
#

good morning

obtuse gale
#

morning sweetheart flirt

forest pecan
hot hull
#

My mind

#

It ouchies

forest pecan
obtuse gale
hot hull
forest pecan
#

thats an oddly shaped plane

#

more like a

#

bottleneck

hot hull
#

There is legit no missing seat, which makes no sense

#

My seat should be the only missing one between two non missing ones

sacred stone
#

hey how can i use the EZBlocks api to Change the Amount of player mined blocks

#

like EZBlocks.setMinedblcoks(p,100)

#

or dos it have event to call ?

lunar cypress
#

you mean live sharing?

half harness
lunar cypress
#

then what's your issue with github

#

do you know git

#

at all

#

start there then

half harness
#

Use floobits fingerguns

ocean quartz
half harness
#

someone who I won't reveal

ocean quartz
#

Lmao

#

Why would it matter what Spigot is natively built with?

half harness
#

idk

#

just quesitoning here

#

just in case u guys knew something

lunar cypress
ocean quartz
#

^

half harness
#

huh?

lunar cypress
#

It doesn't matter at all if Spigot uses Gradle or Maven

#

Because if you just look at the artifacts (that you're using in the end) you literally can't tell a difference

half harness
#

thx

#

hes also a rly good dev

ocean quartz
#

At the end of the day all you'll have is a Jar

hot hull
#

He's an idiot, maven doodoo

onyx loom
#

👀

forest pecan
#

good luck trying to figure out the Pattern yourself

#

kekw

#

no

#

Fefo is mine

#

Nope

#

He calls me sweetheart

#

😊

#

Nope

#

he just a fury

#

never copied Stare

obtuse gale
#

I'm for you two, sweeties CH_winkluv

sly sonnet
#

Hi. Is it possible to create a placeholder that acts as a clickable link?

forest pecan
#

@obtuse gale im first cooldoge

obtuse gale
forest pecan
#

He dont got nitro

#

he bad

#

you insulting fefo? bee_triggered

#

ban

obtuse gale
#

I mean efe do got nitro

#

He no boost this server tho

#

I uuh

forest pecan
#

He's trying to insult you

#

dont fall for it fefo

#

😠 efefury

obtuse gale
#

Peeps, please, no need to fight over this

forest pecan
#

fefo remember we talked about peen milk 😠

obtuse gale
#

We can all be together uwu

obtuse gale
forest pecan
#

xD

#

you arent a man if you cant leak KEKW

#

I did

obtuse gale
#

You know what's leaking? KomaWinkWinkWinkWinkWink

forest pecan
obtuse gale
#

Tomorrow?

#

😦

forest pecan
#

wait wtf

#

wtf is that 24bit

#

emoji

#

kekw

#

kill the 24 bit emoji

hot hull
#

@sly sonnet No

forest pecan
#

@obtuse gale hes mine 😠

#

🏳️‍🌈

obtuse gale
#

Idk lol

forest pecan
#

NO

blazing walrus
#

Congratulations @obtuse gale and @obtuse gale

obtuse gale
#

And @forest pecan

#

I'm for them two CH_winkluv

blazing walrus
#

Lovely

forest pecan
#

you didnt include me first dab mitten

obtuse gale
#

Ngl pulse you okay League CH_facewhy

#

Play*

forest pecan
#

Always only emojis

obtuse gale
#

And efe, you play 1.8 CH_facewhy

forest pecan
#

he plays 1.8

#

cause of

#

the

#

pvp

#

😠

obtuse gale
#

But those are minor details LewdThinking

forest pecan
#

Turn on him

#

Turn on him bois

#

Nobody gives a shit about hypixel

#

lol

onyx loom
#

me neither wtf

forest pecan
#

I only heard of localhost

#

Heard it's pretty popular

#

You guys should totally join it

#

damn

#

localhost

#

going pretty hard

#

Ssame thing

#

shush

obtuse gale
forest pecan
old wyvern
#

It should be continuous

#

But there is a diff of 10 ids between each of your rows

hot hull
#

It makes sense to be like this no?

forest pecan
#

hah

prisma wave
#
(defn parts-valid? [parts]
  (filter (fn [part]
            (match (first part) ["byr" (<= 1920 (nth part 2) 2002)
                                 "iyr" (<= 2010 (nth part 2) 2020)
                                 "eyr" (<= 2020 (nth part 2) 2030)]))))
``` wow this is nice
blazing walrus
ocean quartz
prisma wave
#

how

#

It's a community server already

ocean quartz
#

I think it needs to be a community server
Sned me the invite link

#

Oh idk then

hot hull
#

They removed global emotes Matt

prisma wave
#

2YEAPf8B

hot hull
#

Sad times

ocean quartz
#

Lmao

prisma wave
#

Yea saw that coming

ocean quartz
#

That's not what I meant

#

I was talking about sharing the info of the emote only

old wyvern
#

The Ids should be continuous

lunar cypress
#

are you using core.match?

prisma wave
#

nah, my own match function

#

More like Kotlin when

lunar cypress
#

ah, looks very similar to case though

lunar cypress
#
(fn [[key value]]
  (case key
    "byr" (<= 1920 value 2002)
    "iyr" (<= 2010 value 2020)
    "eyr" (<= 2020 value 2030)))```
prisma wave
#

😐

#

Bruh

#

Would've been nice to know that existed when I was dying to figure out how to make the when

lunar cypress
#

case is like switch, cond is like if-else if-else and condp is for really funky people

prisma wave
#

sounds scary

lunar cypress
#

condp is very scary

half harness
#

Anyone know exactly what files are in a sources.jar?

lunar cypress
#

I still don't really know how to use it

lunar cypress
half harness
#

is it only the src?

#

or

#

does it also include the other stuff like build.gradle?

prisma wave
#

Generally no

half harness
#

also gradle uses src/java so does that also get included?

steel heart
#

iirc sources is the jar that is used for javadocs

#

might be totally wrong now

half harness
#

woah

#

i just noticed

#

github has a sources thingy

#

is that correct?

lunar cypress
half harness
#

but

#

there is a separate javadocs and sources jar

lunar cypress
#

javadoc is stored in the javadoc jar, fittingly

steel heart
#

ah epic fail

prisma wave
#

And yes it's hideous

steel heart
#

horrendous

prisma wave
#

Thanks 😊

lunar cypress
#

There should be a namespace declaration

prisma wave
#

Oh I didn't think that was necessary for single files

lunar cypress
#

it technically isn't

autumn tapir
#

Async is awesome

lunar cypress
#

And you shouldn't use use, but rather do it this way:

(ns part4
  (:require [clojure.string :refer [index-of split replace]]))```
#

(if you don't want a namespace, you can also do the same with the require function)

prisma wave
#

why's split there twice?

autumn tapir
#
const scheduler = server.schedule({ seconds: 2 });
await server.next(); //Waits 2 seconds
server.summon('zombie', { x: 1, y: 2, z: 3 });
await server.next();
server.broadcast('Two seconds ago, a zombie was summoned at 1 2 3!');
lunar cypress
#

because i mistyped

autumn tapir
#

Also that code example is with a plugin I'm making for Spigot

prisma wave
#

Ah okay

#

Could you also use :as ?

lunar cypress
#

yep

prisma wave
#

I like str/split and things

lunar cypress
#

Also, you don't need java interop for substrings, clojure wraps it with subs

#

that's in the core namespace even

prisma wave
#

Ah alright

lunar cypress
#
(defn parse-passport [string]
  (->> (split string #"\s+")
       (map #(split % #":"))
       (into {})))```then I would clearly separate the parsing from the rest
#

Ideally you want to work on data where you don't need to care about its format anymore

#

this is just an example of how you could parse each input string to a map

prisma wave
#

Hmm

#

What does the $ represent?

lunar cypress
#

Just an arbitrary symbol for the macro

#

wait, this is probably better actually

prisma wave
#

->> is just to change the order of things around right?

#

Kinda like F# |>

lunar cypress
#

The result of the first form is put in the second form as the last element, which in turn is put in the third form as the last element, etc...

prisma wave
#

Makes sense, so yeah it just avoids lots of nesting?

lunar cypress
#

(into {} (map #(split % #":") (split string #"\s+"))) equivalent to this

#

yeah just a convenience thing

prisma wave
#

Awesome

lunar cypress
#

in this case I would probably even do it without the macro

#

but with 3+ layers it can get nasty

prisma wave
#

and into is like folding it into an empty map?

#

While making a copy obviously

lunar cypress
#

(into a b) is just (reduce conj a b)

prisma wave
#

reduce*

#

Too used to Kotlin lol

#

Yeah, that makes sense

#

much cleaner too

lunar cypress
#

And conj on maps takes a two element vector representing key and value as an argument

prisma wave
#

Cool, that looks better

#

Thanks for the suggestions

lunar cypress
#

happy to help

hot hull
#

Johnny, I'll show u inputs tommorrow, not on pc

lunar cypress
#

refreshing to look at some clojure, doing this in C can be a pain

prisma wave
#

I would say the opposite lol

old wyvern
#

Is there anything similar to classes or a combination of data types of some sort in clojure?

prisma wave
#

Most of the problems are easier to solve imperatively imo

old wyvern
#

or is that handled as lists as well?

prisma wave
old wyvern
#

hmm

#

I wanna give clojure a try

#

not sure where to even start tho

prisma wave
#

I'm probably wrong though, but I've not seen anything to do with types

forest pecan
#

yo

old wyvern
#

I see

forest pecan
#

i wann try clojure

lunar cypress
#

So I have to disagree there lol

prisma wave
#

Fair enough

old wyvern
#

Good point

forest pecan
#

they are easy to solve

old wyvern
#

Ill give that a shot tonight

forest pecan
#

just bashsing

#

lol

old wyvern
#

IJ suppourts Clojure with a plugin right?

prisma wave
#

Yeah Cursive I think

old wyvern
#

Alrighty

prisma wave
#

Although I use VSC since a fully fledged IDE isn't so important

old wyvern
#

hmm

lunar cypress
#

For more sophisticated types/behaviour there are also ways, yes

prisma wave
#

o

lunar cypress
#

For example, there are protocols, which are kind of like interfaces, but you can implement them for existing types as well

#

You can proxy classes, interfaces and protocols

#

there's deftype and defrecord, although you should rarely ever use them

#

and for interop purposes you can generate classes, enable ahead of time compilation of your namespaces and so on and so forth

#

Clojure also has polymorphism, but it's much broader than the virtual dispatch that Java supports natively

#

The only situation where you may want to resort to writing a Java class is stuff like I/O streams maybe, just because you end up having more control over how it will be represented in the end

prisma wave
#

Wouldn't it be better to just write it in Java for that though?

lunar cypress
#

most clojure libraries for I/O and stuff are built on top of other Java libraries anyway, so I'm not sure when this situation would occur

#

I was just hypothetically speaking, there may be other cases of course

lunar cypress
lunar cypress
#

np

#

feel free to ask any questions along the way

prisma wave
#

@lunar cypress how could i do an "is integer" function for strings? normally you'd do parseInt + try/catch, is there a better way for clojure?

#

int? obviously doesn't work for strings

lunar cypress
#

I've used the try-catch way before, yeah

#
(defn parse-int [s]
  (try 
    (Integer/valueOf s)
    (catch NumberFormatException _ nil)))```
prisma wave
#

Ah okay

#

Thanks

lunar cypress
#

works quite well with if-let and or as well

prisma wave
#

@lunar cypress is there a macro that allows you to do something like ```clojure
(filter (and valid? parts-valid?) passport-parts)

rather than ```clojure
(filter (fn [part] (and (valid? part) (parts-valid? part)) passport-parts)
lunar cypress
#

You're looking for every-pred

prisma wave
#

ah yes

#

much nicer

#

thanks

#
(defn is-int? [s] (try
                    (do (Integer/parseInt s) true)
                    (catch NumberFormatException _ false)))
``` is anything wrong with this? apparently the `do` is redundant, but I can't think of another way of doing it
lunar cypress
#

yes, the do is redundant

#

and there's nothing wrong with it per se, but I would probably return the result or nil directly

#

because there isn't really a reason not to

prisma wave
#

well for the test i only need to check if it is an int

#

the value is irrelevant

#

i guess i can just nil? the return value

lunar cypress
#

you don't need to, as nil is falsey

prisma wave
#

😮

#

amazing

lunar cypress
#

That's my point, there would be no additional effort to turning the function into try-parse or something, you would end up with less code even

prisma wave
#

yeah you're right

frail glade
prisma wave
#

Fancy

#

day 4 finally done

old wyvern
#

@hot hull 5 pt 2 when?

hot hull
#

Tommorrow

#

I spent 5 hours doing part 1...

old wyvern
#

lol

obtuse gale
obtuse gale
#

for part 2 I ended up using a Map<String, Pair<Pattern, Predicate<MatchResult>>> :))))))))

old wyvern
#

What for?

obtuse gale
#

you don't want to know kekw

hot hull
#

Fefo, are you even in the leaderboard?

obtuse gale
#

stfu

#

I literally started like today :C

hot hull
#

Join our leaderboard bish @obtuse gale

obtuse gale
#

send thingu