#dev-general
1 messages · Page 281 of 1
True
Hope the previous dev than mine coding for someone's project doesn't piss off 
Few days ago I literally changed every formatting from b) approach to my a) approach
Why the fuck do I have to keep logging into github on IJ??
2fa but no token provided?
I have to keep adding my token, it doesn't find any repos
What is this bullshit
The way 2018.3 had github stuff was so much better
huh
thats weird
Works fine for me
Nothing works for me
lol
I don't understand, I'm legit owner and it doesn't work
idk why I even bothered blurring but mk
and take a scerenshot
Okay fixed it holy shit
Single line if statements are a terrible mistake
I hate the anti external emoji policy we have around here
🧑🚀
I'm limited to built-ins and HelpChat emojis
don't boosters get externals
Here are the current role perks:
https://paste.helpch.at/cixexuheza.sql
also, isn't it now spin time?
??
nope
maybe
=flex
Here are some guild wide stats for your eyeballs. :eyes:

16,008,798
18,130
37,773
117,464
62,425
62,738
3,661,023+
8,438
Mar 29 2016
=flex
Here are some guild wide stats for your eyeballs. :eyes:

16,008,798
18,130
37,773
117,465
62,425
62,738
3,661,025+
8,438
Mar 29 2016
Time to see how LPs api works
Get the prefix of the highest rank a player has on multiple tracks and join them by comma
consults luckperms.net for answers
wdym the highest rank a player has on multiple tracks? you just mean how far up a track a player is? like their current rank on the track?
I'm getting confused between highest rank and current rank lol
Current
We have multiple tracks such as staff and donors
I want to get the current rank's prefix on each track and join them by a comma
just get a shallow list of their groups, filter them by those on a track, get the prefix of each of them, and join them?
you can get groups with User#getInheritedGroups
Aight
make sure the flag RESOLVE_INHERITANCE is not set though, as otherwise it'll return a deep list of groups (including inherited groups)
sure ya did
Nice
Is that a param?
no but QueryOptions is
d;luckperms querypotions
public interface QueryOptions```
QueryOptions has 12 methods.
Represents the parameters for a lookup query.
void setAI(boolean ai)```
Sets whether an entity will have AI. The entity will be completely unable to move if it has no AI.
ai - whether the mob will have AI or not.
querypotions
you didn't know?
QueryOptions.nonContextual(EnumSet.complementaryOf(EnumSet.of(Flag.RESOLVE_INHERITANCE))) is what I use lol
What happen if you set it to false lol
o i need to add the trash button on non paginations too
they have literally 0 AI
they cannot move, target, anything
Interesting
gaby enabling/disabling ai is a vanilla feature
Wont that be a better way to freeze them rather than cancel move event?
you can do it via a command
Lol ok
entitydata
Probably /execute
ah
or at least it used to be called entitydata
or in /summon
yea that too
I think they redid the commands so it's not called entitydata anymore
but it's still possible
The fuck is a complementary set
/summon pig 1 0 {"entitydata":[{"ai": false}]}?
d;enumset#complementaryof
public static <E extends Enum<E>> EnumSet<E> complementOf(EnumSet s)
throws NullPointerException```
Creates an enum set with the same element type as the specified enum set, initially containing all the elements of this type that are not contained in the specified set.
s - the enum set from whose complement to initialize this enum set
The complement of the specified set in this set
NullPointerException - if s is null
Interesting
is enumset an lp class?
it creates an enum set that contains all the elements not in the specified enum set
gaby that's not the right thing
no it's not
Fight
typo
typo
o
ty bb
that came from my
, that's why I made a typo lol
yw
as a patron of Luck's, you'd think I'd know this inside out by now
Lol
or a sponsor, I should say
luck is interested in docdex 
yeah I saw
Nike
it will be useful to have DocDex in the LuckPerms Discord
And any other discord
and docdex in spigot discord soon™️ #694661573125472256 message
You convinced md4_head?
didn't take much convincing
i made a suggestion post for the discord on the forums and he was interested
is that a discord bot list
i'm gonna wait for 1.0.0 release
which is gonna be really soon because it's basically ready for prod
Coolio
I just need to do some more testing on byte strings to see if I want them or not
top.gg is a pain in the fucking ass to get on to
it takes about a month to get reviewed

And your bot is not docdex :>
no, every bot takes that long
You dont need to use that
you don't need to pester them to vote
if they like the bot, they vote for it
if they don't, they don't
leave the bot to make it's own future
Just put the vote link somewhere on the help message and thats it
independence for Discord bots lol
word of mouth is working somewhat so far
why is MEE6 still a top bot lol
d;info
How many users is HC?
Pig, please add search bar to javadocs smh
is it easy to add JavaDoc sites to it for things like self-hosting?
Cuz 20000 is quite a lot
8.4k@prisma wave
also, imagine turning that intent on
what intent
Guild_members probably
you don't use gateway intents?
not that i'm aware of
you using JDA 4?
i think so
if you do, not using them is deprecated
all the old constructors are deprecated, and they've been replaced with the new static method builders
this is how i create the instance
Sounds familiar
bm intellectualsites also uses the bot
and I think they have a similar count to us
so that accounts for over half of the members
and idk about the rest
Oh cool
and yes bardy, using 4.2.0
Is guice worth to learn?
yeah it gets to guice eventually
Spring for what?
the bot you goose
you can write Discord bots with Spring
For what purpose lol bb
bardy everything spring can do I can do
AbstractFactoryBeanProviderFactoryAPI
watch me do it better
Link to your config? xD
gaby my usage of guice is highly atypical
there's honestly no point of even looking at my code till you can use the framework to a high degree on your own
Ok
if you're looking to use it in ploogins
mrdienns has a guide on spigot
which is where I started
if you manage to make a system that's faster and easier to use than Spring Boot with the portability and extensibility that it has, then I'll give you £100 lol
Ding
that's a main goal of rpf
import elara/ding
startDingApplication()
Not sure spring is "portable"
It adds like 50MB to a jar and doesn't work particularly well in some contexts
Eg plugins
yeah for Minecraft plugins it's not good
for Discord bots though
web applications as well
With that logic every java program is as portable as spring
bardy in all honesty rpf will never be a full competitor to spring
spring is just too big
not what it's designed for either
Looks interesting @quiet depot
it generates code at runtime
Yeah
also, how did you get a hold of a YourKit license for this?
mad connections bardy
Runtime means when a class is used?
when the application is running
Ahh
Dagger is a similar library that actually does compile to pure DI
what = good free profiler?
Used a lot in android because it's faster
bardy i don't think they care about the project size
any old os project could probably do
what's wrong with Intellij profiler?
Wait does intellij even have one?
I can't remember
does IntelliJ even have a profiler? yeah idk
so like there's two things you can do at runtime when you need to access shit gaby.
- reflection - slow
- code generation - faster
Neat, took a min to renew my license 
code generation is literally creating classes and shit out of thin air that calls ur code
ASM 😍
Interesting
f off bbg
a bit like compile time is the time when things are compiled
A Small Mitten?
and programming time is the time when heads are smashed into desks
It's a bytecode manipulation library
Yeah
ASM is ridiculous
It's also what elara is gonna use for the compiler
ASM allows you to manipulate bytecode using Java code
you can literally change anything
like if you thought reflection was powerful, reflection has nothing on ASM
the downside is that it's much more difficult
javassist makes it really easy
ASM is used in OpenJDK apparently, and also the Groovy and Kotlin compilers, and Gradle
There's no Goassist though 😔
Not sure, I think it can modify
does it use a lot of native C or what?
Probably not
Bytecode is just a binary file
It has a specification
So writing it programmatically isn't that difficult
you only just noticed? 
yes
whenever
whenever doesn't really suit me i'm afraid, would rather you just tell me
do it
=multi spin
does asm use the instrumentation api?
ah
it probably does have some native hooks then, because some class related things are native
o like what?
class loading has a native component
I was under the impression it just wrote bytes
3x multi 
hang on bm i'll link u

Something went wrong when I setup dual booting I think
The updates have been failing for months now
So I guess I shouldn't be surprised
my dual boot has been working perfectly surprisingly
it's especially surprising because I used some free tool i found on the internet to literally clone windows onto a smaller ssd
On the bright side I can just boot into Linux, back stuff up, and reinstall windows
I tried using CloneZilla to do that
wouldn't boot when old SSD was plugged in first of all, but worked fine when it wasn't
was even more sketch because the target ssd was smaller
then it eventually just failed to boot regardless
my current M.2 is 500 GB and my old one is 240 GB and it still didn't work properly lol
I think this is what I used https://www.easeus.com/disk-copy/index.htm
EaseUS Disk Copy is a hard drive copy/clone software for PC and Server. Hard drive disk copy, disk image, disk clone, disk backup and recovery software.
idk it was one of the easeus products
yeah I tried that
actually no, I had Todo Backup
it wanted me to pay some license fee though and I was like
basically
a forum weapon
your welcome
from spiderman far from home or something
websites i have a more likely chance of taking over (wait does discord count as a website?):
me twitter: https://twitter.com/mcgilm342
me twitch: https://www.twitch.tv/mcgilm342
me soundcloud: https://soundcloud.com/user-674477963
me second channel: https://www.you...
first one wanted me to pay to migrate
but the second one had the same feature, but on the free ver
so used that
this is why u use linux!!!!!
Yes!!
I personally encountered the issue of natives when I was trying to reliably remove classes from the classpath a while back - i.e. not waiting for the gc
it's not possible if you're interested, or maybe it's just extremely difficult
Does ASM handle the actual classloading though?
as long as it's not cheap man's Arch then yeah lol
And if it did, couldn't it just use a ClassLoader rather than native implementations
a.k.a the distro that tries to turn Arch Linux into a fixed release distro
a.k.a Manjaro
the distro that makes lazy bastards and incompetent Linux users able to pretend like they can use Arch 🙂
i tried installing arch once
I just cba to go through hours of work for a distro that isn't much better
Nice
first time I installed Arch, I was on a call with my friend, and he'd have to tell me to read the docs every 30 seconds
incompetent linux users? 🤨
imagine being one of those
kind of an oxymoron lol
a.k.a script kiddies yeah
lol
Linux users are scientifically proven to have the biggest brains
nothing wrong with ubuntu bardy
those kids who, as Tom Scott said, "the type who's downloaded a few dodgy scripts off the internet, and now thinks they're a really good hacker because of it"
I associate Ubuntu with Gnome but apart from that it's fine
ya know bardy
Ok
we can't really hate on ubuntu
I was reading the other day, and they said something along the lines of that linux wouldn't be anywhere near as popular as it is today, without ubuntu
Should I spend an hour or two moving all of my installed games onto another drive, or just reinstall them all
Yeah Ubuntu is the gateway distro
Lol

🥲
and JavaScript
Don't go hating on js
you know, thinking about programming languages, I said this the other day, is it funny how at least like 80% of the world's most popular programming languages are those that you can just botch together and make work without that much effort?
JavaScript, Python, PHP, etc.
the lazy man's languages
java can be included in that list
You can do that with most languages
^
You can write shit code or nice code in any language
Pretty much
Apart from maybe Rust
Nope
no but what I'm saying is that languages like JS, Python and PHP are basically designed to be written poorly
bardy u aware of the legend known as jon skeet?
I would disagree
no clue
PHP made some shitty design decisions so it's definitely the worst in that list
well fun fact, you've both probably used code from him in the past
proceeds to ignore Piggy's instructions and use Google
JS and Python might have their flaws but they're not bad languages
jon skeet has the most stackoverflow answers
oh yeah, rings a bell now
I think I recognise the name now
🥲
I wonder what programmers did before Stack Overflow lol
Be smart
have u tried learning these languages urself?
oh you bet
Assuming you have previous programming knowledge
🤨
I could pick up the basics of JS in less than a day
JS definitely made the good decision of using let 🙂

let bad
wow
let just bad
bm wanna translate some ocaml to java for me?
Haskell is basically what happens when you try to make a programming language based around maths
actually i'm not sure you can
That's the point
I have a feeling it's just a c hook in ocalm
Fun fact the lambda calculus is older than Turing machines
good old C
I haven't used C much
I need to know if there's anything special about that jaro winkler implementation, or if its speed is purely due to the fact it's made in c
before any translation happens
Gh mobile is sooo bad
C good language
You could try making some Java bindings
C conventions bad though
🙄
C uses allman
it freezes my phone for me, cant even load the file 
Idk
C devs coding style is bad
actually, I think it uses K&R variant 2 (Linux kernel)
But it works for most of the JVM
don't think its meant to
__$ome_va__riable_e
yeah it's a bit weird
K&R OTBS good
not even gonna try and convince you otherwise
If sx couldn't then I've got no chance
you think allman good?
Yes
Ew
Although I usually forget to use it lol
depends
like dis? ```java
if (statement)
{
// stuff
}
else
{
// other stuff
}
They say that if you forget something it is probably useless
because das ugly
I have K&R as my default on Intellij but if I can remember to switch then Allman style
Certain languages also only permit K&R which is slightly sad
And by certain languages I mean Go
good you mean
if(statement) {
// Code
}else {
// Code
}
Py is the best
spacing ew
ew yapps
Yaml coding style
if (statement) {
// Code
} else {
// Code
}
proper spacing
I can't stand those who don't put a space after if
Go has its conventions baked into the language though, so it makes sense that Allman doesn't compile
GOod
also, anyone who does this:```java
if (statement)
// stuff on new line
i honestly hate that if closing bracket is on the same line as else
you're mental
😂😂
wtf
What kind of psicho are you kalibear
you're one of those I see
You got the several people typing
Depends what I have but lets say its 1 line I usually will do
if(statement) {method();}
else {return;}
wtf whyd that just edit my message
what is that
what the fuck yapps
nah, single-line yeet the braces
that's just no
🥶
Wtf
if (statement) {
System.out.println("hello") ;}
else if (otherStatement) {
System.out.println("bye") ;}```
my favourite format
no cap
that's cursed
just put all your code on a single line, problem solved 🙂
You should be shot
y r u booting into windows
i dont even have a usb
games
🙂
I second this notion
what games
You should as well Bardy
This is scary
man you a crazy fool
My Linux install is on the same drive
oof
Does it mean partition?
The way discord is at the moment. I wouldn't even jokingly say that on here. Might get the FBI on your ass LMFAO
I don't think there's anything that wouldn't run on Linux but windows is just more convient
Great...
I should be shot as well Yapp, would make things so much easier
should've installed it on a separate drive bm
yeah Windows is more convenient
but I want fast boot up times for both 😔
then get an ssd for both
Just get another pc dumbass
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I'm not made of money smh
or are you?
I thought 1 TB SSD would be fine
you can pick up an SSD for less than £100 these days
the drive is the second cheapest component these days
my 500 GB M.2 SATA SSD cost me like £75
Ik but
ewwwwww
get a job
m.2sata
This doesn't fix my current issue 🥲
and yes, I got a SATA M.2
wtf bardy
I have a job
because I dumb
lol
very dumb
m.2 yum
m.2 yum
no idea why I didn't get an NVMe
yeah
why would anyone want m.2 sata and why has it been brough to the market
I didn't actually read and so I didn't actually really know it was SATA until I plugged it in the hyper M.2 slot and it didn't work lol
i dont get it
they're useful in cheap laptops kaliber
yeah, laptops
but why has it been brought to desktop 😔
lol WD as well
they're the same thing kaliber
like u can take ur m.2 drive out of ur laptop and stick it in ur pc
although it'll probably be the wrong size
Western Digital are a very reputable and well-established brand
laptops usually use the small ones
FUCK OF F windows
not in the ssd world bardy
lol
maybe not in the SSD world
ssd is samsung's category
BM, quick hint btw, download windows on your phone, then boot from that
fun fact actually, I'm getting a new dog today

