#dev-general

1 messages Ā· Page 235 of 1

static zealot
#

there is getWhoClicked

wanton sentinel
#

ah thank you

#

event.getWhoClicked().hasPermission("")

#

that works

static zealot
#

well I would be surprised if it didn't

wanton sentinel
#

yeah

#

ima try it now, and just hope it works

#

Sorry for that stupid question XD

#

im new to java still

static zealot
#

ye it does efe

wanton sentinel
#

It works

wanton sentinel
#

What does this mean? if(currentItem != null && currentItem.getType() != Material.AIR) {

static zealot
#

if the item is not empty and its not air

#

then do something

wanton sentinel
#

Ah

#

What should i do so if the item is a compass

static zealot
#

well not empty but null

#

probably currentItem.getType() == Material.COMPASS)

obtuse gale
#

Hey i need help I made a scoreboard and a tablist. But each player only receives 1 of both, if 2 people are joined, one of the tablist and one of the sidebar (scoreboard) get

wanton sentinel
#

Thank you

wanton sentinel
#

then in the different classes make a PlayerJoinEvent

obtuse gale
#

They are in different classes

wanton sentinel
#

Then just register them in main

#

Just set it to give the player the scoreboard in the PlayerJoinEvent

#

then in your tablist make it give you your tablist

obtuse gale
#

But then the player only has 1 scoreboard and there are 2

wanton sentinel
#

Oh

#

Why do you have 2 scoreboards?

obtuse gale
#

Sidebar and Tablist

wanton sentinel
#

Now im confused lol

obtuse gale
#

why xD

wanton sentinel
#

idk whats going on now XD

obtuse gale
#

xD

wanton sentinel
#

i would wait for someone else who has more experience to try help

#

Because im quite new to Java

obtuse gale
#

too xD

hot hull
#

What seems to be the issue

obtuse gale
#

I have 2 scoreboards and the player only gets 1 of the 2

hot hull
#

You can only have a single scoreboard active at a time

obtuse gale
#

But there is a sidebar and a tablist

#

to be displayed

hot hull
#

Show the code involved

#

=paste

compact perchBOT
#
HelpChat Paste

Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste

hot hull
#

Paste it here, not in dms.

wanton sentinel
#

frosty i too have a question

heady birch
#

Use same objectives & teams in the same scoreboard.

wanton sentinel
#

How do i set a lore for SkullMeta?

#

?paste

compact perchBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
• HelpChat Paste - Usage
• Hastebin

wanton sentinel
hot hull
#

meta#setLore

wanton sentinel
#

Thank you

obtuse gale
#

yes

#

in 1 class?

wanton sentinel
#

How to make custom placeholders?

blazing walrus
wanton sentinel
#

Thanks

blazing walrus
#

Np

wanton sentinel
#

How to make placeholders work in chat

#

what listener would i need?

static zealot
#

PlayerAsnycChatEvent I think its called

#

get the message, parse the placeholders

wanton sentinel
#

Thank you

static zealot
#

and set the new message

#

oh its AsyncPlayerChatEvent

wanton sentinel
#

Tysm

prisma wave
#

AOC day 10 part 2 has been running for a while now

#

recursion 😬

#

oh god i think it crashed

modest pine
#

can i download a plugin src from github, edit it, and then compile it?

#

i am trying to make small edits

#

to a plugin

#

that is open source

prisma wave
#

probably?

#

my github codespace crashed ā˜¹ļø

#

i swear to god if i've lost the past hour of work

#

?????????????????

lunar cypress
#

I did part 2 in linear time fingerguns

prisma wave
#

😬

#

im pretty sure mine must be in factorial time or something

#

it's crashed twice now

lunar cypress
#

i've heard a lot of people resolved this with ||memoisation||

#

assuming your general algorithm is correct

prisma wave
#

hmm

#

im not sure my current implementation can be memoised

#

it's basically ```
combinations(node) {
if children is empty
return leaf == maximum ? 1 : 0

return (reduce + (map combinations children))
}

#

which is the jankiest pseudocode i've ever seen but still

#

I have every combination in a Tree structure

wanton sentinel
#

Is there a source code for deluxemenus?

#

I wanna see how it works

frail glade
#

Not public, no.

wanton sentinel
#

Oh ok...

#

Would you guys ever make it public, but just for educational purposes or to add features by yourself, as long as you don't publish as your own

frail glade
#

Not for me to say. Maybe at some point in time but probably not anytime soon.

wanton sentinel
#

Ok, thank you

frail glade
#

Yup! šŸ˜„

heady birch
#

some people just cant open source ca they 😦

#

Cool profile animation by the way Glare

hot hull
#

OS everything is our policy!

#

One day hopefully

onyx loom
#

this policy also applies to Niall, who recently has not been following this policy. Based on this knowledge, Niall may be breaking the policy and actions could be taken upon this.

heady birch
#

Oh how the tables turned

#

"Wow why don't you open source?" "Just open source it!"
Also them: "No. I am not open sourcing MY projects!"

onyx loom
#

when is kiteboard becoming open source

heady birch
#

In progress

onyx loom
#

now!

old wyvern
#

OpenBoard

forest pecan
#

argh i cant figure it out for part 2 yet

#

i dont wanna brute force

#

this whole thing is literally a math problem

#

but i hate number theory

#

and solving modulo equations

ocean quartz
frail glade
#

^

remote goblet
#

I open source all my work because nothing I do is like

#

amazing code that that people really want to use

forest pecan
#

So i know

#

the algorithm is the || chinese remainder theorm || for part 2 of the aoc

#

however

#

my head hurts just trying to think of this

lunar cypress
#

I'll have to look that up as well

#

brute force is not an option, I can tell you that much

forest pecan
#

I got it

#

I think i got it

#

saw a video about it

#

