#ot1-perplexing-regexing

1 messages Β· Page 43 of 1

foggy jungle
#

Search up a game, it'll tell you if it's supported via SteamOS.

heady hamlet
foggy jungle
#

Proton is like... WINE for video games. It's not but we'll call it that.

grave cove
#

This is ridiculous

foggy jungle
#

It's an abstraction layer to allow Windows games to run on Linux.

grave cove
foggy jungle
heady hamlet
#

nooooooo

#

tthat pictut burn my eyes

foggy jungle
#

Also this is so stupid.

#

2700k meets those requirements.

thick ore
#

honestly why isn't valorant supported on linux
just go to the tray, right click on the vanguard icon and click exit 🀷

foggy jungle
#

And is like... 10 years old?

thick ore
#

so easy

heady hamlet
jaunty wraith
# grave cove

which "engineering" applications require those specs?

tawny jay
foggy jungle
heady hamlet
#

i have 4 years on discord i cant use didcord when i was 6

thick ore
#

what typa stuff is bro engineering πŸ˜­πŸ˜­πŸ™

foggy jungle
#

The database I linked you is aggregated user reports of what runs and what doesn't.

grave cove
#

well I'm planning on doing grad school after so may as well get something good to last me all the way

heady hamlet
#

i want hug

foggy jungle
#

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.)

heady hamlet
#

there is guido van russum hug

tawny jay
foggy jungle
#

He's wrong.

heady hamlet
#

hes warm

grave cove
#

sus

tawny jay
#

look at the video

foggy jungle
grave cove
#

destiny 2 moment

heady hamlet
jaunty wraith
#

borked

foggy jungle
heady hamlet
tawny jay
#

so steamdeck cant run these programs ?

lament cairn
#

yep]

#

unless it's on windows

tawny jay
#

i see

foggy jungle
#

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.

tawny jay
#

you know that its a matter of time before steamdeck and steamos make it possible to run this?

foggy jungle
#

Possibly but Linux gamers have been saying that for decades now.

grave cove
#

mmm

foggy jungle
#

SteamOS/Steamdeck doesn't really tilt the odds in any particular direction.

lament cairn
foggy jungle
#

Let me be clear, I want Linux to support gaming.

grave cove
#

they need cooperation from the game's developers as well

foggy jungle
#

I'm just acutely aware that there are certain restrictions at play that make this very difficult.

grave cove
#

If the devs don't care there's only so much you can do

tawny jay
foggy jungle
#

shrug 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.

tawny jay
#

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 πŸ™‚

foggy jungle
#

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.

warped sentinel
lament cairn
#

isn't enough

warped sentinel
#

it's never enough πŸ™‚

#

better than being on mac though

foggy jungle
#

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.

warped sentinel
#

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

foggy jungle
#

I don't... think the statistics back up the case that the overwhelmingly vast majority of gamers could play their AAA games on Linux.

warped sentinel
#

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

foggy jungle
tawny jay
foggy jungle
#

90% of games are reported as 'unverified' by ProtonDB for Steam.

#

Admittedly 50% of those are reported as 'playable' <to some degree>

warped sentinel
#

tbh, unverified is fine from my experience

heady hamlet
#

i want to make a game

warped sentinel
grave cove
#

go for it

heady hamlet
#

i cant have time ive to practice for ielts first

warped sentinel
heady hamlet
#

prob ill make my dream game when im 60 years old

#

ill play undertale n sallyface when im 60 years old

grave cove
#

speaking of dreams

lament cairn
#

fucking hate docker

grave cove
#

good night all

lament cairn
#

gn

foggy jungle
#

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.

warped sentinel
warped sentinel
foggy jungle
heady hamlet
foggy jungle
#

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.

warped sentinel
foggy jungle
#

Mr. Screven does not mince words.

warped sentinel
warped sentinel
foggy jungle
# warped sentinel How so?

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.

heady hamlet
warped sentinel
#

still a change of stewardship

warped sentinel
#

CRPG

heady hamlet
foggy jungle
# warped sentinel Redhat isn't violating the gpl though. They still provide the source code to the...

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.

heady hamlet
#

uh

warped sentinel
foggy jungle
warped sentinel
foggy jungle
#

The source code is no longer open, derivatives are being C&D'd and killed. CentOS, AlmaLinux, and Rocky Linux.

