#dev-general
1 messages ยท Page 399 of 1
whats diff between ++ and +
um what is this?
discord being bad
- is for numbers, ++ is for strings
what da
?
Hell^Co
??
what is ^C
context?
๐ฅฒ yes
๐
๐คฆ
you need to use ctrl shift C or ctrl + insert usually
ok im back now :)
how dare you interrupt our lovely conversation ๐ค
What the
hello
how do you remember the imports
Is possible to use a guava Splitter in multiple places and storing it as a constant or smth?
uh yes?
?
I just learnt something, if it seems like it's gonna complex to make, it is going to be complex to make. e.g. a shop system smh
yeah a good rule of thumb is if something looks complex, it is complex
also if it does not look complex, it is still complex
everything is complex ๐ฅฒ
if it looks complex, haskell makes it simple
haskell makes it be simple
what even is this overrated haskell
overrated????
Ya
well it's certainly not overrated
seems like it is, everyones talking about it for no reason
why does it feel so good to trigger this chat in such a easy way by informing them that haskell is overrated?
ive actually never used haskell myself and dont tend to either
not a fan personally
im just saying it for free xp ๐
you dont get xp here L
u do lol
dont judge until youve tried it
โน๏ธ
does anyone know what it's called when you um don't define something and re-use it?
repeating yourself?
the coding term
DRY?
you used to scream at me for doing it wrong bm
Might be DRY
lemme fix bm's non compliment DRY code
huh
its in your project 
intellij should warn you for that
I fixed it
then it must have been you
oop
but i make perfect code
apparently not
i swear i didn't add it doe
Check the git blame
wheres ur highlighting lol
definitely you lmao
didn't show name must be you
you because bm hasnt touched the project in atleast over a month ๐ฅฒ
oh
mine has my icon
how
I wish mine said UntouchedOdin0
why is else, for, and and config the only being highlighted
change ur git config then lol
yes?
git config --global user.name yourname
git config --global user.email youremail
^
i thought it was automatic
where would it get those details from lol
Try StringUtil#replaceEach from apache
the internet??
It uses your computer user and a generated email address by default
buildtools seems to override it sometimes
wtf
happened to me a few years ago too
maybe if you run buildtools before overriding the defaults something funky happens
The untouched guy?
my email is op
it said to put my username i thought they meant my email
๐ฅฒ ๐ฅฒ ๐ฅฒ ๐ฅฒ
its on github LOL
I remember back in my computer science class, everybody would have the name and email of our teacher set as git defaults
i'm just laughing tbh
i got the noti from the server lmfao
LOL
where
updates channel ๐ฅฒ
i done a fuck up LOLLLLLLLLL
i don't see a problem with bm's server
classic
lmaoo
i'm not proud
hehe
time to go on 1000 spam sites /s
please dont
the email you set for git will be visible to everyone anyway
crypto mining emails incoming ๐
/s
what's /s ?
sarcastic
oh
If you don't want that, you can use your personal github noreply email address
you can find it in your gh settings
would i be correct in assuming a gpg key without a password is a bad idea
even if the pc isn't shared
like
elaborate
i just remembered commit signing exists
but you have to unlock the key every time you make a commit afaik
if you use a proper key store no
hmm
yeah
whats your key
eh no you shouldn't
oh hey invalid-email-address
it says UntouchedOdin0
what would be the best way to disable a specific MOB server wide?
I think that's the best option for unix
i think it does
i set it up on another pc a while ago and it worked fine, but i had to input the password every time
which was annoying
libsecret definitely caches it
you need to build that from source I think
and then set it in the git config
well ideally i wouldn't have to input it at all -- Im the only one that uses this machine so i dont think there's any real risk in not requiring any password input
obviously it's inherently more insecure if i got a virus or something but im pretty sure that won't happen
well still, there's a reason we encrypt things
There's tools that store it in plain text
Some of which should be preinstalled
entering a passphrase once per login session or even per user shouldn't be that inconvenient
it's not massively inconvenient but it's still annoying
having to copy paste some long password from a file just to commit kinda breaks any train of thought
ik it's petty but i'd rather accept the risks and save myself a bit of time
Ideally you know your passphrase
I'm not speaking about your gh password in case that's unclear
Nah I know what you mean
Well I've got a fairly short password that I remember to login but iirc there are length constraints on a gpg key
as I said, with libsecret I think you can enter it once per user
And there I know of no such restriction
what
Why is it searching for this in fucking paper??
It just searches it in every repo until it finds it
lmao yeah that's how it always works lol
yea but it has the repo which contains that lol
It errors out on the first repo it searches in
try clean building
??
Beautiful 100% Kotlin
yes @hot hull ! Explain
@hot hull How dare you?!!?
@hot hull explain now or || wheres the sword blood emoji thing ||
he was very up front about it
lmao
seems like i was misinformed, it's a soft warning. should be fine, right?
password1
best password for root
i tried seeing for myself but theres no token key
is toor