didnt type code yet

#

but i got the algorithm

#

i hate yall aoc problem creators

#

forcing me 30 minutes of my life to learn a theorm

lunar cypress
#

well I don't mind maths all that much, I have to do a fuck ton now anyway

forest pecan
#

im doing advent of code to prepare for a different competition this week flushedcowboy

lunar cypress
#

cool

#

I'm busy failing Analysis

forest pecan
#

we can fail together

lunar cypress
#

awesome

steel heart
obtuse gale
#

@forest pecan

steel heart
#

@obtuse gale

obtuse gale
#

not you conclure

#

pulse

steel heart
#

@obtuse gale

#

Oh sry

#

@forest pecan

#

Ffs

half harness
#

what is ffs

obtuse gale
#

yes, pulse

#

for fuck's sake dkim*

half harness
#

ok

steel heart
#

Wha happened fefo

#

Ur name

#

It became shorteeee

obtuse gale
#

ik

#

pulse dms

#

@forest pecan

half harness
#

šŸ‘€

#

u pinged him 3 times by now

steel heart
#

Wedding?

obtuse gale
#

yes conclure, wedding

obtuse gale
steel heart
#

I mean dnd doesn’t work

half harness
#

yes it does

obtuse gale
#

it doesn't sound the ping tho

half harness
#

it blocks the notifications

steel heart
#

Discord is still noisy

obtuse gale
half harness
#

lol

steel heart
half harness
#

nitro

steel heart
#

Smh my head

half harness
#

"Shaking my head my head"

#

ok

steel heart
#

roflmaosmh

half harness
#

whats rofl stand for

quiet depot
#

roll on floor laughing

steel heart
#

Ye

half harness
#

you are rolling on the floor laughing, also laughing your ass off, and at the same time shaking your head

#

wow

steel heart
#

Piggy

#

Is mongodb better than mysql

#

When storing data generally?

quiet depot
#

they're completely different

#

depends on use case

#

not broadly comparable

steel heart
#

Hmm okay, someone said MongoDB is only good for logging etc

#

Is that correct?

frail glade
#

O.o

quiet depot
#

honestly it doesn't matter

#

only worry about what db type to use when you have a fuck ton of data

#

a fuck ton = millions of entries

steel heart
#

Hmm okay, then let’s say I have a ton of userdata, what would be most beneficial

quiet depot
#

I'm really not sure

frail glade
#

As he said, it's different based on use-case.

quiet depot
#

I'm not an expert in databases, I can't answer your questions

frail glade
#

This is somewhat a X Y question.

steel heart
#

Hmm okay thank you Ig then

#

It is ofc

frail glade
#

What does the user data pertain

forest pecan
#

smh

#

conclure

#

imagine

#

lol

frail glade
#

Do you need it relational or not?

steel heart
#

Uhm for the time being, let me come back later with a better question

#

@forest pecan how have u been

forest pecan
#

i hate yall

steel heart
#

Why u died

forest pecan
#

no u

#

u ded

steel heart
#

Yes u

forest pecan
quiet depot
#

pulse you any good at dbs?

frail glade
#

A relational database structures data into tables and rows, while MongoDB structures data into collections of JSON documents. JSON is a self-describing, human readable data format. Originally designed for lightweight exchanges between browser and server, it has become widely accepted for many types of applications.

obtuse gale
#

@forest pecan

forest pecan
#

Not good at all of databases KEKW

steel heart
#

@frail glade hmm yeah I guess that makes it clear

quiet depot
#

I've literally only used mysql/mariadb

obtuse gale
#

pulse pls

forest pecan
#

wat

#

do u want

#

fefo

obtuse gale
#

DmS

forest pecan
#

I've used a bit of redis and mysql really only

quiet depot
#

if I ever run out of memory i'll look into redis as a cache

#

but I've not needed to

steel heart
#

Idk maybe it’s worth using mongo instead of mysql :0

quiet depot
#

it's probably not conclure

#

is it for a public plugin?

#

because most people don't have mongo available to them

steel heart
#

Ah okay

#

Also is there an alternative to redis? Probably not needed but just out of curiosity

quiet depot
#

depends how you're using redis

#

lots of people in this community use it as a messaging service, but it's also a cache

#

if you're using it as a messaging service, then yeah, there's alternatives

#

rabbitmq I believe is one of them

#

if you're wanting a cache, a popular alternative is RAM

frail glade
#

Lol

forest pecan
#

xD

steel heart
#

yeah, as of now I use redis to cache data over different backend servers

frail glade
#

It's actually crazy how little of ram some stuff uses as a cache.

obtuse gale
#

is there any form of like

#

companion object val x = setOf()

#

or companion val x = setOf()

#

or do I just have to do

