#ot1-perplexing-regexing
1 messages Β· Page 43 of 1

Proton is like... WINE for video games. It's not but we'll call it that.
This is ridiculous
It's an abstraction layer to allow Windows games to run on Linux.
Holy crap lol
honestly why isn't valorant supported on linux
just go to the tray, right click on the vanguard icon and click exit π€·
And is like... 10 years old?
so easy
me?
which "engineering" applications require those specs?
But how does that do a performance check and by the way that guy i showded is saying its not Linux supported games, its aall games that windows can run .
I'm telling you the video you showed is someone that is creating content specifically to get views.
i have 4 years on discord i cant use didcord when i was 6
what typa stuff is bro engineering πππ
The database I linked you is aggregated user reports of what runs and what doesn't.
he differs
well I'm planning on doing grad school after so may as well get something good to last me all the way
i want hug
I understand, I'm telling you he's incorrect based on the statistics I showed (and my current reasonably educated knowledge of how... operating systems work, I guess.)
Maybe you mean what nativly runs on linux ? he is saying that linux which is steamos is runnung all windows games in linux
He's wrong.
hes warm
sus
destiny 2 moment

borked

so steamdeck cant run these programs ?
i see
Those two games represent a massive share in the PC gaming space, being by and large two of the most played franchises on PC to date.
you know that its a matter of time before steamdeck and steamos make it possible to run this?
Possibly but Linux gamers have been saying that for decades now.
mmm
SteamOS/Steamdeck doesn't really tilt the odds in any particular direction.
in the case of cod:mw and destiny 2, it's up to the developers of those games
Let me be clear, I want Linux to support gaming.
they need cooperation from the game's developers as well
I'm just acutely aware that there are certain restrictions at play that make this very difficult.
If the devs don't care there's only so much you can do
and possiblities like that have been shrinking fast too
10% of games on Steam are fully verified. 40% are unsupported. 40% are playable with some sort of modification. That does not bode well for Linux gaming in the future, and Valve has an uphill battle maintaining Proton, which essentially just wraps a huge amount of other tools to package up a usable abstraction layer.
i think my personal opinion that linux will be the defacto distro unless something major changes and we will not have an "please Activerate windows" aside our games π
I respect your opinion, that's not... what I'm getting at. I'm just saying that's been a long held belief and no major breakthroughs have occured in that field in many years.
As Windows becomes a more developer friendly environment, and especially with significant changes to RHEL's business model, I believe we're seeing a drastic shift towards Windows viability, not away from it.
there has been a very noticeable improvement since Valve started investing into that space
isn't enough
Has there? Proton largely wraps packages that have not been touched in years.
I think the resurgence is a result of making the distribution more approachable from users.
yeah there has. It was a lot more shitty and less polished before
now, I can just pick any game in my library and just play them
before, it either didn't work or there was some fiddling involved with wine
I don't... think the statistics back up the case that the overwhelmingly vast majority of gamers could play their AAA games on Linux.
I would be curious to see these stats if you have them
As far as I know, today, the main blockers are shit spywares like EAC
https://activeplayer.io/top-15-most-popular-pc-games-of-2022/
I drew the 15 most popular PC games of 2023 (ignore the URL) from this source.
I further enumerated google searches to provide information from the above, using ProtonDB as the primary source for decisions, and supplementing that information from several Google searches of user reports for games that were not present on Steam/ProtonDB.
#ot1-perplexing-regexing message
With total respect, i have witnessed sun os migrate to solaris and then to nothing..... at the same time ive seen DOS the backslask hell survive because of (it works on all hardware ) reason. now Linux is 20+ years old its all over the place except the home and the display is as good as mac. So with all that I think it will soon become domanent
90% of games are reported as 'unverified' by ProtonDB for Steam.
Admittedly 50% of those are reported as 'playable' <to some degree>
tbh, unverified is fine from my experience
i want to make a game
Godot is great for that!
go for it
Display? 
i cant have time ive to practice for ielts first
priorities
prob ill make my dream game when im 60 years old
ill play undertale n sallyface when im 60 years old
fucking hate docker
good night all
gn
RHEL (and its derivatives) held the overwhelmingly vast majority of Linux market share. I don't foresee that changing substantially because of Stockholm syndrome, but their latest decisions present a significant turning point in what Linux will be in the future, and frankly, it's contrary to the premise of Linux in the first place.
bg3 when?
tbh RHEL has nothing to do with desktop
No but it does with Linux's dominant space.
whats bg3
Oracle of all businesses put RHEL to the fire as they restricted derivative products of the redistribution of the source code, despite Linux being open-source at its very nature.
Baldur's gate 3
Mr. Screven does not mince words.
How so?
Redhat isn't violating the gpl though. They still provide the source code to their customers
Where is Linux's dominant space? I would purport enterprise Linux servers (And the distributions they run on, such as RHEL) make up a huge portion of Linux's market share.
whats that
still a change of stewardship
no sallyface is best
IBM:
At Red Hat, thousands of people spend their time writing code to enable new features, fixing bugs, integrating different packages and then supporting that work for a long time β¦ We have to pay the people to do that work.
Oracle:
Finally, to IBM, hereβs a big idea for you. You say that you donβt want to pay all those RHEL developers? Hereβs how you can save money: just pull from us. Become a downstream distributor of Oracle Linux. We will happily take on the burden.
uh
definitely dominant in the server space.
But throughout all my career, I haven't seen anyone paying redhat for anything, despite basing all their servers on derivatives
You cannot base servers on derivatives anymore.
try it and change your mind π
The source code is no longer open, derivatives are being C&D'd and killed. CentOS, AlmaLinux, and Rocky Linux.
sure ill try it when im 70
the interesting part in the whole story is the "rhel compatible" part.
Otherwise, server side, people would still do fine with rhel dropping off the face of the earth with debian, sles, ubuntu
Oracle is the shittiest company.
They are just vulture in this story
They're a vulture but they're right.
I made this stance in another server and I'll double down here-- if you're calling Oracle out on being factually correct in this scenario, you're letting your detest for one company stifle valid criticism of another.
Actions speak louder than words.
Their track of record makes it sound like a trap
i dont want to be affected my em
Learn godot and make a positive game
sure ill do that when im in america
You can learn programming anywhere 
I mean the UI. the windows UI is fractured that you cant even make a ssh session do the same thing that it used to do on Win7. At some point on win8 - 10 they fucked up terminal UI. thats when i said Im full monty Linux
Eh?
if i make game in here ill die of hunger
It's easy and fun to pick up. You should give it a try
Eh Yeh
SSH works just fine on Windows 11, I have... no issues with it. 
I thought the display thing would go more towards the DPI and stuff
are you using screens ?
don't die of poverty. It's not fun
No but I can try the next time I'm ssh'd into something.

