#dev-general
1 messages ยท Page 417 of 1
oh
imagine having dev role, cant relate
Ayy
@ocean quartz how did you fixed iij not wanting to load paper 1.16.5?
Fefo has joined #dead-chat
:o
docdex is bak
Lit
d;PiggyPiglet
public class PixelGrabber
extends Object
implements ImageConsumer```
PixelGrabber has 1 extensions, 1 implementations, 16 methods, and 1 all implementations.
The PixelGrabber class implements an ImageConsumer which can be attached to an Image or ImageProducer object to retrieve a subset of the pixels in that image. Here is an example: ```java
public void handlesinglepixel(int x, int y, int pixel) {
int alpha = (pixel >> 24) & 0xff;
int red = (pixel >> 16) & 0xff;
int green = (pixel >> 8) & 0xff;
int blue = (pixel ) & 0xff;
// Deal with the pixel as necessary...
}
public void handlepixels(Image img, int x, int y, int w, int h) {
int[] pixels = new int[w * h];
PixelGrabber pg = new PixelGrabber(img, x, y, w, h, pixels, 0, w);
try {
pg.grabPixels();
} catch (InterruptedException e) {
System.err.println("interrupted waiting for pixels!");
return;
}
if ((pg.getStatus() & ImageObserver.ABORT) != 0) {
System.err.println("image fetch aborted or errored");
return;
}
for (int j = 0; j < h; j++) {
for (int i = 0; i < w; i++) {
handlesinglepixel(x+i, y+j, pixels[j * w + i]);
}
}
}
oh u got dev role
Spring Layout ๐ณ
slow ๐ฆ
hey thats like my mc server startup speed
Fill your github profile with haskell projects, instant dev role
Do it
hmmm
do a request on the
yea
lies
oh
No he ded
๐
that sucks
From life
whatts the ban reason?
This bm is an imposter
oh ok
Existence
i see
very evil indeed
not counting the fact that i exist too
๐
Right clicked the project then refreshed dependencies
You will soon be banned from this world too
Please wait 50-100 years
Thats not a lot of time
you may get priority seating if you start smoking and eating fast food
76 * 365 days
lmao
mhm
oh it's 76 now?
No
what
Just the average
oh
If I am storing images in database should I just reference the path to the img in the database or hash the image and store the hash then rename the image file in a directory to that hash?
Pass the haskell test, and you are
probably
๐ค
oh ur on phone
Maybe
Just
why not store the image itself in the database
Is that a Haskell reference??????? ๐ณ ๐ณ
i need to pass the piggy test, not the haskell test
why not store the database in the image
Yes!!!
uh oh piggy is here
I'd say it depends on the judge's mood
???? ๐ณ
lmao
it just feels so fat to do that
Simon is sending us a message ๐
such fucking nerds
Clearly
main = do {
putStrLn("Hello World");
}
``` ๐คค
and i feel like it makes it more awkward to work with
All hail the lord and saviour Simon
get him out
Wtf dkim
haskell is ๐
Rot in prison
well databases have an explicit option to store files like images, so it can't be that bad
seriously sensei
Leave
store the database in the image
admins please ban him
This is a cruel world
The emoji you used ew
truly cruel
you deserve cruelty
No further explanation needed.
Don't forget to subscribe! :)
โบDiscord https://discord.gg/UPjvcSG
โบTwitter https://twitter.com/DasMxd
โบInstagram https://www.instagram.com/dasmxd
Music:
Earthbound - Sanctuary Guardians
San Francisco Rush Rave Rush
Demmie Village (Demoman Gibberish X Temmie Village) - Mexi
when_you_engy.mp4
๐ฅฒ
No but's
show me how and i will ๐
2 secs
main = putStrLn "Hello Cruel World"
that's better
We can forgive him
i need to get my epic code
from earlier
1 sec
yugi
you will be impressed
with my haskell skills
findOut :: String -> Maybe f
why do I feel like we won't be impressed
what's f tho
๐ฅฒ
๐ฎ
I could eat him
wat
Okay ๐ ๐
๐ฅฒ
I was gonna write Maybe forgive
But idk if haskell considers that generic or as some weird type
Try it and see ๐
Cant rn, on phone
p :: String -> IO ()
p = putStrLn
main = do
p $ g (m gl)
gl :: [String]
gl = ["a", "b", "c"]
g :: [String] -> String
g = head . tail
f :: [String] -> [String]
f i = filter (v) i
m :: [String] -> [String]
m i = f $ map (\x -> x) i
v :: String -> Bool
v _ = True
``` @old wyvern ๐ค isn't this so amazing?
And replit sucks
Die
Burn
You are a sinner
You will be crucified
why aren't you impressed
Demon
You don't deserve rights
Stay away sinner!!!
Why is this world so cruel to me
abusing do blocks too ๐ฉ ๐ฉ
Sir Hickey shall hunt you if you procede any fuether
I'd let Sir Hickey hunt me ๐ ๐ซ ๐ฉ ๐ณ
๐ณ ๐ณ
That's gonna take a lot longer than 1 sec
nevermind it's not compiling anymore
good
aw
you don't deserve compilation
variable names
but
what is this? obfuscation?
those aren't variables
i made it myself
no obfuscation
its awesome
very pretty
very readable 
is it not?
I'm making a joke that the names are so bad that it's easy to confuse with obfuscation
readability = -1/10
aww ๐
needs more seemingly random symbols dkim
hmm
slap some . >>= and <$> in there
Idk where
But
You can figure it out ๐
or make custom operators
@prisma wave @old wyvern look at this amazingly valid and working C++ code ๐ https://paste.lucyy.me/kekularidu#cpp
Much harder to decompile meaningfully
(โฏยฐโกยฐ๏ผโฏ๏ธต โปโโป
โฌโโฌ๏ปฟ ใ( ใ-ใใ)
deobfuscated
main = do
putStrLn . head . tail . filter (\x -> True) . map (\x -> x) $ ["a", "b", "c"]
that won't print b though
So bad fefo
(โฏยฐโกยฐ๏ผโฏ๏ธต โปโโป
Wtf
believe it or not that is actually valid lmao
it prints b @half harness
well now it does
when you use do blocks when you don't need them
lol
hello ๐๐คฉ
hi dm
๐ฅฐ
dm
lol
oh god
lol
I always end up wanting to look into c++ but seeing these things make me want to social distance from it ๐ท
I mean in all fairness I really doubt anyone at all writes like that lmao
it's because of this lol
good thing though is that clion at least doesn't flip its shit with that code, it actually recognizes it as valid
I meant even some other aspects
xD
good c++ code looks beautiful when well made, but it takes a lot of practice to get there, and by "a lot of practice" I mean probably several years of experience lol
hell, even C code looks beautiful when well made
but yeah
C
Not if you do it in CodeBlocks (and am not talking about altest)
about the latest*
Our teacher made us use a very old version for 4 years
I don't remember the version. I'd like to say it was 10.04 but idk if that's an actual version xD
Now they make us use codeblocks and devc++ or some shit
Thankfully thats out of the way
๐ฅฒ
actually I was using 10.04 but they made us use version 6. something or something like that. Idk
its over a year since i last used it 
Ya'll still living the the vla era
๐ฅฒ
We had this competition called "blind coding" where they had us code with a blindfold with only 10 seconds every 30 mins to look at what we've written
I ended up with come variable name errors and also that compiler didnt suppourt vla
So...
yea
eliminated
that sounds entertaining actually lol
Yea its fun
You have to watch every keystroke
Oh wait
it wasnt a blindfold now that I think of it
The display was off
xD
Otherwise how would we have seen the keys
muscle memory ๐
๐ฅฒ
true
but still for some reaosn if I don't see like just a little bit of the keyboard I get lost
for some reason even tho I never look at the keys
wait I'm confused. Why is getLore still nullable if I should use hasLore to check?
thing is no one ever used the hasLore method and getLore can return null if it just isn't there
Spigot marked it as NotNull but Paper did everyone a favor and properly marked it as Nullable
Because again literally no one runs hasLore lmao
? its notnull on spigot tho
at least on latest javadocs
anyways I can just use getLore yeah
But it's stupid
Because it can return null
smort
d;paper ItemMeta#getLore()
@Nullable @Deprecated
List<String> getLore()```
in favour of lore()
Gets the lore that is set.
Plugins should check if hasLore() returns true before calling this method.
a list of lore that is set
Yeah Paper marked it as Nullable
and deprecated
cuz adventure
d;paper ItemMeta#lore()
void lore(@Nullable @Nullable Listย lore)```
Sets the lore.
lore - the lore to set
big brain yes
before someone gets mad no that double annotation isn't a docdex glitch
Yea that's pure stupidity from whoever made the method
Check who commited that
@onyx loom https://www.youtube.com/watch?v=6yRFWlztwrY&list=PLovdyZSe8DeIpxzNPDxcAQtYcRBGlBArx&index=2
@old wyvern I'm a fucking retard, I was never normalizing the values hence it was above -1 <-> 1 lmao
Anyone else having gradle indexing issues with latest IJ?
another reason why you should switch to maven
die
okay.
๐
tofpu are you a maven user
Temporarily yes
Dont revoke my dev role tf
It seems to have added the legacy boot flag
they have a cure these days for people like you. A little lead ball which is encased in brass, which when propelled at great speed towards the head, erases any fondness of maven
||yes that's not how a bullet works stfu it's 1:30am||
Really?
probably about 50% of the story
it's not a ball in reality, unless you're shooting a shotgun
hmm
although it does basically turn into a ball once it's fired
It's a flying dildo
yes
Ok time to see if seting to boot aand esp worked
So when could I get the cure
should've just used kde neon
Wouldnt that have the same issue?
no'nt
imagine being british
๐ฅด
Kinda
wym kinda
oh yugi forgot to say this earlier
only dedicating 100gb to this
Opened up a weird terminal
you gotta commit man
Terrifying
Wha?
I dont think thats viablr
My courses require some stuff to be specifically on windows or are atleast oriented to be easier for windows users
weird terminal?
Im not use unity works properly on linux as well
can you tell me what programs specifically?
Lemme boot into manjaro
Wait
Atleast grub works
Im happy
How do I set windows to the default?
Yes
type rm -rf /
yugi how do you manage to fuck up the focus every time
what does the text say
Hey guys where can i find support for minecraft server errors ?
yay
if they're actually from the server and not some shitty plugin, #minecraft
A bit more of black screen now
.
But atleast i get a pointer this time
nice
k thanks
Does first boot on it take too long?
no
how long exactly did it take?
pc specs are decent right?
Hmm
Okay so it's just being slow
yeah we'll see
might wanna look into zsh if you plan on using the terminal a lot
smh
and oh-my-zsh
Whats zsh?
Konsole is bash?
Konsole is the terminal emulator
Konsole is the frontend, bash/zsh/fish are the backends
Ah
yugi zsh is something that only matters if you're semi enthusiast level
that's the last thing you should be worrying about at this point
well
I like it because it's prettier and has a few shortcuts
Anything else important?
drivers
Doesnt manajro auto install them?
does manjaro use pkcon bm?
aight
Wha
yugi go ahead and run
drivers should be done already
wot
yay yeah
Yea
That's probably the best first thing to do
From pacman?
There's a gui frontend for it
You have to build from source afaik
Uff
oof
yeah bit of a pain
So compilers first
Bit worth it
on ubuntu there's software-properties-gtk
Dammit
yes
what are the pronouns referring to
ah right
they should be quite similar graphically
Its a bit diff
my life is a lie
I don't have 2 toolbars here
they have the potential to look the exact same but the default themes are slightly different
google said they're the same
if theming is your thing kde has loads of em, so take a look at their site
This also doesnt seem to have the window movement animation from neon
you might have to enable it
KDE is extremely customisable so
open desktop effects
Actually
just search desktop effects in the search
Should I try restarting first to see the boot time again?
oh
I know the most essential first thing
open settings > workspace behaviour > general behaviour
clicking files or folders: selects them
by default clicking a file or folder opens it, instead of selecting it
changing that option to "selects them" will make it like windows where you have to double click to open
god my head hurts
Yugi, I'm like 10min away from yeeting the entire project and starting from scratch
Who is that Nuuu meant for
you
Gimme 3 reasons why not
- It's
- Counter
- Productive
No it's not
๐ฅฒ
really? Usually deleting all of your work and starting from scratch sets you back
There isnt much it the project to rewrite I think
Not in this case, in this case it sets me forward since nothing works as it should anyways
Isnt it just 5 classes rn?
Just clean it up
Also gitignore please
Commiting is a mess rn
I had to manually fix conflict on every ide file
a fair few more than just 5 classes but mk
Now to figure out how perlin actually works so I can make my own implementation
imma uninstall life
https://gist.github.com/BomBardyGamer/de0882d8789d8e0ebae04fdb3621d0e3 just spent the past few hours designing the start of my style guide for Kotlin lol
though I should probably just use the official Kotlin style guide, since it permits 99% of what I use anyway
but I want to be very, very strict about what I permit lol
howww
that's what I personally use and recommend
this is what my code style looks like
yeah that looks ugly to me
okay but at least keep it consistent by putting spaces on both top and bottom ๐ซ
the space on the bottom looks ugly
Bard

also, I've started to prefer lateinit var gameManager: GameManager private set now lol
Would removing the manjaro partitions remove manjaro and grub?
or, var x = 1; private set for some reason
ohhh my
๐คข
semicolons
ew
removing the partitions won't remove the data
you need to format them to remove the data lol
the only way that data is "deleted" is if it is overwritten by other data
What if I delete that partition and expand the windows partition?
yeah anyone who uses #2 should be shot
if you overwrite the Manjaro partition, you will (obviously) delete data
I need the grub bootloader gone basically xD
which could corrupt your install
Its too slow
just delete and format
oh?
use GParted Live
uh oh
While on the live image?
i just got dmed by someone
I have gparted installed on my live image
you can use a special Debian OS that's designed just for GParted
Install on sdd if you want it to be fast
I have the manjaro live image in my udb
cant atm
boot it and delete the Manjaro partition
not enough space
โน๏ธ
anything else to be done?
Shrink windows a bit?
I don't think so
Awesome
I cant be botherd to wait a 1-2 minutes for everything to startup
grub literally takes forever
oh btw, going back to my style guide, what do you think of the class order?
which styleguide?
still a W.I.P
nah just generally
oh
๐คข
yeah anyone who uses that can feel free to jump off a cliff
https://gist.github.com/BomBardyGamer/de0882d8789d8e0ebae04fdb3621d0e3#ordering-of-type-contents this is what I was referring to
Then why is it in your guide?
Bard, you're sure that removing the manjaro partition wont cause any boot issues right?
read that
if you read the whole thing you'd understand
Can i just remove the partition from windows tbh? xD
I said "there are three different ways you can write a single statement if statement", followed by an explanation for each after the examples
effort
and I specifically said that the second one is not permitted under any circumstances
No
I don't think so anyway
Windows doesn't know how to read ext4 partitions
Although that screenshot might suggest otherwise
right?
you could just delete from live image afaik
No need to format?
hmm
my ordering is this btw:
- Property declarations
- Abstract functions
- Public functions with defaults/final functions
- Overridden functions
- Non-public functions
- Extension or backing properties
- Nested types
- The companion object
what do you think bard?
Oh true, it doesnt giv em an option to delet
what drive is Manjaro on
you can't repartition the drive that you're currently working on, that's why I ask lol
Ah
like you can't repartition the C drive rn because Windows is using that
So should I format and delete, or jsut delete?
just go into GParted, click the partition, and press delete
it should go grey
then apply
Should I expand from windows then?
Windows' partition manager is shit
xD
like actually terrible
Alrighty, ill try this out in a few mins ig
bruh I'm legit gonna yeet matt's competition code smh
im gonna yeet u in a second
Please do
Do it
Nice, got any notes for me to prevent issues?
Follow the guide on the manjaro forums,
but make sure to flag the partitions properly, for some reason the guide doesnt ask to flag each,
Next if you still seem to directly boot onto windows, boot onto live image, install gparted and check the partition flags, make sure legacy boot isnt set on the efi partition, if it is, uncheck that flag and set boot and epi flags
That should be it
For the rest the guide was on point
This is if your system is UEFI btw, MBR might differ
As mentioned in the guide ifc
ofc*
Also, welp, grub was much faster this time
๐ฎ
Thats pretty good
Might not delete manjaro after all
Yup
Blazing fast
Poggers
oh lmao
johnny if you're installing to the same drive it's probably gonna be even easier
unlikely
Awesome
Yeah im gonna do that
i had a few issues but they seem to be very rare
What was the issue?
the default manjaro setup dual booting option should work perfectly then
windows update would just fail after about 60%
What was the fix?
reinstalling ๐ฅฒ
it's very unlikely to happen lmao
my solution is usually just to reinstall lol
Files tho
but like i said, it's very unlikely to happen and for all I know it was just a windows glitch
you can backup from manjaro if necessary
How?
windows usb stick yeah
Ah
like i said
very unlikely to happen
and even if it does, it's not the end of the world, just a bit inconvenient
windows itself was perfectly usable
yeah
Ah ok
Ok yea grub is really fast now
Only manjaro boot is slow
Good
Usable enough
Clash?
Alrighty
Also anyway to solve the time inconsistencies
If you know what I mean
xD
"Tommorrow"
lmao
I fixed the time on windows now
Ok seems it just took a while to take effect
Note to take: windows and linux times act weird
I change here, it changes there to something else
I change there
it changes here to something else
Odd
Got yay to compile
@prisma wave should I let yay install jre?
Its asking me to install 11 or 8 when trying to install jb tools
yeah i usually do openjdk-8 through yay
everything else with sdkman
kinda annoying
but
it works
Shalll I go for 8 as well
Wait
Should I let it delete jre8 after install?
Its asking me if I want them removed after install
Could do
Welp
Too late
I hope I can remove it later
ig no issues
Anyway, loving this so far
Ui looks amazing
Mhm
Are you running kde now? @old wyvern
they are not material icons lol
no like the sidebar ones
oh right ic
isnt that just a non compact sidebar or smth maybe?
i have no clue, it's always said like Gradle turned 90 degrees until I just updated material theme
Not sure how I feel about it
I think I actually kinda like it
I was very shocked at first too
but it seems very modern
looks hot
oh i just reread the sentence thinking that u were talking about material atom icons, not the material theme itself
cant review something if there is no source
oh
1 sec
lemme commit changes
ok
(btw its in kotlin)
Y u do this
because i see 26 files changed and i have no clue what i did
classic
do you want me to commit on every little file change i do
ima get like a million commits by the time im done if i do
oh no
And no, organize your commits, work on something and commit it, don't let too many changes bottle up
You know those 2 lines are completely useless right?
i tend to work on like 5 times at once..
๐ซ
it says 'undefined' if i dont do that
If you don't specify it takes from parents automatically
๐คท idk it didn't work before
https://github.com/dkim19375/Bedwars/blob/master/plugin/src/main/kotlin/me/dkim19375/bedwars/plugin/util/BukkitFunctions.kt#L59 put these on line lol
Dude
wdym on line?
when (this) {
Material.BLAH -> true
What the actual fuck is that file
no point in -> {
true
}
lol
to be fair, sometimes when i want to commit stuff quick i just type in "1" for the commit message lol
oh
but only for VERY VERY rare cases
where is that
press F5
Literally twice in your main class lol
Idk if its the same for kotlin tho
and now isTool and isWeapon...
ik in java i would use an enumset
but in kotlin maybe theres better alternatives
Would be the same yeah
yeah
I'm having a stroke
thats so that plugin disables if there is error
okaaay
You should never catch exception
should i catch RuntimeException?
No, you should catch specific exceptions
well, idk what exceptions would be thrown
thats so that plugin disables if there is error
If you don't know what exceptions will be thrown you're doing it wrong
https://github.com/dkim19375/Bedwars/blob/master/plugin/src/main/kotlin/me/dkim19375/bedwars/plugin/util/CollectionFunctions.kt#L17 whats the point in this?
im trying to make it disable no matter what exception it is
But what exceptions
that was before i found out about #plus
any?
Why?
so that the plugin doesn't run while being messed up
eh
You know exceptions stop your plugin right?
uhhhhh no i didn't
Lol
so i should remove that?
Also what the fuck even is this
ยฏ_(ใ)_/ยฏ
Nice
oh
thats just to make it more readable for me
since it looks weird when it just has true in the middle of nowhere (when the class gets larger)
you only need to catch and handle checked exceptions, unchecked throwables (RuntimeExceptions and Errors (which aren't meant to be catched)) can not be catched so it will be "re-thrown" up the call stack and disable your plugin
can you throw NullPointerExceptions?
It won't automagically disable the plugin, that's Bukkit's doings btw
You have so many suppress warnings holy
yes ๐
sToP sPaMmInG
return mutableMapOf(
"team" to team,
"location" to location,
"face" to ugly
)
You can.... but try not to
my husband is a programmer. he will hack into your facebook
to ugly?
Was a joke
what is to
What is a pair
๐
a pair of balls
Matt roasting dkim
What is a pair of balls
o
https://github.com/dkim19375/Bedwars/blob/master/plugin/src/main/kotlin/me/dkim19375/bedwars/plugin/util/OtherFunctions.kt ???????????????????????????????
lol
what in the fuck
dkim
You probably used as
unsafe
Dkim using reified huh
Use as?
yes i used as
i did
?
mutable map ๐
It doesn't
nmcException
Lack of haskell
haskell = immutable
@half harness You use pairs here but you don't on the other wtf