companion object{
  val x = setOf()
}```
forest pecan
#

Yes

#

Finally

#

I solved the problem

obtuse gale
forest pecan
#

i mean it only took me like 2 hours

quiet depot
#

well fuck

#

I've encountered the point where I can no longer store things in memory

#

with 3 javadocs loaded (only types & methods), I'm using a whopping 6gb of memory

#

time to setup a db ig

quiet depot
#

wew 111gb

#

that's rough

distant sun
#

Literally me ^

quiet depot
quiet sierra
#

just be like my networking teacher with his 110tb of "anime"

quiet depot
#

lol

#

there's a guy on spigot called strahan

#

he literally has a server rack just for "anime"

distant sun
#

Nice pig

#

And wtf

quiet sierra
#

My networking teacher had to make a deal with the general manager of one of the ISPs to make his network uncapped

quiet depot
#

I mean I'm sure he uses it for some other stuff too

#

but anime is the main focus

quiet sierra
#

due to the TBs of bandwidth he uses per transfer

distant sun
#

Ok ..

quiet sierra
#

He's flexing

distant sun
#

Anime is weird

quiet sierra
#

Eh

#

You haven't seen my code yet

#

Even weirder

#

it's 6am send help

quiet depot
#

what is a codec

#

mongo wants me to make a codec

#

i've never used mongo before i don't know what i'm doing

distant sun
#

Type-C Code

#

Like a charger

quiet sierra
#

I've used MySQL maybe once or twice and now I'm doing a whole skyblock core where the islands are stored in sql and dynamically loaded

#

This is fun

#

6 hours in and I got the whole loading / unloading system done

#

Now another 600 hours to fix bugs

quiet depot
#

worst comes to worst i'll go to mysql

#

it's just mongo should be the perfect database for my needs

#

so I need to learn how to use it

quiet sierra
#

Imma engrave "DB" into a mango and call it a day

distant sun
#

TheĀ CodecĀ interface abstracts the processes of decoding a BSON value into a Java object using aĀ BsonReaderĀ and encoding a Java object into a BSON value using aĀ BsonWriter. The BSON value can be as simple as a boolean or as complex as a document or array.

quiet sierra
#

And engrave the data in a metal plate or something

#

~Bro wtf is a bson

quiet depot
#

binary json

#

i think

distant sun
#

Mongo is interesting

quiet depot
#

i'm storing at least a million big objects so it's perfect

quiet sierra
distant sun
#

How do you even store parts of map on sql

old wyvern
#

How much time does reading 1 class take?

quiet sierra
#

save the island as a .schematic and serialize it

#

using this util I stole off stackoverflow

quiet depot
#

not sure yugi

distant sun
#

I got a test :(

old wyvern
#

wha xD

#

anyway

quiet depot
#

wait were u talking to me or gaby yugi?

old wyvern
#

the last one to gaby

#

replying to you one sec

quiet sierra
old wyvern
#

maybe just store commonly called ones, and read the rest on request

#

like a sort of cache policy

quiet depot
#

the db is the storage

#

imo it's better to have the db as storage rather than the javadoc site itself

#

also it's already in it's proper serialized form so that's a bonus

#

less processing to do

#

but to answer your question, I'm not sure 1 class exactly

#

but to scan all methods & types from a 1.16.4 javadoc, it probs takes 30 seconds

old wyvern
#

The complete Javadoc?

quiet depot
#

just methods and types atm

#

no fields yet

#

or constructors

old wyvern
#

ah

#

its still pretty fast

quiet depot
#

not really

#

it took 10 seconds before I added backwards support for old javadoc types

old wyvern
#

Isnt network delay to navigate them a factor tho?

quiet depot
#

which is why I need to fix my impl

#

I must have fucked something up really bad

old wyvern
#

oh

#

welp

quiet depot
#

it's doing too many checks which is slowing it down

#

yes network delay is a massive factor

#

you literally couldn't use this software if you're scanning anything that isn't localhost

#

it'd take hours otherwise

old wyvern
#

hmm

quiet depot
#

(assuming you didn't get banned for an attempted ddos)

old wyvern
#

šŸ˜‚

quiet depot
#

anyway I'm not going to bother caching anything anymore

#

it's all going to have to be fetched from mongo at request

#

memory footprint is just too large otherwise

#

I'm fairly sure this is a perfect use case for mongo, so speed shouldn't be too bad

old wyvern
#

Is loading an entire javadoc into memory needed tho? like what usage would the bot provide later on exactly?

#

find closely named methods / classes ?

quiet depot
#

yep

old wyvern
#

ah

quiet depot
#

that's one of the usages

#

speaking of which that may be a problem

#

actually nah

#

anyway here's an example

quiet sierra
#

free ip

#

ew light theme

old wyvern
#

Ah nice

quiet depot
#

uses levenshtein algorithm for searching

quiet sierra
#

hold up what's that

old wyvern
#

Word distance

quiet sierra
#

I just implement something off my head t hat prob exists

quiet depot
#

there's two tables per type (types vs methods, so 4 tables total)

#

one table is just proper names like commandexecutor, or commandexecutor~oncommand

#

the other table is fqns

#

if neither have a direct match, levenshtein

quiet sierra
#

Eh

#

I prob just make something that checks the similarity

#

As a percentage

#

And find the best match

quiet depot
#

that's what levenshtein does lol

quiet sierra
#

prob what you just described

quiet depot
#

well sort of

quiet sierra
#

except I do it from scratch with no base or process

#

because enjiner

quiet depot
#

levenshtein distance is how many characters have to change to meet the original string or something

old wyvern
quiet depot
#

you can calculate a percentage from that though

quiet sierra
#

Yeah something ismilar to that

#

Except a really stupid version

old wyvern
#

I dont think I understood

quiet depot
#

one table for names e.g. commandexecutor, and one table for fqns e.g. org.bukkit.commandexecutor

old wyvern
#

ah

quiet depot
#

those two tables cover the broad category of types

#

i.e. classes, interfaces, annotations and enums

#

then we've got 2 more tables for methods

#

and there'll be 2 more tables for fields

#

eventually

old wyvern
#

You are using key values pairs right?

quiet depot
#

methods will encompass methods and constructors

old wyvern
#

Otherwise I assume you can do all that with just 1 table in sql

quiet depot
#

<Javadoc, Name, Object>

old wyvern
#

hmm

quiet depot
hot hull
#

@ocean quartz Any chance we could get either an annotation or something which would limit the CommandSender to only console, since right now it also includes player (just for convinience sake so I have to write less stuff <3)

hot hull
#

The feeling when @quiet depot Still doesn't follow me back on GH :c

quiet depot
#

idek who I follow

#

pretty sure I follow eccentricnz because he has the coolest mc plugin ever

#

and that’s about it

obtuse gale
#

fuck css

static zealot
quiet depot
#

ah i follow 3 people

#

two because cool projects

#

one cuz close griend

#

friend

#

frosty I’ll follow you if you make something super epic

hot hull
#

hmm

static zealot
#

he made FrozenJoin fingerguns

hot hull
#

FrozenJoin+

static zealot
#

oh

#

FJ+ even better

quiet depot
#

fj is abandoned

static zealot
#

still works tho xD

hot hull
#

I've not got the time, otherwise I've got some pretty cool ideas to rewrite it

quiet depot
#

when’s your next holiday break?

hot hull
#

In a week

#

I've got 2 projects for Gian to finish, an ongoing large one which needs constant additions, so time is on the low

quiet depot
#

ah rip

obtuse gale
#

Is there a way to avoid like having to put all boilerplate stuff in each html file? Such as like navbar, menu, etc

quiet depot
#

are gian’s projects big ones?

#

little bit of php does the trick aj

hot hull
#

I mean SupporterCodes is fairly massive cause I'm a 4head

quiet depot
#

you added me to that one right?

hot hull
#

They're both OS

quiet depot
#

I swear I’ve seen it

#

ah

#

are they paid commissions?

#

@obtuse gale with php u can include files in ur shit, so u can have a file for ur header, footer, etc, and just include it where u need it

hot hull
#

I mean he said he was gonna pay, so we'll see šŸ‘€

obtuse gale
#

yes but php

quiet depot
#

what’s wrong with php?

static zealot
#

I don't know it

#

that's whats wrong

#

xD

obtuse gale
#

looks gross

hot hull
quiet depot
#

yeah I mean there is a lot wrong with php ig

obtuse gale
#

its nice for some simple things i guess

quiet depot
#

but in this instance, none of it’s flaws matter

#

also blitz php is super easy

static zealot
#

I guess I never tried it.

quiet depot
#

honestly not a lot harder than html/css

static zealot
#

I've only rly done 1 full website

obtuse gale
#

ive done some basic shit with php and it didnt look hard...

static zealot
#

and that was for school

#

so I didn't rly need it

obtuse gale
#

but like $ for each variable

quiet depot
#

well web dev is definitely something you should get into blitz

#

pays well šŸ˜‰

#

boring as fuck a lot of the time tho

hot hull
#

Charlie be doing well with web dev

#

More than well

quiet depot
#

oh is he a web dev now?

static zealot
#

what's funny is I got a job offer... they didn't know I know shit about that xD

quiet depot
#

haven’t heard about uim in yonks

#

him*

hot hull
#

We got streaks on SC

quiet depot
#

sc?

#

oh snapchat

hot hull
#

Yes!

#

You boomer

prisma wave
#

PHP has quite a few questionable design decisions

quiet depot
#

Hey I’m young I just don’t use any social media that isn’t discord

prisma wave
#

But I guess it's fine

quiet depot
#

I mean for including files like I suggested, I don’t think any of php’s flaws are being exposed

static zealot
#

I've deleted every single sm account I didn't need

#

Because it was a big fucking waste of time

steel heart
#

discord lol

static zealot
#

now I have other things to waste time on

quiet depot
#

i use insta to talk with primitive friends but that’s it

static zealot
#

lmao

old wyvern
#

primitive friends?

static zealot
#

xD

static zealot
#

who don't have discord

old wyvern
#

oh

quiet depot
#

^

old wyvern
#

xD

hot hull
#

I use Messenger, Insta, SC

quiet depot
#

ew facebook

old wyvern
#

I just dont message people

hot hull
#

I don't use discord for personal shit

old wyvern
#

ez sln

static zealot
#

I used Messenger because of school now I'm going to delete the account

hot hull
#

Messenger is nice Piggy, cause it's the easiest place to have a group in

quiet depot
#

my family keeps trying to get me to use messenger but there’s no way

old wyvern
#

Anti social gang

quiet depot
#

fuck that’s hypocritical since I use insta

#

lol

static zealot
#

xD

quiet depot
#

oh well

hot hull
#

Otherwise I don't use FB, cause it's fucking trash

old wyvern
#

Time to find pig on insta?

#

xD

#

jk

quiet depot
#

I don’t use my handle

#

it’s my irl name

hot hull
#

Imagine using your handle on insta

#

Pathetic

static zealot
#

xD

old wyvern
#

There still probably is a way to find your handle tho

hot hull
#

cough Follow me on insta @hot hull cough

old wyvern
#

Sure

hot hull
#

(jk not my ig)

old wyvern
#

oh

static zealot
#

To find all my social media you would need to make 1 google search, 1 click, another google search and there it all is

old wyvern
#

welp

#

Speaking of which

hot hull
#

Yea I use my irl name for it

old wyvern
#

got locked out of my insta on phone

#

coz I switched sims

quiet depot
#

nah

old wyvern
#

Now I need to find my old one to get access

hot hull
#

Only place i have non irl people added is SC, which I've got 3 people from here

old wyvern
#

šŸ™ƒ

hot hull
#

4*

quiet depot
#

I’m proud to say that my irl name is in no way linked to my handle

light venture
#

apple

old wyvern
#

Hmm

hot hull
#

You seem like an Adam Piggy

quiet depot
#

although if you try and find it please let me know privately

light venture
#

šŸŽ or šŸ

old wyvern
#

Sure

hot hull
#

Sellinq, what u mean

old wyvern
#

too new for me

#

I dont understand wtf its even for at this point

light venture
#

to put in pigs mouth as a tradition for celebration

old wyvern
#

I think I uninstalled ti from random people sending me the most random pics

hot hull
#

Aren't you like 17

old wyvern
#

im 19

#

almost 20

hot hull
#

Ah close enough

quiet depot
#

ancient

obtuse gale
#

how get good at css

#

halp

#

im in pain

hot hull
#

"ancient" lmao

old wyvern
#

wha?

quiet depot
#

are you using bootstrap aj?

#

cuz bootstrap helps

obtuse gale
#

yes

old wyvern
#

I mean nto sure about where you are from but sc just started to get popular here

obtuse gale
#

and i still suck cos i dont know how to use it properly lol

hot hull
#

Piggy, how do you print out the entire project structure

old wyvern
#

so 😐

obtuse gale
#

I did this :))

quiet depot
#

I use the tree command from gnuwin

static zealot
#

yo if I delete my messenger

hot hull
#

Does IJ have a default thing?

static zealot
#

do my friend lose the messages?

quiet depot
#

no

static zealot
#

or they can still see them?

quiet depot
#

not that I’m aware of

light venture
#

yes

old wyvern
#

They can see them

static zealot
hot hull
#

They can still see it

static zealot
#

ah ok

#

good

#

I'm deleting it rn

#

lmao

quiet depot
#

frosty I’ll send u my tree.exe when I get on pc

old wyvern
#

lol

hot hull
#

Wait I think you already sent me it

quiet depot
#

could also just google gnuwin64 and install it

#

brb

old wyvern
#

ill send you my keylogger.exe

hot hull
#

I'll send you my creditcardsnatcher.exe ā¤ļø

light venture
old wyvern
obtuse gale
#

the more css i do will i start to hate it less or na?

old wyvern
#

Uh you will hate it at some point while debugging

obtuse gale
#

i hate kotlin at some point while debugging

old wyvern
#

But i mean, depends

old wyvern
quiet depot
#

you’ll always hate css

#

it’s terrible

old wyvern
#

Positioning hell

quiet depot
#

there’s no denying it

obtuse gale
#

is getting better at it just a matter of using it lots?

light venture
quiet depot
#

yes

#

but look

light venture
#

good series

old wyvern
quiet depot
#

these days using css is completely optional

light venture
#

šŸ˜‚

quiet depot
#

with bootstrap you should only need to use html

hot hull
quiet depot
#

ew

obtuse gale
#

why only html? Theres stuff you cant do with bootstrap isnt there?

static zealot
#

omggg

light venture
#

white theme

static zealot
#

I'm not deleting my facebook anymore

light venture
#

yuck

static zealot
#

how could I

hot hull
#

It's fucking window explorer

obtuse gale
#

can you do most stuff with bootstrap?

hot hull
#

Eat my ass Sellinq

old wyvern
#

Youll only need css for very specific stuff

light venture
#

facebook market place is too good tier

obtuse gale
#

hm

old wyvern
obtuse gale
#

I guess the only logical thing to do rn then is to just jump into a massive project and struggle for hours optimistic

old wyvern
#

Try auditing the webdev course from coursera

quiet depot
#

auditing?

old wyvern
#

Yea they have an option to take up a course without getting the certificate

#

To attend the course for the certificate you need to pay for the course

obtuse gale
#

40 hours sounds like alot

static zealot
#

40 hours 2 per day that's 20 days.

old wyvern
#

Its doesnt actually take 40 hours

obtuse gale
#

is it actually good? or is it just gonna cover all the basic stuff i already know about css/html?

old wyvern
#

I had that course as an extra credit course sponsered by my uni, I attended only during the last week and finished it easily

old wyvern
obtuse gale
#
          <img src="img/logo.png" class="navbar-brand"  width="55">
          <a class="navbar-brand text-light">Test</a>
``` Like this for example is in a navbar, is there a way to remove most of the spacing between. the text and the image without custom css?
static zealot
#

