#ot1-perplexing-regexing
1 messages ยท Page 571 of 1
she's nearly doubled her order Queue this morning, and it's 11AM
Can u really rickroll ur os kernel??
Pls tell me u can
Then i can call myself the ultimate rickroller
so... @viral parrot has a script that can do that
something like playing a sound effect the moment the pc boots up?
public class Main
{
int x = 5;
int y = 10;
public static void main(String[] args)
{
Main myObj1 = new Main();
Main myObj2 = new Main();
}
}```
over here, would myObj1 be 5 and myObj2 be 10?
cuz i tried to check using
System.out.println(myObj2.y);```
but when i print, i have to manually declare .x or .y
over here, would myObj1 be 5 and myObj2 be 10?
no
each object will have two fields x and y
myObj1.x and myObj2.x are both 5
myObj1.y and myObj2.y are both 10
oh icic thanks
๐
I wonder how you rickroll at the kernel level
Rust
Im kinda glad people are keeping some traditions alive like rick rolling, but im also kinda sad cause that shit cringe af famalam
https://www.youtube.com/watch?v=j5a0jTc9S10&list=PLtcJBMFw-xBStidirECURLKs9-AtPE57D&index=6 UwU i found this
It's simple: For all you cute animal lovers:
A
Cute
Little
Golden
Retriever
Puppy
Video
Designed
To
Make
You
Say
Aww...
Just when you think the video cant get any cuter.... it does
For all you dog lovers out there, you will be so happy to see this adorable little puppy
Enjoy this video, Alex!
Disclaimer I do not ow...
that's not even a good rick roll ๐
title clearly wants you to click on it but is too vague
lol
They haven't perfected the art yet
iirc that video is many years old
still learning
lol
seeing wot
you're seeing the parser switch document psf/black has and GVR's additions
https://www.epicgames.com/store/en-US/p/discord--discord-nitro free discord nitro ๐๏ธ
it ain't fake
i got it, but I don't have epic games lol, can't download on linux
no need to download.., u can directly buy it on web and you will get the link in your mail?
"free"
requires payment info
ye, like how netflix was
yes
>thing that you pay for for free
>credit card info required

but like
yeah sure free trials exist
but i dont think epic can give free trials for discord nitro
epic and discord are in no way related, company wise
lol
basically though like
the scam part is them wanting to charge you if you forget to cancel
or for future purposes - which could be helpful
thats happening to me all the time
but say you forgot to cancel before it ran out, boop there goes the money you didn't want to spend
you could also just get a burner card offline and preload like 1 dollar onto it
and then it'll accept it
its paper money losing value
inflation?
wonder how much Discord makes in 3 months, and how much of that they refund
anyone have time for a quick code review https://github.com/The1Divider/chess/blob/main/tests.py
How come you decided against using a testing framework?
Why is there an __exit__ but no __enter__? That dunder is meant to be used to implement a context manager.
I've never used a testing framework/done any testing before but I just figured because I have to parse + monkeypatch the tests in, I wouldn't be able to do it
I have no clue I thought __exit__ would be called if there was an exception raised
lmao
in c, scanf requires users to input every value in a new line
can we get the input to be on the same line
@solid pollen do you have the akarys heart emoji source?
Hmmmmmm
or hmm, just copy the link from gurkult

sus
yes
anyone want nitro? i dont have credit card, so if anyone has credit card use this
Oh pydis bot delete nitro gift?
yes
probably self bots
yes
possibly*
now ur nitro is gone
rip
self bots cant delete my message
oh ye
pydis bot
idk how gift nitro messages work, i thought they get deleted automatically on claiming
idk
no, it says someone claimed
so i shud not send it here?
correct
ok
ok
or the mods are self botting 
lol
wow is that an accusation
pydis bot delete nitro gifts and put it #deleted-message-logs lol
lmao
the pydis bot does delete nitro gifts, yeah, because it isn't a great idea to send them here...
yes
on such a large server it's likely there will be selfbots that will just claim it automatically
yes
the epic games thing
and u think all people dont have credit cards?
most wont who ever are selfbotting
imagine i selfbot with a card, discord catches me and bans me and my card hmm
yes
nah nvm discord will never ban their source on income lmao
lol
if they're botting, they're not paying
so they do have an incentive to ban botters, kind of
There were people with nitro admitting to being below 13 here, sooo...
Anybody who have early given ZCO ?
bird
๐ฆ
birdo

