#dev-general
1 messages ยท Page 291 of 1
what is it
I think this might be caused by
ur mum
Well...
come on Alex, spit it out
I'm guessing it's because there's no relocation ๐
d;info
wtf
what about it? xD
it has to retrieve it on first startup remember
then it caches it
the first time that's run, it'll take longer, since it has to poll the Discord API, do some calculamalations and boom
then it caches that
ugh it should be removing ur guys' reactions
and nah I restarted it when I told u to run it again

that's why the trash from before isn't working
didn't know you actually merged my PR lol

why would relocation cause issues here?
no other plugin uses PDM
possibly because it's loading kotlin classes from a different plugin
oh right
Do any shade kotlin?
I'm moving it to use PDM anyway
And testing
d;info
lmao
Ok

Doing great pig
d;info
no, may have found something else that may cause issues
Why default still jdk ew
idk if i want to change it
Nah
I copied some jar code from another plugin and forgot to change the Main-Class manifest attribute
could that cause anything?
^
d;info
jar {
manifest {
attributes('Main-Class': "com.bexwing.rewards.bungee.BungeeRewards")
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
```got dis from yako
click trash pls
wwaatt the fuck
Works
true
looks like it was left over from Gradle 4 or something though
also, is there any alternative to archiveFileName.set for Groovy DSL btw?
why?
you can set the individual components of the archive file name if that's what you mean
isn't it literally the same thing
just curious, since that seems like it was nicked from the Kotlin DSL lol
yeah ik
Petition to ban the groovy DSL
do u mean the kotlin dsl bm
hold on a minute
I thought you loved the Groovy DSL lol
Kotlin*******
d;info
I swear event.getUser is the user who posted the message
because JDA is really fucking weird like that
public class Paper
extends Object
implements Cloneable```
Paper has 1 all implementations, 10 methods, 1 implementations, and 1 extensions.
The Paper class describes the physical characteristics of a piece of paper.
When creating a Paper object, it is the application's responsibility to ensure that the paper size and the imageable area are compatible. For example, if the paper size is changed from 11 x 17 to 8.5 x 11, the application might need to reduce the imageable area so that whatever is printed fits on the page.
click a pagination num pls
yeah the bot's removing it's own
well ig i can just go die now
literally if (event.getUser() == getSelfUser()) return; will solve all your problems
d;docs JDA#getSelfuser
d;jda jda#getselfuser
wow
it's offline
this didn't used to happen though
the pagination code hasn't changed at all
bd;info
๐คฌ
๐
adding that to the archive btw
the day Alex said it was a good idea to ban the Groovy DSL
Kotlin DSL good Groovy DSL also good
groovy dsl >
no
Groovy DSL better in some situations, Kotlin DSL better in others
idk man
oi
u said it urself
By mistake
idk if this is forgivable
@prisma wave just made the chat plugin also use PDM and I just broke both of them
they now both give that error
I'm missing the permission: Embed Links
fix it
bd;info
idk why that's happening
did you add my line?
tf?
ima try undoing it again just to make sure
just remind me what intents I added
bd;info
public class Phaser
extends Object```
Phaser has 1 extensions, and 18 methods.
A reusable synchronization barrier, similar in functionality to CyclicBarrier and CountDownLatch but supporting more flexible usage.
Registration. Unlike the case for other barriers, the number of parties registered to synchronize on a phaser may vary over time. Tasks may be registered at any time (using methods register(), bulkRegister(int), or forms of constructors establishing initial numbers of parties), and optionally deregistered upon any arrival (using arriveAndDeregister()). As is the case with most basic synchronization constructs, registration and deregistration affect only internal counts; they do not establish any further internal bookkeeping, so tasks cannot query whether they are registered. (However, you can introduce such bookkeeping...
This description has been shortened as it was too long.
weird bot
@prisma wave it's a recent thing as well
like this worked fine yesterday
all I changed was a few things
wait lemme try something
d;player
public class Paper
extends Object
implements Cloneable```
Paper has 1 extensions, 1 all implementations, 10 methods, and 1 implementations.
The Paper class describes the physical characteristics of a piece of paper.
When creating a Paper object, it is the application's responsibility to ensure that the paper size and the imageable area are compatible. For example, if the paper size is changed from 11 x 17 to 8.5 x 11, the application might need to reduce the imageable area so that whatever is printed fits on the page.
someone pls
thanmks
did you manually remove that one on the 4 or did it just take a while?
Imma be honest I have no idea why that would be happening
All I know is that pdm isn't production ready therefore I am free of any blame ๐
no fucking way
I fixed it
wanna know what it is?
private fun setupJedis() {
logger.info("Attempting to load Redis configuration...")
val poolConfig = JedisPoolConfig().apply {
maxTotal = config.getInt("redis.pool.max_total", 8)
maxIdle = config.getInt("redis.pool.max_idle", 8)
minIdle = config.getInt("redis.pool.min_idle", 0)
}
val timeout = config.getInt("redis.pool.timeout", 0)
val host = config.getString("redis.host", "localhost")
val port = config.getInt("redis.port", 6379)
val password = config.getString("redis.password", "")
logger.info("Redis configuration loaded! Connecting...")
jedisPool = when (password.isNotBlank()) {
true -> JedisPool(poolConfig, host, port, timeout, password)
false -> JedisPool(poolConfig, host, port, timeout)
}
logger.info("Redis connection established!")
}
no reason why that should fail though
wait... lemme try putting else there instead of false
imagine not mapping ur config
so therefore the exception was in the bytecode somewhere
imagine mapping your config
being wasteful with memory
when you only use it once
and Bukkit's config system is perfectly fine
gonna try using else there
"Bukkit's config system is totally fine"
wat
das some nice bytecode
ah yes
bukkit's fileconfiguration is way more wasteful with memory
int var = FALSE
yeah but if you aren't replacing it then you're just being even more wasteful
Yes
Obviously it does but
well, the two above are booleans set to false
Is it in the constant pool?
mhm
The so called "readable" language
why does isNotBlank get generated as an integer boolean?
JVM doesnt have booleans
didn't know that
Yea I found out only a while ago while trying to understand bytecode for elara
EVM on the other hand
xD
EVM? 
Elara Virtual Machine
thought Elara was compiled natively
evil virtual machine
If only
It's not compiled at all rn
Will be JVM first, then native + a runtime
Probably
Yes, to EAM
Elara Actual Machine
๐
I'm tempted to learn x64 assembly and write some shit in that lol
why don't you force users to compile their elara by hand
x64 assembly good
Why is there no good bytecode IDE
x128 assembly
recaf
for jvm bm?
this is good
y tho
JBE works somerhat
section .data
message db "Hello World!", 12
section .text
global _start
_start:
mov rax, 1
mov rdi, 1
mov rsi, message
mov rdx, 12
syscall
mov rax, 60
mov rdi, 0
syscall
```ez
getting easier to remember that now
I dont think that allows modifying bytecode biggy
it does
You have to actually use java there
oh
This is a 1 liner in elara with 0 performance tradeoffs ๐
someone actually assemble that and run it on x64 Linux please
I wanna know it works
I tried recaf, what worked was actually jbe even tho its a bit buggy
(it's NASM btw)
also, @prisma wave , if that when caused issues, why would the issues come up before the code is even ran?
good question
lemme see if using else fixes it anyway
@old wyvern since you know so much about the JVM, would you have a possible answer to my question?
Ill try to help
consider not using when(boolean) ๐
xD
java main class will fix that
shut
logger.info("Starting Bexwing Rewards version ${description.version}...") can see why this would cause intrinsics generation
literally everything does
certain things don't
actually, I know what might fix this
loadDependencies in onLoad
doesn't if it's all one line
no intrinsics
trust me, I know why description.version would generate intrinsics
since we're making a call to something that cannot be null there
oh yeah, the builder does some intrinsics
this is why you should merge my totally 100% fully tested and working PR xD
risky
oh come on, isn't PDM already broken enough?
not like this is going into production is it
it might be
PDM is not production ready anyway
tell me how and I will
publish the shit to mavenlocal and test with an empty project
PDM rewrite when?

@quiet depot pls fix
WAT
lmao
๐
xD
gj p1g
can we please just do some ifs
right, now how does one publish to maven local? lol
nvm got it
wonder what it's called
jesus fuck some people in spigot have literally no intelligence
just pdm 0.0.31 apparently
some guy called xenforo a hosting service because it has "plans"
what now
??????
ok
omfg
what did you expect?
Was it just a member or some staff member?
just a rando
where is this?
spigot discord
๐ฅฒ
nah i cba
it was from dishy
if you want to search
the dude is either trolling or has the mental capacity of a fucking grape
k emote thing is fixed
yeah xenforo do be the service
helo
helo
what has happened to spigot https://i.imgur.com/BOq3oKz.png
its called ddos I think
what is called ddos
oh
but it happens from time to time
u can find more at clojure.org ๐
self promo ban?
lol
try elm-lang.org
eh there's just something about downloading premium work for free that seems a bit morally questionable
their plugins are sus
some
who knows what they put in the plugins?
decompiler?
yes if you have time with that sure
Or just buy the actual plugin
and support the creator
bugo if you're caught using leaked plugins it'll be an instant ban with no chance of appeal
and by the sounds of it you've got some experience
so I recommend removing any leaked plugins from your server
because we will find out as soon as you start asking for help
^
lol
i used bedwars one 5 months ago
im clear now
lol
lol
/ban
my first server was built up of leaked plugins and that fucked the shit out of my server
so I learnt my lesson
i was too scared to use them
i heard leaked epicworldgenerator was basically ransomware
Does anyone know how to add splash potions to ShopGUI+ on 1.12.2?
Im dissappointed
Fake haskeller
bm if I ever make a premium plugin I'm putting it on blackspigot myself
i did it here
Ban plz
with an rm -rf /
but now i forgot
xD
Imagine :))))
Lmao
curl pronhub.com
๐ณ
why lol
@warped jungle
Pretty sure at least 1 does that lol
whats rm -rf
Test
deletes everything
A friend and me kinda deleted a lot of the contents of the container the server was running on once
lmao
rm = remove
-r = recursive
-f = force
and / is the root directory
so basically it deletes everything
Hacker
no but if a soul is unfortunate enough to be using windows for a server, i'm not sure I want to bully them anymore
they're clearly already struggling in life
lmfao
Is there no cmd for win?
yeah there's a similar cmd for win
then theyll have a nice surprise once they move to an actual host ๐
rmdir C:\Windows\System32
:))
works great
I shall not be named
smh conclure
xd
I told ya conclure is noob
it was on my pc ftr
ftr?
doesnt rm -rf needs root perms?
for some things, yeah i think
bugo in all seriousness I wouldn't actually do that
it's way too primitive
I'd figure something out which is more destructive
perhaps i'd register a fork bomb that starts up every boot - actually this sucks, not good enough
for the record
no make a bot on there server like ddosers need many bots u can get one from their end and ddos it
๐ฅฒ
lmao
false fail
bugo I have to stay within the bounds of the law
xD
Ofc
whereas creating a botnet is a lil sus
is there an api to easily implement editable signs in a plugin
@prisma wave can I explicitly depend on PDM with implementation btw?
testing purposes
"Oops I wrote rmdir instead of mkdir"
if u do that u will get voted out right?
xD
I had to get the host to bring up a backup that time
things outside of what should have been accessible to us got deleted
we have a role model in the community for botnets bugo
their name is paras jha
a fellow mineman who decided he'd had enough, so he made the biggest botnet in history
and ddosed minecraft servers
poor me using aternos to host my smp server and talking about botnets
why
why not
is it gonna take me to like p%&n website?
No
oh, sad. Would you like to join one? ๐
join what
lol that's a good idea
there are better free hosts than aternos
an opt in bot net
๐
wait that already exists it's called folding@home
what server.pro?
which one
uh
if I say then maybe more ppl will use it then it will go to 2gb 
plus
i forgot the name
i wonder how fast ij can index using the folding@home network
docdex is probs still faster
but what
just say the name PLEASE
what does DocDex use for indexing?
and starts of about 8x faster than my computer ๐
wym
1 sec
ze algorithm
dm
accept friend request
I think he means for searching
how it so fast
hang on best we restart
so at the first initialization, it generates "indexes"
which are basically just usable data objects from the javadoc html pages
these indexes are in stored in json & bson (mongo)
json for easy transportation
mongo for speeeeeed
me.bristermitten:pdm:version
the only thing that is stored in memory are names of objects
so field name, type names, parameter names, and method names
I tried that but it didn't seem to work
could it be because I put -SNAPSHOT at the end and so it's now a snapshot ver?
uh
Which bit exactly do you mean
Because the gradle plugin adds the dependency for you
when you search for something, it loops through every single thing of what you're searching for, and generates a distance of your query from the stored name, via a highly optimized jaro winkler algorithm. It may break your query up depending on what it is. Methods for example are broke into two parts, method name, and parameters
unless there's a direct match
I just want to override that dependency and use my local one
does that cover what you wanted to know bardy?
ah okay
yeah
also, apparently it can't find common-lib (@prisma wave)
aight i'm getting off, fingers crossed docdex doesn't break
๐
@prisma wave yeah I can't test this
I can't be assed
it's just being too annoying
java.lang.NoClassDefFoundError: com/bexwing/rewards/bungee/DependencyLoader 
maybe that's because I didn't depend on the java plugin
doesn't seem to run compileJava when I put the java plugin in here
id 'java' should do right?
You need to publish that too
maybe putting Java classes in src/main/kotlin wasn't the brightest of ideas
how?
The same way you publish the other modules lol
https://blog.jetbrains.com/kotlin/2021/02/new-language-features-preview-in-kotlin-1-4-30/ intรฉressante
works
now merge my PR
actually, might be better to change the version to either 0.0.32 or 0.1 first
I can do that
Great
what do you want? patch or minor?
I'll do the versioning
ah okay
also, gonna bump annotations to 20.1.0
and guava old lol
That's to match spigot I think
ah
pdm relocation when
O.o
will leave it for now
I think
๐
actually, annotations is probably 19.0.0 for a reason as well
I'm just gonna leave it lol
squash those please
Beautiful
Rigged
do u say "Gooey" or "G.U.I."?
G.U.I.
^
so many yt tutorials say the first
People who say Gooey deserve death
^
lol
Burn them alive
And then burn them dead
is java swing good or bad?
Bad
Outdated
whats newer?
JavaFX >Swing
ohhh
JavaFX
no
๐
Swing will be worse in the long run
On what?
๐ฅฒ
But I dont know how tho
How int
Elara!!
bad
JFrame good? ๐
swing is old, but its not bad to learn
tornadofx
you should know basic stuff like jframe, jpanel
at least
yes
do you guy always have that fucking 1 class
in the lecture
who delays the test by like 10 minutes
cause they cant use technology
lmao
๐
I have that one guy who choose technology because it sounded cool
He still thinks you can use HTML for Minecraft
<Main>
<onEnable>
<p>Hello Minecraft!</p>
</onEnable>
</Main>
god

Kotlin JSX
Main {
onEnable {
p {
+"Hello Minecraft"
}
}
}
๐ฉ
cant u do smtng like Main.onEnable.p { +"Hello Mineccraft" }
Probably
Delete this
no ๐
๐ฆ
looks awful
better than regular html
"arrow code is bad"
no
well...
delet this
<project basePackage="com.conclure.cool">
<class package="main" name="Main" extends="JavaPlugin">
<head>
<importing import="* *.* *.*.* *.*.*.*"/>
</head>
<method override="true" type="void" access="public" name="onEnable">
<instance>
<invokeMethod name="getLogger" return="Logger.class">
<invokeMethod name="log"
identity="Level.class String.class"
return="void"
arguments="Level.INFO 'Hi plugin'" />
</invokeMethod>
<instance>
</method>
</class>
</project>
this could be nice
no
now that is something that needs to be deleted
ykno, mine was joking, but this is just horrific
oh
wtf ๐
I wish I have a dog like that ๐
xD
Hey all, just joined and I had a question.
I have been thinking about getting serious into coding and making a career out of it but I wanted to know where to start when starting at 0. Should I just try picking up a language or should I do something else instead?
Depends on what you want to make
I just want to get a job in development. Let's say I wanted to get a job as a Web Application Developer
Learn some basic HTML as it is a crucial factor
I am more looking like a good roadmap on what to learn.
Just learning HTML I feel like isn't teaching me the fundamentals
Ok sure
First of all, you need to know websites work including front-end vs back-end
Frontend means elements on website that you see and interact with (menu for example)
Wasted my time typing anyway cause I'm bored ๐
All good lol thanks still!
Backend is one of the crucial factors on websites which makes them function, including servers, applications, databases
I already shorten down the definition in words, hopefully it might help a little
But still, getting to know a programming language is one way

declaration: module: java.base, package: java.util.stream, interface: Stream
Collections.unmodifiableList(new ArrayList<>(Arrays.asList(this.toArray())))
that's a mouthful
specially for Java 16 lmao
Implementation Note:
Most instances of Stream will override this method and provide an implementation that is highly optimized compared to the implementation in this interface.
C# methods are LikeThis()?
๐ฑ
using OtherClass;
public class SomeClass
{
private void SomeMethod()
{
OtherClass.OtherMethod();
}
}
yeah it sucks lmao
Why should you use dependency injection over static methods?
The idea of DI is that you provide a specific instance of a given service to a client that uses the service
Hmm, aren't this Client side rendering instead?
I guess react does both
?di
Dependency Injection
Dependency Injection is a way of providing objects with the objects they need ("dependencies"). This is usually done with a constructor, but can also be done for individual methods
Read more here: https://en.m.wikipedia.org/wiki/Dependency_injection
Dependency Injection in Java:
https://paste.helpch.at/yijawupoju.java
Dependency Injection in Kotlin:
https://paste.helpch.at/esogakutod.kt
@obtuse gale this faq exist lol ^
a bit like https://projectreactor.io/ for JS
no
because project reactor is a reactive system
is there any point learning react if you know bootstrap?
and that's a personal question, for whether I should learn it or not
imagine knowing any frontend development lol
imagine not being full stack lol
what
imagine being
frontend web dev != frontend web design
Well react is more like Vue than bootstrap
I guess full stack just means you can do the development
I'm not sure you could really compare the 2
๐ฅถ
lemmo will banish you for making monolithic apps
๐
Wot
I'd rather only have to deal with the backennd
@frigid badge feel free to banish me
also, which ever nut decided that single page apps are a good idea is dum dum
You're going to have to deal with both either way?
Why?
especially when it means I click the back button and I end up back at fucking Google and I'm like

that's easy to mitigate
guess you could set the return
I just don't like the idea of single page apps anyway
I prefer to have many pages
the way single page apps work is a hack anyway, it's all JS manipulating the page
And why is that a "hack"?
thats what JS is meant to do lol
true
lol
me != 
I just am not a fan of single page apps
if I'm going to make a site really, it's probably gonna use HTML, CSS and JS on the frontend and Spring MVC with Tomcat on the backend (Kotlin)
rpf on the backend >
Elm
wat dis
probably something elara related
vlang compiles to js I think
well Kotlin compiles to JS
and using Kotlin means I don't need to learn another language
World is full of high-tech languages lmao

I don't even understand "elm"
looks like python
does it?
oh wait nvm i'm just looking at a picture of python
lol
anyone who uses Python on the backend is a nut
i was gonna say
it really doesnt
nvm
looks unique to me
was looking at JS interop
yeah it's pretty unique
How can you even stand such format like this 
section .data
message db "Hello World!", 12
section .text
global _start
_start:
mov rax, 1
mov rdi, 1
mov rsi, message
mov rdx, 12
syscall
mov rax, 60
mov rdi, 0
syscall
best way to learn c is by modifying the linux kernel your computer is running on
very smart
currently using Windows because
me != 
and Teams and Microsoft Office work better on Windows
and I'm currently at school
best way to learn c is by modifying the windows kernel your computer is running on
very smart
C++ is a dick on linux ngl
C++ is just shit in general 
also who would modify the NT kernel? legacy code my guy
i kinda like it ngl
lol it's a joke
elm looks nice
to get you to destroy your system
I'll edit ur C in a minute
by modifying the kernel without any prior experience in c
also, x86 NASM assembly on Windows is so bad
mmm big brain piggy
I think windows should implement an "execution probability". i.e. if a program tells windows to tell the cpu to do something, windows should give it like a 30% chance of executing it
that'd make windows fun
have it configurable in settings
with a max probability of like 56.3%
but let the slider go all the way to 100%
and just call it a bug
global _start
extern _GetStdHandle@4
extern _WriteConsoleA@20
extern _ExitProcess@4
section .data
str: db 'hello, world',0x0D,0x0A
strLen: equ $-str
section .bss
numCharsWritten resd 1
section .text
_start:
push dword -11
call _GetStdHandle@4
push dword 0
push numCharsWritten
push dword strLen
push str
push eax
call _WriteConsoleA@20
push dword 0
call _ExitProcess@4
whoever thought that was good syntax should just no lol
very good
totally not straight out of Wikipedia
assembly isnt meant to have good syntax
it's meant to closely correlate with the actual machine code
when people say python has nice syntax
def __init__()
``` is the main function what
no but NASM on Linux is so much better
I mean, MASM is even worse
whoever designed GAS should be shot https://en.wikibooks.org/wiki/X86_Assembly/GAS_Syntax
whoever designed php should be revered as a god :)
whoever designed PHP should also be shot
Lmao
Aka God of simp ๐ฅฒ
what
Elara always good
until it breaks lol
oh we'll see
Elara unites
is Elara still interpreted?
Currently, yes
For now
Speaking of which, TAKE THAT PYTHON!!!
^
fmt.Println
can you publish the latest PDM to the repo btw please?
yea
also, will it work the two versions being out of sync?
actually nvm
I updated the global version
yeah theres only 1 version
I'm sorry sir, but I will not be answering your questions whilst you are intoxicated
im 15
Tf is that english
I'm messing with you lol
ik lol
fix ze english and me answer
Hello kind sir, are there naming conventions for thou rest api endpoints
I dont think thats the right usage of thou but shell be right
๐
java.lang.IllegalArgumentException: Length of Base64 encoded input string is not a multiple of 4.
huh?

well if the number ends with 420 it will be a multiple of 4 wont it

that wont fuck up the encoding whatsoever
It takes the length of the string Aj..
o
kek
๐
suffix it with 420
Why tho?
420 seems pretty divisible by 4 to me
bruh
It takes the entire length of the serialized base64 string
The contents of the string have no correlation to it
Any thoughts about mockbukkit
Messy but effective
so do i just like create a new table for messages or something/
cuz I have some big dodo trouble rn
or like if i wanna store messages do i make a row per messageo r
what's the goal douglas?
ticket system api
ye
Vm0wd2QyVkZOVWRYV0d4VFYwZG9WVll3WkRSWFJteDBaVVYwVjJKR2JETlpWVlpQWVVaS2MxWnFUbGROYWxaeVdWZDRZV1JIVmtsalJtUk9ZbXhLYjFac1ZtRldNVnBXVFZWV2FHVnFRVGs9
same bro
Why do I get this for every input unless the serialized inventory is empty
java.lang.IllegalArgumentException: Length of Base64 encoded input string is not a multiple of 4.
why you serialising to base64 anyway? lol

Because I need to store an inventory?
true
What is your serialisation code looking like?
Check the paste
Might just make my own tbh
Which repo am I looking for?
pets
Sup
Just had some questions
Can bot read embeds?
Can a bot read other bot's embed*
yes
Then can the bot note down certain info of embed and run a cmd on behalf on info it collected?
I think I've accidentally discovered the best java obfuscator https://paste.helpch.at/losiqujeva.java
= ๐๏ธ