Does Sublime Text have any benefices over VSC?

prisma wave
#

Faster

#

Much faster

static zealot
#

ah

frigid badge
#

when do you even need a text editor

normal talon
#

file configuration

static zealot
#

html

#

css

#

js

frigid badge
#

WebStorm is what you use for that smh

normal talon
#

liquid

static zealot
#

ye

#

never herd of thos

#

those

obtuse gale
#

ive started using vsc for html/css

frigid badge
#

ew

static zealot
#

I've always used VSC and now I'm thinking of moving to ST

#

because for me VSC loads very slow

normal talon
#

sublime text is good

frigid badge
normal talon
#

and fast

obtuse gale
#

vsc just feels lighter... probably because it is

static zealot
#

ye

#

just don't use the

#

live preivew plugin

#

or whatever its called xD

obtuse gale
#

y

pallid gale
#

vsc šŸ‘Œ

old wyvern
#

sublime gang

static zealot
#

when I used it

#

it would take a lot of time

#

to load the app

#

when I wanted to edit something

#

Matt helped me find out the reason

#

but like minutes long

frigid badge
#

webstorm gang

old wyvern
#

I downloaded webstorm but havent got a chance yet to use it

obtuse gale
#

phpstorm >

frigid badge
#

I don't use anything else besides jetbrains ides