heady hamlet
warped sentinel
warped sentinel
foggy jungle
#

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.

heady hamlet
#

so many thing around me r so negative

warped sentinel
#

Actions speak louder than words.
Their track of record makes it sound like a trap

heady hamlet
#

i dont want to be affected my em

warped sentinel
heady hamlet
foggy jungle
#

You can learn programming anywhere pithink

tawny jay
# foggy jungle Display? <:pithink:652247559909277706>

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

foggy jungle
#

Eh?

heady hamlet
warped sentinel
tawny jay
foggy jungle
#

SSH works just fine on Windows 11, I have... no issues with it. pithink

warped sentinel
#

I thought the display thing would go more towards the DPI and stuff

heady hamlet
#

ill die of poverty

warped sentinel
#

don't die of poverty. It's not fun

foggy jungle
heady hamlet
tawny jay
foggy jungle
#

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)

tawny jay
#

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

foggy jungle
#

Such as what?

#

W10 (and subsequently W11) has made significant improvements to the terminal experience.

tawny jay
#

resizing events mostly but arrow up events

#

however why would they been affected at all?

#

so i gave up

warped sentinel
foggy jungle
#

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.

heady hamlet
#

oh then u couldnt fix my win def bc my win def is window

foggy jungle
#

We told you what to do. You're just not interested in doing it.

heady hamlet
#

dont i?

foggy jungle
#

yep.

#

And don't mess with your antivirus next time.

heady hamlet
foggy jungle
#

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.

tawny jay
foggy jungle
#

Is it going against the grain of my work? pithink

tawny jay
#

the tty codes and i dont know what changed ( spent tooo long on it) was the last straw

heady hamlet
#

enumerate is coolest thing in python

foggy jungle
#

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.

heady hamlet
#

enumerate is coolest thing stickie gave me

foggy jungle
#

I much prefer virtualization, whether it be WSL2 or VMWare.

foggy jungle
#

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.

tawny jay
foggy jungle
#

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. shrug

#

there's nothing coding wise that is more complex.

tawny jay
#

its totally and annoying differet

heady hamlet
tawny jay
#

I implemented a builder in python on windows with jenkins which was total hell on windows and totally different on linux

foggy jungle
#

I cannot speak to your specific experiences.

tawny jay
#

but i can

foggy jungle
#

I am telling you that for me, the environment is the same if not improved.

#

That's fine.

tawny jay
#

lol

foggy jungle
#

But you're asserting as fact that Windows is worse for development. I'm telling you that in my experience, that is not true.

heady hamlet
#

hugging is the most comfortable thing ive ever done

#

hi godlygeek

solid elbow
#

I've gotta second being quite happy with WSL.

heady hamlet
tawny jay
#

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

warped sentinel
#

probably comes down more to a matter of preference and habits.
I cannot stand windows, despite trying when getting a new laptop

tawny jay
#

so better off not coding in dos

heady hamlet
#

@heady hamlet

#

thats bad

#

ill go study now n make u proud

tawny jay
warped sentinel
tawny jay
warped sentinel
tawny jay
#

no

#

fail

#

powershell is not python specific

warped sentinel
#

does it have to be?

foggy jungle
tawny jay
#

well that is my point exactly ... it should be

warped sentinel
#

ipython can be interesting in that regard

tawny jay
#

no

#

fail

warped sentinel
#

that escalated quickly

foggy jungle
#

D:\

#

Encompasses my emotions quite well.

tawny jay
#

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

warped sentinel
tawny jay
#

and its windows that you will fail

foggy jungle
#

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.

tawny jay
#

its IBM syntax not mine

warped sentinel
#

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

foggy jungle
#

And that's fine.

#

It's okay to not support Windows.

#

If your application user base is in Linux, then... that makes sense.

tawny jay
#

im lost so we agree?

warped sentinel
#

we have decided you agree with us

#

you just don't know it yet

tawny jay
#

lol ok i well conside that we all agree with us that i 1st postulated

warped sentinel
#

even mac is another shitshow

#

and that's okay

foggy jungle
#

Developers lamenting cross-platform support is a tale as old as time.

warped sentinel
#

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

foggy jungle
#

If anyone needs me I'll be fighting trying to get Pystack to work locally. ducky_sphere