Is that even possible?
just randomly switching the topic
bm android or ios?
That's cool, I'm getting depression daily
Android
lucky
Android should be possible
if it's Android, you can pretty much do anything
O
do u use kde connect?
i wish I could use it on ios

imagine buying an iPhone
ios bad
imagine being one of those
Damn so many smart people here today
Ima try a chkdsk and if that fails I'll try the android shit
i saw someone put ubuntu on an iphone the other day
Yeah that's definitely possible
looks like a useless surface pro
I mean, Apple do naively believe that the iPad will somehow replace the laptop and the PC, but that's another story lol
For the average user it probably could
Most people just want a web browser and MS Word
and google
true
but I might not have google soon 😦

chkdsk ETA 1:34:29 🥲
also, if you think you've seen web design btw, think again
i've seen loads of sites like, and better than this
I wanna see what web developers are capable of
looks like Google AU better than Google UK
this isn't like the apple one but I always thought it was cool https://www.strml.net/
make sure to turn darkreader off, or run in incognito
sure, its cool, but its awkward for scroling
imagine using dark reader
a.k.a the extension that works like 3% of the time and does just about nothing good
works for me
Dark Background and Light Text better
works for me
¯_(ツ)_/¯
for me it doesn't work that well on quite a few sites
or it didn't shall I say
The global multiplier has ran out and has been reset!
that is amazing
it is isn't it
@stuck harbor you don't technically want a website like that
at least as a portfolio
because it's a nuisance to get information from
well yeah, but it's still cool as an example of skillz
it's flashy
skillz
yep
I think the ratio of programmers to designers in this server is like 1000:1 lol
lol
which is an actual style, apparently
mm very nice
I need a portfolio site design if someone wanna design a sketch
Nah
python dev O_o
ewwwwwwwwww
kidding
python is good for some things
as C is good for some things
and rust is good for ALL things
all things work in rust
First time in such a long days that IJ crashed on me 
im trying to clone a paid anticheat's repository (since its os) but its slowly killing my pc..... it's not too bad right now
does gradle have separate debug and release modes?
run and debug?
idk what debug compilation is 🤷
well its compiling with less optimizations
so it compiles quicker
I'm just wondering if such a thing exists in gradle
whats this mean?
well, read it
what is "input files"
...
😅
iwanio most optimizations happen at runtime via the JIT
I'm assuming files to be built?
so no
longest time I've ever seen
lol jesus
actually
I've seen longer in maven
iirc yesterday i got like 3 minutes because it took gradle 2 and a half minutes to startup
yeah first runs take a while
mhm
lots of stuff to download
what anticheat is it
uh
just link pls
ok
I was a tester for the anticheat and now since its paid im not tester anymore 😢
Rust 🙃
o
https://github.com/Elikill58/Negativity/blob/master/src/com/elikill58/negativity/spigot/SpigotNegativity.java why is everyone allergic to good code 😦
rip
lol
I tried to do a system restore sorta thing and it said something about the F drive being corrupt
Not sure which that is tho lol
ah that would be the drive mapped to F
yeah, I just don't remember which it is lol
/s
I have a shared ntfs partition on my hard drive that I use on Linux and windows so I think it's that
would highly recommend going out and buying an ssd just for windows
before trying to fix this
Yeah I might do that
Gonna run out of sata cables soon lol
Ugh I've got to root my phone to make it into a bootable usb
I've only had it like a year I don't really wanna void the warranty yet
o
no
yes
where di you guys learn to code ?
interwebs
and of course Stack Overflow
Ohh
So if I am a newbie where should I start ?
?learn-java
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
The fuckers in here peer pressured me into learning
LMAO
https://www.spigotmc.org/wiki/spigot-plugin-development/ or here but people will get angry at you if you ask stupid questions
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
i was called shitass when i tried to code when i was at the modded discords
its way more toxic over there
to newbies lmfao
d;info
@jovial warren ez 30k
lmao
2 ez
i got into gold for the usaco 🥲
(Default: jdk)
!!!
frosty ur issue is low priority
andre has had an open issue for 18 days
gotta do that first
lmao
well yes
but
do you really want to touch my code?
actually you touched papi 3 and survived so go for it
although with papi 3 you were interacting with a specially designed api
eh we'll see
frosty r u on windows
can u run something for me real quick, i don't want to switch to windows
run what 👀
Can't argue with that 
yes
best thing i've ever made in paint
indeed
Yep mhm DocDex was made in some C++ or C# shit
docdex is made in java using jda
🥓
You suck Pulse
LOL
LMFAO
we all suck
💀
That's a fucking scam
i'm learning so much about similarity algorithms and data structures through docdex
hell i might just make google next
its a lot of math
piggybaby? lmao
docdex knows it but cant tell u
just check maven efe
efe
or github
yeah that's honestly what I do lol
Why effort yourself checking github, ew
problem with using + tho is sometimes it'll select a beta version
so u still have to check every now and then
just + instead of the specific version yea
bruh
Imagine reading chat
Time to play around with java 15 for the first time
perhaps
is it smarter to eat bacon when it comes off the stove with all the oil or eat it after it dries
yes
fresh Pulse
is it smarter to be dumb than to be smarter
no
no
is it smarter to be dumb than to be Frosty
yes
How would I have a clean modular design without using actual modules
yes
yes
rope it is
i'm not the person to ask cuz i don't know good practices for jda
i only learnt today from bardy that ur meant to use gateway intents
Yo link?
i wanna disgusie it as some music bot or shit
and crash my friends server
lmao
Litebans discord integration
It doesn't close the connection so if you start spamming the command the server will eventually die
lmao
Don't lmao me
lmao
lmao
damn u really are big brain frosty
smol bran flake
if u dont close the connection that u means u dont have to reopen the connection, ez speed gains 
mhm
By parsing the message content accordingly or if you don't care where it is in the message getMentionedUsers/Members
How can i convert an ArrayList to an Object[]?
Object[] toArray()```
Returns an array containing all of the elements in this collection. If this collection makes any guarantees as to what order its elements are returned by its iterator, this method must return the elements in the same order. The returned array's runtime component type is Object.
The returned array will be "safe" in that no references to it are maintained by this collection. (In other words, this method must allocate a new array even if this collection is backed by an array). The caller is thus free to modify the returned array.
an array, whose runtime component type is Object, containing all of the elements in this collection
@winged mica ^
ok

