#ot1-perplexing-regexing
1 messages · Page 353 of 1
yeah which broke its own UI every other day
I'm not sure if it is really worth it, you don't really have the stability you paid for
i love how everyone who doesn't work on a common-user-focused operating system can criticize one.. 😄
I've had 0 issues ever with Win 10
I had some
I used win 10 and man it was slow , crap , UI malfunctions ;-;
and let me point out
you just said you use windows insider - so you should expect some
I've been using windows 10 since insider builds existed
Before insider
long before consumer release
I was a kid when win 10 released , and the first time i saw it in cafe , installing in front of my eyes
How old are you AG**?**
it was like a day or two after it got released
I am 16 RN
I feel old
so i was 11 i think at that time
I had a desktop that went from windows 7, to windows 8 dreamspark, to windows 8 media centre edition, to windows 10 IP, to windows 10 home
that media centre edition loophole was a doozy, it really was
My first system was 98 SE 
my first system was 95
3.1 here. 😄
haha
my first was XP
Did you guys ever hear about that loophole?
Which one
my first was xp too
Same
Well, you remember windows 7 media centre edition
They were offering free upgrades to windows 8 media centre edition
you just went to the site and put in your email and it gave you a key
the problem is, that key worked on any edition of windows 7 or 8
wait win 8 user get a free upgrade to 10
I had dreamspark, which you have to renew yearly
so I just got a media centre key
perpetual windows 8
Yeah, but it's Windows 8
i skipped 8 altogether. no regrets.
this was long before windows 10
8.1 was fine
You're not exactly getting anything of quality with 8
also 8 was pretty good with Start8
8 was a bridge between 7 and 10 for UI changes
I had gone completely Linux once 8 came out
Figured nyope
it was like building people up for what was about to come
I really wish there was some midpoint of Linux and Windows
i thought 8 was more about driving towards mobile UI. 10's UI was a reaction to everyone hating mobile UI on...not mobile.
there is
i.e Linux but games work
but it's a pain in the ass
8 UI was really badly designed imo
there's this very light linux derivative that is able to run both linux and windows apps in segregated container spaces
windows mobile OS
that was monstrocity
it's basically supposed to be super secure, but it does mean you can do both
Qubes is great if you have beefy hardware
I do but it seems like too much work
What is it?
I'm not near patient/competent enough to try things that sound difficult. I like Linux because dev stuff is easier, and I like Windows because programs generally just work
@solid pollen Everything is in it's own VM essentially
yeah
they call them AppVMs
you start an app, it opens in a workspace for that AppVM
do your work
exfil whatever data you want to keep and close it
and the VM is completely destroyed
There's a good level of separation between your hardware and the VMs too
So you don't have to worry about being compromised and your microphone/webcam/etc being used against you, like you would normally.
It's basically designed for security researchers and people that need extreme security via separation
@rough sapphire Have you ever used Qubes?
Just for the sake of isolation?
Yup
All the networking runs separately as well, in a NetVM
so if for example your wifi card driver is compromised, it won't affect anything else
lots of info here too
Don't tell me it is how to fix the start menu bug?
Oh my
HKEY_CURRENT_USER/SOFTWARE/Microsoft/Winows/CurrentVersion/Search
2 . create new D-WORDBingSearchEnabled- Set this to
0- Edit
CortanaConsentto0- Restart
No reason for all of the steps above
idk in reddit
they say this is solution
254 votes and 247 comments so far on Reddit
or you can create reg file named:
Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search]
"BingSearchEnabled"=dword:00000000
"CortanaConsent"=dword:00000000
(content)
Sure, you could do that too
lol 😄
I lol'd
In 8.1 somehow, all my search dones in the panel that open when you press the Windows key, returns correct item but clicking/using them tell me they do not exist
hello guys
@rough sapphire Have you ever used Qubes?
@sand goblet
nope
Looks right up your street
it's just not mature as a project yet
It's been around for a pretty long time at this point
at least, I thought it had been
Have you tried turning it off and on again - IT Crowd
"Have you tried turning it off and on again"
ok so i installed something with .run file
how can i uninstall it
i use manjaro btw
MacOS also has a much more narrow hardware set to support...
@rough sapphire this is why you never install anything without a package manager...
cuz i could'nt find it in package manager
stupid search
now i found it
but it conflicts
@rough sapphire force install it, then uninstall (via package manager)
aka pacman -S whateverpackage --overwrite='*'
the quotes around the glob are important
otherwise it will be expanded by your shell, which you don't want
oof it worked
thanks @rough sapphire
👍
@gentle moss https://youtu.be/AxJOXNyihA0
For the first time in history, a country has left the European Union. Quo vadis, Great Britain?
(from German television channel ZDF on January 31, 2020)
#heuteshow #Brexit
lol
I hate my brain. So fiddling with this Game of Life thing (which I only get like 10 minutes to work on a day) and I suddenly for some reason feel like making a DataClass is going to be an amazing idea for this. Time to see if I'm crazy or not
Like, one instance per cell?
hi
Yo
Heyoooo!
I just remembered what I was going to ask
I'm waffling about something on my Game of Life thing. Lazy me wants to make the edges loop around, since that'd be easiest to implement. Has anyone seen one like that? Would it be true to the point of the exercise?
As in you want to look at the eight neighbours of the cell?
Yeah
if so, you can do it with an offset generated by two range()
Or are the edges of the grid considered dead?
You can loop the edges with modulos
Well again it's not can but should
I've seen both ways. I think both are acceptable
Linking edges is cooler I think, but the other way is pretty easy as well. Its just a big if statement
Yeah for sure
Although, I guess I could do one of each
Nothing really stopping me from doing that
@plucky ridge the answer to that is basicall N/A
as GoL is meant to be simulated on an infinite board
and as such there are no "edges"
It was quite interesting to hear Conway speak about how he initially felt about the Game of Life and what it meant for his career
Because common signifiers are useful
SO pissed off
haskell did a stack smasher and I lost all my haskell
even the install
@dusty shadow yes, that's what I have
fun V3 :<|
Time to read a scientific paper! get my ass kicked by a tornado of formulas!
anyone know some good e-books for learning C?
I don't know, formulas are kicking my ass
which formulas
The boids algorithm type of thing
generation of people learned C with the K&R, and speak highly of it, it's certainly dated, but it's a good basis to understand C
i don't know if there are updated version for C99 though, it would probably be better to learn a modern version
Remind me of that compiler tutorial I was reading, coded in Fortran
It was kind of fun
And unreadable
@frosty berry can you link them pls
the first edition is available on archive.org https://archive.org/details/TheCProgrammingLanguageFirstEdition/mode/2up
you can probably buy a copy of the second edition cheap from a lot of places
oh, second edition is there too https://archive.org/details/cprogramminglang00bria
ok, no "some pages are ommited from this book preview" and that's everything between the TOC and index…
yeah, the first edition is probably not the best to pick, it describes C before it was normalized by ansi, so it's better to pick second edition
For some context about the book, C, and Kernighan: https://www.youtube.com/watch?v=de2Hsvxaf8M
"C" is one of the most widely used programming languages of all time. Prof Brian Kernighan wrote the book on "C", well, co-wrote it - on a visit to the University of Nottingham we asked him how it came about.
"Most Difficult Program" - Ackermann Function: http://youtu.be/i7...
Political systems which allow for lots of parties are clearly a vast improvement on the US/UK 2-party system. But it does require voters to put in a lot more effort to be able to make informed decisions.
@rough sapphire Ah, gotcha. I guess I had never looked deep into the specifications of the program. I usually only see the handful of requirements about the neighboring cells but nothing else
..... he replied, realizing only after hitting enter that it was said to him hours ago
:p
My current implementation is on a 10x10 grid for simplicities sake
in most of my implementations I've just had coordinates for each cell relative to absolute 0
making my grid size (whatever the max is for that type/2)²
The creator of the perlin noise algorithm, Kenneth H. Perlin, is a teacher at the NYU, it is kind of cool for some reason
You could have the creator of the perlin noise algo as a teacher
You’ve done better jokes than that ^^
Yeah
Apparently finding a nice friendly explanation about how the noise is generated is too much to ask
Apparently minecraft terrains are generated using perlin noise
is it good or bad?
It is good, but it is just noise
It creates a pleasant looking terrain, but it kind of sucks when you’re close to it
i think he was refering the book