solid elbow
#

Having some trouble?

foggy jungle
#

Mountains but none that I'm going to raise an issue with yet, I just thought it was a cute jab.

tawny jay
#

what is the problem Pystack with ?

warped sentinel
solid elbow
#

Uh, soon, I think...

warped sentinel
#

nice!

#

Looking forward to it

solid elbow
#

Should be a week or two, I think

solid elbow
#

If it's containerized, the problem might be that you need to grant ptrace permissions for attaching to arbitrary processes.

noble phoenix
#

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

foggy jungle
#

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.

warped sentinel
foggy jungle
#

IIRC something was at odds with the existent libw/libelf.

solid elbow
solid elbow
#

Assuming that thing is a manylinux or musllinux anyway

noble phoenix
#

pycharm has finished downloading, vscode was being weird

foggy jungle
solid elbow
#

πŸ€·β€β™‚οΈ

foggy jungle
#

🀷

solid elbow
#

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?

foggy jungle
#

It's VMWare so it shouldn't be unless I'm real dumb.

solid elbow
#

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

foggy jungle
#

Yeah, I had a recent plight with that trying to spin up something anyway.
But no, it's standard x86

solid elbow
#

well, then... hm. No clue what problem you might have been having, but glad you are no longer having it πŸ˜„

foggy jungle
#

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.

solid elbow
#

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

foggy jungle
#

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.

noble phoenix
#

always the cyber security bros making me feel confused and vunlrable

solid elbow
foggy jungle
solid elbow
#

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

noble phoenix
#

doesn't dis do something similar?

solid elbow
#

no

noble phoenix
#

nevermind that is a specific symbols this seems much more complex

tawny jay
# solid elbow but you have bash in WSL

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

noble phoenix
#

that's cool

foggy jungle
#

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.

solid elbow
#

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.

foggy jungle
#

Also... this is silly but oh-my-posh dramatically increased my opinion of Windows Terminal lol

solid elbow
#

like oh-my-zsh but for powershell?

warped sentinel
#

It won't convince me to use Windows, but meh, whatever floats your boat

foggy jungle
#

I think that's the intention, but iirc it's just branded as a generic theme engine for shells.

tawny jay
foggy jungle
solid elbow
thick ore
#

yoooo rem got the rtx 4080

warped sentinel
foggy jungle
noble phoenix
#

5 days ew

#

i remember i had my laptop running for like 80

#

good times

foggy jungle
#

Windows uptime is kinda'... inaccurate.

solid elbow
# warped sentinel It won't convince me to use Windows, but meh, whatever floats your boat

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...)

foggy jungle
#

That sounds like a dramatic edgecase lol

solid elbow
# foggy jungle That sounds like a dramatic edgecase lol

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

warped sentinel
solid elbow
#

I'm perfectly comfortable with a Windows machine or a Linux machine. Just don't give me Mac πŸ˜…

foggy jungle
#

Ah that makes sense.

noble phoenix
#

aye i love macs, whats wrong with macs?

solid elbow
#

I don't have any idea how to use them

warped sentinel
#

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

solid elbow
tawny jay
#

They have werid Keys ?

foggy jungle
#

I think ptrace is the source of substantial annoyance with gdb I had awhile ago pithink

solid elbow
#

almost certainly

noble phoenix
#
----------------------
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
solid elbow
# noble phoenix how so?

tools that anyone used to doing development on Linux or BSD expects to have available just aren't there on mac, or behave differently

tawny jay
solid elbow
#

and macs have a bunch of security features that can make running Unix apps hell

graceful basin
#

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.

solid elbow
noble phoenix
#

oh wow

#

i've never worked with linux dedicated so i wouldn't know

warped sentinel
#

macs are a pain

solid elbow
#

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....

foggy jungle
warped sentinel
#

setting builders, deployment, all the way to the APIs supported

graceful basin
#

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.

