#general
3141 messages · Page 1896 of 4
if its not done this year ill quit this discord, lol
jk mini no hurry
Cat 
hahahahah savage
Mini, hurry up!
go mini go
why are the pins still limited to only 50 messages 😔
The technology is not there yet
Hey at least we finally got saving favorited gifs
favorited gifs that only work on desktop client and reset everytime the client updates

Mfw there’s a limit to pinned messages 
Is it seriously taking that long? It sounds really basic I could probably make it in--- a month or two if I found the ambition though im not that good at html
and you can just find a free forum thing if you dont wanna put the work in either
Well, the UI tooling kinda burned mini out, this redoing it, various discussions over design, etc, etc
"ui tooling" are you not using HTML for a website?
You don't write raw html these days
yes you do
The browser receives html
Oh boy
That html these days is often pooped out by stuff like Vue, react, etc, etc
I like that term "pooped out"
I mean like use a web framework like flask for API and delivering pages then just use javacript and HTML for front-end I dont get why you need 83 different languages
now I know why websites nowadays need 3 threadrippers limitless ram and the most experienced of software engineers
I mean, we use languages people in our ecosystem care about, otherwise that never ends well
yeah, I said "like flask" I dont know what the popular thing for java is
Backend is done on java, because spring is love, spring is life
thats fine
Frontend is a node.js app, using some vite thing which deals with making UI stuff, components, etc
exucse me "front end" is a backend thing
I dont wanna sound like im a bad guy im just mad that hangar is needlessly complex
all I think you need is backend (java) some html and css for frontend
Html won't deal with dynamic stuff
And how do you display that? Oh, copious amounts of js, which just gets back into the joys of maintainability
Part of why people moved towards modern tooling
"modern tooling" I dont understand this vocabulary
hm

