#dev-general
1 messages · Page 372 of 1
ffs
run what once
🥲
you download the jar, and run this command java -Dpaperclip.install=true -jar paperclip.jar
i give up
oh no a reverse
you can use NMS and all that
you didn't know paper used this?
holy
no u don't
right?
no
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
but won't this also start mc server
no
wait
where do u get paperclip.jar
its just the jar
oh
from papermc.io
y u put paperclip
that's the command I found on the internet 5 seconds ago
you can name it whatever
lmao
oh
so i just run that
hi*
to get nms?
yo wassup bro
all versions?
then how do i get 1.8 nms
took a lil longer because i tried it in python first
@oblique heath ... I didn't even understand what I have to do
oop i failed
darn
that one took a while
I thought I understood until I did the first test
what's this about?
i believe in your critical thinking blitz
um
nvm
why is it starting mc server
also it doesn't install for 1.14
probably doesn't work on 1.8 then
just 1.16
ok
rip
i have absolutely no clue
ah
bruh
its just summing up the digits and multiplying the sum by itself. or pow 2
that's what I thought it was based on the tests given
but the real tests aren't that
new CommandTaskChain()
.addTask(new CommandTask(args("git", "clone", "git://github.com/fsquillace/junest", "~/.local/share/junest")))
.addTask(new CommandTask(args("export", "PATH=~/.local/share/junest/bin:$PATH")))
.addTask(new CommandTask(args("export", "PATH=\"$PATH:~/.junest/usr/bin_wrappers\"")));
how is this
where did I fail tho? 😦
9+6+0+4 ^2 is not 4
??? where does that come from
its int not float. but no idea
yeah weird
And I thought it told me what it was giving me but it was just putting out the std::out
yeah blitz we did like exactly the same thing just the toString thing first
I should've used long then I guess
I can't believe toInt uses ascii
yeah clojure uses long by default so it didn't happen for me
for chars yes. returns the ascii code
my teacher is telling everyone to unmute ☠️
and int to char returns the char with that ascii value
damn if only I had read the page I looked up haha
As Char.toInt() has the same signature as the function defined in String, it is tempting to expect the same behaviour. However, this is not the case! Instead of converting the character to its numeric value (e.g. '3' → 3), it actually casts the Char to the corresponding Int ASCII value, like casting a Java char to an int (similar to what Double.toInt() or Long.toInt() also does):
oii
Sure
map and filter ez
yeah but I didn't learn how to use them
well I got it but I don't think I acutually needed filter lmao
idk how to calculate bit sets
oh it is that
lmao nvm
got it
100% ?
nice
What in the hell is this error
idk why I tried the mathematical approach to this
And idk what messed up input they give you so that Math/log x is -infinity
just ||toCharArray.filter { it == '1' }.count()|| also no I didn't use count lmao
fuck im bad
That was weir
Haskell is weird
NO!
okay nice i give up lmao
I know
😌
yeah I was tryina do bitshifts and shit
but you'll hate me even more
god fucking damnit i wish i knew how to use map
why do people think map and filter are the most complicated things in the world
theyre so simple
mhm
Lol this one
val strings = mutableListOf<String>()
for (i in blah) {
strings += i.toString()
}
val strings = blah.map { i -> i.toString() }
dammit
they are not lmao. I literally just googled it and got it in the first 30 seconds last round
Did you get the question wrong first john?
I didn't look properly and concatenated both parts
ah
good ol' 1.8
Delete yourself
Bad ol' 1.8
just 1.8 xD
||t.map { it.isUpperCase() -> sbUp.append(it) } why the fuck isn't that working||
what on earth
t.filter {
it.isUpperCase()
}.forEach {
sbUp.append(it)
}```
wdym I thought you tested a condition
you think I know what that means
thing
god damnit
The part before the arrow is just the parameters for a lambda in kotlin
||println(t.filter { it.isUpperCase() })
println(t.filter { it.isLowerCase() })||
The max you can do with that is maybe destructuring
|| putStrLn $ filter (\x -> isUpper x) t
putStrLn $ filter (\x -> isLower x) t||
fuck me
Actually
That was dumb
I didnt need the lambda
xD
||filter isUpper t|| was fine
my brain is not ready to use functional programming
IDK if you guys finished the other one
I beat it in js :p
nice
Do it in elara
whats elara
😮
🙂
next imma do java
Oh no
scratch when? 👀
ELARA!!
have you ever heard of haskell?
no
ok nvm i'm doing this in js
it's like scratch
lol
you dont need loops or anything
you just tell the computer what to do
and it works
🥰
is this request broken?
yeah the output text is overlaping in the example
imbricated loops ftw
actually are they called imbricated in English? lmao. Ah they're called Nested
lmao
but seems like some do call them imbricated as well
i was about to ask what you were talking about
well some do call them that. but that's what my teacher told me they're called (in romanian at least)
i don't think i've ever heard them called that where I am
I just googled that and found a few results
where does it show debug messages
unless those are just romanian people lmao
also if you google imbricated loop it knows you mean nested loop
so yeah
I think I'll play some cs:go now. It finally finished downloading
gl
oh what
wait what?
yep
Failing on the 4th one for some reason
compared to nested
its still used. And I did say " a few people "
what?
in the US only three states have ever searched for that word
well I'm not from the US
and I don't really care. lmao I was just saying
that some do use it
so I'm not completely wrong
now I know its mostly called nested
and will call them that
lmao
xd
yes
im suffering
I misunderstood the question
ah you 2?
Was checking for "double-lettered" words
me aswell
ah words made out of 2 letters
Letter realized it was same letteres repeated nearby
ahhh
while I only needed to check the next
xD
im happy with 66%
3 more %
I did it about the ugliest way, since I misunderstood
for (i = 0; i < S.length - 1; i++) {
if (S.charAt(i) == " ") {
d = 0
}
console.error(d)
if (S.charAt(i) == S.charAt(i + 1) && S.charAt(i) != " ") {
if (d == 0) {
Num++
d = 1
}
}
}
🥲
isDoubleLettered [] = False
isDoubleLettered (x : y : xs) = if x == y then True
else isDoubleLettered (y : xs)
isDoubleLettered (x : []) = False
lol
oh man blitz' solution is like, what I wanted to do, but he actually knows Kotlin lol
i just annotated a boolean as notnull
I don't lmao
🤡
moreso than me, look at my code compared to yours
😫
the order for those matters right
like if you had the x:[] before the x:y:xs it'd break
Run out of time to test and got 0% lmao
I had to change some stuff last minute
maybe I'll do one more lmao
Beautiful
x:[] doesnt overlap x : y : xs
oh right
my hero, not letting me get last ❤️
ah
i am brute forcing my war into learning Kotlin by doing these challenges
Blitz how do you start it? :p
Same lol
and at the bottom
🥲
nah, I mean in discord
println(
S.split(" ")
.map {
it.groupBy { char -> char.toUpperCase() }
.filter { entry -> entry.value.size > 1 }
}.filter { it.isNotEmpty() }.count()
)
This worked great at first but didn't realize it had to be letters like next to each other so had to rewrite everything and ran out of time
About 70% of my FP knowledge is from COC
oh I just send the link
Hasklash!!
barry does the rest
ah
Hasklash does it al!!
Yugi do do blocks work for any monad?
wdym?
so Yugi you joining?
heh "do do"
yes
Like could you work with a Maybe on one
BM u too? we're 7
nah ima go sleep now
ah alr
uh do is just for functions
6 xD
No ik
:p
But like
oh god this challenge
processMaybe m = do
blah <- m
return (other blah)
what in the actual fuck
yes
Ok sick
Wait
Haskell good
Oh
is for IO
If you use that, you need a wrapper MonadIO or IO
I don't like this either
hello why can't I do Double#pow
isn't it Math.pow(double, double) /
You need to import it
fuck yes
...
Math.pow is where it's at
^ is where its at
noo
don't think I didn't try that yugi haha
wdym?
Wait a minute
so you can't just parse it
oh shit
my code earlier definitely had -2^counter in it haha
I could have just used base as -2
is ord a thing i can use without importing weird stuff
No
You need Data.Char
import Data.Char (ord)
lmao Blitz nice
ah
I just gave up lmao
I just parsed it by hand
do another one that makes sense :p
Blitz
I didn't even realize there was a prebuilt binary -> decimal converter
?
DId you try -2 in there?
ah
and Integer
well gn everyone. going to play some cs:Go until like 3-4 am and then go to sleep
what's wrong with this 😢
toInts :: [Char] -> [Int]
toInts = map . ord
nvm I ain't playing any cs:go today I guess https://i.imgur.com/TY8vWEK.png
do another round :p
I want one I understand
yeah I'll do
looks like wrong type
since I can't paly cs:Go
I spent my whole day crying for my lost projects and installing everything I need back on my pc
now I can't even play cs:Go
the error i'm getting is
• Couldn't match type ‘[a0] -> [b0]’ with ‘[Int]’
Expected type: [Char] -> [Int]
Actual type: Char -> [a0] -> [b0]
• Probable cause: ‘(.)’ is applied to too few arguments
In the expression: map . ord
In an equation for ‘toInts’: toInts = map . ord
|
23 | toInts = map . ord
why not just map ord tbh
lit
why does the . not work there though
blitz, ill joi nnext round
oh wait cs:go just started
oh there won't be a next round
for me at least yugi
I'll just play this one
I wanna win one, now I have a 50% chance lets go
ye
im glad I stopped lol
I'm so mad, my thing wasn't working and I couldn't figure why, '1'.toInt() is 49 but '1'.toString().toInt() is 1
oh I see how it works
ASCII, same thing happened to me last time
wait no
yeah I got no idea
what's the problem set?
well I know now that we have to do something with the first number
and with each line
so that number does something to each line
ord :: Char -> Int
map :: (a -> b) -> [a] -> [b]
map . ord = (\x :: Int -> map $ ord x)
So it became Char -> [a0] -> [b0] becasuse map is getting a no argument function because you already applied ord before map
oh wow that is confusing af
But I think b0 would always be Int here tho
Can I have a developer vc with me I have something I need to be looked at to see if it’s possible to have in my server...
Since your function is maping to an Int
first number has nothing to do with the numbers
not the place to ask
oh it's the amount of lines to create
Lucifier is literally dmming
oh I got it
dafaq
that's why you turn off dming on this server without being a friend lol
you see, i have other servers i am owner of
so i kinda have to leeave my dms open
yep got it
lol
yeah I got it 100% blitz
oh
you can change it on a server by server basiss
and printing it for each line
ahh i see so ord would resolve before map would
ooo thats pretty cool
yea
mhm
I was just brute forcing it
lol
if (N == 1) {
if () {
console.log(9)
} else {
console.log(10)
}
} else if (N == 7) {
console.log(2307)
} else {
console.log(25)
}
oh fuck no. I lost all my cs:Go settings. they don't save on steam... they save on PC
that actually makes a lot of sense
as soon as Blitz said the first number was the number of lines, it clicked for me
since . is all about basically piping the result of one function into the other
I mean all I had to do is look at the code... it gave me a loop going from 0 to the number
so of course i wouldn't want to do that for the function that goes in map
oh I see haha, I didn't get that cause I'm not participating
lmao
thicc
Unity?
Yes
Yes
right now the only thing that confuses me is vector2 and vector3
allman 👀
Altho it might take some getting used to if you're coming from java
Whats wrong with those?
What's the difference between 2 and 3
yugi big brain
when will you ever call me big brain
Absolutely no idea, You'd normally only have to use Vector2 with 2D specific components
like RigidBody2D
I can show you the code in a bit if you'd like
You can create 2D game using 3D models if thats what you mean
I'm in a val game
:c
Unity doesnt really suppourt real "2D"
You're just making things work in 3D space and using a different projection type
Can you show me what he used it for?
They probably just meant to use it the same. Since unity handles converting between those 2 where needed, youll just end up with a v3 with z = 0 ig
so it's essentialy the same
the vectors are only used for storing information, vector2 gives you 2 variables and vector3 gives you three
Or at least, that's how it works in GLSL
Star those are actual vectors
Wait
Even in GLSL they seem to just be normal vectors
you all should appreciate my object oriented vector structure: https://paste.helpch.at/ofirogasoq.java
https://paste.helpch.at/tijabiyefu.java just for you bb ❤️
ye I heard about that
lol
Its written in the article
I clicked the article -_-
reading is for nerds yugi
😌
me remence
😮
i am buying discord
James the multi billionair
lol you can just download it for free James
Soon to destory elon MoSQuE
lmao what
https://www.businessinsider.com/google-buys-fitbit-for-over-2-billion-2019-11
I think they got a bad deal, mine was like $75...
(I'm reposting this from a friend :p)
Okay.
Okay.
Okay.
Okay.
sounds like lua
Salim Shady
oh god 😂
Im reallllly hoping openjdk automatically uninstall oracle the jdk
😔 how do i get that junk off of my computer
Lua doesnt seem to come with Vector2 and stuff
yes but roblox lua does i think
ah
god I love openJDK
what's the difference besides copyright and if it's completely open source?
usage rules, easier to get, not being associated with oracle, plenty of benefits
Man I love completely unrelated banners for programming articles
lol
nah swapping to openjdk is a lightbulb for every java user
Oracle vs Open
Anyways here's a light
Or a random picture of people smiling and laughing or whatever
definitely programmers
nah it's the joy that our programs will bring to the world
A lamp
i'd smile like that too if someone introduced me to Kotlin
People outside, interacting with each other, and happy
definitely not a group of programmers
unless being introduced to the joy of kotlin
unless being introduced to the joy of kotlin Haskell
haskell is pretty cool too
Kotell
h++
Hasjure
"OpenJDK supports the changes to a release only until the next version is released." does this mean-
java 11 servers not supported?!?!
im pretty sure any other version will cause some plugins to break or somethin
Java is backwards compatible
Compiled in Java 8 will work on any version above
Compiled in Java 11 won't work on any below but will on any above
^^
java 16
i didnt mention that cause that is pretty much still a thought lol
you shouldnt use it
Was released like last week lol
You'll use it in about 6 years
Exactly
And Java 16 is not LTS
17 
java 8 is kekw
11 is
Kekw Java 11 support ends in 2027
what abt java 8?
lmfao
Ended in 2019
finally
January 2019 for Oracle (commercial)
December 2030 for Oracle (non-commercial)
December 2030 for Zulu
At least May 2026 for AdoptOpenJDK
At least May 2026 for Amazon Corretto
Zulu
Java 11
September 2027 for Zulu
At least October 2024 for AdoptOpenJDK
At least September 2027 for Amazon Corretto
What decides if its LTS or not?
Prolly oracle
What makes oracle decide if its LTS or not?
They are the developers of the language?
like why isn't every version LTS
or every 2 versions
hey I found out about java 16 bcz I installed it on my windows today 
If you want every version to be LTS then you'd only get a new version every like 5/6 years
sounds like forward compatible
or I guess, compiling something is fowards compatible and the jdk is backwards compatible... hmmm
confusing
It's pretty confusing yeah
JDK's are (usually) forward compatible. JRE's are (usually) backward compatible
but wait doesn't the JDK also have JRE's?
no u
oh I see, so my JDK 11 can run anything 11 and back, and compiling something for JDK 8 will only allow it to be run on JDK 8 and below
Yeah but they are separate, one if for compiling the other is for running
someone should make a graph lol
and above*
wait
shit's confusing as fuck
oh yes yes I see
cause I compiled my plugin for JDK 11 and this guy on JDK 8 couldn't run it
JDK 8 will run on JRE 15
JDK 15 won't run on JRE 8
On JRE 8*
^
ah yea yea
v
today I downoaded like 4 JDKs
The JRE is within the JDK
well so wait, shouldn't you always download the latest LTS version of JDK then?
Yes
cause it supports running every version behind it, and you can set your compile target to any version
hmm okay guess I'm downloading JDK 15?
yeah
oh is there not another LTS
btw why does gradle compile my project to Java 6 when I select JDK 8? I have to set the target for it to compile it with 8
16 is out
You normally lose nothing for running a server on JRE 15, you'll run anything that was compiled below it
But since most are still on JRE 8 it forces you to compile for 8
you can download that one
okay sick
it probably defaults to that if it isn't explicitly set in the build script?
yea
yeah but why 6 tho? xD
y'know sourceCompatibility = targetCompatibility = ..
maybe it's the lowest version still supported or something
well time to go back at recovering my dedi 😢
does anyone know how to reset user password on ubuntu 18.04 from recovery mode? I can only reset the recovery mode password for some reason.
well you also need another graph of what the JDK's can compile to 👀
i think your problem is ubuntu 👀
what's the problem with ubuntu?
I mean that's compiled on x running on
Isn't it just psswd <user>?
yeah but the thing is my user isn't listed. I get listed my Ubuntu user but that's the recovery mode user.
and my normal user is called Ubuntu as well
also I tried resetting it for root
that didn't work either
I tried like a lot of stuff like adding my ssh key to the allowed_keys or whatever that one is called
I barely got the password working since I did a big mistake and disabled that and then lost my key xD
i don't even know what those variables do... and I'm scared to look
I presume a poor version of NMS or something
that actually makes me want to kill myself
OMFG
what did I need to put in my authorized_keys again? whatever is in my key.pub? so my public key/
also I just realised I'm missing id_rsa on windows. Is that required or is that just an optional key?


well I guess I'm done for today. will waste another 5 hours next week trying to get it
Why did Buster delete his account?
I just found some old messages of his from #cubes-pings and I remember being it because cube got him to get tier 2 and it says deleted user
:(
i miss buster tbh
yeah..
yall will forget me when im gone ):
you used to be able to ban people!?1/
true
this is why i only gave classic
I could do anything for a few seconds but I decided to mention everyone
cant forget you when i havent seen you in this discord
lmao
lmao
REMASTERED IN HD!
Playlist Best of Eminem: https://goo.gl/AquNpo
Subscribe for more: https://goo.gl/DxCrDV
Music video by Eminem performing When I'm Gone. (C) 2005 Aftermath Entertainment/Interscope Records
#Eminem #WhenImGone #Remastered #HipHop
Mom's spaghetti!
wha?
that's the other one
this is not mom's spaghetti
never give up
or whatever its called
dont care, mom's spaghetti is the best one.
well its not even called that so you clearly don't even listen to it. Just say what you've heard other say
Is that a song of his?
ik ik but i like to refer to it as mom's spaghetti
it's called lose yourself ik ik
its the Till I colapse one
idk why I said never give up
ik why
Eminem sings Never Gonna Give You Up
ah maybe that's why. idk
also mom's spaggethi isn't even in that one either lmaoo
isn't it in lose yourself? :))
I'm so good
I know all the songs :(no I don't)
yeah it is in Lose Yourself
I know a few. I just have a bad memory and I forget a lot of them
I can name like 5 from the new album. well from both sides together
xD
Not Afraid, Monster, Love the way you lie, When I am gone, Venom
There was one another
But I cant seem to remember the name
About his aging up or beating his wife or something
idk
Anywho, I'll be off doing good in the world. Making TypeErrors, allowing my pc to run out of memory, etc!
til I collapse
ah no nvm not that one
there's River
but idk if you're actually talking about that one
ah
Killer, Zeus, Darkness, Those Kind of Nights, Godzilla, Marsh, Little Engine
those are what I remember from the Music to be murdered by album
Nah probably not
I dont listen to too much of that genre
still. there's a lot of big ones that got played on the radio.
if you listen to Lose yourself you'll know that one
I'm pretty sure
Only rapper I've consistently listened to is KSI, and thats just because I watch his normal videos
probably have listened to Killshot as well
lemme check
idk I don't really like his music. The only one I liked was the one with Anne on it. And that's because of Anne lmao
I didn't listen to many tho. Only like 4-5
I can think of it
but the names
ffs
I cant remember any damn names
Killjoy?
wait no
thats a fox song
yeah I understand
MGK tho. that's some rap I listen to. And you know what's funny? A lot of people said he lost the battle with Eminem but he gained a fan lmao
Actually
Wait
This is weird
But mostly because I rarely use spotify and when I do, it just keeps looping the playlist
one min
top 0.05? that just makes it sound like not a lot of people are listening xD
I see
🥲
I did starting to listen to actual music as well during this time lmao
same
Frosty's playlist is pretty good
?
why are the artist names wrong in that playlist
I saw fireflies remembered it as a Owl City song, but it says someone else "Sky" something, So I thought it was a diff one and played it.
Seems its just the owl city one

Good question!
I just realised that you sent the image and not Yugi lmaoo
yo anyone got a better Command library for JDA? Like the Utilities Lib is good and all but doesn't have subcommands and stuff like that
Doesn't matt's lib have that?
also I got no idea how to use requirements
OH IM DUMB
I meant to say jda
lmaoo
idk why I said jdk
Doesn't change my answer :p
Well it's two libs, one of mc and one for jda
ah found one in his bot implementation "me.mattstudios.utils:matt-framework-jda:1.1.9-BETA"
Have fun
dew it
I'm so fucking mad again at myself
for losing all my projects
I should't be doing this rn
but I don't want to make this entire bot again 😦
what's that?
Wait what happened Blitz? How'd you lose your projects?
He's an idiot
Stop crying, move o
n
also Frosty:
He's an idiot
oh no
Well yea you're still an idiot
my boy
what have ye done
factory restored my windows and forgot to upload them to github
or put them on my USB
drive
no idea what that is
I don't need them. my windows is pretty already
hmmm
i guess overused would be the correct word
I mean I like it
i find the side taskbar to be better, since you generally want more room to scroll down than you want room to scroll to the side
but to each their own! i'm impressed how good that looks without wallpaper engine ngl
ah I see what you mean. I thought you meant the centered icons.
I use it because I'm to used to it being at the bottom
I've tried sides and top
but can't get used to it
Ah man, sides slap. Top is kinda weird, I'll agree
Though I do have three monitors, so the one on the right of my left-most monitor is very centered