quiet depot
#

you're missing out

#

sublime text is love, sublime text is life

frigid badge
#

I have no reason for a text editor

old wyvern
#

oh wait

quiet depot
#

wtf

old wyvern
#

I read the version wrong

#

xD

#

I thought it asked me to downgrade

quiet depot
#

why would .4 come out on rider first

frigid badge
#

lmao

old wyvern
#

welp

old wyvern
#

2020.4 didnt

#

I had 2020.2.4 installed

#

The update was to 2020.3

quiet depot
#

o

half harness
#

Just a question - why does worldguard need worldedit?

frigid badge
#

for selecting regions

#

(I think)

forest pecan
#

and also special vector classes

obtuse gale
#

And heap loads of other stuff lol

half harness
#

o

blazing walrus
#

__World__Edit, __World__Guard

#

Thats why

obtuse gale
#

__Engine__Hub

static zealot
#

ah yes

#

World

half harness
#

world isn't really a specific name tho

static zealot
#

the thing that connects us all

half harness
#

it's not like Deluxemenus

blazing walrus
#

Exactly

quiet depot
#

when sk89q was first developing worldedit he bundled in apis that he thought would be beneficial to everyone in the community, so he always made it a dependency of his other plugins to make it a trend. Didn't really work, but that's the reason why