lol
that's kinda weird
very
here's some more
i downsized them so i could send more w/out filling the screen
automute when
lol
this isn't the default logo btw
brb
no nvm the extent of my editing stops before making a custom vsc office logo
lol
there are a lot of ppl abusing the new Discord/Epic nitro giveaway, I assume there will be a lot of bans 
like?
here we go
what is it with you and VSC
look at my pfp ๐
wouldn't you like to know 
I won't spread it and don't ask
ok
basically ppl getting boosted to level 3 and beyond lol
That doesn't answer the question lol
because of 30 nitrohack accounts
yes it does
honestly the exploit is just incredibly bad screw up on their end, so bad that I might even think it's intentional
eh, no. Often people are using fake credit card numbers
can't you detect that? I dunno honestly
but they don't even check the adress, you can type whatever adress you want
and how come they don't check very high number of ppl using the same cards?
it's just bad screw up from them
pretty sure like tens of thousands of people have done that, some being clueless
what will discord do now lol
lol
as long as Epic is loosing money it's alright by me 
I'm pissed by their way of throwing money around
i mean, its better than Apple just consuming money
EPIC is atleast giving stuff around
for free
lol whats that
fortnite i guess
some internal scams or something
who knows
all I know is that they are very much in loss giving away free stuff like this
i feel that discord kinda purposely gave away 3 months of nitro on epic
they are dumb
I think they want to attract ppl to their store/launcher
so they are giving and throwing money at it
they just forgot one thing
to actually improve the god damn launcher
sdfg
wait fr?
asdf
i guess
it was supposed to have marketplace for cosmetics or smth but it's dead
definitely
launcher is fine on higher end PC's
is epic games dying or something
on slower ones, its ass
doubt
nope, UE 5
to attract ppl
they still have a shit ton of money, and few software that still make hundred of millions
o smort
advertising
well at least the consumers are benefitting
i ain't part of it ๐ค
At the cost of shitty launcher 
I regret having it now for some reason
my discord rn
lol
I just don't get it, launcher has been around for years and years and it's still ultra shit, why don't they spend some money to pay devs to improve it?
is it made with electron 
or en-jinx?
it used to be ass on my laptop, but after some updates its more performant
so? Electron is dope
electron is ok
i guess they used javafx or something
inb4 neutron
is there something else you'd prefer
lol
flutter? idk
inb4 qt
๐ฟ
inb4 inb4
dunno those are kinda oldish, trend is having desktop apps with web technology
ig new qt6 iirc that is more modern
Qt6 is pog
flutter isnt old, qt6 idk anything abt
Meanwhile, I have no clue as to how Qt6 compares to Qt5
i mean yeah its not like electron - with the web tech
its only PC
but its really performant
3D stuff mostly
3D? O.o
OpenGL improvements iirc
3d!? thats 1 more than 2d!!!!!!
I've not seen any "3D" Qt applications
its insane
hello?
yo can u tel me some well known qt apps
mercedes benz UI
huh?
oh yea LG tvs use it too
qt is huge
C++ is hard to learn
i mean
sorry
C++ is hard to uhh
you have wrappers, like for python you can use PyQT
process
processing
hmm
maintain, error handling is tough i guess
fuck discord
so can i ๐
yeah but python is not really fast yeah?
I kind of feel like this is just you
the startup times are ass sometimes
sad
it's just wrapper so it shouldn't affect it that much
yes, but startup is a problem is all
i'm worried lol
it started to work as soon as i turned on my vpn
besides why are you concerned with GUI perfomance? It's mostly just buttons and stuf
ah good point I forgot
although i suppose that means that it could be area related
not a memory hog ๐
so where i live is having issues with discord maybe
yes
yes

fuck java
wha is that
hah
regarding flutter, the crossplatform compatibility is so damn good
i agree
swing is ancient and look outdated
lol
you only need to use flutter tbh
swing old?!?
why learn anything else
yup
take that ๐
dunno I always had high memory footprint with that, after optimatizations best I could do is 20mb for ultra simple app 
that's been there for years
by now it's like 20 billion
lol
youd think they would increase that number on the installer
wait
i thoguht that kinda stuff was made in c
yes