thats not what i said though. they messed up normal TTY stuff that most users wont see
To be clear are you implying that SSH'ing into a Linux box from Windows and using screens doesn't work?
Or are you implying that there is no alternative for Screens on Windows (there is)
this is basic though
no im not saying that
im saying that normal operations on tty changed drasticly on putty and on cygyn post win8 that i could not solve it
Such as what?
W10 (and subsequently W11) has made significant improvements to the terminal experience.
resizing events mostly but arrow up events
however why would they been affected at all?
so i gave up
also finally added virtual desktops not too long ago
Indeed. I'm not here to Windows fanboy, I don't... really have any grounds to do that-- most of my work is done in Linux.
But the work that I do do in Windows is... more or less identical if not improved.
oh then u couldnt fix my win def bc my win def is window
ididnt mess wit h antivirus
It's worth noting that there's other ways to fix this, but they're not idiomatic, and... there's a language barrier that makes providing advice and instructions exceedingly difficult on technical matters. That isn't to slight you, you speak English better than I speak any other language. But trying to enumerate more technical instructions across a language barrier is difficult.
yeh all my work is in linux too. and for the most part (until i adopted vscode over notepad++ for scrpts) my workflow was with samba.... but you have to thing that this is going against the grain of your work. but windows totally changes your workflow in whatever they want to do. so i left.
Is it going against the grain of my work? 
the tty codes and i dont know what changed ( spent tooo long on it) was the last straw
enumerate
was for me
enumerate is coolest thing in python
Look I'm not here to convince you to switch from Windows. I'm saying personally, for me, it represents a very similar environment, and I don't really want for anything in Windows in comparison. OS wars aside, I have a high respect for the consistency of Linux. But there are caveats to utilizing Linux as a daily driver that present significant barriers to my total adoption.
enumerate is coolest thing stickie gave me
I much prefer virtualization, whether it be WSL2 or VMWare.
Similar in whgat way ?
The way I interface with my terminal in Windows is the exact same as I would in Linux save some aliasing that I had to do on my own.
it is that difficult?
There is nothing coding wise that is simplar
Cat cat's. Ls ls's. Rm rm's. etc. Basic navigation in my terminal is identical. If I need anything different, I have the ability to, from the command line, invoke a full Linux shell. 
there's nothing coding wise that is more complex.
its totally and annoying differet
I implemented a builder in python on windows with jenkins which was total hell on windows and totally different on linux
I cannot speak to your specific experiences.
but i can
I am telling you that for me, the environment is the same if not improved.
That's fine.
lol
But you're asserting as fact that Windows is worse for development. I'm telling you that in my experience, that is not true.
I've gotta second being quite happy with WSL.

coding a builder on windows is worse on windows because lack of bash and backslash for a file system delimitor and a bunch f ofther stuff like file permissions
probably comes down more to a matter of preference and habits.
I cannot stand windows, despite trying when getting a new laptop
so better off not coding in dos
its not even that. its a different planet when it comes to code. you have to write DOS system specific code vs linux specfic. At least mac has a sudo unix OS.
what do you mean by DOS?
modern windows experience shouldn't involve DOS in any way
so how do you access a drive D: vs drive E:
terminal, powershell, WSL
does it have to be?

well that is my point exactly ... it should be
ipython can be interesting in that regard
that escalated quickly
but you have bash in WSL
so write some code that is portable that is /home/src/git/myfile that is on windows and unix and mac ?
that is where you will sturggle
that's why you have abstractions like https://www.baeldung.com/java-file-vs-file-path-separator
and its windows that you will fail
I mean this ultimately points to you enjoying the syntax of Linux more, not wanting to write support into your applications, or being unwilling to learn Powershell.
Or an amalgam of all three I suppose.
its IBM syntax not mine
yeah, I am totally like that. We don't give a shit about windows. Our stuff works on Unix and we are okay with it
And that's fine.
It's okay to not support Windows.
If your application user base is in Linux, then... that makes sense.
im lost so we agree?
lol ok i well conside that we all agree with us that i 1st postulated
Developers lamenting cross-platform support is a tale as old as time.
even GNU/Linux
you cannot really write your scripts for bash
because bash isn't universal nor the standard
you are still beholden to some shitty sh script
If anyone needs me I'll be fighting trying to get Pystack to work locally. 
Having some trouble?
Mountains but none that I'm going to raise an issue with yet, I just thought it was a cute jab.
what is the problem Pystack with ?
btw, when is the second podcast coming out?
Uh, soon, I think...
Should be a week or two, I think
It shouldn't take much more than a pip install... What sort of environment are you trying this in?
If it's containerized, the problem might be that you need to grant ptrace permissions for attaching to arbitrary processes.
i need a podcast to listen to
i was going to start with the joe rogan one but that shit has thousands of eps and i'm just too behind
Yeah-- I'm using Remnux, if you're curious I'll take another stab at it here in the near future and let you know the results.
that's for normies.
There are plenty more interesting podcasts like freakonomics or talkpython.fm
IIRC something was at odds with the existent libw/libelf.
I have absolutely no idea what that is... But I am curious.
That ought to only matter if you're doing a build from source... It shouldn't affect the wheels that are published to PyPI
Assuming that thing is a manylinux or musllinux anyway
pycharm has finished downloading, vscode was being weird
huh. Worked this time.
I wonder if I was invoking it with the wrong Python version.
π€·ββοΈ
π€·
I'll take a win however I get it π
looks like remnux is ubuntu based, and should be fine with manylinux wheels
oh! Maybe, possibly, you're on an aarch64 box?
It's VMWare so it shouldn't be unless I'm real dumb.
that doesn't virtualize your instruction set, normally
I'm not even sure if it can - but if it could it'd be way slower
Yeah, I had a recent plight with that trying to spin up something anyway.
But no, it's standard x86
well, then... hm. No clue what problem you might have been having, but glad you are no longer having it π
I'll document results somewhere the next time that I get around to trying it-- looking at using it for some obfuscated malware to see if I can glean anything a little more user friendly than the endless torrent of my audit hooks.
It should be able to show Python stack, C stack, and local variables' names and values. I'd be willing to bet that the C stack and local variables will be much more useful to you than the Python stack
Indeed, it's a tinker-project ultimately, but anything that can make pulling apart arbitrary obfuscation a little more consistent and user friendly is going to be a major win.
always the cyber security bros making me feel confused and vunlrable
https://bloomberg.github.io/pystack/ is the tool we're talking about
I'm a lovable idiot. I don't think it's any stretch of the imagination to state that I truly have no idea what I'm doing, I'm just trying things and learning.
it can attach to a running Python process and tell you what it's doing. Or attach to the core file of a crashed process and tell you what it was doing when it crashed. It's a project I maintain for work
doesn't dis do something similar?
no
nevermind that is a specific symbols this seems much more complex
probably flogging a dead horse here but this WSL is a relatively new approach to windows. And its a reaction the movement which is AWAY FROM WINDOWS. Like me. I boot into windows to play 1 or 2 games. I find Linux UI far better and simplae things i do all day work as expected. In windows terminal actions would just not work between updates which is really concerning
that's cool
"probably", lol
Pystack is pretty darn cool, all things considered. Most of the people dabbling in lower level implementation stuff like this might as well be invoking the dark arts in my mind.
yes, WSL is fairly new. It's a virtual machine, which is very nicely integrated into Windows. I don't think much about the UI one way or another - the UI of Linux or Windows are both nearly identical to me, since I do almost all of my work in either a web browser or a terminal. As long as I have a modern browser and a modern terminal, I'm happy.
Also... this is silly but oh-my-posh dramatically increased my opinion of Windows Terminal lol
like oh-my-zsh but for powershell?
It won't convince me to use Windows, but meh, whatever floats your boat
I think that's the intention, but iirc it's just branded as a generic theme engine for shells.
not a great speller