Ecosystems like node, which allowed people to solve issues ona wider scale Vs everybody tryna throw copious amounts of unmaintainable JavaScript at everything
ah when you put it that way
How can I get paper chan in my name?
use /nick
Ofc, the new setup has its own issues, but it's a much more maintainble solution in the long run, biggest issues we've had is design, being nobody on the team is a UI/ux person, (even if it was part of my course and I do try to offer stuff, wireframes and stuff is just too much of a pain), and just general burnout from working on a project and fighting other issues
okay
With the new front-end, stuff is progressing much nicer, more people are involved, etc
well I mean if its working
but the large amounts of js? Wouldnt a thing like this be mostly static meaning little JS? Im thinking about it, there would be uploading files (<form> can easily be used for this) sending (this is probably very basic just reading from SQL or other then sending it for either JS or making it so the backend modifies the HTML before sending it to the browser) uh comments wich is the same thing,
Eveything is stored and fetched from the backend, there's the auth flow, submission flow for doing stuff, etc
You've still gotta fetch that data and process it and generate html for stuff
thats usually mostly done by the web framework though
like just put a <h1>{pluginname}</h1> and some function does it for you
You said html/js, now you're being in extra stuff
thats the backend
Web frameworks are part of the front
like flask has "html templates" where the HTML is just a template and you can run python code (IN THE HTML)
And flask would be part of the front end
no its not?
Hangar uses node, which they're using stuff which provides the templating, etc
oh well I guess our definitions are messed up
I mean, that's semantics of design
Hangers api is the back, the entire ui stack is generally the front
Wouldn't the backend do both
Front is a njs app using vite to render web pages using their stack, etc
Well, no, because we have a wider sepeation of stuff vs what the article you screenshot is seeming to reference
Hm
What we are talking about is the wider separation of stuff instead being shorter yes?
Front and back are handled by two entirely separate stacks
The front end app isn't the same app as the backend app
Wait so the back-end is only keeping everything together and not handling anything else?
The front end is generally more than just the html, etc, sent to the web browser, especially with more complex apps, generally the front end includes the part of the codebase which deals with what generates the code sent to the browser
Our backend is an API which deals with managing all of the data that the front end shows and such
Oh the backend is an API
well the backend isn't entirely stateless, but its close
I've always thought of the backend as both the API and what handles communication and takes care of everything and all that
What your doing is splitting it into 2 handling the communication with the browser on the front end and backend is just an API
WHY THOUGH
can't it be all of them at once?
Better seperation, better design, more open, etc
If it was one thing though there wouldn't be 83 different languages
It isn't 83 languages
But, If it was one thing, there'd still be the same level of complexity
We wanted to use spring because, spring is amazing and java ecosystem
But, java web stuff is ass
so java is bad for that
We'd still want the api/front seperation, as we wanna be open towards other devs in terms of accessing stuff
like an API everyone can use
ok
so I can use batch with it 🛒
im surprised how easy it is to use the quest2's keyboard i just used it for an entirec conversation
This is quite dumb, but does anyone have » but reversed?
https://www.merriam-webster.com/thesaurus/reversed
Synonyms for REVERSED: reverse, backward, rearward, retrograde, aft, after, hind, posterior, rear, astern.
/Google flask
https://en.wikipedia.org/wiki/Flask_(web_framework)
Flask is a micro web framework written in Python. It is classified as a microframework because it does not require particular tools or libraries.
https://rollbar.com/blog/most-popular-java-web-frameworks-in-2021/
Jul 23, 2019 ... As JSF is part of the Java standard, it is popular with development teams that want to stick to published standards for increased portability ...
does allocating too much memory to a server cause lag
Actor Will Smith issues an apology for slapping Chris Rock at last night's Academy Awards.
no*
My computer has 3GB of fast RAM and 2GB of slow RAM, what does that mean?
3GB regular RAM and 2GB swap probably
Then, you can drink beer legally now 🥳
wow
Not in the US afaik
I think privately they don’t really care
The responsibility falls under the legal guardians
The land of the free, where you can own a gun but don't drink
gotta make sure drunk kids dont shoot their guns into people obv
not again
They do care but it’s just not enforced unless there’s a complaint
Source: am a college student who may or may not have been to parties
what is reset by peer?
It depends. In some states you can drink it but not buy it. In other states it's illegal to drink it.
Enforcement varies wildly by situation and area. Most people aren't going to bust up a group of four underage people drinking in a room and listening to music quietly.
Sometimes a larger party might get broken up but whether they actually punish anyone depends on where you are and how much the people busting it up give a shit in the moment. Most cops don't want to file paperwork for an 18 year old kid drinking booze with friends and not really being any other trouble.
If you're being an asshole they might arrest you because they're annoyed.
So it all depends.
Where I am (middle of college town in a party school) the cops won’t even care unless there’s a noise complaint or you’re strolling around the sidewalk so intoxicated that you’re a danger to yourself and other people, and even then you probably won’t end up in any real trouble.
I was looking for chester... he needs to explain why I am using WE7.3.0 on production..
😂
Haha
yea, this is fine... everything keeps changing.
hmmm... oh well, it works. figured it out :3
found a ticket for it already (#2002)... server mc version needs to match. now the schematics work. thanks wizjany!
What do you guys think about vanilla shaders? Its API structure / its usage, especially for server experience etc.?
If I'm right, being 18 in Canada counts as an adult (maybe in certain provinces/state idk xD)
I wanna migrate to Canada just for having .ca domain
No idea about Canada.
Eternity was talking about the US.
There are Canadians here who could confirm probably.
Hangar Soon(tm)
there are some on the old velocity forums too
uwu @viral hornet
Both are shown under the RAM Tab in Ubuntu but Swap shows another 2GB.
So that would mean 5GB of RAM in total and 2GB of swap.
post a ss
I hope that second space is intentional
5 GB RAM is such a weird number
My friend has a computer with 3GB
Oh, it says cache
What does that mean?
3GB of RAM, 2GB of cache
cache seems like something disk-related
Seems like the player is sending bad packets. Increase the threshold 🤔
screenshot
Hello
so i have a player that want his stuff from his old java account moved to his new java account (he share this with a friend) but he dont have a proof that he is the owner of the old java account.
What should i do with this cases? I mean technically i can edit the playerdata nbt and move the stuff but mhhh....
anyone have tips?
I mean, thats a political thing for your server
moving java edition stuff itself over is trivial, rename a few files, maily player data and maybe stats/advancements or whatever it was
but, like, then you get to the plugins with varying forms of "glhf"
i mean i would use nbteditor and copy the inventory tag thats not the problem he just want the items but i have no proof that he is the same player xD I was thinking if someone have an idea how to check that, is it possible to fake an ip address to the almost same address or unlikely?
I mean, you can't "fake" an IP address in the typical sense
at least not with TCP
but, I mean, as said, it's a political thing; same IP could help to confirm if they can show that they're in the same house or at worse same ISP
can a person that is for example in a town in france can fake his ip looking like if like its in a specific town in usa?
Yes.
oh
so thats no safe proof
practically unviable without lots of pissing around outside of VPN hotspot areas, but, it's technically doable
he also knew what in his inventory was and he was added to the players claim
Lmao
That pic
The composition
A master piece
Go to reddit for the full res I guess
But man, so many details
save our business, say no to bikelanes
wat
according to the thing, apparently they're gonna lose much of their parking space
so, much naunce
meanwhile I just read an article yesterday where they closed 500m of a road in berlin and saw big increases in time spend and in money spend in the shops and restaurants on that street, now that its actually pleasant to walk there now that all the cars are gone.
depends on the area and what's around
sure
especially in areas where people are lazy and where local amentities are, etc
american cities aren't designed for people, they are designed for cars, so I can see that being an issue
for some companies, removing cars in favour of bikes makes a lot of sense, in some areas, it's potentially not as great; that sign is probs just a cluster of businesses together rather than just an individual
I saw a post on twitter yesterday where somebody said that they got ill, needed to go to the pharmacy, needed to get an uber to travel 500m because you just couldn't walk there
in america? apparently, not really
if they can use twitter, they can also just call the pharmacy and get it delivered
because your city design is broken, but it can be corrected
its broken here too but we are correcting it
you literally cannot bike the distance it takes for me to get to work
we got a nice german term "Autokorrektur", which means autocorrect and car correct in one
not a city problem
am not talking about rural areas
public transport?
I dont live in rural area
am also not talking about forcing everybody to use the bike
am just saying to ban cars out of the city centers and let pedestrians reclaim their streets so that shops and restaurants and stuff can use more public space and just generally deliver a more pleasant experience
issue is that people live in the city centres
I just explained you cant do that, people from outside of the city have to get into the city to work and come home
they can't just get into the city without a car
if you want to keep cities in cities sure
drive to a train station
in germany we have "park and ride" places, where you come by car from outside, park, and then go downtown by tram
bro, we dont do trains in america
tada: less cars in the city
trains are for like crossing states
thats what am saying, your system is fucked
existing train infra is underfunded
fund it then
new train infra blows over budget and over time, and scales back
hs2
easier said than done because all the money piped in, local leaders redirect to name legacy projects
hs2 lol
am not talking about high speed trains quzmo
just about normal local public transport in big cities
hs2 is just a part of the epitemy of it
trams, subways, whatever
money is shoved in to fund infra and gets piped away from maintaining existing infra towards "name making" projects
new york I think it was had one
we got a new tram line near me recently
well, guess you need to elect non shit officials then, lol
we don't name stuff here, lol
only thing we name are airports I think?
Was designed to connect silicon valley towards some of the subarbs, now it's not going as far into the suburbs as it was supposed to, and still ain't done
I don't mean naming stuff, I mean stuff which would basically cement the leaders name in the book/memory of peeps
so you capitulate and accept this shit situation?
people refuse to accept what the real issues are
governments tend to think pretty short-term as well because they might get kicked out in 5 years
you literally cant do anything, its like having germany try and upgrade its internet lines, but the UK says no you aren't allowed
people think that the solution here is to keep throwing money nto the pit in the hopes that everything gets funded, but everything just turns to shit
our government needs to be replaced
my city has like an inner ring, 2 lane road in both directions, 50km/h speed limit.
last year, they started, segment for segment, to close down one lane, rebuild it into a wider sidewalk + bikelane, give the cars a 30km/h speed limit.
its sooooo much nicer. way more people roaming around, the restaurant and bars have more space, more income, people stay longer, more income, even in corona times
basically restoring the balance between cars, bikes and pedestrians, giving each their fair share
issue is that americans have a 30 second memory
cities look so much prettier without massive roads going thru them
the leaders could literally walk around and slip something up everybodies arse crack and people would still vote for them next term because "oh, look, they're promising so much good", meanwhile having delivered on nothing that they promised last time
well, we just voted for proper people here
wouldn't matter, theres way too much red tape to get anything done, for the last like 10 years the interstate between my house and my parents house has been working on expansion. They progress at like a mile a year based on how I drive through here
we have like three tiers of government and it stuff has to go through all of them
you dont want to extend interstates
thats car focused
thats not how you get less traffic, thats how you get more traffic
issue is that people need to get around anyways, public transport is stuck behind the same traffic as cars, etc
(may I add, I live downtown and have a car)
replacing an interstate wth something else would be an utter disaster compared to adding a new lane
I can get a coach down to london much cheaper than I can get the train down there, and that's the same in the states, the coach might take longer vs a train but for many, it's the affordable option
issue is that people can't take the train because it's unaffordable, and coaches get stuck behind the same traffic making them unviable for various other daily activities, e.g. for work, and so people either just don't, or rely on stupidly cheap commoidity air tickets
I didnt say replace, but expanding seems like you guys have a problem. you don't solve that problem by adding another lane, you only delay it.
yea, but, you're forgetting the 30 second memory and the countries inability to admit to the real issues here
well, more gov funding to drive the prices down then
I am just saying that adding another lane would fix the issue, but replacing the interstate infrastructure with anything else would take 100x as many years because you would have to get every state to agree on a system
and what cat mentioned
and also not actively work against the system being proposed and as its being built
some person can be like well you are building the interstate on my property and it halts the project
again, I don't want to replace existing infra
but instead of continuing to bandaid issues, I want a proper solution
I don't think the new guy at work knows this, but I got notifications every time he approves a PR
he has been approving them with a 10 seconds interview
that is some fast reviewing
caught red handed in 4k
I mean, he could've checked them all before hitting approve?

src\hotspot\os_cpu\windows_x86/orderAccess_windows_x86.hpp:84:5: error: '__builtin_ia32_serialize' needs isa option -mserialize
84 | _serialize();
| ^~~~~~~~~~
d:\eclipse\workspace\hotspot\jdk\src\hotspot\os_cpu\windows_x86/orderAccess_windows_x86.hpp: In method 'virtual void Win32AttachOperation::complete(jint, bufferedStream*)':
... (rest of output omitted)
!ban 119342031486189568 Racism
:raised_hands: Banned wow tobuscus wow#0001 (Racism) [1 total infraction] -- stefvanschie#7609.
surprised he's only gone now
he's asking how to ban appeal in hangar now lmao
dafuq
i looked away for 1 second and i missed it lmao
oh wait
was it the n word meme
Yes
Just 2k for a 3090 Ti...
Cheap Lol
yeah, they're a bit late :(
oof
The final art on the canvas will become an NFT /s
piss
Just now I discovered "java-library" and "java-platform" core gradle plugins, I knew something about java-library from Forge buildscript, because they applied this core plugin for their subprojects, but java-platform... I will refactor my monorepos buildscript, (it is not actually that large as forge one, lol) and transfer it to java-platform for actual plugins / mods and java-library for libraries...
Also I think I'll look at some internal paperweight tricks because jpenilla did amazing work, thanks for him for that
🤨 java-platform doesn’t make much sense to apply to a plugin

or any sense really
Prob I understood something wrong at gradle docs... but java-platform is about combining multiple modules and fancy dependency management, right?
But anyway, for libraries I think the best thing is java-library...
bad
no poki
even the name is cringe

we fight
Why?
Well, to be fair, Cat is very nice in DMs: https://posili.me/i/t9ehzQT5-2022-03-29_18-28-56.png
glad you censored that
that would be fucking rude
Hey Cartman, you can't say fuck in school you fuckin' fat ass.
-South Park: The Movie [1999]
*May not be suitable for human children.
🛌
gotta stay family friendly pg clean
guys we have kids here

Meanwhile in my dms
Still better than shitting on rugs
bahahahahaaa
Daily based utility client bs of the day:
It will always report the lang as fu_CK. 
I speak that
bahahahahaaa
good one bahahahahaaa
It only happened twice today
Rider had a mental breakdown and decided intellisense wasn't needed. And then apparently it's also illegal to put your project file in the same folder even tho there is literally a check for it
cool
@left swift thanks
@worn ember no problem
@left swift ok
now that dota2 is dead, any tf2 gamers?
which one
How do I install the Asus USB-N10 driver?
yed
bruhh what plugin are yall using for putting images on maps
that one
A broken clock works twice a day.
cartman is a douche. but in this moment he was very pleasant.
also i almost forgot to turn off the ping notification
"how would you like to suck my balls"
Yea, I mean, cartman kinda changed over the years
Like, at first he was a self entitied douche monkey who like, idk how to say, he was that shitty spoiled kid who could do not wrong bar the odd case here and there when he got caught, he'd often do random stupid stuff, e.g. the ninja star episode, but, like, eventually he just kinda changed towards, like, literally hitler
i'd enjoy seeing be hitlery more than him being a douche
I think that cartman just turned into the but of "how shitty can we make a person" story arches, but, generally it just kinda got worse and worse
at first you could see that he was still a kid, as stupid as he was, but it eventually just seemed to get to the point that all he could do was wrong
rider kinda poop tbh
yea there should be more positive influence characters in south park so my kids dont grow up wrong
South Park is fun
Everyone should watch it and only allowed to be on internet if they don’t get offended 
can we sue youtube for using the belgian tld while not being belgian??
google probably owns half the land in belgium
when all hope is lost i come here to ask the gods for help
mana, electronic, digger, what do I do if I have youtube account issues?
it's a really dumb problem
i'm signed in to my account but also not at the same time
@void void clear your cookies
didnt work
Clear your application data
you mean the history?
Cuz no one would care about the thing I was typing and I stopped writing it
😩
i was waiting for you to finish typing
could you come back. i have the same issue on chrome as well and i cant get rid of it
And this is my problem why
how much money do you want?
I talk too much about this theme there and It'll be better to actually try and see it than discuss it again...
i'll boot from Windows to see if the problem is because of the OS
reinstall chrome.
I'm glad I'm included in the group of mini and cat
make me core thanks
issue is present in both kubuntu and Windows 10
both in firefox and Chrome, cock
no issue on my phone though
Can you clarify what the initial issue was? You said you were signed in, but also not?
hold on imma boot up my laptop
so i am logged in but on the left side i dont have my subscriptions listed
I’ll try to respond if possible, but am about to start choir rehearsal, and we have a competition tomorrow…
also i cant like videos
or add them to playlists
youtube treats me as if im not logged in
You’re signed in on both chrome and YouTube? As in, in YouTube on the top left, it shows your account.
both chrome and youtube?
Yeah. I’ve been signed out of YouTube, but still signed into chrome.
signed out of chrome
But does it show that you’re signed in on YouTube?
Yes please.
What happens if you try and sign in with the sign in button under subscriptions?
the page refteshes and looks the same
except that the videos on the page recommended are different
The concerning side of things is the fact that you for some reason use Firefox with the title bar on
its that way by default
doesn’t mean it’s good or not cursed
I’m pretty sure they aim to having the title bar be removed
It’s just probably there for compatibility
how do we fix the youtube problem though?


Man i love paper chan
man I love this bingo card
my fav maybe is "It promotes the game so when people get money they will by it later"
You’ve seen it all!
allegedly there used to be a time when minecraft acccounts would get hacked
it would be abused with twitch streamers and 2b2t accounts
i should look it up
Oh before 2FA most cape owner’s account would get constantly brutforced
Or at least tried so yeah
The one with session hijack is a bit different though. It doesn’t get any account info. Just session info
Last year, 126,000,000 Minecraft accounts got hacked. This was absolutely insane.
This video explains the Minecraft Session ID exploit, one of the most dangerous bugs in Minecraft's history. I'll show you how it works, some YouTubers who were affected, and Mojang's response. Watch until the end, this story is unbelievable.
DISCORD ➤ https://di...
i think this was the video
Not a clue lol, that’s really odd. I’d just look for answers online and such
i deleted the account fuck it
asked our intern to stack some boxes
You sure you didn’t ask him to do jinga?
jenga
I’d pull him aside and let him know. You’d be surprised how many people can fail simple task @spare venture
i also asked him to help set up our project board green is him. black line below is me showing what it should look like..
Or that’s how their family “stack” boxes as not all family lives cleanly and neatly
Lmao
yeah i’m sitting him down tomorrow to talk about taking pride in your work and caring
he’s had jobs before. he is also going to be a junior in college studying mechanical engineering.
first job was landscaping, second job was an internship at a refinery
maybe those jobs and education has just completely let him down in life
he also asked me how to edit a pdf today. mfer asks me so many questions that would take 10 seconds on google
just gonna tell him “listen, if this is how you’re gonna proceed in life you’re going to run into a lot of problems”
lmao
who knows what linux/amd64/v4 means?
what part of it do you not understand
v4
that's probably just a version number for whatever software you're looking at
about docker buid
docker/setup-buildx-action@v1 on github
I think that may be a sign they want you…
Yeah that'll never happen
Amazon fires the bottom 10% of the workforce every year, lots of times a team is interested in you just so they have someone to cut and keep all of their real team
Probably platform kernel
Since when is so hard to login on aws?
yeah, sign me up with chad.
u can pay me $20 and u can fire me
Cone on ubiquity
The whole thread is infuriating
I have unifi stuff
time to see if I should be concerned
Wait no I think I remember this email
Ive been wanting to replace this stuff for a while but idek what to replace with
It doesn't seem like there's any way for some unified interface unfortunately but that's ok
Oh the security incident was fine
How they handled it publicly wasn't
But now sueing fucking Brian Krebs for informing the public about the security incident, that's just stupid
Yeah
would sshfs be a good way to move around 400,000 minecraft server files (700gb server)
Might I ask how a server gets that large? Not sure about the other stuff, just curious…
around 19,000 players over 5 months
That makes sense.
Lol
Use rsync
how long do you think it would take at 250mbps uncompressed
pretty much as fast as internet and disk allows
Idk anything about sshfs
you can use the -z flag on rsync to compress though
i dont have ssh on new machine
and there is not space on current machine to compress
it compresses it in transit
wait then how would sshfs work
from sftp details i think
mount it on the current machine and then transfer
Sftp uses ssh though
like ssh server on that machine, and ssh client on the other?
idk
my question is more is it feasible to move that many files uncompressed @lilac moon
sure
if you cna install rsync on both machines then you get the benefit of being able to use some flags so if it gets interrupted it can continue where it left off
do you have any other ways to transfer the files
rsync might come by default installed
where can I get r34 paper chan arts no, I shouldn't be thinking about that
Tuinity chan r34? not again.
Okay, I came from #paper-dev discussion cuz it went off topic, I remeber I made a simplified tagless final pattern in java (see pic), what do you think about this approach for usage for some alternative components? (tree() method is the actual usage of this pattern) This thing actually may end up with DFU like syntax, but it is actually interesting. https://media.discordapp.net/attachments/781852056633212929/943186086069420114/unknown.png
stringImpl is the actual implementation which formats components to text in some ways, the formatted component is tree() method, and it is very lazy thing. Check() method produces {a123, {b123, c321}} https://media.discordapp.net/attachments/781852056633212929/943186952163848222/unknown.png
Ok i'm starting to hate Rider... Its so full of bugs i might as well jut use VS... It literally can't open any project anymore now, it just never opens the window
Along with code inspections not working half the time and debugging components not working at all...
Failed product
@quasi valley
Why did you ping kenny? 😩
tagless final in java
Yeah
I had higher kinded tagles final in java somewhere but it looked actually like dfu
that's not the accepted terminology in Java. it's uhhh... Factory pattern 
HKT in Java 💀
Yeah, there is no way to represent the actual tagless final in java, but it is the nearest representation I could get
Wanna read my presentation on why final tagless is isomorphic to Free (or more generally free object constructions) 
lol
I am just happy I found another FP enthusiast in such a remote part of the internet galaxy
Like, it breaks when you try to combine different DSLs, I tried to do many hacks but it didn't work https://media.discordapp.net/attachments/781852056633212929/943200939517571072/unknown.png
Cuz no implicits...
Yeah, send it
I also thought about that because implicits aren't fp feature there are prob reasons in other things
your tree function is not defined in FT style, I think that's why
it should look like <Z> Z tree(Algebra<Z> algebra)
this way you should be able to have composition and inheritance
I also did this expirement in scala, but I am not sure is it clean...
class TaglessCheck {
trait ExampleAlg[F[_]]:
def exampleM(a: String, b: Int): F[String]
def exampleNode(first: F[String], second: F[String]): F[String]
type Example[F[_]] = ExampleAlg[F] ?=> F[String]
object Example:
def ExampleM[F[_]](a: String, b: Int): Example[F] =
(alg: ExampleAlg[F]) ?=> alg.exampleM(a, b)
def ExampleNode[F[_]](first: F[String], second: F[String]): Example[F] =
(alg: ExampleAlg[F]) ?=> alg.exampleNode(first, second)
given ExampleAlg[IO] with
override def exampleM(a: String, b: Int): IO[String] = IO(a + b)
override def exampleNode(first: IO[String], second: IO[String]): IO[String] = for {
a <- first
b <- second
concat <- IO(s"{$a, $b}")
} yield concat
def tree[F[_]]: Example[F] = Example
.ExampleNode(
Example.ExampleM("aaa", 11),
Example.ExampleM("bbb", 12)
)
@Test
def check(): Unit = {
println(tree[IO].attempt.unsafeRunSync().getOrElse("No IO!"))
}
}
interface Monoid<Z> {
fun empty(): Z
fun add(a: Z, b: Z): Z
}
interface Foo<Z> {
fun foo(i: Int): Z
}
fun <Z> tree(m: Monoid<Z>, f: Foo<Z>): Z {
return m.add(m.empty(), m.add(f.foo(10), f.foo(2)))
}
Have been coding a bit too much in Kotlin lately lol
you might like arrow-kt
what
there is really no need for most of the stuff that arrow exports
i mean, you don't have to use everything a library offers
https://arrow-kt.io/docs/meta/analysis/ this is really cool
Just so he doesn't miss the degenerate weeb behaviour that occurred
Yeah. I guess what I am trying to say is that in the context of writing Paper plugins I don't see what I could take away from an FP library. There are many situations where arrow could be quite useful (e.g. IO when writing concurrent code).
Kenny’s gonna become Kneny when he reads it
the arrow-meta stuff is awesome though
the thing ive always noticed with functional programming is that it always starts with "just one type" and then a week or two later you've got hundreds of lines of neat methods and extension functions
id save all that time and just minify a lib
if it's just io though you don't need arrow, kotlin's result is really nice
MMmm well Result is just an equivalent of Either<Exception, A>
i think most of arrow's analysis stuff will become obsolete once kotlin finalises their contract builders
The best part about IO is composition operators
There are some situations where having persistent data structures and cancellable/composable IO is a 100x multiplier over old-school concurrency code.
who's writing old-school concurrency in kotlin lmao
imagine having coroutines, flows, etc and just not using them
Something along the lines of parallel randomized search through some non-trivial space (e.g. trying to solve an NP-hard problem).
Coroutines just give you the same api as Future, except very neatly packaged IIUC.
That's not enough
i mean, not really
Saw that a day or so ago in minestom discord.
Let's just say that different concurrency paradigms can sometimes result in 10x improvement in conciseness over other paradigms. I guess a good scenario for IO would be something like: start 5 different implementations of a particular algorithm. The last two implementations should be limited to 2 minutes runtime, race them against each other (different seeds). Some of these implementations are going to spawn their own parallel processes. E.g. one might do some sort of greedy local search with 5 different seeds for 10 seconds, then collect the best result so far and restart from that point iteratively.
And the entire program has to react to Ctrl-C and properly terminate
This is 10 lines with a good IO and just extremely painful with anything else
supervisor job, with timeout, context switching if needed, await all/first - nice custom scopes for stuff if needed - we're talking like maybe 50ish lines with coroutines if that tbh
ignoring implementation details for the algos/etc
Timeouts, cancellation, and all of that should be composable.
Yes, but all of that is already nicely packaged into IO
so to race a against b with a timeout I just do a.timeoutFail(())(5.minutes) race b.timeoutFail(())(5.minutes)
meh a matter of taste
i don't see why you'd use that over a with timeout surrounding an await first on two launched jobs
collectAllSuccessesPar(List(
cancellable(Knapsack.greedy(input, Knapsack.GreedyStrategy.MaxValue, _)),
cancellable(Knapsack.greedy(input, Knapsack.GreedyStrategy.MinWeight, _)),
cancellable(Knapsack.greedy(input, Knapsack.GreedyStrategy.ValueWeightRatio, _)),
cancellable(Knapsack.greedy(input, Knapsack.GreedyStrategy.LocalSearch(
Knapsack.GreedyStrategy.Max(List(Knapsack.GreedyStrategy.MinWeight, Knapsack.GreedyStrategy.MaxValue, Knapsack.GreedyStrategy.ValueWeightRatio)),
2,
Knapsack.GreedyStrategy.Max(List(Knapsack.GreedyStrategy.MinWeight, Knapsack.GreedyStrategy.MaxValue, Knapsack.GreedyStrategy.ValueWeightRatio))
), _)),
cancellable(Knapsack.dp(input, _)).timeoutFail(())(5.minutes) race
cancellable(Knapsack.dfs(input, _)).timeoutFail(())(5.minutes)
)).map { outputs => outputs.maxBy(_.value) }
an example of a real life code
cancellable allows proper cancellation for old-school non-IO code
maybe you can show how you would write it with async await
are you genuinely trying to tell me that is nicer, more readable code than two awaits
got to be trolling at this point lmao
gg
wtf is (())()
timeoutFail is a curried function. you can roughly think of that code as a.timeoutFail(Unit.VALUE).invoke(...)
hehehe
genuinely would be as easy as throwing two asyncs in a select
like, just wrap that in a small util method and then you could just do withTimeout around the util method
really clear what you're doing, incredibly readable and doesn't look like some of the ugliest code ive ever seen
The last part is very subjective.
sure sure
And collectAllSuccessesPar? It runs all arguments on a thread pool collecting all correctly finishing jobs into a list in the same order as they were specified.
It handles cancellation correctly
the right scope will handle cancellation successfully
By thread pool I don't mean that it literally creates a thread pool, that's already part of the runtime.
even ignoring all this, your scenario would literally never happen in sane, real world code
That's sane real world code
what is it doing then
you mean tsp?
I mean, it is real in a sense that solving hard problems using parallelism is real
TSP*
why would you be writing something to solve that yourself
dumbest shit ive heard in a while
You have no manners lmao. What if you have a custom scheduling system. You are UPS or Fedex.
in what world is a non-legacy company writing their own code to solve the tsp
instead of using a library or external software to do so
... you do realize that someone writes that software in the first place? And there are people working on better solvers for different problems all the time?
Like SAT solvers improve every single year.
Some problems don't have non-GPL open-source solvers.
I literally had to come up with a novel optimization algorithm for a particular problem at work recently... Because guess what. THERE is no code that solves it ANYWHERE.
It was a very specific case of non-linear optimization on a polyhedron. There is exactly 1 actively maintained library (Parma Polyhedra Library, there is also cddlib but it's old and slow) that solves a problem of converting a system of inequalities to a list of generators for the polyhedron defined by those inequalities and it is GPL. The library is too slow for real life applications because it provides exact solutions.
I guess you live in a world of CRUD and API.
Does anybody know where to ask a question about Multiverse (Portal)? Is there a Discord group for that? I cannot find someting in the server search window.
Where is the paper bot ?
Wasnt there an auto response bot
how to download papermc 1.16.5?
this only 1.18+
downloads page, scroll down, click legacy.
ngl, this is accurate about Components 
https://github.com/Multiverse/Multiverse-Core click on Discord link in the README
Presumably you will find Multiverse-Portal devs there as well.
what is best Multi protocol bungee plugin?
for bungee i don't think there is really any other out there anyway
as a plugin, that is
do anyone know how to forcefully load a resource pack like hypixel does
"forcefully", well, send the resource pack prompt and refuse the player from joining if they refuse
unless 1.18 has changed things
I'm not quite sure
but it used to work like that
not like that iwant server to load resourcepacks without asking players and unload automatically when quittng
like hypixel and wynncraft does
if u dnt understand what im asking ill provide a link
https://hypixel.net/threads/hypixel-auto-loading-resource-packs.3965484/
Is there a way to make hypixel stop automatically loading resource packs when you go into cops n crims. My computer is bad and I already have the resource pack installed but when I go into hypixel it still tries to download it.
1st issue
they ask you when you join for the first time
they want to get rid of that but i want to know how to make server load forecefully
no they dnt
after that it is saved in the client
no they dnt they just load without asking
what is this??
Well, maybe if you send force=true and prompt=false, it will force it.
k i need to try it
A packet that you need to send in order to make a client download a resource pack.
ClientboundResourcePackPacket
and they will unload when we leave the server
That happens automatically
They do
idnt remember that but its auto loading everytime
So every time you join, the client automatically switches over.
I think auto-loading on the client side is a relatively new feature (i.e. it was not present in 1.12 IIRC). There is also a way to disable it.
But all of that happens client-side. The server just sends the resource pack packet. The client can still deny it.
Just go to the resource pack settings while logged in into the server, there is a toggle.
Oh... 😭 If I didn't write that message everything would be okay, but now...
ys normally they will give a pop up showing server requires a resource packs and a button for downloading but in hypixel and wynn its not like that they will forcefully load resourcepacks ucant enter server without loading
only way is to do this
Yes... And if you disable them, you can't login?
Yes. So it's not "forced"
it's not forced
you request the client to accept a resource pack, the user either accepts or denies, and the client will remember it for that server
let me try with a new client
k
@real saddle Just FYI, https://wiki.vg is the number one source on low-level packet details in minecraft. Extremely useful, and always updated in a timely manner.
A while ago my friend made a mod which could cancel server resource packs client sidely, but server would think that everything is okay, but I am not sure is this legal or not, it actually looks like a cheat or something...
of course it's legal
Define "legal" 
you're the one giving yourself the shit resource pack less experience
the server won't care
k
Is MCP still maintained by anyone btw?
it is
I have a mod that I made in the good old MCP days and I am too lazy to update it for Fabric 
Stop, who? Mcp mappings is, mcp toolchain - no
Ah, that thing which is used in yt tutorials for making cheats
It doesn't support server side iirc
When I admin my server I use Wurst
cheats have a legitimate use
Makes it easy for me to see what a cheater would see (e.g. xray, ESP, etc).
anyone here can help me real quick with a linux problem?
i dont know if you guys use linux
i cant accees my phone's storage
with the USB cable
You might want to google that one.
it says either
Could not enter folder /Galaxy J3(2017).
or
The file or folder udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 does not exist.
how would one design a minecraft-like java project with a client and server side. Are the client and server sides different "projects" and they can that way export two jars. But doesn't common code also have access to client and server code? That would be recursive dependencies.
This is highly illegal
you and your friend will be arrested this very day
No, dependencies would run only one way. Client -> Common and Server -> Common.
how old are you?
Then, it means we are russian criminals
You could have something like Client_Mod -> Common_API, Common_Client; Common_Client -> Common_API, Client_API; ...
that way both mods would depend on an API for a common library plus a platform-specific implementation of that library
Why do you need my age?
ah yeah, but doesn't Minecraft's common have access to server stuff? Like level instanceof ServerLevel is quite common
or is the server common as the client will also have server code, with the integrated server
Ah, I see what you mean. I think they don't split them into separate projects to begin with.
They just shade & minimize them using proguard.
Can the AMD FX-4100 run off DDR2 RAM?
Basically, they have a single module that contains both the server and the client code without separation. They compile everything together, then run 2 separate proguard jobs to produce a client (with its own main function) and a server jar.
I think that common, server and client are separated in subprojecs, and it all compile like client + common and server + common and then run proguard
I think it is more cleaner because what happens if some mojang employee accidentialy use server specific code on a client or client specific code on a server?
Possibly, but @dense holly is suggesting that there are references to server in common code IIUC.
Which would imply that they are all compiled as a single module in maven / gradle / whatever.
Can Anyone help me for anti xray in nether ??
Yeah exactly so that’s what’s also making me think they have it as one project and just proguard away unused classes for the sides like you said, or if they remove the .client / .server packages
And thinking about it the server must also have the server code, at least some, as it runs an integrated server
aka singleplayer
urg, I hate people who are unable to configure their teams meetings properly
I got a company email, just lemme in automatically, holy shit
dum consultants
man
paper
the date is 2022, two years pandemic of only teams meetings, yet people still manage to not mute when entering a meeting
heck, teams auto mutes you, so they unmuted manually just so that we can hear his whatsapp sounds
I hate people
No snapshot today - stay tuned, we're aiming to ship this week's snapshot tomorrow.
whats the thingy called where you type "for" in intellij and then press tab and it'll fill in the for loop template?
live templates, thanks guys
happy to help!
np 😄
XD i forget make this but generally teams notify me when external try to enter for join and allow...
When your language handles keywords too freely:
WinDoWS: hold my beer
Meanwhile python:
For everyone who hasn't figured this out yet
When a manager asks for a status update on a project, that’s mean they don’t have that information
Which means you can just...make it up
369
In other news, instead of making nuxt 3 stable they spend time on this
Man am happy we jumped the ship
Someone gotta help him^
dejavu about this image xd
Hmmm...
It will come again once it hits Facebook
I once saw someone ask how to disable the GC, I thought that was the dumbest question ever... until now.
He got a point tho
disabling GC can work
epsilon gc
I swear this guy would ping you to help him run paper server without mc
Just disable GC and then restart the server every time you run out of ram to get better performance
Reminder to docker image prune every now and then
True
docker system prune is better since it does everything
But... every paper user did it, cuz paperclip has no minecraft bundled (illegal), it has only binary patches, so when you run paper for the first time you really run paper without mc, but then it downloads mc, patches and caches it
Hmm, if the Pixel 6a rumors end up being true I think I'm going to get one
Same SoC and main camera as the Pixel 6 but with a smaller screen and less RAM
Wtf is wrong with my pc today
Out of the blue it crashed 3 times now already
First time in fucking ages
What os?
Am not looking for support
noob
Oh wait, I know exactly one os that crashes
Thats about the only thing that doesn't crash one me, the OS
🪟
Volvo.
one rider project is permantly bricked now somehow, it just doesnt want to open anymore even after removing the .idea folder 
and after cloning again
I think one of my drives doesn't like me anymore or something
I had this happen before with an ssd
hmmm
But magician claims everything is fine soooooo
I still have two 2 TB drives laying in front of my that I didn't bother to put in yet, lol
Brought them on black friday, lmao
they are quite black alright
dip them in ink to make them blacker
vanta black
call 1800-I-AM-AN-IDIOT for more good tech tips
Fun fact if something was 100% black it'd absorb so much heat it'd literally catch fire on its own
Nope
All that mining killed your GPU
What about reflective material like stainless steel? 
There are like 99.9% black paints
if it crashes again now Ill finally give in and clean up my drives and install windows 11 or something
yikes
Did you at least see why Windows said it crashed? 😛
as it was the plan half a year ago 😄
linux debian
I thought mine was dying hardware once but after pulling up the logs it ended up being the shitty manufacturer driver for my USB 3 controller
The Microsoft one is newer but this driver tool kept wanting to install the manufacturer one since it was a specific thing and not some generic USB support thing so I finally let it
Then a while later it just started crashing even without anything plugged in to the USB 3 ports it controlled
I dont see anything in event viewer, or am dum I guess
i had my system randomly turn off for weeks to then come to the conclusion it was my GPU overheating
100°C seemed fine to me
:realization:
I always use http://www.nirsoft.net/utils/blue_screen_view.html
Displays information about blue screen crashes occured on your system. (MiniDump Reader)
Nirsoft
Dafuq, again
MiniDigger more like MiniDump amirite
Submerge your computer in water, then it cannot get hotter than 100°
I am pretty sure it's drive related
thats a lie
Mineral oil
(The water)
Physics true
oh true
Then your pc is broken
Urg, guess that ends the hangar streak, I'll sort thru my drives and clean up stuff so that I can add the new drives, lol
just create a readme commit via the webeditor
thats why you run RAID5 /s
Mineral oil just gives you a shit load of thermal mass, you still eventually get too hot and need some kind of cooling
it doesnt even write minidumps ^^
It just tanks a lot of heat
well i more so ment that you can literally drop your pc in an aquarium with that stuff
I've never seen a drive failure cause a reboot or power off and the only things I've seen cause no minidump are... bad
But maybe ¯_(ツ)_/¯
"Dump file creation failed due to error during dump creation."
Well, with the right circulation (and a heat pump), you could possibly cool down lots of hot mineral oil
"The driver detected a controller error on \Device\RaidPort4."
I dont have a raid
lol
You must have raid support enabled in UEFI
well see theres your issue /s
If you're reinstalling Windows anyway maybe you should turn that off 😛
well, whatever, I need to do this cleanup anyways so now is a good time
Arch linux ftw
If you aren't reinstalling Windows I don't think you can change that setting
so they finally added it for GPU but still not for CPU
Nvidia geforce rtx 4090
move your asses MS
ok, whats the best way to clean up drive space, I guess Ill grep for node_modules and delete it 😄
OH NO
skewed, let it run for a bit
clear your gradle caches ig
It didn't just go up to 100%, goofy graph only starts when you open task manager 😛
format C:
gradle caches are probably like 20 GB considering you work on paper and paperweight
node_modules is probably at least 2 GB
If you build any rust projects they'll eat up a lot of space for build cache too
Or even just cargo install them since that also builds them
Oh, and the cargo cache
Just run windirstat
Literally no one uses rust 

I hate it, it breaks my bike chain
That reminds me, apparently on South Park every time they show the school building now they have gunshot noises then just move on to the scene like nothing happened
god bless America
reminds me of that line where they were like
"we should shoot up the school"
"We need something original Butters"
for the pajama day episode
Wtf is #entwicklungsgeräusche
69885 items: this is fine
I had 8 (!) windows isos in my downloads folder
why...
german for development noises
because I never clean up stuff
yeah I know, but why tf do we need it
look, random image of when paper was trending on gh
thats the kinda stuff I keep in my downloads folder
channel is setup so that it gates out trolls but allows people to like, idle in there during upstreams, etc
lmao, this pdf https://i.imgur.com/zawI3os.png
Who is Oskar?
lmao
Who made that, and why?
doesn't IQ compare with age anyways
A true classic 
whats the best way to install windows onto a new drive nowadays? lol
dism /apply-image
either mediacreationtool or uupdump
medicreationtool supports installing directly to a drive?
you create a bootable usb and reboot into it
I don't want to create an usb drive, idk if I have one anywhere, lol
michael understood it
meant the oskar thing
Fun, when I put in my 850 now, my system doesn't boot anymore?
Like doesn't even post, suck on displaying a _
Lmao
god I fucking love naomi wu at times
aka
wut
she has a way with words
How is my system so fucked
I think the boot record or whatever isn't stored on my system drive
So when I remove this random drive, that windows doesn't even detect a partition on, I can't boot into my current OS anymore 😂
Yea, I did that fun in the past

wat