half harness
#

and DeluxeHub

#

oh

quiet depot
#

I believe the api in particular that he was pushing was wepif

#

vault eventually took over though

prisma wave
#

omg

#

ive finally done it

#

day 10 part 2

#

memoization saves the day

#

Julia has also overtaken Go in the Languages tab

forest pecan
#

you dont need a tree 🌚

ocean quartz
#

Too much Java, too little Elara

forest pecan
#

hes right

#

its time to change

old wyvern
#

Elara is coming

#

#25OfElara

prisma wave
#

Elara day 25 is unironically the goal

prisma wave
#

seems like a decision tree sorta thing

forest pecan
#

well

prisma wave
#

oh

#

well

forest pecan
#

idk if julia has that structure

prisma wave
#

Map?

forest pecan
#

like a hashedmap

#

does it have that?

#

im not sure

prisma wave
#

yeah, it has Dict which is basically the same thing

forest pecan
#

Oh I see

heady birch
#

I want xml and yaml to show up on my repos. But it's just java.

prisma wave
#
import elara/std

let fileContent = readFile("input.txt")

let numbers = (fileContent.lines() map toInt).asSet()

let part1 => {
    let match = numbers first (num) => {
        numbers contains (2020 - num) 
    }
    return match * 2020 - match
}

print(part1()ā€Š)

This will be elara day 1 part 1

#

I think

#

Probably

onyx loom
steel heart
#

@prisma wave beutiful =>

prisma wave
prisma wave
onyx loom
#

ah

prisma wave
#

Oh and Clojure

#

Swept to the side šŸ˜”

steel heart
#

Haskell

#

Scala or Julia

prisma wave
#

Haven't used Scala yet

steel heart
#

which one is better

prisma wave
#

Uh

#

They're all different

#

Julia is great for data processing and mathematics and things

#

Scala as far as I know is just mostly functional Java, so similar to Kotlin

#

Haskell is

#

Haskell

steel heart
#

Haskell is Haskell yeah good explanation lol

onyx loom
prisma wave
#

I think I will do another day in Clojure to get it as the highest %

steel heart
#

hmm so kotlin or scala

prisma wave
#

as far as I know (barely used Scala)
Scala definitely focuses more on FP although it's not elitist like Haskell, it's in theory multi-paradigm
Scala compiler is pretty slow and Scala is pretty tricky to learn
Scala (as far as I know) has more advanced features like pattern matching, Option types, lazy variables, whatever implicit means

Kotlin is very multi-paradigm
Similar to Java so easier to learn
Compiler is often faster than Java's

#

So personally I'd pick Kotlin but only because I've hardly ever used Scala

steel heart
#

hmm interesting

onyx loom
#

every language has their advantages

steel heart
#

this might be the end of my kotlin career

heady birch
#

Give me a random program to make

steel heart
#

minecraft with no edges

prisma wave
#

Advent of code

prisma wave
heady birch
#

No, something else

hot hull
#

Wtf, Charlie already got his hacktoberfest tshirt

prisma wave
#

How big / complex

old wyvern
heady birch
#

medium perhaps

prisma wave
#

Make a lisp interpreter

steel heart
#

create a chess program

forest pecan
#

lol

half harness
#

oo

#

what if you made a chess plugin in mc

#

that would be pretty cool ngl

#

aw it's already made

#

:C

#

unique plugin ideas are too hard to find

ocean quartz
old wyvern
#

yoo

#

damn

ocean quartz
#

everything has already been made in minecraft

half harness
#

😦

#

pays $1000 for a unique plugin idea

onyx loom
#

still isnt unique

old wyvern
#

A web browser in game?

#

An ingame scripting language with blocks?

#

uhh

#

hmm

onyx loom
#

web browser šŸ‘€

old wyvern
ocean quartz
old wyvern
#

ah nice!

ocean quartz
#

Configurate is getting yaml comments

steel heart
#

epic

forest pecan
#

discord dying again?

static zealot
#

ye

#

seems like

obtuse gale
#

no?

#

works fine for me

hot hull
#

I'm dying inside

ocean quartz
#

Same

hot hull
#

But mine is a good reason!

onyx loom
#

it ok frosty

#

weve all been there šŸ˜”

forest pecan
#

i want junk food

#

i want french fries

onyx loom
#

MCDONALDS

forest pecan
#

YES

ocean quartz
#

Micky D's

forest pecan
#

golden arches

#

xD

hot hull
#

Wdym Kali, I said a good reason, not hecking depression

old wyvern
wheat jackal
#

Hello everyone! I feel like I want to get started on making my own plugins, but I am not sure where to start with it. How well do I need to know java? Some people say you just need to know the basics but some people say that's not true? How difficult is it to learn how to make plugins and how difficult is the spigot api? sorry if this not the correct place to ask questions like this but I couldn't find anything else.

forest pecan
#

learn Java

obtuse gale
#

... that is the single most unhelpful comment you could have made

forest pecan
#

Learn it to an extent such that you will be able to grasp the topic easily

#

(cause i wasnt finished talking...)

distant sun
#

How do I create the src folder if IIJ didn't for some reason?

forest pecan
#

you just create it and mark it as a source folder after?

obtuse gale
#

"Just the basics" is pretty much not true. I say you have to learn how to work with it first (how to work with classes and methods, instances, operations, etc)

forest pecan
#

Well that is kinda basics

#

i guess code quality

#

is another thing

#

but that is considered also the basics

obtuse gale
#