I wasn't poking fun at your spelling, I was poking fun at the suggestion that the horse might not be dead. π
yoooo rem got the rtx 4080
you changed your wallpaper from last time?
Yes because I don't consider what I'm doing before I'm doing it and I absolutely would've posted something wildly inappropriate for PyDis without thinking.
where is the fun in that?
Windows uptime is kinda'... inaccurate.
I mean, I'm a Unix developer. I don't do any Windows development, but for years I ssh'd from my Windows desktop in to servers to work, and now I spin up a VM from my Windows laptop to work, and the experience is nearly identical and I'm quite happy. I ran Linux on personal laptops for years, but the power management story is still such garbage compared to either Windows or macOS or Chrome OS (or at least it was when I last tried)
I'm happily typing this from a $100 chromebook that gets 12 hours of battery life and runs a Linux VM for anything I want to play with
(although, granted, I haven't actually figured out how to get pystack to work on crostini yet...)
That sounds like a dramatic edgecase lol
haha yeh def ironic.
not so much. It is Linux, albeit virtualized, but the issue is the locked-down-edness of the Chrome environment. It's just spinning up the container (not VM, I meant container) with flags that disable ptracing arbitrary processes. Which is a perfectly sane security measure, but not a developer-friendly one
I still find windows a subpar experience to something like fedora + KDE.
But I am okay with it being attributed to how it works closer to my way of thinking and feeling more natural.
I have had my fair share of issues having to deal with my partner's windows
I'm perfectly comfortable with a Windows machine or a Linux machine. Just don't give me Mac π
Ah that makes sense.
aye i love macs, whats wrong with macs?
I don't have any idea how to use them
After trying Gnome for a few weeks (didn't stick), it did came to me that Gnome is also a better mac UI in its own way
they pretend to be Unix, but their standards compliance is practically malicious. They go out of their way to be as unusable as possible while still following the standards
They have werid Keys ?
I think ptrace is the source of substantial annoyance with gdb I had awhile ago 
almost certainly
how so?
----------------------
Starting similarity test between user Bob and user Alice
----------------------
Alice AND Bob bought a
Alice AND Bob bought b
Bob bought c but Alice did not.
Bob and Alice are similar users. Recommending c to Alice
``` look a shitty reccomendation system
tools that anyone used to doing development on Linux or BSD expects to have available just aren't there on mac, or behave differently
They dont make enough colors
and macs have a bunch of security features that can make running Unix apps hell
I do remember doing my networking project on mac assuming that unix would carry it to linux in a way that would work. It did not, at all, I had to rewrite half the code.

macs are a pain
I got to write some of the absolute most horrific code of my life recently in order to fix a problem introduced by new versions of macOS....
Having a fairly in depth look at most of the Python packages that exist on the Internet, there are some exceedingly creative ways to work around a lot of cross-platform compatibility that I've seen.
setting builders, deployment, all the way to the APIs supported
also the window management is solving a problem that I have never even seen, and in its path to solve it it breaks most of my habits.
src/memray/_memray/macho_shenanigans.cpp lines 69 to 77
static uint64_t
lazy_pointer_from_stub(uint64_t vaddr)
{
// We messed with dark forces and we offended the macOS gods and now it is
// time to pay the price in blood. This function analyzes the machine code
// of a PLT entry in the __stubs or __auth_stubs section of a shared
// library that is part of the shared cache and returns the address of the
// GOT entry that contains the address of the symbol we are looking for.
// Unfortunately doing this is as crazy as it sounds.```
I'm very proud of this code, despite the absolute horror of it π
and the pun
lmfao
that one is all Pablo, heh
i'm sorry if i'm being a dyslexic fuck but
is this a recomendation engine but at a low low LOW level?
from user import User
def similarity(user1: User, user2: User):
print("----------------------")
print(f"Starting similarity test between user {user1.name} and user {user2.name}")
print("----------------------")
similar_count = 0
similar_users = False
for product in user1.purchased_products:
if user2.purchased_products.__contains__(product):
print(f"{user2.name} AND {user1.name} bought {product}")
similar_count += 1
if similar_count >= 2:
similar_users = True
else:
print(f"{user1.name} bought {product} but {user2.name} did not.")
if similar_users:
print(f"{user1.name} and {user2.name} are similar users. Recommending {product} to {user2.name}")
this is the first time in my career where attempting to parse machine code instructions was the best, most maintainable option
I enjoy entertaining comments when I'm browsing some random code.
I remember the 90s where mac had the colors that you could choose from. It felt like gouache bags (yeh had to look it up) comes to computers.
This reminds me of my own recent discovery, in that CPython parses its own bytecode at runtime to validate debugger jumps.
my general professional dev attitude is that the more something fucked up my day, the longer the comment it gets is. If I have to rewrite something for the 3rd time, that comment is probably a paragraph or two long
lmfaooo
ooh, that's interesting
W way honestly
I produced my first "oh my docstring is longer than the function" function recently.
Objects/frameobject.c line 124
markblocks(PyCodeObject *code_obj, int len)```
what does the function do?
the comments in that function I just linked above are because we started a week with a "oh god Memray on macOS is broken and we don't know how to fix it", we committed to spending a week trying to figure out if it was even fixable, and we spent 3 days straight debugging and hacking and got something shippable at the end of it. That comment was the "screwed up a whole week" sort of comment, heh
it parses bytecode and outputs a stack of blocks for each bytecode (the stack is each a 64 bit signed int), where a block is one of with loop try except
it is truly incredible and I am excited to port this to graalpy
I thought this was cute in the world of parsing bytecode... kinda.
def recurse_decode(instr):
my_bytecode = dis.Bytecode(decode_func(instr))
for my_bytes in my_bytecode:
if my_bytes.opname == 'LOAD_CONST':
if isinstance(my_bytes.argval,bytes):
if len(my_bytes.argval) > 300:
recurse_decode(my_bytes.argval)
else:
for my_bytes in my_bytecode:
if my_bytes.opname == 'LOAD_CONST':
decode_func(my_bytes.argval)``` Ignore that awful indentation mess, this was just thrown together to try and work through 64 layers of ` # _ = lambda __ : __import__('marshal').loads(__import__('zlib').decompress(__import__('base64').b64decode(__[::-1])))`
might as well implement collaborative filtering directly. It's simple enough and worth the improvement
that is a pretty cool function
It never actually worked. I tinkered with it for awhile.
There's some pretty clear issues that I think I actually fixed, but uh-- I no longer have the file that I was working on.
It eventually spit out what I needed, I just never got to the point where I disassembled the final LOAD_CONST.
Copy paste wins the day once again 
what's that?
A recommender system, or a recommendation system (sometimes replacing 'system' with a synonym such as platform or engine), is a subclass of information filtering system that provide suggestions for items that are most pertinent to a particular user. Typically, the suggestions refer to various decision-making processes, such as what product to pu...
found it
it's a way to predict how much you would like something based on other users
the math behind collaborative filtering at the basic level are pretty simple and straightforward
nothing fancy
snakehook/snakehook.py line 28
# Globals because audit hooks are the dark arts.```
no license. Can't read it
You retroactively agreed to sell me your house upon reading. It's in the fine print.
good thing I didn't read it then
you can read it, just not use it or copy it π
technically I would be concerned about potential claims of derivative work based on the reading
Feel free to steal my scuffed audit event handler.
I also, I could sell @foggy jungle my house. But can they afford it?
No, given that I know the housing price relative to the geographic location in which you reside is likely astronomical.
Granted that could be anywhere in the world at the moment.
I mean, I could be in Fresno
not as nice as SF or Seattle
I would love to live in Seattle some day tbh.
best time to move
I got trapped in SEATAC airport for nearly a month while I was waiting on some paperwork stuff.
prices only go up
Well near SEATAC
the best time to plant a tree was 20 years ago, the second best time is now
Lived in some dingy hotel but the city was nice. Got some time to go adventure.
so many things to do around there
I'm not used to being around... things, I guess.
My entire adult life has been spent residing in the middle of absolutely nowhere.
A change of pace could be fun
If my college application part two gets accepted, I should move. 
There are tons of social, tech and outdoor activities all along the coast
best coast
There arenβt a lot of job opportunities around here.

Finding entry level cybersecurity jobs or internships has been less than stellar.
I found a fully remote one but theyβreβ¦ not paying a whole lot for the amount of work they seem to want.

we ship our cybersecurity interns onsite
and we pay them for that
Thatβs refreshing. I was looking at some CrowdStrike jobs. Iβm not sure if Iβm setting my expectations too high, but cybersecurity offerings in the discipline Iβm interested in are not excellent for entry level employees

At this point Iβve just been aggregating jobs and tallying requirements.
I would be suspicious of any company who has a gartner magic quadrant as the first thing on their main page

What do you have against quadrants
companies sort of pay to be on gartner and co
I donβt actually know what that means I think.
Google didnβt avail me with much.
gartner and co have a basic set of criteria. But beyond that, it's pay to play
you pay to be on their quadrant
and pay to have "more" outcome
same way you pay bloggers to talk about you
Seems lucrative.
they are doing very well
I will compromise my blog integrity for enough money.
and you would not be the first one to do so
a lot of things you hear about companies... is not natural. It's paid for
Iβve got a list of topics I wish to blog about but not enough knowledge in those topics to not seem likeβ¦ Charlie Day with the red lines.
And I kind of take that for granted at this point tbf
It has never stopped anyone. This is so true based on what I have seen: https://www.youtube.com/watch?v=sxdDVAv6QDY
That's also why I cannot watch the tv show silicon valley
The way that guy talks is my internal monologue for anyone asking me about quant at home.
Alice AND Bob bought a
Alice AND Bob bought b
Similar user threshold reached
Bob bought c but Alice did not.
Bob and Alice are similar users. Recommending c to Alice
Bob bought d but Alice did not.
Bob and Alice are similar users. Recommending d to Alice
Bob bought e but Alice did not.
Bob and Alice are similar users. Recommending e to Alice
Bob bought f but Alice did not.
Bob and Alice are similar users. Recommending f to Alice
``` scuffed
lmfao
from user import User
def similarity(user1: User, user2: User):
print("----------------------")
print(f"Starting similarity test between user {user1.name} and user {user2.name}")
print("----------------------")
similar_count = 0
similar_users = False
for product in user1.purchased_products:
if user2.purchased_products.__contains__(product):
print(f"{user2.name} AND {user1.name} bought {product}")
similar_count += 1
if similar_count >= 2:
print(f"Similar user threshold reached")
similar_users = True
else:
print(f"{user1.name} bought {product} but {user2.name} did not.")
if similar_users:
print(f"{user1.name} and {user2.name} are similar users. Recommending {product} to {user2.name}")
else:
print(f"Not similar users... Checking next product")
``` mm i love a scuffed reccoemdnation engine that would normally take 1000s of lines and models and data to make being made in 27
Random bedtime thought: itβs insane to me that C++ doesnβt have a package management solution a la PyPI.
threshold = len(user2.purchased_products) - 1 !β
userbased is kinda weird
like conan?
class Movie:
title: str
director: str
lead_actor: str
genre: str
duration: str
``` what else should i take into account
forget downloading packages like PyPI can. C++ doesn't even have a good solution for determining what packages are installed, and how to build against them
i'm going to take two movies that the user has watched and do sexy math
and try to create a model that the reccoemnded movie should be similar to
similar lead actor genre averages of the durtation
and then go through the db and try to find the best match
start simple to it's easier to double check your math
hmm
you can always add more attributes later on
yes
I agree
shitty thing is i need a lot of data
to find the most common watched director, actor, etc
keep it simple and stupid
hmm
generate random data too if it helps
thats what i'm doing

could also add some biases for fun here and there
5 movies should be enough
how do you type hint a list with a type of variable?
movies: list if movies only has entries of type Movie
movies: list[Movie] i think
yep

yep thats it
well, whoβs fault is that [ NoT sErIoUs DiScLaMeR π¨ ]
yours, fix it
It's me
Update: Chrome has started purging its caches and cookies, logging me out of almost all websites π©

Very
this was like 1-2 days ago
i thought you'd done something about it atp
Automatically?
My solution before that is to clear history, select from all time but only cached stuff
All I know is that I am "conveniently" logged out of a ton of websites I'm trying to access, and most of them have forgotten my preferences such as light/dark theme
π
who said windows didn't have privacy features?
full with what?
i just had to log in to nvidia to update my drivers
i've never had that experience
just downloaded the latest drivers without logging in from here https://www.nvidia.com/Download/index.aspx?lang=en-us
yeah the geforce experience app sucks
or whatever it's called
but it is useful because you can get your drivers auto-updated
anyone got a podcast rec?
hardcore history
whats it bout
it's about history. hardcore history!
@high verge virgin
?
The Magnus Archives - horror
Welcome to Night Vale - fiction/comedy/drama
Ostium - mystery
Wake of corrosion - horror/drama
The Sleep Wake Cycle - lower budget horror/drama
Unseen - modern day Harry Potter type stuff, it's kind of interesting but sometimes bland. Only 10 eps iirc.
Alice isn't Dead - thriller/drama/mystery
Within the Wires - mystery/drama/thriller. Each season is a different story
I'm trying to think of others I've finished
Oh, Hello from the Magic Tavern - raunchy comedy, improvised
any tech related podcasts like for swe and stuff
I just listen to talk python and python bytes
I was wondering why my !remind hasnt arrived...
#bot-commands message
Turns out 30m means 30 months 
thanks :))
i'm going to start with serial
love myself some crime
don't do crimes
yay, I finally set up Ansible to deploy a bunch of Prometheus metrics exporters across our whole network of machines
the devops imposter syndrome is fading
now to figure out how to configure the prometheus installation role to actually respect idempotency...
i too have been screwing with prometheus today
Oh yeah? Spill da deets
nothing like what you're doing just metrics for one of my apps
I haven't used prometheus to do metric collection from apps, right now i just have it connected to node exporters (system stats) with a few alerts enabled
ah system stats
Yeah I'm using prometheus-client to export app metrics in FastAPI, it'st pretty neat really
Ooh the client lib is slick
I am going to have to retool a flask app to support prometheus metrics soon
Reqs / minute, open DB sessions, that sorta thing


Yeah they have native support for flask
So cute. I just gotta get an Ansible role set up to do SSH tunnels automatically then I'm good to roll this bad boy out
Half our boxes are on one VPN but none of the cloud boxes are π΅βπ«
Something something something airgapping
Apparently emacs' project.el saves your recently opened remote projects by file path. Meaning it saves TRAMP sessions as well. Meaning yesterday (setting up TRAMP) was the last time I'll ever have to ssh into my mainframe. Crazy
I have neither GFE or whatever the fuck AMDs is called now on my system
Just do base driver installs
I was going to try to setup prometheus to my personal website
It looked like too much work so I just ended up using google anyalisitics
it's not better or as detaield but it tells me what i want to know
hi
Since the market is closed I'll work on a different project for now. Instead of going into depression trying to create a 3D terrain in OpenGL with C I'll rather go into depression using Java which is comparitively worse.
https://www.lwjgl.org/ Seems nice
Of course I can go the https://libgdx.com/ route and have a API configured for me but what's the fun in that. I like the pain
java π
java is awesome and so much easier than C though
Yeah but it's java
also the website doesn't let me download while on mobile hostspot, proxy issues so i've just been listening to a podcast till work gets over
i think they forgot to give me work today
only reason i'm doing java is cause i need it for school
i would've been happier to do it in C or C++
C is more fun though
so true bestie
fair fair
i've honestly worked with C for the sole reason that it looks good
look i made something in C
even if it's basic its in β¨ C β¨
on other news my school changed all of our email passwords but 1-2 people havent had theirs changed
it's weird to say the least
when we first got our school emails (in like 5th grade) we had to set our passwords to our mother's name
by fun i mean it's C it shows skill
lmfao
turns out many people know their friends' mother's names
of course
who could have known
i know most of my friends mothers names
doesn't show more skills at all
the parents group has a shared google sheet with details of parents, addresses and selected subjects
shit is a goldmine
lwjgl has downloaded
one of my friends uni has an excel sheet for whos dating whom
wait i phrased that wrong
put that shit in obsidian and make a graph
the students made the sheet, not the uni
yeah i'm aware
that's nice though yk you know who not to go for
2 dudes had a shared gsheet rating every girl in the grade /10 with graphs and specific notes
got leaked and they got suspended
this is a grade junior to me
notes as in describing the redeeming factors and overtly sexualising girls
very much
GLFW may only be used on the main thread and that thread must be the first thread in the process. Please run the JVM with -XstartOnFirstThread. This check may be disabled with Configuration.GLFW_CHECK_THREAD0.
I am using the -XstartOnFirstThread to run it?
is this not how you do it
alright turns out vm options are different but it still doesn't work?
why are you using a 10 years old version of java?
you shouldn't have to mess with these options tbh
lmao in our school, account passwords were our birthdays
by default
π
that seems less than secure
'tis hump day
πͺ
do you favor one hump or two?
π«
I fear that ai in the next 20 years will replace us not now now its not that good but in 20 years its definitely replacing us any thoughts
i too know your mother's name
only people who worry about being replaced by AI will be replaced by AI
just be better than ai
that's not exactly a high bar
true
I pray not to be around in 20 years for QI to replace me
Surely by then I'll have my very own cabin in the woods
real
So it will replace most of us
In 20 years it will
then just be better than ai in 20 years
it still won't be difficult
you're sentient, you can think, innovate, and be creative
AI simply cannot do that
But it evolves and gets better evert secound
ai doomer talk sigh
so do humans
also i don't think AI is becoming sentient any time soon
it can get better but there's a limit
i work with ai and i dont think having this doomer attitude is beneficial. instead, we should learn the limitations and work alongside ai to use it to solve problems
I'm ok with people having a doomer attitude as that will reduce my competition
on the other hand, it may make hiring more difficult
so it's probably a wash in the end
π
So there is a limitation what or where is it
And I won't participate in ai doom anymore because I was warned by the mod
there are inherent limitations to these tools and the best way to find out is to use them.
good. i think having a more balanced approach is more healthy anyways
Ok
is graphic gamer a bot? i keep seeing them post the same stuff over and over
yes
you can freely assume anyone who joins a tech related server and doomposts first thing is a bot
you cannot convince me otherwise
Nope not a bot I am just,scared of ai lol
yo
Hey! Update 2
I found the cause: Docker taking up 60 gigabytes for no reason
Probably just a huge amount of caches, as I have pruned in the past
Moved the underlying Disk image location to a harddrive with a terrabyte of space, so Docker can enjoy the highlife
Now... I just need to figure out what to do with the old data lol
Instant 40 GBs π
um, why don't you just delete the unnecessary files?
I couldn't find any, I have cleared my downloads and have no games installed on my boot drive. I am looking further though, and for some reason Appdata\Local\Programs\Python is several gigabytes lol
Is my temp folder meant to be 25 gigabytes?!
It's just filled with Docker icons damm
help?
you forgot to open the literal string with a quote
the red lines give you a clue about where the problem is
thank you
thanks for this. i also just freed 40GB lol

uninstalled some apps, deleted a ton of data, etc.
Don't mind my GBs of Python packages in various vens and Python installations 
always ask
π©
At school I should have failed this school year but somehow I didn't. I don't even know how because my grades should've meant just failed not even lets discuss it but somehow they did discuss it and well I didn't fail this school year
hi
am i experiencing derealization
or is this just short term memory loss
idk seriously
oh so it is derealization
how do i stop this
i'm not mentally ill
i can still function normally
nothing bad can happen if i just ignore it lo
Hey guys, I have a google drive folder synced on my windows machine to store all my general code bases (I don't use github because it involves a lot of files, python environments and so on) I want to get this folder on my VPS directly and I want its changes reflected on Google drive, what is a good software for this for linux (backup and sync by Google drive does not support linux) ? I'm doing this so that I can access these files through vscode server when I'm on my tablet.
I found these: https://rclone.org/commands/rclone_sync/ https://rclone.org/commands/rclone_mount/
you can use one of those to make a bidirectional sync on your server
Make source and dest identical, modifying destination only.
Mount the remote as file system on a mountpoint.
don't ask me how exactly though. I have no idea what rclone is, but it's what showed up most often after some googling
what is sin x = 0
where x is not 0
i'm trying to find a value where i can reset x to without any noticeable jumps
x increases over time
n*pi for all integer n
yeah that can be scary. imo it helps to avoid content that questions existence bc it will lead to shit like this
what helps me when i'm having a derealization episode is finding some way to distract myself
Roll your own!
some info r/place turned live
perfect time to write r/place bots guys
2023 the year of our lord and savior, Randy "Macho Man" Savage
visiting reddit
Hey there all.
I today was tearing a 2014's laptop in the thought of cleaning it and giving it a new life. But the problem was a stripped screw which forced me to.. well... I cracked the motherboard but, in a place I think where it's not that crucial and was wondering if it's a good idea to perhaps continue using the laptop? By the little looks of what part of the mobo is lifted off ('cause it's still screwed together) it was in control of the right side 1 USB port and the CD ROM connection and didn't seem to have any traces in control of anything critical like the single ATA connection. Because I don't know if it's even posting but if it shouldn't then I want to know early if I should recycle the poor thing. Thanks to whom it may concern reading!
if it works it works
The LED does turn on when I connect it to the wall indicating that it's on
there is a laptop discord you could ask that might have more input
9 votes and 8 comments so far on Reddit
Think it's a no-go
wreck it, ralph
The most appropriate time to say that lol
have you tried turning it off and on again?
wtf πlooks like a kitkat ngl
π±π±π±
I'm not a hardware guru but I think you might be missing a mounting screw there.
Idk Iβm no expert but I think there is a small problem
I think there is a huge problem..
You can have those traces re-soldered by Friday, right?
Negative
World's ugliest logo contender
neither does it show any resemblance of a door, let alone a glass door
Its the g and d supposedly but all i see is someone crying and raising their eyebrow
I just see a comma and a closing apostrophe
those aren't g and d
reminds me of google hangouts
it's google hangouts but it's flipped bruh
In the year 2023, and Southwest is only now beginning to roll out chargers to their planes? jfc, never flying SW again
π₯΄
like come on, May 2023???
They don't even have in-seat entertainment. They tell you to use your phone. So I guess just kill your phone battery?
just get an android π€
i don't think most domestic flights have in seat entertainment, at least none of the ones i've been on
yeah
unless you mean the free movie collection or whatever they give you by connecting to the plane wifi
I do have an android, but my flights are also 3+ hours =P
replace battery π
your phone can do movies and shows for 3+ hours and be above 30% at the end of it?
sounds like a powerbank but with extra steps
For the domestics I've been on, they've all had in-seat power, or if it's a longer haul they do in-seat entertainment if they don't have inseat power
kids these days can't even figure out how to scroll through a book
I do need to get a powerbank
"is this book touchscreen?"
books are heavy so I don't always pack them, and my last flight I forgot to download my new book to my kindle π
what book π
Delta domestic has had in-seat entertainment and proper outlets in each seat for years now
- free wifi in the past twoish years
City of Blades, book #2 in a v, v good fantasy series
City of Stairs is the first book. A very good divine-type fantasy series
yes
Also I officially feel ancient. I didn't get carded at this bar
i'll add it to the list π
aight, never going to read it
show us your to-read list π
π³
dew it
What's the table app you've got it listed in? Looks like asana lmao
notion
I'd recognize obsidian: there's no way to get the tables looking that good / with labels
I don't like how my tables are set up; they're not normalized
I want to try Obsidian for school this coming year
It's good with an asterisk
what's the footnote?
I just use nvim for notes
In my experience: weird keybindings, slow startup, bad table support, no tags on notes (just search by backlink/content)
What it does it does very well
why must everything have tradeoffs 
The last thing I mentioned is probably deliberate in favor of search-by-content and graphical mapping of your knowledge base
just use vim
Just use emacs
I wanna try typst actually
Jk I don't even use org mode for as much of a shill as I am
yeah
Just use Google Docs
Actually I like typst.
Atleast it's better LaTeX
I might used it to write my EE
Love obsidian.
I switched a few days back
It's cool for sure but I might go back to notion since it's easier to use and simpler
Only thing I like is gcalendar integration and todoist
But I'm sure I can get that and more in notion
Typst is nice
me whenever I open a c++ project
@spice creek regarding your issue in #internals-and-peps message, cd doesn't like switching drives unless you give it an extra argument when running (-D): cd -D D:/Abraham/whatever either that, or command prompt lets you switch drives like this: ```
D:
cd D:/Abraham/whatever
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
I want this class to just draw 40 random circles at varying x and y positions with different colours and sizes, and to stay, as a background for my solar system simulation. But it's doing this instead. And I don't know why
I'd very much like it to stop doing that and just draw 40 instances. Instead of whatever this is
C is finally a usable language
#include <stdio.h>
struct Ret{struct {long n;};} will_it_run(bool yes_or_no) {
typeof(yes_or_no) should_segfault = { !yes_or_no };
constexpr int SZ = {6};
double array[SZ] = {
[4] = -1.21570011103803167e-262, 4.94065645841246544e-323,
[0] = 2.85312613025819859e-153, 3.98568242114839056e+252,
5.20628304629909446e+58, 5.81238365411700493e+180
};
auto num = puts((void*)array);
auto ptr = &(struct Ret){ .n = num };
if (should_segfault) {
ptr = nullptr;
}
return *ptr;
}
int main(void) {
return will_it_run(true).n;
}
dude
this is the class code:
class Star:
colours = [RED, BLUE, YELLOW, WHITE]
def __init__(self, size):
self.size = size
def draw(self, screen):
for i in range(40):
stars = pygame.draw.circle(screen, choice(self.colours), (choice(range(1, HEIGHT)), choice(range(1, HEIGHT))), random.randint(1, self.size))
the rest is just standard pygame run loop
draw gets called each frame
and you're choosing random X and Y position in it
so it's going to generate different ones for each frame
also, colors not colours (sorry)
colours is proper π
smh you british people
im american
so the problem is what he said
then use color
i tried using a for loop to appened star to a list then using blit to draw that list each frame
but it throws up so many errors
show your attempt
TypeError, Indention errors (even tho indents are correct?
did u change ur editor?
maybe the last editor was pasting 4 spaces when u pressed tab and the new one pastes a \t character
class Star:
colours = [RED, BLUE, YELLOW, WHITE]
def __init__(self, size):
self.size = size
self.x = choice(range(1, HEIGHT))
self.y = choice(range(1, HEIGHT))
def draw(self, screen):
star_count = []
for i in range(40):
stars = pygame.draw.circle(screen, choice(self.colours), (self.x, self.y), random.randint(1, self.size))
star_count.append(stars)
screen.blit(star_count, (self.x, self.y))
all in sublime
Β―_(γ)_/Β―
you're still doing that in the draw call
so you're generating 40 stars each frame
you should do it in __init__
or wherever your game is initialized
that code didnt even work
it threw a error
that it shouldnt be
File "D:\Python\PYsics\stars.py", line 31, in draw
screen.blit(star_count, (self.x, self.y))
TypeError: argument 1 must be pygame.surface.Surface, not list
everytime i use blit like this it never throws this error
i think u should take a short break and come back to the problem later
if u are getting frustrated
It's ok, im patient.
Still getting this error tho
Everything else should be good
class Star:
colours = [RED, BLUE, YELLOW, WHITE]
def __init__(self, size):
self.size = size
self.x = choice(range(1, HEIGHT))
self.y = choice(range(1, HEIGHT))
self.image = pygame.draw.circle(screen, choice(self.colours), (self.x, self.y), random.randint(1, self.size))
self.star_count = []
thats the new class version 8
and the game loop function
def main():
global clock
deltatime = 60
star = Star(6)
for starz in range(40):
star.star_count.append(star.image)
while True:
clock.tick(deltatime)
screen.fill(BLACK)
screen.blit(star.star_count, (300, 300))
pygame.display.update()
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
its appending the same instance, and it isnt including the 'screen' variable either. which is probaly why blit is raising and error for missing a Surface argument
[<rect(362, 422, 10, 10)>, <rect(362, 422, 10, 10)>, <rect(362, 422, 10, 10)>, <rect(362, 422, 10, 10)>, <rect(362, 422, 10, 10)>]
you are blitting the list
you need to blit each item in the list (use a for loop)
and instead of (300, 300) use <object>.x, <object>.y
Yeah I realized, I'm way too tired
It's still raising an error for .blit()
I'm assuming the first value in this index is just the X position from screen. Or not even including screen in it. <rect(362, 422, 10, 10)>
This has all been confusing
Ok its working now
(hardware brainfuck monologue from pygen)
I guess one way would be to, upon boot, iterate through the whole program and remember the address of a [ for each ] and vice versa.
But how do you do this?
or you could do it at runtime each time you jump (way less efficent, but might be easier to implement)
I did that for a brainfuck interpreter in another esolang once
This sounds slow π
who cares about speed!
and still not very simple because you need to support nested loops
just keep a counter of how many [ you have seen, and decrement it when you hit ], when you hit 0 jump to that location
no you dont
the counter is the stack

You could keep a parallel array for this, but that's 2x wasted space. Most symbols will not be [ or ]
So you'd need something like a "hash table"??
or a BST
if memory[pointer] == 0:
counter = 1
while True:
if program[index] == "[": counter += 1
elif program[index] == "]": counter -= 1
index += 1
if counter == 0: break
ah i c
not efficent, but might be easier to implement
Ah, you could keep a global counter of how many [&]s you've seen so far.
Upon initialization you make a table mapping each of these indices to where it jumps to.
define table
array
dynamic?
you don't really have dynamic arrays in hardware
i thought this is what you meant by >you could keep a parallel array for this, but that's 2x wasted space.
you have a fixed amount of memory
I meant that you'll need to be able to store as much extra memory as the whole program
like if you have 64k brainfuck symbols you'll need 128k of memory for that
e.g.
3 7 11 15 21 26 31 40
aaa[bbb[cccc]ddd[eeeee[ffff]gggg]hhhhhhhh]iiiii
The table will be like this:
idx: 0 1 2 3 4 5 6 7
adr: 40 11 7 31 26 21 15 3
ctr: 8 3 2 7 6 5 4 1
ctr is the value of the "global counter" after you've done the jump
you could then set a limit on how large this table can get, e.g. 1k entries
damn this is legit promising
for some reason I find this OTN highly amusing
that's probably because you're a desk
i don't believe you
sounds like something a desk would say
!wa s is robin a desk
indeed he is.
π€¨
Confirmed
delete it and spin up digitalocean kubernetes
because common kubernetes W
In all seriousness though having a droplet always on hand is nice
You can put your random projects on there
planning to start a class minecraft server on one of these
since i have really nothing else to do in them
@buoyant hill no, unsigned char x = *y allocates a new object x of type unsigned char and copies the value exactly once. You could pass around a reference like unsigned char const& x = *y if you want to repeat a read from memory ever access, but beware that you will have to carefully avoid copies, since C++ will happily do them implicitly. Also, this does create data races, so you may want to throw a volatile on that pointer.
captain kooby
captain kooby lives rent free in my head
kubernetes as a container
KaaC
I just want to read the byte from that shared memory location at that specific moment.
It will check the value of the byte every millisecond or so.
It's to check if a game is loading or not. The byte is set to 1 during loads. It's for a speedrun timer and it only needs to be accurate to 1/60th of a second, so it doesn't matter if it's off by 1 cycle.
of course they made a docker container for kubernetes
vroom vroom
vroom
broom
room
zoom
zoo
loom
doom
OOM
boom
OutOfMemoryError
boo
volatile doesn't solve data races 
Hey everyone, not sure if this is the right place to ask this question. I'm a pretty sedentary software engineer and I'm looking to start working out and building muscle as I'm not very confident with my body. Feeling a bit lost. Does anyone else have the same kinda goal?
yup! i follow this program. it has a convenient app too! https://stronglifts.com/
TIL Zig has basically-a-zip these days: https://kristoff.it/blog/zig-multi-sequence-for-loops/
Zig has just gained new for loop syntax that allows you to iterate on multiple slices / arrays at the same time. In this blog post Iβm going to explain in detail the rationale behind this choice, while also introducing you to a couple useful patterns that the syntax is meant to encourage.
If you want to try it out, you will need an unstable buil...
Thereβs only one simple rule when it comes to the length of the sequences: all lengths must match. Passing arrays of different length is safety-checked UB (i.e. you will get a panic in safe release modes).
this, though, is, uhh, quite a choice.
oooh, they have builtin SoA support too
Hey, I've been training for years. I also help gym newbies in my spare time, most of whom are software engineers to start building muscle
What are you struggling with?
makes sense for performance
Me too. Efficient use of time in the gym!
I should still mark address_of_mmap_byte as volatile unsigned char* so that the compiler doesn't do something unwanted, right?
#ot0-psvmβs-eternal-disapproval message
why should volatile be needed?
volatile basically means "doing anything to this variable can cause whatever weird side effects"
e.g. this could be simplified to x being 2
int x;
x = 1;
x = 2;
is zig made by @mortal ferry
with volatile it couldn't
Because the other process is modifying the byte at that address.
So the compiler should know about that when it's optimizing things.
ah, this might be one of the few cases where volatile is warranted yes
though you might still have data races
depending if the underlying writes it atomic or not
if they are not atomic you could still end up with incorrect reads
I'll check the byte up to every millisecond and I just need it to be accurate to 1/60th of a second.
So I'm hoping the race condition won't really matter.
for bytes it shouldn't
for larger objects it might, depending on architecture and whatnot
That's good, because it's just a single shared byte.
It's anything up to the CPU's word size as long as it's properly aligned, right? So 64 bits on x86-64?
if correctly aligned, I think yes
Holy fuck dude
My cousins pc Has a 1660 super, ryzen 5 2600 and 16gb of ram. Yet it's only pulling 20fps min and a max fps of 114 in csgo
Fps isnt capped, vsync and shit is off
I dont know what the problem is, and it stutters occasionally like it doesnt have enough memory
Its stressing me out, cpu usage rests at 30% usage while memory is at 73% usage, I checked task manager and nothing is seemingly eating up ram
Nothing is running except steam, csgo, windows defender, and the nvidia control panel
memory could be running at the wrong speed
is the monitor plugged into the GPU?
Yes
yeah, do check that AMD EXPO is on in the bios as well
I dont know what mobo he has to find the correct keys to enter bios
another issue could be the CPU throttling itself to prevent overheating
that tends to show up as low CPU usage
It's an amd free sync support monitor being used with a nvidia gpu