royal lakeBOT
#

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.```
solid elbow
#

I'm very proud of this code, despite the absolute horror of it πŸ˜„

warped sentinel
#

and the pun

noble phoenix
#

lmfao

solid elbow
noble phoenix
#

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}")
solid elbow
#

this is the first time in my career where attempting to parse machine code instructions was the best, most maintainable option

foggy jungle
#

I enjoy entertaining comments when I'm browsing some random code.

tawny jay
#

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.

graceful basin
#

This reminds me of my own recent discovery, in that CPython parses its own bytecode at runtime to validate debugger jumps.

solid elbow
#

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

noble phoenix
#

lmfaooo

noble phoenix
#

W way honestly

foggy jungle
#

I produced my first "oh my docstring is longer than the function" function recently.

royal lakeBOT
#

Objects/frameobject.c line 124

markblocks(PyCodeObject *code_obj, int len)```
noble phoenix
#

what does the function do?

solid elbow
#

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

graceful basin
#

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

foggy jungle
#

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])))`
warped sentinel
graceful basin
#

that is a pretty cool function

foggy jungle
#

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 cooldoge

noble phoenix
#

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

warped sentinel
noble phoenix
#

ohhhh

#

i will add that

warped sentinel
#

the math behind collaborative filtering at the basic level are pretty simple and straightforward

#

nothing fancy

royal lakeBOT
#

snakehook/snakehook.py line 28

# Globals because audit hooks are the dark arts.```
foggy jungle
warped sentinel
#

good thing I didn't read it then

foggy jungle
#

Drat foiled again.

solid elbow
warped sentinel
#

technically I would be concerned about potential claims of derivative work based on the reading

foggy jungle
#

Feel free to steal my scuffed audit event handler.

warped sentinel
#

I also, I could sell @foggy jungle my house. But can they afford it?

foggy jungle
#

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.

warped sentinel
#

I mean, I could be in Fresno

foggy jungle
#

Is Fresno not a nice place?

#

I knew someone from Fresno.

warped sentinel
#

not as nice as SF or Seattle

foggy jungle
#

I would love to live in Seattle some day tbh.

warped sentinel
#

best time to move

foggy jungle
#

I got trapped in SEATAC airport for nearly a month while I was waiting on some paperwork stuff.

warped sentinel
#

prices only go up

foggy jungle
#

Well near SEATAC

solid elbow
#

the best time to plant a tree was 20 years ago, the second best time is now

foggy jungle
#

Lived in some dingy hotel but the city was nice. Got some time to go adventure.

warped sentinel
#

so many things to do around there

foggy jungle
#

I'm not used to being around... things, I guess.

#

My entire adult life has been spent residing in the middle of absolutely nowhere.

heady hamlet
#

adult

warped sentinel
foggy jungle
#

If my college application part two gets accepted, I should move. pithink

warped sentinel
#

There are tons of social, tech and outdoor activities all along the coast

#

best coast

foggy jungle
#

There aren’t a lot of job opportunities around here.

heady hamlet
foggy jungle
#

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.

heady hamlet
warped sentinel
#

and we pay them for that

foggy jungle
#

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

heady hamlet
foggy jungle
#

At this point I’ve just been aggregating jobs and tallying requirements.

warped sentinel
#

I would be suspicious of any company who has a gartner magic quadrant as the first thing on their main page

heady hamlet
foggy jungle
warped sentinel
foggy jungle
#

I don’t actually know what that means I think.

#

Google didn’t avail me with much.

warped sentinel
#

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

foggy jungle
#

Seems lucrative.

warped sentinel
#

they are doing very well

foggy jungle
#

I will compromise my blog integrity for enough money.

warped sentinel
#

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

foggy jungle
#

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

warped sentinel
#

That's also why I cannot watch the tv show silicon valley

foggy jungle
#

The way that guy talks is my internal monologue for anyone asking me about quant at home.

noble phoenix
#
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
foggy jungle
#

Similar users.

#

Lgtm shipit

noble phoenix
#

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
foggy jungle
#

Random bedtime thought: it’s insane to me that C++ doesn’t have a package management solution a la PyPI.

noble phoenix
#

threshold = len(user2.purchased_products) - 1 !❓

foggy jungle
#

Or poetry I guess.

#

Cmake is… strange.

noble phoenix
#

userbased is kinda weird

noble phoenix
#
class Movie:
    title: str
    director: str
    lead_actor: str
    genre: str
    duration: str