haskellr0x123
discord makes it really hard to get your user token
to prevent selfbotting
oh i reloaded the page and got token
hmm
selfbotting?
lol
bots but for ur user
automating a user account that isn't a bot account
iirc the token usually gets erased from browser storage as soon as you're authenticated
yea
it appeared for like 1 second
you can't put it in like, jda, for example, right? lol
yea because the only reason you'd need it is for selfbotting or someone to steal your account
not in recent versions
On the desktop app you can Ctrl shift i, then refresh (Ctrl r) and it shows up lmao
thats what i did ;-;
wait then how do token loggers work
oh so it does lol
wdym
because the token logger would have to be active
while discord is authenticating
and no one just randomly restarts discord out of nowhere
if your gonna log someones token, need the logger on the pc in the first place and they need to run it
by then u may as well just give them a rat
if you've got access to someone's pc they have bigger things to worry about than their discord account though
in an exe
sure
Lmfao
ok
how are you converting
what is graal?
some tools might just keep the jar in the exe somewhere though
quite a lot of things
a VM primarily
but it has a tool that can convert java into native programs too
that don't need a JVM installed to run
what about launch4j?
I mean that's the cheapest option, it just makes sense, bundle the jar as resource, extract to tmp and run the jvm lol
ResourcesExtract is a small utility that scans dll/ocx/exe files and extract all resources (bitmaps, icons, cursors, AVI movies, HTML files, and more...) stored in them into the folder that you specify.
wait
with graal
would i be able to make java 11 programs with the user having java 11?
From what I understand (yes my fucking weeks of research on this stupid topic) that's just a refresh token with is only valid for a few seconds
it's for standalone things
oh good point actually
The user wouldnt need java 11 if compiled to native I assume? They probably package some jvm implementation with it
Actually no, the refresh token would likely be on an httponly cookie
im pretty sure it does some compilation to native code - it can generate C headers for libraries for example
ah I assumed they were just packaging stuff in and including a jvm in to execute it or something
Yea your way makes more sense
It does not run on the Java VM, but includes necessary components like memory management, thread scheduling, and so on from a different runtime system, called โSubstrate VMโ.
ah
Native Image supports JVM-based languages, e.g., Java, Scala, Clojure, Kotlin. The resulting image can, optionally, execute dynamic languages like JavaScript, Ruby, R or Python. Polyglot embeddings can also be compiled ahead-of-time
๐
๐ณ
seems to support WASM as well
๐ฎ
lmao
d;java.util.List
public interface List
extends Collection<E>```
List has 2 super interfaces, 1 extensions, 10 implementing classes, and 25 methods.
An ordered collection (also known as a sequence ). The user of this interface has precise control over where in the list each element is inserted. The user can access elements by their integer index (position in the list), and search for elements in the list.
Unlike sets, lists typically allow duplicate elements. More formally, lists typically allow pairs of elements e1 and e2 such that e1.equals(e2), and they typically allow multiple null elements if they allow null elements at all. It is not inconceivable that someone might wish to implement a list that prohibits duplicates, by throwing runtime exceptions when the user attempts to insert them, but we expect this usage to be rare.
The List interface places additional stipulations, beyond those specified in the Collection interface, on the contracts of the iterator, add, remove, equals, and hashCode methods. Declarations for other inherited methods are also...
This description has been shortened as it was too long.
java.util lol
ez
Ruined by IDEs I see ๐
GraalVM native image sounds fun until you try to compile something non trivial
IntStream limit(longย maxSize)
throws IllegalArgumentException```
Returns a stream consisting of the elements of this stream, truncated to be no longer than maxSize in length.
the new stream
IllegalArgumentException - if maxSize is negative
maxSize - the number of elements the stream should be limited to
i guess limit
Ah
obviously not a great benchmark but there does seem to be quite a significant speed difference
Whats that?
graal native-image
Interesting
converts a java program into native
Is there any free benchmark program thing?
wdym?
A tool to test stuff like you did
Oh this isn't anything special
Just the unix time command
If you want actually meaningful results JMH is good I think
ok this is interesting
JMH?
yeah it's a java benchmarking library
Try not using randoms bm
what then?
okay
So both are consistent
Hmm, interesting
random.longs().summaryStatistics() ๐
static IntStream range(intย startInclusive, intย endExclusive)```
Returns a sequential ordered IntStream from startInclusive (inclusive) to endExclusive (exclusive) by an incremental step of 1.
a sequential IntStream for the range of int elements
startInclusive - the (inclusive) initial value
endExclusive - the exclusive upper bound
hmm
or maybe the average
both are pretty fast
bigger numbers seem to actually make java faster
๐ฎ
so i can only assume this isn't a reliable benchmark + JVM optimisations
interessente
What are you doing?
playing around with native-image a bit
Contemplating life choices
specifically, yes
public class Test {
public static void main(String[] args) {
var res = IntStream.range(-1_000_000, 1_000_000)
.filter(i -> i % 2 == 0)
.average()
.getAsDouble();
System.out.println("Whatever this is supposed to be : " + res);
}
}
since you said something about reliable benchmarks
well they added it for a reason lol
that's the code im using, just testing time ./test vs time java Test
10
how did you compile the former?
javac Test.java && native-image Test
This might prompt the programmer to inspect the rest of the method for code that would be impacted by such a change. (Then again, it might not.)
I love that
So the thing about graal is that it usually doesn't increase the execution time, or at least it's not meant for that
You could examine that with a more elaborate benchmark, but where the native image should be better is start up time and memory footprint
yeah
i dont think there was a noticable difference in startup time at least
Measuring memory usage might be interesting
How have you tested start up time?
I didn't lol
there's a slightly noticeable difference, maybe 100ms but not much else
let me add a print before the calculations
yeah hasn't made much difference
Is there anyone that doest feel sad when listening to this: https://www.youtube.com/watch?v=2rn-vMbFglI I guess if you hadnt watched the movie but i feel like most people have?
Provided to YouTube by Universal Music Group
Married Life ยท Michael Giacchino
Up
โ 2009 Walt Disney Records
Released on: 2009-01-01
Composer Lyricist: Michael Giacchino
Auto-generated by YouTube.
Sir, this is #dev-general
Can anyone elaborate, on how the fuck, do you really hide implementation details
and don't throw abstract classes and interfaces at me
Examples on the internet suck.
This fits more than anything here
Do you mean like marking methods final?
You hide implementation details with interfaces....
or that
The whole idea of an interface is that you shape a class and what it does, but how it's done is "up to implementation"
Yeah i mean but i still have to write the stuff that gets done in the class implementing the interface
Stuff is still visible, stuff is still public
Not necessarily
it's only visible if you know the implementation
look at bukkit as an example
the majority of people don't care how CraftPlayer works
some people don't even know it exists
all of the nms stuff has been abstracted out to the point where you don't need it for most common things
Ok I might have misunderstood the first time i read about this stuff
got really discouraged when i saw stuff didn't work like i tought it should work
I might come back later when i stop feeling like an impostor
(don't think that's ever going to happen tho)
After rewriting a few classes thinking I messed up the connection.... seems the service was just down xD
I don't know exactly what you're planning on doing but I believe what you're looking for is exactly an exclusive, separate API jar (see Bukkit, see LuckPerms API) and then an implementation for it (see CraftBukkit, see LuckPerms)
The question you made is a bit too generic and by extension so are the answers, but if you ask about exactly what you want to do we might be able to help better.
Hikari
Could be Mysql, could be sqlite
etc
Hikari as well
no worries about that
Let's say i want to expose the methods to call in order to connect to the database
do queries
and stuff
only the necessary stuff for an user
sus af
๐ณ
The user shouldn't care on the hikari settings
or where do i create the jdbc url
If i'm not mistaken
I mean please correct me
i barely get any feedback when i write code
I mean i don't get feedback
I'll just google some more hours
Depends what db you wanna use. For SQLite it's jdbc:sqlite:file
That sounds fine, So you might have a SQLSettings interface and each DB implementation would have their own settings class implementing the SQLSettings? Something like that?
Your just asking a general design question correct?
a general design question indeed
I think i'm having trouble getting stuff to be as abstract as possible
When write code i feel like there's barely any modularity
I really enjoy using GenMyModel(or any tool like it) you can design out your class structure without having to worry about actual code and then you can get an idea for what your system will look like. Or a pen and paper honestly
I just signed up
Great, i really like it, mostly since its free.. Im sure theres a better one out there but i havent found it yet
Anyone know why getTo() location on PlayerPortalEvent is located nearby the nether portal instead of the actual nether portal frame location ?
wat
is that any better*
much better
because bukkit is stupid? idk tbh, never used that event 
that usually is the answer to any questionable things ๐
Okay :/ any idea how to search for the closest nether portal?
Hello
hi
Hi its here if we have question about coding plugin ???
HELLO
mr trump i would just like to say that seeing your name makes my day
Hello (++)"Brister ".("Mitten"++)$""
hello donald trum
I am glad to be present
p
How is your day
q
my day was EXCELLENT thank you mr trump what about you
my day was EXTRODINAIRE
GREAT
iconic
@prisma wave Q# circlejerk when
it's functional
but i dont get it
your favorite
i dont think i have enough braincells to even ironically circlejerk it
lmao
the idea of bits being both on and off at some point hurts my brain
until u observe it

just imagine it as ThreadLocalRandom.current().nextBoolean() and boom you're done
lmao
ah
Sir do I need to send you to COPPA https://www.ftc.gov/enforcement/rules/rulemaking-regulatory-reform-proceedings/childrens-online-privacy-protection-rule
๐ค
Circlejerk is a nono word!
lmao
beef jerky
Yes he did
uh
what on earth
tier 1 ๐ฅฒ
no its a JMMORPGSSDUSBEFTA
its simple
we are a Japanese Massively Multilayer Online Role Playing Game Solid State Drive Universal Serial Bus European Free Trade Association
aye
did you know if you take around 40 of these you can fly? https://observer.com/wp-content/uploads/sites/2/2021/01/best-sleeping-pills-featured-photo.jpg?quality=80
Hi tronald dump
Hello James
James.. Gosling?
๐ฅฒ
I want to make america great again honestly. I think the programming language "Java" can make this possible.
I need your guidance
america peaked when lisp was invented
Yes, I will make America great again
America#makeGreat()
lisp 2
I will bring back Lisp again!
(makeGreat america)
what the fuck is your name
TrumpIsPresidentException
๐ฅฒ
ยฏ_(ใ)_/ยฏ
Was*
Donald.getBrain() -> nullpointer
Sleepy Joe saves america (Colorized) gone sexual
Wakanda is real (!)
False!
trump was never president
Fake news!
never happened
Fakes news!
Trump is president still!
Can u open your wall ? i'm out
same
Never!
๐ญ
The wall stays!
Not even a condom will pass!
Plsss i'm not mexican !
Mexican condoms are the best tho
Wall v2 will offer 100% protection! Not even condoms can do that!!
sadge
xD
No!
the Macarena affect
lmao
macarena
How much wall!
macaroni effect
More wall!
yes
Lot wall?!
U know, you're not the presisent
Yes Lot More Wall!
Canada need to build a wall
Big Wall!
Impressive Wall!
GREAT Wall!
BESTEREST WALL!
Hey!
BESTESTEST
man bri'ain should build a wall in the atlantic
Build wall in wall in wall in wall!
inside your wall ?
inside wall!
Sounds cool
Hello
What the -
@serene cave You here ?
@restive cipher who are you! Identify yourself!
oh god
Donald left the channel
Biden is Fake!
Joe biden brother
@hillary clinton when?
STOP the count
STOP the Count!
no
@restive cipher you are fake!
HAHA i'm a king
He is the wakanda's king ๐
I just need help for my white house plugin
No!
@serene cave
It's my white house!
ill make it for you for $1000000000 :)
I have only 2 bucks
Yeahh u're in prison
No u!
No u
no twitter for donald anymore ๐
But discord yet
no u!
oh my god it's joe biden
Do u want a photo kitty ?
yeah coz you made it bad once
what the hell has happened to help chat
Haha ! I'm the best present of all time !
๐ฅฒ
It's not HelpChat anymore!
It's PoliticalChat!
You face is a fake news
No your face is fake news!
Fired !
I fired you first!
That's fake !
this is... interesting
Leave me alone ! I have date with Hillary tmrw !
#dev-general btw
๐
Not configuration help
Omg you aren't funny guys...
No!
Stop it!
You are grossing me out!
Do u want a picture ?
joe will bang hillary ๐
sad :c
Nasa found me !
old couple montage!
it is a sad day for dkim ๐
no it's real :/
See your smile bro, u same as ...
hey step joeee
a microwave !
what are you doiiinnnn
Fake news !
russia best
Yeah i'm with the Russian president to play in the garden
vote him out!
Yes!
joe biden is sad now.
You'll pay for it !
oh no
NOoooooooooooo
๐
You cant
It's comming!
Privet
Hi stupid americans
oh my god
Ohhh my friend !
Shut up or gulag
I have your vodka!
๐คฃ
mr putin blyat is here
I don't care I have your country
I have your little bear !
No!
Tsar Bomba
My country is most powered than yours
If I attack you It wouldn't be anymore
nvm I'm gonna be the MicroOndeDeFurynos again
no
Who u are ?
He's fake!
Yes! And I own white house!
It's my house
No!
I buy it
I will call my wife!
Who she is ?
Sir(s), this is #dev-general
We got the orange man and the cripple
Eyyyy James
Sry James, I have to know if they are real
You are turump
Yes you are
And you FAT
Like a big big cat
Eyyyy Ameriga
not bidet but biden
Ameriga is mine!
I come back, Hillary made me cookies
@dusk holly No!
Eyyyy Ameriga who is your president
Obama no!
hello
No!
ok so obama is another alt of donald trump
Go away!
that was so bait
No you are not
In your dream
My old buddy joe is president now loser
EYYYYY AMERIGA Who is your president ?
me
ME!
oh my god
Oh my president*
Me ?
Me ?
Me
Yes everyone love me
Me!
EYYYY ME
Me!
I'm the best president of USA
No I am!
I'm not even american
Donald i'll put you out of your walls !
How can I get admin in this Discord server
How can I get admin in this Discord server
How can I get admin in this Discord server
How can I get admin in this Discord server
Pay me $50
I pay 100$
I pay 150$
I pay how much you want
I pay 1000$
this is too far
- white house
I pay 2000$ + White House x2
|| when's george bush joining ||
*4
I pay 1100$ + Hillary
Wowowo!
2x Hillary
Pe do!
3 Hillary !
wtf
1000 Hillary and Obama
No I am better!
donald is useless
|| bush did 9/11 ||
Donald Joe Barack and 10 hillary
No you are useless!
joe is swag
Joe is bad!
Thx my dear friend
Biden is Bidet!
||You are gonna be censored||
oh shit you're right now ||redacted|| make sense
I did not do 9/11
I did not do 9/11
liar
no !
I did not do the 9/11
why is haskell tooling such a pain
pโซโซโซโซโซโซโซโซโซโซโซโซeโซโซโซโซโซโซdโซโซโซโซโซโซโซo
I love USA, that's why i'll kick every yellow people caused bad view of New York ! I'll start with Donald Trump !
vsc just doesn't work
false!
0!
0!
Hey guys, I'll invite all of u to come in the white house to make a big party with my little dog
Mine !
No!
I have to go, I have garden party tmrw with Obama and Putin !
No !
We aren't supposed to talk about Putin Joe
๐ณ
This is a secret, nobody heared me
shady business going down in washington and moscow
Now I've got to kill at least 3 witnesses
aaaaaa
I will kill you first!
Obamacare > Trumpcare
Trumpcare > Obamacare
Obamacare = garbage
You are garbage
No u!
Worst president ever
No u!
help me out joe
No u!
Noooo this is a trap, he spy all of us !
No u!
No u!
no we will call putin later
notice the way half of these messages are "no u" and have an exclamation mark at the end
No u!
You !
U!
you are illiterate!
No u!
Obama (who is me) is very educated
No me!
who are you
Who vote for me ?
I did not
remence
no!
ok thank you for clearing that up
anytime mr ex president
what did you say
i am still the president and i deserve more respect
false
this chat is a cesspit
I gonna hack your house Trump
lol this is actually brilliant
thx
trump is the best
I gonna hack you Joe!
The OG you might say
Did u vote for me ?
Never vote for Joe!
I'll hack your wife !
Did you vote for me ?
My wife is a programmer. She will hack you!
Thank you Joe Biden
I turn away from this chat for like 4 hours to add a very useless feature to Krypton and I come back to 3 kids on alt accounts pretending to be POTUS/former POTUSes
I am not a kid
I'm the president, i'll exterminate her !
no you arent!
Hillary Clinton
I'll
no, donald is the president!
^
who's alt accounts are these
lmfao
I have to know now lol
wrong
we are no closer to finding the true Identity of Mr trump

one of them is 99.9999% pulses
if not kaliber, it's funnycube
pulse
idk
I will hack the white house!