Glad this one is not gone; I spent an unacceptable time making this...
just listen to this
while doing math
especially trigonometry
LOL ITS A CLOUDFLARE ISSUE
tomorrow, amazon aws and microsoft azure. Or maybe Google Cloud Compute
after all, fastly was just hit
hmmmm
.status cat 206
๐ณ
D: that's sad
I think I'm sticking to .status cat
๐
.
What
๐ค
ah i wasn't referring the account, i meant the credit card
don't ping me and edit it out
i realized I shouldn't have pinged you there sorry
run while u can boy
๐โโ๏ธ
Ghost pinging is more annoying than simply clarifying that you incorrectly pinged

travelling salesman in rust 
did he manage to sell anything
ant trafficking
it is all ants
ant right violation
so they sold honey or smth idk
wtv
yes
steal from bees and sell as their own
aco
very ncie
ikr
nice, what does this use for the visualization?
SFML
gesundheit

these bindings?
https://docs.rs/sfml/0.16.0/sfml/
Rust bindings for SFML, the Simple and Fast Multimedia Library.
yeah
interesting
yes
looks like
https://crates.io/crates/gfx/0.18.2
is a more popular one (I checked what ggez uses)
smfl
hmm
I wonder how they compare
so fuck my life
lol now vinam has to rewrite again
i find it comfortable to use sfml
lol
lmao
@latent scaffold
VSCode :[
nice!
solve those warnings ๐๐๐๐

Rust compiler warnings are always quite clear though so it's not too crazy
yeah
lmao I'm always so picky about solving warnings as soon as I get them
not sure what to do about this one rn tho
always gotta have that green check mark
well, depending on what you are doing in None, you can use the .entry way instead of matching on what get gives you
lol me too
damn ive been working on this in Unity, nice job. what did you you use for GUI?
lol, I had the same question
#ot1-perplexing-regexing message
๐
@quick ridge This is all I like to see when I'm in my terminal. Current working directory and whether I'm in a git repo or not haha
man thats crazy - i show my path - time uptime etc -
i have autocompleteion and path hot-commands
๐ฉ cant function without it lol
Well I can add more features with zsh plugins, but I don't like to see too much information on the screen at once
Me: *sees the channel name*
Also me: *ghost ping mods*
imagine using ls instead of exa tho
Imagine using exa instead of lsdeluxe tho
yikes...
theres only one LSD i use daily ๐
๐
Nice!
This message was sponsored by zsh + powerlevel10k
I remember discovering zsh and thinking the powerline themes were awesome so I installed powerlevel9k ๐คฆโโ๏ธ
It was a good thing powerlevel10k uses the same configs
It's so nice
I eventually should really look into configuring it more, my zshrc feels so empty
what does a "git plugin" entail?
It really just shortens all the git commands you would typically use, my favorite being gst which replaces git status
You could do it all with aliases, but it's easier to just use the plugin
Some bat nice
lmao I couldn't even be bothered to format it
At one point, I did care... but now with like poetry, p10k and stuff, I get confused where I'm meant to put things
like p10k demands that it be run last
or something
Yessss I used to run into that issue a lot
But I don't do a lot of configuring anymore
Thankfully zsh is kind of great out of the box
it has quite a few built-in prompts
if you enable the prompt component, you get the prompt command
has some pretty "okay" basic prompts
My biggest issue was how much time I spent configuring things and not actually using them haha
I even started getting into ricing which I quit shortly after because it's very time consuming
Yeah, I barely did anything with my KDE "rice"
Eventually I just go with "this looks good enough, and it's effective"
Right
'me in a nutshell

it doesn't work with light mode
L


@edgy crest which linux distro are you on?
manojro
windows
ohk, i am also thinking of shifting to linux distro
yes
Oh, damn

ayyy
i got ubuntu on a non-system drive
now i have both linux and windows
i can make fun of both sides now ๐
imagine using ubuntu 
also get made fun of by both sides ๐

๐
hi
No its not me
for boolean values, when do we use if (!isEliminated) vs if (isEliminated == false)?
well, the latter is more verbose for no reason
oh so it still works?
sure, why not? you can compare two booleans with ==
it's just a weird way of doing that
yes
oh ok thx
in Rust, clippy has a lint for this
if a==false{
println!("yay");
}
warning: equality checks against false can be replaced by a negation
--> src/main.rs:5:8
|
5 | if a==false{
| ^^^^^^^^ help: try simplifying it as shown: `!a`
|
= note: `#[warn(clippy::bool_comparison)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
clippy is amazing.
o, ill give it a try
if you're using rust-analyzer or the Rust extension, you already are using it, I'm fairly sure
Is that JavaScript?
hmm, actually not sure about rust-analyzer
im doing c
i always get confused when returning true or false in a loop
eg.
bool vote(int voter, int rank, string name)
{
//iterate through each candidate
for (int i = 0; i < candidate_count; i++)
{
//check if it is existing name
if (strcmp(name, candidates[i].name) == 0)
{
//if name matches, add vote choice to correct location in preferences
preferences[voter][rank] = i;
return true;
}
}
return false;
}```
like here, you return true in the for loop, but false in the outer loop
i want to put false as else under if but at the same time it shouldnt be in the for loop
The rust-analyzer extension is great
well, in Python you could write this as
for candidate in candidates:
if #...:
return True
else:
return False
oh, under the if? That's just wrong, that'd mean the loop always ends on the first iteration no matter what
oh i was thinking end when (strcmp(name, candidates[i].name) != 0)
why is it if we put under else it would end on the first iteration no matter what
...well, in what case will
if (strcmp(name, candidates[i].name) == 0)
{
//if name matches, add vote choice to correct location in preferences
preferences[voter][rank] = i;
return true;
}
else {
return false;
}
not return?
uh isit if (strcmp(name, candidates[i].name) != 0)
not sure what you mean
then it'll return false
show the code you're suggesting then
ya this one
strcmp(name, candidates[i].name) is either == 0, or != 0
if its == 0, it'll enter the if and return true
if its != 0, it'll enter the else and return false
in either case, it ends right in the first iteration
oh yeah
but I don't get why this is wrong other than the fact that there isn't a return function for outside the for loop
{
//if name matches, add vote choice to correct location in preferences
preferences[voter][rank] = i;
return true;
}
else {
return false;
}```
what about the fact that it always ends in the first iteration
I thought that's okay cuz you're going to return false anyway so its okay to end after the first iteration
cuz you're going to return false anyway
why'd that be the case?
if its outside the loop, then the full loop has to complete before you return false
its entirely possible that it would return true at the 5th iteration
I'm not sure but this is how I see it, I think there's a conceptual error
for this function, if there's a name input that isn't listed in the previous array, it shd return false and it would break completely so it doesn't matter if the subsequent values in the loop are true/false cuz by returning one false value, the program breaks
yeah I'm not sure when we return false, does the program end?
yep
I decided to use an old tablet (6/7 years old) as a second screen to go through some tutorials
it's a bit slow... I might format it latter, maybe have it run linux
but this left me thinking, is there a way to fight against programmed obsolescence?
note: i'm around 30 minutes in, I can't still get a video to play ๐
technically it plays, but it's always a youtube add on endless loop
I have an 8-year-old Android tablet that I use mostly as an ebook reader and sudoku player
you can install firefox with ublock origin, and youtube works just fine
If it's an Android, I'd say just try and use LineageOS
oh jeez
what test framework do you guys use for c++? gtest, ctest, cxxtest?
what's "ens3" even mean
Reminds me of like... ethernet
also I see you use Stylus :O
what for?
a network interface backed by a PCI express hotplug slot
so slot 0 is ens0
etc.
you can also get enp1s3 for other types of pci adapters
Interesting. I definitely won't remember that
and then you will also see eth0
which is where no firmware information can determine a name
oh and eno[1-N] as well
the whole thing is called predictable interface names so you can consistently script around network interfaces
makes sense
lol i don't even know, i used to have it for github, but now it's just there
no thoughts on the list
โโ[username@box] - [~]
โโ[$] ubuntu-drivers list
WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level
nvidia-driver-450-server, (kernel modules provided by linux-modules-nvidia-450-server-generic-hwe-20.04-edge)
nvidia-driver-460-server, (kernel modules provided by linux-modules-nvidia-460-server-generic-hwe-20.04-edge)
nvidia-driver-465, (kernel modules provided by linux-modules-nvidia-465-generic-hwe-20.04-edge)
nvidia-driver-418-server, (kernel modules provided by linux-modules-nvidia-418-server-generic-hwe-20.04-edge)
nvidia-driver-460, (kernel modules provided by linux-modules-nvidia-460-generic-hwe-20.04-edge)
nvidia-driver-390, (kernel modules provided by linux-modules-nvidia-390-generic-hwe-20.04-edge)
What is this warning and is this a security issue of some kind? package has invalid Support Legacyheader, cannot determine support level
GPU seems to work.
Do I need all of those drivers to use 460?
uh... no
should just be able to like sudo ubuntu-drivers auto-install
โโ[$] ubuntu-drivers --help | grep install | tail -n 2
autoinstall Deprecated, please use "install" instead
install Install a driver [driver[:version][,driver[:version]]]
I tried to do ubuntu-drivers install nvidia-driver-460 but it just says
no drivers found for this installation
That being said, everything seems to work. I just dont like that warning.
I don't want the 390 and anything i dont need
These drivers are all installed via apt, but i feel like they are baggage and vulnerable to be left there if not needed
well 460 and 390 are there. I think im going to straight up remove 390 and if it breaks, I will fix it in recovery shell.
weird
Okay, so apparently its not installed. Maybe the output of ubuntu-drivers list refers to options, not things that are installed... I dont like the warning but I dont know what it means and apparently no one else on the Google does either haha
It works so maybe i shouldnt worry about it
WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level
what does this mean
oh yes it's only options
apparently it also has stuff for Rust
intellij?
I'm working on building a 6th color of magic for MTG. Its a fun challenge (a hard one too)
I'll ask you guys to suspend your disbelief, I know and agree with most of the reasons not to add a sixth color: its just a fun thing to keep me busy is all
Anyway, I've toyed around with mechanics but I've decided what I really need to do is define the color's personality first and let the mechanics stem from that
Gold is the color of perseverance in the face of adversity. Goldโs truest belief is that anything is possible with only a dream and the will to make it happen. This sense of pragmatism stems from a deep mistrust of the natural orderโone which it believes exists solely to grind down peoples and their achievements. Pragmatic and ever the optimist, Gold seeks to manifest its own destiny through cooperation, wit, and an unyielding will to build a better world.
My color is Gold and as it stands right now it sits between Blue and White. I wanted to get you guys thoughts. I know its just one paragraph but I've actually put a great deal of thought into it. As the thesis paragraph for the entire color it should embody all of the core concepts I'd like my color to have
Those ideas are, loosely: hard work, endurance, technology, technocracy, mistrust of nature, stubbornness, wit, cooperation, defensiveness, capitalism, social responsibility (taxation will be a fun mechanic to play with), and sustainability
The main thing I think I'm missing is the capitalism related stuff ๐ Not sure how to work it in
it seems to me that unlike the mindsets associated with every other color which can go anywhere from nice to really scary, this one is strictly "good".
Its the classic issue a writer faces- giving the character that is dear to their heart a dark side
pretty much
The main character flaws I'm trying to work in as of now are pretty weak. That its distrust of nature and its stubbornness leaves it blind to the nuances of the world, and that being capitalist and technocratic, it leaves little room for the weak or for democracy
I think the core of what I'm working with is different enough from the other colors to work with. Have you got any suggestions?
you could go further and make them the kind of rational that would, being a ruler, euthanize all the elderly and sick people because they are a waste of resources... but that's kinda White
I mean, I really like the idea of taxation
woah woah woah this doesn't sound great out of context
For technical reasons I want to stick with capitalism, but communism (the Russian kind) might be a bit more accurate
Pragmatic + Authoritarian = taking from the strong to give to the weak
uhh do you mean the opposite?
I guess so. (I've got competing ideas fighting in my head)
I suppose an authoritarian communism works well. China's government is technocratic and nature and the whole idea of communism was supposed to be a better world for everyone
And I could take examples from the real world. Especially when it comes to one of white and blue's main intersections, detention (forced tapping, preventing untapping, and preventing creatures from attacking or being tapped)
Imagine Like.
Needing to Declare That You Are defining a function.
amazing, amirite
instead of just assuming it based off a name and a () ๐คช
fn main() {
}
``` so pretty
int main() {
}
I prefer type declarations with : and -> over type name
yeah, rust too

exactly why we do not use C++ =D
I'd say that's one of the few things that C++ does right
GOD DAMNNN
fn foo() -> Vec<u32> {
let mut myvec = Vec::new();
let mut x: u32 = 10;
myvec.push(x);
myvec
}
why mut x
does C have type inference?
It's a mess, but the -> annotation feels better than whatever that is
C has no type inference to my knowledge.
rust better then
HRRRRRRRRRRRRRRRRRRRRRRRRRRRRNG
gotta have the type inference
C++ has auto
lmao
C doesn't have type inference, C++ does.
yes
kotlin?
yes
nice
we should just return to monke and code in C.
anarcho primitivism.
lmfao this language is cool but so much is new to me
Go back, I want to be monke
Rust can compile to JS, can C do that?
By the way, check out this article ๐
https://queue.acm.org/detail.cfm?id=3212479
In the wake of the recent Meltdown and Spectre vulnerabilities, it
fine, asm then
it argues that C fails at being a low-level language by not having the right design for modern processors
eh yeah honestly i could see that.
i never fully read that paper though.
but i can see it being true.
yeah, any assumption that C will behave the way your hardware behaves is unfounded. It's low level, but it's no longer just a macro assembler
also how dare you assume my computer specs. 
not even ANSI C can save us now.
truly terrifying times we live in.
for instance, hardware has predictable behavior on signed integer overflow, but that's undefined behavior in C, and optimizers can remove code based on an assumption that signed integer overflow wraps
This function, for instance:
int add_5(int *x) {
if (*x + 5 < *x) {
printf("Overflow detected!\n");
return 1;
}
*x += 5;
return 0;
}
isn't gonna do what the author expected it to.
The optimizer's gonna come along and optimize that to:
int add_5(int *x) {
*x += 5;
return 0;
}

it'll remove the branch that can only be true if the user's code performs a signed integer overflow, because signed integer overflows are undefined behavior, and so it's allowed to ignore the case where they occur.
I think I'm falling in love
and you can have a sealed class Animal with subclasses Cat and Dog, and then you can match on it!
@latent scaffold
fun main() {
handle(Cat("Whiskers"))
handle(Dog("Dawg"))
}
fun handle(animal: Animal){
when (animal){
is Cat -> animal.meow()
is Dog -> animal.bark()
}
}
sealed class Animal(var name: String){}
class Cat(name: String): Animal(name){
fun meow(){
println("${this.name} meows!")
}
}
class Dog(name: String): Animal(name){
fun bark(){
println("${this.name} barks!")
}
}
check this out
Rust-like enums and pattern matching in Kotlin โค๏ธ
note how I didn't need any type casting in handle
unlike Java, Kotlin is smart enough to know that inside an is Cat match arm, animal is a Cat and so has meow
And what sealed does here is allows us to not include an else arm in that when which would be required for a normal class
because with sealed classes, the compiler knows all possible variants at compile-time and so can be sure two arms is all that can happen.
Ohh, that's cool
There are so many small things that I'm learning that I find to be really neat
oh yes, that was in the Koan
CAT
CAT CAT CAT
CAT AT
hm
I should learn kotlin
Openjdk
Minecraft 1.17 requires 16 haha
17's still in early access
I guess time flies when youre having fun stuck in a lockdown
ah
show
uh... what
I duno
sealed class Animal(val name: String) {
init {
println("Created Animal named `$name`")
}
fun speak() {
when (this) {
is Cat -> this.meow()
is Dog -> this.bark()
}
}
}
class Cat(name: String) : Animal(name) {
fun meow() {
println("${this.name} meows!")
}
}
class Dog(name: String) : Animal(name) {
fun bark() {
println("${this.name} barks!")
}
}
fun main() {
Cat("Whiskers").speak()
Dog("Brutus").speak()
}
I decided to play around with some of sealed class
This is great haha
This is Kotlin
Why does kotlin get such colourful highlighting
what theme is this
Man, I always thought Kotlin was just "Java but better"
Material Moonlight
i want it
ok
I need to fix my fucked up settings first though
Might just do a complete reinstall
I have no idea what the fuck went wrong
What OS?
ah. I dunno then
and I can't find the settings where WSL is configured in intellij
fuck, I wish valorant worked on linux
I think it's your terminal
then I might just switch over my PC too
ยฏ_(ใ)_/ยฏ
I dunno, all I had to do was like sudo zypper in java-16-openjdk or something like that
also, EduTools is actually kind of neat
fuck
yes
Yeet WSL
I'm very tempted at installing arch on my pc
but my friends would freak out at me
because then no more valorant
I guess just dual boot for a single game
wow
a server im in is getting raided
with over 50 accounts
just mass pinging
defintely they are testing if their bots work since there's only 200 total members
and 100 of those are bots
eh discord moment
(these people were the raiders)
Im having a brain fart. What is the word for when a company is legally entitled to get paid if you profit off something because they own its engineering. Like... they have engineered a seed, so farmers must pay them if they sell its fruit
it starts with a t maybe?
no, its a patent
were you looking for trademark
that's an agreement
there's a better term for it
wait lemme thonk

var lBuilder = $SM.get('game.builder.level');
if (lBuilder === 0) {
Notifications.notify(Room, _(`a ragged stranger stumbles through the door and collapses in the corner.
one arm must be slotted with some type of chrome -- an amputated stump -- no, automated SurgOps intelligence,
with a Deploy&Maintain strategy to administer PIVC: peripheral intraveinous catheter. loading six rounds into
his arm in less than a second, he cocks one back and fires. The orgasmic wave that comes over his eyes could
be nothing else but the pink Moderna octogons. a racemic mixture of isotopes for which they own the patent.`));
lBuilder = $SM.setget('game.builder.level', 1);
Engine.setTimeout(Room.unlockCity, Room._NEED_OCTOGONS_DELAY);
}
else if (lBuilder < 3 && $SM.get('game.stability.value') >= Room.StabilityEnum.Insecure.value) {
var msg = "";
switch (lBuilder) {
case 1:
msg = _(`the stranger shivers, and mumbles quietly. their words are unintelligible.
an s-deck in their pocket chimes with alert every few seconds: \"warning:
battery at 5%. disconnection from net violates terms of service and may affect your credit.
our policy has been updated.\" `);
break;
case 2:
msg = _(`the stranger crawls to an outlet plug and ports in his s-deck in the fetal position.
upon powering on with a familiar start up sound, the device begins to send alerts
with such regularity that as the stranger begins snoring where he lie on the ground,
it's a relief to hear else but the frequent jingles from a proprietary deck.`);
break;
}
no one needs vallorant
hey guys, anyone here interested in collaborating on an open source project using Next.js, TS and GQL? It's a really cool project and would be amazing if you could dm me if you're interested :)
I do ok leave me alone
Aint valorant a rootkit?
Lol @frozen crane #changelog
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
char s[200];
scanf("%s", s);
char *t = "Hello World";
if (strcmp(s, t) == 0)
{
printf("OK");
}
else
{
printf("Wrong Answer");
}
}```
idk why but when i input Hello World, it shows the output Wrong Answer
did i do sth wrong somewhere
see what is answer? print strcmp
what do u mean?
print the difference. strcmp(s, t)
it gets -1
okay if im not mistaken a string ends with that character
add that in Hello World
hold on
\0
"Hello World\0"
still doesnt work
i dont think we need to include \0 cuz for another eg. i can jus compare two strings and it works well
int main(void)
{
char *names[] = {"Bill", "Charlie", "Fred", "George", "Ginny", "Percy", "Ron"};
for (int i = 0; i < 7; i++)
{
if (strcmp(names[i], "Ron") == 0)
{
printf("Found\n");
return 0;
}
}
printf("Not found\n");
return 1;
}```
this works
but idk why this keeps giving wrong ans
i'll need to think, im currently kinda stuck in my own shit, gimmi some time to get back to you.
ah ok no rush thanks
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
char s[200];
scanf("%s", s);
char *t = "Hello World";
if (strcmp(s, t) == 0)
{
printf("OK");
}
else
{
printf("Wrong Answer");
}
}
for this
yes
yes
but the output was wrong ans
try making char *t = "Hello World\n"; instead
hm it still prints wrong ans
can u print out what scanf read
omg what it prints out Hello
oh yeah
yes
I wonder what game can I write an AI for
I want some game I play so that I can measure its performance
chess would be awesome - it is very well researched, would be implementing something like alpha-beta pruning...
problem is, I don't play chess ๐
alpha beta pruning would be kinda....
bud do you imagine how much nodes
i made alpha beta prunning on ttt
but chess. well environment can be made in a while but dude, alpha beta pruning.
imagine the no of nodes only on first move
uhh, it's used for chess anyway though, I'm pretty sure
the Wiki article for A/B uses chess as an example, and also I think I saw in the description of some chess AI (Deep Blue, I think?) that it uses it
Deep Blue used custom VLSI chips to execute the alpha-beta search algorithm in parallel,[12] an example of GOFAI (Good Old-Fashioned Artificial Intelligence).
yup
that fills me with dread somewhat lol
like I said though, no idea if it's a good idea for me to do it for chess
I'd need to start with doing a chess engine...
did you do it for some small game?
nope. I've never implemented classic searches, that's why I want to
isn't alpha beta pruning just bruteforcing but skipping a few routes
idk
hmm, some codingame tasks are probably about it
yes, basically mini max is brute forcing, and in alpha beta we prune a lot of edges(or some) so yeah basically just waht you said.
somedayโข๏ธ i'll try learning this stuff well
they're fun, thats what i did last year. and writing reports of them in latex are boring
thats why i kinda like AI more than the underlined ML
oh yeah i think you shared video no?
yeah i've seen it, i was confused how all this UI
that's a video of the site's UI
which algo btw?
not sure what you mean by that
which algorithm?
are there, like, distinguished algorithms among "genetic algorithms"?
it's just, like... generating some totally random chromosomes (each gene encoding an action), evaluating them, then crossing them over and mutating them for many generations
what algorithms do you think of when someone says "genetic algorithms"?
like, I wasn't even aware there are any specific ones
i thought you meant generic algos like bfs, dfs, best first, A* and some more
like these are all with what i started AI
ah, genetic, not generic ๐
yeah thats why i was confused
basically genetic algorithms are a fancy way of local search, like simulated annealing and beam search
ah i do know stimulated annealing
oh yes small probability
like annealing i see
would you say that implementing a simple neural network is a good starting project for someone with no experience of ai/ml
nope. its baddest.
oh rip
NN are black box, you want to first know things.
aight then
you can get result with libraries easily(using NN and CNN) but not knowledge
what would you suggest as a first project ๐ค
i can tell you what my sir did to us.
make environment first for small problem, then make agents like bfs and dfs with backpropagation.
again, im no export, you better ask in #data-science-and-ml for better(and reliable) answers.
(making environment and agent separate helps a lot) you don't need to make agents again and again for new problem.
in genetic algorithms:
- You have a pool of solutions, not one. I do from 100 to a few thousand
- Instead of just mutating solutions, you also cross them over (apply some binary function that takes two solutions and produces one or two or several "children")
- After generating the children on each step, you select the next generation from the previous one and the children. This is usually done in a mixed elitism-and-random fashion - say, take the top 20% solutions and also 30% of the other ones randomly. Or always take the children. Or some other way.
so this is a very broad category, broad enough that technically you could consider similated annealing and gradient descent to belong to it - they are just weird variants where the population size is 1, there's no crossover, and the mutation and selection function are very specific
will keep in mind
same
(this is skipping a few steps, such that the selection of parents of the next generation is also an arbitrary function)
(I have done totally random, weighted by evaluation score, and best-2-of-random-4)
i see, so can we not pass a function to check solN? thats what i did in some algos.
because there can be a LOT OF possible solN strings
what do you mean?
assume possible SOLNs for chess
- You have a pool of solutions, not one. I do from 100 to a few thousand => this
instead of checking if we reached from a pool of solNs can we not just pass a function which just tells us if that is a solN? it seems more efficient to me.
because as we increase space, the no of solutions can increase exponentially or may be follow even H.
by a pool of solutions, I mean, like, a pool of different actions/action sequences/whatever each chromosome is
oh so possible next actions.?
like, in my lander, each chromosome is an action sequence of a fixed length
(long enough to predict the entire path to the landing)
ah i see.
alright so we define them and do cross over and then mutate over probabilities
similar to annealing.
this shows, for each step of the flight, what the population was at the end of that step
note that far more than one generation passes between each flight timestep
each path is colored from red to yellow according to utility, and valid landing paths are green
in this case, it was able to plan a landing on the first frame