``` what else should i take into account
solid elbow
noble phoenix
#

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

warped sentinel
noble phoenix
#

hmm

warped sentinel
#

you can always add more attributes later on

noble phoenix
#

yes

warped sentinel
#

I agree

noble phoenix
#

shitty thing is i need a lot of data

#

to find the most common watched director, actor, etc

warped sentinel
#

keep it simple and stupid

noble phoenix
#

hmm

warped sentinel
#

generate random data too if it helps

noble phoenix
#

thats what i'm doing

heady hamlet
warped sentinel
#

could also add some biases for fun here and there

noble phoenix
#

5 movies should be enough

heady hamlet
#

im very evil

noble phoenix
#

how do you type hint a list with a type of variable?

#

movies: list if movies only has entries of type Movie

lament cairn
#

movies: list[Movie] i think

solid elbow
#

yep

heady hamlet
noble phoenix
#

yep thats it

opaque ivy
opaque ivy
#

its a work in progress

uneven pine
#

It's me

viscid hemlock
#

Update: Chrome has started purging its caches and cookies, logging me out of almost all websites 😩

vale raven
#

firEyes
Very

thick ore
harsh tundra
viscid hemlock
#

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

#

πŸ˜…

thick ore
#

who said windows didn't have privacy features?

spice yew
#

full with what?

tardy rain
#

i just had to log in to nvidia to update my drivers

robust zephyr
#

i've never had that experience

tardy rain
#

i got their desktop app and it had me login

#

which is bullshit honestly

short skiff
#

yeah the geforce experience app sucks

#

or whatever it's called

#

but it is useful because you can get your drivers auto-updated

robust zephyr
#

yeah don't use the app

#

website works forever and won't install garbage software

noble phoenix
#

anyone got a podcast rec?

tranquil iron
noble phoenix
#

whats it bout

tranquil iron
#

it's about history. hardcore history!

lethal glacier
#

@high verge virgin

rough sapphire
#

?

uneven pine
# noble phoenix anyone got a podcast rec?

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

high verge
#

any tech related podcasts like for swe and stuff

uneven pine
#

I just listen to talk python and python bytes

sullen pier
#

I was wondering why my !remind hasnt arrived...
#bot-commands message
Turns out 30m means 30 months brainmon

high verge
#

unconventional design

#

30 months should be 30mo

noble phoenix
#

i'm going to start with serial

#

love myself some crime

tranquil iron
#

don't do crimes

heady lion
#

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...

grave cove
#

i too have been screwing with prometheus today

heady lion
grave cove
#

nothing like what you're doing just metrics for one of my apps

heady lion
#

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

grave cove
#

ah system stats

#

Yeah I'm using prometheus-client to export app metrics in FastAPI, it'st pretty neat really

heady lion
#

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

robust zephyr
heady lion
grave cove
heady lion
# grave cove

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

heady lion
#

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

uneven pine
#

I have neither GFE or whatever the fuck AMDs is called now on my system

#

Just do base driver installs

noble phoenix
#

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

heady hamlet
#

hi

noble phoenix
#

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.

#

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

thick ore
#

java 😭

warped sentinel
noble phoenix
#

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

noble phoenix
#

i would've been happier to do it in C or C++

#

C is more fun though

warped sentinel
#

c/c++ are so outdated

#

it's boomer technology

acoustic moss
#

so true bestie

noble phoenix
#

yeah but C is so much fun to work with

#

don't you love the debugged ⁉️

warped sentinel
#

no

#

I like to get stuff done

noble phoenix
#

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 ✨

warped sentinel
#

I would find java or scala more fun

#

they are more expressive

noble phoenix
#

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

acoustic moss
#

when we first got our school emails (in like 5th grade) we had to set our passwords to our mother's name

noble phoenix
acoustic moss
#

turns out many people know their friends' mother's names

noble phoenix
#

of course

acoustic moss
#

who could have known

noble phoenix
#

i know most of my friends mothers names

warped sentinel
noble phoenix
#

the parents group has a shared google sheet with details of parents, addresses and selected subjects

#

shit is a goldmine

#

lwjgl has downloaded

acoustic moss
#

one of my friends uni has an excel sheet for whos dating whom

#

wait i phrased that wrong

noble phoenix
acoustic moss
#

the students made the sheet, not the uni

noble phoenix
#

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

acoustic moss
#

thats just creepy

#

yeah

#

deserved

noble phoenix
#

this is a grade junior to me

#

notes as in describing the redeeming factors and overtly sexualising girls

noble phoenix
#

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?

warped sentinel
noble phoenix
#

good point

#

bruh i legit have it in my vm options

#

fuck java

warped sentinel
#

you shouldn't have to mess with these options tbh

thick ore
#

by default

next cargo
#

πŸ˜”

tranquil iron
high haven
#

wednesday

#

not as bad as monday

#

not as good as tuesday

#

weekend when

#

πŸƒ

tranquil iron
#

'tis hump day

high haven
#

πŸͺ

tranquil iron
#

do you favor one hump or two?

high haven
#

🐫

hidden storm
#

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

grave cove
high verge
#

that was devious af

tranquil iron
grave cove
#

just be better than ai

tranquil iron
#

that's not exactly a high bar

grave cove
#

true

tardy rain
#

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

hidden storm
hidden storm
tardy rain
#

What are people supposed to do if it does replace us in 20 years

#

And who is "us"

grave cove
#

it still won't be difficult

#

you're sentient, you can think, innovate, and be creative
AI simply cannot do that

hidden storm
#

But it evolves and gets better evert secound

high haven
#

ai doomer talk sigh

hidden storm
grave cove
#

also i don't think AI is becoming sentient any time soon

#

it can get better but there's a limit

high haven
#

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

tranquil iron
#

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

high haven
#

and this has been rmah's hot takes

#

back to the news

#

jk

tranquil iron
#

πŸ™‚

hidden storm
#

And I won't participate in ai doom anymore because I was warned by the mod

high haven
#

there are inherent limitations to these tools and the best way to find out is to use them.

high haven
robust zephyr
#

is graphic gamer a bot? i keep seeing them post the same stuff over and over

tardy rain
#

yes

#

you can freely assume anyone who joins a tech related server and doomposts first thing is a bot

#

you cannot convince me otherwise

hidden storm
tranquil iron
#

yo

hidden storm
#

Hello

#

Let's start ok

viscid hemlock
#

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 😎

tranquil iron
#

um, why don't you just delete the unnecessary files?

viscid hemlock
#

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

cunning spire
robust zephyr
#

you forgot to open the literal string with a quote

#

the red lines give you a clue about where the problem is

cunning spire
high haven
#

uninstalled some apps, deleted a ton of data, etc.

viscid hemlock
#

Don't mind my GBs of Python packages in various vens and Python installations ducky_australia

high haven
#

"why do you have python 2"

#

"bruh"

#

"dont ask"

tranquil iron
#

always ask

tardy rain
#

they pay me to

#

i wish it wasnt so

high haven
#

gets notification
checks phone

young shoal
high verge
#

css and html are stupidly annoying

#

like just work bro

zealous comet
#

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

lament cairn
#

nice

#

...?

heady hamlet
#

hi

thick ore
#

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

modest meteor
#

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.

lament cairn
#

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

thick ore
#

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

acoustic moss
#

n*pi for all integer n

thick ore
#

yoooo thx

#

math cat at it again

high verge
#

what helps me when i'm having a derealization episode is finding some way to distract myself

thick ore
#

yea that's what i did

#

played a few rounds of valo and i think i'm fine

#

now

small coral
#

some info r/place turned live

thick ore
#

perfect time to write r/place bots guys

robust zephyr
#

2023 the year of our lord and savior, Randy "Macho Man" Savage
visiting reddit

onyx ingot
#

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!

grave cove
#

if it works it works

onyx ingot
#

The LED does turn on when I connect it to the wall indicating that it's on

robust zephyr
#

there is a laptop discord you could ask that might have more input

onyx ingot
#

Think it's a no-go

acoustic moss
#

wreck it, ralph

onyx ingot
#

The most appropriate time to say that lol

proven ermine
#

have you tried turning it off and on again?

high verge
sinful breach
#

😱😱😱

thick osprey
#

I'm not a hardware guru but I think you might be missing a mounting screw there.

clear plume
onyx ingot
#

I think there is a huge problem..

heady lion
onyx ingot
#

Negative

heady lion
#

Lol

#

Boss' orders

tardy rain
#

World's ugliest logo contender

proven ermine
#

neither does it show any resemblance of a door, let alone a glass door

tardy rain
#

Its the g and d supposedly but all i see is someone crying and raising their eyebrow

proven ermine
#

I just see a comma and a closing apostrophe

tranquil iron
#

those aren't g and d

solemn tulip
#

reminds me of google hangouts

young shoal
#

it's google hangouts but it's flipped bruh

honest star
#

In the year 2023, and Southwest is only now beginning to roll out chargers to their planes? jfc, never flying SW again

grave cove
#

πŸ₯΄

honest star
#

like come on, May 2023???

young shoal
#

😬

#

plugs in phone
crashes on takeoff

honest star
#

They don't even have in-seat entertainment. They tell you to use your phone. So I guess just kill your phone battery?

young shoal
#

just get an android 😀

grave cove
#

i don't think most domestic flights have in seat entertainment, at least none of the ones i've been on

young shoal
#

yeah

grave cove
#

unless you mean the free movie collection or whatever they give you by connecting to the plane wifi

honest star
young shoal
honest star
young shoal
#

with multiple batteries, sure

#

or like, read a book yk

grave cove
#

sounds like a powerbank but with extra steps

honest star
#

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

young shoal
#

kids these days can't even figure out how to scroll through a book

honest star
#

I do need to get a powerbank

grave cove
#

"is this book touchscreen?"

honest star
#

books are heavy so I don't always pack them, and my last flight I forgot to download my new book to my kindle πŸ˜”

young shoal
#

what book πŸ‘€

heady lion
#

Delta domestic has had in-seat entertainment and proper outlets in each seat for years now

#
  • free wifi in the past twoish years
honest star
young shoal
#

huh

#

never heard of it

honest star
#

City of Stairs is the first book. A very good divine-type fantasy series

honest star
#

Also I officially feel ancient. I didn't get carded at this bar

young shoal
#

aight, never going to read it

grave cove
#

show us your to-read list πŸ‘€

young shoal
grave cove
#

dew it

heady lion
#

What's the table app you've got it listed in? Looks like asana lmao

grave cove
#

obsidian maybe

#

actually nah

#

notion perhaps

young shoal
#

notion

heady lion
#

I'd recognize obsidian: there's no way to get the tables looking that good / with labels

young shoal
#

I don't like how my tables are set up; they're not normalized

grave cove
#

I want to try Obsidian for school this coming year

heady lion
#

It's good with an asterisk

grave cove
#

what's the footnote?

young shoal
#

I just use nvim for notes

heady lion
#

What it does it does very well

grave cove
#

why must everything have tradeoffs noo

heady lion
#

The last thing I mentioned is probably deliberate in favor of search-by-content and graphical mapping of your knowledge base

young shoal
#

just use vim

heady lion
#

Just use emacs

young shoal
#

I wanna try typst actually

heady lion
#

Jk I don't even use org mode for as much of a shill as I am

heady lion
young shoal
#

yeah

noble phoenix
#

Just use Google Docs

#

Actually I like typst.

#

Atleast it's better LaTeX

#

I might used it to write my EE

noble phoenix
#

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

thick ore
rich rover
#

vsc can't even read the files

#

this is gonna give me brain damage

gritty zinc
#

me whenever I open a c++ project

tropic lichen
#

@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

Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.

tropic lichen
#

o goddamnit

#

the one OT i didn't check

#

apologies for the ping abraham πŸ˜…

eager cliff
#

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

rough sapphire
#

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;
}
eager cliff
#

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

thick ore
#

and you're choosing random X and Y position in it

#

so it's going to generate different ones for each frame

rough sapphire
#

also, colors not colours (sorry)

eager cliff
#

colours is proper 😠

thick ore
#

smh you british people

eager cliff
#

im american

rough sapphire
#

so the problem is what he said

thick ore
#

then use color

eager cliff
#

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

thick ore
#

show your attempt

eager cliff
#

TypeError, Indention errors (even tho indents are correct?

rough sapphire
#

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

eager cliff
#
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

rough sapphire
#

Β―_(ツ)_/Β―

thick ore
#

so you're generating 40 stars each frame

#

you should do it in __init__

#

or wherever your game is initialized

rough sapphire
#

oh nvm

#

wait what are you appending

eager cliff
#

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

rough sapphire
#

i think u should take a short break and come back to the problem later

#

if u are getting frustrated

eager cliff
#

It's ok, im patient.

eager cliff
#

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()
eager cliff
#

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)>]
edgy crest
#

you need to blit each item in the list (use a for loop)

#

and instead of (300, 300) use <object>.x, <object>.y

eager cliff
eager cliff
#

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

eager cliff
#

Ok its working now

shell raptor
#

(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?

timid latch
#

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

shell raptor
#

This sounds slow πŸ˜›

timid latch
#

who cares about speed!

shell raptor
#

and still not very simple because you need to support nested loops

timid latch
#

just keep a counter of how many [ you have seen, and decrement it when you hit ], when you hit 0 jump to that location

shell raptor
#

to what location?

#

you'll need a stack

timid latch
#

no you dont

acoustic moss
#

the counter is the stack

timid latch
shell raptor
#

or a BST

timid latch
#
if memory[pointer] == 0:
  counter = 1
  while True:
    if program[index] == "[": counter += 1
    elif program[index] == "]": counter -= 1

    index += 1
    if counter == 0: break
shell raptor
#

ah i c

timid latch
#

not efficent, but might be easier to implement

shell raptor
acoustic moss
#

define table

shell raptor
#

array

acoustic moss
#

dynamic?

shell raptor
#

you don't really have dynamic arrays in hardware

acoustic moss
#

i thought this is what you meant by >you could keep a parallel array for this, but that's 2x wasted space.

shell raptor
#

you have a fixed amount of memory

shell raptor
#

like if you have 64k brainfuck symbols you'll need 128k of memory for that

shell raptor
#

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

grave cove
#

for some reason I find this OTN highly amusing

crystal spruce
#

that's probably because you're a desk

grave cove
#

i don't believe you

solemn tulip
#

sounds like something a desk would say

low chasm
#

!wa s is robin a desk

royal lakeBOT
#

indeed he is.

grave cove
#

🀨

thick osprey
#

Confirmed

grave cove
#

my entire life purpose is now to hold objects

thick ore
#

yay av just ssh into my first droplet

#

what should i do with it

grave cove
thick ore
#

what

#

why

grave cove
#

because common kubernetes W

thick ore
#

smh

#

what if i kubernetes minecraft server

grave cove
#

In all seriousness though having a droplet always on hand is nice

#

You can put your random projects on there

thick ore
#

planning to start a class minecraft server on one of these

#

since i have really nothing else to do in them

graceful basin
#

@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.

drowsy rose
#

captain kooby lives rent free in my head

#

kubernetes as a container

#

KaaC

buoyant hill
#

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.

drowsy rose
#

vroom vroom

jaunty wraith
#

vroom

drowsy rose
#

broom

nova wyvern
#

room

drowsy rose
#

zoom

nova wyvern
#

zoo

drowsy rose
#

loom

nova wyvern
#

doom

drowsy rose
#

loom

#

(loom has 2 meanings)

nova wyvern
#

OOM

drowsy rose
#

boom

thick ore
#

OutOfMemoryError

nova wyvern
#

boo

drowsy rose
#

boo

#

you're supposed to continue the chain

thick ore
#

it is OOM

#

get it

drowsy rose
#

no

#

oh

solemn tulip
cobalt bobcat
#

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?

robust zephyr
gritty zinc
#

TIL Zig has basically-a-zip these days: https://kristoff.it/blog/zig-multi-sequence-for-loops/

#

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

carmine valley
#

What are you struggling with?

weary moat
buoyant hill
solemn tulip
#

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;
solemn tulip
#

with volatile it couldn't

buoyant hill
#

So the compiler should know about that when it's optimizing things.

solemn tulip
#

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

buoyant hill
#

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.

solemn tulip
#

for bytes it shouldn't

#

for larger objects it might, depending on architecture and whatnot

buoyant hill
#

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?

solemn tulip
#

if correctly aligned, I think yes

eager cliff
#

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

robust zephyr
#

memory could be running at the wrong speed

graceful basin
#

is the monitor plugged into the GPU?

eager cliff
#

Yes

graceful basin
#

yeah, do check that AMD EXPO is on in the bios as well

eager cliff
#

I dont know what mobo he has to find the correct keys to enter bios

robust zephyr
#

it's almost always Delete

#

it will show what to press on boot as well

graceful basin
#

another issue could be the CPU throttling itself to prevent overheating

#

that tends to show up as low CPU usage

eager cliff
#

It's an amd free sync support monitor being used with a nvidia gpu