yeah but youtube tutorials say "basics" and not consider anything in it

forest pecan
#

well then you are using bad yt tutorials

#

period lmfao

obtuse gale
#

mhm

forest pecan
#

use programmingknowledge

obtuse gale
#

?learn-java

compact perchBOT
#
FAQ Answer:

Start with this -
https://docs.oracle.com/javase/tutorial/java/concepts/index.html
Breeze through this skipping stuff that doesn't seem relevant like bitwise operators-
https://docs.oracle.com/javase/tutorial/java/nutsandbolts/index.html
and then hit this
https://docs.oracle.com/javase/tutorial/java/javaOO/index.html

They're the first three from this larger thing - https://docs.oracle.com/javase/tutorial/java/index.html
Which you should definitely go through overall. But those three should be enough for slightly better understanding of wtf is happening here without feeling like a huge time sink
That one is a small part of this larger site - https://docs.oracle.com/javase/tutorial/index.html
wherein "Essential Java Classes" and "Collections" also have good useful stuff

forest pecan
#

And also im confused af why this doesnt parse:

int bin = Integer.parseInt("110100010010110010000111110000010110", 2);
obtuse gale
#

that looks 64 bits

#

i.e. a long, not an int

forest pecan
#

oh

#

forgot about that

obtuse gale
# compact perch

@wheat jackal šŸ‘† save those links somewhere and read them over time, also follow some academy/guide of sorts to also practice, practice is very important. You won't learn Java over the course of one or two days, it takes a lot of time to get good, but it takes effort to understand what you're doing

#

Then you can jump back and forth between learning more and making plugins, but read those pages over time before you jump onto spigot

#

Oh and also, don't be afraid or shy to ask, people are here to do their best to help you out!

wheat jackal
#

alright thank you guys for your support! also I see lots of people talking about the java ide? eclipse vs intellij and stuff like that, which one is more beginner friendly if you can even say that. I have only been using visual studio code since I have been doing web-development and python for a while.

obtuse gale
#

that doesn't really apply to your question btw

forest pecan
#

theres no ide that is really beginner friendly though

#

just takes getting used to

wheat jackal
#

yeah that's what I thought

obtuse gale
#

It's uuh that's a bit complicated sadly, it's a whole environment you get familiar with

forest pecan
#

i mean you could use notepad because its simple xD

#

joking

obtuse gale
#

I personally loved IntelliJ IDEA (due to many reasons), but I really, really don't like the way Eclipse manages projects and files layout

#

But eeeeeh....... each on their own tbh

#

You'll have to see what you're comfortable with, again, over time

distant sun
#

so I have to work with cooldowns that are saved on a database, which would be a better plan?:

  • keep them in memory permanently while the plugin is enabled and save it when is created & on shutdown
  • keep the objects in memory for an interval - like a cache - and query the database afterwards to update the stored value
  • other?
ocean quartz
#

Normally i'd keep them all in memory and query from cache always, query from database only on startup and write to both simultaneously

distant sun
#

hmm, alright

#

On my previous design I had a problem with storing the data because a player can have multiple cooldowns (but only one with the same identifier) and multiple players can have one cooldown with the same identifier.

ocean quartz
#

Try making that into a diagram it'll help you figure it better

distant sun
#

ok will try

#
CREATE TABLE IF NOT EXISTS `COOLDOWNS` (
    id INTEGER PRIMARY KEY,
    uuid TEXT NOT NULL, -- player's uuid
    name TEXT NOT NULL, -- unique name for each cooldown
    duration INTEGER NOT NULL, -- duration in seconds
    start_timestamp INTEGER NOT NULL -- start timestamp in seconds
);```
What I was trying to avoid are multiple queries for one cooldown
  • check if there is a cooldown with the same uuid and name
    • if true, update the duration and start
    • if false, insert```
steel heart
#

@obtuse gale
Firstly, it's a compiler hack. The Java compiler isn't intended to be used like that and so it can cause compiliation errors, or worse:
I was working with a project using Lombok recently and method references for a lombok generated method were causing some pretty difficult to debug runtime errors.

Secondly, it requires an IDE plugin. You have to properly configure your build tools and IDE to avoid hundreds of errors, and installing an IDE plugin + setting up annotation processing takes time, especially if you're inexperienced.

Generated code also doesn't show up in Javadocs, so unless users have source code available it's going to look like nothing is accessible

If Lombok's code generation does something unintended, it can be difficult to debug, and usually requires you to remove the annotations and do a certain impl manually anyway. However, once you get used to this it's very discouraging to do, so it's easy to rewrite an entire class just to make it work with Lombok

There's also an extra degree of complexity with Lombok. Java is supposed to be explicit, and transparent. If you don't notice an annotation at the top of a class, it's easy to wonder where a method is coming from, or why a field is never initialized.

It also can be harder to work with. Again recently, IntelliJ couldn't find usages of a constructor, because as far as it was concerned, there was no constructor - Lombok generated it - meaning I had to find every usage of the class and search for a constructor which wasted a lot of time.

A final, slightly petty point: Lombok'ed bytecode doesn't match the source code (obviously), but it means a pretty annoying IJ warning (look at BungeeCord source for example)

Lombok may seem good in the short term, but it comes with a heavy price. Favour IDE generated boilerplate, or consider using a language like Groovy or Kotlin if you really dislike boilerplate.

Xp

ocean quartz
#

Why ping them? lol

prisma wave
#

Lmao

ocean quartz
#

Plus the size of your message doesn't matter for xp

quiet depot
#

I'm confused

#

why did he tag bomp?

#

bomp hasn't said anything since november

ocean quartz
#

No idea

prisma wave
#

Because the original tagged him lol

obtuse gale
#

lol whatttt that was weird

steel heart
#

Oh lol

#

Ye sorry bomp the archived message I have contains a ping