This works because the dot product of 2 vectors is equal to the cosine of the angle between the two vectors, multiplied by the magnitude of those vectors:
dot(vec1,vec2) = cos(angle(vec1,vec2)) * vec1.length * vec2.length```.... yeah, I guess
Artist: C418
Album: Minecraft Volume Alpha
Title: 18 Sweden
If you like this song and want to support the artist by actually buying:
http://c418.bandcamp.com/album/minecraft-volume-alpha
i dare anyone to listen to this and not wanting to punch trees and build a mega temple
I was never a fan of the soundtrack
I think it is good
But not awesome
public double perlin(double x, double y, double z) {
int aaa, aba, aab, abb, baa, bba, bab, bbb;
aaa = p[p[p[ xi ]+ yi ]+ zi ];
aba = p[p[p[ xi ]+inc(yi)]+ zi ];
aab = p[p[p[ xi ]+ yi ]+inc(zi)];
abb = p[p[p[ xi ]+inc(yi)]+inc(zi)];
baa = p[p[p[inc(xi)]+ yi ]+ zi ];
bba = p[p[p[inc(xi)]+inc(yi)]+ zi ];
bab = p[p[p[inc(xi)]+ yi ]+inc(zi)];
bbb = p[p[p[inc(xi)]+inc(yi)]+inc(zi)];```This is mesmerizing
.>
I'm going to blame the like 3 hours of sleep I got last night
@fossil solar yes it's the one
okay
what else will that book teach me other than C? @frosty berry
why
Excel?
and i know zappa put a video but its stuff i did not understand in the video
@fossil solar it's very much about C, but as it's written by the author of Unix and C, expect to learn about operating systems and in particular, unix, concepts.
I have better ember https://youtu.be/_3loq22TxSc
Recording of a guest lecture I gave for the Esoteric Programming Languages course at CMU.
Original PowerPoint Turing Machine video: https://youtu.be/sdkxWqsk17c
PowerPoint CPU: https://devpost.com/software/ppcc
okay cool , thanks @frosty berry
I will order it tmw
or ill just get the kindle edition
@autumn kettle I'm pretty sure Google will have tonnes of resources available https://cloud.google.com/training/free-labs/
Thanks @undone berry I will check this...
there was a mention that spotify was not random enough was that spotify or apple music ?
Apple music
i loved internet download manager . its really old but still best manager by far
it deserves every cent
It works and I am pleased
Vue is great
Very much enjoying using it
@vestal briar Wanna see some Vue I've been working with?
Sure
Oh is this the minecraft map thing?
Yep
Cool
Vue makes the menial stuff incredibly easy
like for example, you might have a bunch of waypoints ingame
I just want to make a fancy dashboard-type thing for now
Good ol’ journeymap.
<l-polygon :color="waypoint.color"
:fill-color="waypoint.color"
:fill-opacity="0.7"
:lat-lngs="waypoint.latLngs"
v-for="(waypoint) in waypoints"
></l-polygon>
and there's a list in my data store called waypoints
Cool
all I have to do is push, remove or modify objects within it and Vue updates the map in realtime
@odd thorn I've always been a fan of JM but I never expected to be developing it, haha
Once this part of the project is done, there'll be just a bit more kotlin in yer minecraft :>
but I can't show that part off yet
Here's how it looks so far
without Vue I don't think I'd have enjoyed this so much
I added like 4 features today alone haha
Yeah, the right tool changes the job’s annoyance level significantly.
Yeah, absolutely
though there's still some jank in there I haven't quite figured out yet
like this eyesore of a function https://github.com/TeamJM/webmap-client/blob/master/src/main/js/journeymap.js#L344
Bad function but variables make it a hell of a lot easier
I honestly have no idea how to clean this up
Probably the best you can do with that many variables
I feel like I almost need to split this out into a bunch more classes
Unless you fragment all the cases? But then it'd be mostly useless functions
I mean I guess one way I could do it is to have a
well see the problem is
not all the information I need is exposed by the api yet
like those TODOs there, I can do nothing about that because I don't get a dim list
I am also writing the API so I will manage it eventually, but
this isn't super fun either https://github.com/TeamJM/webmap-client/blob/master/src/main/js/journeymap.js#L310
Honestly I'm just not very experienced at writing this kind of javascript
Looking at both of these things and I feel like there's almost certainly a neater way to do it - but I can't see what it is at all
That's how I feel too
This project is basically a solo project as well so I don't get much code feedback haha
although I dunno how much JS Mystic knows
I really need to fix that documentation, as well..
@sand goblet: Set all the icons to the inactive form before the switch, then only change one of them to active inside?
Least they won't be in the switch, since they (can) happen regardless of the case.
Might not make sense for the nether, but at least for the end it makes sense, since that's happening for multiple cases.
It seems like it might make sense to handle the nether without a call back to the function, but I'm not sure if that would really help. Everything else would either have to be in a big else clause, or you'd have to set the datastore.state values and currentMapType there, too.
The problem with end and nether is right now I'm just doing it by dim ID
which works for vanilla
but I can't distinguish between dim types otherwise
Actually, that could make sense.
Np. Also, now that I think about it, you can replace both nether checks by just directly setting datastore.state values and the currentMapType, then returning, which actually should make it a bit more compact.
There's a lot of duplication if I do that, though
although, hm, yeah
I guess I don't need separate vars
i.e.
if (this.currentDim === -1) {
datastore.state.dayIcon = dayIconDisabled;
datastore.state.nightIcon = nightIconDisabled;
datastore.state.topoIcon = topoIconDisabled;
datastore.state.undergroundIcon = undergroundIconActive;
this.currentMapType = mapMode;
return
}```
Not really much more than the second check, and you get rid of the first.
Plus, stops that tiny bit of wasted time when you are in the nether.
actually that won't entirely work
well I guess it would work for the nether
unless you clicked on the "underground" button
but I can just remove the mode check and always apply it
yeah, that'd work
End has to sit as it is though, yeah
Yeah, but the end check is shorter anyway.
Hm. Might be a bit cleaner to override that in the day case directly. Not much, but would prevent those couple of checks from happening twice.
Not a big deal either way, though.
Fun times.
man that's a really interesting race condition
I seem to have somehow lost tracking for that tile
nothing I do is updating its url
Weird.
Yep. Username is the same on there.
just corin?
Er, cwstra.
Corin's so people know what to call me in voice. 😛
I'm gonna call it a night for now, but thanks for the help
Np, np.
Ugh, github's maven repos are just bad
403'd me with the correct credentials during the build haha
Oh, technology. It’s wonderful when it works.
I'll probably have to jump ship to bintray someday
Oh, @sand goblet, for when you wake up: If you use the sample I gave, make sure to replace this.currentMapType = mapMode with this.currentMapType = "undergound" if you haven't already. Silly mistake on my part.
I got that, don't worry :>
Good good.
When someone says static JavaScript are they reffering to static variables and methods in class?
not in this case
it probably means if the code was generated for each specific request, or if it's the same for everyone
yeah...not many happy with it. check out the Overlay section. the whole first page is UI rage. 😄
well.. all for good reason.. I hope they address the issues
did you give this a read? https://www.reddit.com/r/discordapp/comments/ezxouv/regarding_the_messages_redesign/
its not short...
let me read real quick
he mentions memes.. I haven't seen any on the subject
yeah.. this seems like very thoughtfully worded PR stunt.. as to why they're not budging
i agree for the most part. that's a really well spoken engineer. 😄
I find it really hard to believe it's an engineer who wrote this..
Pre-Order the DROP THX Panda Wireless headphones today at https://dro.ps/techquickie-panda
Save 10% and Free Worldwide Shipping at Ridge Wallets by using offer code LINUS at https://www.ridge.com/LINUS
Opera GX is here. We've got gaming chairs, gaming glasses, gaming sock...
Yeah let's not signal boost that guy
I'm OOTL. I've seen that channel being discussed here a few times, but who is he and why do most people here hate him?
He presents his channel as a legitimate tech channel
But it's mostly misleading and clickbait stuff
there are no "tech tips"
So, it's not hardcore enough of us "techies"?
it's not about being hardcore
his channel is pure entertainment value and nothing actually useful
but he does not present it that way
it leads to his watchers yelling at youtubers that actually present facts and unbiased opinions
He is literally saying "This video is sponsored by the compagny X, and their hardware is awesome!"
Which is, kind of biaised
i agree with akarys statement
I'm so mind blown right now.
I just learned electric fields are the same as magnetic fields, just viewed from a different point of reference.
I'm so mind blown.
I never asked, i just assumed that magnetism was a (weak) fundamental force on its own.. But it just turns out magnetism is like lord voldemort in the philosophers stone.
that last line cracked me up haha
imagine a day without glasses . fuck i cant seeeee
at the bright side I am getting new frame for my glasses
@gaunt stratus wait you see how electromagnetism works, your mind will implode (there is a 2minute physics video on that).
Yeah, ive seen that as well, and how permanent magnet work, why they work. I am still continiously mind blowing right now.
I feel like I should rename my next project
haha, that's a good one
magnets are not magical, they are very much weirder than that 😄
Oh hey, it is actually for the pydis mc server, don’t want to add the mod turbo-couscous? 😄
:ok_hand: Added turbo-couscous to the names list.
\o/
Huh. A TV presenter has come out as gay over here, and it's all over the news
because he's been married to a woman for 27 years and has two daughters
that sounds like a real rough spot to be in if he's telling the truth
well, now the thing is out there, truth or not it's going to be a rough ride 😬
i don't think it's the first example of this though, middle aged married man reveals to be secretely gay and start a new life is nearly a trope now, right?
I guess so
juggalo's for lyfe
Richard Phillips Feynman was an American physicist known for the path integral formulation of quantum mechanics, the theory of quantum electrodynamics and the physics of the super fluidity of super cooled liquid helium, as well as work in particle physics (he proposed the Par...
that whole interview with Feynman is exceptional
i assume you've seen the whole thing?
you: how magnet works?
most famous explainer in the world of physics: nope, can't explain that to you
i had seen the part about rubber bands from this interview, didn't see the whole thing though, i guess i should
i think it's called "the joy of finding things out"
or something
ah no, it's "fun to imagine"
This has been posted in several places unfortunately though, the audio for those other versions is highly variable. So I thought to normalize it in this version.
An example (from where this was originally taken) is here: http://www.youtube.com/watch?v=aXtnYnoutKk
The visual...
you should see the the part where he explain how different people learn
ohh.. Feynman, you where the greatest teacher there ever was
"you know what that bird is? it's a brown throated thrush. your dad doesn't teach you anything."
you can know all the names for a bird in all the different languages, and still not have learned anything about the bird.
👌
what in the FUCK is going on
EEEAAAOOO.
i honestly don't understand why my magisk startup script behaves differently than when I manually run it
launched in a different user context?
nah
I was trying to run ip via a magisk script
well, it turns out magisk bundles its own busybox and adds it to its own path. i didn't use absolute paths, so it didn't use the system's ip and instead busybox's ip which is a piece of shit and doesn't work
this fucking confused me for hours
"how the FUCK is ip rule giving me a different output!?"
If I have nsjail as an external dependency, but I don’t need it at compilation time (I don’t actually even compile), should I put it in a submodule or use a script to clone it, compile it, and clean it?
Does ubuntu run mainly on Python3.6? Because I accidently changed the alternatives to python3.7 and terminal didn't open up anymore. I recovered it successfully, thankfully.
I mean not mainly, but system applications
@polar vigil Yep, both Linux and Mac heavily use Python for various system stuff
That's why in general you want to stay away from updating your system's version, and install using your package manager or something like pyenv to keep everything separate. Odd that 3.7 broke it, though. I can't think of any major removals or changes that would prevent 3.6 from working
Or no wait, was that the one with the major async changes....
Maybe, because it didn't let me open anything.
you can type ctrl-alt-f1 to open a TTY and fix things from there, to come back to graphical mode it's alt-f7
i think it was more probably about a library not being installed for 3.7, that it needed
I had used pyenv, but I don't know what I was thinking
rather than something in python itself
Yeah
I am glad that it didn't broke the system completely, because I had some important files in it.
if it's not encrypted, it's always easy to salvage things using a live usb
@gentle moss I've got a fairly strict fail2ban setup on my alert server
It's interesting to see all the bots fill up the terminal when I check the status of all of the fail2ban jails I have setup
It's not lenient, at all. I think by default you'll get banned for like 10 years
It might be a year, I don't remember. It's fairly high
10 years you don't mess around 😆
i hope you have to fail more than a few tries to get banned like this
i wouldn't want to be outed of my server because i tried to connect with the wrong user
yells into the void
I also say C#, but that's primarily because my first language I learned in college was Java, and C# is essentially a cleaner version of that
i don't know either of them well, but i would also bet that C# is easier
c++ is a very big language, with lots of things you can get wrong, while C# is designed more recently, in a more focused way, and do things in a way to remove some of the issues you could have (managed memory for example).
(i did a bit of both, but no significant project in either)
C# is heaps easier
If you need the benefits that C++ provides, you may want to consider Rust instead
someonesaidrust
just go pure C
nuuuu
Machine code or bust
C: easier to learn, easier to get wrong 🙂
why does this always end in a meme festival
it all ends in machine code anyway, we are just taking extra steps
We're all machine code in this computer we call life
It's machine code all the way down
python with some cython is da best
no its not

it is!
rust seems cool
i rewrote a poker evaluation algoriithm from python to rust and included it as a rust module
python with rust 
C++ is okay
the runtime went form polynomial in python to linear in rust lol
I'm not very knowledgable in it, but I have to use it for work
C++ was one of my earliest languages
And let me tell you, I am not going back
Haha
I started Rust like 2 days ago and bencharked a simple function that tells if the number is prime or not for the first 10m numbers and the results were
C 5.591000s
Rust 5.6854093s
cython (as module) 13.7001461s
Python 113.3247023s
did you optimize rust?
@jagged fog
and also
did you write your algorithm properly
ye I have like 30min of experience with rust so not much. But I don't think there's much to optimize
are you using a vector?
no
hm
im not exactly sure how performant the range iterator is vs a c for loop
but apart from that lgtm

I mean, there’s the obvious, @jagged fog: no sieve of Eratosthenes.
But if you didn’t add that on any of them, that wouldn’t explain rust’s slowness.
Do you have the C code you were comparing to?
I didn't add that, I based on on Python program I already had
so they are all the same
Mmm.
yes I have sec
they are not the same
and im quite sure its related to the performance of the range operator
That’s what I’m thinking too, yeah.
yeha two things
first you dont do float ops in there
and secondly you have a for loop that increments
im not exactly sure if its more performant than a rust iterator but it would be worth a try to check
I don't know how to square root in Rust without going back and forth with types 
I'm not sure what kind of a loop you want me to do in Rust 
like a while with a counter variable to recreate the incrementing for loop?
this is bad? for i in 0..10_000_000
More the 2..limit
Try a mutable iterator instead.
Would that not cause more overhead?
I get it faster by 0.08s if I switch the for with while
for the mutable you mean I set limit as mut? @odd thorn
I got a warning and 0.2 slower
or you mean i
I'm not sure how either of those would do something
Is that speed increase consistent across multiple tests?
That .08 sounds almost negligable
nope I checked for more iterations it varies a bit so it's negligable
Makes sense. I would have figured the two would have been optimized down to be about the same thing
Makes
sensecents
Fixed that for you
@jagged fog: No, not limit. i.
I replaced the for loop with:
let mut i = 2;
while i < limit{
if number % i == 0 {
return false
}
i = i + 1
}```
ah I see what's causing the confusion
I pasted the wrong time for rust, that's old time. The current time is very similar to C time
and no that didn't make any noticable difference
That does explain a lot.
ikr, my bad
Happens to all of us sometimes.
Course, you can cut all those times in half pretty easily.
I was using u128 and that takes like 3-4 times more
(The time can be cut in half by checking if the number is even once, then check the range starting at 3, and going up by 2.)
sounds like a interesting perk of algorithm, I didn't know that
that works very well yes 
but now I have a huge mystery, the old way in Python took 113s, your way (with literally 2x less numbers to check) is 103s... so only 10s difference 
and at first I was like what kind of science is this but yes now it makes sense... if it's even ofc it's divisible by 2 thus not a valid one
welp I guess it's to do with the curve and how most of those numbers make no difference for speed until we get to big ones
nvm got it
is that project very hard
or medium
i want to try that but idk
It doesn't seem unreasonable.
pretty sure that's unrelated, minmax is not ML at all
though i'm not an AI expert at all
its some kind of AI but seems true
It's not neural-networky AI. More video-gamey AI.
Whereas new-style AI is, er, black magic.
the general principles don't seem overly complex, but the way they are used and the resulting artefacts seems quite magic yes
On some level, it's evolutionary theory in practice, so it's not exactly surprising that it's hard to pick apart.
that's a nice way to see it indeed
Minimax isn't too hard, especially for something like tic tac toe. I'd suggest just seeing if you can understand it, and if not, asking particular questions.
(Also, fun variant you can try to code when you're done with tic tac toe: tic.)
(It's like tic tac toe, but both players are x, and whoever gets three-in-a-row loses.)
if current board state is a terminal state :
return value of the board
if isMaximizingPlayer :
bestVal = -INFINITY
for each move in board :
value = minimax(board, depth+1, false)
bestVal = max( bestVal, value)
return bestVal
else :
bestVal = +INFINITY
for each move in board :
value = minimax(board, depth+1, true)
bestVal = min( bestVal, value)
return bestVal```
for example what is terminal state
and maximizing player
Terminal state = Board where the game is over.
You assign one player to be the maximizing player for minimax, which means, if they win, you score the board positively.
The other one is the minimizing player, which means, if they win, you score the board negatively.
who is AI there
Doesn't matter too much. This is just analyzing the board for optimal play.
Minimax is basically just the process of thinking:
"Ok, if I go here, then the other guy wins right away, so don't do that. But if I go here, he has to let me win."
i found some tutorial about minimax but he's doing it with js
idk js
still can i understand 😄
Once you know how to code, it's not too hard to follow what other people are doing, at least when the languages are similar.
hmm js and python seems similar
btw once past i made NXN tic tac toe. this algorithm only contain 3x3 doesn't it ?
It should be generalizable.
Yay, made the basics of that quick vm thing I was talking about
Just need to do the majority of the api so it actually makes the vm
Aaaaah my tooth aches
if I wanted to might an AI for something more complicated like a fighting game how should I do it?
just visited the website of the people who hacked Facebook's twitter account
"professional" and "whitehat" in particular made me lol
Wouldn't you think that "elite" hacker groups would know some website design
White background on white text
Being an hacker doesn't mean that you know rules of good design :P
idk about hackers but usually pirate groups doesn't have website
so usually pirated software download sites named hacker groups is scam
(and game ofc)
i want to try that minimax
still i don't get all of idea but never hurts to try
if you die in minmax, you die in the real world!
(yep, try things, even if you don't understand them, that's half the fun :))
😄 why algorithm seems hard
Ubuntu server, what is wrong with you?
I setup Ubuntu server and it gave incorrect login no matter what correct password or login I entered
Tried again and I have the same issue
pebcak
tty?
Hm?
are you trying to log in via getty
Nope
ssh? use keys
Got a monitor and keyboard directly connected right now
... that's a tty
root account?
plus since you have physical access you could boot in single user mode and manually change the password for that user
but i've installed ubuntu server loads of times and never had this issue
Yeah but if I have to do that then theres something underlying
or just boot off an usb and chroot into the real install
Same here
i stand by the pebcak
well if you can't login then you can't lspci to see if it's detected the network adapter
Yeah
ip a
Um hello! Sorry to disturb off topic but am I supposed to ask for help in any of the channels under "Python Help"?
does your network adapter appear in th elist
I'll try and install again and see if 3rd times the charm
@deft musk aye
Bad argument: Converting to "int" failed for parameter "seek".
Don't want to be using a broken install on a hands-off server
Okay thank you!
@rough sapphire Unless I boot through grub I can't possibly have access
how indie game devs finds original idea
for example SUPERHOT
how they found such an original idea
try using a tripod, it might blur less
Shh
Needed to capture before next startup screen
So what I'm getting is that this server has something slightly wrong in bios and the install magically doesn't work
bnx mips something
Also looks like dl380 bios requires a warrenty
broadcom NetXTREME network chips
Yep
you'll just need to get the firmware and put it in place
Looked on the site but it's asking for some warrenty stuff
Probably not on the right one though
after that i think it'll just sit in a folder in the /lib/firmware dir
you should have enough information now to google a more detailed answer though
Wonder why it isn't working now though, last install was perfectly normal
And login is still broken, time to use grub
You got a UART of any kind?
it's a server, why would you connect to UART?
and no, it doesn't have UART
DL380's a chonky boy. you get it 2nd hand?
@hollow leaf uart probably still drops to a getty nowadays
Sorta worn, and I knew that UART is a getty.
😕 didn't know the problem but I just threw a thought
fair enough
just seems like the 18.04 install doesn't have the firmware for the broadcom netEXTREEEEEEME network chipset
Finally got logins working after changing in grub
@gentle moss got it for free 2nd hand
Gen 7?
Usual Broadcom 😛 Had to deal with a USB wifi chipset that had no FOSS driver
One psu was broken on an otherwise perfectly fine server and they just refunded due to shipping costs being too high
Yeah, g7
E5620s and 24gb
i was using it as a router for like 9 months
Mine isn't too bad, 120w idle and ~500-600w max I recorded
Hm, looks like it is already installed?
lspci will show all devices, if it isn't in there at all then it isn't plugged in properly or something
If it is and it isn't working, you probably don't have the kernel module for the driver loaded
it's an onboard network adapter in a server
Then it'll be in lspci won't it
you'd assume
There's also lsusb if it's in one of those weird onboard USB headers
for a gigabit network adapter i think that's unlikely
You'd be surprised
maybe you need to modify the conf and add the fw to it
Yeah, also worth a go
Looks like it recognises it in lshw
try adding bnx2 to the dracut.conf
add_drivers+="bnx2"
into the file and then dracut -f
then reboot
Don't think dracut is installed
i mean it definitely shows up
Autoconfiguration failed? Hmm
I mean I guess that means you need to configure it yourself
could be just that, yeah
it throwing up firmware errors on boot is still strange though
No idea what port its plugged into on the server so it'll be pretty hard to configure
I just have like 4 white ports and 2 black
Blacks say iLO and whites just have the eithernet logo and a number
that number is the port number
and they'll be initialised in order
enp3s0f0 is first
they're management ports
it's an isolated network for controlling the physical server
Gotcha
cough
welcome back @gentle moss where you been
Using some old 2008 microatx home pc as a janky server for now
Decides to try spacemacs again
Opens up standard files for current project
spacemacs lags to inoperability from the data file
Goes back to neovim.
Yup, it's fairly slow for use
it's interesting how emacs slowness has kept up with the technology
Mm, 2nd server that isn't working with ethernet
Starting to think its something to do with the powerline adapter I have but it's showing no errors when plugged into desktop pc
This channel name though
Provided to YouTube by TuneCore
Mr. Roboto · The Protomen
The Cover Up (Original Motion Picture Soundtrack)
℗ 2015 Sound Machine Records
Released on: 2015-02-20
Auto-generated by YouTube.
interesting and tricky question
hm, i might be missing something but it seems pretty straightforward to me
didn't do java seriously in a long time though
a
i don't see any difference between the first and second test aside the spaces around == and i don't see how that would change the logic at all
We always thought that whenever two object references are compared using “==”, it always evaluates to “false”. But here Integer caching changes the results.Integer class has a caching range of -128 to 127. Whenever a number is between this range and autoboxing is used, it assigns the same reference. That’s why for value 100, both num1 and num2 will have the same reference, but for the value 500 (not in the range of -128 to 127), num3 and num4 will have different reference.
in java == compares two object
but == doesn't compare equality between integers?
.equals() compare values
yeah, this language deserves to be shot 😛
😄 i thought first this too from python
for example in java we can say int $_ = 5
java allows it
naaaah java doesnt deserve to be shot for its comparing mechanism
there are other reasons though
AI is really interesting, I probably focus on that this year
@sand goblet You will never find out if I am a bot or not
But the question is, do I care?
No
Dun dun dun
who is fan of Apple
🦗
@polar vigil It's weird you'd ask that to a bot
i love apple @sand goblet do you love
Nope
why not
I don't love
I think apples are pretty great. Oranges can be annoying though.
All that peeling
They really love scalping their users with their accessories
Especially airpods, goddamn
@sand goblet You don't like having a mouse you can't use while it charges?
smh my head
Hahaha the fucking charging port
I forgot about that
just enjoy
iOS absolutely does have viruses and exploits
It's just a BSD after all
Pretty much all jailbreak tools make use of exploits that could just as easily be used maliciously
Early jailbreak just used PDF exploits
none of antivirus company has ios antivirus
Well yeah, obviously
Apple wouldn't want to ruin their image by allowing that
What browser do you use on iOS?
i heard apple doesn't allow app interaction . so app cannot much do if it contain virus
safari
Indeed, that is the correct answer
Because despite other browsers existing on iOS, they're all really just reskinned safari
In fact all third party apps have to use an older version of safari for their webviews than the version in the actual safari app
Because as we know, apple hates competition
It's pretty garbage compared to what we have on android
I use Firefox on my PC and goddamn it I use the exact same browser on android with the exact same extensions
Imagine being able to install ublock origin on a mobile browser
Apple doesn't want you to
Imagine being able to FIX YOUR OWN PHONE
Imagine fixing phones for a couple of your friends and Apple suing you into the ground for it
Fuck that
Let's make people buy expensive lightning adapters instead of letting them use their existing USB-C chargers that every other phone has
Let's release a laptop for professionals and give it no USB ports
apps does have right to publish their ads
With a keyboard that breaks if a single crumb gets under it
Let's make overpriced wireless earbuds and not give people a wireless charging case, or allow them to start an assistant when paired with a non-apple device
😄 they are greedy right
Let's introduce proprietary extensions to wireless security protocols because we don't like wps
Let's deliberately slow down older devices without the users' consent (they were just convicted for that in France)
They did it in the first place.
Let's force people to buy an expensive computer from us if they want to make apps for our mobile devices
does we have to buy latest mac for xcode ?
Let's prevent other music platforms from competing with apple music by forcibly taking a larger cut than usual from their IAPs
hmm apple music actually good service
I think I've made enough points by now
They do so much shady shit and they don't redeem themselves afterwards
They don't believe in value for money, they don't believe in the concept of owning your own devices, and they don't want people to be able to fix their own problems
but this problems actually include many big companies
it called capitalism
nvidia for example does similar things
When has Microsoft stopped you from installing windows on any device you can get it to run on?
When has OnePlus tried to stop you from rooting your phone?
ah micro$oft
their update policy
ah making me crazy
broking working devices
and forcing people to buy new devices (to killing windows 7)
making heavy windows 10
and killing old computers
okay, about half of those things are fallacies
but even if they weren't, they're not comparable
if you buy a windows machine, it doesn't have the RAM soldered to the motherboard
in most cases, anyway
if you buy an android phone, you can install whatever you want on it, you don't have to use the play store - or any store at all if you don't want
you can run an android phone with completely open source apps and no google apps at all
and you don't need to buy a chromebook to write apps
yea in my old samsung phone
android came with samsung apps
and i couldn't even delete
huawei makes good phones, but there are no google apps anymore
thanks to the US trade ban
oneplus phones are great because they're very easy to customize
I have root, yeah, via magisk
hmm i heard magisk put ad
nope
when i had android . i was doing root via odin
I like how the oneplus update app detects that I have root and downloads a full OTA instead of a partial one
it was hard tho
i got softbrick when i first tried
i was 14 or so
7-8 years ago
they ban huawei for tracking people
but microsoft does same
this trading ban was ridiculous
There wasn't really any concrete evidence for that iirc
I do have a huawei mate 10 pro sitting in a drawer here, it's what I had before I got my current phone, a oneplus 7 pro
idk but huawei accused of that
but microsoft,apple etc . is tracking
its nearly true
for example telemetry services in windows
if i wasn't gamer i would definitely use linux :d
i hate windows
I actually don't have many games that don't run on linux. But I don't play many AAA games.
I like Windows
There's been absolutely no evidence that the telemetry submits anything worth being concerned about
there's just a lot of it
i don't play too but i like some of AAA
especially i like few game companies (rockstar,cdpr etc.)
other than i play indie
and windows is greedy about ram
if you don't install windows on SSD and if you have ram less than 12 gb . windows will sure about making you hard times


