#dev-general
1 messages · Page 262 of 1
Had a battle with the godly errors of the lands of haskell
let e =
if d >= b
then "true"
else "false"
``` this can be replaced with `show (d >= b)` I believe
@quiet depot Still no update on the shirt :C
Hacktoberfest?
yea
Yea they didn't deliver to everyone last time as well right?
aj you joining
bruh I want my shirt :sad:
Sue them
Yes
My brain mooshy
hello
Goddamn it Yugi
😂
Google is a marvelous thing
ew lists
I hate arrays
Honestly generics are the one thing that lets java down in competitive coding
Makes it hard to compete with c++
true
tf have i done wrong here
the collections are unusable without drastically slowing everything down
all my homies hate java generics
f#
Did they not explain dot products in the question?
I'm too dumb to understand that
error FS0001: The type 'float' does not match the type 'int'
what
why
im adding 2 floats
????/
lol
xD
what??????????????
oh fuck off
No :c
Pandas
confuse
hold on
those are budget made in england pandas
mag(vec) is the sqrt(elems squared) no?
oh
multiplied
oh for fucks sake
the question gives you the magnitudes
i hate this
u good?
i was trying to work out the magnitudes from the data
kill me
i hate the long questions
feelsbadman frosty
u could try contacting them
that’s what I did last time
you’ll want to contact kotis
although they’ll probs just to say to contact dhl
now another thing to note is
whatever postage service dhl gave it to when it reached europe may simply not provide tracking
It should atleast say it reached europe should it not?
no reason for it to
Wait what?
the question gave you the magnitudes, not the vectors
if you do another ill be able to join that one
[a1 a2 .... an] . [b1 b2 ... bn] = a1*b1 + a2*b2 +....+an*bn
😏
clash of code later?
im in maths class rn
ah
ill join next
python isnt allowed right?
alright
took 4 min to figure out I forgot a fockin -
Yea waiting for g♭
g flat?
he ded
yes
lol
im not
i jkust
BRUH
i was debugging for like 5 minutes just to find the function needed to start with a lowercase
i hate this
no
oh you invoked it wrong?
yeah im not 100% sure on the problem
welp
but it needed String.concat instead of String.Concat
well yea
the annoying thing is, sometimes they're capitalized because of C# interop
and sometimes they're not
xD
so you have to either remember, check the docs, or guess
fun
got enough for right now 
@obtuse gale
couming
ok
kk
im like 5-10 numbers off each time 🤔
What did you do lol
just changed the isLeapYear algorithm a bit
with the exception of centennial years (years that are multiples of 100) that aren’t multiples of 400.
if it's a multiple of 100, and a multiple of 400 then it's a leap year
otherwise check % 4 == 0
why even check if its a multiple of 100 then
because if it's a multiple of 100 but NOT a multiple of 400
then it's not a leap year
oh
1700 isn't a leap year
you need to check the 100 first
what
because it's an exception
why
wdym
it says the description of a leap year at the top
let isLeapYear y = if y % 100 = 0 then y % 400 = 0 else y % 4 = 0
dont think i can get any smaller
literally cant get this working lol
it % 4 == 0 || (it % 100 == 0 && it % 400 != 0)
this is what I had, whats wrong with this
where it is the year number obv
wdym check the 100 first
doest hat change anything tho since its in an or
u can
yeah i jsut realised lol
i did that
fuck
but the logic can be shorter too
close
ok ive gotta go
I didnt see the time
idk what was wrong wiht mine
with the exception of centennial years (years that are multiples of 100) that aren’t multiples of 400.
@obtuse galey % 100 == 0 && y % 400 == 0
dont look at my code pls lol
you know i literally sent the algorithm right
yes
^
but i cant read your foreign language
rly
the logic is the important bit
o
it needs to be ==
it % 100 == 0 && it % 400 == 0 || it % 4 == 0 && it % 100 != 0 it would have to be something like this then aj
i could've shaved 7 characters off mine lol
weak
ok new game
There was a shorter way but for some reason it kept giving answer in the range of correct+-1
it's equivalent to kotlin val r = { int(Console.In.ReadLine()) } but much prettier
weird
(to-1f)*0.2425 - (from)*0.2425
did aj and scol leave?
yeah i need to focus on my class
ay
yours is much cleaner than mine lol
welp
i keep forgetting you can subtract 'A'
tbf scala seems very close to kotlin
Its pass by name
let getI c = max (int c - int 'A') 0
line |> Seq.sumBy getI |> printfn "%d"
``` could've been 2 lines lol
that explains why I got so fucking high numbs
lol
whenever there are chars and numbers it's always either alphabet or ascii values
lmao
Player p = (Player)Bukkit.getOfflinePlayer(args[2]);
would that work?
or nah?
getOfflinePlayer <-?
im back
hi back, I'm dad
@distant sun oh btw I think private clashes increases xp too actually
I didnt do any public yet today but it went up from a few private rounds
Why are you so insistent on trying to get a Player object for an offline player lol
OfflinePlayer#getPlayer
What does that do if the players offline?
null
d;method OfflinePlayer#getPlayer
Hence you should do a check before if it's online
ah
d;paper OfflinePlayer#getPlayer
@Nullable
Player getPlayer()```
Gets a Player object that this represents, if there is one If the player is online, this will return that player. Otherwise, it will return null.
Online player
what is this sentence
Yea the paragraph seems to end after the if there is one but whoever wrote it forgot to add a .
Yeah it doesn't add newlines I don't think
There should be a break between "one" and "If"
mhm
(@quiet depot )
ensuring that p becomes \n\n and br becomes \n should be easy right?
can do
please refer to that specific example so I can reproduce it
I think I'll just make a general issue for html -> markdown and mention that in there
- wondering why any of my debugs werent working
- tried about 8 different things and recompile each time, clean build, restart IJ
- suddenly realise i was copying a jar from a different folder
pain
thx for issues btw johnny
also why does compiling small changes for hotswapping take a century
sometimes
is there a way to delegate the compilation to gradle?
It's been 10 minutes and it's still going
Wtf is this
wiki on how to make papi placeholders?
🤣
otherwise you're getting the random FP language website
go #development
yeah bm aint that helpful
ikr
lol
Please provide a source for your claim
[Request] Create a plugin that readds ai for Giants that were added in 18w50a and removed in 19w03a. The plugin must support (at least) 1.14.4, 1.15.2, and 1.16.4
That... was never a thing, was it?
Giants never had AI
semen
cum
I wonder why they removed the ai kek
I wonder why they did all that crap to then revert it lol
Rumor has it that Mojang uses GitHub to git Minecraft's code 
Someone get employed by github thank you very much
just hack mojangs github
Yesyes
😮
and thats where we come in and leak it 🥲
I was joking please support me 🥲
No 😊
D:
@ocean quartz I need to register an enum if I want to use it as a command param right?
Yeah, haven't worked on that in a while
kk
kek
burn it
not mine lmao. from #794429922454142986
getting used back to US Keyboard is a bit hard
$15 to work with obfuscated code kek
xD
Even if you give me 100$, no thanks 
frosty u would never deny money
When it comes to obfuscated code I would
I've tried to work with some like 2 days ago. tried to edit an existing plugin so I wouldn't have to make mine
after 2 minutes I decided to make my own
nah it was just a global staff chat with a command
so just /staffchat MESSAGE
ezz
I'll make that from scratch for 15$ 👀
yeye just different types
Trying to figure out the best storage solution for boosters
Probably just Map<UUID, Set<Booster>>
I don’t like guavas stuff like Table, Bimap and Multimap
They’re slower in my experience
But at the cost of removing certain awkwardness and being richer
Doubt it makes much difference with how little data I have
¯_(ツ)_/¯
does anyone know about a plugin that when you die no one can pick up your items for an x amount of time?
#general-plugins and I can't find any online. You can request one in #794429923698802708 or #794429922454142986
kk
DeluxeCombat
but you need to die to for that to happen
unless u already have deluxecombat
can i dm you?
huh??
Isn't what you wanted is for no one to pick up items when died?
🤔
that's exactly what DeluxeCombat does
if you die you can lock the drops
for an amount of time
so no one can pick them up
okok soz ye perfect ty ill look on it
or you can do it so only owner of the drops can pick them up
deluxecombat is paid .-.
nah
2023
2 years of wasting time
and in 2023 I'll say 2025
damn 2025 is so close. closer than 2015
I barely can comprehend the fact that we're in 2021
What server has DCombat been tested on?
How many players?
You need more testing tho. Need to test it on some larger servers with 200-300+ players
ct tag has been tested with larger servers
oh right. let me just get 200 players on my server real quick xD
no
of Deluxecombat?
lmao
oh ok lol
just a user
do you have a 200+ players server?
why do you ask that blitz lmao
maybe he can test it xD
If anyone could make me a plugin ( Paid ) (Pickaxe level system) dm me
#794429922454142986 please
hm
I thought compile was bad
in build.gradle
yet matt uses it
in mf
compile "me.mattstudios.utils:matt-framework:{version}"
compile is a feature that's removed on a newer version of gradle
I use it
But I think you can just replace it for implementation
u can
Matt doesn't use it, it's just on the wiki because i am lazy
Does placeholderapi have a pinger port?
just use jdgui to open the expansion.
i hate people like this
so much
I mean if BM hates them I have to hate them as well. so I hate people like that so much
literally can't blame you at all. It's so frusterating
very
very
very
hmm is there a restart bungee command?
yea
wait you mean in game?
if the client literally doesnt know what they want its the most infuriating thing
I mean that's why you ask for a 23 page google docs
if its not a big commision i would drop it lmao
i dont get it, its their server so why are they asking u?????????
thats what IM SAYING
you will be doing a lot more work than you think i feel like. he doesnt know what he wants, so you are going to have to come up with it yourself, then hes gonna say its wrong so you have to redo it, but he doesnt know how he wants it redone, so you have to do it all yourself again etc
guys literally braindead
it annoys me beyond your imagination
🥲
yea lol
literal nightmare
I mean he probably wanted someone to make the economy for him
he didn't want just set up
but didn't mention it
oh, you know what he told me? he said just copy a /shop off another big server
because just setting up those things if you have everything planed is easy to do on your own
im here like 
lmfao
fuck I really hoped /end would also restart lmao but doesn't
welp my day is ruined
/restart
oh wait is end bungee
yea
nvm
if its your start script you can add a while true
its the default one made by ptero
nothing lmao
oh lol
I was just hoping there's a restart command
oh wait
there's a start command?
nvm
I mean commands won't even work when bungee is offline lmao
welp time to learn how to make a restart script lmao
script 
plugins 
I mean you can't start the server from plugins
how? the plugins are not enabled when the server is stopped
you're proving my point, you don't know which means you aren't skilled enough 

yo @surreal quarry I just add while true to my startup command?
oh found this js #!/bin/sh while true do java -jar -Xms1024M -Xmx1024M -jar Spigot.jar sleep 5 done
blitz if u didnt laugh at my joke
yea i think so blitz
you'll def laugh at this LOL
at what?
the vid
what vid?
o_O
you think I'm that young
oh wait I already used this pic in here hahaha
I've seen more than you'll ever see
a bit older
19
yep
we aint that far apart
but do you know how you keep a fool in suspense?
yea
so anyone got any ideas why IIJ crashes when I open any project?
no errors or anything no messages just goes to the main page
I give you a 5 seconds head start to run. after that I'll hunt you down, torture you until your last breath, then resurrect you just to repeat the process and I'll do this until the end of my life then I'll let you die and I'll leave heaven to follow you in hell where you'll go just to torture you some more just to then after you've burned for millennia I'll throw a drop of water on your toe so you remember how good water was and then let your burn forever.
😱
he talking shit about IIJ. he deserves all that and more
hahaha
thats a lot for 19 yr
he aint wrong
I found a nice 60 CM tall, 30 CM wide stick. I think I'll also shove that up his ass
👀
👀
well hey, the proof is in the pudding
you ain't getting away with all that shit
whats IIJ
you talked
ur ij keeps crashing
IntelIJ
which means its DOG
no it never crashed. it was my fault. how dare you
switch over to eclipse while you're still sane
please leave. before I assemble an army of kids and make them all punch your testicles
👀
eclipse > ij
until you bleed semen
wOaH tHeRe
I think your existence is enough of a punishment for you
rip
for asking me to follow him on github and never following back
he's the only person I follow and no one follows me
I'll follow you, you must feel honored as an eclipse user is about to follow you so try and contain ur emotions
you see? IIJ never fails me. I fail IIJ 😢 https://i.imgur.com/pk4CZsL.png
wtf is iij
IntelIJ
no its not
where does the second i come from
yes it is
what second i?
😐
Intellij better ?
no
if its lower caps
IJ
its IntelliJ
ij or nothing
so please leave me alone
ij or eclipse 
thats what I thought haha
dead 

lmaop = laughing my ass off please
my school is forcing me to use eclipse 
what?
ouch.
alright, I'll just let them know that an angry blitz is coming
I mean wdym by making you use it?
just use what you want lmao
don't give a shit about what they say
and jupyter too, whatever that is
my teacher made me use CodeBlocks and for an entire year I used an online compiler
like they want assignments done in eclipse
just because I could lmao
ig I could just use IJ ||<- see what I did there?|| and just say eclipse bad 🖕
Idk how one can say eclipse is better than ij like wtf
Matt I think what andre found will give you a good time here you go : https://github.com/KennyTV/list-of-shame
It might be
fame or shame
wouldn't be surprised if fame or shame was an actual thing in america at this point
what's fame or shame
daddy you killed them!!
It's a fictional TV show in GTA V yeah
who said its fictional? 
me
I suppose
xD
now stop distracting me from completing this clients work
oh wait I don't even know what im supposed to be doing 🥲
how do I update my java version on a dedi ? xD
you'll have to overcome that yourself
can't ask us to stop writing
close discord
I also have some stuff to do but it's just programming assignments
Although I really wish I didn't have to do this in Java
I miss so many features and concepts from other languages
lmao
I'm really not speaking of kotlin here
Kotlin isn’t bad nor is java
yes I missed your point
which means kotlin bad
Python snakes are the best
java god
by just 2 points
¯_(ツ)_/¯
Remence justify why kotlin karen is bad
ok so
u say karen right
what do u think of?
||asnwer the question so I can move on with my point||
Maybe an actually knowledgeable Karen
have you ever heard of HASKELL ???
Not again 
bruh no hate but I wouldn't get this done in Haskell within the next 2 days
no
because haskell is so WELL designed and PRAGMATIC that it requires YEARS of research into type theory before you can become productive with it
😔
bro monoids arent that complicated bro you're just thinking about them in the wrong way dude come on bro
So by that we can conclude HTML is a programming language
o
77 votes and 22 comments so far on Reddit
ADVANCED language
HTML is a programming language by the majority of accounts. It is a markup language and it ultimately gives declarative instructions to a computer. This is the definition of a computer program, making HTML a programming language. (:
that ycombinator website is a great source of material
even the NAME is a FP circlejerk
ever heard of the lambda calculus?
Yo it’s stupid syntaxually
I dream in lambda expressions
speaking of which I'm tired and barely got anything done 👍
nice
I hate proving the existence of things
Because it usually involves just guessing solutions
And for this last assignment I've got no clue
Maybe get some rest?
rest is out of the question
Well, I will, but I have to hand it in in about 10 hours so yeah
Holy shit, get some coffee?
Nah man, Im gonna sleep now, that one thing is not that important
lol
hkw would i fork purpur into my own server jar?
ohhh boy
?
Doesn't it have instructions in the readme?
there are not detailed instructions at https://ocaml.org
that language is probably worse than elara
Of course it is
math
progressbar expansion 😎
😐
private static String progressBar(long current, long required) {
final int length = 50;
if (required < 1) {
return "max";
}
final double percentage = (double) current / required * 100D;
final int filled = (int) Math.floor(percentage * length / 100);
return ChatColor.GREEN + StringUtils.repeat(":", filled) + ChatColor.GRAY + StringUtils.repeat(":", length - filled);
}```
apache
take it or I will remove it
86
how do I compile the file from the source code in github?
either mvn package or gradle build
how do I use mvn package?
its just a command
If you're seeing people roast it.. maybe you should read those critiques instead of asking somewhere random?
lol
x.anal
👍
im in game rn
Scholtes 😮
are we friends on coc or are you just on the main page frosty lol
o
python is a scam when it comes to shortest lmao
🙂
just remembered im working in 10 minutes and im not ready at all
I don't actually know why I used java lmao
share code
anyone wanna teach me how to use maven to compile file from github.
I don't get this one
same
😐
im in the middle of physics and trying to do this
I forgot to remove the - tho
my focus is 0%
Fuck physics, this is more important
All the fuckers using python smh
Spot the madman.
Anyone who wants to teach me how to use maven to compile a file from github.
There's plenty of tutorials online which give you a step by step process
@hot hull i can play for 15 mins
it says ur in a game
is it reverse?
yea
Product bottom numbers * top number?
Wait no
sum of bottom * top number
I think
Or not
Works for the first 2 then stops
Idk lol
3*6 = 18
i know
thats why i said its wrong
first one would also be 3*6
its not a number with 3
because 3 times anything isnt 14
nvm
i know
first number is how many numbers there are
and then sum
of each number squared
1^2 + 2^2 + 3^2
3^2 + 3^2
4^2 + 10^2
it works
took me a hot minute to figure that out
big brain time
huge
reverse is actually cool
i like reverse
So long it's not dumb examples
frosty taking ur time
uh yea nah already done, playing pubg kek
i can join soon
the lesson is covering something we've already done so i dont need to pay attention lol
Man, really wish i could join a coc for once, but never have time
doubt
Even though I suck at math, but math pattern is my style
Nice
very nice
I don't get the extend part
it's like an extension function
except you can use a different name instead of this
this is the default
eg
but you can define an alias
which is cool
Just like how as works in Python's imports, just as an extension
^
Any coc on?
im down for one soon
u down for sum coc 😏
Im in for clash as well
same
One problem: I don't even know how COC works 
Just gotta figure that the pattern, that's all?
I only met reversed once
Fastest -> Problem given, ranking basrd on time taken
Shortest -> same but ranking based on code length
Reverse -> IO only given, find the problem and solve it, ranking by time taken
I love reverse lol
Lol
Plugin kit?
Looks quite the same to how BKCommonLib works, but with my own style from all my experience I have gathered from commissions
That is, no nms, only spigot api ._.
I have no idea what BKCommonLib is
I love to start off simple first, then I will go with it later
I assume its like some wrapper on spigot that comes with foundations for some patterns you commonly use?
Yeah
Oh ok
In all of my #showcase , I made different lib based on each
#showcase message this for example
I actually took the lib from bergerkiller (the dude creating BKCommonLib), then adjust to adapt with latest version, and with radian too
Jesus.. just realized I made this function in kotlin ._.
Hope anyone don't mind
=paste
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
Why not just wait lol
Because the other one is private and noone seems to want to join
@hot hull start a private one
@regal gale