hot hull
#

Should've sent it in multiple messages maximum xp

steel heart
#

?

hot hull
#

@ocean quartz Did you see my mf commands suggestion? 🄺

steel heart
ocean quartz
hot hull
#

Uh check pings from me

ocean quartz
#

Oh, that's been a thing for ages now

hot hull
#

Wait what

steel heart
#

Epic

ocean quartz
#

Use ConsoleCommandSender as the sender and it'll be console only

hot hull
#

If only I knew that

#

Thanks

distant sun
#
    const val CREATE_TABLE: String = """
        CREATE TABLE IF NOT EXISTS `COOLDOWNS` (
            id INTEGER PRIMARY KEY,
            uuid TEXT NOT NULL,
            name TEXT NOT NULL,
            duration INTEGER NOT NULL,
            start_timestamp INTEGER NOT NULL
        );
    """```
Would the spacing cause any problems when running the query?
quiet depot
#

don't think so

prisma wave
#

shouldn't do, but maybe use .trimIndent() anyway

#

Also explicit type specification, ew

hot hull
#

Big ew

distant sun
#

trimIndent doesn't work because it is a const

prisma wave
#

Oh yeah

#

Dw about it then

#

It shouldn't matter

distant sun
#

alright

hot hull
#

Wait what's proper naming convention for tables?
testTable or test_table

quiet depot
#

there aren't any conventions

#

iirc

hot hull
#

I see

quiet depot
#

yep there aren't any official conventions

prisma wave
#

Probably snake case though

distant sun
#

^

hot hull
#

Ssssssssss

distant sun
frail glade
#

Bad DNS?

distant sun
#

wdym?

frail glade
#

Do an nslookup using 8.8.8.8

quiet depot
distant sun
#

And what does that mean 🤣

quiet depot
#

no clue

#

waffle it might be something todo with dns

#

I tried switching the server's name servers from 127.0.0.53 to cloudflare, but that stopped me from pinging anything

frail glade
#

No no no

quiet depot
#

just for some context, this issue started occurring after an outage

frail glade
#

nslookup google.com 8.8.8.8

#

It forces a DNS test using that specific DNS

#

if it works, your current DNS is broken and just needs to be reset / adjusted.

quiet depot
#

didn't work

frail glade
#

What happens if you just ping 8.8.8.8

quiet depot
frail glade
#

Hmm

quiet depot
#

I honestly think it might still be the host

frail glade
#

What does a traceroute to 1.1.1.1 do?

quiet depot
#

does this command ever stop?

frail glade
#

Yes

quiet depot
#

I've never used traceroute before

frail glade
#

It gets all the jumps between you and the IP to see where the problem might lie.

#

It's gotta be DNS

#

Cause you can ping it and tracert it but not resolve it via dns

distant sun
#

And what does that mean 😵

frail glade
#

Means try changing your DNS servers

quiet depot
#

I tried that, wasn't able to ping anything

distant sun
#

šŸ˜”

frail glade
#

You didn't mess with IP tables did you?

distant sun
#

I did not

frail glade
#

Idk if Vesta does weird stuff. Ensure port 53 works.

distant sun
#

The server worked just fine and ~15h ago or smth that issue happend.

frail glade
#

cat /etc/NetworkManager/NetworkManager.conf

#

Does that exist?

frail glade
#

Alrighty and the other?

distant sun
#
root@vesta:~# cat /etc/NetworkManager/NetworkManager.conf
cat: /etc/NetworkManager/NetworkManager.conf: No such file or directory```
frail glade
#

cat /etc/network/interfaces

#

Does that have anything like you address in it?

distant sun
#
# ifupdown has been replaced by netplan(5) on this system.  See
# /etc/netplan for current configuration.
# To re-enable ifupdown on this system, you can run:
#    sudo apt install ifupdown```
frail glade
#

I probably should've asked. What OS and version?

distant sun
#

Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-128-generic x86_64)

frail glade
#

Have you tried rebooting the resolver?

distant sun
#

idk what that means but I have restarted it with reboot

frail glade
#

cat /run/systemd/resolve/stub-resolv.conf

distant sun
frail glade
#

I forgot why the 127 is supposed to be there but what happens if you change that to 1.1.1.1?

frigid badge
#

don’t change that file

frail glade
#

127 I think is to resolve local stuff or to tell it to go to the parent

distant sun
#

hey lime

frigid badge
#

run systemd-resolve —status

#

and if you want to change it change /etc/resolv.conf

distant sun
#

see pms

static zealot
#

sooo... I'm trying to set up github pages and I created a repo as they said called: blitzgamer-88.github.io then I chose the github desktop path and I selected as they said "Set up in Desktop" but when I open it, github desktop tells me this: https://i.imgur.com/PKvYqd4.png

#

I didn't create any files

#

can someone maybe enlighten me to what step I've missed?

old wyvern
#

The directory you are cloning to is not empty

#

also

#

No need to clone an empty Repo

#

then again, havent used the github desktop client yet do idk how that has you handle stuff

#

so

static zealot
#

well that's what they said. I just clicked Set up in Desktop and it opened github dekstop to that page

old wyvern
#

šŸ¤·ā€ā™‚ļø

static zealot
#

I'm just following this https://pages.github.com

old wyvern
#

like does it specify a path to clone to?

static zealot
#

ye

#

wait

#

what

#

the

quiet depot
#

ew

static zealot
#

I changed the path

#

and it works

#

lmao

#

maybe I had something there

quiet depot
#

there you go

static zealot
#

I have that as well

#

lmao

quiet depot
#

go ahead and remove gh desktop and download that

static zealot
#

but I pressed set up in dekstop

#

and it opened github desktop

hot hull
#

Piggy, what's the tree list stuff

#

Send me the file if you on pc

quiet depot